api.ts 537 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639
  1. /* tslint:disable */
  2. /* eslint-disable */
  3. /**
  4. * Immich
  5. * Immich API
  6. *
  7. * The version of the OpenAPI document: 1.81.1
  8. *
  9. *
  10. * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
  11. * https://openapi-generator.tech
  12. * Do not edit the class manually.
  13. */
  14. import type { Configuration } from './configuration';
  15. import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
  16. import globalAxios from 'axios';
  17. // Some imports not used depending on template conditions
  18. // @ts-ignore
  19. import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
  20. import type { RequestArgs } from './base';
  21. // @ts-ignore
  22. import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError } from './base';
  23. /**
  24. *
  25. * @export
  26. * @interface APIKeyCreateDto
  27. */
  28. export interface APIKeyCreateDto {
  29. /**
  30. *
  31. * @type {string}
  32. * @memberof APIKeyCreateDto
  33. */
  34. 'name'?: string;
  35. }
  36. /**
  37. *
  38. * @export
  39. * @interface APIKeyCreateResponseDto
  40. */
  41. export interface APIKeyCreateResponseDto {
  42. /**
  43. *
  44. * @type {APIKeyResponseDto}
  45. * @memberof APIKeyCreateResponseDto
  46. */
  47. 'apiKey': APIKeyResponseDto;
  48. /**
  49. *
  50. * @type {string}
  51. * @memberof APIKeyCreateResponseDto
  52. */
  53. 'secret': string;
  54. }
  55. /**
  56. *
  57. * @export
  58. * @interface APIKeyResponseDto
  59. */
  60. export interface APIKeyResponseDto {
  61. /**
  62. *
  63. * @type {string}
  64. * @memberof APIKeyResponseDto
  65. */
  66. 'createdAt': string;
  67. /**
  68. *
  69. * @type {string}
  70. * @memberof APIKeyResponseDto
  71. */
  72. 'id': string;
  73. /**
  74. *
  75. * @type {string}
  76. * @memberof APIKeyResponseDto
  77. */
  78. 'name': string;
  79. /**
  80. *
  81. * @type {string}
  82. * @memberof APIKeyResponseDto
  83. */
  84. 'updatedAt': string;
  85. }
  86. /**
  87. *
  88. * @export
  89. * @interface APIKeyUpdateDto
  90. */
  91. export interface APIKeyUpdateDto {
  92. /**
  93. *
  94. * @type {string}
  95. * @memberof APIKeyUpdateDto
  96. */
  97. 'name': string;
  98. }
  99. /**
  100. *
  101. * @export
  102. * @interface AddUsersDto
  103. */
  104. export interface AddUsersDto {
  105. /**
  106. *
  107. * @type {Array<string>}
  108. * @memberof AddUsersDto
  109. */
  110. 'sharedUserIds': Array<string>;
  111. }
  112. /**
  113. *
  114. * @export
  115. * @interface AdminSignupResponseDto
  116. */
  117. export interface AdminSignupResponseDto {
  118. /**
  119. *
  120. * @type {string}
  121. * @memberof AdminSignupResponseDto
  122. */
  123. 'createdAt': string;
  124. /**
  125. *
  126. * @type {string}
  127. * @memberof AdminSignupResponseDto
  128. */
  129. 'email': string;
  130. /**
  131. *
  132. * @type {string}
  133. * @memberof AdminSignupResponseDto
  134. */
  135. 'firstName': string;
  136. /**
  137. *
  138. * @type {string}
  139. * @memberof AdminSignupResponseDto
  140. */
  141. 'id': string;
  142. /**
  143. *
  144. * @type {string}
  145. * @memberof AdminSignupResponseDto
  146. */
  147. 'lastName': string;
  148. }
  149. /**
  150. *
  151. * @export
  152. * @interface AlbumCountResponseDto
  153. */
  154. export interface AlbumCountResponseDto {
  155. /**
  156. *
  157. * @type {number}
  158. * @memberof AlbumCountResponseDto
  159. */
  160. 'notShared': number;
  161. /**
  162. *
  163. * @type {number}
  164. * @memberof AlbumCountResponseDto
  165. */
  166. 'owned': number;
  167. /**
  168. *
  169. * @type {number}
  170. * @memberof AlbumCountResponseDto
  171. */
  172. 'shared': number;
  173. }
  174. /**
  175. *
  176. * @export
  177. * @interface AlbumResponseDto
  178. */
  179. export interface AlbumResponseDto {
  180. /**
  181. *
  182. * @type {string}
  183. * @memberof AlbumResponseDto
  184. */
  185. 'albumName': string;
  186. /**
  187. *
  188. * @type {string}
  189. * @memberof AlbumResponseDto
  190. */
  191. 'albumThumbnailAssetId': string | null;
  192. /**
  193. *
  194. * @type {number}
  195. * @memberof AlbumResponseDto
  196. */
  197. 'assetCount': number;
  198. /**
  199. *
  200. * @type {Array<AssetResponseDto>}
  201. * @memberof AlbumResponseDto
  202. */
  203. 'assets': Array<AssetResponseDto>;
  204. /**
  205. *
  206. * @type {string}
  207. * @memberof AlbumResponseDto
  208. */
  209. 'createdAt': string;
  210. /**
  211. *
  212. * @type {string}
  213. * @memberof AlbumResponseDto
  214. */
  215. 'description': string;
  216. /**
  217. *
  218. * @type {string}
  219. * @memberof AlbumResponseDto
  220. */
  221. 'endDate'?: string;
  222. /**
  223. *
  224. * @type {boolean}
  225. * @memberof AlbumResponseDto
  226. */
  227. 'hasSharedLink': boolean;
  228. /**
  229. *
  230. * @type {string}
  231. * @memberof AlbumResponseDto
  232. */
  233. 'id': string;
  234. /**
  235. *
  236. * @type {string}
  237. * @memberof AlbumResponseDto
  238. */
  239. 'lastModifiedAssetTimestamp'?: string;
  240. /**
  241. *
  242. * @type {UserResponseDto}
  243. * @memberof AlbumResponseDto
  244. */
  245. 'owner': UserResponseDto;
  246. /**
  247. *
  248. * @type {string}
  249. * @memberof AlbumResponseDto
  250. */
  251. 'ownerId': string;
  252. /**
  253. *
  254. * @type {boolean}
  255. * @memberof AlbumResponseDto
  256. */
  257. 'shared': boolean;
  258. /**
  259. *
  260. * @type {Array<UserResponseDto>}
  261. * @memberof AlbumResponseDto
  262. */
  263. 'sharedUsers': Array<UserResponseDto>;
  264. /**
  265. *
  266. * @type {string}
  267. * @memberof AlbumResponseDto
  268. */
  269. 'startDate'?: string;
  270. /**
  271. *
  272. * @type {string}
  273. * @memberof AlbumResponseDto
  274. */
  275. 'updatedAt': string;
  276. }
  277. /**
  278. *
  279. * @export
  280. * @interface AllJobStatusResponseDto
  281. */
  282. export interface AllJobStatusResponseDto {
  283. /**
  284. *
  285. * @type {JobStatusDto}
  286. * @memberof AllJobStatusResponseDto
  287. */
  288. 'backgroundTask': JobStatusDto;
  289. /**
  290. *
  291. * @type {JobStatusDto}
  292. * @memberof AllJobStatusResponseDto
  293. */
  294. 'clipEncoding': JobStatusDto;
  295. /**
  296. *
  297. * @type {JobStatusDto}
  298. * @memberof AllJobStatusResponseDto
  299. */
  300. 'library': JobStatusDto;
  301. /**
  302. *
  303. * @type {JobStatusDto}
  304. * @memberof AllJobStatusResponseDto
  305. */
  306. 'metadataExtraction': JobStatusDto;
  307. /**
  308. *
  309. * @type {JobStatusDto}
  310. * @memberof AllJobStatusResponseDto
  311. */
  312. 'migration': JobStatusDto;
  313. /**
  314. *
  315. * @type {JobStatusDto}
  316. * @memberof AllJobStatusResponseDto
  317. */
  318. 'objectTagging': JobStatusDto;
  319. /**
  320. *
  321. * @type {JobStatusDto}
  322. * @memberof AllJobStatusResponseDto
  323. */
  324. 'recognizeFaces': JobStatusDto;
  325. /**
  326. *
  327. * @type {JobStatusDto}
  328. * @memberof AllJobStatusResponseDto
  329. */
  330. 'search': JobStatusDto;
  331. /**
  332. *
  333. * @type {JobStatusDto}
  334. * @memberof AllJobStatusResponseDto
  335. */
  336. 'sidecar': JobStatusDto;
  337. /**
  338. *
  339. * @type {JobStatusDto}
  340. * @memberof AllJobStatusResponseDto
  341. */
  342. 'storageTemplateMigration': JobStatusDto;
  343. /**
  344. *
  345. * @type {JobStatusDto}
  346. * @memberof AllJobStatusResponseDto
  347. */
  348. 'thumbnailGeneration': JobStatusDto;
  349. /**
  350. *
  351. * @type {JobStatusDto}
  352. * @memberof AllJobStatusResponseDto
  353. */
  354. 'videoConversion': JobStatusDto;
  355. }
  356. /**
  357. *
  358. * @export
  359. * @interface AssetBulkDeleteDto
  360. */
  361. export interface AssetBulkDeleteDto {
  362. /**
  363. *
  364. * @type {boolean}
  365. * @memberof AssetBulkDeleteDto
  366. */
  367. 'force'?: boolean;
  368. /**
  369. *
  370. * @type {Array<string>}
  371. * @memberof AssetBulkDeleteDto
  372. */
  373. 'ids': Array<string>;
  374. }
  375. /**
  376. *
  377. * @export
  378. * @interface AssetBulkUpdateDto
  379. */
  380. export interface AssetBulkUpdateDto {
  381. /**
  382. *
  383. * @type {Array<string>}
  384. * @memberof AssetBulkUpdateDto
  385. */
  386. 'ids': Array<string>;
  387. /**
  388. *
  389. * @type {boolean}
  390. * @memberof AssetBulkUpdateDto
  391. */
  392. 'isArchived'?: boolean;
  393. /**
  394. *
  395. * @type {boolean}
  396. * @memberof AssetBulkUpdateDto
  397. */
  398. 'isFavorite'?: boolean;
  399. }
  400. /**
  401. *
  402. * @export
  403. * @interface AssetBulkUploadCheckDto
  404. */
  405. export interface AssetBulkUploadCheckDto {
  406. /**
  407. *
  408. * @type {Array<AssetBulkUploadCheckItem>}
  409. * @memberof AssetBulkUploadCheckDto
  410. */
  411. 'assets': Array<AssetBulkUploadCheckItem>;
  412. }
  413. /**
  414. *
  415. * @export
  416. * @interface AssetBulkUploadCheckItem
  417. */
  418. export interface AssetBulkUploadCheckItem {
  419. /**
  420. * base64 or hex encoded sha1 hash
  421. * @type {string}
  422. * @memberof AssetBulkUploadCheckItem
  423. */
  424. 'checksum': string;
  425. /**
  426. *
  427. * @type {string}
  428. * @memberof AssetBulkUploadCheckItem
  429. */
  430. 'id': string;
  431. }
  432. /**
  433. *
  434. * @export
  435. * @interface AssetBulkUploadCheckResponseDto
  436. */
  437. export interface AssetBulkUploadCheckResponseDto {
  438. /**
  439. *
  440. * @type {Array<AssetBulkUploadCheckResult>}
  441. * @memberof AssetBulkUploadCheckResponseDto
  442. */
  443. 'results': Array<AssetBulkUploadCheckResult>;
  444. }
  445. /**
  446. *
  447. * @export
  448. * @interface AssetBulkUploadCheckResult
  449. */
  450. export interface AssetBulkUploadCheckResult {
  451. /**
  452. *
  453. * @type {string}
  454. * @memberof AssetBulkUploadCheckResult
  455. */
  456. 'action': AssetBulkUploadCheckResultActionEnum;
  457. /**
  458. *
  459. * @type {string}
  460. * @memberof AssetBulkUploadCheckResult
  461. */
  462. 'assetId'?: string;
  463. /**
  464. *
  465. * @type {string}
  466. * @memberof AssetBulkUploadCheckResult
  467. */
  468. 'id': string;
  469. /**
  470. *
  471. * @type {string}
  472. * @memberof AssetBulkUploadCheckResult
  473. */
  474. 'reason'?: AssetBulkUploadCheckResultReasonEnum;
  475. }
  476. export const AssetBulkUploadCheckResultActionEnum = {
  477. Accept: 'accept',
  478. Reject: 'reject'
  479. } as const;
  480. export type AssetBulkUploadCheckResultActionEnum = typeof AssetBulkUploadCheckResultActionEnum[keyof typeof AssetBulkUploadCheckResultActionEnum];
  481. export const AssetBulkUploadCheckResultReasonEnum = {
  482. Duplicate: 'duplicate',
  483. UnsupportedFormat: 'unsupported-format'
  484. } as const;
  485. export type AssetBulkUploadCheckResultReasonEnum = typeof AssetBulkUploadCheckResultReasonEnum[keyof typeof AssetBulkUploadCheckResultReasonEnum];
  486. /**
  487. *
  488. * @export
  489. * @interface AssetFileUploadResponseDto
  490. */
  491. export interface AssetFileUploadResponseDto {
  492. /**
  493. *
  494. * @type {boolean}
  495. * @memberof AssetFileUploadResponseDto
  496. */
  497. 'duplicate': boolean;
  498. /**
  499. *
  500. * @type {string}
  501. * @memberof AssetFileUploadResponseDto
  502. */
  503. 'id': string;
  504. }
  505. /**
  506. *
  507. * @export
  508. * @interface AssetIdsDto
  509. */
  510. export interface AssetIdsDto {
  511. /**
  512. *
  513. * @type {Array<string>}
  514. * @memberof AssetIdsDto
  515. */
  516. 'assetIds': Array<string>;
  517. }
  518. /**
  519. *
  520. * @export
  521. * @interface AssetIdsResponseDto
  522. */
  523. export interface AssetIdsResponseDto {
  524. /**
  525. *
  526. * @type {string}
  527. * @memberof AssetIdsResponseDto
  528. */
  529. 'assetId': string;
  530. /**
  531. *
  532. * @type {string}
  533. * @memberof AssetIdsResponseDto
  534. */
  535. 'error'?: AssetIdsResponseDtoErrorEnum;
  536. /**
  537. *
  538. * @type {boolean}
  539. * @memberof AssetIdsResponseDto
  540. */
  541. 'success': boolean;
  542. }
  543. export const AssetIdsResponseDtoErrorEnum = {
  544. Duplicate: 'duplicate',
  545. NoPermission: 'no_permission',
  546. NotFound: 'not_found'
  547. } as const;
  548. export type AssetIdsResponseDtoErrorEnum = typeof AssetIdsResponseDtoErrorEnum[keyof typeof AssetIdsResponseDtoErrorEnum];
  549. /**
  550. *
  551. * @export
  552. * @enum {string}
  553. */
  554. export const AssetJobName = {
  555. RegenerateThumbnail: 'regenerate-thumbnail',
  556. RefreshMetadata: 'refresh-metadata',
  557. TranscodeVideo: 'transcode-video'
  558. } as const;
  559. export type AssetJobName = typeof AssetJobName[keyof typeof AssetJobName];
  560. /**
  561. *
  562. * @export
  563. * @interface AssetJobsDto
  564. */
  565. export interface AssetJobsDto {
  566. /**
  567. *
  568. * @type {Array<string>}
  569. * @memberof AssetJobsDto
  570. */
  571. 'assetIds': Array<string>;
  572. /**
  573. *
  574. * @type {AssetJobName}
  575. * @memberof AssetJobsDto
  576. */
  577. 'name': AssetJobName;
  578. }
  579. /**
  580. *
  581. * @export
  582. * @interface AssetResponseDto
  583. */
  584. export interface AssetResponseDto {
  585. /**
  586. * base64 encoded sha1 hash
  587. * @type {string}
  588. * @memberof AssetResponseDto
  589. */
  590. 'checksum': string;
  591. /**
  592. *
  593. * @type {string}
  594. * @memberof AssetResponseDto
  595. */
  596. 'deviceAssetId': string;
  597. /**
  598. *
  599. * @type {string}
  600. * @memberof AssetResponseDto
  601. */
  602. 'deviceId': string;
  603. /**
  604. *
  605. * @type {string}
  606. * @memberof AssetResponseDto
  607. */
  608. 'duration': string;
  609. /**
  610. *
  611. * @type {ExifResponseDto}
  612. * @memberof AssetResponseDto
  613. */
  614. 'exifInfo'?: ExifResponseDto;
  615. /**
  616. *
  617. * @type {string}
  618. * @memberof AssetResponseDto
  619. */
  620. 'fileCreatedAt': string;
  621. /**
  622. *
  623. * @type {string}
  624. * @memberof AssetResponseDto
  625. */
  626. 'fileModifiedAt': string;
  627. /**
  628. *
  629. * @type {string}
  630. * @memberof AssetResponseDto
  631. */
  632. 'id': string;
  633. /**
  634. *
  635. * @type {boolean}
  636. * @memberof AssetResponseDto
  637. */
  638. 'isArchived': boolean;
  639. /**
  640. *
  641. * @type {boolean}
  642. * @memberof AssetResponseDto
  643. */
  644. 'isExternal': boolean;
  645. /**
  646. *
  647. * @type {boolean}
  648. * @memberof AssetResponseDto
  649. */
  650. 'isFavorite': boolean;
  651. /**
  652. *
  653. * @type {boolean}
  654. * @memberof AssetResponseDto
  655. */
  656. 'isOffline': boolean;
  657. /**
  658. *
  659. * @type {boolean}
  660. * @memberof AssetResponseDto
  661. */
  662. 'isReadOnly': boolean;
  663. /**
  664. *
  665. * @type {boolean}
  666. * @memberof AssetResponseDto
  667. */
  668. 'isTrashed': boolean;
  669. /**
  670. *
  671. * @type {string}
  672. * @memberof AssetResponseDto
  673. */
  674. 'libraryId': string;
  675. /**
  676. *
  677. * @type {string}
  678. * @memberof AssetResponseDto
  679. */
  680. 'livePhotoVideoId'?: string | null;
  681. /**
  682. *
  683. * @type {string}
  684. * @memberof AssetResponseDto
  685. */
  686. 'localDateTime': string;
  687. /**
  688. *
  689. * @type {string}
  690. * @memberof AssetResponseDto
  691. */
  692. 'originalFileName': string;
  693. /**
  694. *
  695. * @type {string}
  696. * @memberof AssetResponseDto
  697. */
  698. 'originalPath': string;
  699. /**
  700. *
  701. * @type {UserResponseDto}
  702. * @memberof AssetResponseDto
  703. */
  704. 'owner'?: UserResponseDto;
  705. /**
  706. *
  707. * @type {string}
  708. * @memberof AssetResponseDto
  709. */
  710. 'ownerId': string;
  711. /**
  712. *
  713. * @type {Array<PersonResponseDto>}
  714. * @memberof AssetResponseDto
  715. */
  716. 'people'?: Array<PersonResponseDto>;
  717. /**
  718. *
  719. * @type {boolean}
  720. * @memberof AssetResponseDto
  721. */
  722. 'resized': boolean;
  723. /**
  724. *
  725. * @type {SmartInfoResponseDto}
  726. * @memberof AssetResponseDto
  727. */
  728. 'smartInfo'?: SmartInfoResponseDto;
  729. /**
  730. *
  731. * @type {Array<TagResponseDto>}
  732. * @memberof AssetResponseDto
  733. */
  734. 'tags'?: Array<TagResponseDto>;
  735. /**
  736. * base64 encoded thumbhash
  737. * @type {string}
  738. * @memberof AssetResponseDto
  739. */
  740. 'thumbhash': string | null;
  741. /**
  742. *
  743. * @type {AssetTypeEnum}
  744. * @memberof AssetResponseDto
  745. */
  746. 'type': AssetTypeEnum;
  747. /**
  748. *
  749. * @type {string}
  750. * @memberof AssetResponseDto
  751. */
  752. 'updatedAt': string;
  753. }
  754. /**
  755. *
  756. * @export
  757. * @interface AssetStatsResponseDto
  758. */
  759. export interface AssetStatsResponseDto {
  760. /**
  761. *
  762. * @type {number}
  763. * @memberof AssetStatsResponseDto
  764. */
  765. 'images': number;
  766. /**
  767. *
  768. * @type {number}
  769. * @memberof AssetStatsResponseDto
  770. */
  771. 'total': number;
  772. /**
  773. *
  774. * @type {number}
  775. * @memberof AssetStatsResponseDto
  776. */
  777. 'videos': number;
  778. }
  779. /**
  780. *
  781. * @export
  782. * @enum {string}
  783. */
  784. export const AssetTypeEnum = {
  785. Image: 'IMAGE',
  786. Video: 'VIDEO',
  787. Audio: 'AUDIO',
  788. Other: 'OTHER'
  789. } as const;
  790. export type AssetTypeEnum = typeof AssetTypeEnum[keyof typeof AssetTypeEnum];
  791. /**
  792. *
  793. * @export
  794. * @enum {string}
  795. */
  796. export const AudioCodec = {
  797. Mp3: 'mp3',
  798. Aac: 'aac',
  799. Libopus: 'libopus'
  800. } as const;
  801. export type AudioCodec = typeof AudioCodec[keyof typeof AudioCodec];
  802. /**
  803. *
  804. * @export
  805. * @interface AuditDeletesResponseDto
  806. */
  807. export interface AuditDeletesResponseDto {
  808. /**
  809. *
  810. * @type {Array<string>}
  811. * @memberof AuditDeletesResponseDto
  812. */
  813. 'ids': Array<string>;
  814. /**
  815. *
  816. * @type {boolean}
  817. * @memberof AuditDeletesResponseDto
  818. */
  819. 'needsFullSync': boolean;
  820. }
  821. /**
  822. *
  823. * @export
  824. * @interface AuthDeviceResponseDto
  825. */
  826. export interface AuthDeviceResponseDto {
  827. /**
  828. *
  829. * @type {string}
  830. * @memberof AuthDeviceResponseDto
  831. */
  832. 'createdAt': string;
  833. /**
  834. *
  835. * @type {boolean}
  836. * @memberof AuthDeviceResponseDto
  837. */
  838. 'current': boolean;
  839. /**
  840. *
  841. * @type {string}
  842. * @memberof AuthDeviceResponseDto
  843. */
  844. 'deviceOS': string;
  845. /**
  846. *
  847. * @type {string}
  848. * @memberof AuthDeviceResponseDto
  849. */
  850. 'deviceType': string;
  851. /**
  852. *
  853. * @type {string}
  854. * @memberof AuthDeviceResponseDto
  855. */
  856. 'id': string;
  857. /**
  858. *
  859. * @type {string}
  860. * @memberof AuthDeviceResponseDto
  861. */
  862. 'updatedAt': string;
  863. }
  864. /**
  865. *
  866. * @export
  867. * @interface BulkIdResponseDto
  868. */
  869. export interface BulkIdResponseDto {
  870. /**
  871. *
  872. * @type {string}
  873. * @memberof BulkIdResponseDto
  874. */
  875. 'error'?: BulkIdResponseDtoErrorEnum;
  876. /**
  877. *
  878. * @type {string}
  879. * @memberof BulkIdResponseDto
  880. */
  881. 'id': string;
  882. /**
  883. *
  884. * @type {boolean}
  885. * @memberof BulkIdResponseDto
  886. */
  887. 'success': boolean;
  888. }
  889. export const BulkIdResponseDtoErrorEnum = {
  890. Duplicate: 'duplicate',
  891. NoPermission: 'no_permission',
  892. NotFound: 'not_found',
  893. Unknown: 'unknown'
  894. } as const;
  895. export type BulkIdResponseDtoErrorEnum = typeof BulkIdResponseDtoErrorEnum[keyof typeof BulkIdResponseDtoErrorEnum];
  896. /**
  897. *
  898. * @export
  899. * @interface BulkIdsDto
  900. */
  901. export interface BulkIdsDto {
  902. /**
  903. *
  904. * @type {Array<string>}
  905. * @memberof BulkIdsDto
  906. */
  907. 'ids': Array<string>;
  908. }
  909. /**
  910. *
  911. * @export
  912. * @interface CLIPConfig
  913. */
  914. export interface CLIPConfig {
  915. /**
  916. *
  917. * @type {boolean}
  918. * @memberof CLIPConfig
  919. */
  920. 'enabled': boolean;
  921. /**
  922. *
  923. * @type {CLIPMode}
  924. * @memberof CLIPConfig
  925. */
  926. 'mode'?: CLIPMode;
  927. /**
  928. *
  929. * @type {string}
  930. * @memberof CLIPConfig
  931. */
  932. 'modelName': string;
  933. /**
  934. *
  935. * @type {ModelType}
  936. * @memberof CLIPConfig
  937. */
  938. 'modelType'?: ModelType;
  939. }
  940. /**
  941. *
  942. * @export
  943. * @enum {string}
  944. */
  945. export const CLIPMode = {
  946. Vision: 'vision',
  947. Text: 'text'
  948. } as const;
  949. export type CLIPMode = typeof CLIPMode[keyof typeof CLIPMode];
  950. /**
  951. *
  952. * @export
  953. * @enum {string}
  954. */
  955. export const CQMode = {
  956. Auto: 'auto',
  957. Cqp: 'cqp',
  958. Icq: 'icq'
  959. } as const;
  960. export type CQMode = typeof CQMode[keyof typeof CQMode];
  961. /**
  962. *
  963. * @export
  964. * @interface ChangePasswordDto
  965. */
  966. export interface ChangePasswordDto {
  967. /**
  968. *
  969. * @type {string}
  970. * @memberof ChangePasswordDto
  971. */
  972. 'newPassword': string;
  973. /**
  974. *
  975. * @type {string}
  976. * @memberof ChangePasswordDto
  977. */
  978. 'password': string;
  979. }
  980. /**
  981. *
  982. * @export
  983. * @interface CheckDuplicateAssetDto
  984. */
  985. export interface CheckDuplicateAssetDto {
  986. /**
  987. *
  988. * @type {string}
  989. * @memberof CheckDuplicateAssetDto
  990. */
  991. 'deviceAssetId': string;
  992. /**
  993. *
  994. * @type {string}
  995. * @memberof CheckDuplicateAssetDto
  996. */
  997. 'deviceId': string;
  998. }
  999. /**
  1000. *
  1001. * @export
  1002. * @interface CheckDuplicateAssetResponseDto
  1003. */
  1004. export interface CheckDuplicateAssetResponseDto {
  1005. /**
  1006. *
  1007. * @type {string}
  1008. * @memberof CheckDuplicateAssetResponseDto
  1009. */
  1010. 'id'?: string;
  1011. /**
  1012. *
  1013. * @type {boolean}
  1014. * @memberof CheckDuplicateAssetResponseDto
  1015. */
  1016. 'isExist': boolean;
  1017. }
  1018. /**
  1019. *
  1020. * @export
  1021. * @interface CheckExistingAssetsDto
  1022. */
  1023. export interface CheckExistingAssetsDto {
  1024. /**
  1025. *
  1026. * @type {Array<string>}
  1027. * @memberof CheckExistingAssetsDto
  1028. */
  1029. 'deviceAssetIds': Array<string>;
  1030. /**
  1031. *
  1032. * @type {string}
  1033. * @memberof CheckExistingAssetsDto
  1034. */
  1035. 'deviceId': string;
  1036. }
  1037. /**
  1038. *
  1039. * @export
  1040. * @interface CheckExistingAssetsResponseDto
  1041. */
  1042. export interface CheckExistingAssetsResponseDto {
  1043. /**
  1044. *
  1045. * @type {Array<string>}
  1046. * @memberof CheckExistingAssetsResponseDto
  1047. */
  1048. 'existingIds': Array<string>;
  1049. }
  1050. /**
  1051. *
  1052. * @export
  1053. * @enum {string}
  1054. */
  1055. export const CitiesFile = {
  1056. Cities15000: 'cities15000',
  1057. Cities5000: 'cities5000',
  1058. Cities1000: 'cities1000',
  1059. Cities500: 'cities500'
  1060. } as const;
  1061. export type CitiesFile = typeof CitiesFile[keyof typeof CitiesFile];
  1062. /**
  1063. *
  1064. * @export
  1065. * @interface ClassificationConfig
  1066. */
  1067. export interface ClassificationConfig {
  1068. /**
  1069. *
  1070. * @type {boolean}
  1071. * @memberof ClassificationConfig
  1072. */
  1073. 'enabled': boolean;
  1074. /**
  1075. *
  1076. * @type {number}
  1077. * @memberof ClassificationConfig
  1078. */
  1079. 'minScore': number;
  1080. /**
  1081. *
  1082. * @type {string}
  1083. * @memberof ClassificationConfig
  1084. */
  1085. 'modelName': string;
  1086. /**
  1087. *
  1088. * @type {ModelType}
  1089. * @memberof ClassificationConfig
  1090. */
  1091. 'modelType'?: ModelType;
  1092. }
  1093. /**
  1094. *
  1095. * @export
  1096. * @enum {string}
  1097. */
  1098. export const Colorspace = {
  1099. Srgb: 'srgb',
  1100. P3: 'p3'
  1101. } as const;
  1102. export type Colorspace = typeof Colorspace[keyof typeof Colorspace];
  1103. /**
  1104. *
  1105. * @export
  1106. * @interface CreateAlbumDto
  1107. */
  1108. export interface CreateAlbumDto {
  1109. /**
  1110. *
  1111. * @type {string}
  1112. * @memberof CreateAlbumDto
  1113. */
  1114. 'albumName': string;
  1115. /**
  1116. *
  1117. * @type {Array<string>}
  1118. * @memberof CreateAlbumDto
  1119. */
  1120. 'assetIds'?: Array<string>;
  1121. /**
  1122. *
  1123. * @type {string}
  1124. * @memberof CreateAlbumDto
  1125. */
  1126. 'description'?: string;
  1127. /**
  1128. *
  1129. * @type {Array<string>}
  1130. * @memberof CreateAlbumDto
  1131. */
  1132. 'sharedWithUserIds'?: Array<string>;
  1133. }
  1134. /**
  1135. *
  1136. * @export
  1137. * @interface CreateLibraryDto
  1138. */
  1139. export interface CreateLibraryDto {
  1140. /**
  1141. *
  1142. * @type {Array<string>}
  1143. * @memberof CreateLibraryDto
  1144. */
  1145. 'exclusionPatterns'?: Array<string>;
  1146. /**
  1147. *
  1148. * @type {Array<string>}
  1149. * @memberof CreateLibraryDto
  1150. */
  1151. 'importPaths'?: Array<string>;
  1152. /**
  1153. *
  1154. * @type {boolean}
  1155. * @memberof CreateLibraryDto
  1156. */
  1157. 'isVisible'?: boolean;
  1158. /**
  1159. *
  1160. * @type {string}
  1161. * @memberof CreateLibraryDto
  1162. */
  1163. 'name'?: string;
  1164. /**
  1165. *
  1166. * @type {LibraryType}
  1167. * @memberof CreateLibraryDto
  1168. */
  1169. 'type': LibraryType;
  1170. }
  1171. /**
  1172. *
  1173. * @export
  1174. * @interface CreateProfileImageResponseDto
  1175. */
  1176. export interface CreateProfileImageResponseDto {
  1177. /**
  1178. *
  1179. * @type {string}
  1180. * @memberof CreateProfileImageResponseDto
  1181. */
  1182. 'profileImagePath': string;
  1183. /**
  1184. *
  1185. * @type {string}
  1186. * @memberof CreateProfileImageResponseDto
  1187. */
  1188. 'userId': string;
  1189. }
  1190. /**
  1191. *
  1192. * @export
  1193. * @interface CreateTagDto
  1194. */
  1195. export interface CreateTagDto {
  1196. /**
  1197. *
  1198. * @type {string}
  1199. * @memberof CreateTagDto
  1200. */
  1201. 'name': string;
  1202. /**
  1203. *
  1204. * @type {TagTypeEnum}
  1205. * @memberof CreateTagDto
  1206. */
  1207. 'type': TagTypeEnum;
  1208. }
  1209. /**
  1210. *
  1211. * @export
  1212. * @interface CreateUserDto
  1213. */
  1214. export interface CreateUserDto {
  1215. /**
  1216. *
  1217. * @type {string}
  1218. * @memberof CreateUserDto
  1219. */
  1220. 'email': string;
  1221. /**
  1222. *
  1223. * @type {string}
  1224. * @memberof CreateUserDto
  1225. */
  1226. 'externalPath'?: string | null;
  1227. /**
  1228. *
  1229. * @type {string}
  1230. * @memberof CreateUserDto
  1231. */
  1232. 'firstName': string;
  1233. /**
  1234. *
  1235. * @type {string}
  1236. * @memberof CreateUserDto
  1237. */
  1238. 'lastName': string;
  1239. /**
  1240. *
  1241. * @type {boolean}
  1242. * @memberof CreateUserDto
  1243. */
  1244. 'memoriesEnabled'?: boolean;
  1245. /**
  1246. *
  1247. * @type {string}
  1248. * @memberof CreateUserDto
  1249. */
  1250. 'password': string;
  1251. /**
  1252. *
  1253. * @type {string}
  1254. * @memberof CreateUserDto
  1255. */
  1256. 'storageLabel'?: string | null;
  1257. }
  1258. /**
  1259. *
  1260. * @export
  1261. * @interface CuratedLocationsResponseDto
  1262. */
  1263. export interface CuratedLocationsResponseDto {
  1264. /**
  1265. *
  1266. * @type {string}
  1267. * @memberof CuratedLocationsResponseDto
  1268. */
  1269. 'city': string;
  1270. /**
  1271. *
  1272. * @type {string}
  1273. * @memberof CuratedLocationsResponseDto
  1274. */
  1275. 'deviceAssetId': string;
  1276. /**
  1277. *
  1278. * @type {string}
  1279. * @memberof CuratedLocationsResponseDto
  1280. */
  1281. 'deviceId': string;
  1282. /**
  1283. *
  1284. * @type {string}
  1285. * @memberof CuratedLocationsResponseDto
  1286. */
  1287. 'id': string;
  1288. /**
  1289. *
  1290. * @type {string}
  1291. * @memberof CuratedLocationsResponseDto
  1292. */
  1293. 'resizePath': string;
  1294. }
  1295. /**
  1296. *
  1297. * @export
  1298. * @interface CuratedObjectsResponseDto
  1299. */
  1300. export interface CuratedObjectsResponseDto {
  1301. /**
  1302. *
  1303. * @type {string}
  1304. * @memberof CuratedObjectsResponseDto
  1305. */
  1306. 'deviceAssetId': string;
  1307. /**
  1308. *
  1309. * @type {string}
  1310. * @memberof CuratedObjectsResponseDto
  1311. */
  1312. 'deviceId': string;
  1313. /**
  1314. *
  1315. * @type {string}
  1316. * @memberof CuratedObjectsResponseDto
  1317. */
  1318. 'id': string;
  1319. /**
  1320. *
  1321. * @type {string}
  1322. * @memberof CuratedObjectsResponseDto
  1323. */
  1324. 'object': string;
  1325. /**
  1326. *
  1327. * @type {string}
  1328. * @memberof CuratedObjectsResponseDto
  1329. */
  1330. 'resizePath': string;
  1331. }
  1332. /**
  1333. *
  1334. * @export
  1335. * @interface DownloadArchiveInfo
  1336. */
  1337. export interface DownloadArchiveInfo {
  1338. /**
  1339. *
  1340. * @type {Array<string>}
  1341. * @memberof DownloadArchiveInfo
  1342. */
  1343. 'assetIds': Array<string>;
  1344. /**
  1345. *
  1346. * @type {number}
  1347. * @memberof DownloadArchiveInfo
  1348. */
  1349. 'size': number;
  1350. }
  1351. /**
  1352. *
  1353. * @export
  1354. * @interface DownloadInfoDto
  1355. */
  1356. export interface DownloadInfoDto {
  1357. /**
  1358. *
  1359. * @type {string}
  1360. * @memberof DownloadInfoDto
  1361. */
  1362. 'albumId'?: string;
  1363. /**
  1364. *
  1365. * @type {number}
  1366. * @memberof DownloadInfoDto
  1367. */
  1368. 'archiveSize'?: number;
  1369. /**
  1370. *
  1371. * @type {Array<string>}
  1372. * @memberof DownloadInfoDto
  1373. */
  1374. 'assetIds'?: Array<string>;
  1375. /**
  1376. *
  1377. * @type {string}
  1378. * @memberof DownloadInfoDto
  1379. */
  1380. 'userId'?: string;
  1381. }
  1382. /**
  1383. *
  1384. * @export
  1385. * @interface DownloadResponseDto
  1386. */
  1387. export interface DownloadResponseDto {
  1388. /**
  1389. *
  1390. * @type {Array<DownloadArchiveInfo>}
  1391. * @memberof DownloadResponseDto
  1392. */
  1393. 'archives': Array<DownloadArchiveInfo>;
  1394. /**
  1395. *
  1396. * @type {number}
  1397. * @memberof DownloadResponseDto
  1398. */
  1399. 'totalSize': number;
  1400. }
  1401. /**
  1402. *
  1403. * @export
  1404. * @enum {string}
  1405. */
  1406. export const EntityType = {
  1407. Asset: 'ASSET',
  1408. Album: 'ALBUM'
  1409. } as const;
  1410. export type EntityType = typeof EntityType[keyof typeof EntityType];
  1411. /**
  1412. *
  1413. * @export
  1414. * @interface ExifResponseDto
  1415. */
  1416. export interface ExifResponseDto {
  1417. /**
  1418. *
  1419. * @type {string}
  1420. * @memberof ExifResponseDto
  1421. */
  1422. 'city'?: string | null;
  1423. /**
  1424. *
  1425. * @type {string}
  1426. * @memberof ExifResponseDto
  1427. */
  1428. 'country'?: string | null;
  1429. /**
  1430. *
  1431. * @type {string}
  1432. * @memberof ExifResponseDto
  1433. */
  1434. 'dateTimeOriginal'?: string | null;
  1435. /**
  1436. *
  1437. * @type {string}
  1438. * @memberof ExifResponseDto
  1439. */
  1440. 'description'?: string | null;
  1441. /**
  1442. *
  1443. * @type {number}
  1444. * @memberof ExifResponseDto
  1445. */
  1446. 'exifImageHeight'?: number | null;
  1447. /**
  1448. *
  1449. * @type {number}
  1450. * @memberof ExifResponseDto
  1451. */
  1452. 'exifImageWidth'?: number | null;
  1453. /**
  1454. *
  1455. * @type {string}
  1456. * @memberof ExifResponseDto
  1457. */
  1458. 'exposureTime'?: string | null;
  1459. /**
  1460. *
  1461. * @type {number}
  1462. * @memberof ExifResponseDto
  1463. */
  1464. 'fNumber'?: number | null;
  1465. /**
  1466. *
  1467. * @type {number}
  1468. * @memberof ExifResponseDto
  1469. */
  1470. 'fileSizeInByte'?: number | null;
  1471. /**
  1472. *
  1473. * @type {number}
  1474. * @memberof ExifResponseDto
  1475. */
  1476. 'focalLength'?: number | null;
  1477. /**
  1478. *
  1479. * @type {number}
  1480. * @memberof ExifResponseDto
  1481. */
  1482. 'iso'?: number | null;
  1483. /**
  1484. *
  1485. * @type {number}
  1486. * @memberof ExifResponseDto
  1487. */
  1488. 'latitude'?: number | null;
  1489. /**
  1490. *
  1491. * @type {string}
  1492. * @memberof ExifResponseDto
  1493. */
  1494. 'lensModel'?: string | null;
  1495. /**
  1496. *
  1497. * @type {number}
  1498. * @memberof ExifResponseDto
  1499. */
  1500. 'longitude'?: number | null;
  1501. /**
  1502. *
  1503. * @type {string}
  1504. * @memberof ExifResponseDto
  1505. */
  1506. 'make'?: string | null;
  1507. /**
  1508. *
  1509. * @type {string}
  1510. * @memberof ExifResponseDto
  1511. */
  1512. 'model'?: string | null;
  1513. /**
  1514. *
  1515. * @type {string}
  1516. * @memberof ExifResponseDto
  1517. */
  1518. 'modifyDate'?: string | null;
  1519. /**
  1520. *
  1521. * @type {string}
  1522. * @memberof ExifResponseDto
  1523. */
  1524. 'orientation'?: string | null;
  1525. /**
  1526. *
  1527. * @type {string}
  1528. * @memberof ExifResponseDto
  1529. */
  1530. 'projectionType'?: string | null;
  1531. /**
  1532. *
  1533. * @type {string}
  1534. * @memberof ExifResponseDto
  1535. */
  1536. 'state'?: string | null;
  1537. /**
  1538. *
  1539. * @type {string}
  1540. * @memberof ExifResponseDto
  1541. */
  1542. 'timeZone'?: string | null;
  1543. }
  1544. /**
  1545. *
  1546. * @export
  1547. * @interface ImportAssetDto
  1548. */
  1549. export interface ImportAssetDto {
  1550. /**
  1551. *
  1552. * @type {string}
  1553. * @memberof ImportAssetDto
  1554. */
  1555. 'assetPath': string;
  1556. /**
  1557. *
  1558. * @type {string}
  1559. * @memberof ImportAssetDto
  1560. */
  1561. 'deviceAssetId': string;
  1562. /**
  1563. *
  1564. * @type {string}
  1565. * @memberof ImportAssetDto
  1566. */
  1567. 'deviceId': string;
  1568. /**
  1569. *
  1570. * @type {string}
  1571. * @memberof ImportAssetDto
  1572. */
  1573. 'duration'?: string;
  1574. /**
  1575. *
  1576. * @type {string}
  1577. * @memberof ImportAssetDto
  1578. */
  1579. 'fileCreatedAt': string;
  1580. /**
  1581. *
  1582. * @type {string}
  1583. * @memberof ImportAssetDto
  1584. */
  1585. 'fileModifiedAt': string;
  1586. /**
  1587. *
  1588. * @type {boolean}
  1589. * @memberof ImportAssetDto
  1590. */
  1591. 'isArchived'?: boolean;
  1592. /**
  1593. *
  1594. * @type {boolean}
  1595. * @memberof ImportAssetDto
  1596. */
  1597. 'isExternal'?: boolean;
  1598. /**
  1599. *
  1600. * @type {boolean}
  1601. * @memberof ImportAssetDto
  1602. */
  1603. 'isFavorite': boolean;
  1604. /**
  1605. *
  1606. * @type {boolean}
  1607. * @memberof ImportAssetDto
  1608. */
  1609. 'isOffline'?: boolean;
  1610. /**
  1611. *
  1612. * @type {boolean}
  1613. * @memberof ImportAssetDto
  1614. */
  1615. 'isReadOnly'?: boolean;
  1616. /**
  1617. *
  1618. * @type {boolean}
  1619. * @memberof ImportAssetDto
  1620. */
  1621. 'isVisible'?: boolean;
  1622. /**
  1623. *
  1624. * @type {string}
  1625. * @memberof ImportAssetDto
  1626. */
  1627. 'libraryId'?: string;
  1628. /**
  1629. *
  1630. * @type {string}
  1631. * @memberof ImportAssetDto
  1632. */
  1633. 'sidecarPath'?: string;
  1634. }
  1635. /**
  1636. *
  1637. * @export
  1638. * @enum {string}
  1639. */
  1640. export const JobCommand = {
  1641. Start: 'start',
  1642. Pause: 'pause',
  1643. Resume: 'resume',
  1644. Empty: 'empty'
  1645. } as const;
  1646. export type JobCommand = typeof JobCommand[keyof typeof JobCommand];
  1647. /**
  1648. *
  1649. * @export
  1650. * @interface JobCommandDto
  1651. */
  1652. export interface JobCommandDto {
  1653. /**
  1654. *
  1655. * @type {JobCommand}
  1656. * @memberof JobCommandDto
  1657. */
  1658. 'command': JobCommand;
  1659. /**
  1660. *
  1661. * @type {boolean}
  1662. * @memberof JobCommandDto
  1663. */
  1664. 'force': boolean;
  1665. }
  1666. /**
  1667. *
  1668. * @export
  1669. * @interface JobCountsDto
  1670. */
  1671. export interface JobCountsDto {
  1672. /**
  1673. *
  1674. * @type {number}
  1675. * @memberof JobCountsDto
  1676. */
  1677. 'active': number;
  1678. /**
  1679. *
  1680. * @type {number}
  1681. * @memberof JobCountsDto
  1682. */
  1683. 'completed': number;
  1684. /**
  1685. *
  1686. * @type {number}
  1687. * @memberof JobCountsDto
  1688. */
  1689. 'delayed': number;
  1690. /**
  1691. *
  1692. * @type {number}
  1693. * @memberof JobCountsDto
  1694. */
  1695. 'failed': number;
  1696. /**
  1697. *
  1698. * @type {number}
  1699. * @memberof JobCountsDto
  1700. */
  1701. 'paused': number;
  1702. /**
  1703. *
  1704. * @type {number}
  1705. * @memberof JobCountsDto
  1706. */
  1707. 'waiting': number;
  1708. }
  1709. /**
  1710. *
  1711. * @export
  1712. * @enum {string}
  1713. */
  1714. export const JobName = {
  1715. ThumbnailGeneration: 'thumbnailGeneration',
  1716. MetadataExtraction: 'metadataExtraction',
  1717. VideoConversion: 'videoConversion',
  1718. ObjectTagging: 'objectTagging',
  1719. RecognizeFaces: 'recognizeFaces',
  1720. ClipEncoding: 'clipEncoding',
  1721. BackgroundTask: 'backgroundTask',
  1722. StorageTemplateMigration: 'storageTemplateMigration',
  1723. Migration: 'migration',
  1724. Search: 'search',
  1725. Sidecar: 'sidecar',
  1726. Library: 'library'
  1727. } as const;
  1728. export type JobName = typeof JobName[keyof typeof JobName];
  1729. /**
  1730. *
  1731. * @export
  1732. * @interface JobSettingsDto
  1733. */
  1734. export interface JobSettingsDto {
  1735. /**
  1736. *
  1737. * @type {number}
  1738. * @memberof JobSettingsDto
  1739. */
  1740. 'concurrency': number;
  1741. }
  1742. /**
  1743. *
  1744. * @export
  1745. * @interface JobStatusDto
  1746. */
  1747. export interface JobStatusDto {
  1748. /**
  1749. *
  1750. * @type {JobCountsDto}
  1751. * @memberof JobStatusDto
  1752. */
  1753. 'jobCounts': JobCountsDto;
  1754. /**
  1755. *
  1756. * @type {QueueStatusDto}
  1757. * @memberof JobStatusDto
  1758. */
  1759. 'queueStatus': QueueStatusDto;
  1760. }
  1761. /**
  1762. *
  1763. * @export
  1764. * @interface LibraryResponseDto
  1765. */
  1766. export interface LibraryResponseDto {
  1767. /**
  1768. *
  1769. * @type {number}
  1770. * @memberof LibraryResponseDto
  1771. */
  1772. 'assetCount': number;
  1773. /**
  1774. *
  1775. * @type {string}
  1776. * @memberof LibraryResponseDto
  1777. */
  1778. 'createdAt': string;
  1779. /**
  1780. *
  1781. * @type {Array<string>}
  1782. * @memberof LibraryResponseDto
  1783. */
  1784. 'exclusionPatterns': Array<string>;
  1785. /**
  1786. *
  1787. * @type {string}
  1788. * @memberof LibraryResponseDto
  1789. */
  1790. 'id': string;
  1791. /**
  1792. *
  1793. * @type {Array<string>}
  1794. * @memberof LibraryResponseDto
  1795. */
  1796. 'importPaths': Array<string>;
  1797. /**
  1798. *
  1799. * @type {string}
  1800. * @memberof LibraryResponseDto
  1801. */
  1802. 'name': string;
  1803. /**
  1804. *
  1805. * @type {string}
  1806. * @memberof LibraryResponseDto
  1807. */
  1808. 'ownerId': string;
  1809. /**
  1810. *
  1811. * @type {string}
  1812. * @memberof LibraryResponseDto
  1813. */
  1814. 'refreshedAt': string | null;
  1815. /**
  1816. *
  1817. * @type {LibraryType}
  1818. * @memberof LibraryResponseDto
  1819. */
  1820. 'type': LibraryType;
  1821. /**
  1822. *
  1823. * @type {string}
  1824. * @memberof LibraryResponseDto
  1825. */
  1826. 'updatedAt': string;
  1827. }
  1828. /**
  1829. *
  1830. * @export
  1831. * @interface LibraryStatsResponseDto
  1832. */
  1833. export interface LibraryStatsResponseDto {
  1834. /**
  1835. *
  1836. * @type {number}
  1837. * @memberof LibraryStatsResponseDto
  1838. */
  1839. 'photos': number;
  1840. /**
  1841. *
  1842. * @type {number}
  1843. * @memberof LibraryStatsResponseDto
  1844. */
  1845. 'total': number;
  1846. /**
  1847. *
  1848. * @type {number}
  1849. * @memberof LibraryStatsResponseDto
  1850. */
  1851. 'usage': number;
  1852. /**
  1853. *
  1854. * @type {number}
  1855. * @memberof LibraryStatsResponseDto
  1856. */
  1857. 'videos': number;
  1858. }
  1859. /**
  1860. *
  1861. * @export
  1862. * @enum {string}
  1863. */
  1864. export const LibraryType = {
  1865. Upload: 'UPLOAD',
  1866. External: 'EXTERNAL'
  1867. } as const;
  1868. export type LibraryType = typeof LibraryType[keyof typeof LibraryType];
  1869. /**
  1870. *
  1871. * @export
  1872. * @interface LoginCredentialDto
  1873. */
  1874. export interface LoginCredentialDto {
  1875. /**
  1876. *
  1877. * @type {string}
  1878. * @memberof LoginCredentialDto
  1879. */
  1880. 'email': string;
  1881. /**
  1882. *
  1883. * @type {string}
  1884. * @memberof LoginCredentialDto
  1885. */
  1886. 'password': string;
  1887. }
  1888. /**
  1889. *
  1890. * @export
  1891. * @interface LoginResponseDto
  1892. */
  1893. export interface LoginResponseDto {
  1894. /**
  1895. *
  1896. * @type {string}
  1897. * @memberof LoginResponseDto
  1898. */
  1899. 'accessToken': string;
  1900. /**
  1901. *
  1902. * @type {string}
  1903. * @memberof LoginResponseDto
  1904. */
  1905. 'firstName': string;
  1906. /**
  1907. *
  1908. * @type {boolean}
  1909. * @memberof LoginResponseDto
  1910. */
  1911. 'isAdmin': boolean;
  1912. /**
  1913. *
  1914. * @type {string}
  1915. * @memberof LoginResponseDto
  1916. */
  1917. 'lastName': string;
  1918. /**
  1919. *
  1920. * @type {string}
  1921. * @memberof LoginResponseDto
  1922. */
  1923. 'profileImagePath': string;
  1924. /**
  1925. *
  1926. * @type {boolean}
  1927. * @memberof LoginResponseDto
  1928. */
  1929. 'shouldChangePassword': boolean;
  1930. /**
  1931. *
  1932. * @type {string}
  1933. * @memberof LoginResponseDto
  1934. */
  1935. 'userEmail': string;
  1936. /**
  1937. *
  1938. * @type {string}
  1939. * @memberof LoginResponseDto
  1940. */
  1941. 'userId': string;
  1942. }
  1943. /**
  1944. *
  1945. * @export
  1946. * @interface LogoutResponseDto
  1947. */
  1948. export interface LogoutResponseDto {
  1949. /**
  1950. *
  1951. * @type {string}
  1952. * @memberof LogoutResponseDto
  1953. */
  1954. 'redirectUri': string;
  1955. /**
  1956. *
  1957. * @type {boolean}
  1958. * @memberof LogoutResponseDto
  1959. */
  1960. 'successful': boolean;
  1961. }
  1962. /**
  1963. *
  1964. * @export
  1965. * @interface MapMarkerResponseDto
  1966. */
  1967. export interface MapMarkerResponseDto {
  1968. /**
  1969. *
  1970. * @type {string}
  1971. * @memberof MapMarkerResponseDto
  1972. */
  1973. 'id': string;
  1974. /**
  1975. *
  1976. * @type {number}
  1977. * @memberof MapMarkerResponseDto
  1978. */
  1979. 'lat': number;
  1980. /**
  1981. *
  1982. * @type {number}
  1983. * @memberof MapMarkerResponseDto
  1984. */
  1985. 'lon': number;
  1986. }
  1987. /**
  1988. *
  1989. * @export
  1990. * @interface MemoryLaneResponseDto
  1991. */
  1992. export interface MemoryLaneResponseDto {
  1993. /**
  1994. *
  1995. * @type {Array<AssetResponseDto>}
  1996. * @memberof MemoryLaneResponseDto
  1997. */
  1998. 'assets': Array<AssetResponseDto>;
  1999. /**
  2000. *
  2001. * @type {string}
  2002. * @memberof MemoryLaneResponseDto
  2003. */
  2004. 'title': string;
  2005. }
  2006. /**
  2007. *
  2008. * @export
  2009. * @interface MergePersonDto
  2010. */
  2011. export interface MergePersonDto {
  2012. /**
  2013. *
  2014. * @type {Array<string>}
  2015. * @memberof MergePersonDto
  2016. */
  2017. 'ids': Array<string>;
  2018. }
  2019. /**
  2020. *
  2021. * @export
  2022. * @enum {string}
  2023. */
  2024. export const ModelType = {
  2025. ImageClassification: 'image-classification',
  2026. FacialRecognition: 'facial-recognition',
  2027. Clip: 'clip'
  2028. } as const;
  2029. export type ModelType = typeof ModelType[keyof typeof ModelType];
  2030. /**
  2031. *
  2032. * @export
  2033. * @interface OAuthAuthorizeResponseDto
  2034. */
  2035. export interface OAuthAuthorizeResponseDto {
  2036. /**
  2037. *
  2038. * @type {string}
  2039. * @memberof OAuthAuthorizeResponseDto
  2040. */
  2041. 'url': string;
  2042. }
  2043. /**
  2044. *
  2045. * @export
  2046. * @interface OAuthCallbackDto
  2047. */
  2048. export interface OAuthCallbackDto {
  2049. /**
  2050. *
  2051. * @type {string}
  2052. * @memberof OAuthCallbackDto
  2053. */
  2054. 'url': string;
  2055. }
  2056. /**
  2057. *
  2058. * @export
  2059. * @interface OAuthConfigDto
  2060. */
  2061. export interface OAuthConfigDto {
  2062. /**
  2063. *
  2064. * @type {string}
  2065. * @memberof OAuthConfigDto
  2066. */
  2067. 'redirectUri': string;
  2068. }
  2069. /**
  2070. *
  2071. * @export
  2072. * @interface OAuthConfigResponseDto
  2073. */
  2074. export interface OAuthConfigResponseDto {
  2075. /**
  2076. *
  2077. * @type {boolean}
  2078. * @memberof OAuthConfigResponseDto
  2079. */
  2080. 'autoLaunch'?: boolean;
  2081. /**
  2082. *
  2083. * @type {string}
  2084. * @memberof OAuthConfigResponseDto
  2085. */
  2086. 'buttonText'?: string;
  2087. /**
  2088. *
  2089. * @type {boolean}
  2090. * @memberof OAuthConfigResponseDto
  2091. */
  2092. 'enabled': boolean;
  2093. /**
  2094. *
  2095. * @type {boolean}
  2096. * @memberof OAuthConfigResponseDto
  2097. */
  2098. 'passwordLoginEnabled': boolean;
  2099. /**
  2100. *
  2101. * @type {string}
  2102. * @memberof OAuthConfigResponseDto
  2103. */
  2104. 'url'?: string;
  2105. }
  2106. /**
  2107. *
  2108. * @export
  2109. * @interface PeopleResponseDto
  2110. */
  2111. export interface PeopleResponseDto {
  2112. /**
  2113. *
  2114. * @type {Array<PersonResponseDto>}
  2115. * @memberof PeopleResponseDto
  2116. */
  2117. 'people': Array<PersonResponseDto>;
  2118. /**
  2119. *
  2120. * @type {number}
  2121. * @memberof PeopleResponseDto
  2122. */
  2123. 'total': number;
  2124. /**
  2125. *
  2126. * @type {number}
  2127. * @memberof PeopleResponseDto
  2128. */
  2129. 'visible': number;
  2130. }
  2131. /**
  2132. *
  2133. * @export
  2134. * @interface PeopleUpdateDto
  2135. */
  2136. export interface PeopleUpdateDto {
  2137. /**
  2138. *
  2139. * @type {Array<PeopleUpdateItem>}
  2140. * @memberof PeopleUpdateDto
  2141. */
  2142. 'people': Array<PeopleUpdateItem>;
  2143. }
  2144. /**
  2145. *
  2146. * @export
  2147. * @interface PeopleUpdateItem
  2148. */
  2149. export interface PeopleUpdateItem {
  2150. /**
  2151. * Person date of birth. Note: the mobile app cannot currently set the birth date to null.
  2152. * @type {string}
  2153. * @memberof PeopleUpdateItem
  2154. */
  2155. 'birthDate'?: string | null;
  2156. /**
  2157. * Asset is used to get the feature face thumbnail.
  2158. * @type {string}
  2159. * @memberof PeopleUpdateItem
  2160. */
  2161. 'featureFaceAssetId'?: string;
  2162. /**
  2163. * Person id.
  2164. * @type {string}
  2165. * @memberof PeopleUpdateItem
  2166. */
  2167. 'id': string;
  2168. /**
  2169. * Person visibility
  2170. * @type {boolean}
  2171. * @memberof PeopleUpdateItem
  2172. */
  2173. 'isHidden'?: boolean;
  2174. /**
  2175. * Person name.
  2176. * @type {string}
  2177. * @memberof PeopleUpdateItem
  2178. */
  2179. 'name'?: string;
  2180. }
  2181. /**
  2182. *
  2183. * @export
  2184. * @interface PersonResponseDto
  2185. */
  2186. export interface PersonResponseDto {
  2187. /**
  2188. *
  2189. * @type {string}
  2190. * @memberof PersonResponseDto
  2191. */
  2192. 'birthDate': string | null;
  2193. /**
  2194. *
  2195. * @type {string}
  2196. * @memberof PersonResponseDto
  2197. */
  2198. 'id': string;
  2199. /**
  2200. *
  2201. * @type {boolean}
  2202. * @memberof PersonResponseDto
  2203. */
  2204. 'isHidden': boolean;
  2205. /**
  2206. *
  2207. * @type {string}
  2208. * @memberof PersonResponseDto
  2209. */
  2210. 'name': string;
  2211. /**
  2212. *
  2213. * @type {string}
  2214. * @memberof PersonResponseDto
  2215. */
  2216. 'thumbnailPath': string;
  2217. }
  2218. /**
  2219. *
  2220. * @export
  2221. * @interface PersonUpdateDto
  2222. */
  2223. export interface PersonUpdateDto {
  2224. /**
  2225. * Person date of birth. Note: the mobile app cannot currently set the birth date to null.
  2226. * @type {string}
  2227. * @memberof PersonUpdateDto
  2228. */
  2229. 'birthDate'?: string | null;
  2230. /**
  2231. * Asset is used to get the feature face thumbnail.
  2232. * @type {string}
  2233. * @memberof PersonUpdateDto
  2234. */
  2235. 'featureFaceAssetId'?: string;
  2236. /**
  2237. * Person visibility
  2238. * @type {boolean}
  2239. * @memberof PersonUpdateDto
  2240. */
  2241. 'isHidden'?: boolean;
  2242. /**
  2243. * Person name.
  2244. * @type {string}
  2245. * @memberof PersonUpdateDto
  2246. */
  2247. 'name'?: string;
  2248. }
  2249. /**
  2250. *
  2251. * @export
  2252. * @interface QueueStatusDto
  2253. */
  2254. export interface QueueStatusDto {
  2255. /**
  2256. *
  2257. * @type {boolean}
  2258. * @memberof QueueStatusDto
  2259. */
  2260. 'isActive': boolean;
  2261. /**
  2262. *
  2263. * @type {boolean}
  2264. * @memberof QueueStatusDto
  2265. */
  2266. 'isPaused': boolean;
  2267. }
  2268. /**
  2269. *
  2270. * @export
  2271. * @interface RecognitionConfig
  2272. */
  2273. export interface RecognitionConfig {
  2274. /**
  2275. *
  2276. * @type {boolean}
  2277. * @memberof RecognitionConfig
  2278. */
  2279. 'enabled': boolean;
  2280. /**
  2281. *
  2282. * @type {number}
  2283. * @memberof RecognitionConfig
  2284. */
  2285. 'maxDistance': number;
  2286. /**
  2287. *
  2288. * @type {number}
  2289. * @memberof RecognitionConfig
  2290. */
  2291. 'minFaces': number;
  2292. /**
  2293. *
  2294. * @type {number}
  2295. * @memberof RecognitionConfig
  2296. */
  2297. 'minScore': number;
  2298. /**
  2299. *
  2300. * @type {string}
  2301. * @memberof RecognitionConfig
  2302. */
  2303. 'modelName': string;
  2304. /**
  2305. *
  2306. * @type {ModelType}
  2307. * @memberof RecognitionConfig
  2308. */
  2309. 'modelType'?: ModelType;
  2310. }
  2311. /**
  2312. *
  2313. * @export
  2314. * @interface ScanLibraryDto
  2315. */
  2316. export interface ScanLibraryDto {
  2317. /**
  2318. *
  2319. * @type {boolean}
  2320. * @memberof ScanLibraryDto
  2321. */
  2322. 'refreshAllFiles'?: boolean;
  2323. /**
  2324. *
  2325. * @type {boolean}
  2326. * @memberof ScanLibraryDto
  2327. */
  2328. 'refreshModifiedFiles'?: boolean;
  2329. }
  2330. /**
  2331. *
  2332. * @export
  2333. * @interface SearchAlbumResponseDto
  2334. */
  2335. export interface SearchAlbumResponseDto {
  2336. /**
  2337. *
  2338. * @type {number}
  2339. * @memberof SearchAlbumResponseDto
  2340. */
  2341. 'count': number;
  2342. /**
  2343. *
  2344. * @type {Array<SearchFacetResponseDto>}
  2345. * @memberof SearchAlbumResponseDto
  2346. */
  2347. 'facets': Array<SearchFacetResponseDto>;
  2348. /**
  2349. *
  2350. * @type {Array<AlbumResponseDto>}
  2351. * @memberof SearchAlbumResponseDto
  2352. */
  2353. 'items': Array<AlbumResponseDto>;
  2354. /**
  2355. *
  2356. * @type {number}
  2357. * @memberof SearchAlbumResponseDto
  2358. */
  2359. 'total': number;
  2360. }
  2361. /**
  2362. *
  2363. * @export
  2364. * @interface SearchAssetDto
  2365. */
  2366. export interface SearchAssetDto {
  2367. /**
  2368. *
  2369. * @type {string}
  2370. * @memberof SearchAssetDto
  2371. */
  2372. 'searchTerm': string;
  2373. }
  2374. /**
  2375. *
  2376. * @export
  2377. * @interface SearchAssetResponseDto
  2378. */
  2379. export interface SearchAssetResponseDto {
  2380. /**
  2381. *
  2382. * @type {number}
  2383. * @memberof SearchAssetResponseDto
  2384. */
  2385. 'count': number;
  2386. /**
  2387. *
  2388. * @type {Array<SearchFacetResponseDto>}
  2389. * @memberof SearchAssetResponseDto
  2390. */
  2391. 'facets': Array<SearchFacetResponseDto>;
  2392. /**
  2393. *
  2394. * @type {Array<AssetResponseDto>}
  2395. * @memberof SearchAssetResponseDto
  2396. */
  2397. 'items': Array<AssetResponseDto>;
  2398. /**
  2399. *
  2400. * @type {number}
  2401. * @memberof SearchAssetResponseDto
  2402. */
  2403. 'total': number;
  2404. }
  2405. /**
  2406. *
  2407. * @export
  2408. * @interface SearchExploreItem
  2409. */
  2410. export interface SearchExploreItem {
  2411. /**
  2412. *
  2413. * @type {AssetResponseDto}
  2414. * @memberof SearchExploreItem
  2415. */
  2416. 'data': AssetResponseDto;
  2417. /**
  2418. *
  2419. * @type {string}
  2420. * @memberof SearchExploreItem
  2421. */
  2422. 'value': string;
  2423. }
  2424. /**
  2425. *
  2426. * @export
  2427. * @interface SearchExploreResponseDto
  2428. */
  2429. export interface SearchExploreResponseDto {
  2430. /**
  2431. *
  2432. * @type {string}
  2433. * @memberof SearchExploreResponseDto
  2434. */
  2435. 'fieldName': string;
  2436. /**
  2437. *
  2438. * @type {Array<SearchExploreItem>}
  2439. * @memberof SearchExploreResponseDto
  2440. */
  2441. 'items': Array<SearchExploreItem>;
  2442. }
  2443. /**
  2444. *
  2445. * @export
  2446. * @interface SearchFacetCountResponseDto
  2447. */
  2448. export interface SearchFacetCountResponseDto {
  2449. /**
  2450. *
  2451. * @type {number}
  2452. * @memberof SearchFacetCountResponseDto
  2453. */
  2454. 'count': number;
  2455. /**
  2456. *
  2457. * @type {string}
  2458. * @memberof SearchFacetCountResponseDto
  2459. */
  2460. 'value': string;
  2461. }
  2462. /**
  2463. *
  2464. * @export
  2465. * @interface SearchFacetResponseDto
  2466. */
  2467. export interface SearchFacetResponseDto {
  2468. /**
  2469. *
  2470. * @type {Array<SearchFacetCountResponseDto>}
  2471. * @memberof SearchFacetResponseDto
  2472. */
  2473. 'counts': Array<SearchFacetCountResponseDto>;
  2474. /**
  2475. *
  2476. * @type {string}
  2477. * @memberof SearchFacetResponseDto
  2478. */
  2479. 'fieldName': string;
  2480. }
  2481. /**
  2482. *
  2483. * @export
  2484. * @interface SearchResponseDto
  2485. */
  2486. export interface SearchResponseDto {
  2487. /**
  2488. *
  2489. * @type {SearchAlbumResponseDto}
  2490. * @memberof SearchResponseDto
  2491. */
  2492. 'albums': SearchAlbumResponseDto;
  2493. /**
  2494. *
  2495. * @type {SearchAssetResponseDto}
  2496. * @memberof SearchResponseDto
  2497. */
  2498. 'assets': SearchAssetResponseDto;
  2499. }
  2500. /**
  2501. *
  2502. * @export
  2503. * @interface ServerConfigDto
  2504. */
  2505. export interface ServerConfigDto {
  2506. /**
  2507. *
  2508. * @type {string}
  2509. * @memberof ServerConfigDto
  2510. */
  2511. 'loginPageMessage': string;
  2512. /**
  2513. *
  2514. * @type {string}
  2515. * @memberof ServerConfigDto
  2516. */
  2517. 'mapTileUrl': string;
  2518. /**
  2519. *
  2520. * @type {string}
  2521. * @memberof ServerConfigDto
  2522. */
  2523. 'oauthButtonText': string;
  2524. /**
  2525. *
  2526. * @type {number}
  2527. * @memberof ServerConfigDto
  2528. */
  2529. 'trashDays': number;
  2530. }
  2531. /**
  2532. *
  2533. * @export
  2534. * @interface ServerFeaturesDto
  2535. */
  2536. export interface ServerFeaturesDto {
  2537. /**
  2538. *
  2539. * @type {boolean}
  2540. * @memberof ServerFeaturesDto
  2541. */
  2542. 'clipEncode': boolean;
  2543. /**
  2544. *
  2545. * @type {boolean}
  2546. * @memberof ServerFeaturesDto
  2547. */
  2548. 'configFile': boolean;
  2549. /**
  2550. *
  2551. * @type {boolean}
  2552. * @memberof ServerFeaturesDto
  2553. */
  2554. 'facialRecognition': boolean;
  2555. /**
  2556. *
  2557. * @type {boolean}
  2558. * @memberof ServerFeaturesDto
  2559. */
  2560. 'map': boolean;
  2561. /**
  2562. *
  2563. * @type {boolean}
  2564. * @memberof ServerFeaturesDto
  2565. */
  2566. 'oauth': boolean;
  2567. /**
  2568. *
  2569. * @type {boolean}
  2570. * @memberof ServerFeaturesDto
  2571. */
  2572. 'oauthAutoLaunch': boolean;
  2573. /**
  2574. *
  2575. * @type {boolean}
  2576. * @memberof ServerFeaturesDto
  2577. */
  2578. 'passwordLogin': boolean;
  2579. /**
  2580. *
  2581. * @type {boolean}
  2582. * @memberof ServerFeaturesDto
  2583. */
  2584. 'reverseGeocoding': boolean;
  2585. /**
  2586. *
  2587. * @type {boolean}
  2588. * @memberof ServerFeaturesDto
  2589. */
  2590. 'search': boolean;
  2591. /**
  2592. *
  2593. * @type {boolean}
  2594. * @memberof ServerFeaturesDto
  2595. */
  2596. 'sidecar': boolean;
  2597. /**
  2598. *
  2599. * @type {boolean}
  2600. * @memberof ServerFeaturesDto
  2601. */
  2602. 'tagImage': boolean;
  2603. /**
  2604. *
  2605. * @type {boolean}
  2606. * @memberof ServerFeaturesDto
  2607. */
  2608. 'trash': boolean;
  2609. }
  2610. /**
  2611. *
  2612. * @export
  2613. * @interface ServerInfoResponseDto
  2614. */
  2615. export interface ServerInfoResponseDto {
  2616. /**
  2617. *
  2618. * @type {string}
  2619. * @memberof ServerInfoResponseDto
  2620. */
  2621. 'diskAvailable': string;
  2622. /**
  2623. *
  2624. * @type {number}
  2625. * @memberof ServerInfoResponseDto
  2626. */
  2627. 'diskAvailableRaw': number;
  2628. /**
  2629. *
  2630. * @type {string}
  2631. * @memberof ServerInfoResponseDto
  2632. */
  2633. 'diskSize': string;
  2634. /**
  2635. *
  2636. * @type {number}
  2637. * @memberof ServerInfoResponseDto
  2638. */
  2639. 'diskSizeRaw': number;
  2640. /**
  2641. *
  2642. * @type {number}
  2643. * @memberof ServerInfoResponseDto
  2644. */
  2645. 'diskUsagePercentage': number;
  2646. /**
  2647. *
  2648. * @type {string}
  2649. * @memberof ServerInfoResponseDto
  2650. */
  2651. 'diskUse': string;
  2652. /**
  2653. *
  2654. * @type {number}
  2655. * @memberof ServerInfoResponseDto
  2656. */
  2657. 'diskUseRaw': number;
  2658. }
  2659. /**
  2660. *
  2661. * @export
  2662. * @interface ServerMediaTypesResponseDto
  2663. */
  2664. export interface ServerMediaTypesResponseDto {
  2665. /**
  2666. *
  2667. * @type {Array<string>}
  2668. * @memberof ServerMediaTypesResponseDto
  2669. */
  2670. 'image': Array<string>;
  2671. /**
  2672. *
  2673. * @type {Array<string>}
  2674. * @memberof ServerMediaTypesResponseDto
  2675. */
  2676. 'sidecar': Array<string>;
  2677. /**
  2678. *
  2679. * @type {Array<string>}
  2680. * @memberof ServerMediaTypesResponseDto
  2681. */
  2682. 'video': Array<string>;
  2683. }
  2684. /**
  2685. *
  2686. * @export
  2687. * @interface ServerPingResponse
  2688. */
  2689. export interface ServerPingResponse {
  2690. /**
  2691. *
  2692. * @type {string}
  2693. * @memberof ServerPingResponse
  2694. */
  2695. 'res': string;
  2696. }
  2697. /**
  2698. *
  2699. * @export
  2700. * @interface ServerStatsResponseDto
  2701. */
  2702. export interface ServerStatsResponseDto {
  2703. /**
  2704. *
  2705. * @type {number}
  2706. * @memberof ServerStatsResponseDto
  2707. */
  2708. 'photos': number;
  2709. /**
  2710. *
  2711. * @type {number}
  2712. * @memberof ServerStatsResponseDto
  2713. */
  2714. 'usage': number;
  2715. /**
  2716. *
  2717. * @type {Array<UsageByUserDto>}
  2718. * @memberof ServerStatsResponseDto
  2719. */
  2720. 'usageByUser': Array<UsageByUserDto>;
  2721. /**
  2722. *
  2723. * @type {number}
  2724. * @memberof ServerStatsResponseDto
  2725. */
  2726. 'videos': number;
  2727. }
  2728. /**
  2729. *
  2730. * @export
  2731. * @interface ServerVersionResponseDto
  2732. */
  2733. export interface ServerVersionResponseDto {
  2734. /**
  2735. *
  2736. * @type {number}
  2737. * @memberof ServerVersionResponseDto
  2738. */
  2739. 'major': number;
  2740. /**
  2741. *
  2742. * @type {number}
  2743. * @memberof ServerVersionResponseDto
  2744. */
  2745. 'minor': number;
  2746. /**
  2747. *
  2748. * @type {number}
  2749. * @memberof ServerVersionResponseDto
  2750. */
  2751. 'patch': number;
  2752. }
  2753. /**
  2754. *
  2755. * @export
  2756. * @interface SharedLinkCreateDto
  2757. */
  2758. export interface SharedLinkCreateDto {
  2759. /**
  2760. *
  2761. * @type {string}
  2762. * @memberof SharedLinkCreateDto
  2763. */
  2764. 'albumId'?: string;
  2765. /**
  2766. *
  2767. * @type {boolean}
  2768. * @memberof SharedLinkCreateDto
  2769. */
  2770. 'allowDownload'?: boolean;
  2771. /**
  2772. *
  2773. * @type {boolean}
  2774. * @memberof SharedLinkCreateDto
  2775. */
  2776. 'allowUpload'?: boolean;
  2777. /**
  2778. *
  2779. * @type {Array<string>}
  2780. * @memberof SharedLinkCreateDto
  2781. */
  2782. 'assetIds'?: Array<string>;
  2783. /**
  2784. *
  2785. * @type {string}
  2786. * @memberof SharedLinkCreateDto
  2787. */
  2788. 'description'?: string;
  2789. /**
  2790. *
  2791. * @type {string}
  2792. * @memberof SharedLinkCreateDto
  2793. */
  2794. 'expiresAt'?: string | null;
  2795. /**
  2796. *
  2797. * @type {boolean}
  2798. * @memberof SharedLinkCreateDto
  2799. */
  2800. 'showExif'?: boolean;
  2801. /**
  2802. *
  2803. * @type {SharedLinkType}
  2804. * @memberof SharedLinkCreateDto
  2805. */
  2806. 'type': SharedLinkType;
  2807. }
  2808. /**
  2809. *
  2810. * @export
  2811. * @interface SharedLinkEditDto
  2812. */
  2813. export interface SharedLinkEditDto {
  2814. /**
  2815. *
  2816. * @type {boolean}
  2817. * @memberof SharedLinkEditDto
  2818. */
  2819. 'allowDownload'?: boolean;
  2820. /**
  2821. *
  2822. * @type {boolean}
  2823. * @memberof SharedLinkEditDto
  2824. */
  2825. 'allowUpload'?: boolean;
  2826. /**
  2827. *
  2828. * @type {string}
  2829. * @memberof SharedLinkEditDto
  2830. */
  2831. 'description'?: string;
  2832. /**
  2833. *
  2834. * @type {string}
  2835. * @memberof SharedLinkEditDto
  2836. */
  2837. 'expiresAt'?: string | null;
  2838. /**
  2839. *
  2840. * @type {boolean}
  2841. * @memberof SharedLinkEditDto
  2842. */
  2843. 'showExif'?: boolean;
  2844. }
  2845. /**
  2846. *
  2847. * @export
  2848. * @interface SharedLinkResponseDto
  2849. */
  2850. export interface SharedLinkResponseDto {
  2851. /**
  2852. *
  2853. * @type {AlbumResponseDto}
  2854. * @memberof SharedLinkResponseDto
  2855. */
  2856. 'album'?: AlbumResponseDto;
  2857. /**
  2858. *
  2859. * @type {boolean}
  2860. * @memberof SharedLinkResponseDto
  2861. */
  2862. 'allowDownload': boolean;
  2863. /**
  2864. *
  2865. * @type {boolean}
  2866. * @memberof SharedLinkResponseDto
  2867. */
  2868. 'allowUpload': boolean;
  2869. /**
  2870. *
  2871. * @type {Array<AssetResponseDto>}
  2872. * @memberof SharedLinkResponseDto
  2873. */
  2874. 'assets': Array<AssetResponseDto>;
  2875. /**
  2876. *
  2877. * @type {string}
  2878. * @memberof SharedLinkResponseDto
  2879. */
  2880. 'createdAt': string;
  2881. /**
  2882. *
  2883. * @type {string}
  2884. * @memberof SharedLinkResponseDto
  2885. */
  2886. 'description': string | null;
  2887. /**
  2888. *
  2889. * @type {string}
  2890. * @memberof SharedLinkResponseDto
  2891. */
  2892. 'expiresAt': string | null;
  2893. /**
  2894. *
  2895. * @type {string}
  2896. * @memberof SharedLinkResponseDto
  2897. */
  2898. 'id': string;
  2899. /**
  2900. *
  2901. * @type {string}
  2902. * @memberof SharedLinkResponseDto
  2903. */
  2904. 'key': string;
  2905. /**
  2906. *
  2907. * @type {boolean}
  2908. * @memberof SharedLinkResponseDto
  2909. */
  2910. 'showExif': boolean;
  2911. /**
  2912. *
  2913. * @type {SharedLinkType}
  2914. * @memberof SharedLinkResponseDto
  2915. */
  2916. 'type': SharedLinkType;
  2917. /**
  2918. *
  2919. * @type {string}
  2920. * @memberof SharedLinkResponseDto
  2921. */
  2922. 'userId': string;
  2923. }
  2924. /**
  2925. *
  2926. * @export
  2927. * @enum {string}
  2928. */
  2929. export const SharedLinkType = {
  2930. Album: 'ALBUM',
  2931. Individual: 'INDIVIDUAL'
  2932. } as const;
  2933. export type SharedLinkType = typeof SharedLinkType[keyof typeof SharedLinkType];
  2934. /**
  2935. *
  2936. * @export
  2937. * @interface SignUpDto
  2938. */
  2939. export interface SignUpDto {
  2940. /**
  2941. *
  2942. * @type {string}
  2943. * @memberof SignUpDto
  2944. */
  2945. 'email': string;
  2946. /**
  2947. *
  2948. * @type {string}
  2949. * @memberof SignUpDto
  2950. */
  2951. 'firstName': string;
  2952. /**
  2953. *
  2954. * @type {string}
  2955. * @memberof SignUpDto
  2956. */
  2957. 'lastName': string;
  2958. /**
  2959. *
  2960. * @type {string}
  2961. * @memberof SignUpDto
  2962. */
  2963. 'password': string;
  2964. }
  2965. /**
  2966. *
  2967. * @export
  2968. * @interface SmartInfoResponseDto
  2969. */
  2970. export interface SmartInfoResponseDto {
  2971. /**
  2972. *
  2973. * @type {Array<string>}
  2974. * @memberof SmartInfoResponseDto
  2975. */
  2976. 'objects'?: Array<string> | null;
  2977. /**
  2978. *
  2979. * @type {Array<string>}
  2980. * @memberof SmartInfoResponseDto
  2981. */
  2982. 'tags'?: Array<string> | null;
  2983. }
  2984. /**
  2985. *
  2986. * @export
  2987. * @interface SystemConfigDto
  2988. */
  2989. export interface SystemConfigDto {
  2990. /**
  2991. *
  2992. * @type {SystemConfigFFmpegDto}
  2993. * @memberof SystemConfigDto
  2994. */
  2995. 'ffmpeg': SystemConfigFFmpegDto;
  2996. /**
  2997. *
  2998. * @type {SystemConfigJobDto}
  2999. * @memberof SystemConfigDto
  3000. */
  3001. 'job': SystemConfigJobDto;
  3002. /**
  3003. *
  3004. * @type {SystemConfigMachineLearningDto}
  3005. * @memberof SystemConfigDto
  3006. */
  3007. 'machineLearning': SystemConfigMachineLearningDto;
  3008. /**
  3009. *
  3010. * @type {SystemConfigMapDto}
  3011. * @memberof SystemConfigDto
  3012. */
  3013. 'map': SystemConfigMapDto;
  3014. /**
  3015. *
  3016. * @type {SystemConfigOAuthDto}
  3017. * @memberof SystemConfigDto
  3018. */
  3019. 'oauth': SystemConfigOAuthDto;
  3020. /**
  3021. *
  3022. * @type {SystemConfigPasswordLoginDto}
  3023. * @memberof SystemConfigDto
  3024. */
  3025. 'passwordLogin': SystemConfigPasswordLoginDto;
  3026. /**
  3027. *
  3028. * @type {SystemConfigReverseGeocodingDto}
  3029. * @memberof SystemConfigDto
  3030. */
  3031. 'reverseGeocoding': SystemConfigReverseGeocodingDto;
  3032. /**
  3033. *
  3034. * @type {SystemConfigStorageTemplateDto}
  3035. * @memberof SystemConfigDto
  3036. */
  3037. 'storageTemplate': SystemConfigStorageTemplateDto;
  3038. /**
  3039. *
  3040. * @type {SystemConfigThumbnailDto}
  3041. * @memberof SystemConfigDto
  3042. */
  3043. 'thumbnail': SystemConfigThumbnailDto;
  3044. /**
  3045. *
  3046. * @type {SystemConfigTrashDto}
  3047. * @memberof SystemConfigDto
  3048. */
  3049. 'trash': SystemConfigTrashDto;
  3050. }
  3051. /**
  3052. *
  3053. * @export
  3054. * @interface SystemConfigFFmpegDto
  3055. */
  3056. export interface SystemConfigFFmpegDto {
  3057. /**
  3058. *
  3059. * @type {TranscodeHWAccel}
  3060. * @memberof SystemConfigFFmpegDto
  3061. */
  3062. 'accel': TranscodeHWAccel;
  3063. /**
  3064. *
  3065. * @type {number}
  3066. * @memberof SystemConfigFFmpegDto
  3067. */
  3068. 'bframes': number;
  3069. /**
  3070. *
  3071. * @type {CQMode}
  3072. * @memberof SystemConfigFFmpegDto
  3073. */
  3074. 'cqMode': CQMode;
  3075. /**
  3076. *
  3077. * @type {number}
  3078. * @memberof SystemConfigFFmpegDto
  3079. */
  3080. 'crf': number;
  3081. /**
  3082. *
  3083. * @type {number}
  3084. * @memberof SystemConfigFFmpegDto
  3085. */
  3086. 'gopSize': number;
  3087. /**
  3088. *
  3089. * @type {string}
  3090. * @memberof SystemConfigFFmpegDto
  3091. */
  3092. 'maxBitrate': string;
  3093. /**
  3094. *
  3095. * @type {number}
  3096. * @memberof SystemConfigFFmpegDto
  3097. */
  3098. 'npl': number;
  3099. /**
  3100. *
  3101. * @type {string}
  3102. * @memberof SystemConfigFFmpegDto
  3103. */
  3104. 'preset': string;
  3105. /**
  3106. *
  3107. * @type {number}
  3108. * @memberof SystemConfigFFmpegDto
  3109. */
  3110. 'refs': number;
  3111. /**
  3112. *
  3113. * @type {AudioCodec}
  3114. * @memberof SystemConfigFFmpegDto
  3115. */
  3116. 'targetAudioCodec': AudioCodec;
  3117. /**
  3118. *
  3119. * @type {string}
  3120. * @memberof SystemConfigFFmpegDto
  3121. */
  3122. 'targetResolution': string;
  3123. /**
  3124. *
  3125. * @type {VideoCodec}
  3126. * @memberof SystemConfigFFmpegDto
  3127. */
  3128. 'targetVideoCodec': VideoCodec;
  3129. /**
  3130. *
  3131. * @type {boolean}
  3132. * @memberof SystemConfigFFmpegDto
  3133. */
  3134. 'temporalAQ': boolean;
  3135. /**
  3136. *
  3137. * @type {number}
  3138. * @memberof SystemConfigFFmpegDto
  3139. */
  3140. 'threads': number;
  3141. /**
  3142. *
  3143. * @type {ToneMapping}
  3144. * @memberof SystemConfigFFmpegDto
  3145. */
  3146. 'tonemap': ToneMapping;
  3147. /**
  3148. *
  3149. * @type {TranscodePolicy}
  3150. * @memberof SystemConfigFFmpegDto
  3151. */
  3152. 'transcode': TranscodePolicy;
  3153. /**
  3154. *
  3155. * @type {boolean}
  3156. * @memberof SystemConfigFFmpegDto
  3157. */
  3158. 'twoPass': boolean;
  3159. }
  3160. /**
  3161. *
  3162. * @export
  3163. * @interface SystemConfigJobDto
  3164. */
  3165. export interface SystemConfigJobDto {
  3166. /**
  3167. *
  3168. * @type {JobSettingsDto}
  3169. * @memberof SystemConfigJobDto
  3170. */
  3171. 'backgroundTask': JobSettingsDto;
  3172. /**
  3173. *
  3174. * @type {JobSettingsDto}
  3175. * @memberof SystemConfigJobDto
  3176. */
  3177. 'clipEncoding': JobSettingsDto;
  3178. /**
  3179. *
  3180. * @type {JobSettingsDto}
  3181. * @memberof SystemConfigJobDto
  3182. */
  3183. 'library': JobSettingsDto;
  3184. /**
  3185. *
  3186. * @type {JobSettingsDto}
  3187. * @memberof SystemConfigJobDto
  3188. */
  3189. 'metadataExtraction': JobSettingsDto;
  3190. /**
  3191. *
  3192. * @type {JobSettingsDto}
  3193. * @memberof SystemConfigJobDto
  3194. */
  3195. 'migration': JobSettingsDto;
  3196. /**
  3197. *
  3198. * @type {JobSettingsDto}
  3199. * @memberof SystemConfigJobDto
  3200. */
  3201. 'objectTagging': JobSettingsDto;
  3202. /**
  3203. *
  3204. * @type {JobSettingsDto}
  3205. * @memberof SystemConfigJobDto
  3206. */
  3207. 'recognizeFaces': JobSettingsDto;
  3208. /**
  3209. *
  3210. * @type {JobSettingsDto}
  3211. * @memberof SystemConfigJobDto
  3212. */
  3213. 'search': JobSettingsDto;
  3214. /**
  3215. *
  3216. * @type {JobSettingsDto}
  3217. * @memberof SystemConfigJobDto
  3218. */
  3219. 'sidecar': JobSettingsDto;
  3220. /**
  3221. *
  3222. * @type {JobSettingsDto}
  3223. * @memberof SystemConfigJobDto
  3224. */
  3225. 'storageTemplateMigration': JobSettingsDto;
  3226. /**
  3227. *
  3228. * @type {JobSettingsDto}
  3229. * @memberof SystemConfigJobDto
  3230. */
  3231. 'thumbnailGeneration': JobSettingsDto;
  3232. /**
  3233. *
  3234. * @type {JobSettingsDto}
  3235. * @memberof SystemConfigJobDto
  3236. */
  3237. 'videoConversion': JobSettingsDto;
  3238. }
  3239. /**
  3240. *
  3241. * @export
  3242. * @interface SystemConfigMachineLearningDto
  3243. */
  3244. export interface SystemConfigMachineLearningDto {
  3245. /**
  3246. *
  3247. * @type {ClassificationConfig}
  3248. * @memberof SystemConfigMachineLearningDto
  3249. */
  3250. 'classification': ClassificationConfig;
  3251. /**
  3252. *
  3253. * @type {CLIPConfig}
  3254. * @memberof SystemConfigMachineLearningDto
  3255. */
  3256. 'clip': CLIPConfig;
  3257. /**
  3258. *
  3259. * @type {boolean}
  3260. * @memberof SystemConfigMachineLearningDto
  3261. */
  3262. 'enabled': boolean;
  3263. /**
  3264. *
  3265. * @type {RecognitionConfig}
  3266. * @memberof SystemConfigMachineLearningDto
  3267. */
  3268. 'facialRecognition': RecognitionConfig;
  3269. /**
  3270. *
  3271. * @type {string}
  3272. * @memberof SystemConfigMachineLearningDto
  3273. */
  3274. 'url': string;
  3275. }
  3276. /**
  3277. *
  3278. * @export
  3279. * @interface SystemConfigMapDto
  3280. */
  3281. export interface SystemConfigMapDto {
  3282. /**
  3283. *
  3284. * @type {boolean}
  3285. * @memberof SystemConfigMapDto
  3286. */
  3287. 'enabled': boolean;
  3288. /**
  3289. *
  3290. * @type {string}
  3291. * @memberof SystemConfigMapDto
  3292. */
  3293. 'tileUrl': string;
  3294. }
  3295. /**
  3296. *
  3297. * @export
  3298. * @interface SystemConfigOAuthDto
  3299. */
  3300. export interface SystemConfigOAuthDto {
  3301. /**
  3302. *
  3303. * @type {boolean}
  3304. * @memberof SystemConfigOAuthDto
  3305. */
  3306. 'autoLaunch': boolean;
  3307. /**
  3308. *
  3309. * @type {boolean}
  3310. * @memberof SystemConfigOAuthDto
  3311. */
  3312. 'autoRegister': boolean;
  3313. /**
  3314. *
  3315. * @type {string}
  3316. * @memberof SystemConfigOAuthDto
  3317. */
  3318. 'buttonText': string;
  3319. /**
  3320. *
  3321. * @type {string}
  3322. * @memberof SystemConfigOAuthDto
  3323. */
  3324. 'clientId': string;
  3325. /**
  3326. *
  3327. * @type {string}
  3328. * @memberof SystemConfigOAuthDto
  3329. */
  3330. 'clientSecret': string;
  3331. /**
  3332. *
  3333. * @type {boolean}
  3334. * @memberof SystemConfigOAuthDto
  3335. */
  3336. 'enabled': boolean;
  3337. /**
  3338. *
  3339. * @type {string}
  3340. * @memberof SystemConfigOAuthDto
  3341. */
  3342. 'issuerUrl': string;
  3343. /**
  3344. *
  3345. * @type {boolean}
  3346. * @memberof SystemConfigOAuthDto
  3347. */
  3348. 'mobileOverrideEnabled': boolean;
  3349. /**
  3350. *
  3351. * @type {string}
  3352. * @memberof SystemConfigOAuthDto
  3353. */
  3354. 'mobileRedirectUri': string;
  3355. /**
  3356. *
  3357. * @type {string}
  3358. * @memberof SystemConfigOAuthDto
  3359. */
  3360. 'scope': string;
  3361. /**
  3362. *
  3363. * @type {string}
  3364. * @memberof SystemConfigOAuthDto
  3365. */
  3366. 'storageLabelClaim': string;
  3367. }
  3368. /**
  3369. *
  3370. * @export
  3371. * @interface SystemConfigPasswordLoginDto
  3372. */
  3373. export interface SystemConfigPasswordLoginDto {
  3374. /**
  3375. *
  3376. * @type {boolean}
  3377. * @memberof SystemConfigPasswordLoginDto
  3378. */
  3379. 'enabled': boolean;
  3380. }
  3381. /**
  3382. *
  3383. * @export
  3384. * @interface SystemConfigReverseGeocodingDto
  3385. */
  3386. export interface SystemConfigReverseGeocodingDto {
  3387. /**
  3388. *
  3389. * @type {CitiesFile}
  3390. * @memberof SystemConfigReverseGeocodingDto
  3391. */
  3392. 'citiesFileOverride': CitiesFile;
  3393. /**
  3394. *
  3395. * @type {boolean}
  3396. * @memberof SystemConfigReverseGeocodingDto
  3397. */
  3398. 'enabled': boolean;
  3399. }
  3400. /**
  3401. *
  3402. * @export
  3403. * @interface SystemConfigStorageTemplateDto
  3404. */
  3405. export interface SystemConfigStorageTemplateDto {
  3406. /**
  3407. *
  3408. * @type {string}
  3409. * @memberof SystemConfigStorageTemplateDto
  3410. */
  3411. 'template': string;
  3412. }
  3413. /**
  3414. *
  3415. * @export
  3416. * @interface SystemConfigTemplateStorageOptionDto
  3417. */
  3418. export interface SystemConfigTemplateStorageOptionDto {
  3419. /**
  3420. *
  3421. * @type {Array<string>}
  3422. * @memberof SystemConfigTemplateStorageOptionDto
  3423. */
  3424. 'dayOptions': Array<string>;
  3425. /**
  3426. *
  3427. * @type {Array<string>}
  3428. * @memberof SystemConfigTemplateStorageOptionDto
  3429. */
  3430. 'hourOptions': Array<string>;
  3431. /**
  3432. *
  3433. * @type {Array<string>}
  3434. * @memberof SystemConfigTemplateStorageOptionDto
  3435. */
  3436. 'minuteOptions': Array<string>;
  3437. /**
  3438. *
  3439. * @type {Array<string>}
  3440. * @memberof SystemConfigTemplateStorageOptionDto
  3441. */
  3442. 'monthOptions': Array<string>;
  3443. /**
  3444. *
  3445. * @type {Array<string>}
  3446. * @memberof SystemConfigTemplateStorageOptionDto
  3447. */
  3448. 'presetOptions': Array<string>;
  3449. /**
  3450. *
  3451. * @type {Array<string>}
  3452. * @memberof SystemConfigTemplateStorageOptionDto
  3453. */
  3454. 'secondOptions': Array<string>;
  3455. /**
  3456. *
  3457. * @type {Array<string>}
  3458. * @memberof SystemConfigTemplateStorageOptionDto
  3459. */
  3460. 'weekOptions': Array<string>;
  3461. /**
  3462. *
  3463. * @type {Array<string>}
  3464. * @memberof SystemConfigTemplateStorageOptionDto
  3465. */
  3466. 'yearOptions': Array<string>;
  3467. }
  3468. /**
  3469. *
  3470. * @export
  3471. * @interface SystemConfigThumbnailDto
  3472. */
  3473. export interface SystemConfigThumbnailDto {
  3474. /**
  3475. *
  3476. * @type {Colorspace}
  3477. * @memberof SystemConfigThumbnailDto
  3478. */
  3479. 'colorspace': Colorspace;
  3480. /**
  3481. *
  3482. * @type {number}
  3483. * @memberof SystemConfigThumbnailDto
  3484. */
  3485. 'jpegSize': number;
  3486. /**
  3487. *
  3488. * @type {number}
  3489. * @memberof SystemConfigThumbnailDto
  3490. */
  3491. 'quality': number;
  3492. /**
  3493. *
  3494. * @type {number}
  3495. * @memberof SystemConfigThumbnailDto
  3496. */
  3497. 'webpSize': number;
  3498. }
  3499. /**
  3500. *
  3501. * @export
  3502. * @interface SystemConfigTrashDto
  3503. */
  3504. export interface SystemConfigTrashDto {
  3505. /**
  3506. *
  3507. * @type {number}
  3508. * @memberof SystemConfigTrashDto
  3509. */
  3510. 'days': number;
  3511. /**
  3512. *
  3513. * @type {boolean}
  3514. * @memberof SystemConfigTrashDto
  3515. */
  3516. 'enabled': boolean;
  3517. }
  3518. /**
  3519. *
  3520. * @export
  3521. * @interface TagResponseDto
  3522. */
  3523. export interface TagResponseDto {
  3524. /**
  3525. *
  3526. * @type {string}
  3527. * @memberof TagResponseDto
  3528. */
  3529. 'id': string;
  3530. /**
  3531. *
  3532. * @type {string}
  3533. * @memberof TagResponseDto
  3534. */
  3535. 'name': string;
  3536. /**
  3537. *
  3538. * @type {TagTypeEnum}
  3539. * @memberof TagResponseDto
  3540. */
  3541. 'type': TagTypeEnum;
  3542. /**
  3543. *
  3544. * @type {string}
  3545. * @memberof TagResponseDto
  3546. */
  3547. 'userId': string;
  3548. }
  3549. /**
  3550. *
  3551. * @export
  3552. * @enum {string}
  3553. */
  3554. export const TagTypeEnum = {
  3555. Object: 'OBJECT',
  3556. Face: 'FACE',
  3557. Custom: 'CUSTOM'
  3558. } as const;
  3559. export type TagTypeEnum = typeof TagTypeEnum[keyof typeof TagTypeEnum];
  3560. /**
  3561. *
  3562. * @export
  3563. * @enum {string}
  3564. */
  3565. export const ThumbnailFormat = {
  3566. Jpeg: 'JPEG',
  3567. Webp: 'WEBP'
  3568. } as const;
  3569. export type ThumbnailFormat = typeof ThumbnailFormat[keyof typeof ThumbnailFormat];
  3570. /**
  3571. *
  3572. * @export
  3573. * @interface TimeBucketResponseDto
  3574. */
  3575. export interface TimeBucketResponseDto {
  3576. /**
  3577. *
  3578. * @type {number}
  3579. * @memberof TimeBucketResponseDto
  3580. */
  3581. 'count': number;
  3582. /**
  3583. *
  3584. * @type {string}
  3585. * @memberof TimeBucketResponseDto
  3586. */
  3587. 'timeBucket': string;
  3588. }
  3589. /**
  3590. *
  3591. * @export
  3592. * @enum {string}
  3593. */
  3594. export const TimeBucketSize = {
  3595. Day: 'DAY',
  3596. Month: 'MONTH'
  3597. } as const;
  3598. export type TimeBucketSize = typeof TimeBucketSize[keyof typeof TimeBucketSize];
  3599. /**
  3600. *
  3601. * @export
  3602. * @enum {string}
  3603. */
  3604. export const ToneMapping = {
  3605. Hable: 'hable',
  3606. Mobius: 'mobius',
  3607. Reinhard: 'reinhard',
  3608. Disabled: 'disabled'
  3609. } as const;
  3610. export type ToneMapping = typeof ToneMapping[keyof typeof ToneMapping];
  3611. /**
  3612. *
  3613. * @export
  3614. * @enum {string}
  3615. */
  3616. export const TranscodeHWAccel = {
  3617. Nvenc: 'nvenc',
  3618. Qsv: 'qsv',
  3619. Vaapi: 'vaapi',
  3620. Disabled: 'disabled'
  3621. } as const;
  3622. export type TranscodeHWAccel = typeof TranscodeHWAccel[keyof typeof TranscodeHWAccel];
  3623. /**
  3624. *
  3625. * @export
  3626. * @enum {string}
  3627. */
  3628. export const TranscodePolicy = {
  3629. All: 'all',
  3630. Optimal: 'optimal',
  3631. Required: 'required',
  3632. Disabled: 'disabled'
  3633. } as const;
  3634. export type TranscodePolicy = typeof TranscodePolicy[keyof typeof TranscodePolicy];
  3635. /**
  3636. *
  3637. * @export
  3638. * @interface UpdateAlbumDto
  3639. */
  3640. export interface UpdateAlbumDto {
  3641. /**
  3642. *
  3643. * @type {string}
  3644. * @memberof UpdateAlbumDto
  3645. */
  3646. 'albumName'?: string;
  3647. /**
  3648. *
  3649. * @type {string}
  3650. * @memberof UpdateAlbumDto
  3651. */
  3652. 'albumThumbnailAssetId'?: string;
  3653. /**
  3654. *
  3655. * @type {string}
  3656. * @memberof UpdateAlbumDto
  3657. */
  3658. 'description'?: string;
  3659. }
  3660. /**
  3661. *
  3662. * @export
  3663. * @interface UpdateAssetDto
  3664. */
  3665. export interface UpdateAssetDto {
  3666. /**
  3667. *
  3668. * @type {string}
  3669. * @memberof UpdateAssetDto
  3670. */
  3671. 'description'?: string;
  3672. /**
  3673. *
  3674. * @type {boolean}
  3675. * @memberof UpdateAssetDto
  3676. */
  3677. 'isArchived'?: boolean;
  3678. /**
  3679. *
  3680. * @type {boolean}
  3681. * @memberof UpdateAssetDto
  3682. */
  3683. 'isFavorite'?: boolean;
  3684. }
  3685. /**
  3686. *
  3687. * @export
  3688. * @interface UpdateLibraryDto
  3689. */
  3690. export interface UpdateLibraryDto {
  3691. /**
  3692. *
  3693. * @type {Array<string>}
  3694. * @memberof UpdateLibraryDto
  3695. */
  3696. 'exclusionPatterns'?: Array<string>;
  3697. /**
  3698. *
  3699. * @type {Array<string>}
  3700. * @memberof UpdateLibraryDto
  3701. */
  3702. 'importPaths'?: Array<string>;
  3703. /**
  3704. *
  3705. * @type {boolean}
  3706. * @memberof UpdateLibraryDto
  3707. */
  3708. 'isVisible'?: boolean;
  3709. /**
  3710. *
  3711. * @type {string}
  3712. * @memberof UpdateLibraryDto
  3713. */
  3714. 'name'?: string;
  3715. }
  3716. /**
  3717. *
  3718. * @export
  3719. * @interface UpdateTagDto
  3720. */
  3721. export interface UpdateTagDto {
  3722. /**
  3723. *
  3724. * @type {string}
  3725. * @memberof UpdateTagDto
  3726. */
  3727. 'name'?: string;
  3728. }
  3729. /**
  3730. *
  3731. * @export
  3732. * @interface UpdateUserDto
  3733. */
  3734. export interface UpdateUserDto {
  3735. /**
  3736. *
  3737. * @type {string}
  3738. * @memberof UpdateUserDto
  3739. */
  3740. 'email'?: string;
  3741. /**
  3742. *
  3743. * @type {string}
  3744. * @memberof UpdateUserDto
  3745. */
  3746. 'externalPath'?: string;
  3747. /**
  3748. *
  3749. * @type {string}
  3750. * @memberof UpdateUserDto
  3751. */
  3752. 'firstName'?: string;
  3753. /**
  3754. *
  3755. * @type {string}
  3756. * @memberof UpdateUserDto
  3757. */
  3758. 'id': string;
  3759. /**
  3760. *
  3761. * @type {boolean}
  3762. * @memberof UpdateUserDto
  3763. */
  3764. 'isAdmin'?: boolean;
  3765. /**
  3766. *
  3767. * @type {string}
  3768. * @memberof UpdateUserDto
  3769. */
  3770. 'lastName'?: string;
  3771. /**
  3772. *
  3773. * @type {boolean}
  3774. * @memberof UpdateUserDto
  3775. */
  3776. 'memoriesEnabled'?: boolean;
  3777. /**
  3778. *
  3779. * @type {string}
  3780. * @memberof UpdateUserDto
  3781. */
  3782. 'password'?: string;
  3783. /**
  3784. *
  3785. * @type {boolean}
  3786. * @memberof UpdateUserDto
  3787. */
  3788. 'shouldChangePassword'?: boolean;
  3789. /**
  3790. *
  3791. * @type {string}
  3792. * @memberof UpdateUserDto
  3793. */
  3794. 'storageLabel'?: string;
  3795. }
  3796. /**
  3797. *
  3798. * @export
  3799. * @interface UsageByUserDto
  3800. */
  3801. export interface UsageByUserDto {
  3802. /**
  3803. *
  3804. * @type {number}
  3805. * @memberof UsageByUserDto
  3806. */
  3807. 'photos': number;
  3808. /**
  3809. *
  3810. * @type {number}
  3811. * @memberof UsageByUserDto
  3812. */
  3813. 'usage': number;
  3814. /**
  3815. *
  3816. * @type {string}
  3817. * @memberof UsageByUserDto
  3818. */
  3819. 'userFirstName': string;
  3820. /**
  3821. *
  3822. * @type {string}
  3823. * @memberof UsageByUserDto
  3824. */
  3825. 'userId': string;
  3826. /**
  3827. *
  3828. * @type {string}
  3829. * @memberof UsageByUserDto
  3830. */
  3831. 'userLastName': string;
  3832. /**
  3833. *
  3834. * @type {number}
  3835. * @memberof UsageByUserDto
  3836. */
  3837. 'videos': number;
  3838. }
  3839. /**
  3840. *
  3841. * @export
  3842. * @interface UserCountResponseDto
  3843. */
  3844. export interface UserCountResponseDto {
  3845. /**
  3846. *
  3847. * @type {number}
  3848. * @memberof UserCountResponseDto
  3849. */
  3850. 'userCount': number;
  3851. }
  3852. /**
  3853. *
  3854. * @export
  3855. * @interface UserResponseDto
  3856. */
  3857. export interface UserResponseDto {
  3858. /**
  3859. *
  3860. * @type {string}
  3861. * @memberof UserResponseDto
  3862. */
  3863. 'createdAt': string;
  3864. /**
  3865. *
  3866. * @type {string}
  3867. * @memberof UserResponseDto
  3868. */
  3869. 'deletedAt': string | null;
  3870. /**
  3871. *
  3872. * @type {string}
  3873. * @memberof UserResponseDto
  3874. */
  3875. 'email': string;
  3876. /**
  3877. *
  3878. * @type {string}
  3879. * @memberof UserResponseDto
  3880. */
  3881. 'externalPath': string | null;
  3882. /**
  3883. *
  3884. * @type {string}
  3885. * @memberof UserResponseDto
  3886. */
  3887. 'firstName': string;
  3888. /**
  3889. *
  3890. * @type {string}
  3891. * @memberof UserResponseDto
  3892. */
  3893. 'id': string;
  3894. /**
  3895. *
  3896. * @type {boolean}
  3897. * @memberof UserResponseDto
  3898. */
  3899. 'isAdmin': boolean;
  3900. /**
  3901. *
  3902. * @type {string}
  3903. * @memberof UserResponseDto
  3904. */
  3905. 'lastName': string;
  3906. /**
  3907. *
  3908. * @type {boolean}
  3909. * @memberof UserResponseDto
  3910. */
  3911. 'memoriesEnabled'?: boolean;
  3912. /**
  3913. *
  3914. * @type {string}
  3915. * @memberof UserResponseDto
  3916. */
  3917. 'oauthId': string;
  3918. /**
  3919. *
  3920. * @type {string}
  3921. * @memberof UserResponseDto
  3922. */
  3923. 'profileImagePath': string;
  3924. /**
  3925. *
  3926. * @type {boolean}
  3927. * @memberof UserResponseDto
  3928. */
  3929. 'shouldChangePassword': boolean;
  3930. /**
  3931. *
  3932. * @type {string}
  3933. * @memberof UserResponseDto
  3934. */
  3935. 'storageLabel': string | null;
  3936. /**
  3937. *
  3938. * @type {string}
  3939. * @memberof UserResponseDto
  3940. */
  3941. 'updatedAt': string;
  3942. }
  3943. /**
  3944. *
  3945. * @export
  3946. * @interface ValidateAccessTokenResponseDto
  3947. */
  3948. export interface ValidateAccessTokenResponseDto {
  3949. /**
  3950. *
  3951. * @type {boolean}
  3952. * @memberof ValidateAccessTokenResponseDto
  3953. */
  3954. 'authStatus': boolean;
  3955. }
  3956. /**
  3957. *
  3958. * @export
  3959. * @enum {string}
  3960. */
  3961. export const VideoCodec = {
  3962. H264: 'h264',
  3963. Hevc: 'hevc',
  3964. Vp9: 'vp9'
  3965. } as const;
  3966. export type VideoCodec = typeof VideoCodec[keyof typeof VideoCodec];
  3967. /**
  3968. * APIKeyApi - axios parameter creator
  3969. * @export
  3970. */
  3971. export const APIKeyApiAxiosParamCreator = function (configuration?: Configuration) {
  3972. return {
  3973. /**
  3974. *
  3975. * @param {APIKeyCreateDto} aPIKeyCreateDto
  3976. * @param {*} [options] Override http request option.
  3977. * @throws {RequiredError}
  3978. */
  3979. createKey: async (aPIKeyCreateDto: APIKeyCreateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  3980. // verify required parameter 'aPIKeyCreateDto' is not null or undefined
  3981. assertParamExists('createKey', 'aPIKeyCreateDto', aPIKeyCreateDto)
  3982. const localVarPath = `/api-key`;
  3983. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  3984. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  3985. let baseOptions;
  3986. if (configuration) {
  3987. baseOptions = configuration.baseOptions;
  3988. }
  3989. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  3990. const localVarHeaderParameter = {} as any;
  3991. const localVarQueryParameter = {} as any;
  3992. // authentication cookie required
  3993. // authentication api_key required
  3994. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  3995. // authentication bearer required
  3996. // http bearer authentication required
  3997. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  3998. localVarHeaderParameter['Content-Type'] = 'application/json';
  3999. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4000. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4001. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4002. localVarRequestOptions.data = serializeDataIfNeeded(aPIKeyCreateDto, localVarRequestOptions, configuration)
  4003. return {
  4004. url: toPathString(localVarUrlObj),
  4005. options: localVarRequestOptions,
  4006. };
  4007. },
  4008. /**
  4009. *
  4010. * @param {string} id
  4011. * @param {*} [options] Override http request option.
  4012. * @throws {RequiredError}
  4013. */
  4014. deleteKey: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4015. // verify required parameter 'id' is not null or undefined
  4016. assertParamExists('deleteKey', 'id', id)
  4017. const localVarPath = `/api-key/{id}`
  4018. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4019. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4020. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4021. let baseOptions;
  4022. if (configuration) {
  4023. baseOptions = configuration.baseOptions;
  4024. }
  4025. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  4026. const localVarHeaderParameter = {} as any;
  4027. const localVarQueryParameter = {} as any;
  4028. // authentication cookie required
  4029. // authentication api_key required
  4030. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4031. // authentication bearer required
  4032. // http bearer authentication required
  4033. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4034. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4035. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4036. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4037. return {
  4038. url: toPathString(localVarUrlObj),
  4039. options: localVarRequestOptions,
  4040. };
  4041. },
  4042. /**
  4043. *
  4044. * @param {string} id
  4045. * @param {*} [options] Override http request option.
  4046. * @throws {RequiredError}
  4047. */
  4048. getKey: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4049. // verify required parameter 'id' is not null or undefined
  4050. assertParamExists('getKey', 'id', id)
  4051. const localVarPath = `/api-key/{id}`
  4052. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4053. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4054. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4055. let baseOptions;
  4056. if (configuration) {
  4057. baseOptions = configuration.baseOptions;
  4058. }
  4059. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4060. const localVarHeaderParameter = {} as any;
  4061. const localVarQueryParameter = {} as any;
  4062. // authentication cookie required
  4063. // authentication api_key required
  4064. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4065. // authentication bearer required
  4066. // http bearer authentication required
  4067. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4068. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4069. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4070. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4071. return {
  4072. url: toPathString(localVarUrlObj),
  4073. options: localVarRequestOptions,
  4074. };
  4075. },
  4076. /**
  4077. *
  4078. * @param {*} [options] Override http request option.
  4079. * @throws {RequiredError}
  4080. */
  4081. getKeys: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4082. const localVarPath = `/api-key`;
  4083. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4084. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4085. let baseOptions;
  4086. if (configuration) {
  4087. baseOptions = configuration.baseOptions;
  4088. }
  4089. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4090. const localVarHeaderParameter = {} as any;
  4091. const localVarQueryParameter = {} as any;
  4092. // authentication cookie required
  4093. // authentication api_key required
  4094. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4095. // authentication bearer required
  4096. // http bearer authentication required
  4097. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4098. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4099. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4100. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4101. return {
  4102. url: toPathString(localVarUrlObj),
  4103. options: localVarRequestOptions,
  4104. };
  4105. },
  4106. /**
  4107. *
  4108. * @param {string} id
  4109. * @param {APIKeyUpdateDto} aPIKeyUpdateDto
  4110. * @param {*} [options] Override http request option.
  4111. * @throws {RequiredError}
  4112. */
  4113. updateKey: async (id: string, aPIKeyUpdateDto: APIKeyUpdateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4114. // verify required parameter 'id' is not null or undefined
  4115. assertParamExists('updateKey', 'id', id)
  4116. // verify required parameter 'aPIKeyUpdateDto' is not null or undefined
  4117. assertParamExists('updateKey', 'aPIKeyUpdateDto', aPIKeyUpdateDto)
  4118. const localVarPath = `/api-key/{id}`
  4119. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4120. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4121. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4122. let baseOptions;
  4123. if (configuration) {
  4124. baseOptions = configuration.baseOptions;
  4125. }
  4126. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  4127. const localVarHeaderParameter = {} as any;
  4128. const localVarQueryParameter = {} as any;
  4129. // authentication cookie required
  4130. // authentication api_key required
  4131. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4132. // authentication bearer required
  4133. // http bearer authentication required
  4134. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4135. localVarHeaderParameter['Content-Type'] = 'application/json';
  4136. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4137. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4138. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4139. localVarRequestOptions.data = serializeDataIfNeeded(aPIKeyUpdateDto, localVarRequestOptions, configuration)
  4140. return {
  4141. url: toPathString(localVarUrlObj),
  4142. options: localVarRequestOptions,
  4143. };
  4144. },
  4145. }
  4146. };
  4147. /**
  4148. * APIKeyApi - functional programming interface
  4149. * @export
  4150. */
  4151. export const APIKeyApiFp = function(configuration?: Configuration) {
  4152. const localVarAxiosParamCreator = APIKeyApiAxiosParamCreator(configuration)
  4153. return {
  4154. /**
  4155. *
  4156. * @param {APIKeyCreateDto} aPIKeyCreateDto
  4157. * @param {*} [options] Override http request option.
  4158. * @throws {RequiredError}
  4159. */
  4160. async createKey(aPIKeyCreateDto: APIKeyCreateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIKeyCreateResponseDto>> {
  4161. const localVarAxiosArgs = await localVarAxiosParamCreator.createKey(aPIKeyCreateDto, options);
  4162. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4163. },
  4164. /**
  4165. *
  4166. * @param {string} id
  4167. * @param {*} [options] Override http request option.
  4168. * @throws {RequiredError}
  4169. */
  4170. async deleteKey(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  4171. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteKey(id, options);
  4172. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4173. },
  4174. /**
  4175. *
  4176. * @param {string} id
  4177. * @param {*} [options] Override http request option.
  4178. * @throws {RequiredError}
  4179. */
  4180. async getKey(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIKeyResponseDto>> {
  4181. const localVarAxiosArgs = await localVarAxiosParamCreator.getKey(id, options);
  4182. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4183. },
  4184. /**
  4185. *
  4186. * @param {*} [options] Override http request option.
  4187. * @throws {RequiredError}
  4188. */
  4189. async getKeys(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<APIKeyResponseDto>>> {
  4190. const localVarAxiosArgs = await localVarAxiosParamCreator.getKeys(options);
  4191. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4192. },
  4193. /**
  4194. *
  4195. * @param {string} id
  4196. * @param {APIKeyUpdateDto} aPIKeyUpdateDto
  4197. * @param {*} [options] Override http request option.
  4198. * @throws {RequiredError}
  4199. */
  4200. async updateKey(id: string, aPIKeyUpdateDto: APIKeyUpdateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIKeyResponseDto>> {
  4201. const localVarAxiosArgs = await localVarAxiosParamCreator.updateKey(id, aPIKeyUpdateDto, options);
  4202. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4203. },
  4204. }
  4205. };
  4206. /**
  4207. * APIKeyApi - factory interface
  4208. * @export
  4209. */
  4210. export const APIKeyApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  4211. const localVarFp = APIKeyApiFp(configuration)
  4212. return {
  4213. /**
  4214. *
  4215. * @param {APIKeyApiCreateKeyRequest} requestParameters Request parameters.
  4216. * @param {*} [options] Override http request option.
  4217. * @throws {RequiredError}
  4218. */
  4219. createKey(requestParameters: APIKeyApiCreateKeyRequest, options?: AxiosRequestConfig): AxiosPromise<APIKeyCreateResponseDto> {
  4220. return localVarFp.createKey(requestParameters.aPIKeyCreateDto, options).then((request) => request(axios, basePath));
  4221. },
  4222. /**
  4223. *
  4224. * @param {APIKeyApiDeleteKeyRequest} requestParameters Request parameters.
  4225. * @param {*} [options] Override http request option.
  4226. * @throws {RequiredError}
  4227. */
  4228. deleteKey(requestParameters: APIKeyApiDeleteKeyRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  4229. return localVarFp.deleteKey(requestParameters.id, options).then((request) => request(axios, basePath));
  4230. },
  4231. /**
  4232. *
  4233. * @param {APIKeyApiGetKeyRequest} requestParameters Request parameters.
  4234. * @param {*} [options] Override http request option.
  4235. * @throws {RequiredError}
  4236. */
  4237. getKey(requestParameters: APIKeyApiGetKeyRequest, options?: AxiosRequestConfig): AxiosPromise<APIKeyResponseDto> {
  4238. return localVarFp.getKey(requestParameters.id, options).then((request) => request(axios, basePath));
  4239. },
  4240. /**
  4241. *
  4242. * @param {*} [options] Override http request option.
  4243. * @throws {RequiredError}
  4244. */
  4245. getKeys(options?: AxiosRequestConfig): AxiosPromise<Array<APIKeyResponseDto>> {
  4246. return localVarFp.getKeys(options).then((request) => request(axios, basePath));
  4247. },
  4248. /**
  4249. *
  4250. * @param {APIKeyApiUpdateKeyRequest} requestParameters Request parameters.
  4251. * @param {*} [options] Override http request option.
  4252. * @throws {RequiredError}
  4253. */
  4254. updateKey(requestParameters: APIKeyApiUpdateKeyRequest, options?: AxiosRequestConfig): AxiosPromise<APIKeyResponseDto> {
  4255. return localVarFp.updateKey(requestParameters.id, requestParameters.aPIKeyUpdateDto, options).then((request) => request(axios, basePath));
  4256. },
  4257. };
  4258. };
  4259. /**
  4260. * Request parameters for createKey operation in APIKeyApi.
  4261. * @export
  4262. * @interface APIKeyApiCreateKeyRequest
  4263. */
  4264. export interface APIKeyApiCreateKeyRequest {
  4265. /**
  4266. *
  4267. * @type {APIKeyCreateDto}
  4268. * @memberof APIKeyApiCreateKey
  4269. */
  4270. readonly aPIKeyCreateDto: APIKeyCreateDto
  4271. }
  4272. /**
  4273. * Request parameters for deleteKey operation in APIKeyApi.
  4274. * @export
  4275. * @interface APIKeyApiDeleteKeyRequest
  4276. */
  4277. export interface APIKeyApiDeleteKeyRequest {
  4278. /**
  4279. *
  4280. * @type {string}
  4281. * @memberof APIKeyApiDeleteKey
  4282. */
  4283. readonly id: string
  4284. }
  4285. /**
  4286. * Request parameters for getKey operation in APIKeyApi.
  4287. * @export
  4288. * @interface APIKeyApiGetKeyRequest
  4289. */
  4290. export interface APIKeyApiGetKeyRequest {
  4291. /**
  4292. *
  4293. * @type {string}
  4294. * @memberof APIKeyApiGetKey
  4295. */
  4296. readonly id: string
  4297. }
  4298. /**
  4299. * Request parameters for updateKey operation in APIKeyApi.
  4300. * @export
  4301. * @interface APIKeyApiUpdateKeyRequest
  4302. */
  4303. export interface APIKeyApiUpdateKeyRequest {
  4304. /**
  4305. *
  4306. * @type {string}
  4307. * @memberof APIKeyApiUpdateKey
  4308. */
  4309. readonly id: string
  4310. /**
  4311. *
  4312. * @type {APIKeyUpdateDto}
  4313. * @memberof APIKeyApiUpdateKey
  4314. */
  4315. readonly aPIKeyUpdateDto: APIKeyUpdateDto
  4316. }
  4317. /**
  4318. * APIKeyApi - object-oriented interface
  4319. * @export
  4320. * @class APIKeyApi
  4321. * @extends {BaseAPI}
  4322. */
  4323. export class APIKeyApi extends BaseAPI {
  4324. /**
  4325. *
  4326. * @param {APIKeyApiCreateKeyRequest} requestParameters Request parameters.
  4327. * @param {*} [options] Override http request option.
  4328. * @throws {RequiredError}
  4329. * @memberof APIKeyApi
  4330. */
  4331. public createKey(requestParameters: APIKeyApiCreateKeyRequest, options?: AxiosRequestConfig) {
  4332. return APIKeyApiFp(this.configuration).createKey(requestParameters.aPIKeyCreateDto, options).then((request) => request(this.axios, this.basePath));
  4333. }
  4334. /**
  4335. *
  4336. * @param {APIKeyApiDeleteKeyRequest} requestParameters Request parameters.
  4337. * @param {*} [options] Override http request option.
  4338. * @throws {RequiredError}
  4339. * @memberof APIKeyApi
  4340. */
  4341. public deleteKey(requestParameters: APIKeyApiDeleteKeyRequest, options?: AxiosRequestConfig) {
  4342. return APIKeyApiFp(this.configuration).deleteKey(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  4343. }
  4344. /**
  4345. *
  4346. * @param {APIKeyApiGetKeyRequest} requestParameters Request parameters.
  4347. * @param {*} [options] Override http request option.
  4348. * @throws {RequiredError}
  4349. * @memberof APIKeyApi
  4350. */
  4351. public getKey(requestParameters: APIKeyApiGetKeyRequest, options?: AxiosRequestConfig) {
  4352. return APIKeyApiFp(this.configuration).getKey(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  4353. }
  4354. /**
  4355. *
  4356. * @param {*} [options] Override http request option.
  4357. * @throws {RequiredError}
  4358. * @memberof APIKeyApi
  4359. */
  4360. public getKeys(options?: AxiosRequestConfig) {
  4361. return APIKeyApiFp(this.configuration).getKeys(options).then((request) => request(this.axios, this.basePath));
  4362. }
  4363. /**
  4364. *
  4365. * @param {APIKeyApiUpdateKeyRequest} requestParameters Request parameters.
  4366. * @param {*} [options] Override http request option.
  4367. * @throws {RequiredError}
  4368. * @memberof APIKeyApi
  4369. */
  4370. public updateKey(requestParameters: APIKeyApiUpdateKeyRequest, options?: AxiosRequestConfig) {
  4371. return APIKeyApiFp(this.configuration).updateKey(requestParameters.id, requestParameters.aPIKeyUpdateDto, options).then((request) => request(this.axios, this.basePath));
  4372. }
  4373. }
  4374. /**
  4375. * AlbumApi - axios parameter creator
  4376. * @export
  4377. */
  4378. export const AlbumApiAxiosParamCreator = function (configuration?: Configuration) {
  4379. return {
  4380. /**
  4381. *
  4382. * @param {string} id
  4383. * @param {BulkIdsDto} bulkIdsDto
  4384. * @param {string} [key]
  4385. * @param {*} [options] Override http request option.
  4386. * @throws {RequiredError}
  4387. */
  4388. addAssetsToAlbum: async (id: string, bulkIdsDto: BulkIdsDto, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4389. // verify required parameter 'id' is not null or undefined
  4390. assertParamExists('addAssetsToAlbum', 'id', id)
  4391. // verify required parameter 'bulkIdsDto' is not null or undefined
  4392. assertParamExists('addAssetsToAlbum', 'bulkIdsDto', bulkIdsDto)
  4393. const localVarPath = `/album/{id}/assets`
  4394. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4395. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4396. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4397. let baseOptions;
  4398. if (configuration) {
  4399. baseOptions = configuration.baseOptions;
  4400. }
  4401. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  4402. const localVarHeaderParameter = {} as any;
  4403. const localVarQueryParameter = {} as any;
  4404. // authentication cookie required
  4405. // authentication api_key required
  4406. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4407. // authentication bearer required
  4408. // http bearer authentication required
  4409. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4410. if (key !== undefined) {
  4411. localVarQueryParameter['key'] = key;
  4412. }
  4413. localVarHeaderParameter['Content-Type'] = 'application/json';
  4414. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4415. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4416. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4417. localVarRequestOptions.data = serializeDataIfNeeded(bulkIdsDto, localVarRequestOptions, configuration)
  4418. return {
  4419. url: toPathString(localVarUrlObj),
  4420. options: localVarRequestOptions,
  4421. };
  4422. },
  4423. /**
  4424. *
  4425. * @param {string} id
  4426. * @param {AddUsersDto} addUsersDto
  4427. * @param {*} [options] Override http request option.
  4428. * @throws {RequiredError}
  4429. */
  4430. addUsersToAlbum: async (id: string, addUsersDto: AddUsersDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4431. // verify required parameter 'id' is not null or undefined
  4432. assertParamExists('addUsersToAlbum', 'id', id)
  4433. // verify required parameter 'addUsersDto' is not null or undefined
  4434. assertParamExists('addUsersToAlbum', 'addUsersDto', addUsersDto)
  4435. const localVarPath = `/album/{id}/users`
  4436. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4437. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4438. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4439. let baseOptions;
  4440. if (configuration) {
  4441. baseOptions = configuration.baseOptions;
  4442. }
  4443. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  4444. const localVarHeaderParameter = {} as any;
  4445. const localVarQueryParameter = {} as any;
  4446. // authentication cookie required
  4447. // authentication api_key required
  4448. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4449. // authentication bearer required
  4450. // http bearer authentication required
  4451. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4452. localVarHeaderParameter['Content-Type'] = 'application/json';
  4453. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4454. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4455. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4456. localVarRequestOptions.data = serializeDataIfNeeded(addUsersDto, localVarRequestOptions, configuration)
  4457. return {
  4458. url: toPathString(localVarUrlObj),
  4459. options: localVarRequestOptions,
  4460. };
  4461. },
  4462. /**
  4463. *
  4464. * @param {CreateAlbumDto} createAlbumDto
  4465. * @param {*} [options] Override http request option.
  4466. * @throws {RequiredError}
  4467. */
  4468. createAlbum: async (createAlbumDto: CreateAlbumDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4469. // verify required parameter 'createAlbumDto' is not null or undefined
  4470. assertParamExists('createAlbum', 'createAlbumDto', createAlbumDto)
  4471. const localVarPath = `/album`;
  4472. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4473. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4474. let baseOptions;
  4475. if (configuration) {
  4476. baseOptions = configuration.baseOptions;
  4477. }
  4478. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  4479. const localVarHeaderParameter = {} as any;
  4480. const localVarQueryParameter = {} as any;
  4481. // authentication cookie required
  4482. // authentication api_key required
  4483. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4484. // authentication bearer required
  4485. // http bearer authentication required
  4486. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4487. localVarHeaderParameter['Content-Type'] = 'application/json';
  4488. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4489. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4490. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4491. localVarRequestOptions.data = serializeDataIfNeeded(createAlbumDto, localVarRequestOptions, configuration)
  4492. return {
  4493. url: toPathString(localVarUrlObj),
  4494. options: localVarRequestOptions,
  4495. };
  4496. },
  4497. /**
  4498. *
  4499. * @param {string} id
  4500. * @param {*} [options] Override http request option.
  4501. * @throws {RequiredError}
  4502. */
  4503. deleteAlbum: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4504. // verify required parameter 'id' is not null or undefined
  4505. assertParamExists('deleteAlbum', 'id', id)
  4506. const localVarPath = `/album/{id}`
  4507. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4508. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4509. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4510. let baseOptions;
  4511. if (configuration) {
  4512. baseOptions = configuration.baseOptions;
  4513. }
  4514. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  4515. const localVarHeaderParameter = {} as any;
  4516. const localVarQueryParameter = {} as any;
  4517. // authentication cookie required
  4518. // authentication api_key required
  4519. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4520. // authentication bearer required
  4521. // http bearer authentication required
  4522. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4523. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4524. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4525. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4526. return {
  4527. url: toPathString(localVarUrlObj),
  4528. options: localVarRequestOptions,
  4529. };
  4530. },
  4531. /**
  4532. *
  4533. * @param {*} [options] Override http request option.
  4534. * @throws {RequiredError}
  4535. */
  4536. getAlbumCount: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4537. const localVarPath = `/album/count`;
  4538. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4539. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4540. let baseOptions;
  4541. if (configuration) {
  4542. baseOptions = configuration.baseOptions;
  4543. }
  4544. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4545. const localVarHeaderParameter = {} as any;
  4546. const localVarQueryParameter = {} as any;
  4547. // authentication cookie required
  4548. // authentication api_key required
  4549. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4550. // authentication bearer required
  4551. // http bearer authentication required
  4552. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4553. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4554. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4555. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4556. return {
  4557. url: toPathString(localVarUrlObj),
  4558. options: localVarRequestOptions,
  4559. };
  4560. },
  4561. /**
  4562. *
  4563. * @param {string} id
  4564. * @param {boolean} [withoutAssets]
  4565. * @param {string} [key]
  4566. * @param {*} [options] Override http request option.
  4567. * @throws {RequiredError}
  4568. */
  4569. getAlbumInfo: async (id: string, withoutAssets?: boolean, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4570. // verify required parameter 'id' is not null or undefined
  4571. assertParamExists('getAlbumInfo', 'id', id)
  4572. const localVarPath = `/album/{id}`
  4573. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4574. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4575. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4576. let baseOptions;
  4577. if (configuration) {
  4578. baseOptions = configuration.baseOptions;
  4579. }
  4580. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4581. const localVarHeaderParameter = {} as any;
  4582. const localVarQueryParameter = {} as any;
  4583. // authentication cookie required
  4584. // authentication api_key required
  4585. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4586. // authentication bearer required
  4587. // http bearer authentication required
  4588. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4589. if (withoutAssets !== undefined) {
  4590. localVarQueryParameter['withoutAssets'] = withoutAssets;
  4591. }
  4592. if (key !== undefined) {
  4593. localVarQueryParameter['key'] = key;
  4594. }
  4595. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4596. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4597. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4598. return {
  4599. url: toPathString(localVarUrlObj),
  4600. options: localVarRequestOptions,
  4601. };
  4602. },
  4603. /**
  4604. *
  4605. * @param {boolean} [shared]
  4606. * @param {string} [assetId] Only returns albums that contain the asset Ignores the shared parameter undefined: get all albums
  4607. * @param {*} [options] Override http request option.
  4608. * @throws {RequiredError}
  4609. */
  4610. getAllAlbums: async (shared?: boolean, assetId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4611. const localVarPath = `/album`;
  4612. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4613. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4614. let baseOptions;
  4615. if (configuration) {
  4616. baseOptions = configuration.baseOptions;
  4617. }
  4618. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4619. const localVarHeaderParameter = {} as any;
  4620. const localVarQueryParameter = {} as any;
  4621. // authentication cookie required
  4622. // authentication api_key required
  4623. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4624. // authentication bearer required
  4625. // http bearer authentication required
  4626. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4627. if (shared !== undefined) {
  4628. localVarQueryParameter['shared'] = shared;
  4629. }
  4630. if (assetId !== undefined) {
  4631. localVarQueryParameter['assetId'] = assetId;
  4632. }
  4633. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4634. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4635. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4636. return {
  4637. url: toPathString(localVarUrlObj),
  4638. options: localVarRequestOptions,
  4639. };
  4640. },
  4641. /**
  4642. *
  4643. * @param {string} id
  4644. * @param {BulkIdsDto} bulkIdsDto
  4645. * @param {*} [options] Override http request option.
  4646. * @throws {RequiredError}
  4647. */
  4648. removeAssetFromAlbum: async (id: string, bulkIdsDto: BulkIdsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4649. // verify required parameter 'id' is not null or undefined
  4650. assertParamExists('removeAssetFromAlbum', 'id', id)
  4651. // verify required parameter 'bulkIdsDto' is not null or undefined
  4652. assertParamExists('removeAssetFromAlbum', 'bulkIdsDto', bulkIdsDto)
  4653. const localVarPath = `/album/{id}/assets`
  4654. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4655. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4656. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4657. let baseOptions;
  4658. if (configuration) {
  4659. baseOptions = configuration.baseOptions;
  4660. }
  4661. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  4662. const localVarHeaderParameter = {} as any;
  4663. const localVarQueryParameter = {} as any;
  4664. // authentication cookie required
  4665. // authentication api_key required
  4666. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4667. // authentication bearer required
  4668. // http bearer authentication required
  4669. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4670. localVarHeaderParameter['Content-Type'] = 'application/json';
  4671. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4672. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4673. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4674. localVarRequestOptions.data = serializeDataIfNeeded(bulkIdsDto, localVarRequestOptions, configuration)
  4675. return {
  4676. url: toPathString(localVarUrlObj),
  4677. options: localVarRequestOptions,
  4678. };
  4679. },
  4680. /**
  4681. *
  4682. * @param {string} id
  4683. * @param {string} userId
  4684. * @param {*} [options] Override http request option.
  4685. * @throws {RequiredError}
  4686. */
  4687. removeUserFromAlbum: async (id: string, userId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4688. // verify required parameter 'id' is not null or undefined
  4689. assertParamExists('removeUserFromAlbum', 'id', id)
  4690. // verify required parameter 'userId' is not null or undefined
  4691. assertParamExists('removeUserFromAlbum', 'userId', userId)
  4692. const localVarPath = `/album/{id}/user/{userId}`
  4693. .replace(`{${"id"}}`, encodeURIComponent(String(id)))
  4694. .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
  4695. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4696. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4697. let baseOptions;
  4698. if (configuration) {
  4699. baseOptions = configuration.baseOptions;
  4700. }
  4701. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  4702. const localVarHeaderParameter = {} as any;
  4703. const localVarQueryParameter = {} as any;
  4704. // authentication cookie required
  4705. // authentication api_key required
  4706. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4707. // authentication bearer required
  4708. // http bearer authentication required
  4709. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4710. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4711. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4712. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4713. return {
  4714. url: toPathString(localVarUrlObj),
  4715. options: localVarRequestOptions,
  4716. };
  4717. },
  4718. /**
  4719. *
  4720. * @param {string} id
  4721. * @param {UpdateAlbumDto} updateAlbumDto
  4722. * @param {*} [options] Override http request option.
  4723. * @throws {RequiredError}
  4724. */
  4725. updateAlbumInfo: async (id: string, updateAlbumDto: UpdateAlbumDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4726. // verify required parameter 'id' is not null or undefined
  4727. assertParamExists('updateAlbumInfo', 'id', id)
  4728. // verify required parameter 'updateAlbumDto' is not null or undefined
  4729. assertParamExists('updateAlbumInfo', 'updateAlbumDto', updateAlbumDto)
  4730. const localVarPath = `/album/{id}`
  4731. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4732. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4733. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4734. let baseOptions;
  4735. if (configuration) {
  4736. baseOptions = configuration.baseOptions;
  4737. }
  4738. const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
  4739. const localVarHeaderParameter = {} as any;
  4740. const localVarQueryParameter = {} as any;
  4741. // authentication cookie required
  4742. // authentication api_key required
  4743. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4744. // authentication bearer required
  4745. // http bearer authentication required
  4746. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4747. localVarHeaderParameter['Content-Type'] = 'application/json';
  4748. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4749. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4750. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4751. localVarRequestOptions.data = serializeDataIfNeeded(updateAlbumDto, localVarRequestOptions, configuration)
  4752. return {
  4753. url: toPathString(localVarUrlObj),
  4754. options: localVarRequestOptions,
  4755. };
  4756. },
  4757. }
  4758. };
  4759. /**
  4760. * AlbumApi - functional programming interface
  4761. * @export
  4762. */
  4763. export const AlbumApiFp = function(configuration?: Configuration) {
  4764. const localVarAxiosParamCreator = AlbumApiAxiosParamCreator(configuration)
  4765. return {
  4766. /**
  4767. *
  4768. * @param {string} id
  4769. * @param {BulkIdsDto} bulkIdsDto
  4770. * @param {string} [key]
  4771. * @param {*} [options] Override http request option.
  4772. * @throws {RequiredError}
  4773. */
  4774. async addAssetsToAlbum(id: string, bulkIdsDto: BulkIdsDto, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BulkIdResponseDto>>> {
  4775. const localVarAxiosArgs = await localVarAxiosParamCreator.addAssetsToAlbum(id, bulkIdsDto, key, options);
  4776. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4777. },
  4778. /**
  4779. *
  4780. * @param {string} id
  4781. * @param {AddUsersDto} addUsersDto
  4782. * @param {*} [options] Override http request option.
  4783. * @throws {RequiredError}
  4784. */
  4785. async addUsersToAlbum(id: string, addUsersDto: AddUsersDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumResponseDto>> {
  4786. const localVarAxiosArgs = await localVarAxiosParamCreator.addUsersToAlbum(id, addUsersDto, options);
  4787. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4788. },
  4789. /**
  4790. *
  4791. * @param {CreateAlbumDto} createAlbumDto
  4792. * @param {*} [options] Override http request option.
  4793. * @throws {RequiredError}
  4794. */
  4795. async createAlbum(createAlbumDto: CreateAlbumDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumResponseDto>> {
  4796. const localVarAxiosArgs = await localVarAxiosParamCreator.createAlbum(createAlbumDto, options);
  4797. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4798. },
  4799. /**
  4800. *
  4801. * @param {string} id
  4802. * @param {*} [options] Override http request option.
  4803. * @throws {RequiredError}
  4804. */
  4805. async deleteAlbum(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  4806. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAlbum(id, options);
  4807. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4808. },
  4809. /**
  4810. *
  4811. * @param {*} [options] Override http request option.
  4812. * @throws {RequiredError}
  4813. */
  4814. async getAlbumCount(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumCountResponseDto>> {
  4815. const localVarAxiosArgs = await localVarAxiosParamCreator.getAlbumCount(options);
  4816. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4817. },
  4818. /**
  4819. *
  4820. * @param {string} id
  4821. * @param {boolean} [withoutAssets]
  4822. * @param {string} [key]
  4823. * @param {*} [options] Override http request option.
  4824. * @throws {RequiredError}
  4825. */
  4826. async getAlbumInfo(id: string, withoutAssets?: boolean, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumResponseDto>> {
  4827. const localVarAxiosArgs = await localVarAxiosParamCreator.getAlbumInfo(id, withoutAssets, key, options);
  4828. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4829. },
  4830. /**
  4831. *
  4832. * @param {boolean} [shared]
  4833. * @param {string} [assetId] Only returns albums that contain the asset Ignores the shared parameter undefined: get all albums
  4834. * @param {*} [options] Override http request option.
  4835. * @throws {RequiredError}
  4836. */
  4837. async getAllAlbums(shared?: boolean, assetId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AlbumResponseDto>>> {
  4838. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllAlbums(shared, assetId, options);
  4839. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4840. },
  4841. /**
  4842. *
  4843. * @param {string} id
  4844. * @param {BulkIdsDto} bulkIdsDto
  4845. * @param {*} [options] Override http request option.
  4846. * @throws {RequiredError}
  4847. */
  4848. async removeAssetFromAlbum(id: string, bulkIdsDto: BulkIdsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BulkIdResponseDto>>> {
  4849. const localVarAxiosArgs = await localVarAxiosParamCreator.removeAssetFromAlbum(id, bulkIdsDto, options);
  4850. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4851. },
  4852. /**
  4853. *
  4854. * @param {string} id
  4855. * @param {string} userId
  4856. * @param {*} [options] Override http request option.
  4857. * @throws {RequiredError}
  4858. */
  4859. async removeUserFromAlbum(id: string, userId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  4860. const localVarAxiosArgs = await localVarAxiosParamCreator.removeUserFromAlbum(id, userId, options);
  4861. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4862. },
  4863. /**
  4864. *
  4865. * @param {string} id
  4866. * @param {UpdateAlbumDto} updateAlbumDto
  4867. * @param {*} [options] Override http request option.
  4868. * @throws {RequiredError}
  4869. */
  4870. async updateAlbumInfo(id: string, updateAlbumDto: UpdateAlbumDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumResponseDto>> {
  4871. const localVarAxiosArgs = await localVarAxiosParamCreator.updateAlbumInfo(id, updateAlbumDto, options);
  4872. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4873. },
  4874. }
  4875. };
  4876. /**
  4877. * AlbumApi - factory interface
  4878. * @export
  4879. */
  4880. export const AlbumApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  4881. const localVarFp = AlbumApiFp(configuration)
  4882. return {
  4883. /**
  4884. *
  4885. * @param {AlbumApiAddAssetsToAlbumRequest} requestParameters Request parameters.
  4886. * @param {*} [options] Override http request option.
  4887. * @throws {RequiredError}
  4888. */
  4889. addAssetsToAlbum(requestParameters: AlbumApiAddAssetsToAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<Array<BulkIdResponseDto>> {
  4890. return localVarFp.addAssetsToAlbum(requestParameters.id, requestParameters.bulkIdsDto, requestParameters.key, options).then((request) => request(axios, basePath));
  4891. },
  4892. /**
  4893. *
  4894. * @param {AlbumApiAddUsersToAlbumRequest} requestParameters Request parameters.
  4895. * @param {*} [options] Override http request option.
  4896. * @throws {RequiredError}
  4897. */
  4898. addUsersToAlbum(requestParameters: AlbumApiAddUsersToAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<AlbumResponseDto> {
  4899. return localVarFp.addUsersToAlbum(requestParameters.id, requestParameters.addUsersDto, options).then((request) => request(axios, basePath));
  4900. },
  4901. /**
  4902. *
  4903. * @param {AlbumApiCreateAlbumRequest} requestParameters Request parameters.
  4904. * @param {*} [options] Override http request option.
  4905. * @throws {RequiredError}
  4906. */
  4907. createAlbum(requestParameters: AlbumApiCreateAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<AlbumResponseDto> {
  4908. return localVarFp.createAlbum(requestParameters.createAlbumDto, options).then((request) => request(axios, basePath));
  4909. },
  4910. /**
  4911. *
  4912. * @param {AlbumApiDeleteAlbumRequest} requestParameters Request parameters.
  4913. * @param {*} [options] Override http request option.
  4914. * @throws {RequiredError}
  4915. */
  4916. deleteAlbum(requestParameters: AlbumApiDeleteAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  4917. return localVarFp.deleteAlbum(requestParameters.id, options).then((request) => request(axios, basePath));
  4918. },
  4919. /**
  4920. *
  4921. * @param {*} [options] Override http request option.
  4922. * @throws {RequiredError}
  4923. */
  4924. getAlbumCount(options?: AxiosRequestConfig): AxiosPromise<AlbumCountResponseDto> {
  4925. return localVarFp.getAlbumCount(options).then((request) => request(axios, basePath));
  4926. },
  4927. /**
  4928. *
  4929. * @param {AlbumApiGetAlbumInfoRequest} requestParameters Request parameters.
  4930. * @param {*} [options] Override http request option.
  4931. * @throws {RequiredError}
  4932. */
  4933. getAlbumInfo(requestParameters: AlbumApiGetAlbumInfoRequest, options?: AxiosRequestConfig): AxiosPromise<AlbumResponseDto> {
  4934. return localVarFp.getAlbumInfo(requestParameters.id, requestParameters.withoutAssets, requestParameters.key, options).then((request) => request(axios, basePath));
  4935. },
  4936. /**
  4937. *
  4938. * @param {AlbumApiGetAllAlbumsRequest} requestParameters Request parameters.
  4939. * @param {*} [options] Override http request option.
  4940. * @throws {RequiredError}
  4941. */
  4942. getAllAlbums(requestParameters: AlbumApiGetAllAlbumsRequest = {}, options?: AxiosRequestConfig): AxiosPromise<Array<AlbumResponseDto>> {
  4943. return localVarFp.getAllAlbums(requestParameters.shared, requestParameters.assetId, options).then((request) => request(axios, basePath));
  4944. },
  4945. /**
  4946. *
  4947. * @param {AlbumApiRemoveAssetFromAlbumRequest} requestParameters Request parameters.
  4948. * @param {*} [options] Override http request option.
  4949. * @throws {RequiredError}
  4950. */
  4951. removeAssetFromAlbum(requestParameters: AlbumApiRemoveAssetFromAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<Array<BulkIdResponseDto>> {
  4952. return localVarFp.removeAssetFromAlbum(requestParameters.id, requestParameters.bulkIdsDto, options).then((request) => request(axios, basePath));
  4953. },
  4954. /**
  4955. *
  4956. * @param {AlbumApiRemoveUserFromAlbumRequest} requestParameters Request parameters.
  4957. * @param {*} [options] Override http request option.
  4958. * @throws {RequiredError}
  4959. */
  4960. removeUserFromAlbum(requestParameters: AlbumApiRemoveUserFromAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  4961. return localVarFp.removeUserFromAlbum(requestParameters.id, requestParameters.userId, options).then((request) => request(axios, basePath));
  4962. },
  4963. /**
  4964. *
  4965. * @param {AlbumApiUpdateAlbumInfoRequest} requestParameters Request parameters.
  4966. * @param {*} [options] Override http request option.
  4967. * @throws {RequiredError}
  4968. */
  4969. updateAlbumInfo(requestParameters: AlbumApiUpdateAlbumInfoRequest, options?: AxiosRequestConfig): AxiosPromise<AlbumResponseDto> {
  4970. return localVarFp.updateAlbumInfo(requestParameters.id, requestParameters.updateAlbumDto, options).then((request) => request(axios, basePath));
  4971. },
  4972. };
  4973. };
  4974. /**
  4975. * Request parameters for addAssetsToAlbum operation in AlbumApi.
  4976. * @export
  4977. * @interface AlbumApiAddAssetsToAlbumRequest
  4978. */
  4979. export interface AlbumApiAddAssetsToAlbumRequest {
  4980. /**
  4981. *
  4982. * @type {string}
  4983. * @memberof AlbumApiAddAssetsToAlbum
  4984. */
  4985. readonly id: string
  4986. /**
  4987. *
  4988. * @type {BulkIdsDto}
  4989. * @memberof AlbumApiAddAssetsToAlbum
  4990. */
  4991. readonly bulkIdsDto: BulkIdsDto
  4992. /**
  4993. *
  4994. * @type {string}
  4995. * @memberof AlbumApiAddAssetsToAlbum
  4996. */
  4997. readonly key?: string
  4998. }
  4999. /**
  5000. * Request parameters for addUsersToAlbum operation in AlbumApi.
  5001. * @export
  5002. * @interface AlbumApiAddUsersToAlbumRequest
  5003. */
  5004. export interface AlbumApiAddUsersToAlbumRequest {
  5005. /**
  5006. *
  5007. * @type {string}
  5008. * @memberof AlbumApiAddUsersToAlbum
  5009. */
  5010. readonly id: string
  5011. /**
  5012. *
  5013. * @type {AddUsersDto}
  5014. * @memberof AlbumApiAddUsersToAlbum
  5015. */
  5016. readonly addUsersDto: AddUsersDto
  5017. }
  5018. /**
  5019. * Request parameters for createAlbum operation in AlbumApi.
  5020. * @export
  5021. * @interface AlbumApiCreateAlbumRequest
  5022. */
  5023. export interface AlbumApiCreateAlbumRequest {
  5024. /**
  5025. *
  5026. * @type {CreateAlbumDto}
  5027. * @memberof AlbumApiCreateAlbum
  5028. */
  5029. readonly createAlbumDto: CreateAlbumDto
  5030. }
  5031. /**
  5032. * Request parameters for deleteAlbum operation in AlbumApi.
  5033. * @export
  5034. * @interface AlbumApiDeleteAlbumRequest
  5035. */
  5036. export interface AlbumApiDeleteAlbumRequest {
  5037. /**
  5038. *
  5039. * @type {string}
  5040. * @memberof AlbumApiDeleteAlbum
  5041. */
  5042. readonly id: string
  5043. }
  5044. /**
  5045. * Request parameters for getAlbumInfo operation in AlbumApi.
  5046. * @export
  5047. * @interface AlbumApiGetAlbumInfoRequest
  5048. */
  5049. export interface AlbumApiGetAlbumInfoRequest {
  5050. /**
  5051. *
  5052. * @type {string}
  5053. * @memberof AlbumApiGetAlbumInfo
  5054. */
  5055. readonly id: string
  5056. /**
  5057. *
  5058. * @type {boolean}
  5059. * @memberof AlbumApiGetAlbumInfo
  5060. */
  5061. readonly withoutAssets?: boolean
  5062. /**
  5063. *
  5064. * @type {string}
  5065. * @memberof AlbumApiGetAlbumInfo
  5066. */
  5067. readonly key?: string
  5068. }
  5069. /**
  5070. * Request parameters for getAllAlbums operation in AlbumApi.
  5071. * @export
  5072. * @interface AlbumApiGetAllAlbumsRequest
  5073. */
  5074. export interface AlbumApiGetAllAlbumsRequest {
  5075. /**
  5076. *
  5077. * @type {boolean}
  5078. * @memberof AlbumApiGetAllAlbums
  5079. */
  5080. readonly shared?: boolean
  5081. /**
  5082. * Only returns albums that contain the asset Ignores the shared parameter undefined: get all albums
  5083. * @type {string}
  5084. * @memberof AlbumApiGetAllAlbums
  5085. */
  5086. readonly assetId?: string
  5087. }
  5088. /**
  5089. * Request parameters for removeAssetFromAlbum operation in AlbumApi.
  5090. * @export
  5091. * @interface AlbumApiRemoveAssetFromAlbumRequest
  5092. */
  5093. export interface AlbumApiRemoveAssetFromAlbumRequest {
  5094. /**
  5095. *
  5096. * @type {string}
  5097. * @memberof AlbumApiRemoveAssetFromAlbum
  5098. */
  5099. readonly id: string
  5100. /**
  5101. *
  5102. * @type {BulkIdsDto}
  5103. * @memberof AlbumApiRemoveAssetFromAlbum
  5104. */
  5105. readonly bulkIdsDto: BulkIdsDto
  5106. }
  5107. /**
  5108. * Request parameters for removeUserFromAlbum operation in AlbumApi.
  5109. * @export
  5110. * @interface AlbumApiRemoveUserFromAlbumRequest
  5111. */
  5112. export interface AlbumApiRemoveUserFromAlbumRequest {
  5113. /**
  5114. *
  5115. * @type {string}
  5116. * @memberof AlbumApiRemoveUserFromAlbum
  5117. */
  5118. readonly id: string
  5119. /**
  5120. *
  5121. * @type {string}
  5122. * @memberof AlbumApiRemoveUserFromAlbum
  5123. */
  5124. readonly userId: string
  5125. }
  5126. /**
  5127. * Request parameters for updateAlbumInfo operation in AlbumApi.
  5128. * @export
  5129. * @interface AlbumApiUpdateAlbumInfoRequest
  5130. */
  5131. export interface AlbumApiUpdateAlbumInfoRequest {
  5132. /**
  5133. *
  5134. * @type {string}
  5135. * @memberof AlbumApiUpdateAlbumInfo
  5136. */
  5137. readonly id: string
  5138. /**
  5139. *
  5140. * @type {UpdateAlbumDto}
  5141. * @memberof AlbumApiUpdateAlbumInfo
  5142. */
  5143. readonly updateAlbumDto: UpdateAlbumDto
  5144. }
  5145. /**
  5146. * AlbumApi - object-oriented interface
  5147. * @export
  5148. * @class AlbumApi
  5149. * @extends {BaseAPI}
  5150. */
  5151. export class AlbumApi extends BaseAPI {
  5152. /**
  5153. *
  5154. * @param {AlbumApiAddAssetsToAlbumRequest} requestParameters Request parameters.
  5155. * @param {*} [options] Override http request option.
  5156. * @throws {RequiredError}
  5157. * @memberof AlbumApi
  5158. */
  5159. public addAssetsToAlbum(requestParameters: AlbumApiAddAssetsToAlbumRequest, options?: AxiosRequestConfig) {
  5160. return AlbumApiFp(this.configuration).addAssetsToAlbum(requestParameters.id, requestParameters.bulkIdsDto, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  5161. }
  5162. /**
  5163. *
  5164. * @param {AlbumApiAddUsersToAlbumRequest} requestParameters Request parameters.
  5165. * @param {*} [options] Override http request option.
  5166. * @throws {RequiredError}
  5167. * @memberof AlbumApi
  5168. */
  5169. public addUsersToAlbum(requestParameters: AlbumApiAddUsersToAlbumRequest, options?: AxiosRequestConfig) {
  5170. return AlbumApiFp(this.configuration).addUsersToAlbum(requestParameters.id, requestParameters.addUsersDto, options).then((request) => request(this.axios, this.basePath));
  5171. }
  5172. /**
  5173. *
  5174. * @param {AlbumApiCreateAlbumRequest} requestParameters Request parameters.
  5175. * @param {*} [options] Override http request option.
  5176. * @throws {RequiredError}
  5177. * @memberof AlbumApi
  5178. */
  5179. public createAlbum(requestParameters: AlbumApiCreateAlbumRequest, options?: AxiosRequestConfig) {
  5180. return AlbumApiFp(this.configuration).createAlbum(requestParameters.createAlbumDto, options).then((request) => request(this.axios, this.basePath));
  5181. }
  5182. /**
  5183. *
  5184. * @param {AlbumApiDeleteAlbumRequest} requestParameters Request parameters.
  5185. * @param {*} [options] Override http request option.
  5186. * @throws {RequiredError}
  5187. * @memberof AlbumApi
  5188. */
  5189. public deleteAlbum(requestParameters: AlbumApiDeleteAlbumRequest, options?: AxiosRequestConfig) {
  5190. return AlbumApiFp(this.configuration).deleteAlbum(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  5191. }
  5192. /**
  5193. *
  5194. * @param {*} [options] Override http request option.
  5195. * @throws {RequiredError}
  5196. * @memberof AlbumApi
  5197. */
  5198. public getAlbumCount(options?: AxiosRequestConfig) {
  5199. return AlbumApiFp(this.configuration).getAlbumCount(options).then((request) => request(this.axios, this.basePath));
  5200. }
  5201. /**
  5202. *
  5203. * @param {AlbumApiGetAlbumInfoRequest} requestParameters Request parameters.
  5204. * @param {*} [options] Override http request option.
  5205. * @throws {RequiredError}
  5206. * @memberof AlbumApi
  5207. */
  5208. public getAlbumInfo(requestParameters: AlbumApiGetAlbumInfoRequest, options?: AxiosRequestConfig) {
  5209. return AlbumApiFp(this.configuration).getAlbumInfo(requestParameters.id, requestParameters.withoutAssets, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  5210. }
  5211. /**
  5212. *
  5213. * @param {AlbumApiGetAllAlbumsRequest} requestParameters Request parameters.
  5214. * @param {*} [options] Override http request option.
  5215. * @throws {RequiredError}
  5216. * @memberof AlbumApi
  5217. */
  5218. public getAllAlbums(requestParameters: AlbumApiGetAllAlbumsRequest = {}, options?: AxiosRequestConfig) {
  5219. return AlbumApiFp(this.configuration).getAllAlbums(requestParameters.shared, requestParameters.assetId, options).then((request) => request(this.axios, this.basePath));
  5220. }
  5221. /**
  5222. *
  5223. * @param {AlbumApiRemoveAssetFromAlbumRequest} requestParameters Request parameters.
  5224. * @param {*} [options] Override http request option.
  5225. * @throws {RequiredError}
  5226. * @memberof AlbumApi
  5227. */
  5228. public removeAssetFromAlbum(requestParameters: AlbumApiRemoveAssetFromAlbumRequest, options?: AxiosRequestConfig) {
  5229. return AlbumApiFp(this.configuration).removeAssetFromAlbum(requestParameters.id, requestParameters.bulkIdsDto, options).then((request) => request(this.axios, this.basePath));
  5230. }
  5231. /**
  5232. *
  5233. * @param {AlbumApiRemoveUserFromAlbumRequest} requestParameters Request parameters.
  5234. * @param {*} [options] Override http request option.
  5235. * @throws {RequiredError}
  5236. * @memberof AlbumApi
  5237. */
  5238. public removeUserFromAlbum(requestParameters: AlbumApiRemoveUserFromAlbumRequest, options?: AxiosRequestConfig) {
  5239. return AlbumApiFp(this.configuration).removeUserFromAlbum(requestParameters.id, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
  5240. }
  5241. /**
  5242. *
  5243. * @param {AlbumApiUpdateAlbumInfoRequest} requestParameters Request parameters.
  5244. * @param {*} [options] Override http request option.
  5245. * @throws {RequiredError}
  5246. * @memberof AlbumApi
  5247. */
  5248. public updateAlbumInfo(requestParameters: AlbumApiUpdateAlbumInfoRequest, options?: AxiosRequestConfig) {
  5249. return AlbumApiFp(this.configuration).updateAlbumInfo(requestParameters.id, requestParameters.updateAlbumDto, options).then((request) => request(this.axios, this.basePath));
  5250. }
  5251. }
  5252. /**
  5253. * AssetApi - axios parameter creator
  5254. * @export
  5255. */
  5256. export const AssetApiAxiosParamCreator = function (configuration?: Configuration) {
  5257. return {
  5258. /**
  5259. * Checks if assets exist by checksums
  5260. * @param {AssetBulkUploadCheckDto} assetBulkUploadCheckDto
  5261. * @param {*} [options] Override http request option.
  5262. * @throws {RequiredError}
  5263. */
  5264. bulkUploadCheck: async (assetBulkUploadCheckDto: AssetBulkUploadCheckDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5265. // verify required parameter 'assetBulkUploadCheckDto' is not null or undefined
  5266. assertParamExists('bulkUploadCheck', 'assetBulkUploadCheckDto', assetBulkUploadCheckDto)
  5267. const localVarPath = `/asset/bulk-upload-check`;
  5268. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5269. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5270. let baseOptions;
  5271. if (configuration) {
  5272. baseOptions = configuration.baseOptions;
  5273. }
  5274. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  5275. const localVarHeaderParameter = {} as any;
  5276. const localVarQueryParameter = {} as any;
  5277. // authentication cookie required
  5278. // authentication api_key required
  5279. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5280. // authentication bearer required
  5281. // http bearer authentication required
  5282. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5283. localVarHeaderParameter['Content-Type'] = 'application/json';
  5284. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5285. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5286. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5287. localVarRequestOptions.data = serializeDataIfNeeded(assetBulkUploadCheckDto, localVarRequestOptions, configuration)
  5288. return {
  5289. url: toPathString(localVarUrlObj),
  5290. options: localVarRequestOptions,
  5291. };
  5292. },
  5293. /**
  5294. * Check duplicated asset before uploading - for Web upload used
  5295. * @param {CheckDuplicateAssetDto} checkDuplicateAssetDto
  5296. * @param {string} [key]
  5297. * @param {*} [options] Override http request option.
  5298. * @throws {RequiredError}
  5299. */
  5300. checkDuplicateAsset: async (checkDuplicateAssetDto: CheckDuplicateAssetDto, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5301. // verify required parameter 'checkDuplicateAssetDto' is not null or undefined
  5302. assertParamExists('checkDuplicateAsset', 'checkDuplicateAssetDto', checkDuplicateAssetDto)
  5303. const localVarPath = `/asset/check`;
  5304. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5305. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5306. let baseOptions;
  5307. if (configuration) {
  5308. baseOptions = configuration.baseOptions;
  5309. }
  5310. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  5311. const localVarHeaderParameter = {} as any;
  5312. const localVarQueryParameter = {} as any;
  5313. // authentication cookie required
  5314. // authentication api_key required
  5315. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5316. // authentication bearer required
  5317. // http bearer authentication required
  5318. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5319. if (key !== undefined) {
  5320. localVarQueryParameter['key'] = key;
  5321. }
  5322. localVarHeaderParameter['Content-Type'] = 'application/json';
  5323. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5324. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5325. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5326. localVarRequestOptions.data = serializeDataIfNeeded(checkDuplicateAssetDto, localVarRequestOptions, configuration)
  5327. return {
  5328. url: toPathString(localVarUrlObj),
  5329. options: localVarRequestOptions,
  5330. };
  5331. },
  5332. /**
  5333. * Checks if multiple assets exist on the server and returns all existing - used by background backup
  5334. * @param {CheckExistingAssetsDto} checkExistingAssetsDto
  5335. * @param {*} [options] Override http request option.
  5336. * @throws {RequiredError}
  5337. */
  5338. checkExistingAssets: async (checkExistingAssetsDto: CheckExistingAssetsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5339. // verify required parameter 'checkExistingAssetsDto' is not null or undefined
  5340. assertParamExists('checkExistingAssets', 'checkExistingAssetsDto', checkExistingAssetsDto)
  5341. const localVarPath = `/asset/exist`;
  5342. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5343. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5344. let baseOptions;
  5345. if (configuration) {
  5346. baseOptions = configuration.baseOptions;
  5347. }
  5348. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  5349. const localVarHeaderParameter = {} as any;
  5350. const localVarQueryParameter = {} as any;
  5351. // authentication cookie required
  5352. // authentication api_key required
  5353. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5354. // authentication bearer required
  5355. // http bearer authentication required
  5356. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5357. localVarHeaderParameter['Content-Type'] = 'application/json';
  5358. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5359. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5360. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5361. localVarRequestOptions.data = serializeDataIfNeeded(checkExistingAssetsDto, localVarRequestOptions, configuration)
  5362. return {
  5363. url: toPathString(localVarUrlObj),
  5364. options: localVarRequestOptions,
  5365. };
  5366. },
  5367. /**
  5368. *
  5369. * @param {AssetBulkDeleteDto} assetBulkDeleteDto
  5370. * @param {*} [options] Override http request option.
  5371. * @throws {RequiredError}
  5372. */
  5373. deleteAssets: async (assetBulkDeleteDto: AssetBulkDeleteDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5374. // verify required parameter 'assetBulkDeleteDto' is not null or undefined
  5375. assertParamExists('deleteAssets', 'assetBulkDeleteDto', assetBulkDeleteDto)
  5376. const localVarPath = `/asset`;
  5377. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5378. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5379. let baseOptions;
  5380. if (configuration) {
  5381. baseOptions = configuration.baseOptions;
  5382. }
  5383. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  5384. const localVarHeaderParameter = {} as any;
  5385. const localVarQueryParameter = {} as any;
  5386. // authentication cookie required
  5387. // authentication api_key required
  5388. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5389. // authentication bearer required
  5390. // http bearer authentication required
  5391. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5392. localVarHeaderParameter['Content-Type'] = 'application/json';
  5393. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5394. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5395. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5396. localVarRequestOptions.data = serializeDataIfNeeded(assetBulkDeleteDto, localVarRequestOptions, configuration)
  5397. return {
  5398. url: toPathString(localVarUrlObj),
  5399. options: localVarRequestOptions,
  5400. };
  5401. },
  5402. /**
  5403. *
  5404. * @param {AssetIdsDto} assetIdsDto
  5405. * @param {string} [key]
  5406. * @param {*} [options] Override http request option.
  5407. * @throws {RequiredError}
  5408. */
  5409. downloadArchive: async (assetIdsDto: AssetIdsDto, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5410. // verify required parameter 'assetIdsDto' is not null or undefined
  5411. assertParamExists('downloadArchive', 'assetIdsDto', assetIdsDto)
  5412. const localVarPath = `/asset/download/archive`;
  5413. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5414. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5415. let baseOptions;
  5416. if (configuration) {
  5417. baseOptions = configuration.baseOptions;
  5418. }
  5419. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  5420. const localVarHeaderParameter = {} as any;
  5421. const localVarQueryParameter = {} as any;
  5422. // authentication cookie required
  5423. // authentication api_key required
  5424. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5425. // authentication bearer required
  5426. // http bearer authentication required
  5427. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5428. if (key !== undefined) {
  5429. localVarQueryParameter['key'] = key;
  5430. }
  5431. localVarHeaderParameter['Content-Type'] = 'application/json';
  5432. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5433. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5434. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5435. localVarRequestOptions.data = serializeDataIfNeeded(assetIdsDto, localVarRequestOptions, configuration)
  5436. return {
  5437. url: toPathString(localVarUrlObj),
  5438. options: localVarRequestOptions,
  5439. };
  5440. },
  5441. /**
  5442. *
  5443. * @param {string} id
  5444. * @param {string} [key]
  5445. * @param {*} [options] Override http request option.
  5446. * @throws {RequiredError}
  5447. */
  5448. downloadFile: async (id: string, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5449. // verify required parameter 'id' is not null or undefined
  5450. assertParamExists('downloadFile', 'id', id)
  5451. const localVarPath = `/asset/download/{id}`
  5452. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  5453. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5454. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5455. let baseOptions;
  5456. if (configuration) {
  5457. baseOptions = configuration.baseOptions;
  5458. }
  5459. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  5460. const localVarHeaderParameter = {} as any;
  5461. const localVarQueryParameter = {} as any;
  5462. // authentication cookie required
  5463. // authentication api_key required
  5464. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5465. // authentication bearer required
  5466. // http bearer authentication required
  5467. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5468. if (key !== undefined) {
  5469. localVarQueryParameter['key'] = key;
  5470. }
  5471. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5472. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5473. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5474. return {
  5475. url: toPathString(localVarUrlObj),
  5476. options: localVarRequestOptions,
  5477. };
  5478. },
  5479. /**
  5480. *
  5481. * @param {*} [options] Override http request option.
  5482. * @throws {RequiredError}
  5483. */
  5484. emptyTrash: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5485. const localVarPath = `/asset/trash/empty`;
  5486. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5487. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5488. let baseOptions;
  5489. if (configuration) {
  5490. baseOptions = configuration.baseOptions;
  5491. }
  5492. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  5493. const localVarHeaderParameter = {} as any;
  5494. const localVarQueryParameter = {} as any;
  5495. // authentication cookie required
  5496. // authentication api_key required
  5497. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5498. // authentication bearer required
  5499. // http bearer authentication required
  5500. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5501. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5502. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5503. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5504. return {
  5505. url: toPathString(localVarUrlObj),
  5506. options: localVarRequestOptions,
  5507. };
  5508. },
  5509. /**
  5510. * Get all AssetEntity belong to the user
  5511. * @param {string} [userId]
  5512. * @param {boolean} [isFavorite]
  5513. * @param {boolean} [isArchived]
  5514. * @param {number} [skip]
  5515. * @param {string} [updatedAfter]
  5516. * @param {string} [ifNoneMatch] ETag of data already cached on the client
  5517. * @param {*} [options] Override http request option.
  5518. * @throws {RequiredError}
  5519. */
  5520. getAllAssets: async (userId?: string, isFavorite?: boolean, isArchived?: boolean, skip?: number, updatedAfter?: string, ifNoneMatch?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5521. const localVarPath = `/asset`;
  5522. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5523. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5524. let baseOptions;
  5525. if (configuration) {
  5526. baseOptions = configuration.baseOptions;
  5527. }
  5528. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5529. const localVarHeaderParameter = {} as any;
  5530. const localVarQueryParameter = {} as any;
  5531. // authentication cookie required
  5532. // authentication api_key required
  5533. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5534. // authentication bearer required
  5535. // http bearer authentication required
  5536. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5537. if (userId !== undefined) {
  5538. localVarQueryParameter['userId'] = userId;
  5539. }
  5540. if (isFavorite !== undefined) {
  5541. localVarQueryParameter['isFavorite'] = isFavorite;
  5542. }
  5543. if (isArchived !== undefined) {
  5544. localVarQueryParameter['isArchived'] = isArchived;
  5545. }
  5546. if (skip !== undefined) {
  5547. localVarQueryParameter['skip'] = skip;
  5548. }
  5549. if (updatedAfter !== undefined) {
  5550. localVarQueryParameter['updatedAfter'] = (updatedAfter as any instanceof Date) ?
  5551. (updatedAfter as any).toISOString() :
  5552. updatedAfter;
  5553. }
  5554. if (ifNoneMatch != null) {
  5555. localVarHeaderParameter['if-none-match'] = String(ifNoneMatch);
  5556. }
  5557. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5558. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5559. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5560. return {
  5561. url: toPathString(localVarUrlObj),
  5562. options: localVarRequestOptions,
  5563. };
  5564. },
  5565. /**
  5566. * Get a single asset\'s information
  5567. * @param {string} id
  5568. * @param {string} [key]
  5569. * @param {*} [options] Override http request option.
  5570. * @throws {RequiredError}
  5571. */
  5572. getAssetById: async (id: string, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5573. // verify required parameter 'id' is not null or undefined
  5574. assertParamExists('getAssetById', 'id', id)
  5575. const localVarPath = `/asset/assetById/{id}`
  5576. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  5577. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5578. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5579. let baseOptions;
  5580. if (configuration) {
  5581. baseOptions = configuration.baseOptions;
  5582. }
  5583. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5584. const localVarHeaderParameter = {} as any;
  5585. const localVarQueryParameter = {} as any;
  5586. // authentication cookie required
  5587. // authentication api_key required
  5588. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5589. // authentication bearer required
  5590. // http bearer authentication required
  5591. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5592. if (key !== undefined) {
  5593. localVarQueryParameter['key'] = key;
  5594. }
  5595. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5596. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5597. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5598. return {
  5599. url: toPathString(localVarUrlObj),
  5600. options: localVarRequestOptions,
  5601. };
  5602. },
  5603. /**
  5604. *
  5605. * @param {*} [options] Override http request option.
  5606. * @throws {RequiredError}
  5607. */
  5608. getAssetSearchTerms: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5609. const localVarPath = `/asset/search-terms`;
  5610. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5611. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5612. let baseOptions;
  5613. if (configuration) {
  5614. baseOptions = configuration.baseOptions;
  5615. }
  5616. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5617. const localVarHeaderParameter = {} as any;
  5618. const localVarQueryParameter = {} as any;
  5619. // authentication cookie required
  5620. // authentication api_key required
  5621. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5622. // authentication bearer required
  5623. // http bearer authentication required
  5624. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5625. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5626. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5627. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5628. return {
  5629. url: toPathString(localVarUrlObj),
  5630. options: localVarRequestOptions,
  5631. };
  5632. },
  5633. /**
  5634. *
  5635. * @param {boolean} [isArchived]
  5636. * @param {boolean} [isFavorite]
  5637. * @param {boolean} [isTrashed]
  5638. * @param {*} [options] Override http request option.
  5639. * @throws {RequiredError}
  5640. */
  5641. getAssetStats: async (isArchived?: boolean, isFavorite?: boolean, isTrashed?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5642. const localVarPath = `/asset/statistics`;
  5643. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5644. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5645. let baseOptions;
  5646. if (configuration) {
  5647. baseOptions = configuration.baseOptions;
  5648. }
  5649. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5650. const localVarHeaderParameter = {} as any;
  5651. const localVarQueryParameter = {} as any;
  5652. // authentication cookie required
  5653. // authentication api_key required
  5654. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5655. // authentication bearer required
  5656. // http bearer authentication required
  5657. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5658. if (isArchived !== undefined) {
  5659. localVarQueryParameter['isArchived'] = isArchived;
  5660. }
  5661. if (isFavorite !== undefined) {
  5662. localVarQueryParameter['isFavorite'] = isFavorite;
  5663. }
  5664. if (isTrashed !== undefined) {
  5665. localVarQueryParameter['isTrashed'] = isTrashed;
  5666. }
  5667. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5668. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5669. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5670. return {
  5671. url: toPathString(localVarUrlObj),
  5672. options: localVarRequestOptions,
  5673. };
  5674. },
  5675. /**
  5676. *
  5677. * @param {string} id
  5678. * @param {ThumbnailFormat} [format]
  5679. * @param {string} [key]
  5680. * @param {*} [options] Override http request option.
  5681. * @throws {RequiredError}
  5682. */
  5683. getAssetThumbnail: async (id: string, format?: ThumbnailFormat, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5684. // verify required parameter 'id' is not null or undefined
  5685. assertParamExists('getAssetThumbnail', 'id', id)
  5686. const localVarPath = `/asset/thumbnail/{id}`
  5687. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  5688. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5689. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5690. let baseOptions;
  5691. if (configuration) {
  5692. baseOptions = configuration.baseOptions;
  5693. }
  5694. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5695. const localVarHeaderParameter = {} as any;
  5696. const localVarQueryParameter = {} as any;
  5697. // authentication cookie required
  5698. // authentication api_key required
  5699. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5700. // authentication bearer required
  5701. // http bearer authentication required
  5702. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5703. if (format !== undefined) {
  5704. localVarQueryParameter['format'] = format;
  5705. }
  5706. if (key !== undefined) {
  5707. localVarQueryParameter['key'] = key;
  5708. }
  5709. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5710. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5711. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5712. return {
  5713. url: toPathString(localVarUrlObj),
  5714. options: localVarRequestOptions,
  5715. };
  5716. },
  5717. /**
  5718. *
  5719. * @param {TimeBucketSize} size
  5720. * @param {string} timeBucket
  5721. * @param {string} [userId]
  5722. * @param {string} [albumId]
  5723. * @param {string} [personId]
  5724. * @param {boolean} [isArchived]
  5725. * @param {boolean} [isFavorite]
  5726. * @param {boolean} [isTrashed]
  5727. * @param {string} [key]
  5728. * @param {*} [options] Override http request option.
  5729. * @throws {RequiredError}
  5730. */
  5731. getByTimeBucket: async (size: TimeBucketSize, timeBucket: string, userId?: string, albumId?: string, personId?: string, isArchived?: boolean, isFavorite?: boolean, isTrashed?: boolean, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5732. // verify required parameter 'size' is not null or undefined
  5733. assertParamExists('getByTimeBucket', 'size', size)
  5734. // verify required parameter 'timeBucket' is not null or undefined
  5735. assertParamExists('getByTimeBucket', 'timeBucket', timeBucket)
  5736. const localVarPath = `/asset/time-bucket`;
  5737. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5738. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5739. let baseOptions;
  5740. if (configuration) {
  5741. baseOptions = configuration.baseOptions;
  5742. }
  5743. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5744. const localVarHeaderParameter = {} as any;
  5745. const localVarQueryParameter = {} as any;
  5746. // authentication cookie required
  5747. // authentication api_key required
  5748. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5749. // authentication bearer required
  5750. // http bearer authentication required
  5751. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5752. if (size !== undefined) {
  5753. localVarQueryParameter['size'] = size;
  5754. }
  5755. if (userId !== undefined) {
  5756. localVarQueryParameter['userId'] = userId;
  5757. }
  5758. if (albumId !== undefined) {
  5759. localVarQueryParameter['albumId'] = albumId;
  5760. }
  5761. if (personId !== undefined) {
  5762. localVarQueryParameter['personId'] = personId;
  5763. }
  5764. if (isArchived !== undefined) {
  5765. localVarQueryParameter['isArchived'] = isArchived;
  5766. }
  5767. if (isFavorite !== undefined) {
  5768. localVarQueryParameter['isFavorite'] = isFavorite;
  5769. }
  5770. if (isTrashed !== undefined) {
  5771. localVarQueryParameter['isTrashed'] = isTrashed;
  5772. }
  5773. if (timeBucket !== undefined) {
  5774. localVarQueryParameter['timeBucket'] = timeBucket;
  5775. }
  5776. if (key !== undefined) {
  5777. localVarQueryParameter['key'] = key;
  5778. }
  5779. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5780. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5781. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5782. return {
  5783. url: toPathString(localVarUrlObj),
  5784. options: localVarRequestOptions,
  5785. };
  5786. },
  5787. /**
  5788. *
  5789. * @param {*} [options] Override http request option.
  5790. * @throws {RequiredError}
  5791. */
  5792. getCuratedLocations: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5793. const localVarPath = `/asset/curated-locations`;
  5794. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5795. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5796. let baseOptions;
  5797. if (configuration) {
  5798. baseOptions = configuration.baseOptions;
  5799. }
  5800. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5801. const localVarHeaderParameter = {} as any;
  5802. const localVarQueryParameter = {} as any;
  5803. // authentication cookie required
  5804. // authentication api_key required
  5805. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5806. // authentication bearer required
  5807. // http bearer authentication required
  5808. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5809. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5810. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5811. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5812. return {
  5813. url: toPathString(localVarUrlObj),
  5814. options: localVarRequestOptions,
  5815. };
  5816. },
  5817. /**
  5818. *
  5819. * @param {*} [options] Override http request option.
  5820. * @throws {RequiredError}
  5821. */
  5822. getCuratedObjects: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5823. const localVarPath = `/asset/curated-objects`;
  5824. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5825. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5826. let baseOptions;
  5827. if (configuration) {
  5828. baseOptions = configuration.baseOptions;
  5829. }
  5830. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5831. const localVarHeaderParameter = {} as any;
  5832. const localVarQueryParameter = {} as any;
  5833. // authentication cookie required
  5834. // authentication api_key required
  5835. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5836. // authentication bearer required
  5837. // http bearer authentication required
  5838. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5839. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5840. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5841. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5842. return {
  5843. url: toPathString(localVarUrlObj),
  5844. options: localVarRequestOptions,
  5845. };
  5846. },
  5847. /**
  5848. *
  5849. * @param {DownloadInfoDto} downloadInfoDto
  5850. * @param {string} [key]
  5851. * @param {*} [options] Override http request option.
  5852. * @throws {RequiredError}
  5853. */
  5854. getDownloadInfo: async (downloadInfoDto: DownloadInfoDto, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5855. // verify required parameter 'downloadInfoDto' is not null or undefined
  5856. assertParamExists('getDownloadInfo', 'downloadInfoDto', downloadInfoDto)
  5857. const localVarPath = `/asset/download/info`;
  5858. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5859. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5860. let baseOptions;
  5861. if (configuration) {
  5862. baseOptions = configuration.baseOptions;
  5863. }
  5864. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  5865. const localVarHeaderParameter = {} as any;
  5866. const localVarQueryParameter = {} as any;
  5867. // authentication cookie required
  5868. // authentication api_key required
  5869. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5870. // authentication bearer required
  5871. // http bearer authentication required
  5872. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5873. if (key !== undefined) {
  5874. localVarQueryParameter['key'] = key;
  5875. }
  5876. localVarHeaderParameter['Content-Type'] = 'application/json';
  5877. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5878. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5879. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5880. localVarRequestOptions.data = serializeDataIfNeeded(downloadInfoDto, localVarRequestOptions, configuration)
  5881. return {
  5882. url: toPathString(localVarUrlObj),
  5883. options: localVarRequestOptions,
  5884. };
  5885. },
  5886. /**
  5887. *
  5888. * @param {boolean} [isArchived]
  5889. * @param {boolean} [isFavorite]
  5890. * @param {string} [fileCreatedAfter]
  5891. * @param {string} [fileCreatedBefore]
  5892. * @param {*} [options] Override http request option.
  5893. * @throws {RequiredError}
  5894. */
  5895. getMapMarkers: async (isArchived?: boolean, isFavorite?: boolean, fileCreatedAfter?: string, fileCreatedBefore?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5896. const localVarPath = `/asset/map-marker`;
  5897. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5898. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5899. let baseOptions;
  5900. if (configuration) {
  5901. baseOptions = configuration.baseOptions;
  5902. }
  5903. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5904. const localVarHeaderParameter = {} as any;
  5905. const localVarQueryParameter = {} as any;
  5906. // authentication cookie required
  5907. // authentication api_key required
  5908. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5909. // authentication bearer required
  5910. // http bearer authentication required
  5911. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5912. if (isArchived !== undefined) {
  5913. localVarQueryParameter['isArchived'] = isArchived;
  5914. }
  5915. if (isFavorite !== undefined) {
  5916. localVarQueryParameter['isFavorite'] = isFavorite;
  5917. }
  5918. if (fileCreatedAfter !== undefined) {
  5919. localVarQueryParameter['fileCreatedAfter'] = (fileCreatedAfter as any instanceof Date) ?
  5920. (fileCreatedAfter as any).toISOString() :
  5921. fileCreatedAfter;
  5922. }
  5923. if (fileCreatedBefore !== undefined) {
  5924. localVarQueryParameter['fileCreatedBefore'] = (fileCreatedBefore as any instanceof Date) ?
  5925. (fileCreatedBefore as any).toISOString() :
  5926. fileCreatedBefore;
  5927. }
  5928. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5929. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5930. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5931. return {
  5932. url: toPathString(localVarUrlObj),
  5933. options: localVarRequestOptions,
  5934. };
  5935. },
  5936. /**
  5937. *
  5938. * @param {number} day
  5939. * @param {number} month
  5940. * @param {*} [options] Override http request option.
  5941. * @throws {RequiredError}
  5942. */
  5943. getMemoryLane: async (day: number, month: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5944. // verify required parameter 'day' is not null or undefined
  5945. assertParamExists('getMemoryLane', 'day', day)
  5946. // verify required parameter 'month' is not null or undefined
  5947. assertParamExists('getMemoryLane', 'month', month)
  5948. const localVarPath = `/asset/memory-lane`;
  5949. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5950. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5951. let baseOptions;
  5952. if (configuration) {
  5953. baseOptions = configuration.baseOptions;
  5954. }
  5955. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5956. const localVarHeaderParameter = {} as any;
  5957. const localVarQueryParameter = {} as any;
  5958. // authentication cookie required
  5959. // authentication api_key required
  5960. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5961. // authentication bearer required
  5962. // http bearer authentication required
  5963. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5964. if (day !== undefined) {
  5965. localVarQueryParameter['day'] = day;
  5966. }
  5967. if (month !== undefined) {
  5968. localVarQueryParameter['month'] = month;
  5969. }
  5970. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5971. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5972. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5973. return {
  5974. url: toPathString(localVarUrlObj),
  5975. options: localVarRequestOptions,
  5976. };
  5977. },
  5978. /**
  5979. *
  5980. * @param {number} [count]
  5981. * @param {*} [options] Override http request option.
  5982. * @throws {RequiredError}
  5983. */
  5984. getRandom: async (count?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5985. const localVarPath = `/asset/random`;
  5986. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5987. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5988. let baseOptions;
  5989. if (configuration) {
  5990. baseOptions = configuration.baseOptions;
  5991. }
  5992. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5993. const localVarHeaderParameter = {} as any;
  5994. const localVarQueryParameter = {} as any;
  5995. // authentication cookie required
  5996. // authentication api_key required
  5997. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5998. // authentication bearer required
  5999. // http bearer authentication required
  6000. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6001. if (count !== undefined) {
  6002. localVarQueryParameter['count'] = count;
  6003. }
  6004. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6005. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6006. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6007. return {
  6008. url: toPathString(localVarUrlObj),
  6009. options: localVarRequestOptions,
  6010. };
  6011. },
  6012. /**
  6013. *
  6014. * @param {TimeBucketSize} size
  6015. * @param {string} [userId]
  6016. * @param {string} [albumId]
  6017. * @param {string} [personId]
  6018. * @param {boolean} [isArchived]
  6019. * @param {boolean} [isFavorite]
  6020. * @param {boolean} [isTrashed]
  6021. * @param {string} [key]
  6022. * @param {*} [options] Override http request option.
  6023. * @throws {RequiredError}
  6024. */
  6025. getTimeBuckets: async (size: TimeBucketSize, userId?: string, albumId?: string, personId?: string, isArchived?: boolean, isFavorite?: boolean, isTrashed?: boolean, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6026. // verify required parameter 'size' is not null or undefined
  6027. assertParamExists('getTimeBuckets', 'size', size)
  6028. const localVarPath = `/asset/time-buckets`;
  6029. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6030. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6031. let baseOptions;
  6032. if (configuration) {
  6033. baseOptions = configuration.baseOptions;
  6034. }
  6035. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6036. const localVarHeaderParameter = {} as any;
  6037. const localVarQueryParameter = {} as any;
  6038. // authentication cookie required
  6039. // authentication api_key required
  6040. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6041. // authentication bearer required
  6042. // http bearer authentication required
  6043. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6044. if (size !== undefined) {
  6045. localVarQueryParameter['size'] = size;
  6046. }
  6047. if (userId !== undefined) {
  6048. localVarQueryParameter['userId'] = userId;
  6049. }
  6050. if (albumId !== undefined) {
  6051. localVarQueryParameter['albumId'] = albumId;
  6052. }
  6053. if (personId !== undefined) {
  6054. localVarQueryParameter['personId'] = personId;
  6055. }
  6056. if (isArchived !== undefined) {
  6057. localVarQueryParameter['isArchived'] = isArchived;
  6058. }
  6059. if (isFavorite !== undefined) {
  6060. localVarQueryParameter['isFavorite'] = isFavorite;
  6061. }
  6062. if (isTrashed !== undefined) {
  6063. localVarQueryParameter['isTrashed'] = isTrashed;
  6064. }
  6065. if (key !== undefined) {
  6066. localVarQueryParameter['key'] = key;
  6067. }
  6068. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6069. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6070. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6071. return {
  6072. url: toPathString(localVarUrlObj),
  6073. options: localVarRequestOptions,
  6074. };
  6075. },
  6076. /**
  6077. * Get all asset of a device that are in the database, ID only.
  6078. * @param {string} deviceId
  6079. * @param {*} [options] Override http request option.
  6080. * @throws {RequiredError}
  6081. */
  6082. getUserAssetsByDeviceId: async (deviceId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6083. // verify required parameter 'deviceId' is not null or undefined
  6084. assertParamExists('getUserAssetsByDeviceId', 'deviceId', deviceId)
  6085. const localVarPath = `/asset/{deviceId}`
  6086. .replace(`{${"deviceId"}}`, encodeURIComponent(String(deviceId)));
  6087. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6088. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6089. let baseOptions;
  6090. if (configuration) {
  6091. baseOptions = configuration.baseOptions;
  6092. }
  6093. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6094. const localVarHeaderParameter = {} as any;
  6095. const localVarQueryParameter = {} as any;
  6096. // authentication cookie required
  6097. // authentication api_key required
  6098. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6099. // authentication bearer required
  6100. // http bearer authentication required
  6101. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6102. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6103. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6104. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6105. return {
  6106. url: toPathString(localVarUrlObj),
  6107. options: localVarRequestOptions,
  6108. };
  6109. },
  6110. /**
  6111. *
  6112. * @param {ImportAssetDto} importAssetDto
  6113. * @param {*} [options] Override http request option.
  6114. * @throws {RequiredError}
  6115. */
  6116. importFile: async (importAssetDto: ImportAssetDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6117. // verify required parameter 'importAssetDto' is not null or undefined
  6118. assertParamExists('importFile', 'importAssetDto', importAssetDto)
  6119. const localVarPath = `/asset/import`;
  6120. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6121. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6122. let baseOptions;
  6123. if (configuration) {
  6124. baseOptions = configuration.baseOptions;
  6125. }
  6126. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6127. const localVarHeaderParameter = {} as any;
  6128. const localVarQueryParameter = {} as any;
  6129. // authentication cookie required
  6130. // authentication api_key required
  6131. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6132. // authentication bearer required
  6133. // http bearer authentication required
  6134. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6135. localVarHeaderParameter['Content-Type'] = 'application/json';
  6136. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6137. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6138. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6139. localVarRequestOptions.data = serializeDataIfNeeded(importAssetDto, localVarRequestOptions, configuration)
  6140. return {
  6141. url: toPathString(localVarUrlObj),
  6142. options: localVarRequestOptions,
  6143. };
  6144. },
  6145. /**
  6146. *
  6147. * @param {BulkIdsDto} bulkIdsDto
  6148. * @param {*} [options] Override http request option.
  6149. * @throws {RequiredError}
  6150. */
  6151. restoreAssets: async (bulkIdsDto: BulkIdsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6152. // verify required parameter 'bulkIdsDto' is not null or undefined
  6153. assertParamExists('restoreAssets', 'bulkIdsDto', bulkIdsDto)
  6154. const localVarPath = `/asset/restore`;
  6155. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6156. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6157. let baseOptions;
  6158. if (configuration) {
  6159. baseOptions = configuration.baseOptions;
  6160. }
  6161. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6162. const localVarHeaderParameter = {} as any;
  6163. const localVarQueryParameter = {} as any;
  6164. // authentication cookie required
  6165. // authentication api_key required
  6166. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6167. // authentication bearer required
  6168. // http bearer authentication required
  6169. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6170. localVarHeaderParameter['Content-Type'] = 'application/json';
  6171. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6172. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6173. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6174. localVarRequestOptions.data = serializeDataIfNeeded(bulkIdsDto, localVarRequestOptions, configuration)
  6175. return {
  6176. url: toPathString(localVarUrlObj),
  6177. options: localVarRequestOptions,
  6178. };
  6179. },
  6180. /**
  6181. *
  6182. * @param {*} [options] Override http request option.
  6183. * @throws {RequiredError}
  6184. */
  6185. restoreTrash: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6186. const localVarPath = `/asset/trash/restore`;
  6187. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6188. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6189. let baseOptions;
  6190. if (configuration) {
  6191. baseOptions = configuration.baseOptions;
  6192. }
  6193. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6194. const localVarHeaderParameter = {} as any;
  6195. const localVarQueryParameter = {} as any;
  6196. // authentication cookie required
  6197. // authentication api_key required
  6198. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6199. // authentication bearer required
  6200. // http bearer authentication required
  6201. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6202. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6203. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6204. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6205. return {
  6206. url: toPathString(localVarUrlObj),
  6207. options: localVarRequestOptions,
  6208. };
  6209. },
  6210. /**
  6211. *
  6212. * @param {AssetJobsDto} assetJobsDto
  6213. * @param {*} [options] Override http request option.
  6214. * @throws {RequiredError}
  6215. */
  6216. runAssetJobs: async (assetJobsDto: AssetJobsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6217. // verify required parameter 'assetJobsDto' is not null or undefined
  6218. assertParamExists('runAssetJobs', 'assetJobsDto', assetJobsDto)
  6219. const localVarPath = `/asset/jobs`;
  6220. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6221. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6222. let baseOptions;
  6223. if (configuration) {
  6224. baseOptions = configuration.baseOptions;
  6225. }
  6226. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6227. const localVarHeaderParameter = {} as any;
  6228. const localVarQueryParameter = {} as any;
  6229. // authentication cookie required
  6230. // authentication api_key required
  6231. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6232. // authentication bearer required
  6233. // http bearer authentication required
  6234. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6235. localVarHeaderParameter['Content-Type'] = 'application/json';
  6236. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6237. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6238. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6239. localVarRequestOptions.data = serializeDataIfNeeded(assetJobsDto, localVarRequestOptions, configuration)
  6240. return {
  6241. url: toPathString(localVarUrlObj),
  6242. options: localVarRequestOptions,
  6243. };
  6244. },
  6245. /**
  6246. *
  6247. * @param {SearchAssetDto} searchAssetDto
  6248. * @param {*} [options] Override http request option.
  6249. * @throws {RequiredError}
  6250. */
  6251. searchAsset: async (searchAssetDto: SearchAssetDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6252. // verify required parameter 'searchAssetDto' is not null or undefined
  6253. assertParamExists('searchAsset', 'searchAssetDto', searchAssetDto)
  6254. const localVarPath = `/asset/search`;
  6255. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6256. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6257. let baseOptions;
  6258. if (configuration) {
  6259. baseOptions = configuration.baseOptions;
  6260. }
  6261. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6262. const localVarHeaderParameter = {} as any;
  6263. const localVarQueryParameter = {} as any;
  6264. // authentication cookie required
  6265. // authentication api_key required
  6266. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6267. // authentication bearer required
  6268. // http bearer authentication required
  6269. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6270. localVarHeaderParameter['Content-Type'] = 'application/json';
  6271. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6272. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6273. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6274. localVarRequestOptions.data = serializeDataIfNeeded(searchAssetDto, localVarRequestOptions, configuration)
  6275. return {
  6276. url: toPathString(localVarUrlObj),
  6277. options: localVarRequestOptions,
  6278. };
  6279. },
  6280. /**
  6281. *
  6282. * @param {string} id
  6283. * @param {boolean} [isThumb]
  6284. * @param {boolean} [isWeb]
  6285. * @param {string} [key]
  6286. * @param {*} [options] Override http request option.
  6287. * @throws {RequiredError}
  6288. */
  6289. serveFile: async (id: string, isThumb?: boolean, isWeb?: boolean, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6290. // verify required parameter 'id' is not null or undefined
  6291. assertParamExists('serveFile', 'id', id)
  6292. const localVarPath = `/asset/file/{id}`
  6293. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  6294. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6295. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6296. let baseOptions;
  6297. if (configuration) {
  6298. baseOptions = configuration.baseOptions;
  6299. }
  6300. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6301. const localVarHeaderParameter = {} as any;
  6302. const localVarQueryParameter = {} as any;
  6303. // authentication cookie required
  6304. // authentication api_key required
  6305. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6306. // authentication bearer required
  6307. // http bearer authentication required
  6308. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6309. if (isThumb !== undefined) {
  6310. localVarQueryParameter['isThumb'] = isThumb;
  6311. }
  6312. if (isWeb !== undefined) {
  6313. localVarQueryParameter['isWeb'] = isWeb;
  6314. }
  6315. if (key !== undefined) {
  6316. localVarQueryParameter['key'] = key;
  6317. }
  6318. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6319. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6320. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6321. return {
  6322. url: toPathString(localVarUrlObj),
  6323. options: localVarRequestOptions,
  6324. };
  6325. },
  6326. /**
  6327. *
  6328. * @param {string} id
  6329. * @param {UpdateAssetDto} updateAssetDto
  6330. * @param {*} [options] Override http request option.
  6331. * @throws {RequiredError}
  6332. */
  6333. updateAsset: async (id: string, updateAssetDto: UpdateAssetDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6334. // verify required parameter 'id' is not null or undefined
  6335. assertParamExists('updateAsset', 'id', id)
  6336. // verify required parameter 'updateAssetDto' is not null or undefined
  6337. assertParamExists('updateAsset', 'updateAssetDto', updateAssetDto)
  6338. const localVarPath = `/asset/{id}`
  6339. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  6340. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6341. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6342. let baseOptions;
  6343. if (configuration) {
  6344. baseOptions = configuration.baseOptions;
  6345. }
  6346. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  6347. const localVarHeaderParameter = {} as any;
  6348. const localVarQueryParameter = {} as any;
  6349. // authentication cookie required
  6350. // authentication api_key required
  6351. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6352. // authentication bearer required
  6353. // http bearer authentication required
  6354. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6355. localVarHeaderParameter['Content-Type'] = 'application/json';
  6356. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6357. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6358. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6359. localVarRequestOptions.data = serializeDataIfNeeded(updateAssetDto, localVarRequestOptions, configuration)
  6360. return {
  6361. url: toPathString(localVarUrlObj),
  6362. options: localVarRequestOptions,
  6363. };
  6364. },
  6365. /**
  6366. *
  6367. * @param {AssetBulkUpdateDto} assetBulkUpdateDto
  6368. * @param {*} [options] Override http request option.
  6369. * @throws {RequiredError}
  6370. */
  6371. updateAssets: async (assetBulkUpdateDto: AssetBulkUpdateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6372. // verify required parameter 'assetBulkUpdateDto' is not null or undefined
  6373. assertParamExists('updateAssets', 'assetBulkUpdateDto', assetBulkUpdateDto)
  6374. const localVarPath = `/asset`;
  6375. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6376. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6377. let baseOptions;
  6378. if (configuration) {
  6379. baseOptions = configuration.baseOptions;
  6380. }
  6381. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  6382. const localVarHeaderParameter = {} as any;
  6383. const localVarQueryParameter = {} as any;
  6384. // authentication cookie required
  6385. // authentication api_key required
  6386. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6387. // authentication bearer required
  6388. // http bearer authentication required
  6389. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6390. localVarHeaderParameter['Content-Type'] = 'application/json';
  6391. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6392. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6393. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6394. localVarRequestOptions.data = serializeDataIfNeeded(assetBulkUpdateDto, localVarRequestOptions, configuration)
  6395. return {
  6396. url: toPathString(localVarUrlObj),
  6397. options: localVarRequestOptions,
  6398. };
  6399. },
  6400. /**
  6401. *
  6402. * @param {File} assetData
  6403. * @param {string} deviceAssetId
  6404. * @param {string} deviceId
  6405. * @param {string} fileCreatedAt
  6406. * @param {string} fileModifiedAt
  6407. * @param {boolean} isFavorite
  6408. * @param {string} [key]
  6409. * @param {string} [duration]
  6410. * @param {boolean} [isArchived]
  6411. * @param {boolean} [isExternal]
  6412. * @param {boolean} [isOffline]
  6413. * @param {boolean} [isReadOnly]
  6414. * @param {boolean} [isVisible]
  6415. * @param {string} [libraryId]
  6416. * @param {File} [livePhotoData]
  6417. * @param {File} [sidecarData]
  6418. * @param {*} [options] Override http request option.
  6419. * @throws {RequiredError}
  6420. */
  6421. uploadFile: async (assetData: File, deviceAssetId: string, deviceId: string, fileCreatedAt: string, fileModifiedAt: string, isFavorite: boolean, key?: string, duration?: string, isArchived?: boolean, isExternal?: boolean, isOffline?: boolean, isReadOnly?: boolean, isVisible?: boolean, libraryId?: string, livePhotoData?: File, sidecarData?: File, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6422. // verify required parameter 'assetData' is not null or undefined
  6423. assertParamExists('uploadFile', 'assetData', assetData)
  6424. // verify required parameter 'deviceAssetId' is not null or undefined
  6425. assertParamExists('uploadFile', 'deviceAssetId', deviceAssetId)
  6426. // verify required parameter 'deviceId' is not null or undefined
  6427. assertParamExists('uploadFile', 'deviceId', deviceId)
  6428. // verify required parameter 'fileCreatedAt' is not null or undefined
  6429. assertParamExists('uploadFile', 'fileCreatedAt', fileCreatedAt)
  6430. // verify required parameter 'fileModifiedAt' is not null or undefined
  6431. assertParamExists('uploadFile', 'fileModifiedAt', fileModifiedAt)
  6432. // verify required parameter 'isFavorite' is not null or undefined
  6433. assertParamExists('uploadFile', 'isFavorite', isFavorite)
  6434. const localVarPath = `/asset/upload`;
  6435. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6436. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6437. let baseOptions;
  6438. if (configuration) {
  6439. baseOptions = configuration.baseOptions;
  6440. }
  6441. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6442. const localVarHeaderParameter = {} as any;
  6443. const localVarQueryParameter = {} as any;
  6444. const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
  6445. // authentication cookie required
  6446. // authentication api_key required
  6447. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6448. // authentication bearer required
  6449. // http bearer authentication required
  6450. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6451. if (key !== undefined) {
  6452. localVarQueryParameter['key'] = key;
  6453. }
  6454. if (assetData !== undefined) {
  6455. localVarFormParams.append('assetData', assetData as any);
  6456. }
  6457. if (deviceAssetId !== undefined) {
  6458. localVarFormParams.append('deviceAssetId', deviceAssetId as any);
  6459. }
  6460. if (deviceId !== undefined) {
  6461. localVarFormParams.append('deviceId', deviceId as any);
  6462. }
  6463. if (duration !== undefined) {
  6464. localVarFormParams.append('duration', duration as any);
  6465. }
  6466. if (fileCreatedAt !== undefined) {
  6467. localVarFormParams.append('fileCreatedAt', fileCreatedAt as any);
  6468. }
  6469. if (fileModifiedAt !== undefined) {
  6470. localVarFormParams.append('fileModifiedAt', fileModifiedAt as any);
  6471. }
  6472. if (isArchived !== undefined) {
  6473. localVarFormParams.append('isArchived', isArchived as any);
  6474. }
  6475. if (isExternal !== undefined) {
  6476. localVarFormParams.append('isExternal', isExternal as any);
  6477. }
  6478. if (isFavorite !== undefined) {
  6479. localVarFormParams.append('isFavorite', isFavorite as any);
  6480. }
  6481. if (isOffline !== undefined) {
  6482. localVarFormParams.append('isOffline', isOffline as any);
  6483. }
  6484. if (isReadOnly !== undefined) {
  6485. localVarFormParams.append('isReadOnly', isReadOnly as any);
  6486. }
  6487. if (isVisible !== undefined) {
  6488. localVarFormParams.append('isVisible', isVisible as any);
  6489. }
  6490. if (libraryId !== undefined) {
  6491. localVarFormParams.append('libraryId', libraryId as any);
  6492. }
  6493. if (livePhotoData !== undefined) {
  6494. localVarFormParams.append('livePhotoData', livePhotoData as any);
  6495. }
  6496. if (sidecarData !== undefined) {
  6497. localVarFormParams.append('sidecarData', sidecarData as any);
  6498. }
  6499. localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
  6500. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6501. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6502. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6503. localVarRequestOptions.data = localVarFormParams;
  6504. return {
  6505. url: toPathString(localVarUrlObj),
  6506. options: localVarRequestOptions,
  6507. };
  6508. },
  6509. }
  6510. };
  6511. /**
  6512. * AssetApi - functional programming interface
  6513. * @export
  6514. */
  6515. export const AssetApiFp = function(configuration?: Configuration) {
  6516. const localVarAxiosParamCreator = AssetApiAxiosParamCreator(configuration)
  6517. return {
  6518. /**
  6519. * Checks if assets exist by checksums
  6520. * @param {AssetBulkUploadCheckDto} assetBulkUploadCheckDto
  6521. * @param {*} [options] Override http request option.
  6522. * @throws {RequiredError}
  6523. */
  6524. async bulkUploadCheck(assetBulkUploadCheckDto: AssetBulkUploadCheckDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetBulkUploadCheckResponseDto>> {
  6525. const localVarAxiosArgs = await localVarAxiosParamCreator.bulkUploadCheck(assetBulkUploadCheckDto, options);
  6526. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6527. },
  6528. /**
  6529. * Check duplicated asset before uploading - for Web upload used
  6530. * @param {CheckDuplicateAssetDto} checkDuplicateAssetDto
  6531. * @param {string} [key]
  6532. * @param {*} [options] Override http request option.
  6533. * @throws {RequiredError}
  6534. */
  6535. async checkDuplicateAsset(checkDuplicateAssetDto: CheckDuplicateAssetDto, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CheckDuplicateAssetResponseDto>> {
  6536. const localVarAxiosArgs = await localVarAxiosParamCreator.checkDuplicateAsset(checkDuplicateAssetDto, key, options);
  6537. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6538. },
  6539. /**
  6540. * Checks if multiple assets exist on the server and returns all existing - used by background backup
  6541. * @param {CheckExistingAssetsDto} checkExistingAssetsDto
  6542. * @param {*} [options] Override http request option.
  6543. * @throws {RequiredError}
  6544. */
  6545. async checkExistingAssets(checkExistingAssetsDto: CheckExistingAssetsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CheckExistingAssetsResponseDto>> {
  6546. const localVarAxiosArgs = await localVarAxiosParamCreator.checkExistingAssets(checkExistingAssetsDto, options);
  6547. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6548. },
  6549. /**
  6550. *
  6551. * @param {AssetBulkDeleteDto} assetBulkDeleteDto
  6552. * @param {*} [options] Override http request option.
  6553. * @throws {RequiredError}
  6554. */
  6555. async deleteAssets(assetBulkDeleteDto: AssetBulkDeleteDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  6556. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAssets(assetBulkDeleteDto, options);
  6557. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6558. },
  6559. /**
  6560. *
  6561. * @param {AssetIdsDto} assetIdsDto
  6562. * @param {string} [key]
  6563. * @param {*} [options] Override http request option.
  6564. * @throws {RequiredError}
  6565. */
  6566. async downloadArchive(assetIdsDto: AssetIdsDto, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
  6567. const localVarAxiosArgs = await localVarAxiosParamCreator.downloadArchive(assetIdsDto, key, options);
  6568. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6569. },
  6570. /**
  6571. *
  6572. * @param {string} id
  6573. * @param {string} [key]
  6574. * @param {*} [options] Override http request option.
  6575. * @throws {RequiredError}
  6576. */
  6577. async downloadFile(id: string, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
  6578. const localVarAxiosArgs = await localVarAxiosParamCreator.downloadFile(id, key, options);
  6579. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6580. },
  6581. /**
  6582. *
  6583. * @param {*} [options] Override http request option.
  6584. * @throws {RequiredError}
  6585. */
  6586. async emptyTrash(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  6587. const localVarAxiosArgs = await localVarAxiosParamCreator.emptyTrash(options);
  6588. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6589. },
  6590. /**
  6591. * Get all AssetEntity belong to the user
  6592. * @param {string} [userId]
  6593. * @param {boolean} [isFavorite]
  6594. * @param {boolean} [isArchived]
  6595. * @param {number} [skip]
  6596. * @param {string} [updatedAfter]
  6597. * @param {string} [ifNoneMatch] ETag of data already cached on the client
  6598. * @param {*} [options] Override http request option.
  6599. * @throws {RequiredError}
  6600. */
  6601. async getAllAssets(userId?: string, isFavorite?: boolean, isArchived?: boolean, skip?: number, updatedAfter?: string, ifNoneMatch?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  6602. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllAssets(userId, isFavorite, isArchived, skip, updatedAfter, ifNoneMatch, options);
  6603. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6604. },
  6605. /**
  6606. * Get a single asset\'s information
  6607. * @param {string} id
  6608. * @param {string} [key]
  6609. * @param {*} [options] Override http request option.
  6610. * @throws {RequiredError}
  6611. */
  6612. async getAssetById(id: string, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetResponseDto>> {
  6613. const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetById(id, key, options);
  6614. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6615. },
  6616. /**
  6617. *
  6618. * @param {*} [options] Override http request option.
  6619. * @throws {RequiredError}
  6620. */
  6621. async getAssetSearchTerms(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
  6622. const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetSearchTerms(options);
  6623. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6624. },
  6625. /**
  6626. *
  6627. * @param {boolean} [isArchived]
  6628. * @param {boolean} [isFavorite]
  6629. * @param {boolean} [isTrashed]
  6630. * @param {*} [options] Override http request option.
  6631. * @throws {RequiredError}
  6632. */
  6633. async getAssetStats(isArchived?: boolean, isFavorite?: boolean, isTrashed?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetStatsResponseDto>> {
  6634. const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetStats(isArchived, isFavorite, isTrashed, options);
  6635. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6636. },
  6637. /**
  6638. *
  6639. * @param {string} id
  6640. * @param {ThumbnailFormat} [format]
  6641. * @param {string} [key]
  6642. * @param {*} [options] Override http request option.
  6643. * @throws {RequiredError}
  6644. */
  6645. async getAssetThumbnail(id: string, format?: ThumbnailFormat, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
  6646. const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetThumbnail(id, format, key, options);
  6647. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6648. },
  6649. /**
  6650. *
  6651. * @param {TimeBucketSize} size
  6652. * @param {string} timeBucket
  6653. * @param {string} [userId]
  6654. * @param {string} [albumId]
  6655. * @param {string} [personId]
  6656. * @param {boolean} [isArchived]
  6657. * @param {boolean} [isFavorite]
  6658. * @param {boolean} [isTrashed]
  6659. * @param {string} [key]
  6660. * @param {*} [options] Override http request option.
  6661. * @throws {RequiredError}
  6662. */
  6663. async getByTimeBucket(size: TimeBucketSize, timeBucket: string, userId?: string, albumId?: string, personId?: string, isArchived?: boolean, isFavorite?: boolean, isTrashed?: boolean, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  6664. const localVarAxiosArgs = await localVarAxiosParamCreator.getByTimeBucket(size, timeBucket, userId, albumId, personId, isArchived, isFavorite, isTrashed, key, options);
  6665. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6666. },
  6667. /**
  6668. *
  6669. * @param {*} [options] Override http request option.
  6670. * @throws {RequiredError}
  6671. */
  6672. async getCuratedLocations(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CuratedLocationsResponseDto>>> {
  6673. const localVarAxiosArgs = await localVarAxiosParamCreator.getCuratedLocations(options);
  6674. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6675. },
  6676. /**
  6677. *
  6678. * @param {*} [options] Override http request option.
  6679. * @throws {RequiredError}
  6680. */
  6681. async getCuratedObjects(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CuratedObjectsResponseDto>>> {
  6682. const localVarAxiosArgs = await localVarAxiosParamCreator.getCuratedObjects(options);
  6683. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6684. },
  6685. /**
  6686. *
  6687. * @param {DownloadInfoDto} downloadInfoDto
  6688. * @param {string} [key]
  6689. * @param {*} [options] Override http request option.
  6690. * @throws {RequiredError}
  6691. */
  6692. async getDownloadInfo(downloadInfoDto: DownloadInfoDto, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DownloadResponseDto>> {
  6693. const localVarAxiosArgs = await localVarAxiosParamCreator.getDownloadInfo(downloadInfoDto, key, options);
  6694. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6695. },
  6696. /**
  6697. *
  6698. * @param {boolean} [isArchived]
  6699. * @param {boolean} [isFavorite]
  6700. * @param {string} [fileCreatedAfter]
  6701. * @param {string} [fileCreatedBefore]
  6702. * @param {*} [options] Override http request option.
  6703. * @throws {RequiredError}
  6704. */
  6705. async getMapMarkers(isArchived?: boolean, isFavorite?: boolean, fileCreatedAfter?: string, fileCreatedBefore?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<MapMarkerResponseDto>>> {
  6706. const localVarAxiosArgs = await localVarAxiosParamCreator.getMapMarkers(isArchived, isFavorite, fileCreatedAfter, fileCreatedBefore, options);
  6707. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6708. },
  6709. /**
  6710. *
  6711. * @param {number} day
  6712. * @param {number} month
  6713. * @param {*} [options] Override http request option.
  6714. * @throws {RequiredError}
  6715. */
  6716. async getMemoryLane(day: number, month: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<MemoryLaneResponseDto>>> {
  6717. const localVarAxiosArgs = await localVarAxiosParamCreator.getMemoryLane(day, month, options);
  6718. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6719. },
  6720. /**
  6721. *
  6722. * @param {number} [count]
  6723. * @param {*} [options] Override http request option.
  6724. * @throws {RequiredError}
  6725. */
  6726. async getRandom(count?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  6727. const localVarAxiosArgs = await localVarAxiosParamCreator.getRandom(count, options);
  6728. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6729. },
  6730. /**
  6731. *
  6732. * @param {TimeBucketSize} size
  6733. * @param {string} [userId]
  6734. * @param {string} [albumId]
  6735. * @param {string} [personId]
  6736. * @param {boolean} [isArchived]
  6737. * @param {boolean} [isFavorite]
  6738. * @param {boolean} [isTrashed]
  6739. * @param {string} [key]
  6740. * @param {*} [options] Override http request option.
  6741. * @throws {RequiredError}
  6742. */
  6743. async getTimeBuckets(size: TimeBucketSize, userId?: string, albumId?: string, personId?: string, isArchived?: boolean, isFavorite?: boolean, isTrashed?: boolean, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<TimeBucketResponseDto>>> {
  6744. const localVarAxiosArgs = await localVarAxiosParamCreator.getTimeBuckets(size, userId, albumId, personId, isArchived, isFavorite, isTrashed, key, options);
  6745. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6746. },
  6747. /**
  6748. * Get all asset of a device that are in the database, ID only.
  6749. * @param {string} deviceId
  6750. * @param {*} [options] Override http request option.
  6751. * @throws {RequiredError}
  6752. */
  6753. async getUserAssetsByDeviceId(deviceId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
  6754. const localVarAxiosArgs = await localVarAxiosParamCreator.getUserAssetsByDeviceId(deviceId, options);
  6755. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6756. },
  6757. /**
  6758. *
  6759. * @param {ImportAssetDto} importAssetDto
  6760. * @param {*} [options] Override http request option.
  6761. * @throws {RequiredError}
  6762. */
  6763. async importFile(importAssetDto: ImportAssetDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetFileUploadResponseDto>> {
  6764. const localVarAxiosArgs = await localVarAxiosParamCreator.importFile(importAssetDto, options);
  6765. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6766. },
  6767. /**
  6768. *
  6769. * @param {BulkIdsDto} bulkIdsDto
  6770. * @param {*} [options] Override http request option.
  6771. * @throws {RequiredError}
  6772. */
  6773. async restoreAssets(bulkIdsDto: BulkIdsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  6774. const localVarAxiosArgs = await localVarAxiosParamCreator.restoreAssets(bulkIdsDto, options);
  6775. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6776. },
  6777. /**
  6778. *
  6779. * @param {*} [options] Override http request option.
  6780. * @throws {RequiredError}
  6781. */
  6782. async restoreTrash(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  6783. const localVarAxiosArgs = await localVarAxiosParamCreator.restoreTrash(options);
  6784. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6785. },
  6786. /**
  6787. *
  6788. * @param {AssetJobsDto} assetJobsDto
  6789. * @param {*} [options] Override http request option.
  6790. * @throws {RequiredError}
  6791. */
  6792. async runAssetJobs(assetJobsDto: AssetJobsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  6793. const localVarAxiosArgs = await localVarAxiosParamCreator.runAssetJobs(assetJobsDto, options);
  6794. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6795. },
  6796. /**
  6797. *
  6798. * @param {SearchAssetDto} searchAssetDto
  6799. * @param {*} [options] Override http request option.
  6800. * @throws {RequiredError}
  6801. */
  6802. async searchAsset(searchAssetDto: SearchAssetDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  6803. const localVarAxiosArgs = await localVarAxiosParamCreator.searchAsset(searchAssetDto, options);
  6804. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6805. },
  6806. /**
  6807. *
  6808. * @param {string} id
  6809. * @param {boolean} [isThumb]
  6810. * @param {boolean} [isWeb]
  6811. * @param {string} [key]
  6812. * @param {*} [options] Override http request option.
  6813. * @throws {RequiredError}
  6814. */
  6815. async serveFile(id: string, isThumb?: boolean, isWeb?: boolean, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
  6816. const localVarAxiosArgs = await localVarAxiosParamCreator.serveFile(id, isThumb, isWeb, key, options);
  6817. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6818. },
  6819. /**
  6820. *
  6821. * @param {string} id
  6822. * @param {UpdateAssetDto} updateAssetDto
  6823. * @param {*} [options] Override http request option.
  6824. * @throws {RequiredError}
  6825. */
  6826. async updateAsset(id: string, updateAssetDto: UpdateAssetDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetResponseDto>> {
  6827. const localVarAxiosArgs = await localVarAxiosParamCreator.updateAsset(id, updateAssetDto, options);
  6828. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6829. },
  6830. /**
  6831. *
  6832. * @param {AssetBulkUpdateDto} assetBulkUpdateDto
  6833. * @param {*} [options] Override http request option.
  6834. * @throws {RequiredError}
  6835. */
  6836. async updateAssets(assetBulkUpdateDto: AssetBulkUpdateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  6837. const localVarAxiosArgs = await localVarAxiosParamCreator.updateAssets(assetBulkUpdateDto, options);
  6838. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6839. },
  6840. /**
  6841. *
  6842. * @param {File} assetData
  6843. * @param {string} deviceAssetId
  6844. * @param {string} deviceId
  6845. * @param {string} fileCreatedAt
  6846. * @param {string} fileModifiedAt
  6847. * @param {boolean} isFavorite
  6848. * @param {string} [key]
  6849. * @param {string} [duration]
  6850. * @param {boolean} [isArchived]
  6851. * @param {boolean} [isExternal]
  6852. * @param {boolean} [isOffline]
  6853. * @param {boolean} [isReadOnly]
  6854. * @param {boolean} [isVisible]
  6855. * @param {string} [libraryId]
  6856. * @param {File} [livePhotoData]
  6857. * @param {File} [sidecarData]
  6858. * @param {*} [options] Override http request option.
  6859. * @throws {RequiredError}
  6860. */
  6861. async uploadFile(assetData: File, deviceAssetId: string, deviceId: string, fileCreatedAt: string, fileModifiedAt: string, isFavorite: boolean, key?: string, duration?: string, isArchived?: boolean, isExternal?: boolean, isOffline?: boolean, isReadOnly?: boolean, isVisible?: boolean, libraryId?: string, livePhotoData?: File, sidecarData?: File, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetFileUploadResponseDto>> {
  6862. const localVarAxiosArgs = await localVarAxiosParamCreator.uploadFile(assetData, deviceAssetId, deviceId, fileCreatedAt, fileModifiedAt, isFavorite, key, duration, isArchived, isExternal, isOffline, isReadOnly, isVisible, libraryId, livePhotoData, sidecarData, options);
  6863. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6864. },
  6865. }
  6866. };
  6867. /**
  6868. * AssetApi - factory interface
  6869. * @export
  6870. */
  6871. export const AssetApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  6872. const localVarFp = AssetApiFp(configuration)
  6873. return {
  6874. /**
  6875. * Checks if assets exist by checksums
  6876. * @param {AssetApiBulkUploadCheckRequest} requestParameters Request parameters.
  6877. * @param {*} [options] Override http request option.
  6878. * @throws {RequiredError}
  6879. */
  6880. bulkUploadCheck(requestParameters: AssetApiBulkUploadCheckRequest, options?: AxiosRequestConfig): AxiosPromise<AssetBulkUploadCheckResponseDto> {
  6881. return localVarFp.bulkUploadCheck(requestParameters.assetBulkUploadCheckDto, options).then((request) => request(axios, basePath));
  6882. },
  6883. /**
  6884. * Check duplicated asset before uploading - for Web upload used
  6885. * @param {AssetApiCheckDuplicateAssetRequest} requestParameters Request parameters.
  6886. * @param {*} [options] Override http request option.
  6887. * @throws {RequiredError}
  6888. */
  6889. checkDuplicateAsset(requestParameters: AssetApiCheckDuplicateAssetRequest, options?: AxiosRequestConfig): AxiosPromise<CheckDuplicateAssetResponseDto> {
  6890. return localVarFp.checkDuplicateAsset(requestParameters.checkDuplicateAssetDto, requestParameters.key, options).then((request) => request(axios, basePath));
  6891. },
  6892. /**
  6893. * Checks if multiple assets exist on the server and returns all existing - used by background backup
  6894. * @param {AssetApiCheckExistingAssetsRequest} requestParameters Request parameters.
  6895. * @param {*} [options] Override http request option.
  6896. * @throws {RequiredError}
  6897. */
  6898. checkExistingAssets(requestParameters: AssetApiCheckExistingAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<CheckExistingAssetsResponseDto> {
  6899. return localVarFp.checkExistingAssets(requestParameters.checkExistingAssetsDto, options).then((request) => request(axios, basePath));
  6900. },
  6901. /**
  6902. *
  6903. * @param {AssetApiDeleteAssetsRequest} requestParameters Request parameters.
  6904. * @param {*} [options] Override http request option.
  6905. * @throws {RequiredError}
  6906. */
  6907. deleteAssets(requestParameters: AssetApiDeleteAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  6908. return localVarFp.deleteAssets(requestParameters.assetBulkDeleteDto, options).then((request) => request(axios, basePath));
  6909. },
  6910. /**
  6911. *
  6912. * @param {AssetApiDownloadArchiveRequest} requestParameters Request parameters.
  6913. * @param {*} [options] Override http request option.
  6914. * @throws {RequiredError}
  6915. */
  6916. downloadArchive(requestParameters: AssetApiDownloadArchiveRequest, options?: AxiosRequestConfig): AxiosPromise<File> {
  6917. return localVarFp.downloadArchive(requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(axios, basePath));
  6918. },
  6919. /**
  6920. *
  6921. * @param {AssetApiDownloadFileRequest} requestParameters Request parameters.
  6922. * @param {*} [options] Override http request option.
  6923. * @throws {RequiredError}
  6924. */
  6925. downloadFile(requestParameters: AssetApiDownloadFileRequest, options?: AxiosRequestConfig): AxiosPromise<File> {
  6926. return localVarFp.downloadFile(requestParameters.id, requestParameters.key, options).then((request) => request(axios, basePath));
  6927. },
  6928. /**
  6929. *
  6930. * @param {*} [options] Override http request option.
  6931. * @throws {RequiredError}
  6932. */
  6933. emptyTrash(options?: AxiosRequestConfig): AxiosPromise<void> {
  6934. return localVarFp.emptyTrash(options).then((request) => request(axios, basePath));
  6935. },
  6936. /**
  6937. * Get all AssetEntity belong to the user
  6938. * @param {AssetApiGetAllAssetsRequest} requestParameters Request parameters.
  6939. * @param {*} [options] Override http request option.
  6940. * @throws {RequiredError}
  6941. */
  6942. getAllAssets(requestParameters: AssetApiGetAllAssetsRequest = {}, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
  6943. return localVarFp.getAllAssets(requestParameters.userId, requestParameters.isFavorite, requestParameters.isArchived, requestParameters.skip, requestParameters.updatedAfter, requestParameters.ifNoneMatch, options).then((request) => request(axios, basePath));
  6944. },
  6945. /**
  6946. * Get a single asset\'s information
  6947. * @param {AssetApiGetAssetByIdRequest} requestParameters Request parameters.
  6948. * @param {*} [options] Override http request option.
  6949. * @throws {RequiredError}
  6950. */
  6951. getAssetById(requestParameters: AssetApiGetAssetByIdRequest, options?: AxiosRequestConfig): AxiosPromise<AssetResponseDto> {
  6952. return localVarFp.getAssetById(requestParameters.id, requestParameters.key, options).then((request) => request(axios, basePath));
  6953. },
  6954. /**
  6955. *
  6956. * @param {*} [options] Override http request option.
  6957. * @throws {RequiredError}
  6958. */
  6959. getAssetSearchTerms(options?: AxiosRequestConfig): AxiosPromise<Array<string>> {
  6960. return localVarFp.getAssetSearchTerms(options).then((request) => request(axios, basePath));
  6961. },
  6962. /**
  6963. *
  6964. * @param {AssetApiGetAssetStatsRequest} requestParameters Request parameters.
  6965. * @param {*} [options] Override http request option.
  6966. * @throws {RequiredError}
  6967. */
  6968. getAssetStats(requestParameters: AssetApiGetAssetStatsRequest = {}, options?: AxiosRequestConfig): AxiosPromise<AssetStatsResponseDto> {
  6969. return localVarFp.getAssetStats(requestParameters.isArchived, requestParameters.isFavorite, requestParameters.isTrashed, options).then((request) => request(axios, basePath));
  6970. },
  6971. /**
  6972. *
  6973. * @param {AssetApiGetAssetThumbnailRequest} requestParameters Request parameters.
  6974. * @param {*} [options] Override http request option.
  6975. * @throws {RequiredError}
  6976. */
  6977. getAssetThumbnail(requestParameters: AssetApiGetAssetThumbnailRequest, options?: AxiosRequestConfig): AxiosPromise<File> {
  6978. return localVarFp.getAssetThumbnail(requestParameters.id, requestParameters.format, requestParameters.key, options).then((request) => request(axios, basePath));
  6979. },
  6980. /**
  6981. *
  6982. * @param {AssetApiGetByTimeBucketRequest} requestParameters Request parameters.
  6983. * @param {*} [options] Override http request option.
  6984. * @throws {RequiredError}
  6985. */
  6986. getByTimeBucket(requestParameters: AssetApiGetByTimeBucketRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
  6987. return localVarFp.getByTimeBucket(requestParameters.size, requestParameters.timeBucket, requestParameters.userId, requestParameters.albumId, requestParameters.personId, requestParameters.isArchived, requestParameters.isFavorite, requestParameters.isTrashed, requestParameters.key, options).then((request) => request(axios, basePath));
  6988. },
  6989. /**
  6990. *
  6991. * @param {*} [options] Override http request option.
  6992. * @throws {RequiredError}
  6993. */
  6994. getCuratedLocations(options?: AxiosRequestConfig): AxiosPromise<Array<CuratedLocationsResponseDto>> {
  6995. return localVarFp.getCuratedLocations(options).then((request) => request(axios, basePath));
  6996. },
  6997. /**
  6998. *
  6999. * @param {*} [options] Override http request option.
  7000. * @throws {RequiredError}
  7001. */
  7002. getCuratedObjects(options?: AxiosRequestConfig): AxiosPromise<Array<CuratedObjectsResponseDto>> {
  7003. return localVarFp.getCuratedObjects(options).then((request) => request(axios, basePath));
  7004. },
  7005. /**
  7006. *
  7007. * @param {AssetApiGetDownloadInfoRequest} requestParameters Request parameters.
  7008. * @param {*} [options] Override http request option.
  7009. * @throws {RequiredError}
  7010. */
  7011. getDownloadInfo(requestParameters: AssetApiGetDownloadInfoRequest, options?: AxiosRequestConfig): AxiosPromise<DownloadResponseDto> {
  7012. return localVarFp.getDownloadInfo(requestParameters.downloadInfoDto, requestParameters.key, options).then((request) => request(axios, basePath));
  7013. },
  7014. /**
  7015. *
  7016. * @param {AssetApiGetMapMarkersRequest} requestParameters Request parameters.
  7017. * @param {*} [options] Override http request option.
  7018. * @throws {RequiredError}
  7019. */
  7020. getMapMarkers(requestParameters: AssetApiGetMapMarkersRequest = {}, options?: AxiosRequestConfig): AxiosPromise<Array<MapMarkerResponseDto>> {
  7021. return localVarFp.getMapMarkers(requestParameters.isArchived, requestParameters.isFavorite, requestParameters.fileCreatedAfter, requestParameters.fileCreatedBefore, options).then((request) => request(axios, basePath));
  7022. },
  7023. /**
  7024. *
  7025. * @param {AssetApiGetMemoryLaneRequest} requestParameters Request parameters.
  7026. * @param {*} [options] Override http request option.
  7027. * @throws {RequiredError}
  7028. */
  7029. getMemoryLane(requestParameters: AssetApiGetMemoryLaneRequest, options?: AxiosRequestConfig): AxiosPromise<Array<MemoryLaneResponseDto>> {
  7030. return localVarFp.getMemoryLane(requestParameters.day, requestParameters.month, options).then((request) => request(axios, basePath));
  7031. },
  7032. /**
  7033. *
  7034. * @param {AssetApiGetRandomRequest} requestParameters Request parameters.
  7035. * @param {*} [options] Override http request option.
  7036. * @throws {RequiredError}
  7037. */
  7038. getRandom(requestParameters: AssetApiGetRandomRequest = {}, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
  7039. return localVarFp.getRandom(requestParameters.count, options).then((request) => request(axios, basePath));
  7040. },
  7041. /**
  7042. *
  7043. * @param {AssetApiGetTimeBucketsRequest} requestParameters Request parameters.
  7044. * @param {*} [options] Override http request option.
  7045. * @throws {RequiredError}
  7046. */
  7047. getTimeBuckets(requestParameters: AssetApiGetTimeBucketsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<TimeBucketResponseDto>> {
  7048. return localVarFp.getTimeBuckets(requestParameters.size, requestParameters.userId, requestParameters.albumId, requestParameters.personId, requestParameters.isArchived, requestParameters.isFavorite, requestParameters.isTrashed, requestParameters.key, options).then((request) => request(axios, basePath));
  7049. },
  7050. /**
  7051. * Get all asset of a device that are in the database, ID only.
  7052. * @param {AssetApiGetUserAssetsByDeviceIdRequest} requestParameters Request parameters.
  7053. * @param {*} [options] Override http request option.
  7054. * @throws {RequiredError}
  7055. */
  7056. getUserAssetsByDeviceId(requestParameters: AssetApiGetUserAssetsByDeviceIdRequest, options?: AxiosRequestConfig): AxiosPromise<Array<string>> {
  7057. return localVarFp.getUserAssetsByDeviceId(requestParameters.deviceId, options).then((request) => request(axios, basePath));
  7058. },
  7059. /**
  7060. *
  7061. * @param {AssetApiImportFileRequest} requestParameters Request parameters.
  7062. * @param {*} [options] Override http request option.
  7063. * @throws {RequiredError}
  7064. */
  7065. importFile(requestParameters: AssetApiImportFileRequest, options?: AxiosRequestConfig): AxiosPromise<AssetFileUploadResponseDto> {
  7066. return localVarFp.importFile(requestParameters.importAssetDto, options).then((request) => request(axios, basePath));
  7067. },
  7068. /**
  7069. *
  7070. * @param {AssetApiRestoreAssetsRequest} requestParameters Request parameters.
  7071. * @param {*} [options] Override http request option.
  7072. * @throws {RequiredError}
  7073. */
  7074. restoreAssets(requestParameters: AssetApiRestoreAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  7075. return localVarFp.restoreAssets(requestParameters.bulkIdsDto, options).then((request) => request(axios, basePath));
  7076. },
  7077. /**
  7078. *
  7079. * @param {*} [options] Override http request option.
  7080. * @throws {RequiredError}
  7081. */
  7082. restoreTrash(options?: AxiosRequestConfig): AxiosPromise<void> {
  7083. return localVarFp.restoreTrash(options).then((request) => request(axios, basePath));
  7084. },
  7085. /**
  7086. *
  7087. * @param {AssetApiRunAssetJobsRequest} requestParameters Request parameters.
  7088. * @param {*} [options] Override http request option.
  7089. * @throws {RequiredError}
  7090. */
  7091. runAssetJobs(requestParameters: AssetApiRunAssetJobsRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  7092. return localVarFp.runAssetJobs(requestParameters.assetJobsDto, options).then((request) => request(axios, basePath));
  7093. },
  7094. /**
  7095. *
  7096. * @param {AssetApiSearchAssetRequest} requestParameters Request parameters.
  7097. * @param {*} [options] Override http request option.
  7098. * @throws {RequiredError}
  7099. */
  7100. searchAsset(requestParameters: AssetApiSearchAssetRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
  7101. return localVarFp.searchAsset(requestParameters.searchAssetDto, options).then((request) => request(axios, basePath));
  7102. },
  7103. /**
  7104. *
  7105. * @param {AssetApiServeFileRequest} requestParameters Request parameters.
  7106. * @param {*} [options] Override http request option.
  7107. * @throws {RequiredError}
  7108. */
  7109. serveFile(requestParameters: AssetApiServeFileRequest, options?: AxiosRequestConfig): AxiosPromise<File> {
  7110. return localVarFp.serveFile(requestParameters.id, requestParameters.isThumb, requestParameters.isWeb, requestParameters.key, options).then((request) => request(axios, basePath));
  7111. },
  7112. /**
  7113. *
  7114. * @param {AssetApiUpdateAssetRequest} requestParameters Request parameters.
  7115. * @param {*} [options] Override http request option.
  7116. * @throws {RequiredError}
  7117. */
  7118. updateAsset(requestParameters: AssetApiUpdateAssetRequest, options?: AxiosRequestConfig): AxiosPromise<AssetResponseDto> {
  7119. return localVarFp.updateAsset(requestParameters.id, requestParameters.updateAssetDto, options).then((request) => request(axios, basePath));
  7120. },
  7121. /**
  7122. *
  7123. * @param {AssetApiUpdateAssetsRequest} requestParameters Request parameters.
  7124. * @param {*} [options] Override http request option.
  7125. * @throws {RequiredError}
  7126. */
  7127. updateAssets(requestParameters: AssetApiUpdateAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  7128. return localVarFp.updateAssets(requestParameters.assetBulkUpdateDto, options).then((request) => request(axios, basePath));
  7129. },
  7130. /**
  7131. *
  7132. * @param {AssetApiUploadFileRequest} requestParameters Request parameters.
  7133. * @param {*} [options] Override http request option.
  7134. * @throws {RequiredError}
  7135. */
  7136. uploadFile(requestParameters: AssetApiUploadFileRequest, options?: AxiosRequestConfig): AxiosPromise<AssetFileUploadResponseDto> {
  7137. return localVarFp.uploadFile(requestParameters.assetData, requestParameters.deviceAssetId, requestParameters.deviceId, requestParameters.fileCreatedAt, requestParameters.fileModifiedAt, requestParameters.isFavorite, requestParameters.key, requestParameters.duration, requestParameters.isArchived, requestParameters.isExternal, requestParameters.isOffline, requestParameters.isReadOnly, requestParameters.isVisible, requestParameters.libraryId, requestParameters.livePhotoData, requestParameters.sidecarData, options).then((request) => request(axios, basePath));
  7138. },
  7139. };
  7140. };
  7141. /**
  7142. * Request parameters for bulkUploadCheck operation in AssetApi.
  7143. * @export
  7144. * @interface AssetApiBulkUploadCheckRequest
  7145. */
  7146. export interface AssetApiBulkUploadCheckRequest {
  7147. /**
  7148. *
  7149. * @type {AssetBulkUploadCheckDto}
  7150. * @memberof AssetApiBulkUploadCheck
  7151. */
  7152. readonly assetBulkUploadCheckDto: AssetBulkUploadCheckDto
  7153. }
  7154. /**
  7155. * Request parameters for checkDuplicateAsset operation in AssetApi.
  7156. * @export
  7157. * @interface AssetApiCheckDuplicateAssetRequest
  7158. */
  7159. export interface AssetApiCheckDuplicateAssetRequest {
  7160. /**
  7161. *
  7162. * @type {CheckDuplicateAssetDto}
  7163. * @memberof AssetApiCheckDuplicateAsset
  7164. */
  7165. readonly checkDuplicateAssetDto: CheckDuplicateAssetDto
  7166. /**
  7167. *
  7168. * @type {string}
  7169. * @memberof AssetApiCheckDuplicateAsset
  7170. */
  7171. readonly key?: string
  7172. }
  7173. /**
  7174. * Request parameters for checkExistingAssets operation in AssetApi.
  7175. * @export
  7176. * @interface AssetApiCheckExistingAssetsRequest
  7177. */
  7178. export interface AssetApiCheckExistingAssetsRequest {
  7179. /**
  7180. *
  7181. * @type {CheckExistingAssetsDto}
  7182. * @memberof AssetApiCheckExistingAssets
  7183. */
  7184. readonly checkExistingAssetsDto: CheckExistingAssetsDto
  7185. }
  7186. /**
  7187. * Request parameters for deleteAssets operation in AssetApi.
  7188. * @export
  7189. * @interface AssetApiDeleteAssetsRequest
  7190. */
  7191. export interface AssetApiDeleteAssetsRequest {
  7192. /**
  7193. *
  7194. * @type {AssetBulkDeleteDto}
  7195. * @memberof AssetApiDeleteAssets
  7196. */
  7197. readonly assetBulkDeleteDto: AssetBulkDeleteDto
  7198. }
  7199. /**
  7200. * Request parameters for downloadArchive operation in AssetApi.
  7201. * @export
  7202. * @interface AssetApiDownloadArchiveRequest
  7203. */
  7204. export interface AssetApiDownloadArchiveRequest {
  7205. /**
  7206. *
  7207. * @type {AssetIdsDto}
  7208. * @memberof AssetApiDownloadArchive
  7209. */
  7210. readonly assetIdsDto: AssetIdsDto
  7211. /**
  7212. *
  7213. * @type {string}
  7214. * @memberof AssetApiDownloadArchive
  7215. */
  7216. readonly key?: string
  7217. }
  7218. /**
  7219. * Request parameters for downloadFile operation in AssetApi.
  7220. * @export
  7221. * @interface AssetApiDownloadFileRequest
  7222. */
  7223. export interface AssetApiDownloadFileRequest {
  7224. /**
  7225. *
  7226. * @type {string}
  7227. * @memberof AssetApiDownloadFile
  7228. */
  7229. readonly id: string
  7230. /**
  7231. *
  7232. * @type {string}
  7233. * @memberof AssetApiDownloadFile
  7234. */
  7235. readonly key?: string
  7236. }
  7237. /**
  7238. * Request parameters for getAllAssets operation in AssetApi.
  7239. * @export
  7240. * @interface AssetApiGetAllAssetsRequest
  7241. */
  7242. export interface AssetApiGetAllAssetsRequest {
  7243. /**
  7244. *
  7245. * @type {string}
  7246. * @memberof AssetApiGetAllAssets
  7247. */
  7248. readonly userId?: string
  7249. /**
  7250. *
  7251. * @type {boolean}
  7252. * @memberof AssetApiGetAllAssets
  7253. */
  7254. readonly isFavorite?: boolean
  7255. /**
  7256. *
  7257. * @type {boolean}
  7258. * @memberof AssetApiGetAllAssets
  7259. */
  7260. readonly isArchived?: boolean
  7261. /**
  7262. *
  7263. * @type {number}
  7264. * @memberof AssetApiGetAllAssets
  7265. */
  7266. readonly skip?: number
  7267. /**
  7268. *
  7269. * @type {string}
  7270. * @memberof AssetApiGetAllAssets
  7271. */
  7272. readonly updatedAfter?: string
  7273. /**
  7274. * ETag of data already cached on the client
  7275. * @type {string}
  7276. * @memberof AssetApiGetAllAssets
  7277. */
  7278. readonly ifNoneMatch?: string
  7279. }
  7280. /**
  7281. * Request parameters for getAssetById operation in AssetApi.
  7282. * @export
  7283. * @interface AssetApiGetAssetByIdRequest
  7284. */
  7285. export interface AssetApiGetAssetByIdRequest {
  7286. /**
  7287. *
  7288. * @type {string}
  7289. * @memberof AssetApiGetAssetById
  7290. */
  7291. readonly id: string
  7292. /**
  7293. *
  7294. * @type {string}
  7295. * @memberof AssetApiGetAssetById
  7296. */
  7297. readonly key?: string
  7298. }
  7299. /**
  7300. * Request parameters for getAssetStats operation in AssetApi.
  7301. * @export
  7302. * @interface AssetApiGetAssetStatsRequest
  7303. */
  7304. export interface AssetApiGetAssetStatsRequest {
  7305. /**
  7306. *
  7307. * @type {boolean}
  7308. * @memberof AssetApiGetAssetStats
  7309. */
  7310. readonly isArchived?: boolean
  7311. /**
  7312. *
  7313. * @type {boolean}
  7314. * @memberof AssetApiGetAssetStats
  7315. */
  7316. readonly isFavorite?: boolean
  7317. /**
  7318. *
  7319. * @type {boolean}
  7320. * @memberof AssetApiGetAssetStats
  7321. */
  7322. readonly isTrashed?: boolean
  7323. }
  7324. /**
  7325. * Request parameters for getAssetThumbnail operation in AssetApi.
  7326. * @export
  7327. * @interface AssetApiGetAssetThumbnailRequest
  7328. */
  7329. export interface AssetApiGetAssetThumbnailRequest {
  7330. /**
  7331. *
  7332. * @type {string}
  7333. * @memberof AssetApiGetAssetThumbnail
  7334. */
  7335. readonly id: string
  7336. /**
  7337. *
  7338. * @type {ThumbnailFormat}
  7339. * @memberof AssetApiGetAssetThumbnail
  7340. */
  7341. readonly format?: ThumbnailFormat
  7342. /**
  7343. *
  7344. * @type {string}
  7345. * @memberof AssetApiGetAssetThumbnail
  7346. */
  7347. readonly key?: string
  7348. }
  7349. /**
  7350. * Request parameters for getByTimeBucket operation in AssetApi.
  7351. * @export
  7352. * @interface AssetApiGetByTimeBucketRequest
  7353. */
  7354. export interface AssetApiGetByTimeBucketRequest {
  7355. /**
  7356. *
  7357. * @type {TimeBucketSize}
  7358. * @memberof AssetApiGetByTimeBucket
  7359. */
  7360. readonly size: TimeBucketSize
  7361. /**
  7362. *
  7363. * @type {string}
  7364. * @memberof AssetApiGetByTimeBucket
  7365. */
  7366. readonly timeBucket: string
  7367. /**
  7368. *
  7369. * @type {string}
  7370. * @memberof AssetApiGetByTimeBucket
  7371. */
  7372. readonly userId?: string
  7373. /**
  7374. *
  7375. * @type {string}
  7376. * @memberof AssetApiGetByTimeBucket
  7377. */
  7378. readonly albumId?: string
  7379. /**
  7380. *
  7381. * @type {string}
  7382. * @memberof AssetApiGetByTimeBucket
  7383. */
  7384. readonly personId?: string
  7385. /**
  7386. *
  7387. * @type {boolean}
  7388. * @memberof AssetApiGetByTimeBucket
  7389. */
  7390. readonly isArchived?: boolean
  7391. /**
  7392. *
  7393. * @type {boolean}
  7394. * @memberof AssetApiGetByTimeBucket
  7395. */
  7396. readonly isFavorite?: boolean
  7397. /**
  7398. *
  7399. * @type {boolean}
  7400. * @memberof AssetApiGetByTimeBucket
  7401. */
  7402. readonly isTrashed?: boolean
  7403. /**
  7404. *
  7405. * @type {string}
  7406. * @memberof AssetApiGetByTimeBucket
  7407. */
  7408. readonly key?: string
  7409. }
  7410. /**
  7411. * Request parameters for getDownloadInfo operation in AssetApi.
  7412. * @export
  7413. * @interface AssetApiGetDownloadInfoRequest
  7414. */
  7415. export interface AssetApiGetDownloadInfoRequest {
  7416. /**
  7417. *
  7418. * @type {DownloadInfoDto}
  7419. * @memberof AssetApiGetDownloadInfo
  7420. */
  7421. readonly downloadInfoDto: DownloadInfoDto
  7422. /**
  7423. *
  7424. * @type {string}
  7425. * @memberof AssetApiGetDownloadInfo
  7426. */
  7427. readonly key?: string
  7428. }
  7429. /**
  7430. * Request parameters for getMapMarkers operation in AssetApi.
  7431. * @export
  7432. * @interface AssetApiGetMapMarkersRequest
  7433. */
  7434. export interface AssetApiGetMapMarkersRequest {
  7435. /**
  7436. *
  7437. * @type {boolean}
  7438. * @memberof AssetApiGetMapMarkers
  7439. */
  7440. readonly isArchived?: boolean
  7441. /**
  7442. *
  7443. * @type {boolean}
  7444. * @memberof AssetApiGetMapMarkers
  7445. */
  7446. readonly isFavorite?: boolean
  7447. /**
  7448. *
  7449. * @type {string}
  7450. * @memberof AssetApiGetMapMarkers
  7451. */
  7452. readonly fileCreatedAfter?: string
  7453. /**
  7454. *
  7455. * @type {string}
  7456. * @memberof AssetApiGetMapMarkers
  7457. */
  7458. readonly fileCreatedBefore?: string
  7459. }
  7460. /**
  7461. * Request parameters for getMemoryLane operation in AssetApi.
  7462. * @export
  7463. * @interface AssetApiGetMemoryLaneRequest
  7464. */
  7465. export interface AssetApiGetMemoryLaneRequest {
  7466. /**
  7467. *
  7468. * @type {number}
  7469. * @memberof AssetApiGetMemoryLane
  7470. */
  7471. readonly day: number
  7472. /**
  7473. *
  7474. * @type {number}
  7475. * @memberof AssetApiGetMemoryLane
  7476. */
  7477. readonly month: number
  7478. }
  7479. /**
  7480. * Request parameters for getRandom operation in AssetApi.
  7481. * @export
  7482. * @interface AssetApiGetRandomRequest
  7483. */
  7484. export interface AssetApiGetRandomRequest {
  7485. /**
  7486. *
  7487. * @type {number}
  7488. * @memberof AssetApiGetRandom
  7489. */
  7490. readonly count?: number
  7491. }
  7492. /**
  7493. * Request parameters for getTimeBuckets operation in AssetApi.
  7494. * @export
  7495. * @interface AssetApiGetTimeBucketsRequest
  7496. */
  7497. export interface AssetApiGetTimeBucketsRequest {
  7498. /**
  7499. *
  7500. * @type {TimeBucketSize}
  7501. * @memberof AssetApiGetTimeBuckets
  7502. */
  7503. readonly size: TimeBucketSize
  7504. /**
  7505. *
  7506. * @type {string}
  7507. * @memberof AssetApiGetTimeBuckets
  7508. */
  7509. readonly userId?: string
  7510. /**
  7511. *
  7512. * @type {string}
  7513. * @memberof AssetApiGetTimeBuckets
  7514. */
  7515. readonly albumId?: string
  7516. /**
  7517. *
  7518. * @type {string}
  7519. * @memberof AssetApiGetTimeBuckets
  7520. */
  7521. readonly personId?: string
  7522. /**
  7523. *
  7524. * @type {boolean}
  7525. * @memberof AssetApiGetTimeBuckets
  7526. */
  7527. readonly isArchived?: boolean
  7528. /**
  7529. *
  7530. * @type {boolean}
  7531. * @memberof AssetApiGetTimeBuckets
  7532. */
  7533. readonly isFavorite?: boolean
  7534. /**
  7535. *
  7536. * @type {boolean}
  7537. * @memberof AssetApiGetTimeBuckets
  7538. */
  7539. readonly isTrashed?: boolean
  7540. /**
  7541. *
  7542. * @type {string}
  7543. * @memberof AssetApiGetTimeBuckets
  7544. */
  7545. readonly key?: string
  7546. }
  7547. /**
  7548. * Request parameters for getUserAssetsByDeviceId operation in AssetApi.
  7549. * @export
  7550. * @interface AssetApiGetUserAssetsByDeviceIdRequest
  7551. */
  7552. export interface AssetApiGetUserAssetsByDeviceIdRequest {
  7553. /**
  7554. *
  7555. * @type {string}
  7556. * @memberof AssetApiGetUserAssetsByDeviceId
  7557. */
  7558. readonly deviceId: string
  7559. }
  7560. /**
  7561. * Request parameters for importFile operation in AssetApi.
  7562. * @export
  7563. * @interface AssetApiImportFileRequest
  7564. */
  7565. export interface AssetApiImportFileRequest {
  7566. /**
  7567. *
  7568. * @type {ImportAssetDto}
  7569. * @memberof AssetApiImportFile
  7570. */
  7571. readonly importAssetDto: ImportAssetDto
  7572. }
  7573. /**
  7574. * Request parameters for restoreAssets operation in AssetApi.
  7575. * @export
  7576. * @interface AssetApiRestoreAssetsRequest
  7577. */
  7578. export interface AssetApiRestoreAssetsRequest {
  7579. /**
  7580. *
  7581. * @type {BulkIdsDto}
  7582. * @memberof AssetApiRestoreAssets
  7583. */
  7584. readonly bulkIdsDto: BulkIdsDto
  7585. }
  7586. /**
  7587. * Request parameters for runAssetJobs operation in AssetApi.
  7588. * @export
  7589. * @interface AssetApiRunAssetJobsRequest
  7590. */
  7591. export interface AssetApiRunAssetJobsRequest {
  7592. /**
  7593. *
  7594. * @type {AssetJobsDto}
  7595. * @memberof AssetApiRunAssetJobs
  7596. */
  7597. readonly assetJobsDto: AssetJobsDto
  7598. }
  7599. /**
  7600. * Request parameters for searchAsset operation in AssetApi.
  7601. * @export
  7602. * @interface AssetApiSearchAssetRequest
  7603. */
  7604. export interface AssetApiSearchAssetRequest {
  7605. /**
  7606. *
  7607. * @type {SearchAssetDto}
  7608. * @memberof AssetApiSearchAsset
  7609. */
  7610. readonly searchAssetDto: SearchAssetDto
  7611. }
  7612. /**
  7613. * Request parameters for serveFile operation in AssetApi.
  7614. * @export
  7615. * @interface AssetApiServeFileRequest
  7616. */
  7617. export interface AssetApiServeFileRequest {
  7618. /**
  7619. *
  7620. * @type {string}
  7621. * @memberof AssetApiServeFile
  7622. */
  7623. readonly id: string
  7624. /**
  7625. *
  7626. * @type {boolean}
  7627. * @memberof AssetApiServeFile
  7628. */
  7629. readonly isThumb?: boolean
  7630. /**
  7631. *
  7632. * @type {boolean}
  7633. * @memberof AssetApiServeFile
  7634. */
  7635. readonly isWeb?: boolean
  7636. /**
  7637. *
  7638. * @type {string}
  7639. * @memberof AssetApiServeFile
  7640. */
  7641. readonly key?: string
  7642. }
  7643. /**
  7644. * Request parameters for updateAsset operation in AssetApi.
  7645. * @export
  7646. * @interface AssetApiUpdateAssetRequest
  7647. */
  7648. export interface AssetApiUpdateAssetRequest {
  7649. /**
  7650. *
  7651. * @type {string}
  7652. * @memberof AssetApiUpdateAsset
  7653. */
  7654. readonly id: string
  7655. /**
  7656. *
  7657. * @type {UpdateAssetDto}
  7658. * @memberof AssetApiUpdateAsset
  7659. */
  7660. readonly updateAssetDto: UpdateAssetDto
  7661. }
  7662. /**
  7663. * Request parameters for updateAssets operation in AssetApi.
  7664. * @export
  7665. * @interface AssetApiUpdateAssetsRequest
  7666. */
  7667. export interface AssetApiUpdateAssetsRequest {
  7668. /**
  7669. *
  7670. * @type {AssetBulkUpdateDto}
  7671. * @memberof AssetApiUpdateAssets
  7672. */
  7673. readonly assetBulkUpdateDto: AssetBulkUpdateDto
  7674. }
  7675. /**
  7676. * Request parameters for uploadFile operation in AssetApi.
  7677. * @export
  7678. * @interface AssetApiUploadFileRequest
  7679. */
  7680. export interface AssetApiUploadFileRequest {
  7681. /**
  7682. *
  7683. * @type {File}
  7684. * @memberof AssetApiUploadFile
  7685. */
  7686. readonly assetData: File
  7687. /**
  7688. *
  7689. * @type {string}
  7690. * @memberof AssetApiUploadFile
  7691. */
  7692. readonly deviceAssetId: string
  7693. /**
  7694. *
  7695. * @type {string}
  7696. * @memberof AssetApiUploadFile
  7697. */
  7698. readonly deviceId: string
  7699. /**
  7700. *
  7701. * @type {string}
  7702. * @memberof AssetApiUploadFile
  7703. */
  7704. readonly fileCreatedAt: string
  7705. /**
  7706. *
  7707. * @type {string}
  7708. * @memberof AssetApiUploadFile
  7709. */
  7710. readonly fileModifiedAt: string
  7711. /**
  7712. *
  7713. * @type {boolean}
  7714. * @memberof AssetApiUploadFile
  7715. */
  7716. readonly isFavorite: boolean
  7717. /**
  7718. *
  7719. * @type {string}
  7720. * @memberof AssetApiUploadFile
  7721. */
  7722. readonly key?: string
  7723. /**
  7724. *
  7725. * @type {string}
  7726. * @memberof AssetApiUploadFile
  7727. */
  7728. readonly duration?: string
  7729. /**
  7730. *
  7731. * @type {boolean}
  7732. * @memberof AssetApiUploadFile
  7733. */
  7734. readonly isArchived?: boolean
  7735. /**
  7736. *
  7737. * @type {boolean}
  7738. * @memberof AssetApiUploadFile
  7739. */
  7740. readonly isExternal?: boolean
  7741. /**
  7742. *
  7743. * @type {boolean}
  7744. * @memberof AssetApiUploadFile
  7745. */
  7746. readonly isOffline?: boolean
  7747. /**
  7748. *
  7749. * @type {boolean}
  7750. * @memberof AssetApiUploadFile
  7751. */
  7752. readonly isReadOnly?: boolean
  7753. /**
  7754. *
  7755. * @type {boolean}
  7756. * @memberof AssetApiUploadFile
  7757. */
  7758. readonly isVisible?: boolean
  7759. /**
  7760. *
  7761. * @type {string}
  7762. * @memberof AssetApiUploadFile
  7763. */
  7764. readonly libraryId?: string
  7765. /**
  7766. *
  7767. * @type {File}
  7768. * @memberof AssetApiUploadFile
  7769. */
  7770. readonly livePhotoData?: File
  7771. /**
  7772. *
  7773. * @type {File}
  7774. * @memberof AssetApiUploadFile
  7775. */
  7776. readonly sidecarData?: File
  7777. }
  7778. /**
  7779. * AssetApi - object-oriented interface
  7780. * @export
  7781. * @class AssetApi
  7782. * @extends {BaseAPI}
  7783. */
  7784. export class AssetApi extends BaseAPI {
  7785. /**
  7786. * Checks if assets exist by checksums
  7787. * @param {AssetApiBulkUploadCheckRequest} requestParameters Request parameters.
  7788. * @param {*} [options] Override http request option.
  7789. * @throws {RequiredError}
  7790. * @memberof AssetApi
  7791. */
  7792. public bulkUploadCheck(requestParameters: AssetApiBulkUploadCheckRequest, options?: AxiosRequestConfig) {
  7793. return AssetApiFp(this.configuration).bulkUploadCheck(requestParameters.assetBulkUploadCheckDto, options).then((request) => request(this.axios, this.basePath));
  7794. }
  7795. /**
  7796. * Check duplicated asset before uploading - for Web upload used
  7797. * @param {AssetApiCheckDuplicateAssetRequest} requestParameters Request parameters.
  7798. * @param {*} [options] Override http request option.
  7799. * @throws {RequiredError}
  7800. * @memberof AssetApi
  7801. */
  7802. public checkDuplicateAsset(requestParameters: AssetApiCheckDuplicateAssetRequest, options?: AxiosRequestConfig) {
  7803. return AssetApiFp(this.configuration).checkDuplicateAsset(requestParameters.checkDuplicateAssetDto, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  7804. }
  7805. /**
  7806. * Checks if multiple assets exist on the server and returns all existing - used by background backup
  7807. * @param {AssetApiCheckExistingAssetsRequest} requestParameters Request parameters.
  7808. * @param {*} [options] Override http request option.
  7809. * @throws {RequiredError}
  7810. * @memberof AssetApi
  7811. */
  7812. public checkExistingAssets(requestParameters: AssetApiCheckExistingAssetsRequest, options?: AxiosRequestConfig) {
  7813. return AssetApiFp(this.configuration).checkExistingAssets(requestParameters.checkExistingAssetsDto, options).then((request) => request(this.axios, this.basePath));
  7814. }
  7815. /**
  7816. *
  7817. * @param {AssetApiDeleteAssetsRequest} requestParameters Request parameters.
  7818. * @param {*} [options] Override http request option.
  7819. * @throws {RequiredError}
  7820. * @memberof AssetApi
  7821. */
  7822. public deleteAssets(requestParameters: AssetApiDeleteAssetsRequest, options?: AxiosRequestConfig) {
  7823. return AssetApiFp(this.configuration).deleteAssets(requestParameters.assetBulkDeleteDto, options).then((request) => request(this.axios, this.basePath));
  7824. }
  7825. /**
  7826. *
  7827. * @param {AssetApiDownloadArchiveRequest} requestParameters Request parameters.
  7828. * @param {*} [options] Override http request option.
  7829. * @throws {RequiredError}
  7830. * @memberof AssetApi
  7831. */
  7832. public downloadArchive(requestParameters: AssetApiDownloadArchiveRequest, options?: AxiosRequestConfig) {
  7833. return AssetApiFp(this.configuration).downloadArchive(requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  7834. }
  7835. /**
  7836. *
  7837. * @param {AssetApiDownloadFileRequest} requestParameters Request parameters.
  7838. * @param {*} [options] Override http request option.
  7839. * @throws {RequiredError}
  7840. * @memberof AssetApi
  7841. */
  7842. public downloadFile(requestParameters: AssetApiDownloadFileRequest, options?: AxiosRequestConfig) {
  7843. return AssetApiFp(this.configuration).downloadFile(requestParameters.id, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  7844. }
  7845. /**
  7846. *
  7847. * @param {*} [options] Override http request option.
  7848. * @throws {RequiredError}
  7849. * @memberof AssetApi
  7850. */
  7851. public emptyTrash(options?: AxiosRequestConfig) {
  7852. return AssetApiFp(this.configuration).emptyTrash(options).then((request) => request(this.axios, this.basePath));
  7853. }
  7854. /**
  7855. * Get all AssetEntity belong to the user
  7856. * @param {AssetApiGetAllAssetsRequest} requestParameters Request parameters.
  7857. * @param {*} [options] Override http request option.
  7858. * @throws {RequiredError}
  7859. * @memberof AssetApi
  7860. */
  7861. public getAllAssets(requestParameters: AssetApiGetAllAssetsRequest = {}, options?: AxiosRequestConfig) {
  7862. return AssetApiFp(this.configuration).getAllAssets(requestParameters.userId, requestParameters.isFavorite, requestParameters.isArchived, requestParameters.skip, requestParameters.updatedAfter, requestParameters.ifNoneMatch, options).then((request) => request(this.axios, this.basePath));
  7863. }
  7864. /**
  7865. * Get a single asset\'s information
  7866. * @param {AssetApiGetAssetByIdRequest} requestParameters Request parameters.
  7867. * @param {*} [options] Override http request option.
  7868. * @throws {RequiredError}
  7869. * @memberof AssetApi
  7870. */
  7871. public getAssetById(requestParameters: AssetApiGetAssetByIdRequest, options?: AxiosRequestConfig) {
  7872. return AssetApiFp(this.configuration).getAssetById(requestParameters.id, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  7873. }
  7874. /**
  7875. *
  7876. * @param {*} [options] Override http request option.
  7877. * @throws {RequiredError}
  7878. * @memberof AssetApi
  7879. */
  7880. public getAssetSearchTerms(options?: AxiosRequestConfig) {
  7881. return AssetApiFp(this.configuration).getAssetSearchTerms(options).then((request) => request(this.axios, this.basePath));
  7882. }
  7883. /**
  7884. *
  7885. * @param {AssetApiGetAssetStatsRequest} requestParameters Request parameters.
  7886. * @param {*} [options] Override http request option.
  7887. * @throws {RequiredError}
  7888. * @memberof AssetApi
  7889. */
  7890. public getAssetStats(requestParameters: AssetApiGetAssetStatsRequest = {}, options?: AxiosRequestConfig) {
  7891. return AssetApiFp(this.configuration).getAssetStats(requestParameters.isArchived, requestParameters.isFavorite, requestParameters.isTrashed, options).then((request) => request(this.axios, this.basePath));
  7892. }
  7893. /**
  7894. *
  7895. * @param {AssetApiGetAssetThumbnailRequest} requestParameters Request parameters.
  7896. * @param {*} [options] Override http request option.
  7897. * @throws {RequiredError}
  7898. * @memberof AssetApi
  7899. */
  7900. public getAssetThumbnail(requestParameters: AssetApiGetAssetThumbnailRequest, options?: AxiosRequestConfig) {
  7901. return AssetApiFp(this.configuration).getAssetThumbnail(requestParameters.id, requestParameters.format, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  7902. }
  7903. /**
  7904. *
  7905. * @param {AssetApiGetByTimeBucketRequest} requestParameters Request parameters.
  7906. * @param {*} [options] Override http request option.
  7907. * @throws {RequiredError}
  7908. * @memberof AssetApi
  7909. */
  7910. public getByTimeBucket(requestParameters: AssetApiGetByTimeBucketRequest, options?: AxiosRequestConfig) {
  7911. return AssetApiFp(this.configuration).getByTimeBucket(requestParameters.size, requestParameters.timeBucket, requestParameters.userId, requestParameters.albumId, requestParameters.personId, requestParameters.isArchived, requestParameters.isFavorite, requestParameters.isTrashed, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  7912. }
  7913. /**
  7914. *
  7915. * @param {*} [options] Override http request option.
  7916. * @throws {RequiredError}
  7917. * @memberof AssetApi
  7918. */
  7919. public getCuratedLocations(options?: AxiosRequestConfig) {
  7920. return AssetApiFp(this.configuration).getCuratedLocations(options).then((request) => request(this.axios, this.basePath));
  7921. }
  7922. /**
  7923. *
  7924. * @param {*} [options] Override http request option.
  7925. * @throws {RequiredError}
  7926. * @memberof AssetApi
  7927. */
  7928. public getCuratedObjects(options?: AxiosRequestConfig) {
  7929. return AssetApiFp(this.configuration).getCuratedObjects(options).then((request) => request(this.axios, this.basePath));
  7930. }
  7931. /**
  7932. *
  7933. * @param {AssetApiGetDownloadInfoRequest} requestParameters Request parameters.
  7934. * @param {*} [options] Override http request option.
  7935. * @throws {RequiredError}
  7936. * @memberof AssetApi
  7937. */
  7938. public getDownloadInfo(requestParameters: AssetApiGetDownloadInfoRequest, options?: AxiosRequestConfig) {
  7939. return AssetApiFp(this.configuration).getDownloadInfo(requestParameters.downloadInfoDto, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  7940. }
  7941. /**
  7942. *
  7943. * @param {AssetApiGetMapMarkersRequest} requestParameters Request parameters.
  7944. * @param {*} [options] Override http request option.
  7945. * @throws {RequiredError}
  7946. * @memberof AssetApi
  7947. */
  7948. public getMapMarkers(requestParameters: AssetApiGetMapMarkersRequest = {}, options?: AxiosRequestConfig) {
  7949. return AssetApiFp(this.configuration).getMapMarkers(requestParameters.isArchived, requestParameters.isFavorite, requestParameters.fileCreatedAfter, requestParameters.fileCreatedBefore, options).then((request) => request(this.axios, this.basePath));
  7950. }
  7951. /**
  7952. *
  7953. * @param {AssetApiGetMemoryLaneRequest} requestParameters Request parameters.
  7954. * @param {*} [options] Override http request option.
  7955. * @throws {RequiredError}
  7956. * @memberof AssetApi
  7957. */
  7958. public getMemoryLane(requestParameters: AssetApiGetMemoryLaneRequest, options?: AxiosRequestConfig) {
  7959. return AssetApiFp(this.configuration).getMemoryLane(requestParameters.day, requestParameters.month, options).then((request) => request(this.axios, this.basePath));
  7960. }
  7961. /**
  7962. *
  7963. * @param {AssetApiGetRandomRequest} requestParameters Request parameters.
  7964. * @param {*} [options] Override http request option.
  7965. * @throws {RequiredError}
  7966. * @memberof AssetApi
  7967. */
  7968. public getRandom(requestParameters: AssetApiGetRandomRequest = {}, options?: AxiosRequestConfig) {
  7969. return AssetApiFp(this.configuration).getRandom(requestParameters.count, options).then((request) => request(this.axios, this.basePath));
  7970. }
  7971. /**
  7972. *
  7973. * @param {AssetApiGetTimeBucketsRequest} requestParameters Request parameters.
  7974. * @param {*} [options] Override http request option.
  7975. * @throws {RequiredError}
  7976. * @memberof AssetApi
  7977. */
  7978. public getTimeBuckets(requestParameters: AssetApiGetTimeBucketsRequest, options?: AxiosRequestConfig) {
  7979. return AssetApiFp(this.configuration).getTimeBuckets(requestParameters.size, requestParameters.userId, requestParameters.albumId, requestParameters.personId, requestParameters.isArchived, requestParameters.isFavorite, requestParameters.isTrashed, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  7980. }
  7981. /**
  7982. * Get all asset of a device that are in the database, ID only.
  7983. * @param {AssetApiGetUserAssetsByDeviceIdRequest} requestParameters Request parameters.
  7984. * @param {*} [options] Override http request option.
  7985. * @throws {RequiredError}
  7986. * @memberof AssetApi
  7987. */
  7988. public getUserAssetsByDeviceId(requestParameters: AssetApiGetUserAssetsByDeviceIdRequest, options?: AxiosRequestConfig) {
  7989. return AssetApiFp(this.configuration).getUserAssetsByDeviceId(requestParameters.deviceId, options).then((request) => request(this.axios, this.basePath));
  7990. }
  7991. /**
  7992. *
  7993. * @param {AssetApiImportFileRequest} requestParameters Request parameters.
  7994. * @param {*} [options] Override http request option.
  7995. * @throws {RequiredError}
  7996. * @memberof AssetApi
  7997. */
  7998. public importFile(requestParameters: AssetApiImportFileRequest, options?: AxiosRequestConfig) {
  7999. return AssetApiFp(this.configuration).importFile(requestParameters.importAssetDto, options).then((request) => request(this.axios, this.basePath));
  8000. }
  8001. /**
  8002. *
  8003. * @param {AssetApiRestoreAssetsRequest} requestParameters Request parameters.
  8004. * @param {*} [options] Override http request option.
  8005. * @throws {RequiredError}
  8006. * @memberof AssetApi
  8007. */
  8008. public restoreAssets(requestParameters: AssetApiRestoreAssetsRequest, options?: AxiosRequestConfig) {
  8009. return AssetApiFp(this.configuration).restoreAssets(requestParameters.bulkIdsDto, options).then((request) => request(this.axios, this.basePath));
  8010. }
  8011. /**
  8012. *
  8013. * @param {*} [options] Override http request option.
  8014. * @throws {RequiredError}
  8015. * @memberof AssetApi
  8016. */
  8017. public restoreTrash(options?: AxiosRequestConfig) {
  8018. return AssetApiFp(this.configuration).restoreTrash(options).then((request) => request(this.axios, this.basePath));
  8019. }
  8020. /**
  8021. *
  8022. * @param {AssetApiRunAssetJobsRequest} requestParameters Request parameters.
  8023. * @param {*} [options] Override http request option.
  8024. * @throws {RequiredError}
  8025. * @memberof AssetApi
  8026. */
  8027. public runAssetJobs(requestParameters: AssetApiRunAssetJobsRequest, options?: AxiosRequestConfig) {
  8028. return AssetApiFp(this.configuration).runAssetJobs(requestParameters.assetJobsDto, options).then((request) => request(this.axios, this.basePath));
  8029. }
  8030. /**
  8031. *
  8032. * @param {AssetApiSearchAssetRequest} requestParameters Request parameters.
  8033. * @param {*} [options] Override http request option.
  8034. * @throws {RequiredError}
  8035. * @memberof AssetApi
  8036. */
  8037. public searchAsset(requestParameters: AssetApiSearchAssetRequest, options?: AxiosRequestConfig) {
  8038. return AssetApiFp(this.configuration).searchAsset(requestParameters.searchAssetDto, options).then((request) => request(this.axios, this.basePath));
  8039. }
  8040. /**
  8041. *
  8042. * @param {AssetApiServeFileRequest} requestParameters Request parameters.
  8043. * @param {*} [options] Override http request option.
  8044. * @throws {RequiredError}
  8045. * @memberof AssetApi
  8046. */
  8047. public serveFile(requestParameters: AssetApiServeFileRequest, options?: AxiosRequestConfig) {
  8048. return AssetApiFp(this.configuration).serveFile(requestParameters.id, requestParameters.isThumb, requestParameters.isWeb, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  8049. }
  8050. /**
  8051. *
  8052. * @param {AssetApiUpdateAssetRequest} requestParameters Request parameters.
  8053. * @param {*} [options] Override http request option.
  8054. * @throws {RequiredError}
  8055. * @memberof AssetApi
  8056. */
  8057. public updateAsset(requestParameters: AssetApiUpdateAssetRequest, options?: AxiosRequestConfig) {
  8058. return AssetApiFp(this.configuration).updateAsset(requestParameters.id, requestParameters.updateAssetDto, options).then((request) => request(this.axios, this.basePath));
  8059. }
  8060. /**
  8061. *
  8062. * @param {AssetApiUpdateAssetsRequest} requestParameters Request parameters.
  8063. * @param {*} [options] Override http request option.
  8064. * @throws {RequiredError}
  8065. * @memberof AssetApi
  8066. */
  8067. public updateAssets(requestParameters: AssetApiUpdateAssetsRequest, options?: AxiosRequestConfig) {
  8068. return AssetApiFp(this.configuration).updateAssets(requestParameters.assetBulkUpdateDto, options).then((request) => request(this.axios, this.basePath));
  8069. }
  8070. /**
  8071. *
  8072. * @param {AssetApiUploadFileRequest} requestParameters Request parameters.
  8073. * @param {*} [options] Override http request option.
  8074. * @throws {RequiredError}
  8075. * @memberof AssetApi
  8076. */
  8077. public uploadFile(requestParameters: AssetApiUploadFileRequest, options?: AxiosRequestConfig) {
  8078. return AssetApiFp(this.configuration).uploadFile(requestParameters.assetData, requestParameters.deviceAssetId, requestParameters.deviceId, requestParameters.fileCreatedAt, requestParameters.fileModifiedAt, requestParameters.isFavorite, requestParameters.key, requestParameters.duration, requestParameters.isArchived, requestParameters.isExternal, requestParameters.isOffline, requestParameters.isReadOnly, requestParameters.isVisible, requestParameters.libraryId, requestParameters.livePhotoData, requestParameters.sidecarData, options).then((request) => request(this.axios, this.basePath));
  8079. }
  8080. }
  8081. /**
  8082. * AuditApi - axios parameter creator
  8083. * @export
  8084. */
  8085. export const AuditApiAxiosParamCreator = function (configuration?: Configuration) {
  8086. return {
  8087. /**
  8088. *
  8089. * @param {EntityType} entityType
  8090. * @param {string} after
  8091. * @param {string} [userId]
  8092. * @param {*} [options] Override http request option.
  8093. * @throws {RequiredError}
  8094. */
  8095. getAuditDeletes: async (entityType: EntityType, after: string, userId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8096. // verify required parameter 'entityType' is not null or undefined
  8097. assertParamExists('getAuditDeletes', 'entityType', entityType)
  8098. // verify required parameter 'after' is not null or undefined
  8099. assertParamExists('getAuditDeletes', 'after', after)
  8100. const localVarPath = `/audit/deletes`;
  8101. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8102. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8103. let baseOptions;
  8104. if (configuration) {
  8105. baseOptions = configuration.baseOptions;
  8106. }
  8107. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  8108. const localVarHeaderParameter = {} as any;
  8109. const localVarQueryParameter = {} as any;
  8110. // authentication cookie required
  8111. // authentication api_key required
  8112. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8113. // authentication bearer required
  8114. // http bearer authentication required
  8115. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8116. if (entityType !== undefined) {
  8117. localVarQueryParameter['entityType'] = entityType;
  8118. }
  8119. if (userId !== undefined) {
  8120. localVarQueryParameter['userId'] = userId;
  8121. }
  8122. if (after !== undefined) {
  8123. localVarQueryParameter['after'] = (after as any instanceof Date) ?
  8124. (after as any).toISOString() :
  8125. after;
  8126. }
  8127. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8128. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8129. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8130. return {
  8131. url: toPathString(localVarUrlObj),
  8132. options: localVarRequestOptions,
  8133. };
  8134. },
  8135. }
  8136. };
  8137. /**
  8138. * AuditApi - functional programming interface
  8139. * @export
  8140. */
  8141. export const AuditApiFp = function(configuration?: Configuration) {
  8142. const localVarAxiosParamCreator = AuditApiAxiosParamCreator(configuration)
  8143. return {
  8144. /**
  8145. *
  8146. * @param {EntityType} entityType
  8147. * @param {string} after
  8148. * @param {string} [userId]
  8149. * @param {*} [options] Override http request option.
  8150. * @throws {RequiredError}
  8151. */
  8152. async getAuditDeletes(entityType: EntityType, after: string, userId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuditDeletesResponseDto>> {
  8153. const localVarAxiosArgs = await localVarAxiosParamCreator.getAuditDeletes(entityType, after, userId, options);
  8154. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8155. },
  8156. }
  8157. };
  8158. /**
  8159. * AuditApi - factory interface
  8160. * @export
  8161. */
  8162. export const AuditApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  8163. const localVarFp = AuditApiFp(configuration)
  8164. return {
  8165. /**
  8166. *
  8167. * @param {AuditApiGetAuditDeletesRequest} requestParameters Request parameters.
  8168. * @param {*} [options] Override http request option.
  8169. * @throws {RequiredError}
  8170. */
  8171. getAuditDeletes(requestParameters: AuditApiGetAuditDeletesRequest, options?: AxiosRequestConfig): AxiosPromise<AuditDeletesResponseDto> {
  8172. return localVarFp.getAuditDeletes(requestParameters.entityType, requestParameters.after, requestParameters.userId, options).then((request) => request(axios, basePath));
  8173. },
  8174. };
  8175. };
  8176. /**
  8177. * Request parameters for getAuditDeletes operation in AuditApi.
  8178. * @export
  8179. * @interface AuditApiGetAuditDeletesRequest
  8180. */
  8181. export interface AuditApiGetAuditDeletesRequest {
  8182. /**
  8183. *
  8184. * @type {EntityType}
  8185. * @memberof AuditApiGetAuditDeletes
  8186. */
  8187. readonly entityType: EntityType
  8188. /**
  8189. *
  8190. * @type {string}
  8191. * @memberof AuditApiGetAuditDeletes
  8192. */
  8193. readonly after: string
  8194. /**
  8195. *
  8196. * @type {string}
  8197. * @memberof AuditApiGetAuditDeletes
  8198. */
  8199. readonly userId?: string
  8200. }
  8201. /**
  8202. * AuditApi - object-oriented interface
  8203. * @export
  8204. * @class AuditApi
  8205. * @extends {BaseAPI}
  8206. */
  8207. export class AuditApi extends BaseAPI {
  8208. /**
  8209. *
  8210. * @param {AuditApiGetAuditDeletesRequest} requestParameters Request parameters.
  8211. * @param {*} [options] Override http request option.
  8212. * @throws {RequiredError}
  8213. * @memberof AuditApi
  8214. */
  8215. public getAuditDeletes(requestParameters: AuditApiGetAuditDeletesRequest, options?: AxiosRequestConfig) {
  8216. return AuditApiFp(this.configuration).getAuditDeletes(requestParameters.entityType, requestParameters.after, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
  8217. }
  8218. }
  8219. /**
  8220. * AuthenticationApi - axios parameter creator
  8221. * @export
  8222. */
  8223. export const AuthenticationApiAxiosParamCreator = function (configuration?: Configuration) {
  8224. return {
  8225. /**
  8226. *
  8227. * @param {SignUpDto} signUpDto
  8228. * @param {*} [options] Override http request option.
  8229. * @throws {RequiredError}
  8230. */
  8231. adminSignUp: async (signUpDto: SignUpDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8232. // verify required parameter 'signUpDto' is not null or undefined
  8233. assertParamExists('adminSignUp', 'signUpDto', signUpDto)
  8234. const localVarPath = `/auth/admin-sign-up`;
  8235. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8236. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8237. let baseOptions;
  8238. if (configuration) {
  8239. baseOptions = configuration.baseOptions;
  8240. }
  8241. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  8242. const localVarHeaderParameter = {} as any;
  8243. const localVarQueryParameter = {} as any;
  8244. localVarHeaderParameter['Content-Type'] = 'application/json';
  8245. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8246. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8247. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8248. localVarRequestOptions.data = serializeDataIfNeeded(signUpDto, localVarRequestOptions, configuration)
  8249. return {
  8250. url: toPathString(localVarUrlObj),
  8251. options: localVarRequestOptions,
  8252. };
  8253. },
  8254. /**
  8255. *
  8256. * @param {ChangePasswordDto} changePasswordDto
  8257. * @param {*} [options] Override http request option.
  8258. * @throws {RequiredError}
  8259. */
  8260. changePassword: async (changePasswordDto: ChangePasswordDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8261. // verify required parameter 'changePasswordDto' is not null or undefined
  8262. assertParamExists('changePassword', 'changePasswordDto', changePasswordDto)
  8263. const localVarPath = `/auth/change-password`;
  8264. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8265. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8266. let baseOptions;
  8267. if (configuration) {
  8268. baseOptions = configuration.baseOptions;
  8269. }
  8270. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  8271. const localVarHeaderParameter = {} as any;
  8272. const localVarQueryParameter = {} as any;
  8273. // authentication cookie required
  8274. // authentication api_key required
  8275. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8276. // authentication bearer required
  8277. // http bearer authentication required
  8278. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8279. localVarHeaderParameter['Content-Type'] = 'application/json';
  8280. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8281. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8282. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8283. localVarRequestOptions.data = serializeDataIfNeeded(changePasswordDto, localVarRequestOptions, configuration)
  8284. return {
  8285. url: toPathString(localVarUrlObj),
  8286. options: localVarRequestOptions,
  8287. };
  8288. },
  8289. /**
  8290. *
  8291. * @param {*} [options] Override http request option.
  8292. * @throws {RequiredError}
  8293. */
  8294. getAuthDevices: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8295. const localVarPath = `/auth/devices`;
  8296. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8297. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8298. let baseOptions;
  8299. if (configuration) {
  8300. baseOptions = configuration.baseOptions;
  8301. }
  8302. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  8303. const localVarHeaderParameter = {} as any;
  8304. const localVarQueryParameter = {} as any;
  8305. // authentication cookie required
  8306. // authentication api_key required
  8307. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8308. // authentication bearer required
  8309. // http bearer authentication required
  8310. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8311. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8312. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8313. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8314. return {
  8315. url: toPathString(localVarUrlObj),
  8316. options: localVarRequestOptions,
  8317. };
  8318. },
  8319. /**
  8320. *
  8321. * @param {LoginCredentialDto} loginCredentialDto
  8322. * @param {*} [options] Override http request option.
  8323. * @throws {RequiredError}
  8324. */
  8325. login: async (loginCredentialDto: LoginCredentialDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8326. // verify required parameter 'loginCredentialDto' is not null or undefined
  8327. assertParamExists('login', 'loginCredentialDto', loginCredentialDto)
  8328. const localVarPath = `/auth/login`;
  8329. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8330. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8331. let baseOptions;
  8332. if (configuration) {
  8333. baseOptions = configuration.baseOptions;
  8334. }
  8335. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  8336. const localVarHeaderParameter = {} as any;
  8337. const localVarQueryParameter = {} as any;
  8338. localVarHeaderParameter['Content-Type'] = 'application/json';
  8339. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8340. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8341. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8342. localVarRequestOptions.data = serializeDataIfNeeded(loginCredentialDto, localVarRequestOptions, configuration)
  8343. return {
  8344. url: toPathString(localVarUrlObj),
  8345. options: localVarRequestOptions,
  8346. };
  8347. },
  8348. /**
  8349. *
  8350. * @param {*} [options] Override http request option.
  8351. * @throws {RequiredError}
  8352. */
  8353. logout: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8354. const localVarPath = `/auth/logout`;
  8355. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8356. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8357. let baseOptions;
  8358. if (configuration) {
  8359. baseOptions = configuration.baseOptions;
  8360. }
  8361. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  8362. const localVarHeaderParameter = {} as any;
  8363. const localVarQueryParameter = {} as any;
  8364. // authentication cookie required
  8365. // authentication api_key required
  8366. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8367. // authentication bearer required
  8368. // http bearer authentication required
  8369. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8370. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8371. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8372. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8373. return {
  8374. url: toPathString(localVarUrlObj),
  8375. options: localVarRequestOptions,
  8376. };
  8377. },
  8378. /**
  8379. *
  8380. * @param {string} id
  8381. * @param {*} [options] Override http request option.
  8382. * @throws {RequiredError}
  8383. */
  8384. logoutAuthDevice: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8385. // verify required parameter 'id' is not null or undefined
  8386. assertParamExists('logoutAuthDevice', 'id', id)
  8387. const localVarPath = `/auth/devices/{id}`
  8388. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  8389. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8390. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8391. let baseOptions;
  8392. if (configuration) {
  8393. baseOptions = configuration.baseOptions;
  8394. }
  8395. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  8396. const localVarHeaderParameter = {} as any;
  8397. const localVarQueryParameter = {} as any;
  8398. // authentication cookie required
  8399. // authentication api_key required
  8400. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8401. // authentication bearer required
  8402. // http bearer authentication required
  8403. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8404. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8405. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8406. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8407. return {
  8408. url: toPathString(localVarUrlObj),
  8409. options: localVarRequestOptions,
  8410. };
  8411. },
  8412. /**
  8413. *
  8414. * @param {*} [options] Override http request option.
  8415. * @throws {RequiredError}
  8416. */
  8417. logoutAuthDevices: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8418. const localVarPath = `/auth/devices`;
  8419. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8420. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8421. let baseOptions;
  8422. if (configuration) {
  8423. baseOptions = configuration.baseOptions;
  8424. }
  8425. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  8426. const localVarHeaderParameter = {} as any;
  8427. const localVarQueryParameter = {} as any;
  8428. // authentication cookie required
  8429. // authentication api_key required
  8430. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8431. // authentication bearer required
  8432. // http bearer authentication required
  8433. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8434. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8435. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8436. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8437. return {
  8438. url: toPathString(localVarUrlObj),
  8439. options: localVarRequestOptions,
  8440. };
  8441. },
  8442. /**
  8443. *
  8444. * @param {*} [options] Override http request option.
  8445. * @throws {RequiredError}
  8446. */
  8447. validateAccessToken: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8448. const localVarPath = `/auth/validateToken`;
  8449. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8450. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8451. let baseOptions;
  8452. if (configuration) {
  8453. baseOptions = configuration.baseOptions;
  8454. }
  8455. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  8456. const localVarHeaderParameter = {} as any;
  8457. const localVarQueryParameter = {} as any;
  8458. // authentication cookie required
  8459. // authentication api_key required
  8460. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8461. // authentication bearer required
  8462. // http bearer authentication required
  8463. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8464. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8465. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8466. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8467. return {
  8468. url: toPathString(localVarUrlObj),
  8469. options: localVarRequestOptions,
  8470. };
  8471. },
  8472. }
  8473. };
  8474. /**
  8475. * AuthenticationApi - functional programming interface
  8476. * @export
  8477. */
  8478. export const AuthenticationApiFp = function(configuration?: Configuration) {
  8479. const localVarAxiosParamCreator = AuthenticationApiAxiosParamCreator(configuration)
  8480. return {
  8481. /**
  8482. *
  8483. * @param {SignUpDto} signUpDto
  8484. * @param {*} [options] Override http request option.
  8485. * @throws {RequiredError}
  8486. */
  8487. async adminSignUp(signUpDto: SignUpDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminSignupResponseDto>> {
  8488. const localVarAxiosArgs = await localVarAxiosParamCreator.adminSignUp(signUpDto, options);
  8489. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8490. },
  8491. /**
  8492. *
  8493. * @param {ChangePasswordDto} changePasswordDto
  8494. * @param {*} [options] Override http request option.
  8495. * @throws {RequiredError}
  8496. */
  8497. async changePassword(changePasswordDto: ChangePasswordDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  8498. const localVarAxiosArgs = await localVarAxiosParamCreator.changePassword(changePasswordDto, options);
  8499. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8500. },
  8501. /**
  8502. *
  8503. * @param {*} [options] Override http request option.
  8504. * @throws {RequiredError}
  8505. */
  8506. async getAuthDevices(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AuthDeviceResponseDto>>> {
  8507. const localVarAxiosArgs = await localVarAxiosParamCreator.getAuthDevices(options);
  8508. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8509. },
  8510. /**
  8511. *
  8512. * @param {LoginCredentialDto} loginCredentialDto
  8513. * @param {*} [options] Override http request option.
  8514. * @throws {RequiredError}
  8515. */
  8516. async login(loginCredentialDto: LoginCredentialDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoginResponseDto>> {
  8517. const localVarAxiosArgs = await localVarAxiosParamCreator.login(loginCredentialDto, options);
  8518. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8519. },
  8520. /**
  8521. *
  8522. * @param {*} [options] Override http request option.
  8523. * @throws {RequiredError}
  8524. */
  8525. async logout(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LogoutResponseDto>> {
  8526. const localVarAxiosArgs = await localVarAxiosParamCreator.logout(options);
  8527. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8528. },
  8529. /**
  8530. *
  8531. * @param {string} id
  8532. * @param {*} [options] Override http request option.
  8533. * @throws {RequiredError}
  8534. */
  8535. async logoutAuthDevice(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  8536. const localVarAxiosArgs = await localVarAxiosParamCreator.logoutAuthDevice(id, options);
  8537. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8538. },
  8539. /**
  8540. *
  8541. * @param {*} [options] Override http request option.
  8542. * @throws {RequiredError}
  8543. */
  8544. async logoutAuthDevices(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  8545. const localVarAxiosArgs = await localVarAxiosParamCreator.logoutAuthDevices(options);
  8546. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8547. },
  8548. /**
  8549. *
  8550. * @param {*} [options] Override http request option.
  8551. * @throws {RequiredError}
  8552. */
  8553. async validateAccessToken(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ValidateAccessTokenResponseDto>> {
  8554. const localVarAxiosArgs = await localVarAxiosParamCreator.validateAccessToken(options);
  8555. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8556. },
  8557. }
  8558. };
  8559. /**
  8560. * AuthenticationApi - factory interface
  8561. * @export
  8562. */
  8563. export const AuthenticationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  8564. const localVarFp = AuthenticationApiFp(configuration)
  8565. return {
  8566. /**
  8567. *
  8568. * @param {AuthenticationApiAdminSignUpRequest} requestParameters Request parameters.
  8569. * @param {*} [options] Override http request option.
  8570. * @throws {RequiredError}
  8571. */
  8572. adminSignUp(requestParameters: AuthenticationApiAdminSignUpRequest, options?: AxiosRequestConfig): AxiosPromise<AdminSignupResponseDto> {
  8573. return localVarFp.adminSignUp(requestParameters.signUpDto, options).then((request) => request(axios, basePath));
  8574. },
  8575. /**
  8576. *
  8577. * @param {AuthenticationApiChangePasswordRequest} requestParameters Request parameters.
  8578. * @param {*} [options] Override http request option.
  8579. * @throws {RequiredError}
  8580. */
  8581. changePassword(requestParameters: AuthenticationApiChangePasswordRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  8582. return localVarFp.changePassword(requestParameters.changePasswordDto, options).then((request) => request(axios, basePath));
  8583. },
  8584. /**
  8585. *
  8586. * @param {*} [options] Override http request option.
  8587. * @throws {RequiredError}
  8588. */
  8589. getAuthDevices(options?: AxiosRequestConfig): AxiosPromise<Array<AuthDeviceResponseDto>> {
  8590. return localVarFp.getAuthDevices(options).then((request) => request(axios, basePath));
  8591. },
  8592. /**
  8593. *
  8594. * @param {AuthenticationApiLoginRequest} requestParameters Request parameters.
  8595. * @param {*} [options] Override http request option.
  8596. * @throws {RequiredError}
  8597. */
  8598. login(requestParameters: AuthenticationApiLoginRequest, options?: AxiosRequestConfig): AxiosPromise<LoginResponseDto> {
  8599. return localVarFp.login(requestParameters.loginCredentialDto, options).then((request) => request(axios, basePath));
  8600. },
  8601. /**
  8602. *
  8603. * @param {*} [options] Override http request option.
  8604. * @throws {RequiredError}
  8605. */
  8606. logout(options?: AxiosRequestConfig): AxiosPromise<LogoutResponseDto> {
  8607. return localVarFp.logout(options).then((request) => request(axios, basePath));
  8608. },
  8609. /**
  8610. *
  8611. * @param {AuthenticationApiLogoutAuthDeviceRequest} requestParameters Request parameters.
  8612. * @param {*} [options] Override http request option.
  8613. * @throws {RequiredError}
  8614. */
  8615. logoutAuthDevice(requestParameters: AuthenticationApiLogoutAuthDeviceRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  8616. return localVarFp.logoutAuthDevice(requestParameters.id, options).then((request) => request(axios, basePath));
  8617. },
  8618. /**
  8619. *
  8620. * @param {*} [options] Override http request option.
  8621. * @throws {RequiredError}
  8622. */
  8623. logoutAuthDevices(options?: AxiosRequestConfig): AxiosPromise<void> {
  8624. return localVarFp.logoutAuthDevices(options).then((request) => request(axios, basePath));
  8625. },
  8626. /**
  8627. *
  8628. * @param {*} [options] Override http request option.
  8629. * @throws {RequiredError}
  8630. */
  8631. validateAccessToken(options?: AxiosRequestConfig): AxiosPromise<ValidateAccessTokenResponseDto> {
  8632. return localVarFp.validateAccessToken(options).then((request) => request(axios, basePath));
  8633. },
  8634. };
  8635. };
  8636. /**
  8637. * Request parameters for adminSignUp operation in AuthenticationApi.
  8638. * @export
  8639. * @interface AuthenticationApiAdminSignUpRequest
  8640. */
  8641. export interface AuthenticationApiAdminSignUpRequest {
  8642. /**
  8643. *
  8644. * @type {SignUpDto}
  8645. * @memberof AuthenticationApiAdminSignUp
  8646. */
  8647. readonly signUpDto: SignUpDto
  8648. }
  8649. /**
  8650. * Request parameters for changePassword operation in AuthenticationApi.
  8651. * @export
  8652. * @interface AuthenticationApiChangePasswordRequest
  8653. */
  8654. export interface AuthenticationApiChangePasswordRequest {
  8655. /**
  8656. *
  8657. * @type {ChangePasswordDto}
  8658. * @memberof AuthenticationApiChangePassword
  8659. */
  8660. readonly changePasswordDto: ChangePasswordDto
  8661. }
  8662. /**
  8663. * Request parameters for login operation in AuthenticationApi.
  8664. * @export
  8665. * @interface AuthenticationApiLoginRequest
  8666. */
  8667. export interface AuthenticationApiLoginRequest {
  8668. /**
  8669. *
  8670. * @type {LoginCredentialDto}
  8671. * @memberof AuthenticationApiLogin
  8672. */
  8673. readonly loginCredentialDto: LoginCredentialDto
  8674. }
  8675. /**
  8676. * Request parameters for logoutAuthDevice operation in AuthenticationApi.
  8677. * @export
  8678. * @interface AuthenticationApiLogoutAuthDeviceRequest
  8679. */
  8680. export interface AuthenticationApiLogoutAuthDeviceRequest {
  8681. /**
  8682. *
  8683. * @type {string}
  8684. * @memberof AuthenticationApiLogoutAuthDevice
  8685. */
  8686. readonly id: string
  8687. }
  8688. /**
  8689. * AuthenticationApi - object-oriented interface
  8690. * @export
  8691. * @class AuthenticationApi
  8692. * @extends {BaseAPI}
  8693. */
  8694. export class AuthenticationApi extends BaseAPI {
  8695. /**
  8696. *
  8697. * @param {AuthenticationApiAdminSignUpRequest} requestParameters Request parameters.
  8698. * @param {*} [options] Override http request option.
  8699. * @throws {RequiredError}
  8700. * @memberof AuthenticationApi
  8701. */
  8702. public adminSignUp(requestParameters: AuthenticationApiAdminSignUpRequest, options?: AxiosRequestConfig) {
  8703. return AuthenticationApiFp(this.configuration).adminSignUp(requestParameters.signUpDto, options).then((request) => request(this.axios, this.basePath));
  8704. }
  8705. /**
  8706. *
  8707. * @param {AuthenticationApiChangePasswordRequest} requestParameters Request parameters.
  8708. * @param {*} [options] Override http request option.
  8709. * @throws {RequiredError}
  8710. * @memberof AuthenticationApi
  8711. */
  8712. public changePassword(requestParameters: AuthenticationApiChangePasswordRequest, options?: AxiosRequestConfig) {
  8713. return AuthenticationApiFp(this.configuration).changePassword(requestParameters.changePasswordDto, options).then((request) => request(this.axios, this.basePath));
  8714. }
  8715. /**
  8716. *
  8717. * @param {*} [options] Override http request option.
  8718. * @throws {RequiredError}
  8719. * @memberof AuthenticationApi
  8720. */
  8721. public getAuthDevices(options?: AxiosRequestConfig) {
  8722. return AuthenticationApiFp(this.configuration).getAuthDevices(options).then((request) => request(this.axios, this.basePath));
  8723. }
  8724. /**
  8725. *
  8726. * @param {AuthenticationApiLoginRequest} requestParameters Request parameters.
  8727. * @param {*} [options] Override http request option.
  8728. * @throws {RequiredError}
  8729. * @memberof AuthenticationApi
  8730. */
  8731. public login(requestParameters: AuthenticationApiLoginRequest, options?: AxiosRequestConfig) {
  8732. return AuthenticationApiFp(this.configuration).login(requestParameters.loginCredentialDto, options).then((request) => request(this.axios, this.basePath));
  8733. }
  8734. /**
  8735. *
  8736. * @param {*} [options] Override http request option.
  8737. * @throws {RequiredError}
  8738. * @memberof AuthenticationApi
  8739. */
  8740. public logout(options?: AxiosRequestConfig) {
  8741. return AuthenticationApiFp(this.configuration).logout(options).then((request) => request(this.axios, this.basePath));
  8742. }
  8743. /**
  8744. *
  8745. * @param {AuthenticationApiLogoutAuthDeviceRequest} requestParameters Request parameters.
  8746. * @param {*} [options] Override http request option.
  8747. * @throws {RequiredError}
  8748. * @memberof AuthenticationApi
  8749. */
  8750. public logoutAuthDevice(requestParameters: AuthenticationApiLogoutAuthDeviceRequest, options?: AxiosRequestConfig) {
  8751. return AuthenticationApiFp(this.configuration).logoutAuthDevice(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  8752. }
  8753. /**
  8754. *
  8755. * @param {*} [options] Override http request option.
  8756. * @throws {RequiredError}
  8757. * @memberof AuthenticationApi
  8758. */
  8759. public logoutAuthDevices(options?: AxiosRequestConfig) {
  8760. return AuthenticationApiFp(this.configuration).logoutAuthDevices(options).then((request) => request(this.axios, this.basePath));
  8761. }
  8762. /**
  8763. *
  8764. * @param {*} [options] Override http request option.
  8765. * @throws {RequiredError}
  8766. * @memberof AuthenticationApi
  8767. */
  8768. public validateAccessToken(options?: AxiosRequestConfig) {
  8769. return AuthenticationApiFp(this.configuration).validateAccessToken(options).then((request) => request(this.axios, this.basePath));
  8770. }
  8771. }
  8772. /**
  8773. * JobApi - axios parameter creator
  8774. * @export
  8775. */
  8776. export const JobApiAxiosParamCreator = function (configuration?: Configuration) {
  8777. return {
  8778. /**
  8779. *
  8780. * @param {*} [options] Override http request option.
  8781. * @throws {RequiredError}
  8782. */
  8783. getAllJobsStatus: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8784. const localVarPath = `/jobs`;
  8785. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8786. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8787. let baseOptions;
  8788. if (configuration) {
  8789. baseOptions = configuration.baseOptions;
  8790. }
  8791. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  8792. const localVarHeaderParameter = {} as any;
  8793. const localVarQueryParameter = {} as any;
  8794. // authentication cookie required
  8795. // authentication api_key required
  8796. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8797. // authentication bearer required
  8798. // http bearer authentication required
  8799. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8800. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8801. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8802. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8803. return {
  8804. url: toPathString(localVarUrlObj),
  8805. options: localVarRequestOptions,
  8806. };
  8807. },
  8808. /**
  8809. *
  8810. * @param {JobName} id
  8811. * @param {JobCommandDto} jobCommandDto
  8812. * @param {*} [options] Override http request option.
  8813. * @throws {RequiredError}
  8814. */
  8815. sendJobCommand: async (id: JobName, jobCommandDto: JobCommandDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8816. // verify required parameter 'id' is not null or undefined
  8817. assertParamExists('sendJobCommand', 'id', id)
  8818. // verify required parameter 'jobCommandDto' is not null or undefined
  8819. assertParamExists('sendJobCommand', 'jobCommandDto', jobCommandDto)
  8820. const localVarPath = `/jobs/{id}`
  8821. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  8822. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8823. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8824. let baseOptions;
  8825. if (configuration) {
  8826. baseOptions = configuration.baseOptions;
  8827. }
  8828. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  8829. const localVarHeaderParameter = {} as any;
  8830. const localVarQueryParameter = {} as any;
  8831. // authentication cookie required
  8832. // authentication api_key required
  8833. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8834. // authentication bearer required
  8835. // http bearer authentication required
  8836. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8837. localVarHeaderParameter['Content-Type'] = 'application/json';
  8838. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8839. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8840. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8841. localVarRequestOptions.data = serializeDataIfNeeded(jobCommandDto, localVarRequestOptions, configuration)
  8842. return {
  8843. url: toPathString(localVarUrlObj),
  8844. options: localVarRequestOptions,
  8845. };
  8846. },
  8847. }
  8848. };
  8849. /**
  8850. * JobApi - functional programming interface
  8851. * @export
  8852. */
  8853. export const JobApiFp = function(configuration?: Configuration) {
  8854. const localVarAxiosParamCreator = JobApiAxiosParamCreator(configuration)
  8855. return {
  8856. /**
  8857. *
  8858. * @param {*} [options] Override http request option.
  8859. * @throws {RequiredError}
  8860. */
  8861. async getAllJobsStatus(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AllJobStatusResponseDto>> {
  8862. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllJobsStatus(options);
  8863. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8864. },
  8865. /**
  8866. *
  8867. * @param {JobName} id
  8868. * @param {JobCommandDto} jobCommandDto
  8869. * @param {*} [options] Override http request option.
  8870. * @throws {RequiredError}
  8871. */
  8872. async sendJobCommand(id: JobName, jobCommandDto: JobCommandDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JobStatusDto>> {
  8873. const localVarAxiosArgs = await localVarAxiosParamCreator.sendJobCommand(id, jobCommandDto, options);
  8874. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  8875. },
  8876. }
  8877. };
  8878. /**
  8879. * JobApi - factory interface
  8880. * @export
  8881. */
  8882. export const JobApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  8883. const localVarFp = JobApiFp(configuration)
  8884. return {
  8885. /**
  8886. *
  8887. * @param {*} [options] Override http request option.
  8888. * @throws {RequiredError}
  8889. */
  8890. getAllJobsStatus(options?: AxiosRequestConfig): AxiosPromise<AllJobStatusResponseDto> {
  8891. return localVarFp.getAllJobsStatus(options).then((request) => request(axios, basePath));
  8892. },
  8893. /**
  8894. *
  8895. * @param {JobApiSendJobCommandRequest} requestParameters Request parameters.
  8896. * @param {*} [options] Override http request option.
  8897. * @throws {RequiredError}
  8898. */
  8899. sendJobCommand(requestParameters: JobApiSendJobCommandRequest, options?: AxiosRequestConfig): AxiosPromise<JobStatusDto> {
  8900. return localVarFp.sendJobCommand(requestParameters.id, requestParameters.jobCommandDto, options).then((request) => request(axios, basePath));
  8901. },
  8902. };
  8903. };
  8904. /**
  8905. * Request parameters for sendJobCommand operation in JobApi.
  8906. * @export
  8907. * @interface JobApiSendJobCommandRequest
  8908. */
  8909. export interface JobApiSendJobCommandRequest {
  8910. /**
  8911. *
  8912. * @type {JobName}
  8913. * @memberof JobApiSendJobCommand
  8914. */
  8915. readonly id: JobName
  8916. /**
  8917. *
  8918. * @type {JobCommandDto}
  8919. * @memberof JobApiSendJobCommand
  8920. */
  8921. readonly jobCommandDto: JobCommandDto
  8922. }
  8923. /**
  8924. * JobApi - object-oriented interface
  8925. * @export
  8926. * @class JobApi
  8927. * @extends {BaseAPI}
  8928. */
  8929. export class JobApi extends BaseAPI {
  8930. /**
  8931. *
  8932. * @param {*} [options] Override http request option.
  8933. * @throws {RequiredError}
  8934. * @memberof JobApi
  8935. */
  8936. public getAllJobsStatus(options?: AxiosRequestConfig) {
  8937. return JobApiFp(this.configuration).getAllJobsStatus(options).then((request) => request(this.axios, this.basePath));
  8938. }
  8939. /**
  8940. *
  8941. * @param {JobApiSendJobCommandRequest} requestParameters Request parameters.
  8942. * @param {*} [options] Override http request option.
  8943. * @throws {RequiredError}
  8944. * @memberof JobApi
  8945. */
  8946. public sendJobCommand(requestParameters: JobApiSendJobCommandRequest, options?: AxiosRequestConfig) {
  8947. return JobApiFp(this.configuration).sendJobCommand(requestParameters.id, requestParameters.jobCommandDto, options).then((request) => request(this.axios, this.basePath));
  8948. }
  8949. }
  8950. /**
  8951. * LibraryApi - axios parameter creator
  8952. * @export
  8953. */
  8954. export const LibraryApiAxiosParamCreator = function (configuration?: Configuration) {
  8955. return {
  8956. /**
  8957. *
  8958. * @param {CreateLibraryDto} createLibraryDto
  8959. * @param {*} [options] Override http request option.
  8960. * @throws {RequiredError}
  8961. */
  8962. createLibrary: async (createLibraryDto: CreateLibraryDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8963. // verify required parameter 'createLibraryDto' is not null or undefined
  8964. assertParamExists('createLibrary', 'createLibraryDto', createLibraryDto)
  8965. const localVarPath = `/library`;
  8966. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  8967. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  8968. let baseOptions;
  8969. if (configuration) {
  8970. baseOptions = configuration.baseOptions;
  8971. }
  8972. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  8973. const localVarHeaderParameter = {} as any;
  8974. const localVarQueryParameter = {} as any;
  8975. // authentication cookie required
  8976. // authentication api_key required
  8977. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  8978. // authentication bearer required
  8979. // http bearer authentication required
  8980. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  8981. localVarHeaderParameter['Content-Type'] = 'application/json';
  8982. setSearchParams(localVarUrlObj, localVarQueryParameter);
  8983. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  8984. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  8985. localVarRequestOptions.data = serializeDataIfNeeded(createLibraryDto, localVarRequestOptions, configuration)
  8986. return {
  8987. url: toPathString(localVarUrlObj),
  8988. options: localVarRequestOptions,
  8989. };
  8990. },
  8991. /**
  8992. *
  8993. * @param {string} id
  8994. * @param {*} [options] Override http request option.
  8995. * @throws {RequiredError}
  8996. */
  8997. deleteLibrary: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  8998. // verify required parameter 'id' is not null or undefined
  8999. assertParamExists('deleteLibrary', 'id', id)
  9000. const localVarPath = `/library/{id}`
  9001. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  9002. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9003. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9004. let baseOptions;
  9005. if (configuration) {
  9006. baseOptions = configuration.baseOptions;
  9007. }
  9008. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  9009. const localVarHeaderParameter = {} as any;
  9010. const localVarQueryParameter = {} as any;
  9011. // authentication cookie required
  9012. // authentication api_key required
  9013. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9014. // authentication bearer required
  9015. // http bearer authentication required
  9016. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9017. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9018. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9019. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9020. return {
  9021. url: toPathString(localVarUrlObj),
  9022. options: localVarRequestOptions,
  9023. };
  9024. },
  9025. /**
  9026. *
  9027. * @param {*} [options] Override http request option.
  9028. * @throws {RequiredError}
  9029. */
  9030. getAllForUser: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9031. const localVarPath = `/library`;
  9032. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9033. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9034. let baseOptions;
  9035. if (configuration) {
  9036. baseOptions = configuration.baseOptions;
  9037. }
  9038. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  9039. const localVarHeaderParameter = {} as any;
  9040. const localVarQueryParameter = {} as any;
  9041. // authentication cookie required
  9042. // authentication api_key required
  9043. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9044. // authentication bearer required
  9045. // http bearer authentication required
  9046. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9047. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9048. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9049. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9050. return {
  9051. url: toPathString(localVarUrlObj),
  9052. options: localVarRequestOptions,
  9053. };
  9054. },
  9055. /**
  9056. *
  9057. * @param {string} id
  9058. * @param {*} [options] Override http request option.
  9059. * @throws {RequiredError}
  9060. */
  9061. getLibraryInfo: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9062. // verify required parameter 'id' is not null or undefined
  9063. assertParamExists('getLibraryInfo', 'id', id)
  9064. const localVarPath = `/library/{id}`
  9065. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  9066. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9067. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9068. let baseOptions;
  9069. if (configuration) {
  9070. baseOptions = configuration.baseOptions;
  9071. }
  9072. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  9073. const localVarHeaderParameter = {} as any;
  9074. const localVarQueryParameter = {} as any;
  9075. // authentication cookie required
  9076. // authentication api_key required
  9077. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9078. // authentication bearer required
  9079. // http bearer authentication required
  9080. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9081. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9082. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9083. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9084. return {
  9085. url: toPathString(localVarUrlObj),
  9086. options: localVarRequestOptions,
  9087. };
  9088. },
  9089. /**
  9090. *
  9091. * @param {string} id
  9092. * @param {*} [options] Override http request option.
  9093. * @throws {RequiredError}
  9094. */
  9095. getLibraryStatistics: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9096. // verify required parameter 'id' is not null or undefined
  9097. assertParamExists('getLibraryStatistics', 'id', id)
  9098. const localVarPath = `/library/{id}/statistics`
  9099. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  9100. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9101. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9102. let baseOptions;
  9103. if (configuration) {
  9104. baseOptions = configuration.baseOptions;
  9105. }
  9106. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  9107. const localVarHeaderParameter = {} as any;
  9108. const localVarQueryParameter = {} as any;
  9109. // authentication cookie required
  9110. // authentication api_key required
  9111. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9112. // authentication bearer required
  9113. // http bearer authentication required
  9114. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9115. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9116. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9117. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9118. return {
  9119. url: toPathString(localVarUrlObj),
  9120. options: localVarRequestOptions,
  9121. };
  9122. },
  9123. /**
  9124. *
  9125. * @param {string} id
  9126. * @param {*} [options] Override http request option.
  9127. * @throws {RequiredError}
  9128. */
  9129. removeOfflineFiles: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9130. // verify required parameter 'id' is not null or undefined
  9131. assertParamExists('removeOfflineFiles', 'id', id)
  9132. const localVarPath = `/library/{id}/removeOffline`
  9133. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  9134. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9135. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9136. let baseOptions;
  9137. if (configuration) {
  9138. baseOptions = configuration.baseOptions;
  9139. }
  9140. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  9141. const localVarHeaderParameter = {} as any;
  9142. const localVarQueryParameter = {} as any;
  9143. // authentication cookie required
  9144. // authentication api_key required
  9145. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9146. // authentication bearer required
  9147. // http bearer authentication required
  9148. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9149. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9150. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9151. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9152. return {
  9153. url: toPathString(localVarUrlObj),
  9154. options: localVarRequestOptions,
  9155. };
  9156. },
  9157. /**
  9158. *
  9159. * @param {string} id
  9160. * @param {ScanLibraryDto} scanLibraryDto
  9161. * @param {*} [options] Override http request option.
  9162. * @throws {RequiredError}
  9163. */
  9164. scanLibrary: async (id: string, scanLibraryDto: ScanLibraryDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9165. // verify required parameter 'id' is not null or undefined
  9166. assertParamExists('scanLibrary', 'id', id)
  9167. // verify required parameter 'scanLibraryDto' is not null or undefined
  9168. assertParamExists('scanLibrary', 'scanLibraryDto', scanLibraryDto)
  9169. const localVarPath = `/library/{id}/scan`
  9170. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  9171. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9172. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9173. let baseOptions;
  9174. if (configuration) {
  9175. baseOptions = configuration.baseOptions;
  9176. }
  9177. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  9178. const localVarHeaderParameter = {} as any;
  9179. const localVarQueryParameter = {} as any;
  9180. // authentication cookie required
  9181. // authentication api_key required
  9182. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9183. // authentication bearer required
  9184. // http bearer authentication required
  9185. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9186. localVarHeaderParameter['Content-Type'] = 'application/json';
  9187. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9188. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9189. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9190. localVarRequestOptions.data = serializeDataIfNeeded(scanLibraryDto, localVarRequestOptions, configuration)
  9191. return {
  9192. url: toPathString(localVarUrlObj),
  9193. options: localVarRequestOptions,
  9194. };
  9195. },
  9196. /**
  9197. *
  9198. * @param {string} id
  9199. * @param {UpdateLibraryDto} updateLibraryDto
  9200. * @param {*} [options] Override http request option.
  9201. * @throws {RequiredError}
  9202. */
  9203. updateLibrary: async (id: string, updateLibraryDto: UpdateLibraryDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9204. // verify required parameter 'id' is not null or undefined
  9205. assertParamExists('updateLibrary', 'id', id)
  9206. // verify required parameter 'updateLibraryDto' is not null or undefined
  9207. assertParamExists('updateLibrary', 'updateLibraryDto', updateLibraryDto)
  9208. const localVarPath = `/library/{id}`
  9209. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  9210. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9211. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9212. let baseOptions;
  9213. if (configuration) {
  9214. baseOptions = configuration.baseOptions;
  9215. }
  9216. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  9217. const localVarHeaderParameter = {} as any;
  9218. const localVarQueryParameter = {} as any;
  9219. // authentication cookie required
  9220. // authentication api_key required
  9221. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9222. // authentication bearer required
  9223. // http bearer authentication required
  9224. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9225. localVarHeaderParameter['Content-Type'] = 'application/json';
  9226. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9227. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9228. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9229. localVarRequestOptions.data = serializeDataIfNeeded(updateLibraryDto, localVarRequestOptions, configuration)
  9230. return {
  9231. url: toPathString(localVarUrlObj),
  9232. options: localVarRequestOptions,
  9233. };
  9234. },
  9235. }
  9236. };
  9237. /**
  9238. * LibraryApi - functional programming interface
  9239. * @export
  9240. */
  9241. export const LibraryApiFp = function(configuration?: Configuration) {
  9242. const localVarAxiosParamCreator = LibraryApiAxiosParamCreator(configuration)
  9243. return {
  9244. /**
  9245. *
  9246. * @param {CreateLibraryDto} createLibraryDto
  9247. * @param {*} [options] Override http request option.
  9248. * @throws {RequiredError}
  9249. */
  9250. async createLibrary(createLibraryDto: CreateLibraryDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LibraryResponseDto>> {
  9251. const localVarAxiosArgs = await localVarAxiosParamCreator.createLibrary(createLibraryDto, options);
  9252. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9253. },
  9254. /**
  9255. *
  9256. * @param {string} id
  9257. * @param {*} [options] Override http request option.
  9258. * @throws {RequiredError}
  9259. */
  9260. async deleteLibrary(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  9261. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteLibrary(id, options);
  9262. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9263. },
  9264. /**
  9265. *
  9266. * @param {*} [options] Override http request option.
  9267. * @throws {RequiredError}
  9268. */
  9269. async getAllForUser(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<LibraryResponseDto>>> {
  9270. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllForUser(options);
  9271. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9272. },
  9273. /**
  9274. *
  9275. * @param {string} id
  9276. * @param {*} [options] Override http request option.
  9277. * @throws {RequiredError}
  9278. */
  9279. async getLibraryInfo(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LibraryResponseDto>> {
  9280. const localVarAxiosArgs = await localVarAxiosParamCreator.getLibraryInfo(id, options);
  9281. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9282. },
  9283. /**
  9284. *
  9285. * @param {string} id
  9286. * @param {*} [options] Override http request option.
  9287. * @throws {RequiredError}
  9288. */
  9289. async getLibraryStatistics(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LibraryStatsResponseDto>> {
  9290. const localVarAxiosArgs = await localVarAxiosParamCreator.getLibraryStatistics(id, options);
  9291. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9292. },
  9293. /**
  9294. *
  9295. * @param {string} id
  9296. * @param {*} [options] Override http request option.
  9297. * @throws {RequiredError}
  9298. */
  9299. async removeOfflineFiles(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  9300. const localVarAxiosArgs = await localVarAxiosParamCreator.removeOfflineFiles(id, options);
  9301. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9302. },
  9303. /**
  9304. *
  9305. * @param {string} id
  9306. * @param {ScanLibraryDto} scanLibraryDto
  9307. * @param {*} [options] Override http request option.
  9308. * @throws {RequiredError}
  9309. */
  9310. async scanLibrary(id: string, scanLibraryDto: ScanLibraryDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  9311. const localVarAxiosArgs = await localVarAxiosParamCreator.scanLibrary(id, scanLibraryDto, options);
  9312. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9313. },
  9314. /**
  9315. *
  9316. * @param {string} id
  9317. * @param {UpdateLibraryDto} updateLibraryDto
  9318. * @param {*} [options] Override http request option.
  9319. * @throws {RequiredError}
  9320. */
  9321. async updateLibrary(id: string, updateLibraryDto: UpdateLibraryDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LibraryResponseDto>> {
  9322. const localVarAxiosArgs = await localVarAxiosParamCreator.updateLibrary(id, updateLibraryDto, options);
  9323. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9324. },
  9325. }
  9326. };
  9327. /**
  9328. * LibraryApi - factory interface
  9329. * @export
  9330. */
  9331. export const LibraryApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  9332. const localVarFp = LibraryApiFp(configuration)
  9333. return {
  9334. /**
  9335. *
  9336. * @param {LibraryApiCreateLibraryRequest} requestParameters Request parameters.
  9337. * @param {*} [options] Override http request option.
  9338. * @throws {RequiredError}
  9339. */
  9340. createLibrary(requestParameters: LibraryApiCreateLibraryRequest, options?: AxiosRequestConfig): AxiosPromise<LibraryResponseDto> {
  9341. return localVarFp.createLibrary(requestParameters.createLibraryDto, options).then((request) => request(axios, basePath));
  9342. },
  9343. /**
  9344. *
  9345. * @param {LibraryApiDeleteLibraryRequest} requestParameters Request parameters.
  9346. * @param {*} [options] Override http request option.
  9347. * @throws {RequiredError}
  9348. */
  9349. deleteLibrary(requestParameters: LibraryApiDeleteLibraryRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  9350. return localVarFp.deleteLibrary(requestParameters.id, options).then((request) => request(axios, basePath));
  9351. },
  9352. /**
  9353. *
  9354. * @param {*} [options] Override http request option.
  9355. * @throws {RequiredError}
  9356. */
  9357. getAllForUser(options?: AxiosRequestConfig): AxiosPromise<Array<LibraryResponseDto>> {
  9358. return localVarFp.getAllForUser(options).then((request) => request(axios, basePath));
  9359. },
  9360. /**
  9361. *
  9362. * @param {LibraryApiGetLibraryInfoRequest} requestParameters Request parameters.
  9363. * @param {*} [options] Override http request option.
  9364. * @throws {RequiredError}
  9365. */
  9366. getLibraryInfo(requestParameters: LibraryApiGetLibraryInfoRequest, options?: AxiosRequestConfig): AxiosPromise<LibraryResponseDto> {
  9367. return localVarFp.getLibraryInfo(requestParameters.id, options).then((request) => request(axios, basePath));
  9368. },
  9369. /**
  9370. *
  9371. * @param {LibraryApiGetLibraryStatisticsRequest} requestParameters Request parameters.
  9372. * @param {*} [options] Override http request option.
  9373. * @throws {RequiredError}
  9374. */
  9375. getLibraryStatistics(requestParameters: LibraryApiGetLibraryStatisticsRequest, options?: AxiosRequestConfig): AxiosPromise<LibraryStatsResponseDto> {
  9376. return localVarFp.getLibraryStatistics(requestParameters.id, options).then((request) => request(axios, basePath));
  9377. },
  9378. /**
  9379. *
  9380. * @param {LibraryApiRemoveOfflineFilesRequest} requestParameters Request parameters.
  9381. * @param {*} [options] Override http request option.
  9382. * @throws {RequiredError}
  9383. */
  9384. removeOfflineFiles(requestParameters: LibraryApiRemoveOfflineFilesRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  9385. return localVarFp.removeOfflineFiles(requestParameters.id, options).then((request) => request(axios, basePath));
  9386. },
  9387. /**
  9388. *
  9389. * @param {LibraryApiScanLibraryRequest} requestParameters Request parameters.
  9390. * @param {*} [options] Override http request option.
  9391. * @throws {RequiredError}
  9392. */
  9393. scanLibrary(requestParameters: LibraryApiScanLibraryRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  9394. return localVarFp.scanLibrary(requestParameters.id, requestParameters.scanLibraryDto, options).then((request) => request(axios, basePath));
  9395. },
  9396. /**
  9397. *
  9398. * @param {LibraryApiUpdateLibraryRequest} requestParameters Request parameters.
  9399. * @param {*} [options] Override http request option.
  9400. * @throws {RequiredError}
  9401. */
  9402. updateLibrary(requestParameters: LibraryApiUpdateLibraryRequest, options?: AxiosRequestConfig): AxiosPromise<LibraryResponseDto> {
  9403. return localVarFp.updateLibrary(requestParameters.id, requestParameters.updateLibraryDto, options).then((request) => request(axios, basePath));
  9404. },
  9405. };
  9406. };
  9407. /**
  9408. * Request parameters for createLibrary operation in LibraryApi.
  9409. * @export
  9410. * @interface LibraryApiCreateLibraryRequest
  9411. */
  9412. export interface LibraryApiCreateLibraryRequest {
  9413. /**
  9414. *
  9415. * @type {CreateLibraryDto}
  9416. * @memberof LibraryApiCreateLibrary
  9417. */
  9418. readonly createLibraryDto: CreateLibraryDto
  9419. }
  9420. /**
  9421. * Request parameters for deleteLibrary operation in LibraryApi.
  9422. * @export
  9423. * @interface LibraryApiDeleteLibraryRequest
  9424. */
  9425. export interface LibraryApiDeleteLibraryRequest {
  9426. /**
  9427. *
  9428. * @type {string}
  9429. * @memberof LibraryApiDeleteLibrary
  9430. */
  9431. readonly id: string
  9432. }
  9433. /**
  9434. * Request parameters for getLibraryInfo operation in LibraryApi.
  9435. * @export
  9436. * @interface LibraryApiGetLibraryInfoRequest
  9437. */
  9438. export interface LibraryApiGetLibraryInfoRequest {
  9439. /**
  9440. *
  9441. * @type {string}
  9442. * @memberof LibraryApiGetLibraryInfo
  9443. */
  9444. readonly id: string
  9445. }
  9446. /**
  9447. * Request parameters for getLibraryStatistics operation in LibraryApi.
  9448. * @export
  9449. * @interface LibraryApiGetLibraryStatisticsRequest
  9450. */
  9451. export interface LibraryApiGetLibraryStatisticsRequest {
  9452. /**
  9453. *
  9454. * @type {string}
  9455. * @memberof LibraryApiGetLibraryStatistics
  9456. */
  9457. readonly id: string
  9458. }
  9459. /**
  9460. * Request parameters for removeOfflineFiles operation in LibraryApi.
  9461. * @export
  9462. * @interface LibraryApiRemoveOfflineFilesRequest
  9463. */
  9464. export interface LibraryApiRemoveOfflineFilesRequest {
  9465. /**
  9466. *
  9467. * @type {string}
  9468. * @memberof LibraryApiRemoveOfflineFiles
  9469. */
  9470. readonly id: string
  9471. }
  9472. /**
  9473. * Request parameters for scanLibrary operation in LibraryApi.
  9474. * @export
  9475. * @interface LibraryApiScanLibraryRequest
  9476. */
  9477. export interface LibraryApiScanLibraryRequest {
  9478. /**
  9479. *
  9480. * @type {string}
  9481. * @memberof LibraryApiScanLibrary
  9482. */
  9483. readonly id: string
  9484. /**
  9485. *
  9486. * @type {ScanLibraryDto}
  9487. * @memberof LibraryApiScanLibrary
  9488. */
  9489. readonly scanLibraryDto: ScanLibraryDto
  9490. }
  9491. /**
  9492. * Request parameters for updateLibrary operation in LibraryApi.
  9493. * @export
  9494. * @interface LibraryApiUpdateLibraryRequest
  9495. */
  9496. export interface LibraryApiUpdateLibraryRequest {
  9497. /**
  9498. *
  9499. * @type {string}
  9500. * @memberof LibraryApiUpdateLibrary
  9501. */
  9502. readonly id: string
  9503. /**
  9504. *
  9505. * @type {UpdateLibraryDto}
  9506. * @memberof LibraryApiUpdateLibrary
  9507. */
  9508. readonly updateLibraryDto: UpdateLibraryDto
  9509. }
  9510. /**
  9511. * LibraryApi - object-oriented interface
  9512. * @export
  9513. * @class LibraryApi
  9514. * @extends {BaseAPI}
  9515. */
  9516. export class LibraryApi extends BaseAPI {
  9517. /**
  9518. *
  9519. * @param {LibraryApiCreateLibraryRequest} requestParameters Request parameters.
  9520. * @param {*} [options] Override http request option.
  9521. * @throws {RequiredError}
  9522. * @memberof LibraryApi
  9523. */
  9524. public createLibrary(requestParameters: LibraryApiCreateLibraryRequest, options?: AxiosRequestConfig) {
  9525. return LibraryApiFp(this.configuration).createLibrary(requestParameters.createLibraryDto, options).then((request) => request(this.axios, this.basePath));
  9526. }
  9527. /**
  9528. *
  9529. * @param {LibraryApiDeleteLibraryRequest} requestParameters Request parameters.
  9530. * @param {*} [options] Override http request option.
  9531. * @throws {RequiredError}
  9532. * @memberof LibraryApi
  9533. */
  9534. public deleteLibrary(requestParameters: LibraryApiDeleteLibraryRequest, options?: AxiosRequestConfig) {
  9535. return LibraryApiFp(this.configuration).deleteLibrary(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  9536. }
  9537. /**
  9538. *
  9539. * @param {*} [options] Override http request option.
  9540. * @throws {RequiredError}
  9541. * @memberof LibraryApi
  9542. */
  9543. public getAllForUser(options?: AxiosRequestConfig) {
  9544. return LibraryApiFp(this.configuration).getAllForUser(options).then((request) => request(this.axios, this.basePath));
  9545. }
  9546. /**
  9547. *
  9548. * @param {LibraryApiGetLibraryInfoRequest} requestParameters Request parameters.
  9549. * @param {*} [options] Override http request option.
  9550. * @throws {RequiredError}
  9551. * @memberof LibraryApi
  9552. */
  9553. public getLibraryInfo(requestParameters: LibraryApiGetLibraryInfoRequest, options?: AxiosRequestConfig) {
  9554. return LibraryApiFp(this.configuration).getLibraryInfo(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  9555. }
  9556. /**
  9557. *
  9558. * @param {LibraryApiGetLibraryStatisticsRequest} requestParameters Request parameters.
  9559. * @param {*} [options] Override http request option.
  9560. * @throws {RequiredError}
  9561. * @memberof LibraryApi
  9562. */
  9563. public getLibraryStatistics(requestParameters: LibraryApiGetLibraryStatisticsRequest, options?: AxiosRequestConfig) {
  9564. return LibraryApiFp(this.configuration).getLibraryStatistics(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  9565. }
  9566. /**
  9567. *
  9568. * @param {LibraryApiRemoveOfflineFilesRequest} requestParameters Request parameters.
  9569. * @param {*} [options] Override http request option.
  9570. * @throws {RequiredError}
  9571. * @memberof LibraryApi
  9572. */
  9573. public removeOfflineFiles(requestParameters: LibraryApiRemoveOfflineFilesRequest, options?: AxiosRequestConfig) {
  9574. return LibraryApiFp(this.configuration).removeOfflineFiles(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  9575. }
  9576. /**
  9577. *
  9578. * @param {LibraryApiScanLibraryRequest} requestParameters Request parameters.
  9579. * @param {*} [options] Override http request option.
  9580. * @throws {RequiredError}
  9581. * @memberof LibraryApi
  9582. */
  9583. public scanLibrary(requestParameters: LibraryApiScanLibraryRequest, options?: AxiosRequestConfig) {
  9584. return LibraryApiFp(this.configuration).scanLibrary(requestParameters.id, requestParameters.scanLibraryDto, options).then((request) => request(this.axios, this.basePath));
  9585. }
  9586. /**
  9587. *
  9588. * @param {LibraryApiUpdateLibraryRequest} requestParameters Request parameters.
  9589. * @param {*} [options] Override http request option.
  9590. * @throws {RequiredError}
  9591. * @memberof LibraryApi
  9592. */
  9593. public updateLibrary(requestParameters: LibraryApiUpdateLibraryRequest, options?: AxiosRequestConfig) {
  9594. return LibraryApiFp(this.configuration).updateLibrary(requestParameters.id, requestParameters.updateLibraryDto, options).then((request) => request(this.axios, this.basePath));
  9595. }
  9596. }
  9597. /**
  9598. * OAuthApi - axios parameter creator
  9599. * @export
  9600. */
  9601. export const OAuthApiAxiosParamCreator = function (configuration?: Configuration) {
  9602. return {
  9603. /**
  9604. *
  9605. * @param {OAuthConfigDto} oAuthConfigDto
  9606. * @param {*} [options] Override http request option.
  9607. * @throws {RequiredError}
  9608. */
  9609. authorizeOAuth: async (oAuthConfigDto: OAuthConfigDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9610. // verify required parameter 'oAuthConfigDto' is not null or undefined
  9611. assertParamExists('authorizeOAuth', 'oAuthConfigDto', oAuthConfigDto)
  9612. const localVarPath = `/oauth/authorize`;
  9613. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9614. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9615. let baseOptions;
  9616. if (configuration) {
  9617. baseOptions = configuration.baseOptions;
  9618. }
  9619. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  9620. const localVarHeaderParameter = {} as any;
  9621. const localVarQueryParameter = {} as any;
  9622. localVarHeaderParameter['Content-Type'] = 'application/json';
  9623. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9624. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9625. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9626. localVarRequestOptions.data = serializeDataIfNeeded(oAuthConfigDto, localVarRequestOptions, configuration)
  9627. return {
  9628. url: toPathString(localVarUrlObj),
  9629. options: localVarRequestOptions,
  9630. };
  9631. },
  9632. /**
  9633. *
  9634. * @param {OAuthCallbackDto} oAuthCallbackDto
  9635. * @param {*} [options] Override http request option.
  9636. * @throws {RequiredError}
  9637. */
  9638. callback: async (oAuthCallbackDto: OAuthCallbackDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9639. // verify required parameter 'oAuthCallbackDto' is not null or undefined
  9640. assertParamExists('callback', 'oAuthCallbackDto', oAuthCallbackDto)
  9641. const localVarPath = `/oauth/callback`;
  9642. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9643. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9644. let baseOptions;
  9645. if (configuration) {
  9646. baseOptions = configuration.baseOptions;
  9647. }
  9648. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  9649. const localVarHeaderParameter = {} as any;
  9650. const localVarQueryParameter = {} as any;
  9651. localVarHeaderParameter['Content-Type'] = 'application/json';
  9652. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9653. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9654. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9655. localVarRequestOptions.data = serializeDataIfNeeded(oAuthCallbackDto, localVarRequestOptions, configuration)
  9656. return {
  9657. url: toPathString(localVarUrlObj),
  9658. options: localVarRequestOptions,
  9659. };
  9660. },
  9661. /**
  9662. * @deprecated use feature flags and /oauth/authorize
  9663. * @param {OAuthConfigDto} oAuthConfigDto
  9664. * @param {*} [options] Override http request option.
  9665. * @deprecated
  9666. * @throws {RequiredError}
  9667. */
  9668. generateConfig: async (oAuthConfigDto: OAuthConfigDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9669. // verify required parameter 'oAuthConfigDto' is not null or undefined
  9670. assertParamExists('generateConfig', 'oAuthConfigDto', oAuthConfigDto)
  9671. const localVarPath = `/oauth/config`;
  9672. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9673. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9674. let baseOptions;
  9675. if (configuration) {
  9676. baseOptions = configuration.baseOptions;
  9677. }
  9678. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  9679. const localVarHeaderParameter = {} as any;
  9680. const localVarQueryParameter = {} as any;
  9681. localVarHeaderParameter['Content-Type'] = 'application/json';
  9682. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9683. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9684. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9685. localVarRequestOptions.data = serializeDataIfNeeded(oAuthConfigDto, localVarRequestOptions, configuration)
  9686. return {
  9687. url: toPathString(localVarUrlObj),
  9688. options: localVarRequestOptions,
  9689. };
  9690. },
  9691. /**
  9692. *
  9693. * @param {OAuthCallbackDto} oAuthCallbackDto
  9694. * @param {*} [options] Override http request option.
  9695. * @throws {RequiredError}
  9696. */
  9697. link: async (oAuthCallbackDto: OAuthCallbackDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9698. // verify required parameter 'oAuthCallbackDto' is not null or undefined
  9699. assertParamExists('link', 'oAuthCallbackDto', oAuthCallbackDto)
  9700. const localVarPath = `/oauth/link`;
  9701. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9702. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9703. let baseOptions;
  9704. if (configuration) {
  9705. baseOptions = configuration.baseOptions;
  9706. }
  9707. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  9708. const localVarHeaderParameter = {} as any;
  9709. const localVarQueryParameter = {} as any;
  9710. // authentication cookie required
  9711. // authentication api_key required
  9712. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9713. // authentication bearer required
  9714. // http bearer authentication required
  9715. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9716. localVarHeaderParameter['Content-Type'] = 'application/json';
  9717. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9718. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9719. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9720. localVarRequestOptions.data = serializeDataIfNeeded(oAuthCallbackDto, localVarRequestOptions, configuration)
  9721. return {
  9722. url: toPathString(localVarUrlObj),
  9723. options: localVarRequestOptions,
  9724. };
  9725. },
  9726. /**
  9727. *
  9728. * @param {*} [options] Override http request option.
  9729. * @throws {RequiredError}
  9730. */
  9731. mobileRedirect: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9732. const localVarPath = `/oauth/mobile-redirect`;
  9733. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9734. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9735. let baseOptions;
  9736. if (configuration) {
  9737. baseOptions = configuration.baseOptions;
  9738. }
  9739. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  9740. const localVarHeaderParameter = {} as any;
  9741. const localVarQueryParameter = {} as any;
  9742. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9743. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9744. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9745. return {
  9746. url: toPathString(localVarUrlObj),
  9747. options: localVarRequestOptions,
  9748. };
  9749. },
  9750. /**
  9751. *
  9752. * @param {*} [options] Override http request option.
  9753. * @throws {RequiredError}
  9754. */
  9755. unlink: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9756. const localVarPath = `/oauth/unlink`;
  9757. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9758. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9759. let baseOptions;
  9760. if (configuration) {
  9761. baseOptions = configuration.baseOptions;
  9762. }
  9763. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  9764. const localVarHeaderParameter = {} as any;
  9765. const localVarQueryParameter = {} as any;
  9766. // authentication cookie required
  9767. // authentication api_key required
  9768. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9769. // authentication bearer required
  9770. // http bearer authentication required
  9771. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9772. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9773. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9774. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9775. return {
  9776. url: toPathString(localVarUrlObj),
  9777. options: localVarRequestOptions,
  9778. };
  9779. },
  9780. }
  9781. };
  9782. /**
  9783. * OAuthApi - functional programming interface
  9784. * @export
  9785. */
  9786. export const OAuthApiFp = function(configuration?: Configuration) {
  9787. const localVarAxiosParamCreator = OAuthApiAxiosParamCreator(configuration)
  9788. return {
  9789. /**
  9790. *
  9791. * @param {OAuthConfigDto} oAuthConfigDto
  9792. * @param {*} [options] Override http request option.
  9793. * @throws {RequiredError}
  9794. */
  9795. async authorizeOAuth(oAuthConfigDto: OAuthConfigDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OAuthAuthorizeResponseDto>> {
  9796. const localVarAxiosArgs = await localVarAxiosParamCreator.authorizeOAuth(oAuthConfigDto, options);
  9797. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9798. },
  9799. /**
  9800. *
  9801. * @param {OAuthCallbackDto} oAuthCallbackDto
  9802. * @param {*} [options] Override http request option.
  9803. * @throws {RequiredError}
  9804. */
  9805. async callback(oAuthCallbackDto: OAuthCallbackDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoginResponseDto>> {
  9806. const localVarAxiosArgs = await localVarAxiosParamCreator.callback(oAuthCallbackDto, options);
  9807. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9808. },
  9809. /**
  9810. * @deprecated use feature flags and /oauth/authorize
  9811. * @param {OAuthConfigDto} oAuthConfigDto
  9812. * @param {*} [options] Override http request option.
  9813. * @deprecated
  9814. * @throws {RequiredError}
  9815. */
  9816. async generateConfig(oAuthConfigDto: OAuthConfigDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OAuthConfigResponseDto>> {
  9817. const localVarAxiosArgs = await localVarAxiosParamCreator.generateConfig(oAuthConfigDto, options);
  9818. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9819. },
  9820. /**
  9821. *
  9822. * @param {OAuthCallbackDto} oAuthCallbackDto
  9823. * @param {*} [options] Override http request option.
  9824. * @throws {RequiredError}
  9825. */
  9826. async link(oAuthCallbackDto: OAuthCallbackDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  9827. const localVarAxiosArgs = await localVarAxiosParamCreator.link(oAuthCallbackDto, options);
  9828. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9829. },
  9830. /**
  9831. *
  9832. * @param {*} [options] Override http request option.
  9833. * @throws {RequiredError}
  9834. */
  9835. async mobileRedirect(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  9836. const localVarAxiosArgs = await localVarAxiosParamCreator.mobileRedirect(options);
  9837. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9838. },
  9839. /**
  9840. *
  9841. * @param {*} [options] Override http request option.
  9842. * @throws {RequiredError}
  9843. */
  9844. async unlink(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  9845. const localVarAxiosArgs = await localVarAxiosParamCreator.unlink(options);
  9846. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9847. },
  9848. }
  9849. };
  9850. /**
  9851. * OAuthApi - factory interface
  9852. * @export
  9853. */
  9854. export const OAuthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  9855. const localVarFp = OAuthApiFp(configuration)
  9856. return {
  9857. /**
  9858. *
  9859. * @param {OAuthApiAuthorizeOAuthRequest} requestParameters Request parameters.
  9860. * @param {*} [options] Override http request option.
  9861. * @throws {RequiredError}
  9862. */
  9863. authorizeOAuth(requestParameters: OAuthApiAuthorizeOAuthRequest, options?: AxiosRequestConfig): AxiosPromise<OAuthAuthorizeResponseDto> {
  9864. return localVarFp.authorizeOAuth(requestParameters.oAuthConfigDto, options).then((request) => request(axios, basePath));
  9865. },
  9866. /**
  9867. *
  9868. * @param {OAuthApiCallbackRequest} requestParameters Request parameters.
  9869. * @param {*} [options] Override http request option.
  9870. * @throws {RequiredError}
  9871. */
  9872. callback(requestParameters: OAuthApiCallbackRequest, options?: AxiosRequestConfig): AxiosPromise<LoginResponseDto> {
  9873. return localVarFp.callback(requestParameters.oAuthCallbackDto, options).then((request) => request(axios, basePath));
  9874. },
  9875. /**
  9876. * @deprecated use feature flags and /oauth/authorize
  9877. * @param {OAuthApiGenerateConfigRequest} requestParameters Request parameters.
  9878. * @param {*} [options] Override http request option.
  9879. * @deprecated
  9880. * @throws {RequiredError}
  9881. */
  9882. generateConfig(requestParameters: OAuthApiGenerateConfigRequest, options?: AxiosRequestConfig): AxiosPromise<OAuthConfigResponseDto> {
  9883. return localVarFp.generateConfig(requestParameters.oAuthConfigDto, options).then((request) => request(axios, basePath));
  9884. },
  9885. /**
  9886. *
  9887. * @param {OAuthApiLinkRequest} requestParameters Request parameters.
  9888. * @param {*} [options] Override http request option.
  9889. * @throws {RequiredError}
  9890. */
  9891. link(requestParameters: OAuthApiLinkRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  9892. return localVarFp.link(requestParameters.oAuthCallbackDto, options).then((request) => request(axios, basePath));
  9893. },
  9894. /**
  9895. *
  9896. * @param {*} [options] Override http request option.
  9897. * @throws {RequiredError}
  9898. */
  9899. mobileRedirect(options?: AxiosRequestConfig): AxiosPromise<void> {
  9900. return localVarFp.mobileRedirect(options).then((request) => request(axios, basePath));
  9901. },
  9902. /**
  9903. *
  9904. * @param {*} [options] Override http request option.
  9905. * @throws {RequiredError}
  9906. */
  9907. unlink(options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  9908. return localVarFp.unlink(options).then((request) => request(axios, basePath));
  9909. },
  9910. };
  9911. };
  9912. /**
  9913. * Request parameters for authorizeOAuth operation in OAuthApi.
  9914. * @export
  9915. * @interface OAuthApiAuthorizeOAuthRequest
  9916. */
  9917. export interface OAuthApiAuthorizeOAuthRequest {
  9918. /**
  9919. *
  9920. * @type {OAuthConfigDto}
  9921. * @memberof OAuthApiAuthorizeOAuth
  9922. */
  9923. readonly oAuthConfigDto: OAuthConfigDto
  9924. }
  9925. /**
  9926. * Request parameters for callback operation in OAuthApi.
  9927. * @export
  9928. * @interface OAuthApiCallbackRequest
  9929. */
  9930. export interface OAuthApiCallbackRequest {
  9931. /**
  9932. *
  9933. * @type {OAuthCallbackDto}
  9934. * @memberof OAuthApiCallback
  9935. */
  9936. readonly oAuthCallbackDto: OAuthCallbackDto
  9937. }
  9938. /**
  9939. * Request parameters for generateConfig operation in OAuthApi.
  9940. * @export
  9941. * @interface OAuthApiGenerateConfigRequest
  9942. */
  9943. export interface OAuthApiGenerateConfigRequest {
  9944. /**
  9945. *
  9946. * @type {OAuthConfigDto}
  9947. * @memberof OAuthApiGenerateConfig
  9948. */
  9949. readonly oAuthConfigDto: OAuthConfigDto
  9950. }
  9951. /**
  9952. * Request parameters for link operation in OAuthApi.
  9953. * @export
  9954. * @interface OAuthApiLinkRequest
  9955. */
  9956. export interface OAuthApiLinkRequest {
  9957. /**
  9958. *
  9959. * @type {OAuthCallbackDto}
  9960. * @memberof OAuthApiLink
  9961. */
  9962. readonly oAuthCallbackDto: OAuthCallbackDto
  9963. }
  9964. /**
  9965. * OAuthApi - object-oriented interface
  9966. * @export
  9967. * @class OAuthApi
  9968. * @extends {BaseAPI}
  9969. */
  9970. export class OAuthApi extends BaseAPI {
  9971. /**
  9972. *
  9973. * @param {OAuthApiAuthorizeOAuthRequest} requestParameters Request parameters.
  9974. * @param {*} [options] Override http request option.
  9975. * @throws {RequiredError}
  9976. * @memberof OAuthApi
  9977. */
  9978. public authorizeOAuth(requestParameters: OAuthApiAuthorizeOAuthRequest, options?: AxiosRequestConfig) {
  9979. return OAuthApiFp(this.configuration).authorizeOAuth(requestParameters.oAuthConfigDto, options).then((request) => request(this.axios, this.basePath));
  9980. }
  9981. /**
  9982. *
  9983. * @param {OAuthApiCallbackRequest} requestParameters Request parameters.
  9984. * @param {*} [options] Override http request option.
  9985. * @throws {RequiredError}
  9986. * @memberof OAuthApi
  9987. */
  9988. public callback(requestParameters: OAuthApiCallbackRequest, options?: AxiosRequestConfig) {
  9989. return OAuthApiFp(this.configuration).callback(requestParameters.oAuthCallbackDto, options).then((request) => request(this.axios, this.basePath));
  9990. }
  9991. /**
  9992. * @deprecated use feature flags and /oauth/authorize
  9993. * @param {OAuthApiGenerateConfigRequest} requestParameters Request parameters.
  9994. * @param {*} [options] Override http request option.
  9995. * @deprecated
  9996. * @throws {RequiredError}
  9997. * @memberof OAuthApi
  9998. */
  9999. public generateConfig(requestParameters: OAuthApiGenerateConfigRequest, options?: AxiosRequestConfig) {
  10000. return OAuthApiFp(this.configuration).generateConfig(requestParameters.oAuthConfigDto, options).then((request) => request(this.axios, this.basePath));
  10001. }
  10002. /**
  10003. *
  10004. * @param {OAuthApiLinkRequest} requestParameters Request parameters.
  10005. * @param {*} [options] Override http request option.
  10006. * @throws {RequiredError}
  10007. * @memberof OAuthApi
  10008. */
  10009. public link(requestParameters: OAuthApiLinkRequest, options?: AxiosRequestConfig) {
  10010. return OAuthApiFp(this.configuration).link(requestParameters.oAuthCallbackDto, options).then((request) => request(this.axios, this.basePath));
  10011. }
  10012. /**
  10013. *
  10014. * @param {*} [options] Override http request option.
  10015. * @throws {RequiredError}
  10016. * @memberof OAuthApi
  10017. */
  10018. public mobileRedirect(options?: AxiosRequestConfig) {
  10019. return OAuthApiFp(this.configuration).mobileRedirect(options).then((request) => request(this.axios, this.basePath));
  10020. }
  10021. /**
  10022. *
  10023. * @param {*} [options] Override http request option.
  10024. * @throws {RequiredError}
  10025. * @memberof OAuthApi
  10026. */
  10027. public unlink(options?: AxiosRequestConfig) {
  10028. return OAuthApiFp(this.configuration).unlink(options).then((request) => request(this.axios, this.basePath));
  10029. }
  10030. }
  10031. /**
  10032. * PartnerApi - axios parameter creator
  10033. * @export
  10034. */
  10035. export const PartnerApiAxiosParamCreator = function (configuration?: Configuration) {
  10036. return {
  10037. /**
  10038. *
  10039. * @param {string} id
  10040. * @param {*} [options] Override http request option.
  10041. * @throws {RequiredError}
  10042. */
  10043. createPartner: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10044. // verify required parameter 'id' is not null or undefined
  10045. assertParamExists('createPartner', 'id', id)
  10046. const localVarPath = `/partner/{id}`
  10047. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10048. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10049. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10050. let baseOptions;
  10051. if (configuration) {
  10052. baseOptions = configuration.baseOptions;
  10053. }
  10054. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  10055. const localVarHeaderParameter = {} as any;
  10056. const localVarQueryParameter = {} as any;
  10057. // authentication cookie required
  10058. // authentication api_key required
  10059. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10060. // authentication bearer required
  10061. // http bearer authentication required
  10062. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10063. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10064. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10065. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10066. return {
  10067. url: toPathString(localVarUrlObj),
  10068. options: localVarRequestOptions,
  10069. };
  10070. },
  10071. /**
  10072. *
  10073. * @param {'shared-by' | 'shared-with'} direction
  10074. * @param {*} [options] Override http request option.
  10075. * @throws {RequiredError}
  10076. */
  10077. getPartners: async (direction: 'shared-by' | 'shared-with', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10078. // verify required parameter 'direction' is not null or undefined
  10079. assertParamExists('getPartners', 'direction', direction)
  10080. const localVarPath = `/partner`;
  10081. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10082. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10083. let baseOptions;
  10084. if (configuration) {
  10085. baseOptions = configuration.baseOptions;
  10086. }
  10087. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  10088. const localVarHeaderParameter = {} as any;
  10089. const localVarQueryParameter = {} as any;
  10090. // authentication cookie required
  10091. // authentication api_key required
  10092. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10093. // authentication bearer required
  10094. // http bearer authentication required
  10095. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10096. if (direction !== undefined) {
  10097. localVarQueryParameter['direction'] = direction;
  10098. }
  10099. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10100. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10101. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10102. return {
  10103. url: toPathString(localVarUrlObj),
  10104. options: localVarRequestOptions,
  10105. };
  10106. },
  10107. /**
  10108. *
  10109. * @param {string} id
  10110. * @param {*} [options] Override http request option.
  10111. * @throws {RequiredError}
  10112. */
  10113. removePartner: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10114. // verify required parameter 'id' is not null or undefined
  10115. assertParamExists('removePartner', 'id', id)
  10116. const localVarPath = `/partner/{id}`
  10117. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10118. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10119. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10120. let baseOptions;
  10121. if (configuration) {
  10122. baseOptions = configuration.baseOptions;
  10123. }
  10124. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  10125. const localVarHeaderParameter = {} as any;
  10126. const localVarQueryParameter = {} as any;
  10127. // authentication cookie required
  10128. // authentication api_key required
  10129. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10130. // authentication bearer required
  10131. // http bearer authentication required
  10132. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10133. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10134. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10135. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10136. return {
  10137. url: toPathString(localVarUrlObj),
  10138. options: localVarRequestOptions,
  10139. };
  10140. },
  10141. }
  10142. };
  10143. /**
  10144. * PartnerApi - functional programming interface
  10145. * @export
  10146. */
  10147. export const PartnerApiFp = function(configuration?: Configuration) {
  10148. const localVarAxiosParamCreator = PartnerApiAxiosParamCreator(configuration)
  10149. return {
  10150. /**
  10151. *
  10152. * @param {string} id
  10153. * @param {*} [options] Override http request option.
  10154. * @throws {RequiredError}
  10155. */
  10156. async createPartner(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  10157. const localVarAxiosArgs = await localVarAxiosParamCreator.createPartner(id, options);
  10158. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10159. },
  10160. /**
  10161. *
  10162. * @param {'shared-by' | 'shared-with'} direction
  10163. * @param {*} [options] Override http request option.
  10164. * @throws {RequiredError}
  10165. */
  10166. async getPartners(direction: 'shared-by' | 'shared-with', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<UserResponseDto>>> {
  10167. const localVarAxiosArgs = await localVarAxiosParamCreator.getPartners(direction, options);
  10168. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10169. },
  10170. /**
  10171. *
  10172. * @param {string} id
  10173. * @param {*} [options] Override http request option.
  10174. * @throws {RequiredError}
  10175. */
  10176. async removePartner(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  10177. const localVarAxiosArgs = await localVarAxiosParamCreator.removePartner(id, options);
  10178. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10179. },
  10180. }
  10181. };
  10182. /**
  10183. * PartnerApi - factory interface
  10184. * @export
  10185. */
  10186. export const PartnerApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  10187. const localVarFp = PartnerApiFp(configuration)
  10188. return {
  10189. /**
  10190. *
  10191. * @param {PartnerApiCreatePartnerRequest} requestParameters Request parameters.
  10192. * @param {*} [options] Override http request option.
  10193. * @throws {RequiredError}
  10194. */
  10195. createPartner(requestParameters: PartnerApiCreatePartnerRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  10196. return localVarFp.createPartner(requestParameters.id, options).then((request) => request(axios, basePath));
  10197. },
  10198. /**
  10199. *
  10200. * @param {PartnerApiGetPartnersRequest} requestParameters Request parameters.
  10201. * @param {*} [options] Override http request option.
  10202. * @throws {RequiredError}
  10203. */
  10204. getPartners(requestParameters: PartnerApiGetPartnersRequest, options?: AxiosRequestConfig): AxiosPromise<Array<UserResponseDto>> {
  10205. return localVarFp.getPartners(requestParameters.direction, options).then((request) => request(axios, basePath));
  10206. },
  10207. /**
  10208. *
  10209. * @param {PartnerApiRemovePartnerRequest} requestParameters Request parameters.
  10210. * @param {*} [options] Override http request option.
  10211. * @throws {RequiredError}
  10212. */
  10213. removePartner(requestParameters: PartnerApiRemovePartnerRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  10214. return localVarFp.removePartner(requestParameters.id, options).then((request) => request(axios, basePath));
  10215. },
  10216. };
  10217. };
  10218. /**
  10219. * Request parameters for createPartner operation in PartnerApi.
  10220. * @export
  10221. * @interface PartnerApiCreatePartnerRequest
  10222. */
  10223. export interface PartnerApiCreatePartnerRequest {
  10224. /**
  10225. *
  10226. * @type {string}
  10227. * @memberof PartnerApiCreatePartner
  10228. */
  10229. readonly id: string
  10230. }
  10231. /**
  10232. * Request parameters for getPartners operation in PartnerApi.
  10233. * @export
  10234. * @interface PartnerApiGetPartnersRequest
  10235. */
  10236. export interface PartnerApiGetPartnersRequest {
  10237. /**
  10238. *
  10239. * @type {'shared-by' | 'shared-with'}
  10240. * @memberof PartnerApiGetPartners
  10241. */
  10242. readonly direction: 'shared-by' | 'shared-with'
  10243. }
  10244. /**
  10245. * Request parameters for removePartner operation in PartnerApi.
  10246. * @export
  10247. * @interface PartnerApiRemovePartnerRequest
  10248. */
  10249. export interface PartnerApiRemovePartnerRequest {
  10250. /**
  10251. *
  10252. * @type {string}
  10253. * @memberof PartnerApiRemovePartner
  10254. */
  10255. readonly id: string
  10256. }
  10257. /**
  10258. * PartnerApi - object-oriented interface
  10259. * @export
  10260. * @class PartnerApi
  10261. * @extends {BaseAPI}
  10262. */
  10263. export class PartnerApi extends BaseAPI {
  10264. /**
  10265. *
  10266. * @param {PartnerApiCreatePartnerRequest} requestParameters Request parameters.
  10267. * @param {*} [options] Override http request option.
  10268. * @throws {RequiredError}
  10269. * @memberof PartnerApi
  10270. */
  10271. public createPartner(requestParameters: PartnerApiCreatePartnerRequest, options?: AxiosRequestConfig) {
  10272. return PartnerApiFp(this.configuration).createPartner(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  10273. }
  10274. /**
  10275. *
  10276. * @param {PartnerApiGetPartnersRequest} requestParameters Request parameters.
  10277. * @param {*} [options] Override http request option.
  10278. * @throws {RequiredError}
  10279. * @memberof PartnerApi
  10280. */
  10281. public getPartners(requestParameters: PartnerApiGetPartnersRequest, options?: AxiosRequestConfig) {
  10282. return PartnerApiFp(this.configuration).getPartners(requestParameters.direction, options).then((request) => request(this.axios, this.basePath));
  10283. }
  10284. /**
  10285. *
  10286. * @param {PartnerApiRemovePartnerRequest} requestParameters Request parameters.
  10287. * @param {*} [options] Override http request option.
  10288. * @throws {RequiredError}
  10289. * @memberof PartnerApi
  10290. */
  10291. public removePartner(requestParameters: PartnerApiRemovePartnerRequest, options?: AxiosRequestConfig) {
  10292. return PartnerApiFp(this.configuration).removePartner(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  10293. }
  10294. }
  10295. /**
  10296. * PersonApi - axios parameter creator
  10297. * @export
  10298. */
  10299. export const PersonApiAxiosParamCreator = function (configuration?: Configuration) {
  10300. return {
  10301. /**
  10302. *
  10303. * @param {boolean} [withHidden]
  10304. * @param {*} [options] Override http request option.
  10305. * @throws {RequiredError}
  10306. */
  10307. getAllPeople: async (withHidden?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10308. const localVarPath = `/person`;
  10309. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10310. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10311. let baseOptions;
  10312. if (configuration) {
  10313. baseOptions = configuration.baseOptions;
  10314. }
  10315. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  10316. const localVarHeaderParameter = {} as any;
  10317. const localVarQueryParameter = {} as any;
  10318. // authentication cookie required
  10319. // authentication api_key required
  10320. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10321. // authentication bearer required
  10322. // http bearer authentication required
  10323. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10324. if (withHidden !== undefined) {
  10325. localVarQueryParameter['withHidden'] = withHidden;
  10326. }
  10327. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10328. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10329. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10330. return {
  10331. url: toPathString(localVarUrlObj),
  10332. options: localVarRequestOptions,
  10333. };
  10334. },
  10335. /**
  10336. *
  10337. * @param {string} id
  10338. * @param {*} [options] Override http request option.
  10339. * @throws {RequiredError}
  10340. */
  10341. getPerson: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10342. // verify required parameter 'id' is not null or undefined
  10343. assertParamExists('getPerson', 'id', id)
  10344. const localVarPath = `/person/{id}`
  10345. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10346. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10347. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10348. let baseOptions;
  10349. if (configuration) {
  10350. baseOptions = configuration.baseOptions;
  10351. }
  10352. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  10353. const localVarHeaderParameter = {} as any;
  10354. const localVarQueryParameter = {} as any;
  10355. // authentication cookie required
  10356. // authentication api_key required
  10357. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10358. // authentication bearer required
  10359. // http bearer authentication required
  10360. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10361. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10362. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10363. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10364. return {
  10365. url: toPathString(localVarUrlObj),
  10366. options: localVarRequestOptions,
  10367. };
  10368. },
  10369. /**
  10370. *
  10371. * @param {string} id
  10372. * @param {*} [options] Override http request option.
  10373. * @throws {RequiredError}
  10374. */
  10375. getPersonAssets: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10376. // verify required parameter 'id' is not null or undefined
  10377. assertParamExists('getPersonAssets', 'id', id)
  10378. const localVarPath = `/person/{id}/assets`
  10379. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10380. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10381. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10382. let baseOptions;
  10383. if (configuration) {
  10384. baseOptions = configuration.baseOptions;
  10385. }
  10386. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  10387. const localVarHeaderParameter = {} as any;
  10388. const localVarQueryParameter = {} as any;
  10389. // authentication cookie required
  10390. // authentication api_key required
  10391. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10392. // authentication bearer required
  10393. // http bearer authentication required
  10394. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10395. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10396. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10397. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10398. return {
  10399. url: toPathString(localVarUrlObj),
  10400. options: localVarRequestOptions,
  10401. };
  10402. },
  10403. /**
  10404. *
  10405. * @param {string} id
  10406. * @param {*} [options] Override http request option.
  10407. * @throws {RequiredError}
  10408. */
  10409. getPersonThumbnail: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10410. // verify required parameter 'id' is not null or undefined
  10411. assertParamExists('getPersonThumbnail', 'id', id)
  10412. const localVarPath = `/person/{id}/thumbnail`
  10413. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10414. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10415. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10416. let baseOptions;
  10417. if (configuration) {
  10418. baseOptions = configuration.baseOptions;
  10419. }
  10420. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  10421. const localVarHeaderParameter = {} as any;
  10422. const localVarQueryParameter = {} as any;
  10423. // authentication cookie required
  10424. // authentication api_key required
  10425. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10426. // authentication bearer required
  10427. // http bearer authentication required
  10428. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10429. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10430. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10431. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10432. return {
  10433. url: toPathString(localVarUrlObj),
  10434. options: localVarRequestOptions,
  10435. };
  10436. },
  10437. /**
  10438. *
  10439. * @param {string} id
  10440. * @param {MergePersonDto} mergePersonDto
  10441. * @param {*} [options] Override http request option.
  10442. * @throws {RequiredError}
  10443. */
  10444. mergePerson: async (id: string, mergePersonDto: MergePersonDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10445. // verify required parameter 'id' is not null or undefined
  10446. assertParamExists('mergePerson', 'id', id)
  10447. // verify required parameter 'mergePersonDto' is not null or undefined
  10448. assertParamExists('mergePerson', 'mergePersonDto', mergePersonDto)
  10449. const localVarPath = `/person/{id}/merge`
  10450. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10451. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10452. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10453. let baseOptions;
  10454. if (configuration) {
  10455. baseOptions = configuration.baseOptions;
  10456. }
  10457. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  10458. const localVarHeaderParameter = {} as any;
  10459. const localVarQueryParameter = {} as any;
  10460. // authentication cookie required
  10461. // authentication api_key required
  10462. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10463. // authentication bearer required
  10464. // http bearer authentication required
  10465. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10466. localVarHeaderParameter['Content-Type'] = 'application/json';
  10467. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10468. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10469. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10470. localVarRequestOptions.data = serializeDataIfNeeded(mergePersonDto, localVarRequestOptions, configuration)
  10471. return {
  10472. url: toPathString(localVarUrlObj),
  10473. options: localVarRequestOptions,
  10474. };
  10475. },
  10476. /**
  10477. *
  10478. * @param {PeopleUpdateDto} peopleUpdateDto
  10479. * @param {*} [options] Override http request option.
  10480. * @throws {RequiredError}
  10481. */
  10482. updatePeople: async (peopleUpdateDto: PeopleUpdateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10483. // verify required parameter 'peopleUpdateDto' is not null or undefined
  10484. assertParamExists('updatePeople', 'peopleUpdateDto', peopleUpdateDto)
  10485. const localVarPath = `/person`;
  10486. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10487. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10488. let baseOptions;
  10489. if (configuration) {
  10490. baseOptions = configuration.baseOptions;
  10491. }
  10492. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  10493. const localVarHeaderParameter = {} as any;
  10494. const localVarQueryParameter = {} as any;
  10495. // authentication cookie required
  10496. // authentication api_key required
  10497. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10498. // authentication bearer required
  10499. // http bearer authentication required
  10500. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10501. localVarHeaderParameter['Content-Type'] = 'application/json';
  10502. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10503. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10504. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10505. localVarRequestOptions.data = serializeDataIfNeeded(peopleUpdateDto, localVarRequestOptions, configuration)
  10506. return {
  10507. url: toPathString(localVarUrlObj),
  10508. options: localVarRequestOptions,
  10509. };
  10510. },
  10511. /**
  10512. *
  10513. * @param {string} id
  10514. * @param {PersonUpdateDto} personUpdateDto
  10515. * @param {*} [options] Override http request option.
  10516. * @throws {RequiredError}
  10517. */
  10518. updatePerson: async (id: string, personUpdateDto: PersonUpdateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10519. // verify required parameter 'id' is not null or undefined
  10520. assertParamExists('updatePerson', 'id', id)
  10521. // verify required parameter 'personUpdateDto' is not null or undefined
  10522. assertParamExists('updatePerson', 'personUpdateDto', personUpdateDto)
  10523. const localVarPath = `/person/{id}`
  10524. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10525. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10526. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10527. let baseOptions;
  10528. if (configuration) {
  10529. baseOptions = configuration.baseOptions;
  10530. }
  10531. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  10532. const localVarHeaderParameter = {} as any;
  10533. const localVarQueryParameter = {} as any;
  10534. // authentication cookie required
  10535. // authentication api_key required
  10536. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10537. // authentication bearer required
  10538. // http bearer authentication required
  10539. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10540. localVarHeaderParameter['Content-Type'] = 'application/json';
  10541. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10542. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10543. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10544. localVarRequestOptions.data = serializeDataIfNeeded(personUpdateDto, localVarRequestOptions, configuration)
  10545. return {
  10546. url: toPathString(localVarUrlObj),
  10547. options: localVarRequestOptions,
  10548. };
  10549. },
  10550. }
  10551. };
  10552. /**
  10553. * PersonApi - functional programming interface
  10554. * @export
  10555. */
  10556. export const PersonApiFp = function(configuration?: Configuration) {
  10557. const localVarAxiosParamCreator = PersonApiAxiosParamCreator(configuration)
  10558. return {
  10559. /**
  10560. *
  10561. * @param {boolean} [withHidden]
  10562. * @param {*} [options] Override http request option.
  10563. * @throws {RequiredError}
  10564. */
  10565. async getAllPeople(withHidden?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PeopleResponseDto>> {
  10566. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllPeople(withHidden, options);
  10567. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10568. },
  10569. /**
  10570. *
  10571. * @param {string} id
  10572. * @param {*} [options] Override http request option.
  10573. * @throws {RequiredError}
  10574. */
  10575. async getPerson(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PersonResponseDto>> {
  10576. const localVarAxiosArgs = await localVarAxiosParamCreator.getPerson(id, options);
  10577. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10578. },
  10579. /**
  10580. *
  10581. * @param {string} id
  10582. * @param {*} [options] Override http request option.
  10583. * @throws {RequiredError}
  10584. */
  10585. async getPersonAssets(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  10586. const localVarAxiosArgs = await localVarAxiosParamCreator.getPersonAssets(id, options);
  10587. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10588. },
  10589. /**
  10590. *
  10591. * @param {string} id
  10592. * @param {*} [options] Override http request option.
  10593. * @throws {RequiredError}
  10594. */
  10595. async getPersonThumbnail(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
  10596. const localVarAxiosArgs = await localVarAxiosParamCreator.getPersonThumbnail(id, options);
  10597. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10598. },
  10599. /**
  10600. *
  10601. * @param {string} id
  10602. * @param {MergePersonDto} mergePersonDto
  10603. * @param {*} [options] Override http request option.
  10604. * @throws {RequiredError}
  10605. */
  10606. async mergePerson(id: string, mergePersonDto: MergePersonDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BulkIdResponseDto>>> {
  10607. const localVarAxiosArgs = await localVarAxiosParamCreator.mergePerson(id, mergePersonDto, options);
  10608. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10609. },
  10610. /**
  10611. *
  10612. * @param {PeopleUpdateDto} peopleUpdateDto
  10613. * @param {*} [options] Override http request option.
  10614. * @throws {RequiredError}
  10615. */
  10616. async updatePeople(peopleUpdateDto: PeopleUpdateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BulkIdResponseDto>>> {
  10617. const localVarAxiosArgs = await localVarAxiosParamCreator.updatePeople(peopleUpdateDto, options);
  10618. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10619. },
  10620. /**
  10621. *
  10622. * @param {string} id
  10623. * @param {PersonUpdateDto} personUpdateDto
  10624. * @param {*} [options] Override http request option.
  10625. * @throws {RequiredError}
  10626. */
  10627. async updatePerson(id: string, personUpdateDto: PersonUpdateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PersonResponseDto>> {
  10628. const localVarAxiosArgs = await localVarAxiosParamCreator.updatePerson(id, personUpdateDto, options);
  10629. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10630. },
  10631. }
  10632. };
  10633. /**
  10634. * PersonApi - factory interface
  10635. * @export
  10636. */
  10637. export const PersonApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  10638. const localVarFp = PersonApiFp(configuration)
  10639. return {
  10640. /**
  10641. *
  10642. * @param {PersonApiGetAllPeopleRequest} requestParameters Request parameters.
  10643. * @param {*} [options] Override http request option.
  10644. * @throws {RequiredError}
  10645. */
  10646. getAllPeople(requestParameters: PersonApiGetAllPeopleRequest = {}, options?: AxiosRequestConfig): AxiosPromise<PeopleResponseDto> {
  10647. return localVarFp.getAllPeople(requestParameters.withHidden, options).then((request) => request(axios, basePath));
  10648. },
  10649. /**
  10650. *
  10651. * @param {PersonApiGetPersonRequest} requestParameters Request parameters.
  10652. * @param {*} [options] Override http request option.
  10653. * @throws {RequiredError}
  10654. */
  10655. getPerson(requestParameters: PersonApiGetPersonRequest, options?: AxiosRequestConfig): AxiosPromise<PersonResponseDto> {
  10656. return localVarFp.getPerson(requestParameters.id, options).then((request) => request(axios, basePath));
  10657. },
  10658. /**
  10659. *
  10660. * @param {PersonApiGetPersonAssetsRequest} requestParameters Request parameters.
  10661. * @param {*} [options] Override http request option.
  10662. * @throws {RequiredError}
  10663. */
  10664. getPersonAssets(requestParameters: PersonApiGetPersonAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
  10665. return localVarFp.getPersonAssets(requestParameters.id, options).then((request) => request(axios, basePath));
  10666. },
  10667. /**
  10668. *
  10669. * @param {PersonApiGetPersonThumbnailRequest} requestParameters Request parameters.
  10670. * @param {*} [options] Override http request option.
  10671. * @throws {RequiredError}
  10672. */
  10673. getPersonThumbnail(requestParameters: PersonApiGetPersonThumbnailRequest, options?: AxiosRequestConfig): AxiosPromise<File> {
  10674. return localVarFp.getPersonThumbnail(requestParameters.id, options).then((request) => request(axios, basePath));
  10675. },
  10676. /**
  10677. *
  10678. * @param {PersonApiMergePersonRequest} requestParameters Request parameters.
  10679. * @param {*} [options] Override http request option.
  10680. * @throws {RequiredError}
  10681. */
  10682. mergePerson(requestParameters: PersonApiMergePersonRequest, options?: AxiosRequestConfig): AxiosPromise<Array<BulkIdResponseDto>> {
  10683. return localVarFp.mergePerson(requestParameters.id, requestParameters.mergePersonDto, options).then((request) => request(axios, basePath));
  10684. },
  10685. /**
  10686. *
  10687. * @param {PersonApiUpdatePeopleRequest} requestParameters Request parameters.
  10688. * @param {*} [options] Override http request option.
  10689. * @throws {RequiredError}
  10690. */
  10691. updatePeople(requestParameters: PersonApiUpdatePeopleRequest, options?: AxiosRequestConfig): AxiosPromise<Array<BulkIdResponseDto>> {
  10692. return localVarFp.updatePeople(requestParameters.peopleUpdateDto, options).then((request) => request(axios, basePath));
  10693. },
  10694. /**
  10695. *
  10696. * @param {PersonApiUpdatePersonRequest} requestParameters Request parameters.
  10697. * @param {*} [options] Override http request option.
  10698. * @throws {RequiredError}
  10699. */
  10700. updatePerson(requestParameters: PersonApiUpdatePersonRequest, options?: AxiosRequestConfig): AxiosPromise<PersonResponseDto> {
  10701. return localVarFp.updatePerson(requestParameters.id, requestParameters.personUpdateDto, options).then((request) => request(axios, basePath));
  10702. },
  10703. };
  10704. };
  10705. /**
  10706. * Request parameters for getAllPeople operation in PersonApi.
  10707. * @export
  10708. * @interface PersonApiGetAllPeopleRequest
  10709. */
  10710. export interface PersonApiGetAllPeopleRequest {
  10711. /**
  10712. *
  10713. * @type {boolean}
  10714. * @memberof PersonApiGetAllPeople
  10715. */
  10716. readonly withHidden?: boolean
  10717. }
  10718. /**
  10719. * Request parameters for getPerson operation in PersonApi.
  10720. * @export
  10721. * @interface PersonApiGetPersonRequest
  10722. */
  10723. export interface PersonApiGetPersonRequest {
  10724. /**
  10725. *
  10726. * @type {string}
  10727. * @memberof PersonApiGetPerson
  10728. */
  10729. readonly id: string
  10730. }
  10731. /**
  10732. * Request parameters for getPersonAssets operation in PersonApi.
  10733. * @export
  10734. * @interface PersonApiGetPersonAssetsRequest
  10735. */
  10736. export interface PersonApiGetPersonAssetsRequest {
  10737. /**
  10738. *
  10739. * @type {string}
  10740. * @memberof PersonApiGetPersonAssets
  10741. */
  10742. readonly id: string
  10743. }
  10744. /**
  10745. * Request parameters for getPersonThumbnail operation in PersonApi.
  10746. * @export
  10747. * @interface PersonApiGetPersonThumbnailRequest
  10748. */
  10749. export interface PersonApiGetPersonThumbnailRequest {
  10750. /**
  10751. *
  10752. * @type {string}
  10753. * @memberof PersonApiGetPersonThumbnail
  10754. */
  10755. readonly id: string
  10756. }
  10757. /**
  10758. * Request parameters for mergePerson operation in PersonApi.
  10759. * @export
  10760. * @interface PersonApiMergePersonRequest
  10761. */
  10762. export interface PersonApiMergePersonRequest {
  10763. /**
  10764. *
  10765. * @type {string}
  10766. * @memberof PersonApiMergePerson
  10767. */
  10768. readonly id: string
  10769. /**
  10770. *
  10771. * @type {MergePersonDto}
  10772. * @memberof PersonApiMergePerson
  10773. */
  10774. readonly mergePersonDto: MergePersonDto
  10775. }
  10776. /**
  10777. * Request parameters for updatePeople operation in PersonApi.
  10778. * @export
  10779. * @interface PersonApiUpdatePeopleRequest
  10780. */
  10781. export interface PersonApiUpdatePeopleRequest {
  10782. /**
  10783. *
  10784. * @type {PeopleUpdateDto}
  10785. * @memberof PersonApiUpdatePeople
  10786. */
  10787. readonly peopleUpdateDto: PeopleUpdateDto
  10788. }
  10789. /**
  10790. * Request parameters for updatePerson operation in PersonApi.
  10791. * @export
  10792. * @interface PersonApiUpdatePersonRequest
  10793. */
  10794. export interface PersonApiUpdatePersonRequest {
  10795. /**
  10796. *
  10797. * @type {string}
  10798. * @memberof PersonApiUpdatePerson
  10799. */
  10800. readonly id: string
  10801. /**
  10802. *
  10803. * @type {PersonUpdateDto}
  10804. * @memberof PersonApiUpdatePerson
  10805. */
  10806. readonly personUpdateDto: PersonUpdateDto
  10807. }
  10808. /**
  10809. * PersonApi - object-oriented interface
  10810. * @export
  10811. * @class PersonApi
  10812. * @extends {BaseAPI}
  10813. */
  10814. export class PersonApi extends BaseAPI {
  10815. /**
  10816. *
  10817. * @param {PersonApiGetAllPeopleRequest} requestParameters Request parameters.
  10818. * @param {*} [options] Override http request option.
  10819. * @throws {RequiredError}
  10820. * @memberof PersonApi
  10821. */
  10822. public getAllPeople(requestParameters: PersonApiGetAllPeopleRequest = {}, options?: AxiosRequestConfig) {
  10823. return PersonApiFp(this.configuration).getAllPeople(requestParameters.withHidden, options).then((request) => request(this.axios, this.basePath));
  10824. }
  10825. /**
  10826. *
  10827. * @param {PersonApiGetPersonRequest} requestParameters Request parameters.
  10828. * @param {*} [options] Override http request option.
  10829. * @throws {RequiredError}
  10830. * @memberof PersonApi
  10831. */
  10832. public getPerson(requestParameters: PersonApiGetPersonRequest, options?: AxiosRequestConfig) {
  10833. return PersonApiFp(this.configuration).getPerson(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  10834. }
  10835. /**
  10836. *
  10837. * @param {PersonApiGetPersonAssetsRequest} requestParameters Request parameters.
  10838. * @param {*} [options] Override http request option.
  10839. * @throws {RequiredError}
  10840. * @memberof PersonApi
  10841. */
  10842. public getPersonAssets(requestParameters: PersonApiGetPersonAssetsRequest, options?: AxiosRequestConfig) {
  10843. return PersonApiFp(this.configuration).getPersonAssets(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  10844. }
  10845. /**
  10846. *
  10847. * @param {PersonApiGetPersonThumbnailRequest} requestParameters Request parameters.
  10848. * @param {*} [options] Override http request option.
  10849. * @throws {RequiredError}
  10850. * @memberof PersonApi
  10851. */
  10852. public getPersonThumbnail(requestParameters: PersonApiGetPersonThumbnailRequest, options?: AxiosRequestConfig) {
  10853. return PersonApiFp(this.configuration).getPersonThumbnail(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  10854. }
  10855. /**
  10856. *
  10857. * @param {PersonApiMergePersonRequest} requestParameters Request parameters.
  10858. * @param {*} [options] Override http request option.
  10859. * @throws {RequiredError}
  10860. * @memberof PersonApi
  10861. */
  10862. public mergePerson(requestParameters: PersonApiMergePersonRequest, options?: AxiosRequestConfig) {
  10863. return PersonApiFp(this.configuration).mergePerson(requestParameters.id, requestParameters.mergePersonDto, options).then((request) => request(this.axios, this.basePath));
  10864. }
  10865. /**
  10866. *
  10867. * @param {PersonApiUpdatePeopleRequest} requestParameters Request parameters.
  10868. * @param {*} [options] Override http request option.
  10869. * @throws {RequiredError}
  10870. * @memberof PersonApi
  10871. */
  10872. public updatePeople(requestParameters: PersonApiUpdatePeopleRequest, options?: AxiosRequestConfig) {
  10873. return PersonApiFp(this.configuration).updatePeople(requestParameters.peopleUpdateDto, options).then((request) => request(this.axios, this.basePath));
  10874. }
  10875. /**
  10876. *
  10877. * @param {PersonApiUpdatePersonRequest} requestParameters Request parameters.
  10878. * @param {*} [options] Override http request option.
  10879. * @throws {RequiredError}
  10880. * @memberof PersonApi
  10881. */
  10882. public updatePerson(requestParameters: PersonApiUpdatePersonRequest, options?: AxiosRequestConfig) {
  10883. return PersonApiFp(this.configuration).updatePerson(requestParameters.id, requestParameters.personUpdateDto, options).then((request) => request(this.axios, this.basePath));
  10884. }
  10885. }
  10886. /**
  10887. * SearchApi - axios parameter creator
  10888. * @export
  10889. */
  10890. export const SearchApiAxiosParamCreator = function (configuration?: Configuration) {
  10891. return {
  10892. /**
  10893. *
  10894. * @param {*} [options] Override http request option.
  10895. * @throws {RequiredError}
  10896. */
  10897. getExploreData: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10898. const localVarPath = `/search/explore`;
  10899. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10900. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10901. let baseOptions;
  10902. if (configuration) {
  10903. baseOptions = configuration.baseOptions;
  10904. }
  10905. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  10906. const localVarHeaderParameter = {} as any;
  10907. const localVarQueryParameter = {} as any;
  10908. // authentication cookie required
  10909. // authentication api_key required
  10910. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10911. // authentication bearer required
  10912. // http bearer authentication required
  10913. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10914. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10915. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10916. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10917. return {
  10918. url: toPathString(localVarUrlObj),
  10919. options: localVarRequestOptions,
  10920. };
  10921. },
  10922. /**
  10923. *
  10924. * @param {string} [q]
  10925. * @param {string} [query]
  10926. * @param {boolean} [clip]
  10927. * @param {'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER'} [type]
  10928. * @param {boolean} [isFavorite]
  10929. * @param {boolean} [isArchived]
  10930. * @param {string} [exifInfoCity]
  10931. * @param {string} [exifInfoState]
  10932. * @param {string} [exifInfoCountry]
  10933. * @param {string} [exifInfoMake]
  10934. * @param {string} [exifInfoModel]
  10935. * @param {string} [exifInfoProjectionType]
  10936. * @param {Array<string>} [smartInfoObjects]
  10937. * @param {Array<string>} [smartInfoTags]
  10938. * @param {boolean} [recent]
  10939. * @param {boolean} [motion]
  10940. * @param {*} [options] Override http request option.
  10941. * @throws {RequiredError}
  10942. */
  10943. 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> => {
  10944. const localVarPath = `/search`;
  10945. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10946. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10947. let baseOptions;
  10948. if (configuration) {
  10949. baseOptions = configuration.baseOptions;
  10950. }
  10951. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  10952. const localVarHeaderParameter = {} as any;
  10953. const localVarQueryParameter = {} as any;
  10954. // authentication cookie required
  10955. // authentication api_key required
  10956. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10957. // authentication bearer required
  10958. // http bearer authentication required
  10959. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10960. if (q !== undefined) {
  10961. localVarQueryParameter['q'] = q;
  10962. }
  10963. if (query !== undefined) {
  10964. localVarQueryParameter['query'] = query;
  10965. }
  10966. if (clip !== undefined) {
  10967. localVarQueryParameter['clip'] = clip;
  10968. }
  10969. if (type !== undefined) {
  10970. localVarQueryParameter['type'] = type;
  10971. }
  10972. if (isFavorite !== undefined) {
  10973. localVarQueryParameter['isFavorite'] = isFavorite;
  10974. }
  10975. if (isArchived !== undefined) {
  10976. localVarQueryParameter['isArchived'] = isArchived;
  10977. }
  10978. if (exifInfoCity !== undefined) {
  10979. localVarQueryParameter['exifInfo.city'] = exifInfoCity;
  10980. }
  10981. if (exifInfoState !== undefined) {
  10982. localVarQueryParameter['exifInfo.state'] = exifInfoState;
  10983. }
  10984. if (exifInfoCountry !== undefined) {
  10985. localVarQueryParameter['exifInfo.country'] = exifInfoCountry;
  10986. }
  10987. if (exifInfoMake !== undefined) {
  10988. localVarQueryParameter['exifInfo.make'] = exifInfoMake;
  10989. }
  10990. if (exifInfoModel !== undefined) {
  10991. localVarQueryParameter['exifInfo.model'] = exifInfoModel;
  10992. }
  10993. if (exifInfoProjectionType !== undefined) {
  10994. localVarQueryParameter['exifInfo.projectionType'] = exifInfoProjectionType;
  10995. }
  10996. if (smartInfoObjects) {
  10997. localVarQueryParameter['smartInfo.objects'] = smartInfoObjects;
  10998. }
  10999. if (smartInfoTags) {
  11000. localVarQueryParameter['smartInfo.tags'] = smartInfoTags;
  11001. }
  11002. if (recent !== undefined) {
  11003. localVarQueryParameter['recent'] = recent;
  11004. }
  11005. if (motion !== undefined) {
  11006. localVarQueryParameter['motion'] = motion;
  11007. }
  11008. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11009. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11010. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11011. return {
  11012. url: toPathString(localVarUrlObj),
  11013. options: localVarRequestOptions,
  11014. };
  11015. },
  11016. /**
  11017. *
  11018. * @param {string} name
  11019. * @param {*} [options] Override http request option.
  11020. * @throws {RequiredError}
  11021. */
  11022. searchPerson: async (name: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11023. // verify required parameter 'name' is not null or undefined
  11024. assertParamExists('searchPerson', 'name', name)
  11025. const localVarPath = `/search/person`;
  11026. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11027. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11028. let baseOptions;
  11029. if (configuration) {
  11030. baseOptions = configuration.baseOptions;
  11031. }
  11032. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11033. const localVarHeaderParameter = {} as any;
  11034. const localVarQueryParameter = {} as any;
  11035. // authentication cookie required
  11036. // authentication api_key required
  11037. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11038. // authentication bearer required
  11039. // http bearer authentication required
  11040. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11041. if (name !== undefined) {
  11042. localVarQueryParameter['name'] = name;
  11043. }
  11044. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11045. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11046. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11047. return {
  11048. url: toPathString(localVarUrlObj),
  11049. options: localVarRequestOptions,
  11050. };
  11051. },
  11052. }
  11053. };
  11054. /**
  11055. * SearchApi - functional programming interface
  11056. * @export
  11057. */
  11058. export const SearchApiFp = function(configuration?: Configuration) {
  11059. const localVarAxiosParamCreator = SearchApiAxiosParamCreator(configuration)
  11060. return {
  11061. /**
  11062. *
  11063. * @param {*} [options] Override http request option.
  11064. * @throws {RequiredError}
  11065. */
  11066. async getExploreData(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<SearchExploreResponseDto>>> {
  11067. const localVarAxiosArgs = await localVarAxiosParamCreator.getExploreData(options);
  11068. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11069. },
  11070. /**
  11071. *
  11072. * @param {string} [q]
  11073. * @param {string} [query]
  11074. * @param {boolean} [clip]
  11075. * @param {'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER'} [type]
  11076. * @param {boolean} [isFavorite]
  11077. * @param {boolean} [isArchived]
  11078. * @param {string} [exifInfoCity]
  11079. * @param {string} [exifInfoState]
  11080. * @param {string} [exifInfoCountry]
  11081. * @param {string} [exifInfoMake]
  11082. * @param {string} [exifInfoModel]
  11083. * @param {string} [exifInfoProjectionType]
  11084. * @param {Array<string>} [smartInfoObjects]
  11085. * @param {Array<string>} [smartInfoTags]
  11086. * @param {boolean} [recent]
  11087. * @param {boolean} [motion]
  11088. * @param {*} [options] Override http request option.
  11089. * @throws {RequiredError}
  11090. */
  11091. 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>> {
  11092. const localVarAxiosArgs = await localVarAxiosParamCreator.search(q, query, clip, type, isFavorite, isArchived, exifInfoCity, exifInfoState, exifInfoCountry, exifInfoMake, exifInfoModel, exifInfoProjectionType, smartInfoObjects, smartInfoTags, recent, motion, options);
  11093. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11094. },
  11095. /**
  11096. *
  11097. * @param {string} name
  11098. * @param {*} [options] Override http request option.
  11099. * @throws {RequiredError}
  11100. */
  11101. async searchPerson(name: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<PersonResponseDto>>> {
  11102. const localVarAxiosArgs = await localVarAxiosParamCreator.searchPerson(name, options);
  11103. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11104. },
  11105. }
  11106. };
  11107. /**
  11108. * SearchApi - factory interface
  11109. * @export
  11110. */
  11111. export const SearchApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  11112. const localVarFp = SearchApiFp(configuration)
  11113. return {
  11114. /**
  11115. *
  11116. * @param {*} [options] Override http request option.
  11117. * @throws {RequiredError}
  11118. */
  11119. getExploreData(options?: AxiosRequestConfig): AxiosPromise<Array<SearchExploreResponseDto>> {
  11120. return localVarFp.getExploreData(options).then((request) => request(axios, basePath));
  11121. },
  11122. /**
  11123. *
  11124. * @param {SearchApiSearchRequest} requestParameters Request parameters.
  11125. * @param {*} [options] Override http request option.
  11126. * @throws {RequiredError}
  11127. */
  11128. search(requestParameters: SearchApiSearchRequest = {}, options?: AxiosRequestConfig): AxiosPromise<SearchResponseDto> {
  11129. 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));
  11130. },
  11131. /**
  11132. *
  11133. * @param {SearchApiSearchPersonRequest} requestParameters Request parameters.
  11134. * @param {*} [options] Override http request option.
  11135. * @throws {RequiredError}
  11136. */
  11137. searchPerson(requestParameters: SearchApiSearchPersonRequest, options?: AxiosRequestConfig): AxiosPromise<Array<PersonResponseDto>> {
  11138. return localVarFp.searchPerson(requestParameters.name, options).then((request) => request(axios, basePath));
  11139. },
  11140. };
  11141. };
  11142. /**
  11143. * Request parameters for search operation in SearchApi.
  11144. * @export
  11145. * @interface SearchApiSearchRequest
  11146. */
  11147. export interface SearchApiSearchRequest {
  11148. /**
  11149. *
  11150. * @type {string}
  11151. * @memberof SearchApiSearch
  11152. */
  11153. readonly q?: string
  11154. /**
  11155. *
  11156. * @type {string}
  11157. * @memberof SearchApiSearch
  11158. */
  11159. readonly query?: string
  11160. /**
  11161. *
  11162. * @type {boolean}
  11163. * @memberof SearchApiSearch
  11164. */
  11165. readonly clip?: boolean
  11166. /**
  11167. *
  11168. * @type {'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER'}
  11169. * @memberof SearchApiSearch
  11170. */
  11171. readonly type?: 'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER'
  11172. /**
  11173. *
  11174. * @type {boolean}
  11175. * @memberof SearchApiSearch
  11176. */
  11177. readonly isFavorite?: boolean
  11178. /**
  11179. *
  11180. * @type {boolean}
  11181. * @memberof SearchApiSearch
  11182. */
  11183. readonly isArchived?: boolean
  11184. /**
  11185. *
  11186. * @type {string}
  11187. * @memberof SearchApiSearch
  11188. */
  11189. readonly exifInfoCity?: string
  11190. /**
  11191. *
  11192. * @type {string}
  11193. * @memberof SearchApiSearch
  11194. */
  11195. readonly exifInfoState?: string
  11196. /**
  11197. *
  11198. * @type {string}
  11199. * @memberof SearchApiSearch
  11200. */
  11201. readonly exifInfoCountry?: string
  11202. /**
  11203. *
  11204. * @type {string}
  11205. * @memberof SearchApiSearch
  11206. */
  11207. readonly exifInfoMake?: string
  11208. /**
  11209. *
  11210. * @type {string}
  11211. * @memberof SearchApiSearch
  11212. */
  11213. readonly exifInfoModel?: string
  11214. /**
  11215. *
  11216. * @type {string}
  11217. * @memberof SearchApiSearch
  11218. */
  11219. readonly exifInfoProjectionType?: string
  11220. /**
  11221. *
  11222. * @type {Array<string>}
  11223. * @memberof SearchApiSearch
  11224. */
  11225. readonly smartInfoObjects?: Array<string>
  11226. /**
  11227. *
  11228. * @type {Array<string>}
  11229. * @memberof SearchApiSearch
  11230. */
  11231. readonly smartInfoTags?: Array<string>
  11232. /**
  11233. *
  11234. * @type {boolean}
  11235. * @memberof SearchApiSearch
  11236. */
  11237. readonly recent?: boolean
  11238. /**
  11239. *
  11240. * @type {boolean}
  11241. * @memberof SearchApiSearch
  11242. */
  11243. readonly motion?: boolean
  11244. }
  11245. /**
  11246. * Request parameters for searchPerson operation in SearchApi.
  11247. * @export
  11248. * @interface SearchApiSearchPersonRequest
  11249. */
  11250. export interface SearchApiSearchPersonRequest {
  11251. /**
  11252. *
  11253. * @type {string}
  11254. * @memberof SearchApiSearchPerson
  11255. */
  11256. readonly name: string
  11257. }
  11258. /**
  11259. * SearchApi - object-oriented interface
  11260. * @export
  11261. * @class SearchApi
  11262. * @extends {BaseAPI}
  11263. */
  11264. export class SearchApi extends BaseAPI {
  11265. /**
  11266. *
  11267. * @param {*} [options] Override http request option.
  11268. * @throws {RequiredError}
  11269. * @memberof SearchApi
  11270. */
  11271. public getExploreData(options?: AxiosRequestConfig) {
  11272. return SearchApiFp(this.configuration).getExploreData(options).then((request) => request(this.axios, this.basePath));
  11273. }
  11274. /**
  11275. *
  11276. * @param {SearchApiSearchRequest} requestParameters Request parameters.
  11277. * @param {*} [options] Override http request option.
  11278. * @throws {RequiredError}
  11279. * @memberof SearchApi
  11280. */
  11281. public search(requestParameters: SearchApiSearchRequest = {}, options?: AxiosRequestConfig) {
  11282. 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));
  11283. }
  11284. /**
  11285. *
  11286. * @param {SearchApiSearchPersonRequest} requestParameters Request parameters.
  11287. * @param {*} [options] Override http request option.
  11288. * @throws {RequiredError}
  11289. * @memberof SearchApi
  11290. */
  11291. public searchPerson(requestParameters: SearchApiSearchPersonRequest, options?: AxiosRequestConfig) {
  11292. return SearchApiFp(this.configuration).searchPerson(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
  11293. }
  11294. }
  11295. /**
  11296. * ServerInfoApi - axios parameter creator
  11297. * @export
  11298. */
  11299. export const ServerInfoApiAxiosParamCreator = function (configuration?: Configuration) {
  11300. return {
  11301. /**
  11302. *
  11303. * @param {*} [options] Override http request option.
  11304. * @throws {RequiredError}
  11305. */
  11306. getServerConfig: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11307. const localVarPath = `/server-info/config`;
  11308. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11309. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11310. let baseOptions;
  11311. if (configuration) {
  11312. baseOptions = configuration.baseOptions;
  11313. }
  11314. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11315. const localVarHeaderParameter = {} as any;
  11316. const localVarQueryParameter = {} as any;
  11317. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11318. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11319. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11320. return {
  11321. url: toPathString(localVarUrlObj),
  11322. options: localVarRequestOptions,
  11323. };
  11324. },
  11325. /**
  11326. *
  11327. * @param {*} [options] Override http request option.
  11328. * @throws {RequiredError}
  11329. */
  11330. getServerFeatures: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11331. const localVarPath = `/server-info/features`;
  11332. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11333. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11334. let baseOptions;
  11335. if (configuration) {
  11336. baseOptions = configuration.baseOptions;
  11337. }
  11338. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11339. const localVarHeaderParameter = {} as any;
  11340. const localVarQueryParameter = {} as any;
  11341. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11342. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11343. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11344. return {
  11345. url: toPathString(localVarUrlObj),
  11346. options: localVarRequestOptions,
  11347. };
  11348. },
  11349. /**
  11350. *
  11351. * @param {*} [options] Override http request option.
  11352. * @throws {RequiredError}
  11353. */
  11354. getServerInfo: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11355. const localVarPath = `/server-info`;
  11356. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11357. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11358. let baseOptions;
  11359. if (configuration) {
  11360. baseOptions = configuration.baseOptions;
  11361. }
  11362. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11363. const localVarHeaderParameter = {} as any;
  11364. const localVarQueryParameter = {} as any;
  11365. // authentication cookie required
  11366. // authentication api_key required
  11367. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11368. // authentication bearer required
  11369. // http bearer authentication required
  11370. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11371. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11372. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11373. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11374. return {
  11375. url: toPathString(localVarUrlObj),
  11376. options: localVarRequestOptions,
  11377. };
  11378. },
  11379. /**
  11380. *
  11381. * @param {*} [options] Override http request option.
  11382. * @throws {RequiredError}
  11383. */
  11384. getServerVersion: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11385. const localVarPath = `/server-info/version`;
  11386. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11387. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11388. let baseOptions;
  11389. if (configuration) {
  11390. baseOptions = configuration.baseOptions;
  11391. }
  11392. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11393. const localVarHeaderParameter = {} as any;
  11394. const localVarQueryParameter = {} as any;
  11395. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11396. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11397. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11398. return {
  11399. url: toPathString(localVarUrlObj),
  11400. options: localVarRequestOptions,
  11401. };
  11402. },
  11403. /**
  11404. *
  11405. * @param {*} [options] Override http request option.
  11406. * @throws {RequiredError}
  11407. */
  11408. getStats: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11409. const localVarPath = `/server-info/stats`;
  11410. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11411. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11412. let baseOptions;
  11413. if (configuration) {
  11414. baseOptions = configuration.baseOptions;
  11415. }
  11416. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11417. const localVarHeaderParameter = {} as any;
  11418. const localVarQueryParameter = {} as any;
  11419. // authentication cookie required
  11420. // authentication api_key required
  11421. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11422. // authentication bearer required
  11423. // http bearer authentication required
  11424. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11425. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11426. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11427. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11428. return {
  11429. url: toPathString(localVarUrlObj),
  11430. options: localVarRequestOptions,
  11431. };
  11432. },
  11433. /**
  11434. *
  11435. * @param {*} [options] Override http request option.
  11436. * @throws {RequiredError}
  11437. */
  11438. getSupportedMediaTypes: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11439. const localVarPath = `/server-info/media-types`;
  11440. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11441. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11442. let baseOptions;
  11443. if (configuration) {
  11444. baseOptions = configuration.baseOptions;
  11445. }
  11446. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11447. const localVarHeaderParameter = {} as any;
  11448. const localVarQueryParameter = {} as any;
  11449. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11450. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11451. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11452. return {
  11453. url: toPathString(localVarUrlObj),
  11454. options: localVarRequestOptions,
  11455. };
  11456. },
  11457. /**
  11458. *
  11459. * @param {*} [options] Override http request option.
  11460. * @throws {RequiredError}
  11461. */
  11462. pingServer: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11463. const localVarPath = `/server-info/ping`;
  11464. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11465. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11466. let baseOptions;
  11467. if (configuration) {
  11468. baseOptions = configuration.baseOptions;
  11469. }
  11470. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11471. const localVarHeaderParameter = {} as any;
  11472. const localVarQueryParameter = {} as any;
  11473. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11474. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11475. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11476. return {
  11477. url: toPathString(localVarUrlObj),
  11478. options: localVarRequestOptions,
  11479. };
  11480. },
  11481. }
  11482. };
  11483. /**
  11484. * ServerInfoApi - functional programming interface
  11485. * @export
  11486. */
  11487. export const ServerInfoApiFp = function(configuration?: Configuration) {
  11488. const localVarAxiosParamCreator = ServerInfoApiAxiosParamCreator(configuration)
  11489. return {
  11490. /**
  11491. *
  11492. * @param {*} [options] Override http request option.
  11493. * @throws {RequiredError}
  11494. */
  11495. async getServerConfig(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerConfigDto>> {
  11496. const localVarAxiosArgs = await localVarAxiosParamCreator.getServerConfig(options);
  11497. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11498. },
  11499. /**
  11500. *
  11501. * @param {*} [options] Override http request option.
  11502. * @throws {RequiredError}
  11503. */
  11504. async getServerFeatures(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerFeaturesDto>> {
  11505. const localVarAxiosArgs = await localVarAxiosParamCreator.getServerFeatures(options);
  11506. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11507. },
  11508. /**
  11509. *
  11510. * @param {*} [options] Override http request option.
  11511. * @throws {RequiredError}
  11512. */
  11513. async getServerInfo(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerInfoResponseDto>> {
  11514. const localVarAxiosArgs = await localVarAxiosParamCreator.getServerInfo(options);
  11515. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11516. },
  11517. /**
  11518. *
  11519. * @param {*} [options] Override http request option.
  11520. * @throws {RequiredError}
  11521. */
  11522. async getServerVersion(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerVersionResponseDto>> {
  11523. const localVarAxiosArgs = await localVarAxiosParamCreator.getServerVersion(options);
  11524. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11525. },
  11526. /**
  11527. *
  11528. * @param {*} [options] Override http request option.
  11529. * @throws {RequiredError}
  11530. */
  11531. async getStats(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerStatsResponseDto>> {
  11532. const localVarAxiosArgs = await localVarAxiosParamCreator.getStats(options);
  11533. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11534. },
  11535. /**
  11536. *
  11537. * @param {*} [options] Override http request option.
  11538. * @throws {RequiredError}
  11539. */
  11540. async getSupportedMediaTypes(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerMediaTypesResponseDto>> {
  11541. const localVarAxiosArgs = await localVarAxiosParamCreator.getSupportedMediaTypes(options);
  11542. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11543. },
  11544. /**
  11545. *
  11546. * @param {*} [options] Override http request option.
  11547. * @throws {RequiredError}
  11548. */
  11549. async pingServer(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerPingResponse>> {
  11550. const localVarAxiosArgs = await localVarAxiosParamCreator.pingServer(options);
  11551. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11552. },
  11553. }
  11554. };
  11555. /**
  11556. * ServerInfoApi - factory interface
  11557. * @export
  11558. */
  11559. export const ServerInfoApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  11560. const localVarFp = ServerInfoApiFp(configuration)
  11561. return {
  11562. /**
  11563. *
  11564. * @param {*} [options] Override http request option.
  11565. * @throws {RequiredError}
  11566. */
  11567. getServerConfig(options?: AxiosRequestConfig): AxiosPromise<ServerConfigDto> {
  11568. return localVarFp.getServerConfig(options).then((request) => request(axios, basePath));
  11569. },
  11570. /**
  11571. *
  11572. * @param {*} [options] Override http request option.
  11573. * @throws {RequiredError}
  11574. */
  11575. getServerFeatures(options?: AxiosRequestConfig): AxiosPromise<ServerFeaturesDto> {
  11576. return localVarFp.getServerFeatures(options).then((request) => request(axios, basePath));
  11577. },
  11578. /**
  11579. *
  11580. * @param {*} [options] Override http request option.
  11581. * @throws {RequiredError}
  11582. */
  11583. getServerInfo(options?: AxiosRequestConfig): AxiosPromise<ServerInfoResponseDto> {
  11584. return localVarFp.getServerInfo(options).then((request) => request(axios, basePath));
  11585. },
  11586. /**
  11587. *
  11588. * @param {*} [options] Override http request option.
  11589. * @throws {RequiredError}
  11590. */
  11591. getServerVersion(options?: AxiosRequestConfig): AxiosPromise<ServerVersionResponseDto> {
  11592. return localVarFp.getServerVersion(options).then((request) => request(axios, basePath));
  11593. },
  11594. /**
  11595. *
  11596. * @param {*} [options] Override http request option.
  11597. * @throws {RequiredError}
  11598. */
  11599. getStats(options?: AxiosRequestConfig): AxiosPromise<ServerStatsResponseDto> {
  11600. return localVarFp.getStats(options).then((request) => request(axios, basePath));
  11601. },
  11602. /**
  11603. *
  11604. * @param {*} [options] Override http request option.
  11605. * @throws {RequiredError}
  11606. */
  11607. getSupportedMediaTypes(options?: AxiosRequestConfig): AxiosPromise<ServerMediaTypesResponseDto> {
  11608. return localVarFp.getSupportedMediaTypes(options).then((request) => request(axios, basePath));
  11609. },
  11610. /**
  11611. *
  11612. * @param {*} [options] Override http request option.
  11613. * @throws {RequiredError}
  11614. */
  11615. pingServer(options?: AxiosRequestConfig): AxiosPromise<ServerPingResponse> {
  11616. return localVarFp.pingServer(options).then((request) => request(axios, basePath));
  11617. },
  11618. };
  11619. };
  11620. /**
  11621. * ServerInfoApi - object-oriented interface
  11622. * @export
  11623. * @class ServerInfoApi
  11624. * @extends {BaseAPI}
  11625. */
  11626. export class ServerInfoApi extends BaseAPI {
  11627. /**
  11628. *
  11629. * @param {*} [options] Override http request option.
  11630. * @throws {RequiredError}
  11631. * @memberof ServerInfoApi
  11632. */
  11633. public getServerConfig(options?: AxiosRequestConfig) {
  11634. return ServerInfoApiFp(this.configuration).getServerConfig(options).then((request) => request(this.axios, this.basePath));
  11635. }
  11636. /**
  11637. *
  11638. * @param {*} [options] Override http request option.
  11639. * @throws {RequiredError}
  11640. * @memberof ServerInfoApi
  11641. */
  11642. public getServerFeatures(options?: AxiosRequestConfig) {
  11643. return ServerInfoApiFp(this.configuration).getServerFeatures(options).then((request) => request(this.axios, this.basePath));
  11644. }
  11645. /**
  11646. *
  11647. * @param {*} [options] Override http request option.
  11648. * @throws {RequiredError}
  11649. * @memberof ServerInfoApi
  11650. */
  11651. public getServerInfo(options?: AxiosRequestConfig) {
  11652. return ServerInfoApiFp(this.configuration).getServerInfo(options).then((request) => request(this.axios, this.basePath));
  11653. }
  11654. /**
  11655. *
  11656. * @param {*} [options] Override http request option.
  11657. * @throws {RequiredError}
  11658. * @memberof ServerInfoApi
  11659. */
  11660. public getServerVersion(options?: AxiosRequestConfig) {
  11661. return ServerInfoApiFp(this.configuration).getServerVersion(options).then((request) => request(this.axios, this.basePath));
  11662. }
  11663. /**
  11664. *
  11665. * @param {*} [options] Override http request option.
  11666. * @throws {RequiredError}
  11667. * @memberof ServerInfoApi
  11668. */
  11669. public getStats(options?: AxiosRequestConfig) {
  11670. return ServerInfoApiFp(this.configuration).getStats(options).then((request) => request(this.axios, this.basePath));
  11671. }
  11672. /**
  11673. *
  11674. * @param {*} [options] Override http request option.
  11675. * @throws {RequiredError}
  11676. * @memberof ServerInfoApi
  11677. */
  11678. public getSupportedMediaTypes(options?: AxiosRequestConfig) {
  11679. return ServerInfoApiFp(this.configuration).getSupportedMediaTypes(options).then((request) => request(this.axios, this.basePath));
  11680. }
  11681. /**
  11682. *
  11683. * @param {*} [options] Override http request option.
  11684. * @throws {RequiredError}
  11685. * @memberof ServerInfoApi
  11686. */
  11687. public pingServer(options?: AxiosRequestConfig) {
  11688. return ServerInfoApiFp(this.configuration).pingServer(options).then((request) => request(this.axios, this.basePath));
  11689. }
  11690. }
  11691. /**
  11692. * SharedLinkApi - axios parameter creator
  11693. * @export
  11694. */
  11695. export const SharedLinkApiAxiosParamCreator = function (configuration?: Configuration) {
  11696. return {
  11697. /**
  11698. *
  11699. * @param {string} id
  11700. * @param {AssetIdsDto} assetIdsDto
  11701. * @param {string} [key]
  11702. * @param {*} [options] Override http request option.
  11703. * @throws {RequiredError}
  11704. */
  11705. addSharedLinkAssets: async (id: string, assetIdsDto: AssetIdsDto, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11706. // verify required parameter 'id' is not null or undefined
  11707. assertParamExists('addSharedLinkAssets', 'id', id)
  11708. // verify required parameter 'assetIdsDto' is not null or undefined
  11709. assertParamExists('addSharedLinkAssets', 'assetIdsDto', assetIdsDto)
  11710. const localVarPath = `/shared-link/{id}/assets`
  11711. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  11712. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11713. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11714. let baseOptions;
  11715. if (configuration) {
  11716. baseOptions = configuration.baseOptions;
  11717. }
  11718. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  11719. const localVarHeaderParameter = {} as any;
  11720. const localVarQueryParameter = {} as any;
  11721. // authentication cookie required
  11722. // authentication api_key required
  11723. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11724. // authentication bearer required
  11725. // http bearer authentication required
  11726. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11727. if (key !== undefined) {
  11728. localVarQueryParameter['key'] = key;
  11729. }
  11730. localVarHeaderParameter['Content-Type'] = 'application/json';
  11731. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11732. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11733. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11734. localVarRequestOptions.data = serializeDataIfNeeded(assetIdsDto, localVarRequestOptions, configuration)
  11735. return {
  11736. url: toPathString(localVarUrlObj),
  11737. options: localVarRequestOptions,
  11738. };
  11739. },
  11740. /**
  11741. *
  11742. * @param {SharedLinkCreateDto} sharedLinkCreateDto
  11743. * @param {*} [options] Override http request option.
  11744. * @throws {RequiredError}
  11745. */
  11746. createSharedLink: async (sharedLinkCreateDto: SharedLinkCreateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11747. // verify required parameter 'sharedLinkCreateDto' is not null or undefined
  11748. assertParamExists('createSharedLink', 'sharedLinkCreateDto', sharedLinkCreateDto)
  11749. const localVarPath = `/shared-link`;
  11750. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11751. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11752. let baseOptions;
  11753. if (configuration) {
  11754. baseOptions = configuration.baseOptions;
  11755. }
  11756. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  11757. const localVarHeaderParameter = {} as any;
  11758. const localVarQueryParameter = {} as any;
  11759. // authentication cookie required
  11760. // authentication api_key required
  11761. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11762. // authentication bearer required
  11763. // http bearer authentication required
  11764. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11765. localVarHeaderParameter['Content-Type'] = 'application/json';
  11766. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11767. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11768. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11769. localVarRequestOptions.data = serializeDataIfNeeded(sharedLinkCreateDto, localVarRequestOptions, configuration)
  11770. return {
  11771. url: toPathString(localVarUrlObj),
  11772. options: localVarRequestOptions,
  11773. };
  11774. },
  11775. /**
  11776. *
  11777. * @param {*} [options] Override http request option.
  11778. * @throws {RequiredError}
  11779. */
  11780. getAllSharedLinks: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11781. const localVarPath = `/shared-link`;
  11782. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11783. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11784. let baseOptions;
  11785. if (configuration) {
  11786. baseOptions = configuration.baseOptions;
  11787. }
  11788. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11789. const localVarHeaderParameter = {} as any;
  11790. const localVarQueryParameter = {} as any;
  11791. // authentication cookie required
  11792. // authentication api_key required
  11793. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11794. // authentication bearer required
  11795. // http bearer authentication required
  11796. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11797. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11798. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11799. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11800. return {
  11801. url: toPathString(localVarUrlObj),
  11802. options: localVarRequestOptions,
  11803. };
  11804. },
  11805. /**
  11806. *
  11807. * @param {string} [key]
  11808. * @param {*} [options] Override http request option.
  11809. * @throws {RequiredError}
  11810. */
  11811. getMySharedLink: async (key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11812. const localVarPath = `/shared-link/me`;
  11813. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11814. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11815. let baseOptions;
  11816. if (configuration) {
  11817. baseOptions = configuration.baseOptions;
  11818. }
  11819. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11820. const localVarHeaderParameter = {} as any;
  11821. const localVarQueryParameter = {} as any;
  11822. // authentication cookie required
  11823. // authentication api_key required
  11824. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11825. // authentication bearer required
  11826. // http bearer authentication required
  11827. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11828. if (key !== undefined) {
  11829. localVarQueryParameter['key'] = key;
  11830. }
  11831. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11832. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11833. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11834. return {
  11835. url: toPathString(localVarUrlObj),
  11836. options: localVarRequestOptions,
  11837. };
  11838. },
  11839. /**
  11840. *
  11841. * @param {string} id
  11842. * @param {*} [options] Override http request option.
  11843. * @throws {RequiredError}
  11844. */
  11845. getSharedLinkById: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11846. // verify required parameter 'id' is not null or undefined
  11847. assertParamExists('getSharedLinkById', 'id', id)
  11848. const localVarPath = `/shared-link/{id}`
  11849. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  11850. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11851. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11852. let baseOptions;
  11853. if (configuration) {
  11854. baseOptions = configuration.baseOptions;
  11855. }
  11856. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11857. const localVarHeaderParameter = {} as any;
  11858. const localVarQueryParameter = {} as any;
  11859. // authentication cookie required
  11860. // authentication api_key required
  11861. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11862. // authentication bearer required
  11863. // http bearer authentication required
  11864. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11865. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11866. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11867. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11868. return {
  11869. url: toPathString(localVarUrlObj),
  11870. options: localVarRequestOptions,
  11871. };
  11872. },
  11873. /**
  11874. *
  11875. * @param {string} id
  11876. * @param {*} [options] Override http request option.
  11877. * @throws {RequiredError}
  11878. */
  11879. removeSharedLink: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11880. // verify required parameter 'id' is not null or undefined
  11881. assertParamExists('removeSharedLink', 'id', id)
  11882. const localVarPath = `/shared-link/{id}`
  11883. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  11884. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11885. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11886. let baseOptions;
  11887. if (configuration) {
  11888. baseOptions = configuration.baseOptions;
  11889. }
  11890. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  11891. const localVarHeaderParameter = {} as any;
  11892. const localVarQueryParameter = {} as any;
  11893. // authentication cookie required
  11894. // authentication api_key required
  11895. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11896. // authentication bearer required
  11897. // http bearer authentication required
  11898. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11899. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11900. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11901. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11902. return {
  11903. url: toPathString(localVarUrlObj),
  11904. options: localVarRequestOptions,
  11905. };
  11906. },
  11907. /**
  11908. *
  11909. * @param {string} id
  11910. * @param {AssetIdsDto} assetIdsDto
  11911. * @param {string} [key]
  11912. * @param {*} [options] Override http request option.
  11913. * @throws {RequiredError}
  11914. */
  11915. removeSharedLinkAssets: async (id: string, assetIdsDto: AssetIdsDto, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11916. // verify required parameter 'id' is not null or undefined
  11917. assertParamExists('removeSharedLinkAssets', 'id', id)
  11918. // verify required parameter 'assetIdsDto' is not null or undefined
  11919. assertParamExists('removeSharedLinkAssets', 'assetIdsDto', assetIdsDto)
  11920. const localVarPath = `/shared-link/{id}/assets`
  11921. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  11922. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11923. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11924. let baseOptions;
  11925. if (configuration) {
  11926. baseOptions = configuration.baseOptions;
  11927. }
  11928. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  11929. const localVarHeaderParameter = {} as any;
  11930. const localVarQueryParameter = {} as any;
  11931. // authentication cookie required
  11932. // authentication api_key required
  11933. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11934. // authentication bearer required
  11935. // http bearer authentication required
  11936. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11937. if (key !== undefined) {
  11938. localVarQueryParameter['key'] = key;
  11939. }
  11940. localVarHeaderParameter['Content-Type'] = 'application/json';
  11941. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11942. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11943. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11944. localVarRequestOptions.data = serializeDataIfNeeded(assetIdsDto, localVarRequestOptions, configuration)
  11945. return {
  11946. url: toPathString(localVarUrlObj),
  11947. options: localVarRequestOptions,
  11948. };
  11949. },
  11950. /**
  11951. *
  11952. * @param {string} id
  11953. * @param {SharedLinkEditDto} sharedLinkEditDto
  11954. * @param {*} [options] Override http request option.
  11955. * @throws {RequiredError}
  11956. */
  11957. updateSharedLink: async (id: string, sharedLinkEditDto: SharedLinkEditDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11958. // verify required parameter 'id' is not null or undefined
  11959. assertParamExists('updateSharedLink', 'id', id)
  11960. // verify required parameter 'sharedLinkEditDto' is not null or undefined
  11961. assertParamExists('updateSharedLink', 'sharedLinkEditDto', sharedLinkEditDto)
  11962. const localVarPath = `/shared-link/{id}`
  11963. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  11964. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11965. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11966. let baseOptions;
  11967. if (configuration) {
  11968. baseOptions = configuration.baseOptions;
  11969. }
  11970. const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
  11971. const localVarHeaderParameter = {} as any;
  11972. const localVarQueryParameter = {} as any;
  11973. // authentication cookie required
  11974. // authentication api_key required
  11975. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11976. // authentication bearer required
  11977. // http bearer authentication required
  11978. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11979. localVarHeaderParameter['Content-Type'] = 'application/json';
  11980. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11981. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11982. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11983. localVarRequestOptions.data = serializeDataIfNeeded(sharedLinkEditDto, localVarRequestOptions, configuration)
  11984. return {
  11985. url: toPathString(localVarUrlObj),
  11986. options: localVarRequestOptions,
  11987. };
  11988. },
  11989. }
  11990. };
  11991. /**
  11992. * SharedLinkApi - functional programming interface
  11993. * @export
  11994. */
  11995. export const SharedLinkApiFp = function(configuration?: Configuration) {
  11996. const localVarAxiosParamCreator = SharedLinkApiAxiosParamCreator(configuration)
  11997. return {
  11998. /**
  11999. *
  12000. * @param {string} id
  12001. * @param {AssetIdsDto} assetIdsDto
  12002. * @param {string} [key]
  12003. * @param {*} [options] Override http request option.
  12004. * @throws {RequiredError}
  12005. */
  12006. async addSharedLinkAssets(id: string, assetIdsDto: AssetIdsDto, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetIdsResponseDto>>> {
  12007. const localVarAxiosArgs = await localVarAxiosParamCreator.addSharedLinkAssets(id, assetIdsDto, key, options);
  12008. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12009. },
  12010. /**
  12011. *
  12012. * @param {SharedLinkCreateDto} sharedLinkCreateDto
  12013. * @param {*} [options] Override http request option.
  12014. * @throws {RequiredError}
  12015. */
  12016. async createSharedLink(sharedLinkCreateDto: SharedLinkCreateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SharedLinkResponseDto>> {
  12017. const localVarAxiosArgs = await localVarAxiosParamCreator.createSharedLink(sharedLinkCreateDto, options);
  12018. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12019. },
  12020. /**
  12021. *
  12022. * @param {*} [options] Override http request option.
  12023. * @throws {RequiredError}
  12024. */
  12025. async getAllSharedLinks(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<SharedLinkResponseDto>>> {
  12026. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllSharedLinks(options);
  12027. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12028. },
  12029. /**
  12030. *
  12031. * @param {string} [key]
  12032. * @param {*} [options] Override http request option.
  12033. * @throws {RequiredError}
  12034. */
  12035. async getMySharedLink(key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SharedLinkResponseDto>> {
  12036. const localVarAxiosArgs = await localVarAxiosParamCreator.getMySharedLink(key, options);
  12037. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12038. },
  12039. /**
  12040. *
  12041. * @param {string} id
  12042. * @param {*} [options] Override http request option.
  12043. * @throws {RequiredError}
  12044. */
  12045. async getSharedLinkById(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SharedLinkResponseDto>> {
  12046. const localVarAxiosArgs = await localVarAxiosParamCreator.getSharedLinkById(id, options);
  12047. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12048. },
  12049. /**
  12050. *
  12051. * @param {string} id
  12052. * @param {*} [options] Override http request option.
  12053. * @throws {RequiredError}
  12054. */
  12055. async removeSharedLink(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  12056. const localVarAxiosArgs = await localVarAxiosParamCreator.removeSharedLink(id, options);
  12057. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12058. },
  12059. /**
  12060. *
  12061. * @param {string} id
  12062. * @param {AssetIdsDto} assetIdsDto
  12063. * @param {string} [key]
  12064. * @param {*} [options] Override http request option.
  12065. * @throws {RequiredError}
  12066. */
  12067. async removeSharedLinkAssets(id: string, assetIdsDto: AssetIdsDto, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetIdsResponseDto>>> {
  12068. const localVarAxiosArgs = await localVarAxiosParamCreator.removeSharedLinkAssets(id, assetIdsDto, key, options);
  12069. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12070. },
  12071. /**
  12072. *
  12073. * @param {string} id
  12074. * @param {SharedLinkEditDto} sharedLinkEditDto
  12075. * @param {*} [options] Override http request option.
  12076. * @throws {RequiredError}
  12077. */
  12078. async updateSharedLink(id: string, sharedLinkEditDto: SharedLinkEditDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SharedLinkResponseDto>> {
  12079. const localVarAxiosArgs = await localVarAxiosParamCreator.updateSharedLink(id, sharedLinkEditDto, options);
  12080. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12081. },
  12082. }
  12083. };
  12084. /**
  12085. * SharedLinkApi - factory interface
  12086. * @export
  12087. */
  12088. export const SharedLinkApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  12089. const localVarFp = SharedLinkApiFp(configuration)
  12090. return {
  12091. /**
  12092. *
  12093. * @param {SharedLinkApiAddSharedLinkAssetsRequest} requestParameters Request parameters.
  12094. * @param {*} [options] Override http request option.
  12095. * @throws {RequiredError}
  12096. */
  12097. addSharedLinkAssets(requestParameters: SharedLinkApiAddSharedLinkAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetIdsResponseDto>> {
  12098. return localVarFp.addSharedLinkAssets(requestParameters.id, requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(axios, basePath));
  12099. },
  12100. /**
  12101. *
  12102. * @param {SharedLinkApiCreateSharedLinkRequest} requestParameters Request parameters.
  12103. * @param {*} [options] Override http request option.
  12104. * @throws {RequiredError}
  12105. */
  12106. createSharedLink(requestParameters: SharedLinkApiCreateSharedLinkRequest, options?: AxiosRequestConfig): AxiosPromise<SharedLinkResponseDto> {
  12107. return localVarFp.createSharedLink(requestParameters.sharedLinkCreateDto, options).then((request) => request(axios, basePath));
  12108. },
  12109. /**
  12110. *
  12111. * @param {*} [options] Override http request option.
  12112. * @throws {RequiredError}
  12113. */
  12114. getAllSharedLinks(options?: AxiosRequestConfig): AxiosPromise<Array<SharedLinkResponseDto>> {
  12115. return localVarFp.getAllSharedLinks(options).then((request) => request(axios, basePath));
  12116. },
  12117. /**
  12118. *
  12119. * @param {SharedLinkApiGetMySharedLinkRequest} requestParameters Request parameters.
  12120. * @param {*} [options] Override http request option.
  12121. * @throws {RequiredError}
  12122. */
  12123. getMySharedLink(requestParameters: SharedLinkApiGetMySharedLinkRequest = {}, options?: AxiosRequestConfig): AxiosPromise<SharedLinkResponseDto> {
  12124. return localVarFp.getMySharedLink(requestParameters.key, options).then((request) => request(axios, basePath));
  12125. },
  12126. /**
  12127. *
  12128. * @param {SharedLinkApiGetSharedLinkByIdRequest} requestParameters Request parameters.
  12129. * @param {*} [options] Override http request option.
  12130. * @throws {RequiredError}
  12131. */
  12132. getSharedLinkById(requestParameters: SharedLinkApiGetSharedLinkByIdRequest, options?: AxiosRequestConfig): AxiosPromise<SharedLinkResponseDto> {
  12133. return localVarFp.getSharedLinkById(requestParameters.id, options).then((request) => request(axios, basePath));
  12134. },
  12135. /**
  12136. *
  12137. * @param {SharedLinkApiRemoveSharedLinkRequest} requestParameters Request parameters.
  12138. * @param {*} [options] Override http request option.
  12139. * @throws {RequiredError}
  12140. */
  12141. removeSharedLink(requestParameters: SharedLinkApiRemoveSharedLinkRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  12142. return localVarFp.removeSharedLink(requestParameters.id, options).then((request) => request(axios, basePath));
  12143. },
  12144. /**
  12145. *
  12146. * @param {SharedLinkApiRemoveSharedLinkAssetsRequest} requestParameters Request parameters.
  12147. * @param {*} [options] Override http request option.
  12148. * @throws {RequiredError}
  12149. */
  12150. removeSharedLinkAssets(requestParameters: SharedLinkApiRemoveSharedLinkAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetIdsResponseDto>> {
  12151. return localVarFp.removeSharedLinkAssets(requestParameters.id, requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(axios, basePath));
  12152. },
  12153. /**
  12154. *
  12155. * @param {SharedLinkApiUpdateSharedLinkRequest} requestParameters Request parameters.
  12156. * @param {*} [options] Override http request option.
  12157. * @throws {RequiredError}
  12158. */
  12159. updateSharedLink(requestParameters: SharedLinkApiUpdateSharedLinkRequest, options?: AxiosRequestConfig): AxiosPromise<SharedLinkResponseDto> {
  12160. return localVarFp.updateSharedLink(requestParameters.id, requestParameters.sharedLinkEditDto, options).then((request) => request(axios, basePath));
  12161. },
  12162. };
  12163. };
  12164. /**
  12165. * Request parameters for addSharedLinkAssets operation in SharedLinkApi.
  12166. * @export
  12167. * @interface SharedLinkApiAddSharedLinkAssetsRequest
  12168. */
  12169. export interface SharedLinkApiAddSharedLinkAssetsRequest {
  12170. /**
  12171. *
  12172. * @type {string}
  12173. * @memberof SharedLinkApiAddSharedLinkAssets
  12174. */
  12175. readonly id: string
  12176. /**
  12177. *
  12178. * @type {AssetIdsDto}
  12179. * @memberof SharedLinkApiAddSharedLinkAssets
  12180. */
  12181. readonly assetIdsDto: AssetIdsDto
  12182. /**
  12183. *
  12184. * @type {string}
  12185. * @memberof SharedLinkApiAddSharedLinkAssets
  12186. */
  12187. readonly key?: string
  12188. }
  12189. /**
  12190. * Request parameters for createSharedLink operation in SharedLinkApi.
  12191. * @export
  12192. * @interface SharedLinkApiCreateSharedLinkRequest
  12193. */
  12194. export interface SharedLinkApiCreateSharedLinkRequest {
  12195. /**
  12196. *
  12197. * @type {SharedLinkCreateDto}
  12198. * @memberof SharedLinkApiCreateSharedLink
  12199. */
  12200. readonly sharedLinkCreateDto: SharedLinkCreateDto
  12201. }
  12202. /**
  12203. * Request parameters for getMySharedLink operation in SharedLinkApi.
  12204. * @export
  12205. * @interface SharedLinkApiGetMySharedLinkRequest
  12206. */
  12207. export interface SharedLinkApiGetMySharedLinkRequest {
  12208. /**
  12209. *
  12210. * @type {string}
  12211. * @memberof SharedLinkApiGetMySharedLink
  12212. */
  12213. readonly key?: string
  12214. }
  12215. /**
  12216. * Request parameters for getSharedLinkById operation in SharedLinkApi.
  12217. * @export
  12218. * @interface SharedLinkApiGetSharedLinkByIdRequest
  12219. */
  12220. export interface SharedLinkApiGetSharedLinkByIdRequest {
  12221. /**
  12222. *
  12223. * @type {string}
  12224. * @memberof SharedLinkApiGetSharedLinkById
  12225. */
  12226. readonly id: string
  12227. }
  12228. /**
  12229. * Request parameters for removeSharedLink operation in SharedLinkApi.
  12230. * @export
  12231. * @interface SharedLinkApiRemoveSharedLinkRequest
  12232. */
  12233. export interface SharedLinkApiRemoveSharedLinkRequest {
  12234. /**
  12235. *
  12236. * @type {string}
  12237. * @memberof SharedLinkApiRemoveSharedLink
  12238. */
  12239. readonly id: string
  12240. }
  12241. /**
  12242. * Request parameters for removeSharedLinkAssets operation in SharedLinkApi.
  12243. * @export
  12244. * @interface SharedLinkApiRemoveSharedLinkAssetsRequest
  12245. */
  12246. export interface SharedLinkApiRemoveSharedLinkAssetsRequest {
  12247. /**
  12248. *
  12249. * @type {string}
  12250. * @memberof SharedLinkApiRemoveSharedLinkAssets
  12251. */
  12252. readonly id: string
  12253. /**
  12254. *
  12255. * @type {AssetIdsDto}
  12256. * @memberof SharedLinkApiRemoveSharedLinkAssets
  12257. */
  12258. readonly assetIdsDto: AssetIdsDto
  12259. /**
  12260. *
  12261. * @type {string}
  12262. * @memberof SharedLinkApiRemoveSharedLinkAssets
  12263. */
  12264. readonly key?: string
  12265. }
  12266. /**
  12267. * Request parameters for updateSharedLink operation in SharedLinkApi.
  12268. * @export
  12269. * @interface SharedLinkApiUpdateSharedLinkRequest
  12270. */
  12271. export interface SharedLinkApiUpdateSharedLinkRequest {
  12272. /**
  12273. *
  12274. * @type {string}
  12275. * @memberof SharedLinkApiUpdateSharedLink
  12276. */
  12277. readonly id: string
  12278. /**
  12279. *
  12280. * @type {SharedLinkEditDto}
  12281. * @memberof SharedLinkApiUpdateSharedLink
  12282. */
  12283. readonly sharedLinkEditDto: SharedLinkEditDto
  12284. }
  12285. /**
  12286. * SharedLinkApi - object-oriented interface
  12287. * @export
  12288. * @class SharedLinkApi
  12289. * @extends {BaseAPI}
  12290. */
  12291. export class SharedLinkApi extends BaseAPI {
  12292. /**
  12293. *
  12294. * @param {SharedLinkApiAddSharedLinkAssetsRequest} requestParameters Request parameters.
  12295. * @param {*} [options] Override http request option.
  12296. * @throws {RequiredError}
  12297. * @memberof SharedLinkApi
  12298. */
  12299. public addSharedLinkAssets(requestParameters: SharedLinkApiAddSharedLinkAssetsRequest, options?: AxiosRequestConfig) {
  12300. return SharedLinkApiFp(this.configuration).addSharedLinkAssets(requestParameters.id, requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  12301. }
  12302. /**
  12303. *
  12304. * @param {SharedLinkApiCreateSharedLinkRequest} requestParameters Request parameters.
  12305. * @param {*} [options] Override http request option.
  12306. * @throws {RequiredError}
  12307. * @memberof SharedLinkApi
  12308. */
  12309. public createSharedLink(requestParameters: SharedLinkApiCreateSharedLinkRequest, options?: AxiosRequestConfig) {
  12310. return SharedLinkApiFp(this.configuration).createSharedLink(requestParameters.sharedLinkCreateDto, options).then((request) => request(this.axios, this.basePath));
  12311. }
  12312. /**
  12313. *
  12314. * @param {*} [options] Override http request option.
  12315. * @throws {RequiredError}
  12316. * @memberof SharedLinkApi
  12317. */
  12318. public getAllSharedLinks(options?: AxiosRequestConfig) {
  12319. return SharedLinkApiFp(this.configuration).getAllSharedLinks(options).then((request) => request(this.axios, this.basePath));
  12320. }
  12321. /**
  12322. *
  12323. * @param {SharedLinkApiGetMySharedLinkRequest} requestParameters Request parameters.
  12324. * @param {*} [options] Override http request option.
  12325. * @throws {RequiredError}
  12326. * @memberof SharedLinkApi
  12327. */
  12328. public getMySharedLink(requestParameters: SharedLinkApiGetMySharedLinkRequest = {}, options?: AxiosRequestConfig) {
  12329. return SharedLinkApiFp(this.configuration).getMySharedLink(requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  12330. }
  12331. /**
  12332. *
  12333. * @param {SharedLinkApiGetSharedLinkByIdRequest} requestParameters Request parameters.
  12334. * @param {*} [options] Override http request option.
  12335. * @throws {RequiredError}
  12336. * @memberof SharedLinkApi
  12337. */
  12338. public getSharedLinkById(requestParameters: SharedLinkApiGetSharedLinkByIdRequest, options?: AxiosRequestConfig) {
  12339. return SharedLinkApiFp(this.configuration).getSharedLinkById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  12340. }
  12341. /**
  12342. *
  12343. * @param {SharedLinkApiRemoveSharedLinkRequest} requestParameters Request parameters.
  12344. * @param {*} [options] Override http request option.
  12345. * @throws {RequiredError}
  12346. * @memberof SharedLinkApi
  12347. */
  12348. public removeSharedLink(requestParameters: SharedLinkApiRemoveSharedLinkRequest, options?: AxiosRequestConfig) {
  12349. return SharedLinkApiFp(this.configuration).removeSharedLink(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  12350. }
  12351. /**
  12352. *
  12353. * @param {SharedLinkApiRemoveSharedLinkAssetsRequest} requestParameters Request parameters.
  12354. * @param {*} [options] Override http request option.
  12355. * @throws {RequiredError}
  12356. * @memberof SharedLinkApi
  12357. */
  12358. public removeSharedLinkAssets(requestParameters: SharedLinkApiRemoveSharedLinkAssetsRequest, options?: AxiosRequestConfig) {
  12359. return SharedLinkApiFp(this.configuration).removeSharedLinkAssets(requestParameters.id, requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  12360. }
  12361. /**
  12362. *
  12363. * @param {SharedLinkApiUpdateSharedLinkRequest} requestParameters Request parameters.
  12364. * @param {*} [options] Override http request option.
  12365. * @throws {RequiredError}
  12366. * @memberof SharedLinkApi
  12367. */
  12368. public updateSharedLink(requestParameters: SharedLinkApiUpdateSharedLinkRequest, options?: AxiosRequestConfig) {
  12369. return SharedLinkApiFp(this.configuration).updateSharedLink(requestParameters.id, requestParameters.sharedLinkEditDto, options).then((request) => request(this.axios, this.basePath));
  12370. }
  12371. }
  12372. /**
  12373. * SystemConfigApi - axios parameter creator
  12374. * @export
  12375. */
  12376. export const SystemConfigApiAxiosParamCreator = function (configuration?: Configuration) {
  12377. return {
  12378. /**
  12379. *
  12380. * @param {*} [options] Override http request option.
  12381. * @throws {RequiredError}
  12382. */
  12383. getConfig: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12384. const localVarPath = `/system-config`;
  12385. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12386. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12387. let baseOptions;
  12388. if (configuration) {
  12389. baseOptions = configuration.baseOptions;
  12390. }
  12391. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12392. const localVarHeaderParameter = {} as any;
  12393. const localVarQueryParameter = {} as any;
  12394. // authentication cookie required
  12395. // authentication api_key required
  12396. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12397. // authentication bearer required
  12398. // http bearer authentication required
  12399. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12400. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12401. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12402. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12403. return {
  12404. url: toPathString(localVarUrlObj),
  12405. options: localVarRequestOptions,
  12406. };
  12407. },
  12408. /**
  12409. *
  12410. * @param {*} [options] Override http request option.
  12411. * @throws {RequiredError}
  12412. */
  12413. getDefaults: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12414. const localVarPath = `/system-config/defaults`;
  12415. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12416. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12417. let baseOptions;
  12418. if (configuration) {
  12419. baseOptions = configuration.baseOptions;
  12420. }
  12421. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12422. const localVarHeaderParameter = {} as any;
  12423. const localVarQueryParameter = {} as any;
  12424. // authentication cookie required
  12425. // authentication api_key required
  12426. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12427. // authentication bearer required
  12428. // http bearer authentication required
  12429. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12430. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12431. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12432. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12433. return {
  12434. url: toPathString(localVarUrlObj),
  12435. options: localVarRequestOptions,
  12436. };
  12437. },
  12438. /**
  12439. *
  12440. * @param {*} [options] Override http request option.
  12441. * @throws {RequiredError}
  12442. */
  12443. getStorageTemplateOptions: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12444. const localVarPath = `/system-config/storage-template-options`;
  12445. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12446. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12447. let baseOptions;
  12448. if (configuration) {
  12449. baseOptions = configuration.baseOptions;
  12450. }
  12451. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12452. const localVarHeaderParameter = {} as any;
  12453. const localVarQueryParameter = {} as any;
  12454. // authentication cookie required
  12455. // authentication api_key required
  12456. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12457. // authentication bearer required
  12458. // http bearer authentication required
  12459. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12460. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12461. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12462. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12463. return {
  12464. url: toPathString(localVarUrlObj),
  12465. options: localVarRequestOptions,
  12466. };
  12467. },
  12468. /**
  12469. *
  12470. * @param {SystemConfigDto} systemConfigDto
  12471. * @param {*} [options] Override http request option.
  12472. * @throws {RequiredError}
  12473. */
  12474. updateConfig: async (systemConfigDto: SystemConfigDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12475. // verify required parameter 'systemConfigDto' is not null or undefined
  12476. assertParamExists('updateConfig', 'systemConfigDto', systemConfigDto)
  12477. const localVarPath = `/system-config`;
  12478. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12479. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12480. let baseOptions;
  12481. if (configuration) {
  12482. baseOptions = configuration.baseOptions;
  12483. }
  12484. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  12485. const localVarHeaderParameter = {} as any;
  12486. const localVarQueryParameter = {} as any;
  12487. // authentication cookie required
  12488. // authentication api_key required
  12489. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12490. // authentication bearer required
  12491. // http bearer authentication required
  12492. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12493. localVarHeaderParameter['Content-Type'] = 'application/json';
  12494. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12495. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12496. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12497. localVarRequestOptions.data = serializeDataIfNeeded(systemConfigDto, localVarRequestOptions, configuration)
  12498. return {
  12499. url: toPathString(localVarUrlObj),
  12500. options: localVarRequestOptions,
  12501. };
  12502. },
  12503. }
  12504. };
  12505. /**
  12506. * SystemConfigApi - functional programming interface
  12507. * @export
  12508. */
  12509. export const SystemConfigApiFp = function(configuration?: Configuration) {
  12510. const localVarAxiosParamCreator = SystemConfigApiAxiosParamCreator(configuration)
  12511. return {
  12512. /**
  12513. *
  12514. * @param {*} [options] Override http request option.
  12515. * @throws {RequiredError}
  12516. */
  12517. async getConfig(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SystemConfigDto>> {
  12518. const localVarAxiosArgs = await localVarAxiosParamCreator.getConfig(options);
  12519. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12520. },
  12521. /**
  12522. *
  12523. * @param {*} [options] Override http request option.
  12524. * @throws {RequiredError}
  12525. */
  12526. async getDefaults(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SystemConfigDto>> {
  12527. const localVarAxiosArgs = await localVarAxiosParamCreator.getDefaults(options);
  12528. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12529. },
  12530. /**
  12531. *
  12532. * @param {*} [options] Override http request option.
  12533. * @throws {RequiredError}
  12534. */
  12535. async getStorageTemplateOptions(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SystemConfigTemplateStorageOptionDto>> {
  12536. const localVarAxiosArgs = await localVarAxiosParamCreator.getStorageTemplateOptions(options);
  12537. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12538. },
  12539. /**
  12540. *
  12541. * @param {SystemConfigDto} systemConfigDto
  12542. * @param {*} [options] Override http request option.
  12543. * @throws {RequiredError}
  12544. */
  12545. async updateConfig(systemConfigDto: SystemConfigDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SystemConfigDto>> {
  12546. const localVarAxiosArgs = await localVarAxiosParamCreator.updateConfig(systemConfigDto, options);
  12547. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12548. },
  12549. }
  12550. };
  12551. /**
  12552. * SystemConfigApi - factory interface
  12553. * @export
  12554. */
  12555. export const SystemConfigApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  12556. const localVarFp = SystemConfigApiFp(configuration)
  12557. return {
  12558. /**
  12559. *
  12560. * @param {*} [options] Override http request option.
  12561. * @throws {RequiredError}
  12562. */
  12563. getConfig(options?: AxiosRequestConfig): AxiosPromise<SystemConfigDto> {
  12564. return localVarFp.getConfig(options).then((request) => request(axios, basePath));
  12565. },
  12566. /**
  12567. *
  12568. * @param {*} [options] Override http request option.
  12569. * @throws {RequiredError}
  12570. */
  12571. getDefaults(options?: AxiosRequestConfig): AxiosPromise<SystemConfigDto> {
  12572. return localVarFp.getDefaults(options).then((request) => request(axios, basePath));
  12573. },
  12574. /**
  12575. *
  12576. * @param {*} [options] Override http request option.
  12577. * @throws {RequiredError}
  12578. */
  12579. getStorageTemplateOptions(options?: AxiosRequestConfig): AxiosPromise<SystemConfigTemplateStorageOptionDto> {
  12580. return localVarFp.getStorageTemplateOptions(options).then((request) => request(axios, basePath));
  12581. },
  12582. /**
  12583. *
  12584. * @param {SystemConfigApiUpdateConfigRequest} requestParameters Request parameters.
  12585. * @param {*} [options] Override http request option.
  12586. * @throws {RequiredError}
  12587. */
  12588. updateConfig(requestParameters: SystemConfigApiUpdateConfigRequest, options?: AxiosRequestConfig): AxiosPromise<SystemConfigDto> {
  12589. return localVarFp.updateConfig(requestParameters.systemConfigDto, options).then((request) => request(axios, basePath));
  12590. },
  12591. };
  12592. };
  12593. /**
  12594. * Request parameters for updateConfig operation in SystemConfigApi.
  12595. * @export
  12596. * @interface SystemConfigApiUpdateConfigRequest
  12597. */
  12598. export interface SystemConfigApiUpdateConfigRequest {
  12599. /**
  12600. *
  12601. * @type {SystemConfigDto}
  12602. * @memberof SystemConfigApiUpdateConfig
  12603. */
  12604. readonly systemConfigDto: SystemConfigDto
  12605. }
  12606. /**
  12607. * SystemConfigApi - object-oriented interface
  12608. * @export
  12609. * @class SystemConfigApi
  12610. * @extends {BaseAPI}
  12611. */
  12612. export class SystemConfigApi extends BaseAPI {
  12613. /**
  12614. *
  12615. * @param {*} [options] Override http request option.
  12616. * @throws {RequiredError}
  12617. * @memberof SystemConfigApi
  12618. */
  12619. public getConfig(options?: AxiosRequestConfig) {
  12620. return SystemConfigApiFp(this.configuration).getConfig(options).then((request) => request(this.axios, this.basePath));
  12621. }
  12622. /**
  12623. *
  12624. * @param {*} [options] Override http request option.
  12625. * @throws {RequiredError}
  12626. * @memberof SystemConfigApi
  12627. */
  12628. public getDefaults(options?: AxiosRequestConfig) {
  12629. return SystemConfigApiFp(this.configuration).getDefaults(options).then((request) => request(this.axios, this.basePath));
  12630. }
  12631. /**
  12632. *
  12633. * @param {*} [options] Override http request option.
  12634. * @throws {RequiredError}
  12635. * @memberof SystemConfigApi
  12636. */
  12637. public getStorageTemplateOptions(options?: AxiosRequestConfig) {
  12638. return SystemConfigApiFp(this.configuration).getStorageTemplateOptions(options).then((request) => request(this.axios, this.basePath));
  12639. }
  12640. /**
  12641. *
  12642. * @param {SystemConfigApiUpdateConfigRequest} requestParameters Request parameters.
  12643. * @param {*} [options] Override http request option.
  12644. * @throws {RequiredError}
  12645. * @memberof SystemConfigApi
  12646. */
  12647. public updateConfig(requestParameters: SystemConfigApiUpdateConfigRequest, options?: AxiosRequestConfig) {
  12648. return SystemConfigApiFp(this.configuration).updateConfig(requestParameters.systemConfigDto, options).then((request) => request(this.axios, this.basePath));
  12649. }
  12650. }
  12651. /**
  12652. * TagApi - axios parameter creator
  12653. * @export
  12654. */
  12655. export const TagApiAxiosParamCreator = function (configuration?: Configuration) {
  12656. return {
  12657. /**
  12658. *
  12659. * @param {CreateTagDto} createTagDto
  12660. * @param {*} [options] Override http request option.
  12661. * @throws {RequiredError}
  12662. */
  12663. createTag: async (createTagDto: CreateTagDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12664. // verify required parameter 'createTagDto' is not null or undefined
  12665. assertParamExists('createTag', 'createTagDto', createTagDto)
  12666. const localVarPath = `/tag`;
  12667. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12668. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12669. let baseOptions;
  12670. if (configuration) {
  12671. baseOptions = configuration.baseOptions;
  12672. }
  12673. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  12674. const localVarHeaderParameter = {} as any;
  12675. const localVarQueryParameter = {} as any;
  12676. // authentication cookie required
  12677. // authentication api_key required
  12678. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12679. // authentication bearer required
  12680. // http bearer authentication required
  12681. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12682. localVarHeaderParameter['Content-Type'] = 'application/json';
  12683. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12684. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12685. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12686. localVarRequestOptions.data = serializeDataIfNeeded(createTagDto, localVarRequestOptions, configuration)
  12687. return {
  12688. url: toPathString(localVarUrlObj),
  12689. options: localVarRequestOptions,
  12690. };
  12691. },
  12692. /**
  12693. *
  12694. * @param {string} id
  12695. * @param {*} [options] Override http request option.
  12696. * @throws {RequiredError}
  12697. */
  12698. deleteTag: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12699. // verify required parameter 'id' is not null or undefined
  12700. assertParamExists('deleteTag', 'id', id)
  12701. const localVarPath = `/tag/{id}`
  12702. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  12703. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12704. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12705. let baseOptions;
  12706. if (configuration) {
  12707. baseOptions = configuration.baseOptions;
  12708. }
  12709. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  12710. const localVarHeaderParameter = {} as any;
  12711. const localVarQueryParameter = {} as any;
  12712. // authentication cookie required
  12713. // authentication api_key required
  12714. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12715. // authentication bearer required
  12716. // http bearer authentication required
  12717. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12718. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12719. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12720. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12721. return {
  12722. url: toPathString(localVarUrlObj),
  12723. options: localVarRequestOptions,
  12724. };
  12725. },
  12726. /**
  12727. *
  12728. * @param {*} [options] Override http request option.
  12729. * @throws {RequiredError}
  12730. */
  12731. getAllTags: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12732. const localVarPath = `/tag`;
  12733. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12734. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12735. let baseOptions;
  12736. if (configuration) {
  12737. baseOptions = configuration.baseOptions;
  12738. }
  12739. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12740. const localVarHeaderParameter = {} as any;
  12741. const localVarQueryParameter = {} as any;
  12742. // authentication cookie required
  12743. // authentication api_key required
  12744. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12745. // authentication bearer required
  12746. // http bearer authentication required
  12747. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12748. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12749. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12750. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12751. return {
  12752. url: toPathString(localVarUrlObj),
  12753. options: localVarRequestOptions,
  12754. };
  12755. },
  12756. /**
  12757. *
  12758. * @param {string} id
  12759. * @param {*} [options] Override http request option.
  12760. * @throws {RequiredError}
  12761. */
  12762. getTagAssets: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12763. // verify required parameter 'id' is not null or undefined
  12764. assertParamExists('getTagAssets', 'id', id)
  12765. const localVarPath = `/tag/{id}/assets`
  12766. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  12767. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12768. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12769. let baseOptions;
  12770. if (configuration) {
  12771. baseOptions = configuration.baseOptions;
  12772. }
  12773. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12774. const localVarHeaderParameter = {} as any;
  12775. const localVarQueryParameter = {} as any;
  12776. // authentication cookie required
  12777. // authentication api_key required
  12778. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12779. // authentication bearer required
  12780. // http bearer authentication required
  12781. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12782. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12783. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12784. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12785. return {
  12786. url: toPathString(localVarUrlObj),
  12787. options: localVarRequestOptions,
  12788. };
  12789. },
  12790. /**
  12791. *
  12792. * @param {string} id
  12793. * @param {*} [options] Override http request option.
  12794. * @throws {RequiredError}
  12795. */
  12796. getTagById: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12797. // verify required parameter 'id' is not null or undefined
  12798. assertParamExists('getTagById', 'id', id)
  12799. const localVarPath = `/tag/{id}`
  12800. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  12801. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12802. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12803. let baseOptions;
  12804. if (configuration) {
  12805. baseOptions = configuration.baseOptions;
  12806. }
  12807. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12808. const localVarHeaderParameter = {} as any;
  12809. const localVarQueryParameter = {} as any;
  12810. // authentication cookie required
  12811. // authentication api_key required
  12812. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12813. // authentication bearer required
  12814. // http bearer authentication required
  12815. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12816. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12817. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12818. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12819. return {
  12820. url: toPathString(localVarUrlObj),
  12821. options: localVarRequestOptions,
  12822. };
  12823. },
  12824. /**
  12825. *
  12826. * @param {string} id
  12827. * @param {AssetIdsDto} assetIdsDto
  12828. * @param {*} [options] Override http request option.
  12829. * @throws {RequiredError}
  12830. */
  12831. tagAssets: async (id: string, assetIdsDto: AssetIdsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12832. // verify required parameter 'id' is not null or undefined
  12833. assertParamExists('tagAssets', 'id', id)
  12834. // verify required parameter 'assetIdsDto' is not null or undefined
  12835. assertParamExists('tagAssets', 'assetIdsDto', assetIdsDto)
  12836. const localVarPath = `/tag/{id}/assets`
  12837. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  12838. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12839. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12840. let baseOptions;
  12841. if (configuration) {
  12842. baseOptions = configuration.baseOptions;
  12843. }
  12844. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  12845. const localVarHeaderParameter = {} as any;
  12846. const localVarQueryParameter = {} as any;
  12847. // authentication cookie required
  12848. // authentication api_key required
  12849. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12850. // authentication bearer required
  12851. // http bearer authentication required
  12852. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12853. localVarHeaderParameter['Content-Type'] = 'application/json';
  12854. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12855. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12856. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12857. localVarRequestOptions.data = serializeDataIfNeeded(assetIdsDto, localVarRequestOptions, configuration)
  12858. return {
  12859. url: toPathString(localVarUrlObj),
  12860. options: localVarRequestOptions,
  12861. };
  12862. },
  12863. /**
  12864. *
  12865. * @param {string} id
  12866. * @param {AssetIdsDto} assetIdsDto
  12867. * @param {*} [options] Override http request option.
  12868. * @throws {RequiredError}
  12869. */
  12870. untagAssets: async (id: string, assetIdsDto: AssetIdsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12871. // verify required parameter 'id' is not null or undefined
  12872. assertParamExists('untagAssets', 'id', id)
  12873. // verify required parameter 'assetIdsDto' is not null or undefined
  12874. assertParamExists('untagAssets', 'assetIdsDto', assetIdsDto)
  12875. const localVarPath = `/tag/{id}/assets`
  12876. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  12877. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12878. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12879. let baseOptions;
  12880. if (configuration) {
  12881. baseOptions = configuration.baseOptions;
  12882. }
  12883. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  12884. const localVarHeaderParameter = {} as any;
  12885. const localVarQueryParameter = {} as any;
  12886. // authentication cookie required
  12887. // authentication api_key required
  12888. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12889. // authentication bearer required
  12890. // http bearer authentication required
  12891. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12892. localVarHeaderParameter['Content-Type'] = 'application/json';
  12893. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12894. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12895. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12896. localVarRequestOptions.data = serializeDataIfNeeded(assetIdsDto, localVarRequestOptions, configuration)
  12897. return {
  12898. url: toPathString(localVarUrlObj),
  12899. options: localVarRequestOptions,
  12900. };
  12901. },
  12902. /**
  12903. *
  12904. * @param {string} id
  12905. * @param {UpdateTagDto} updateTagDto
  12906. * @param {*} [options] Override http request option.
  12907. * @throws {RequiredError}
  12908. */
  12909. updateTag: async (id: string, updateTagDto: UpdateTagDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12910. // verify required parameter 'id' is not null or undefined
  12911. assertParamExists('updateTag', 'id', id)
  12912. // verify required parameter 'updateTagDto' is not null or undefined
  12913. assertParamExists('updateTag', 'updateTagDto', updateTagDto)
  12914. const localVarPath = `/tag/{id}`
  12915. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  12916. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12917. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12918. let baseOptions;
  12919. if (configuration) {
  12920. baseOptions = configuration.baseOptions;
  12921. }
  12922. const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
  12923. const localVarHeaderParameter = {} as any;
  12924. const localVarQueryParameter = {} as any;
  12925. // authentication cookie required
  12926. // authentication api_key required
  12927. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12928. // authentication bearer required
  12929. // http bearer authentication required
  12930. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12931. localVarHeaderParameter['Content-Type'] = 'application/json';
  12932. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12933. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12934. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12935. localVarRequestOptions.data = serializeDataIfNeeded(updateTagDto, localVarRequestOptions, configuration)
  12936. return {
  12937. url: toPathString(localVarUrlObj),
  12938. options: localVarRequestOptions,
  12939. };
  12940. },
  12941. }
  12942. };
  12943. /**
  12944. * TagApi - functional programming interface
  12945. * @export
  12946. */
  12947. export const TagApiFp = function(configuration?: Configuration) {
  12948. const localVarAxiosParamCreator = TagApiAxiosParamCreator(configuration)
  12949. return {
  12950. /**
  12951. *
  12952. * @param {CreateTagDto} createTagDto
  12953. * @param {*} [options] Override http request option.
  12954. * @throws {RequiredError}
  12955. */
  12956. async createTag(createTagDto: CreateTagDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagResponseDto>> {
  12957. const localVarAxiosArgs = await localVarAxiosParamCreator.createTag(createTagDto, options);
  12958. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12959. },
  12960. /**
  12961. *
  12962. * @param {string} id
  12963. * @param {*} [options] Override http request option.
  12964. * @throws {RequiredError}
  12965. */
  12966. async deleteTag(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  12967. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteTag(id, options);
  12968. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12969. },
  12970. /**
  12971. *
  12972. * @param {*} [options] Override http request option.
  12973. * @throws {RequiredError}
  12974. */
  12975. async getAllTags(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<TagResponseDto>>> {
  12976. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllTags(options);
  12977. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12978. },
  12979. /**
  12980. *
  12981. * @param {string} id
  12982. * @param {*} [options] Override http request option.
  12983. * @throws {RequiredError}
  12984. */
  12985. async getTagAssets(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  12986. const localVarAxiosArgs = await localVarAxiosParamCreator.getTagAssets(id, options);
  12987. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12988. },
  12989. /**
  12990. *
  12991. * @param {string} id
  12992. * @param {*} [options] Override http request option.
  12993. * @throws {RequiredError}
  12994. */
  12995. async getTagById(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagResponseDto>> {
  12996. const localVarAxiosArgs = await localVarAxiosParamCreator.getTagById(id, options);
  12997. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12998. },
  12999. /**
  13000. *
  13001. * @param {string} id
  13002. * @param {AssetIdsDto} assetIdsDto
  13003. * @param {*} [options] Override http request option.
  13004. * @throws {RequiredError}
  13005. */
  13006. async tagAssets(id: string, assetIdsDto: AssetIdsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetIdsResponseDto>>> {
  13007. const localVarAxiosArgs = await localVarAxiosParamCreator.tagAssets(id, assetIdsDto, options);
  13008. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13009. },
  13010. /**
  13011. *
  13012. * @param {string} id
  13013. * @param {AssetIdsDto} assetIdsDto
  13014. * @param {*} [options] Override http request option.
  13015. * @throws {RequiredError}
  13016. */
  13017. async untagAssets(id: string, assetIdsDto: AssetIdsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetIdsResponseDto>>> {
  13018. const localVarAxiosArgs = await localVarAxiosParamCreator.untagAssets(id, assetIdsDto, options);
  13019. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13020. },
  13021. /**
  13022. *
  13023. * @param {string} id
  13024. * @param {UpdateTagDto} updateTagDto
  13025. * @param {*} [options] Override http request option.
  13026. * @throws {RequiredError}
  13027. */
  13028. async updateTag(id: string, updateTagDto: UpdateTagDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagResponseDto>> {
  13029. const localVarAxiosArgs = await localVarAxiosParamCreator.updateTag(id, updateTagDto, options);
  13030. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13031. },
  13032. }
  13033. };
  13034. /**
  13035. * TagApi - factory interface
  13036. * @export
  13037. */
  13038. export const TagApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  13039. const localVarFp = TagApiFp(configuration)
  13040. return {
  13041. /**
  13042. *
  13043. * @param {TagApiCreateTagRequest} requestParameters Request parameters.
  13044. * @param {*} [options] Override http request option.
  13045. * @throws {RequiredError}
  13046. */
  13047. createTag(requestParameters: TagApiCreateTagRequest, options?: AxiosRequestConfig): AxiosPromise<TagResponseDto> {
  13048. return localVarFp.createTag(requestParameters.createTagDto, options).then((request) => request(axios, basePath));
  13049. },
  13050. /**
  13051. *
  13052. * @param {TagApiDeleteTagRequest} requestParameters Request parameters.
  13053. * @param {*} [options] Override http request option.
  13054. * @throws {RequiredError}
  13055. */
  13056. deleteTag(requestParameters: TagApiDeleteTagRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  13057. return localVarFp.deleteTag(requestParameters.id, options).then((request) => request(axios, basePath));
  13058. },
  13059. /**
  13060. *
  13061. * @param {*} [options] Override http request option.
  13062. * @throws {RequiredError}
  13063. */
  13064. getAllTags(options?: AxiosRequestConfig): AxiosPromise<Array<TagResponseDto>> {
  13065. return localVarFp.getAllTags(options).then((request) => request(axios, basePath));
  13066. },
  13067. /**
  13068. *
  13069. * @param {TagApiGetTagAssetsRequest} requestParameters Request parameters.
  13070. * @param {*} [options] Override http request option.
  13071. * @throws {RequiredError}
  13072. */
  13073. getTagAssets(requestParameters: TagApiGetTagAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
  13074. return localVarFp.getTagAssets(requestParameters.id, options).then((request) => request(axios, basePath));
  13075. },
  13076. /**
  13077. *
  13078. * @param {TagApiGetTagByIdRequest} requestParameters Request parameters.
  13079. * @param {*} [options] Override http request option.
  13080. * @throws {RequiredError}
  13081. */
  13082. getTagById(requestParameters: TagApiGetTagByIdRequest, options?: AxiosRequestConfig): AxiosPromise<TagResponseDto> {
  13083. return localVarFp.getTagById(requestParameters.id, options).then((request) => request(axios, basePath));
  13084. },
  13085. /**
  13086. *
  13087. * @param {TagApiTagAssetsRequest} requestParameters Request parameters.
  13088. * @param {*} [options] Override http request option.
  13089. * @throws {RequiredError}
  13090. */
  13091. tagAssets(requestParameters: TagApiTagAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetIdsResponseDto>> {
  13092. return localVarFp.tagAssets(requestParameters.id, requestParameters.assetIdsDto, options).then((request) => request(axios, basePath));
  13093. },
  13094. /**
  13095. *
  13096. * @param {TagApiUntagAssetsRequest} requestParameters Request parameters.
  13097. * @param {*} [options] Override http request option.
  13098. * @throws {RequiredError}
  13099. */
  13100. untagAssets(requestParameters: TagApiUntagAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetIdsResponseDto>> {
  13101. return localVarFp.untagAssets(requestParameters.id, requestParameters.assetIdsDto, options).then((request) => request(axios, basePath));
  13102. },
  13103. /**
  13104. *
  13105. * @param {TagApiUpdateTagRequest} requestParameters Request parameters.
  13106. * @param {*} [options] Override http request option.
  13107. * @throws {RequiredError}
  13108. */
  13109. updateTag(requestParameters: TagApiUpdateTagRequest, options?: AxiosRequestConfig): AxiosPromise<TagResponseDto> {
  13110. return localVarFp.updateTag(requestParameters.id, requestParameters.updateTagDto, options).then((request) => request(axios, basePath));
  13111. },
  13112. };
  13113. };
  13114. /**
  13115. * Request parameters for createTag operation in TagApi.
  13116. * @export
  13117. * @interface TagApiCreateTagRequest
  13118. */
  13119. export interface TagApiCreateTagRequest {
  13120. /**
  13121. *
  13122. * @type {CreateTagDto}
  13123. * @memberof TagApiCreateTag
  13124. */
  13125. readonly createTagDto: CreateTagDto
  13126. }
  13127. /**
  13128. * Request parameters for deleteTag operation in TagApi.
  13129. * @export
  13130. * @interface TagApiDeleteTagRequest
  13131. */
  13132. export interface TagApiDeleteTagRequest {
  13133. /**
  13134. *
  13135. * @type {string}
  13136. * @memberof TagApiDeleteTag
  13137. */
  13138. readonly id: string
  13139. }
  13140. /**
  13141. * Request parameters for getTagAssets operation in TagApi.
  13142. * @export
  13143. * @interface TagApiGetTagAssetsRequest
  13144. */
  13145. export interface TagApiGetTagAssetsRequest {
  13146. /**
  13147. *
  13148. * @type {string}
  13149. * @memberof TagApiGetTagAssets
  13150. */
  13151. readonly id: string
  13152. }
  13153. /**
  13154. * Request parameters for getTagById operation in TagApi.
  13155. * @export
  13156. * @interface TagApiGetTagByIdRequest
  13157. */
  13158. export interface TagApiGetTagByIdRequest {
  13159. /**
  13160. *
  13161. * @type {string}
  13162. * @memberof TagApiGetTagById
  13163. */
  13164. readonly id: string
  13165. }
  13166. /**
  13167. * Request parameters for tagAssets operation in TagApi.
  13168. * @export
  13169. * @interface TagApiTagAssetsRequest
  13170. */
  13171. export interface TagApiTagAssetsRequest {
  13172. /**
  13173. *
  13174. * @type {string}
  13175. * @memberof TagApiTagAssets
  13176. */
  13177. readonly id: string
  13178. /**
  13179. *
  13180. * @type {AssetIdsDto}
  13181. * @memberof TagApiTagAssets
  13182. */
  13183. readonly assetIdsDto: AssetIdsDto
  13184. }
  13185. /**
  13186. * Request parameters for untagAssets operation in TagApi.
  13187. * @export
  13188. * @interface TagApiUntagAssetsRequest
  13189. */
  13190. export interface TagApiUntagAssetsRequest {
  13191. /**
  13192. *
  13193. * @type {string}
  13194. * @memberof TagApiUntagAssets
  13195. */
  13196. readonly id: string
  13197. /**
  13198. *
  13199. * @type {AssetIdsDto}
  13200. * @memberof TagApiUntagAssets
  13201. */
  13202. readonly assetIdsDto: AssetIdsDto
  13203. }
  13204. /**
  13205. * Request parameters for updateTag operation in TagApi.
  13206. * @export
  13207. * @interface TagApiUpdateTagRequest
  13208. */
  13209. export interface TagApiUpdateTagRequest {
  13210. /**
  13211. *
  13212. * @type {string}
  13213. * @memberof TagApiUpdateTag
  13214. */
  13215. readonly id: string
  13216. /**
  13217. *
  13218. * @type {UpdateTagDto}
  13219. * @memberof TagApiUpdateTag
  13220. */
  13221. readonly updateTagDto: UpdateTagDto
  13222. }
  13223. /**
  13224. * TagApi - object-oriented interface
  13225. * @export
  13226. * @class TagApi
  13227. * @extends {BaseAPI}
  13228. */
  13229. export class TagApi extends BaseAPI {
  13230. /**
  13231. *
  13232. * @param {TagApiCreateTagRequest} requestParameters Request parameters.
  13233. * @param {*} [options] Override http request option.
  13234. * @throws {RequiredError}
  13235. * @memberof TagApi
  13236. */
  13237. public createTag(requestParameters: TagApiCreateTagRequest, options?: AxiosRequestConfig) {
  13238. return TagApiFp(this.configuration).createTag(requestParameters.createTagDto, options).then((request) => request(this.axios, this.basePath));
  13239. }
  13240. /**
  13241. *
  13242. * @param {TagApiDeleteTagRequest} requestParameters Request parameters.
  13243. * @param {*} [options] Override http request option.
  13244. * @throws {RequiredError}
  13245. * @memberof TagApi
  13246. */
  13247. public deleteTag(requestParameters: TagApiDeleteTagRequest, options?: AxiosRequestConfig) {
  13248. return TagApiFp(this.configuration).deleteTag(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  13249. }
  13250. /**
  13251. *
  13252. * @param {*} [options] Override http request option.
  13253. * @throws {RequiredError}
  13254. * @memberof TagApi
  13255. */
  13256. public getAllTags(options?: AxiosRequestConfig) {
  13257. return TagApiFp(this.configuration).getAllTags(options).then((request) => request(this.axios, this.basePath));
  13258. }
  13259. /**
  13260. *
  13261. * @param {TagApiGetTagAssetsRequest} requestParameters Request parameters.
  13262. * @param {*} [options] Override http request option.
  13263. * @throws {RequiredError}
  13264. * @memberof TagApi
  13265. */
  13266. public getTagAssets(requestParameters: TagApiGetTagAssetsRequest, options?: AxiosRequestConfig) {
  13267. return TagApiFp(this.configuration).getTagAssets(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  13268. }
  13269. /**
  13270. *
  13271. * @param {TagApiGetTagByIdRequest} requestParameters Request parameters.
  13272. * @param {*} [options] Override http request option.
  13273. * @throws {RequiredError}
  13274. * @memberof TagApi
  13275. */
  13276. public getTagById(requestParameters: TagApiGetTagByIdRequest, options?: AxiosRequestConfig) {
  13277. return TagApiFp(this.configuration).getTagById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  13278. }
  13279. /**
  13280. *
  13281. * @param {TagApiTagAssetsRequest} requestParameters Request parameters.
  13282. * @param {*} [options] Override http request option.
  13283. * @throws {RequiredError}
  13284. * @memberof TagApi
  13285. */
  13286. public tagAssets(requestParameters: TagApiTagAssetsRequest, options?: AxiosRequestConfig) {
  13287. return TagApiFp(this.configuration).tagAssets(requestParameters.id, requestParameters.assetIdsDto, options).then((request) => request(this.axios, this.basePath));
  13288. }
  13289. /**
  13290. *
  13291. * @param {TagApiUntagAssetsRequest} requestParameters Request parameters.
  13292. * @param {*} [options] Override http request option.
  13293. * @throws {RequiredError}
  13294. * @memberof TagApi
  13295. */
  13296. public untagAssets(requestParameters: TagApiUntagAssetsRequest, options?: AxiosRequestConfig) {
  13297. return TagApiFp(this.configuration).untagAssets(requestParameters.id, requestParameters.assetIdsDto, options).then((request) => request(this.axios, this.basePath));
  13298. }
  13299. /**
  13300. *
  13301. * @param {TagApiUpdateTagRequest} requestParameters Request parameters.
  13302. * @param {*} [options] Override http request option.
  13303. * @throws {RequiredError}
  13304. * @memberof TagApi
  13305. */
  13306. public updateTag(requestParameters: TagApiUpdateTagRequest, options?: AxiosRequestConfig) {
  13307. return TagApiFp(this.configuration).updateTag(requestParameters.id, requestParameters.updateTagDto, options).then((request) => request(this.axios, this.basePath));
  13308. }
  13309. }
  13310. /**
  13311. * UserApi - axios parameter creator
  13312. * @export
  13313. */
  13314. export const UserApiAxiosParamCreator = function (configuration?: Configuration) {
  13315. return {
  13316. /**
  13317. *
  13318. * @param {File} file
  13319. * @param {*} [options] Override http request option.
  13320. * @throws {RequiredError}
  13321. */
  13322. createProfileImage: async (file: File, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13323. // verify required parameter 'file' is not null or undefined
  13324. assertParamExists('createProfileImage', 'file', file)
  13325. const localVarPath = `/user/profile-image`;
  13326. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13327. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13328. let baseOptions;
  13329. if (configuration) {
  13330. baseOptions = configuration.baseOptions;
  13331. }
  13332. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  13333. const localVarHeaderParameter = {} as any;
  13334. const localVarQueryParameter = {} as any;
  13335. const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
  13336. // authentication cookie required
  13337. // authentication api_key required
  13338. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13339. // authentication bearer required
  13340. // http bearer authentication required
  13341. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13342. if (file !== undefined) {
  13343. localVarFormParams.append('file', file as any);
  13344. }
  13345. localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
  13346. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13347. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13348. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13349. localVarRequestOptions.data = localVarFormParams;
  13350. return {
  13351. url: toPathString(localVarUrlObj),
  13352. options: localVarRequestOptions,
  13353. };
  13354. },
  13355. /**
  13356. *
  13357. * @param {CreateUserDto} createUserDto
  13358. * @param {*} [options] Override http request option.
  13359. * @throws {RequiredError}
  13360. */
  13361. createUser: async (createUserDto: CreateUserDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13362. // verify required parameter 'createUserDto' is not null or undefined
  13363. assertParamExists('createUser', 'createUserDto', createUserDto)
  13364. const localVarPath = `/user`;
  13365. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13366. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13367. let baseOptions;
  13368. if (configuration) {
  13369. baseOptions = configuration.baseOptions;
  13370. }
  13371. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  13372. const localVarHeaderParameter = {} as any;
  13373. const localVarQueryParameter = {} as any;
  13374. // authentication cookie required
  13375. // authentication api_key required
  13376. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13377. // authentication bearer required
  13378. // http bearer authentication required
  13379. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13380. localVarHeaderParameter['Content-Type'] = 'application/json';
  13381. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13382. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13383. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13384. localVarRequestOptions.data = serializeDataIfNeeded(createUserDto, localVarRequestOptions, configuration)
  13385. return {
  13386. url: toPathString(localVarUrlObj),
  13387. options: localVarRequestOptions,
  13388. };
  13389. },
  13390. /**
  13391. *
  13392. * @param {string} id
  13393. * @param {*} [options] Override http request option.
  13394. * @throws {RequiredError}
  13395. */
  13396. deleteUser: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13397. // verify required parameter 'id' is not null or undefined
  13398. assertParamExists('deleteUser', 'id', id)
  13399. const localVarPath = `/user/{id}`
  13400. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  13401. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13402. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13403. let baseOptions;
  13404. if (configuration) {
  13405. baseOptions = configuration.baseOptions;
  13406. }
  13407. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  13408. const localVarHeaderParameter = {} as any;
  13409. const localVarQueryParameter = {} as any;
  13410. // authentication cookie required
  13411. // authentication api_key required
  13412. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13413. // authentication bearer required
  13414. // http bearer authentication required
  13415. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13416. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13417. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13418. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13419. return {
  13420. url: toPathString(localVarUrlObj),
  13421. options: localVarRequestOptions,
  13422. };
  13423. },
  13424. /**
  13425. *
  13426. * @param {boolean} isAll
  13427. * @param {*} [options] Override http request option.
  13428. * @throws {RequiredError}
  13429. */
  13430. getAllUsers: async (isAll: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13431. // verify required parameter 'isAll' is not null or undefined
  13432. assertParamExists('getAllUsers', 'isAll', isAll)
  13433. const localVarPath = `/user`;
  13434. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13435. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13436. let baseOptions;
  13437. if (configuration) {
  13438. baseOptions = configuration.baseOptions;
  13439. }
  13440. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13441. const localVarHeaderParameter = {} as any;
  13442. const localVarQueryParameter = {} as any;
  13443. // authentication cookie required
  13444. // authentication api_key required
  13445. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13446. // authentication bearer required
  13447. // http bearer authentication required
  13448. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13449. if (isAll !== undefined) {
  13450. localVarQueryParameter['isAll'] = isAll;
  13451. }
  13452. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13453. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13454. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13455. return {
  13456. url: toPathString(localVarUrlObj),
  13457. options: localVarRequestOptions,
  13458. };
  13459. },
  13460. /**
  13461. *
  13462. * @param {*} [options] Override http request option.
  13463. * @throws {RequiredError}
  13464. */
  13465. getMyUserInfo: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13466. const localVarPath = `/user/me`;
  13467. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13468. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13469. let baseOptions;
  13470. if (configuration) {
  13471. baseOptions = configuration.baseOptions;
  13472. }
  13473. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13474. const localVarHeaderParameter = {} as any;
  13475. const localVarQueryParameter = {} as any;
  13476. // authentication cookie required
  13477. // authentication api_key required
  13478. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13479. // authentication bearer required
  13480. // http bearer authentication required
  13481. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13482. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13483. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13484. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13485. return {
  13486. url: toPathString(localVarUrlObj),
  13487. options: localVarRequestOptions,
  13488. };
  13489. },
  13490. /**
  13491. *
  13492. * @param {string} id
  13493. * @param {*} [options] Override http request option.
  13494. * @throws {RequiredError}
  13495. */
  13496. getProfileImage: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13497. // verify required parameter 'id' is not null or undefined
  13498. assertParamExists('getProfileImage', 'id', id)
  13499. const localVarPath = `/user/profile-image/{id}`
  13500. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  13501. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13502. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13503. let baseOptions;
  13504. if (configuration) {
  13505. baseOptions = configuration.baseOptions;
  13506. }
  13507. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13508. const localVarHeaderParameter = {} as any;
  13509. const localVarQueryParameter = {} as any;
  13510. // authentication cookie required
  13511. // authentication api_key required
  13512. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13513. // authentication bearer required
  13514. // http bearer authentication required
  13515. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13516. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13517. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13518. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13519. return {
  13520. url: toPathString(localVarUrlObj),
  13521. options: localVarRequestOptions,
  13522. };
  13523. },
  13524. /**
  13525. *
  13526. * @param {string} id
  13527. * @param {*} [options] Override http request option.
  13528. * @throws {RequiredError}
  13529. */
  13530. getUserById: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13531. // verify required parameter 'id' is not null or undefined
  13532. assertParamExists('getUserById', 'id', id)
  13533. const localVarPath = `/user/info/{id}`
  13534. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  13535. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13536. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13537. let baseOptions;
  13538. if (configuration) {
  13539. baseOptions = configuration.baseOptions;
  13540. }
  13541. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13542. const localVarHeaderParameter = {} as any;
  13543. const localVarQueryParameter = {} as any;
  13544. // authentication cookie required
  13545. // authentication api_key required
  13546. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13547. // authentication bearer required
  13548. // http bearer authentication required
  13549. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13550. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13551. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13552. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13553. return {
  13554. url: toPathString(localVarUrlObj),
  13555. options: localVarRequestOptions,
  13556. };
  13557. },
  13558. /**
  13559. *
  13560. * @param {boolean} [admin]
  13561. * @param {*} [options] Override http request option.
  13562. * @throws {RequiredError}
  13563. */
  13564. getUserCount: async (admin?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13565. const localVarPath = `/user/count`;
  13566. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13567. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13568. let baseOptions;
  13569. if (configuration) {
  13570. baseOptions = configuration.baseOptions;
  13571. }
  13572. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13573. const localVarHeaderParameter = {} as any;
  13574. const localVarQueryParameter = {} as any;
  13575. if (admin !== undefined) {
  13576. localVarQueryParameter['admin'] = admin;
  13577. }
  13578. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13579. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13580. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13581. return {
  13582. url: toPathString(localVarUrlObj),
  13583. options: localVarRequestOptions,
  13584. };
  13585. },
  13586. /**
  13587. *
  13588. * @param {string} id
  13589. * @param {*} [options] Override http request option.
  13590. * @throws {RequiredError}
  13591. */
  13592. restoreUser: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13593. // verify required parameter 'id' is not null or undefined
  13594. assertParamExists('restoreUser', 'id', id)
  13595. const localVarPath = `/user/{id}/restore`
  13596. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  13597. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13598. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13599. let baseOptions;
  13600. if (configuration) {
  13601. baseOptions = configuration.baseOptions;
  13602. }
  13603. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  13604. const localVarHeaderParameter = {} as any;
  13605. const localVarQueryParameter = {} as any;
  13606. // authentication cookie required
  13607. // authentication api_key required
  13608. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13609. // authentication bearer required
  13610. // http bearer authentication required
  13611. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13612. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13613. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13614. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13615. return {
  13616. url: toPathString(localVarUrlObj),
  13617. options: localVarRequestOptions,
  13618. };
  13619. },
  13620. /**
  13621. *
  13622. * @param {UpdateUserDto} updateUserDto
  13623. * @param {*} [options] Override http request option.
  13624. * @throws {RequiredError}
  13625. */
  13626. updateUser: async (updateUserDto: UpdateUserDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13627. // verify required parameter 'updateUserDto' is not null or undefined
  13628. assertParamExists('updateUser', 'updateUserDto', updateUserDto)
  13629. const localVarPath = `/user`;
  13630. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13631. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13632. let baseOptions;
  13633. if (configuration) {
  13634. baseOptions = configuration.baseOptions;
  13635. }
  13636. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  13637. const localVarHeaderParameter = {} as any;
  13638. const localVarQueryParameter = {} as any;
  13639. // authentication cookie required
  13640. // authentication api_key required
  13641. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13642. // authentication bearer required
  13643. // http bearer authentication required
  13644. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13645. localVarHeaderParameter['Content-Type'] = 'application/json';
  13646. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13647. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13648. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13649. localVarRequestOptions.data = serializeDataIfNeeded(updateUserDto, localVarRequestOptions, configuration)
  13650. return {
  13651. url: toPathString(localVarUrlObj),
  13652. options: localVarRequestOptions,
  13653. };
  13654. },
  13655. }
  13656. };
  13657. /**
  13658. * UserApi - functional programming interface
  13659. * @export
  13660. */
  13661. export const UserApiFp = function(configuration?: Configuration) {
  13662. const localVarAxiosParamCreator = UserApiAxiosParamCreator(configuration)
  13663. return {
  13664. /**
  13665. *
  13666. * @param {File} file
  13667. * @param {*} [options] Override http request option.
  13668. * @throws {RequiredError}
  13669. */
  13670. async createProfileImage(file: File, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateProfileImageResponseDto>> {
  13671. const localVarAxiosArgs = await localVarAxiosParamCreator.createProfileImage(file, options);
  13672. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13673. },
  13674. /**
  13675. *
  13676. * @param {CreateUserDto} createUserDto
  13677. * @param {*} [options] Override http request option.
  13678. * @throws {RequiredError}
  13679. */
  13680. async createUser(createUserDto: CreateUserDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  13681. const localVarAxiosArgs = await localVarAxiosParamCreator.createUser(createUserDto, options);
  13682. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13683. },
  13684. /**
  13685. *
  13686. * @param {string} id
  13687. * @param {*} [options] Override http request option.
  13688. * @throws {RequiredError}
  13689. */
  13690. async deleteUser(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  13691. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUser(id, options);
  13692. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13693. },
  13694. /**
  13695. *
  13696. * @param {boolean} isAll
  13697. * @param {*} [options] Override http request option.
  13698. * @throws {RequiredError}
  13699. */
  13700. async getAllUsers(isAll: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<UserResponseDto>>> {
  13701. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllUsers(isAll, options);
  13702. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13703. },
  13704. /**
  13705. *
  13706. * @param {*} [options] Override http request option.
  13707. * @throws {RequiredError}
  13708. */
  13709. async getMyUserInfo(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  13710. const localVarAxiosArgs = await localVarAxiosParamCreator.getMyUserInfo(options);
  13711. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13712. },
  13713. /**
  13714. *
  13715. * @param {string} id
  13716. * @param {*} [options] Override http request option.
  13717. * @throws {RequiredError}
  13718. */
  13719. async getProfileImage(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
  13720. const localVarAxiosArgs = await localVarAxiosParamCreator.getProfileImage(id, options);
  13721. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13722. },
  13723. /**
  13724. *
  13725. * @param {string} id
  13726. * @param {*} [options] Override http request option.
  13727. * @throws {RequiredError}
  13728. */
  13729. async getUserById(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  13730. const localVarAxiosArgs = await localVarAxiosParamCreator.getUserById(id, options);
  13731. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13732. },
  13733. /**
  13734. *
  13735. * @param {boolean} [admin]
  13736. * @param {*} [options] Override http request option.
  13737. * @throws {RequiredError}
  13738. */
  13739. async getUserCount(admin?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserCountResponseDto>> {
  13740. const localVarAxiosArgs = await localVarAxiosParamCreator.getUserCount(admin, options);
  13741. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13742. },
  13743. /**
  13744. *
  13745. * @param {string} id
  13746. * @param {*} [options] Override http request option.
  13747. * @throws {RequiredError}
  13748. */
  13749. async restoreUser(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  13750. const localVarAxiosArgs = await localVarAxiosParamCreator.restoreUser(id, options);
  13751. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13752. },
  13753. /**
  13754. *
  13755. * @param {UpdateUserDto} updateUserDto
  13756. * @param {*} [options] Override http request option.
  13757. * @throws {RequiredError}
  13758. */
  13759. async updateUser(updateUserDto: UpdateUserDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  13760. const localVarAxiosArgs = await localVarAxiosParamCreator.updateUser(updateUserDto, options);
  13761. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13762. },
  13763. }
  13764. };
  13765. /**
  13766. * UserApi - factory interface
  13767. * @export
  13768. */
  13769. export const UserApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  13770. const localVarFp = UserApiFp(configuration)
  13771. return {
  13772. /**
  13773. *
  13774. * @param {UserApiCreateProfileImageRequest} requestParameters Request parameters.
  13775. * @param {*} [options] Override http request option.
  13776. * @throws {RequiredError}
  13777. */
  13778. createProfileImage(requestParameters: UserApiCreateProfileImageRequest, options?: AxiosRequestConfig): AxiosPromise<CreateProfileImageResponseDto> {
  13779. return localVarFp.createProfileImage(requestParameters.file, options).then((request) => request(axios, basePath));
  13780. },
  13781. /**
  13782. *
  13783. * @param {UserApiCreateUserRequest} requestParameters Request parameters.
  13784. * @param {*} [options] Override http request option.
  13785. * @throws {RequiredError}
  13786. */
  13787. createUser(requestParameters: UserApiCreateUserRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  13788. return localVarFp.createUser(requestParameters.createUserDto, options).then((request) => request(axios, basePath));
  13789. },
  13790. /**
  13791. *
  13792. * @param {UserApiDeleteUserRequest} requestParameters Request parameters.
  13793. * @param {*} [options] Override http request option.
  13794. * @throws {RequiredError}
  13795. */
  13796. deleteUser(requestParameters: UserApiDeleteUserRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  13797. return localVarFp.deleteUser(requestParameters.id, options).then((request) => request(axios, basePath));
  13798. },
  13799. /**
  13800. *
  13801. * @param {UserApiGetAllUsersRequest} requestParameters Request parameters.
  13802. * @param {*} [options] Override http request option.
  13803. * @throws {RequiredError}
  13804. */
  13805. getAllUsers(requestParameters: UserApiGetAllUsersRequest, options?: AxiosRequestConfig): AxiosPromise<Array<UserResponseDto>> {
  13806. return localVarFp.getAllUsers(requestParameters.isAll, options).then((request) => request(axios, basePath));
  13807. },
  13808. /**
  13809. *
  13810. * @param {*} [options] Override http request option.
  13811. * @throws {RequiredError}
  13812. */
  13813. getMyUserInfo(options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  13814. return localVarFp.getMyUserInfo(options).then((request) => request(axios, basePath));
  13815. },
  13816. /**
  13817. *
  13818. * @param {UserApiGetProfileImageRequest} requestParameters Request parameters.
  13819. * @param {*} [options] Override http request option.
  13820. * @throws {RequiredError}
  13821. */
  13822. getProfileImage(requestParameters: UserApiGetProfileImageRequest, options?: AxiosRequestConfig): AxiosPromise<object> {
  13823. return localVarFp.getProfileImage(requestParameters.id, options).then((request) => request(axios, basePath));
  13824. },
  13825. /**
  13826. *
  13827. * @param {UserApiGetUserByIdRequest} requestParameters Request parameters.
  13828. * @param {*} [options] Override http request option.
  13829. * @throws {RequiredError}
  13830. */
  13831. getUserById(requestParameters: UserApiGetUserByIdRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  13832. return localVarFp.getUserById(requestParameters.id, options).then((request) => request(axios, basePath));
  13833. },
  13834. /**
  13835. *
  13836. * @param {UserApiGetUserCountRequest} requestParameters Request parameters.
  13837. * @param {*} [options] Override http request option.
  13838. * @throws {RequiredError}
  13839. */
  13840. getUserCount(requestParameters: UserApiGetUserCountRequest = {}, options?: AxiosRequestConfig): AxiosPromise<UserCountResponseDto> {
  13841. return localVarFp.getUserCount(requestParameters.admin, options).then((request) => request(axios, basePath));
  13842. },
  13843. /**
  13844. *
  13845. * @param {UserApiRestoreUserRequest} requestParameters Request parameters.
  13846. * @param {*} [options] Override http request option.
  13847. * @throws {RequiredError}
  13848. */
  13849. restoreUser(requestParameters: UserApiRestoreUserRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  13850. return localVarFp.restoreUser(requestParameters.id, options).then((request) => request(axios, basePath));
  13851. },
  13852. /**
  13853. *
  13854. * @param {UserApiUpdateUserRequest} requestParameters Request parameters.
  13855. * @param {*} [options] Override http request option.
  13856. * @throws {RequiredError}
  13857. */
  13858. updateUser(requestParameters: UserApiUpdateUserRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  13859. return localVarFp.updateUser(requestParameters.updateUserDto, options).then((request) => request(axios, basePath));
  13860. },
  13861. };
  13862. };
  13863. /**
  13864. * Request parameters for createProfileImage operation in UserApi.
  13865. * @export
  13866. * @interface UserApiCreateProfileImageRequest
  13867. */
  13868. export interface UserApiCreateProfileImageRequest {
  13869. /**
  13870. *
  13871. * @type {File}
  13872. * @memberof UserApiCreateProfileImage
  13873. */
  13874. readonly file: File
  13875. }
  13876. /**
  13877. * Request parameters for createUser operation in UserApi.
  13878. * @export
  13879. * @interface UserApiCreateUserRequest
  13880. */
  13881. export interface UserApiCreateUserRequest {
  13882. /**
  13883. *
  13884. * @type {CreateUserDto}
  13885. * @memberof UserApiCreateUser
  13886. */
  13887. readonly createUserDto: CreateUserDto
  13888. }
  13889. /**
  13890. * Request parameters for deleteUser operation in UserApi.
  13891. * @export
  13892. * @interface UserApiDeleteUserRequest
  13893. */
  13894. export interface UserApiDeleteUserRequest {
  13895. /**
  13896. *
  13897. * @type {string}
  13898. * @memberof UserApiDeleteUser
  13899. */
  13900. readonly id: string
  13901. }
  13902. /**
  13903. * Request parameters for getAllUsers operation in UserApi.
  13904. * @export
  13905. * @interface UserApiGetAllUsersRequest
  13906. */
  13907. export interface UserApiGetAllUsersRequest {
  13908. /**
  13909. *
  13910. * @type {boolean}
  13911. * @memberof UserApiGetAllUsers
  13912. */
  13913. readonly isAll: boolean
  13914. }
  13915. /**
  13916. * Request parameters for getProfileImage operation in UserApi.
  13917. * @export
  13918. * @interface UserApiGetProfileImageRequest
  13919. */
  13920. export interface UserApiGetProfileImageRequest {
  13921. /**
  13922. *
  13923. * @type {string}
  13924. * @memberof UserApiGetProfileImage
  13925. */
  13926. readonly id: string
  13927. }
  13928. /**
  13929. * Request parameters for getUserById operation in UserApi.
  13930. * @export
  13931. * @interface UserApiGetUserByIdRequest
  13932. */
  13933. export interface UserApiGetUserByIdRequest {
  13934. /**
  13935. *
  13936. * @type {string}
  13937. * @memberof UserApiGetUserById
  13938. */
  13939. readonly id: string
  13940. }
  13941. /**
  13942. * Request parameters for getUserCount operation in UserApi.
  13943. * @export
  13944. * @interface UserApiGetUserCountRequest
  13945. */
  13946. export interface UserApiGetUserCountRequest {
  13947. /**
  13948. *
  13949. * @type {boolean}
  13950. * @memberof UserApiGetUserCount
  13951. */
  13952. readonly admin?: boolean
  13953. }
  13954. /**
  13955. * Request parameters for restoreUser operation in UserApi.
  13956. * @export
  13957. * @interface UserApiRestoreUserRequest
  13958. */
  13959. export interface UserApiRestoreUserRequest {
  13960. /**
  13961. *
  13962. * @type {string}
  13963. * @memberof UserApiRestoreUser
  13964. */
  13965. readonly id: string
  13966. }
  13967. /**
  13968. * Request parameters for updateUser operation in UserApi.
  13969. * @export
  13970. * @interface UserApiUpdateUserRequest
  13971. */
  13972. export interface UserApiUpdateUserRequest {
  13973. /**
  13974. *
  13975. * @type {UpdateUserDto}
  13976. * @memberof UserApiUpdateUser
  13977. */
  13978. readonly updateUserDto: UpdateUserDto
  13979. }
  13980. /**
  13981. * UserApi - object-oriented interface
  13982. * @export
  13983. * @class UserApi
  13984. * @extends {BaseAPI}
  13985. */
  13986. export class UserApi extends BaseAPI {
  13987. /**
  13988. *
  13989. * @param {UserApiCreateProfileImageRequest} requestParameters Request parameters.
  13990. * @param {*} [options] Override http request option.
  13991. * @throws {RequiredError}
  13992. * @memberof UserApi
  13993. */
  13994. public createProfileImage(requestParameters: UserApiCreateProfileImageRequest, options?: AxiosRequestConfig) {
  13995. return UserApiFp(this.configuration).createProfileImage(requestParameters.file, options).then((request) => request(this.axios, this.basePath));
  13996. }
  13997. /**
  13998. *
  13999. * @param {UserApiCreateUserRequest} requestParameters Request parameters.
  14000. * @param {*} [options] Override http request option.
  14001. * @throws {RequiredError}
  14002. * @memberof UserApi
  14003. */
  14004. public createUser(requestParameters: UserApiCreateUserRequest, options?: AxiosRequestConfig) {
  14005. return UserApiFp(this.configuration).createUser(requestParameters.createUserDto, options).then((request) => request(this.axios, this.basePath));
  14006. }
  14007. /**
  14008. *
  14009. * @param {UserApiDeleteUserRequest} requestParameters Request parameters.
  14010. * @param {*} [options] Override http request option.
  14011. * @throws {RequiredError}
  14012. * @memberof UserApi
  14013. */
  14014. public deleteUser(requestParameters: UserApiDeleteUserRequest, options?: AxiosRequestConfig) {
  14015. return UserApiFp(this.configuration).deleteUser(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  14016. }
  14017. /**
  14018. *
  14019. * @param {UserApiGetAllUsersRequest} requestParameters Request parameters.
  14020. * @param {*} [options] Override http request option.
  14021. * @throws {RequiredError}
  14022. * @memberof UserApi
  14023. */
  14024. public getAllUsers(requestParameters: UserApiGetAllUsersRequest, options?: AxiosRequestConfig) {
  14025. return UserApiFp(this.configuration).getAllUsers(requestParameters.isAll, options).then((request) => request(this.axios, this.basePath));
  14026. }
  14027. /**
  14028. *
  14029. * @param {*} [options] Override http request option.
  14030. * @throws {RequiredError}
  14031. * @memberof UserApi
  14032. */
  14033. public getMyUserInfo(options?: AxiosRequestConfig) {
  14034. return UserApiFp(this.configuration).getMyUserInfo(options).then((request) => request(this.axios, this.basePath));
  14035. }
  14036. /**
  14037. *
  14038. * @param {UserApiGetProfileImageRequest} requestParameters Request parameters.
  14039. * @param {*} [options] Override http request option.
  14040. * @throws {RequiredError}
  14041. * @memberof UserApi
  14042. */
  14043. public getProfileImage(requestParameters: UserApiGetProfileImageRequest, options?: AxiosRequestConfig) {
  14044. return UserApiFp(this.configuration).getProfileImage(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  14045. }
  14046. /**
  14047. *
  14048. * @param {UserApiGetUserByIdRequest} requestParameters Request parameters.
  14049. * @param {*} [options] Override http request option.
  14050. * @throws {RequiredError}
  14051. * @memberof UserApi
  14052. */
  14053. public getUserById(requestParameters: UserApiGetUserByIdRequest, options?: AxiosRequestConfig) {
  14054. return UserApiFp(this.configuration).getUserById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  14055. }
  14056. /**
  14057. *
  14058. * @param {UserApiGetUserCountRequest} requestParameters Request parameters.
  14059. * @param {*} [options] Override http request option.
  14060. * @throws {RequiredError}
  14061. * @memberof UserApi
  14062. */
  14063. public getUserCount(requestParameters: UserApiGetUserCountRequest = {}, options?: AxiosRequestConfig) {
  14064. return UserApiFp(this.configuration).getUserCount(requestParameters.admin, options).then((request) => request(this.axios, this.basePath));
  14065. }
  14066. /**
  14067. *
  14068. * @param {UserApiRestoreUserRequest} requestParameters Request parameters.
  14069. * @param {*} [options] Override http request option.
  14070. * @throws {RequiredError}
  14071. * @memberof UserApi
  14072. */
  14073. public restoreUser(requestParameters: UserApiRestoreUserRequest, options?: AxiosRequestConfig) {
  14074. return UserApiFp(this.configuration).restoreUser(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  14075. }
  14076. /**
  14077. *
  14078. * @param {UserApiUpdateUserRequest} requestParameters Request parameters.
  14079. * @param {*} [options] Override http request option.
  14080. * @throws {RequiredError}
  14081. * @memberof UserApi
  14082. */
  14083. public updateUser(requestParameters: UserApiUpdateUserRequest, options?: AxiosRequestConfig) {
  14084. return UserApiFp(this.configuration).updateUser(requestParameters.updateUserDto, options).then((request) => request(this.axios, this.basePath));
  14085. }
  14086. }