api.ts 608 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718
  1. /* tslint:disable */
  2. /* eslint-disable */
  3. /**
  4. * Immich
  5. * Immich API
  6. *
  7. * The version of the OpenAPI document: 1.89.0
  8. *
  9. *
  10. * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
  11. * https://openapi-generator.tech
  12. * Do not edit the class manually.
  13. */
  14. import type { Configuration } from './configuration';
  15. import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
  16. import globalAxios from 'axios';
  17. // Some imports not used depending on template conditions
  18. // @ts-ignore
  19. import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
  20. import type { RequestArgs } from './base';
  21. // @ts-ignore
  22. import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError } from './base';
  23. /**
  24. *
  25. * @export
  26. * @interface APIKeyCreateDto
  27. */
  28. export interface APIKeyCreateDto {
  29. /**
  30. *
  31. * @type {string}
  32. * @memberof APIKeyCreateDto
  33. */
  34. 'name'?: string;
  35. }
  36. /**
  37. *
  38. * @export
  39. * @interface APIKeyCreateResponseDto
  40. */
  41. export interface APIKeyCreateResponseDto {
  42. /**
  43. *
  44. * @type {APIKeyResponseDto}
  45. * @memberof APIKeyCreateResponseDto
  46. */
  47. 'apiKey': APIKeyResponseDto;
  48. /**
  49. *
  50. * @type {string}
  51. * @memberof APIKeyCreateResponseDto
  52. */
  53. 'secret': string;
  54. }
  55. /**
  56. *
  57. * @export
  58. * @interface APIKeyResponseDto
  59. */
  60. export interface APIKeyResponseDto {
  61. /**
  62. *
  63. * @type {string}
  64. * @memberof APIKeyResponseDto
  65. */
  66. 'createdAt': string;
  67. /**
  68. *
  69. * @type {string}
  70. * @memberof APIKeyResponseDto
  71. */
  72. 'id': string;
  73. /**
  74. *
  75. * @type {string}
  76. * @memberof APIKeyResponseDto
  77. */
  78. 'name': string;
  79. /**
  80. *
  81. * @type {string}
  82. * @memberof APIKeyResponseDto
  83. */
  84. 'updatedAt': string;
  85. }
  86. /**
  87. *
  88. * @export
  89. * @interface APIKeyUpdateDto
  90. */
  91. export interface APIKeyUpdateDto {
  92. /**
  93. *
  94. * @type {string}
  95. * @memberof APIKeyUpdateDto
  96. */
  97. 'name': string;
  98. }
  99. /**
  100. *
  101. * @export
  102. * @interface ActivityCreateDto
  103. */
  104. export interface ActivityCreateDto {
  105. /**
  106. *
  107. * @type {string}
  108. * @memberof ActivityCreateDto
  109. */
  110. 'albumId': string;
  111. /**
  112. *
  113. * @type {string}
  114. * @memberof ActivityCreateDto
  115. */
  116. 'assetId'?: string;
  117. /**
  118. *
  119. * @type {string}
  120. * @memberof ActivityCreateDto
  121. */
  122. 'comment'?: string;
  123. /**
  124. *
  125. * @type {ReactionType}
  126. * @memberof ActivityCreateDto
  127. */
  128. 'type': ReactionType;
  129. }
  130. /**
  131. *
  132. * @export
  133. * @interface ActivityResponseDto
  134. */
  135. export interface ActivityResponseDto {
  136. /**
  137. *
  138. * @type {string}
  139. * @memberof ActivityResponseDto
  140. */
  141. 'assetId': string | null;
  142. /**
  143. *
  144. * @type {string}
  145. * @memberof ActivityResponseDto
  146. */
  147. 'comment'?: string | null;
  148. /**
  149. *
  150. * @type {string}
  151. * @memberof ActivityResponseDto
  152. */
  153. 'createdAt': string;
  154. /**
  155. *
  156. * @type {string}
  157. * @memberof ActivityResponseDto
  158. */
  159. 'id': string;
  160. /**
  161. *
  162. * @type {string}
  163. * @memberof ActivityResponseDto
  164. */
  165. 'type': ActivityResponseDtoTypeEnum;
  166. /**
  167. *
  168. * @type {UserDto}
  169. * @memberof ActivityResponseDto
  170. */
  171. 'user': UserDto;
  172. }
  173. export const ActivityResponseDtoTypeEnum = {
  174. Comment: 'comment',
  175. Like: 'like'
  176. } as const;
  177. export type ActivityResponseDtoTypeEnum = typeof ActivityResponseDtoTypeEnum[keyof typeof ActivityResponseDtoTypeEnum];
  178. /**
  179. *
  180. * @export
  181. * @interface ActivityStatisticsResponseDto
  182. */
  183. export interface ActivityStatisticsResponseDto {
  184. /**
  185. *
  186. * @type {number}
  187. * @memberof ActivityStatisticsResponseDto
  188. */
  189. 'comments': number;
  190. }
  191. /**
  192. *
  193. * @export
  194. * @interface AddUsersDto
  195. */
  196. export interface AddUsersDto {
  197. /**
  198. *
  199. * @type {Array<string>}
  200. * @memberof AddUsersDto
  201. */
  202. 'sharedUserIds': Array<string>;
  203. }
  204. /**
  205. *
  206. * @export
  207. * @interface AlbumCountResponseDto
  208. */
  209. export interface AlbumCountResponseDto {
  210. /**
  211. *
  212. * @type {number}
  213. * @memberof AlbumCountResponseDto
  214. */
  215. 'notShared': number;
  216. /**
  217. *
  218. * @type {number}
  219. * @memberof AlbumCountResponseDto
  220. */
  221. 'owned': number;
  222. /**
  223. *
  224. * @type {number}
  225. * @memberof AlbumCountResponseDto
  226. */
  227. 'shared': number;
  228. }
  229. /**
  230. *
  231. * @export
  232. * @interface AlbumResponseDto
  233. */
  234. export interface AlbumResponseDto {
  235. /**
  236. *
  237. * @type {string}
  238. * @memberof AlbumResponseDto
  239. */
  240. 'albumName': string;
  241. /**
  242. *
  243. * @type {string}
  244. * @memberof AlbumResponseDto
  245. */
  246. 'albumThumbnailAssetId': string | null;
  247. /**
  248. *
  249. * @type {number}
  250. * @memberof AlbumResponseDto
  251. */
  252. 'assetCount': number;
  253. /**
  254. *
  255. * @type {Array<AssetResponseDto>}
  256. * @memberof AlbumResponseDto
  257. */
  258. 'assets': Array<AssetResponseDto>;
  259. /**
  260. *
  261. * @type {string}
  262. * @memberof AlbumResponseDto
  263. */
  264. 'createdAt': string;
  265. /**
  266. *
  267. * @type {string}
  268. * @memberof AlbumResponseDto
  269. */
  270. 'description': string;
  271. /**
  272. *
  273. * @type {string}
  274. * @memberof AlbumResponseDto
  275. */
  276. 'endDate'?: string;
  277. /**
  278. *
  279. * @type {boolean}
  280. * @memberof AlbumResponseDto
  281. */
  282. 'hasSharedLink': boolean;
  283. /**
  284. *
  285. * @type {string}
  286. * @memberof AlbumResponseDto
  287. */
  288. 'id': string;
  289. /**
  290. *
  291. * @type {boolean}
  292. * @memberof AlbumResponseDto
  293. */
  294. 'isActivityEnabled': boolean;
  295. /**
  296. *
  297. * @type {string}
  298. * @memberof AlbumResponseDto
  299. */
  300. 'lastModifiedAssetTimestamp'?: string;
  301. /**
  302. *
  303. * @type {UserResponseDto}
  304. * @memberof AlbumResponseDto
  305. */
  306. 'owner': UserResponseDto;
  307. /**
  308. *
  309. * @type {string}
  310. * @memberof AlbumResponseDto
  311. */
  312. 'ownerId': string;
  313. /**
  314. *
  315. * @type {boolean}
  316. * @memberof AlbumResponseDto
  317. */
  318. 'shared': boolean;
  319. /**
  320. *
  321. * @type {Array<UserResponseDto>}
  322. * @memberof AlbumResponseDto
  323. */
  324. 'sharedUsers': Array<UserResponseDto>;
  325. /**
  326. *
  327. * @type {string}
  328. * @memberof AlbumResponseDto
  329. */
  330. 'startDate'?: string;
  331. /**
  332. *
  333. * @type {string}
  334. * @memberof AlbumResponseDto
  335. */
  336. 'updatedAt': string;
  337. }
  338. /**
  339. *
  340. * @export
  341. * @interface AllJobStatusResponseDto
  342. */
  343. export interface AllJobStatusResponseDto {
  344. /**
  345. *
  346. * @type {JobStatusDto}
  347. * @memberof AllJobStatusResponseDto
  348. */
  349. 'backgroundTask': JobStatusDto;
  350. /**
  351. *
  352. * @type {JobStatusDto}
  353. * @memberof AllJobStatusResponseDto
  354. */
  355. 'clipEncoding': JobStatusDto;
  356. /**
  357. *
  358. * @type {JobStatusDto}
  359. * @memberof AllJobStatusResponseDto
  360. */
  361. 'library': JobStatusDto;
  362. /**
  363. *
  364. * @type {JobStatusDto}
  365. * @memberof AllJobStatusResponseDto
  366. */
  367. 'metadataExtraction': JobStatusDto;
  368. /**
  369. *
  370. * @type {JobStatusDto}
  371. * @memberof AllJobStatusResponseDto
  372. */
  373. 'migration': JobStatusDto;
  374. /**
  375. *
  376. * @type {JobStatusDto}
  377. * @memberof AllJobStatusResponseDto
  378. */
  379. 'objectTagging': JobStatusDto;
  380. /**
  381. *
  382. * @type {JobStatusDto}
  383. * @memberof AllJobStatusResponseDto
  384. */
  385. 'recognizeFaces': JobStatusDto;
  386. /**
  387. *
  388. * @type {JobStatusDto}
  389. * @memberof AllJobStatusResponseDto
  390. */
  391. 'search': JobStatusDto;
  392. /**
  393. *
  394. * @type {JobStatusDto}
  395. * @memberof AllJobStatusResponseDto
  396. */
  397. 'sidecar': JobStatusDto;
  398. /**
  399. *
  400. * @type {JobStatusDto}
  401. * @memberof AllJobStatusResponseDto
  402. */
  403. 'storageTemplateMigration': JobStatusDto;
  404. /**
  405. *
  406. * @type {JobStatusDto}
  407. * @memberof AllJobStatusResponseDto
  408. */
  409. 'thumbnailGeneration': JobStatusDto;
  410. /**
  411. *
  412. * @type {JobStatusDto}
  413. * @memberof AllJobStatusResponseDto
  414. */
  415. 'videoConversion': JobStatusDto;
  416. }
  417. /**
  418. *
  419. * @export
  420. * @interface AssetBulkDeleteDto
  421. */
  422. export interface AssetBulkDeleteDto {
  423. /**
  424. *
  425. * @type {boolean}
  426. * @memberof AssetBulkDeleteDto
  427. */
  428. 'force'?: boolean;
  429. /**
  430. *
  431. * @type {Array<string>}
  432. * @memberof AssetBulkDeleteDto
  433. */
  434. 'ids': Array<string>;
  435. }
  436. /**
  437. *
  438. * @export
  439. * @interface AssetBulkUpdateDto
  440. */
  441. export interface AssetBulkUpdateDto {
  442. /**
  443. *
  444. * @type {Array<string>}
  445. * @memberof AssetBulkUpdateDto
  446. */
  447. 'ids': Array<string>;
  448. /**
  449. *
  450. * @type {boolean}
  451. * @memberof AssetBulkUpdateDto
  452. */
  453. 'isArchived'?: boolean;
  454. /**
  455. *
  456. * @type {boolean}
  457. * @memberof AssetBulkUpdateDto
  458. */
  459. 'isFavorite'?: boolean;
  460. /**
  461. *
  462. * @type {boolean}
  463. * @memberof AssetBulkUpdateDto
  464. */
  465. 'removeParent'?: boolean;
  466. /**
  467. *
  468. * @type {string}
  469. * @memberof AssetBulkUpdateDto
  470. */
  471. 'stackParentId'?: string;
  472. }
  473. /**
  474. *
  475. * @export
  476. * @interface AssetBulkUploadCheckDto
  477. */
  478. export interface AssetBulkUploadCheckDto {
  479. /**
  480. *
  481. * @type {Array<AssetBulkUploadCheckItem>}
  482. * @memberof AssetBulkUploadCheckDto
  483. */
  484. 'assets': Array<AssetBulkUploadCheckItem>;
  485. }
  486. /**
  487. *
  488. * @export
  489. * @interface AssetBulkUploadCheckItem
  490. */
  491. export interface AssetBulkUploadCheckItem {
  492. /**
  493. * base64 or hex encoded sha1 hash
  494. * @type {string}
  495. * @memberof AssetBulkUploadCheckItem
  496. */
  497. 'checksum': string;
  498. /**
  499. *
  500. * @type {string}
  501. * @memberof AssetBulkUploadCheckItem
  502. */
  503. 'id': string;
  504. }
  505. /**
  506. *
  507. * @export
  508. * @interface AssetBulkUploadCheckResponseDto
  509. */
  510. export interface AssetBulkUploadCheckResponseDto {
  511. /**
  512. *
  513. * @type {Array<AssetBulkUploadCheckResult>}
  514. * @memberof AssetBulkUploadCheckResponseDto
  515. */
  516. 'results': Array<AssetBulkUploadCheckResult>;
  517. }
  518. /**
  519. *
  520. * @export
  521. * @interface AssetBulkUploadCheckResult
  522. */
  523. export interface AssetBulkUploadCheckResult {
  524. /**
  525. *
  526. * @type {string}
  527. * @memberof AssetBulkUploadCheckResult
  528. */
  529. 'action': AssetBulkUploadCheckResultActionEnum;
  530. /**
  531. *
  532. * @type {string}
  533. * @memberof AssetBulkUploadCheckResult
  534. */
  535. 'assetId'?: string;
  536. /**
  537. *
  538. * @type {string}
  539. * @memberof AssetBulkUploadCheckResult
  540. */
  541. 'id': string;
  542. /**
  543. *
  544. * @type {string}
  545. * @memberof AssetBulkUploadCheckResult
  546. */
  547. 'reason'?: AssetBulkUploadCheckResultReasonEnum;
  548. }
  549. export const AssetBulkUploadCheckResultActionEnum = {
  550. Accept: 'accept',
  551. Reject: 'reject'
  552. } as const;
  553. export type AssetBulkUploadCheckResultActionEnum = typeof AssetBulkUploadCheckResultActionEnum[keyof typeof AssetBulkUploadCheckResultActionEnum];
  554. export const AssetBulkUploadCheckResultReasonEnum = {
  555. Duplicate: 'duplicate',
  556. UnsupportedFormat: 'unsupported-format'
  557. } as const;
  558. export type AssetBulkUploadCheckResultReasonEnum = typeof AssetBulkUploadCheckResultReasonEnum[keyof typeof AssetBulkUploadCheckResultReasonEnum];
  559. /**
  560. *
  561. * @export
  562. * @interface AssetFileUploadResponseDto
  563. */
  564. export interface AssetFileUploadResponseDto {
  565. /**
  566. *
  567. * @type {boolean}
  568. * @memberof AssetFileUploadResponseDto
  569. */
  570. 'duplicate': boolean;
  571. /**
  572. *
  573. * @type {string}
  574. * @memberof AssetFileUploadResponseDto
  575. */
  576. 'id': string;
  577. }
  578. /**
  579. *
  580. * @export
  581. * @interface AssetIdsDto
  582. */
  583. export interface AssetIdsDto {
  584. /**
  585. *
  586. * @type {Array<string>}
  587. * @memberof AssetIdsDto
  588. */
  589. 'assetIds': Array<string>;
  590. }
  591. /**
  592. *
  593. * @export
  594. * @interface AssetIdsResponseDto
  595. */
  596. export interface AssetIdsResponseDto {
  597. /**
  598. *
  599. * @type {string}
  600. * @memberof AssetIdsResponseDto
  601. */
  602. 'assetId': string;
  603. /**
  604. *
  605. * @type {string}
  606. * @memberof AssetIdsResponseDto
  607. */
  608. 'error'?: AssetIdsResponseDtoErrorEnum;
  609. /**
  610. *
  611. * @type {boolean}
  612. * @memberof AssetIdsResponseDto
  613. */
  614. 'success': boolean;
  615. }
  616. export const AssetIdsResponseDtoErrorEnum = {
  617. Duplicate: 'duplicate',
  618. NoPermission: 'no_permission',
  619. NotFound: 'not_found'
  620. } as const;
  621. export type AssetIdsResponseDtoErrorEnum = typeof AssetIdsResponseDtoErrorEnum[keyof typeof AssetIdsResponseDtoErrorEnum];
  622. /**
  623. *
  624. * @export
  625. * @enum {string}
  626. */
  627. export const AssetJobName = {
  628. RegenerateThumbnail: 'regenerate-thumbnail',
  629. RefreshMetadata: 'refresh-metadata',
  630. TranscodeVideo: 'transcode-video'
  631. } as const;
  632. export type AssetJobName = typeof AssetJobName[keyof typeof AssetJobName];
  633. /**
  634. *
  635. * @export
  636. * @interface AssetJobsDto
  637. */
  638. export interface AssetJobsDto {
  639. /**
  640. *
  641. * @type {Array<string>}
  642. * @memberof AssetJobsDto
  643. */
  644. 'assetIds': Array<string>;
  645. /**
  646. *
  647. * @type {AssetJobName}
  648. * @memberof AssetJobsDto
  649. */
  650. 'name': AssetJobName;
  651. }
  652. /**
  653. *
  654. * @export
  655. * @enum {string}
  656. */
  657. export const AssetOrder = {
  658. Asc: 'asc',
  659. Desc: 'desc'
  660. } as const;
  661. export type AssetOrder = typeof AssetOrder[keyof typeof AssetOrder];
  662. /**
  663. *
  664. * @export
  665. * @interface AssetResponseDto
  666. */
  667. export interface AssetResponseDto {
  668. /**
  669. * base64 encoded sha1 hash
  670. * @type {string}
  671. * @memberof AssetResponseDto
  672. */
  673. 'checksum': string;
  674. /**
  675. *
  676. * @type {string}
  677. * @memberof AssetResponseDto
  678. */
  679. 'deviceAssetId': string;
  680. /**
  681. *
  682. * @type {string}
  683. * @memberof AssetResponseDto
  684. */
  685. 'deviceId': string;
  686. /**
  687. *
  688. * @type {string}
  689. * @memberof AssetResponseDto
  690. */
  691. 'duration': string;
  692. /**
  693. *
  694. * @type {ExifResponseDto}
  695. * @memberof AssetResponseDto
  696. */
  697. 'exifInfo'?: ExifResponseDto;
  698. /**
  699. *
  700. * @type {string}
  701. * @memberof AssetResponseDto
  702. */
  703. 'fileCreatedAt': string;
  704. /**
  705. *
  706. * @type {string}
  707. * @memberof AssetResponseDto
  708. */
  709. 'fileModifiedAt': string;
  710. /**
  711. *
  712. * @type {boolean}
  713. * @memberof AssetResponseDto
  714. */
  715. 'hasMetadata': boolean;
  716. /**
  717. *
  718. * @type {string}
  719. * @memberof AssetResponseDto
  720. */
  721. 'id': string;
  722. /**
  723. *
  724. * @type {boolean}
  725. * @memberof AssetResponseDto
  726. */
  727. 'isArchived': boolean;
  728. /**
  729. *
  730. * @type {boolean}
  731. * @memberof AssetResponseDto
  732. */
  733. 'isExternal': boolean;
  734. /**
  735. *
  736. * @type {boolean}
  737. * @memberof AssetResponseDto
  738. */
  739. 'isFavorite': boolean;
  740. /**
  741. *
  742. * @type {boolean}
  743. * @memberof AssetResponseDto
  744. */
  745. 'isOffline': boolean;
  746. /**
  747. *
  748. * @type {boolean}
  749. * @memberof AssetResponseDto
  750. */
  751. 'isReadOnly': boolean;
  752. /**
  753. *
  754. * @type {boolean}
  755. * @memberof AssetResponseDto
  756. */
  757. 'isTrashed': boolean;
  758. /**
  759. *
  760. * @type {string}
  761. * @memberof AssetResponseDto
  762. */
  763. 'libraryId': string;
  764. /**
  765. *
  766. * @type {string}
  767. * @memberof AssetResponseDto
  768. */
  769. 'livePhotoVideoId'?: string | null;
  770. /**
  771. *
  772. * @type {string}
  773. * @memberof AssetResponseDto
  774. */
  775. 'localDateTime': string;
  776. /**
  777. *
  778. * @type {string}
  779. * @memberof AssetResponseDto
  780. */
  781. 'originalFileName': string;
  782. /**
  783. *
  784. * @type {string}
  785. * @memberof AssetResponseDto
  786. */
  787. 'originalPath': string;
  788. /**
  789. *
  790. * @type {UserResponseDto}
  791. * @memberof AssetResponseDto
  792. */
  793. 'owner'?: UserResponseDto;
  794. /**
  795. *
  796. * @type {string}
  797. * @memberof AssetResponseDto
  798. */
  799. 'ownerId': string;
  800. /**
  801. *
  802. * @type {Array<PersonResponseDto>}
  803. * @memberof AssetResponseDto
  804. */
  805. 'people'?: Array<PersonResponseDto>;
  806. /**
  807. *
  808. * @type {boolean}
  809. * @memberof AssetResponseDto
  810. */
  811. 'resized': boolean;
  812. /**
  813. *
  814. * @type {SmartInfoResponseDto}
  815. * @memberof AssetResponseDto
  816. */
  817. 'smartInfo'?: SmartInfoResponseDto;
  818. /**
  819. *
  820. * @type {Array<AssetResponseDto>}
  821. * @memberof AssetResponseDto
  822. */
  823. 'stack'?: Array<AssetResponseDto>;
  824. /**
  825. *
  826. * @type {number}
  827. * @memberof AssetResponseDto
  828. */
  829. 'stackCount': number | null;
  830. /**
  831. *
  832. * @type {string}
  833. * @memberof AssetResponseDto
  834. */
  835. 'stackParentId'?: string | null;
  836. /**
  837. *
  838. * @type {Array<TagResponseDto>}
  839. * @memberof AssetResponseDto
  840. */
  841. 'tags'?: Array<TagResponseDto>;
  842. /**
  843. *
  844. * @type {string}
  845. * @memberof AssetResponseDto
  846. */
  847. 'thumbhash': string | null;
  848. /**
  849. *
  850. * @type {AssetTypeEnum}
  851. * @memberof AssetResponseDto
  852. */
  853. 'type': AssetTypeEnum;
  854. /**
  855. *
  856. * @type {string}
  857. * @memberof AssetResponseDto
  858. */
  859. 'updatedAt': string;
  860. }
  861. /**
  862. *
  863. * @export
  864. * @interface AssetStatsResponseDto
  865. */
  866. export interface AssetStatsResponseDto {
  867. /**
  868. *
  869. * @type {number}
  870. * @memberof AssetStatsResponseDto
  871. */
  872. 'images': number;
  873. /**
  874. *
  875. * @type {number}
  876. * @memberof AssetStatsResponseDto
  877. */
  878. 'total': number;
  879. /**
  880. *
  881. * @type {number}
  882. * @memberof AssetStatsResponseDto
  883. */
  884. 'videos': number;
  885. }
  886. /**
  887. *
  888. * @export
  889. * @enum {string}
  890. */
  891. export const AssetTypeEnum = {
  892. Image: 'IMAGE',
  893. Video: 'VIDEO',
  894. Audio: 'AUDIO',
  895. Other: 'OTHER'
  896. } as const;
  897. export type AssetTypeEnum = typeof AssetTypeEnum[keyof typeof AssetTypeEnum];
  898. /**
  899. *
  900. * @export
  901. * @enum {string}
  902. */
  903. export const AudioCodec = {
  904. Mp3: 'mp3',
  905. Aac: 'aac',
  906. Libopus: 'libopus'
  907. } as const;
  908. export type AudioCodec = typeof AudioCodec[keyof typeof AudioCodec];
  909. /**
  910. *
  911. * @export
  912. * @interface AuditDeletesResponseDto
  913. */
  914. export interface AuditDeletesResponseDto {
  915. /**
  916. *
  917. * @type {Array<string>}
  918. * @memberof AuditDeletesResponseDto
  919. */
  920. 'ids': Array<string>;
  921. /**
  922. *
  923. * @type {boolean}
  924. * @memberof AuditDeletesResponseDto
  925. */
  926. 'needsFullSync': boolean;
  927. }
  928. /**
  929. *
  930. * @export
  931. * @interface AuthDeviceResponseDto
  932. */
  933. export interface AuthDeviceResponseDto {
  934. /**
  935. *
  936. * @type {string}
  937. * @memberof AuthDeviceResponseDto
  938. */
  939. 'createdAt': string;
  940. /**
  941. *
  942. * @type {boolean}
  943. * @memberof AuthDeviceResponseDto
  944. */
  945. 'current': boolean;
  946. /**
  947. *
  948. * @type {string}
  949. * @memberof AuthDeviceResponseDto
  950. */
  951. 'deviceOS': string;
  952. /**
  953. *
  954. * @type {string}
  955. * @memberof AuthDeviceResponseDto
  956. */
  957. 'deviceType': string;
  958. /**
  959. *
  960. * @type {string}
  961. * @memberof AuthDeviceResponseDto
  962. */
  963. 'id': string;
  964. /**
  965. *
  966. * @type {string}
  967. * @memberof AuthDeviceResponseDto
  968. */
  969. 'updatedAt': string;
  970. }
  971. /**
  972. *
  973. * @export
  974. * @interface BulkIdResponseDto
  975. */
  976. export interface BulkIdResponseDto {
  977. /**
  978. *
  979. * @type {string}
  980. * @memberof BulkIdResponseDto
  981. */
  982. 'error'?: BulkIdResponseDtoErrorEnum;
  983. /**
  984. *
  985. * @type {string}
  986. * @memberof BulkIdResponseDto
  987. */
  988. 'id': string;
  989. /**
  990. *
  991. * @type {boolean}
  992. * @memberof BulkIdResponseDto
  993. */
  994. 'success': boolean;
  995. }
  996. export const BulkIdResponseDtoErrorEnum = {
  997. Duplicate: 'duplicate',
  998. NoPermission: 'no_permission',
  999. NotFound: 'not_found',
  1000. Unknown: 'unknown'
  1001. } as const;
  1002. export type BulkIdResponseDtoErrorEnum = typeof BulkIdResponseDtoErrorEnum[keyof typeof BulkIdResponseDtoErrorEnum];
  1003. /**
  1004. *
  1005. * @export
  1006. * @interface BulkIdsDto
  1007. */
  1008. export interface BulkIdsDto {
  1009. /**
  1010. *
  1011. * @type {Array<string>}
  1012. * @memberof BulkIdsDto
  1013. */
  1014. 'ids': Array<string>;
  1015. }
  1016. /**
  1017. *
  1018. * @export
  1019. * @interface CLIPConfig
  1020. */
  1021. export interface CLIPConfig {
  1022. /**
  1023. *
  1024. * @type {boolean}
  1025. * @memberof CLIPConfig
  1026. */
  1027. 'enabled': boolean;
  1028. /**
  1029. *
  1030. * @type {CLIPMode}
  1031. * @memberof CLIPConfig
  1032. */
  1033. 'mode'?: CLIPMode;
  1034. /**
  1035. *
  1036. * @type {string}
  1037. * @memberof CLIPConfig
  1038. */
  1039. 'modelName': string;
  1040. /**
  1041. *
  1042. * @type {ModelType}
  1043. * @memberof CLIPConfig
  1044. */
  1045. 'modelType'?: ModelType;
  1046. }
  1047. /**
  1048. *
  1049. * @export
  1050. * @enum {string}
  1051. */
  1052. export const CLIPMode = {
  1053. Vision: 'vision',
  1054. Text: 'text'
  1055. } as const;
  1056. export type CLIPMode = typeof CLIPMode[keyof typeof CLIPMode];
  1057. /**
  1058. *
  1059. * @export
  1060. * @enum {string}
  1061. */
  1062. export const CQMode = {
  1063. Auto: 'auto',
  1064. Cqp: 'cqp',
  1065. Icq: 'icq'
  1066. } as const;
  1067. export type CQMode = typeof CQMode[keyof typeof CQMode];
  1068. /**
  1069. *
  1070. * @export
  1071. * @interface ChangePasswordDto
  1072. */
  1073. export interface ChangePasswordDto {
  1074. /**
  1075. *
  1076. * @type {string}
  1077. * @memberof ChangePasswordDto
  1078. */
  1079. 'newPassword': string;
  1080. /**
  1081. *
  1082. * @type {string}
  1083. * @memberof ChangePasswordDto
  1084. */
  1085. 'password': string;
  1086. }
  1087. /**
  1088. *
  1089. * @export
  1090. * @interface CheckExistingAssetsDto
  1091. */
  1092. export interface CheckExistingAssetsDto {
  1093. /**
  1094. *
  1095. * @type {Array<string>}
  1096. * @memberof CheckExistingAssetsDto
  1097. */
  1098. 'deviceAssetIds': Array<string>;
  1099. /**
  1100. *
  1101. * @type {string}
  1102. * @memberof CheckExistingAssetsDto
  1103. */
  1104. 'deviceId': string;
  1105. }
  1106. /**
  1107. *
  1108. * @export
  1109. * @interface CheckExistingAssetsResponseDto
  1110. */
  1111. export interface CheckExistingAssetsResponseDto {
  1112. /**
  1113. *
  1114. * @type {Array<string>}
  1115. * @memberof CheckExistingAssetsResponseDto
  1116. */
  1117. 'existingIds': Array<string>;
  1118. }
  1119. /**
  1120. *
  1121. * @export
  1122. * @interface ClassificationConfig
  1123. */
  1124. export interface ClassificationConfig {
  1125. /**
  1126. *
  1127. * @type {boolean}
  1128. * @memberof ClassificationConfig
  1129. */
  1130. 'enabled': boolean;
  1131. /**
  1132. *
  1133. * @type {number}
  1134. * @memberof ClassificationConfig
  1135. */
  1136. 'minScore': number;
  1137. /**
  1138. *
  1139. * @type {string}
  1140. * @memberof ClassificationConfig
  1141. */
  1142. 'modelName': string;
  1143. /**
  1144. *
  1145. * @type {ModelType}
  1146. * @memberof ClassificationConfig
  1147. */
  1148. 'modelType'?: ModelType;
  1149. }
  1150. /**
  1151. *
  1152. * @export
  1153. * @enum {string}
  1154. */
  1155. export const Colorspace = {
  1156. Srgb: 'srgb',
  1157. P3: 'p3'
  1158. } as const;
  1159. export type Colorspace = typeof Colorspace[keyof typeof Colorspace];
  1160. /**
  1161. *
  1162. * @export
  1163. * @interface CreateAlbumDto
  1164. */
  1165. export interface CreateAlbumDto {
  1166. /**
  1167. *
  1168. * @type {string}
  1169. * @memberof CreateAlbumDto
  1170. */
  1171. 'albumName': string;
  1172. /**
  1173. *
  1174. * @type {Array<string>}
  1175. * @memberof CreateAlbumDto
  1176. */
  1177. 'assetIds'?: Array<string>;
  1178. /**
  1179. *
  1180. * @type {string}
  1181. * @memberof CreateAlbumDto
  1182. */
  1183. 'description'?: string;
  1184. /**
  1185. *
  1186. * @type {Array<string>}
  1187. * @memberof CreateAlbumDto
  1188. */
  1189. 'sharedWithUserIds'?: Array<string>;
  1190. }
  1191. /**
  1192. *
  1193. * @export
  1194. * @interface CreateLibraryDto
  1195. */
  1196. export interface CreateLibraryDto {
  1197. /**
  1198. *
  1199. * @type {Array<string>}
  1200. * @memberof CreateLibraryDto
  1201. */
  1202. 'exclusionPatterns'?: Array<string>;
  1203. /**
  1204. *
  1205. * @type {Array<string>}
  1206. * @memberof CreateLibraryDto
  1207. */
  1208. 'importPaths'?: Array<string>;
  1209. /**
  1210. *
  1211. * @type {boolean}
  1212. * @memberof CreateLibraryDto
  1213. */
  1214. 'isVisible'?: boolean;
  1215. /**
  1216. *
  1217. * @type {string}
  1218. * @memberof CreateLibraryDto
  1219. */
  1220. 'name'?: string;
  1221. /**
  1222. *
  1223. * @type {LibraryType}
  1224. * @memberof CreateLibraryDto
  1225. */
  1226. 'type': LibraryType;
  1227. }
  1228. /**
  1229. *
  1230. * @export
  1231. * @interface CreateProfileImageResponseDto
  1232. */
  1233. export interface CreateProfileImageResponseDto {
  1234. /**
  1235. *
  1236. * @type {string}
  1237. * @memberof CreateProfileImageResponseDto
  1238. */
  1239. 'profileImagePath': string;
  1240. /**
  1241. *
  1242. * @type {string}
  1243. * @memberof CreateProfileImageResponseDto
  1244. */
  1245. 'userId': string;
  1246. }
  1247. /**
  1248. *
  1249. * @export
  1250. * @interface CreateTagDto
  1251. */
  1252. export interface CreateTagDto {
  1253. /**
  1254. *
  1255. * @type {string}
  1256. * @memberof CreateTagDto
  1257. */
  1258. 'name': string;
  1259. /**
  1260. *
  1261. * @type {TagTypeEnum}
  1262. * @memberof CreateTagDto
  1263. */
  1264. 'type': TagTypeEnum;
  1265. }
  1266. /**
  1267. *
  1268. * @export
  1269. * @interface CreateUserDto
  1270. */
  1271. export interface CreateUserDto {
  1272. /**
  1273. *
  1274. * @type {string}
  1275. * @memberof CreateUserDto
  1276. */
  1277. 'email': string;
  1278. /**
  1279. *
  1280. * @type {string}
  1281. * @memberof CreateUserDto
  1282. */
  1283. 'externalPath'?: string | null;
  1284. /**
  1285. *
  1286. * @type {boolean}
  1287. * @memberof CreateUserDto
  1288. */
  1289. 'memoriesEnabled'?: boolean;
  1290. /**
  1291. *
  1292. * @type {string}
  1293. * @memberof CreateUserDto
  1294. */
  1295. 'name': string;
  1296. /**
  1297. *
  1298. * @type {string}
  1299. * @memberof CreateUserDto
  1300. */
  1301. 'password': string;
  1302. /**
  1303. *
  1304. * @type {string}
  1305. * @memberof CreateUserDto
  1306. */
  1307. 'storageLabel'?: string | null;
  1308. }
  1309. /**
  1310. *
  1311. * @export
  1312. * @interface CuratedLocationsResponseDto
  1313. */
  1314. export interface CuratedLocationsResponseDto {
  1315. /**
  1316. *
  1317. * @type {string}
  1318. * @memberof CuratedLocationsResponseDto
  1319. */
  1320. 'city': string;
  1321. /**
  1322. *
  1323. * @type {string}
  1324. * @memberof CuratedLocationsResponseDto
  1325. */
  1326. 'deviceAssetId': string;
  1327. /**
  1328. *
  1329. * @type {string}
  1330. * @memberof CuratedLocationsResponseDto
  1331. */
  1332. 'deviceId': string;
  1333. /**
  1334. *
  1335. * @type {string}
  1336. * @memberof CuratedLocationsResponseDto
  1337. */
  1338. 'id': string;
  1339. /**
  1340. *
  1341. * @type {string}
  1342. * @memberof CuratedLocationsResponseDto
  1343. */
  1344. 'resizePath': string;
  1345. }
  1346. /**
  1347. *
  1348. * @export
  1349. * @interface CuratedObjectsResponseDto
  1350. */
  1351. export interface CuratedObjectsResponseDto {
  1352. /**
  1353. *
  1354. * @type {string}
  1355. * @memberof CuratedObjectsResponseDto
  1356. */
  1357. 'deviceAssetId': string;
  1358. /**
  1359. *
  1360. * @type {string}
  1361. * @memberof CuratedObjectsResponseDto
  1362. */
  1363. 'deviceId': string;
  1364. /**
  1365. *
  1366. * @type {string}
  1367. * @memberof CuratedObjectsResponseDto
  1368. */
  1369. 'id': string;
  1370. /**
  1371. *
  1372. * @type {string}
  1373. * @memberof CuratedObjectsResponseDto
  1374. */
  1375. 'object': string;
  1376. /**
  1377. *
  1378. * @type {string}
  1379. * @memberof CuratedObjectsResponseDto
  1380. */
  1381. 'resizePath': string;
  1382. }
  1383. /**
  1384. *
  1385. * @export
  1386. * @interface DownloadArchiveInfo
  1387. */
  1388. export interface DownloadArchiveInfo {
  1389. /**
  1390. *
  1391. * @type {Array<string>}
  1392. * @memberof DownloadArchiveInfo
  1393. */
  1394. 'assetIds': Array<string>;
  1395. /**
  1396. *
  1397. * @type {number}
  1398. * @memberof DownloadArchiveInfo
  1399. */
  1400. 'size': number;
  1401. }
  1402. /**
  1403. *
  1404. * @export
  1405. * @interface DownloadInfoDto
  1406. */
  1407. export interface DownloadInfoDto {
  1408. /**
  1409. *
  1410. * @type {string}
  1411. * @memberof DownloadInfoDto
  1412. */
  1413. 'albumId'?: string;
  1414. /**
  1415. *
  1416. * @type {number}
  1417. * @memberof DownloadInfoDto
  1418. */
  1419. 'archiveSize'?: number;
  1420. /**
  1421. *
  1422. * @type {Array<string>}
  1423. * @memberof DownloadInfoDto
  1424. */
  1425. 'assetIds'?: Array<string>;
  1426. /**
  1427. *
  1428. * @type {string}
  1429. * @memberof DownloadInfoDto
  1430. */
  1431. 'userId'?: string;
  1432. }
  1433. /**
  1434. *
  1435. * @export
  1436. * @interface DownloadResponseDto
  1437. */
  1438. export interface DownloadResponseDto {
  1439. /**
  1440. *
  1441. * @type {Array<DownloadArchiveInfo>}
  1442. * @memberof DownloadResponseDto
  1443. */
  1444. 'archives': Array<DownloadArchiveInfo>;
  1445. /**
  1446. *
  1447. * @type {number}
  1448. * @memberof DownloadResponseDto
  1449. */
  1450. 'totalSize': number;
  1451. }
  1452. /**
  1453. *
  1454. * @export
  1455. * @enum {string}
  1456. */
  1457. export const EntityType = {
  1458. Asset: 'ASSET',
  1459. Album: 'ALBUM'
  1460. } as const;
  1461. export type EntityType = typeof EntityType[keyof typeof EntityType];
  1462. /**
  1463. *
  1464. * @export
  1465. * @interface ExifResponseDto
  1466. */
  1467. export interface ExifResponseDto {
  1468. /**
  1469. *
  1470. * @type {string}
  1471. * @memberof ExifResponseDto
  1472. */
  1473. 'city'?: string | null;
  1474. /**
  1475. *
  1476. * @type {string}
  1477. * @memberof ExifResponseDto
  1478. */
  1479. 'country'?: string | null;
  1480. /**
  1481. *
  1482. * @type {string}
  1483. * @memberof ExifResponseDto
  1484. */
  1485. 'dateTimeOriginal'?: string | null;
  1486. /**
  1487. *
  1488. * @type {string}
  1489. * @memberof ExifResponseDto
  1490. */
  1491. 'description'?: string | null;
  1492. /**
  1493. *
  1494. * @type {number}
  1495. * @memberof ExifResponseDto
  1496. */
  1497. 'exifImageHeight'?: number | null;
  1498. /**
  1499. *
  1500. * @type {number}
  1501. * @memberof ExifResponseDto
  1502. */
  1503. 'exifImageWidth'?: number | null;
  1504. /**
  1505. *
  1506. * @type {string}
  1507. * @memberof ExifResponseDto
  1508. */
  1509. 'exposureTime'?: string | null;
  1510. /**
  1511. *
  1512. * @type {number}
  1513. * @memberof ExifResponseDto
  1514. */
  1515. 'fNumber'?: number | null;
  1516. /**
  1517. *
  1518. * @type {number}
  1519. * @memberof ExifResponseDto
  1520. */
  1521. 'fileSizeInByte'?: number | null;
  1522. /**
  1523. *
  1524. * @type {number}
  1525. * @memberof ExifResponseDto
  1526. */
  1527. 'focalLength'?: number | null;
  1528. /**
  1529. *
  1530. * @type {number}
  1531. * @memberof ExifResponseDto
  1532. */
  1533. 'iso'?: number | null;
  1534. /**
  1535. *
  1536. * @type {number}
  1537. * @memberof ExifResponseDto
  1538. */
  1539. 'latitude'?: number | null;
  1540. /**
  1541. *
  1542. * @type {string}
  1543. * @memberof ExifResponseDto
  1544. */
  1545. 'lensModel'?: string | null;
  1546. /**
  1547. *
  1548. * @type {number}
  1549. * @memberof ExifResponseDto
  1550. */
  1551. 'longitude'?: number | null;
  1552. /**
  1553. *
  1554. * @type {string}
  1555. * @memberof ExifResponseDto
  1556. */
  1557. 'make'?: string | null;
  1558. /**
  1559. *
  1560. * @type {string}
  1561. * @memberof ExifResponseDto
  1562. */
  1563. 'model'?: string | null;
  1564. /**
  1565. *
  1566. * @type {string}
  1567. * @memberof ExifResponseDto
  1568. */
  1569. 'modifyDate'?: string | null;
  1570. /**
  1571. *
  1572. * @type {string}
  1573. * @memberof ExifResponseDto
  1574. */
  1575. 'orientation'?: string | null;
  1576. /**
  1577. *
  1578. * @type {string}
  1579. * @memberof ExifResponseDto
  1580. */
  1581. 'projectionType'?: string | null;
  1582. /**
  1583. *
  1584. * @type {string}
  1585. * @memberof ExifResponseDto
  1586. */
  1587. 'state'?: string | null;
  1588. /**
  1589. *
  1590. * @type {string}
  1591. * @memberof ExifResponseDto
  1592. */
  1593. 'timeZone'?: string | null;
  1594. }
  1595. /**
  1596. *
  1597. * @export
  1598. * @interface FileChecksumDto
  1599. */
  1600. export interface FileChecksumDto {
  1601. /**
  1602. *
  1603. * @type {Array<string>}
  1604. * @memberof FileChecksumDto
  1605. */
  1606. 'filenames': Array<string>;
  1607. }
  1608. /**
  1609. *
  1610. * @export
  1611. * @interface FileChecksumResponseDto
  1612. */
  1613. export interface FileChecksumResponseDto {
  1614. /**
  1615. *
  1616. * @type {string}
  1617. * @memberof FileChecksumResponseDto
  1618. */
  1619. 'checksum': string;
  1620. /**
  1621. *
  1622. * @type {string}
  1623. * @memberof FileChecksumResponseDto
  1624. */
  1625. 'filename': string;
  1626. }
  1627. /**
  1628. *
  1629. * @export
  1630. * @interface FileReportDto
  1631. */
  1632. export interface FileReportDto {
  1633. /**
  1634. *
  1635. * @type {Array<string>}
  1636. * @memberof FileReportDto
  1637. */
  1638. 'extras': Array<string>;
  1639. /**
  1640. *
  1641. * @type {Array<FileReportItemDto>}
  1642. * @memberof FileReportDto
  1643. */
  1644. 'orphans': Array<FileReportItemDto>;
  1645. }
  1646. /**
  1647. *
  1648. * @export
  1649. * @interface FileReportFixDto
  1650. */
  1651. export interface FileReportFixDto {
  1652. /**
  1653. *
  1654. * @type {Array<FileReportItemDto>}
  1655. * @memberof FileReportFixDto
  1656. */
  1657. 'items': Array<FileReportItemDto>;
  1658. }
  1659. /**
  1660. *
  1661. * @export
  1662. * @interface FileReportItemDto
  1663. */
  1664. export interface FileReportItemDto {
  1665. /**
  1666. *
  1667. * @type {string}
  1668. * @memberof FileReportItemDto
  1669. */
  1670. 'checksum'?: string;
  1671. /**
  1672. *
  1673. * @type {string}
  1674. * @memberof FileReportItemDto
  1675. */
  1676. 'entityId': string;
  1677. /**
  1678. *
  1679. * @type {PathEntityType}
  1680. * @memberof FileReportItemDto
  1681. */
  1682. 'entityType': PathEntityType;
  1683. /**
  1684. *
  1685. * @type {PathType}
  1686. * @memberof FileReportItemDto
  1687. */
  1688. 'pathType': PathType;
  1689. /**
  1690. *
  1691. * @type {string}
  1692. * @memberof FileReportItemDto
  1693. */
  1694. 'pathValue': string;
  1695. }
  1696. /**
  1697. *
  1698. * @export
  1699. * @enum {string}
  1700. */
  1701. export const JobCommand = {
  1702. Start: 'start',
  1703. Pause: 'pause',
  1704. Resume: 'resume',
  1705. Empty: 'empty'
  1706. } as const;
  1707. export type JobCommand = typeof JobCommand[keyof typeof JobCommand];
  1708. /**
  1709. *
  1710. * @export
  1711. * @interface JobCommandDto
  1712. */
  1713. export interface JobCommandDto {
  1714. /**
  1715. *
  1716. * @type {JobCommand}
  1717. * @memberof JobCommandDto
  1718. */
  1719. 'command': JobCommand;
  1720. /**
  1721. *
  1722. * @type {boolean}
  1723. * @memberof JobCommandDto
  1724. */
  1725. 'force': boolean;
  1726. }
  1727. /**
  1728. *
  1729. * @export
  1730. * @interface JobCountsDto
  1731. */
  1732. export interface JobCountsDto {
  1733. /**
  1734. *
  1735. * @type {number}
  1736. * @memberof JobCountsDto
  1737. */
  1738. 'active': number;
  1739. /**
  1740. *
  1741. * @type {number}
  1742. * @memberof JobCountsDto
  1743. */
  1744. 'completed': number;
  1745. /**
  1746. *
  1747. * @type {number}
  1748. * @memberof JobCountsDto
  1749. */
  1750. 'delayed': number;
  1751. /**
  1752. *
  1753. * @type {number}
  1754. * @memberof JobCountsDto
  1755. */
  1756. 'failed': number;
  1757. /**
  1758. *
  1759. * @type {number}
  1760. * @memberof JobCountsDto
  1761. */
  1762. 'paused': number;
  1763. /**
  1764. *
  1765. * @type {number}
  1766. * @memberof JobCountsDto
  1767. */
  1768. 'waiting': number;
  1769. }
  1770. /**
  1771. *
  1772. * @export
  1773. * @enum {string}
  1774. */
  1775. export const JobName = {
  1776. ThumbnailGeneration: 'thumbnailGeneration',
  1777. MetadataExtraction: 'metadataExtraction',
  1778. VideoConversion: 'videoConversion',
  1779. ObjectTagging: 'objectTagging',
  1780. RecognizeFaces: 'recognizeFaces',
  1781. ClipEncoding: 'clipEncoding',
  1782. BackgroundTask: 'backgroundTask',
  1783. StorageTemplateMigration: 'storageTemplateMigration',
  1784. Migration: 'migration',
  1785. Search: 'search',
  1786. Sidecar: 'sidecar',
  1787. Library: 'library'
  1788. } as const;
  1789. export type JobName = typeof JobName[keyof typeof JobName];
  1790. /**
  1791. *
  1792. * @export
  1793. * @interface JobSettingsDto
  1794. */
  1795. export interface JobSettingsDto {
  1796. /**
  1797. *
  1798. * @type {number}
  1799. * @memberof JobSettingsDto
  1800. */
  1801. 'concurrency': number;
  1802. }
  1803. /**
  1804. *
  1805. * @export
  1806. * @interface JobStatusDto
  1807. */
  1808. export interface JobStatusDto {
  1809. /**
  1810. *
  1811. * @type {JobCountsDto}
  1812. * @memberof JobStatusDto
  1813. */
  1814. 'jobCounts': JobCountsDto;
  1815. /**
  1816. *
  1817. * @type {QueueStatusDto}
  1818. * @memberof JobStatusDto
  1819. */
  1820. 'queueStatus': QueueStatusDto;
  1821. }
  1822. /**
  1823. *
  1824. * @export
  1825. * @interface LibraryResponseDto
  1826. */
  1827. export interface LibraryResponseDto {
  1828. /**
  1829. *
  1830. * @type {number}
  1831. * @memberof LibraryResponseDto
  1832. */
  1833. 'assetCount': number;
  1834. /**
  1835. *
  1836. * @type {string}
  1837. * @memberof LibraryResponseDto
  1838. */
  1839. 'createdAt': string;
  1840. /**
  1841. *
  1842. * @type {Array<string>}
  1843. * @memberof LibraryResponseDto
  1844. */
  1845. 'exclusionPatterns': Array<string>;
  1846. /**
  1847. *
  1848. * @type {string}
  1849. * @memberof LibraryResponseDto
  1850. */
  1851. 'id': string;
  1852. /**
  1853. *
  1854. * @type {Array<string>}
  1855. * @memberof LibraryResponseDto
  1856. */
  1857. 'importPaths': Array<string>;
  1858. /**
  1859. *
  1860. * @type {string}
  1861. * @memberof LibraryResponseDto
  1862. */
  1863. 'name': string;
  1864. /**
  1865. *
  1866. * @type {string}
  1867. * @memberof LibraryResponseDto
  1868. */
  1869. 'ownerId': string;
  1870. /**
  1871. *
  1872. * @type {string}
  1873. * @memberof LibraryResponseDto
  1874. */
  1875. 'refreshedAt': string | null;
  1876. /**
  1877. *
  1878. * @type {LibraryType}
  1879. * @memberof LibraryResponseDto
  1880. */
  1881. 'type': LibraryType;
  1882. /**
  1883. *
  1884. * @type {string}
  1885. * @memberof LibraryResponseDto
  1886. */
  1887. 'updatedAt': string;
  1888. }
  1889. /**
  1890. *
  1891. * @export
  1892. * @interface LibraryStatsResponseDto
  1893. */
  1894. export interface LibraryStatsResponseDto {
  1895. /**
  1896. *
  1897. * @type {number}
  1898. * @memberof LibraryStatsResponseDto
  1899. */
  1900. 'photos': number;
  1901. /**
  1902. *
  1903. * @type {number}
  1904. * @memberof LibraryStatsResponseDto
  1905. */
  1906. 'total': number;
  1907. /**
  1908. *
  1909. * @type {number}
  1910. * @memberof LibraryStatsResponseDto
  1911. */
  1912. 'usage': number;
  1913. /**
  1914. *
  1915. * @type {number}
  1916. * @memberof LibraryStatsResponseDto
  1917. */
  1918. 'videos': number;
  1919. }
  1920. /**
  1921. *
  1922. * @export
  1923. * @enum {string}
  1924. */
  1925. export const LibraryType = {
  1926. Upload: 'UPLOAD',
  1927. External: 'EXTERNAL'
  1928. } as const;
  1929. export type LibraryType = typeof LibraryType[keyof typeof LibraryType];
  1930. /**
  1931. *
  1932. * @export
  1933. * @interface LoginCredentialDto
  1934. */
  1935. export interface LoginCredentialDto {
  1936. /**
  1937. *
  1938. * @type {string}
  1939. * @memberof LoginCredentialDto
  1940. */
  1941. 'email': string;
  1942. /**
  1943. *
  1944. * @type {string}
  1945. * @memberof LoginCredentialDto
  1946. */
  1947. 'password': string;
  1948. }
  1949. /**
  1950. *
  1951. * @export
  1952. * @interface LoginResponseDto
  1953. */
  1954. export interface LoginResponseDto {
  1955. /**
  1956. *
  1957. * @type {string}
  1958. * @memberof LoginResponseDto
  1959. */
  1960. 'accessToken': string;
  1961. /**
  1962. *
  1963. * @type {boolean}
  1964. * @memberof LoginResponseDto
  1965. */
  1966. 'isAdmin': boolean;
  1967. /**
  1968. *
  1969. * @type {string}
  1970. * @memberof LoginResponseDto
  1971. */
  1972. 'name': string;
  1973. /**
  1974. *
  1975. * @type {string}
  1976. * @memberof LoginResponseDto
  1977. */
  1978. 'profileImagePath': string;
  1979. /**
  1980. *
  1981. * @type {boolean}
  1982. * @memberof LoginResponseDto
  1983. */
  1984. 'shouldChangePassword': boolean;
  1985. /**
  1986. *
  1987. * @type {string}
  1988. * @memberof LoginResponseDto
  1989. */
  1990. 'userEmail': string;
  1991. /**
  1992. *
  1993. * @type {string}
  1994. * @memberof LoginResponseDto
  1995. */
  1996. 'userId': string;
  1997. }
  1998. /**
  1999. *
  2000. * @export
  2001. * @interface LogoutResponseDto
  2002. */
  2003. export interface LogoutResponseDto {
  2004. /**
  2005. *
  2006. * @type {string}
  2007. * @memberof LogoutResponseDto
  2008. */
  2009. 'redirectUri': string;
  2010. /**
  2011. *
  2012. * @type {boolean}
  2013. * @memberof LogoutResponseDto
  2014. */
  2015. 'successful': boolean;
  2016. }
  2017. /**
  2018. *
  2019. * @export
  2020. * @interface MapMarkerResponseDto
  2021. */
  2022. export interface MapMarkerResponseDto {
  2023. /**
  2024. *
  2025. * @type {string}
  2026. * @memberof MapMarkerResponseDto
  2027. */
  2028. 'id': string;
  2029. /**
  2030. *
  2031. * @type {number}
  2032. * @memberof MapMarkerResponseDto
  2033. */
  2034. 'lat': number;
  2035. /**
  2036. *
  2037. * @type {number}
  2038. * @memberof MapMarkerResponseDto
  2039. */
  2040. 'lon': number;
  2041. }
  2042. /**
  2043. *
  2044. * @export
  2045. * @enum {string}
  2046. */
  2047. export const MapTheme = {
  2048. Light: 'light',
  2049. Dark: 'dark'
  2050. } as const;
  2051. export type MapTheme = typeof MapTheme[keyof typeof MapTheme];
  2052. /**
  2053. *
  2054. * @export
  2055. * @interface MemoryLaneResponseDto
  2056. */
  2057. export interface MemoryLaneResponseDto {
  2058. /**
  2059. *
  2060. * @type {Array<AssetResponseDto>}
  2061. * @memberof MemoryLaneResponseDto
  2062. */
  2063. 'assets': Array<AssetResponseDto>;
  2064. /**
  2065. *
  2066. * @type {string}
  2067. * @memberof MemoryLaneResponseDto
  2068. */
  2069. 'title': string;
  2070. }
  2071. /**
  2072. *
  2073. * @export
  2074. * @interface MergePersonDto
  2075. */
  2076. export interface MergePersonDto {
  2077. /**
  2078. *
  2079. * @type {Array<string>}
  2080. * @memberof MergePersonDto
  2081. */
  2082. 'ids': Array<string>;
  2083. }
  2084. /**
  2085. *
  2086. * @export
  2087. * @enum {string}
  2088. */
  2089. export const ModelType = {
  2090. ImageClassification: 'image-classification',
  2091. FacialRecognition: 'facial-recognition',
  2092. Clip: 'clip'
  2093. } as const;
  2094. export type ModelType = typeof ModelType[keyof typeof ModelType];
  2095. /**
  2096. *
  2097. * @export
  2098. * @interface OAuthAuthorizeResponseDto
  2099. */
  2100. export interface OAuthAuthorizeResponseDto {
  2101. /**
  2102. *
  2103. * @type {string}
  2104. * @memberof OAuthAuthorizeResponseDto
  2105. */
  2106. 'url': string;
  2107. }
  2108. /**
  2109. *
  2110. * @export
  2111. * @interface OAuthCallbackDto
  2112. */
  2113. export interface OAuthCallbackDto {
  2114. /**
  2115. *
  2116. * @type {string}
  2117. * @memberof OAuthCallbackDto
  2118. */
  2119. 'url': string;
  2120. }
  2121. /**
  2122. *
  2123. * @export
  2124. * @interface OAuthConfigDto
  2125. */
  2126. export interface OAuthConfigDto {
  2127. /**
  2128. *
  2129. * @type {string}
  2130. * @memberof OAuthConfigDto
  2131. */
  2132. 'redirectUri': string;
  2133. }
  2134. /**
  2135. *
  2136. * @export
  2137. * @interface OAuthConfigResponseDto
  2138. */
  2139. export interface OAuthConfigResponseDto {
  2140. /**
  2141. *
  2142. * @type {boolean}
  2143. * @memberof OAuthConfigResponseDto
  2144. */
  2145. 'autoLaunch'?: boolean;
  2146. /**
  2147. *
  2148. * @type {string}
  2149. * @memberof OAuthConfigResponseDto
  2150. */
  2151. 'buttonText'?: string;
  2152. /**
  2153. *
  2154. * @type {boolean}
  2155. * @memberof OAuthConfigResponseDto
  2156. */
  2157. 'enabled': boolean;
  2158. /**
  2159. *
  2160. * @type {boolean}
  2161. * @memberof OAuthConfigResponseDto
  2162. */
  2163. 'passwordLoginEnabled': boolean;
  2164. /**
  2165. *
  2166. * @type {string}
  2167. * @memberof OAuthConfigResponseDto
  2168. */
  2169. 'url'?: string;
  2170. }
  2171. /**
  2172. *
  2173. * @export
  2174. * @interface PartnerResponseDto
  2175. */
  2176. export interface PartnerResponseDto {
  2177. /**
  2178. *
  2179. * @type {UserAvatarColor}
  2180. * @memberof PartnerResponseDto
  2181. */
  2182. 'avatarColor': UserAvatarColor;
  2183. /**
  2184. *
  2185. * @type {string}
  2186. * @memberof PartnerResponseDto
  2187. */
  2188. 'createdAt': string;
  2189. /**
  2190. *
  2191. * @type {string}
  2192. * @memberof PartnerResponseDto
  2193. */
  2194. 'deletedAt': string | null;
  2195. /**
  2196. *
  2197. * @type {string}
  2198. * @memberof PartnerResponseDto
  2199. */
  2200. 'email': string;
  2201. /**
  2202. *
  2203. * @type {string}
  2204. * @memberof PartnerResponseDto
  2205. */
  2206. 'externalPath': string | null;
  2207. /**
  2208. *
  2209. * @type {string}
  2210. * @memberof PartnerResponseDto
  2211. */
  2212. 'id': string;
  2213. /**
  2214. *
  2215. * @type {boolean}
  2216. * @memberof PartnerResponseDto
  2217. */
  2218. 'inTimeline'?: boolean;
  2219. /**
  2220. *
  2221. * @type {boolean}
  2222. * @memberof PartnerResponseDto
  2223. */
  2224. 'isAdmin': boolean;
  2225. /**
  2226. *
  2227. * @type {boolean}
  2228. * @memberof PartnerResponseDto
  2229. */
  2230. 'memoriesEnabled'?: boolean;
  2231. /**
  2232. *
  2233. * @type {string}
  2234. * @memberof PartnerResponseDto
  2235. */
  2236. 'name': string;
  2237. /**
  2238. *
  2239. * @type {string}
  2240. * @memberof PartnerResponseDto
  2241. */
  2242. 'oauthId': string;
  2243. /**
  2244. *
  2245. * @type {string}
  2246. * @memberof PartnerResponseDto
  2247. */
  2248. 'profileImagePath': string;
  2249. /**
  2250. *
  2251. * @type {boolean}
  2252. * @memberof PartnerResponseDto
  2253. */
  2254. 'shouldChangePassword': boolean;
  2255. /**
  2256. *
  2257. * @type {string}
  2258. * @memberof PartnerResponseDto
  2259. */
  2260. 'storageLabel': string | null;
  2261. /**
  2262. *
  2263. * @type {string}
  2264. * @memberof PartnerResponseDto
  2265. */
  2266. 'updatedAt': string;
  2267. }
  2268. /**
  2269. *
  2270. * @export
  2271. * @enum {string}
  2272. */
  2273. export const PathEntityType = {
  2274. Asset: 'asset',
  2275. Person: 'person',
  2276. User: 'user'
  2277. } as const;
  2278. export type PathEntityType = typeof PathEntityType[keyof typeof PathEntityType];
  2279. /**
  2280. *
  2281. * @export
  2282. * @enum {string}
  2283. */
  2284. export const PathType = {
  2285. Original: 'original',
  2286. JpegThumbnail: 'jpeg_thumbnail',
  2287. WebpThumbnail: 'webp_thumbnail',
  2288. EncodedVideo: 'encoded_video',
  2289. Sidecar: 'sidecar',
  2290. Face: 'face',
  2291. Profile: 'profile'
  2292. } as const;
  2293. export type PathType = typeof PathType[keyof typeof PathType];
  2294. /**
  2295. *
  2296. * @export
  2297. * @interface PeopleResponseDto
  2298. */
  2299. export interface PeopleResponseDto {
  2300. /**
  2301. *
  2302. * @type {Array<PersonResponseDto>}
  2303. * @memberof PeopleResponseDto
  2304. */
  2305. 'people': Array<PersonResponseDto>;
  2306. /**
  2307. *
  2308. * @type {number}
  2309. * @memberof PeopleResponseDto
  2310. */
  2311. 'total': number;
  2312. /**
  2313. *
  2314. * @type {number}
  2315. * @memberof PeopleResponseDto
  2316. */
  2317. 'visible': number;
  2318. }
  2319. /**
  2320. *
  2321. * @export
  2322. * @interface PeopleUpdateDto
  2323. */
  2324. export interface PeopleUpdateDto {
  2325. /**
  2326. *
  2327. * @type {Array<PeopleUpdateItem>}
  2328. * @memberof PeopleUpdateDto
  2329. */
  2330. 'people': Array<PeopleUpdateItem>;
  2331. }
  2332. /**
  2333. *
  2334. * @export
  2335. * @interface PeopleUpdateItem
  2336. */
  2337. export interface PeopleUpdateItem {
  2338. /**
  2339. * Person date of birth. Note: the mobile app cannot currently set the birth date to null.
  2340. * @type {string}
  2341. * @memberof PeopleUpdateItem
  2342. */
  2343. 'birthDate'?: string | null;
  2344. /**
  2345. * Asset is used to get the feature face thumbnail.
  2346. * @type {string}
  2347. * @memberof PeopleUpdateItem
  2348. */
  2349. 'featureFaceAssetId'?: string;
  2350. /**
  2351. * Person id.
  2352. * @type {string}
  2353. * @memberof PeopleUpdateItem
  2354. */
  2355. 'id': string;
  2356. /**
  2357. * Person visibility
  2358. * @type {boolean}
  2359. * @memberof PeopleUpdateItem
  2360. */
  2361. 'isHidden'?: boolean;
  2362. /**
  2363. * Person name.
  2364. * @type {string}
  2365. * @memberof PeopleUpdateItem
  2366. */
  2367. 'name'?: string;
  2368. }
  2369. /**
  2370. *
  2371. * @export
  2372. * @interface PersonResponseDto
  2373. */
  2374. export interface PersonResponseDto {
  2375. /**
  2376. *
  2377. * @type {string}
  2378. * @memberof PersonResponseDto
  2379. */
  2380. 'birthDate': string | null;
  2381. /**
  2382. *
  2383. * @type {string}
  2384. * @memberof PersonResponseDto
  2385. */
  2386. 'id': string;
  2387. /**
  2388. *
  2389. * @type {boolean}
  2390. * @memberof PersonResponseDto
  2391. */
  2392. 'isHidden': boolean;
  2393. /**
  2394. *
  2395. * @type {string}
  2396. * @memberof PersonResponseDto
  2397. */
  2398. 'name': string;
  2399. /**
  2400. *
  2401. * @type {string}
  2402. * @memberof PersonResponseDto
  2403. */
  2404. 'thumbnailPath': string;
  2405. }
  2406. /**
  2407. *
  2408. * @export
  2409. * @interface PersonStatisticsResponseDto
  2410. */
  2411. export interface PersonStatisticsResponseDto {
  2412. /**
  2413. *
  2414. * @type {number}
  2415. * @memberof PersonStatisticsResponseDto
  2416. */
  2417. 'assets': number;
  2418. }
  2419. /**
  2420. *
  2421. * @export
  2422. * @interface PersonUpdateDto
  2423. */
  2424. export interface PersonUpdateDto {
  2425. /**
  2426. * Person date of birth. Note: the mobile app cannot currently set the birth date to null.
  2427. * @type {string}
  2428. * @memberof PersonUpdateDto
  2429. */
  2430. 'birthDate'?: string | null;
  2431. /**
  2432. * Asset is used to get the feature face thumbnail.
  2433. * @type {string}
  2434. * @memberof PersonUpdateDto
  2435. */
  2436. 'featureFaceAssetId'?: string;
  2437. /**
  2438. * Person visibility
  2439. * @type {boolean}
  2440. * @memberof PersonUpdateDto
  2441. */
  2442. 'isHidden'?: boolean;
  2443. /**
  2444. * Person name.
  2445. * @type {string}
  2446. * @memberof PersonUpdateDto
  2447. */
  2448. 'name'?: string;
  2449. }
  2450. /**
  2451. *
  2452. * @export
  2453. * @interface QueueStatusDto
  2454. */
  2455. export interface QueueStatusDto {
  2456. /**
  2457. *
  2458. * @type {boolean}
  2459. * @memberof QueueStatusDto
  2460. */
  2461. 'isActive': boolean;
  2462. /**
  2463. *
  2464. * @type {boolean}
  2465. * @memberof QueueStatusDto
  2466. */
  2467. 'isPaused': boolean;
  2468. }
  2469. /**
  2470. *
  2471. * @export
  2472. * @enum {string}
  2473. */
  2474. export const ReactionLevel = {
  2475. Album: 'album',
  2476. Asset: 'asset'
  2477. } as const;
  2478. export type ReactionLevel = typeof ReactionLevel[keyof typeof ReactionLevel];
  2479. /**
  2480. *
  2481. * @export
  2482. * @enum {string}
  2483. */
  2484. export const ReactionType = {
  2485. Comment: 'comment',
  2486. Like: 'like'
  2487. } as const;
  2488. export type ReactionType = typeof ReactionType[keyof typeof ReactionType];
  2489. /**
  2490. *
  2491. * @export
  2492. * @interface RecognitionConfig
  2493. */
  2494. export interface RecognitionConfig {
  2495. /**
  2496. *
  2497. * @type {boolean}
  2498. * @memberof RecognitionConfig
  2499. */
  2500. 'enabled': boolean;
  2501. /**
  2502. *
  2503. * @type {number}
  2504. * @memberof RecognitionConfig
  2505. */
  2506. 'maxDistance': number;
  2507. /**
  2508. *
  2509. * @type {number}
  2510. * @memberof RecognitionConfig
  2511. */
  2512. 'minFaces': number;
  2513. /**
  2514. *
  2515. * @type {number}
  2516. * @memberof RecognitionConfig
  2517. */
  2518. 'minScore': number;
  2519. /**
  2520. *
  2521. * @type {string}
  2522. * @memberof RecognitionConfig
  2523. */
  2524. 'modelName': string;
  2525. /**
  2526. *
  2527. * @type {ModelType}
  2528. * @memberof RecognitionConfig
  2529. */
  2530. 'modelType'?: ModelType;
  2531. }
  2532. /**
  2533. *
  2534. * @export
  2535. * @interface ScanLibraryDto
  2536. */
  2537. export interface ScanLibraryDto {
  2538. /**
  2539. *
  2540. * @type {boolean}
  2541. * @memberof ScanLibraryDto
  2542. */
  2543. 'refreshAllFiles'?: boolean;
  2544. /**
  2545. *
  2546. * @type {boolean}
  2547. * @memberof ScanLibraryDto
  2548. */
  2549. 'refreshModifiedFiles'?: boolean;
  2550. }
  2551. /**
  2552. *
  2553. * @export
  2554. * @interface SearchAlbumResponseDto
  2555. */
  2556. export interface SearchAlbumResponseDto {
  2557. /**
  2558. *
  2559. * @type {number}
  2560. * @memberof SearchAlbumResponseDto
  2561. */
  2562. 'count': number;
  2563. /**
  2564. *
  2565. * @type {Array<SearchFacetResponseDto>}
  2566. * @memberof SearchAlbumResponseDto
  2567. */
  2568. 'facets': Array<SearchFacetResponseDto>;
  2569. /**
  2570. *
  2571. * @type {Array<AlbumResponseDto>}
  2572. * @memberof SearchAlbumResponseDto
  2573. */
  2574. 'items': Array<AlbumResponseDto>;
  2575. /**
  2576. *
  2577. * @type {number}
  2578. * @memberof SearchAlbumResponseDto
  2579. */
  2580. 'total': number;
  2581. }
  2582. /**
  2583. *
  2584. * @export
  2585. * @interface SearchAssetResponseDto
  2586. */
  2587. export interface SearchAssetResponseDto {
  2588. /**
  2589. *
  2590. * @type {number}
  2591. * @memberof SearchAssetResponseDto
  2592. */
  2593. 'count': number;
  2594. /**
  2595. *
  2596. * @type {Array<SearchFacetResponseDto>}
  2597. * @memberof SearchAssetResponseDto
  2598. */
  2599. 'facets': Array<SearchFacetResponseDto>;
  2600. /**
  2601. *
  2602. * @type {Array<AssetResponseDto>}
  2603. * @memberof SearchAssetResponseDto
  2604. */
  2605. 'items': Array<AssetResponseDto>;
  2606. /**
  2607. *
  2608. * @type {number}
  2609. * @memberof SearchAssetResponseDto
  2610. */
  2611. 'total': number;
  2612. }
  2613. /**
  2614. *
  2615. * @export
  2616. * @interface SearchExploreItem
  2617. */
  2618. export interface SearchExploreItem {
  2619. /**
  2620. *
  2621. * @type {AssetResponseDto}
  2622. * @memberof SearchExploreItem
  2623. */
  2624. 'data': AssetResponseDto;
  2625. /**
  2626. *
  2627. * @type {string}
  2628. * @memberof SearchExploreItem
  2629. */
  2630. 'value': string;
  2631. }
  2632. /**
  2633. *
  2634. * @export
  2635. * @interface SearchExploreResponseDto
  2636. */
  2637. export interface SearchExploreResponseDto {
  2638. /**
  2639. *
  2640. * @type {string}
  2641. * @memberof SearchExploreResponseDto
  2642. */
  2643. 'fieldName': string;
  2644. /**
  2645. *
  2646. * @type {Array<SearchExploreItem>}
  2647. * @memberof SearchExploreResponseDto
  2648. */
  2649. 'items': Array<SearchExploreItem>;
  2650. }
  2651. /**
  2652. *
  2653. * @export
  2654. * @interface SearchFacetCountResponseDto
  2655. */
  2656. export interface SearchFacetCountResponseDto {
  2657. /**
  2658. *
  2659. * @type {number}
  2660. * @memberof SearchFacetCountResponseDto
  2661. */
  2662. 'count': number;
  2663. /**
  2664. *
  2665. * @type {string}
  2666. * @memberof SearchFacetCountResponseDto
  2667. */
  2668. 'value': string;
  2669. }
  2670. /**
  2671. *
  2672. * @export
  2673. * @interface SearchFacetResponseDto
  2674. */
  2675. export interface SearchFacetResponseDto {
  2676. /**
  2677. *
  2678. * @type {Array<SearchFacetCountResponseDto>}
  2679. * @memberof SearchFacetResponseDto
  2680. */
  2681. 'counts': Array<SearchFacetCountResponseDto>;
  2682. /**
  2683. *
  2684. * @type {string}
  2685. * @memberof SearchFacetResponseDto
  2686. */
  2687. 'fieldName': string;
  2688. }
  2689. /**
  2690. *
  2691. * @export
  2692. * @interface SearchResponseDto
  2693. */
  2694. export interface SearchResponseDto {
  2695. /**
  2696. *
  2697. * @type {SearchAlbumResponseDto}
  2698. * @memberof SearchResponseDto
  2699. */
  2700. 'albums': SearchAlbumResponseDto;
  2701. /**
  2702. *
  2703. * @type {SearchAssetResponseDto}
  2704. * @memberof SearchResponseDto
  2705. */
  2706. 'assets': SearchAssetResponseDto;
  2707. }
  2708. /**
  2709. *
  2710. * @export
  2711. * @interface ServerConfigDto
  2712. */
  2713. export interface ServerConfigDto {
  2714. /**
  2715. *
  2716. * @type {boolean}
  2717. * @memberof ServerConfigDto
  2718. */
  2719. 'isInitialized': boolean;
  2720. /**
  2721. *
  2722. * @type {string}
  2723. * @memberof ServerConfigDto
  2724. */
  2725. 'loginPageMessage': string;
  2726. /**
  2727. *
  2728. * @type {string}
  2729. * @memberof ServerConfigDto
  2730. */
  2731. 'oauthButtonText': string;
  2732. /**
  2733. *
  2734. * @type {number}
  2735. * @memberof ServerConfigDto
  2736. */
  2737. 'trashDays': number;
  2738. }
  2739. /**
  2740. *
  2741. * @export
  2742. * @interface ServerFeaturesDto
  2743. */
  2744. export interface ServerFeaturesDto {
  2745. /**
  2746. *
  2747. * @type {boolean}
  2748. * @memberof ServerFeaturesDto
  2749. */
  2750. 'clipEncode': boolean;
  2751. /**
  2752. *
  2753. * @type {boolean}
  2754. * @memberof ServerFeaturesDto
  2755. */
  2756. 'configFile': boolean;
  2757. /**
  2758. *
  2759. * @type {boolean}
  2760. * @memberof ServerFeaturesDto
  2761. */
  2762. 'facialRecognition': boolean;
  2763. /**
  2764. *
  2765. * @type {boolean}
  2766. * @memberof ServerFeaturesDto
  2767. */
  2768. 'map': boolean;
  2769. /**
  2770. *
  2771. * @type {boolean}
  2772. * @memberof ServerFeaturesDto
  2773. */
  2774. 'oauth': boolean;
  2775. /**
  2776. *
  2777. * @type {boolean}
  2778. * @memberof ServerFeaturesDto
  2779. */
  2780. 'oauthAutoLaunch': boolean;
  2781. /**
  2782. *
  2783. * @type {boolean}
  2784. * @memberof ServerFeaturesDto
  2785. */
  2786. 'passwordLogin': boolean;
  2787. /**
  2788. *
  2789. * @type {boolean}
  2790. * @memberof ServerFeaturesDto
  2791. */
  2792. 'reverseGeocoding': boolean;
  2793. /**
  2794. *
  2795. * @type {boolean}
  2796. * @memberof ServerFeaturesDto
  2797. */
  2798. 'search': boolean;
  2799. /**
  2800. *
  2801. * @type {boolean}
  2802. * @memberof ServerFeaturesDto
  2803. */
  2804. 'sidecar': boolean;
  2805. /**
  2806. *
  2807. * @type {boolean}
  2808. * @memberof ServerFeaturesDto
  2809. */
  2810. 'tagImage': boolean;
  2811. /**
  2812. *
  2813. * @type {boolean}
  2814. * @memberof ServerFeaturesDto
  2815. */
  2816. 'trash': boolean;
  2817. }
  2818. /**
  2819. *
  2820. * @export
  2821. * @interface ServerInfoResponseDto
  2822. */
  2823. export interface ServerInfoResponseDto {
  2824. /**
  2825. *
  2826. * @type {string}
  2827. * @memberof ServerInfoResponseDto
  2828. */
  2829. 'diskAvailable': string;
  2830. /**
  2831. *
  2832. * @type {number}
  2833. * @memberof ServerInfoResponseDto
  2834. */
  2835. 'diskAvailableRaw': number;
  2836. /**
  2837. *
  2838. * @type {string}
  2839. * @memberof ServerInfoResponseDto
  2840. */
  2841. 'diskSize': string;
  2842. /**
  2843. *
  2844. * @type {number}
  2845. * @memberof ServerInfoResponseDto
  2846. */
  2847. 'diskSizeRaw': number;
  2848. /**
  2849. *
  2850. * @type {number}
  2851. * @memberof ServerInfoResponseDto
  2852. */
  2853. 'diskUsagePercentage': number;
  2854. /**
  2855. *
  2856. * @type {string}
  2857. * @memberof ServerInfoResponseDto
  2858. */
  2859. 'diskUse': string;
  2860. /**
  2861. *
  2862. * @type {number}
  2863. * @memberof ServerInfoResponseDto
  2864. */
  2865. 'diskUseRaw': number;
  2866. }
  2867. /**
  2868. *
  2869. * @export
  2870. * @interface ServerMediaTypesResponseDto
  2871. */
  2872. export interface ServerMediaTypesResponseDto {
  2873. /**
  2874. *
  2875. * @type {Array<string>}
  2876. * @memberof ServerMediaTypesResponseDto
  2877. */
  2878. 'image': Array<string>;
  2879. /**
  2880. *
  2881. * @type {Array<string>}
  2882. * @memberof ServerMediaTypesResponseDto
  2883. */
  2884. 'sidecar': Array<string>;
  2885. /**
  2886. *
  2887. * @type {Array<string>}
  2888. * @memberof ServerMediaTypesResponseDto
  2889. */
  2890. 'video': Array<string>;
  2891. }
  2892. /**
  2893. *
  2894. * @export
  2895. * @interface ServerPingResponse
  2896. */
  2897. export interface ServerPingResponse {
  2898. /**
  2899. *
  2900. * @type {string}
  2901. * @memberof ServerPingResponse
  2902. */
  2903. 'res': string;
  2904. }
  2905. /**
  2906. *
  2907. * @export
  2908. * @interface ServerStatsResponseDto
  2909. */
  2910. export interface ServerStatsResponseDto {
  2911. /**
  2912. *
  2913. * @type {number}
  2914. * @memberof ServerStatsResponseDto
  2915. */
  2916. 'photos': number;
  2917. /**
  2918. *
  2919. * @type {number}
  2920. * @memberof ServerStatsResponseDto
  2921. */
  2922. 'usage': number;
  2923. /**
  2924. *
  2925. * @type {Array<UsageByUserDto>}
  2926. * @memberof ServerStatsResponseDto
  2927. */
  2928. 'usageByUser': Array<UsageByUserDto>;
  2929. /**
  2930. *
  2931. * @type {number}
  2932. * @memberof ServerStatsResponseDto
  2933. */
  2934. 'videos': number;
  2935. }
  2936. /**
  2937. *
  2938. * @export
  2939. * @interface ServerThemeDto
  2940. */
  2941. export interface ServerThemeDto {
  2942. /**
  2943. *
  2944. * @type {string}
  2945. * @memberof ServerThemeDto
  2946. */
  2947. 'customCss': string;
  2948. }
  2949. /**
  2950. *
  2951. * @export
  2952. * @interface ServerVersionResponseDto
  2953. */
  2954. export interface ServerVersionResponseDto {
  2955. /**
  2956. *
  2957. * @type {number}
  2958. * @memberof ServerVersionResponseDto
  2959. */
  2960. 'major': number;
  2961. /**
  2962. *
  2963. * @type {number}
  2964. * @memberof ServerVersionResponseDto
  2965. */
  2966. 'minor': number;
  2967. /**
  2968. *
  2969. * @type {number}
  2970. * @memberof ServerVersionResponseDto
  2971. */
  2972. 'patch': number;
  2973. }
  2974. /**
  2975. *
  2976. * @export
  2977. * @interface SharedLinkCreateDto
  2978. */
  2979. export interface SharedLinkCreateDto {
  2980. /**
  2981. *
  2982. * @type {string}
  2983. * @memberof SharedLinkCreateDto
  2984. */
  2985. 'albumId'?: string;
  2986. /**
  2987. *
  2988. * @type {boolean}
  2989. * @memberof SharedLinkCreateDto
  2990. */
  2991. 'allowDownload'?: boolean;
  2992. /**
  2993. *
  2994. * @type {boolean}
  2995. * @memberof SharedLinkCreateDto
  2996. */
  2997. 'allowUpload'?: boolean;
  2998. /**
  2999. *
  3000. * @type {Array<string>}
  3001. * @memberof SharedLinkCreateDto
  3002. */
  3003. 'assetIds'?: Array<string>;
  3004. /**
  3005. *
  3006. * @type {string}
  3007. * @memberof SharedLinkCreateDto
  3008. */
  3009. 'description'?: string;
  3010. /**
  3011. *
  3012. * @type {string}
  3013. * @memberof SharedLinkCreateDto
  3014. */
  3015. 'expiresAt'?: string | null;
  3016. /**
  3017. *
  3018. * @type {string}
  3019. * @memberof SharedLinkCreateDto
  3020. */
  3021. 'password'?: string;
  3022. /**
  3023. *
  3024. * @type {boolean}
  3025. * @memberof SharedLinkCreateDto
  3026. */
  3027. 'showMetadata'?: boolean;
  3028. /**
  3029. *
  3030. * @type {SharedLinkType}
  3031. * @memberof SharedLinkCreateDto
  3032. */
  3033. 'type': SharedLinkType;
  3034. }
  3035. /**
  3036. *
  3037. * @export
  3038. * @interface SharedLinkEditDto
  3039. */
  3040. export interface SharedLinkEditDto {
  3041. /**
  3042. *
  3043. * @type {boolean}
  3044. * @memberof SharedLinkEditDto
  3045. */
  3046. 'allowDownload'?: boolean;
  3047. /**
  3048. *
  3049. * @type {boolean}
  3050. * @memberof SharedLinkEditDto
  3051. */
  3052. 'allowUpload'?: boolean;
  3053. /**
  3054. * 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.
  3055. * @type {boolean}
  3056. * @memberof SharedLinkEditDto
  3057. */
  3058. 'changeExpiryTime'?: boolean;
  3059. /**
  3060. *
  3061. * @type {string}
  3062. * @memberof SharedLinkEditDto
  3063. */
  3064. 'description'?: string;
  3065. /**
  3066. *
  3067. * @type {string}
  3068. * @memberof SharedLinkEditDto
  3069. */
  3070. 'expiresAt'?: string | null;
  3071. /**
  3072. *
  3073. * @type {string}
  3074. * @memberof SharedLinkEditDto
  3075. */
  3076. 'password'?: string;
  3077. /**
  3078. *
  3079. * @type {boolean}
  3080. * @memberof SharedLinkEditDto
  3081. */
  3082. 'showMetadata'?: boolean;
  3083. }
  3084. /**
  3085. *
  3086. * @export
  3087. * @interface SharedLinkResponseDto
  3088. */
  3089. export interface SharedLinkResponseDto {
  3090. /**
  3091. *
  3092. * @type {AlbumResponseDto}
  3093. * @memberof SharedLinkResponseDto
  3094. */
  3095. 'album'?: AlbumResponseDto;
  3096. /**
  3097. *
  3098. * @type {boolean}
  3099. * @memberof SharedLinkResponseDto
  3100. */
  3101. 'allowDownload': boolean;
  3102. /**
  3103. *
  3104. * @type {boolean}
  3105. * @memberof SharedLinkResponseDto
  3106. */
  3107. 'allowUpload': boolean;
  3108. /**
  3109. *
  3110. * @type {Array<AssetResponseDto>}
  3111. * @memberof SharedLinkResponseDto
  3112. */
  3113. 'assets': Array<AssetResponseDto>;
  3114. /**
  3115. *
  3116. * @type {string}
  3117. * @memberof SharedLinkResponseDto
  3118. */
  3119. 'createdAt': string;
  3120. /**
  3121. *
  3122. * @type {string}
  3123. * @memberof SharedLinkResponseDto
  3124. */
  3125. 'description': string | null;
  3126. /**
  3127. *
  3128. * @type {string}
  3129. * @memberof SharedLinkResponseDto
  3130. */
  3131. 'expiresAt': string | null;
  3132. /**
  3133. *
  3134. * @type {string}
  3135. * @memberof SharedLinkResponseDto
  3136. */
  3137. 'id': string;
  3138. /**
  3139. *
  3140. * @type {string}
  3141. * @memberof SharedLinkResponseDto
  3142. */
  3143. 'key': string;
  3144. /**
  3145. *
  3146. * @type {string}
  3147. * @memberof SharedLinkResponseDto
  3148. */
  3149. 'password': string | null;
  3150. /**
  3151. *
  3152. * @type {boolean}
  3153. * @memberof SharedLinkResponseDto
  3154. */
  3155. 'showMetadata': boolean;
  3156. /**
  3157. *
  3158. * @type {string}
  3159. * @memberof SharedLinkResponseDto
  3160. */
  3161. 'token'?: string | null;
  3162. /**
  3163. *
  3164. * @type {SharedLinkType}
  3165. * @memberof SharedLinkResponseDto
  3166. */
  3167. 'type': SharedLinkType;
  3168. /**
  3169. *
  3170. * @type {string}
  3171. * @memberof SharedLinkResponseDto
  3172. */
  3173. 'userId': string;
  3174. }
  3175. /**
  3176. *
  3177. * @export
  3178. * @enum {string}
  3179. */
  3180. export const SharedLinkType = {
  3181. Album: 'ALBUM',
  3182. Individual: 'INDIVIDUAL'
  3183. } as const;
  3184. export type SharedLinkType = typeof SharedLinkType[keyof typeof SharedLinkType];
  3185. /**
  3186. *
  3187. * @export
  3188. * @interface SignUpDto
  3189. */
  3190. export interface SignUpDto {
  3191. /**
  3192. *
  3193. * @type {string}
  3194. * @memberof SignUpDto
  3195. */
  3196. 'email': string;
  3197. /**
  3198. *
  3199. * @type {string}
  3200. * @memberof SignUpDto
  3201. */
  3202. 'name': string;
  3203. /**
  3204. *
  3205. * @type {string}
  3206. * @memberof SignUpDto
  3207. */
  3208. 'password': string;
  3209. }
  3210. /**
  3211. *
  3212. * @export
  3213. * @interface SmartInfoResponseDto
  3214. */
  3215. export interface SmartInfoResponseDto {
  3216. /**
  3217. *
  3218. * @type {Array<string>}
  3219. * @memberof SmartInfoResponseDto
  3220. */
  3221. 'objects'?: Array<string> | null;
  3222. /**
  3223. *
  3224. * @type {Array<string>}
  3225. * @memberof SmartInfoResponseDto
  3226. */
  3227. 'tags'?: Array<string> | null;
  3228. }
  3229. /**
  3230. *
  3231. * @export
  3232. * @interface SystemConfigDto
  3233. */
  3234. export interface SystemConfigDto {
  3235. /**
  3236. *
  3237. * @type {SystemConfigFFmpegDto}
  3238. * @memberof SystemConfigDto
  3239. */
  3240. 'ffmpeg': SystemConfigFFmpegDto;
  3241. /**
  3242. *
  3243. * @type {SystemConfigJobDto}
  3244. * @memberof SystemConfigDto
  3245. */
  3246. 'job': SystemConfigJobDto;
  3247. /**
  3248. *
  3249. * @type {SystemConfigLibraryDto}
  3250. * @memberof SystemConfigDto
  3251. */
  3252. 'library': SystemConfigLibraryDto;
  3253. /**
  3254. *
  3255. * @type {SystemConfigMachineLearningDto}
  3256. * @memberof SystemConfigDto
  3257. */
  3258. 'machineLearning': SystemConfigMachineLearningDto;
  3259. /**
  3260. *
  3261. * @type {SystemConfigMapDto}
  3262. * @memberof SystemConfigDto
  3263. */
  3264. 'map': SystemConfigMapDto;
  3265. /**
  3266. *
  3267. * @type {SystemConfigNewVersionCheckDto}
  3268. * @memberof SystemConfigDto
  3269. */
  3270. 'newVersionCheck': SystemConfigNewVersionCheckDto;
  3271. /**
  3272. *
  3273. * @type {SystemConfigOAuthDto}
  3274. * @memberof SystemConfigDto
  3275. */
  3276. 'oauth': SystemConfigOAuthDto;
  3277. /**
  3278. *
  3279. * @type {SystemConfigPasswordLoginDto}
  3280. * @memberof SystemConfigDto
  3281. */
  3282. 'passwordLogin': SystemConfigPasswordLoginDto;
  3283. /**
  3284. *
  3285. * @type {SystemConfigReverseGeocodingDto}
  3286. * @memberof SystemConfigDto
  3287. */
  3288. 'reverseGeocoding': SystemConfigReverseGeocodingDto;
  3289. /**
  3290. *
  3291. * @type {SystemConfigStorageTemplateDto}
  3292. * @memberof SystemConfigDto
  3293. */
  3294. 'storageTemplate': SystemConfigStorageTemplateDto;
  3295. /**
  3296. *
  3297. * @type {SystemConfigThemeDto}
  3298. * @memberof SystemConfigDto
  3299. */
  3300. 'theme': SystemConfigThemeDto;
  3301. /**
  3302. *
  3303. * @type {SystemConfigThumbnailDto}
  3304. * @memberof SystemConfigDto
  3305. */
  3306. 'thumbnail': SystemConfigThumbnailDto;
  3307. /**
  3308. *
  3309. * @type {SystemConfigTrashDto}
  3310. * @memberof SystemConfigDto
  3311. */
  3312. 'trash': SystemConfigTrashDto;
  3313. }
  3314. /**
  3315. *
  3316. * @export
  3317. * @interface SystemConfigFFmpegDto
  3318. */
  3319. export interface SystemConfigFFmpegDto {
  3320. /**
  3321. *
  3322. * @type {TranscodeHWAccel}
  3323. * @memberof SystemConfigFFmpegDto
  3324. */
  3325. 'accel': TranscodeHWAccel;
  3326. /**
  3327. *
  3328. * @type {number}
  3329. * @memberof SystemConfigFFmpegDto
  3330. */
  3331. 'bframes': number;
  3332. /**
  3333. *
  3334. * @type {CQMode}
  3335. * @memberof SystemConfigFFmpegDto
  3336. */
  3337. 'cqMode': CQMode;
  3338. /**
  3339. *
  3340. * @type {number}
  3341. * @memberof SystemConfigFFmpegDto
  3342. */
  3343. 'crf': number;
  3344. /**
  3345. *
  3346. * @type {number}
  3347. * @memberof SystemConfigFFmpegDto
  3348. */
  3349. 'gopSize': number;
  3350. /**
  3351. *
  3352. * @type {string}
  3353. * @memberof SystemConfigFFmpegDto
  3354. */
  3355. 'maxBitrate': string;
  3356. /**
  3357. *
  3358. * @type {number}
  3359. * @memberof SystemConfigFFmpegDto
  3360. */
  3361. 'npl': number;
  3362. /**
  3363. *
  3364. * @type {string}
  3365. * @memberof SystemConfigFFmpegDto
  3366. */
  3367. 'preset': string;
  3368. /**
  3369. *
  3370. * @type {number}
  3371. * @memberof SystemConfigFFmpegDto
  3372. */
  3373. 'refs': number;
  3374. /**
  3375. *
  3376. * @type {AudioCodec}
  3377. * @memberof SystemConfigFFmpegDto
  3378. */
  3379. 'targetAudioCodec': AudioCodec;
  3380. /**
  3381. *
  3382. * @type {string}
  3383. * @memberof SystemConfigFFmpegDto
  3384. */
  3385. 'targetResolution': string;
  3386. /**
  3387. *
  3388. * @type {VideoCodec}
  3389. * @memberof SystemConfigFFmpegDto
  3390. */
  3391. 'targetVideoCodec': VideoCodec;
  3392. /**
  3393. *
  3394. * @type {boolean}
  3395. * @memberof SystemConfigFFmpegDto
  3396. */
  3397. 'temporalAQ': boolean;
  3398. /**
  3399. *
  3400. * @type {number}
  3401. * @memberof SystemConfigFFmpegDto
  3402. */
  3403. 'threads': number;
  3404. /**
  3405. *
  3406. * @type {ToneMapping}
  3407. * @memberof SystemConfigFFmpegDto
  3408. */
  3409. 'tonemap': ToneMapping;
  3410. /**
  3411. *
  3412. * @type {TranscodePolicy}
  3413. * @memberof SystemConfigFFmpegDto
  3414. */
  3415. 'transcode': TranscodePolicy;
  3416. /**
  3417. *
  3418. * @type {boolean}
  3419. * @memberof SystemConfigFFmpegDto
  3420. */
  3421. 'twoPass': boolean;
  3422. }
  3423. /**
  3424. *
  3425. * @export
  3426. * @interface SystemConfigJobDto
  3427. */
  3428. export interface SystemConfigJobDto {
  3429. /**
  3430. *
  3431. * @type {JobSettingsDto}
  3432. * @memberof SystemConfigJobDto
  3433. */
  3434. 'backgroundTask': JobSettingsDto;
  3435. /**
  3436. *
  3437. * @type {JobSettingsDto}
  3438. * @memberof SystemConfigJobDto
  3439. */
  3440. 'clipEncoding': JobSettingsDto;
  3441. /**
  3442. *
  3443. * @type {JobSettingsDto}
  3444. * @memberof SystemConfigJobDto
  3445. */
  3446. 'library': JobSettingsDto;
  3447. /**
  3448. *
  3449. * @type {JobSettingsDto}
  3450. * @memberof SystemConfigJobDto
  3451. */
  3452. 'metadataExtraction': JobSettingsDto;
  3453. /**
  3454. *
  3455. * @type {JobSettingsDto}
  3456. * @memberof SystemConfigJobDto
  3457. */
  3458. 'migration': JobSettingsDto;
  3459. /**
  3460. *
  3461. * @type {JobSettingsDto}
  3462. * @memberof SystemConfigJobDto
  3463. */
  3464. 'objectTagging': JobSettingsDto;
  3465. /**
  3466. *
  3467. * @type {JobSettingsDto}
  3468. * @memberof SystemConfigJobDto
  3469. */
  3470. 'recognizeFaces': JobSettingsDto;
  3471. /**
  3472. *
  3473. * @type {JobSettingsDto}
  3474. * @memberof SystemConfigJobDto
  3475. */
  3476. 'search': JobSettingsDto;
  3477. /**
  3478. *
  3479. * @type {JobSettingsDto}
  3480. * @memberof SystemConfigJobDto
  3481. */
  3482. 'sidecar': JobSettingsDto;
  3483. /**
  3484. *
  3485. * @type {JobSettingsDto}
  3486. * @memberof SystemConfigJobDto
  3487. */
  3488. 'storageTemplateMigration': JobSettingsDto;
  3489. /**
  3490. *
  3491. * @type {JobSettingsDto}
  3492. * @memberof SystemConfigJobDto
  3493. */
  3494. 'thumbnailGeneration': JobSettingsDto;
  3495. /**
  3496. *
  3497. * @type {JobSettingsDto}
  3498. * @memberof SystemConfigJobDto
  3499. */
  3500. 'videoConversion': JobSettingsDto;
  3501. }
  3502. /**
  3503. *
  3504. * @export
  3505. * @interface SystemConfigLibraryDto
  3506. */
  3507. export interface SystemConfigLibraryDto {
  3508. /**
  3509. *
  3510. * @type {SystemConfigLibraryScanDto}
  3511. * @memberof SystemConfigLibraryDto
  3512. */
  3513. 'scan': SystemConfigLibraryScanDto;
  3514. }
  3515. /**
  3516. *
  3517. * @export
  3518. * @interface SystemConfigLibraryScanDto
  3519. */
  3520. export interface SystemConfigLibraryScanDto {
  3521. /**
  3522. *
  3523. * @type {string}
  3524. * @memberof SystemConfigLibraryScanDto
  3525. */
  3526. 'cronExpression': string;
  3527. /**
  3528. *
  3529. * @type {boolean}
  3530. * @memberof SystemConfigLibraryScanDto
  3531. */
  3532. 'enabled': boolean;
  3533. }
  3534. /**
  3535. *
  3536. * @export
  3537. * @interface SystemConfigMachineLearningDto
  3538. */
  3539. export interface SystemConfigMachineLearningDto {
  3540. /**
  3541. *
  3542. * @type {ClassificationConfig}
  3543. * @memberof SystemConfigMachineLearningDto
  3544. */
  3545. 'classification': ClassificationConfig;
  3546. /**
  3547. *
  3548. * @type {CLIPConfig}
  3549. * @memberof SystemConfigMachineLearningDto
  3550. */
  3551. 'clip': CLIPConfig;
  3552. /**
  3553. *
  3554. * @type {boolean}
  3555. * @memberof SystemConfigMachineLearningDto
  3556. */
  3557. 'enabled': boolean;
  3558. /**
  3559. *
  3560. * @type {RecognitionConfig}
  3561. * @memberof SystemConfigMachineLearningDto
  3562. */
  3563. 'facialRecognition': RecognitionConfig;
  3564. /**
  3565. *
  3566. * @type {string}
  3567. * @memberof SystemConfigMachineLearningDto
  3568. */
  3569. 'url': string;
  3570. }
  3571. /**
  3572. *
  3573. * @export
  3574. * @interface SystemConfigMapDto
  3575. */
  3576. export interface SystemConfigMapDto {
  3577. /**
  3578. *
  3579. * @type {string}
  3580. * @memberof SystemConfigMapDto
  3581. */
  3582. 'darkStyle': string;
  3583. /**
  3584. *
  3585. * @type {boolean}
  3586. * @memberof SystemConfigMapDto
  3587. */
  3588. 'enabled': boolean;
  3589. /**
  3590. *
  3591. * @type {string}
  3592. * @memberof SystemConfigMapDto
  3593. */
  3594. 'lightStyle': string;
  3595. }
  3596. /**
  3597. *
  3598. * @export
  3599. * @interface SystemConfigNewVersionCheckDto
  3600. */
  3601. export interface SystemConfigNewVersionCheckDto {
  3602. /**
  3603. *
  3604. * @type {boolean}
  3605. * @memberof SystemConfigNewVersionCheckDto
  3606. */
  3607. 'enabled': boolean;
  3608. }
  3609. /**
  3610. *
  3611. * @export
  3612. * @interface SystemConfigOAuthDto
  3613. */
  3614. export interface SystemConfigOAuthDto {
  3615. /**
  3616. *
  3617. * @type {boolean}
  3618. * @memberof SystemConfigOAuthDto
  3619. */
  3620. 'autoLaunch': boolean;
  3621. /**
  3622. *
  3623. * @type {boolean}
  3624. * @memberof SystemConfigOAuthDto
  3625. */
  3626. 'autoRegister': boolean;
  3627. /**
  3628. *
  3629. * @type {string}
  3630. * @memberof SystemConfigOAuthDto
  3631. */
  3632. 'buttonText': string;
  3633. /**
  3634. *
  3635. * @type {string}
  3636. * @memberof SystemConfigOAuthDto
  3637. */
  3638. 'clientId': string;
  3639. /**
  3640. *
  3641. * @type {string}
  3642. * @memberof SystemConfigOAuthDto
  3643. */
  3644. 'clientSecret': string;
  3645. /**
  3646. *
  3647. * @type {boolean}
  3648. * @memberof SystemConfigOAuthDto
  3649. */
  3650. 'enabled': boolean;
  3651. /**
  3652. *
  3653. * @type {string}
  3654. * @memberof SystemConfigOAuthDto
  3655. */
  3656. 'issuerUrl': string;
  3657. /**
  3658. *
  3659. * @type {boolean}
  3660. * @memberof SystemConfigOAuthDto
  3661. */
  3662. 'mobileOverrideEnabled': boolean;
  3663. /**
  3664. *
  3665. * @type {string}
  3666. * @memberof SystemConfigOAuthDto
  3667. */
  3668. 'mobileRedirectUri': string;
  3669. /**
  3670. *
  3671. * @type {string}
  3672. * @memberof SystemConfigOAuthDto
  3673. */
  3674. 'scope': string;
  3675. /**
  3676. *
  3677. * @type {string}
  3678. * @memberof SystemConfigOAuthDto
  3679. */
  3680. 'storageLabelClaim': string;
  3681. }
  3682. /**
  3683. *
  3684. * @export
  3685. * @interface SystemConfigPasswordLoginDto
  3686. */
  3687. export interface SystemConfigPasswordLoginDto {
  3688. /**
  3689. *
  3690. * @type {boolean}
  3691. * @memberof SystemConfigPasswordLoginDto
  3692. */
  3693. 'enabled': boolean;
  3694. }
  3695. /**
  3696. *
  3697. * @export
  3698. * @interface SystemConfigReverseGeocodingDto
  3699. */
  3700. export interface SystemConfigReverseGeocodingDto {
  3701. /**
  3702. *
  3703. * @type {boolean}
  3704. * @memberof SystemConfigReverseGeocodingDto
  3705. */
  3706. 'enabled': boolean;
  3707. }
  3708. /**
  3709. *
  3710. * @export
  3711. * @interface SystemConfigStorageTemplateDto
  3712. */
  3713. export interface SystemConfigStorageTemplateDto {
  3714. /**
  3715. *
  3716. * @type {string}
  3717. * @memberof SystemConfigStorageTemplateDto
  3718. */
  3719. 'template': string;
  3720. }
  3721. /**
  3722. *
  3723. * @export
  3724. * @interface SystemConfigTemplateStorageOptionDto
  3725. */
  3726. export interface SystemConfigTemplateStorageOptionDto {
  3727. /**
  3728. *
  3729. * @type {Array<string>}
  3730. * @memberof SystemConfigTemplateStorageOptionDto
  3731. */
  3732. 'dayOptions': Array<string>;
  3733. /**
  3734. *
  3735. * @type {Array<string>}
  3736. * @memberof SystemConfigTemplateStorageOptionDto
  3737. */
  3738. 'hourOptions': Array<string>;
  3739. /**
  3740. *
  3741. * @type {Array<string>}
  3742. * @memberof SystemConfigTemplateStorageOptionDto
  3743. */
  3744. 'minuteOptions': Array<string>;
  3745. /**
  3746. *
  3747. * @type {Array<string>}
  3748. * @memberof SystemConfigTemplateStorageOptionDto
  3749. */
  3750. 'monthOptions': Array<string>;
  3751. /**
  3752. *
  3753. * @type {Array<string>}
  3754. * @memberof SystemConfigTemplateStorageOptionDto
  3755. */
  3756. 'presetOptions': Array<string>;
  3757. /**
  3758. *
  3759. * @type {Array<string>}
  3760. * @memberof SystemConfigTemplateStorageOptionDto
  3761. */
  3762. 'secondOptions': Array<string>;
  3763. /**
  3764. *
  3765. * @type {Array<string>}
  3766. * @memberof SystemConfigTemplateStorageOptionDto
  3767. */
  3768. 'weekOptions': Array<string>;
  3769. /**
  3770. *
  3771. * @type {Array<string>}
  3772. * @memberof SystemConfigTemplateStorageOptionDto
  3773. */
  3774. 'yearOptions': Array<string>;
  3775. }
  3776. /**
  3777. *
  3778. * @export
  3779. * @interface SystemConfigThemeDto
  3780. */
  3781. export interface SystemConfigThemeDto {
  3782. /**
  3783. *
  3784. * @type {string}
  3785. * @memberof SystemConfigThemeDto
  3786. */
  3787. 'customCss': string;
  3788. }
  3789. /**
  3790. *
  3791. * @export
  3792. * @interface SystemConfigThumbnailDto
  3793. */
  3794. export interface SystemConfigThumbnailDto {
  3795. /**
  3796. *
  3797. * @type {Colorspace}
  3798. * @memberof SystemConfigThumbnailDto
  3799. */
  3800. 'colorspace': Colorspace;
  3801. /**
  3802. *
  3803. * @type {number}
  3804. * @memberof SystemConfigThumbnailDto
  3805. */
  3806. 'jpegSize': number;
  3807. /**
  3808. *
  3809. * @type {number}
  3810. * @memberof SystemConfigThumbnailDto
  3811. */
  3812. 'quality': number;
  3813. /**
  3814. *
  3815. * @type {number}
  3816. * @memberof SystemConfigThumbnailDto
  3817. */
  3818. 'webpSize': number;
  3819. }
  3820. /**
  3821. *
  3822. * @export
  3823. * @interface SystemConfigTrashDto
  3824. */
  3825. export interface SystemConfigTrashDto {
  3826. /**
  3827. *
  3828. * @type {number}
  3829. * @memberof SystemConfigTrashDto
  3830. */
  3831. 'days': number;
  3832. /**
  3833. *
  3834. * @type {boolean}
  3835. * @memberof SystemConfigTrashDto
  3836. */
  3837. 'enabled': boolean;
  3838. }
  3839. /**
  3840. *
  3841. * @export
  3842. * @interface TagResponseDto
  3843. */
  3844. export interface TagResponseDto {
  3845. /**
  3846. *
  3847. * @type {string}
  3848. * @memberof TagResponseDto
  3849. */
  3850. 'id': string;
  3851. /**
  3852. *
  3853. * @type {string}
  3854. * @memberof TagResponseDto
  3855. */
  3856. 'name': string;
  3857. /**
  3858. *
  3859. * @type {TagTypeEnum}
  3860. * @memberof TagResponseDto
  3861. */
  3862. 'type': TagTypeEnum;
  3863. /**
  3864. *
  3865. * @type {string}
  3866. * @memberof TagResponseDto
  3867. */
  3868. 'userId': string;
  3869. }
  3870. /**
  3871. *
  3872. * @export
  3873. * @enum {string}
  3874. */
  3875. export const TagTypeEnum = {
  3876. Object: 'OBJECT',
  3877. Face: 'FACE',
  3878. Custom: 'CUSTOM'
  3879. } as const;
  3880. export type TagTypeEnum = typeof TagTypeEnum[keyof typeof TagTypeEnum];
  3881. /**
  3882. *
  3883. * @export
  3884. * @enum {string}
  3885. */
  3886. export const ThumbnailFormat = {
  3887. Jpeg: 'JPEG',
  3888. Webp: 'WEBP'
  3889. } as const;
  3890. export type ThumbnailFormat = typeof ThumbnailFormat[keyof typeof ThumbnailFormat];
  3891. /**
  3892. *
  3893. * @export
  3894. * @interface TimeBucketResponseDto
  3895. */
  3896. export interface TimeBucketResponseDto {
  3897. /**
  3898. *
  3899. * @type {number}
  3900. * @memberof TimeBucketResponseDto
  3901. */
  3902. 'count': number;
  3903. /**
  3904. *
  3905. * @type {string}
  3906. * @memberof TimeBucketResponseDto
  3907. */
  3908. 'timeBucket': string;
  3909. }
  3910. /**
  3911. *
  3912. * @export
  3913. * @enum {string}
  3914. */
  3915. export const TimeBucketSize = {
  3916. Day: 'DAY',
  3917. Month: 'MONTH'
  3918. } as const;
  3919. export type TimeBucketSize = typeof TimeBucketSize[keyof typeof TimeBucketSize];
  3920. /**
  3921. *
  3922. * @export
  3923. * @enum {string}
  3924. */
  3925. export const ToneMapping = {
  3926. Hable: 'hable',
  3927. Mobius: 'mobius',
  3928. Reinhard: 'reinhard',
  3929. Disabled: 'disabled'
  3930. } as const;
  3931. export type ToneMapping = typeof ToneMapping[keyof typeof ToneMapping];
  3932. /**
  3933. *
  3934. * @export
  3935. * @enum {string}
  3936. */
  3937. export const TranscodeHWAccel = {
  3938. Nvenc: 'nvenc',
  3939. Qsv: 'qsv',
  3940. Vaapi: 'vaapi',
  3941. Rkmpp: 'rkmpp',
  3942. Disabled: 'disabled'
  3943. } as const;
  3944. export type TranscodeHWAccel = typeof TranscodeHWAccel[keyof typeof TranscodeHWAccel];
  3945. /**
  3946. *
  3947. * @export
  3948. * @enum {string}
  3949. */
  3950. export const TranscodePolicy = {
  3951. All: 'all',
  3952. Optimal: 'optimal',
  3953. Required: 'required',
  3954. Disabled: 'disabled'
  3955. } as const;
  3956. export type TranscodePolicy = typeof TranscodePolicy[keyof typeof TranscodePolicy];
  3957. /**
  3958. *
  3959. * @export
  3960. * @interface UpdateAlbumDto
  3961. */
  3962. export interface UpdateAlbumDto {
  3963. /**
  3964. *
  3965. * @type {string}
  3966. * @memberof UpdateAlbumDto
  3967. */
  3968. 'albumName'?: string;
  3969. /**
  3970. *
  3971. * @type {string}
  3972. * @memberof UpdateAlbumDto
  3973. */
  3974. 'albumThumbnailAssetId'?: string;
  3975. /**
  3976. *
  3977. * @type {string}
  3978. * @memberof UpdateAlbumDto
  3979. */
  3980. 'description'?: string;
  3981. /**
  3982. *
  3983. * @type {boolean}
  3984. * @memberof UpdateAlbumDto
  3985. */
  3986. 'isActivityEnabled'?: boolean;
  3987. }
  3988. /**
  3989. *
  3990. * @export
  3991. * @interface UpdateAssetDto
  3992. */
  3993. export interface UpdateAssetDto {
  3994. /**
  3995. *
  3996. * @type {string}
  3997. * @memberof UpdateAssetDto
  3998. */
  3999. 'description'?: string;
  4000. /**
  4001. *
  4002. * @type {boolean}
  4003. * @memberof UpdateAssetDto
  4004. */
  4005. 'isArchived'?: boolean;
  4006. /**
  4007. *
  4008. * @type {boolean}
  4009. * @memberof UpdateAssetDto
  4010. */
  4011. 'isFavorite'?: boolean;
  4012. }
  4013. /**
  4014. *
  4015. * @export
  4016. * @interface UpdateLibraryDto
  4017. */
  4018. export interface UpdateLibraryDto {
  4019. /**
  4020. *
  4021. * @type {Array<string>}
  4022. * @memberof UpdateLibraryDto
  4023. */
  4024. 'exclusionPatterns'?: Array<string>;
  4025. /**
  4026. *
  4027. * @type {Array<string>}
  4028. * @memberof UpdateLibraryDto
  4029. */
  4030. 'importPaths'?: Array<string>;
  4031. /**
  4032. *
  4033. * @type {boolean}
  4034. * @memberof UpdateLibraryDto
  4035. */
  4036. 'isVisible'?: boolean;
  4037. /**
  4038. *
  4039. * @type {string}
  4040. * @memberof UpdateLibraryDto
  4041. */
  4042. 'name'?: string;
  4043. }
  4044. /**
  4045. *
  4046. * @export
  4047. * @interface UpdatePartnerDto
  4048. */
  4049. export interface UpdatePartnerDto {
  4050. /**
  4051. *
  4052. * @type {boolean}
  4053. * @memberof UpdatePartnerDto
  4054. */
  4055. 'inTimeline': boolean;
  4056. }
  4057. /**
  4058. *
  4059. * @export
  4060. * @interface UpdateStackParentDto
  4061. */
  4062. export interface UpdateStackParentDto {
  4063. /**
  4064. *
  4065. * @type {string}
  4066. * @memberof UpdateStackParentDto
  4067. */
  4068. 'newParentId': string;
  4069. /**
  4070. *
  4071. * @type {string}
  4072. * @memberof UpdateStackParentDto
  4073. */
  4074. 'oldParentId': string;
  4075. }
  4076. /**
  4077. *
  4078. * @export
  4079. * @interface UpdateTagDto
  4080. */
  4081. export interface UpdateTagDto {
  4082. /**
  4083. *
  4084. * @type {string}
  4085. * @memberof UpdateTagDto
  4086. */
  4087. 'name'?: string;
  4088. }
  4089. /**
  4090. *
  4091. * @export
  4092. * @interface UpdateUserDto
  4093. */
  4094. export interface UpdateUserDto {
  4095. /**
  4096. *
  4097. * @type {UserAvatarColor}
  4098. * @memberof UpdateUserDto
  4099. */
  4100. 'avatarColor'?: UserAvatarColor;
  4101. /**
  4102. *
  4103. * @type {string}
  4104. * @memberof UpdateUserDto
  4105. */
  4106. 'email'?: string;
  4107. /**
  4108. *
  4109. * @type {string}
  4110. * @memberof UpdateUserDto
  4111. */
  4112. 'externalPath'?: string;
  4113. /**
  4114. *
  4115. * @type {string}
  4116. * @memberof UpdateUserDto
  4117. */
  4118. 'id': string;
  4119. /**
  4120. *
  4121. * @type {boolean}
  4122. * @memberof UpdateUserDto
  4123. */
  4124. 'isAdmin'?: boolean;
  4125. /**
  4126. *
  4127. * @type {boolean}
  4128. * @memberof UpdateUserDto
  4129. */
  4130. 'memoriesEnabled'?: boolean;
  4131. /**
  4132. *
  4133. * @type {string}
  4134. * @memberof UpdateUserDto
  4135. */
  4136. 'name'?: string;
  4137. /**
  4138. *
  4139. * @type {string}
  4140. * @memberof UpdateUserDto
  4141. */
  4142. 'password'?: string;
  4143. /**
  4144. *
  4145. * @type {boolean}
  4146. * @memberof UpdateUserDto
  4147. */
  4148. 'shouldChangePassword'?: boolean;
  4149. /**
  4150. *
  4151. * @type {string}
  4152. * @memberof UpdateUserDto
  4153. */
  4154. 'storageLabel'?: string;
  4155. }
  4156. /**
  4157. *
  4158. * @export
  4159. * @interface UsageByUserDto
  4160. */
  4161. export interface UsageByUserDto {
  4162. /**
  4163. *
  4164. * @type {number}
  4165. * @memberof UsageByUserDto
  4166. */
  4167. 'photos': number;
  4168. /**
  4169. *
  4170. * @type {number}
  4171. * @memberof UsageByUserDto
  4172. */
  4173. 'usage': number;
  4174. /**
  4175. *
  4176. * @type {string}
  4177. * @memberof UsageByUserDto
  4178. */
  4179. 'userId': string;
  4180. /**
  4181. *
  4182. * @type {string}
  4183. * @memberof UsageByUserDto
  4184. */
  4185. 'userName': string;
  4186. /**
  4187. *
  4188. * @type {number}
  4189. * @memberof UsageByUserDto
  4190. */
  4191. 'videos': number;
  4192. }
  4193. /**
  4194. *
  4195. * @export
  4196. * @enum {string}
  4197. */
  4198. export const UserAvatarColor = {
  4199. Primary: 'primary',
  4200. Pink: 'pink',
  4201. Red: 'red',
  4202. Yellow: 'yellow',
  4203. Blue: 'blue',
  4204. Green: 'green',
  4205. Purple: 'purple',
  4206. Orange: 'orange',
  4207. Gray: 'gray',
  4208. Amber: 'amber'
  4209. } as const;
  4210. export type UserAvatarColor = typeof UserAvatarColor[keyof typeof UserAvatarColor];
  4211. /**
  4212. *
  4213. * @export
  4214. * @interface UserDto
  4215. */
  4216. export interface UserDto {
  4217. /**
  4218. *
  4219. * @type {UserAvatarColor}
  4220. * @memberof UserDto
  4221. */
  4222. 'avatarColor': UserAvatarColor;
  4223. /**
  4224. *
  4225. * @type {string}
  4226. * @memberof UserDto
  4227. */
  4228. 'email': string;
  4229. /**
  4230. *
  4231. * @type {string}
  4232. * @memberof UserDto
  4233. */
  4234. 'id': string;
  4235. /**
  4236. *
  4237. * @type {string}
  4238. * @memberof UserDto
  4239. */
  4240. 'name': string;
  4241. /**
  4242. *
  4243. * @type {string}
  4244. * @memberof UserDto
  4245. */
  4246. 'profileImagePath': string;
  4247. }
  4248. /**
  4249. *
  4250. * @export
  4251. * @interface UserResponseDto
  4252. */
  4253. export interface UserResponseDto {
  4254. /**
  4255. *
  4256. * @type {UserAvatarColor}
  4257. * @memberof UserResponseDto
  4258. */
  4259. 'avatarColor': UserAvatarColor;
  4260. /**
  4261. *
  4262. * @type {string}
  4263. * @memberof UserResponseDto
  4264. */
  4265. 'createdAt': string;
  4266. /**
  4267. *
  4268. * @type {string}
  4269. * @memberof UserResponseDto
  4270. */
  4271. 'deletedAt': string | null;
  4272. /**
  4273. *
  4274. * @type {string}
  4275. * @memberof UserResponseDto
  4276. */
  4277. 'email': string;
  4278. /**
  4279. *
  4280. * @type {string}
  4281. * @memberof UserResponseDto
  4282. */
  4283. 'externalPath': string | null;
  4284. /**
  4285. *
  4286. * @type {string}
  4287. * @memberof UserResponseDto
  4288. */
  4289. 'id': string;
  4290. /**
  4291. *
  4292. * @type {boolean}
  4293. * @memberof UserResponseDto
  4294. */
  4295. 'isAdmin': boolean;
  4296. /**
  4297. *
  4298. * @type {boolean}
  4299. * @memberof UserResponseDto
  4300. */
  4301. 'memoriesEnabled'?: boolean;
  4302. /**
  4303. *
  4304. * @type {string}
  4305. * @memberof UserResponseDto
  4306. */
  4307. 'name': string;
  4308. /**
  4309. *
  4310. * @type {string}
  4311. * @memberof UserResponseDto
  4312. */
  4313. 'oauthId': string;
  4314. /**
  4315. *
  4316. * @type {string}
  4317. * @memberof UserResponseDto
  4318. */
  4319. 'profileImagePath': string;
  4320. /**
  4321. *
  4322. * @type {boolean}
  4323. * @memberof UserResponseDto
  4324. */
  4325. 'shouldChangePassword': boolean;
  4326. /**
  4327. *
  4328. * @type {string}
  4329. * @memberof UserResponseDto
  4330. */
  4331. 'storageLabel': string | null;
  4332. /**
  4333. *
  4334. * @type {string}
  4335. * @memberof UserResponseDto
  4336. */
  4337. 'updatedAt': string;
  4338. }
  4339. /**
  4340. *
  4341. * @export
  4342. * @interface ValidateAccessTokenResponseDto
  4343. */
  4344. export interface ValidateAccessTokenResponseDto {
  4345. /**
  4346. *
  4347. * @type {boolean}
  4348. * @memberof ValidateAccessTokenResponseDto
  4349. */
  4350. 'authStatus': boolean;
  4351. }
  4352. /**
  4353. *
  4354. * @export
  4355. * @enum {string}
  4356. */
  4357. export const VideoCodec = {
  4358. H264: 'h264',
  4359. Hevc: 'hevc',
  4360. Vp9: 'vp9'
  4361. } as const;
  4362. export type VideoCodec = typeof VideoCodec[keyof typeof VideoCodec];
  4363. /**
  4364. * APIKeyApi - axios parameter creator
  4365. * @export
  4366. */
  4367. export const APIKeyApiAxiosParamCreator = function (configuration?: Configuration) {
  4368. return {
  4369. /**
  4370. *
  4371. * @param {APIKeyCreateDto} aPIKeyCreateDto
  4372. * @param {*} [options] Override http request option.
  4373. * @throws {RequiredError}
  4374. */
  4375. createApiKey: async (aPIKeyCreateDto: APIKeyCreateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4376. // verify required parameter 'aPIKeyCreateDto' is not null or undefined
  4377. assertParamExists('createApiKey', 'aPIKeyCreateDto', aPIKeyCreateDto)
  4378. const localVarPath = `/api-key`;
  4379. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4380. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4381. let baseOptions;
  4382. if (configuration) {
  4383. baseOptions = configuration.baseOptions;
  4384. }
  4385. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  4386. const localVarHeaderParameter = {} as any;
  4387. const localVarQueryParameter = {} as any;
  4388. // authentication cookie required
  4389. // authentication api_key required
  4390. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4391. // authentication bearer required
  4392. // http bearer authentication required
  4393. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4394. localVarHeaderParameter['Content-Type'] = 'application/json';
  4395. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4396. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4397. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4398. localVarRequestOptions.data = serializeDataIfNeeded(aPIKeyCreateDto, localVarRequestOptions, configuration)
  4399. return {
  4400. url: toPathString(localVarUrlObj),
  4401. options: localVarRequestOptions,
  4402. };
  4403. },
  4404. /**
  4405. *
  4406. * @param {string} id
  4407. * @param {*} [options] Override http request option.
  4408. * @throws {RequiredError}
  4409. */
  4410. deleteApiKey: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4411. // verify required parameter 'id' is not null or undefined
  4412. assertParamExists('deleteApiKey', 'id', id)
  4413. const localVarPath = `/api-key/{id}`
  4414. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4415. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4416. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4417. let baseOptions;
  4418. if (configuration) {
  4419. baseOptions = configuration.baseOptions;
  4420. }
  4421. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  4422. const localVarHeaderParameter = {} as any;
  4423. const localVarQueryParameter = {} as any;
  4424. // authentication cookie required
  4425. // authentication api_key required
  4426. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4427. // authentication bearer required
  4428. // http bearer authentication required
  4429. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4430. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4431. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4432. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4433. return {
  4434. url: toPathString(localVarUrlObj),
  4435. options: localVarRequestOptions,
  4436. };
  4437. },
  4438. /**
  4439. *
  4440. * @param {string} id
  4441. * @param {*} [options] Override http request option.
  4442. * @throws {RequiredError}
  4443. */
  4444. getApiKey: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4445. // verify required parameter 'id' is not null or undefined
  4446. assertParamExists('getApiKey', 'id', id)
  4447. const localVarPath = `/api-key/{id}`
  4448. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4449. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4450. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4451. let baseOptions;
  4452. if (configuration) {
  4453. baseOptions = configuration.baseOptions;
  4454. }
  4455. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4456. const localVarHeaderParameter = {} as any;
  4457. const localVarQueryParameter = {} as any;
  4458. // authentication cookie required
  4459. // authentication api_key required
  4460. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4461. // authentication bearer required
  4462. // http bearer authentication required
  4463. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4464. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4465. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4466. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4467. return {
  4468. url: toPathString(localVarUrlObj),
  4469. options: localVarRequestOptions,
  4470. };
  4471. },
  4472. /**
  4473. *
  4474. * @param {*} [options] Override http request option.
  4475. * @throws {RequiredError}
  4476. */
  4477. getApiKeys: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4478. const localVarPath = `/api-key`;
  4479. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4480. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4481. let baseOptions;
  4482. if (configuration) {
  4483. baseOptions = configuration.baseOptions;
  4484. }
  4485. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4486. const localVarHeaderParameter = {} as any;
  4487. const localVarQueryParameter = {} as any;
  4488. // authentication cookie required
  4489. // authentication api_key required
  4490. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4491. // authentication bearer required
  4492. // http bearer authentication required
  4493. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4494. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4495. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4496. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4497. return {
  4498. url: toPathString(localVarUrlObj),
  4499. options: localVarRequestOptions,
  4500. };
  4501. },
  4502. /**
  4503. *
  4504. * @param {string} id
  4505. * @param {APIKeyUpdateDto} aPIKeyUpdateDto
  4506. * @param {*} [options] Override http request option.
  4507. * @throws {RequiredError}
  4508. */
  4509. updateApiKey: async (id: string, aPIKeyUpdateDto: APIKeyUpdateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4510. // verify required parameter 'id' is not null or undefined
  4511. assertParamExists('updateApiKey', 'id', id)
  4512. // verify required parameter 'aPIKeyUpdateDto' is not null or undefined
  4513. assertParamExists('updateApiKey', 'aPIKeyUpdateDto', aPIKeyUpdateDto)
  4514. const localVarPath = `/api-key/{id}`
  4515. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4516. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4517. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4518. let baseOptions;
  4519. if (configuration) {
  4520. baseOptions = configuration.baseOptions;
  4521. }
  4522. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  4523. const localVarHeaderParameter = {} as any;
  4524. const localVarQueryParameter = {} as any;
  4525. // authentication cookie required
  4526. // authentication api_key required
  4527. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4528. // authentication bearer required
  4529. // http bearer authentication required
  4530. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4531. localVarHeaderParameter['Content-Type'] = 'application/json';
  4532. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4533. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4534. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4535. localVarRequestOptions.data = serializeDataIfNeeded(aPIKeyUpdateDto, localVarRequestOptions, configuration)
  4536. return {
  4537. url: toPathString(localVarUrlObj),
  4538. options: localVarRequestOptions,
  4539. };
  4540. },
  4541. }
  4542. };
  4543. /**
  4544. * APIKeyApi - functional programming interface
  4545. * @export
  4546. */
  4547. export const APIKeyApiFp = function(configuration?: Configuration) {
  4548. const localVarAxiosParamCreator = APIKeyApiAxiosParamCreator(configuration)
  4549. return {
  4550. /**
  4551. *
  4552. * @param {APIKeyCreateDto} aPIKeyCreateDto
  4553. * @param {*} [options] Override http request option.
  4554. * @throws {RequiredError}
  4555. */
  4556. async createApiKey(aPIKeyCreateDto: APIKeyCreateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIKeyCreateResponseDto>> {
  4557. const localVarAxiosArgs = await localVarAxiosParamCreator.createApiKey(aPIKeyCreateDto, options);
  4558. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4559. },
  4560. /**
  4561. *
  4562. * @param {string} id
  4563. * @param {*} [options] Override http request option.
  4564. * @throws {RequiredError}
  4565. */
  4566. async deleteApiKey(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  4567. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteApiKey(id, options);
  4568. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4569. },
  4570. /**
  4571. *
  4572. * @param {string} id
  4573. * @param {*} [options] Override http request option.
  4574. * @throws {RequiredError}
  4575. */
  4576. async getApiKey(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIKeyResponseDto>> {
  4577. const localVarAxiosArgs = await localVarAxiosParamCreator.getApiKey(id, options);
  4578. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4579. },
  4580. /**
  4581. *
  4582. * @param {*} [options] Override http request option.
  4583. * @throws {RequiredError}
  4584. */
  4585. async getApiKeys(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<APIKeyResponseDto>>> {
  4586. const localVarAxiosArgs = await localVarAxiosParamCreator.getApiKeys(options);
  4587. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4588. },
  4589. /**
  4590. *
  4591. * @param {string} id
  4592. * @param {APIKeyUpdateDto} aPIKeyUpdateDto
  4593. * @param {*} [options] Override http request option.
  4594. * @throws {RequiredError}
  4595. */
  4596. async updateApiKey(id: string, aPIKeyUpdateDto: APIKeyUpdateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIKeyResponseDto>> {
  4597. const localVarAxiosArgs = await localVarAxiosParamCreator.updateApiKey(id, aPIKeyUpdateDto, options);
  4598. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4599. },
  4600. }
  4601. };
  4602. /**
  4603. * APIKeyApi - factory interface
  4604. * @export
  4605. */
  4606. export const APIKeyApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  4607. const localVarFp = APIKeyApiFp(configuration)
  4608. return {
  4609. /**
  4610. *
  4611. * @param {APIKeyApiCreateApiKeyRequest} requestParameters Request parameters.
  4612. * @param {*} [options] Override http request option.
  4613. * @throws {RequiredError}
  4614. */
  4615. createApiKey(requestParameters: APIKeyApiCreateApiKeyRequest, options?: AxiosRequestConfig): AxiosPromise<APIKeyCreateResponseDto> {
  4616. return localVarFp.createApiKey(requestParameters.aPIKeyCreateDto, options).then((request) => request(axios, basePath));
  4617. },
  4618. /**
  4619. *
  4620. * @param {APIKeyApiDeleteApiKeyRequest} requestParameters Request parameters.
  4621. * @param {*} [options] Override http request option.
  4622. * @throws {RequiredError}
  4623. */
  4624. deleteApiKey(requestParameters: APIKeyApiDeleteApiKeyRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  4625. return localVarFp.deleteApiKey(requestParameters.id, options).then((request) => request(axios, basePath));
  4626. },
  4627. /**
  4628. *
  4629. * @param {APIKeyApiGetApiKeyRequest} requestParameters Request parameters.
  4630. * @param {*} [options] Override http request option.
  4631. * @throws {RequiredError}
  4632. */
  4633. getApiKey(requestParameters: APIKeyApiGetApiKeyRequest, options?: AxiosRequestConfig): AxiosPromise<APIKeyResponseDto> {
  4634. return localVarFp.getApiKey(requestParameters.id, options).then((request) => request(axios, basePath));
  4635. },
  4636. /**
  4637. *
  4638. * @param {*} [options] Override http request option.
  4639. * @throws {RequiredError}
  4640. */
  4641. getApiKeys(options?: AxiosRequestConfig): AxiosPromise<Array<APIKeyResponseDto>> {
  4642. return localVarFp.getApiKeys(options).then((request) => request(axios, basePath));
  4643. },
  4644. /**
  4645. *
  4646. * @param {APIKeyApiUpdateApiKeyRequest} requestParameters Request parameters.
  4647. * @param {*} [options] Override http request option.
  4648. * @throws {RequiredError}
  4649. */
  4650. updateApiKey(requestParameters: APIKeyApiUpdateApiKeyRequest, options?: AxiosRequestConfig): AxiosPromise<APIKeyResponseDto> {
  4651. return localVarFp.updateApiKey(requestParameters.id, requestParameters.aPIKeyUpdateDto, options).then((request) => request(axios, basePath));
  4652. },
  4653. };
  4654. };
  4655. /**
  4656. * Request parameters for createApiKey operation in APIKeyApi.
  4657. * @export
  4658. * @interface APIKeyApiCreateApiKeyRequest
  4659. */
  4660. export interface APIKeyApiCreateApiKeyRequest {
  4661. /**
  4662. *
  4663. * @type {APIKeyCreateDto}
  4664. * @memberof APIKeyApiCreateApiKey
  4665. */
  4666. readonly aPIKeyCreateDto: APIKeyCreateDto
  4667. }
  4668. /**
  4669. * Request parameters for deleteApiKey operation in APIKeyApi.
  4670. * @export
  4671. * @interface APIKeyApiDeleteApiKeyRequest
  4672. */
  4673. export interface APIKeyApiDeleteApiKeyRequest {
  4674. /**
  4675. *
  4676. * @type {string}
  4677. * @memberof APIKeyApiDeleteApiKey
  4678. */
  4679. readonly id: string
  4680. }
  4681. /**
  4682. * Request parameters for getApiKey operation in APIKeyApi.
  4683. * @export
  4684. * @interface APIKeyApiGetApiKeyRequest
  4685. */
  4686. export interface APIKeyApiGetApiKeyRequest {
  4687. /**
  4688. *
  4689. * @type {string}
  4690. * @memberof APIKeyApiGetApiKey
  4691. */
  4692. readonly id: string
  4693. }
  4694. /**
  4695. * Request parameters for updateApiKey operation in APIKeyApi.
  4696. * @export
  4697. * @interface APIKeyApiUpdateApiKeyRequest
  4698. */
  4699. export interface APIKeyApiUpdateApiKeyRequest {
  4700. /**
  4701. *
  4702. * @type {string}
  4703. * @memberof APIKeyApiUpdateApiKey
  4704. */
  4705. readonly id: string
  4706. /**
  4707. *
  4708. * @type {APIKeyUpdateDto}
  4709. * @memberof APIKeyApiUpdateApiKey
  4710. */
  4711. readonly aPIKeyUpdateDto: APIKeyUpdateDto
  4712. }
  4713. /**
  4714. * APIKeyApi - object-oriented interface
  4715. * @export
  4716. * @class APIKeyApi
  4717. * @extends {BaseAPI}
  4718. */
  4719. export class APIKeyApi extends BaseAPI {
  4720. /**
  4721. *
  4722. * @param {APIKeyApiCreateApiKeyRequest} requestParameters Request parameters.
  4723. * @param {*} [options] Override http request option.
  4724. * @throws {RequiredError}
  4725. * @memberof APIKeyApi
  4726. */
  4727. public createApiKey(requestParameters: APIKeyApiCreateApiKeyRequest, options?: AxiosRequestConfig) {
  4728. return APIKeyApiFp(this.configuration).createApiKey(requestParameters.aPIKeyCreateDto, options).then((request) => request(this.axios, this.basePath));
  4729. }
  4730. /**
  4731. *
  4732. * @param {APIKeyApiDeleteApiKeyRequest} requestParameters Request parameters.
  4733. * @param {*} [options] Override http request option.
  4734. * @throws {RequiredError}
  4735. * @memberof APIKeyApi
  4736. */
  4737. public deleteApiKey(requestParameters: APIKeyApiDeleteApiKeyRequest, options?: AxiosRequestConfig) {
  4738. return APIKeyApiFp(this.configuration).deleteApiKey(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  4739. }
  4740. /**
  4741. *
  4742. * @param {APIKeyApiGetApiKeyRequest} requestParameters Request parameters.
  4743. * @param {*} [options] Override http request option.
  4744. * @throws {RequiredError}
  4745. * @memberof APIKeyApi
  4746. */
  4747. public getApiKey(requestParameters: APIKeyApiGetApiKeyRequest, options?: AxiosRequestConfig) {
  4748. return APIKeyApiFp(this.configuration).getApiKey(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  4749. }
  4750. /**
  4751. *
  4752. * @param {*} [options] Override http request option.
  4753. * @throws {RequiredError}
  4754. * @memberof APIKeyApi
  4755. */
  4756. public getApiKeys(options?: AxiosRequestConfig) {
  4757. return APIKeyApiFp(this.configuration).getApiKeys(options).then((request) => request(this.axios, this.basePath));
  4758. }
  4759. /**
  4760. *
  4761. * @param {APIKeyApiUpdateApiKeyRequest} requestParameters Request parameters.
  4762. * @param {*} [options] Override http request option.
  4763. * @throws {RequiredError}
  4764. * @memberof APIKeyApi
  4765. */
  4766. public updateApiKey(requestParameters: APIKeyApiUpdateApiKeyRequest, options?: AxiosRequestConfig) {
  4767. return APIKeyApiFp(this.configuration).updateApiKey(requestParameters.id, requestParameters.aPIKeyUpdateDto, options).then((request) => request(this.axios, this.basePath));
  4768. }
  4769. }
  4770. /**
  4771. * ActivityApi - axios parameter creator
  4772. * @export
  4773. */
  4774. export const ActivityApiAxiosParamCreator = function (configuration?: Configuration) {
  4775. return {
  4776. /**
  4777. *
  4778. * @param {ActivityCreateDto} activityCreateDto
  4779. * @param {*} [options] Override http request option.
  4780. * @throws {RequiredError}
  4781. */
  4782. createActivity: async (activityCreateDto: ActivityCreateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4783. // verify required parameter 'activityCreateDto' is not null or undefined
  4784. assertParamExists('createActivity', 'activityCreateDto', activityCreateDto)
  4785. const localVarPath = `/activity`;
  4786. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4787. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4788. let baseOptions;
  4789. if (configuration) {
  4790. baseOptions = configuration.baseOptions;
  4791. }
  4792. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  4793. const localVarHeaderParameter = {} as any;
  4794. const localVarQueryParameter = {} as any;
  4795. // authentication cookie required
  4796. // authentication api_key required
  4797. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4798. // authentication bearer required
  4799. // http bearer authentication required
  4800. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4801. localVarHeaderParameter['Content-Type'] = 'application/json';
  4802. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4803. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4804. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4805. localVarRequestOptions.data = serializeDataIfNeeded(activityCreateDto, localVarRequestOptions, configuration)
  4806. return {
  4807. url: toPathString(localVarUrlObj),
  4808. options: localVarRequestOptions,
  4809. };
  4810. },
  4811. /**
  4812. *
  4813. * @param {string} id
  4814. * @param {*} [options] Override http request option.
  4815. * @throws {RequiredError}
  4816. */
  4817. deleteActivity: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4818. // verify required parameter 'id' is not null or undefined
  4819. assertParamExists('deleteActivity', 'id', id)
  4820. const localVarPath = `/activity/{id}`
  4821. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4822. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4823. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4824. let baseOptions;
  4825. if (configuration) {
  4826. baseOptions = configuration.baseOptions;
  4827. }
  4828. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  4829. const localVarHeaderParameter = {} as any;
  4830. const localVarQueryParameter = {} as any;
  4831. // authentication cookie required
  4832. // authentication api_key required
  4833. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4834. // authentication bearer required
  4835. // http bearer authentication required
  4836. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4837. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4838. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4839. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4840. return {
  4841. url: toPathString(localVarUrlObj),
  4842. options: localVarRequestOptions,
  4843. };
  4844. },
  4845. /**
  4846. *
  4847. * @param {string} albumId
  4848. * @param {string} [assetId]
  4849. * @param {ReactionType} [type]
  4850. * @param {ReactionLevel} [level]
  4851. * @param {string} [userId]
  4852. * @param {*} [options] Override http request option.
  4853. * @throws {RequiredError}
  4854. */
  4855. getActivities: async (albumId: string, assetId?: string, type?: ReactionType, level?: ReactionLevel, userId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4856. // verify required parameter 'albumId' is not null or undefined
  4857. assertParamExists('getActivities', 'albumId', albumId)
  4858. const localVarPath = `/activity`;
  4859. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4860. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4861. let baseOptions;
  4862. if (configuration) {
  4863. baseOptions = configuration.baseOptions;
  4864. }
  4865. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4866. const localVarHeaderParameter = {} as any;
  4867. const localVarQueryParameter = {} as any;
  4868. // authentication cookie required
  4869. // authentication api_key required
  4870. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4871. // authentication bearer required
  4872. // http bearer authentication required
  4873. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4874. if (albumId !== undefined) {
  4875. localVarQueryParameter['albumId'] = albumId;
  4876. }
  4877. if (assetId !== undefined) {
  4878. localVarQueryParameter['assetId'] = assetId;
  4879. }
  4880. if (type !== undefined) {
  4881. localVarQueryParameter['type'] = type;
  4882. }
  4883. if (level !== undefined) {
  4884. localVarQueryParameter['level'] = level;
  4885. }
  4886. if (userId !== undefined) {
  4887. localVarQueryParameter['userId'] = userId;
  4888. }
  4889. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4890. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4891. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4892. return {
  4893. url: toPathString(localVarUrlObj),
  4894. options: localVarRequestOptions,
  4895. };
  4896. },
  4897. /**
  4898. *
  4899. * @param {string} albumId
  4900. * @param {string} [assetId]
  4901. * @param {*} [options] Override http request option.
  4902. * @throws {RequiredError}
  4903. */
  4904. getActivityStatistics: async (albumId: string, assetId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4905. // verify required parameter 'albumId' is not null or undefined
  4906. assertParamExists('getActivityStatistics', 'albumId', albumId)
  4907. const localVarPath = `/activity/statistics`;
  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: 'GET', ...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. if (albumId !== undefined) {
  4924. localVarQueryParameter['albumId'] = albumId;
  4925. }
  4926. if (assetId !== undefined) {
  4927. localVarQueryParameter['assetId'] = assetId;
  4928. }
  4929. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4930. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4931. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4932. return {
  4933. url: toPathString(localVarUrlObj),
  4934. options: localVarRequestOptions,
  4935. };
  4936. },
  4937. }
  4938. };
  4939. /**
  4940. * ActivityApi - functional programming interface
  4941. * @export
  4942. */
  4943. export const ActivityApiFp = function(configuration?: Configuration) {
  4944. const localVarAxiosParamCreator = ActivityApiAxiosParamCreator(configuration)
  4945. return {
  4946. /**
  4947. *
  4948. * @param {ActivityCreateDto} activityCreateDto
  4949. * @param {*} [options] Override http request option.
  4950. * @throws {RequiredError}
  4951. */
  4952. async createActivity(activityCreateDto: ActivityCreateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ActivityResponseDto>> {
  4953. const localVarAxiosArgs = await localVarAxiosParamCreator.createActivity(activityCreateDto, options);
  4954. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4955. },
  4956. /**
  4957. *
  4958. * @param {string} id
  4959. * @param {*} [options] Override http request option.
  4960. * @throws {RequiredError}
  4961. */
  4962. async deleteActivity(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  4963. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteActivity(id, options);
  4964. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4965. },
  4966. /**
  4967. *
  4968. * @param {string} albumId
  4969. * @param {string} [assetId]
  4970. * @param {ReactionType} [type]
  4971. * @param {ReactionLevel} [level]
  4972. * @param {string} [userId]
  4973. * @param {*} [options] Override http request option.
  4974. * @throws {RequiredError}
  4975. */
  4976. async getActivities(albumId: string, assetId?: string, type?: ReactionType, level?: ReactionLevel, userId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ActivityResponseDto>>> {
  4977. const localVarAxiosArgs = await localVarAxiosParamCreator.getActivities(albumId, assetId, type, level, userId, options);
  4978. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4979. },
  4980. /**
  4981. *
  4982. * @param {string} albumId
  4983. * @param {string} [assetId]
  4984. * @param {*} [options] Override http request option.
  4985. * @throws {RequiredError}
  4986. */
  4987. async getActivityStatistics(albumId: string, assetId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ActivityStatisticsResponseDto>> {
  4988. const localVarAxiosArgs = await localVarAxiosParamCreator.getActivityStatistics(albumId, assetId, options);
  4989. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4990. },
  4991. }
  4992. };
  4993. /**
  4994. * ActivityApi - factory interface
  4995. * @export
  4996. */
  4997. export const ActivityApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  4998. const localVarFp = ActivityApiFp(configuration)
  4999. return {
  5000. /**
  5001. *
  5002. * @param {ActivityApiCreateActivityRequest} requestParameters Request parameters.
  5003. * @param {*} [options] Override http request option.
  5004. * @throws {RequiredError}
  5005. */
  5006. createActivity(requestParameters: ActivityApiCreateActivityRequest, options?: AxiosRequestConfig): AxiosPromise<ActivityResponseDto> {
  5007. return localVarFp.createActivity(requestParameters.activityCreateDto, options).then((request) => request(axios, basePath));
  5008. },
  5009. /**
  5010. *
  5011. * @param {ActivityApiDeleteActivityRequest} requestParameters Request parameters.
  5012. * @param {*} [options] Override http request option.
  5013. * @throws {RequiredError}
  5014. */
  5015. deleteActivity(requestParameters: ActivityApiDeleteActivityRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  5016. return localVarFp.deleteActivity(requestParameters.id, options).then((request) => request(axios, basePath));
  5017. },
  5018. /**
  5019. *
  5020. * @param {ActivityApiGetActivitiesRequest} requestParameters Request parameters.
  5021. * @param {*} [options] Override http request option.
  5022. * @throws {RequiredError}
  5023. */
  5024. getActivities(requestParameters: ActivityApiGetActivitiesRequest, options?: AxiosRequestConfig): AxiosPromise<Array<ActivityResponseDto>> {
  5025. return localVarFp.getActivities(requestParameters.albumId, requestParameters.assetId, requestParameters.type, requestParameters.level, requestParameters.userId, options).then((request) => request(axios, basePath));
  5026. },
  5027. /**
  5028. *
  5029. * @param {ActivityApiGetActivityStatisticsRequest} requestParameters Request parameters.
  5030. * @param {*} [options] Override http request option.
  5031. * @throws {RequiredError}
  5032. */
  5033. getActivityStatistics(requestParameters: ActivityApiGetActivityStatisticsRequest, options?: AxiosRequestConfig): AxiosPromise<ActivityStatisticsResponseDto> {
  5034. return localVarFp.getActivityStatistics(requestParameters.albumId, requestParameters.assetId, options).then((request) => request(axios, basePath));
  5035. },
  5036. };
  5037. };
  5038. /**
  5039. * Request parameters for createActivity operation in ActivityApi.
  5040. * @export
  5041. * @interface ActivityApiCreateActivityRequest
  5042. */
  5043. export interface ActivityApiCreateActivityRequest {
  5044. /**
  5045. *
  5046. * @type {ActivityCreateDto}
  5047. * @memberof ActivityApiCreateActivity
  5048. */
  5049. readonly activityCreateDto: ActivityCreateDto
  5050. }
  5051. /**
  5052. * Request parameters for deleteActivity operation in ActivityApi.
  5053. * @export
  5054. * @interface ActivityApiDeleteActivityRequest
  5055. */
  5056. export interface ActivityApiDeleteActivityRequest {
  5057. /**
  5058. *
  5059. * @type {string}
  5060. * @memberof ActivityApiDeleteActivity
  5061. */
  5062. readonly id: string
  5063. }
  5064. /**
  5065. * Request parameters for getActivities operation in ActivityApi.
  5066. * @export
  5067. * @interface ActivityApiGetActivitiesRequest
  5068. */
  5069. export interface ActivityApiGetActivitiesRequest {
  5070. /**
  5071. *
  5072. * @type {string}
  5073. * @memberof ActivityApiGetActivities
  5074. */
  5075. readonly albumId: string
  5076. /**
  5077. *
  5078. * @type {string}
  5079. * @memberof ActivityApiGetActivities
  5080. */
  5081. readonly assetId?: string
  5082. /**
  5083. *
  5084. * @type {ReactionType}
  5085. * @memberof ActivityApiGetActivities
  5086. */
  5087. readonly type?: ReactionType
  5088. /**
  5089. *
  5090. * @type {ReactionLevel}
  5091. * @memberof ActivityApiGetActivities
  5092. */
  5093. readonly level?: ReactionLevel
  5094. /**
  5095. *
  5096. * @type {string}
  5097. * @memberof ActivityApiGetActivities
  5098. */
  5099. readonly userId?: string
  5100. }
  5101. /**
  5102. * Request parameters for getActivityStatistics operation in ActivityApi.
  5103. * @export
  5104. * @interface ActivityApiGetActivityStatisticsRequest
  5105. */
  5106. export interface ActivityApiGetActivityStatisticsRequest {
  5107. /**
  5108. *
  5109. * @type {string}
  5110. * @memberof ActivityApiGetActivityStatistics
  5111. */
  5112. readonly albumId: string
  5113. /**
  5114. *
  5115. * @type {string}
  5116. * @memberof ActivityApiGetActivityStatistics
  5117. */
  5118. readonly assetId?: string
  5119. }
  5120. /**
  5121. * ActivityApi - object-oriented interface
  5122. * @export
  5123. * @class ActivityApi
  5124. * @extends {BaseAPI}
  5125. */
  5126. export class ActivityApi extends BaseAPI {
  5127. /**
  5128. *
  5129. * @param {ActivityApiCreateActivityRequest} requestParameters Request parameters.
  5130. * @param {*} [options] Override http request option.
  5131. * @throws {RequiredError}
  5132. * @memberof ActivityApi
  5133. */
  5134. public createActivity(requestParameters: ActivityApiCreateActivityRequest, options?: AxiosRequestConfig) {
  5135. return ActivityApiFp(this.configuration).createActivity(requestParameters.activityCreateDto, options).then((request) => request(this.axios, this.basePath));
  5136. }
  5137. /**
  5138. *
  5139. * @param {ActivityApiDeleteActivityRequest} requestParameters Request parameters.
  5140. * @param {*} [options] Override http request option.
  5141. * @throws {RequiredError}
  5142. * @memberof ActivityApi
  5143. */
  5144. public deleteActivity(requestParameters: ActivityApiDeleteActivityRequest, options?: AxiosRequestConfig) {
  5145. return ActivityApiFp(this.configuration).deleteActivity(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  5146. }
  5147. /**
  5148. *
  5149. * @param {ActivityApiGetActivitiesRequest} requestParameters Request parameters.
  5150. * @param {*} [options] Override http request option.
  5151. * @throws {RequiredError}
  5152. * @memberof ActivityApi
  5153. */
  5154. public getActivities(requestParameters: ActivityApiGetActivitiesRequest, options?: AxiosRequestConfig) {
  5155. return ActivityApiFp(this.configuration).getActivities(requestParameters.albumId, requestParameters.assetId, requestParameters.type, requestParameters.level, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
  5156. }
  5157. /**
  5158. *
  5159. * @param {ActivityApiGetActivityStatisticsRequest} requestParameters Request parameters.
  5160. * @param {*} [options] Override http request option.
  5161. * @throws {RequiredError}
  5162. * @memberof ActivityApi
  5163. */
  5164. public getActivityStatistics(requestParameters: ActivityApiGetActivityStatisticsRequest, options?: AxiosRequestConfig) {
  5165. return ActivityApiFp(this.configuration).getActivityStatistics(requestParameters.albumId, requestParameters.assetId, options).then((request) => request(this.axios, this.basePath));
  5166. }
  5167. }
  5168. /**
  5169. * AlbumApi - axios parameter creator
  5170. * @export
  5171. */
  5172. export const AlbumApiAxiosParamCreator = function (configuration?: Configuration) {
  5173. return {
  5174. /**
  5175. *
  5176. * @param {string} id
  5177. * @param {BulkIdsDto} bulkIdsDto
  5178. * @param {string} [key]
  5179. * @param {*} [options] Override http request option.
  5180. * @throws {RequiredError}
  5181. */
  5182. addAssetsToAlbum: async (id: string, bulkIdsDto: BulkIdsDto, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5183. // verify required parameter 'id' is not null or undefined
  5184. assertParamExists('addAssetsToAlbum', 'id', id)
  5185. // verify required parameter 'bulkIdsDto' is not null or undefined
  5186. assertParamExists('addAssetsToAlbum', 'bulkIdsDto', bulkIdsDto)
  5187. const localVarPath = `/album/{id}/assets`
  5188. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  5189. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5190. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5191. let baseOptions;
  5192. if (configuration) {
  5193. baseOptions = configuration.baseOptions;
  5194. }
  5195. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  5196. const localVarHeaderParameter = {} as any;
  5197. const localVarQueryParameter = {} as any;
  5198. // authentication cookie required
  5199. // authentication api_key required
  5200. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5201. // authentication bearer required
  5202. // http bearer authentication required
  5203. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5204. if (key !== undefined) {
  5205. localVarQueryParameter['key'] = key;
  5206. }
  5207. localVarHeaderParameter['Content-Type'] = 'application/json';
  5208. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5209. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5210. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5211. localVarRequestOptions.data = serializeDataIfNeeded(bulkIdsDto, localVarRequestOptions, configuration)
  5212. return {
  5213. url: toPathString(localVarUrlObj),
  5214. options: localVarRequestOptions,
  5215. };
  5216. },
  5217. /**
  5218. *
  5219. * @param {string} id
  5220. * @param {AddUsersDto} addUsersDto
  5221. * @param {*} [options] Override http request option.
  5222. * @throws {RequiredError}
  5223. */
  5224. addUsersToAlbum: async (id: string, addUsersDto: AddUsersDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5225. // verify required parameter 'id' is not null or undefined
  5226. assertParamExists('addUsersToAlbum', 'id', id)
  5227. // verify required parameter 'addUsersDto' is not null or undefined
  5228. assertParamExists('addUsersToAlbum', 'addUsersDto', addUsersDto)
  5229. const localVarPath = `/album/{id}/users`
  5230. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  5231. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5232. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5233. let baseOptions;
  5234. if (configuration) {
  5235. baseOptions = configuration.baseOptions;
  5236. }
  5237. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  5238. const localVarHeaderParameter = {} as any;
  5239. const localVarQueryParameter = {} as any;
  5240. // authentication cookie required
  5241. // authentication api_key required
  5242. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5243. // authentication bearer required
  5244. // http bearer authentication required
  5245. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5246. localVarHeaderParameter['Content-Type'] = 'application/json';
  5247. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5248. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5249. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5250. localVarRequestOptions.data = serializeDataIfNeeded(addUsersDto, localVarRequestOptions, configuration)
  5251. return {
  5252. url: toPathString(localVarUrlObj),
  5253. options: localVarRequestOptions,
  5254. };
  5255. },
  5256. /**
  5257. *
  5258. * @param {CreateAlbumDto} createAlbumDto
  5259. * @param {*} [options] Override http request option.
  5260. * @throws {RequiredError}
  5261. */
  5262. createAlbum: async (createAlbumDto: CreateAlbumDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5263. // verify required parameter 'createAlbumDto' is not null or undefined
  5264. assertParamExists('createAlbum', 'createAlbumDto', createAlbumDto)
  5265. const localVarPath = `/album`;
  5266. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5267. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5268. let baseOptions;
  5269. if (configuration) {
  5270. baseOptions = configuration.baseOptions;
  5271. }
  5272. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  5273. const localVarHeaderParameter = {} as any;
  5274. const localVarQueryParameter = {} as any;
  5275. // authentication cookie required
  5276. // authentication api_key required
  5277. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5278. // authentication bearer required
  5279. // http bearer authentication required
  5280. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5281. localVarHeaderParameter['Content-Type'] = 'application/json';
  5282. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5283. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5284. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5285. localVarRequestOptions.data = serializeDataIfNeeded(createAlbumDto, localVarRequestOptions, configuration)
  5286. return {
  5287. url: toPathString(localVarUrlObj),
  5288. options: localVarRequestOptions,
  5289. };
  5290. },
  5291. /**
  5292. *
  5293. * @param {string} id
  5294. * @param {*} [options] Override http request option.
  5295. * @throws {RequiredError}
  5296. */
  5297. deleteAlbum: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5298. // verify required parameter 'id' is not null or undefined
  5299. assertParamExists('deleteAlbum', 'id', id)
  5300. const localVarPath = `/album/{id}`
  5301. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  5302. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5303. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5304. let baseOptions;
  5305. if (configuration) {
  5306. baseOptions = configuration.baseOptions;
  5307. }
  5308. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  5309. const localVarHeaderParameter = {} as any;
  5310. const localVarQueryParameter = {} as any;
  5311. // authentication cookie required
  5312. // authentication api_key required
  5313. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5314. // authentication bearer required
  5315. // http bearer authentication required
  5316. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5317. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5318. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5319. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5320. return {
  5321. url: toPathString(localVarUrlObj),
  5322. options: localVarRequestOptions,
  5323. };
  5324. },
  5325. /**
  5326. *
  5327. * @param {*} [options] Override http request option.
  5328. * @throws {RequiredError}
  5329. */
  5330. getAlbumCount: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5331. const localVarPath = `/album/count`;
  5332. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5333. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5334. let baseOptions;
  5335. if (configuration) {
  5336. baseOptions = configuration.baseOptions;
  5337. }
  5338. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5339. const localVarHeaderParameter = {} as any;
  5340. const localVarQueryParameter = {} as any;
  5341. // authentication cookie required
  5342. // authentication api_key required
  5343. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5344. // authentication bearer required
  5345. // http bearer authentication required
  5346. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5347. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5348. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5349. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5350. return {
  5351. url: toPathString(localVarUrlObj),
  5352. options: localVarRequestOptions,
  5353. };
  5354. },
  5355. /**
  5356. *
  5357. * @param {string} id
  5358. * @param {boolean} [withoutAssets]
  5359. * @param {string} [key]
  5360. * @param {*} [options] Override http request option.
  5361. * @throws {RequiredError}
  5362. */
  5363. getAlbumInfo: async (id: string, withoutAssets?: boolean, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5364. // verify required parameter 'id' is not null or undefined
  5365. assertParamExists('getAlbumInfo', 'id', id)
  5366. const localVarPath = `/album/{id}`
  5367. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  5368. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5369. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5370. let baseOptions;
  5371. if (configuration) {
  5372. baseOptions = configuration.baseOptions;
  5373. }
  5374. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5375. const localVarHeaderParameter = {} as any;
  5376. const localVarQueryParameter = {} as any;
  5377. // authentication cookie required
  5378. // authentication api_key required
  5379. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5380. // authentication bearer required
  5381. // http bearer authentication required
  5382. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5383. if (withoutAssets !== undefined) {
  5384. localVarQueryParameter['withoutAssets'] = withoutAssets;
  5385. }
  5386. if (key !== undefined) {
  5387. localVarQueryParameter['key'] = key;
  5388. }
  5389. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5390. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5391. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5392. return {
  5393. url: toPathString(localVarUrlObj),
  5394. options: localVarRequestOptions,
  5395. };
  5396. },
  5397. /**
  5398. *
  5399. * @param {boolean} [shared]
  5400. * @param {string} [assetId] Only returns albums that contain the asset Ignores the shared parameter undefined: get all albums
  5401. * @param {*} [options] Override http request option.
  5402. * @throws {RequiredError}
  5403. */
  5404. getAllAlbums: async (shared?: boolean, assetId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5405. const localVarPath = `/album`;
  5406. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5407. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5408. let baseOptions;
  5409. if (configuration) {
  5410. baseOptions = configuration.baseOptions;
  5411. }
  5412. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5413. const localVarHeaderParameter = {} as any;
  5414. const localVarQueryParameter = {} as any;
  5415. // authentication cookie required
  5416. // authentication api_key required
  5417. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5418. // authentication bearer required
  5419. // http bearer authentication required
  5420. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5421. if (shared !== undefined) {
  5422. localVarQueryParameter['shared'] = shared;
  5423. }
  5424. if (assetId !== undefined) {
  5425. localVarQueryParameter['assetId'] = assetId;
  5426. }
  5427. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5428. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5429. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5430. return {
  5431. url: toPathString(localVarUrlObj),
  5432. options: localVarRequestOptions,
  5433. };
  5434. },
  5435. /**
  5436. *
  5437. * @param {string} id
  5438. * @param {BulkIdsDto} bulkIdsDto
  5439. * @param {*} [options] Override http request option.
  5440. * @throws {RequiredError}
  5441. */
  5442. removeAssetFromAlbum: async (id: string, bulkIdsDto: BulkIdsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5443. // verify required parameter 'id' is not null or undefined
  5444. assertParamExists('removeAssetFromAlbum', 'id', id)
  5445. // verify required parameter 'bulkIdsDto' is not null or undefined
  5446. assertParamExists('removeAssetFromAlbum', 'bulkIdsDto', bulkIdsDto)
  5447. const localVarPath = `/album/{id}/assets`
  5448. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  5449. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5450. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5451. let baseOptions;
  5452. if (configuration) {
  5453. baseOptions = configuration.baseOptions;
  5454. }
  5455. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  5456. const localVarHeaderParameter = {} as any;
  5457. const localVarQueryParameter = {} as any;
  5458. // authentication cookie required
  5459. // authentication api_key required
  5460. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5461. // authentication bearer required
  5462. // http bearer authentication required
  5463. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5464. localVarHeaderParameter['Content-Type'] = 'application/json';
  5465. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5466. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5467. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5468. localVarRequestOptions.data = serializeDataIfNeeded(bulkIdsDto, localVarRequestOptions, configuration)
  5469. return {
  5470. url: toPathString(localVarUrlObj),
  5471. options: localVarRequestOptions,
  5472. };
  5473. },
  5474. /**
  5475. *
  5476. * @param {string} id
  5477. * @param {string} userId
  5478. * @param {*} [options] Override http request option.
  5479. * @throws {RequiredError}
  5480. */
  5481. removeUserFromAlbum: async (id: string, userId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5482. // verify required parameter 'id' is not null or undefined
  5483. assertParamExists('removeUserFromAlbum', 'id', id)
  5484. // verify required parameter 'userId' is not null or undefined
  5485. assertParamExists('removeUserFromAlbum', 'userId', userId)
  5486. const localVarPath = `/album/{id}/user/{userId}`
  5487. .replace(`{${"id"}}`, encodeURIComponent(String(id)))
  5488. .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
  5489. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5490. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5491. let baseOptions;
  5492. if (configuration) {
  5493. baseOptions = configuration.baseOptions;
  5494. }
  5495. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  5496. const localVarHeaderParameter = {} as any;
  5497. const localVarQueryParameter = {} as any;
  5498. // authentication cookie required
  5499. // authentication api_key required
  5500. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5501. // authentication bearer required
  5502. // http bearer authentication required
  5503. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5504. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5505. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5506. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5507. return {
  5508. url: toPathString(localVarUrlObj),
  5509. options: localVarRequestOptions,
  5510. };
  5511. },
  5512. /**
  5513. *
  5514. * @param {string} id
  5515. * @param {UpdateAlbumDto} updateAlbumDto
  5516. * @param {*} [options] Override http request option.
  5517. * @throws {RequiredError}
  5518. */
  5519. updateAlbumInfo: async (id: string, updateAlbumDto: UpdateAlbumDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5520. // verify required parameter 'id' is not null or undefined
  5521. assertParamExists('updateAlbumInfo', 'id', id)
  5522. // verify required parameter 'updateAlbumDto' is not null or undefined
  5523. assertParamExists('updateAlbumInfo', 'updateAlbumDto', updateAlbumDto)
  5524. const localVarPath = `/album/{id}`
  5525. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  5526. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5527. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5528. let baseOptions;
  5529. if (configuration) {
  5530. baseOptions = configuration.baseOptions;
  5531. }
  5532. const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
  5533. const localVarHeaderParameter = {} as any;
  5534. const localVarQueryParameter = {} as any;
  5535. // authentication cookie required
  5536. // authentication api_key required
  5537. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5538. // authentication bearer required
  5539. // http bearer authentication required
  5540. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5541. localVarHeaderParameter['Content-Type'] = 'application/json';
  5542. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5543. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5544. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5545. localVarRequestOptions.data = serializeDataIfNeeded(updateAlbumDto, localVarRequestOptions, configuration)
  5546. return {
  5547. url: toPathString(localVarUrlObj),
  5548. options: localVarRequestOptions,
  5549. };
  5550. },
  5551. }
  5552. };
  5553. /**
  5554. * AlbumApi - functional programming interface
  5555. * @export
  5556. */
  5557. export const AlbumApiFp = function(configuration?: Configuration) {
  5558. const localVarAxiosParamCreator = AlbumApiAxiosParamCreator(configuration)
  5559. return {
  5560. /**
  5561. *
  5562. * @param {string} id
  5563. * @param {BulkIdsDto} bulkIdsDto
  5564. * @param {string} [key]
  5565. * @param {*} [options] Override http request option.
  5566. * @throws {RequiredError}
  5567. */
  5568. async addAssetsToAlbum(id: string, bulkIdsDto: BulkIdsDto, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BulkIdResponseDto>>> {
  5569. const localVarAxiosArgs = await localVarAxiosParamCreator.addAssetsToAlbum(id, bulkIdsDto, key, options);
  5570. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5571. },
  5572. /**
  5573. *
  5574. * @param {string} id
  5575. * @param {AddUsersDto} addUsersDto
  5576. * @param {*} [options] Override http request option.
  5577. * @throws {RequiredError}
  5578. */
  5579. async addUsersToAlbum(id: string, addUsersDto: AddUsersDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumResponseDto>> {
  5580. const localVarAxiosArgs = await localVarAxiosParamCreator.addUsersToAlbum(id, addUsersDto, options);
  5581. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5582. },
  5583. /**
  5584. *
  5585. * @param {CreateAlbumDto} createAlbumDto
  5586. * @param {*} [options] Override http request option.
  5587. * @throws {RequiredError}
  5588. */
  5589. async createAlbum(createAlbumDto: CreateAlbumDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumResponseDto>> {
  5590. const localVarAxiosArgs = await localVarAxiosParamCreator.createAlbum(createAlbumDto, options);
  5591. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5592. },
  5593. /**
  5594. *
  5595. * @param {string} id
  5596. * @param {*} [options] Override http request option.
  5597. * @throws {RequiredError}
  5598. */
  5599. async deleteAlbum(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  5600. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAlbum(id, options);
  5601. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5602. },
  5603. /**
  5604. *
  5605. * @param {*} [options] Override http request option.
  5606. * @throws {RequiredError}
  5607. */
  5608. async getAlbumCount(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumCountResponseDto>> {
  5609. const localVarAxiosArgs = await localVarAxiosParamCreator.getAlbumCount(options);
  5610. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5611. },
  5612. /**
  5613. *
  5614. * @param {string} id
  5615. * @param {boolean} [withoutAssets]
  5616. * @param {string} [key]
  5617. * @param {*} [options] Override http request option.
  5618. * @throws {RequiredError}
  5619. */
  5620. async getAlbumInfo(id: string, withoutAssets?: boolean, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumResponseDto>> {
  5621. const localVarAxiosArgs = await localVarAxiosParamCreator.getAlbumInfo(id, withoutAssets, key, options);
  5622. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5623. },
  5624. /**
  5625. *
  5626. * @param {boolean} [shared]
  5627. * @param {string} [assetId] Only returns albums that contain the asset Ignores the shared parameter undefined: get all albums
  5628. * @param {*} [options] Override http request option.
  5629. * @throws {RequiredError}
  5630. */
  5631. async getAllAlbums(shared?: boolean, assetId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AlbumResponseDto>>> {
  5632. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllAlbums(shared, assetId, options);
  5633. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5634. },
  5635. /**
  5636. *
  5637. * @param {string} id
  5638. * @param {BulkIdsDto} bulkIdsDto
  5639. * @param {*} [options] Override http request option.
  5640. * @throws {RequiredError}
  5641. */
  5642. async removeAssetFromAlbum(id: string, bulkIdsDto: BulkIdsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BulkIdResponseDto>>> {
  5643. const localVarAxiosArgs = await localVarAxiosParamCreator.removeAssetFromAlbum(id, bulkIdsDto, options);
  5644. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5645. },
  5646. /**
  5647. *
  5648. * @param {string} id
  5649. * @param {string} userId
  5650. * @param {*} [options] Override http request option.
  5651. * @throws {RequiredError}
  5652. */
  5653. async removeUserFromAlbum(id: string, userId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  5654. const localVarAxiosArgs = await localVarAxiosParamCreator.removeUserFromAlbum(id, userId, options);
  5655. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5656. },
  5657. /**
  5658. *
  5659. * @param {string} id
  5660. * @param {UpdateAlbumDto} updateAlbumDto
  5661. * @param {*} [options] Override http request option.
  5662. * @throws {RequiredError}
  5663. */
  5664. async updateAlbumInfo(id: string, updateAlbumDto: UpdateAlbumDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumResponseDto>> {
  5665. const localVarAxiosArgs = await localVarAxiosParamCreator.updateAlbumInfo(id, updateAlbumDto, options);
  5666. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5667. },
  5668. }
  5669. };
  5670. /**
  5671. * AlbumApi - factory interface
  5672. * @export
  5673. */
  5674. export const AlbumApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  5675. const localVarFp = AlbumApiFp(configuration)
  5676. return {
  5677. /**
  5678. *
  5679. * @param {AlbumApiAddAssetsToAlbumRequest} requestParameters Request parameters.
  5680. * @param {*} [options] Override http request option.
  5681. * @throws {RequiredError}
  5682. */
  5683. addAssetsToAlbum(requestParameters: AlbumApiAddAssetsToAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<Array<BulkIdResponseDto>> {
  5684. return localVarFp.addAssetsToAlbum(requestParameters.id, requestParameters.bulkIdsDto, requestParameters.key, options).then((request) => request(axios, basePath));
  5685. },
  5686. /**
  5687. *
  5688. * @param {AlbumApiAddUsersToAlbumRequest} requestParameters Request parameters.
  5689. * @param {*} [options] Override http request option.
  5690. * @throws {RequiredError}
  5691. */
  5692. addUsersToAlbum(requestParameters: AlbumApiAddUsersToAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<AlbumResponseDto> {
  5693. return localVarFp.addUsersToAlbum(requestParameters.id, requestParameters.addUsersDto, options).then((request) => request(axios, basePath));
  5694. },
  5695. /**
  5696. *
  5697. * @param {AlbumApiCreateAlbumRequest} requestParameters Request parameters.
  5698. * @param {*} [options] Override http request option.
  5699. * @throws {RequiredError}
  5700. */
  5701. createAlbum(requestParameters: AlbumApiCreateAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<AlbumResponseDto> {
  5702. return localVarFp.createAlbum(requestParameters.createAlbumDto, options).then((request) => request(axios, basePath));
  5703. },
  5704. /**
  5705. *
  5706. * @param {AlbumApiDeleteAlbumRequest} requestParameters Request parameters.
  5707. * @param {*} [options] Override http request option.
  5708. * @throws {RequiredError}
  5709. */
  5710. deleteAlbum(requestParameters: AlbumApiDeleteAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  5711. return localVarFp.deleteAlbum(requestParameters.id, options).then((request) => request(axios, basePath));
  5712. },
  5713. /**
  5714. *
  5715. * @param {*} [options] Override http request option.
  5716. * @throws {RequiredError}
  5717. */
  5718. getAlbumCount(options?: AxiosRequestConfig): AxiosPromise<AlbumCountResponseDto> {
  5719. return localVarFp.getAlbumCount(options).then((request) => request(axios, basePath));
  5720. },
  5721. /**
  5722. *
  5723. * @param {AlbumApiGetAlbumInfoRequest} requestParameters Request parameters.
  5724. * @param {*} [options] Override http request option.
  5725. * @throws {RequiredError}
  5726. */
  5727. getAlbumInfo(requestParameters: AlbumApiGetAlbumInfoRequest, options?: AxiosRequestConfig): AxiosPromise<AlbumResponseDto> {
  5728. return localVarFp.getAlbumInfo(requestParameters.id, requestParameters.withoutAssets, requestParameters.key, options).then((request) => request(axios, basePath));
  5729. },
  5730. /**
  5731. *
  5732. * @param {AlbumApiGetAllAlbumsRequest} requestParameters Request parameters.
  5733. * @param {*} [options] Override http request option.
  5734. * @throws {RequiredError}
  5735. */
  5736. getAllAlbums(requestParameters: AlbumApiGetAllAlbumsRequest = {}, options?: AxiosRequestConfig): AxiosPromise<Array<AlbumResponseDto>> {
  5737. return localVarFp.getAllAlbums(requestParameters.shared, requestParameters.assetId, options).then((request) => request(axios, basePath));
  5738. },
  5739. /**
  5740. *
  5741. * @param {AlbumApiRemoveAssetFromAlbumRequest} requestParameters Request parameters.
  5742. * @param {*} [options] Override http request option.
  5743. * @throws {RequiredError}
  5744. */
  5745. removeAssetFromAlbum(requestParameters: AlbumApiRemoveAssetFromAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<Array<BulkIdResponseDto>> {
  5746. return localVarFp.removeAssetFromAlbum(requestParameters.id, requestParameters.bulkIdsDto, options).then((request) => request(axios, basePath));
  5747. },
  5748. /**
  5749. *
  5750. * @param {AlbumApiRemoveUserFromAlbumRequest} requestParameters Request parameters.
  5751. * @param {*} [options] Override http request option.
  5752. * @throws {RequiredError}
  5753. */
  5754. removeUserFromAlbum(requestParameters: AlbumApiRemoveUserFromAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  5755. return localVarFp.removeUserFromAlbum(requestParameters.id, requestParameters.userId, options).then((request) => request(axios, basePath));
  5756. },
  5757. /**
  5758. *
  5759. * @param {AlbumApiUpdateAlbumInfoRequest} requestParameters Request parameters.
  5760. * @param {*} [options] Override http request option.
  5761. * @throws {RequiredError}
  5762. */
  5763. updateAlbumInfo(requestParameters: AlbumApiUpdateAlbumInfoRequest, options?: AxiosRequestConfig): AxiosPromise<AlbumResponseDto> {
  5764. return localVarFp.updateAlbumInfo(requestParameters.id, requestParameters.updateAlbumDto, options).then((request) => request(axios, basePath));
  5765. },
  5766. };
  5767. };
  5768. /**
  5769. * Request parameters for addAssetsToAlbum operation in AlbumApi.
  5770. * @export
  5771. * @interface AlbumApiAddAssetsToAlbumRequest
  5772. */
  5773. export interface AlbumApiAddAssetsToAlbumRequest {
  5774. /**
  5775. *
  5776. * @type {string}
  5777. * @memberof AlbumApiAddAssetsToAlbum
  5778. */
  5779. readonly id: string
  5780. /**
  5781. *
  5782. * @type {BulkIdsDto}
  5783. * @memberof AlbumApiAddAssetsToAlbum
  5784. */
  5785. readonly bulkIdsDto: BulkIdsDto
  5786. /**
  5787. *
  5788. * @type {string}
  5789. * @memberof AlbumApiAddAssetsToAlbum
  5790. */
  5791. readonly key?: string
  5792. }
  5793. /**
  5794. * Request parameters for addUsersToAlbum operation in AlbumApi.
  5795. * @export
  5796. * @interface AlbumApiAddUsersToAlbumRequest
  5797. */
  5798. export interface AlbumApiAddUsersToAlbumRequest {
  5799. /**
  5800. *
  5801. * @type {string}
  5802. * @memberof AlbumApiAddUsersToAlbum
  5803. */
  5804. readonly id: string
  5805. /**
  5806. *
  5807. * @type {AddUsersDto}
  5808. * @memberof AlbumApiAddUsersToAlbum
  5809. */
  5810. readonly addUsersDto: AddUsersDto
  5811. }
  5812. /**
  5813. * Request parameters for createAlbum operation in AlbumApi.
  5814. * @export
  5815. * @interface AlbumApiCreateAlbumRequest
  5816. */
  5817. export interface AlbumApiCreateAlbumRequest {
  5818. /**
  5819. *
  5820. * @type {CreateAlbumDto}
  5821. * @memberof AlbumApiCreateAlbum
  5822. */
  5823. readonly createAlbumDto: CreateAlbumDto
  5824. }
  5825. /**
  5826. * Request parameters for deleteAlbum operation in AlbumApi.
  5827. * @export
  5828. * @interface AlbumApiDeleteAlbumRequest
  5829. */
  5830. export interface AlbumApiDeleteAlbumRequest {
  5831. /**
  5832. *
  5833. * @type {string}
  5834. * @memberof AlbumApiDeleteAlbum
  5835. */
  5836. readonly id: string
  5837. }
  5838. /**
  5839. * Request parameters for getAlbumInfo operation in AlbumApi.
  5840. * @export
  5841. * @interface AlbumApiGetAlbumInfoRequest
  5842. */
  5843. export interface AlbumApiGetAlbumInfoRequest {
  5844. /**
  5845. *
  5846. * @type {string}
  5847. * @memberof AlbumApiGetAlbumInfo
  5848. */
  5849. readonly id: string
  5850. /**
  5851. *
  5852. * @type {boolean}
  5853. * @memberof AlbumApiGetAlbumInfo
  5854. */
  5855. readonly withoutAssets?: boolean
  5856. /**
  5857. *
  5858. * @type {string}
  5859. * @memberof AlbumApiGetAlbumInfo
  5860. */
  5861. readonly key?: string
  5862. }
  5863. /**
  5864. * Request parameters for getAllAlbums operation in AlbumApi.
  5865. * @export
  5866. * @interface AlbumApiGetAllAlbumsRequest
  5867. */
  5868. export interface AlbumApiGetAllAlbumsRequest {
  5869. /**
  5870. *
  5871. * @type {boolean}
  5872. * @memberof AlbumApiGetAllAlbums
  5873. */
  5874. readonly shared?: boolean
  5875. /**
  5876. * Only returns albums that contain the asset Ignores the shared parameter undefined: get all albums
  5877. * @type {string}
  5878. * @memberof AlbumApiGetAllAlbums
  5879. */
  5880. readonly assetId?: string
  5881. }
  5882. /**
  5883. * Request parameters for removeAssetFromAlbum operation in AlbumApi.
  5884. * @export
  5885. * @interface AlbumApiRemoveAssetFromAlbumRequest
  5886. */
  5887. export interface AlbumApiRemoveAssetFromAlbumRequest {
  5888. /**
  5889. *
  5890. * @type {string}
  5891. * @memberof AlbumApiRemoveAssetFromAlbum
  5892. */
  5893. readonly id: string
  5894. /**
  5895. *
  5896. * @type {BulkIdsDto}
  5897. * @memberof AlbumApiRemoveAssetFromAlbum
  5898. */
  5899. readonly bulkIdsDto: BulkIdsDto
  5900. }
  5901. /**
  5902. * Request parameters for removeUserFromAlbum operation in AlbumApi.
  5903. * @export
  5904. * @interface AlbumApiRemoveUserFromAlbumRequest
  5905. */
  5906. export interface AlbumApiRemoveUserFromAlbumRequest {
  5907. /**
  5908. *
  5909. * @type {string}
  5910. * @memberof AlbumApiRemoveUserFromAlbum
  5911. */
  5912. readonly id: string
  5913. /**
  5914. *
  5915. * @type {string}
  5916. * @memberof AlbumApiRemoveUserFromAlbum
  5917. */
  5918. readonly userId: string
  5919. }
  5920. /**
  5921. * Request parameters for updateAlbumInfo operation in AlbumApi.
  5922. * @export
  5923. * @interface AlbumApiUpdateAlbumInfoRequest
  5924. */
  5925. export interface AlbumApiUpdateAlbumInfoRequest {
  5926. /**
  5927. *
  5928. * @type {string}
  5929. * @memberof AlbumApiUpdateAlbumInfo
  5930. */
  5931. readonly id: string
  5932. /**
  5933. *
  5934. * @type {UpdateAlbumDto}
  5935. * @memberof AlbumApiUpdateAlbumInfo
  5936. */
  5937. readonly updateAlbumDto: UpdateAlbumDto
  5938. }
  5939. /**
  5940. * AlbumApi - object-oriented interface
  5941. * @export
  5942. * @class AlbumApi
  5943. * @extends {BaseAPI}
  5944. */
  5945. export class AlbumApi extends BaseAPI {
  5946. /**
  5947. *
  5948. * @param {AlbumApiAddAssetsToAlbumRequest} requestParameters Request parameters.
  5949. * @param {*} [options] Override http request option.
  5950. * @throws {RequiredError}
  5951. * @memberof AlbumApi
  5952. */
  5953. public addAssetsToAlbum(requestParameters: AlbumApiAddAssetsToAlbumRequest, options?: AxiosRequestConfig) {
  5954. return AlbumApiFp(this.configuration).addAssetsToAlbum(requestParameters.id, requestParameters.bulkIdsDto, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  5955. }
  5956. /**
  5957. *
  5958. * @param {AlbumApiAddUsersToAlbumRequest} requestParameters Request parameters.
  5959. * @param {*} [options] Override http request option.
  5960. * @throws {RequiredError}
  5961. * @memberof AlbumApi
  5962. */
  5963. public addUsersToAlbum(requestParameters: AlbumApiAddUsersToAlbumRequest, options?: AxiosRequestConfig) {
  5964. return AlbumApiFp(this.configuration).addUsersToAlbum(requestParameters.id, requestParameters.addUsersDto, options).then((request) => request(this.axios, this.basePath));
  5965. }
  5966. /**
  5967. *
  5968. * @param {AlbumApiCreateAlbumRequest} requestParameters Request parameters.
  5969. * @param {*} [options] Override http request option.
  5970. * @throws {RequiredError}
  5971. * @memberof AlbumApi
  5972. */
  5973. public createAlbum(requestParameters: AlbumApiCreateAlbumRequest, options?: AxiosRequestConfig) {
  5974. return AlbumApiFp(this.configuration).createAlbum(requestParameters.createAlbumDto, options).then((request) => request(this.axios, this.basePath));
  5975. }
  5976. /**
  5977. *
  5978. * @param {AlbumApiDeleteAlbumRequest} requestParameters Request parameters.
  5979. * @param {*} [options] Override http request option.
  5980. * @throws {RequiredError}
  5981. * @memberof AlbumApi
  5982. */
  5983. public deleteAlbum(requestParameters: AlbumApiDeleteAlbumRequest, options?: AxiosRequestConfig) {
  5984. return AlbumApiFp(this.configuration).deleteAlbum(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  5985. }
  5986. /**
  5987. *
  5988. * @param {*} [options] Override http request option.
  5989. * @throws {RequiredError}
  5990. * @memberof AlbumApi
  5991. */
  5992. public getAlbumCount(options?: AxiosRequestConfig) {
  5993. return AlbumApiFp(this.configuration).getAlbumCount(options).then((request) => request(this.axios, this.basePath));
  5994. }
  5995. /**
  5996. *
  5997. * @param {AlbumApiGetAlbumInfoRequest} requestParameters Request parameters.
  5998. * @param {*} [options] Override http request option.
  5999. * @throws {RequiredError}
  6000. * @memberof AlbumApi
  6001. */
  6002. public getAlbumInfo(requestParameters: AlbumApiGetAlbumInfoRequest, options?: AxiosRequestConfig) {
  6003. return AlbumApiFp(this.configuration).getAlbumInfo(requestParameters.id, requestParameters.withoutAssets, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  6004. }
  6005. /**
  6006. *
  6007. * @param {AlbumApiGetAllAlbumsRequest} requestParameters Request parameters.
  6008. * @param {*} [options] Override http request option.
  6009. * @throws {RequiredError}
  6010. * @memberof AlbumApi
  6011. */
  6012. public getAllAlbums(requestParameters: AlbumApiGetAllAlbumsRequest = {}, options?: AxiosRequestConfig) {
  6013. return AlbumApiFp(this.configuration).getAllAlbums(requestParameters.shared, requestParameters.assetId, options).then((request) => request(this.axios, this.basePath));
  6014. }
  6015. /**
  6016. *
  6017. * @param {AlbumApiRemoveAssetFromAlbumRequest} requestParameters Request parameters.
  6018. * @param {*} [options] Override http request option.
  6019. * @throws {RequiredError}
  6020. * @memberof AlbumApi
  6021. */
  6022. public removeAssetFromAlbum(requestParameters: AlbumApiRemoveAssetFromAlbumRequest, options?: AxiosRequestConfig) {
  6023. return AlbumApiFp(this.configuration).removeAssetFromAlbum(requestParameters.id, requestParameters.bulkIdsDto, options).then((request) => request(this.axios, this.basePath));
  6024. }
  6025. /**
  6026. *
  6027. * @param {AlbumApiRemoveUserFromAlbumRequest} requestParameters Request parameters.
  6028. * @param {*} [options] Override http request option.
  6029. * @throws {RequiredError}
  6030. * @memberof AlbumApi
  6031. */
  6032. public removeUserFromAlbum(requestParameters: AlbumApiRemoveUserFromAlbumRequest, options?: AxiosRequestConfig) {
  6033. return AlbumApiFp(this.configuration).removeUserFromAlbum(requestParameters.id, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
  6034. }
  6035. /**
  6036. *
  6037. * @param {AlbumApiUpdateAlbumInfoRequest} requestParameters Request parameters.
  6038. * @param {*} [options] Override http request option.
  6039. * @throws {RequiredError}
  6040. * @memberof AlbumApi
  6041. */
  6042. public updateAlbumInfo(requestParameters: AlbumApiUpdateAlbumInfoRequest, options?: AxiosRequestConfig) {
  6043. return AlbumApiFp(this.configuration).updateAlbumInfo(requestParameters.id, requestParameters.updateAlbumDto, options).then((request) => request(this.axios, this.basePath));
  6044. }
  6045. }
  6046. /**
  6047. * AssetApi - axios parameter creator
  6048. * @export
  6049. */
  6050. export const AssetApiAxiosParamCreator = function (configuration?: Configuration) {
  6051. return {
  6052. /**
  6053. * Checks if assets exist by checksums
  6054. * @param {AssetBulkUploadCheckDto} assetBulkUploadCheckDto
  6055. * @param {*} [options] Override http request option.
  6056. * @throws {RequiredError}
  6057. */
  6058. checkBulkUpload: async (assetBulkUploadCheckDto: AssetBulkUploadCheckDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6059. // verify required parameter 'assetBulkUploadCheckDto' is not null or undefined
  6060. assertParamExists('checkBulkUpload', 'assetBulkUploadCheckDto', assetBulkUploadCheckDto)
  6061. const localVarPath = `/asset/bulk-upload-check`;
  6062. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6063. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6064. let baseOptions;
  6065. if (configuration) {
  6066. baseOptions = configuration.baseOptions;
  6067. }
  6068. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6069. const localVarHeaderParameter = {} as any;
  6070. const localVarQueryParameter = {} as any;
  6071. // authentication cookie required
  6072. // authentication api_key required
  6073. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6074. // authentication bearer required
  6075. // http bearer authentication required
  6076. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6077. localVarHeaderParameter['Content-Type'] = 'application/json';
  6078. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6079. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6080. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6081. localVarRequestOptions.data = serializeDataIfNeeded(assetBulkUploadCheckDto, localVarRequestOptions, configuration)
  6082. return {
  6083. url: toPathString(localVarUrlObj),
  6084. options: localVarRequestOptions,
  6085. };
  6086. },
  6087. /**
  6088. * Checks if multiple assets exist on the server and returns all existing - used by background backup
  6089. * @param {CheckExistingAssetsDto} checkExistingAssetsDto
  6090. * @param {*} [options] Override http request option.
  6091. * @throws {RequiredError}
  6092. */
  6093. checkExistingAssets: async (checkExistingAssetsDto: CheckExistingAssetsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6094. // verify required parameter 'checkExistingAssetsDto' is not null or undefined
  6095. assertParamExists('checkExistingAssets', 'checkExistingAssetsDto', checkExistingAssetsDto)
  6096. const localVarPath = `/asset/exist`;
  6097. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6098. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6099. let baseOptions;
  6100. if (configuration) {
  6101. baseOptions = configuration.baseOptions;
  6102. }
  6103. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6104. const localVarHeaderParameter = {} as any;
  6105. const localVarQueryParameter = {} as any;
  6106. // authentication cookie required
  6107. // authentication api_key required
  6108. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6109. // authentication bearer required
  6110. // http bearer authentication required
  6111. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6112. localVarHeaderParameter['Content-Type'] = 'application/json';
  6113. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6114. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6115. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6116. localVarRequestOptions.data = serializeDataIfNeeded(checkExistingAssetsDto, localVarRequestOptions, configuration)
  6117. return {
  6118. url: toPathString(localVarUrlObj),
  6119. options: localVarRequestOptions,
  6120. };
  6121. },
  6122. /**
  6123. *
  6124. * @param {AssetBulkDeleteDto} assetBulkDeleteDto
  6125. * @param {*} [options] Override http request option.
  6126. * @throws {RequiredError}
  6127. */
  6128. deleteAssets: async (assetBulkDeleteDto: AssetBulkDeleteDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6129. // verify required parameter 'assetBulkDeleteDto' is not null or undefined
  6130. assertParamExists('deleteAssets', 'assetBulkDeleteDto', assetBulkDeleteDto)
  6131. const localVarPath = `/asset`;
  6132. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6133. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6134. let baseOptions;
  6135. if (configuration) {
  6136. baseOptions = configuration.baseOptions;
  6137. }
  6138. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  6139. const localVarHeaderParameter = {} as any;
  6140. const localVarQueryParameter = {} as any;
  6141. // authentication cookie required
  6142. // authentication api_key required
  6143. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6144. // authentication bearer required
  6145. // http bearer authentication required
  6146. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6147. localVarHeaderParameter['Content-Type'] = 'application/json';
  6148. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6149. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6150. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6151. localVarRequestOptions.data = serializeDataIfNeeded(assetBulkDeleteDto, localVarRequestOptions, configuration)
  6152. return {
  6153. url: toPathString(localVarUrlObj),
  6154. options: localVarRequestOptions,
  6155. };
  6156. },
  6157. /**
  6158. *
  6159. * @param {AssetIdsDto} assetIdsDto
  6160. * @param {string} [key]
  6161. * @param {*} [options] Override http request option.
  6162. * @throws {RequiredError}
  6163. */
  6164. downloadArchive: async (assetIdsDto: AssetIdsDto, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6165. // verify required parameter 'assetIdsDto' is not null or undefined
  6166. assertParamExists('downloadArchive', 'assetIdsDto', assetIdsDto)
  6167. const localVarPath = `/asset/download/archive`;
  6168. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6169. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6170. let baseOptions;
  6171. if (configuration) {
  6172. baseOptions = configuration.baseOptions;
  6173. }
  6174. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6175. const localVarHeaderParameter = {} as any;
  6176. const localVarQueryParameter = {} as any;
  6177. // authentication cookie required
  6178. // authentication api_key required
  6179. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6180. // authentication bearer required
  6181. // http bearer authentication required
  6182. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6183. if (key !== undefined) {
  6184. localVarQueryParameter['key'] = key;
  6185. }
  6186. localVarHeaderParameter['Content-Type'] = 'application/json';
  6187. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6188. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6189. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6190. localVarRequestOptions.data = serializeDataIfNeeded(assetIdsDto, localVarRequestOptions, configuration)
  6191. return {
  6192. url: toPathString(localVarUrlObj),
  6193. options: localVarRequestOptions,
  6194. };
  6195. },
  6196. /**
  6197. *
  6198. * @param {string} id
  6199. * @param {string} [key]
  6200. * @param {*} [options] Override http request option.
  6201. * @throws {RequiredError}
  6202. */
  6203. downloadFile: async (id: string, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6204. // verify required parameter 'id' is not null or undefined
  6205. assertParamExists('downloadFile', 'id', id)
  6206. const localVarPath = `/asset/download/{id}`
  6207. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  6208. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6209. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6210. let baseOptions;
  6211. if (configuration) {
  6212. baseOptions = configuration.baseOptions;
  6213. }
  6214. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6215. const localVarHeaderParameter = {} as any;
  6216. const localVarQueryParameter = {} as any;
  6217. // authentication cookie required
  6218. // authentication api_key required
  6219. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6220. // authentication bearer required
  6221. // http bearer authentication required
  6222. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6223. if (key !== undefined) {
  6224. localVarQueryParameter['key'] = key;
  6225. }
  6226. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6227. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6228. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6229. return {
  6230. url: toPathString(localVarUrlObj),
  6231. options: localVarRequestOptions,
  6232. };
  6233. },
  6234. /**
  6235. *
  6236. * @param {*} [options] Override http request option.
  6237. * @throws {RequiredError}
  6238. */
  6239. emptyTrash: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6240. const localVarPath = `/asset/trash/empty`;
  6241. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6242. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6243. let baseOptions;
  6244. if (configuration) {
  6245. baseOptions = configuration.baseOptions;
  6246. }
  6247. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6248. const localVarHeaderParameter = {} as any;
  6249. const localVarQueryParameter = {} as any;
  6250. // authentication cookie required
  6251. // authentication api_key required
  6252. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6253. // authentication bearer required
  6254. // http bearer authentication required
  6255. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6256. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6257. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6258. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6259. return {
  6260. url: toPathString(localVarUrlObj),
  6261. options: localVarRequestOptions,
  6262. };
  6263. },
  6264. /**
  6265. * Get all AssetEntity belong to the user
  6266. * @param {number} [skip]
  6267. * @param {number} [take]
  6268. * @param {string} [userId]
  6269. * @param {boolean} [isFavorite]
  6270. * @param {boolean} [isArchived]
  6271. * @param {string} [updatedAfter]
  6272. * @param {string} [updatedBefore]
  6273. * @param {string} [ifNoneMatch] ETag of data already cached on the client
  6274. * @param {*} [options] Override http request option.
  6275. * @throws {RequiredError}
  6276. */
  6277. getAllAssets: async (skip?: number, take?: number, userId?: string, isFavorite?: boolean, isArchived?: boolean, updatedAfter?: string, updatedBefore?: string, ifNoneMatch?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6278. const localVarPath = `/asset`;
  6279. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6280. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6281. let baseOptions;
  6282. if (configuration) {
  6283. baseOptions = configuration.baseOptions;
  6284. }
  6285. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6286. const localVarHeaderParameter = {} as any;
  6287. const localVarQueryParameter = {} as any;
  6288. // authentication cookie required
  6289. // authentication api_key required
  6290. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6291. // authentication bearer required
  6292. // http bearer authentication required
  6293. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6294. if (skip !== undefined) {
  6295. localVarQueryParameter['skip'] = skip;
  6296. }
  6297. if (take !== undefined) {
  6298. localVarQueryParameter['take'] = take;
  6299. }
  6300. if (userId !== undefined) {
  6301. localVarQueryParameter['userId'] = userId;
  6302. }
  6303. if (isFavorite !== undefined) {
  6304. localVarQueryParameter['isFavorite'] = isFavorite;
  6305. }
  6306. if (isArchived !== undefined) {
  6307. localVarQueryParameter['isArchived'] = isArchived;
  6308. }
  6309. if (updatedAfter !== undefined) {
  6310. localVarQueryParameter['updatedAfter'] = (updatedAfter as any instanceof Date) ?
  6311. (updatedAfter as any).toISOString() :
  6312. updatedAfter;
  6313. }
  6314. if (updatedBefore !== undefined) {
  6315. localVarQueryParameter['updatedBefore'] = (updatedBefore as any instanceof Date) ?
  6316. (updatedBefore as any).toISOString() :
  6317. updatedBefore;
  6318. }
  6319. if (ifNoneMatch != null) {
  6320. localVarHeaderParameter['if-none-match'] = String(ifNoneMatch);
  6321. }
  6322. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6323. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6324. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6325. return {
  6326. url: toPathString(localVarUrlObj),
  6327. options: localVarRequestOptions,
  6328. };
  6329. },
  6330. /**
  6331. * Get all asset of a device that are in the database, ID only.
  6332. * @param {string} deviceId
  6333. * @param {*} [options] Override http request option.
  6334. * @throws {RequiredError}
  6335. */
  6336. getAllUserAssetsByDeviceId: async (deviceId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6337. // verify required parameter 'deviceId' is not null or undefined
  6338. assertParamExists('getAllUserAssetsByDeviceId', 'deviceId', deviceId)
  6339. const localVarPath = `/asset/device/{deviceId}`
  6340. .replace(`{${"deviceId"}}`, encodeURIComponent(String(deviceId)));
  6341. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6342. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6343. let baseOptions;
  6344. if (configuration) {
  6345. baseOptions = configuration.baseOptions;
  6346. }
  6347. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6348. const localVarHeaderParameter = {} as any;
  6349. const localVarQueryParameter = {} as any;
  6350. // authentication cookie required
  6351. // authentication api_key required
  6352. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6353. // authentication bearer required
  6354. // http bearer authentication required
  6355. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6356. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6357. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6358. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6359. return {
  6360. url: toPathString(localVarUrlObj),
  6361. options: localVarRequestOptions,
  6362. };
  6363. },
  6364. /**
  6365. * Get a single asset\'s information
  6366. * @param {string} id
  6367. * @param {string} [key]
  6368. * @param {*} [options] Override http request option.
  6369. * @throws {RequiredError}
  6370. */
  6371. getAssetById: async (id: string, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6372. // verify required parameter 'id' is not null or undefined
  6373. assertParamExists('getAssetById', 'id', id)
  6374. const localVarPath = `/asset/assetById/{id}`
  6375. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  6376. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6377. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6378. let baseOptions;
  6379. if (configuration) {
  6380. baseOptions = configuration.baseOptions;
  6381. }
  6382. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6383. const localVarHeaderParameter = {} as any;
  6384. const localVarQueryParameter = {} as any;
  6385. // authentication cookie required
  6386. // authentication api_key required
  6387. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6388. // authentication bearer required
  6389. // http bearer authentication required
  6390. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6391. if (key !== undefined) {
  6392. localVarQueryParameter['key'] = key;
  6393. }
  6394. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6395. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6396. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6397. return {
  6398. url: toPathString(localVarUrlObj),
  6399. options: localVarRequestOptions,
  6400. };
  6401. },
  6402. /**
  6403. *
  6404. * @param {*} [options] Override http request option.
  6405. * @throws {RequiredError}
  6406. */
  6407. getAssetSearchTerms: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6408. const localVarPath = `/asset/search-terms`;
  6409. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6410. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6411. let baseOptions;
  6412. if (configuration) {
  6413. baseOptions = configuration.baseOptions;
  6414. }
  6415. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6416. const localVarHeaderParameter = {} as any;
  6417. const localVarQueryParameter = {} as any;
  6418. // authentication cookie required
  6419. // authentication api_key required
  6420. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6421. // authentication bearer required
  6422. // http bearer authentication required
  6423. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6424. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6425. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6426. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6427. return {
  6428. url: toPathString(localVarUrlObj),
  6429. options: localVarRequestOptions,
  6430. };
  6431. },
  6432. /**
  6433. *
  6434. * @param {boolean} [isArchived]
  6435. * @param {boolean} [isFavorite]
  6436. * @param {boolean} [isTrashed]
  6437. * @param {*} [options] Override http request option.
  6438. * @throws {RequiredError}
  6439. */
  6440. getAssetStatistics: async (isArchived?: boolean, isFavorite?: boolean, isTrashed?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6441. const localVarPath = `/asset/statistics`;
  6442. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6443. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6444. let baseOptions;
  6445. if (configuration) {
  6446. baseOptions = configuration.baseOptions;
  6447. }
  6448. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6449. const localVarHeaderParameter = {} as any;
  6450. const localVarQueryParameter = {} as any;
  6451. // authentication cookie required
  6452. // authentication api_key required
  6453. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6454. // authentication bearer required
  6455. // http bearer authentication required
  6456. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6457. if (isArchived !== undefined) {
  6458. localVarQueryParameter['isArchived'] = isArchived;
  6459. }
  6460. if (isFavorite !== undefined) {
  6461. localVarQueryParameter['isFavorite'] = isFavorite;
  6462. }
  6463. if (isTrashed !== undefined) {
  6464. localVarQueryParameter['isTrashed'] = isTrashed;
  6465. }
  6466. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6467. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6468. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6469. return {
  6470. url: toPathString(localVarUrlObj),
  6471. options: localVarRequestOptions,
  6472. };
  6473. },
  6474. /**
  6475. *
  6476. * @param {string} id
  6477. * @param {ThumbnailFormat} [format]
  6478. * @param {string} [key]
  6479. * @param {*} [options] Override http request option.
  6480. * @throws {RequiredError}
  6481. */
  6482. getAssetThumbnail: async (id: string, format?: ThumbnailFormat, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6483. // verify required parameter 'id' is not null or undefined
  6484. assertParamExists('getAssetThumbnail', 'id', id)
  6485. const localVarPath = `/asset/thumbnail/{id}`
  6486. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  6487. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6488. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6489. let baseOptions;
  6490. if (configuration) {
  6491. baseOptions = configuration.baseOptions;
  6492. }
  6493. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6494. const localVarHeaderParameter = {} as any;
  6495. const localVarQueryParameter = {} as any;
  6496. // authentication cookie required
  6497. // authentication api_key required
  6498. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6499. // authentication bearer required
  6500. // http bearer authentication required
  6501. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6502. if (format !== undefined) {
  6503. localVarQueryParameter['format'] = format;
  6504. }
  6505. if (key !== undefined) {
  6506. localVarQueryParameter['key'] = key;
  6507. }
  6508. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6509. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6510. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6511. return {
  6512. url: toPathString(localVarUrlObj),
  6513. options: localVarRequestOptions,
  6514. };
  6515. },
  6516. /**
  6517. *
  6518. * @param {*} [options] Override http request option.
  6519. * @throws {RequiredError}
  6520. */
  6521. getCuratedLocations: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6522. const localVarPath = `/asset/curated-locations`;
  6523. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6524. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6525. let baseOptions;
  6526. if (configuration) {
  6527. baseOptions = configuration.baseOptions;
  6528. }
  6529. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6530. const localVarHeaderParameter = {} as any;
  6531. const localVarQueryParameter = {} as any;
  6532. // authentication cookie required
  6533. // authentication api_key required
  6534. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6535. // authentication bearer required
  6536. // http bearer authentication required
  6537. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6538. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6539. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6540. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6541. return {
  6542. url: toPathString(localVarUrlObj),
  6543. options: localVarRequestOptions,
  6544. };
  6545. },
  6546. /**
  6547. *
  6548. * @param {*} [options] Override http request option.
  6549. * @throws {RequiredError}
  6550. */
  6551. getCuratedObjects: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6552. const localVarPath = `/asset/curated-objects`;
  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: 'GET', ...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. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6569. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6570. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6571. return {
  6572. url: toPathString(localVarUrlObj),
  6573. options: localVarRequestOptions,
  6574. };
  6575. },
  6576. /**
  6577. *
  6578. * @param {DownloadInfoDto} downloadInfoDto
  6579. * @param {string} [key]
  6580. * @param {*} [options] Override http request option.
  6581. * @throws {RequiredError}
  6582. */
  6583. getDownloadInfo: async (downloadInfoDto: DownloadInfoDto, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6584. // verify required parameter 'downloadInfoDto' is not null or undefined
  6585. assertParamExists('getDownloadInfo', 'downloadInfoDto', downloadInfoDto)
  6586. const localVarPath = `/asset/download/info`;
  6587. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6588. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6589. let baseOptions;
  6590. if (configuration) {
  6591. baseOptions = configuration.baseOptions;
  6592. }
  6593. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6594. const localVarHeaderParameter = {} as any;
  6595. const localVarQueryParameter = {} as any;
  6596. // authentication cookie required
  6597. // authentication api_key required
  6598. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6599. // authentication bearer required
  6600. // http bearer authentication required
  6601. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6602. if (key !== undefined) {
  6603. localVarQueryParameter['key'] = key;
  6604. }
  6605. localVarHeaderParameter['Content-Type'] = 'application/json';
  6606. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6607. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6608. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6609. localVarRequestOptions.data = serializeDataIfNeeded(downloadInfoDto, localVarRequestOptions, configuration)
  6610. return {
  6611. url: toPathString(localVarUrlObj),
  6612. options: localVarRequestOptions,
  6613. };
  6614. },
  6615. /**
  6616. *
  6617. * @param {boolean} [isArchived]
  6618. * @param {boolean} [isFavorite]
  6619. * @param {string} [fileCreatedAfter]
  6620. * @param {string} [fileCreatedBefore]
  6621. * @param {*} [options] Override http request option.
  6622. * @throws {RequiredError}
  6623. */
  6624. getMapMarkers: async (isArchived?: boolean, isFavorite?: boolean, fileCreatedAfter?: string, fileCreatedBefore?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6625. const localVarPath = `/asset/map-marker`;
  6626. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6627. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6628. let baseOptions;
  6629. if (configuration) {
  6630. baseOptions = configuration.baseOptions;
  6631. }
  6632. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6633. const localVarHeaderParameter = {} as any;
  6634. const localVarQueryParameter = {} as any;
  6635. // authentication cookie required
  6636. // authentication api_key required
  6637. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6638. // authentication bearer required
  6639. // http bearer authentication required
  6640. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6641. if (isArchived !== undefined) {
  6642. localVarQueryParameter['isArchived'] = isArchived;
  6643. }
  6644. if (isFavorite !== undefined) {
  6645. localVarQueryParameter['isFavorite'] = isFavorite;
  6646. }
  6647. if (fileCreatedAfter !== undefined) {
  6648. localVarQueryParameter['fileCreatedAfter'] = (fileCreatedAfter as any instanceof Date) ?
  6649. (fileCreatedAfter as any).toISOString() :
  6650. fileCreatedAfter;
  6651. }
  6652. if (fileCreatedBefore !== undefined) {
  6653. localVarQueryParameter['fileCreatedBefore'] = (fileCreatedBefore as any instanceof Date) ?
  6654. (fileCreatedBefore as any).toISOString() :
  6655. fileCreatedBefore;
  6656. }
  6657. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6658. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6659. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6660. return {
  6661. url: toPathString(localVarUrlObj),
  6662. options: localVarRequestOptions,
  6663. };
  6664. },
  6665. /**
  6666. *
  6667. * @param {number} day
  6668. * @param {number} month
  6669. * @param {*} [options] Override http request option.
  6670. * @throws {RequiredError}
  6671. */
  6672. getMemoryLane: async (day: number, month: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6673. // verify required parameter 'day' is not null or undefined
  6674. assertParamExists('getMemoryLane', 'day', day)
  6675. // verify required parameter 'month' is not null or undefined
  6676. assertParamExists('getMemoryLane', 'month', month)
  6677. const localVarPath = `/asset/memory-lane`;
  6678. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6679. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6680. let baseOptions;
  6681. if (configuration) {
  6682. baseOptions = configuration.baseOptions;
  6683. }
  6684. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6685. const localVarHeaderParameter = {} as any;
  6686. const localVarQueryParameter = {} as any;
  6687. // authentication cookie required
  6688. // authentication api_key required
  6689. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6690. // authentication bearer required
  6691. // http bearer authentication required
  6692. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6693. if (day !== undefined) {
  6694. localVarQueryParameter['day'] = day;
  6695. }
  6696. if (month !== undefined) {
  6697. localVarQueryParameter['month'] = month;
  6698. }
  6699. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6700. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6701. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6702. return {
  6703. url: toPathString(localVarUrlObj),
  6704. options: localVarRequestOptions,
  6705. };
  6706. },
  6707. /**
  6708. *
  6709. * @param {number} [count]
  6710. * @param {*} [options] Override http request option.
  6711. * @throws {RequiredError}
  6712. */
  6713. getRandom: async (count?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6714. const localVarPath = `/asset/random`;
  6715. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6716. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6717. let baseOptions;
  6718. if (configuration) {
  6719. baseOptions = configuration.baseOptions;
  6720. }
  6721. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6722. const localVarHeaderParameter = {} as any;
  6723. const localVarQueryParameter = {} as any;
  6724. // authentication cookie required
  6725. // authentication api_key required
  6726. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6727. // authentication bearer required
  6728. // http bearer authentication required
  6729. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6730. if (count !== undefined) {
  6731. localVarQueryParameter['count'] = count;
  6732. }
  6733. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6734. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6735. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6736. return {
  6737. url: toPathString(localVarUrlObj),
  6738. options: localVarRequestOptions,
  6739. };
  6740. },
  6741. /**
  6742. *
  6743. * @param {TimeBucketSize} size
  6744. * @param {string} timeBucket
  6745. * @param {string} [userId]
  6746. * @param {string} [albumId]
  6747. * @param {string} [personId]
  6748. * @param {boolean} [isArchived]
  6749. * @param {boolean} [isFavorite]
  6750. * @param {boolean} [isTrashed]
  6751. * @param {boolean} [withStacked]
  6752. * @param {boolean} [withPartners]
  6753. * @param {string} [key]
  6754. * @param {*} [options] Override http request option.
  6755. * @throws {RequiredError}
  6756. */
  6757. getTimeBucket: async (size: TimeBucketSize, timeBucket: string, userId?: string, albumId?: string, personId?: string, isArchived?: boolean, isFavorite?: boolean, isTrashed?: boolean, withStacked?: boolean, withPartners?: boolean, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6758. // verify required parameter 'size' is not null or undefined
  6759. assertParamExists('getTimeBucket', 'size', size)
  6760. // verify required parameter 'timeBucket' is not null or undefined
  6761. assertParamExists('getTimeBucket', 'timeBucket', timeBucket)
  6762. const localVarPath = `/asset/time-bucket`;
  6763. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6764. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6765. let baseOptions;
  6766. if (configuration) {
  6767. baseOptions = configuration.baseOptions;
  6768. }
  6769. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6770. const localVarHeaderParameter = {} as any;
  6771. const localVarQueryParameter = {} as any;
  6772. // authentication cookie required
  6773. // authentication api_key required
  6774. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6775. // authentication bearer required
  6776. // http bearer authentication required
  6777. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6778. if (size !== undefined) {
  6779. localVarQueryParameter['size'] = size;
  6780. }
  6781. if (userId !== undefined) {
  6782. localVarQueryParameter['userId'] = userId;
  6783. }
  6784. if (albumId !== undefined) {
  6785. localVarQueryParameter['albumId'] = albumId;
  6786. }
  6787. if (personId !== undefined) {
  6788. localVarQueryParameter['personId'] = personId;
  6789. }
  6790. if (isArchived !== undefined) {
  6791. localVarQueryParameter['isArchived'] = isArchived;
  6792. }
  6793. if (isFavorite !== undefined) {
  6794. localVarQueryParameter['isFavorite'] = isFavorite;
  6795. }
  6796. if (isTrashed !== undefined) {
  6797. localVarQueryParameter['isTrashed'] = isTrashed;
  6798. }
  6799. if (withStacked !== undefined) {
  6800. localVarQueryParameter['withStacked'] = withStacked;
  6801. }
  6802. if (withPartners !== undefined) {
  6803. localVarQueryParameter['withPartners'] = withPartners;
  6804. }
  6805. if (timeBucket !== undefined) {
  6806. localVarQueryParameter['timeBucket'] = timeBucket;
  6807. }
  6808. if (key !== undefined) {
  6809. localVarQueryParameter['key'] = key;
  6810. }
  6811. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6812. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6813. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6814. return {
  6815. url: toPathString(localVarUrlObj),
  6816. options: localVarRequestOptions,
  6817. };
  6818. },
  6819. /**
  6820. *
  6821. * @param {TimeBucketSize} size
  6822. * @param {string} [userId]
  6823. * @param {string} [albumId]
  6824. * @param {string} [personId]
  6825. * @param {boolean} [isArchived]
  6826. * @param {boolean} [isFavorite]
  6827. * @param {boolean} [isTrashed]
  6828. * @param {boolean} [withStacked]
  6829. * @param {boolean} [withPartners]
  6830. * @param {string} [key]
  6831. * @param {*} [options] Override http request option.
  6832. * @throws {RequiredError}
  6833. */
  6834. getTimeBuckets: async (size: TimeBucketSize, userId?: string, albumId?: string, personId?: string, isArchived?: boolean, isFavorite?: boolean, isTrashed?: boolean, withStacked?: boolean, withPartners?: boolean, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6835. // verify required parameter 'size' is not null or undefined
  6836. assertParamExists('getTimeBuckets', 'size', size)
  6837. const localVarPath = `/asset/time-buckets`;
  6838. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6839. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6840. let baseOptions;
  6841. if (configuration) {
  6842. baseOptions = configuration.baseOptions;
  6843. }
  6844. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6845. const localVarHeaderParameter = {} as any;
  6846. const localVarQueryParameter = {} as any;
  6847. // authentication cookie required
  6848. // authentication api_key required
  6849. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6850. // authentication bearer required
  6851. // http bearer authentication required
  6852. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6853. if (size !== undefined) {
  6854. localVarQueryParameter['size'] = size;
  6855. }
  6856. if (userId !== undefined) {
  6857. localVarQueryParameter['userId'] = userId;
  6858. }
  6859. if (albumId !== undefined) {
  6860. localVarQueryParameter['albumId'] = albumId;
  6861. }
  6862. if (personId !== undefined) {
  6863. localVarQueryParameter['personId'] = personId;
  6864. }
  6865. if (isArchived !== undefined) {
  6866. localVarQueryParameter['isArchived'] = isArchived;
  6867. }
  6868. if (isFavorite !== undefined) {
  6869. localVarQueryParameter['isFavorite'] = isFavorite;
  6870. }
  6871. if (isTrashed !== undefined) {
  6872. localVarQueryParameter['isTrashed'] = isTrashed;
  6873. }
  6874. if (withStacked !== undefined) {
  6875. localVarQueryParameter['withStacked'] = withStacked;
  6876. }
  6877. if (withPartners !== undefined) {
  6878. localVarQueryParameter['withPartners'] = withPartners;
  6879. }
  6880. if (key !== undefined) {
  6881. localVarQueryParameter['key'] = key;
  6882. }
  6883. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6884. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6885. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6886. return {
  6887. url: toPathString(localVarUrlObj),
  6888. options: localVarRequestOptions,
  6889. };
  6890. },
  6891. /**
  6892. *
  6893. * @summary Use /asset/device/:deviceId instead - Remove in 1.92 release
  6894. * @param {string} deviceId
  6895. * @param {*} [options] Override http request option.
  6896. * @deprecated
  6897. * @throws {RequiredError}
  6898. */
  6899. getUserAssetsByDeviceId: async (deviceId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6900. // verify required parameter 'deviceId' is not null or undefined
  6901. assertParamExists('getUserAssetsByDeviceId', 'deviceId', deviceId)
  6902. const localVarPath = `/asset/{deviceId}`
  6903. .replace(`{${"deviceId"}}`, encodeURIComponent(String(deviceId)));
  6904. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6905. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6906. let baseOptions;
  6907. if (configuration) {
  6908. baseOptions = configuration.baseOptions;
  6909. }
  6910. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6911. const localVarHeaderParameter = {} as any;
  6912. const localVarQueryParameter = {} as any;
  6913. // authentication cookie required
  6914. // authentication api_key required
  6915. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6916. // authentication bearer required
  6917. // http bearer authentication required
  6918. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6919. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6920. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6921. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6922. return {
  6923. url: toPathString(localVarUrlObj),
  6924. options: localVarRequestOptions,
  6925. };
  6926. },
  6927. /**
  6928. *
  6929. * @param {BulkIdsDto} bulkIdsDto
  6930. * @param {*} [options] Override http request option.
  6931. * @throws {RequiredError}
  6932. */
  6933. restoreAssets: async (bulkIdsDto: BulkIdsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6934. // verify required parameter 'bulkIdsDto' is not null or undefined
  6935. assertParamExists('restoreAssets', 'bulkIdsDto', bulkIdsDto)
  6936. const localVarPath = `/asset/restore`;
  6937. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6938. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6939. let baseOptions;
  6940. if (configuration) {
  6941. baseOptions = configuration.baseOptions;
  6942. }
  6943. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6944. const localVarHeaderParameter = {} as any;
  6945. const localVarQueryParameter = {} as any;
  6946. // authentication cookie required
  6947. // authentication api_key required
  6948. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6949. // authentication bearer required
  6950. // http bearer authentication required
  6951. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6952. localVarHeaderParameter['Content-Type'] = 'application/json';
  6953. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6954. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6955. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6956. localVarRequestOptions.data = serializeDataIfNeeded(bulkIdsDto, localVarRequestOptions, configuration)
  6957. return {
  6958. url: toPathString(localVarUrlObj),
  6959. options: localVarRequestOptions,
  6960. };
  6961. },
  6962. /**
  6963. *
  6964. * @param {*} [options] Override http request option.
  6965. * @throws {RequiredError}
  6966. */
  6967. restoreTrash: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6968. const localVarPath = `/asset/trash/restore`;
  6969. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6970. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6971. let baseOptions;
  6972. if (configuration) {
  6973. baseOptions = configuration.baseOptions;
  6974. }
  6975. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6976. const localVarHeaderParameter = {} as any;
  6977. const localVarQueryParameter = {} as any;
  6978. // authentication cookie required
  6979. // authentication api_key required
  6980. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6981. // authentication bearer required
  6982. // http bearer authentication required
  6983. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6984. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6985. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6986. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6987. return {
  6988. url: toPathString(localVarUrlObj),
  6989. options: localVarRequestOptions,
  6990. };
  6991. },
  6992. /**
  6993. *
  6994. * @param {AssetJobsDto} assetJobsDto
  6995. * @param {*} [options] Override http request option.
  6996. * @throws {RequiredError}
  6997. */
  6998. runAssetJobs: async (assetJobsDto: AssetJobsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6999. // verify required parameter 'assetJobsDto' is not null or undefined
  7000. assertParamExists('runAssetJobs', 'assetJobsDto', assetJobsDto)
  7001. const localVarPath = `/asset/jobs`;
  7002. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7003. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7004. let baseOptions;
  7005. if (configuration) {
  7006. baseOptions = configuration.baseOptions;
  7007. }
  7008. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  7009. const localVarHeaderParameter = {} as any;
  7010. const localVarQueryParameter = {} as any;
  7011. // authentication cookie required
  7012. // authentication api_key required
  7013. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  7014. // authentication bearer required
  7015. // http bearer authentication required
  7016. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  7017. localVarHeaderParameter['Content-Type'] = 'application/json';
  7018. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7019. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7020. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7021. localVarRequestOptions.data = serializeDataIfNeeded(assetJobsDto, localVarRequestOptions, configuration)
  7022. return {
  7023. url: toPathString(localVarUrlObj),
  7024. options: localVarRequestOptions,
  7025. };
  7026. },
  7027. /**
  7028. *
  7029. * @param {string} [id]
  7030. * @param {string} [libraryId]
  7031. * @param {AssetTypeEnum} [type]
  7032. * @param {AssetOrder} [order]
  7033. * @param {string} [deviceAssetId]
  7034. * @param {string} [deviceId]
  7035. * @param {string} [checksum]
  7036. * @param {boolean} [isArchived]
  7037. * @param {boolean} [isEncoded]
  7038. * @param {boolean} [isExternal]
  7039. * @param {boolean} [isFavorite]
  7040. * @param {boolean} [isMotion]
  7041. * @param {boolean} [isOffline]
  7042. * @param {boolean} [isReadOnly]
  7043. * @param {boolean} [isVisible]
  7044. * @param {boolean} [withDeleted]
  7045. * @param {boolean} [withStacked]
  7046. * @param {boolean} [withExif]
  7047. * @param {boolean} [withPeople]
  7048. * @param {string} [createdBefore]
  7049. * @param {string} [createdAfter]
  7050. * @param {string} [updatedBefore]
  7051. * @param {string} [updatedAfter]
  7052. * @param {string} [trashedBefore]
  7053. * @param {string} [trashedAfter]
  7054. * @param {string} [takenBefore]
  7055. * @param {string} [takenAfter]
  7056. * @param {string} [originalFileName]
  7057. * @param {string} [originalPath]
  7058. * @param {string} [resizePath]
  7059. * @param {string} [webpPath]
  7060. * @param {string} [encodedVideoPath]
  7061. * @param {string} [city]
  7062. * @param {string} [state]
  7063. * @param {string} [country]
  7064. * @param {string} [make]
  7065. * @param {string} [model]
  7066. * @param {string} [lensModel]
  7067. * @param {number} [page]
  7068. * @param {number} [size]
  7069. * @param {*} [options] Override http request option.
  7070. * @throws {RequiredError}
  7071. */
  7072. searchAssets: async (id?: string, libraryId?: string, type?: AssetTypeEnum, order?: AssetOrder, deviceAssetId?: string, deviceId?: string, checksum?: string, isArchived?: boolean, isEncoded?: boolean, isExternal?: boolean, isFavorite?: boolean, isMotion?: boolean, isOffline?: boolean, isReadOnly?: boolean, isVisible?: boolean, withDeleted?: boolean, withStacked?: boolean, withExif?: boolean, withPeople?: boolean, createdBefore?: string, createdAfter?: string, updatedBefore?: string, updatedAfter?: string, trashedBefore?: string, trashedAfter?: string, takenBefore?: string, takenAfter?: string, originalFileName?: string, originalPath?: string, resizePath?: string, webpPath?: string, encodedVideoPath?: string, city?: string, state?: string, country?: string, make?: string, model?: string, lensModel?: string, page?: number, size?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  7073. const localVarPath = `/assets`;
  7074. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7075. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7076. let baseOptions;
  7077. if (configuration) {
  7078. baseOptions = configuration.baseOptions;
  7079. }
  7080. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  7081. const localVarHeaderParameter = {} as any;
  7082. const localVarQueryParameter = {} as any;
  7083. // authentication cookie required
  7084. // authentication api_key required
  7085. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  7086. // authentication bearer required
  7087. // http bearer authentication required
  7088. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  7089. if (id !== undefined) {
  7090. localVarQueryParameter['id'] = id;
  7091. }
  7092. if (libraryId !== undefined) {
  7093. localVarQueryParameter['libraryId'] = libraryId;
  7094. }
  7095. if (type !== undefined) {
  7096. localVarQueryParameter['type'] = type;
  7097. }
  7098. if (order !== undefined) {
  7099. localVarQueryParameter['order'] = order;
  7100. }
  7101. if (deviceAssetId !== undefined) {
  7102. localVarQueryParameter['deviceAssetId'] = deviceAssetId;
  7103. }
  7104. if (deviceId !== undefined) {
  7105. localVarQueryParameter['deviceId'] = deviceId;
  7106. }
  7107. if (checksum !== undefined) {
  7108. localVarQueryParameter['checksum'] = checksum;
  7109. }
  7110. if (isArchived !== undefined) {
  7111. localVarQueryParameter['isArchived'] = isArchived;
  7112. }
  7113. if (isEncoded !== undefined) {
  7114. localVarQueryParameter['isEncoded'] = isEncoded;
  7115. }
  7116. if (isExternal !== undefined) {
  7117. localVarQueryParameter['isExternal'] = isExternal;
  7118. }
  7119. if (isFavorite !== undefined) {
  7120. localVarQueryParameter['isFavorite'] = isFavorite;
  7121. }
  7122. if (isMotion !== undefined) {
  7123. localVarQueryParameter['isMotion'] = isMotion;
  7124. }
  7125. if (isOffline !== undefined) {
  7126. localVarQueryParameter['isOffline'] = isOffline;
  7127. }
  7128. if (isReadOnly !== undefined) {
  7129. localVarQueryParameter['isReadOnly'] = isReadOnly;
  7130. }
  7131. if (isVisible !== undefined) {
  7132. localVarQueryParameter['isVisible'] = isVisible;
  7133. }
  7134. if (withDeleted !== undefined) {
  7135. localVarQueryParameter['withDeleted'] = withDeleted;
  7136. }
  7137. if (withStacked !== undefined) {
  7138. localVarQueryParameter['withStacked'] = withStacked;
  7139. }
  7140. if (withExif !== undefined) {
  7141. localVarQueryParameter['withExif'] = withExif;
  7142. }
  7143. if (withPeople !== undefined) {
  7144. localVarQueryParameter['withPeople'] = withPeople;
  7145. }
  7146. if (createdBefore !== undefined) {
  7147. localVarQueryParameter['createdBefore'] = (createdBefore as any instanceof Date) ?
  7148. (createdBefore as any).toISOString() :
  7149. createdBefore;
  7150. }
  7151. if (createdAfter !== undefined) {
  7152. localVarQueryParameter['createdAfter'] = (createdAfter as any instanceof Date) ?
  7153. (createdAfter as any).toISOString() :
  7154. createdAfter;
  7155. }
  7156. if (updatedBefore !== undefined) {
  7157. localVarQueryParameter['updatedBefore'] = (updatedBefore as any instanceof Date) ?
  7158. (updatedBefore as any).toISOString() :
  7159. updatedBefore;
  7160. }
  7161. if (updatedAfter !== undefined) {
  7162. localVarQueryParameter['updatedAfter'] = (updatedAfter as any instanceof Date) ?
  7163. (updatedAfter as any).toISOString() :
  7164. updatedAfter;
  7165. }
  7166. if (trashedBefore !== undefined) {
  7167. localVarQueryParameter['trashedBefore'] = (trashedBefore as any instanceof Date) ?
  7168. (trashedBefore as any).toISOString() :
  7169. trashedBefore;
  7170. }
  7171. if (trashedAfter !== undefined) {
  7172. localVarQueryParameter['trashedAfter'] = (trashedAfter as any instanceof Date) ?
  7173. (trashedAfter as any).toISOString() :
  7174. trashedAfter;
  7175. }
  7176. if (takenBefore !== undefined) {
  7177. localVarQueryParameter['takenBefore'] = (takenBefore as any instanceof Date) ?
  7178. (takenBefore as any).toISOString() :
  7179. takenBefore;
  7180. }
  7181. if (takenAfter !== undefined) {
  7182. localVarQueryParameter['takenAfter'] = (takenAfter as any instanceof Date) ?
  7183. (takenAfter as any).toISOString() :
  7184. takenAfter;
  7185. }
  7186. if (originalFileName !== undefined) {
  7187. localVarQueryParameter['originalFileName'] = originalFileName;
  7188. }
  7189. if (originalPath !== undefined) {
  7190. localVarQueryParameter['originalPath'] = originalPath;
  7191. }
  7192. if (resizePath !== undefined) {
  7193. localVarQueryParameter['resizePath'] = resizePath;
  7194. }
  7195. if (webpPath !== undefined) {
  7196. localVarQueryParameter['webpPath'] = webpPath;
  7197. }
  7198. if (encodedVideoPath !== undefined) {
  7199. localVarQueryParameter['encodedVideoPath'] = encodedVideoPath;
  7200. }
  7201. if (city !== undefined) {
  7202. localVarQueryParameter['city'] = city;
  7203. }
  7204. if (state !== undefined) {
  7205. localVarQueryParameter['state'] = state;
  7206. }
  7207. if (country !== undefined) {
  7208. localVarQueryParameter['country'] = country;
  7209. }
  7210. if (make !== undefined) {
  7211. localVarQueryParameter['make'] = make;
  7212. }
  7213. if (model !== undefined) {
  7214. localVarQueryParameter['model'] = model;
  7215. }
  7216. if (lensModel !== undefined) {
  7217. localVarQueryParameter['lensModel'] = lensModel;
  7218. }
  7219. if (page !== undefined) {
  7220. localVarQueryParameter['page'] = page;
  7221. }
  7222. if (size !== undefined) {
  7223. localVarQueryParameter['size'] = size;
  7224. }
  7225. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7226. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7227. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7228. return {
  7229. url: toPathString(localVarUrlObj),
  7230. options: localVarRequestOptions,
  7231. };
  7232. },
  7233. /**
  7234. *
  7235. * @param {string} id
  7236. * @param {boolean} [isThumb]
  7237. * @param {boolean} [isWeb]
  7238. * @param {string} [key]
  7239. * @param {*} [options] Override http request option.
  7240. * @throws {RequiredError}
  7241. */
  7242. serveFile: async (id: string, isThumb?: boolean, isWeb?: boolean, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  7243. // verify required parameter 'id' is not null or undefined
  7244. assertParamExists('serveFile', 'id', id)
  7245. const localVarPath = `/asset/file/{id}`
  7246. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  7247. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7248. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7249. let baseOptions;
  7250. if (configuration) {
  7251. baseOptions = configuration.baseOptions;
  7252. }
  7253. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  7254. const localVarHeaderParameter = {} as any;
  7255. const localVarQueryParameter = {} as any;
  7256. // authentication cookie required
  7257. // authentication api_key required
  7258. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  7259. // authentication bearer required
  7260. // http bearer authentication required
  7261. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  7262. if (isThumb !== undefined) {
  7263. localVarQueryParameter['isThumb'] = isThumb;
  7264. }
  7265. if (isWeb !== undefined) {
  7266. localVarQueryParameter['isWeb'] = isWeb;
  7267. }
  7268. if (key !== undefined) {
  7269. localVarQueryParameter['key'] = key;
  7270. }
  7271. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7272. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7273. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7274. return {
  7275. url: toPathString(localVarUrlObj),
  7276. options: localVarRequestOptions,
  7277. };
  7278. },
  7279. /**
  7280. *
  7281. * @param {string} id
  7282. * @param {UpdateAssetDto} updateAssetDto
  7283. * @param {*} [options] Override http request option.
  7284. * @throws {RequiredError}
  7285. */
  7286. updateAsset: async (id: string, updateAssetDto: UpdateAssetDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  7287. // verify required parameter 'id' is not null or undefined
  7288. assertParamExists('updateAsset', 'id', id)
  7289. // verify required parameter 'updateAssetDto' is not null or undefined
  7290. assertParamExists('updateAsset', 'updateAssetDto', updateAssetDto)
  7291. const localVarPath = `/asset/{id}`
  7292. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  7293. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7294. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7295. let baseOptions;
  7296. if (configuration) {
  7297. baseOptions = configuration.baseOptions;
  7298. }
  7299. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  7300. const localVarHeaderParameter = {} as any;
  7301. const localVarQueryParameter = {} as any;
  7302. // authentication cookie required
  7303. // authentication api_key required
  7304. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  7305. // authentication bearer required
  7306. // http bearer authentication required
  7307. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  7308. localVarHeaderParameter['Content-Type'] = 'application/json';
  7309. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7310. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7311. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7312. localVarRequestOptions.data = serializeDataIfNeeded(updateAssetDto, localVarRequestOptions, configuration)
  7313. return {
  7314. url: toPathString(localVarUrlObj),
  7315. options: localVarRequestOptions,
  7316. };
  7317. },
  7318. /**
  7319. *
  7320. * @param {AssetBulkUpdateDto} assetBulkUpdateDto
  7321. * @param {*} [options] Override http request option.
  7322. * @throws {RequiredError}
  7323. */
  7324. updateAssets: async (assetBulkUpdateDto: AssetBulkUpdateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  7325. // verify required parameter 'assetBulkUpdateDto' is not null or undefined
  7326. assertParamExists('updateAssets', 'assetBulkUpdateDto', assetBulkUpdateDto)
  7327. const localVarPath = `/asset`;
  7328. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7329. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7330. let baseOptions;
  7331. if (configuration) {
  7332. baseOptions = configuration.baseOptions;
  7333. }
  7334. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  7335. const localVarHeaderParameter = {} as any;
  7336. const localVarQueryParameter = {} as any;
  7337. // authentication cookie required
  7338. // authentication api_key required
  7339. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  7340. // authentication bearer required
  7341. // http bearer authentication required
  7342. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  7343. localVarHeaderParameter['Content-Type'] = 'application/json';
  7344. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7345. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7346. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7347. localVarRequestOptions.data = serializeDataIfNeeded(assetBulkUpdateDto, localVarRequestOptions, configuration)
  7348. return {
  7349. url: toPathString(localVarUrlObj),
  7350. options: localVarRequestOptions,
  7351. };
  7352. },
  7353. /**
  7354. *
  7355. * @param {UpdateStackParentDto} updateStackParentDto
  7356. * @param {*} [options] Override http request option.
  7357. * @throws {RequiredError}
  7358. */
  7359. updateStackParent: async (updateStackParentDto: UpdateStackParentDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  7360. // verify required parameter 'updateStackParentDto' is not null or undefined
  7361. assertParamExists('updateStackParent', 'updateStackParentDto', updateStackParentDto)
  7362. const localVarPath = `/asset/stack/parent`;
  7363. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7364. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7365. let baseOptions;
  7366. if (configuration) {
  7367. baseOptions = configuration.baseOptions;
  7368. }
  7369. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  7370. const localVarHeaderParameter = {} as any;
  7371. const localVarQueryParameter = {} as any;
  7372. // authentication cookie required
  7373. // authentication api_key required
  7374. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  7375. // authentication bearer required
  7376. // http bearer authentication required
  7377. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  7378. localVarHeaderParameter['Content-Type'] = 'application/json';
  7379. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7380. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7381. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7382. localVarRequestOptions.data = serializeDataIfNeeded(updateStackParentDto, localVarRequestOptions, configuration)
  7383. return {
  7384. url: toPathString(localVarUrlObj),
  7385. options: localVarRequestOptions,
  7386. };
  7387. },
  7388. /**
  7389. *
  7390. * @param {File} assetData
  7391. * @param {string} deviceAssetId
  7392. * @param {string} deviceId
  7393. * @param {string} fileCreatedAt
  7394. * @param {string} fileModifiedAt
  7395. * @param {string} [key]
  7396. * @param {string} [duration]
  7397. * @param {boolean} [isArchived]
  7398. * @param {boolean} [isExternal]
  7399. * @param {boolean} [isFavorite]
  7400. * @param {boolean} [isOffline]
  7401. * @param {boolean} [isReadOnly]
  7402. * @param {boolean} [isVisible]
  7403. * @param {string} [libraryId]
  7404. * @param {File} [livePhotoData]
  7405. * @param {File} [sidecarData]
  7406. * @param {*} [options] Override http request option.
  7407. * @throws {RequiredError}
  7408. */
  7409. uploadFile: async (assetData: File, deviceAssetId: string, deviceId: string, fileCreatedAt: string, fileModifiedAt: string, key?: string, duration?: string, isArchived?: boolean, isExternal?: boolean, isFavorite?: boolean, isOffline?: boolean, isReadOnly?: boolean, isVisible?: boolean, libraryId?: string, livePhotoData?: File, sidecarData?: File, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  7410. // verify required parameter 'assetData' is not null or undefined
  7411. assertParamExists('uploadFile', 'assetData', assetData)
  7412. // verify required parameter 'deviceAssetId' is not null or undefined
  7413. assertParamExists('uploadFile', 'deviceAssetId', deviceAssetId)
  7414. // verify required parameter 'deviceId' is not null or undefined
  7415. assertParamExists('uploadFile', 'deviceId', deviceId)
  7416. // verify required parameter 'fileCreatedAt' is not null or undefined
  7417. assertParamExists('uploadFile', 'fileCreatedAt', fileCreatedAt)
  7418. // verify required parameter 'fileModifiedAt' is not null or undefined
  7419. assertParamExists('uploadFile', 'fileModifiedAt', fileModifiedAt)
  7420. const localVarPath = `/asset/upload`;
  7421. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7422. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7423. let baseOptions;
  7424. if (configuration) {
  7425. baseOptions = configuration.baseOptions;
  7426. }
  7427. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  7428. const localVarHeaderParameter = {} as any;
  7429. const localVarQueryParameter = {} as any;
  7430. const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
  7431. // authentication cookie required
  7432. // authentication api_key required
  7433. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  7434. // authentication bearer required
  7435. // http bearer authentication required
  7436. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  7437. if (key !== undefined) {
  7438. localVarQueryParameter['key'] = key;
  7439. }
  7440. if (assetData !== undefined) {
  7441. localVarFormParams.append('assetData', assetData as any);
  7442. }
  7443. if (deviceAssetId !== undefined) {
  7444. localVarFormParams.append('deviceAssetId', deviceAssetId as any);
  7445. }
  7446. if (deviceId !== undefined) {
  7447. localVarFormParams.append('deviceId', deviceId as any);
  7448. }
  7449. if (duration !== undefined) {
  7450. localVarFormParams.append('duration', duration as any);
  7451. }
  7452. if (fileCreatedAt !== undefined) {
  7453. localVarFormParams.append('fileCreatedAt', fileCreatedAt as any);
  7454. }
  7455. if (fileModifiedAt !== undefined) {
  7456. localVarFormParams.append('fileModifiedAt', fileModifiedAt as any);
  7457. }
  7458. if (isArchived !== undefined) {
  7459. localVarFormParams.append('isArchived', isArchived as any);
  7460. }
  7461. if (isExternal !== undefined) {
  7462. localVarFormParams.append('isExternal', isExternal as any);
  7463. }
  7464. if (isFavorite !== undefined) {
  7465. localVarFormParams.append('isFavorite', isFavorite as any);
  7466. }
  7467. if (isOffline !== undefined) {
  7468. localVarFormParams.append('isOffline', isOffline as any);
  7469. }
  7470. if (isReadOnly !== undefined) {
  7471. localVarFormParams.append('isReadOnly', isReadOnly as any);
  7472. }
  7473. if (isVisible !== undefined) {
  7474. localVarFormParams.append('isVisible', isVisible as any);
  7475. }
  7476. if (libraryId !== undefined) {
  7477. localVarFormParams.append('libraryId', libraryId as any);
  7478. }
  7479. if (livePhotoData !== undefined) {
  7480. localVarFormParams.append('livePhotoData', livePhotoData as any);
  7481. }
  7482. if (sidecarData !== undefined) {
  7483. localVarFormParams.append('sidecarData', sidecarData as any);
  7484. }
  7485. localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
  7486. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7487. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7488. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7489. localVarRequestOptions.data = localVarFormParams;
  7490. return {
  7491. url: toPathString(localVarUrlObj),
  7492. options: localVarRequestOptions,
  7493. };
  7494. },
  7495. }
  7496. };
  7497. /**
  7498. * AssetApi - functional programming interface
  7499. * @export
  7500. */
  7501. export const AssetApiFp = function(configuration?: Configuration) {
  7502. const localVarAxiosParamCreator = AssetApiAxiosParamCreator(configuration)
  7503. return {
  7504. /**
  7505. * Checks if assets exist by checksums
  7506. * @param {AssetBulkUploadCheckDto} assetBulkUploadCheckDto
  7507. * @param {*} [options] Override http request option.
  7508. * @throws {RequiredError}
  7509. */
  7510. async checkBulkUpload(assetBulkUploadCheckDto: AssetBulkUploadCheckDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetBulkUploadCheckResponseDto>> {
  7511. const localVarAxiosArgs = await localVarAxiosParamCreator.checkBulkUpload(assetBulkUploadCheckDto, options);
  7512. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7513. },
  7514. /**
  7515. * Checks if multiple assets exist on the server and returns all existing - used by background backup
  7516. * @param {CheckExistingAssetsDto} checkExistingAssetsDto
  7517. * @param {*} [options] Override http request option.
  7518. * @throws {RequiredError}
  7519. */
  7520. async checkExistingAssets(checkExistingAssetsDto: CheckExistingAssetsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CheckExistingAssetsResponseDto>> {
  7521. const localVarAxiosArgs = await localVarAxiosParamCreator.checkExistingAssets(checkExistingAssetsDto, options);
  7522. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7523. },
  7524. /**
  7525. *
  7526. * @param {AssetBulkDeleteDto} assetBulkDeleteDto
  7527. * @param {*} [options] Override http request option.
  7528. * @throws {RequiredError}
  7529. */
  7530. async deleteAssets(assetBulkDeleteDto: AssetBulkDeleteDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  7531. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAssets(assetBulkDeleteDto, options);
  7532. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7533. },
  7534. /**
  7535. *
  7536. * @param {AssetIdsDto} assetIdsDto
  7537. * @param {string} [key]
  7538. * @param {*} [options] Override http request option.
  7539. * @throws {RequiredError}
  7540. */
  7541. async downloadArchive(assetIdsDto: AssetIdsDto, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
  7542. const localVarAxiosArgs = await localVarAxiosParamCreator.downloadArchive(assetIdsDto, key, options);
  7543. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7544. },
  7545. /**
  7546. *
  7547. * @param {string} id
  7548. * @param {string} [key]
  7549. * @param {*} [options] Override http request option.
  7550. * @throws {RequiredError}
  7551. */
  7552. async downloadFile(id: string, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
  7553. const localVarAxiosArgs = await localVarAxiosParamCreator.downloadFile(id, key, options);
  7554. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7555. },
  7556. /**
  7557. *
  7558. * @param {*} [options] Override http request option.
  7559. * @throws {RequiredError}
  7560. */
  7561. async emptyTrash(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  7562. const localVarAxiosArgs = await localVarAxiosParamCreator.emptyTrash(options);
  7563. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7564. },
  7565. /**
  7566. * Get all AssetEntity belong to the user
  7567. * @param {number} [skip]
  7568. * @param {number} [take]
  7569. * @param {string} [userId]
  7570. * @param {boolean} [isFavorite]
  7571. * @param {boolean} [isArchived]
  7572. * @param {string} [updatedAfter]
  7573. * @param {string} [updatedBefore]
  7574. * @param {string} [ifNoneMatch] ETag of data already cached on the client
  7575. * @param {*} [options] Override http request option.
  7576. * @throws {RequiredError}
  7577. */
  7578. async getAllAssets(skip?: number, take?: number, userId?: string, isFavorite?: boolean, isArchived?: boolean, updatedAfter?: string, updatedBefore?: string, ifNoneMatch?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  7579. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllAssets(skip, take, userId, isFavorite, isArchived, updatedAfter, updatedBefore, ifNoneMatch, options);
  7580. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7581. },
  7582. /**
  7583. * Get all asset of a device that are in the database, ID only.
  7584. * @param {string} deviceId
  7585. * @param {*} [options] Override http request option.
  7586. * @throws {RequiredError}
  7587. */
  7588. async getAllUserAssetsByDeviceId(deviceId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
  7589. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllUserAssetsByDeviceId(deviceId, options);
  7590. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7591. },
  7592. /**
  7593. * Get a single asset\'s information
  7594. * @param {string} id
  7595. * @param {string} [key]
  7596. * @param {*} [options] Override http request option.
  7597. * @throws {RequiredError}
  7598. */
  7599. async getAssetById(id: string, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetResponseDto>> {
  7600. const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetById(id, key, options);
  7601. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7602. },
  7603. /**
  7604. *
  7605. * @param {*} [options] Override http request option.
  7606. * @throws {RequiredError}
  7607. */
  7608. async getAssetSearchTerms(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
  7609. const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetSearchTerms(options);
  7610. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7611. },
  7612. /**
  7613. *
  7614. * @param {boolean} [isArchived]
  7615. * @param {boolean} [isFavorite]
  7616. * @param {boolean} [isTrashed]
  7617. * @param {*} [options] Override http request option.
  7618. * @throws {RequiredError}
  7619. */
  7620. async getAssetStatistics(isArchived?: boolean, isFavorite?: boolean, isTrashed?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetStatsResponseDto>> {
  7621. const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetStatistics(isArchived, isFavorite, isTrashed, options);
  7622. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7623. },
  7624. /**
  7625. *
  7626. * @param {string} id
  7627. * @param {ThumbnailFormat} [format]
  7628. * @param {string} [key]
  7629. * @param {*} [options] Override http request option.
  7630. * @throws {RequiredError}
  7631. */
  7632. async getAssetThumbnail(id: string, format?: ThumbnailFormat, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
  7633. const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetThumbnail(id, format, key, options);
  7634. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7635. },
  7636. /**
  7637. *
  7638. * @param {*} [options] Override http request option.
  7639. * @throws {RequiredError}
  7640. */
  7641. async getCuratedLocations(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CuratedLocationsResponseDto>>> {
  7642. const localVarAxiosArgs = await localVarAxiosParamCreator.getCuratedLocations(options);
  7643. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7644. },
  7645. /**
  7646. *
  7647. * @param {*} [options] Override http request option.
  7648. * @throws {RequiredError}
  7649. */
  7650. async getCuratedObjects(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CuratedObjectsResponseDto>>> {
  7651. const localVarAxiosArgs = await localVarAxiosParamCreator.getCuratedObjects(options);
  7652. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7653. },
  7654. /**
  7655. *
  7656. * @param {DownloadInfoDto} downloadInfoDto
  7657. * @param {string} [key]
  7658. * @param {*} [options] Override http request option.
  7659. * @throws {RequiredError}
  7660. */
  7661. async getDownloadInfo(downloadInfoDto: DownloadInfoDto, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DownloadResponseDto>> {
  7662. const localVarAxiosArgs = await localVarAxiosParamCreator.getDownloadInfo(downloadInfoDto, key, options);
  7663. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7664. },
  7665. /**
  7666. *
  7667. * @param {boolean} [isArchived]
  7668. * @param {boolean} [isFavorite]
  7669. * @param {string} [fileCreatedAfter]
  7670. * @param {string} [fileCreatedBefore]
  7671. * @param {*} [options] Override http request option.
  7672. * @throws {RequiredError}
  7673. */
  7674. async getMapMarkers(isArchived?: boolean, isFavorite?: boolean, fileCreatedAfter?: string, fileCreatedBefore?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<MapMarkerResponseDto>>> {
  7675. const localVarAxiosArgs = await localVarAxiosParamCreator.getMapMarkers(isArchived, isFavorite, fileCreatedAfter, fileCreatedBefore, options);
  7676. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7677. },
  7678. /**
  7679. *
  7680. * @param {number} day
  7681. * @param {number} month
  7682. * @param {*} [options] Override http request option.
  7683. * @throws {RequiredError}
  7684. */
  7685. async getMemoryLane(day: number, month: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<MemoryLaneResponseDto>>> {
  7686. const localVarAxiosArgs = await localVarAxiosParamCreator.getMemoryLane(day, month, options);
  7687. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7688. },
  7689. /**
  7690. *
  7691. * @param {number} [count]
  7692. * @param {*} [options] Override http request option.
  7693. * @throws {RequiredError}
  7694. */
  7695. async getRandom(count?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  7696. const localVarAxiosArgs = await localVarAxiosParamCreator.getRandom(count, options);
  7697. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7698. },
  7699. /**
  7700. *
  7701. * @param {TimeBucketSize} size
  7702. * @param {string} timeBucket
  7703. * @param {string} [userId]
  7704. * @param {string} [albumId]
  7705. * @param {string} [personId]
  7706. * @param {boolean} [isArchived]
  7707. * @param {boolean} [isFavorite]
  7708. * @param {boolean} [isTrashed]
  7709. * @param {boolean} [withStacked]
  7710. * @param {boolean} [withPartners]
  7711. * @param {string} [key]
  7712. * @param {*} [options] Override http request option.
  7713. * @throws {RequiredError}
  7714. */
  7715. async getTimeBucket(size: TimeBucketSize, timeBucket: string, userId?: string, albumId?: string, personId?: string, isArchived?: boolean, isFavorite?: boolean, isTrashed?: boolean, withStacked?: boolean, withPartners?: boolean, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  7716. const localVarAxiosArgs = await localVarAxiosParamCreator.getTimeBucket(size, timeBucket, userId, albumId, personId, isArchived, isFavorite, isTrashed, withStacked, withPartners, key, options);
  7717. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7718. },
  7719. /**
  7720. *
  7721. * @param {TimeBucketSize} size
  7722. * @param {string} [userId]
  7723. * @param {string} [albumId]
  7724. * @param {string} [personId]
  7725. * @param {boolean} [isArchived]
  7726. * @param {boolean} [isFavorite]
  7727. * @param {boolean} [isTrashed]
  7728. * @param {boolean} [withStacked]
  7729. * @param {boolean} [withPartners]
  7730. * @param {string} [key]
  7731. * @param {*} [options] Override http request option.
  7732. * @throws {RequiredError}
  7733. */
  7734. async getTimeBuckets(size: TimeBucketSize, userId?: string, albumId?: string, personId?: string, isArchived?: boolean, isFavorite?: boolean, isTrashed?: boolean, withStacked?: boolean, withPartners?: boolean, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<TimeBucketResponseDto>>> {
  7735. const localVarAxiosArgs = await localVarAxiosParamCreator.getTimeBuckets(size, userId, albumId, personId, isArchived, isFavorite, isTrashed, withStacked, withPartners, key, options);
  7736. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7737. },
  7738. /**
  7739. *
  7740. * @summary Use /asset/device/:deviceId instead - Remove in 1.92 release
  7741. * @param {string} deviceId
  7742. * @param {*} [options] Override http request option.
  7743. * @deprecated
  7744. * @throws {RequiredError}
  7745. */
  7746. async getUserAssetsByDeviceId(deviceId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
  7747. const localVarAxiosArgs = await localVarAxiosParamCreator.getUserAssetsByDeviceId(deviceId, options);
  7748. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7749. },
  7750. /**
  7751. *
  7752. * @param {BulkIdsDto} bulkIdsDto
  7753. * @param {*} [options] Override http request option.
  7754. * @throws {RequiredError}
  7755. */
  7756. async restoreAssets(bulkIdsDto: BulkIdsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  7757. const localVarAxiosArgs = await localVarAxiosParamCreator.restoreAssets(bulkIdsDto, options);
  7758. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7759. },
  7760. /**
  7761. *
  7762. * @param {*} [options] Override http request option.
  7763. * @throws {RequiredError}
  7764. */
  7765. async restoreTrash(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  7766. const localVarAxiosArgs = await localVarAxiosParamCreator.restoreTrash(options);
  7767. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7768. },
  7769. /**
  7770. *
  7771. * @param {AssetJobsDto} assetJobsDto
  7772. * @param {*} [options] Override http request option.
  7773. * @throws {RequiredError}
  7774. */
  7775. async runAssetJobs(assetJobsDto: AssetJobsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  7776. const localVarAxiosArgs = await localVarAxiosParamCreator.runAssetJobs(assetJobsDto, options);
  7777. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7778. },
  7779. /**
  7780. *
  7781. * @param {string} [id]
  7782. * @param {string} [libraryId]
  7783. * @param {AssetTypeEnum} [type]
  7784. * @param {AssetOrder} [order]
  7785. * @param {string} [deviceAssetId]
  7786. * @param {string} [deviceId]
  7787. * @param {string} [checksum]
  7788. * @param {boolean} [isArchived]
  7789. * @param {boolean} [isEncoded]
  7790. * @param {boolean} [isExternal]
  7791. * @param {boolean} [isFavorite]
  7792. * @param {boolean} [isMotion]
  7793. * @param {boolean} [isOffline]
  7794. * @param {boolean} [isReadOnly]
  7795. * @param {boolean} [isVisible]
  7796. * @param {boolean} [withDeleted]
  7797. * @param {boolean} [withStacked]
  7798. * @param {boolean} [withExif]
  7799. * @param {boolean} [withPeople]
  7800. * @param {string} [createdBefore]
  7801. * @param {string} [createdAfter]
  7802. * @param {string} [updatedBefore]
  7803. * @param {string} [updatedAfter]
  7804. * @param {string} [trashedBefore]
  7805. * @param {string} [trashedAfter]
  7806. * @param {string} [takenBefore]
  7807. * @param {string} [takenAfter]
  7808. * @param {string} [originalFileName]
  7809. * @param {string} [originalPath]
  7810. * @param {string} [resizePath]
  7811. * @param {string} [webpPath]
  7812. * @param {string} [encodedVideoPath]
  7813. * @param {string} [city]
  7814. * @param {string} [state]
  7815. * @param {string} [country]
  7816. * @param {string} [make]
  7817. * @param {string} [model]
  7818. * @param {string} [lensModel]
  7819. * @param {number} [page]
  7820. * @param {number} [size]
  7821. * @param {*} [options] Override http request option.
  7822. * @throws {RequiredError}
  7823. */
  7824. async searchAssets(id?: string, libraryId?: string, type?: AssetTypeEnum, order?: AssetOrder, deviceAssetId?: string, deviceId?: string, checksum?: string, isArchived?: boolean, isEncoded?: boolean, isExternal?: boolean, isFavorite?: boolean, isMotion?: boolean, isOffline?: boolean, isReadOnly?: boolean, isVisible?: boolean, withDeleted?: boolean, withStacked?: boolean, withExif?: boolean, withPeople?: boolean, createdBefore?: string, createdAfter?: string, updatedBefore?: string, updatedAfter?: string, trashedBefore?: string, trashedAfter?: string, takenBefore?: string, takenAfter?: string, originalFileName?: string, originalPath?: string, resizePath?: string, webpPath?: string, encodedVideoPath?: string, city?: string, state?: string, country?: string, make?: string, model?: string, lensModel?: string, page?: number, size?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  7825. const localVarAxiosArgs = await localVarAxiosParamCreator.searchAssets(id, libraryId, type, order, deviceAssetId, deviceId, checksum, isArchived, isEncoded, isExternal, isFavorite, isMotion, isOffline, isReadOnly, isVisible, withDeleted, withStacked, withExif, withPeople, createdBefore, createdAfter, updatedBefore, updatedAfter, trashedBefore, trashedAfter, takenBefore, takenAfter, originalFileName, originalPath, resizePath, webpPath, encodedVideoPath, city, state, country, make, model, lensModel, page, size, options);
  7826. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7827. },
  7828. /**
  7829. *
  7830. * @param {string} id
  7831. * @param {boolean} [isThumb]
  7832. * @param {boolean} [isWeb]
  7833. * @param {string} [key]
  7834. * @param {*} [options] Override http request option.
  7835. * @throws {RequiredError}
  7836. */
  7837. async serveFile(id: string, isThumb?: boolean, isWeb?: boolean, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
  7838. const localVarAxiosArgs = await localVarAxiosParamCreator.serveFile(id, isThumb, isWeb, key, options);
  7839. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7840. },
  7841. /**
  7842. *
  7843. * @param {string} id
  7844. * @param {UpdateAssetDto} updateAssetDto
  7845. * @param {*} [options] Override http request option.
  7846. * @throws {RequiredError}
  7847. */
  7848. async updateAsset(id: string, updateAssetDto: UpdateAssetDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetResponseDto>> {
  7849. const localVarAxiosArgs = await localVarAxiosParamCreator.updateAsset(id, updateAssetDto, options);
  7850. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7851. },
  7852. /**
  7853. *
  7854. * @param {AssetBulkUpdateDto} assetBulkUpdateDto
  7855. * @param {*} [options] Override http request option.
  7856. * @throws {RequiredError}
  7857. */
  7858. async updateAssets(assetBulkUpdateDto: AssetBulkUpdateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  7859. const localVarAxiosArgs = await localVarAxiosParamCreator.updateAssets(assetBulkUpdateDto, options);
  7860. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7861. },
  7862. /**
  7863. *
  7864. * @param {UpdateStackParentDto} updateStackParentDto
  7865. * @param {*} [options] Override http request option.
  7866. * @throws {RequiredError}
  7867. */
  7868. async updateStackParent(updateStackParentDto: UpdateStackParentDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  7869. const localVarAxiosArgs = await localVarAxiosParamCreator.updateStackParent(updateStackParentDto, options);
  7870. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7871. },
  7872. /**
  7873. *
  7874. * @param {File} assetData
  7875. * @param {string} deviceAssetId
  7876. * @param {string} deviceId
  7877. * @param {string} fileCreatedAt
  7878. * @param {string} fileModifiedAt
  7879. * @param {string} [key]
  7880. * @param {string} [duration]
  7881. * @param {boolean} [isArchived]
  7882. * @param {boolean} [isExternal]
  7883. * @param {boolean} [isFavorite]
  7884. * @param {boolean} [isOffline]
  7885. * @param {boolean} [isReadOnly]
  7886. * @param {boolean} [isVisible]
  7887. * @param {string} [libraryId]
  7888. * @param {File} [livePhotoData]
  7889. * @param {File} [sidecarData]
  7890. * @param {*} [options] Override http request option.
  7891. * @throws {RequiredError}
  7892. */
  7893. async uploadFile(assetData: File, deviceAssetId: string, deviceId: string, fileCreatedAt: string, fileModifiedAt: string, key?: string, duration?: string, isArchived?: boolean, isExternal?: boolean, isFavorite?: boolean, isOffline?: boolean, isReadOnly?: boolean, isVisible?: boolean, libraryId?: string, livePhotoData?: File, sidecarData?: File, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetFileUploadResponseDto>> {
  7894. const localVarAxiosArgs = await localVarAxiosParamCreator.uploadFile(assetData, deviceAssetId, deviceId, fileCreatedAt, fileModifiedAt, key, duration, isArchived, isExternal, isFavorite, isOffline, isReadOnly, isVisible, libraryId, livePhotoData, sidecarData, options);
  7895. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7896. },
  7897. }
  7898. };
  7899. /**
  7900. * AssetApi - factory interface
  7901. * @export
  7902. */
  7903. export const AssetApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  7904. const localVarFp = AssetApiFp(configuration)
  7905. return {
  7906. /**
  7907. * Checks if assets exist by checksums
  7908. * @param {AssetApiCheckBulkUploadRequest} requestParameters Request parameters.
  7909. * @param {*} [options] Override http request option.
  7910. * @throws {RequiredError}
  7911. */
  7912. checkBulkUpload(requestParameters: AssetApiCheckBulkUploadRequest, options?: AxiosRequestConfig): AxiosPromise<AssetBulkUploadCheckResponseDto> {
  7913. return localVarFp.checkBulkUpload(requestParameters.assetBulkUploadCheckDto, options).then((request) => request(axios, basePath));
  7914. },
  7915. /**
  7916. * Checks if multiple assets exist on the server and returns all existing - used by background backup
  7917. * @param {AssetApiCheckExistingAssetsRequest} requestParameters Request parameters.
  7918. * @param {*} [options] Override http request option.
  7919. * @throws {RequiredError}
  7920. */
  7921. checkExistingAssets(requestParameters: AssetApiCheckExistingAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<CheckExistingAssetsResponseDto> {
  7922. return localVarFp.checkExistingAssets(requestParameters.checkExistingAssetsDto, options).then((request) => request(axios, basePath));
  7923. },
  7924. /**
  7925. *
  7926. * @param {AssetApiDeleteAssetsRequest} requestParameters Request parameters.
  7927. * @param {*} [options] Override http request option.
  7928. * @throws {RequiredError}
  7929. */
  7930. deleteAssets(requestParameters: AssetApiDeleteAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  7931. return localVarFp.deleteAssets(requestParameters.assetBulkDeleteDto, options).then((request) => request(axios, basePath));
  7932. },
  7933. /**
  7934. *
  7935. * @param {AssetApiDownloadArchiveRequest} requestParameters Request parameters.
  7936. * @param {*} [options] Override http request option.
  7937. * @throws {RequiredError}
  7938. */
  7939. downloadArchive(requestParameters: AssetApiDownloadArchiveRequest, options?: AxiosRequestConfig): AxiosPromise<File> {
  7940. return localVarFp.downloadArchive(requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(axios, basePath));
  7941. },
  7942. /**
  7943. *
  7944. * @param {AssetApiDownloadFileRequest} requestParameters Request parameters.
  7945. * @param {*} [options] Override http request option.
  7946. * @throws {RequiredError}
  7947. */
  7948. downloadFile(requestParameters: AssetApiDownloadFileRequest, options?: AxiosRequestConfig): AxiosPromise<File> {
  7949. return localVarFp.downloadFile(requestParameters.id, requestParameters.key, options).then((request) => request(axios, basePath));
  7950. },
  7951. /**
  7952. *
  7953. * @param {*} [options] Override http request option.
  7954. * @throws {RequiredError}
  7955. */
  7956. emptyTrash(options?: AxiosRequestConfig): AxiosPromise<void> {
  7957. return localVarFp.emptyTrash(options).then((request) => request(axios, basePath));
  7958. },
  7959. /**
  7960. * Get all AssetEntity belong to the user
  7961. * @param {AssetApiGetAllAssetsRequest} requestParameters Request parameters.
  7962. * @param {*} [options] Override http request option.
  7963. * @throws {RequiredError}
  7964. */
  7965. getAllAssets(requestParameters: AssetApiGetAllAssetsRequest = {}, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
  7966. return localVarFp.getAllAssets(requestParameters.skip, requestParameters.take, requestParameters.userId, requestParameters.isFavorite, requestParameters.isArchived, requestParameters.updatedAfter, requestParameters.updatedBefore, requestParameters.ifNoneMatch, options).then((request) => request(axios, basePath));
  7967. },
  7968. /**
  7969. * Get all asset of a device that are in the database, ID only.
  7970. * @param {AssetApiGetAllUserAssetsByDeviceIdRequest} requestParameters Request parameters.
  7971. * @param {*} [options] Override http request option.
  7972. * @throws {RequiredError}
  7973. */
  7974. getAllUserAssetsByDeviceId(requestParameters: AssetApiGetAllUserAssetsByDeviceIdRequest, options?: AxiosRequestConfig): AxiosPromise<Array<string>> {
  7975. return localVarFp.getAllUserAssetsByDeviceId(requestParameters.deviceId, options).then((request) => request(axios, basePath));
  7976. },
  7977. /**
  7978. * Get a single asset\'s information
  7979. * @param {AssetApiGetAssetByIdRequest} requestParameters Request parameters.
  7980. * @param {*} [options] Override http request option.
  7981. * @throws {RequiredError}
  7982. */
  7983. getAssetById(requestParameters: AssetApiGetAssetByIdRequest, options?: AxiosRequestConfig): AxiosPromise<AssetResponseDto> {
  7984. return localVarFp.getAssetById(requestParameters.id, requestParameters.key, options).then((request) => request(axios, basePath));
  7985. },
  7986. /**
  7987. *
  7988. * @param {*} [options] Override http request option.
  7989. * @throws {RequiredError}
  7990. */
  7991. getAssetSearchTerms(options?: AxiosRequestConfig): AxiosPromise<Array<string>> {
  7992. return localVarFp.getAssetSearchTerms(options).then((request) => request(axios, basePath));
  7993. },
  7994. /**
  7995. *
  7996. * @param {AssetApiGetAssetStatisticsRequest} requestParameters Request parameters.
  7997. * @param {*} [options] Override http request option.
  7998. * @throws {RequiredError}
  7999. */
  8000. getAssetStatistics(requestParameters: AssetApiGetAssetStatisticsRequest = {}, options?: AxiosRequestConfig): AxiosPromise<AssetStatsResponseDto> {
  8001. return localVarFp.getAssetStatistics(requestParameters.isArchived, requestParameters.isFavorite, requestParameters.isTrashed, options).then((request) => request(axios, basePath));
  8002. },
  8003. /**
  8004. *
  8005. * @param {AssetApiGetAssetThumbnailRequest} requestParameters Request parameters.
  8006. * @param {*} [options] Override http request option.
  8007. * @throws {RequiredError}
  8008. */
  8009. getAssetThumbnail(requestParameters: AssetApiGetAssetThumbnailRequest, options?: AxiosRequestConfig): AxiosPromise<File> {
  8010. return localVarFp.getAssetThumbnail(requestParameters.id, requestParameters.format, requestParameters.key, options).then((request) => request(axios, basePath));
  8011. },
  8012. /**
  8013. *
  8014. * @param {*} [options] Override http request option.
  8015. * @throws {RequiredError}
  8016. */
  8017. getCuratedLocations(options?: AxiosRequestConfig): AxiosPromise<Array<CuratedLocationsResponseDto>> {
  8018. return localVarFp.getCuratedLocations(options).then((request) => request(axios, basePath));
  8019. },
  8020. /**
  8021. *
  8022. * @param {*} [options] Override http request option.
  8023. * @throws {RequiredError}
  8024. */
  8025. getCuratedObjects(options?: AxiosRequestConfig): AxiosPromise<Array<CuratedObjectsResponseDto>> {
  8026. return localVarFp.getCuratedObjects(options).then((request) => request(axios, basePath));
  8027. },
  8028. /**
  8029. *
  8030. * @param {AssetApiGetDownloadInfoRequest} requestParameters Request parameters.
  8031. * @param {*} [options] Override http request option.
  8032. * @throws {RequiredError}
  8033. */
  8034. getDownloadInfo(requestParameters: AssetApiGetDownloadInfoRequest, options?: AxiosRequestConfig): AxiosPromise<DownloadResponseDto> {
  8035. return localVarFp.getDownloadInfo(requestParameters.downloadInfoDto, requestParameters.key, options).then((request) => request(axios, basePath));
  8036. },
  8037. /**
  8038. *
  8039. * @param {AssetApiGetMapMarkersRequest} requestParameters Request parameters.
  8040. * @param {*} [options] Override http request option.
  8041. * @throws {RequiredError}
  8042. */
  8043. getMapMarkers(requestParameters: AssetApiGetMapMarkersRequest = {}, options?: AxiosRequestConfig): AxiosPromise<Array<MapMarkerResponseDto>> {
  8044. return localVarFp.getMapMarkers(requestParameters.isArchived, requestParameters.isFavorite, requestParameters.fileCreatedAfter, requestParameters.fileCreatedBefore, options).then((request) => request(axios, basePath));
  8045. },
  8046. /**
  8047. *
  8048. * @param {AssetApiGetMemoryLaneRequest} requestParameters Request parameters.
  8049. * @param {*} [options] Override http request option.
  8050. * @throws {RequiredError}
  8051. */
  8052. getMemoryLane(requestParameters: AssetApiGetMemoryLaneRequest, options?: AxiosRequestConfig): AxiosPromise<Array<MemoryLaneResponseDto>> {
  8053. return localVarFp.getMemoryLane(requestParameters.day, requestParameters.month, options).then((request) => request(axios, basePath));
  8054. },
  8055. /**
  8056. *
  8057. * @param {AssetApiGetRandomRequest} requestParameters Request parameters.
  8058. * @param {*} [options] Override http request option.
  8059. * @throws {RequiredError}
  8060. */
  8061. getRandom(requestParameters: AssetApiGetRandomRequest = {}, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
  8062. return localVarFp.getRandom(requestParameters.count, options).then((request) => request(axios, basePath));
  8063. },
  8064. /**
  8065. *
  8066. * @param {AssetApiGetTimeBucketRequest} requestParameters Request parameters.
  8067. * @param {*} [options] Override http request option.
  8068. * @throws {RequiredError}
  8069. */
  8070. getTimeBucket(requestParameters: AssetApiGetTimeBucketRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
  8071. return localVarFp.getTimeBucket(requestParameters.size, requestParameters.timeBucket, requestParameters.userId, requestParameters.albumId, requestParameters.personId, requestParameters.isArchived, requestParameters.isFavorite, requestParameters.isTrashed, requestParameters.withStacked, requestParameters.withPartners, requestParameters.key, options).then((request) => request(axios, basePath));
  8072. },
  8073. /**
  8074. *
  8075. * @param {AssetApiGetTimeBucketsRequest} requestParameters Request parameters.
  8076. * @param {*} [options] Override http request option.
  8077. * @throws {RequiredError}
  8078. */
  8079. getTimeBuckets(requestParameters: AssetApiGetTimeBucketsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<TimeBucketResponseDto>> {
  8080. return localVarFp.getTimeBuckets(requestParameters.size, requestParameters.userId, requestParameters.albumId, requestParameters.personId, requestParameters.isArchived, requestParameters.isFavorite, requestParameters.isTrashed, requestParameters.withStacked, requestParameters.withPartners, requestParameters.key, options).then((request) => request(axios, basePath));
  8081. },
  8082. /**
  8083. *
  8084. * @summary Use /asset/device/:deviceId instead - Remove in 1.92 release
  8085. * @param {AssetApiGetUserAssetsByDeviceIdRequest} requestParameters Request parameters.
  8086. * @param {*} [options] Override http request option.
  8087. * @deprecated
  8088. * @throws {RequiredError}
  8089. */
  8090. getUserAssetsByDeviceId(requestParameters: AssetApiGetUserAssetsByDeviceIdRequest, options?: AxiosRequestConfig): AxiosPromise<Array<string>> {
  8091. return localVarFp.getUserAssetsByDeviceId(requestParameters.deviceId, options).then((request) => request(axios, basePath));
  8092. },
  8093. /**
  8094. *
  8095. * @param {AssetApiRestoreAssetsRequest} requestParameters Request parameters.
  8096. * @param {*} [options] Override http request option.
  8097. * @throws {RequiredError}
  8098. */
  8099. restoreAssets(requestParameters: AssetApiRestoreAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  8100. return localVarFp.restoreAssets(requestParameters.bulkIdsDto, options).then((request) => request(axios, basePath));
  8101. },
  8102. /**
  8103. *
  8104. * @param {*} [options] Override http request option.
  8105. * @throws {RequiredError}
  8106. */
  8107. restoreTrash(options?: AxiosRequestConfig): AxiosPromise<void> {
  8108. return localVarFp.restoreTrash(options).then((request) => request(axios, basePath));
  8109. },
  8110. /**
  8111. *
  8112. * @param {AssetApiRunAssetJobsRequest} requestParameters Request parameters.
  8113. * @param {*} [options] Override http request option.
  8114. * @throws {RequiredError}
  8115. */
  8116. runAssetJobs(requestParameters: AssetApiRunAssetJobsRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  8117. return localVarFp.runAssetJobs(requestParameters.assetJobsDto, options).then((request) => request(axios, basePath));
  8118. },
  8119. /**
  8120. *
  8121. * @param {AssetApiSearchAssetsRequest} requestParameters Request parameters.
  8122. * @param {*} [options] Override http request option.
  8123. * @throws {RequiredError}
  8124. */
  8125. searchAssets(requestParameters: AssetApiSearchAssetsRequest = {}, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
  8126. return localVarFp.searchAssets(requestParameters.id, requestParameters.libraryId, requestParameters.type, requestParameters.order, requestParameters.deviceAssetId, requestParameters.deviceId, requestParameters.checksum, requestParameters.isArchived, requestParameters.isEncoded, requestParameters.isExternal, requestParameters.isFavorite, requestParameters.isMotion, requestParameters.isOffline, requestParameters.isReadOnly, requestParameters.isVisible, requestParameters.withDeleted, requestParameters.withStacked, requestParameters.withExif, requestParameters.withPeople, requestParameters.createdBefore, requestParameters.createdAfter, requestParameters.updatedBefore, requestParameters.updatedAfter, requestParameters.trashedBefore, requestParameters.trashedAfter, requestParameters.takenBefore, requestParameters.takenAfter, requestParameters.originalFileName, requestParameters.originalPath, requestParameters.resizePath, requestParameters.webpPath, requestParameters.encodedVideoPath, requestParameters.city, requestParameters.state, requestParameters.country, requestParameters.make, requestParameters.model, requestParameters.lensModel, requestParameters.page, requestParameters.size, options).then((request) => request(axios, basePath));
  8127. },
  8128. /**
  8129. *
  8130. * @param {AssetApiServeFileRequest} requestParameters Request parameters.
  8131. * @param {*} [options] Override http request option.
  8132. * @throws {RequiredError}
  8133. */
  8134. serveFile(requestParameters: AssetApiServeFileRequest, options?: AxiosRequestConfig): AxiosPromise<File> {
  8135. return localVarFp.serveFile(requestParameters.id, requestParameters.isThumb, requestParameters.isWeb, requestParameters.key, options).then((request) => request(axios, basePath));
  8136. },
  8137. /**
  8138. *
  8139. * @param {AssetApiUpdateAssetRequest} requestParameters Request parameters.
  8140. * @param {*} [options] Override http request option.
  8141. * @throws {RequiredError}
  8142. */
  8143. updateAsset(requestParameters: AssetApiUpdateAssetRequest, options?: AxiosRequestConfig): AxiosPromise<AssetResponseDto> {
  8144. return localVarFp.updateAsset(requestParameters.id, requestParameters.updateAssetDto, options).then((request) => request(axios, basePath));
  8145. },
  8146. /**
  8147. *
  8148. * @param {AssetApiUpdateAssetsRequest} requestParameters Request parameters.
  8149. * @param {*} [options] Override http request option.
  8150. * @throws {RequiredError}
  8151. */
  8152. updateAssets(requestParameters: AssetApiUpdateAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  8153. return localVarFp.updateAssets(requestParameters.assetBulkUpdateDto, options).then((request) => request(axios, basePath));
  8154. },
  8155. /**
  8156. *
  8157. * @param {AssetApiUpdateStackParentRequest} requestParameters Request parameters.
  8158. * @param {*} [options] Override http request option.
  8159. * @throws {RequiredError}
  8160. */
  8161. updateStackParent(requestParameters: AssetApiUpdateStackParentRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  8162. return localVarFp.updateStackParent(requestParameters.updateStackParentDto, options).then((request) => request(axios, basePath));
  8163. },
  8164. /**
  8165. *
  8166. * @param {AssetApiUploadFileRequest} requestParameters Request parameters.
  8167. * @param {*} [options] Override http request option.
  8168. * @throws {RequiredError}
  8169. */
  8170. uploadFile(requestParameters: AssetApiUploadFileRequest, options?: AxiosRequestConfig): AxiosPromise<AssetFileUploadResponseDto> {
  8171. return localVarFp.uploadFile(requestParameters.assetData, requestParameters.deviceAssetId, requestParameters.deviceId, requestParameters.fileCreatedAt, requestParameters.fileModifiedAt, requestParameters.key, requestParameters.duration, requestParameters.isArchived, requestParameters.isExternal, requestParameters.isFavorite, requestParameters.isOffline, requestParameters.isReadOnly, requestParameters.isVisible, requestParameters.libraryId, requestParameters.livePhotoData, requestParameters.sidecarData, options).then((request) => request(axios, basePath));
  8172. },
  8173. };
  8174. };
  8175. /**
  8176. * Request parameters for checkBulkUpload operation in AssetApi.
  8177. * @export
  8178. * @interface AssetApiCheckBulkUploadRequest
  8179. */
  8180. export interface AssetApiCheckBulkUploadRequest {
  8181. /**
  8182. *
  8183. * @type {AssetBulkUploadCheckDto}
  8184. * @memberof AssetApiCheckBulkUpload
  8185. */
  8186. readonly assetBulkUploadCheckDto: AssetBulkUploadCheckDto
  8187. }
  8188. /**
  8189. * Request parameters for checkExistingAssets operation in AssetApi.
  8190. * @export
  8191. * @interface AssetApiCheckExistingAssetsRequest
  8192. */
  8193. export interface AssetApiCheckExistingAssetsRequest {
  8194. /**
  8195. *
  8196. * @type {CheckExistingAssetsDto}
  8197. * @memberof AssetApiCheckExistingAssets
  8198. */
  8199. readonly checkExistingAssetsDto: CheckExistingAssetsDto
  8200. }
  8201. /**
  8202. * Request parameters for deleteAssets operation in AssetApi.
  8203. * @export
  8204. * @interface AssetApiDeleteAssetsRequest
  8205. */
  8206. export interface AssetApiDeleteAssetsRequest {
  8207. /**
  8208. *
  8209. * @type {AssetBulkDeleteDto}
  8210. * @memberof AssetApiDeleteAssets
  8211. */
  8212. readonly assetBulkDeleteDto: AssetBulkDeleteDto
  8213. }
  8214. /**
  8215. * Request parameters for downloadArchive operation in AssetApi.
  8216. * @export
  8217. * @interface AssetApiDownloadArchiveRequest
  8218. */
  8219. export interface AssetApiDownloadArchiveRequest {
  8220. /**
  8221. *
  8222. * @type {AssetIdsDto}
  8223. * @memberof AssetApiDownloadArchive
  8224. */
  8225. readonly assetIdsDto: AssetIdsDto
  8226. /**
  8227. *
  8228. * @type {string}
  8229. * @memberof AssetApiDownloadArchive
  8230. */
  8231. readonly key?: string
  8232. }
  8233. /**
  8234. * Request parameters for downloadFile operation in AssetApi.
  8235. * @export
  8236. * @interface AssetApiDownloadFileRequest
  8237. */
  8238. export interface AssetApiDownloadFileRequest {
  8239. /**
  8240. *
  8241. * @type {string}
  8242. * @memberof AssetApiDownloadFile
  8243. */
  8244. readonly id: string
  8245. /**
  8246. *
  8247. * @type {string}
  8248. * @memberof AssetApiDownloadFile
  8249. */
  8250. readonly key?: string
  8251. }
  8252. /**
  8253. * Request parameters for getAllAssets operation in AssetApi.
  8254. * @export
  8255. * @interface AssetApiGetAllAssetsRequest
  8256. */
  8257. export interface AssetApiGetAllAssetsRequest {
  8258. /**
  8259. *
  8260. * @type {number}
  8261. * @memberof AssetApiGetAllAssets
  8262. */
  8263. readonly skip?: number
  8264. /**
  8265. *
  8266. * @type {number}
  8267. * @memberof AssetApiGetAllAssets
  8268. */
  8269. readonly take?: number
  8270. /**
  8271. *
  8272. * @type {string}
  8273. * @memberof AssetApiGetAllAssets
  8274. */
  8275. readonly userId?: string
  8276. /**
  8277. *
  8278. * @type {boolean}
  8279. * @memberof AssetApiGetAllAssets
  8280. */
  8281. readonly isFavorite?: boolean
  8282. /**
  8283. *
  8284. * @type {boolean}
  8285. * @memberof AssetApiGetAllAssets
  8286. */
  8287. readonly isArchived?: boolean
  8288. /**
  8289. *
  8290. * @type {string}
  8291. * @memberof AssetApiGetAllAssets
  8292. */
  8293. readonly updatedAfter?: string
  8294. /**
  8295. *
  8296. * @type {string}
  8297. * @memberof AssetApiGetAllAssets
  8298. */
  8299. readonly updatedBefore?: string
  8300. /**
  8301. * ETag of data already cached on the client
  8302. * @type {string}
  8303. * @memberof AssetApiGetAllAssets
  8304. */
  8305. readonly ifNoneMatch?: string
  8306. }
  8307. /**
  8308. * Request parameters for getAllUserAssetsByDeviceId operation in AssetApi.
  8309. * @export
  8310. * @interface AssetApiGetAllUserAssetsByDeviceIdRequest
  8311. */
  8312. export interface AssetApiGetAllUserAssetsByDeviceIdRequest {
  8313. /**
  8314. *
  8315. * @type {string}
  8316. * @memberof AssetApiGetAllUserAssetsByDeviceId
  8317. */
  8318. readonly deviceId: string
  8319. }
  8320. /**
  8321. * Request parameters for getAssetById operation in AssetApi.
  8322. * @export
  8323. * @interface AssetApiGetAssetByIdRequest
  8324. */
  8325. export interface AssetApiGetAssetByIdRequest {
  8326. /**
  8327. *
  8328. * @type {string}
  8329. * @memberof AssetApiGetAssetById
  8330. */
  8331. readonly id: string
  8332. /**
  8333. *
  8334. * @type {string}
  8335. * @memberof AssetApiGetAssetById
  8336. */
  8337. readonly key?: string
  8338. }
  8339. /**
  8340. * Request parameters for getAssetStatistics operation in AssetApi.
  8341. * @export
  8342. * @interface AssetApiGetAssetStatisticsRequest
  8343. */
  8344. export interface AssetApiGetAssetStatisticsRequest {
  8345. /**
  8346. *
  8347. * @type {boolean}
  8348. * @memberof AssetApiGetAssetStatistics
  8349. */
  8350. readonly isArchived?: boolean
  8351. /**
  8352. *
  8353. * @type {boolean}
  8354. * @memberof AssetApiGetAssetStatistics
  8355. */
  8356. readonly isFavorite?: boolean
  8357. /**
  8358. *
  8359. * @type {boolean}
  8360. * @memberof AssetApiGetAssetStatistics
  8361. */
  8362. readonly isTrashed?: boolean
  8363. }
  8364. /**
  8365. * Request parameters for getAssetThumbnail operation in AssetApi.
  8366. * @export
  8367. * @interface AssetApiGetAssetThumbnailRequest
  8368. */
  8369. export interface AssetApiGetAssetThumbnailRequest {
  8370. /**
  8371. *
  8372. * @type {string}
  8373. * @memberof AssetApiGetAssetThumbnail
  8374. */
  8375. readonly id: string
  8376. /**
  8377. *
  8378. * @type {ThumbnailFormat}
  8379. * @memberof AssetApiGetAssetThumbnail
  8380. */
  8381. readonly format?: ThumbnailFormat
  8382. /**
  8383. *
  8384. * @type {string}
  8385. * @memberof AssetApiGetAssetThumbnail
  8386. */
  8387. readonly key?: string
  8388. }
  8389. /**
  8390. * Request parameters for getDownloadInfo operation in AssetApi.
  8391. * @export
  8392. * @interface AssetApiGetDownloadInfoRequest
  8393. */
  8394. export interface AssetApiGetDownloadInfoRequest {
  8395. /**
  8396. *
  8397. * @type {DownloadInfoDto}
  8398. * @memberof AssetApiGetDownloadInfo
  8399. */
  8400. readonly downloadInfoDto: DownloadInfoDto
  8401. /**
  8402. *
  8403. * @type {string}
  8404. * @memberof AssetApiGetDownloadInfo
  8405. */
  8406. readonly key?: string
  8407. }
  8408. /**
  8409. * Request parameters for getMapMarkers operation in AssetApi.
  8410. * @export
  8411. * @interface AssetApiGetMapMarkersRequest
  8412. */
  8413. export interface AssetApiGetMapMarkersRequest {
  8414. /**
  8415. *
  8416. * @type {boolean}
  8417. * @memberof AssetApiGetMapMarkers
  8418. */
  8419. readonly isArchived?: boolean
  8420. /**
  8421. *
  8422. * @type {boolean}
  8423. * @memberof AssetApiGetMapMarkers
  8424. */
  8425. readonly isFavorite?: boolean
  8426. /**
  8427. *
  8428. * @type {string}
  8429. * @memberof AssetApiGetMapMarkers
  8430. */
  8431. readonly fileCreatedAfter?: string
  8432. /**
  8433. *
  8434. * @type {string}
  8435. * @memberof AssetApiGetMapMarkers
  8436. */
  8437. readonly fileCreatedBefore?: string
  8438. }
  8439. /**
  8440. * Request parameters for getMemoryLane operation in AssetApi.
  8441. * @export
  8442. * @interface AssetApiGetMemoryLaneRequest
  8443. */
  8444. export interface AssetApiGetMemoryLaneRequest {
  8445. /**
  8446. *
  8447. * @type {number}
  8448. * @memberof AssetApiGetMemoryLane
  8449. */
  8450. readonly day: number
  8451. /**
  8452. *
  8453. * @type {number}
  8454. * @memberof AssetApiGetMemoryLane
  8455. */
  8456. readonly month: number
  8457. }
  8458. /**
  8459. * Request parameters for getRandom operation in AssetApi.
  8460. * @export
  8461. * @interface AssetApiGetRandomRequest
  8462. */
  8463. export interface AssetApiGetRandomRequest {
  8464. /**
  8465. *
  8466. * @type {number}
  8467. * @memberof AssetApiGetRandom
  8468. */
  8469. readonly count?: number
  8470. }
  8471. /**
  8472. * Request parameters for getTimeBucket operation in AssetApi.
  8473. * @export
  8474. * @interface AssetApiGetTimeBucketRequest
  8475. */
  8476. export interface AssetApiGetTimeBucketRequest {
  8477. /**
  8478. *
  8479. * @type {TimeBucketSize}
  8480. * @memberof AssetApiGetTimeBucket
  8481. */
  8482. readonly size: TimeBucketSize
  8483. /**
  8484. *
  8485. * @type {string}
  8486. * @memberof AssetApiGetTimeBucket
  8487. */
  8488. readonly timeBucket: string
  8489. /**
  8490. *
  8491. * @type {string}
  8492. * @memberof AssetApiGetTimeBucket
  8493. */
  8494. readonly userId?: string
  8495. /**
  8496. *
  8497. * @type {string}
  8498. * @memberof AssetApiGetTimeBucket
  8499. */
  8500. readonly albumId?: string
  8501. /**
  8502. *
  8503. * @type {string}
  8504. * @memberof AssetApiGetTimeBucket
  8505. */
  8506. readonly personId?: string
  8507. /**
  8508. *
  8509. * @type {boolean}
  8510. * @memberof AssetApiGetTimeBucket
  8511. */
  8512. readonly isArchived?: boolean
  8513. /**
  8514. *
  8515. * @type {boolean}
  8516. * @memberof AssetApiGetTimeBucket
  8517. */
  8518. readonly isFavorite?: boolean
  8519. /**
  8520. *
  8521. * @type {boolean}
  8522. * @memberof AssetApiGetTimeBucket
  8523. */
  8524. readonly isTrashed?: boolean
  8525. /**
  8526. *
  8527. * @type {boolean}
  8528. * @memberof AssetApiGetTimeBucket
  8529. */
  8530. readonly withStacked?: boolean
  8531. /**
  8532. *
  8533. * @type {boolean}
  8534. * @memberof AssetApiGetTimeBucket
  8535. */
  8536. readonly withPartners?: boolean
  8537. /**
  8538. *
  8539. * @type {string}
  8540. * @memberof AssetApiGetTimeBucket
  8541. */
  8542. readonly key?: string
  8543. }
  8544. /**
  8545. * Request parameters for getTimeBuckets operation in AssetApi.
  8546. * @export
  8547. * @interface AssetApiGetTimeBucketsRequest
  8548. */
  8549. export interface AssetApiGetTimeBucketsRequest {
  8550. /**
  8551. *
  8552. * @type {TimeBucketSize}
  8553. * @memberof AssetApiGetTimeBuckets
  8554. */
  8555. readonly size: TimeBucketSize
  8556. /**
  8557. *
  8558. * @type {string}
  8559. * @memberof AssetApiGetTimeBuckets
  8560. */
  8561. readonly userId?: string
  8562. /**
  8563. *
  8564. * @type {string}
  8565. * @memberof AssetApiGetTimeBuckets
  8566. */
  8567. readonly albumId?: string
  8568. /**
  8569. *
  8570. * @type {string}
  8571. * @memberof AssetApiGetTimeBuckets
  8572. */
  8573. readonly personId?: string
  8574. /**
  8575. *
  8576. * @type {boolean}
  8577. * @memberof AssetApiGetTimeBuckets
  8578. */
  8579. readonly isArchived?: boolean
  8580. /**
  8581. *
  8582. * @type {boolean}
  8583. * @memberof AssetApiGetTimeBuckets
  8584. */
  8585. readonly isFavorite?: boolean
  8586. /**
  8587. *
  8588. * @type {boolean}
  8589. * @memberof AssetApiGetTimeBuckets
  8590. */
  8591. readonly isTrashed?: boolean
  8592. /**
  8593. *
  8594. * @type {boolean}
  8595. * @memberof AssetApiGetTimeBuckets
  8596. */
  8597. readonly withStacked?: boolean
  8598. /**
  8599. *
  8600. * @type {boolean}
  8601. * @memberof AssetApiGetTimeBuckets
  8602. */
  8603. readonly withPartners?: boolean
  8604. /**
  8605. *
  8606. * @type {string}
  8607. * @memberof AssetApiGetTimeBuckets
  8608. */
  8609. readonly key?: string
  8610. }
  8611. /**
  8612. * Request parameters for getUserAssetsByDeviceId operation in AssetApi.
  8613. * @export
  8614. * @interface AssetApiGetUserAssetsByDeviceIdRequest
  8615. */
  8616. export interface AssetApiGetUserAssetsByDeviceIdRequest {
  8617. /**
  8618. *
  8619. * @type {string}
  8620. * @memberof AssetApiGetUserAssetsByDeviceId
  8621. */
  8622. readonly deviceId: string
  8623. }
  8624. /**
  8625. * Request parameters for restoreAssets operation in AssetApi.
  8626. * @export
  8627. * @interface AssetApiRestoreAssetsRequest
  8628. */
  8629. export interface AssetApiRestoreAssetsRequest {
  8630. /**
  8631. *
  8632. * @type {BulkIdsDto}
  8633. * @memberof AssetApiRestoreAssets
  8634. */
  8635. readonly bulkIdsDto: BulkIdsDto
  8636. }
  8637. /**
  8638. * Request parameters for runAssetJobs operation in AssetApi.
  8639. * @export
  8640. * @interface AssetApiRunAssetJobsRequest
  8641. */
  8642. export interface AssetApiRunAssetJobsRequest {
  8643. /**
  8644. *
  8645. * @type {AssetJobsDto}
  8646. * @memberof AssetApiRunAssetJobs
  8647. */
  8648. readonly assetJobsDto: AssetJobsDto
  8649. }
  8650. /**
  8651. * Request parameters for searchAssets operation in AssetApi.
  8652. * @export
  8653. * @interface AssetApiSearchAssetsRequest
  8654. */
  8655. export interface AssetApiSearchAssetsRequest {
  8656. /**
  8657. *
  8658. * @type {string}
  8659. * @memberof AssetApiSearchAssets
  8660. */
  8661. readonly id?: string
  8662. /**
  8663. *
  8664. * @type {string}
  8665. * @memberof AssetApiSearchAssets
  8666. */
  8667. readonly libraryId?: string
  8668. /**
  8669. *
  8670. * @type {AssetTypeEnum}
  8671. * @memberof AssetApiSearchAssets
  8672. */
  8673. readonly type?: AssetTypeEnum
  8674. /**
  8675. *
  8676. * @type {AssetOrder}
  8677. * @memberof AssetApiSearchAssets
  8678. */
  8679. readonly order?: AssetOrder
  8680. /**
  8681. *
  8682. * @type {string}
  8683. * @memberof AssetApiSearchAssets
  8684. */
  8685. readonly deviceAssetId?: string
  8686. /**
  8687. *
  8688. * @type {string}
  8689. * @memberof AssetApiSearchAssets
  8690. */
  8691. readonly deviceId?: string
  8692. /**
  8693. *
  8694. * @type {string}
  8695. * @memberof AssetApiSearchAssets
  8696. */
  8697. readonly checksum?: string
  8698. /**
  8699. *
  8700. * @type {boolean}
  8701. * @memberof AssetApiSearchAssets
  8702. */
  8703. readonly isArchived?: boolean
  8704. /**
  8705. *
  8706. * @type {boolean}
  8707. * @memberof AssetApiSearchAssets
  8708. */
  8709. readonly isEncoded?: boolean
  8710. /**
  8711. *
  8712. * @type {boolean}
  8713. * @memberof AssetApiSearchAssets
  8714. */
  8715. readonly isExternal?: boolean
  8716. /**
  8717. *
  8718. * @type {boolean}
  8719. * @memberof AssetApiSearchAssets
  8720. */
  8721. readonly isFavorite?: boolean
  8722. /**
  8723. *
  8724. * @type {boolean}
  8725. * @memberof AssetApiSearchAssets
  8726. */
  8727. readonly isMotion?: boolean
  8728. /**
  8729. *
  8730. * @type {boolean}
  8731. * @memberof AssetApiSearchAssets
  8732. */
  8733. readonly isOffline?: boolean
  8734. /**
  8735. *
  8736. * @type {boolean}
  8737. * @memberof AssetApiSearchAssets
  8738. */
  8739. readonly isReadOnly?: boolean
  8740. /**
  8741. *
  8742. * @type {boolean}
  8743. * @memberof AssetApiSearchAssets
  8744. */
  8745. readonly isVisible?: boolean
  8746. /**
  8747. *
  8748. * @type {boolean}
  8749. * @memberof AssetApiSearchAssets
  8750. */
  8751. readonly withDeleted?: boolean
  8752. /**
  8753. *
  8754. * @type {boolean}
  8755. * @memberof AssetApiSearchAssets
  8756. */
  8757. readonly withStacked?: boolean
  8758. /**
  8759. *
  8760. * @type {boolean}
  8761. * @memberof AssetApiSearchAssets
  8762. */
  8763. readonly withExif?: boolean
  8764. /**
  8765. *
  8766. * @type {boolean}
  8767. * @memberof AssetApiSearchAssets
  8768. */
  8769. readonly withPeople?: boolean
  8770. /**
  8771. *
  8772. * @type {string}
  8773. * @memberof AssetApiSearchAssets
  8774. */
  8775. readonly createdBefore?: string
  8776. /**
  8777. *
  8778. * @type {string}
  8779. * @memberof AssetApiSearchAssets
  8780. */
  8781. readonly createdAfter?: string
  8782. /**
  8783. *
  8784. * @type {string}
  8785. * @memberof AssetApiSearchAssets
  8786. */
  8787. readonly updatedBefore?: string
  8788. /**
  8789. *
  8790. * @type {string}
  8791. * @memberof AssetApiSearchAssets
  8792. */
  8793. readonly updatedAfter?: string
  8794. /**
  8795. *
  8796. * @type {string}
  8797. * @memberof AssetApiSearchAssets
  8798. */
  8799. readonly trashedBefore?: string
  8800. /**
  8801. *
  8802. * @type {string}
  8803. * @memberof AssetApiSearchAssets
  8804. */
  8805. readonly trashedAfter?: string
  8806. /**
  8807. *
  8808. * @type {string}
  8809. * @memberof AssetApiSearchAssets
  8810. */
  8811. readonly takenBefore?: string
  8812. /**
  8813. *
  8814. * @type {string}
  8815. * @memberof AssetApiSearchAssets
  8816. */
  8817. readonly takenAfter?: string
  8818. /**
  8819. *
  8820. * @type {string}
  8821. * @memberof AssetApiSearchAssets
  8822. */
  8823. readonly originalFileName?: string
  8824. /**
  8825. *
  8826. * @type {string}
  8827. * @memberof AssetApiSearchAssets
  8828. */
  8829. readonly originalPath?: string
  8830. /**
  8831. *
  8832. * @type {string}
  8833. * @memberof AssetApiSearchAssets
  8834. */
  8835. readonly resizePath?: string
  8836. /**
  8837. *
  8838. * @type {string}
  8839. * @memberof AssetApiSearchAssets
  8840. */
  8841. readonly webpPath?: string
  8842. /**
  8843. *
  8844. * @type {string}
  8845. * @memberof AssetApiSearchAssets
  8846. */
  8847. readonly encodedVideoPath?: string
  8848. /**
  8849. *
  8850. * @type {string}
  8851. * @memberof AssetApiSearchAssets
  8852. */
  8853. readonly city?: string
  8854. /**
  8855. *
  8856. * @type {string}
  8857. * @memberof AssetApiSearchAssets
  8858. */
  8859. readonly state?: string
  8860. /**
  8861. *
  8862. * @type {string}
  8863. * @memberof AssetApiSearchAssets
  8864. */
  8865. readonly country?: string
  8866. /**
  8867. *
  8868. * @type {string}
  8869. * @memberof AssetApiSearchAssets
  8870. */
  8871. readonly make?: string
  8872. /**
  8873. *
  8874. * @type {string}
  8875. * @memberof AssetApiSearchAssets
  8876. */
  8877. readonly model?: string
  8878. /**
  8879. *
  8880. * @type {string}
  8881. * @memberof AssetApiSearchAssets
  8882. */
  8883. readonly lensModel?: string
  8884. /**
  8885. *
  8886. * @type {number}
  8887. * @memberof AssetApiSearchAssets
  8888. */
  8889. readonly page?: number
  8890. /**
  8891. *
  8892. * @type {number}
  8893. * @memberof AssetApiSearchAssets
  8894. */
  8895. readonly size?: number
  8896. }
  8897. /**
  8898. * Request parameters for serveFile operation in AssetApi.
  8899. * @export
  8900. * @interface AssetApiServeFileRequest
  8901. */
  8902. export interface AssetApiServeFileRequest {
  8903. /**
  8904. *
  8905. * @type {string}
  8906. * @memberof AssetApiServeFile
  8907. */
  8908. readonly id: string
  8909. /**
  8910. *
  8911. * @type {boolean}
  8912. * @memberof AssetApiServeFile
  8913. */
  8914. readonly isThumb?: boolean
  8915. /**
  8916. *
  8917. * @type {boolean}
  8918. * @memberof AssetApiServeFile
  8919. */
  8920. readonly isWeb?: boolean
  8921. /**
  8922. *
  8923. * @type {string}
  8924. * @memberof AssetApiServeFile
  8925. */
  8926. readonly key?: string
  8927. }
  8928. /**
  8929. * Request parameters for updateAsset operation in AssetApi.
  8930. * @export
  8931. * @interface AssetApiUpdateAssetRequest
  8932. */
  8933. export interface AssetApiUpdateAssetRequest {
  8934. /**
  8935. *
  8936. * @type {string}
  8937. * @memberof AssetApiUpdateAsset
  8938. */
  8939. readonly id: string
  8940. /**
  8941. *
  8942. * @type {UpdateAssetDto}
  8943. * @memberof AssetApiUpdateAsset
  8944. */
  8945. readonly updateAssetDto: UpdateAssetDto
  8946. }
  8947. /**
  8948. * Request parameters for updateAssets operation in AssetApi.
  8949. * @export
  8950. * @interface AssetApiUpdateAssetsRequest
  8951. */
  8952. export interface AssetApiUpdateAssetsRequest {
  8953. /**
  8954. *
  8955. * @type {AssetBulkUpdateDto}
  8956. * @memberof AssetApiUpdateAssets
  8957. */
  8958. readonly assetBulkUpdateDto: AssetBulkUpdateDto
  8959. }
  8960. /**
  8961. * Request parameters for updateStackParent operation in AssetApi.
  8962. * @export
  8963. * @interface AssetApiUpdateStackParentRequest
  8964. */
  8965. export interface AssetApiUpdateStackParentRequest {
  8966. /**
  8967. *
  8968. * @type {UpdateStackParentDto}
  8969. * @memberof AssetApiUpdateStackParent
  8970. */
  8971. readonly updateStackParentDto: UpdateStackParentDto
  8972. }
  8973. /**
  8974. * Request parameters for uploadFile operation in AssetApi.
  8975. * @export
  8976. * @interface AssetApiUploadFileRequest
  8977. */
  8978. export interface AssetApiUploadFileRequest {
  8979. /**
  8980. *
  8981. * @type {File}
  8982. * @memberof AssetApiUploadFile
  8983. */
  8984. readonly assetData: File
  8985. /**
  8986. *
  8987. * @type {string}
  8988. * @memberof AssetApiUploadFile
  8989. */
  8990. readonly deviceAssetId: string
  8991. /**
  8992. *
  8993. * @type {string}
  8994. * @memberof AssetApiUploadFile
  8995. */
  8996. readonly deviceId: string
  8997. /**
  8998. *
  8999. * @type {string}
  9000. * @memberof AssetApiUploadFile
  9001. */
  9002. readonly fileCreatedAt: string
  9003. /**
  9004. *
  9005. * @type {string}
  9006. * @memberof AssetApiUploadFile
  9007. */
  9008. readonly fileModifiedAt: string
  9009. /**
  9010. *
  9011. * @type {string}
  9012. * @memberof AssetApiUploadFile
  9013. */
  9014. readonly key?: string
  9015. /**
  9016. *
  9017. * @type {string}
  9018. * @memberof AssetApiUploadFile
  9019. */
  9020. readonly duration?: string
  9021. /**
  9022. *
  9023. * @type {boolean}
  9024. * @memberof AssetApiUploadFile
  9025. */
  9026. readonly isArchived?: boolean
  9027. /**
  9028. *
  9029. * @type {boolean}
  9030. * @memberof AssetApiUploadFile
  9031. */
  9032. readonly isExternal?: boolean
  9033. /**
  9034. *
  9035. * @type {boolean}
  9036. * @memberof AssetApiUploadFile
  9037. */
  9038. readonly isFavorite?: boolean
  9039. /**
  9040. *
  9041. * @type {boolean}
  9042. * @memberof AssetApiUploadFile
  9043. */
  9044. readonly isOffline?: boolean
  9045. /**
  9046. *
  9047. * @type {boolean}
  9048. * @memberof AssetApiUploadFile
  9049. */
  9050. readonly isReadOnly?: boolean
  9051. /**
  9052. *
  9053. * @type {boolean}
  9054. * @memberof AssetApiUploadFile
  9055. */
  9056. readonly isVisible?: boolean
  9057. /**
  9058. *
  9059. * @type {string}
  9060. * @memberof AssetApiUploadFile
  9061. */
  9062. readonly libraryId?: string
  9063. /**
  9064. *
  9065. * @type {File}
  9066. * @memberof AssetApiUploadFile
  9067. */
  9068. readonly livePhotoData?: File
  9069. /**
  9070. *
  9071. * @type {File}
  9072. * @memberof AssetApiUploadFile
  9073. */
  9074. readonly sidecarData?: File
  9075. }
  9076. /**
  9077. * AssetApi - object-oriented interface
  9078. * @export
  9079. * @class AssetApi
  9080. * @extends {BaseAPI}
  9081. */
  9082. export class AssetApi extends BaseAPI {
  9083. /**
  9084. * Checks if assets exist by checksums
  9085. * @param {AssetApiCheckBulkUploadRequest} requestParameters Request parameters.
  9086. * @param {*} [options] Override http request option.
  9087. * @throws {RequiredError}
  9088. * @memberof AssetApi
  9089. */
  9090. public checkBulkUpload(requestParameters: AssetApiCheckBulkUploadRequest, options?: AxiosRequestConfig) {
  9091. return AssetApiFp(this.configuration).checkBulkUpload(requestParameters.assetBulkUploadCheckDto, options).then((request) => request(this.axios, this.basePath));
  9092. }
  9093. /**
  9094. * Checks if multiple assets exist on the server and returns all existing - used by background backup
  9095. * @param {AssetApiCheckExistingAssetsRequest} requestParameters Request parameters.
  9096. * @param {*} [options] Override http request option.
  9097. * @throws {RequiredError}
  9098. * @memberof AssetApi
  9099. */
  9100. public checkExistingAssets(requestParameters: AssetApiCheckExistingAssetsRequest, options?: AxiosRequestConfig) {
  9101. return AssetApiFp(this.configuration).checkExistingAssets(requestParameters.checkExistingAssetsDto, options).then((request) => request(this.axios, this.basePath));
  9102. }
  9103. /**
  9104. *
  9105. * @param {AssetApiDeleteAssetsRequest} requestParameters Request parameters.
  9106. * @param {*} [options] Override http request option.
  9107. * @throws {RequiredError}
  9108. * @memberof AssetApi
  9109. */
  9110. public deleteAssets(requestParameters: AssetApiDeleteAssetsRequest, options?: AxiosRequestConfig) {
  9111. return AssetApiFp(this.configuration).deleteAssets(requestParameters.assetBulkDeleteDto, options).then((request) => request(this.axios, this.basePath));
  9112. }
  9113. /**
  9114. *
  9115. * @param {AssetApiDownloadArchiveRequest} requestParameters Request parameters.
  9116. * @param {*} [options] Override http request option.
  9117. * @throws {RequiredError}
  9118. * @memberof AssetApi
  9119. */
  9120. public downloadArchive(requestParameters: AssetApiDownloadArchiveRequest, options?: AxiosRequestConfig) {
  9121. return AssetApiFp(this.configuration).downloadArchive(requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  9122. }
  9123. /**
  9124. *
  9125. * @param {AssetApiDownloadFileRequest} requestParameters Request parameters.
  9126. * @param {*} [options] Override http request option.
  9127. * @throws {RequiredError}
  9128. * @memberof AssetApi
  9129. */
  9130. public downloadFile(requestParameters: AssetApiDownloadFileRequest, options?: AxiosRequestConfig) {
  9131. return AssetApiFp(this.configuration).downloadFile(requestParameters.id, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  9132. }
  9133. /**
  9134. *
  9135. * @param {*} [options] Override http request option.
  9136. * @throws {RequiredError}
  9137. * @memberof AssetApi
  9138. */
  9139. public emptyTrash(options?: AxiosRequestConfig) {
  9140. return AssetApiFp(this.configuration).emptyTrash(options).then((request) => request(this.axios, this.basePath));
  9141. }
  9142. /**
  9143. * Get all AssetEntity belong to the user
  9144. * @param {AssetApiGetAllAssetsRequest} requestParameters Request parameters.
  9145. * @param {*} [options] Override http request option.
  9146. * @throws {RequiredError}
  9147. * @memberof AssetApi
  9148. */
  9149. public getAllAssets(requestParameters: AssetApiGetAllAssetsRequest = {}, options?: AxiosRequestConfig) {
  9150. return AssetApiFp(this.configuration).getAllAssets(requestParameters.skip, requestParameters.take, requestParameters.userId, requestParameters.isFavorite, requestParameters.isArchived, requestParameters.updatedAfter, requestParameters.updatedBefore, requestParameters.ifNoneMatch, options).then((request) => request(this.axios, this.basePath));
  9151. }
  9152. /**
  9153. * Get all asset of a device that are in the database, ID only.
  9154. * @param {AssetApiGetAllUserAssetsByDeviceIdRequest} requestParameters Request parameters.
  9155. * @param {*} [options] Override http request option.
  9156. * @throws {RequiredError}
  9157. * @memberof AssetApi
  9158. */
  9159. public getAllUserAssetsByDeviceId(requestParameters: AssetApiGetAllUserAssetsByDeviceIdRequest, options?: AxiosRequestConfig) {
  9160. return AssetApiFp(this.configuration).getAllUserAssetsByDeviceId(requestParameters.deviceId, options).then((request) => request(this.axios, this.basePath));
  9161. }
  9162. /**
  9163. * Get a single asset\'s information
  9164. * @param {AssetApiGetAssetByIdRequest} requestParameters Request parameters.
  9165. * @param {*} [options] Override http request option.
  9166. * @throws {RequiredError}
  9167. * @memberof AssetApi
  9168. */
  9169. public getAssetById(requestParameters: AssetApiGetAssetByIdRequest, options?: AxiosRequestConfig) {
  9170. return AssetApiFp(this.configuration).getAssetById(requestParameters.id, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  9171. }
  9172. /**
  9173. *
  9174. * @param {*} [options] Override http request option.
  9175. * @throws {RequiredError}
  9176. * @memberof AssetApi
  9177. */
  9178. public getAssetSearchTerms(options?: AxiosRequestConfig) {
  9179. return AssetApiFp(this.configuration).getAssetSearchTerms(options).then((request) => request(this.axios, this.basePath));
  9180. }
  9181. /**
  9182. *
  9183. * @param {AssetApiGetAssetStatisticsRequest} requestParameters Request parameters.
  9184. * @param {*} [options] Override http request option.
  9185. * @throws {RequiredError}
  9186. * @memberof AssetApi
  9187. */
  9188. public getAssetStatistics(requestParameters: AssetApiGetAssetStatisticsRequest = {}, options?: AxiosRequestConfig) {
  9189. return AssetApiFp(this.configuration).getAssetStatistics(requestParameters.isArchived, requestParameters.isFavorite, requestParameters.isTrashed, options).then((request) => request(this.axios, this.basePath));
  9190. }
  9191. /**
  9192. *
  9193. * @param {AssetApiGetAssetThumbnailRequest} requestParameters Request parameters.
  9194. * @param {*} [options] Override http request option.
  9195. * @throws {RequiredError}
  9196. * @memberof AssetApi
  9197. */
  9198. public getAssetThumbnail(requestParameters: AssetApiGetAssetThumbnailRequest, options?: AxiosRequestConfig) {
  9199. return AssetApiFp(this.configuration).getAssetThumbnail(requestParameters.id, requestParameters.format, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  9200. }
  9201. /**
  9202. *
  9203. * @param {*} [options] Override http request option.
  9204. * @throws {RequiredError}
  9205. * @memberof AssetApi
  9206. */
  9207. public getCuratedLocations(options?: AxiosRequestConfig) {
  9208. return AssetApiFp(this.configuration).getCuratedLocations(options).then((request) => request(this.axios, this.basePath));
  9209. }
  9210. /**
  9211. *
  9212. * @param {*} [options] Override http request option.
  9213. * @throws {RequiredError}
  9214. * @memberof AssetApi
  9215. */
  9216. public getCuratedObjects(options?: AxiosRequestConfig) {
  9217. return AssetApiFp(this.configuration).getCuratedObjects(options).then((request) => request(this.axios, this.basePath));
  9218. }
  9219. /**
  9220. *
  9221. * @param {AssetApiGetDownloadInfoRequest} requestParameters Request parameters.
  9222. * @param {*} [options] Override http request option.
  9223. * @throws {RequiredError}
  9224. * @memberof AssetApi
  9225. */
  9226. public getDownloadInfo(requestParameters: AssetApiGetDownloadInfoRequest, options?: AxiosRequestConfig) {
  9227. return AssetApiFp(this.configuration).getDownloadInfo(requestParameters.downloadInfoDto, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  9228. }
  9229. /**
  9230. *
  9231. * @param {AssetApiGetMapMarkersRequest} requestParameters Request parameters.
  9232. * @param {*} [options] Override http request option.
  9233. * @throws {RequiredError}
  9234. * @memberof AssetApi
  9235. */
  9236. public getMapMarkers(requestParameters: AssetApiGetMapMarkersRequest = {}, options?: AxiosRequestConfig) {
  9237. return AssetApiFp(this.configuration).getMapMarkers(requestParameters.isArchived, requestParameters.isFavorite, requestParameters.fileCreatedAfter, requestParameters.fileCreatedBefore, options).then((request) => request(this.axios, this.basePath));
  9238. }
  9239. /**
  9240. *
  9241. * @param {AssetApiGetMemoryLaneRequest} requestParameters Request parameters.
  9242. * @param {*} [options] Override http request option.
  9243. * @throws {RequiredError}
  9244. * @memberof AssetApi
  9245. */
  9246. public getMemoryLane(requestParameters: AssetApiGetMemoryLaneRequest, options?: AxiosRequestConfig) {
  9247. return AssetApiFp(this.configuration).getMemoryLane(requestParameters.day, requestParameters.month, options).then((request) => request(this.axios, this.basePath));
  9248. }
  9249. /**
  9250. *
  9251. * @param {AssetApiGetRandomRequest} requestParameters Request parameters.
  9252. * @param {*} [options] Override http request option.
  9253. * @throws {RequiredError}
  9254. * @memberof AssetApi
  9255. */
  9256. public getRandom(requestParameters: AssetApiGetRandomRequest = {}, options?: AxiosRequestConfig) {
  9257. return AssetApiFp(this.configuration).getRandom(requestParameters.count, options).then((request) => request(this.axios, this.basePath));
  9258. }
  9259. /**
  9260. *
  9261. * @param {AssetApiGetTimeBucketRequest} requestParameters Request parameters.
  9262. * @param {*} [options] Override http request option.
  9263. * @throws {RequiredError}
  9264. * @memberof AssetApi
  9265. */
  9266. public getTimeBucket(requestParameters: AssetApiGetTimeBucketRequest, options?: AxiosRequestConfig) {
  9267. return AssetApiFp(this.configuration).getTimeBucket(requestParameters.size, requestParameters.timeBucket, requestParameters.userId, requestParameters.albumId, requestParameters.personId, requestParameters.isArchived, requestParameters.isFavorite, requestParameters.isTrashed, requestParameters.withStacked, requestParameters.withPartners, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  9268. }
  9269. /**
  9270. *
  9271. * @param {AssetApiGetTimeBucketsRequest} requestParameters Request parameters.
  9272. * @param {*} [options] Override http request option.
  9273. * @throws {RequiredError}
  9274. * @memberof AssetApi
  9275. */
  9276. public getTimeBuckets(requestParameters: AssetApiGetTimeBucketsRequest, options?: AxiosRequestConfig) {
  9277. return AssetApiFp(this.configuration).getTimeBuckets(requestParameters.size, requestParameters.userId, requestParameters.albumId, requestParameters.personId, requestParameters.isArchived, requestParameters.isFavorite, requestParameters.isTrashed, requestParameters.withStacked, requestParameters.withPartners, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  9278. }
  9279. /**
  9280. *
  9281. * @summary Use /asset/device/:deviceId instead - Remove in 1.92 release
  9282. * @param {AssetApiGetUserAssetsByDeviceIdRequest} requestParameters Request parameters.
  9283. * @param {*} [options] Override http request option.
  9284. * @deprecated
  9285. * @throws {RequiredError}
  9286. * @memberof AssetApi
  9287. */
  9288. public getUserAssetsByDeviceId(requestParameters: AssetApiGetUserAssetsByDeviceIdRequest, options?: AxiosRequestConfig) {
  9289. return AssetApiFp(this.configuration).getUserAssetsByDeviceId(requestParameters.deviceId, options).then((request) => request(this.axios, this.basePath));
  9290. }
  9291. /**
  9292. *
  9293. * @param {AssetApiRestoreAssetsRequest} requestParameters Request parameters.
  9294. * @param {*} [options] Override http request option.
  9295. * @throws {RequiredError}
  9296. * @memberof AssetApi
  9297. */
  9298. public restoreAssets(requestParameters: AssetApiRestoreAssetsRequest, options?: AxiosRequestConfig) {
  9299. return AssetApiFp(this.configuration).restoreAssets(requestParameters.bulkIdsDto, options).then((request) => request(this.axios, this.basePath));
  9300. }
  9301. /**
  9302. *
  9303. * @param {*} [options] Override http request option.
  9304. * @throws {RequiredError}
  9305. * @memberof AssetApi
  9306. */
  9307. public restoreTrash(options?: AxiosRequestConfig) {
  9308. return AssetApiFp(this.configuration).restoreTrash(options).then((request) => request(this.axios, this.basePath));
  9309. }
  9310. /**
  9311. *
  9312. * @param {AssetApiRunAssetJobsRequest} requestParameters Request parameters.
  9313. * @param {*} [options] Override http request option.
  9314. * @throws {RequiredError}
  9315. * @memberof AssetApi
  9316. */
  9317. public runAssetJobs(requestParameters: AssetApiRunAssetJobsRequest, options?: AxiosRequestConfig) {
  9318. return AssetApiFp(this.configuration).runAssetJobs(requestParameters.assetJobsDto, options).then((request) => request(this.axios, this.basePath));
  9319. }
  9320. /**
  9321. *
  9322. * @param {AssetApiSearchAssetsRequest} requestParameters Request parameters.
  9323. * @param {*} [options] Override http request option.
  9324. * @throws {RequiredError}
  9325. * @memberof AssetApi
  9326. */
  9327. public searchAssets(requestParameters: AssetApiSearchAssetsRequest = {}, options?: AxiosRequestConfig) {
  9328. return AssetApiFp(this.configuration).searchAssets(requestParameters.id, requestParameters.libraryId, requestParameters.type, requestParameters.order, requestParameters.deviceAssetId, requestParameters.deviceId, requestParameters.checksum, requestParameters.isArchived, requestParameters.isEncoded, requestParameters.isExternal, requestParameters.isFavorite, requestParameters.isMotion, requestParameters.isOffline, requestParameters.isReadOnly, requestParameters.isVisible, requestParameters.withDeleted, requestParameters.withStacked, requestParameters.withExif, requestParameters.withPeople, requestParameters.createdBefore, requestParameters.createdAfter, requestParameters.updatedBefore, requestParameters.updatedAfter, requestParameters.trashedBefore, requestParameters.trashedAfter, requestParameters.takenBefore, requestParameters.takenAfter, requestParameters.originalFileName, requestParameters.originalPath, requestParameters.resizePath, requestParameters.webpPath, requestParameters.encodedVideoPath, requestParameters.city, requestParameters.state, requestParameters.country, requestParameters.make, requestParameters.model, requestParameters.lensModel, requestParameters.page, requestParameters.size, options).then((request) => request(this.axios, this.basePath));
  9329. }
  9330. /**
  9331. *
  9332. * @param {AssetApiServeFileRequest} requestParameters Request parameters.
  9333. * @param {*} [options] Override http request option.
  9334. * @throws {RequiredError}
  9335. * @memberof AssetApi
  9336. */
  9337. public serveFile(requestParameters: AssetApiServeFileRequest, options?: AxiosRequestConfig) {
  9338. return AssetApiFp(this.configuration).serveFile(requestParameters.id, requestParameters.isThumb, requestParameters.isWeb, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  9339. }
  9340. /**
  9341. *
  9342. * @param {AssetApiUpdateAssetRequest} requestParameters Request parameters.
  9343. * @param {*} [options] Override http request option.
  9344. * @throws {RequiredError}
  9345. * @memberof AssetApi
  9346. */
  9347. public updateAsset(requestParameters: AssetApiUpdateAssetRequest, options?: AxiosRequestConfig) {
  9348. return AssetApiFp(this.configuration).updateAsset(requestParameters.id, requestParameters.updateAssetDto, options).then((request) => request(this.axios, this.basePath));
  9349. }
  9350. /**
  9351. *
  9352. * @param {AssetApiUpdateAssetsRequest} requestParameters Request parameters.
  9353. * @param {*} [options] Override http request option.
  9354. * @throws {RequiredError}
  9355. * @memberof AssetApi
  9356. */
  9357. public updateAssets(requestParameters: AssetApiUpdateAssetsRequest, options?: AxiosRequestConfig) {
  9358. return AssetApiFp(this.configuration).updateAssets(requestParameters.assetBulkUpdateDto, options).then((request) => request(this.axios, this.basePath));
  9359. }
  9360. /**
  9361. *
  9362. * @param {AssetApiUpdateStackParentRequest} requestParameters Request parameters.
  9363. * @param {*} [options] Override http request option.
  9364. * @throws {RequiredError}
  9365. * @memberof AssetApi
  9366. */
  9367. public updateStackParent(requestParameters: AssetApiUpdateStackParentRequest, options?: AxiosRequestConfig) {
  9368. return AssetApiFp(this.configuration).updateStackParent(requestParameters.updateStackParentDto, options).then((request) => request(this.axios, this.basePath));
  9369. }
  9370. /**
  9371. *
  9372. * @param {AssetApiUploadFileRequest} requestParameters Request parameters.
  9373. * @param {*} [options] Override http request option.
  9374. * @throws {RequiredError}
  9375. * @memberof AssetApi
  9376. */
  9377. public uploadFile(requestParameters: AssetApiUploadFileRequest, options?: AxiosRequestConfig) {
  9378. return AssetApiFp(this.configuration).uploadFile(requestParameters.assetData, requestParameters.deviceAssetId, requestParameters.deviceId, requestParameters.fileCreatedAt, requestParameters.fileModifiedAt, requestParameters.key, requestParameters.duration, requestParameters.isArchived, requestParameters.isExternal, requestParameters.isFavorite, requestParameters.isOffline, requestParameters.isReadOnly, requestParameters.isVisible, requestParameters.libraryId, requestParameters.livePhotoData, requestParameters.sidecarData, options).then((request) => request(this.axios, this.basePath));
  9379. }
  9380. }
  9381. /**
  9382. * AuditApi - axios parameter creator
  9383. * @export
  9384. */
  9385. export const AuditApiAxiosParamCreator = function (configuration?: Configuration) {
  9386. return {
  9387. /**
  9388. *
  9389. * @param {FileReportFixDto} fileReportFixDto
  9390. * @param {*} [options] Override http request option.
  9391. * @throws {RequiredError}
  9392. */
  9393. fixAuditFiles: async (fileReportFixDto: FileReportFixDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9394. // verify required parameter 'fileReportFixDto' is not null or undefined
  9395. assertParamExists('fixAuditFiles', 'fileReportFixDto', fileReportFixDto)
  9396. const localVarPath = `/audit/file-report/fix`;
  9397. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9398. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9399. let baseOptions;
  9400. if (configuration) {
  9401. baseOptions = configuration.baseOptions;
  9402. }
  9403. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  9404. const localVarHeaderParameter = {} as any;
  9405. const localVarQueryParameter = {} as any;
  9406. // authentication cookie required
  9407. // authentication api_key required
  9408. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9409. // authentication bearer required
  9410. // http bearer authentication required
  9411. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9412. localVarHeaderParameter['Content-Type'] = 'application/json';
  9413. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9414. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9415. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9416. localVarRequestOptions.data = serializeDataIfNeeded(fileReportFixDto, localVarRequestOptions, configuration)
  9417. return {
  9418. url: toPathString(localVarUrlObj),
  9419. options: localVarRequestOptions,
  9420. };
  9421. },
  9422. /**
  9423. *
  9424. * @param {EntityType} entityType
  9425. * @param {string} after
  9426. * @param {string} [userId]
  9427. * @param {*} [options] Override http request option.
  9428. * @throws {RequiredError}
  9429. */
  9430. getAuditDeletes: async (entityType: EntityType, after: string, userId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9431. // verify required parameter 'entityType' is not null or undefined
  9432. assertParamExists('getAuditDeletes', 'entityType', entityType)
  9433. // verify required parameter 'after' is not null or undefined
  9434. assertParamExists('getAuditDeletes', 'after', after)
  9435. const localVarPath = `/audit/deletes`;
  9436. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9437. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9438. let baseOptions;
  9439. if (configuration) {
  9440. baseOptions = configuration.baseOptions;
  9441. }
  9442. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  9443. const localVarHeaderParameter = {} as any;
  9444. const localVarQueryParameter = {} as any;
  9445. // authentication cookie required
  9446. // authentication api_key required
  9447. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9448. // authentication bearer required
  9449. // http bearer authentication required
  9450. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9451. if (entityType !== undefined) {
  9452. localVarQueryParameter['entityType'] = entityType;
  9453. }
  9454. if (userId !== undefined) {
  9455. localVarQueryParameter['userId'] = userId;
  9456. }
  9457. if (after !== undefined) {
  9458. localVarQueryParameter['after'] = (after as any instanceof Date) ?
  9459. (after as any).toISOString() :
  9460. after;
  9461. }
  9462. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9463. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9464. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9465. return {
  9466. url: toPathString(localVarUrlObj),
  9467. options: localVarRequestOptions,
  9468. };
  9469. },
  9470. /**
  9471. *
  9472. * @param {*} [options] Override http request option.
  9473. * @throws {RequiredError}
  9474. */
  9475. getAuditFiles: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9476. const localVarPath = `/audit/file-report`;
  9477. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9478. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9479. let baseOptions;
  9480. if (configuration) {
  9481. baseOptions = configuration.baseOptions;
  9482. }
  9483. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  9484. const localVarHeaderParameter = {} as any;
  9485. const localVarQueryParameter = {} as any;
  9486. // authentication cookie required
  9487. // authentication api_key required
  9488. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9489. // authentication bearer required
  9490. // http bearer authentication required
  9491. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9492. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9493. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9494. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9495. return {
  9496. url: toPathString(localVarUrlObj),
  9497. options: localVarRequestOptions,
  9498. };
  9499. },
  9500. /**
  9501. *
  9502. * @param {FileChecksumDto} fileChecksumDto
  9503. * @param {*} [options] Override http request option.
  9504. * @throws {RequiredError}
  9505. */
  9506. getFileChecksums: async (fileChecksumDto: FileChecksumDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9507. // verify required parameter 'fileChecksumDto' is not null or undefined
  9508. assertParamExists('getFileChecksums', 'fileChecksumDto', fileChecksumDto)
  9509. const localVarPath = `/audit/file-report/checksum`;
  9510. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9511. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9512. let baseOptions;
  9513. if (configuration) {
  9514. baseOptions = configuration.baseOptions;
  9515. }
  9516. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  9517. const localVarHeaderParameter = {} as any;
  9518. const localVarQueryParameter = {} as any;
  9519. // authentication cookie required
  9520. // authentication api_key required
  9521. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9522. // authentication bearer required
  9523. // http bearer authentication required
  9524. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9525. localVarHeaderParameter['Content-Type'] = 'application/json';
  9526. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9527. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9528. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9529. localVarRequestOptions.data = serializeDataIfNeeded(fileChecksumDto, localVarRequestOptions, configuration)
  9530. return {
  9531. url: toPathString(localVarUrlObj),
  9532. options: localVarRequestOptions,
  9533. };
  9534. },
  9535. }
  9536. };
  9537. /**
  9538. * AuditApi - functional programming interface
  9539. * @export
  9540. */
  9541. export const AuditApiFp = function(configuration?: Configuration) {
  9542. const localVarAxiosParamCreator = AuditApiAxiosParamCreator(configuration)
  9543. return {
  9544. /**
  9545. *
  9546. * @param {FileReportFixDto} fileReportFixDto
  9547. * @param {*} [options] Override http request option.
  9548. * @throws {RequiredError}
  9549. */
  9550. async fixAuditFiles(fileReportFixDto: FileReportFixDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  9551. const localVarAxiosArgs = await localVarAxiosParamCreator.fixAuditFiles(fileReportFixDto, options);
  9552. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9553. },
  9554. /**
  9555. *
  9556. * @param {EntityType} entityType
  9557. * @param {string} after
  9558. * @param {string} [userId]
  9559. * @param {*} [options] Override http request option.
  9560. * @throws {RequiredError}
  9561. */
  9562. async getAuditDeletes(entityType: EntityType, after: string, userId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuditDeletesResponseDto>> {
  9563. const localVarAxiosArgs = await localVarAxiosParamCreator.getAuditDeletes(entityType, after, userId, options);
  9564. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9565. },
  9566. /**
  9567. *
  9568. * @param {*} [options] Override http request option.
  9569. * @throws {RequiredError}
  9570. */
  9571. async getAuditFiles(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FileReportDto>> {
  9572. const localVarAxiosArgs = await localVarAxiosParamCreator.getAuditFiles(options);
  9573. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9574. },
  9575. /**
  9576. *
  9577. * @param {FileChecksumDto} fileChecksumDto
  9578. * @param {*} [options] Override http request option.
  9579. * @throws {RequiredError}
  9580. */
  9581. async getFileChecksums(fileChecksumDto: FileChecksumDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<FileChecksumResponseDto>>> {
  9582. const localVarAxiosArgs = await localVarAxiosParamCreator.getFileChecksums(fileChecksumDto, options);
  9583. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9584. },
  9585. }
  9586. };
  9587. /**
  9588. * AuditApi - factory interface
  9589. * @export
  9590. */
  9591. export const AuditApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  9592. const localVarFp = AuditApiFp(configuration)
  9593. return {
  9594. /**
  9595. *
  9596. * @param {AuditApiFixAuditFilesRequest} requestParameters Request parameters.
  9597. * @param {*} [options] Override http request option.
  9598. * @throws {RequiredError}
  9599. */
  9600. fixAuditFiles(requestParameters: AuditApiFixAuditFilesRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  9601. return localVarFp.fixAuditFiles(requestParameters.fileReportFixDto, options).then((request) => request(axios, basePath));
  9602. },
  9603. /**
  9604. *
  9605. * @param {AuditApiGetAuditDeletesRequest} requestParameters Request parameters.
  9606. * @param {*} [options] Override http request option.
  9607. * @throws {RequiredError}
  9608. */
  9609. getAuditDeletes(requestParameters: AuditApiGetAuditDeletesRequest, options?: AxiosRequestConfig): AxiosPromise<AuditDeletesResponseDto> {
  9610. return localVarFp.getAuditDeletes(requestParameters.entityType, requestParameters.after, requestParameters.userId, options).then((request) => request(axios, basePath));
  9611. },
  9612. /**
  9613. *
  9614. * @param {*} [options] Override http request option.
  9615. * @throws {RequiredError}
  9616. */
  9617. getAuditFiles(options?: AxiosRequestConfig): AxiosPromise<FileReportDto> {
  9618. return localVarFp.getAuditFiles(options).then((request) => request(axios, basePath));
  9619. },
  9620. /**
  9621. *
  9622. * @param {AuditApiGetFileChecksumsRequest} requestParameters Request parameters.
  9623. * @param {*} [options] Override http request option.
  9624. * @throws {RequiredError}
  9625. */
  9626. getFileChecksums(requestParameters: AuditApiGetFileChecksumsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<FileChecksumResponseDto>> {
  9627. return localVarFp.getFileChecksums(requestParameters.fileChecksumDto, options).then((request) => request(axios, basePath));
  9628. },
  9629. };
  9630. };
  9631. /**
  9632. * Request parameters for fixAuditFiles operation in AuditApi.
  9633. * @export
  9634. * @interface AuditApiFixAuditFilesRequest
  9635. */
  9636. export interface AuditApiFixAuditFilesRequest {
  9637. /**
  9638. *
  9639. * @type {FileReportFixDto}
  9640. * @memberof AuditApiFixAuditFiles
  9641. */
  9642. readonly fileReportFixDto: FileReportFixDto
  9643. }
  9644. /**
  9645. * Request parameters for getAuditDeletes operation in AuditApi.
  9646. * @export
  9647. * @interface AuditApiGetAuditDeletesRequest
  9648. */
  9649. export interface AuditApiGetAuditDeletesRequest {
  9650. /**
  9651. *
  9652. * @type {EntityType}
  9653. * @memberof AuditApiGetAuditDeletes
  9654. */
  9655. readonly entityType: EntityType
  9656. /**
  9657. *
  9658. * @type {string}
  9659. * @memberof AuditApiGetAuditDeletes
  9660. */
  9661. readonly after: string
  9662. /**
  9663. *
  9664. * @type {string}
  9665. * @memberof AuditApiGetAuditDeletes
  9666. */
  9667. readonly userId?: string
  9668. }
  9669. /**
  9670. * Request parameters for getFileChecksums operation in AuditApi.
  9671. * @export
  9672. * @interface AuditApiGetFileChecksumsRequest
  9673. */
  9674. export interface AuditApiGetFileChecksumsRequest {
  9675. /**
  9676. *
  9677. * @type {FileChecksumDto}
  9678. * @memberof AuditApiGetFileChecksums
  9679. */
  9680. readonly fileChecksumDto: FileChecksumDto
  9681. }
  9682. /**
  9683. * AuditApi - object-oriented interface
  9684. * @export
  9685. * @class AuditApi
  9686. * @extends {BaseAPI}
  9687. */
  9688. export class AuditApi extends BaseAPI {
  9689. /**
  9690. *
  9691. * @param {AuditApiFixAuditFilesRequest} requestParameters Request parameters.
  9692. * @param {*} [options] Override http request option.
  9693. * @throws {RequiredError}
  9694. * @memberof AuditApi
  9695. */
  9696. public fixAuditFiles(requestParameters: AuditApiFixAuditFilesRequest, options?: AxiosRequestConfig) {
  9697. return AuditApiFp(this.configuration).fixAuditFiles(requestParameters.fileReportFixDto, options).then((request) => request(this.axios, this.basePath));
  9698. }
  9699. /**
  9700. *
  9701. * @param {AuditApiGetAuditDeletesRequest} requestParameters Request parameters.
  9702. * @param {*} [options] Override http request option.
  9703. * @throws {RequiredError}
  9704. * @memberof AuditApi
  9705. */
  9706. public getAuditDeletes(requestParameters: AuditApiGetAuditDeletesRequest, options?: AxiosRequestConfig) {
  9707. return AuditApiFp(this.configuration).getAuditDeletes(requestParameters.entityType, requestParameters.after, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
  9708. }
  9709. /**
  9710. *
  9711. * @param {*} [options] Override http request option.
  9712. * @throws {RequiredError}
  9713. * @memberof AuditApi
  9714. */
  9715. public getAuditFiles(options?: AxiosRequestConfig) {
  9716. return AuditApiFp(this.configuration).getAuditFiles(options).then((request) => request(this.axios, this.basePath));
  9717. }
  9718. /**
  9719. *
  9720. * @param {AuditApiGetFileChecksumsRequest} requestParameters Request parameters.
  9721. * @param {*} [options] Override http request option.
  9722. * @throws {RequiredError}
  9723. * @memberof AuditApi
  9724. */
  9725. public getFileChecksums(requestParameters: AuditApiGetFileChecksumsRequest, options?: AxiosRequestConfig) {
  9726. return AuditApiFp(this.configuration).getFileChecksums(requestParameters.fileChecksumDto, options).then((request) => request(this.axios, this.basePath));
  9727. }
  9728. }
  9729. /**
  9730. * AuthenticationApi - axios parameter creator
  9731. * @export
  9732. */
  9733. export const AuthenticationApiAxiosParamCreator = function (configuration?: Configuration) {
  9734. return {
  9735. /**
  9736. *
  9737. * @param {ChangePasswordDto} changePasswordDto
  9738. * @param {*} [options] Override http request option.
  9739. * @throws {RequiredError}
  9740. */
  9741. changePassword: async (changePasswordDto: ChangePasswordDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9742. // verify required parameter 'changePasswordDto' is not null or undefined
  9743. assertParamExists('changePassword', 'changePasswordDto', changePasswordDto)
  9744. const localVarPath = `/auth/change-password`;
  9745. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9746. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9747. let baseOptions;
  9748. if (configuration) {
  9749. baseOptions = configuration.baseOptions;
  9750. }
  9751. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  9752. const localVarHeaderParameter = {} as any;
  9753. const localVarQueryParameter = {} as any;
  9754. // authentication cookie required
  9755. // authentication api_key required
  9756. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9757. // authentication bearer required
  9758. // http bearer authentication required
  9759. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9760. localVarHeaderParameter['Content-Type'] = 'application/json';
  9761. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9762. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9763. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9764. localVarRequestOptions.data = serializeDataIfNeeded(changePasswordDto, localVarRequestOptions, configuration)
  9765. return {
  9766. url: toPathString(localVarUrlObj),
  9767. options: localVarRequestOptions,
  9768. };
  9769. },
  9770. /**
  9771. *
  9772. * @param {*} [options] Override http request option.
  9773. * @throws {RequiredError}
  9774. */
  9775. getAuthDevices: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9776. const localVarPath = `/auth/devices`;
  9777. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9778. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9779. let baseOptions;
  9780. if (configuration) {
  9781. baseOptions = configuration.baseOptions;
  9782. }
  9783. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  9784. const localVarHeaderParameter = {} as any;
  9785. const localVarQueryParameter = {} as any;
  9786. // authentication cookie required
  9787. // authentication api_key required
  9788. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9789. // authentication bearer required
  9790. // http bearer authentication required
  9791. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9792. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9793. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9794. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9795. return {
  9796. url: toPathString(localVarUrlObj),
  9797. options: localVarRequestOptions,
  9798. };
  9799. },
  9800. /**
  9801. *
  9802. * @param {LoginCredentialDto} loginCredentialDto
  9803. * @param {*} [options] Override http request option.
  9804. * @throws {RequiredError}
  9805. */
  9806. login: async (loginCredentialDto: LoginCredentialDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9807. // verify required parameter 'loginCredentialDto' is not null or undefined
  9808. assertParamExists('login', 'loginCredentialDto', loginCredentialDto)
  9809. const localVarPath = `/auth/login`;
  9810. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9811. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9812. let baseOptions;
  9813. if (configuration) {
  9814. baseOptions = configuration.baseOptions;
  9815. }
  9816. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  9817. const localVarHeaderParameter = {} as any;
  9818. const localVarQueryParameter = {} as any;
  9819. localVarHeaderParameter['Content-Type'] = 'application/json';
  9820. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9821. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9822. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9823. localVarRequestOptions.data = serializeDataIfNeeded(loginCredentialDto, localVarRequestOptions, configuration)
  9824. return {
  9825. url: toPathString(localVarUrlObj),
  9826. options: localVarRequestOptions,
  9827. };
  9828. },
  9829. /**
  9830. *
  9831. * @param {*} [options] Override http request option.
  9832. * @throws {RequiredError}
  9833. */
  9834. logout: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9835. const localVarPath = `/auth/logout`;
  9836. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9837. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9838. let baseOptions;
  9839. if (configuration) {
  9840. baseOptions = configuration.baseOptions;
  9841. }
  9842. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  9843. const localVarHeaderParameter = {} as any;
  9844. const localVarQueryParameter = {} as any;
  9845. // authentication cookie required
  9846. // authentication api_key required
  9847. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9848. // authentication bearer required
  9849. // http bearer authentication required
  9850. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9851. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9852. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9853. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9854. return {
  9855. url: toPathString(localVarUrlObj),
  9856. options: localVarRequestOptions,
  9857. };
  9858. },
  9859. /**
  9860. *
  9861. * @param {string} id
  9862. * @param {*} [options] Override http request option.
  9863. * @throws {RequiredError}
  9864. */
  9865. logoutAuthDevice: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9866. // verify required parameter 'id' is not null or undefined
  9867. assertParamExists('logoutAuthDevice', 'id', id)
  9868. const localVarPath = `/auth/devices/{id}`
  9869. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  9870. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9871. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9872. let baseOptions;
  9873. if (configuration) {
  9874. baseOptions = configuration.baseOptions;
  9875. }
  9876. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  9877. const localVarHeaderParameter = {} as any;
  9878. const localVarQueryParameter = {} as any;
  9879. // authentication cookie required
  9880. // authentication api_key required
  9881. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9882. // authentication bearer required
  9883. // http bearer authentication required
  9884. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9885. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9886. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9887. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9888. return {
  9889. url: toPathString(localVarUrlObj),
  9890. options: localVarRequestOptions,
  9891. };
  9892. },
  9893. /**
  9894. *
  9895. * @param {*} [options] Override http request option.
  9896. * @throws {RequiredError}
  9897. */
  9898. logoutAuthDevices: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9899. const localVarPath = `/auth/devices`;
  9900. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9901. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9902. let baseOptions;
  9903. if (configuration) {
  9904. baseOptions = configuration.baseOptions;
  9905. }
  9906. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  9907. const localVarHeaderParameter = {} as any;
  9908. const localVarQueryParameter = {} as any;
  9909. // authentication cookie required
  9910. // authentication api_key required
  9911. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9912. // authentication bearer required
  9913. // http bearer authentication required
  9914. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9915. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9916. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9917. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9918. return {
  9919. url: toPathString(localVarUrlObj),
  9920. options: localVarRequestOptions,
  9921. };
  9922. },
  9923. /**
  9924. *
  9925. * @param {SignUpDto} signUpDto
  9926. * @param {*} [options] Override http request option.
  9927. * @throws {RequiredError}
  9928. */
  9929. signUpAdmin: async (signUpDto: SignUpDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9930. // verify required parameter 'signUpDto' is not null or undefined
  9931. assertParamExists('signUpAdmin', 'signUpDto', signUpDto)
  9932. const localVarPath = `/auth/admin-sign-up`;
  9933. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9934. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9935. let baseOptions;
  9936. if (configuration) {
  9937. baseOptions = configuration.baseOptions;
  9938. }
  9939. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  9940. const localVarHeaderParameter = {} as any;
  9941. const localVarQueryParameter = {} as any;
  9942. localVarHeaderParameter['Content-Type'] = 'application/json';
  9943. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9944. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9945. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9946. localVarRequestOptions.data = serializeDataIfNeeded(signUpDto, localVarRequestOptions, configuration)
  9947. return {
  9948. url: toPathString(localVarUrlObj),
  9949. options: localVarRequestOptions,
  9950. };
  9951. },
  9952. /**
  9953. *
  9954. * @param {*} [options] Override http request option.
  9955. * @throws {RequiredError}
  9956. */
  9957. validateAccessToken: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9958. const localVarPath = `/auth/validateToken`;
  9959. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9960. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9961. let baseOptions;
  9962. if (configuration) {
  9963. baseOptions = configuration.baseOptions;
  9964. }
  9965. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  9966. const localVarHeaderParameter = {} as any;
  9967. const localVarQueryParameter = {} as any;
  9968. // authentication cookie required
  9969. // authentication api_key required
  9970. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9971. // authentication bearer required
  9972. // http bearer authentication required
  9973. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9974. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9975. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9976. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9977. return {
  9978. url: toPathString(localVarUrlObj),
  9979. options: localVarRequestOptions,
  9980. };
  9981. },
  9982. }
  9983. };
  9984. /**
  9985. * AuthenticationApi - functional programming interface
  9986. * @export
  9987. */
  9988. export const AuthenticationApiFp = function(configuration?: Configuration) {
  9989. const localVarAxiosParamCreator = AuthenticationApiAxiosParamCreator(configuration)
  9990. return {
  9991. /**
  9992. *
  9993. * @param {ChangePasswordDto} changePasswordDto
  9994. * @param {*} [options] Override http request option.
  9995. * @throws {RequiredError}
  9996. */
  9997. async changePassword(changePasswordDto: ChangePasswordDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  9998. const localVarAxiosArgs = await localVarAxiosParamCreator.changePassword(changePasswordDto, options);
  9999. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10000. },
  10001. /**
  10002. *
  10003. * @param {*} [options] Override http request option.
  10004. * @throws {RequiredError}
  10005. */
  10006. async getAuthDevices(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AuthDeviceResponseDto>>> {
  10007. const localVarAxiosArgs = await localVarAxiosParamCreator.getAuthDevices(options);
  10008. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10009. },
  10010. /**
  10011. *
  10012. * @param {LoginCredentialDto} loginCredentialDto
  10013. * @param {*} [options] Override http request option.
  10014. * @throws {RequiredError}
  10015. */
  10016. async login(loginCredentialDto: LoginCredentialDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoginResponseDto>> {
  10017. const localVarAxiosArgs = await localVarAxiosParamCreator.login(loginCredentialDto, options);
  10018. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10019. },
  10020. /**
  10021. *
  10022. * @param {*} [options] Override http request option.
  10023. * @throws {RequiredError}
  10024. */
  10025. async logout(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LogoutResponseDto>> {
  10026. const localVarAxiosArgs = await localVarAxiosParamCreator.logout(options);
  10027. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10028. },
  10029. /**
  10030. *
  10031. * @param {string} id
  10032. * @param {*} [options] Override http request option.
  10033. * @throws {RequiredError}
  10034. */
  10035. async logoutAuthDevice(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  10036. const localVarAxiosArgs = await localVarAxiosParamCreator.logoutAuthDevice(id, options);
  10037. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10038. },
  10039. /**
  10040. *
  10041. * @param {*} [options] Override http request option.
  10042. * @throws {RequiredError}
  10043. */
  10044. async logoutAuthDevices(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  10045. const localVarAxiosArgs = await localVarAxiosParamCreator.logoutAuthDevices(options);
  10046. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10047. },
  10048. /**
  10049. *
  10050. * @param {SignUpDto} signUpDto
  10051. * @param {*} [options] Override http request option.
  10052. * @throws {RequiredError}
  10053. */
  10054. async signUpAdmin(signUpDto: SignUpDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  10055. const localVarAxiosArgs = await localVarAxiosParamCreator.signUpAdmin(signUpDto, options);
  10056. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10057. },
  10058. /**
  10059. *
  10060. * @param {*} [options] Override http request option.
  10061. * @throws {RequiredError}
  10062. */
  10063. async validateAccessToken(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ValidateAccessTokenResponseDto>> {
  10064. const localVarAxiosArgs = await localVarAxiosParamCreator.validateAccessToken(options);
  10065. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10066. },
  10067. }
  10068. };
  10069. /**
  10070. * AuthenticationApi - factory interface
  10071. * @export
  10072. */
  10073. export const AuthenticationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  10074. const localVarFp = AuthenticationApiFp(configuration)
  10075. return {
  10076. /**
  10077. *
  10078. * @param {AuthenticationApiChangePasswordRequest} requestParameters Request parameters.
  10079. * @param {*} [options] Override http request option.
  10080. * @throws {RequiredError}
  10081. */
  10082. changePassword(requestParameters: AuthenticationApiChangePasswordRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  10083. return localVarFp.changePassword(requestParameters.changePasswordDto, options).then((request) => request(axios, basePath));
  10084. },
  10085. /**
  10086. *
  10087. * @param {*} [options] Override http request option.
  10088. * @throws {RequiredError}
  10089. */
  10090. getAuthDevices(options?: AxiosRequestConfig): AxiosPromise<Array<AuthDeviceResponseDto>> {
  10091. return localVarFp.getAuthDevices(options).then((request) => request(axios, basePath));
  10092. },
  10093. /**
  10094. *
  10095. * @param {AuthenticationApiLoginRequest} requestParameters Request parameters.
  10096. * @param {*} [options] Override http request option.
  10097. * @throws {RequiredError}
  10098. */
  10099. login(requestParameters: AuthenticationApiLoginRequest, options?: AxiosRequestConfig): AxiosPromise<LoginResponseDto> {
  10100. return localVarFp.login(requestParameters.loginCredentialDto, options).then((request) => request(axios, basePath));
  10101. },
  10102. /**
  10103. *
  10104. * @param {*} [options] Override http request option.
  10105. * @throws {RequiredError}
  10106. */
  10107. logout(options?: AxiosRequestConfig): AxiosPromise<LogoutResponseDto> {
  10108. return localVarFp.logout(options).then((request) => request(axios, basePath));
  10109. },
  10110. /**
  10111. *
  10112. * @param {AuthenticationApiLogoutAuthDeviceRequest} requestParameters Request parameters.
  10113. * @param {*} [options] Override http request option.
  10114. * @throws {RequiredError}
  10115. */
  10116. logoutAuthDevice(requestParameters: AuthenticationApiLogoutAuthDeviceRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  10117. return localVarFp.logoutAuthDevice(requestParameters.id, options).then((request) => request(axios, basePath));
  10118. },
  10119. /**
  10120. *
  10121. * @param {*} [options] Override http request option.
  10122. * @throws {RequiredError}
  10123. */
  10124. logoutAuthDevices(options?: AxiosRequestConfig): AxiosPromise<void> {
  10125. return localVarFp.logoutAuthDevices(options).then((request) => request(axios, basePath));
  10126. },
  10127. /**
  10128. *
  10129. * @param {AuthenticationApiSignUpAdminRequest} requestParameters Request parameters.
  10130. * @param {*} [options] Override http request option.
  10131. * @throws {RequiredError}
  10132. */
  10133. signUpAdmin(requestParameters: AuthenticationApiSignUpAdminRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  10134. return localVarFp.signUpAdmin(requestParameters.signUpDto, options).then((request) => request(axios, basePath));
  10135. },
  10136. /**
  10137. *
  10138. * @param {*} [options] Override http request option.
  10139. * @throws {RequiredError}
  10140. */
  10141. validateAccessToken(options?: AxiosRequestConfig): AxiosPromise<ValidateAccessTokenResponseDto> {
  10142. return localVarFp.validateAccessToken(options).then((request) => request(axios, basePath));
  10143. },
  10144. };
  10145. };
  10146. /**
  10147. * Request parameters for changePassword operation in AuthenticationApi.
  10148. * @export
  10149. * @interface AuthenticationApiChangePasswordRequest
  10150. */
  10151. export interface AuthenticationApiChangePasswordRequest {
  10152. /**
  10153. *
  10154. * @type {ChangePasswordDto}
  10155. * @memberof AuthenticationApiChangePassword
  10156. */
  10157. readonly changePasswordDto: ChangePasswordDto
  10158. }
  10159. /**
  10160. * Request parameters for login operation in AuthenticationApi.
  10161. * @export
  10162. * @interface AuthenticationApiLoginRequest
  10163. */
  10164. export interface AuthenticationApiLoginRequest {
  10165. /**
  10166. *
  10167. * @type {LoginCredentialDto}
  10168. * @memberof AuthenticationApiLogin
  10169. */
  10170. readonly loginCredentialDto: LoginCredentialDto
  10171. }
  10172. /**
  10173. * Request parameters for logoutAuthDevice operation in AuthenticationApi.
  10174. * @export
  10175. * @interface AuthenticationApiLogoutAuthDeviceRequest
  10176. */
  10177. export interface AuthenticationApiLogoutAuthDeviceRequest {
  10178. /**
  10179. *
  10180. * @type {string}
  10181. * @memberof AuthenticationApiLogoutAuthDevice
  10182. */
  10183. readonly id: string
  10184. }
  10185. /**
  10186. * Request parameters for signUpAdmin operation in AuthenticationApi.
  10187. * @export
  10188. * @interface AuthenticationApiSignUpAdminRequest
  10189. */
  10190. export interface AuthenticationApiSignUpAdminRequest {
  10191. /**
  10192. *
  10193. * @type {SignUpDto}
  10194. * @memberof AuthenticationApiSignUpAdmin
  10195. */
  10196. readonly signUpDto: SignUpDto
  10197. }
  10198. /**
  10199. * AuthenticationApi - object-oriented interface
  10200. * @export
  10201. * @class AuthenticationApi
  10202. * @extends {BaseAPI}
  10203. */
  10204. export class AuthenticationApi extends BaseAPI {
  10205. /**
  10206. *
  10207. * @param {AuthenticationApiChangePasswordRequest} requestParameters Request parameters.
  10208. * @param {*} [options] Override http request option.
  10209. * @throws {RequiredError}
  10210. * @memberof AuthenticationApi
  10211. */
  10212. public changePassword(requestParameters: AuthenticationApiChangePasswordRequest, options?: AxiosRequestConfig) {
  10213. return AuthenticationApiFp(this.configuration).changePassword(requestParameters.changePasswordDto, options).then((request) => request(this.axios, this.basePath));
  10214. }
  10215. /**
  10216. *
  10217. * @param {*} [options] Override http request option.
  10218. * @throws {RequiredError}
  10219. * @memberof AuthenticationApi
  10220. */
  10221. public getAuthDevices(options?: AxiosRequestConfig) {
  10222. return AuthenticationApiFp(this.configuration).getAuthDevices(options).then((request) => request(this.axios, this.basePath));
  10223. }
  10224. /**
  10225. *
  10226. * @param {AuthenticationApiLoginRequest} requestParameters Request parameters.
  10227. * @param {*} [options] Override http request option.
  10228. * @throws {RequiredError}
  10229. * @memberof AuthenticationApi
  10230. */
  10231. public login(requestParameters: AuthenticationApiLoginRequest, options?: AxiosRequestConfig) {
  10232. return AuthenticationApiFp(this.configuration).login(requestParameters.loginCredentialDto, options).then((request) => request(this.axios, this.basePath));
  10233. }
  10234. /**
  10235. *
  10236. * @param {*} [options] Override http request option.
  10237. * @throws {RequiredError}
  10238. * @memberof AuthenticationApi
  10239. */
  10240. public logout(options?: AxiosRequestConfig) {
  10241. return AuthenticationApiFp(this.configuration).logout(options).then((request) => request(this.axios, this.basePath));
  10242. }
  10243. /**
  10244. *
  10245. * @param {AuthenticationApiLogoutAuthDeviceRequest} requestParameters Request parameters.
  10246. * @param {*} [options] Override http request option.
  10247. * @throws {RequiredError}
  10248. * @memberof AuthenticationApi
  10249. */
  10250. public logoutAuthDevice(requestParameters: AuthenticationApiLogoutAuthDeviceRequest, options?: AxiosRequestConfig) {
  10251. return AuthenticationApiFp(this.configuration).logoutAuthDevice(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  10252. }
  10253. /**
  10254. *
  10255. * @param {*} [options] Override http request option.
  10256. * @throws {RequiredError}
  10257. * @memberof AuthenticationApi
  10258. */
  10259. public logoutAuthDevices(options?: AxiosRequestConfig) {
  10260. return AuthenticationApiFp(this.configuration).logoutAuthDevices(options).then((request) => request(this.axios, this.basePath));
  10261. }
  10262. /**
  10263. *
  10264. * @param {AuthenticationApiSignUpAdminRequest} requestParameters Request parameters.
  10265. * @param {*} [options] Override http request option.
  10266. * @throws {RequiredError}
  10267. * @memberof AuthenticationApi
  10268. */
  10269. public signUpAdmin(requestParameters: AuthenticationApiSignUpAdminRequest, options?: AxiosRequestConfig) {
  10270. return AuthenticationApiFp(this.configuration).signUpAdmin(requestParameters.signUpDto, options).then((request) => request(this.axios, this.basePath));
  10271. }
  10272. /**
  10273. *
  10274. * @param {*} [options] Override http request option.
  10275. * @throws {RequiredError}
  10276. * @memberof AuthenticationApi
  10277. */
  10278. public validateAccessToken(options?: AxiosRequestConfig) {
  10279. return AuthenticationApiFp(this.configuration).validateAccessToken(options).then((request) => request(this.axios, this.basePath));
  10280. }
  10281. }
  10282. /**
  10283. * JobApi - axios parameter creator
  10284. * @export
  10285. */
  10286. export const JobApiAxiosParamCreator = function (configuration?: Configuration) {
  10287. return {
  10288. /**
  10289. *
  10290. * @param {*} [options] Override http request option.
  10291. * @throws {RequiredError}
  10292. */
  10293. getAllJobsStatus: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10294. const localVarPath = `/jobs`;
  10295. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10296. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10297. let baseOptions;
  10298. if (configuration) {
  10299. baseOptions = configuration.baseOptions;
  10300. }
  10301. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  10302. const localVarHeaderParameter = {} as any;
  10303. const localVarQueryParameter = {} as any;
  10304. // authentication cookie required
  10305. // authentication api_key required
  10306. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10307. // authentication bearer required
  10308. // http bearer authentication required
  10309. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10310. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10311. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10312. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10313. return {
  10314. url: toPathString(localVarUrlObj),
  10315. options: localVarRequestOptions,
  10316. };
  10317. },
  10318. /**
  10319. *
  10320. * @param {JobName} id
  10321. * @param {JobCommandDto} jobCommandDto
  10322. * @param {*} [options] Override http request option.
  10323. * @throws {RequiredError}
  10324. */
  10325. sendJobCommand: async (id: JobName, jobCommandDto: JobCommandDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10326. // verify required parameter 'id' is not null or undefined
  10327. assertParamExists('sendJobCommand', 'id', id)
  10328. // verify required parameter 'jobCommandDto' is not null or undefined
  10329. assertParamExists('sendJobCommand', 'jobCommandDto', jobCommandDto)
  10330. const localVarPath = `/jobs/{id}`
  10331. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10332. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10333. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10334. let baseOptions;
  10335. if (configuration) {
  10336. baseOptions = configuration.baseOptions;
  10337. }
  10338. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  10339. const localVarHeaderParameter = {} as any;
  10340. const localVarQueryParameter = {} as any;
  10341. // authentication cookie required
  10342. // authentication api_key required
  10343. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10344. // authentication bearer required
  10345. // http bearer authentication required
  10346. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10347. localVarHeaderParameter['Content-Type'] = 'application/json';
  10348. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10349. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10350. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10351. localVarRequestOptions.data = serializeDataIfNeeded(jobCommandDto, localVarRequestOptions, configuration)
  10352. return {
  10353. url: toPathString(localVarUrlObj),
  10354. options: localVarRequestOptions,
  10355. };
  10356. },
  10357. }
  10358. };
  10359. /**
  10360. * JobApi - functional programming interface
  10361. * @export
  10362. */
  10363. export const JobApiFp = function(configuration?: Configuration) {
  10364. const localVarAxiosParamCreator = JobApiAxiosParamCreator(configuration)
  10365. return {
  10366. /**
  10367. *
  10368. * @param {*} [options] Override http request option.
  10369. * @throws {RequiredError}
  10370. */
  10371. async getAllJobsStatus(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AllJobStatusResponseDto>> {
  10372. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllJobsStatus(options);
  10373. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10374. },
  10375. /**
  10376. *
  10377. * @param {JobName} id
  10378. * @param {JobCommandDto} jobCommandDto
  10379. * @param {*} [options] Override http request option.
  10380. * @throws {RequiredError}
  10381. */
  10382. async sendJobCommand(id: JobName, jobCommandDto: JobCommandDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JobStatusDto>> {
  10383. const localVarAxiosArgs = await localVarAxiosParamCreator.sendJobCommand(id, jobCommandDto, options);
  10384. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10385. },
  10386. }
  10387. };
  10388. /**
  10389. * JobApi - factory interface
  10390. * @export
  10391. */
  10392. export const JobApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  10393. const localVarFp = JobApiFp(configuration)
  10394. return {
  10395. /**
  10396. *
  10397. * @param {*} [options] Override http request option.
  10398. * @throws {RequiredError}
  10399. */
  10400. getAllJobsStatus(options?: AxiosRequestConfig): AxiosPromise<AllJobStatusResponseDto> {
  10401. return localVarFp.getAllJobsStatus(options).then((request) => request(axios, basePath));
  10402. },
  10403. /**
  10404. *
  10405. * @param {JobApiSendJobCommandRequest} requestParameters Request parameters.
  10406. * @param {*} [options] Override http request option.
  10407. * @throws {RequiredError}
  10408. */
  10409. sendJobCommand(requestParameters: JobApiSendJobCommandRequest, options?: AxiosRequestConfig): AxiosPromise<JobStatusDto> {
  10410. return localVarFp.sendJobCommand(requestParameters.id, requestParameters.jobCommandDto, options).then((request) => request(axios, basePath));
  10411. },
  10412. };
  10413. };
  10414. /**
  10415. * Request parameters for sendJobCommand operation in JobApi.
  10416. * @export
  10417. * @interface JobApiSendJobCommandRequest
  10418. */
  10419. export interface JobApiSendJobCommandRequest {
  10420. /**
  10421. *
  10422. * @type {JobName}
  10423. * @memberof JobApiSendJobCommand
  10424. */
  10425. readonly id: JobName
  10426. /**
  10427. *
  10428. * @type {JobCommandDto}
  10429. * @memberof JobApiSendJobCommand
  10430. */
  10431. readonly jobCommandDto: JobCommandDto
  10432. }
  10433. /**
  10434. * JobApi - object-oriented interface
  10435. * @export
  10436. * @class JobApi
  10437. * @extends {BaseAPI}
  10438. */
  10439. export class JobApi extends BaseAPI {
  10440. /**
  10441. *
  10442. * @param {*} [options] Override http request option.
  10443. * @throws {RequiredError}
  10444. * @memberof JobApi
  10445. */
  10446. public getAllJobsStatus(options?: AxiosRequestConfig) {
  10447. return JobApiFp(this.configuration).getAllJobsStatus(options).then((request) => request(this.axios, this.basePath));
  10448. }
  10449. /**
  10450. *
  10451. * @param {JobApiSendJobCommandRequest} requestParameters Request parameters.
  10452. * @param {*} [options] Override http request option.
  10453. * @throws {RequiredError}
  10454. * @memberof JobApi
  10455. */
  10456. public sendJobCommand(requestParameters: JobApiSendJobCommandRequest, options?: AxiosRequestConfig) {
  10457. return JobApiFp(this.configuration).sendJobCommand(requestParameters.id, requestParameters.jobCommandDto, options).then((request) => request(this.axios, this.basePath));
  10458. }
  10459. }
  10460. /**
  10461. * LibraryApi - axios parameter creator
  10462. * @export
  10463. */
  10464. export const LibraryApiAxiosParamCreator = function (configuration?: Configuration) {
  10465. return {
  10466. /**
  10467. *
  10468. * @param {CreateLibraryDto} createLibraryDto
  10469. * @param {*} [options] Override http request option.
  10470. * @throws {RequiredError}
  10471. */
  10472. createLibrary: async (createLibraryDto: CreateLibraryDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10473. // verify required parameter 'createLibraryDto' is not null or undefined
  10474. assertParamExists('createLibrary', 'createLibraryDto', createLibraryDto)
  10475. const localVarPath = `/library`;
  10476. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10477. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10478. let baseOptions;
  10479. if (configuration) {
  10480. baseOptions = configuration.baseOptions;
  10481. }
  10482. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  10483. const localVarHeaderParameter = {} as any;
  10484. const localVarQueryParameter = {} as any;
  10485. // authentication cookie required
  10486. // authentication api_key required
  10487. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10488. // authentication bearer required
  10489. // http bearer authentication required
  10490. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10491. localVarHeaderParameter['Content-Type'] = 'application/json';
  10492. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10493. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10494. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10495. localVarRequestOptions.data = serializeDataIfNeeded(createLibraryDto, localVarRequestOptions, configuration)
  10496. return {
  10497. url: toPathString(localVarUrlObj),
  10498. options: localVarRequestOptions,
  10499. };
  10500. },
  10501. /**
  10502. *
  10503. * @param {string} id
  10504. * @param {*} [options] Override http request option.
  10505. * @throws {RequiredError}
  10506. */
  10507. deleteLibrary: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10508. // verify required parameter 'id' is not null or undefined
  10509. assertParamExists('deleteLibrary', 'id', id)
  10510. const localVarPath = `/library/{id}`
  10511. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10512. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10513. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10514. let baseOptions;
  10515. if (configuration) {
  10516. baseOptions = configuration.baseOptions;
  10517. }
  10518. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  10519. const localVarHeaderParameter = {} as any;
  10520. const localVarQueryParameter = {} as any;
  10521. // authentication cookie required
  10522. // authentication api_key required
  10523. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10524. // authentication bearer required
  10525. // http bearer authentication required
  10526. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10527. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10528. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10529. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10530. return {
  10531. url: toPathString(localVarUrlObj),
  10532. options: localVarRequestOptions,
  10533. };
  10534. },
  10535. /**
  10536. *
  10537. * @param {*} [options] Override http request option.
  10538. * @throws {RequiredError}
  10539. */
  10540. getLibraries: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10541. const localVarPath = `/library`;
  10542. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10543. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10544. let baseOptions;
  10545. if (configuration) {
  10546. baseOptions = configuration.baseOptions;
  10547. }
  10548. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  10549. const localVarHeaderParameter = {} as any;
  10550. const localVarQueryParameter = {} as any;
  10551. // authentication cookie required
  10552. // authentication api_key required
  10553. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10554. // authentication bearer required
  10555. // http bearer authentication required
  10556. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10557. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10558. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10559. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10560. return {
  10561. url: toPathString(localVarUrlObj),
  10562. options: localVarRequestOptions,
  10563. };
  10564. },
  10565. /**
  10566. *
  10567. * @param {string} id
  10568. * @param {*} [options] Override http request option.
  10569. * @throws {RequiredError}
  10570. */
  10571. getLibraryInfo: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10572. // verify required parameter 'id' is not null or undefined
  10573. assertParamExists('getLibraryInfo', 'id', id)
  10574. const localVarPath = `/library/{id}`
  10575. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10576. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10577. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10578. let baseOptions;
  10579. if (configuration) {
  10580. baseOptions = configuration.baseOptions;
  10581. }
  10582. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  10583. const localVarHeaderParameter = {} as any;
  10584. const localVarQueryParameter = {} as any;
  10585. // authentication cookie required
  10586. // authentication api_key required
  10587. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10588. // authentication bearer required
  10589. // http bearer authentication required
  10590. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10591. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10592. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10593. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10594. return {
  10595. url: toPathString(localVarUrlObj),
  10596. options: localVarRequestOptions,
  10597. };
  10598. },
  10599. /**
  10600. *
  10601. * @param {string} id
  10602. * @param {*} [options] Override http request option.
  10603. * @throws {RequiredError}
  10604. */
  10605. getLibraryStatistics: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10606. // verify required parameter 'id' is not null or undefined
  10607. assertParamExists('getLibraryStatistics', 'id', id)
  10608. const localVarPath = `/library/{id}/statistics`
  10609. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10610. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10611. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10612. let baseOptions;
  10613. if (configuration) {
  10614. baseOptions = configuration.baseOptions;
  10615. }
  10616. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  10617. const localVarHeaderParameter = {} as any;
  10618. const localVarQueryParameter = {} as any;
  10619. // authentication cookie required
  10620. // authentication api_key required
  10621. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10622. // authentication bearer required
  10623. // http bearer authentication required
  10624. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10625. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10626. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10627. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10628. return {
  10629. url: toPathString(localVarUrlObj),
  10630. options: localVarRequestOptions,
  10631. };
  10632. },
  10633. /**
  10634. *
  10635. * @param {string} id
  10636. * @param {*} [options] Override http request option.
  10637. * @throws {RequiredError}
  10638. */
  10639. removeOfflineFiles: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10640. // verify required parameter 'id' is not null or undefined
  10641. assertParamExists('removeOfflineFiles', 'id', id)
  10642. const localVarPath = `/library/{id}/removeOffline`
  10643. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10644. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10645. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10646. let baseOptions;
  10647. if (configuration) {
  10648. baseOptions = configuration.baseOptions;
  10649. }
  10650. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  10651. const localVarHeaderParameter = {} as any;
  10652. const localVarQueryParameter = {} as any;
  10653. // authentication cookie required
  10654. // authentication api_key required
  10655. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10656. // authentication bearer required
  10657. // http bearer authentication required
  10658. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10659. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10660. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10661. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10662. return {
  10663. url: toPathString(localVarUrlObj),
  10664. options: localVarRequestOptions,
  10665. };
  10666. },
  10667. /**
  10668. *
  10669. * @param {string} id
  10670. * @param {ScanLibraryDto} scanLibraryDto
  10671. * @param {*} [options] Override http request option.
  10672. * @throws {RequiredError}
  10673. */
  10674. scanLibrary: async (id: string, scanLibraryDto: ScanLibraryDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10675. // verify required parameter 'id' is not null or undefined
  10676. assertParamExists('scanLibrary', 'id', id)
  10677. // verify required parameter 'scanLibraryDto' is not null or undefined
  10678. assertParamExists('scanLibrary', 'scanLibraryDto', scanLibraryDto)
  10679. const localVarPath = `/library/{id}/scan`
  10680. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10681. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10682. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10683. let baseOptions;
  10684. if (configuration) {
  10685. baseOptions = configuration.baseOptions;
  10686. }
  10687. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  10688. const localVarHeaderParameter = {} as any;
  10689. const localVarQueryParameter = {} as any;
  10690. // authentication cookie required
  10691. // authentication api_key required
  10692. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10693. // authentication bearer required
  10694. // http bearer authentication required
  10695. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10696. localVarHeaderParameter['Content-Type'] = 'application/json';
  10697. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10698. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10699. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10700. localVarRequestOptions.data = serializeDataIfNeeded(scanLibraryDto, localVarRequestOptions, configuration)
  10701. return {
  10702. url: toPathString(localVarUrlObj),
  10703. options: localVarRequestOptions,
  10704. };
  10705. },
  10706. /**
  10707. *
  10708. * @param {string} id
  10709. * @param {UpdateLibraryDto} updateLibraryDto
  10710. * @param {*} [options] Override http request option.
  10711. * @throws {RequiredError}
  10712. */
  10713. updateLibrary: async (id: string, updateLibraryDto: UpdateLibraryDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10714. // verify required parameter 'id' is not null or undefined
  10715. assertParamExists('updateLibrary', 'id', id)
  10716. // verify required parameter 'updateLibraryDto' is not null or undefined
  10717. assertParamExists('updateLibrary', 'updateLibraryDto', updateLibraryDto)
  10718. const localVarPath = `/library/{id}`
  10719. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10720. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10721. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10722. let baseOptions;
  10723. if (configuration) {
  10724. baseOptions = configuration.baseOptions;
  10725. }
  10726. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  10727. const localVarHeaderParameter = {} as any;
  10728. const localVarQueryParameter = {} as any;
  10729. // authentication cookie required
  10730. // authentication api_key required
  10731. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10732. // authentication bearer required
  10733. // http bearer authentication required
  10734. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10735. localVarHeaderParameter['Content-Type'] = 'application/json';
  10736. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10737. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10738. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10739. localVarRequestOptions.data = serializeDataIfNeeded(updateLibraryDto, localVarRequestOptions, configuration)
  10740. return {
  10741. url: toPathString(localVarUrlObj),
  10742. options: localVarRequestOptions,
  10743. };
  10744. },
  10745. }
  10746. };
  10747. /**
  10748. * LibraryApi - functional programming interface
  10749. * @export
  10750. */
  10751. export const LibraryApiFp = function(configuration?: Configuration) {
  10752. const localVarAxiosParamCreator = LibraryApiAxiosParamCreator(configuration)
  10753. return {
  10754. /**
  10755. *
  10756. * @param {CreateLibraryDto} createLibraryDto
  10757. * @param {*} [options] Override http request option.
  10758. * @throws {RequiredError}
  10759. */
  10760. async createLibrary(createLibraryDto: CreateLibraryDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LibraryResponseDto>> {
  10761. const localVarAxiosArgs = await localVarAxiosParamCreator.createLibrary(createLibraryDto, options);
  10762. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10763. },
  10764. /**
  10765. *
  10766. * @param {string} id
  10767. * @param {*} [options] Override http request option.
  10768. * @throws {RequiredError}
  10769. */
  10770. async deleteLibrary(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  10771. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteLibrary(id, options);
  10772. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10773. },
  10774. /**
  10775. *
  10776. * @param {*} [options] Override http request option.
  10777. * @throws {RequiredError}
  10778. */
  10779. async getLibraries(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<LibraryResponseDto>>> {
  10780. const localVarAxiosArgs = await localVarAxiosParamCreator.getLibraries(options);
  10781. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10782. },
  10783. /**
  10784. *
  10785. * @param {string} id
  10786. * @param {*} [options] Override http request option.
  10787. * @throws {RequiredError}
  10788. */
  10789. async getLibraryInfo(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LibraryResponseDto>> {
  10790. const localVarAxiosArgs = await localVarAxiosParamCreator.getLibraryInfo(id, options);
  10791. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10792. },
  10793. /**
  10794. *
  10795. * @param {string} id
  10796. * @param {*} [options] Override http request option.
  10797. * @throws {RequiredError}
  10798. */
  10799. async getLibraryStatistics(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LibraryStatsResponseDto>> {
  10800. const localVarAxiosArgs = await localVarAxiosParamCreator.getLibraryStatistics(id, options);
  10801. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10802. },
  10803. /**
  10804. *
  10805. * @param {string} id
  10806. * @param {*} [options] Override http request option.
  10807. * @throws {RequiredError}
  10808. */
  10809. async removeOfflineFiles(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  10810. const localVarAxiosArgs = await localVarAxiosParamCreator.removeOfflineFiles(id, options);
  10811. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10812. },
  10813. /**
  10814. *
  10815. * @param {string} id
  10816. * @param {ScanLibraryDto} scanLibraryDto
  10817. * @param {*} [options] Override http request option.
  10818. * @throws {RequiredError}
  10819. */
  10820. async scanLibrary(id: string, scanLibraryDto: ScanLibraryDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  10821. const localVarAxiosArgs = await localVarAxiosParamCreator.scanLibrary(id, scanLibraryDto, options);
  10822. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10823. },
  10824. /**
  10825. *
  10826. * @param {string} id
  10827. * @param {UpdateLibraryDto} updateLibraryDto
  10828. * @param {*} [options] Override http request option.
  10829. * @throws {RequiredError}
  10830. */
  10831. async updateLibrary(id: string, updateLibraryDto: UpdateLibraryDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LibraryResponseDto>> {
  10832. const localVarAxiosArgs = await localVarAxiosParamCreator.updateLibrary(id, updateLibraryDto, options);
  10833. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10834. },
  10835. }
  10836. };
  10837. /**
  10838. * LibraryApi - factory interface
  10839. * @export
  10840. */
  10841. export const LibraryApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  10842. const localVarFp = LibraryApiFp(configuration)
  10843. return {
  10844. /**
  10845. *
  10846. * @param {LibraryApiCreateLibraryRequest} requestParameters Request parameters.
  10847. * @param {*} [options] Override http request option.
  10848. * @throws {RequiredError}
  10849. */
  10850. createLibrary(requestParameters: LibraryApiCreateLibraryRequest, options?: AxiosRequestConfig): AxiosPromise<LibraryResponseDto> {
  10851. return localVarFp.createLibrary(requestParameters.createLibraryDto, options).then((request) => request(axios, basePath));
  10852. },
  10853. /**
  10854. *
  10855. * @param {LibraryApiDeleteLibraryRequest} requestParameters Request parameters.
  10856. * @param {*} [options] Override http request option.
  10857. * @throws {RequiredError}
  10858. */
  10859. deleteLibrary(requestParameters: LibraryApiDeleteLibraryRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  10860. return localVarFp.deleteLibrary(requestParameters.id, options).then((request) => request(axios, basePath));
  10861. },
  10862. /**
  10863. *
  10864. * @param {*} [options] Override http request option.
  10865. * @throws {RequiredError}
  10866. */
  10867. getLibraries(options?: AxiosRequestConfig): AxiosPromise<Array<LibraryResponseDto>> {
  10868. return localVarFp.getLibraries(options).then((request) => request(axios, basePath));
  10869. },
  10870. /**
  10871. *
  10872. * @param {LibraryApiGetLibraryInfoRequest} requestParameters Request parameters.
  10873. * @param {*} [options] Override http request option.
  10874. * @throws {RequiredError}
  10875. */
  10876. getLibraryInfo(requestParameters: LibraryApiGetLibraryInfoRequest, options?: AxiosRequestConfig): AxiosPromise<LibraryResponseDto> {
  10877. return localVarFp.getLibraryInfo(requestParameters.id, options).then((request) => request(axios, basePath));
  10878. },
  10879. /**
  10880. *
  10881. * @param {LibraryApiGetLibraryStatisticsRequest} requestParameters Request parameters.
  10882. * @param {*} [options] Override http request option.
  10883. * @throws {RequiredError}
  10884. */
  10885. getLibraryStatistics(requestParameters: LibraryApiGetLibraryStatisticsRequest, options?: AxiosRequestConfig): AxiosPromise<LibraryStatsResponseDto> {
  10886. return localVarFp.getLibraryStatistics(requestParameters.id, options).then((request) => request(axios, basePath));
  10887. },
  10888. /**
  10889. *
  10890. * @param {LibraryApiRemoveOfflineFilesRequest} requestParameters Request parameters.
  10891. * @param {*} [options] Override http request option.
  10892. * @throws {RequiredError}
  10893. */
  10894. removeOfflineFiles(requestParameters: LibraryApiRemoveOfflineFilesRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  10895. return localVarFp.removeOfflineFiles(requestParameters.id, options).then((request) => request(axios, basePath));
  10896. },
  10897. /**
  10898. *
  10899. * @param {LibraryApiScanLibraryRequest} requestParameters Request parameters.
  10900. * @param {*} [options] Override http request option.
  10901. * @throws {RequiredError}
  10902. */
  10903. scanLibrary(requestParameters: LibraryApiScanLibraryRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  10904. return localVarFp.scanLibrary(requestParameters.id, requestParameters.scanLibraryDto, options).then((request) => request(axios, basePath));
  10905. },
  10906. /**
  10907. *
  10908. * @param {LibraryApiUpdateLibraryRequest} requestParameters Request parameters.
  10909. * @param {*} [options] Override http request option.
  10910. * @throws {RequiredError}
  10911. */
  10912. updateLibrary(requestParameters: LibraryApiUpdateLibraryRequest, options?: AxiosRequestConfig): AxiosPromise<LibraryResponseDto> {
  10913. return localVarFp.updateLibrary(requestParameters.id, requestParameters.updateLibraryDto, options).then((request) => request(axios, basePath));
  10914. },
  10915. };
  10916. };
  10917. /**
  10918. * Request parameters for createLibrary operation in LibraryApi.
  10919. * @export
  10920. * @interface LibraryApiCreateLibraryRequest
  10921. */
  10922. export interface LibraryApiCreateLibraryRequest {
  10923. /**
  10924. *
  10925. * @type {CreateLibraryDto}
  10926. * @memberof LibraryApiCreateLibrary
  10927. */
  10928. readonly createLibraryDto: CreateLibraryDto
  10929. }
  10930. /**
  10931. * Request parameters for deleteLibrary operation in LibraryApi.
  10932. * @export
  10933. * @interface LibraryApiDeleteLibraryRequest
  10934. */
  10935. export interface LibraryApiDeleteLibraryRequest {
  10936. /**
  10937. *
  10938. * @type {string}
  10939. * @memberof LibraryApiDeleteLibrary
  10940. */
  10941. readonly id: string
  10942. }
  10943. /**
  10944. * Request parameters for getLibraryInfo operation in LibraryApi.
  10945. * @export
  10946. * @interface LibraryApiGetLibraryInfoRequest
  10947. */
  10948. export interface LibraryApiGetLibraryInfoRequest {
  10949. /**
  10950. *
  10951. * @type {string}
  10952. * @memberof LibraryApiGetLibraryInfo
  10953. */
  10954. readonly id: string
  10955. }
  10956. /**
  10957. * Request parameters for getLibraryStatistics operation in LibraryApi.
  10958. * @export
  10959. * @interface LibraryApiGetLibraryStatisticsRequest
  10960. */
  10961. export interface LibraryApiGetLibraryStatisticsRequest {
  10962. /**
  10963. *
  10964. * @type {string}
  10965. * @memberof LibraryApiGetLibraryStatistics
  10966. */
  10967. readonly id: string
  10968. }
  10969. /**
  10970. * Request parameters for removeOfflineFiles operation in LibraryApi.
  10971. * @export
  10972. * @interface LibraryApiRemoveOfflineFilesRequest
  10973. */
  10974. export interface LibraryApiRemoveOfflineFilesRequest {
  10975. /**
  10976. *
  10977. * @type {string}
  10978. * @memberof LibraryApiRemoveOfflineFiles
  10979. */
  10980. readonly id: string
  10981. }
  10982. /**
  10983. * Request parameters for scanLibrary operation in LibraryApi.
  10984. * @export
  10985. * @interface LibraryApiScanLibraryRequest
  10986. */
  10987. export interface LibraryApiScanLibraryRequest {
  10988. /**
  10989. *
  10990. * @type {string}
  10991. * @memberof LibraryApiScanLibrary
  10992. */
  10993. readonly id: string
  10994. /**
  10995. *
  10996. * @type {ScanLibraryDto}
  10997. * @memberof LibraryApiScanLibrary
  10998. */
  10999. readonly scanLibraryDto: ScanLibraryDto
  11000. }
  11001. /**
  11002. * Request parameters for updateLibrary operation in LibraryApi.
  11003. * @export
  11004. * @interface LibraryApiUpdateLibraryRequest
  11005. */
  11006. export interface LibraryApiUpdateLibraryRequest {
  11007. /**
  11008. *
  11009. * @type {string}
  11010. * @memberof LibraryApiUpdateLibrary
  11011. */
  11012. readonly id: string
  11013. /**
  11014. *
  11015. * @type {UpdateLibraryDto}
  11016. * @memberof LibraryApiUpdateLibrary
  11017. */
  11018. readonly updateLibraryDto: UpdateLibraryDto
  11019. }
  11020. /**
  11021. * LibraryApi - object-oriented interface
  11022. * @export
  11023. * @class LibraryApi
  11024. * @extends {BaseAPI}
  11025. */
  11026. export class LibraryApi extends BaseAPI {
  11027. /**
  11028. *
  11029. * @param {LibraryApiCreateLibraryRequest} requestParameters Request parameters.
  11030. * @param {*} [options] Override http request option.
  11031. * @throws {RequiredError}
  11032. * @memberof LibraryApi
  11033. */
  11034. public createLibrary(requestParameters: LibraryApiCreateLibraryRequest, options?: AxiosRequestConfig) {
  11035. return LibraryApiFp(this.configuration).createLibrary(requestParameters.createLibraryDto, options).then((request) => request(this.axios, this.basePath));
  11036. }
  11037. /**
  11038. *
  11039. * @param {LibraryApiDeleteLibraryRequest} requestParameters Request parameters.
  11040. * @param {*} [options] Override http request option.
  11041. * @throws {RequiredError}
  11042. * @memberof LibraryApi
  11043. */
  11044. public deleteLibrary(requestParameters: LibraryApiDeleteLibraryRequest, options?: AxiosRequestConfig) {
  11045. return LibraryApiFp(this.configuration).deleteLibrary(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  11046. }
  11047. /**
  11048. *
  11049. * @param {*} [options] Override http request option.
  11050. * @throws {RequiredError}
  11051. * @memberof LibraryApi
  11052. */
  11053. public getLibraries(options?: AxiosRequestConfig) {
  11054. return LibraryApiFp(this.configuration).getLibraries(options).then((request) => request(this.axios, this.basePath));
  11055. }
  11056. /**
  11057. *
  11058. * @param {LibraryApiGetLibraryInfoRequest} requestParameters Request parameters.
  11059. * @param {*} [options] Override http request option.
  11060. * @throws {RequiredError}
  11061. * @memberof LibraryApi
  11062. */
  11063. public getLibraryInfo(requestParameters: LibraryApiGetLibraryInfoRequest, options?: AxiosRequestConfig) {
  11064. return LibraryApiFp(this.configuration).getLibraryInfo(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  11065. }
  11066. /**
  11067. *
  11068. * @param {LibraryApiGetLibraryStatisticsRequest} requestParameters Request parameters.
  11069. * @param {*} [options] Override http request option.
  11070. * @throws {RequiredError}
  11071. * @memberof LibraryApi
  11072. */
  11073. public getLibraryStatistics(requestParameters: LibraryApiGetLibraryStatisticsRequest, options?: AxiosRequestConfig) {
  11074. return LibraryApiFp(this.configuration).getLibraryStatistics(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  11075. }
  11076. /**
  11077. *
  11078. * @param {LibraryApiRemoveOfflineFilesRequest} requestParameters Request parameters.
  11079. * @param {*} [options] Override http request option.
  11080. * @throws {RequiredError}
  11081. * @memberof LibraryApi
  11082. */
  11083. public removeOfflineFiles(requestParameters: LibraryApiRemoveOfflineFilesRequest, options?: AxiosRequestConfig) {
  11084. return LibraryApiFp(this.configuration).removeOfflineFiles(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  11085. }
  11086. /**
  11087. *
  11088. * @param {LibraryApiScanLibraryRequest} requestParameters Request parameters.
  11089. * @param {*} [options] Override http request option.
  11090. * @throws {RequiredError}
  11091. * @memberof LibraryApi
  11092. */
  11093. public scanLibrary(requestParameters: LibraryApiScanLibraryRequest, options?: AxiosRequestConfig) {
  11094. return LibraryApiFp(this.configuration).scanLibrary(requestParameters.id, requestParameters.scanLibraryDto, options).then((request) => request(this.axios, this.basePath));
  11095. }
  11096. /**
  11097. *
  11098. * @param {LibraryApiUpdateLibraryRequest} requestParameters Request parameters.
  11099. * @param {*} [options] Override http request option.
  11100. * @throws {RequiredError}
  11101. * @memberof LibraryApi
  11102. */
  11103. public updateLibrary(requestParameters: LibraryApiUpdateLibraryRequest, options?: AxiosRequestConfig) {
  11104. return LibraryApiFp(this.configuration).updateLibrary(requestParameters.id, requestParameters.updateLibraryDto, options).then((request) => request(this.axios, this.basePath));
  11105. }
  11106. }
  11107. /**
  11108. * OAuthApi - axios parameter creator
  11109. * @export
  11110. */
  11111. export const OAuthApiAxiosParamCreator = function (configuration?: Configuration) {
  11112. return {
  11113. /**
  11114. *
  11115. * @param {OAuthCallbackDto} oAuthCallbackDto
  11116. * @param {*} [options] Override http request option.
  11117. * @throws {RequiredError}
  11118. */
  11119. finishOAuth: async (oAuthCallbackDto: OAuthCallbackDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11120. // verify required parameter 'oAuthCallbackDto' is not null or undefined
  11121. assertParamExists('finishOAuth', 'oAuthCallbackDto', oAuthCallbackDto)
  11122. const localVarPath = `/oauth/callback`;
  11123. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11124. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11125. let baseOptions;
  11126. if (configuration) {
  11127. baseOptions = configuration.baseOptions;
  11128. }
  11129. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  11130. const localVarHeaderParameter = {} as any;
  11131. const localVarQueryParameter = {} as any;
  11132. localVarHeaderParameter['Content-Type'] = 'application/json';
  11133. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11134. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11135. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11136. localVarRequestOptions.data = serializeDataIfNeeded(oAuthCallbackDto, localVarRequestOptions, configuration)
  11137. return {
  11138. url: toPathString(localVarUrlObj),
  11139. options: localVarRequestOptions,
  11140. };
  11141. },
  11142. /**
  11143. * @deprecated use feature flags and /oauth/authorize
  11144. * @param {OAuthConfigDto} oAuthConfigDto
  11145. * @param {*} [options] Override http request option.
  11146. * @deprecated
  11147. * @throws {RequiredError}
  11148. */
  11149. generateOAuthConfig: async (oAuthConfigDto: OAuthConfigDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11150. // verify required parameter 'oAuthConfigDto' is not null or undefined
  11151. assertParamExists('generateOAuthConfig', 'oAuthConfigDto', oAuthConfigDto)
  11152. const localVarPath = `/oauth/config`;
  11153. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11154. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11155. let baseOptions;
  11156. if (configuration) {
  11157. baseOptions = configuration.baseOptions;
  11158. }
  11159. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  11160. const localVarHeaderParameter = {} as any;
  11161. const localVarQueryParameter = {} as any;
  11162. localVarHeaderParameter['Content-Type'] = 'application/json';
  11163. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11164. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11165. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11166. localVarRequestOptions.data = serializeDataIfNeeded(oAuthConfigDto, localVarRequestOptions, configuration)
  11167. return {
  11168. url: toPathString(localVarUrlObj),
  11169. options: localVarRequestOptions,
  11170. };
  11171. },
  11172. /**
  11173. *
  11174. * @param {OAuthCallbackDto} oAuthCallbackDto
  11175. * @param {*} [options] Override http request option.
  11176. * @throws {RequiredError}
  11177. */
  11178. linkOAuthAccount: async (oAuthCallbackDto: OAuthCallbackDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11179. // verify required parameter 'oAuthCallbackDto' is not null or undefined
  11180. assertParamExists('linkOAuthAccount', 'oAuthCallbackDto', oAuthCallbackDto)
  11181. const localVarPath = `/oauth/link`;
  11182. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11183. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11184. let baseOptions;
  11185. if (configuration) {
  11186. baseOptions = configuration.baseOptions;
  11187. }
  11188. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  11189. const localVarHeaderParameter = {} as any;
  11190. const localVarQueryParameter = {} as any;
  11191. // authentication cookie required
  11192. // authentication api_key required
  11193. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11194. // authentication bearer required
  11195. // http bearer authentication required
  11196. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11197. localVarHeaderParameter['Content-Type'] = 'application/json';
  11198. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11199. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11200. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11201. localVarRequestOptions.data = serializeDataIfNeeded(oAuthCallbackDto, localVarRequestOptions, configuration)
  11202. return {
  11203. url: toPathString(localVarUrlObj),
  11204. options: localVarRequestOptions,
  11205. };
  11206. },
  11207. /**
  11208. *
  11209. * @param {*} [options] Override http request option.
  11210. * @throws {RequiredError}
  11211. */
  11212. redirectOAuthToMobile: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11213. const localVarPath = `/oauth/mobile-redirect`;
  11214. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11215. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11216. let baseOptions;
  11217. if (configuration) {
  11218. baseOptions = configuration.baseOptions;
  11219. }
  11220. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11221. const localVarHeaderParameter = {} as any;
  11222. const localVarQueryParameter = {} as any;
  11223. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11224. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11225. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11226. return {
  11227. url: toPathString(localVarUrlObj),
  11228. options: localVarRequestOptions,
  11229. };
  11230. },
  11231. /**
  11232. *
  11233. * @param {OAuthConfigDto} oAuthConfigDto
  11234. * @param {*} [options] Override http request option.
  11235. * @throws {RequiredError}
  11236. */
  11237. startOAuth: async (oAuthConfigDto: OAuthConfigDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11238. // verify required parameter 'oAuthConfigDto' is not null or undefined
  11239. assertParamExists('startOAuth', 'oAuthConfigDto', oAuthConfigDto)
  11240. const localVarPath = `/oauth/authorize`;
  11241. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11242. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11243. let baseOptions;
  11244. if (configuration) {
  11245. baseOptions = configuration.baseOptions;
  11246. }
  11247. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  11248. const localVarHeaderParameter = {} as any;
  11249. const localVarQueryParameter = {} as any;
  11250. localVarHeaderParameter['Content-Type'] = 'application/json';
  11251. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11252. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11253. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11254. localVarRequestOptions.data = serializeDataIfNeeded(oAuthConfigDto, localVarRequestOptions, configuration)
  11255. return {
  11256. url: toPathString(localVarUrlObj),
  11257. options: localVarRequestOptions,
  11258. };
  11259. },
  11260. /**
  11261. *
  11262. * @param {*} [options] Override http request option.
  11263. * @throws {RequiredError}
  11264. */
  11265. unlinkOAuthAccount: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11266. const localVarPath = `/oauth/unlink`;
  11267. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11268. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11269. let baseOptions;
  11270. if (configuration) {
  11271. baseOptions = configuration.baseOptions;
  11272. }
  11273. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  11274. const localVarHeaderParameter = {} as any;
  11275. const localVarQueryParameter = {} as any;
  11276. // authentication cookie required
  11277. // authentication api_key required
  11278. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11279. // authentication bearer required
  11280. // http bearer authentication required
  11281. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11282. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11283. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11284. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11285. return {
  11286. url: toPathString(localVarUrlObj),
  11287. options: localVarRequestOptions,
  11288. };
  11289. },
  11290. }
  11291. };
  11292. /**
  11293. * OAuthApi - functional programming interface
  11294. * @export
  11295. */
  11296. export const OAuthApiFp = function(configuration?: Configuration) {
  11297. const localVarAxiosParamCreator = OAuthApiAxiosParamCreator(configuration)
  11298. return {
  11299. /**
  11300. *
  11301. * @param {OAuthCallbackDto} oAuthCallbackDto
  11302. * @param {*} [options] Override http request option.
  11303. * @throws {RequiredError}
  11304. */
  11305. async finishOAuth(oAuthCallbackDto: OAuthCallbackDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoginResponseDto>> {
  11306. const localVarAxiosArgs = await localVarAxiosParamCreator.finishOAuth(oAuthCallbackDto, options);
  11307. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11308. },
  11309. /**
  11310. * @deprecated use feature flags and /oauth/authorize
  11311. * @param {OAuthConfigDto} oAuthConfigDto
  11312. * @param {*} [options] Override http request option.
  11313. * @deprecated
  11314. * @throws {RequiredError}
  11315. */
  11316. async generateOAuthConfig(oAuthConfigDto: OAuthConfigDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OAuthConfigResponseDto>> {
  11317. const localVarAxiosArgs = await localVarAxiosParamCreator.generateOAuthConfig(oAuthConfigDto, options);
  11318. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11319. },
  11320. /**
  11321. *
  11322. * @param {OAuthCallbackDto} oAuthCallbackDto
  11323. * @param {*} [options] Override http request option.
  11324. * @throws {RequiredError}
  11325. */
  11326. async linkOAuthAccount(oAuthCallbackDto: OAuthCallbackDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  11327. const localVarAxiosArgs = await localVarAxiosParamCreator.linkOAuthAccount(oAuthCallbackDto, options);
  11328. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11329. },
  11330. /**
  11331. *
  11332. * @param {*} [options] Override http request option.
  11333. * @throws {RequiredError}
  11334. */
  11335. async redirectOAuthToMobile(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  11336. const localVarAxiosArgs = await localVarAxiosParamCreator.redirectOAuthToMobile(options);
  11337. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11338. },
  11339. /**
  11340. *
  11341. * @param {OAuthConfigDto} oAuthConfigDto
  11342. * @param {*} [options] Override http request option.
  11343. * @throws {RequiredError}
  11344. */
  11345. async startOAuth(oAuthConfigDto: OAuthConfigDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OAuthAuthorizeResponseDto>> {
  11346. const localVarAxiosArgs = await localVarAxiosParamCreator.startOAuth(oAuthConfigDto, options);
  11347. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11348. },
  11349. /**
  11350. *
  11351. * @param {*} [options] Override http request option.
  11352. * @throws {RequiredError}
  11353. */
  11354. async unlinkOAuthAccount(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  11355. const localVarAxiosArgs = await localVarAxiosParamCreator.unlinkOAuthAccount(options);
  11356. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11357. },
  11358. }
  11359. };
  11360. /**
  11361. * OAuthApi - factory interface
  11362. * @export
  11363. */
  11364. export const OAuthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  11365. const localVarFp = OAuthApiFp(configuration)
  11366. return {
  11367. /**
  11368. *
  11369. * @param {OAuthApiFinishOAuthRequest} requestParameters Request parameters.
  11370. * @param {*} [options] Override http request option.
  11371. * @throws {RequiredError}
  11372. */
  11373. finishOAuth(requestParameters: OAuthApiFinishOAuthRequest, options?: AxiosRequestConfig): AxiosPromise<LoginResponseDto> {
  11374. return localVarFp.finishOAuth(requestParameters.oAuthCallbackDto, options).then((request) => request(axios, basePath));
  11375. },
  11376. /**
  11377. * @deprecated use feature flags and /oauth/authorize
  11378. * @param {OAuthApiGenerateOAuthConfigRequest} requestParameters Request parameters.
  11379. * @param {*} [options] Override http request option.
  11380. * @deprecated
  11381. * @throws {RequiredError}
  11382. */
  11383. generateOAuthConfig(requestParameters: OAuthApiGenerateOAuthConfigRequest, options?: AxiosRequestConfig): AxiosPromise<OAuthConfigResponseDto> {
  11384. return localVarFp.generateOAuthConfig(requestParameters.oAuthConfigDto, options).then((request) => request(axios, basePath));
  11385. },
  11386. /**
  11387. *
  11388. * @param {OAuthApiLinkOAuthAccountRequest} requestParameters Request parameters.
  11389. * @param {*} [options] Override http request option.
  11390. * @throws {RequiredError}
  11391. */
  11392. linkOAuthAccount(requestParameters: OAuthApiLinkOAuthAccountRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  11393. return localVarFp.linkOAuthAccount(requestParameters.oAuthCallbackDto, options).then((request) => request(axios, basePath));
  11394. },
  11395. /**
  11396. *
  11397. * @param {*} [options] Override http request option.
  11398. * @throws {RequiredError}
  11399. */
  11400. redirectOAuthToMobile(options?: AxiosRequestConfig): AxiosPromise<void> {
  11401. return localVarFp.redirectOAuthToMobile(options).then((request) => request(axios, basePath));
  11402. },
  11403. /**
  11404. *
  11405. * @param {OAuthApiStartOAuthRequest} requestParameters Request parameters.
  11406. * @param {*} [options] Override http request option.
  11407. * @throws {RequiredError}
  11408. */
  11409. startOAuth(requestParameters: OAuthApiStartOAuthRequest, options?: AxiosRequestConfig): AxiosPromise<OAuthAuthorizeResponseDto> {
  11410. return localVarFp.startOAuth(requestParameters.oAuthConfigDto, options).then((request) => request(axios, basePath));
  11411. },
  11412. /**
  11413. *
  11414. * @param {*} [options] Override http request option.
  11415. * @throws {RequiredError}
  11416. */
  11417. unlinkOAuthAccount(options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  11418. return localVarFp.unlinkOAuthAccount(options).then((request) => request(axios, basePath));
  11419. },
  11420. };
  11421. };
  11422. /**
  11423. * Request parameters for finishOAuth operation in OAuthApi.
  11424. * @export
  11425. * @interface OAuthApiFinishOAuthRequest
  11426. */
  11427. export interface OAuthApiFinishOAuthRequest {
  11428. /**
  11429. *
  11430. * @type {OAuthCallbackDto}
  11431. * @memberof OAuthApiFinishOAuth
  11432. */
  11433. readonly oAuthCallbackDto: OAuthCallbackDto
  11434. }
  11435. /**
  11436. * Request parameters for generateOAuthConfig operation in OAuthApi.
  11437. * @export
  11438. * @interface OAuthApiGenerateOAuthConfigRequest
  11439. */
  11440. export interface OAuthApiGenerateOAuthConfigRequest {
  11441. /**
  11442. *
  11443. * @type {OAuthConfigDto}
  11444. * @memberof OAuthApiGenerateOAuthConfig
  11445. */
  11446. readonly oAuthConfigDto: OAuthConfigDto
  11447. }
  11448. /**
  11449. * Request parameters for linkOAuthAccount operation in OAuthApi.
  11450. * @export
  11451. * @interface OAuthApiLinkOAuthAccountRequest
  11452. */
  11453. export interface OAuthApiLinkOAuthAccountRequest {
  11454. /**
  11455. *
  11456. * @type {OAuthCallbackDto}
  11457. * @memberof OAuthApiLinkOAuthAccount
  11458. */
  11459. readonly oAuthCallbackDto: OAuthCallbackDto
  11460. }
  11461. /**
  11462. * Request parameters for startOAuth operation in OAuthApi.
  11463. * @export
  11464. * @interface OAuthApiStartOAuthRequest
  11465. */
  11466. export interface OAuthApiStartOAuthRequest {
  11467. /**
  11468. *
  11469. * @type {OAuthConfigDto}
  11470. * @memberof OAuthApiStartOAuth
  11471. */
  11472. readonly oAuthConfigDto: OAuthConfigDto
  11473. }
  11474. /**
  11475. * OAuthApi - object-oriented interface
  11476. * @export
  11477. * @class OAuthApi
  11478. * @extends {BaseAPI}
  11479. */
  11480. export class OAuthApi extends BaseAPI {
  11481. /**
  11482. *
  11483. * @param {OAuthApiFinishOAuthRequest} requestParameters Request parameters.
  11484. * @param {*} [options] Override http request option.
  11485. * @throws {RequiredError}
  11486. * @memberof OAuthApi
  11487. */
  11488. public finishOAuth(requestParameters: OAuthApiFinishOAuthRequest, options?: AxiosRequestConfig) {
  11489. return OAuthApiFp(this.configuration).finishOAuth(requestParameters.oAuthCallbackDto, options).then((request) => request(this.axios, this.basePath));
  11490. }
  11491. /**
  11492. * @deprecated use feature flags and /oauth/authorize
  11493. * @param {OAuthApiGenerateOAuthConfigRequest} requestParameters Request parameters.
  11494. * @param {*} [options] Override http request option.
  11495. * @deprecated
  11496. * @throws {RequiredError}
  11497. * @memberof OAuthApi
  11498. */
  11499. public generateOAuthConfig(requestParameters: OAuthApiGenerateOAuthConfigRequest, options?: AxiosRequestConfig) {
  11500. return OAuthApiFp(this.configuration).generateOAuthConfig(requestParameters.oAuthConfigDto, options).then((request) => request(this.axios, this.basePath));
  11501. }
  11502. /**
  11503. *
  11504. * @param {OAuthApiLinkOAuthAccountRequest} requestParameters Request parameters.
  11505. * @param {*} [options] Override http request option.
  11506. * @throws {RequiredError}
  11507. * @memberof OAuthApi
  11508. */
  11509. public linkOAuthAccount(requestParameters: OAuthApiLinkOAuthAccountRequest, options?: AxiosRequestConfig) {
  11510. return OAuthApiFp(this.configuration).linkOAuthAccount(requestParameters.oAuthCallbackDto, options).then((request) => request(this.axios, this.basePath));
  11511. }
  11512. /**
  11513. *
  11514. * @param {*} [options] Override http request option.
  11515. * @throws {RequiredError}
  11516. * @memberof OAuthApi
  11517. */
  11518. public redirectOAuthToMobile(options?: AxiosRequestConfig) {
  11519. return OAuthApiFp(this.configuration).redirectOAuthToMobile(options).then((request) => request(this.axios, this.basePath));
  11520. }
  11521. /**
  11522. *
  11523. * @param {OAuthApiStartOAuthRequest} requestParameters Request parameters.
  11524. * @param {*} [options] Override http request option.
  11525. * @throws {RequiredError}
  11526. * @memberof OAuthApi
  11527. */
  11528. public startOAuth(requestParameters: OAuthApiStartOAuthRequest, options?: AxiosRequestConfig) {
  11529. return OAuthApiFp(this.configuration).startOAuth(requestParameters.oAuthConfigDto, options).then((request) => request(this.axios, this.basePath));
  11530. }
  11531. /**
  11532. *
  11533. * @param {*} [options] Override http request option.
  11534. * @throws {RequiredError}
  11535. * @memberof OAuthApi
  11536. */
  11537. public unlinkOAuthAccount(options?: AxiosRequestConfig) {
  11538. return OAuthApiFp(this.configuration).unlinkOAuthAccount(options).then((request) => request(this.axios, this.basePath));
  11539. }
  11540. }
  11541. /**
  11542. * PartnerApi - axios parameter creator
  11543. * @export
  11544. */
  11545. export const PartnerApiAxiosParamCreator = function (configuration?: Configuration) {
  11546. return {
  11547. /**
  11548. *
  11549. * @param {string} id
  11550. * @param {*} [options] Override http request option.
  11551. * @throws {RequiredError}
  11552. */
  11553. createPartner: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11554. // verify required parameter 'id' is not null or undefined
  11555. assertParamExists('createPartner', 'id', id)
  11556. const localVarPath = `/partner/{id}`
  11557. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  11558. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11559. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11560. let baseOptions;
  11561. if (configuration) {
  11562. baseOptions = configuration.baseOptions;
  11563. }
  11564. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  11565. const localVarHeaderParameter = {} as any;
  11566. const localVarQueryParameter = {} as any;
  11567. // authentication cookie required
  11568. // authentication api_key required
  11569. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11570. // authentication bearer required
  11571. // http bearer authentication required
  11572. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11573. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11574. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11575. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11576. return {
  11577. url: toPathString(localVarUrlObj),
  11578. options: localVarRequestOptions,
  11579. };
  11580. },
  11581. /**
  11582. *
  11583. * @param {'shared-by' | 'shared-with'} direction
  11584. * @param {*} [options] Override http request option.
  11585. * @throws {RequiredError}
  11586. */
  11587. getPartners: async (direction: 'shared-by' | 'shared-with', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11588. // verify required parameter 'direction' is not null or undefined
  11589. assertParamExists('getPartners', 'direction', direction)
  11590. const localVarPath = `/partner`;
  11591. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11592. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11593. let baseOptions;
  11594. if (configuration) {
  11595. baseOptions = configuration.baseOptions;
  11596. }
  11597. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11598. const localVarHeaderParameter = {} as any;
  11599. const localVarQueryParameter = {} as any;
  11600. // authentication cookie required
  11601. // authentication api_key required
  11602. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11603. // authentication bearer required
  11604. // http bearer authentication required
  11605. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11606. if (direction !== undefined) {
  11607. localVarQueryParameter['direction'] = direction;
  11608. }
  11609. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11610. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11611. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11612. return {
  11613. url: toPathString(localVarUrlObj),
  11614. options: localVarRequestOptions,
  11615. };
  11616. },
  11617. /**
  11618. *
  11619. * @param {string} id
  11620. * @param {*} [options] Override http request option.
  11621. * @throws {RequiredError}
  11622. */
  11623. removePartner: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11624. // verify required parameter 'id' is not null or undefined
  11625. assertParamExists('removePartner', 'id', id)
  11626. const localVarPath = `/partner/{id}`
  11627. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  11628. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11629. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11630. let baseOptions;
  11631. if (configuration) {
  11632. baseOptions = configuration.baseOptions;
  11633. }
  11634. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  11635. const localVarHeaderParameter = {} as any;
  11636. const localVarQueryParameter = {} as any;
  11637. // authentication cookie required
  11638. // authentication api_key required
  11639. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11640. // authentication bearer required
  11641. // http bearer authentication required
  11642. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11643. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11644. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11645. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11646. return {
  11647. url: toPathString(localVarUrlObj),
  11648. options: localVarRequestOptions,
  11649. };
  11650. },
  11651. /**
  11652. *
  11653. * @param {string} id
  11654. * @param {UpdatePartnerDto} updatePartnerDto
  11655. * @param {*} [options] Override http request option.
  11656. * @throws {RequiredError}
  11657. */
  11658. updatePartner: async (id: string, updatePartnerDto: UpdatePartnerDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11659. // verify required parameter 'id' is not null or undefined
  11660. assertParamExists('updatePartner', 'id', id)
  11661. // verify required parameter 'updatePartnerDto' is not null or undefined
  11662. assertParamExists('updatePartner', 'updatePartnerDto', updatePartnerDto)
  11663. const localVarPath = `/partner/{id}`
  11664. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  11665. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11666. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11667. let baseOptions;
  11668. if (configuration) {
  11669. baseOptions = configuration.baseOptions;
  11670. }
  11671. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  11672. const localVarHeaderParameter = {} as any;
  11673. const localVarQueryParameter = {} as any;
  11674. // authentication cookie required
  11675. // authentication api_key required
  11676. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11677. // authentication bearer required
  11678. // http bearer authentication required
  11679. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11680. localVarHeaderParameter['Content-Type'] = 'application/json';
  11681. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11682. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11683. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11684. localVarRequestOptions.data = serializeDataIfNeeded(updatePartnerDto, localVarRequestOptions, configuration)
  11685. return {
  11686. url: toPathString(localVarUrlObj),
  11687. options: localVarRequestOptions,
  11688. };
  11689. },
  11690. }
  11691. };
  11692. /**
  11693. * PartnerApi - functional programming interface
  11694. * @export
  11695. */
  11696. export const PartnerApiFp = function(configuration?: Configuration) {
  11697. const localVarAxiosParamCreator = PartnerApiAxiosParamCreator(configuration)
  11698. return {
  11699. /**
  11700. *
  11701. * @param {string} id
  11702. * @param {*} [options] Override http request option.
  11703. * @throws {RequiredError}
  11704. */
  11705. async createPartner(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PartnerResponseDto>> {
  11706. const localVarAxiosArgs = await localVarAxiosParamCreator.createPartner(id, options);
  11707. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11708. },
  11709. /**
  11710. *
  11711. * @param {'shared-by' | 'shared-with'} direction
  11712. * @param {*} [options] Override http request option.
  11713. * @throws {RequiredError}
  11714. */
  11715. async getPartners(direction: 'shared-by' | 'shared-with', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<PartnerResponseDto>>> {
  11716. const localVarAxiosArgs = await localVarAxiosParamCreator.getPartners(direction, options);
  11717. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11718. },
  11719. /**
  11720. *
  11721. * @param {string} id
  11722. * @param {*} [options] Override http request option.
  11723. * @throws {RequiredError}
  11724. */
  11725. async removePartner(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  11726. const localVarAxiosArgs = await localVarAxiosParamCreator.removePartner(id, options);
  11727. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11728. },
  11729. /**
  11730. *
  11731. * @param {string} id
  11732. * @param {UpdatePartnerDto} updatePartnerDto
  11733. * @param {*} [options] Override http request option.
  11734. * @throws {RequiredError}
  11735. */
  11736. async updatePartner(id: string, updatePartnerDto: UpdatePartnerDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PartnerResponseDto>> {
  11737. const localVarAxiosArgs = await localVarAxiosParamCreator.updatePartner(id, updatePartnerDto, options);
  11738. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11739. },
  11740. }
  11741. };
  11742. /**
  11743. * PartnerApi - factory interface
  11744. * @export
  11745. */
  11746. export const PartnerApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  11747. const localVarFp = PartnerApiFp(configuration)
  11748. return {
  11749. /**
  11750. *
  11751. * @param {PartnerApiCreatePartnerRequest} requestParameters Request parameters.
  11752. * @param {*} [options] Override http request option.
  11753. * @throws {RequiredError}
  11754. */
  11755. createPartner(requestParameters: PartnerApiCreatePartnerRequest, options?: AxiosRequestConfig): AxiosPromise<PartnerResponseDto> {
  11756. return localVarFp.createPartner(requestParameters.id, options).then((request) => request(axios, basePath));
  11757. },
  11758. /**
  11759. *
  11760. * @param {PartnerApiGetPartnersRequest} requestParameters Request parameters.
  11761. * @param {*} [options] Override http request option.
  11762. * @throws {RequiredError}
  11763. */
  11764. getPartners(requestParameters: PartnerApiGetPartnersRequest, options?: AxiosRequestConfig): AxiosPromise<Array<PartnerResponseDto>> {
  11765. return localVarFp.getPartners(requestParameters.direction, options).then((request) => request(axios, basePath));
  11766. },
  11767. /**
  11768. *
  11769. * @param {PartnerApiRemovePartnerRequest} requestParameters Request parameters.
  11770. * @param {*} [options] Override http request option.
  11771. * @throws {RequiredError}
  11772. */
  11773. removePartner(requestParameters: PartnerApiRemovePartnerRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  11774. return localVarFp.removePartner(requestParameters.id, options).then((request) => request(axios, basePath));
  11775. },
  11776. /**
  11777. *
  11778. * @param {PartnerApiUpdatePartnerRequest} requestParameters Request parameters.
  11779. * @param {*} [options] Override http request option.
  11780. * @throws {RequiredError}
  11781. */
  11782. updatePartner(requestParameters: PartnerApiUpdatePartnerRequest, options?: AxiosRequestConfig): AxiosPromise<PartnerResponseDto> {
  11783. return localVarFp.updatePartner(requestParameters.id, requestParameters.updatePartnerDto, options).then((request) => request(axios, basePath));
  11784. },
  11785. };
  11786. };
  11787. /**
  11788. * Request parameters for createPartner operation in PartnerApi.
  11789. * @export
  11790. * @interface PartnerApiCreatePartnerRequest
  11791. */
  11792. export interface PartnerApiCreatePartnerRequest {
  11793. /**
  11794. *
  11795. * @type {string}
  11796. * @memberof PartnerApiCreatePartner
  11797. */
  11798. readonly id: string
  11799. }
  11800. /**
  11801. * Request parameters for getPartners operation in PartnerApi.
  11802. * @export
  11803. * @interface PartnerApiGetPartnersRequest
  11804. */
  11805. export interface PartnerApiGetPartnersRequest {
  11806. /**
  11807. *
  11808. * @type {'shared-by' | 'shared-with'}
  11809. * @memberof PartnerApiGetPartners
  11810. */
  11811. readonly direction: 'shared-by' | 'shared-with'
  11812. }
  11813. /**
  11814. * Request parameters for removePartner operation in PartnerApi.
  11815. * @export
  11816. * @interface PartnerApiRemovePartnerRequest
  11817. */
  11818. export interface PartnerApiRemovePartnerRequest {
  11819. /**
  11820. *
  11821. * @type {string}
  11822. * @memberof PartnerApiRemovePartner
  11823. */
  11824. readonly id: string
  11825. }
  11826. /**
  11827. * Request parameters for updatePartner operation in PartnerApi.
  11828. * @export
  11829. * @interface PartnerApiUpdatePartnerRequest
  11830. */
  11831. export interface PartnerApiUpdatePartnerRequest {
  11832. /**
  11833. *
  11834. * @type {string}
  11835. * @memberof PartnerApiUpdatePartner
  11836. */
  11837. readonly id: string
  11838. /**
  11839. *
  11840. * @type {UpdatePartnerDto}
  11841. * @memberof PartnerApiUpdatePartner
  11842. */
  11843. readonly updatePartnerDto: UpdatePartnerDto
  11844. }
  11845. /**
  11846. * PartnerApi - object-oriented interface
  11847. * @export
  11848. * @class PartnerApi
  11849. * @extends {BaseAPI}
  11850. */
  11851. export class PartnerApi extends BaseAPI {
  11852. /**
  11853. *
  11854. * @param {PartnerApiCreatePartnerRequest} requestParameters Request parameters.
  11855. * @param {*} [options] Override http request option.
  11856. * @throws {RequiredError}
  11857. * @memberof PartnerApi
  11858. */
  11859. public createPartner(requestParameters: PartnerApiCreatePartnerRequest, options?: AxiosRequestConfig) {
  11860. return PartnerApiFp(this.configuration).createPartner(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  11861. }
  11862. /**
  11863. *
  11864. * @param {PartnerApiGetPartnersRequest} requestParameters Request parameters.
  11865. * @param {*} [options] Override http request option.
  11866. * @throws {RequiredError}
  11867. * @memberof PartnerApi
  11868. */
  11869. public getPartners(requestParameters: PartnerApiGetPartnersRequest, options?: AxiosRequestConfig) {
  11870. return PartnerApiFp(this.configuration).getPartners(requestParameters.direction, options).then((request) => request(this.axios, this.basePath));
  11871. }
  11872. /**
  11873. *
  11874. * @param {PartnerApiRemovePartnerRequest} requestParameters Request parameters.
  11875. * @param {*} [options] Override http request option.
  11876. * @throws {RequiredError}
  11877. * @memberof PartnerApi
  11878. */
  11879. public removePartner(requestParameters: PartnerApiRemovePartnerRequest, options?: AxiosRequestConfig) {
  11880. return PartnerApiFp(this.configuration).removePartner(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  11881. }
  11882. /**
  11883. *
  11884. * @param {PartnerApiUpdatePartnerRequest} requestParameters Request parameters.
  11885. * @param {*} [options] Override http request option.
  11886. * @throws {RequiredError}
  11887. * @memberof PartnerApi
  11888. */
  11889. public updatePartner(requestParameters: PartnerApiUpdatePartnerRequest, options?: AxiosRequestConfig) {
  11890. return PartnerApiFp(this.configuration).updatePartner(requestParameters.id, requestParameters.updatePartnerDto, options).then((request) => request(this.axios, this.basePath));
  11891. }
  11892. }
  11893. /**
  11894. * PersonApi - axios parameter creator
  11895. * @export
  11896. */
  11897. export const PersonApiAxiosParamCreator = function (configuration?: Configuration) {
  11898. return {
  11899. /**
  11900. *
  11901. * @param {boolean} [withHidden]
  11902. * @param {*} [options] Override http request option.
  11903. * @throws {RequiredError}
  11904. */
  11905. getAllPeople: async (withHidden?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11906. const localVarPath = `/person`;
  11907. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11908. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11909. let baseOptions;
  11910. if (configuration) {
  11911. baseOptions = configuration.baseOptions;
  11912. }
  11913. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11914. const localVarHeaderParameter = {} as any;
  11915. const localVarQueryParameter = {} as any;
  11916. // authentication cookie required
  11917. // authentication api_key required
  11918. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11919. // authentication bearer required
  11920. // http bearer authentication required
  11921. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11922. if (withHidden !== undefined) {
  11923. localVarQueryParameter['withHidden'] = withHidden;
  11924. }
  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 {string} id
  11936. * @param {*} [options] Override http request option.
  11937. * @throws {RequiredError}
  11938. */
  11939. getPerson: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11940. // verify required parameter 'id' is not null or undefined
  11941. assertParamExists('getPerson', 'id', id)
  11942. const localVarPath = `/person/{id}`
  11943. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  11944. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11945. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11946. let baseOptions;
  11947. if (configuration) {
  11948. baseOptions = configuration.baseOptions;
  11949. }
  11950. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11951. const localVarHeaderParameter = {} as any;
  11952. const localVarQueryParameter = {} as any;
  11953. // authentication cookie required
  11954. // authentication api_key required
  11955. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11956. // authentication bearer required
  11957. // http bearer authentication required
  11958. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11959. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11960. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11961. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11962. return {
  11963. url: toPathString(localVarUrlObj),
  11964. options: localVarRequestOptions,
  11965. };
  11966. },
  11967. /**
  11968. *
  11969. * @param {string} id
  11970. * @param {*} [options] Override http request option.
  11971. * @throws {RequiredError}
  11972. */
  11973. getPersonAssets: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11974. // verify required parameter 'id' is not null or undefined
  11975. assertParamExists('getPersonAssets', 'id', id)
  11976. const localVarPath = `/person/{id}/assets`
  11977. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  11978. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11979. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11980. let baseOptions;
  11981. if (configuration) {
  11982. baseOptions = configuration.baseOptions;
  11983. }
  11984. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11985. const localVarHeaderParameter = {} as any;
  11986. const localVarQueryParameter = {} as any;
  11987. // authentication cookie required
  11988. // authentication api_key required
  11989. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11990. // authentication bearer required
  11991. // http bearer authentication required
  11992. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11993. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11994. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11995. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11996. return {
  11997. url: toPathString(localVarUrlObj),
  11998. options: localVarRequestOptions,
  11999. };
  12000. },
  12001. /**
  12002. *
  12003. * @param {string} id
  12004. * @param {*} [options] Override http request option.
  12005. * @throws {RequiredError}
  12006. */
  12007. getPersonStatistics: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12008. // verify required parameter 'id' is not null or undefined
  12009. assertParamExists('getPersonStatistics', 'id', id)
  12010. const localVarPath = `/person/{id}/statistics`
  12011. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  12012. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12013. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12014. let baseOptions;
  12015. if (configuration) {
  12016. baseOptions = configuration.baseOptions;
  12017. }
  12018. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12019. const localVarHeaderParameter = {} as any;
  12020. const localVarQueryParameter = {} as any;
  12021. // authentication cookie required
  12022. // authentication api_key required
  12023. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12024. // authentication bearer required
  12025. // http bearer authentication required
  12026. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12027. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12028. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12029. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12030. return {
  12031. url: toPathString(localVarUrlObj),
  12032. options: localVarRequestOptions,
  12033. };
  12034. },
  12035. /**
  12036. *
  12037. * @param {string} id
  12038. * @param {*} [options] Override http request option.
  12039. * @throws {RequiredError}
  12040. */
  12041. getPersonThumbnail: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12042. // verify required parameter 'id' is not null or undefined
  12043. assertParamExists('getPersonThumbnail', 'id', id)
  12044. const localVarPath = `/person/{id}/thumbnail`
  12045. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  12046. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12047. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12048. let baseOptions;
  12049. if (configuration) {
  12050. baseOptions = configuration.baseOptions;
  12051. }
  12052. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12053. const localVarHeaderParameter = {} as any;
  12054. const localVarQueryParameter = {} as any;
  12055. // authentication cookie required
  12056. // authentication api_key required
  12057. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12058. // authentication bearer required
  12059. // http bearer authentication required
  12060. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12061. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12062. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12063. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12064. return {
  12065. url: toPathString(localVarUrlObj),
  12066. options: localVarRequestOptions,
  12067. };
  12068. },
  12069. /**
  12070. *
  12071. * @param {string} id
  12072. * @param {MergePersonDto} mergePersonDto
  12073. * @param {*} [options] Override http request option.
  12074. * @throws {RequiredError}
  12075. */
  12076. mergePerson: async (id: string, mergePersonDto: MergePersonDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12077. // verify required parameter 'id' is not null or undefined
  12078. assertParamExists('mergePerson', 'id', id)
  12079. // verify required parameter 'mergePersonDto' is not null or undefined
  12080. assertParamExists('mergePerson', 'mergePersonDto', mergePersonDto)
  12081. const localVarPath = `/person/{id}/merge`
  12082. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  12083. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12084. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12085. let baseOptions;
  12086. if (configuration) {
  12087. baseOptions = configuration.baseOptions;
  12088. }
  12089. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  12090. const localVarHeaderParameter = {} as any;
  12091. const localVarQueryParameter = {} as any;
  12092. // authentication cookie required
  12093. // authentication api_key required
  12094. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12095. // authentication bearer required
  12096. // http bearer authentication required
  12097. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12098. localVarHeaderParameter['Content-Type'] = 'application/json';
  12099. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12100. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12101. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12102. localVarRequestOptions.data = serializeDataIfNeeded(mergePersonDto, localVarRequestOptions, configuration)
  12103. return {
  12104. url: toPathString(localVarUrlObj),
  12105. options: localVarRequestOptions,
  12106. };
  12107. },
  12108. /**
  12109. *
  12110. * @param {PeopleUpdateDto} peopleUpdateDto
  12111. * @param {*} [options] Override http request option.
  12112. * @throws {RequiredError}
  12113. */
  12114. updatePeople: async (peopleUpdateDto: PeopleUpdateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12115. // verify required parameter 'peopleUpdateDto' is not null or undefined
  12116. assertParamExists('updatePeople', 'peopleUpdateDto', peopleUpdateDto)
  12117. const localVarPath = `/person`;
  12118. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12119. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12120. let baseOptions;
  12121. if (configuration) {
  12122. baseOptions = configuration.baseOptions;
  12123. }
  12124. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  12125. const localVarHeaderParameter = {} as any;
  12126. const localVarQueryParameter = {} as any;
  12127. // authentication cookie required
  12128. // authentication api_key required
  12129. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12130. // authentication bearer required
  12131. // http bearer authentication required
  12132. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12133. localVarHeaderParameter['Content-Type'] = 'application/json';
  12134. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12135. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12136. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12137. localVarRequestOptions.data = serializeDataIfNeeded(peopleUpdateDto, localVarRequestOptions, configuration)
  12138. return {
  12139. url: toPathString(localVarUrlObj),
  12140. options: localVarRequestOptions,
  12141. };
  12142. },
  12143. /**
  12144. *
  12145. * @param {string} id
  12146. * @param {PersonUpdateDto} personUpdateDto
  12147. * @param {*} [options] Override http request option.
  12148. * @throws {RequiredError}
  12149. */
  12150. updatePerson: async (id: string, personUpdateDto: PersonUpdateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12151. // verify required parameter 'id' is not null or undefined
  12152. assertParamExists('updatePerson', 'id', id)
  12153. // verify required parameter 'personUpdateDto' is not null or undefined
  12154. assertParamExists('updatePerson', 'personUpdateDto', personUpdateDto)
  12155. const localVarPath = `/person/{id}`
  12156. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  12157. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12158. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12159. let baseOptions;
  12160. if (configuration) {
  12161. baseOptions = configuration.baseOptions;
  12162. }
  12163. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  12164. const localVarHeaderParameter = {} as any;
  12165. const localVarQueryParameter = {} as any;
  12166. // authentication cookie required
  12167. // authentication api_key required
  12168. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12169. // authentication bearer required
  12170. // http bearer authentication required
  12171. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12172. localVarHeaderParameter['Content-Type'] = 'application/json';
  12173. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12174. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12175. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12176. localVarRequestOptions.data = serializeDataIfNeeded(personUpdateDto, localVarRequestOptions, configuration)
  12177. return {
  12178. url: toPathString(localVarUrlObj),
  12179. options: localVarRequestOptions,
  12180. };
  12181. },
  12182. }
  12183. };
  12184. /**
  12185. * PersonApi - functional programming interface
  12186. * @export
  12187. */
  12188. export const PersonApiFp = function(configuration?: Configuration) {
  12189. const localVarAxiosParamCreator = PersonApiAxiosParamCreator(configuration)
  12190. return {
  12191. /**
  12192. *
  12193. * @param {boolean} [withHidden]
  12194. * @param {*} [options] Override http request option.
  12195. * @throws {RequiredError}
  12196. */
  12197. async getAllPeople(withHidden?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PeopleResponseDto>> {
  12198. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllPeople(withHidden, options);
  12199. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12200. },
  12201. /**
  12202. *
  12203. * @param {string} id
  12204. * @param {*} [options] Override http request option.
  12205. * @throws {RequiredError}
  12206. */
  12207. async getPerson(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PersonResponseDto>> {
  12208. const localVarAxiosArgs = await localVarAxiosParamCreator.getPerson(id, options);
  12209. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12210. },
  12211. /**
  12212. *
  12213. * @param {string} id
  12214. * @param {*} [options] Override http request option.
  12215. * @throws {RequiredError}
  12216. */
  12217. async getPersonAssets(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  12218. const localVarAxiosArgs = await localVarAxiosParamCreator.getPersonAssets(id, options);
  12219. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12220. },
  12221. /**
  12222. *
  12223. * @param {string} id
  12224. * @param {*} [options] Override http request option.
  12225. * @throws {RequiredError}
  12226. */
  12227. async getPersonStatistics(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PersonStatisticsResponseDto>> {
  12228. const localVarAxiosArgs = await localVarAxiosParamCreator.getPersonStatistics(id, options);
  12229. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12230. },
  12231. /**
  12232. *
  12233. * @param {string} id
  12234. * @param {*} [options] Override http request option.
  12235. * @throws {RequiredError}
  12236. */
  12237. async getPersonThumbnail(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
  12238. const localVarAxiosArgs = await localVarAxiosParamCreator.getPersonThumbnail(id, options);
  12239. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12240. },
  12241. /**
  12242. *
  12243. * @param {string} id
  12244. * @param {MergePersonDto} mergePersonDto
  12245. * @param {*} [options] Override http request option.
  12246. * @throws {RequiredError}
  12247. */
  12248. async mergePerson(id: string, mergePersonDto: MergePersonDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BulkIdResponseDto>>> {
  12249. const localVarAxiosArgs = await localVarAxiosParamCreator.mergePerson(id, mergePersonDto, options);
  12250. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12251. },
  12252. /**
  12253. *
  12254. * @param {PeopleUpdateDto} peopleUpdateDto
  12255. * @param {*} [options] Override http request option.
  12256. * @throws {RequiredError}
  12257. */
  12258. async updatePeople(peopleUpdateDto: PeopleUpdateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BulkIdResponseDto>>> {
  12259. const localVarAxiosArgs = await localVarAxiosParamCreator.updatePeople(peopleUpdateDto, options);
  12260. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12261. },
  12262. /**
  12263. *
  12264. * @param {string} id
  12265. * @param {PersonUpdateDto} personUpdateDto
  12266. * @param {*} [options] Override http request option.
  12267. * @throws {RequiredError}
  12268. */
  12269. async updatePerson(id: string, personUpdateDto: PersonUpdateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PersonResponseDto>> {
  12270. const localVarAxiosArgs = await localVarAxiosParamCreator.updatePerson(id, personUpdateDto, options);
  12271. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12272. },
  12273. }
  12274. };
  12275. /**
  12276. * PersonApi - factory interface
  12277. * @export
  12278. */
  12279. export const PersonApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  12280. const localVarFp = PersonApiFp(configuration)
  12281. return {
  12282. /**
  12283. *
  12284. * @param {PersonApiGetAllPeopleRequest} requestParameters Request parameters.
  12285. * @param {*} [options] Override http request option.
  12286. * @throws {RequiredError}
  12287. */
  12288. getAllPeople(requestParameters: PersonApiGetAllPeopleRequest = {}, options?: AxiosRequestConfig): AxiosPromise<PeopleResponseDto> {
  12289. return localVarFp.getAllPeople(requestParameters.withHidden, options).then((request) => request(axios, basePath));
  12290. },
  12291. /**
  12292. *
  12293. * @param {PersonApiGetPersonRequest} requestParameters Request parameters.
  12294. * @param {*} [options] Override http request option.
  12295. * @throws {RequiredError}
  12296. */
  12297. getPerson(requestParameters: PersonApiGetPersonRequest, options?: AxiosRequestConfig): AxiosPromise<PersonResponseDto> {
  12298. return localVarFp.getPerson(requestParameters.id, options).then((request) => request(axios, basePath));
  12299. },
  12300. /**
  12301. *
  12302. * @param {PersonApiGetPersonAssetsRequest} requestParameters Request parameters.
  12303. * @param {*} [options] Override http request option.
  12304. * @throws {RequiredError}
  12305. */
  12306. getPersonAssets(requestParameters: PersonApiGetPersonAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
  12307. return localVarFp.getPersonAssets(requestParameters.id, options).then((request) => request(axios, basePath));
  12308. },
  12309. /**
  12310. *
  12311. * @param {PersonApiGetPersonStatisticsRequest} requestParameters Request parameters.
  12312. * @param {*} [options] Override http request option.
  12313. * @throws {RequiredError}
  12314. */
  12315. getPersonStatistics(requestParameters: PersonApiGetPersonStatisticsRequest, options?: AxiosRequestConfig): AxiosPromise<PersonStatisticsResponseDto> {
  12316. return localVarFp.getPersonStatistics(requestParameters.id, options).then((request) => request(axios, basePath));
  12317. },
  12318. /**
  12319. *
  12320. * @param {PersonApiGetPersonThumbnailRequest} requestParameters Request parameters.
  12321. * @param {*} [options] Override http request option.
  12322. * @throws {RequiredError}
  12323. */
  12324. getPersonThumbnail(requestParameters: PersonApiGetPersonThumbnailRequest, options?: AxiosRequestConfig): AxiosPromise<File> {
  12325. return localVarFp.getPersonThumbnail(requestParameters.id, options).then((request) => request(axios, basePath));
  12326. },
  12327. /**
  12328. *
  12329. * @param {PersonApiMergePersonRequest} requestParameters Request parameters.
  12330. * @param {*} [options] Override http request option.
  12331. * @throws {RequiredError}
  12332. */
  12333. mergePerson(requestParameters: PersonApiMergePersonRequest, options?: AxiosRequestConfig): AxiosPromise<Array<BulkIdResponseDto>> {
  12334. return localVarFp.mergePerson(requestParameters.id, requestParameters.mergePersonDto, options).then((request) => request(axios, basePath));
  12335. },
  12336. /**
  12337. *
  12338. * @param {PersonApiUpdatePeopleRequest} requestParameters Request parameters.
  12339. * @param {*} [options] Override http request option.
  12340. * @throws {RequiredError}
  12341. */
  12342. updatePeople(requestParameters: PersonApiUpdatePeopleRequest, options?: AxiosRequestConfig): AxiosPromise<Array<BulkIdResponseDto>> {
  12343. return localVarFp.updatePeople(requestParameters.peopleUpdateDto, options).then((request) => request(axios, basePath));
  12344. },
  12345. /**
  12346. *
  12347. * @param {PersonApiUpdatePersonRequest} requestParameters Request parameters.
  12348. * @param {*} [options] Override http request option.
  12349. * @throws {RequiredError}
  12350. */
  12351. updatePerson(requestParameters: PersonApiUpdatePersonRequest, options?: AxiosRequestConfig): AxiosPromise<PersonResponseDto> {
  12352. return localVarFp.updatePerson(requestParameters.id, requestParameters.personUpdateDto, options).then((request) => request(axios, basePath));
  12353. },
  12354. };
  12355. };
  12356. /**
  12357. * Request parameters for getAllPeople operation in PersonApi.
  12358. * @export
  12359. * @interface PersonApiGetAllPeopleRequest
  12360. */
  12361. export interface PersonApiGetAllPeopleRequest {
  12362. /**
  12363. *
  12364. * @type {boolean}
  12365. * @memberof PersonApiGetAllPeople
  12366. */
  12367. readonly withHidden?: boolean
  12368. }
  12369. /**
  12370. * Request parameters for getPerson operation in PersonApi.
  12371. * @export
  12372. * @interface PersonApiGetPersonRequest
  12373. */
  12374. export interface PersonApiGetPersonRequest {
  12375. /**
  12376. *
  12377. * @type {string}
  12378. * @memberof PersonApiGetPerson
  12379. */
  12380. readonly id: string
  12381. }
  12382. /**
  12383. * Request parameters for getPersonAssets operation in PersonApi.
  12384. * @export
  12385. * @interface PersonApiGetPersonAssetsRequest
  12386. */
  12387. export interface PersonApiGetPersonAssetsRequest {
  12388. /**
  12389. *
  12390. * @type {string}
  12391. * @memberof PersonApiGetPersonAssets
  12392. */
  12393. readonly id: string
  12394. }
  12395. /**
  12396. * Request parameters for getPersonStatistics operation in PersonApi.
  12397. * @export
  12398. * @interface PersonApiGetPersonStatisticsRequest
  12399. */
  12400. export interface PersonApiGetPersonStatisticsRequest {
  12401. /**
  12402. *
  12403. * @type {string}
  12404. * @memberof PersonApiGetPersonStatistics
  12405. */
  12406. readonly id: string
  12407. }
  12408. /**
  12409. * Request parameters for getPersonThumbnail operation in PersonApi.
  12410. * @export
  12411. * @interface PersonApiGetPersonThumbnailRequest
  12412. */
  12413. export interface PersonApiGetPersonThumbnailRequest {
  12414. /**
  12415. *
  12416. * @type {string}
  12417. * @memberof PersonApiGetPersonThumbnail
  12418. */
  12419. readonly id: string
  12420. }
  12421. /**
  12422. * Request parameters for mergePerson operation in PersonApi.
  12423. * @export
  12424. * @interface PersonApiMergePersonRequest
  12425. */
  12426. export interface PersonApiMergePersonRequest {
  12427. /**
  12428. *
  12429. * @type {string}
  12430. * @memberof PersonApiMergePerson
  12431. */
  12432. readonly id: string
  12433. /**
  12434. *
  12435. * @type {MergePersonDto}
  12436. * @memberof PersonApiMergePerson
  12437. */
  12438. readonly mergePersonDto: MergePersonDto
  12439. }
  12440. /**
  12441. * Request parameters for updatePeople operation in PersonApi.
  12442. * @export
  12443. * @interface PersonApiUpdatePeopleRequest
  12444. */
  12445. export interface PersonApiUpdatePeopleRequest {
  12446. /**
  12447. *
  12448. * @type {PeopleUpdateDto}
  12449. * @memberof PersonApiUpdatePeople
  12450. */
  12451. readonly peopleUpdateDto: PeopleUpdateDto
  12452. }
  12453. /**
  12454. * Request parameters for updatePerson operation in PersonApi.
  12455. * @export
  12456. * @interface PersonApiUpdatePersonRequest
  12457. */
  12458. export interface PersonApiUpdatePersonRequest {
  12459. /**
  12460. *
  12461. * @type {string}
  12462. * @memberof PersonApiUpdatePerson
  12463. */
  12464. readonly id: string
  12465. /**
  12466. *
  12467. * @type {PersonUpdateDto}
  12468. * @memberof PersonApiUpdatePerson
  12469. */
  12470. readonly personUpdateDto: PersonUpdateDto
  12471. }
  12472. /**
  12473. * PersonApi - object-oriented interface
  12474. * @export
  12475. * @class PersonApi
  12476. * @extends {BaseAPI}
  12477. */
  12478. export class PersonApi extends BaseAPI {
  12479. /**
  12480. *
  12481. * @param {PersonApiGetAllPeopleRequest} requestParameters Request parameters.
  12482. * @param {*} [options] Override http request option.
  12483. * @throws {RequiredError}
  12484. * @memberof PersonApi
  12485. */
  12486. public getAllPeople(requestParameters: PersonApiGetAllPeopleRequest = {}, options?: AxiosRequestConfig) {
  12487. return PersonApiFp(this.configuration).getAllPeople(requestParameters.withHidden, options).then((request) => request(this.axios, this.basePath));
  12488. }
  12489. /**
  12490. *
  12491. * @param {PersonApiGetPersonRequest} requestParameters Request parameters.
  12492. * @param {*} [options] Override http request option.
  12493. * @throws {RequiredError}
  12494. * @memberof PersonApi
  12495. */
  12496. public getPerson(requestParameters: PersonApiGetPersonRequest, options?: AxiosRequestConfig) {
  12497. return PersonApiFp(this.configuration).getPerson(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  12498. }
  12499. /**
  12500. *
  12501. * @param {PersonApiGetPersonAssetsRequest} requestParameters Request parameters.
  12502. * @param {*} [options] Override http request option.
  12503. * @throws {RequiredError}
  12504. * @memberof PersonApi
  12505. */
  12506. public getPersonAssets(requestParameters: PersonApiGetPersonAssetsRequest, options?: AxiosRequestConfig) {
  12507. return PersonApiFp(this.configuration).getPersonAssets(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  12508. }
  12509. /**
  12510. *
  12511. * @param {PersonApiGetPersonStatisticsRequest} requestParameters Request parameters.
  12512. * @param {*} [options] Override http request option.
  12513. * @throws {RequiredError}
  12514. * @memberof PersonApi
  12515. */
  12516. public getPersonStatistics(requestParameters: PersonApiGetPersonStatisticsRequest, options?: AxiosRequestConfig) {
  12517. return PersonApiFp(this.configuration).getPersonStatistics(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  12518. }
  12519. /**
  12520. *
  12521. * @param {PersonApiGetPersonThumbnailRequest} requestParameters Request parameters.
  12522. * @param {*} [options] Override http request option.
  12523. * @throws {RequiredError}
  12524. * @memberof PersonApi
  12525. */
  12526. public getPersonThumbnail(requestParameters: PersonApiGetPersonThumbnailRequest, options?: AxiosRequestConfig) {
  12527. return PersonApiFp(this.configuration).getPersonThumbnail(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  12528. }
  12529. /**
  12530. *
  12531. * @param {PersonApiMergePersonRequest} requestParameters Request parameters.
  12532. * @param {*} [options] Override http request option.
  12533. * @throws {RequiredError}
  12534. * @memberof PersonApi
  12535. */
  12536. public mergePerson(requestParameters: PersonApiMergePersonRequest, options?: AxiosRequestConfig) {
  12537. return PersonApiFp(this.configuration).mergePerson(requestParameters.id, requestParameters.mergePersonDto, options).then((request) => request(this.axios, this.basePath));
  12538. }
  12539. /**
  12540. *
  12541. * @param {PersonApiUpdatePeopleRequest} requestParameters Request parameters.
  12542. * @param {*} [options] Override http request option.
  12543. * @throws {RequiredError}
  12544. * @memberof PersonApi
  12545. */
  12546. public updatePeople(requestParameters: PersonApiUpdatePeopleRequest, options?: AxiosRequestConfig) {
  12547. return PersonApiFp(this.configuration).updatePeople(requestParameters.peopleUpdateDto, options).then((request) => request(this.axios, this.basePath));
  12548. }
  12549. /**
  12550. *
  12551. * @param {PersonApiUpdatePersonRequest} requestParameters Request parameters.
  12552. * @param {*} [options] Override http request option.
  12553. * @throws {RequiredError}
  12554. * @memberof PersonApi
  12555. */
  12556. public updatePerson(requestParameters: PersonApiUpdatePersonRequest, options?: AxiosRequestConfig) {
  12557. return PersonApiFp(this.configuration).updatePerson(requestParameters.id, requestParameters.personUpdateDto, options).then((request) => request(this.axios, this.basePath));
  12558. }
  12559. }
  12560. /**
  12561. * SearchApi - axios parameter creator
  12562. * @export
  12563. */
  12564. export const SearchApiAxiosParamCreator = function (configuration?: Configuration) {
  12565. return {
  12566. /**
  12567. *
  12568. * @param {*} [options] Override http request option.
  12569. * @throws {RequiredError}
  12570. */
  12571. getExploreData: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12572. const localVarPath = `/search/explore`;
  12573. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12574. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12575. let baseOptions;
  12576. if (configuration) {
  12577. baseOptions = configuration.baseOptions;
  12578. }
  12579. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12580. const localVarHeaderParameter = {} as any;
  12581. const localVarQueryParameter = {} as any;
  12582. // authentication cookie required
  12583. // authentication api_key required
  12584. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12585. // authentication bearer required
  12586. // http bearer authentication required
  12587. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12588. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12589. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12590. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12591. return {
  12592. url: toPathString(localVarUrlObj),
  12593. options: localVarRequestOptions,
  12594. };
  12595. },
  12596. /**
  12597. *
  12598. * @param {string} [q]
  12599. * @param {string} [query]
  12600. * @param {boolean} [clip]
  12601. * @param {'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER'} [type]
  12602. * @param {boolean} [isFavorite]
  12603. * @param {boolean} [isArchived]
  12604. * @param {string} [exifInfoCity]
  12605. * @param {string} [exifInfoState]
  12606. * @param {string} [exifInfoCountry]
  12607. * @param {string} [exifInfoMake]
  12608. * @param {string} [exifInfoModel]
  12609. * @param {string} [exifInfoProjectionType]
  12610. * @param {Array<string>} [smartInfoObjects]
  12611. * @param {Array<string>} [smartInfoTags]
  12612. * @param {boolean} [recent]
  12613. * @param {boolean} [motion]
  12614. * @param {*} [options] Override http request option.
  12615. * @throws {RequiredError}
  12616. */
  12617. 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> => {
  12618. const localVarPath = `/search`;
  12619. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12620. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12621. let baseOptions;
  12622. if (configuration) {
  12623. baseOptions = configuration.baseOptions;
  12624. }
  12625. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12626. const localVarHeaderParameter = {} as any;
  12627. const localVarQueryParameter = {} as any;
  12628. // authentication cookie required
  12629. // authentication api_key required
  12630. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12631. // authentication bearer required
  12632. // http bearer authentication required
  12633. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12634. if (q !== undefined) {
  12635. localVarQueryParameter['q'] = q;
  12636. }
  12637. if (query !== undefined) {
  12638. localVarQueryParameter['query'] = query;
  12639. }
  12640. if (clip !== undefined) {
  12641. localVarQueryParameter['clip'] = clip;
  12642. }
  12643. if (type !== undefined) {
  12644. localVarQueryParameter['type'] = type;
  12645. }
  12646. if (isFavorite !== undefined) {
  12647. localVarQueryParameter['isFavorite'] = isFavorite;
  12648. }
  12649. if (isArchived !== undefined) {
  12650. localVarQueryParameter['isArchived'] = isArchived;
  12651. }
  12652. if (exifInfoCity !== undefined) {
  12653. localVarQueryParameter['exifInfo.city'] = exifInfoCity;
  12654. }
  12655. if (exifInfoState !== undefined) {
  12656. localVarQueryParameter['exifInfo.state'] = exifInfoState;
  12657. }
  12658. if (exifInfoCountry !== undefined) {
  12659. localVarQueryParameter['exifInfo.country'] = exifInfoCountry;
  12660. }
  12661. if (exifInfoMake !== undefined) {
  12662. localVarQueryParameter['exifInfo.make'] = exifInfoMake;
  12663. }
  12664. if (exifInfoModel !== undefined) {
  12665. localVarQueryParameter['exifInfo.model'] = exifInfoModel;
  12666. }
  12667. if (exifInfoProjectionType !== undefined) {
  12668. localVarQueryParameter['exifInfo.projectionType'] = exifInfoProjectionType;
  12669. }
  12670. if (smartInfoObjects) {
  12671. localVarQueryParameter['smartInfo.objects'] = smartInfoObjects;
  12672. }
  12673. if (smartInfoTags) {
  12674. localVarQueryParameter['smartInfo.tags'] = smartInfoTags;
  12675. }
  12676. if (recent !== undefined) {
  12677. localVarQueryParameter['recent'] = recent;
  12678. }
  12679. if (motion !== undefined) {
  12680. localVarQueryParameter['motion'] = motion;
  12681. }
  12682. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12683. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12684. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12685. return {
  12686. url: toPathString(localVarUrlObj),
  12687. options: localVarRequestOptions,
  12688. };
  12689. },
  12690. /**
  12691. *
  12692. * @param {string} name
  12693. * @param {boolean} [withHidden]
  12694. * @param {*} [options] Override http request option.
  12695. * @throws {RequiredError}
  12696. */
  12697. searchPerson: async (name: string, withHidden?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12698. // verify required parameter 'name' is not null or undefined
  12699. assertParamExists('searchPerson', 'name', name)
  12700. const localVarPath = `/search/person`;
  12701. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12702. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12703. let baseOptions;
  12704. if (configuration) {
  12705. baseOptions = configuration.baseOptions;
  12706. }
  12707. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12708. const localVarHeaderParameter = {} as any;
  12709. const localVarQueryParameter = {} as any;
  12710. // authentication cookie required
  12711. // authentication api_key required
  12712. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12713. // authentication bearer required
  12714. // http bearer authentication required
  12715. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12716. if (name !== undefined) {
  12717. localVarQueryParameter['name'] = name;
  12718. }
  12719. if (withHidden !== undefined) {
  12720. localVarQueryParameter['withHidden'] = withHidden;
  12721. }
  12722. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12723. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12724. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12725. return {
  12726. url: toPathString(localVarUrlObj),
  12727. options: localVarRequestOptions,
  12728. };
  12729. },
  12730. }
  12731. };
  12732. /**
  12733. * SearchApi - functional programming interface
  12734. * @export
  12735. */
  12736. export const SearchApiFp = function(configuration?: Configuration) {
  12737. const localVarAxiosParamCreator = SearchApiAxiosParamCreator(configuration)
  12738. return {
  12739. /**
  12740. *
  12741. * @param {*} [options] Override http request option.
  12742. * @throws {RequiredError}
  12743. */
  12744. async getExploreData(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<SearchExploreResponseDto>>> {
  12745. const localVarAxiosArgs = await localVarAxiosParamCreator.getExploreData(options);
  12746. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12747. },
  12748. /**
  12749. *
  12750. * @param {string} [q]
  12751. * @param {string} [query]
  12752. * @param {boolean} [clip]
  12753. * @param {'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER'} [type]
  12754. * @param {boolean} [isFavorite]
  12755. * @param {boolean} [isArchived]
  12756. * @param {string} [exifInfoCity]
  12757. * @param {string} [exifInfoState]
  12758. * @param {string} [exifInfoCountry]
  12759. * @param {string} [exifInfoMake]
  12760. * @param {string} [exifInfoModel]
  12761. * @param {string} [exifInfoProjectionType]
  12762. * @param {Array<string>} [smartInfoObjects]
  12763. * @param {Array<string>} [smartInfoTags]
  12764. * @param {boolean} [recent]
  12765. * @param {boolean} [motion]
  12766. * @param {*} [options] Override http request option.
  12767. * @throws {RequiredError}
  12768. */
  12769. 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>> {
  12770. const localVarAxiosArgs = await localVarAxiosParamCreator.search(q, query, clip, type, isFavorite, isArchived, exifInfoCity, exifInfoState, exifInfoCountry, exifInfoMake, exifInfoModel, exifInfoProjectionType, smartInfoObjects, smartInfoTags, recent, motion, options);
  12771. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12772. },
  12773. /**
  12774. *
  12775. * @param {string} name
  12776. * @param {boolean} [withHidden]
  12777. * @param {*} [options] Override http request option.
  12778. * @throws {RequiredError}
  12779. */
  12780. async searchPerson(name: string, withHidden?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<PersonResponseDto>>> {
  12781. const localVarAxiosArgs = await localVarAxiosParamCreator.searchPerson(name, withHidden, options);
  12782. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12783. },
  12784. }
  12785. };
  12786. /**
  12787. * SearchApi - factory interface
  12788. * @export
  12789. */
  12790. export const SearchApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  12791. const localVarFp = SearchApiFp(configuration)
  12792. return {
  12793. /**
  12794. *
  12795. * @param {*} [options] Override http request option.
  12796. * @throws {RequiredError}
  12797. */
  12798. getExploreData(options?: AxiosRequestConfig): AxiosPromise<Array<SearchExploreResponseDto>> {
  12799. return localVarFp.getExploreData(options).then((request) => request(axios, basePath));
  12800. },
  12801. /**
  12802. *
  12803. * @param {SearchApiSearchRequest} requestParameters Request parameters.
  12804. * @param {*} [options] Override http request option.
  12805. * @throws {RequiredError}
  12806. */
  12807. search(requestParameters: SearchApiSearchRequest = {}, options?: AxiosRequestConfig): AxiosPromise<SearchResponseDto> {
  12808. 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));
  12809. },
  12810. /**
  12811. *
  12812. * @param {SearchApiSearchPersonRequest} requestParameters Request parameters.
  12813. * @param {*} [options] Override http request option.
  12814. * @throws {RequiredError}
  12815. */
  12816. searchPerson(requestParameters: SearchApiSearchPersonRequest, options?: AxiosRequestConfig): AxiosPromise<Array<PersonResponseDto>> {
  12817. return localVarFp.searchPerson(requestParameters.name, requestParameters.withHidden, options).then((request) => request(axios, basePath));
  12818. },
  12819. };
  12820. };
  12821. /**
  12822. * Request parameters for search operation in SearchApi.
  12823. * @export
  12824. * @interface SearchApiSearchRequest
  12825. */
  12826. export interface SearchApiSearchRequest {
  12827. /**
  12828. *
  12829. * @type {string}
  12830. * @memberof SearchApiSearch
  12831. */
  12832. readonly q?: string
  12833. /**
  12834. *
  12835. * @type {string}
  12836. * @memberof SearchApiSearch
  12837. */
  12838. readonly query?: string
  12839. /**
  12840. *
  12841. * @type {boolean}
  12842. * @memberof SearchApiSearch
  12843. */
  12844. readonly clip?: boolean
  12845. /**
  12846. *
  12847. * @type {'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER'}
  12848. * @memberof SearchApiSearch
  12849. */
  12850. readonly type?: 'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER'
  12851. /**
  12852. *
  12853. * @type {boolean}
  12854. * @memberof SearchApiSearch
  12855. */
  12856. readonly isFavorite?: boolean
  12857. /**
  12858. *
  12859. * @type {boolean}
  12860. * @memberof SearchApiSearch
  12861. */
  12862. readonly isArchived?: boolean
  12863. /**
  12864. *
  12865. * @type {string}
  12866. * @memberof SearchApiSearch
  12867. */
  12868. readonly exifInfoCity?: string
  12869. /**
  12870. *
  12871. * @type {string}
  12872. * @memberof SearchApiSearch
  12873. */
  12874. readonly exifInfoState?: string
  12875. /**
  12876. *
  12877. * @type {string}
  12878. * @memberof SearchApiSearch
  12879. */
  12880. readonly exifInfoCountry?: string
  12881. /**
  12882. *
  12883. * @type {string}
  12884. * @memberof SearchApiSearch
  12885. */
  12886. readonly exifInfoMake?: string
  12887. /**
  12888. *
  12889. * @type {string}
  12890. * @memberof SearchApiSearch
  12891. */
  12892. readonly exifInfoModel?: string
  12893. /**
  12894. *
  12895. * @type {string}
  12896. * @memberof SearchApiSearch
  12897. */
  12898. readonly exifInfoProjectionType?: string
  12899. /**
  12900. *
  12901. * @type {Array<string>}
  12902. * @memberof SearchApiSearch
  12903. */
  12904. readonly smartInfoObjects?: Array<string>
  12905. /**
  12906. *
  12907. * @type {Array<string>}
  12908. * @memberof SearchApiSearch
  12909. */
  12910. readonly smartInfoTags?: Array<string>
  12911. /**
  12912. *
  12913. * @type {boolean}
  12914. * @memberof SearchApiSearch
  12915. */
  12916. readonly recent?: boolean
  12917. /**
  12918. *
  12919. * @type {boolean}
  12920. * @memberof SearchApiSearch
  12921. */
  12922. readonly motion?: boolean
  12923. }
  12924. /**
  12925. * Request parameters for searchPerson operation in SearchApi.
  12926. * @export
  12927. * @interface SearchApiSearchPersonRequest
  12928. */
  12929. export interface SearchApiSearchPersonRequest {
  12930. /**
  12931. *
  12932. * @type {string}
  12933. * @memberof SearchApiSearchPerson
  12934. */
  12935. readonly name: string
  12936. /**
  12937. *
  12938. * @type {boolean}
  12939. * @memberof SearchApiSearchPerson
  12940. */
  12941. readonly withHidden?: boolean
  12942. }
  12943. /**
  12944. * SearchApi - object-oriented interface
  12945. * @export
  12946. * @class SearchApi
  12947. * @extends {BaseAPI}
  12948. */
  12949. export class SearchApi extends BaseAPI {
  12950. /**
  12951. *
  12952. * @param {*} [options] Override http request option.
  12953. * @throws {RequiredError}
  12954. * @memberof SearchApi
  12955. */
  12956. public getExploreData(options?: AxiosRequestConfig) {
  12957. return SearchApiFp(this.configuration).getExploreData(options).then((request) => request(this.axios, this.basePath));
  12958. }
  12959. /**
  12960. *
  12961. * @param {SearchApiSearchRequest} requestParameters Request parameters.
  12962. * @param {*} [options] Override http request option.
  12963. * @throws {RequiredError}
  12964. * @memberof SearchApi
  12965. */
  12966. public search(requestParameters: SearchApiSearchRequest = {}, options?: AxiosRequestConfig) {
  12967. 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));
  12968. }
  12969. /**
  12970. *
  12971. * @param {SearchApiSearchPersonRequest} requestParameters Request parameters.
  12972. * @param {*} [options] Override http request option.
  12973. * @throws {RequiredError}
  12974. * @memberof SearchApi
  12975. */
  12976. public searchPerson(requestParameters: SearchApiSearchPersonRequest, options?: AxiosRequestConfig) {
  12977. return SearchApiFp(this.configuration).searchPerson(requestParameters.name, requestParameters.withHidden, options).then((request) => request(this.axios, this.basePath));
  12978. }
  12979. }
  12980. /**
  12981. * ServerInfoApi - axios parameter creator
  12982. * @export
  12983. */
  12984. export const ServerInfoApiAxiosParamCreator = function (configuration?: Configuration) {
  12985. return {
  12986. /**
  12987. *
  12988. * @param {*} [options] Override http request option.
  12989. * @throws {RequiredError}
  12990. */
  12991. getServerConfig: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12992. const localVarPath = `/server-info/config`;
  12993. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12994. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12995. let baseOptions;
  12996. if (configuration) {
  12997. baseOptions = configuration.baseOptions;
  12998. }
  12999. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13000. const localVarHeaderParameter = {} as any;
  13001. const localVarQueryParameter = {} as any;
  13002. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13003. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13004. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13005. return {
  13006. url: toPathString(localVarUrlObj),
  13007. options: localVarRequestOptions,
  13008. };
  13009. },
  13010. /**
  13011. *
  13012. * @param {*} [options] Override http request option.
  13013. * @throws {RequiredError}
  13014. */
  13015. getServerFeatures: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13016. const localVarPath = `/server-info/features`;
  13017. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13018. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13019. let baseOptions;
  13020. if (configuration) {
  13021. baseOptions = configuration.baseOptions;
  13022. }
  13023. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13024. const localVarHeaderParameter = {} as any;
  13025. const localVarQueryParameter = {} as any;
  13026. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13027. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13028. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13029. return {
  13030. url: toPathString(localVarUrlObj),
  13031. options: localVarRequestOptions,
  13032. };
  13033. },
  13034. /**
  13035. *
  13036. * @param {*} [options] Override http request option.
  13037. * @throws {RequiredError}
  13038. */
  13039. getServerInfo: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13040. const localVarPath = `/server-info`;
  13041. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13042. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13043. let baseOptions;
  13044. if (configuration) {
  13045. baseOptions = configuration.baseOptions;
  13046. }
  13047. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13048. const localVarHeaderParameter = {} as any;
  13049. const localVarQueryParameter = {} as any;
  13050. // authentication cookie required
  13051. // authentication api_key required
  13052. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13053. // authentication bearer required
  13054. // http bearer authentication required
  13055. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13056. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13057. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13058. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13059. return {
  13060. url: toPathString(localVarUrlObj),
  13061. options: localVarRequestOptions,
  13062. };
  13063. },
  13064. /**
  13065. *
  13066. * @param {*} [options] Override http request option.
  13067. * @throws {RequiredError}
  13068. */
  13069. getServerStatistics: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13070. const localVarPath = `/server-info/statistics`;
  13071. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13072. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13073. let baseOptions;
  13074. if (configuration) {
  13075. baseOptions = configuration.baseOptions;
  13076. }
  13077. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13078. const localVarHeaderParameter = {} as any;
  13079. const localVarQueryParameter = {} as any;
  13080. // authentication cookie required
  13081. // authentication api_key required
  13082. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13083. // authentication bearer required
  13084. // http bearer authentication required
  13085. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13086. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13087. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13088. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13089. return {
  13090. url: toPathString(localVarUrlObj),
  13091. options: localVarRequestOptions,
  13092. };
  13093. },
  13094. /**
  13095. *
  13096. * @param {*} [options] Override http request option.
  13097. * @throws {RequiredError}
  13098. */
  13099. getServerVersion: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13100. const localVarPath = `/server-info/version`;
  13101. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13102. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13103. let baseOptions;
  13104. if (configuration) {
  13105. baseOptions = configuration.baseOptions;
  13106. }
  13107. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13108. const localVarHeaderParameter = {} as any;
  13109. const localVarQueryParameter = {} as any;
  13110. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13111. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13112. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13113. return {
  13114. url: toPathString(localVarUrlObj),
  13115. options: localVarRequestOptions,
  13116. };
  13117. },
  13118. /**
  13119. *
  13120. * @param {*} [options] Override http request option.
  13121. * @throws {RequiredError}
  13122. */
  13123. getSupportedMediaTypes: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13124. const localVarPath = `/server-info/media-types`;
  13125. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13126. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13127. let baseOptions;
  13128. if (configuration) {
  13129. baseOptions = configuration.baseOptions;
  13130. }
  13131. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13132. const localVarHeaderParameter = {} as any;
  13133. const localVarQueryParameter = {} as any;
  13134. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13135. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13136. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13137. return {
  13138. url: toPathString(localVarUrlObj),
  13139. options: localVarRequestOptions,
  13140. };
  13141. },
  13142. /**
  13143. *
  13144. * @param {*} [options] Override http request option.
  13145. * @throws {RequiredError}
  13146. */
  13147. getTheme: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13148. const localVarPath = `/server-info/theme`;
  13149. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13150. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13151. let baseOptions;
  13152. if (configuration) {
  13153. baseOptions = configuration.baseOptions;
  13154. }
  13155. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13156. const localVarHeaderParameter = {} as any;
  13157. const localVarQueryParameter = {} as any;
  13158. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13159. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13160. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13161. return {
  13162. url: toPathString(localVarUrlObj),
  13163. options: localVarRequestOptions,
  13164. };
  13165. },
  13166. /**
  13167. *
  13168. * @param {*} [options] Override http request option.
  13169. * @throws {RequiredError}
  13170. */
  13171. pingServer: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13172. const localVarPath = `/server-info/ping`;
  13173. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13174. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13175. let baseOptions;
  13176. if (configuration) {
  13177. baseOptions = configuration.baseOptions;
  13178. }
  13179. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13180. const localVarHeaderParameter = {} as any;
  13181. const localVarQueryParameter = {} as any;
  13182. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13183. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13184. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13185. return {
  13186. url: toPathString(localVarUrlObj),
  13187. options: localVarRequestOptions,
  13188. };
  13189. },
  13190. }
  13191. };
  13192. /**
  13193. * ServerInfoApi - functional programming interface
  13194. * @export
  13195. */
  13196. export const ServerInfoApiFp = function(configuration?: Configuration) {
  13197. const localVarAxiosParamCreator = ServerInfoApiAxiosParamCreator(configuration)
  13198. return {
  13199. /**
  13200. *
  13201. * @param {*} [options] Override http request option.
  13202. * @throws {RequiredError}
  13203. */
  13204. async getServerConfig(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerConfigDto>> {
  13205. const localVarAxiosArgs = await localVarAxiosParamCreator.getServerConfig(options);
  13206. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13207. },
  13208. /**
  13209. *
  13210. * @param {*} [options] Override http request option.
  13211. * @throws {RequiredError}
  13212. */
  13213. async getServerFeatures(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerFeaturesDto>> {
  13214. const localVarAxiosArgs = await localVarAxiosParamCreator.getServerFeatures(options);
  13215. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13216. },
  13217. /**
  13218. *
  13219. * @param {*} [options] Override http request option.
  13220. * @throws {RequiredError}
  13221. */
  13222. async getServerInfo(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerInfoResponseDto>> {
  13223. const localVarAxiosArgs = await localVarAxiosParamCreator.getServerInfo(options);
  13224. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13225. },
  13226. /**
  13227. *
  13228. * @param {*} [options] Override http request option.
  13229. * @throws {RequiredError}
  13230. */
  13231. async getServerStatistics(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerStatsResponseDto>> {
  13232. const localVarAxiosArgs = await localVarAxiosParamCreator.getServerStatistics(options);
  13233. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13234. },
  13235. /**
  13236. *
  13237. * @param {*} [options] Override http request option.
  13238. * @throws {RequiredError}
  13239. */
  13240. async getServerVersion(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerVersionResponseDto>> {
  13241. const localVarAxiosArgs = await localVarAxiosParamCreator.getServerVersion(options);
  13242. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13243. },
  13244. /**
  13245. *
  13246. * @param {*} [options] Override http request option.
  13247. * @throws {RequiredError}
  13248. */
  13249. async getSupportedMediaTypes(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerMediaTypesResponseDto>> {
  13250. const localVarAxiosArgs = await localVarAxiosParamCreator.getSupportedMediaTypes(options);
  13251. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13252. },
  13253. /**
  13254. *
  13255. * @param {*} [options] Override http request option.
  13256. * @throws {RequiredError}
  13257. */
  13258. async getTheme(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerThemeDto>> {
  13259. const localVarAxiosArgs = await localVarAxiosParamCreator.getTheme(options);
  13260. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13261. },
  13262. /**
  13263. *
  13264. * @param {*} [options] Override http request option.
  13265. * @throws {RequiredError}
  13266. */
  13267. async pingServer(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerPingResponse>> {
  13268. const localVarAxiosArgs = await localVarAxiosParamCreator.pingServer(options);
  13269. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13270. },
  13271. }
  13272. };
  13273. /**
  13274. * ServerInfoApi - factory interface
  13275. * @export
  13276. */
  13277. export const ServerInfoApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  13278. const localVarFp = ServerInfoApiFp(configuration)
  13279. return {
  13280. /**
  13281. *
  13282. * @param {*} [options] Override http request option.
  13283. * @throws {RequiredError}
  13284. */
  13285. getServerConfig(options?: AxiosRequestConfig): AxiosPromise<ServerConfigDto> {
  13286. return localVarFp.getServerConfig(options).then((request) => request(axios, basePath));
  13287. },
  13288. /**
  13289. *
  13290. * @param {*} [options] Override http request option.
  13291. * @throws {RequiredError}
  13292. */
  13293. getServerFeatures(options?: AxiosRequestConfig): AxiosPromise<ServerFeaturesDto> {
  13294. return localVarFp.getServerFeatures(options).then((request) => request(axios, basePath));
  13295. },
  13296. /**
  13297. *
  13298. * @param {*} [options] Override http request option.
  13299. * @throws {RequiredError}
  13300. */
  13301. getServerInfo(options?: AxiosRequestConfig): AxiosPromise<ServerInfoResponseDto> {
  13302. return localVarFp.getServerInfo(options).then((request) => request(axios, basePath));
  13303. },
  13304. /**
  13305. *
  13306. * @param {*} [options] Override http request option.
  13307. * @throws {RequiredError}
  13308. */
  13309. getServerStatistics(options?: AxiosRequestConfig): AxiosPromise<ServerStatsResponseDto> {
  13310. return localVarFp.getServerStatistics(options).then((request) => request(axios, basePath));
  13311. },
  13312. /**
  13313. *
  13314. * @param {*} [options] Override http request option.
  13315. * @throws {RequiredError}
  13316. */
  13317. getServerVersion(options?: AxiosRequestConfig): AxiosPromise<ServerVersionResponseDto> {
  13318. return localVarFp.getServerVersion(options).then((request) => request(axios, basePath));
  13319. },
  13320. /**
  13321. *
  13322. * @param {*} [options] Override http request option.
  13323. * @throws {RequiredError}
  13324. */
  13325. getSupportedMediaTypes(options?: AxiosRequestConfig): AxiosPromise<ServerMediaTypesResponseDto> {
  13326. return localVarFp.getSupportedMediaTypes(options).then((request) => request(axios, basePath));
  13327. },
  13328. /**
  13329. *
  13330. * @param {*} [options] Override http request option.
  13331. * @throws {RequiredError}
  13332. */
  13333. getTheme(options?: AxiosRequestConfig): AxiosPromise<ServerThemeDto> {
  13334. return localVarFp.getTheme(options).then((request) => request(axios, basePath));
  13335. },
  13336. /**
  13337. *
  13338. * @param {*} [options] Override http request option.
  13339. * @throws {RequiredError}
  13340. */
  13341. pingServer(options?: AxiosRequestConfig): AxiosPromise<ServerPingResponse> {
  13342. return localVarFp.pingServer(options).then((request) => request(axios, basePath));
  13343. },
  13344. };
  13345. };
  13346. /**
  13347. * ServerInfoApi - object-oriented interface
  13348. * @export
  13349. * @class ServerInfoApi
  13350. * @extends {BaseAPI}
  13351. */
  13352. export class ServerInfoApi extends BaseAPI {
  13353. /**
  13354. *
  13355. * @param {*} [options] Override http request option.
  13356. * @throws {RequiredError}
  13357. * @memberof ServerInfoApi
  13358. */
  13359. public getServerConfig(options?: AxiosRequestConfig) {
  13360. return ServerInfoApiFp(this.configuration).getServerConfig(options).then((request) => request(this.axios, this.basePath));
  13361. }
  13362. /**
  13363. *
  13364. * @param {*} [options] Override http request option.
  13365. * @throws {RequiredError}
  13366. * @memberof ServerInfoApi
  13367. */
  13368. public getServerFeatures(options?: AxiosRequestConfig) {
  13369. return ServerInfoApiFp(this.configuration).getServerFeatures(options).then((request) => request(this.axios, this.basePath));
  13370. }
  13371. /**
  13372. *
  13373. * @param {*} [options] Override http request option.
  13374. * @throws {RequiredError}
  13375. * @memberof ServerInfoApi
  13376. */
  13377. public getServerInfo(options?: AxiosRequestConfig) {
  13378. return ServerInfoApiFp(this.configuration).getServerInfo(options).then((request) => request(this.axios, this.basePath));
  13379. }
  13380. /**
  13381. *
  13382. * @param {*} [options] Override http request option.
  13383. * @throws {RequiredError}
  13384. * @memberof ServerInfoApi
  13385. */
  13386. public getServerStatistics(options?: AxiosRequestConfig) {
  13387. return ServerInfoApiFp(this.configuration).getServerStatistics(options).then((request) => request(this.axios, this.basePath));
  13388. }
  13389. /**
  13390. *
  13391. * @param {*} [options] Override http request option.
  13392. * @throws {RequiredError}
  13393. * @memberof ServerInfoApi
  13394. */
  13395. public getServerVersion(options?: AxiosRequestConfig) {
  13396. return ServerInfoApiFp(this.configuration).getServerVersion(options).then((request) => request(this.axios, this.basePath));
  13397. }
  13398. /**
  13399. *
  13400. * @param {*} [options] Override http request option.
  13401. * @throws {RequiredError}
  13402. * @memberof ServerInfoApi
  13403. */
  13404. public getSupportedMediaTypes(options?: AxiosRequestConfig) {
  13405. return ServerInfoApiFp(this.configuration).getSupportedMediaTypes(options).then((request) => request(this.axios, this.basePath));
  13406. }
  13407. /**
  13408. *
  13409. * @param {*} [options] Override http request option.
  13410. * @throws {RequiredError}
  13411. * @memberof ServerInfoApi
  13412. */
  13413. public getTheme(options?: AxiosRequestConfig) {
  13414. return ServerInfoApiFp(this.configuration).getTheme(options).then((request) => request(this.axios, this.basePath));
  13415. }
  13416. /**
  13417. *
  13418. * @param {*} [options] Override http request option.
  13419. * @throws {RequiredError}
  13420. * @memberof ServerInfoApi
  13421. */
  13422. public pingServer(options?: AxiosRequestConfig) {
  13423. return ServerInfoApiFp(this.configuration).pingServer(options).then((request) => request(this.axios, this.basePath));
  13424. }
  13425. }
  13426. /**
  13427. * SharedLinkApi - axios parameter creator
  13428. * @export
  13429. */
  13430. export const SharedLinkApiAxiosParamCreator = function (configuration?: Configuration) {
  13431. return {
  13432. /**
  13433. *
  13434. * @param {string} id
  13435. * @param {AssetIdsDto} assetIdsDto
  13436. * @param {string} [key]
  13437. * @param {*} [options] Override http request option.
  13438. * @throws {RequiredError}
  13439. */
  13440. addSharedLinkAssets: async (id: string, assetIdsDto: AssetIdsDto, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13441. // verify required parameter 'id' is not null or undefined
  13442. assertParamExists('addSharedLinkAssets', 'id', id)
  13443. // verify required parameter 'assetIdsDto' is not null or undefined
  13444. assertParamExists('addSharedLinkAssets', 'assetIdsDto', assetIdsDto)
  13445. const localVarPath = `/shared-link/{id}/assets`
  13446. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  13447. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13448. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13449. let baseOptions;
  13450. if (configuration) {
  13451. baseOptions = configuration.baseOptions;
  13452. }
  13453. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  13454. const localVarHeaderParameter = {} as any;
  13455. const localVarQueryParameter = {} as any;
  13456. // authentication cookie required
  13457. // authentication api_key required
  13458. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13459. // authentication bearer required
  13460. // http bearer authentication required
  13461. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13462. if (key !== undefined) {
  13463. localVarQueryParameter['key'] = key;
  13464. }
  13465. localVarHeaderParameter['Content-Type'] = 'application/json';
  13466. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13467. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13468. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13469. localVarRequestOptions.data = serializeDataIfNeeded(assetIdsDto, localVarRequestOptions, configuration)
  13470. return {
  13471. url: toPathString(localVarUrlObj),
  13472. options: localVarRequestOptions,
  13473. };
  13474. },
  13475. /**
  13476. *
  13477. * @param {SharedLinkCreateDto} sharedLinkCreateDto
  13478. * @param {*} [options] Override http request option.
  13479. * @throws {RequiredError}
  13480. */
  13481. createSharedLink: async (sharedLinkCreateDto: SharedLinkCreateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13482. // verify required parameter 'sharedLinkCreateDto' is not null or undefined
  13483. assertParamExists('createSharedLink', 'sharedLinkCreateDto', sharedLinkCreateDto)
  13484. const localVarPath = `/shared-link`;
  13485. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13486. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13487. let baseOptions;
  13488. if (configuration) {
  13489. baseOptions = configuration.baseOptions;
  13490. }
  13491. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  13492. const localVarHeaderParameter = {} as any;
  13493. const localVarQueryParameter = {} as any;
  13494. // authentication cookie required
  13495. // authentication api_key required
  13496. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13497. // authentication bearer required
  13498. // http bearer authentication required
  13499. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13500. localVarHeaderParameter['Content-Type'] = 'application/json';
  13501. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13502. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13503. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13504. localVarRequestOptions.data = serializeDataIfNeeded(sharedLinkCreateDto, localVarRequestOptions, configuration)
  13505. return {
  13506. url: toPathString(localVarUrlObj),
  13507. options: localVarRequestOptions,
  13508. };
  13509. },
  13510. /**
  13511. *
  13512. * @param {*} [options] Override http request option.
  13513. * @throws {RequiredError}
  13514. */
  13515. getAllSharedLinks: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13516. const localVarPath = `/shared-link`;
  13517. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13518. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13519. let baseOptions;
  13520. if (configuration) {
  13521. baseOptions = configuration.baseOptions;
  13522. }
  13523. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13524. const localVarHeaderParameter = {} as any;
  13525. const localVarQueryParameter = {} as any;
  13526. // authentication cookie required
  13527. // authentication api_key required
  13528. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13529. // authentication bearer required
  13530. // http bearer authentication required
  13531. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13532. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13533. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13534. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13535. return {
  13536. url: toPathString(localVarUrlObj),
  13537. options: localVarRequestOptions,
  13538. };
  13539. },
  13540. /**
  13541. *
  13542. * @param {string} [password]
  13543. * @param {string} [token]
  13544. * @param {string} [key]
  13545. * @param {*} [options] Override http request option.
  13546. * @throws {RequiredError}
  13547. */
  13548. getMySharedLink: async (password?: string, token?: string, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13549. const localVarPath = `/shared-link/me`;
  13550. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13551. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13552. let baseOptions;
  13553. if (configuration) {
  13554. baseOptions = configuration.baseOptions;
  13555. }
  13556. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13557. const localVarHeaderParameter = {} as any;
  13558. const localVarQueryParameter = {} as any;
  13559. // authentication cookie required
  13560. // authentication api_key required
  13561. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13562. // authentication bearer required
  13563. // http bearer authentication required
  13564. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13565. if (password !== undefined) {
  13566. localVarQueryParameter['password'] = password;
  13567. }
  13568. if (token !== undefined) {
  13569. localVarQueryParameter['token'] = token;
  13570. }
  13571. if (key !== undefined) {
  13572. localVarQueryParameter['key'] = key;
  13573. }
  13574. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13575. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13576. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13577. return {
  13578. url: toPathString(localVarUrlObj),
  13579. options: localVarRequestOptions,
  13580. };
  13581. },
  13582. /**
  13583. *
  13584. * @param {string} id
  13585. * @param {*} [options] Override http request option.
  13586. * @throws {RequiredError}
  13587. */
  13588. getSharedLinkById: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13589. // verify required parameter 'id' is not null or undefined
  13590. assertParamExists('getSharedLinkById', 'id', id)
  13591. const localVarPath = `/shared-link/{id}`
  13592. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  13593. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13594. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13595. let baseOptions;
  13596. if (configuration) {
  13597. baseOptions = configuration.baseOptions;
  13598. }
  13599. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13600. const localVarHeaderParameter = {} as any;
  13601. const localVarQueryParameter = {} as any;
  13602. // authentication cookie required
  13603. // authentication api_key required
  13604. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13605. // authentication bearer required
  13606. // http bearer authentication required
  13607. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13608. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13609. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13610. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13611. return {
  13612. url: toPathString(localVarUrlObj),
  13613. options: localVarRequestOptions,
  13614. };
  13615. },
  13616. /**
  13617. *
  13618. * @param {string} id
  13619. * @param {*} [options] Override http request option.
  13620. * @throws {RequiredError}
  13621. */
  13622. removeSharedLink: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13623. // verify required parameter 'id' is not null or undefined
  13624. assertParamExists('removeSharedLink', 'id', id)
  13625. const localVarPath = `/shared-link/{id}`
  13626. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  13627. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13628. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13629. let baseOptions;
  13630. if (configuration) {
  13631. baseOptions = configuration.baseOptions;
  13632. }
  13633. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  13634. const localVarHeaderParameter = {} as any;
  13635. const localVarQueryParameter = {} as any;
  13636. // authentication cookie required
  13637. // authentication api_key required
  13638. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13639. // authentication bearer required
  13640. // http bearer authentication required
  13641. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13642. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13643. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13644. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13645. return {
  13646. url: toPathString(localVarUrlObj),
  13647. options: localVarRequestOptions,
  13648. };
  13649. },
  13650. /**
  13651. *
  13652. * @param {string} id
  13653. * @param {AssetIdsDto} assetIdsDto
  13654. * @param {string} [key]
  13655. * @param {*} [options] Override http request option.
  13656. * @throws {RequiredError}
  13657. */
  13658. removeSharedLinkAssets: async (id: string, assetIdsDto: AssetIdsDto, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13659. // verify required parameter 'id' is not null or undefined
  13660. assertParamExists('removeSharedLinkAssets', 'id', id)
  13661. // verify required parameter 'assetIdsDto' is not null or undefined
  13662. assertParamExists('removeSharedLinkAssets', 'assetIdsDto', assetIdsDto)
  13663. const localVarPath = `/shared-link/{id}/assets`
  13664. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  13665. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13666. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13667. let baseOptions;
  13668. if (configuration) {
  13669. baseOptions = configuration.baseOptions;
  13670. }
  13671. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  13672. const localVarHeaderParameter = {} as any;
  13673. const localVarQueryParameter = {} as any;
  13674. // authentication cookie required
  13675. // authentication api_key required
  13676. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13677. // authentication bearer required
  13678. // http bearer authentication required
  13679. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13680. if (key !== undefined) {
  13681. localVarQueryParameter['key'] = key;
  13682. }
  13683. localVarHeaderParameter['Content-Type'] = 'application/json';
  13684. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13685. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13686. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13687. localVarRequestOptions.data = serializeDataIfNeeded(assetIdsDto, localVarRequestOptions, configuration)
  13688. return {
  13689. url: toPathString(localVarUrlObj),
  13690. options: localVarRequestOptions,
  13691. };
  13692. },
  13693. /**
  13694. *
  13695. * @param {string} id
  13696. * @param {SharedLinkEditDto} sharedLinkEditDto
  13697. * @param {*} [options] Override http request option.
  13698. * @throws {RequiredError}
  13699. */
  13700. updateSharedLink: async (id: string, sharedLinkEditDto: SharedLinkEditDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13701. // verify required parameter 'id' is not null or undefined
  13702. assertParamExists('updateSharedLink', 'id', id)
  13703. // verify required parameter 'sharedLinkEditDto' is not null or undefined
  13704. assertParamExists('updateSharedLink', 'sharedLinkEditDto', sharedLinkEditDto)
  13705. const localVarPath = `/shared-link/{id}`
  13706. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  13707. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13708. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13709. let baseOptions;
  13710. if (configuration) {
  13711. baseOptions = configuration.baseOptions;
  13712. }
  13713. const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
  13714. const localVarHeaderParameter = {} as any;
  13715. const localVarQueryParameter = {} as any;
  13716. // authentication cookie required
  13717. // authentication api_key required
  13718. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13719. // authentication bearer required
  13720. // http bearer authentication required
  13721. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13722. localVarHeaderParameter['Content-Type'] = 'application/json';
  13723. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13724. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13725. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13726. localVarRequestOptions.data = serializeDataIfNeeded(sharedLinkEditDto, localVarRequestOptions, configuration)
  13727. return {
  13728. url: toPathString(localVarUrlObj),
  13729. options: localVarRequestOptions,
  13730. };
  13731. },
  13732. }
  13733. };
  13734. /**
  13735. * SharedLinkApi - functional programming interface
  13736. * @export
  13737. */
  13738. export const SharedLinkApiFp = function(configuration?: Configuration) {
  13739. const localVarAxiosParamCreator = SharedLinkApiAxiosParamCreator(configuration)
  13740. return {
  13741. /**
  13742. *
  13743. * @param {string} id
  13744. * @param {AssetIdsDto} assetIdsDto
  13745. * @param {string} [key]
  13746. * @param {*} [options] Override http request option.
  13747. * @throws {RequiredError}
  13748. */
  13749. async addSharedLinkAssets(id: string, assetIdsDto: AssetIdsDto, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetIdsResponseDto>>> {
  13750. const localVarAxiosArgs = await localVarAxiosParamCreator.addSharedLinkAssets(id, assetIdsDto, key, options);
  13751. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13752. },
  13753. /**
  13754. *
  13755. * @param {SharedLinkCreateDto} sharedLinkCreateDto
  13756. * @param {*} [options] Override http request option.
  13757. * @throws {RequiredError}
  13758. */
  13759. async createSharedLink(sharedLinkCreateDto: SharedLinkCreateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SharedLinkResponseDto>> {
  13760. const localVarAxiosArgs = await localVarAxiosParamCreator.createSharedLink(sharedLinkCreateDto, options);
  13761. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13762. },
  13763. /**
  13764. *
  13765. * @param {*} [options] Override http request option.
  13766. * @throws {RequiredError}
  13767. */
  13768. async getAllSharedLinks(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<SharedLinkResponseDto>>> {
  13769. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllSharedLinks(options);
  13770. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13771. },
  13772. /**
  13773. *
  13774. * @param {string} [password]
  13775. * @param {string} [token]
  13776. * @param {string} [key]
  13777. * @param {*} [options] Override http request option.
  13778. * @throws {RequiredError}
  13779. */
  13780. async getMySharedLink(password?: string, token?: string, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SharedLinkResponseDto>> {
  13781. const localVarAxiosArgs = await localVarAxiosParamCreator.getMySharedLink(password, token, key, options);
  13782. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13783. },
  13784. /**
  13785. *
  13786. * @param {string} id
  13787. * @param {*} [options] Override http request option.
  13788. * @throws {RequiredError}
  13789. */
  13790. async getSharedLinkById(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SharedLinkResponseDto>> {
  13791. const localVarAxiosArgs = await localVarAxiosParamCreator.getSharedLinkById(id, options);
  13792. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13793. },
  13794. /**
  13795. *
  13796. * @param {string} id
  13797. * @param {*} [options] Override http request option.
  13798. * @throws {RequiredError}
  13799. */
  13800. async removeSharedLink(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  13801. const localVarAxiosArgs = await localVarAxiosParamCreator.removeSharedLink(id, options);
  13802. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13803. },
  13804. /**
  13805. *
  13806. * @param {string} id
  13807. * @param {AssetIdsDto} assetIdsDto
  13808. * @param {string} [key]
  13809. * @param {*} [options] Override http request option.
  13810. * @throws {RequiredError}
  13811. */
  13812. async removeSharedLinkAssets(id: string, assetIdsDto: AssetIdsDto, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetIdsResponseDto>>> {
  13813. const localVarAxiosArgs = await localVarAxiosParamCreator.removeSharedLinkAssets(id, assetIdsDto, key, options);
  13814. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13815. },
  13816. /**
  13817. *
  13818. * @param {string} id
  13819. * @param {SharedLinkEditDto} sharedLinkEditDto
  13820. * @param {*} [options] Override http request option.
  13821. * @throws {RequiredError}
  13822. */
  13823. async updateSharedLink(id: string, sharedLinkEditDto: SharedLinkEditDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SharedLinkResponseDto>> {
  13824. const localVarAxiosArgs = await localVarAxiosParamCreator.updateSharedLink(id, sharedLinkEditDto, options);
  13825. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13826. },
  13827. }
  13828. };
  13829. /**
  13830. * SharedLinkApi - factory interface
  13831. * @export
  13832. */
  13833. export const SharedLinkApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  13834. const localVarFp = SharedLinkApiFp(configuration)
  13835. return {
  13836. /**
  13837. *
  13838. * @param {SharedLinkApiAddSharedLinkAssetsRequest} requestParameters Request parameters.
  13839. * @param {*} [options] Override http request option.
  13840. * @throws {RequiredError}
  13841. */
  13842. addSharedLinkAssets(requestParameters: SharedLinkApiAddSharedLinkAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetIdsResponseDto>> {
  13843. return localVarFp.addSharedLinkAssets(requestParameters.id, requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(axios, basePath));
  13844. },
  13845. /**
  13846. *
  13847. * @param {SharedLinkApiCreateSharedLinkRequest} requestParameters Request parameters.
  13848. * @param {*} [options] Override http request option.
  13849. * @throws {RequiredError}
  13850. */
  13851. createSharedLink(requestParameters: SharedLinkApiCreateSharedLinkRequest, options?: AxiosRequestConfig): AxiosPromise<SharedLinkResponseDto> {
  13852. return localVarFp.createSharedLink(requestParameters.sharedLinkCreateDto, options).then((request) => request(axios, basePath));
  13853. },
  13854. /**
  13855. *
  13856. * @param {*} [options] Override http request option.
  13857. * @throws {RequiredError}
  13858. */
  13859. getAllSharedLinks(options?: AxiosRequestConfig): AxiosPromise<Array<SharedLinkResponseDto>> {
  13860. return localVarFp.getAllSharedLinks(options).then((request) => request(axios, basePath));
  13861. },
  13862. /**
  13863. *
  13864. * @param {SharedLinkApiGetMySharedLinkRequest} requestParameters Request parameters.
  13865. * @param {*} [options] Override http request option.
  13866. * @throws {RequiredError}
  13867. */
  13868. getMySharedLink(requestParameters: SharedLinkApiGetMySharedLinkRequest = {}, options?: AxiosRequestConfig): AxiosPromise<SharedLinkResponseDto> {
  13869. return localVarFp.getMySharedLink(requestParameters.password, requestParameters.token, requestParameters.key, options).then((request) => request(axios, basePath));
  13870. },
  13871. /**
  13872. *
  13873. * @param {SharedLinkApiGetSharedLinkByIdRequest} requestParameters Request parameters.
  13874. * @param {*} [options] Override http request option.
  13875. * @throws {RequiredError}
  13876. */
  13877. getSharedLinkById(requestParameters: SharedLinkApiGetSharedLinkByIdRequest, options?: AxiosRequestConfig): AxiosPromise<SharedLinkResponseDto> {
  13878. return localVarFp.getSharedLinkById(requestParameters.id, options).then((request) => request(axios, basePath));
  13879. },
  13880. /**
  13881. *
  13882. * @param {SharedLinkApiRemoveSharedLinkRequest} requestParameters Request parameters.
  13883. * @param {*} [options] Override http request option.
  13884. * @throws {RequiredError}
  13885. */
  13886. removeSharedLink(requestParameters: SharedLinkApiRemoveSharedLinkRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  13887. return localVarFp.removeSharedLink(requestParameters.id, options).then((request) => request(axios, basePath));
  13888. },
  13889. /**
  13890. *
  13891. * @param {SharedLinkApiRemoveSharedLinkAssetsRequest} requestParameters Request parameters.
  13892. * @param {*} [options] Override http request option.
  13893. * @throws {RequiredError}
  13894. */
  13895. removeSharedLinkAssets(requestParameters: SharedLinkApiRemoveSharedLinkAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetIdsResponseDto>> {
  13896. return localVarFp.removeSharedLinkAssets(requestParameters.id, requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(axios, basePath));
  13897. },
  13898. /**
  13899. *
  13900. * @param {SharedLinkApiUpdateSharedLinkRequest} requestParameters Request parameters.
  13901. * @param {*} [options] Override http request option.
  13902. * @throws {RequiredError}
  13903. */
  13904. updateSharedLink(requestParameters: SharedLinkApiUpdateSharedLinkRequest, options?: AxiosRequestConfig): AxiosPromise<SharedLinkResponseDto> {
  13905. return localVarFp.updateSharedLink(requestParameters.id, requestParameters.sharedLinkEditDto, options).then((request) => request(axios, basePath));
  13906. },
  13907. };
  13908. };
  13909. /**
  13910. * Request parameters for addSharedLinkAssets operation in SharedLinkApi.
  13911. * @export
  13912. * @interface SharedLinkApiAddSharedLinkAssetsRequest
  13913. */
  13914. export interface SharedLinkApiAddSharedLinkAssetsRequest {
  13915. /**
  13916. *
  13917. * @type {string}
  13918. * @memberof SharedLinkApiAddSharedLinkAssets
  13919. */
  13920. readonly id: string
  13921. /**
  13922. *
  13923. * @type {AssetIdsDto}
  13924. * @memberof SharedLinkApiAddSharedLinkAssets
  13925. */
  13926. readonly assetIdsDto: AssetIdsDto
  13927. /**
  13928. *
  13929. * @type {string}
  13930. * @memberof SharedLinkApiAddSharedLinkAssets
  13931. */
  13932. readonly key?: string
  13933. }
  13934. /**
  13935. * Request parameters for createSharedLink operation in SharedLinkApi.
  13936. * @export
  13937. * @interface SharedLinkApiCreateSharedLinkRequest
  13938. */
  13939. export interface SharedLinkApiCreateSharedLinkRequest {
  13940. /**
  13941. *
  13942. * @type {SharedLinkCreateDto}
  13943. * @memberof SharedLinkApiCreateSharedLink
  13944. */
  13945. readonly sharedLinkCreateDto: SharedLinkCreateDto
  13946. }
  13947. /**
  13948. * Request parameters for getMySharedLink operation in SharedLinkApi.
  13949. * @export
  13950. * @interface SharedLinkApiGetMySharedLinkRequest
  13951. */
  13952. export interface SharedLinkApiGetMySharedLinkRequest {
  13953. /**
  13954. *
  13955. * @type {string}
  13956. * @memberof SharedLinkApiGetMySharedLink
  13957. */
  13958. readonly password?: string
  13959. /**
  13960. *
  13961. * @type {string}
  13962. * @memberof SharedLinkApiGetMySharedLink
  13963. */
  13964. readonly token?: string
  13965. /**
  13966. *
  13967. * @type {string}
  13968. * @memberof SharedLinkApiGetMySharedLink
  13969. */
  13970. readonly key?: string
  13971. }
  13972. /**
  13973. * Request parameters for getSharedLinkById operation in SharedLinkApi.
  13974. * @export
  13975. * @interface SharedLinkApiGetSharedLinkByIdRequest
  13976. */
  13977. export interface SharedLinkApiGetSharedLinkByIdRequest {
  13978. /**
  13979. *
  13980. * @type {string}
  13981. * @memberof SharedLinkApiGetSharedLinkById
  13982. */
  13983. readonly id: string
  13984. }
  13985. /**
  13986. * Request parameters for removeSharedLink operation in SharedLinkApi.
  13987. * @export
  13988. * @interface SharedLinkApiRemoveSharedLinkRequest
  13989. */
  13990. export interface SharedLinkApiRemoveSharedLinkRequest {
  13991. /**
  13992. *
  13993. * @type {string}
  13994. * @memberof SharedLinkApiRemoveSharedLink
  13995. */
  13996. readonly id: string
  13997. }
  13998. /**
  13999. * Request parameters for removeSharedLinkAssets operation in SharedLinkApi.
  14000. * @export
  14001. * @interface SharedLinkApiRemoveSharedLinkAssetsRequest
  14002. */
  14003. export interface SharedLinkApiRemoveSharedLinkAssetsRequest {
  14004. /**
  14005. *
  14006. * @type {string}
  14007. * @memberof SharedLinkApiRemoveSharedLinkAssets
  14008. */
  14009. readonly id: string
  14010. /**
  14011. *
  14012. * @type {AssetIdsDto}
  14013. * @memberof SharedLinkApiRemoveSharedLinkAssets
  14014. */
  14015. readonly assetIdsDto: AssetIdsDto
  14016. /**
  14017. *
  14018. * @type {string}
  14019. * @memberof SharedLinkApiRemoveSharedLinkAssets
  14020. */
  14021. readonly key?: string
  14022. }
  14023. /**
  14024. * Request parameters for updateSharedLink operation in SharedLinkApi.
  14025. * @export
  14026. * @interface SharedLinkApiUpdateSharedLinkRequest
  14027. */
  14028. export interface SharedLinkApiUpdateSharedLinkRequest {
  14029. /**
  14030. *
  14031. * @type {string}
  14032. * @memberof SharedLinkApiUpdateSharedLink
  14033. */
  14034. readonly id: string
  14035. /**
  14036. *
  14037. * @type {SharedLinkEditDto}
  14038. * @memberof SharedLinkApiUpdateSharedLink
  14039. */
  14040. readonly sharedLinkEditDto: SharedLinkEditDto
  14041. }
  14042. /**
  14043. * SharedLinkApi - object-oriented interface
  14044. * @export
  14045. * @class SharedLinkApi
  14046. * @extends {BaseAPI}
  14047. */
  14048. export class SharedLinkApi extends BaseAPI {
  14049. /**
  14050. *
  14051. * @param {SharedLinkApiAddSharedLinkAssetsRequest} requestParameters Request parameters.
  14052. * @param {*} [options] Override http request option.
  14053. * @throws {RequiredError}
  14054. * @memberof SharedLinkApi
  14055. */
  14056. public addSharedLinkAssets(requestParameters: SharedLinkApiAddSharedLinkAssetsRequest, options?: AxiosRequestConfig) {
  14057. return SharedLinkApiFp(this.configuration).addSharedLinkAssets(requestParameters.id, requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  14058. }
  14059. /**
  14060. *
  14061. * @param {SharedLinkApiCreateSharedLinkRequest} requestParameters Request parameters.
  14062. * @param {*} [options] Override http request option.
  14063. * @throws {RequiredError}
  14064. * @memberof SharedLinkApi
  14065. */
  14066. public createSharedLink(requestParameters: SharedLinkApiCreateSharedLinkRequest, options?: AxiosRequestConfig) {
  14067. return SharedLinkApiFp(this.configuration).createSharedLink(requestParameters.sharedLinkCreateDto, options).then((request) => request(this.axios, this.basePath));
  14068. }
  14069. /**
  14070. *
  14071. * @param {*} [options] Override http request option.
  14072. * @throws {RequiredError}
  14073. * @memberof SharedLinkApi
  14074. */
  14075. public getAllSharedLinks(options?: AxiosRequestConfig) {
  14076. return SharedLinkApiFp(this.configuration).getAllSharedLinks(options).then((request) => request(this.axios, this.basePath));
  14077. }
  14078. /**
  14079. *
  14080. * @param {SharedLinkApiGetMySharedLinkRequest} requestParameters Request parameters.
  14081. * @param {*} [options] Override http request option.
  14082. * @throws {RequiredError}
  14083. * @memberof SharedLinkApi
  14084. */
  14085. public getMySharedLink(requestParameters: SharedLinkApiGetMySharedLinkRequest = {}, options?: AxiosRequestConfig) {
  14086. return SharedLinkApiFp(this.configuration).getMySharedLink(requestParameters.password, requestParameters.token, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  14087. }
  14088. /**
  14089. *
  14090. * @param {SharedLinkApiGetSharedLinkByIdRequest} requestParameters Request parameters.
  14091. * @param {*} [options] Override http request option.
  14092. * @throws {RequiredError}
  14093. * @memberof SharedLinkApi
  14094. */
  14095. public getSharedLinkById(requestParameters: SharedLinkApiGetSharedLinkByIdRequest, options?: AxiosRequestConfig) {
  14096. return SharedLinkApiFp(this.configuration).getSharedLinkById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  14097. }
  14098. /**
  14099. *
  14100. * @param {SharedLinkApiRemoveSharedLinkRequest} requestParameters Request parameters.
  14101. * @param {*} [options] Override http request option.
  14102. * @throws {RequiredError}
  14103. * @memberof SharedLinkApi
  14104. */
  14105. public removeSharedLink(requestParameters: SharedLinkApiRemoveSharedLinkRequest, options?: AxiosRequestConfig) {
  14106. return SharedLinkApiFp(this.configuration).removeSharedLink(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  14107. }
  14108. /**
  14109. *
  14110. * @param {SharedLinkApiRemoveSharedLinkAssetsRequest} requestParameters Request parameters.
  14111. * @param {*} [options] Override http request option.
  14112. * @throws {RequiredError}
  14113. * @memberof SharedLinkApi
  14114. */
  14115. public removeSharedLinkAssets(requestParameters: SharedLinkApiRemoveSharedLinkAssetsRequest, options?: AxiosRequestConfig) {
  14116. return SharedLinkApiFp(this.configuration).removeSharedLinkAssets(requestParameters.id, requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  14117. }
  14118. /**
  14119. *
  14120. * @param {SharedLinkApiUpdateSharedLinkRequest} requestParameters Request parameters.
  14121. * @param {*} [options] Override http request option.
  14122. * @throws {RequiredError}
  14123. * @memberof SharedLinkApi
  14124. */
  14125. public updateSharedLink(requestParameters: SharedLinkApiUpdateSharedLinkRequest, options?: AxiosRequestConfig) {
  14126. return SharedLinkApiFp(this.configuration).updateSharedLink(requestParameters.id, requestParameters.sharedLinkEditDto, options).then((request) => request(this.axios, this.basePath));
  14127. }
  14128. }
  14129. /**
  14130. * SystemConfigApi - axios parameter creator
  14131. * @export
  14132. */
  14133. export const SystemConfigApiAxiosParamCreator = function (configuration?: Configuration) {
  14134. return {
  14135. /**
  14136. *
  14137. * @param {*} [options] Override http request option.
  14138. * @throws {RequiredError}
  14139. */
  14140. getConfig: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14141. const localVarPath = `/system-config`;
  14142. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14143. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14144. let baseOptions;
  14145. if (configuration) {
  14146. baseOptions = configuration.baseOptions;
  14147. }
  14148. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  14149. const localVarHeaderParameter = {} as any;
  14150. const localVarQueryParameter = {} as any;
  14151. // authentication cookie required
  14152. // authentication api_key required
  14153. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14154. // authentication bearer required
  14155. // http bearer authentication required
  14156. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14157. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14158. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14159. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14160. return {
  14161. url: toPathString(localVarUrlObj),
  14162. options: localVarRequestOptions,
  14163. };
  14164. },
  14165. /**
  14166. *
  14167. * @param {*} [options] Override http request option.
  14168. * @throws {RequiredError}
  14169. */
  14170. getConfigDefaults: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14171. const localVarPath = `/system-config/defaults`;
  14172. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14173. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14174. let baseOptions;
  14175. if (configuration) {
  14176. baseOptions = configuration.baseOptions;
  14177. }
  14178. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  14179. const localVarHeaderParameter = {} as any;
  14180. const localVarQueryParameter = {} as any;
  14181. // authentication cookie required
  14182. // authentication api_key required
  14183. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14184. // authentication bearer required
  14185. // http bearer authentication required
  14186. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14187. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14188. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14189. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14190. return {
  14191. url: toPathString(localVarUrlObj),
  14192. options: localVarRequestOptions,
  14193. };
  14194. },
  14195. /**
  14196. *
  14197. * @param {MapTheme} theme
  14198. * @param {*} [options] Override http request option.
  14199. * @throws {RequiredError}
  14200. */
  14201. getMapStyle: async (theme: MapTheme, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14202. // verify required parameter 'theme' is not null or undefined
  14203. assertParamExists('getMapStyle', 'theme', theme)
  14204. const localVarPath = `/system-config/map/style.json`;
  14205. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14206. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14207. let baseOptions;
  14208. if (configuration) {
  14209. baseOptions = configuration.baseOptions;
  14210. }
  14211. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  14212. const localVarHeaderParameter = {} as any;
  14213. const localVarQueryParameter = {} as any;
  14214. // authentication cookie required
  14215. // authentication api_key required
  14216. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14217. // authentication bearer required
  14218. // http bearer authentication required
  14219. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14220. if (theme !== undefined) {
  14221. localVarQueryParameter['theme'] = theme;
  14222. }
  14223. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14224. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14225. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14226. return {
  14227. url: toPathString(localVarUrlObj),
  14228. options: localVarRequestOptions,
  14229. };
  14230. },
  14231. /**
  14232. *
  14233. * @param {*} [options] Override http request option.
  14234. * @throws {RequiredError}
  14235. */
  14236. getStorageTemplateOptions: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14237. const localVarPath = `/system-config/storage-template-options`;
  14238. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14239. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14240. let baseOptions;
  14241. if (configuration) {
  14242. baseOptions = configuration.baseOptions;
  14243. }
  14244. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  14245. const localVarHeaderParameter = {} as any;
  14246. const localVarQueryParameter = {} as any;
  14247. // authentication cookie required
  14248. // authentication api_key required
  14249. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14250. // authentication bearer required
  14251. // http bearer authentication required
  14252. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14253. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14254. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14255. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14256. return {
  14257. url: toPathString(localVarUrlObj),
  14258. options: localVarRequestOptions,
  14259. };
  14260. },
  14261. /**
  14262. *
  14263. * @param {SystemConfigDto} systemConfigDto
  14264. * @param {*} [options] Override http request option.
  14265. * @throws {RequiredError}
  14266. */
  14267. updateConfig: async (systemConfigDto: SystemConfigDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14268. // verify required parameter 'systemConfigDto' is not null or undefined
  14269. assertParamExists('updateConfig', 'systemConfigDto', systemConfigDto)
  14270. const localVarPath = `/system-config`;
  14271. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14272. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14273. let baseOptions;
  14274. if (configuration) {
  14275. baseOptions = configuration.baseOptions;
  14276. }
  14277. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  14278. const localVarHeaderParameter = {} as any;
  14279. const localVarQueryParameter = {} as any;
  14280. // authentication cookie required
  14281. // authentication api_key required
  14282. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14283. // authentication bearer required
  14284. // http bearer authentication required
  14285. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14286. localVarHeaderParameter['Content-Type'] = 'application/json';
  14287. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14288. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14289. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14290. localVarRequestOptions.data = serializeDataIfNeeded(systemConfigDto, localVarRequestOptions, configuration)
  14291. return {
  14292. url: toPathString(localVarUrlObj),
  14293. options: localVarRequestOptions,
  14294. };
  14295. },
  14296. }
  14297. };
  14298. /**
  14299. * SystemConfigApi - functional programming interface
  14300. * @export
  14301. */
  14302. export const SystemConfigApiFp = function(configuration?: Configuration) {
  14303. const localVarAxiosParamCreator = SystemConfigApiAxiosParamCreator(configuration)
  14304. return {
  14305. /**
  14306. *
  14307. * @param {*} [options] Override http request option.
  14308. * @throws {RequiredError}
  14309. */
  14310. async getConfig(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SystemConfigDto>> {
  14311. const localVarAxiosArgs = await localVarAxiosParamCreator.getConfig(options);
  14312. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14313. },
  14314. /**
  14315. *
  14316. * @param {*} [options] Override http request option.
  14317. * @throws {RequiredError}
  14318. */
  14319. async getConfigDefaults(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SystemConfigDto>> {
  14320. const localVarAxiosArgs = await localVarAxiosParamCreator.getConfigDefaults(options);
  14321. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14322. },
  14323. /**
  14324. *
  14325. * @param {MapTheme} theme
  14326. * @param {*} [options] Override http request option.
  14327. * @throws {RequiredError}
  14328. */
  14329. async getMapStyle(theme: MapTheme, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
  14330. const localVarAxiosArgs = await localVarAxiosParamCreator.getMapStyle(theme, options);
  14331. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14332. },
  14333. /**
  14334. *
  14335. * @param {*} [options] Override http request option.
  14336. * @throws {RequiredError}
  14337. */
  14338. async getStorageTemplateOptions(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SystemConfigTemplateStorageOptionDto>> {
  14339. const localVarAxiosArgs = await localVarAxiosParamCreator.getStorageTemplateOptions(options);
  14340. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14341. },
  14342. /**
  14343. *
  14344. * @param {SystemConfigDto} systemConfigDto
  14345. * @param {*} [options] Override http request option.
  14346. * @throws {RequiredError}
  14347. */
  14348. async updateConfig(systemConfigDto: SystemConfigDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SystemConfigDto>> {
  14349. const localVarAxiosArgs = await localVarAxiosParamCreator.updateConfig(systemConfigDto, options);
  14350. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14351. },
  14352. }
  14353. };
  14354. /**
  14355. * SystemConfigApi - factory interface
  14356. * @export
  14357. */
  14358. export const SystemConfigApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  14359. const localVarFp = SystemConfigApiFp(configuration)
  14360. return {
  14361. /**
  14362. *
  14363. * @param {*} [options] Override http request option.
  14364. * @throws {RequiredError}
  14365. */
  14366. getConfig(options?: AxiosRequestConfig): AxiosPromise<SystemConfigDto> {
  14367. return localVarFp.getConfig(options).then((request) => request(axios, basePath));
  14368. },
  14369. /**
  14370. *
  14371. * @param {*} [options] Override http request option.
  14372. * @throws {RequiredError}
  14373. */
  14374. getConfigDefaults(options?: AxiosRequestConfig): AxiosPromise<SystemConfigDto> {
  14375. return localVarFp.getConfigDefaults(options).then((request) => request(axios, basePath));
  14376. },
  14377. /**
  14378. *
  14379. * @param {SystemConfigApiGetMapStyleRequest} requestParameters Request parameters.
  14380. * @param {*} [options] Override http request option.
  14381. * @throws {RequiredError}
  14382. */
  14383. getMapStyle(requestParameters: SystemConfigApiGetMapStyleRequest, options?: AxiosRequestConfig): AxiosPromise<object> {
  14384. return localVarFp.getMapStyle(requestParameters.theme, options).then((request) => request(axios, basePath));
  14385. },
  14386. /**
  14387. *
  14388. * @param {*} [options] Override http request option.
  14389. * @throws {RequiredError}
  14390. */
  14391. getStorageTemplateOptions(options?: AxiosRequestConfig): AxiosPromise<SystemConfigTemplateStorageOptionDto> {
  14392. return localVarFp.getStorageTemplateOptions(options).then((request) => request(axios, basePath));
  14393. },
  14394. /**
  14395. *
  14396. * @param {SystemConfigApiUpdateConfigRequest} requestParameters Request parameters.
  14397. * @param {*} [options] Override http request option.
  14398. * @throws {RequiredError}
  14399. */
  14400. updateConfig(requestParameters: SystemConfigApiUpdateConfigRequest, options?: AxiosRequestConfig): AxiosPromise<SystemConfigDto> {
  14401. return localVarFp.updateConfig(requestParameters.systemConfigDto, options).then((request) => request(axios, basePath));
  14402. },
  14403. };
  14404. };
  14405. /**
  14406. * Request parameters for getMapStyle operation in SystemConfigApi.
  14407. * @export
  14408. * @interface SystemConfigApiGetMapStyleRequest
  14409. */
  14410. export interface SystemConfigApiGetMapStyleRequest {
  14411. /**
  14412. *
  14413. * @type {MapTheme}
  14414. * @memberof SystemConfigApiGetMapStyle
  14415. */
  14416. readonly theme: MapTheme
  14417. }
  14418. /**
  14419. * Request parameters for updateConfig operation in SystemConfigApi.
  14420. * @export
  14421. * @interface SystemConfigApiUpdateConfigRequest
  14422. */
  14423. export interface SystemConfigApiUpdateConfigRequest {
  14424. /**
  14425. *
  14426. * @type {SystemConfigDto}
  14427. * @memberof SystemConfigApiUpdateConfig
  14428. */
  14429. readonly systemConfigDto: SystemConfigDto
  14430. }
  14431. /**
  14432. * SystemConfigApi - object-oriented interface
  14433. * @export
  14434. * @class SystemConfigApi
  14435. * @extends {BaseAPI}
  14436. */
  14437. export class SystemConfigApi extends BaseAPI {
  14438. /**
  14439. *
  14440. * @param {*} [options] Override http request option.
  14441. * @throws {RequiredError}
  14442. * @memberof SystemConfigApi
  14443. */
  14444. public getConfig(options?: AxiosRequestConfig) {
  14445. return SystemConfigApiFp(this.configuration).getConfig(options).then((request) => request(this.axios, this.basePath));
  14446. }
  14447. /**
  14448. *
  14449. * @param {*} [options] Override http request option.
  14450. * @throws {RequiredError}
  14451. * @memberof SystemConfigApi
  14452. */
  14453. public getConfigDefaults(options?: AxiosRequestConfig) {
  14454. return SystemConfigApiFp(this.configuration).getConfigDefaults(options).then((request) => request(this.axios, this.basePath));
  14455. }
  14456. /**
  14457. *
  14458. * @param {SystemConfigApiGetMapStyleRequest} requestParameters Request parameters.
  14459. * @param {*} [options] Override http request option.
  14460. * @throws {RequiredError}
  14461. * @memberof SystemConfigApi
  14462. */
  14463. public getMapStyle(requestParameters: SystemConfigApiGetMapStyleRequest, options?: AxiosRequestConfig) {
  14464. return SystemConfigApiFp(this.configuration).getMapStyle(requestParameters.theme, options).then((request) => request(this.axios, this.basePath));
  14465. }
  14466. /**
  14467. *
  14468. * @param {*} [options] Override http request option.
  14469. * @throws {RequiredError}
  14470. * @memberof SystemConfigApi
  14471. */
  14472. public getStorageTemplateOptions(options?: AxiosRequestConfig) {
  14473. return SystemConfigApiFp(this.configuration).getStorageTemplateOptions(options).then((request) => request(this.axios, this.basePath));
  14474. }
  14475. /**
  14476. *
  14477. * @param {SystemConfigApiUpdateConfigRequest} requestParameters Request parameters.
  14478. * @param {*} [options] Override http request option.
  14479. * @throws {RequiredError}
  14480. * @memberof SystemConfigApi
  14481. */
  14482. public updateConfig(requestParameters: SystemConfigApiUpdateConfigRequest, options?: AxiosRequestConfig) {
  14483. return SystemConfigApiFp(this.configuration).updateConfig(requestParameters.systemConfigDto, options).then((request) => request(this.axios, this.basePath));
  14484. }
  14485. }
  14486. /**
  14487. * TagApi - axios parameter creator
  14488. * @export
  14489. */
  14490. export const TagApiAxiosParamCreator = function (configuration?: Configuration) {
  14491. return {
  14492. /**
  14493. *
  14494. * @param {CreateTagDto} createTagDto
  14495. * @param {*} [options] Override http request option.
  14496. * @throws {RequiredError}
  14497. */
  14498. createTag: async (createTagDto: CreateTagDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14499. // verify required parameter 'createTagDto' is not null or undefined
  14500. assertParamExists('createTag', 'createTagDto', createTagDto)
  14501. const localVarPath = `/tag`;
  14502. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14503. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14504. let baseOptions;
  14505. if (configuration) {
  14506. baseOptions = configuration.baseOptions;
  14507. }
  14508. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  14509. const localVarHeaderParameter = {} as any;
  14510. const localVarQueryParameter = {} as any;
  14511. // authentication cookie required
  14512. // authentication api_key required
  14513. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14514. // authentication bearer required
  14515. // http bearer authentication required
  14516. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14517. localVarHeaderParameter['Content-Type'] = 'application/json';
  14518. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14519. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14520. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14521. localVarRequestOptions.data = serializeDataIfNeeded(createTagDto, localVarRequestOptions, configuration)
  14522. return {
  14523. url: toPathString(localVarUrlObj),
  14524. options: localVarRequestOptions,
  14525. };
  14526. },
  14527. /**
  14528. *
  14529. * @param {string} id
  14530. * @param {*} [options] Override http request option.
  14531. * @throws {RequiredError}
  14532. */
  14533. deleteTag: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14534. // verify required parameter 'id' is not null or undefined
  14535. assertParamExists('deleteTag', 'id', id)
  14536. const localVarPath = `/tag/{id}`
  14537. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  14538. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14539. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14540. let baseOptions;
  14541. if (configuration) {
  14542. baseOptions = configuration.baseOptions;
  14543. }
  14544. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  14545. const localVarHeaderParameter = {} as any;
  14546. const localVarQueryParameter = {} as any;
  14547. // authentication cookie required
  14548. // authentication api_key required
  14549. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14550. // authentication bearer required
  14551. // http bearer authentication required
  14552. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14553. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14554. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14555. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14556. return {
  14557. url: toPathString(localVarUrlObj),
  14558. options: localVarRequestOptions,
  14559. };
  14560. },
  14561. /**
  14562. *
  14563. * @param {*} [options] Override http request option.
  14564. * @throws {RequiredError}
  14565. */
  14566. getAllTags: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14567. const localVarPath = `/tag`;
  14568. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14569. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14570. let baseOptions;
  14571. if (configuration) {
  14572. baseOptions = configuration.baseOptions;
  14573. }
  14574. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  14575. const localVarHeaderParameter = {} as any;
  14576. const localVarQueryParameter = {} as any;
  14577. // authentication cookie required
  14578. // authentication api_key required
  14579. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14580. // authentication bearer required
  14581. // http bearer authentication required
  14582. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14583. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14584. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14585. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14586. return {
  14587. url: toPathString(localVarUrlObj),
  14588. options: localVarRequestOptions,
  14589. };
  14590. },
  14591. /**
  14592. *
  14593. * @param {string} id
  14594. * @param {*} [options] Override http request option.
  14595. * @throws {RequiredError}
  14596. */
  14597. getTagAssets: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14598. // verify required parameter 'id' is not null or undefined
  14599. assertParamExists('getTagAssets', 'id', id)
  14600. const localVarPath = `/tag/{id}/assets`
  14601. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  14602. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14603. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14604. let baseOptions;
  14605. if (configuration) {
  14606. baseOptions = configuration.baseOptions;
  14607. }
  14608. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  14609. const localVarHeaderParameter = {} as any;
  14610. const localVarQueryParameter = {} as any;
  14611. // authentication cookie required
  14612. // authentication api_key required
  14613. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14614. // authentication bearer required
  14615. // http bearer authentication required
  14616. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14617. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14618. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14619. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14620. return {
  14621. url: toPathString(localVarUrlObj),
  14622. options: localVarRequestOptions,
  14623. };
  14624. },
  14625. /**
  14626. *
  14627. * @param {string} id
  14628. * @param {*} [options] Override http request option.
  14629. * @throws {RequiredError}
  14630. */
  14631. getTagById: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14632. // verify required parameter 'id' is not null or undefined
  14633. assertParamExists('getTagById', 'id', id)
  14634. const localVarPath = `/tag/{id}`
  14635. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  14636. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14637. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14638. let baseOptions;
  14639. if (configuration) {
  14640. baseOptions = configuration.baseOptions;
  14641. }
  14642. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  14643. const localVarHeaderParameter = {} as any;
  14644. const localVarQueryParameter = {} as any;
  14645. // authentication cookie required
  14646. // authentication api_key required
  14647. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14648. // authentication bearer required
  14649. // http bearer authentication required
  14650. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14651. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14652. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14653. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14654. return {
  14655. url: toPathString(localVarUrlObj),
  14656. options: localVarRequestOptions,
  14657. };
  14658. },
  14659. /**
  14660. *
  14661. * @param {string} id
  14662. * @param {AssetIdsDto} assetIdsDto
  14663. * @param {*} [options] Override http request option.
  14664. * @throws {RequiredError}
  14665. */
  14666. tagAssets: async (id: string, assetIdsDto: AssetIdsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14667. // verify required parameter 'id' is not null or undefined
  14668. assertParamExists('tagAssets', 'id', id)
  14669. // verify required parameter 'assetIdsDto' is not null or undefined
  14670. assertParamExists('tagAssets', 'assetIdsDto', assetIdsDto)
  14671. const localVarPath = `/tag/{id}/assets`
  14672. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  14673. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14674. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14675. let baseOptions;
  14676. if (configuration) {
  14677. baseOptions = configuration.baseOptions;
  14678. }
  14679. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  14680. const localVarHeaderParameter = {} as any;
  14681. const localVarQueryParameter = {} as any;
  14682. // authentication cookie required
  14683. // authentication api_key required
  14684. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14685. // authentication bearer required
  14686. // http bearer authentication required
  14687. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14688. localVarHeaderParameter['Content-Type'] = 'application/json';
  14689. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14690. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14691. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14692. localVarRequestOptions.data = serializeDataIfNeeded(assetIdsDto, localVarRequestOptions, configuration)
  14693. return {
  14694. url: toPathString(localVarUrlObj),
  14695. options: localVarRequestOptions,
  14696. };
  14697. },
  14698. /**
  14699. *
  14700. * @param {string} id
  14701. * @param {AssetIdsDto} assetIdsDto
  14702. * @param {*} [options] Override http request option.
  14703. * @throws {RequiredError}
  14704. */
  14705. untagAssets: async (id: string, assetIdsDto: AssetIdsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14706. // verify required parameter 'id' is not null or undefined
  14707. assertParamExists('untagAssets', 'id', id)
  14708. // verify required parameter 'assetIdsDto' is not null or undefined
  14709. assertParamExists('untagAssets', 'assetIdsDto', assetIdsDto)
  14710. const localVarPath = `/tag/{id}/assets`
  14711. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  14712. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14713. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14714. let baseOptions;
  14715. if (configuration) {
  14716. baseOptions = configuration.baseOptions;
  14717. }
  14718. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  14719. const localVarHeaderParameter = {} as any;
  14720. const localVarQueryParameter = {} as any;
  14721. // authentication cookie required
  14722. // authentication api_key required
  14723. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14724. // authentication bearer required
  14725. // http bearer authentication required
  14726. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14727. localVarHeaderParameter['Content-Type'] = 'application/json';
  14728. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14729. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14730. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14731. localVarRequestOptions.data = serializeDataIfNeeded(assetIdsDto, localVarRequestOptions, configuration)
  14732. return {
  14733. url: toPathString(localVarUrlObj),
  14734. options: localVarRequestOptions,
  14735. };
  14736. },
  14737. /**
  14738. *
  14739. * @param {string} id
  14740. * @param {UpdateTagDto} updateTagDto
  14741. * @param {*} [options] Override http request option.
  14742. * @throws {RequiredError}
  14743. */
  14744. updateTag: async (id: string, updateTagDto: UpdateTagDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14745. // verify required parameter 'id' is not null or undefined
  14746. assertParamExists('updateTag', 'id', id)
  14747. // verify required parameter 'updateTagDto' is not null or undefined
  14748. assertParamExists('updateTag', 'updateTagDto', updateTagDto)
  14749. const localVarPath = `/tag/{id}`
  14750. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  14751. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14752. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14753. let baseOptions;
  14754. if (configuration) {
  14755. baseOptions = configuration.baseOptions;
  14756. }
  14757. const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
  14758. const localVarHeaderParameter = {} as any;
  14759. const localVarQueryParameter = {} as any;
  14760. // authentication cookie required
  14761. // authentication api_key required
  14762. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14763. // authentication bearer required
  14764. // http bearer authentication required
  14765. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14766. localVarHeaderParameter['Content-Type'] = 'application/json';
  14767. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14768. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14769. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14770. localVarRequestOptions.data = serializeDataIfNeeded(updateTagDto, localVarRequestOptions, configuration)
  14771. return {
  14772. url: toPathString(localVarUrlObj),
  14773. options: localVarRequestOptions,
  14774. };
  14775. },
  14776. }
  14777. };
  14778. /**
  14779. * TagApi - functional programming interface
  14780. * @export
  14781. */
  14782. export const TagApiFp = function(configuration?: Configuration) {
  14783. const localVarAxiosParamCreator = TagApiAxiosParamCreator(configuration)
  14784. return {
  14785. /**
  14786. *
  14787. * @param {CreateTagDto} createTagDto
  14788. * @param {*} [options] Override http request option.
  14789. * @throws {RequiredError}
  14790. */
  14791. async createTag(createTagDto: CreateTagDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagResponseDto>> {
  14792. const localVarAxiosArgs = await localVarAxiosParamCreator.createTag(createTagDto, options);
  14793. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14794. },
  14795. /**
  14796. *
  14797. * @param {string} id
  14798. * @param {*} [options] Override http request option.
  14799. * @throws {RequiredError}
  14800. */
  14801. async deleteTag(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  14802. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteTag(id, options);
  14803. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14804. },
  14805. /**
  14806. *
  14807. * @param {*} [options] Override http request option.
  14808. * @throws {RequiredError}
  14809. */
  14810. async getAllTags(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<TagResponseDto>>> {
  14811. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllTags(options);
  14812. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14813. },
  14814. /**
  14815. *
  14816. * @param {string} id
  14817. * @param {*} [options] Override http request option.
  14818. * @throws {RequiredError}
  14819. */
  14820. async getTagAssets(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  14821. const localVarAxiosArgs = await localVarAxiosParamCreator.getTagAssets(id, options);
  14822. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14823. },
  14824. /**
  14825. *
  14826. * @param {string} id
  14827. * @param {*} [options] Override http request option.
  14828. * @throws {RequiredError}
  14829. */
  14830. async getTagById(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagResponseDto>> {
  14831. const localVarAxiosArgs = await localVarAxiosParamCreator.getTagById(id, options);
  14832. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14833. },
  14834. /**
  14835. *
  14836. * @param {string} id
  14837. * @param {AssetIdsDto} assetIdsDto
  14838. * @param {*} [options] Override http request option.
  14839. * @throws {RequiredError}
  14840. */
  14841. async tagAssets(id: string, assetIdsDto: AssetIdsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetIdsResponseDto>>> {
  14842. const localVarAxiosArgs = await localVarAxiosParamCreator.tagAssets(id, assetIdsDto, options);
  14843. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14844. },
  14845. /**
  14846. *
  14847. * @param {string} id
  14848. * @param {AssetIdsDto} assetIdsDto
  14849. * @param {*} [options] Override http request option.
  14850. * @throws {RequiredError}
  14851. */
  14852. async untagAssets(id: string, assetIdsDto: AssetIdsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetIdsResponseDto>>> {
  14853. const localVarAxiosArgs = await localVarAxiosParamCreator.untagAssets(id, assetIdsDto, options);
  14854. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14855. },
  14856. /**
  14857. *
  14858. * @param {string} id
  14859. * @param {UpdateTagDto} updateTagDto
  14860. * @param {*} [options] Override http request option.
  14861. * @throws {RequiredError}
  14862. */
  14863. async updateTag(id: string, updateTagDto: UpdateTagDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagResponseDto>> {
  14864. const localVarAxiosArgs = await localVarAxiosParamCreator.updateTag(id, updateTagDto, options);
  14865. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14866. },
  14867. }
  14868. };
  14869. /**
  14870. * TagApi - factory interface
  14871. * @export
  14872. */
  14873. export const TagApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  14874. const localVarFp = TagApiFp(configuration)
  14875. return {
  14876. /**
  14877. *
  14878. * @param {TagApiCreateTagRequest} requestParameters Request parameters.
  14879. * @param {*} [options] Override http request option.
  14880. * @throws {RequiredError}
  14881. */
  14882. createTag(requestParameters: TagApiCreateTagRequest, options?: AxiosRequestConfig): AxiosPromise<TagResponseDto> {
  14883. return localVarFp.createTag(requestParameters.createTagDto, options).then((request) => request(axios, basePath));
  14884. },
  14885. /**
  14886. *
  14887. * @param {TagApiDeleteTagRequest} requestParameters Request parameters.
  14888. * @param {*} [options] Override http request option.
  14889. * @throws {RequiredError}
  14890. */
  14891. deleteTag(requestParameters: TagApiDeleteTagRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  14892. return localVarFp.deleteTag(requestParameters.id, options).then((request) => request(axios, basePath));
  14893. },
  14894. /**
  14895. *
  14896. * @param {*} [options] Override http request option.
  14897. * @throws {RequiredError}
  14898. */
  14899. getAllTags(options?: AxiosRequestConfig): AxiosPromise<Array<TagResponseDto>> {
  14900. return localVarFp.getAllTags(options).then((request) => request(axios, basePath));
  14901. },
  14902. /**
  14903. *
  14904. * @param {TagApiGetTagAssetsRequest} requestParameters Request parameters.
  14905. * @param {*} [options] Override http request option.
  14906. * @throws {RequiredError}
  14907. */
  14908. getTagAssets(requestParameters: TagApiGetTagAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
  14909. return localVarFp.getTagAssets(requestParameters.id, options).then((request) => request(axios, basePath));
  14910. },
  14911. /**
  14912. *
  14913. * @param {TagApiGetTagByIdRequest} requestParameters Request parameters.
  14914. * @param {*} [options] Override http request option.
  14915. * @throws {RequiredError}
  14916. */
  14917. getTagById(requestParameters: TagApiGetTagByIdRequest, options?: AxiosRequestConfig): AxiosPromise<TagResponseDto> {
  14918. return localVarFp.getTagById(requestParameters.id, options).then((request) => request(axios, basePath));
  14919. },
  14920. /**
  14921. *
  14922. * @param {TagApiTagAssetsRequest} requestParameters Request parameters.
  14923. * @param {*} [options] Override http request option.
  14924. * @throws {RequiredError}
  14925. */
  14926. tagAssets(requestParameters: TagApiTagAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetIdsResponseDto>> {
  14927. return localVarFp.tagAssets(requestParameters.id, requestParameters.assetIdsDto, options).then((request) => request(axios, basePath));
  14928. },
  14929. /**
  14930. *
  14931. * @param {TagApiUntagAssetsRequest} requestParameters Request parameters.
  14932. * @param {*} [options] Override http request option.
  14933. * @throws {RequiredError}
  14934. */
  14935. untagAssets(requestParameters: TagApiUntagAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetIdsResponseDto>> {
  14936. return localVarFp.untagAssets(requestParameters.id, requestParameters.assetIdsDto, options).then((request) => request(axios, basePath));
  14937. },
  14938. /**
  14939. *
  14940. * @param {TagApiUpdateTagRequest} requestParameters Request parameters.
  14941. * @param {*} [options] Override http request option.
  14942. * @throws {RequiredError}
  14943. */
  14944. updateTag(requestParameters: TagApiUpdateTagRequest, options?: AxiosRequestConfig): AxiosPromise<TagResponseDto> {
  14945. return localVarFp.updateTag(requestParameters.id, requestParameters.updateTagDto, options).then((request) => request(axios, basePath));
  14946. },
  14947. };
  14948. };
  14949. /**
  14950. * Request parameters for createTag operation in TagApi.
  14951. * @export
  14952. * @interface TagApiCreateTagRequest
  14953. */
  14954. export interface TagApiCreateTagRequest {
  14955. /**
  14956. *
  14957. * @type {CreateTagDto}
  14958. * @memberof TagApiCreateTag
  14959. */
  14960. readonly createTagDto: CreateTagDto
  14961. }
  14962. /**
  14963. * Request parameters for deleteTag operation in TagApi.
  14964. * @export
  14965. * @interface TagApiDeleteTagRequest
  14966. */
  14967. export interface TagApiDeleteTagRequest {
  14968. /**
  14969. *
  14970. * @type {string}
  14971. * @memberof TagApiDeleteTag
  14972. */
  14973. readonly id: string
  14974. }
  14975. /**
  14976. * Request parameters for getTagAssets operation in TagApi.
  14977. * @export
  14978. * @interface TagApiGetTagAssetsRequest
  14979. */
  14980. export interface TagApiGetTagAssetsRequest {
  14981. /**
  14982. *
  14983. * @type {string}
  14984. * @memberof TagApiGetTagAssets
  14985. */
  14986. readonly id: string
  14987. }
  14988. /**
  14989. * Request parameters for getTagById operation in TagApi.
  14990. * @export
  14991. * @interface TagApiGetTagByIdRequest
  14992. */
  14993. export interface TagApiGetTagByIdRequest {
  14994. /**
  14995. *
  14996. * @type {string}
  14997. * @memberof TagApiGetTagById
  14998. */
  14999. readonly id: string
  15000. }
  15001. /**
  15002. * Request parameters for tagAssets operation in TagApi.
  15003. * @export
  15004. * @interface TagApiTagAssetsRequest
  15005. */
  15006. export interface TagApiTagAssetsRequest {
  15007. /**
  15008. *
  15009. * @type {string}
  15010. * @memberof TagApiTagAssets
  15011. */
  15012. readonly id: string
  15013. /**
  15014. *
  15015. * @type {AssetIdsDto}
  15016. * @memberof TagApiTagAssets
  15017. */
  15018. readonly assetIdsDto: AssetIdsDto
  15019. }
  15020. /**
  15021. * Request parameters for untagAssets operation in TagApi.
  15022. * @export
  15023. * @interface TagApiUntagAssetsRequest
  15024. */
  15025. export interface TagApiUntagAssetsRequest {
  15026. /**
  15027. *
  15028. * @type {string}
  15029. * @memberof TagApiUntagAssets
  15030. */
  15031. readonly id: string
  15032. /**
  15033. *
  15034. * @type {AssetIdsDto}
  15035. * @memberof TagApiUntagAssets
  15036. */
  15037. readonly assetIdsDto: AssetIdsDto
  15038. }
  15039. /**
  15040. * Request parameters for updateTag operation in TagApi.
  15041. * @export
  15042. * @interface TagApiUpdateTagRequest
  15043. */
  15044. export interface TagApiUpdateTagRequest {
  15045. /**
  15046. *
  15047. * @type {string}
  15048. * @memberof TagApiUpdateTag
  15049. */
  15050. readonly id: string
  15051. /**
  15052. *
  15053. * @type {UpdateTagDto}
  15054. * @memberof TagApiUpdateTag
  15055. */
  15056. readonly updateTagDto: UpdateTagDto
  15057. }
  15058. /**
  15059. * TagApi - object-oriented interface
  15060. * @export
  15061. * @class TagApi
  15062. * @extends {BaseAPI}
  15063. */
  15064. export class TagApi extends BaseAPI {
  15065. /**
  15066. *
  15067. * @param {TagApiCreateTagRequest} requestParameters Request parameters.
  15068. * @param {*} [options] Override http request option.
  15069. * @throws {RequiredError}
  15070. * @memberof TagApi
  15071. */
  15072. public createTag(requestParameters: TagApiCreateTagRequest, options?: AxiosRequestConfig) {
  15073. return TagApiFp(this.configuration).createTag(requestParameters.createTagDto, options).then((request) => request(this.axios, this.basePath));
  15074. }
  15075. /**
  15076. *
  15077. * @param {TagApiDeleteTagRequest} requestParameters Request parameters.
  15078. * @param {*} [options] Override http request option.
  15079. * @throws {RequiredError}
  15080. * @memberof TagApi
  15081. */
  15082. public deleteTag(requestParameters: TagApiDeleteTagRequest, options?: AxiosRequestConfig) {
  15083. return TagApiFp(this.configuration).deleteTag(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  15084. }
  15085. /**
  15086. *
  15087. * @param {*} [options] Override http request option.
  15088. * @throws {RequiredError}
  15089. * @memberof TagApi
  15090. */
  15091. public getAllTags(options?: AxiosRequestConfig) {
  15092. return TagApiFp(this.configuration).getAllTags(options).then((request) => request(this.axios, this.basePath));
  15093. }
  15094. /**
  15095. *
  15096. * @param {TagApiGetTagAssetsRequest} requestParameters Request parameters.
  15097. * @param {*} [options] Override http request option.
  15098. * @throws {RequiredError}
  15099. * @memberof TagApi
  15100. */
  15101. public getTagAssets(requestParameters: TagApiGetTagAssetsRequest, options?: AxiosRequestConfig) {
  15102. return TagApiFp(this.configuration).getTagAssets(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  15103. }
  15104. /**
  15105. *
  15106. * @param {TagApiGetTagByIdRequest} requestParameters Request parameters.
  15107. * @param {*} [options] Override http request option.
  15108. * @throws {RequiredError}
  15109. * @memberof TagApi
  15110. */
  15111. public getTagById(requestParameters: TagApiGetTagByIdRequest, options?: AxiosRequestConfig) {
  15112. return TagApiFp(this.configuration).getTagById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  15113. }
  15114. /**
  15115. *
  15116. * @param {TagApiTagAssetsRequest} requestParameters Request parameters.
  15117. * @param {*} [options] Override http request option.
  15118. * @throws {RequiredError}
  15119. * @memberof TagApi
  15120. */
  15121. public tagAssets(requestParameters: TagApiTagAssetsRequest, options?: AxiosRequestConfig) {
  15122. return TagApiFp(this.configuration).tagAssets(requestParameters.id, requestParameters.assetIdsDto, options).then((request) => request(this.axios, this.basePath));
  15123. }
  15124. /**
  15125. *
  15126. * @param {TagApiUntagAssetsRequest} requestParameters Request parameters.
  15127. * @param {*} [options] Override http request option.
  15128. * @throws {RequiredError}
  15129. * @memberof TagApi
  15130. */
  15131. public untagAssets(requestParameters: TagApiUntagAssetsRequest, options?: AxiosRequestConfig) {
  15132. return TagApiFp(this.configuration).untagAssets(requestParameters.id, requestParameters.assetIdsDto, options).then((request) => request(this.axios, this.basePath));
  15133. }
  15134. /**
  15135. *
  15136. * @param {TagApiUpdateTagRequest} requestParameters Request parameters.
  15137. * @param {*} [options] Override http request option.
  15138. * @throws {RequiredError}
  15139. * @memberof TagApi
  15140. */
  15141. public updateTag(requestParameters: TagApiUpdateTagRequest, options?: AxiosRequestConfig) {
  15142. return TagApiFp(this.configuration).updateTag(requestParameters.id, requestParameters.updateTagDto, options).then((request) => request(this.axios, this.basePath));
  15143. }
  15144. }
  15145. /**
  15146. * UserApi - axios parameter creator
  15147. * @export
  15148. */
  15149. export const UserApiAxiosParamCreator = function (configuration?: Configuration) {
  15150. return {
  15151. /**
  15152. *
  15153. * @param {File} file
  15154. * @param {*} [options] Override http request option.
  15155. * @throws {RequiredError}
  15156. */
  15157. createProfileImage: async (file: File, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  15158. // verify required parameter 'file' is not null or undefined
  15159. assertParamExists('createProfileImage', 'file', file)
  15160. const localVarPath = `/user/profile-image`;
  15161. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  15162. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  15163. let baseOptions;
  15164. if (configuration) {
  15165. baseOptions = configuration.baseOptions;
  15166. }
  15167. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  15168. const localVarHeaderParameter = {} as any;
  15169. const localVarQueryParameter = {} as any;
  15170. const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
  15171. // authentication cookie required
  15172. // authentication api_key required
  15173. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  15174. // authentication bearer required
  15175. // http bearer authentication required
  15176. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  15177. if (file !== undefined) {
  15178. localVarFormParams.append('file', file as any);
  15179. }
  15180. localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
  15181. setSearchParams(localVarUrlObj, localVarQueryParameter);
  15182. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  15183. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  15184. localVarRequestOptions.data = localVarFormParams;
  15185. return {
  15186. url: toPathString(localVarUrlObj),
  15187. options: localVarRequestOptions,
  15188. };
  15189. },
  15190. /**
  15191. *
  15192. * @param {CreateUserDto} createUserDto
  15193. * @param {*} [options] Override http request option.
  15194. * @throws {RequiredError}
  15195. */
  15196. createUser: async (createUserDto: CreateUserDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  15197. // verify required parameter 'createUserDto' is not null or undefined
  15198. assertParamExists('createUser', 'createUserDto', createUserDto)
  15199. const localVarPath = `/user`;
  15200. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  15201. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  15202. let baseOptions;
  15203. if (configuration) {
  15204. baseOptions = configuration.baseOptions;
  15205. }
  15206. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  15207. const localVarHeaderParameter = {} as any;
  15208. const localVarQueryParameter = {} as any;
  15209. // authentication cookie required
  15210. // authentication api_key required
  15211. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  15212. // authentication bearer required
  15213. // http bearer authentication required
  15214. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  15215. localVarHeaderParameter['Content-Type'] = 'application/json';
  15216. setSearchParams(localVarUrlObj, localVarQueryParameter);
  15217. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  15218. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  15219. localVarRequestOptions.data = serializeDataIfNeeded(createUserDto, localVarRequestOptions, configuration)
  15220. return {
  15221. url: toPathString(localVarUrlObj),
  15222. options: localVarRequestOptions,
  15223. };
  15224. },
  15225. /**
  15226. *
  15227. * @param {*} [options] Override http request option.
  15228. * @throws {RequiredError}
  15229. */
  15230. deleteProfileImage: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  15231. const localVarPath = `/user/profile-image`;
  15232. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  15233. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  15234. let baseOptions;
  15235. if (configuration) {
  15236. baseOptions = configuration.baseOptions;
  15237. }
  15238. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  15239. const localVarHeaderParameter = {} as any;
  15240. const localVarQueryParameter = {} as any;
  15241. // authentication cookie required
  15242. // authentication api_key required
  15243. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  15244. // authentication bearer required
  15245. // http bearer authentication required
  15246. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  15247. setSearchParams(localVarUrlObj, localVarQueryParameter);
  15248. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  15249. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  15250. return {
  15251. url: toPathString(localVarUrlObj),
  15252. options: localVarRequestOptions,
  15253. };
  15254. },
  15255. /**
  15256. *
  15257. * @param {string} id
  15258. * @param {*} [options] Override http request option.
  15259. * @throws {RequiredError}
  15260. */
  15261. deleteUser: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  15262. // verify required parameter 'id' is not null or undefined
  15263. assertParamExists('deleteUser', 'id', id)
  15264. const localVarPath = `/user/{id}`
  15265. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  15266. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  15267. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  15268. let baseOptions;
  15269. if (configuration) {
  15270. baseOptions = configuration.baseOptions;
  15271. }
  15272. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  15273. const localVarHeaderParameter = {} as any;
  15274. const localVarQueryParameter = {} as any;
  15275. // authentication cookie required
  15276. // authentication api_key required
  15277. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  15278. // authentication bearer required
  15279. // http bearer authentication required
  15280. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  15281. setSearchParams(localVarUrlObj, localVarQueryParameter);
  15282. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  15283. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  15284. return {
  15285. url: toPathString(localVarUrlObj),
  15286. options: localVarRequestOptions,
  15287. };
  15288. },
  15289. /**
  15290. *
  15291. * @param {boolean} isAll
  15292. * @param {*} [options] Override http request option.
  15293. * @throws {RequiredError}
  15294. */
  15295. getAllUsers: async (isAll: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  15296. // verify required parameter 'isAll' is not null or undefined
  15297. assertParamExists('getAllUsers', 'isAll', isAll)
  15298. const localVarPath = `/user`;
  15299. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  15300. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  15301. let baseOptions;
  15302. if (configuration) {
  15303. baseOptions = configuration.baseOptions;
  15304. }
  15305. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  15306. const localVarHeaderParameter = {} as any;
  15307. const localVarQueryParameter = {} as any;
  15308. // authentication cookie required
  15309. // authentication api_key required
  15310. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  15311. // authentication bearer required
  15312. // http bearer authentication required
  15313. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  15314. if (isAll !== undefined) {
  15315. localVarQueryParameter['isAll'] = isAll;
  15316. }
  15317. setSearchParams(localVarUrlObj, localVarQueryParameter);
  15318. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  15319. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  15320. return {
  15321. url: toPathString(localVarUrlObj),
  15322. options: localVarRequestOptions,
  15323. };
  15324. },
  15325. /**
  15326. *
  15327. * @param {*} [options] Override http request option.
  15328. * @throws {RequiredError}
  15329. */
  15330. getMyUserInfo: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  15331. const localVarPath = `/user/me`;
  15332. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  15333. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  15334. let baseOptions;
  15335. if (configuration) {
  15336. baseOptions = configuration.baseOptions;
  15337. }
  15338. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  15339. const localVarHeaderParameter = {} as any;
  15340. const localVarQueryParameter = {} as any;
  15341. // authentication cookie required
  15342. // authentication api_key required
  15343. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  15344. // authentication bearer required
  15345. // http bearer authentication required
  15346. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  15347. setSearchParams(localVarUrlObj, localVarQueryParameter);
  15348. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  15349. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  15350. return {
  15351. url: toPathString(localVarUrlObj),
  15352. options: localVarRequestOptions,
  15353. };
  15354. },
  15355. /**
  15356. *
  15357. * @param {string} id
  15358. * @param {*} [options] Override http request option.
  15359. * @throws {RequiredError}
  15360. */
  15361. getProfileImage: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  15362. // verify required parameter 'id' is not null or undefined
  15363. assertParamExists('getProfileImage', 'id', id)
  15364. const localVarPath = `/user/profile-image/{id}`
  15365. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  15366. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  15367. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  15368. let baseOptions;
  15369. if (configuration) {
  15370. baseOptions = configuration.baseOptions;
  15371. }
  15372. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  15373. const localVarHeaderParameter = {} as any;
  15374. const localVarQueryParameter = {} as any;
  15375. // authentication cookie required
  15376. // authentication api_key required
  15377. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  15378. // authentication bearer required
  15379. // http bearer authentication required
  15380. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  15381. setSearchParams(localVarUrlObj, localVarQueryParameter);
  15382. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  15383. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  15384. return {
  15385. url: toPathString(localVarUrlObj),
  15386. options: localVarRequestOptions,
  15387. };
  15388. },
  15389. /**
  15390. *
  15391. * @param {string} id
  15392. * @param {*} [options] Override http request option.
  15393. * @throws {RequiredError}
  15394. */
  15395. getUserById: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  15396. // verify required parameter 'id' is not null or undefined
  15397. assertParamExists('getUserById', 'id', id)
  15398. const localVarPath = `/user/info/{id}`
  15399. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  15400. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  15401. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  15402. let baseOptions;
  15403. if (configuration) {
  15404. baseOptions = configuration.baseOptions;
  15405. }
  15406. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  15407. const localVarHeaderParameter = {} as any;
  15408. const localVarQueryParameter = {} as any;
  15409. // authentication cookie required
  15410. // authentication api_key required
  15411. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  15412. // authentication bearer required
  15413. // http bearer authentication required
  15414. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  15415. setSearchParams(localVarUrlObj, localVarQueryParameter);
  15416. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  15417. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  15418. return {
  15419. url: toPathString(localVarUrlObj),
  15420. options: localVarRequestOptions,
  15421. };
  15422. },
  15423. /**
  15424. *
  15425. * @param {string} id
  15426. * @param {*} [options] Override http request option.
  15427. * @throws {RequiredError}
  15428. */
  15429. restoreUser: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  15430. // verify required parameter 'id' is not null or undefined
  15431. assertParamExists('restoreUser', 'id', id)
  15432. const localVarPath = `/user/{id}/restore`
  15433. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  15434. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  15435. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  15436. let baseOptions;
  15437. if (configuration) {
  15438. baseOptions = configuration.baseOptions;
  15439. }
  15440. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  15441. const localVarHeaderParameter = {} as any;
  15442. const localVarQueryParameter = {} as any;
  15443. // authentication cookie required
  15444. // authentication api_key required
  15445. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  15446. // authentication bearer required
  15447. // http bearer authentication required
  15448. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  15449. setSearchParams(localVarUrlObj, localVarQueryParameter);
  15450. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  15451. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  15452. return {
  15453. url: toPathString(localVarUrlObj),
  15454. options: localVarRequestOptions,
  15455. };
  15456. },
  15457. /**
  15458. *
  15459. * @param {UpdateUserDto} updateUserDto
  15460. * @param {*} [options] Override http request option.
  15461. * @throws {RequiredError}
  15462. */
  15463. updateUser: async (updateUserDto: UpdateUserDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  15464. // verify required parameter 'updateUserDto' is not null or undefined
  15465. assertParamExists('updateUser', 'updateUserDto', updateUserDto)
  15466. const localVarPath = `/user`;
  15467. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  15468. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  15469. let baseOptions;
  15470. if (configuration) {
  15471. baseOptions = configuration.baseOptions;
  15472. }
  15473. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  15474. const localVarHeaderParameter = {} as any;
  15475. const localVarQueryParameter = {} as any;
  15476. // authentication cookie required
  15477. // authentication api_key required
  15478. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  15479. // authentication bearer required
  15480. // http bearer authentication required
  15481. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  15482. localVarHeaderParameter['Content-Type'] = 'application/json';
  15483. setSearchParams(localVarUrlObj, localVarQueryParameter);
  15484. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  15485. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  15486. localVarRequestOptions.data = serializeDataIfNeeded(updateUserDto, localVarRequestOptions, configuration)
  15487. return {
  15488. url: toPathString(localVarUrlObj),
  15489. options: localVarRequestOptions,
  15490. };
  15491. },
  15492. }
  15493. };
  15494. /**
  15495. * UserApi - functional programming interface
  15496. * @export
  15497. */
  15498. export const UserApiFp = function(configuration?: Configuration) {
  15499. const localVarAxiosParamCreator = UserApiAxiosParamCreator(configuration)
  15500. return {
  15501. /**
  15502. *
  15503. * @param {File} file
  15504. * @param {*} [options] Override http request option.
  15505. * @throws {RequiredError}
  15506. */
  15507. async createProfileImage(file: File, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateProfileImageResponseDto>> {
  15508. const localVarAxiosArgs = await localVarAxiosParamCreator.createProfileImage(file, options);
  15509. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  15510. },
  15511. /**
  15512. *
  15513. * @param {CreateUserDto} createUserDto
  15514. * @param {*} [options] Override http request option.
  15515. * @throws {RequiredError}
  15516. */
  15517. async createUser(createUserDto: CreateUserDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  15518. const localVarAxiosArgs = await localVarAxiosParamCreator.createUser(createUserDto, options);
  15519. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  15520. },
  15521. /**
  15522. *
  15523. * @param {*} [options] Override http request option.
  15524. * @throws {RequiredError}
  15525. */
  15526. async deleteProfileImage(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  15527. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteProfileImage(options);
  15528. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  15529. },
  15530. /**
  15531. *
  15532. * @param {string} id
  15533. * @param {*} [options] Override http request option.
  15534. * @throws {RequiredError}
  15535. */
  15536. async deleteUser(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  15537. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUser(id, options);
  15538. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  15539. },
  15540. /**
  15541. *
  15542. * @param {boolean} isAll
  15543. * @param {*} [options] Override http request option.
  15544. * @throws {RequiredError}
  15545. */
  15546. async getAllUsers(isAll: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<UserResponseDto>>> {
  15547. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllUsers(isAll, options);
  15548. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  15549. },
  15550. /**
  15551. *
  15552. * @param {*} [options] Override http request option.
  15553. * @throws {RequiredError}
  15554. */
  15555. async getMyUserInfo(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  15556. const localVarAxiosArgs = await localVarAxiosParamCreator.getMyUserInfo(options);
  15557. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  15558. },
  15559. /**
  15560. *
  15561. * @param {string} id
  15562. * @param {*} [options] Override http request option.
  15563. * @throws {RequiredError}
  15564. */
  15565. async getProfileImage(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
  15566. const localVarAxiosArgs = await localVarAxiosParamCreator.getProfileImage(id, options);
  15567. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  15568. },
  15569. /**
  15570. *
  15571. * @param {string} id
  15572. * @param {*} [options] Override http request option.
  15573. * @throws {RequiredError}
  15574. */
  15575. async getUserById(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  15576. const localVarAxiosArgs = await localVarAxiosParamCreator.getUserById(id, options);
  15577. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  15578. },
  15579. /**
  15580. *
  15581. * @param {string} id
  15582. * @param {*} [options] Override http request option.
  15583. * @throws {RequiredError}
  15584. */
  15585. async restoreUser(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  15586. const localVarAxiosArgs = await localVarAxiosParamCreator.restoreUser(id, options);
  15587. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  15588. },
  15589. /**
  15590. *
  15591. * @param {UpdateUserDto} updateUserDto
  15592. * @param {*} [options] Override http request option.
  15593. * @throws {RequiredError}
  15594. */
  15595. async updateUser(updateUserDto: UpdateUserDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  15596. const localVarAxiosArgs = await localVarAxiosParamCreator.updateUser(updateUserDto, options);
  15597. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  15598. },
  15599. }
  15600. };
  15601. /**
  15602. * UserApi - factory interface
  15603. * @export
  15604. */
  15605. export const UserApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  15606. const localVarFp = UserApiFp(configuration)
  15607. return {
  15608. /**
  15609. *
  15610. * @param {UserApiCreateProfileImageRequest} requestParameters Request parameters.
  15611. * @param {*} [options] Override http request option.
  15612. * @throws {RequiredError}
  15613. */
  15614. createProfileImage(requestParameters: UserApiCreateProfileImageRequest, options?: AxiosRequestConfig): AxiosPromise<CreateProfileImageResponseDto> {
  15615. return localVarFp.createProfileImage(requestParameters.file, options).then((request) => request(axios, basePath));
  15616. },
  15617. /**
  15618. *
  15619. * @param {UserApiCreateUserRequest} requestParameters Request parameters.
  15620. * @param {*} [options] Override http request option.
  15621. * @throws {RequiredError}
  15622. */
  15623. createUser(requestParameters: UserApiCreateUserRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  15624. return localVarFp.createUser(requestParameters.createUserDto, options).then((request) => request(axios, basePath));
  15625. },
  15626. /**
  15627. *
  15628. * @param {*} [options] Override http request option.
  15629. * @throws {RequiredError}
  15630. */
  15631. deleteProfileImage(options?: AxiosRequestConfig): AxiosPromise<void> {
  15632. return localVarFp.deleteProfileImage(options).then((request) => request(axios, basePath));
  15633. },
  15634. /**
  15635. *
  15636. * @param {UserApiDeleteUserRequest} requestParameters Request parameters.
  15637. * @param {*} [options] Override http request option.
  15638. * @throws {RequiredError}
  15639. */
  15640. deleteUser(requestParameters: UserApiDeleteUserRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  15641. return localVarFp.deleteUser(requestParameters.id, options).then((request) => request(axios, basePath));
  15642. },
  15643. /**
  15644. *
  15645. * @param {UserApiGetAllUsersRequest} requestParameters Request parameters.
  15646. * @param {*} [options] Override http request option.
  15647. * @throws {RequiredError}
  15648. */
  15649. getAllUsers(requestParameters: UserApiGetAllUsersRequest, options?: AxiosRequestConfig): AxiosPromise<Array<UserResponseDto>> {
  15650. return localVarFp.getAllUsers(requestParameters.isAll, options).then((request) => request(axios, basePath));
  15651. },
  15652. /**
  15653. *
  15654. * @param {*} [options] Override http request option.
  15655. * @throws {RequiredError}
  15656. */
  15657. getMyUserInfo(options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  15658. return localVarFp.getMyUserInfo(options).then((request) => request(axios, basePath));
  15659. },
  15660. /**
  15661. *
  15662. * @param {UserApiGetProfileImageRequest} requestParameters Request parameters.
  15663. * @param {*} [options] Override http request option.
  15664. * @throws {RequiredError}
  15665. */
  15666. getProfileImage(requestParameters: UserApiGetProfileImageRequest, options?: AxiosRequestConfig): AxiosPromise<object> {
  15667. return localVarFp.getProfileImage(requestParameters.id, options).then((request) => request(axios, basePath));
  15668. },
  15669. /**
  15670. *
  15671. * @param {UserApiGetUserByIdRequest} requestParameters Request parameters.
  15672. * @param {*} [options] Override http request option.
  15673. * @throws {RequiredError}
  15674. */
  15675. getUserById(requestParameters: UserApiGetUserByIdRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  15676. return localVarFp.getUserById(requestParameters.id, options).then((request) => request(axios, basePath));
  15677. },
  15678. /**
  15679. *
  15680. * @param {UserApiRestoreUserRequest} requestParameters Request parameters.
  15681. * @param {*} [options] Override http request option.
  15682. * @throws {RequiredError}
  15683. */
  15684. restoreUser(requestParameters: UserApiRestoreUserRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  15685. return localVarFp.restoreUser(requestParameters.id, options).then((request) => request(axios, basePath));
  15686. },
  15687. /**
  15688. *
  15689. * @param {UserApiUpdateUserRequest} requestParameters Request parameters.
  15690. * @param {*} [options] Override http request option.
  15691. * @throws {RequiredError}
  15692. */
  15693. updateUser(requestParameters: UserApiUpdateUserRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  15694. return localVarFp.updateUser(requestParameters.updateUserDto, options).then((request) => request(axios, basePath));
  15695. },
  15696. };
  15697. };
  15698. /**
  15699. * Request parameters for createProfileImage operation in UserApi.
  15700. * @export
  15701. * @interface UserApiCreateProfileImageRequest
  15702. */
  15703. export interface UserApiCreateProfileImageRequest {
  15704. /**
  15705. *
  15706. * @type {File}
  15707. * @memberof UserApiCreateProfileImage
  15708. */
  15709. readonly file: File
  15710. }
  15711. /**
  15712. * Request parameters for createUser operation in UserApi.
  15713. * @export
  15714. * @interface UserApiCreateUserRequest
  15715. */
  15716. export interface UserApiCreateUserRequest {
  15717. /**
  15718. *
  15719. * @type {CreateUserDto}
  15720. * @memberof UserApiCreateUser
  15721. */
  15722. readonly createUserDto: CreateUserDto
  15723. }
  15724. /**
  15725. * Request parameters for deleteUser operation in UserApi.
  15726. * @export
  15727. * @interface UserApiDeleteUserRequest
  15728. */
  15729. export interface UserApiDeleteUserRequest {
  15730. /**
  15731. *
  15732. * @type {string}
  15733. * @memberof UserApiDeleteUser
  15734. */
  15735. readonly id: string
  15736. }
  15737. /**
  15738. * Request parameters for getAllUsers operation in UserApi.
  15739. * @export
  15740. * @interface UserApiGetAllUsersRequest
  15741. */
  15742. export interface UserApiGetAllUsersRequest {
  15743. /**
  15744. *
  15745. * @type {boolean}
  15746. * @memberof UserApiGetAllUsers
  15747. */
  15748. readonly isAll: boolean
  15749. }
  15750. /**
  15751. * Request parameters for getProfileImage operation in UserApi.
  15752. * @export
  15753. * @interface UserApiGetProfileImageRequest
  15754. */
  15755. export interface UserApiGetProfileImageRequest {
  15756. /**
  15757. *
  15758. * @type {string}
  15759. * @memberof UserApiGetProfileImage
  15760. */
  15761. readonly id: string
  15762. }
  15763. /**
  15764. * Request parameters for getUserById operation in UserApi.
  15765. * @export
  15766. * @interface UserApiGetUserByIdRequest
  15767. */
  15768. export interface UserApiGetUserByIdRequest {
  15769. /**
  15770. *
  15771. * @type {string}
  15772. * @memberof UserApiGetUserById
  15773. */
  15774. readonly id: string
  15775. }
  15776. /**
  15777. * Request parameters for restoreUser operation in UserApi.
  15778. * @export
  15779. * @interface UserApiRestoreUserRequest
  15780. */
  15781. export interface UserApiRestoreUserRequest {
  15782. /**
  15783. *
  15784. * @type {string}
  15785. * @memberof UserApiRestoreUser
  15786. */
  15787. readonly id: string
  15788. }
  15789. /**
  15790. * Request parameters for updateUser operation in UserApi.
  15791. * @export
  15792. * @interface UserApiUpdateUserRequest
  15793. */
  15794. export interface UserApiUpdateUserRequest {
  15795. /**
  15796. *
  15797. * @type {UpdateUserDto}
  15798. * @memberof UserApiUpdateUser
  15799. */
  15800. readonly updateUserDto: UpdateUserDto
  15801. }
  15802. /**
  15803. * UserApi - object-oriented interface
  15804. * @export
  15805. * @class UserApi
  15806. * @extends {BaseAPI}
  15807. */
  15808. export class UserApi extends BaseAPI {
  15809. /**
  15810. *
  15811. * @param {UserApiCreateProfileImageRequest} requestParameters Request parameters.
  15812. * @param {*} [options] Override http request option.
  15813. * @throws {RequiredError}
  15814. * @memberof UserApi
  15815. */
  15816. public createProfileImage(requestParameters: UserApiCreateProfileImageRequest, options?: AxiosRequestConfig) {
  15817. return UserApiFp(this.configuration).createProfileImage(requestParameters.file, options).then((request) => request(this.axios, this.basePath));
  15818. }
  15819. /**
  15820. *
  15821. * @param {UserApiCreateUserRequest} requestParameters Request parameters.
  15822. * @param {*} [options] Override http request option.
  15823. * @throws {RequiredError}
  15824. * @memberof UserApi
  15825. */
  15826. public createUser(requestParameters: UserApiCreateUserRequest, options?: AxiosRequestConfig) {
  15827. return UserApiFp(this.configuration).createUser(requestParameters.createUserDto, options).then((request) => request(this.axios, this.basePath));
  15828. }
  15829. /**
  15830. *
  15831. * @param {*} [options] Override http request option.
  15832. * @throws {RequiredError}
  15833. * @memberof UserApi
  15834. */
  15835. public deleteProfileImage(options?: AxiosRequestConfig) {
  15836. return UserApiFp(this.configuration).deleteProfileImage(options).then((request) => request(this.axios, this.basePath));
  15837. }
  15838. /**
  15839. *
  15840. * @param {UserApiDeleteUserRequest} requestParameters Request parameters.
  15841. * @param {*} [options] Override http request option.
  15842. * @throws {RequiredError}
  15843. * @memberof UserApi
  15844. */
  15845. public deleteUser(requestParameters: UserApiDeleteUserRequest, options?: AxiosRequestConfig) {
  15846. return UserApiFp(this.configuration).deleteUser(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  15847. }
  15848. /**
  15849. *
  15850. * @param {UserApiGetAllUsersRequest} requestParameters Request parameters.
  15851. * @param {*} [options] Override http request option.
  15852. * @throws {RequiredError}
  15853. * @memberof UserApi
  15854. */
  15855. public getAllUsers(requestParameters: UserApiGetAllUsersRequest, options?: AxiosRequestConfig) {
  15856. return UserApiFp(this.configuration).getAllUsers(requestParameters.isAll, options).then((request) => request(this.axios, this.basePath));
  15857. }
  15858. /**
  15859. *
  15860. * @param {*} [options] Override http request option.
  15861. * @throws {RequiredError}
  15862. * @memberof UserApi
  15863. */
  15864. public getMyUserInfo(options?: AxiosRequestConfig) {
  15865. return UserApiFp(this.configuration).getMyUserInfo(options).then((request) => request(this.axios, this.basePath));
  15866. }
  15867. /**
  15868. *
  15869. * @param {UserApiGetProfileImageRequest} requestParameters Request parameters.
  15870. * @param {*} [options] Override http request option.
  15871. * @throws {RequiredError}
  15872. * @memberof UserApi
  15873. */
  15874. public getProfileImage(requestParameters: UserApiGetProfileImageRequest, options?: AxiosRequestConfig) {
  15875. return UserApiFp(this.configuration).getProfileImage(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  15876. }
  15877. /**
  15878. *
  15879. * @param {UserApiGetUserByIdRequest} requestParameters Request parameters.
  15880. * @param {*} [options] Override http request option.
  15881. * @throws {RequiredError}
  15882. * @memberof UserApi
  15883. */
  15884. public getUserById(requestParameters: UserApiGetUserByIdRequest, options?: AxiosRequestConfig) {
  15885. return UserApiFp(this.configuration).getUserById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  15886. }
  15887. /**
  15888. *
  15889. * @param {UserApiRestoreUserRequest} requestParameters Request parameters.
  15890. * @param {*} [options] Override http request option.
  15891. * @throws {RequiredError}
  15892. * @memberof UserApi
  15893. */
  15894. public restoreUser(requestParameters: UserApiRestoreUserRequest, options?: AxiosRequestConfig) {
  15895. return UserApiFp(this.configuration).restoreUser(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  15896. }
  15897. /**
  15898. *
  15899. * @param {UserApiUpdateUserRequest} requestParameters Request parameters.
  15900. * @param {*} [options] Override http request option.
  15901. * @throws {RequiredError}
  15902. * @memberof UserApi
  15903. */
  15904. public updateUser(requestParameters: UserApiUpdateUserRequest, options?: AxiosRequestConfig) {
  15905. return UserApiFp(this.configuration).updateUser(requestParameters.updateUserDto, options).then((request) => request(this.axios, this.basePath));
  15906. }
  15907. }