openapi.json 370 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695
  1. {
  2. "openapi": "3.0.3",
  3. "info": {
  4. "title": "core",
  5. "version": "0.0.1",
  6. "description": "Core functionality of Nextcloud",
  7. "license": {
  8. "name": "agpl"
  9. }
  10. },
  11. "components": {
  12. "securitySchemes": {
  13. "basic_auth": {
  14. "type": "http",
  15. "scheme": "basic"
  16. },
  17. "bearer_auth": {
  18. "type": "http",
  19. "scheme": "bearer"
  20. }
  21. },
  22. "schemas": {
  23. "AutocompleteResult": {
  24. "type": "object",
  25. "required": [
  26. "id",
  27. "label",
  28. "icon",
  29. "source",
  30. "status",
  31. "subline",
  32. "shareWithDisplayNameUnique"
  33. ],
  34. "properties": {
  35. "id": {
  36. "type": "string"
  37. },
  38. "label": {
  39. "type": "string"
  40. },
  41. "icon": {
  42. "type": "string"
  43. },
  44. "source": {
  45. "type": "string"
  46. },
  47. "status": {
  48. "oneOf": [
  49. {
  50. "type": "object",
  51. "required": [
  52. "status",
  53. "message",
  54. "icon",
  55. "clearAt"
  56. ],
  57. "properties": {
  58. "status": {
  59. "type": "string"
  60. },
  61. "message": {
  62. "type": "string",
  63. "nullable": true
  64. },
  65. "icon": {
  66. "type": "string",
  67. "nullable": true
  68. },
  69. "clearAt": {
  70. "type": "integer",
  71. "format": "int64",
  72. "nullable": true
  73. }
  74. }
  75. },
  76. {
  77. "type": "string"
  78. }
  79. ]
  80. },
  81. "subline": {
  82. "type": "string"
  83. },
  84. "shareWithDisplayNameUnique": {
  85. "type": "string"
  86. }
  87. }
  88. },
  89. "Capabilities": {
  90. "type": "object",
  91. "required": [
  92. "core"
  93. ],
  94. "properties": {
  95. "core": {
  96. "type": "object",
  97. "required": [
  98. "pollinterval",
  99. "webdav-root",
  100. "reference-api",
  101. "reference-regex",
  102. "mod-rewrite-working"
  103. ],
  104. "properties": {
  105. "pollinterval": {
  106. "type": "integer",
  107. "format": "int64"
  108. },
  109. "webdav-root": {
  110. "type": "string"
  111. },
  112. "reference-api": {
  113. "type": "boolean"
  114. },
  115. "reference-regex": {
  116. "type": "string"
  117. },
  118. "mod-rewrite-working": {
  119. "type": "boolean"
  120. }
  121. }
  122. }
  123. }
  124. },
  125. "Collection": {
  126. "type": "object",
  127. "required": [
  128. "id",
  129. "name",
  130. "resources"
  131. ],
  132. "properties": {
  133. "id": {
  134. "type": "integer",
  135. "format": "int64"
  136. },
  137. "name": {
  138. "type": "string"
  139. },
  140. "resources": {
  141. "type": "array",
  142. "items": {
  143. "$ref": "#/components/schemas/Resource"
  144. }
  145. }
  146. }
  147. },
  148. "ContactsAction": {
  149. "type": "object",
  150. "required": [
  151. "title",
  152. "icon",
  153. "hyperlink",
  154. "appId"
  155. ],
  156. "properties": {
  157. "title": {
  158. "type": "string"
  159. },
  160. "icon": {
  161. "type": "string"
  162. },
  163. "hyperlink": {
  164. "type": "string"
  165. },
  166. "appId": {
  167. "type": "string"
  168. }
  169. }
  170. },
  171. "LoginFlowV2": {
  172. "type": "object",
  173. "required": [
  174. "poll",
  175. "login"
  176. ],
  177. "properties": {
  178. "poll": {
  179. "type": "object",
  180. "required": [
  181. "token",
  182. "endpoint"
  183. ],
  184. "properties": {
  185. "token": {
  186. "type": "string"
  187. },
  188. "endpoint": {
  189. "type": "string"
  190. }
  191. }
  192. },
  193. "login": {
  194. "type": "string"
  195. }
  196. }
  197. },
  198. "LoginFlowV2Credentials": {
  199. "type": "object",
  200. "required": [
  201. "server",
  202. "loginName",
  203. "appPassword"
  204. ],
  205. "properties": {
  206. "server": {
  207. "type": "string"
  208. },
  209. "loginName": {
  210. "type": "string"
  211. },
  212. "appPassword": {
  213. "type": "string"
  214. }
  215. }
  216. },
  217. "NavigationEntry": {
  218. "type": "object",
  219. "required": [
  220. "id",
  221. "href",
  222. "icon",
  223. "type",
  224. "name",
  225. "active",
  226. "classes",
  227. "unread"
  228. ],
  229. "properties": {
  230. "id": {
  231. "type": "string"
  232. },
  233. "order": {
  234. "type": "integer",
  235. "format": "int64"
  236. },
  237. "href": {
  238. "type": "string"
  239. },
  240. "icon": {
  241. "type": "string"
  242. },
  243. "type": {
  244. "type": "string"
  245. },
  246. "name": {
  247. "type": "string"
  248. },
  249. "app": {
  250. "type": "string"
  251. },
  252. "default": {
  253. "type": "boolean"
  254. },
  255. "active": {
  256. "type": "boolean"
  257. },
  258. "classes": {
  259. "type": "string"
  260. },
  261. "unread": {
  262. "type": "integer",
  263. "format": "int64"
  264. }
  265. }
  266. },
  267. "OCSMeta": {
  268. "type": "object",
  269. "required": [
  270. "status",
  271. "statuscode"
  272. ],
  273. "properties": {
  274. "status": {
  275. "type": "string"
  276. },
  277. "statuscode": {
  278. "type": "integer"
  279. },
  280. "message": {
  281. "type": "string"
  282. },
  283. "totalitems": {
  284. "type": "string"
  285. },
  286. "itemsperpage": {
  287. "type": "string"
  288. }
  289. }
  290. },
  291. "OpenGraphObject": {
  292. "type": "object",
  293. "required": [
  294. "id",
  295. "name",
  296. "description",
  297. "thumb",
  298. "link"
  299. ],
  300. "properties": {
  301. "id": {
  302. "type": "string"
  303. },
  304. "name": {
  305. "type": "string"
  306. },
  307. "description": {
  308. "type": "string",
  309. "nullable": true
  310. },
  311. "thumb": {
  312. "type": "string",
  313. "nullable": true
  314. },
  315. "link": {
  316. "type": "string"
  317. }
  318. }
  319. },
  320. "PublicCapabilities": {
  321. "type": "object",
  322. "required": [
  323. "bruteforce"
  324. ],
  325. "properties": {
  326. "bruteforce": {
  327. "type": "object",
  328. "required": [
  329. "delay",
  330. "allow-listed"
  331. ],
  332. "properties": {
  333. "delay": {
  334. "type": "integer",
  335. "format": "int64"
  336. },
  337. "allow-listed": {
  338. "type": "boolean"
  339. }
  340. }
  341. }
  342. }
  343. },
  344. "Reference": {
  345. "type": "object",
  346. "required": [
  347. "richObjectType",
  348. "richObject",
  349. "openGraphObject",
  350. "accessible"
  351. ],
  352. "properties": {
  353. "richObjectType": {
  354. "type": "string"
  355. },
  356. "richObject": {
  357. "type": "object",
  358. "additionalProperties": {
  359. "type": "object",
  360. "nullable": true
  361. }
  362. },
  363. "openGraphObject": {
  364. "$ref": "#/components/schemas/OpenGraphObject"
  365. },
  366. "accessible": {
  367. "type": "boolean"
  368. }
  369. }
  370. },
  371. "ReferenceProvider": {
  372. "type": "object",
  373. "required": [
  374. "id",
  375. "title",
  376. "icon_url",
  377. "order",
  378. "search_providers_ids"
  379. ],
  380. "properties": {
  381. "id": {
  382. "type": "string"
  383. },
  384. "title": {
  385. "type": "string"
  386. },
  387. "icon_url": {
  388. "type": "string"
  389. },
  390. "order": {
  391. "type": "integer",
  392. "format": "int64"
  393. },
  394. "search_providers_ids": {
  395. "type": "array",
  396. "nullable": true,
  397. "items": {
  398. "type": "string"
  399. }
  400. }
  401. }
  402. },
  403. "Resource": {
  404. "type": "object",
  405. "required": [
  406. "richObjectType",
  407. "richObject",
  408. "openGraphObject",
  409. "accessible"
  410. ],
  411. "properties": {
  412. "richObjectType": {
  413. "type": "string"
  414. },
  415. "richObject": {
  416. "type": "object",
  417. "additionalProperties": {
  418. "type": "object",
  419. "nullable": true
  420. }
  421. },
  422. "openGraphObject": {
  423. "$ref": "#/components/schemas/OpenGraphObject"
  424. },
  425. "accessible": {
  426. "type": "boolean"
  427. }
  428. }
  429. },
  430. "Status": {
  431. "type": "object",
  432. "required": [
  433. "installed",
  434. "maintenance",
  435. "needsDbUpgrade",
  436. "version",
  437. "versionstring",
  438. "edition",
  439. "productname",
  440. "extendedSupport"
  441. ],
  442. "properties": {
  443. "installed": {
  444. "type": "boolean"
  445. },
  446. "maintenance": {
  447. "type": "boolean"
  448. },
  449. "needsDbUpgrade": {
  450. "type": "boolean"
  451. },
  452. "version": {
  453. "type": "string"
  454. },
  455. "versionstring": {
  456. "type": "string"
  457. },
  458. "edition": {
  459. "type": "string"
  460. },
  461. "productname": {
  462. "type": "string"
  463. },
  464. "extendedSupport": {
  465. "type": "boolean"
  466. }
  467. }
  468. },
  469. "TaskProcessingIO": {
  470. "type": "object",
  471. "additionalProperties": {
  472. "anyOf": [
  473. {
  474. "type": "number"
  475. },
  476. {
  477. "type": "array",
  478. "items": {
  479. "type": "number"
  480. }
  481. },
  482. {
  483. "type": "string"
  484. },
  485. {
  486. "type": "array",
  487. "items": {
  488. "type": "string"
  489. }
  490. }
  491. ]
  492. }
  493. },
  494. "TaskProcessingShape": {
  495. "type": "object",
  496. "required": [
  497. "name",
  498. "description",
  499. "type"
  500. ],
  501. "properties": {
  502. "name": {
  503. "type": "string"
  504. },
  505. "description": {
  506. "type": "string"
  507. },
  508. "type": {
  509. "type": "string",
  510. "enum": [
  511. "Number",
  512. "Text",
  513. "Audio",
  514. "Image",
  515. "Video",
  516. "File",
  517. "Enum",
  518. "ListOfNumbers",
  519. "ListOfTexts",
  520. "ListOfImages",
  521. "ListOfAudios",
  522. "ListOfVideos",
  523. "ListOfFiles"
  524. ]
  525. }
  526. }
  527. },
  528. "TaskProcessingTask": {
  529. "type": "object",
  530. "required": [
  531. "id",
  532. "lastUpdated",
  533. "type",
  534. "status",
  535. "userId",
  536. "appId",
  537. "input",
  538. "output",
  539. "customId",
  540. "completionExpectedAt",
  541. "progress",
  542. "scheduledAt",
  543. "startedAt",
  544. "endedAt"
  545. ],
  546. "properties": {
  547. "id": {
  548. "type": "integer",
  549. "format": "int64"
  550. },
  551. "lastUpdated": {
  552. "type": "integer",
  553. "format": "int64"
  554. },
  555. "type": {
  556. "type": "string"
  557. },
  558. "status": {
  559. "type": "string",
  560. "enum": [
  561. "STATUS_CANCELLED",
  562. "STATUS_FAILED",
  563. "STATUS_SUCCESSFUL",
  564. "STATUS_RUNNING",
  565. "STATUS_SCHEDULED",
  566. "STATUS_UNKNOWN"
  567. ]
  568. },
  569. "userId": {
  570. "type": "string",
  571. "nullable": true
  572. },
  573. "appId": {
  574. "type": "string"
  575. },
  576. "input": {
  577. "$ref": "#/components/schemas/TaskProcessingIO"
  578. },
  579. "output": {
  580. "$ref": "#/components/schemas/TaskProcessingIO",
  581. "nullable": true
  582. },
  583. "customId": {
  584. "type": "string",
  585. "nullable": true
  586. },
  587. "completionExpectedAt": {
  588. "type": "integer",
  589. "format": "int64",
  590. "nullable": true
  591. },
  592. "progress": {
  593. "type": "number",
  594. "format": "double",
  595. "nullable": true
  596. },
  597. "scheduledAt": {
  598. "type": "integer",
  599. "format": "int64",
  600. "nullable": true
  601. },
  602. "startedAt": {
  603. "type": "integer",
  604. "format": "int64",
  605. "nullable": true
  606. },
  607. "endedAt": {
  608. "type": "integer",
  609. "format": "int64",
  610. "nullable": true
  611. }
  612. }
  613. },
  614. "TaskProcessingTaskType": {
  615. "type": "object",
  616. "required": [
  617. "name",
  618. "description",
  619. "inputShape",
  620. "inputShapeEnumValues",
  621. "inputShapeDefaults",
  622. "optionalInputShape",
  623. "optionalInputShapeEnumValues",
  624. "optionalInputShapeDefaults",
  625. "outputShape",
  626. "outputShapeEnumValues",
  627. "optionalOutputShape",
  628. "optionalOutputShapeEnumValues"
  629. ],
  630. "properties": {
  631. "name": {
  632. "type": "string"
  633. },
  634. "description": {
  635. "type": "string"
  636. },
  637. "inputShape": {
  638. "type": "array",
  639. "items": {
  640. "$ref": "#/components/schemas/TaskProcessingShape"
  641. }
  642. },
  643. "inputShapeEnumValues": {
  644. "type": "array",
  645. "items": {
  646. "type": "array",
  647. "items": {
  648. "type": "object",
  649. "required": [
  650. "name",
  651. "value"
  652. ],
  653. "properties": {
  654. "name": {
  655. "type": "string"
  656. },
  657. "value": {
  658. "type": "string"
  659. }
  660. }
  661. }
  662. }
  663. },
  664. "inputShapeDefaults": {
  665. "type": "object",
  666. "additionalProperties": {
  667. "oneOf": [
  668. {
  669. "type": "number"
  670. },
  671. {
  672. "type": "string"
  673. }
  674. ]
  675. }
  676. },
  677. "optionalInputShape": {
  678. "type": "array",
  679. "items": {
  680. "$ref": "#/components/schemas/TaskProcessingShape"
  681. }
  682. },
  683. "optionalInputShapeEnumValues": {
  684. "type": "array",
  685. "items": {
  686. "type": "array",
  687. "items": {
  688. "type": "object",
  689. "required": [
  690. "name",
  691. "value"
  692. ],
  693. "properties": {
  694. "name": {
  695. "type": "string"
  696. },
  697. "value": {
  698. "type": "string"
  699. }
  700. }
  701. }
  702. }
  703. },
  704. "optionalInputShapeDefaults": {
  705. "type": "object",
  706. "additionalProperties": {
  707. "oneOf": [
  708. {
  709. "type": "number"
  710. },
  711. {
  712. "type": "string"
  713. }
  714. ]
  715. }
  716. },
  717. "outputShape": {
  718. "type": "array",
  719. "items": {
  720. "$ref": "#/components/schemas/TaskProcessingShape"
  721. }
  722. },
  723. "outputShapeEnumValues": {
  724. "type": "array",
  725. "items": {
  726. "type": "array",
  727. "items": {
  728. "type": "object",
  729. "required": [
  730. "name",
  731. "value"
  732. ],
  733. "properties": {
  734. "name": {
  735. "type": "string"
  736. },
  737. "value": {
  738. "type": "string"
  739. }
  740. }
  741. }
  742. }
  743. },
  744. "optionalOutputShape": {
  745. "type": "array",
  746. "items": {
  747. "$ref": "#/components/schemas/TaskProcessingShape"
  748. }
  749. },
  750. "optionalOutputShapeEnumValues": {
  751. "type": "array",
  752. "items": {
  753. "type": "array",
  754. "items": {
  755. "type": "object",
  756. "required": [
  757. "name",
  758. "value"
  759. ],
  760. "properties": {
  761. "name": {
  762. "type": "string"
  763. },
  764. "value": {
  765. "type": "string"
  766. }
  767. }
  768. }
  769. }
  770. }
  771. }
  772. },
  773. "Team": {
  774. "type": "object",
  775. "required": [
  776. "id",
  777. "name",
  778. "icon"
  779. ],
  780. "properties": {
  781. "id": {
  782. "type": "string"
  783. },
  784. "name": {
  785. "type": "string"
  786. },
  787. "icon": {
  788. "type": "string"
  789. }
  790. }
  791. },
  792. "TeamResource": {
  793. "type": "object",
  794. "required": [
  795. "id",
  796. "label",
  797. "url",
  798. "iconSvg",
  799. "iconURL",
  800. "iconEmoji"
  801. ],
  802. "properties": {
  803. "id": {
  804. "type": "integer",
  805. "format": "int64"
  806. },
  807. "label": {
  808. "type": "string"
  809. },
  810. "url": {
  811. "type": "string"
  812. },
  813. "iconSvg": {
  814. "type": "string",
  815. "nullable": true
  816. },
  817. "iconURL": {
  818. "type": "string",
  819. "nullable": true
  820. },
  821. "iconEmoji": {
  822. "type": "string",
  823. "nullable": true
  824. }
  825. }
  826. },
  827. "TextProcessingTask": {
  828. "type": "object",
  829. "required": [
  830. "id",
  831. "type",
  832. "status",
  833. "userId",
  834. "appId",
  835. "input",
  836. "output",
  837. "identifier",
  838. "completionExpectedAt"
  839. ],
  840. "properties": {
  841. "id": {
  842. "type": "integer",
  843. "format": "int64",
  844. "nullable": true
  845. },
  846. "type": {
  847. "type": "string"
  848. },
  849. "status": {
  850. "type": "integer",
  851. "format": "int64",
  852. "enum": [
  853. 0,
  854. 1,
  855. 2,
  856. 3,
  857. 4
  858. ]
  859. },
  860. "userId": {
  861. "type": "string",
  862. "nullable": true
  863. },
  864. "appId": {
  865. "type": "string"
  866. },
  867. "input": {
  868. "type": "string"
  869. },
  870. "output": {
  871. "type": "string",
  872. "nullable": true
  873. },
  874. "identifier": {
  875. "type": "string"
  876. },
  877. "completionExpectedAt": {
  878. "type": "integer",
  879. "format": "int64",
  880. "nullable": true
  881. }
  882. }
  883. },
  884. "TextToImageTask": {
  885. "type": "object",
  886. "required": [
  887. "id",
  888. "status",
  889. "userId",
  890. "appId",
  891. "input",
  892. "identifier",
  893. "numberOfImages",
  894. "completionExpectedAt"
  895. ],
  896. "properties": {
  897. "id": {
  898. "type": "integer",
  899. "format": "int64",
  900. "nullable": true
  901. },
  902. "status": {
  903. "type": "integer",
  904. "format": "int64",
  905. "enum": [
  906. 0,
  907. 1,
  908. 2,
  909. 3,
  910. 4
  911. ]
  912. },
  913. "userId": {
  914. "type": "string",
  915. "nullable": true
  916. },
  917. "appId": {
  918. "type": "string"
  919. },
  920. "input": {
  921. "type": "string"
  922. },
  923. "identifier": {
  924. "type": "string",
  925. "nullable": true
  926. },
  927. "numberOfImages": {
  928. "type": "integer",
  929. "format": "int64"
  930. },
  931. "completionExpectedAt": {
  932. "type": "integer",
  933. "format": "int64",
  934. "nullable": true
  935. }
  936. }
  937. },
  938. "UnifiedSearchProvider": {
  939. "type": "object",
  940. "required": [
  941. "id",
  942. "appId",
  943. "name",
  944. "icon",
  945. "order",
  946. "triggers",
  947. "filters",
  948. "inAppSearch"
  949. ],
  950. "properties": {
  951. "id": {
  952. "type": "string"
  953. },
  954. "appId": {
  955. "type": "string"
  956. },
  957. "name": {
  958. "type": "string"
  959. },
  960. "icon": {
  961. "type": "string"
  962. },
  963. "order": {
  964. "type": "integer",
  965. "format": "int64"
  966. },
  967. "triggers": {
  968. "type": "array",
  969. "items": {
  970. "type": "string"
  971. }
  972. },
  973. "filters": {
  974. "type": "object",
  975. "additionalProperties": {
  976. "type": "string"
  977. }
  978. },
  979. "inAppSearch": {
  980. "type": "boolean"
  981. }
  982. }
  983. },
  984. "UnifiedSearchResult": {
  985. "type": "object",
  986. "required": [
  987. "name",
  988. "isPaginated",
  989. "entries",
  990. "cursor"
  991. ],
  992. "properties": {
  993. "name": {
  994. "type": "string"
  995. },
  996. "isPaginated": {
  997. "type": "boolean"
  998. },
  999. "entries": {
  1000. "type": "array",
  1001. "items": {
  1002. "$ref": "#/components/schemas/UnifiedSearchResultEntry"
  1003. }
  1004. },
  1005. "cursor": {
  1006. "nullable": true,
  1007. "oneOf": [
  1008. {
  1009. "type": "integer",
  1010. "format": "int64"
  1011. },
  1012. {
  1013. "type": "string"
  1014. }
  1015. ]
  1016. }
  1017. }
  1018. },
  1019. "UnifiedSearchResultEntry": {
  1020. "type": "object",
  1021. "required": [
  1022. "thumbnailUrl",
  1023. "title",
  1024. "subline",
  1025. "resourceUrl",
  1026. "icon",
  1027. "rounded",
  1028. "attributes"
  1029. ],
  1030. "properties": {
  1031. "thumbnailUrl": {
  1032. "type": "string"
  1033. },
  1034. "title": {
  1035. "type": "string"
  1036. },
  1037. "subline": {
  1038. "type": "string"
  1039. },
  1040. "resourceUrl": {
  1041. "type": "string"
  1042. },
  1043. "icon": {
  1044. "type": "string"
  1045. },
  1046. "rounded": {
  1047. "type": "boolean"
  1048. },
  1049. "attributes": {
  1050. "type": "array",
  1051. "items": {
  1052. "type": "string"
  1053. }
  1054. }
  1055. }
  1056. }
  1057. }
  1058. },
  1059. "paths": {
  1060. "/ocs/v2.php/core/getapppassword": {
  1061. "get": {
  1062. "operationId": "app_password-get-app-password",
  1063. "summary": "Create app password",
  1064. "description": "This endpoint requires password confirmation",
  1065. "tags": [
  1066. "app_password"
  1067. ],
  1068. "security": [
  1069. {
  1070. "bearer_auth": []
  1071. },
  1072. {
  1073. "basic_auth": []
  1074. }
  1075. ],
  1076. "parameters": [
  1077. {
  1078. "name": "OCS-APIRequest",
  1079. "in": "header",
  1080. "description": "Required to be true for the API request to pass",
  1081. "required": true,
  1082. "schema": {
  1083. "type": "boolean",
  1084. "default": true
  1085. }
  1086. }
  1087. ],
  1088. "responses": {
  1089. "200": {
  1090. "description": "App password returned",
  1091. "content": {
  1092. "application/json": {
  1093. "schema": {
  1094. "type": "object",
  1095. "required": [
  1096. "ocs"
  1097. ],
  1098. "properties": {
  1099. "ocs": {
  1100. "type": "object",
  1101. "required": [
  1102. "meta",
  1103. "data"
  1104. ],
  1105. "properties": {
  1106. "meta": {
  1107. "$ref": "#/components/schemas/OCSMeta"
  1108. },
  1109. "data": {
  1110. "type": "object",
  1111. "required": [
  1112. "apppassword"
  1113. ],
  1114. "properties": {
  1115. "apppassword": {
  1116. "type": "string"
  1117. }
  1118. }
  1119. }
  1120. }
  1121. }
  1122. }
  1123. }
  1124. }
  1125. }
  1126. },
  1127. "403": {
  1128. "description": "Creating app password is not allowed",
  1129. "content": {
  1130. "application/json": {
  1131. "schema": {
  1132. "type": "object",
  1133. "required": [
  1134. "ocs"
  1135. ],
  1136. "properties": {
  1137. "ocs": {
  1138. "type": "object",
  1139. "required": [
  1140. "meta",
  1141. "data"
  1142. ],
  1143. "properties": {
  1144. "meta": {
  1145. "$ref": "#/components/schemas/OCSMeta"
  1146. },
  1147. "data": {}
  1148. }
  1149. }
  1150. }
  1151. }
  1152. }
  1153. }
  1154. }
  1155. }
  1156. }
  1157. },
  1158. "/ocs/v2.php/core/apppassword": {
  1159. "delete": {
  1160. "operationId": "app_password-delete-app-password",
  1161. "summary": "Delete app password",
  1162. "tags": [
  1163. "app_password"
  1164. ],
  1165. "security": [
  1166. {
  1167. "bearer_auth": []
  1168. },
  1169. {
  1170. "basic_auth": []
  1171. }
  1172. ],
  1173. "parameters": [
  1174. {
  1175. "name": "OCS-APIRequest",
  1176. "in": "header",
  1177. "description": "Required to be true for the API request to pass",
  1178. "required": true,
  1179. "schema": {
  1180. "type": "boolean",
  1181. "default": true
  1182. }
  1183. }
  1184. ],
  1185. "responses": {
  1186. "200": {
  1187. "description": "App password deleted successfully",
  1188. "content": {
  1189. "application/json": {
  1190. "schema": {
  1191. "type": "object",
  1192. "required": [
  1193. "ocs"
  1194. ],
  1195. "properties": {
  1196. "ocs": {
  1197. "type": "object",
  1198. "required": [
  1199. "meta",
  1200. "data"
  1201. ],
  1202. "properties": {
  1203. "meta": {
  1204. "$ref": "#/components/schemas/OCSMeta"
  1205. },
  1206. "data": {}
  1207. }
  1208. }
  1209. }
  1210. }
  1211. }
  1212. }
  1213. },
  1214. "403": {
  1215. "description": "Deleting app password is not allowed",
  1216. "content": {
  1217. "application/json": {
  1218. "schema": {
  1219. "type": "object",
  1220. "required": [
  1221. "ocs"
  1222. ],
  1223. "properties": {
  1224. "ocs": {
  1225. "type": "object",
  1226. "required": [
  1227. "meta",
  1228. "data"
  1229. ],
  1230. "properties": {
  1231. "meta": {
  1232. "$ref": "#/components/schemas/OCSMeta"
  1233. },
  1234. "data": {}
  1235. }
  1236. }
  1237. }
  1238. }
  1239. }
  1240. }
  1241. }
  1242. }
  1243. }
  1244. },
  1245. "/ocs/v2.php/core/apppassword/rotate": {
  1246. "post": {
  1247. "operationId": "app_password-rotate-app-password",
  1248. "summary": "Rotate app password",
  1249. "tags": [
  1250. "app_password"
  1251. ],
  1252. "security": [
  1253. {
  1254. "bearer_auth": []
  1255. },
  1256. {
  1257. "basic_auth": []
  1258. }
  1259. ],
  1260. "parameters": [
  1261. {
  1262. "name": "OCS-APIRequest",
  1263. "in": "header",
  1264. "description": "Required to be true for the API request to pass",
  1265. "required": true,
  1266. "schema": {
  1267. "type": "boolean",
  1268. "default": true
  1269. }
  1270. }
  1271. ],
  1272. "responses": {
  1273. "200": {
  1274. "description": "App password returned",
  1275. "content": {
  1276. "application/json": {
  1277. "schema": {
  1278. "type": "object",
  1279. "required": [
  1280. "ocs"
  1281. ],
  1282. "properties": {
  1283. "ocs": {
  1284. "type": "object",
  1285. "required": [
  1286. "meta",
  1287. "data"
  1288. ],
  1289. "properties": {
  1290. "meta": {
  1291. "$ref": "#/components/schemas/OCSMeta"
  1292. },
  1293. "data": {
  1294. "type": "object",
  1295. "required": [
  1296. "apppassword"
  1297. ],
  1298. "properties": {
  1299. "apppassword": {
  1300. "type": "string"
  1301. }
  1302. }
  1303. }
  1304. }
  1305. }
  1306. }
  1307. }
  1308. }
  1309. }
  1310. },
  1311. "403": {
  1312. "description": "Rotating app password is not allowed",
  1313. "content": {
  1314. "application/json": {
  1315. "schema": {
  1316. "type": "object",
  1317. "required": [
  1318. "ocs"
  1319. ],
  1320. "properties": {
  1321. "ocs": {
  1322. "type": "object",
  1323. "required": [
  1324. "meta",
  1325. "data"
  1326. ],
  1327. "properties": {
  1328. "meta": {
  1329. "$ref": "#/components/schemas/OCSMeta"
  1330. },
  1331. "data": {}
  1332. }
  1333. }
  1334. }
  1335. }
  1336. }
  1337. }
  1338. }
  1339. }
  1340. }
  1341. },
  1342. "/ocs/v2.php/core/apppassword/confirm": {
  1343. "put": {
  1344. "operationId": "app_password-confirm-user-password",
  1345. "summary": "Confirm the user password",
  1346. "tags": [
  1347. "app_password"
  1348. ],
  1349. "security": [
  1350. {
  1351. "bearer_auth": []
  1352. },
  1353. {
  1354. "basic_auth": []
  1355. }
  1356. ],
  1357. "requestBody": {
  1358. "required": true,
  1359. "content": {
  1360. "application/json": {
  1361. "schema": {
  1362. "type": "object",
  1363. "required": [
  1364. "password"
  1365. ],
  1366. "properties": {
  1367. "password": {
  1368. "type": "string",
  1369. "description": "The password of the user"
  1370. }
  1371. }
  1372. }
  1373. }
  1374. }
  1375. },
  1376. "parameters": [
  1377. {
  1378. "name": "OCS-APIRequest",
  1379. "in": "header",
  1380. "description": "Required to be true for the API request to pass",
  1381. "required": true,
  1382. "schema": {
  1383. "type": "boolean",
  1384. "default": true
  1385. }
  1386. }
  1387. ],
  1388. "responses": {
  1389. "200": {
  1390. "description": "Password confirmation succeeded",
  1391. "content": {
  1392. "application/json": {
  1393. "schema": {
  1394. "type": "object",
  1395. "required": [
  1396. "ocs"
  1397. ],
  1398. "properties": {
  1399. "ocs": {
  1400. "type": "object",
  1401. "required": [
  1402. "meta",
  1403. "data"
  1404. ],
  1405. "properties": {
  1406. "meta": {
  1407. "$ref": "#/components/schemas/OCSMeta"
  1408. },
  1409. "data": {
  1410. "type": "object",
  1411. "required": [
  1412. "lastLogin"
  1413. ],
  1414. "properties": {
  1415. "lastLogin": {
  1416. "type": "integer",
  1417. "format": "int64"
  1418. }
  1419. }
  1420. }
  1421. }
  1422. }
  1423. }
  1424. }
  1425. }
  1426. }
  1427. },
  1428. "403": {
  1429. "description": "Password confirmation failed",
  1430. "content": {
  1431. "application/json": {
  1432. "schema": {
  1433. "type": "object",
  1434. "required": [
  1435. "ocs"
  1436. ],
  1437. "properties": {
  1438. "ocs": {
  1439. "type": "object",
  1440. "required": [
  1441. "meta",
  1442. "data"
  1443. ],
  1444. "properties": {
  1445. "meta": {
  1446. "$ref": "#/components/schemas/OCSMeta"
  1447. },
  1448. "data": {}
  1449. }
  1450. }
  1451. }
  1452. }
  1453. }
  1454. }
  1455. }
  1456. }
  1457. }
  1458. },
  1459. "/ocs/v2.php/core/autocomplete/get": {
  1460. "get": {
  1461. "operationId": "auto_complete-get",
  1462. "summary": "Autocomplete a query",
  1463. "tags": [
  1464. "auto_complete"
  1465. ],
  1466. "security": [
  1467. {
  1468. "bearer_auth": []
  1469. },
  1470. {
  1471. "basic_auth": []
  1472. }
  1473. ],
  1474. "parameters": [
  1475. {
  1476. "name": "search",
  1477. "in": "query",
  1478. "description": "Text to search for",
  1479. "required": true,
  1480. "schema": {
  1481. "type": "string"
  1482. }
  1483. },
  1484. {
  1485. "name": "itemType",
  1486. "in": "query",
  1487. "description": "Type of the items to search for",
  1488. "schema": {
  1489. "type": "string",
  1490. "nullable": true
  1491. }
  1492. },
  1493. {
  1494. "name": "itemId",
  1495. "in": "query",
  1496. "description": "ID of the items to search for",
  1497. "schema": {
  1498. "type": "string",
  1499. "nullable": true
  1500. }
  1501. },
  1502. {
  1503. "name": "sorter",
  1504. "in": "query",
  1505. "description": "can be piped, top prio first, e.g.: \"commenters|share-recipients\"",
  1506. "schema": {
  1507. "type": "string",
  1508. "nullable": true
  1509. }
  1510. },
  1511. {
  1512. "name": "shareTypes[]",
  1513. "in": "query",
  1514. "description": "Types of shares to search for",
  1515. "schema": {
  1516. "type": "array",
  1517. "default": [],
  1518. "items": {
  1519. "type": "integer",
  1520. "format": "int64"
  1521. }
  1522. }
  1523. },
  1524. {
  1525. "name": "limit",
  1526. "in": "query",
  1527. "description": "Maximum number of results to return",
  1528. "schema": {
  1529. "type": "integer",
  1530. "format": "int64",
  1531. "default": 10
  1532. }
  1533. },
  1534. {
  1535. "name": "OCS-APIRequest",
  1536. "in": "header",
  1537. "description": "Required to be true for the API request to pass",
  1538. "required": true,
  1539. "schema": {
  1540. "type": "boolean",
  1541. "default": true
  1542. }
  1543. }
  1544. ],
  1545. "responses": {
  1546. "200": {
  1547. "description": "Autocomplete results returned",
  1548. "content": {
  1549. "application/json": {
  1550. "schema": {
  1551. "type": "object",
  1552. "required": [
  1553. "ocs"
  1554. ],
  1555. "properties": {
  1556. "ocs": {
  1557. "type": "object",
  1558. "required": [
  1559. "meta",
  1560. "data"
  1561. ],
  1562. "properties": {
  1563. "meta": {
  1564. "$ref": "#/components/schemas/OCSMeta"
  1565. },
  1566. "data": {
  1567. "type": "array",
  1568. "items": {
  1569. "$ref": "#/components/schemas/AutocompleteResult"
  1570. }
  1571. }
  1572. }
  1573. }
  1574. }
  1575. }
  1576. }
  1577. }
  1578. }
  1579. }
  1580. }
  1581. },
  1582. "/ocs/v2.php/collaboration/resources/collections/{collectionId}": {
  1583. "get": {
  1584. "operationId": "collaboration_resources-list-collection",
  1585. "summary": "Get a collection",
  1586. "tags": [
  1587. "collaboration_resources"
  1588. ],
  1589. "security": [
  1590. {
  1591. "bearer_auth": []
  1592. },
  1593. {
  1594. "basic_auth": []
  1595. }
  1596. ],
  1597. "parameters": [
  1598. {
  1599. "name": "collectionId",
  1600. "in": "path",
  1601. "description": "ID of the collection",
  1602. "required": true,
  1603. "schema": {
  1604. "type": "integer",
  1605. "format": "int64"
  1606. }
  1607. },
  1608. {
  1609. "name": "OCS-APIRequest",
  1610. "in": "header",
  1611. "description": "Required to be true for the API request to pass",
  1612. "required": true,
  1613. "schema": {
  1614. "type": "boolean",
  1615. "default": true
  1616. }
  1617. }
  1618. ],
  1619. "responses": {
  1620. "200": {
  1621. "description": "Collection returned",
  1622. "content": {
  1623. "application/json": {
  1624. "schema": {
  1625. "type": "object",
  1626. "required": [
  1627. "ocs"
  1628. ],
  1629. "properties": {
  1630. "ocs": {
  1631. "type": "object",
  1632. "required": [
  1633. "meta",
  1634. "data"
  1635. ],
  1636. "properties": {
  1637. "meta": {
  1638. "$ref": "#/components/schemas/OCSMeta"
  1639. },
  1640. "data": {
  1641. "$ref": "#/components/schemas/Collection"
  1642. }
  1643. }
  1644. }
  1645. }
  1646. }
  1647. }
  1648. }
  1649. },
  1650. "404": {
  1651. "description": "Collection not found",
  1652. "content": {
  1653. "application/json": {
  1654. "schema": {
  1655. "type": "object",
  1656. "required": [
  1657. "ocs"
  1658. ],
  1659. "properties": {
  1660. "ocs": {
  1661. "type": "object",
  1662. "required": [
  1663. "meta",
  1664. "data"
  1665. ],
  1666. "properties": {
  1667. "meta": {
  1668. "$ref": "#/components/schemas/OCSMeta"
  1669. },
  1670. "data": {}
  1671. }
  1672. }
  1673. }
  1674. }
  1675. }
  1676. }
  1677. },
  1678. "500": {
  1679. "description": "",
  1680. "content": {
  1681. "application/json": {
  1682. "schema": {
  1683. "type": "object",
  1684. "required": [
  1685. "ocs"
  1686. ],
  1687. "properties": {
  1688. "ocs": {
  1689. "type": "object",
  1690. "required": [
  1691. "meta",
  1692. "data"
  1693. ],
  1694. "properties": {
  1695. "meta": {
  1696. "$ref": "#/components/schemas/OCSMeta"
  1697. },
  1698. "data": {}
  1699. }
  1700. }
  1701. }
  1702. }
  1703. }
  1704. }
  1705. }
  1706. }
  1707. },
  1708. "post": {
  1709. "operationId": "collaboration_resources-add-resource",
  1710. "summary": "Add a resource to a collection",
  1711. "tags": [
  1712. "collaboration_resources"
  1713. ],
  1714. "security": [
  1715. {
  1716. "bearer_auth": []
  1717. },
  1718. {
  1719. "basic_auth": []
  1720. }
  1721. ],
  1722. "requestBody": {
  1723. "required": true,
  1724. "content": {
  1725. "application/json": {
  1726. "schema": {
  1727. "type": "object",
  1728. "required": [
  1729. "resourceType",
  1730. "resourceId"
  1731. ],
  1732. "properties": {
  1733. "resourceType": {
  1734. "type": "string",
  1735. "description": "Name of the resource"
  1736. },
  1737. "resourceId": {
  1738. "type": "string",
  1739. "description": "ID of the resource"
  1740. }
  1741. }
  1742. }
  1743. }
  1744. }
  1745. },
  1746. "parameters": [
  1747. {
  1748. "name": "collectionId",
  1749. "in": "path",
  1750. "description": "ID of the collection",
  1751. "required": true,
  1752. "schema": {
  1753. "type": "integer",
  1754. "format": "int64"
  1755. }
  1756. },
  1757. {
  1758. "name": "OCS-APIRequest",
  1759. "in": "header",
  1760. "description": "Required to be true for the API request to pass",
  1761. "required": true,
  1762. "schema": {
  1763. "type": "boolean",
  1764. "default": true
  1765. }
  1766. }
  1767. ],
  1768. "responses": {
  1769. "200": {
  1770. "description": "Collection returned",
  1771. "content": {
  1772. "application/json": {
  1773. "schema": {
  1774. "type": "object",
  1775. "required": [
  1776. "ocs"
  1777. ],
  1778. "properties": {
  1779. "ocs": {
  1780. "type": "object",
  1781. "required": [
  1782. "meta",
  1783. "data"
  1784. ],
  1785. "properties": {
  1786. "meta": {
  1787. "$ref": "#/components/schemas/OCSMeta"
  1788. },
  1789. "data": {
  1790. "$ref": "#/components/schemas/Collection"
  1791. }
  1792. }
  1793. }
  1794. }
  1795. }
  1796. }
  1797. }
  1798. },
  1799. "404": {
  1800. "description": "Collection not found or resource inaccessible",
  1801. "content": {
  1802. "application/json": {
  1803. "schema": {
  1804. "type": "object",
  1805. "required": [
  1806. "ocs"
  1807. ],
  1808. "properties": {
  1809. "ocs": {
  1810. "type": "object",
  1811. "required": [
  1812. "meta",
  1813. "data"
  1814. ],
  1815. "properties": {
  1816. "meta": {
  1817. "$ref": "#/components/schemas/OCSMeta"
  1818. },
  1819. "data": {}
  1820. }
  1821. }
  1822. }
  1823. }
  1824. }
  1825. }
  1826. },
  1827. "500": {
  1828. "description": "",
  1829. "content": {
  1830. "application/json": {
  1831. "schema": {
  1832. "type": "object",
  1833. "required": [
  1834. "ocs"
  1835. ],
  1836. "properties": {
  1837. "ocs": {
  1838. "type": "object",
  1839. "required": [
  1840. "meta",
  1841. "data"
  1842. ],
  1843. "properties": {
  1844. "meta": {
  1845. "$ref": "#/components/schemas/OCSMeta"
  1846. },
  1847. "data": {}
  1848. }
  1849. }
  1850. }
  1851. }
  1852. }
  1853. }
  1854. }
  1855. }
  1856. },
  1857. "delete": {
  1858. "operationId": "collaboration_resources-remove-resource",
  1859. "summary": "Remove a resource from a collection",
  1860. "tags": [
  1861. "collaboration_resources"
  1862. ],
  1863. "security": [
  1864. {
  1865. "bearer_auth": []
  1866. },
  1867. {
  1868. "basic_auth": []
  1869. }
  1870. ],
  1871. "parameters": [
  1872. {
  1873. "name": "collectionId",
  1874. "in": "path",
  1875. "description": "ID of the collection",
  1876. "required": true,
  1877. "schema": {
  1878. "type": "integer",
  1879. "format": "int64"
  1880. }
  1881. },
  1882. {
  1883. "name": "resourceType",
  1884. "in": "query",
  1885. "description": "Name of the resource",
  1886. "required": true,
  1887. "schema": {
  1888. "type": "string"
  1889. }
  1890. },
  1891. {
  1892. "name": "resourceId",
  1893. "in": "query",
  1894. "description": "ID of the resource",
  1895. "required": true,
  1896. "schema": {
  1897. "type": "string"
  1898. }
  1899. },
  1900. {
  1901. "name": "OCS-APIRequest",
  1902. "in": "header",
  1903. "description": "Required to be true for the API request to pass",
  1904. "required": true,
  1905. "schema": {
  1906. "type": "boolean",
  1907. "default": true
  1908. }
  1909. }
  1910. ],
  1911. "responses": {
  1912. "200": {
  1913. "description": "Collection returned",
  1914. "content": {
  1915. "application/json": {
  1916. "schema": {
  1917. "type": "object",
  1918. "required": [
  1919. "ocs"
  1920. ],
  1921. "properties": {
  1922. "ocs": {
  1923. "type": "object",
  1924. "required": [
  1925. "meta",
  1926. "data"
  1927. ],
  1928. "properties": {
  1929. "meta": {
  1930. "$ref": "#/components/schemas/OCSMeta"
  1931. },
  1932. "data": {
  1933. "$ref": "#/components/schemas/Collection"
  1934. }
  1935. }
  1936. }
  1937. }
  1938. }
  1939. }
  1940. }
  1941. },
  1942. "404": {
  1943. "description": "Collection or resource not found",
  1944. "content": {
  1945. "application/json": {
  1946. "schema": {
  1947. "type": "object",
  1948. "required": [
  1949. "ocs"
  1950. ],
  1951. "properties": {
  1952. "ocs": {
  1953. "type": "object",
  1954. "required": [
  1955. "meta",
  1956. "data"
  1957. ],
  1958. "properties": {
  1959. "meta": {
  1960. "$ref": "#/components/schemas/OCSMeta"
  1961. },
  1962. "data": {}
  1963. }
  1964. }
  1965. }
  1966. }
  1967. }
  1968. }
  1969. },
  1970. "500": {
  1971. "description": "",
  1972. "content": {
  1973. "application/json": {
  1974. "schema": {
  1975. "type": "object",
  1976. "required": [
  1977. "ocs"
  1978. ],
  1979. "properties": {
  1980. "ocs": {
  1981. "type": "object",
  1982. "required": [
  1983. "meta",
  1984. "data"
  1985. ],
  1986. "properties": {
  1987. "meta": {
  1988. "$ref": "#/components/schemas/OCSMeta"
  1989. },
  1990. "data": {}
  1991. }
  1992. }
  1993. }
  1994. }
  1995. }
  1996. }
  1997. }
  1998. }
  1999. },
  2000. "put": {
  2001. "operationId": "collaboration_resources-rename-collection",
  2002. "summary": "Rename a collection",
  2003. "tags": [
  2004. "collaboration_resources"
  2005. ],
  2006. "security": [
  2007. {
  2008. "bearer_auth": []
  2009. },
  2010. {
  2011. "basic_auth": []
  2012. }
  2013. ],
  2014. "requestBody": {
  2015. "required": true,
  2016. "content": {
  2017. "application/json": {
  2018. "schema": {
  2019. "type": "object",
  2020. "required": [
  2021. "collectionName"
  2022. ],
  2023. "properties": {
  2024. "collectionName": {
  2025. "type": "string",
  2026. "description": "New name"
  2027. }
  2028. }
  2029. }
  2030. }
  2031. }
  2032. },
  2033. "parameters": [
  2034. {
  2035. "name": "collectionId",
  2036. "in": "path",
  2037. "description": "ID of the collection",
  2038. "required": true,
  2039. "schema": {
  2040. "type": "integer",
  2041. "format": "int64"
  2042. }
  2043. },
  2044. {
  2045. "name": "OCS-APIRequest",
  2046. "in": "header",
  2047. "description": "Required to be true for the API request to pass",
  2048. "required": true,
  2049. "schema": {
  2050. "type": "boolean",
  2051. "default": true
  2052. }
  2053. }
  2054. ],
  2055. "responses": {
  2056. "200": {
  2057. "description": "Collection returned",
  2058. "content": {
  2059. "application/json": {
  2060. "schema": {
  2061. "type": "object",
  2062. "required": [
  2063. "ocs"
  2064. ],
  2065. "properties": {
  2066. "ocs": {
  2067. "type": "object",
  2068. "required": [
  2069. "meta",
  2070. "data"
  2071. ],
  2072. "properties": {
  2073. "meta": {
  2074. "$ref": "#/components/schemas/OCSMeta"
  2075. },
  2076. "data": {
  2077. "$ref": "#/components/schemas/Collection"
  2078. }
  2079. }
  2080. }
  2081. }
  2082. }
  2083. }
  2084. }
  2085. },
  2086. "404": {
  2087. "description": "Collection not found",
  2088. "content": {
  2089. "application/json": {
  2090. "schema": {
  2091. "type": "object",
  2092. "required": [
  2093. "ocs"
  2094. ],
  2095. "properties": {
  2096. "ocs": {
  2097. "type": "object",
  2098. "required": [
  2099. "meta",
  2100. "data"
  2101. ],
  2102. "properties": {
  2103. "meta": {
  2104. "$ref": "#/components/schemas/OCSMeta"
  2105. },
  2106. "data": {}
  2107. }
  2108. }
  2109. }
  2110. }
  2111. }
  2112. }
  2113. },
  2114. "500": {
  2115. "description": "",
  2116. "content": {
  2117. "application/json": {
  2118. "schema": {
  2119. "type": "object",
  2120. "required": [
  2121. "ocs"
  2122. ],
  2123. "properties": {
  2124. "ocs": {
  2125. "type": "object",
  2126. "required": [
  2127. "meta",
  2128. "data"
  2129. ],
  2130. "properties": {
  2131. "meta": {
  2132. "$ref": "#/components/schemas/OCSMeta"
  2133. },
  2134. "data": {}
  2135. }
  2136. }
  2137. }
  2138. }
  2139. }
  2140. }
  2141. }
  2142. }
  2143. }
  2144. },
  2145. "/ocs/v2.php/collaboration/resources/collections/search/{filter}": {
  2146. "get": {
  2147. "operationId": "collaboration_resources-search-collections",
  2148. "summary": "Search for collections",
  2149. "tags": [
  2150. "collaboration_resources"
  2151. ],
  2152. "security": [
  2153. {
  2154. "bearer_auth": []
  2155. },
  2156. {
  2157. "basic_auth": []
  2158. }
  2159. ],
  2160. "parameters": [
  2161. {
  2162. "name": "filter",
  2163. "in": "path",
  2164. "description": "Filter collections",
  2165. "required": true,
  2166. "schema": {
  2167. "type": "string"
  2168. }
  2169. },
  2170. {
  2171. "name": "OCS-APIRequest",
  2172. "in": "header",
  2173. "description": "Required to be true for the API request to pass",
  2174. "required": true,
  2175. "schema": {
  2176. "type": "boolean",
  2177. "default": true
  2178. }
  2179. }
  2180. ],
  2181. "responses": {
  2182. "200": {
  2183. "description": "Collections returned",
  2184. "content": {
  2185. "application/json": {
  2186. "schema": {
  2187. "type": "object",
  2188. "required": [
  2189. "ocs"
  2190. ],
  2191. "properties": {
  2192. "ocs": {
  2193. "type": "object",
  2194. "required": [
  2195. "meta",
  2196. "data"
  2197. ],
  2198. "properties": {
  2199. "meta": {
  2200. "$ref": "#/components/schemas/OCSMeta"
  2201. },
  2202. "data": {
  2203. "type": "array",
  2204. "items": {
  2205. "$ref": "#/components/schemas/Collection"
  2206. }
  2207. }
  2208. }
  2209. }
  2210. }
  2211. }
  2212. }
  2213. }
  2214. },
  2215. "404": {
  2216. "description": "Collection not found",
  2217. "content": {
  2218. "application/json": {
  2219. "schema": {
  2220. "type": "object",
  2221. "required": [
  2222. "ocs"
  2223. ],
  2224. "properties": {
  2225. "ocs": {
  2226. "type": "object",
  2227. "required": [
  2228. "meta",
  2229. "data"
  2230. ],
  2231. "properties": {
  2232. "meta": {
  2233. "$ref": "#/components/schemas/OCSMeta"
  2234. },
  2235. "data": {}
  2236. }
  2237. }
  2238. }
  2239. }
  2240. }
  2241. }
  2242. }
  2243. }
  2244. }
  2245. },
  2246. "/ocs/v2.php/collaboration/resources/{resourceType}/{resourceId}": {
  2247. "get": {
  2248. "operationId": "collaboration_resources-get-collections-by-resource",
  2249. "summary": "Get collections by resource",
  2250. "tags": [
  2251. "collaboration_resources"
  2252. ],
  2253. "security": [
  2254. {
  2255. "bearer_auth": []
  2256. },
  2257. {
  2258. "basic_auth": []
  2259. }
  2260. ],
  2261. "parameters": [
  2262. {
  2263. "name": "resourceType",
  2264. "in": "path",
  2265. "description": "Type of the resource",
  2266. "required": true,
  2267. "schema": {
  2268. "type": "string"
  2269. }
  2270. },
  2271. {
  2272. "name": "resourceId",
  2273. "in": "path",
  2274. "description": "ID of the resource",
  2275. "required": true,
  2276. "schema": {
  2277. "type": "string"
  2278. }
  2279. },
  2280. {
  2281. "name": "OCS-APIRequest",
  2282. "in": "header",
  2283. "description": "Required to be true for the API request to pass",
  2284. "required": true,
  2285. "schema": {
  2286. "type": "boolean",
  2287. "default": true
  2288. }
  2289. }
  2290. ],
  2291. "responses": {
  2292. "200": {
  2293. "description": "Collections returned",
  2294. "content": {
  2295. "application/json": {
  2296. "schema": {
  2297. "type": "object",
  2298. "required": [
  2299. "ocs"
  2300. ],
  2301. "properties": {
  2302. "ocs": {
  2303. "type": "object",
  2304. "required": [
  2305. "meta",
  2306. "data"
  2307. ],
  2308. "properties": {
  2309. "meta": {
  2310. "$ref": "#/components/schemas/OCSMeta"
  2311. },
  2312. "data": {
  2313. "type": "array",
  2314. "items": {
  2315. "$ref": "#/components/schemas/Collection"
  2316. }
  2317. }
  2318. }
  2319. }
  2320. }
  2321. }
  2322. }
  2323. }
  2324. },
  2325. "404": {
  2326. "description": "Resource not accessible",
  2327. "content": {
  2328. "application/json": {
  2329. "schema": {
  2330. "type": "object",
  2331. "required": [
  2332. "ocs"
  2333. ],
  2334. "properties": {
  2335. "ocs": {
  2336. "type": "object",
  2337. "required": [
  2338. "meta",
  2339. "data"
  2340. ],
  2341. "properties": {
  2342. "meta": {
  2343. "$ref": "#/components/schemas/OCSMeta"
  2344. },
  2345. "data": {}
  2346. }
  2347. }
  2348. }
  2349. }
  2350. }
  2351. }
  2352. }
  2353. }
  2354. }
  2355. },
  2356. "/ocs/v2.php/collaboration/resources/{baseResourceType}/{baseResourceId}": {
  2357. "post": {
  2358. "operationId": "collaboration_resources-create-collection-on-resource",
  2359. "summary": "Create a collection for a resource",
  2360. "tags": [
  2361. "collaboration_resources"
  2362. ],
  2363. "security": [
  2364. {
  2365. "bearer_auth": []
  2366. },
  2367. {
  2368. "basic_auth": []
  2369. }
  2370. ],
  2371. "requestBody": {
  2372. "required": true,
  2373. "content": {
  2374. "application/json": {
  2375. "schema": {
  2376. "type": "object",
  2377. "required": [
  2378. "name"
  2379. ],
  2380. "properties": {
  2381. "name": {
  2382. "type": "string",
  2383. "description": "Name of the collection"
  2384. }
  2385. }
  2386. }
  2387. }
  2388. }
  2389. },
  2390. "parameters": [
  2391. {
  2392. "name": "baseResourceType",
  2393. "in": "path",
  2394. "description": "Type of the base resource",
  2395. "required": true,
  2396. "schema": {
  2397. "type": "string"
  2398. }
  2399. },
  2400. {
  2401. "name": "baseResourceId",
  2402. "in": "path",
  2403. "description": "ID of the base resource",
  2404. "required": true,
  2405. "schema": {
  2406. "type": "string"
  2407. }
  2408. },
  2409. {
  2410. "name": "OCS-APIRequest",
  2411. "in": "header",
  2412. "description": "Required to be true for the API request to pass",
  2413. "required": true,
  2414. "schema": {
  2415. "type": "boolean",
  2416. "default": true
  2417. }
  2418. }
  2419. ],
  2420. "responses": {
  2421. "200": {
  2422. "description": "Collection returned",
  2423. "content": {
  2424. "application/json": {
  2425. "schema": {
  2426. "type": "object",
  2427. "required": [
  2428. "ocs"
  2429. ],
  2430. "properties": {
  2431. "ocs": {
  2432. "type": "object",
  2433. "required": [
  2434. "meta",
  2435. "data"
  2436. ],
  2437. "properties": {
  2438. "meta": {
  2439. "$ref": "#/components/schemas/OCSMeta"
  2440. },
  2441. "data": {
  2442. "$ref": "#/components/schemas/Collection"
  2443. }
  2444. }
  2445. }
  2446. }
  2447. }
  2448. }
  2449. }
  2450. },
  2451. "400": {
  2452. "description": "Creating collection is not possible",
  2453. "content": {
  2454. "application/json": {
  2455. "schema": {
  2456. "type": "object",
  2457. "required": [
  2458. "ocs"
  2459. ],
  2460. "properties": {
  2461. "ocs": {
  2462. "type": "object",
  2463. "required": [
  2464. "meta",
  2465. "data"
  2466. ],
  2467. "properties": {
  2468. "meta": {
  2469. "$ref": "#/components/schemas/OCSMeta"
  2470. },
  2471. "data": {}
  2472. }
  2473. }
  2474. }
  2475. }
  2476. }
  2477. }
  2478. },
  2479. "404": {
  2480. "description": "Resource inaccessible",
  2481. "content": {
  2482. "application/json": {
  2483. "schema": {
  2484. "type": "object",
  2485. "required": [
  2486. "ocs"
  2487. ],
  2488. "properties": {
  2489. "ocs": {
  2490. "type": "object",
  2491. "required": [
  2492. "meta",
  2493. "data"
  2494. ],
  2495. "properties": {
  2496. "meta": {
  2497. "$ref": "#/components/schemas/OCSMeta"
  2498. },
  2499. "data": {}
  2500. }
  2501. }
  2502. }
  2503. }
  2504. }
  2505. }
  2506. },
  2507. "500": {
  2508. "description": "",
  2509. "content": {
  2510. "application/json": {
  2511. "schema": {
  2512. "type": "object",
  2513. "required": [
  2514. "ocs"
  2515. ],
  2516. "properties": {
  2517. "ocs": {
  2518. "type": "object",
  2519. "required": [
  2520. "meta",
  2521. "data"
  2522. ],
  2523. "properties": {
  2524. "meta": {
  2525. "$ref": "#/components/schemas/OCSMeta"
  2526. },
  2527. "data": {}
  2528. }
  2529. }
  2530. }
  2531. }
  2532. }
  2533. }
  2534. }
  2535. }
  2536. }
  2537. },
  2538. "/ocs/v2.php/hovercard/v1/{userId}": {
  2539. "get": {
  2540. "operationId": "hover_card-get-user",
  2541. "summary": "Get the account details for a hovercard",
  2542. "tags": [
  2543. "hover_card"
  2544. ],
  2545. "security": [
  2546. {
  2547. "bearer_auth": []
  2548. },
  2549. {
  2550. "basic_auth": []
  2551. }
  2552. ],
  2553. "parameters": [
  2554. {
  2555. "name": "userId",
  2556. "in": "path",
  2557. "description": "ID of the user",
  2558. "required": true,
  2559. "schema": {
  2560. "type": "string"
  2561. }
  2562. },
  2563. {
  2564. "name": "OCS-APIRequest",
  2565. "in": "header",
  2566. "description": "Required to be true for the API request to pass",
  2567. "required": true,
  2568. "schema": {
  2569. "type": "boolean",
  2570. "default": true
  2571. }
  2572. }
  2573. ],
  2574. "responses": {
  2575. "200": {
  2576. "description": "Account details returned",
  2577. "content": {
  2578. "application/json": {
  2579. "schema": {
  2580. "type": "object",
  2581. "required": [
  2582. "ocs"
  2583. ],
  2584. "properties": {
  2585. "ocs": {
  2586. "type": "object",
  2587. "required": [
  2588. "meta",
  2589. "data"
  2590. ],
  2591. "properties": {
  2592. "meta": {
  2593. "$ref": "#/components/schemas/OCSMeta"
  2594. },
  2595. "data": {
  2596. "type": "object",
  2597. "required": [
  2598. "userId",
  2599. "displayName",
  2600. "actions"
  2601. ],
  2602. "properties": {
  2603. "userId": {
  2604. "type": "string"
  2605. },
  2606. "displayName": {
  2607. "type": "string"
  2608. },
  2609. "actions": {
  2610. "type": "array",
  2611. "items": {
  2612. "$ref": "#/components/schemas/ContactsAction"
  2613. }
  2614. }
  2615. }
  2616. }
  2617. }
  2618. }
  2619. }
  2620. }
  2621. }
  2622. }
  2623. },
  2624. "404": {
  2625. "description": "Account not found",
  2626. "content": {
  2627. "application/json": {
  2628. "schema": {
  2629. "type": "object",
  2630. "required": [
  2631. "ocs"
  2632. ],
  2633. "properties": {
  2634. "ocs": {
  2635. "type": "object",
  2636. "required": [
  2637. "meta",
  2638. "data"
  2639. ],
  2640. "properties": {
  2641. "meta": {
  2642. "$ref": "#/components/schemas/OCSMeta"
  2643. },
  2644. "data": {}
  2645. }
  2646. }
  2647. }
  2648. }
  2649. }
  2650. }
  2651. }
  2652. }
  2653. }
  2654. },
  2655. "/ocs/v2.php/core/navigation/apps": {
  2656. "get": {
  2657. "operationId": "navigation-get-apps-navigation",
  2658. "summary": "Get the apps navigation",
  2659. "tags": [
  2660. "navigation"
  2661. ],
  2662. "security": [
  2663. {
  2664. "bearer_auth": []
  2665. },
  2666. {
  2667. "basic_auth": []
  2668. }
  2669. ],
  2670. "parameters": [
  2671. {
  2672. "name": "absolute",
  2673. "in": "query",
  2674. "description": "Rewrite URLs to absolute ones",
  2675. "schema": {
  2676. "type": "integer",
  2677. "default": 0,
  2678. "enum": [
  2679. 0,
  2680. 1
  2681. ]
  2682. }
  2683. },
  2684. {
  2685. "name": "OCS-APIRequest",
  2686. "in": "header",
  2687. "description": "Required to be true for the API request to pass",
  2688. "required": true,
  2689. "schema": {
  2690. "type": "boolean",
  2691. "default": true
  2692. }
  2693. }
  2694. ],
  2695. "responses": {
  2696. "200": {
  2697. "description": "Apps navigation returned",
  2698. "content": {
  2699. "application/json": {
  2700. "schema": {
  2701. "type": "object",
  2702. "required": [
  2703. "ocs"
  2704. ],
  2705. "properties": {
  2706. "ocs": {
  2707. "type": "object",
  2708. "required": [
  2709. "meta",
  2710. "data"
  2711. ],
  2712. "properties": {
  2713. "meta": {
  2714. "$ref": "#/components/schemas/OCSMeta"
  2715. },
  2716. "data": {
  2717. "type": "array",
  2718. "items": {
  2719. "$ref": "#/components/schemas/NavigationEntry"
  2720. }
  2721. }
  2722. }
  2723. }
  2724. }
  2725. }
  2726. }
  2727. }
  2728. },
  2729. "304": {
  2730. "description": "No apps navigation changed"
  2731. }
  2732. }
  2733. }
  2734. },
  2735. "/ocs/v2.php/core/navigation/settings": {
  2736. "get": {
  2737. "operationId": "navigation-get-settings-navigation",
  2738. "summary": "Get the settings navigation",
  2739. "tags": [
  2740. "navigation"
  2741. ],
  2742. "security": [
  2743. {
  2744. "bearer_auth": []
  2745. },
  2746. {
  2747. "basic_auth": []
  2748. }
  2749. ],
  2750. "parameters": [
  2751. {
  2752. "name": "absolute",
  2753. "in": "query",
  2754. "description": "Rewrite URLs to absolute ones",
  2755. "schema": {
  2756. "type": "integer",
  2757. "default": 0,
  2758. "enum": [
  2759. 0,
  2760. 1
  2761. ]
  2762. }
  2763. },
  2764. {
  2765. "name": "OCS-APIRequest",
  2766. "in": "header",
  2767. "description": "Required to be true for the API request to pass",
  2768. "required": true,
  2769. "schema": {
  2770. "type": "boolean",
  2771. "default": true
  2772. }
  2773. }
  2774. ],
  2775. "responses": {
  2776. "200": {
  2777. "description": "Apps navigation returned",
  2778. "content": {
  2779. "application/json": {
  2780. "schema": {
  2781. "type": "object",
  2782. "required": [
  2783. "ocs"
  2784. ],
  2785. "properties": {
  2786. "ocs": {
  2787. "type": "object",
  2788. "required": [
  2789. "meta",
  2790. "data"
  2791. ],
  2792. "properties": {
  2793. "meta": {
  2794. "$ref": "#/components/schemas/OCSMeta"
  2795. },
  2796. "data": {
  2797. "type": "array",
  2798. "items": {
  2799. "$ref": "#/components/schemas/NavigationEntry"
  2800. }
  2801. }
  2802. }
  2803. }
  2804. }
  2805. }
  2806. }
  2807. }
  2808. },
  2809. "304": {
  2810. "description": "No apps navigation changed"
  2811. }
  2812. }
  2813. }
  2814. },
  2815. "/ocs/v2.php/cloud/capabilities": {
  2816. "get": {
  2817. "operationId": "ocs-get-capabilities",
  2818. "summary": "Get the capabilities",
  2819. "tags": [
  2820. "ocs"
  2821. ],
  2822. "security": [
  2823. {},
  2824. {
  2825. "bearer_auth": []
  2826. },
  2827. {
  2828. "basic_auth": []
  2829. }
  2830. ],
  2831. "parameters": [
  2832. {
  2833. "name": "OCS-APIRequest",
  2834. "in": "header",
  2835. "description": "Required to be true for the API request to pass",
  2836. "required": true,
  2837. "schema": {
  2838. "type": "boolean",
  2839. "default": true
  2840. }
  2841. }
  2842. ],
  2843. "responses": {
  2844. "200": {
  2845. "description": "Capabilities returned",
  2846. "content": {
  2847. "application/json": {
  2848. "schema": {
  2849. "type": "object",
  2850. "required": [
  2851. "ocs"
  2852. ],
  2853. "properties": {
  2854. "ocs": {
  2855. "type": "object",
  2856. "required": [
  2857. "meta",
  2858. "data"
  2859. ],
  2860. "properties": {
  2861. "meta": {
  2862. "$ref": "#/components/schemas/OCSMeta"
  2863. },
  2864. "data": {
  2865. "type": "object",
  2866. "required": [
  2867. "version",
  2868. "capabilities"
  2869. ],
  2870. "properties": {
  2871. "version": {
  2872. "type": "object",
  2873. "required": [
  2874. "major",
  2875. "minor",
  2876. "micro",
  2877. "string",
  2878. "edition",
  2879. "extendedSupport"
  2880. ],
  2881. "properties": {
  2882. "major": {
  2883. "type": "integer",
  2884. "format": "int64"
  2885. },
  2886. "minor": {
  2887. "type": "integer",
  2888. "format": "int64"
  2889. },
  2890. "micro": {
  2891. "type": "integer",
  2892. "format": "int64"
  2893. },
  2894. "string": {
  2895. "type": "string"
  2896. },
  2897. "edition": {
  2898. "type": "string"
  2899. },
  2900. "extendedSupport": {
  2901. "type": "boolean"
  2902. }
  2903. }
  2904. },
  2905. "capabilities": {
  2906. "type": "object",
  2907. "additionalProperties": {
  2908. "type": "object"
  2909. }
  2910. }
  2911. }
  2912. }
  2913. }
  2914. }
  2915. }
  2916. }
  2917. }
  2918. }
  2919. }
  2920. }
  2921. }
  2922. },
  2923. "/ocs/v2.php/profile/{targetUserId}": {
  2924. "put": {
  2925. "operationId": "profile_api-set-visibility",
  2926. "summary": "Update the visibility of a parameter",
  2927. "description": "This endpoint requires password confirmation",
  2928. "tags": [
  2929. "profile_api"
  2930. ],
  2931. "security": [
  2932. {
  2933. "bearer_auth": []
  2934. },
  2935. {
  2936. "basic_auth": []
  2937. }
  2938. ],
  2939. "requestBody": {
  2940. "required": true,
  2941. "content": {
  2942. "application/json": {
  2943. "schema": {
  2944. "type": "object",
  2945. "required": [
  2946. "paramId",
  2947. "visibility"
  2948. ],
  2949. "properties": {
  2950. "paramId": {
  2951. "type": "string",
  2952. "description": "ID of the parameter"
  2953. },
  2954. "visibility": {
  2955. "type": "string",
  2956. "description": "New visibility"
  2957. }
  2958. }
  2959. }
  2960. }
  2961. }
  2962. },
  2963. "parameters": [
  2964. {
  2965. "name": "targetUserId",
  2966. "in": "path",
  2967. "description": "ID of the user",
  2968. "required": true,
  2969. "schema": {
  2970. "type": "string"
  2971. }
  2972. },
  2973. {
  2974. "name": "OCS-APIRequest",
  2975. "in": "header",
  2976. "description": "Required to be true for the API request to pass",
  2977. "required": true,
  2978. "schema": {
  2979. "type": "boolean",
  2980. "default": true
  2981. }
  2982. }
  2983. ],
  2984. "responses": {
  2985. "200": {
  2986. "description": "Visibility updated successfully",
  2987. "content": {
  2988. "application/json": {
  2989. "schema": {
  2990. "type": "object",
  2991. "required": [
  2992. "ocs"
  2993. ],
  2994. "properties": {
  2995. "ocs": {
  2996. "type": "object",
  2997. "required": [
  2998. "meta",
  2999. "data"
  3000. ],
  3001. "properties": {
  3002. "meta": {
  3003. "$ref": "#/components/schemas/OCSMeta"
  3004. },
  3005. "data": {}
  3006. }
  3007. }
  3008. }
  3009. }
  3010. }
  3011. }
  3012. },
  3013. "400": {
  3014. "description": "Updating visibility is not possible",
  3015. "content": {
  3016. "application/json": {
  3017. "schema": {
  3018. "type": "object",
  3019. "required": [
  3020. "ocs"
  3021. ],
  3022. "properties": {
  3023. "ocs": {
  3024. "type": "object",
  3025. "required": [
  3026. "meta",
  3027. "data"
  3028. ],
  3029. "properties": {
  3030. "meta": {
  3031. "$ref": "#/components/schemas/OCSMeta"
  3032. },
  3033. "data": {}
  3034. }
  3035. }
  3036. }
  3037. }
  3038. }
  3039. }
  3040. },
  3041. "403": {
  3042. "description": "Not allowed to edit other users visibility",
  3043. "content": {
  3044. "application/json": {
  3045. "schema": {
  3046. "type": "object",
  3047. "required": [
  3048. "ocs"
  3049. ],
  3050. "properties": {
  3051. "ocs": {
  3052. "type": "object",
  3053. "required": [
  3054. "meta",
  3055. "data"
  3056. ],
  3057. "properties": {
  3058. "meta": {
  3059. "$ref": "#/components/schemas/OCSMeta"
  3060. },
  3061. "data": {}
  3062. }
  3063. }
  3064. }
  3065. }
  3066. }
  3067. }
  3068. },
  3069. "404": {
  3070. "description": "Account not found",
  3071. "content": {
  3072. "application/json": {
  3073. "schema": {
  3074. "type": "object",
  3075. "required": [
  3076. "ocs"
  3077. ],
  3078. "properties": {
  3079. "ocs": {
  3080. "type": "object",
  3081. "required": [
  3082. "meta",
  3083. "data"
  3084. ],
  3085. "properties": {
  3086. "meta": {
  3087. "$ref": "#/components/schemas/OCSMeta"
  3088. },
  3089. "data": {}
  3090. }
  3091. }
  3092. }
  3093. }
  3094. }
  3095. }
  3096. }
  3097. }
  3098. }
  3099. },
  3100. "/ocs/v2.php/references/extract": {
  3101. "post": {
  3102. "operationId": "reference_api-extract",
  3103. "summary": "Extract references from a text",
  3104. "tags": [
  3105. "reference_api"
  3106. ],
  3107. "security": [
  3108. {
  3109. "bearer_auth": []
  3110. },
  3111. {
  3112. "basic_auth": []
  3113. }
  3114. ],
  3115. "requestBody": {
  3116. "required": true,
  3117. "content": {
  3118. "application/json": {
  3119. "schema": {
  3120. "type": "object",
  3121. "required": [
  3122. "text"
  3123. ],
  3124. "properties": {
  3125. "text": {
  3126. "type": "string",
  3127. "description": "Text to extract from"
  3128. },
  3129. "resolve": {
  3130. "type": "boolean",
  3131. "default": false,
  3132. "description": "Resolve the references"
  3133. },
  3134. "limit": {
  3135. "type": "integer",
  3136. "format": "int64",
  3137. "default": 1,
  3138. "description": "Maximum amount of references to extract"
  3139. }
  3140. }
  3141. }
  3142. }
  3143. }
  3144. },
  3145. "parameters": [
  3146. {
  3147. "name": "OCS-APIRequest",
  3148. "in": "header",
  3149. "description": "Required to be true for the API request to pass",
  3150. "required": true,
  3151. "schema": {
  3152. "type": "boolean",
  3153. "default": true
  3154. }
  3155. }
  3156. ],
  3157. "responses": {
  3158. "200": {
  3159. "description": "References returned",
  3160. "content": {
  3161. "application/json": {
  3162. "schema": {
  3163. "type": "object",
  3164. "required": [
  3165. "ocs"
  3166. ],
  3167. "properties": {
  3168. "ocs": {
  3169. "type": "object",
  3170. "required": [
  3171. "meta",
  3172. "data"
  3173. ],
  3174. "properties": {
  3175. "meta": {
  3176. "$ref": "#/components/schemas/OCSMeta"
  3177. },
  3178. "data": {
  3179. "type": "object",
  3180. "required": [
  3181. "references"
  3182. ],
  3183. "properties": {
  3184. "references": {
  3185. "type": "object",
  3186. "additionalProperties": {
  3187. "$ref": "#/components/schemas/Reference",
  3188. "nullable": true
  3189. }
  3190. }
  3191. }
  3192. }
  3193. }
  3194. }
  3195. }
  3196. }
  3197. }
  3198. }
  3199. }
  3200. }
  3201. }
  3202. },
  3203. "/ocs/v2.php/references/extractPublic": {
  3204. "post": {
  3205. "operationId": "reference_api-extract-public",
  3206. "summary": "Extract references from a text",
  3207. "tags": [
  3208. "reference_api"
  3209. ],
  3210. "security": [
  3211. {},
  3212. {
  3213. "bearer_auth": []
  3214. },
  3215. {
  3216. "basic_auth": []
  3217. }
  3218. ],
  3219. "requestBody": {
  3220. "required": true,
  3221. "content": {
  3222. "application/json": {
  3223. "schema": {
  3224. "type": "object",
  3225. "required": [
  3226. "text",
  3227. "sharingToken"
  3228. ],
  3229. "properties": {
  3230. "text": {
  3231. "type": "string",
  3232. "description": "Text to extract from"
  3233. },
  3234. "sharingToken": {
  3235. "type": "string",
  3236. "description": "Token of the public share"
  3237. },
  3238. "resolve": {
  3239. "type": "boolean",
  3240. "default": false,
  3241. "description": "Resolve the references"
  3242. },
  3243. "limit": {
  3244. "type": "integer",
  3245. "format": "int64",
  3246. "default": 1,
  3247. "description": "Maximum amount of references to extract, limited to 15"
  3248. }
  3249. }
  3250. }
  3251. }
  3252. }
  3253. },
  3254. "parameters": [
  3255. {
  3256. "name": "OCS-APIRequest",
  3257. "in": "header",
  3258. "description": "Required to be true for the API request to pass",
  3259. "required": true,
  3260. "schema": {
  3261. "type": "boolean",
  3262. "default": true
  3263. }
  3264. }
  3265. ],
  3266. "responses": {
  3267. "200": {
  3268. "description": "References returned",
  3269. "content": {
  3270. "application/json": {
  3271. "schema": {
  3272. "type": "object",
  3273. "required": [
  3274. "ocs"
  3275. ],
  3276. "properties": {
  3277. "ocs": {
  3278. "type": "object",
  3279. "required": [
  3280. "meta",
  3281. "data"
  3282. ],
  3283. "properties": {
  3284. "meta": {
  3285. "$ref": "#/components/schemas/OCSMeta"
  3286. },
  3287. "data": {
  3288. "type": "object",
  3289. "required": [
  3290. "references"
  3291. ],
  3292. "properties": {
  3293. "references": {
  3294. "type": "object",
  3295. "additionalProperties": {
  3296. "$ref": "#/components/schemas/Reference",
  3297. "nullable": true
  3298. }
  3299. }
  3300. }
  3301. }
  3302. }
  3303. }
  3304. }
  3305. }
  3306. }
  3307. }
  3308. }
  3309. }
  3310. }
  3311. },
  3312. "/ocs/v2.php/references/resolve": {
  3313. "get": {
  3314. "operationId": "reference_api-resolve-one",
  3315. "summary": "Resolve a reference",
  3316. "tags": [
  3317. "reference_api"
  3318. ],
  3319. "security": [
  3320. {
  3321. "bearer_auth": []
  3322. },
  3323. {
  3324. "basic_auth": []
  3325. }
  3326. ],
  3327. "parameters": [
  3328. {
  3329. "name": "reference",
  3330. "in": "query",
  3331. "description": "Reference to resolve",
  3332. "required": true,
  3333. "schema": {
  3334. "type": "string"
  3335. }
  3336. },
  3337. {
  3338. "name": "OCS-APIRequest",
  3339. "in": "header",
  3340. "description": "Required to be true for the API request to pass",
  3341. "required": true,
  3342. "schema": {
  3343. "type": "boolean",
  3344. "default": true
  3345. }
  3346. }
  3347. ],
  3348. "responses": {
  3349. "200": {
  3350. "description": "Reference returned",
  3351. "content": {
  3352. "application/json": {
  3353. "schema": {
  3354. "type": "object",
  3355. "required": [
  3356. "ocs"
  3357. ],
  3358. "properties": {
  3359. "ocs": {
  3360. "type": "object",
  3361. "required": [
  3362. "meta",
  3363. "data"
  3364. ],
  3365. "properties": {
  3366. "meta": {
  3367. "$ref": "#/components/schemas/OCSMeta"
  3368. },
  3369. "data": {
  3370. "type": "object",
  3371. "required": [
  3372. "references"
  3373. ],
  3374. "properties": {
  3375. "references": {
  3376. "type": "object",
  3377. "additionalProperties": {
  3378. "$ref": "#/components/schemas/Reference",
  3379. "nullable": true
  3380. }
  3381. }
  3382. }
  3383. }
  3384. }
  3385. }
  3386. }
  3387. }
  3388. }
  3389. }
  3390. }
  3391. }
  3392. },
  3393. "post": {
  3394. "operationId": "reference_api-resolve",
  3395. "summary": "Resolve multiple references",
  3396. "tags": [
  3397. "reference_api"
  3398. ],
  3399. "security": [
  3400. {
  3401. "bearer_auth": []
  3402. },
  3403. {
  3404. "basic_auth": []
  3405. }
  3406. ],
  3407. "requestBody": {
  3408. "required": true,
  3409. "content": {
  3410. "application/json": {
  3411. "schema": {
  3412. "type": "object",
  3413. "required": [
  3414. "references"
  3415. ],
  3416. "properties": {
  3417. "references": {
  3418. "type": "array",
  3419. "description": "References to resolve",
  3420. "items": {
  3421. "type": "string"
  3422. }
  3423. },
  3424. "limit": {
  3425. "type": "integer",
  3426. "format": "int64",
  3427. "default": 1,
  3428. "description": "Maximum amount of references to resolve"
  3429. }
  3430. }
  3431. }
  3432. }
  3433. }
  3434. },
  3435. "parameters": [
  3436. {
  3437. "name": "OCS-APIRequest",
  3438. "in": "header",
  3439. "description": "Required to be true for the API request to pass",
  3440. "required": true,
  3441. "schema": {
  3442. "type": "boolean",
  3443. "default": true
  3444. }
  3445. }
  3446. ],
  3447. "responses": {
  3448. "200": {
  3449. "description": "References returned",
  3450. "content": {
  3451. "application/json": {
  3452. "schema": {
  3453. "type": "object",
  3454. "required": [
  3455. "ocs"
  3456. ],
  3457. "properties": {
  3458. "ocs": {
  3459. "type": "object",
  3460. "required": [
  3461. "meta",
  3462. "data"
  3463. ],
  3464. "properties": {
  3465. "meta": {
  3466. "$ref": "#/components/schemas/OCSMeta"
  3467. },
  3468. "data": {
  3469. "type": "object",
  3470. "required": [
  3471. "references"
  3472. ],
  3473. "properties": {
  3474. "references": {
  3475. "type": "object",
  3476. "additionalProperties": {
  3477. "$ref": "#/components/schemas/Reference",
  3478. "nullable": true
  3479. }
  3480. }
  3481. }
  3482. }
  3483. }
  3484. }
  3485. }
  3486. }
  3487. }
  3488. }
  3489. }
  3490. }
  3491. }
  3492. },
  3493. "/ocs/v2.php/references/resolvePublic": {
  3494. "get": {
  3495. "operationId": "reference_api-resolve-one-public",
  3496. "summary": "Resolve from a public page",
  3497. "tags": [
  3498. "reference_api"
  3499. ],
  3500. "security": [
  3501. {},
  3502. {
  3503. "bearer_auth": []
  3504. },
  3505. {
  3506. "basic_auth": []
  3507. }
  3508. ],
  3509. "parameters": [
  3510. {
  3511. "name": "reference",
  3512. "in": "query",
  3513. "description": "Reference to resolve",
  3514. "required": true,
  3515. "schema": {
  3516. "type": "string"
  3517. }
  3518. },
  3519. {
  3520. "name": "sharingToken",
  3521. "in": "query",
  3522. "description": "Token of the public share",
  3523. "required": true,
  3524. "schema": {
  3525. "type": "string"
  3526. }
  3527. },
  3528. {
  3529. "name": "OCS-APIRequest",
  3530. "in": "header",
  3531. "description": "Required to be true for the API request to pass",
  3532. "required": true,
  3533. "schema": {
  3534. "type": "boolean",
  3535. "default": true
  3536. }
  3537. }
  3538. ],
  3539. "responses": {
  3540. "200": {
  3541. "description": "Reference returned",
  3542. "content": {
  3543. "application/json": {
  3544. "schema": {
  3545. "type": "object",
  3546. "required": [
  3547. "ocs"
  3548. ],
  3549. "properties": {
  3550. "ocs": {
  3551. "type": "object",
  3552. "required": [
  3553. "meta",
  3554. "data"
  3555. ],
  3556. "properties": {
  3557. "meta": {
  3558. "$ref": "#/components/schemas/OCSMeta"
  3559. },
  3560. "data": {
  3561. "type": "object",
  3562. "required": [
  3563. "references"
  3564. ],
  3565. "properties": {
  3566. "references": {
  3567. "type": "object",
  3568. "additionalProperties": {
  3569. "$ref": "#/components/schemas/Reference",
  3570. "nullable": true
  3571. }
  3572. }
  3573. }
  3574. }
  3575. }
  3576. }
  3577. }
  3578. }
  3579. }
  3580. }
  3581. }
  3582. }
  3583. },
  3584. "post": {
  3585. "operationId": "reference_api-resolve-public",
  3586. "summary": "Resolve multiple references from a public page",
  3587. "tags": [
  3588. "reference_api"
  3589. ],
  3590. "security": [
  3591. {},
  3592. {
  3593. "bearer_auth": []
  3594. },
  3595. {
  3596. "basic_auth": []
  3597. }
  3598. ],
  3599. "requestBody": {
  3600. "required": true,
  3601. "content": {
  3602. "application/json": {
  3603. "schema": {
  3604. "type": "object",
  3605. "required": [
  3606. "references",
  3607. "sharingToken"
  3608. ],
  3609. "properties": {
  3610. "references": {
  3611. "type": "array",
  3612. "description": "References to resolve",
  3613. "items": {
  3614. "type": "string"
  3615. }
  3616. },
  3617. "sharingToken": {
  3618. "type": "string",
  3619. "description": "Token of the public share"
  3620. },
  3621. "limit": {
  3622. "type": "integer",
  3623. "format": "int64",
  3624. "default": 1,
  3625. "description": "Maximum amount of references to resolve, limited to 15"
  3626. }
  3627. }
  3628. }
  3629. }
  3630. }
  3631. },
  3632. "parameters": [
  3633. {
  3634. "name": "OCS-APIRequest",
  3635. "in": "header",
  3636. "description": "Required to be true for the API request to pass",
  3637. "required": true,
  3638. "schema": {
  3639. "type": "boolean",
  3640. "default": true
  3641. }
  3642. }
  3643. ],
  3644. "responses": {
  3645. "200": {
  3646. "description": "References returned",
  3647. "content": {
  3648. "application/json": {
  3649. "schema": {
  3650. "type": "object",
  3651. "required": [
  3652. "ocs"
  3653. ],
  3654. "properties": {
  3655. "ocs": {
  3656. "type": "object",
  3657. "required": [
  3658. "meta",
  3659. "data"
  3660. ],
  3661. "properties": {
  3662. "meta": {
  3663. "$ref": "#/components/schemas/OCSMeta"
  3664. },
  3665. "data": {
  3666. "type": "object",
  3667. "required": [
  3668. "references"
  3669. ],
  3670. "properties": {
  3671. "references": {
  3672. "type": "object",
  3673. "additionalProperties": {
  3674. "$ref": "#/components/schemas/Reference",
  3675. "nullable": true
  3676. }
  3677. }
  3678. }
  3679. }
  3680. }
  3681. }
  3682. }
  3683. }
  3684. }
  3685. }
  3686. }
  3687. }
  3688. }
  3689. },
  3690. "/ocs/v2.php/references/providers": {
  3691. "get": {
  3692. "operationId": "reference_api-get-providers-info",
  3693. "summary": "Get the providers",
  3694. "tags": [
  3695. "reference_api"
  3696. ],
  3697. "security": [
  3698. {
  3699. "bearer_auth": []
  3700. },
  3701. {
  3702. "basic_auth": []
  3703. }
  3704. ],
  3705. "parameters": [
  3706. {
  3707. "name": "OCS-APIRequest",
  3708. "in": "header",
  3709. "description": "Required to be true for the API request to pass",
  3710. "required": true,
  3711. "schema": {
  3712. "type": "boolean",
  3713. "default": true
  3714. }
  3715. }
  3716. ],
  3717. "responses": {
  3718. "200": {
  3719. "description": "Providers returned",
  3720. "content": {
  3721. "application/json": {
  3722. "schema": {
  3723. "type": "object",
  3724. "required": [
  3725. "ocs"
  3726. ],
  3727. "properties": {
  3728. "ocs": {
  3729. "type": "object",
  3730. "required": [
  3731. "meta",
  3732. "data"
  3733. ],
  3734. "properties": {
  3735. "meta": {
  3736. "$ref": "#/components/schemas/OCSMeta"
  3737. },
  3738. "data": {
  3739. "type": "array",
  3740. "items": {
  3741. "$ref": "#/components/schemas/ReferenceProvider"
  3742. }
  3743. }
  3744. }
  3745. }
  3746. }
  3747. }
  3748. }
  3749. }
  3750. }
  3751. }
  3752. }
  3753. },
  3754. "/ocs/v2.php/references/provider/{providerId}": {
  3755. "put": {
  3756. "operationId": "reference_api-touch-provider",
  3757. "summary": "Touch a provider",
  3758. "tags": [
  3759. "reference_api"
  3760. ],
  3761. "security": [
  3762. {
  3763. "bearer_auth": []
  3764. },
  3765. {
  3766. "basic_auth": []
  3767. }
  3768. ],
  3769. "requestBody": {
  3770. "required": false,
  3771. "content": {
  3772. "application/json": {
  3773. "schema": {
  3774. "type": "object",
  3775. "properties": {
  3776. "timestamp": {
  3777. "type": "integer",
  3778. "format": "int64",
  3779. "nullable": true,
  3780. "description": "Timestamp of the last usage"
  3781. }
  3782. }
  3783. }
  3784. }
  3785. }
  3786. },
  3787. "parameters": [
  3788. {
  3789. "name": "providerId",
  3790. "in": "path",
  3791. "description": "ID of the provider",
  3792. "required": true,
  3793. "schema": {
  3794. "type": "string"
  3795. }
  3796. },
  3797. {
  3798. "name": "OCS-APIRequest",
  3799. "in": "header",
  3800. "description": "Required to be true for the API request to pass",
  3801. "required": true,
  3802. "schema": {
  3803. "type": "boolean",
  3804. "default": true
  3805. }
  3806. }
  3807. ],
  3808. "responses": {
  3809. "200": {
  3810. "description": "Provider touched",
  3811. "content": {
  3812. "application/json": {
  3813. "schema": {
  3814. "type": "object",
  3815. "required": [
  3816. "ocs"
  3817. ],
  3818. "properties": {
  3819. "ocs": {
  3820. "type": "object",
  3821. "required": [
  3822. "meta",
  3823. "data"
  3824. ],
  3825. "properties": {
  3826. "meta": {
  3827. "$ref": "#/components/schemas/OCSMeta"
  3828. },
  3829. "data": {
  3830. "type": "object",
  3831. "required": [
  3832. "success"
  3833. ],
  3834. "properties": {
  3835. "success": {
  3836. "type": "boolean"
  3837. }
  3838. }
  3839. }
  3840. }
  3841. }
  3842. }
  3843. }
  3844. }
  3845. }
  3846. }
  3847. }
  3848. }
  3849. },
  3850. "/ocs/v2.php/taskprocessing/tasktypes": {
  3851. "get": {
  3852. "operationId": "task_processing_api-task-types",
  3853. "summary": "Returns all available TaskProcessing task types",
  3854. "tags": [
  3855. "task_processing_api"
  3856. ],
  3857. "security": [
  3858. {},
  3859. {
  3860. "bearer_auth": []
  3861. },
  3862. {
  3863. "basic_auth": []
  3864. }
  3865. ],
  3866. "parameters": [
  3867. {
  3868. "name": "OCS-APIRequest",
  3869. "in": "header",
  3870. "description": "Required to be true for the API request to pass",
  3871. "required": true,
  3872. "schema": {
  3873. "type": "boolean",
  3874. "default": true
  3875. }
  3876. }
  3877. ],
  3878. "responses": {
  3879. "200": {
  3880. "description": "Task types returned",
  3881. "content": {
  3882. "application/json": {
  3883. "schema": {
  3884. "type": "object",
  3885. "required": [
  3886. "ocs"
  3887. ],
  3888. "properties": {
  3889. "ocs": {
  3890. "type": "object",
  3891. "required": [
  3892. "meta",
  3893. "data"
  3894. ],
  3895. "properties": {
  3896. "meta": {
  3897. "$ref": "#/components/schemas/OCSMeta"
  3898. },
  3899. "data": {
  3900. "type": "object",
  3901. "required": [
  3902. "types"
  3903. ],
  3904. "properties": {
  3905. "types": {
  3906. "type": "object",
  3907. "additionalProperties": {
  3908. "$ref": "#/components/schemas/TaskProcessingTaskType"
  3909. }
  3910. }
  3911. }
  3912. }
  3913. }
  3914. }
  3915. }
  3916. }
  3917. }
  3918. }
  3919. }
  3920. }
  3921. }
  3922. },
  3923. "/ocs/v2.php/taskprocessing/schedule": {
  3924. "post": {
  3925. "operationId": "task_processing_api-schedule",
  3926. "summary": "Schedules a task",
  3927. "tags": [
  3928. "task_processing_api"
  3929. ],
  3930. "security": [
  3931. {},
  3932. {
  3933. "bearer_auth": []
  3934. },
  3935. {
  3936. "basic_auth": []
  3937. }
  3938. ],
  3939. "requestBody": {
  3940. "required": true,
  3941. "content": {
  3942. "application/json": {
  3943. "schema": {
  3944. "type": "object",
  3945. "required": [
  3946. "input",
  3947. "type",
  3948. "appId"
  3949. ],
  3950. "properties": {
  3951. "input": {
  3952. "type": "object",
  3953. "description": "Task's input parameters",
  3954. "additionalProperties": {
  3955. "type": "object"
  3956. }
  3957. },
  3958. "type": {
  3959. "type": "string",
  3960. "description": "Type of the task"
  3961. },
  3962. "appId": {
  3963. "type": "string",
  3964. "description": "ID of the app that will execute the task"
  3965. },
  3966. "customId": {
  3967. "type": "string",
  3968. "default": "",
  3969. "description": "An arbitrary identifier for the task"
  3970. },
  3971. "webhookUri": {
  3972. "type": "string",
  3973. "nullable": true,
  3974. "description": "URI to be requested when the task finishes"
  3975. },
  3976. "webhookMethod": {
  3977. "type": "string",
  3978. "nullable": true,
  3979. "description": "Method used for the webhook request (HTTP:GET, HTTP:POST, HTTP:PUT, HTTP:DELETE or AppAPI:APP_ID:GET, AppAPI:APP_ID:POST...)"
  3980. }
  3981. }
  3982. }
  3983. }
  3984. }
  3985. },
  3986. "parameters": [
  3987. {
  3988. "name": "OCS-APIRequest",
  3989. "in": "header",
  3990. "description": "Required to be true for the API request to pass",
  3991. "required": true,
  3992. "schema": {
  3993. "type": "boolean",
  3994. "default": true
  3995. }
  3996. }
  3997. ],
  3998. "responses": {
  3999. "200": {
  4000. "description": "Task scheduled successfully",
  4001. "content": {
  4002. "application/json": {
  4003. "schema": {
  4004. "type": "object",
  4005. "required": [
  4006. "ocs"
  4007. ],
  4008. "properties": {
  4009. "ocs": {
  4010. "type": "object",
  4011. "required": [
  4012. "meta",
  4013. "data"
  4014. ],
  4015. "properties": {
  4016. "meta": {
  4017. "$ref": "#/components/schemas/OCSMeta"
  4018. },
  4019. "data": {
  4020. "type": "object",
  4021. "required": [
  4022. "task"
  4023. ],
  4024. "properties": {
  4025. "task": {
  4026. "$ref": "#/components/schemas/TaskProcessingTask"
  4027. }
  4028. }
  4029. }
  4030. }
  4031. }
  4032. }
  4033. }
  4034. }
  4035. }
  4036. },
  4037. "500": {
  4038. "description": "",
  4039. "content": {
  4040. "application/json": {
  4041. "schema": {
  4042. "type": "object",
  4043. "required": [
  4044. "ocs"
  4045. ],
  4046. "properties": {
  4047. "ocs": {
  4048. "type": "object",
  4049. "required": [
  4050. "meta",
  4051. "data"
  4052. ],
  4053. "properties": {
  4054. "meta": {
  4055. "$ref": "#/components/schemas/OCSMeta"
  4056. },
  4057. "data": {
  4058. "type": "object",
  4059. "required": [
  4060. "message"
  4061. ],
  4062. "properties": {
  4063. "message": {
  4064. "type": "string"
  4065. }
  4066. }
  4067. }
  4068. }
  4069. }
  4070. }
  4071. }
  4072. }
  4073. }
  4074. },
  4075. "400": {
  4076. "description": "Scheduling task is not possible",
  4077. "content": {
  4078. "application/json": {
  4079. "schema": {
  4080. "type": "object",
  4081. "required": [
  4082. "ocs"
  4083. ],
  4084. "properties": {
  4085. "ocs": {
  4086. "type": "object",
  4087. "required": [
  4088. "meta",
  4089. "data"
  4090. ],
  4091. "properties": {
  4092. "meta": {
  4093. "$ref": "#/components/schemas/OCSMeta"
  4094. },
  4095. "data": {
  4096. "type": "object",
  4097. "required": [
  4098. "message"
  4099. ],
  4100. "properties": {
  4101. "message": {
  4102. "type": "string"
  4103. }
  4104. }
  4105. }
  4106. }
  4107. }
  4108. }
  4109. }
  4110. }
  4111. }
  4112. },
  4113. "412": {
  4114. "description": "Scheduling task is not possible",
  4115. "content": {
  4116. "application/json": {
  4117. "schema": {
  4118. "type": "object",
  4119. "required": [
  4120. "ocs"
  4121. ],
  4122. "properties": {
  4123. "ocs": {
  4124. "type": "object",
  4125. "required": [
  4126. "meta",
  4127. "data"
  4128. ],
  4129. "properties": {
  4130. "meta": {
  4131. "$ref": "#/components/schemas/OCSMeta"
  4132. },
  4133. "data": {
  4134. "type": "object",
  4135. "required": [
  4136. "message"
  4137. ],
  4138. "properties": {
  4139. "message": {
  4140. "type": "string"
  4141. }
  4142. }
  4143. }
  4144. }
  4145. }
  4146. }
  4147. }
  4148. }
  4149. }
  4150. },
  4151. "401": {
  4152. "description": "Cannot schedule task because it references files in its input that the user doesn't have access to",
  4153. "content": {
  4154. "application/json": {
  4155. "schema": {
  4156. "type": "object",
  4157. "required": [
  4158. "ocs"
  4159. ],
  4160. "properties": {
  4161. "ocs": {
  4162. "type": "object",
  4163. "required": [
  4164. "meta",
  4165. "data"
  4166. ],
  4167. "properties": {
  4168. "meta": {
  4169. "$ref": "#/components/schemas/OCSMeta"
  4170. },
  4171. "data": {
  4172. "type": "object",
  4173. "required": [
  4174. "message"
  4175. ],
  4176. "properties": {
  4177. "message": {
  4178. "type": "string"
  4179. }
  4180. }
  4181. }
  4182. }
  4183. }
  4184. }
  4185. }
  4186. }
  4187. }
  4188. }
  4189. }
  4190. }
  4191. },
  4192. "/ocs/v2.php/taskprocessing/task/{id}": {
  4193. "get": {
  4194. "operationId": "task_processing_api-get-task",
  4195. "summary": "Gets a task including status and result",
  4196. "description": "Tasks are removed 1 week after receiving their last update",
  4197. "tags": [
  4198. "task_processing_api"
  4199. ],
  4200. "security": [
  4201. {},
  4202. {
  4203. "bearer_auth": []
  4204. },
  4205. {
  4206. "basic_auth": []
  4207. }
  4208. ],
  4209. "parameters": [
  4210. {
  4211. "name": "id",
  4212. "in": "path",
  4213. "description": "The id of the task",
  4214. "required": true,
  4215. "schema": {
  4216. "type": "integer",
  4217. "format": "int64"
  4218. }
  4219. },
  4220. {
  4221. "name": "OCS-APIRequest",
  4222. "in": "header",
  4223. "description": "Required to be true for the API request to pass",
  4224. "required": true,
  4225. "schema": {
  4226. "type": "boolean",
  4227. "default": true
  4228. }
  4229. }
  4230. ],
  4231. "responses": {
  4232. "200": {
  4233. "description": "Task returned",
  4234. "content": {
  4235. "application/json": {
  4236. "schema": {
  4237. "type": "object",
  4238. "required": [
  4239. "ocs"
  4240. ],
  4241. "properties": {
  4242. "ocs": {
  4243. "type": "object",
  4244. "required": [
  4245. "meta",
  4246. "data"
  4247. ],
  4248. "properties": {
  4249. "meta": {
  4250. "$ref": "#/components/schemas/OCSMeta"
  4251. },
  4252. "data": {
  4253. "type": "object",
  4254. "required": [
  4255. "task"
  4256. ],
  4257. "properties": {
  4258. "task": {
  4259. "$ref": "#/components/schemas/TaskProcessingTask"
  4260. }
  4261. }
  4262. }
  4263. }
  4264. }
  4265. }
  4266. }
  4267. }
  4268. }
  4269. },
  4270. "404": {
  4271. "description": "Task not found",
  4272. "content": {
  4273. "application/json": {
  4274. "schema": {
  4275. "type": "object",
  4276. "required": [
  4277. "ocs"
  4278. ],
  4279. "properties": {
  4280. "ocs": {
  4281. "type": "object",
  4282. "required": [
  4283. "meta",
  4284. "data"
  4285. ],
  4286. "properties": {
  4287. "meta": {
  4288. "$ref": "#/components/schemas/OCSMeta"
  4289. },
  4290. "data": {
  4291. "type": "object",
  4292. "required": [
  4293. "message"
  4294. ],
  4295. "properties": {
  4296. "message": {
  4297. "type": "string"
  4298. }
  4299. }
  4300. }
  4301. }
  4302. }
  4303. }
  4304. }
  4305. }
  4306. }
  4307. },
  4308. "500": {
  4309. "description": "",
  4310. "content": {
  4311. "application/json": {
  4312. "schema": {
  4313. "type": "object",
  4314. "required": [
  4315. "ocs"
  4316. ],
  4317. "properties": {
  4318. "ocs": {
  4319. "type": "object",
  4320. "required": [
  4321. "meta",
  4322. "data"
  4323. ],
  4324. "properties": {
  4325. "meta": {
  4326. "$ref": "#/components/schemas/OCSMeta"
  4327. },
  4328. "data": {
  4329. "type": "object",
  4330. "required": [
  4331. "message"
  4332. ],
  4333. "properties": {
  4334. "message": {
  4335. "type": "string"
  4336. }
  4337. }
  4338. }
  4339. }
  4340. }
  4341. }
  4342. }
  4343. }
  4344. }
  4345. }
  4346. }
  4347. },
  4348. "delete": {
  4349. "operationId": "task_processing_api-delete-task",
  4350. "summary": "Deletes a task",
  4351. "tags": [
  4352. "task_processing_api"
  4353. ],
  4354. "security": [
  4355. {
  4356. "bearer_auth": []
  4357. },
  4358. {
  4359. "basic_auth": []
  4360. }
  4361. ],
  4362. "parameters": [
  4363. {
  4364. "name": "id",
  4365. "in": "path",
  4366. "description": "The id of the task",
  4367. "required": true,
  4368. "schema": {
  4369. "type": "integer",
  4370. "format": "int64"
  4371. }
  4372. },
  4373. {
  4374. "name": "OCS-APIRequest",
  4375. "in": "header",
  4376. "description": "Required to be true for the API request to pass",
  4377. "required": true,
  4378. "schema": {
  4379. "type": "boolean",
  4380. "default": true
  4381. }
  4382. }
  4383. ],
  4384. "responses": {
  4385. "200": {
  4386. "description": "Task deleted",
  4387. "content": {
  4388. "application/json": {
  4389. "schema": {
  4390. "type": "object",
  4391. "required": [
  4392. "ocs"
  4393. ],
  4394. "properties": {
  4395. "ocs": {
  4396. "type": "object",
  4397. "required": [
  4398. "meta",
  4399. "data"
  4400. ],
  4401. "properties": {
  4402. "meta": {
  4403. "$ref": "#/components/schemas/OCSMeta"
  4404. },
  4405. "data": {
  4406. "nullable": true
  4407. }
  4408. }
  4409. }
  4410. }
  4411. }
  4412. }
  4413. }
  4414. },
  4415. "500": {
  4416. "description": "",
  4417. "content": {
  4418. "application/json": {
  4419. "schema": {
  4420. "type": "object",
  4421. "required": [
  4422. "ocs"
  4423. ],
  4424. "properties": {
  4425. "ocs": {
  4426. "type": "object",
  4427. "required": [
  4428. "meta",
  4429. "data"
  4430. ],
  4431. "properties": {
  4432. "meta": {
  4433. "$ref": "#/components/schemas/OCSMeta"
  4434. },
  4435. "data": {
  4436. "type": "object",
  4437. "required": [
  4438. "message"
  4439. ],
  4440. "properties": {
  4441. "message": {
  4442. "type": "string"
  4443. }
  4444. }
  4445. }
  4446. }
  4447. }
  4448. }
  4449. }
  4450. }
  4451. }
  4452. }
  4453. }
  4454. }
  4455. },
  4456. "/ocs/v2.php/taskprocessing/tasks/app/{appId}": {
  4457. "get": {
  4458. "operationId": "task_processing_api-list-tasks-by-app",
  4459. "summary": "Returns tasks for the current user filtered by the appId and optional customId",
  4460. "tags": [
  4461. "task_processing_api"
  4462. ],
  4463. "security": [
  4464. {
  4465. "bearer_auth": []
  4466. },
  4467. {
  4468. "basic_auth": []
  4469. }
  4470. ],
  4471. "parameters": [
  4472. {
  4473. "name": "appId",
  4474. "in": "path",
  4475. "description": "ID of the app",
  4476. "required": true,
  4477. "schema": {
  4478. "type": "string"
  4479. }
  4480. },
  4481. {
  4482. "name": "customId",
  4483. "in": "query",
  4484. "description": "An arbitrary identifier for the task",
  4485. "schema": {
  4486. "type": "string",
  4487. "nullable": true
  4488. }
  4489. },
  4490. {
  4491. "name": "OCS-APIRequest",
  4492. "in": "header",
  4493. "description": "Required to be true for the API request to pass",
  4494. "required": true,
  4495. "schema": {
  4496. "type": "boolean",
  4497. "default": true
  4498. }
  4499. }
  4500. ],
  4501. "responses": {
  4502. "200": {
  4503. "description": "Tasks returned",
  4504. "content": {
  4505. "application/json": {
  4506. "schema": {
  4507. "type": "object",
  4508. "required": [
  4509. "ocs"
  4510. ],
  4511. "properties": {
  4512. "ocs": {
  4513. "type": "object",
  4514. "required": [
  4515. "meta",
  4516. "data"
  4517. ],
  4518. "properties": {
  4519. "meta": {
  4520. "$ref": "#/components/schemas/OCSMeta"
  4521. },
  4522. "data": {
  4523. "type": "object",
  4524. "required": [
  4525. "tasks"
  4526. ],
  4527. "properties": {
  4528. "tasks": {
  4529. "type": "array",
  4530. "items": {
  4531. "$ref": "#/components/schemas/TaskProcessingTask"
  4532. }
  4533. }
  4534. }
  4535. }
  4536. }
  4537. }
  4538. }
  4539. }
  4540. }
  4541. }
  4542. },
  4543. "500": {
  4544. "description": "",
  4545. "content": {
  4546. "application/json": {
  4547. "schema": {
  4548. "type": "object",
  4549. "required": [
  4550. "ocs"
  4551. ],
  4552. "properties": {
  4553. "ocs": {
  4554. "type": "object",
  4555. "required": [
  4556. "meta",
  4557. "data"
  4558. ],
  4559. "properties": {
  4560. "meta": {
  4561. "$ref": "#/components/schemas/OCSMeta"
  4562. },
  4563. "data": {
  4564. "type": "object",
  4565. "required": [
  4566. "message"
  4567. ],
  4568. "properties": {
  4569. "message": {
  4570. "type": "string"
  4571. }
  4572. }
  4573. }
  4574. }
  4575. }
  4576. }
  4577. }
  4578. }
  4579. }
  4580. }
  4581. }
  4582. }
  4583. },
  4584. "/ocs/v2.php/taskprocessing/tasks": {
  4585. "get": {
  4586. "operationId": "task_processing_api-list-tasks",
  4587. "summary": "Returns tasks for the current user filtered by the optional taskType and optional customId",
  4588. "tags": [
  4589. "task_processing_api"
  4590. ],
  4591. "security": [
  4592. {
  4593. "bearer_auth": []
  4594. },
  4595. {
  4596. "basic_auth": []
  4597. }
  4598. ],
  4599. "parameters": [
  4600. {
  4601. "name": "taskType",
  4602. "in": "query",
  4603. "description": "The task type to filter by",
  4604. "schema": {
  4605. "type": "string",
  4606. "nullable": true
  4607. }
  4608. },
  4609. {
  4610. "name": "customId",
  4611. "in": "query",
  4612. "description": "An arbitrary identifier for the task",
  4613. "schema": {
  4614. "type": "string",
  4615. "nullable": true
  4616. }
  4617. },
  4618. {
  4619. "name": "OCS-APIRequest",
  4620. "in": "header",
  4621. "description": "Required to be true for the API request to pass",
  4622. "required": true,
  4623. "schema": {
  4624. "type": "boolean",
  4625. "default": true
  4626. }
  4627. }
  4628. ],
  4629. "responses": {
  4630. "200": {
  4631. "description": "Tasks returned",
  4632. "content": {
  4633. "application/json": {
  4634. "schema": {
  4635. "type": "object",
  4636. "required": [
  4637. "ocs"
  4638. ],
  4639. "properties": {
  4640. "ocs": {
  4641. "type": "object",
  4642. "required": [
  4643. "meta",
  4644. "data"
  4645. ],
  4646. "properties": {
  4647. "meta": {
  4648. "$ref": "#/components/schemas/OCSMeta"
  4649. },
  4650. "data": {
  4651. "type": "object",
  4652. "required": [
  4653. "tasks"
  4654. ],
  4655. "properties": {
  4656. "tasks": {
  4657. "type": "array",
  4658. "items": {
  4659. "$ref": "#/components/schemas/TaskProcessingTask"
  4660. }
  4661. }
  4662. }
  4663. }
  4664. }
  4665. }
  4666. }
  4667. }
  4668. }
  4669. }
  4670. },
  4671. "500": {
  4672. "description": "",
  4673. "content": {
  4674. "application/json": {
  4675. "schema": {
  4676. "type": "object",
  4677. "required": [
  4678. "ocs"
  4679. ],
  4680. "properties": {
  4681. "ocs": {
  4682. "type": "object",
  4683. "required": [
  4684. "meta",
  4685. "data"
  4686. ],
  4687. "properties": {
  4688. "meta": {
  4689. "$ref": "#/components/schemas/OCSMeta"
  4690. },
  4691. "data": {
  4692. "type": "object",
  4693. "required": [
  4694. "message"
  4695. ],
  4696. "properties": {
  4697. "message": {
  4698. "type": "string"
  4699. }
  4700. }
  4701. }
  4702. }
  4703. }
  4704. }
  4705. }
  4706. }
  4707. }
  4708. }
  4709. }
  4710. }
  4711. },
  4712. "/ocs/v2.php/taskprocessing/tasks/{taskId}/file/{fileId}": {
  4713. "get": {
  4714. "operationId": "task_processing_api-get-file-contents",
  4715. "summary": "Returns the contents of a file referenced in a task",
  4716. "tags": [
  4717. "task_processing_api"
  4718. ],
  4719. "security": [
  4720. {
  4721. "bearer_auth": []
  4722. },
  4723. {
  4724. "basic_auth": []
  4725. }
  4726. ],
  4727. "parameters": [
  4728. {
  4729. "name": "taskId",
  4730. "in": "path",
  4731. "description": "The id of the task",
  4732. "required": true,
  4733. "schema": {
  4734. "type": "integer",
  4735. "format": "int64"
  4736. }
  4737. },
  4738. {
  4739. "name": "fileId",
  4740. "in": "path",
  4741. "description": "The file id of the file to retrieve",
  4742. "required": true,
  4743. "schema": {
  4744. "type": "integer",
  4745. "format": "int64"
  4746. }
  4747. },
  4748. {
  4749. "name": "OCS-APIRequest",
  4750. "in": "header",
  4751. "description": "Required to be true for the API request to pass",
  4752. "required": true,
  4753. "schema": {
  4754. "type": "boolean",
  4755. "default": true
  4756. }
  4757. }
  4758. ],
  4759. "responses": {
  4760. "200": {
  4761. "description": "File content returned",
  4762. "content": {
  4763. "*/*": {
  4764. "schema": {
  4765. "type": "string",
  4766. "format": "binary"
  4767. }
  4768. }
  4769. }
  4770. },
  4771. "500": {
  4772. "description": "",
  4773. "content": {
  4774. "application/json": {
  4775. "schema": {
  4776. "type": "object",
  4777. "required": [
  4778. "ocs"
  4779. ],
  4780. "properties": {
  4781. "ocs": {
  4782. "type": "object",
  4783. "required": [
  4784. "meta",
  4785. "data"
  4786. ],
  4787. "properties": {
  4788. "meta": {
  4789. "$ref": "#/components/schemas/OCSMeta"
  4790. },
  4791. "data": {
  4792. "type": "object",
  4793. "required": [
  4794. "message"
  4795. ],
  4796. "properties": {
  4797. "message": {
  4798. "type": "string"
  4799. }
  4800. }
  4801. }
  4802. }
  4803. }
  4804. }
  4805. }
  4806. }
  4807. }
  4808. },
  4809. "404": {
  4810. "description": "Task or file not found",
  4811. "content": {
  4812. "application/json": {
  4813. "schema": {
  4814. "type": "object",
  4815. "required": [
  4816. "ocs"
  4817. ],
  4818. "properties": {
  4819. "ocs": {
  4820. "type": "object",
  4821. "required": [
  4822. "meta",
  4823. "data"
  4824. ],
  4825. "properties": {
  4826. "meta": {
  4827. "$ref": "#/components/schemas/OCSMeta"
  4828. },
  4829. "data": {
  4830. "type": "object",
  4831. "required": [
  4832. "message"
  4833. ],
  4834. "properties": {
  4835. "message": {
  4836. "type": "string"
  4837. }
  4838. }
  4839. }
  4840. }
  4841. }
  4842. }
  4843. }
  4844. }
  4845. }
  4846. }
  4847. }
  4848. }
  4849. },
  4850. "/ocs/v2.php/taskprocessing/tasks/{taskId}/cancel": {
  4851. "post": {
  4852. "operationId": "task_processing_api-cancel-task",
  4853. "summary": "Cancels a task",
  4854. "tags": [
  4855. "task_processing_api"
  4856. ],
  4857. "security": [
  4858. {
  4859. "bearer_auth": []
  4860. },
  4861. {
  4862. "basic_auth": []
  4863. }
  4864. ],
  4865. "parameters": [
  4866. {
  4867. "name": "taskId",
  4868. "in": "path",
  4869. "description": "The id of the task",
  4870. "required": true,
  4871. "schema": {
  4872. "type": "integer",
  4873. "format": "int64"
  4874. }
  4875. },
  4876. {
  4877. "name": "OCS-APIRequest",
  4878. "in": "header",
  4879. "description": "Required to be true for the API request to pass",
  4880. "required": true,
  4881. "schema": {
  4882. "type": "boolean",
  4883. "default": true
  4884. }
  4885. }
  4886. ],
  4887. "responses": {
  4888. "200": {
  4889. "description": "Task canceled successfully",
  4890. "content": {
  4891. "application/json": {
  4892. "schema": {
  4893. "type": "object",
  4894. "required": [
  4895. "ocs"
  4896. ],
  4897. "properties": {
  4898. "ocs": {
  4899. "type": "object",
  4900. "required": [
  4901. "meta",
  4902. "data"
  4903. ],
  4904. "properties": {
  4905. "meta": {
  4906. "$ref": "#/components/schemas/OCSMeta"
  4907. },
  4908. "data": {
  4909. "type": "object",
  4910. "required": [
  4911. "task"
  4912. ],
  4913. "properties": {
  4914. "task": {
  4915. "$ref": "#/components/schemas/TaskProcessingTask"
  4916. }
  4917. }
  4918. }
  4919. }
  4920. }
  4921. }
  4922. }
  4923. }
  4924. }
  4925. },
  4926. "500": {
  4927. "description": "",
  4928. "content": {
  4929. "application/json": {
  4930. "schema": {
  4931. "type": "object",
  4932. "required": [
  4933. "ocs"
  4934. ],
  4935. "properties": {
  4936. "ocs": {
  4937. "type": "object",
  4938. "required": [
  4939. "meta",
  4940. "data"
  4941. ],
  4942. "properties": {
  4943. "meta": {
  4944. "$ref": "#/components/schemas/OCSMeta"
  4945. },
  4946. "data": {
  4947. "type": "object",
  4948. "required": [
  4949. "message"
  4950. ],
  4951. "properties": {
  4952. "message": {
  4953. "type": "string"
  4954. }
  4955. }
  4956. }
  4957. }
  4958. }
  4959. }
  4960. }
  4961. }
  4962. }
  4963. },
  4964. "404": {
  4965. "description": "Task not found",
  4966. "content": {
  4967. "application/json": {
  4968. "schema": {
  4969. "type": "object",
  4970. "required": [
  4971. "ocs"
  4972. ],
  4973. "properties": {
  4974. "ocs": {
  4975. "type": "object",
  4976. "required": [
  4977. "meta",
  4978. "data"
  4979. ],
  4980. "properties": {
  4981. "meta": {
  4982. "$ref": "#/components/schemas/OCSMeta"
  4983. },
  4984. "data": {
  4985. "type": "object",
  4986. "required": [
  4987. "message"
  4988. ],
  4989. "properties": {
  4990. "message": {
  4991. "type": "string"
  4992. }
  4993. }
  4994. }
  4995. }
  4996. }
  4997. }
  4998. }
  4999. }
  5000. }
  5001. }
  5002. }
  5003. }
  5004. },
  5005. "/ocs/v2.php/teams/{teamId}/resources": {
  5006. "get": {
  5007. "operationId": "teams_api-resolve-one",
  5008. "summary": "Get all resources of a team",
  5009. "tags": [
  5010. "teams_api"
  5011. ],
  5012. "security": [
  5013. {
  5014. "bearer_auth": []
  5015. },
  5016. {
  5017. "basic_auth": []
  5018. }
  5019. ],
  5020. "parameters": [
  5021. {
  5022. "name": "teamId",
  5023. "in": "path",
  5024. "description": "Unique id of the team",
  5025. "required": true,
  5026. "schema": {
  5027. "type": "string"
  5028. }
  5029. },
  5030. {
  5031. "name": "OCS-APIRequest",
  5032. "in": "header",
  5033. "description": "Required to be true for the API request to pass",
  5034. "required": true,
  5035. "schema": {
  5036. "type": "boolean",
  5037. "default": true
  5038. }
  5039. }
  5040. ],
  5041. "responses": {
  5042. "200": {
  5043. "description": "Resources returned",
  5044. "content": {
  5045. "application/json": {
  5046. "schema": {
  5047. "type": "object",
  5048. "required": [
  5049. "ocs"
  5050. ],
  5051. "properties": {
  5052. "ocs": {
  5053. "type": "object",
  5054. "required": [
  5055. "meta",
  5056. "data"
  5057. ],
  5058. "properties": {
  5059. "meta": {
  5060. "$ref": "#/components/schemas/OCSMeta"
  5061. },
  5062. "data": {
  5063. "type": "object",
  5064. "required": [
  5065. "resources"
  5066. ],
  5067. "properties": {
  5068. "resources": {
  5069. "type": "array",
  5070. "items": {
  5071. "$ref": "#/components/schemas/TeamResource"
  5072. }
  5073. }
  5074. }
  5075. }
  5076. }
  5077. }
  5078. }
  5079. }
  5080. }
  5081. }
  5082. }
  5083. }
  5084. }
  5085. },
  5086. "/ocs/v2.php/teams/resources/{providerId}/{resourceId}": {
  5087. "get": {
  5088. "operationId": "teams_api-list-teams",
  5089. "summary": "Get all teams of a resource",
  5090. "tags": [
  5091. "teams_api"
  5092. ],
  5093. "security": [
  5094. {
  5095. "bearer_auth": []
  5096. },
  5097. {
  5098. "basic_auth": []
  5099. }
  5100. ],
  5101. "parameters": [
  5102. {
  5103. "name": "providerId",
  5104. "in": "path",
  5105. "description": "Identifier of the provider (e.g. deck, talk, collectives)",
  5106. "required": true,
  5107. "schema": {
  5108. "type": "string"
  5109. }
  5110. },
  5111. {
  5112. "name": "resourceId",
  5113. "in": "path",
  5114. "description": "Unique id of the resource to list teams for (e.g. deck board id)",
  5115. "required": true,
  5116. "schema": {
  5117. "type": "string"
  5118. }
  5119. },
  5120. {
  5121. "name": "OCS-APIRequest",
  5122. "in": "header",
  5123. "description": "Required to be true for the API request to pass",
  5124. "required": true,
  5125. "schema": {
  5126. "type": "boolean",
  5127. "default": true
  5128. }
  5129. }
  5130. ],
  5131. "responses": {
  5132. "200": {
  5133. "description": "Teams returned",
  5134. "content": {
  5135. "application/json": {
  5136. "schema": {
  5137. "type": "object",
  5138. "required": [
  5139. "ocs"
  5140. ],
  5141. "properties": {
  5142. "ocs": {
  5143. "type": "object",
  5144. "required": [
  5145. "meta",
  5146. "data"
  5147. ],
  5148. "properties": {
  5149. "meta": {
  5150. "$ref": "#/components/schemas/OCSMeta"
  5151. },
  5152. "data": {
  5153. "type": "object",
  5154. "required": [
  5155. "teams"
  5156. ],
  5157. "properties": {
  5158. "teams": {
  5159. "type": "array",
  5160. "items": {
  5161. "$ref": "#/components/schemas/Team"
  5162. }
  5163. }
  5164. }
  5165. }
  5166. }
  5167. }
  5168. }
  5169. }
  5170. }
  5171. }
  5172. }
  5173. }
  5174. }
  5175. },
  5176. "/ocs/v2.php/textprocessing/tasktypes": {
  5177. "get": {
  5178. "operationId": "text_processing_api-task-types",
  5179. "summary": "This endpoint returns all available LanguageModel task types",
  5180. "tags": [
  5181. "text_processing_api"
  5182. ],
  5183. "security": [
  5184. {},
  5185. {
  5186. "bearer_auth": []
  5187. },
  5188. {
  5189. "basic_auth": []
  5190. }
  5191. ],
  5192. "parameters": [
  5193. {
  5194. "name": "OCS-APIRequest",
  5195. "in": "header",
  5196. "description": "Required to be true for the API request to pass",
  5197. "required": true,
  5198. "schema": {
  5199. "type": "boolean",
  5200. "default": true
  5201. }
  5202. }
  5203. ],
  5204. "responses": {
  5205. "200": {
  5206. "description": "Task types returned",
  5207. "content": {
  5208. "application/json": {
  5209. "schema": {
  5210. "type": "object",
  5211. "required": [
  5212. "ocs"
  5213. ],
  5214. "properties": {
  5215. "ocs": {
  5216. "type": "object",
  5217. "required": [
  5218. "meta",
  5219. "data"
  5220. ],
  5221. "properties": {
  5222. "meta": {
  5223. "$ref": "#/components/schemas/OCSMeta"
  5224. },
  5225. "data": {
  5226. "type": "object",
  5227. "required": [
  5228. "types"
  5229. ],
  5230. "properties": {
  5231. "types": {
  5232. "type": "array",
  5233. "items": {
  5234. "type": "object",
  5235. "required": [
  5236. "id",
  5237. "name",
  5238. "description"
  5239. ],
  5240. "properties": {
  5241. "id": {
  5242. "type": "string"
  5243. },
  5244. "name": {
  5245. "type": "string"
  5246. },
  5247. "description": {
  5248. "type": "string"
  5249. }
  5250. }
  5251. }
  5252. }
  5253. }
  5254. }
  5255. }
  5256. }
  5257. }
  5258. }
  5259. }
  5260. }
  5261. }
  5262. }
  5263. }
  5264. },
  5265. "/ocs/v2.php/textprocessing/schedule": {
  5266. "post": {
  5267. "operationId": "text_processing_api-schedule",
  5268. "summary": "This endpoint allows scheduling a language model task",
  5269. "tags": [
  5270. "text_processing_api"
  5271. ],
  5272. "security": [
  5273. {},
  5274. {
  5275. "bearer_auth": []
  5276. },
  5277. {
  5278. "basic_auth": []
  5279. }
  5280. ],
  5281. "requestBody": {
  5282. "required": true,
  5283. "content": {
  5284. "application/json": {
  5285. "schema": {
  5286. "type": "object",
  5287. "required": [
  5288. "input",
  5289. "type",
  5290. "appId"
  5291. ],
  5292. "properties": {
  5293. "input": {
  5294. "type": "string",
  5295. "description": "Input text"
  5296. },
  5297. "type": {
  5298. "type": "string",
  5299. "description": "Type of the task"
  5300. },
  5301. "appId": {
  5302. "type": "string",
  5303. "description": "ID of the app that will execute the task"
  5304. },
  5305. "identifier": {
  5306. "type": "string",
  5307. "default": "",
  5308. "description": "An arbitrary identifier for the task"
  5309. }
  5310. }
  5311. }
  5312. }
  5313. }
  5314. },
  5315. "parameters": [
  5316. {
  5317. "name": "OCS-APIRequest",
  5318. "in": "header",
  5319. "description": "Required to be true for the API request to pass",
  5320. "required": true,
  5321. "schema": {
  5322. "type": "boolean",
  5323. "default": true
  5324. }
  5325. }
  5326. ],
  5327. "responses": {
  5328. "200": {
  5329. "description": "Task scheduled successfully",
  5330. "content": {
  5331. "application/json": {
  5332. "schema": {
  5333. "type": "object",
  5334. "required": [
  5335. "ocs"
  5336. ],
  5337. "properties": {
  5338. "ocs": {
  5339. "type": "object",
  5340. "required": [
  5341. "meta",
  5342. "data"
  5343. ],
  5344. "properties": {
  5345. "meta": {
  5346. "$ref": "#/components/schemas/OCSMeta"
  5347. },
  5348. "data": {
  5349. "type": "object",
  5350. "required": [
  5351. "task"
  5352. ],
  5353. "properties": {
  5354. "task": {
  5355. "$ref": "#/components/schemas/TextProcessingTask"
  5356. }
  5357. }
  5358. }
  5359. }
  5360. }
  5361. }
  5362. }
  5363. }
  5364. }
  5365. },
  5366. "500": {
  5367. "description": "",
  5368. "content": {
  5369. "application/json": {
  5370. "schema": {
  5371. "type": "object",
  5372. "required": [
  5373. "ocs"
  5374. ],
  5375. "properties": {
  5376. "ocs": {
  5377. "type": "object",
  5378. "required": [
  5379. "meta",
  5380. "data"
  5381. ],
  5382. "properties": {
  5383. "meta": {
  5384. "$ref": "#/components/schemas/OCSMeta"
  5385. },
  5386. "data": {
  5387. "type": "object",
  5388. "required": [
  5389. "message"
  5390. ],
  5391. "properties": {
  5392. "message": {
  5393. "type": "string"
  5394. }
  5395. }
  5396. }
  5397. }
  5398. }
  5399. }
  5400. }
  5401. }
  5402. }
  5403. },
  5404. "400": {
  5405. "description": "Scheduling task is not possible",
  5406. "content": {
  5407. "application/json": {
  5408. "schema": {
  5409. "type": "object",
  5410. "required": [
  5411. "ocs"
  5412. ],
  5413. "properties": {
  5414. "ocs": {
  5415. "type": "object",
  5416. "required": [
  5417. "meta",
  5418. "data"
  5419. ],
  5420. "properties": {
  5421. "meta": {
  5422. "$ref": "#/components/schemas/OCSMeta"
  5423. },
  5424. "data": {
  5425. "type": "object",
  5426. "required": [
  5427. "message"
  5428. ],
  5429. "properties": {
  5430. "message": {
  5431. "type": "string"
  5432. }
  5433. }
  5434. }
  5435. }
  5436. }
  5437. }
  5438. }
  5439. }
  5440. }
  5441. },
  5442. "412": {
  5443. "description": "Scheduling task is not possible",
  5444. "content": {
  5445. "application/json": {
  5446. "schema": {
  5447. "type": "object",
  5448. "required": [
  5449. "ocs"
  5450. ],
  5451. "properties": {
  5452. "ocs": {
  5453. "type": "object",
  5454. "required": [
  5455. "meta",
  5456. "data"
  5457. ],
  5458. "properties": {
  5459. "meta": {
  5460. "$ref": "#/components/schemas/OCSMeta"
  5461. },
  5462. "data": {
  5463. "type": "object",
  5464. "required": [
  5465. "message"
  5466. ],
  5467. "properties": {
  5468. "message": {
  5469. "type": "string"
  5470. }
  5471. }
  5472. }
  5473. }
  5474. }
  5475. }
  5476. }
  5477. }
  5478. }
  5479. }
  5480. }
  5481. }
  5482. },
  5483. "/ocs/v2.php/textprocessing/task/{id}": {
  5484. "get": {
  5485. "operationId": "text_processing_api-get-task",
  5486. "summary": "This endpoint allows checking the status and results of a task. Tasks are removed 1 week after receiving their last update.",
  5487. "tags": [
  5488. "text_processing_api"
  5489. ],
  5490. "security": [
  5491. {},
  5492. {
  5493. "bearer_auth": []
  5494. },
  5495. {
  5496. "basic_auth": []
  5497. }
  5498. ],
  5499. "parameters": [
  5500. {
  5501. "name": "id",
  5502. "in": "path",
  5503. "description": "The id of the task",
  5504. "required": true,
  5505. "schema": {
  5506. "type": "integer",
  5507. "format": "int64"
  5508. }
  5509. },
  5510. {
  5511. "name": "OCS-APIRequest",
  5512. "in": "header",
  5513. "description": "Required to be true for the API request to pass",
  5514. "required": true,
  5515. "schema": {
  5516. "type": "boolean",
  5517. "default": true
  5518. }
  5519. }
  5520. ],
  5521. "responses": {
  5522. "200": {
  5523. "description": "Task returned",
  5524. "content": {
  5525. "application/json": {
  5526. "schema": {
  5527. "type": "object",
  5528. "required": [
  5529. "ocs"
  5530. ],
  5531. "properties": {
  5532. "ocs": {
  5533. "type": "object",
  5534. "required": [
  5535. "meta",
  5536. "data"
  5537. ],
  5538. "properties": {
  5539. "meta": {
  5540. "$ref": "#/components/schemas/OCSMeta"
  5541. },
  5542. "data": {
  5543. "type": "object",
  5544. "required": [
  5545. "task"
  5546. ],
  5547. "properties": {
  5548. "task": {
  5549. "$ref": "#/components/schemas/TextProcessingTask"
  5550. }
  5551. }
  5552. }
  5553. }
  5554. }
  5555. }
  5556. }
  5557. }
  5558. }
  5559. },
  5560. "404": {
  5561. "description": "Task not found",
  5562. "content": {
  5563. "application/json": {
  5564. "schema": {
  5565. "type": "object",
  5566. "required": [
  5567. "ocs"
  5568. ],
  5569. "properties": {
  5570. "ocs": {
  5571. "type": "object",
  5572. "required": [
  5573. "meta",
  5574. "data"
  5575. ],
  5576. "properties": {
  5577. "meta": {
  5578. "$ref": "#/components/schemas/OCSMeta"
  5579. },
  5580. "data": {
  5581. "type": "object",
  5582. "required": [
  5583. "message"
  5584. ],
  5585. "properties": {
  5586. "message": {
  5587. "type": "string"
  5588. }
  5589. }
  5590. }
  5591. }
  5592. }
  5593. }
  5594. }
  5595. }
  5596. }
  5597. },
  5598. "500": {
  5599. "description": "",
  5600. "content": {
  5601. "application/json": {
  5602. "schema": {
  5603. "type": "object",
  5604. "required": [
  5605. "ocs"
  5606. ],
  5607. "properties": {
  5608. "ocs": {
  5609. "type": "object",
  5610. "required": [
  5611. "meta",
  5612. "data"
  5613. ],
  5614. "properties": {
  5615. "meta": {
  5616. "$ref": "#/components/schemas/OCSMeta"
  5617. },
  5618. "data": {
  5619. "type": "object",
  5620. "required": [
  5621. "message"
  5622. ],
  5623. "properties": {
  5624. "message": {
  5625. "type": "string"
  5626. }
  5627. }
  5628. }
  5629. }
  5630. }
  5631. }
  5632. }
  5633. }
  5634. }
  5635. }
  5636. }
  5637. },
  5638. "delete": {
  5639. "operationId": "text_processing_api-delete-task",
  5640. "summary": "This endpoint allows to delete a scheduled task for a user",
  5641. "tags": [
  5642. "text_processing_api"
  5643. ],
  5644. "security": [
  5645. {
  5646. "bearer_auth": []
  5647. },
  5648. {
  5649. "basic_auth": []
  5650. }
  5651. ],
  5652. "parameters": [
  5653. {
  5654. "name": "id",
  5655. "in": "path",
  5656. "description": "The id of the task",
  5657. "required": true,
  5658. "schema": {
  5659. "type": "integer",
  5660. "format": "int64"
  5661. }
  5662. },
  5663. {
  5664. "name": "OCS-APIRequest",
  5665. "in": "header",
  5666. "description": "Required to be true for the API request to pass",
  5667. "required": true,
  5668. "schema": {
  5669. "type": "boolean",
  5670. "default": true
  5671. }
  5672. }
  5673. ],
  5674. "responses": {
  5675. "200": {
  5676. "description": "Task returned",
  5677. "content": {
  5678. "application/json": {
  5679. "schema": {
  5680. "type": "object",
  5681. "required": [
  5682. "ocs"
  5683. ],
  5684. "properties": {
  5685. "ocs": {
  5686. "type": "object",
  5687. "required": [
  5688. "meta",
  5689. "data"
  5690. ],
  5691. "properties": {
  5692. "meta": {
  5693. "$ref": "#/components/schemas/OCSMeta"
  5694. },
  5695. "data": {
  5696. "type": "object",
  5697. "required": [
  5698. "task"
  5699. ],
  5700. "properties": {
  5701. "task": {
  5702. "$ref": "#/components/schemas/TextProcessingTask"
  5703. }
  5704. }
  5705. }
  5706. }
  5707. }
  5708. }
  5709. }
  5710. }
  5711. }
  5712. },
  5713. "404": {
  5714. "description": "Task not found",
  5715. "content": {
  5716. "application/json": {
  5717. "schema": {
  5718. "type": "object",
  5719. "required": [
  5720. "ocs"
  5721. ],
  5722. "properties": {
  5723. "ocs": {
  5724. "type": "object",
  5725. "required": [
  5726. "meta",
  5727. "data"
  5728. ],
  5729. "properties": {
  5730. "meta": {
  5731. "$ref": "#/components/schemas/OCSMeta"
  5732. },
  5733. "data": {
  5734. "type": "object",
  5735. "required": [
  5736. "message"
  5737. ],
  5738. "properties": {
  5739. "message": {
  5740. "type": "string"
  5741. }
  5742. }
  5743. }
  5744. }
  5745. }
  5746. }
  5747. }
  5748. }
  5749. }
  5750. },
  5751. "500": {
  5752. "description": "",
  5753. "content": {
  5754. "application/json": {
  5755. "schema": {
  5756. "type": "object",
  5757. "required": [
  5758. "ocs"
  5759. ],
  5760. "properties": {
  5761. "ocs": {
  5762. "type": "object",
  5763. "required": [
  5764. "meta",
  5765. "data"
  5766. ],
  5767. "properties": {
  5768. "meta": {
  5769. "$ref": "#/components/schemas/OCSMeta"
  5770. },
  5771. "data": {
  5772. "type": "object",
  5773. "required": [
  5774. "message"
  5775. ],
  5776. "properties": {
  5777. "message": {
  5778. "type": "string"
  5779. }
  5780. }
  5781. }
  5782. }
  5783. }
  5784. }
  5785. }
  5786. }
  5787. }
  5788. }
  5789. }
  5790. }
  5791. },
  5792. "/ocs/v2.php/textprocessing/tasks/app/{appId}": {
  5793. "get": {
  5794. "operationId": "text_processing_api-list-tasks-by-app",
  5795. "summary": "This endpoint returns a list of tasks of a user that are related with a specific appId and optionally with an identifier",
  5796. "tags": [
  5797. "text_processing_api"
  5798. ],
  5799. "security": [
  5800. {
  5801. "bearer_auth": []
  5802. },
  5803. {
  5804. "basic_auth": []
  5805. }
  5806. ],
  5807. "parameters": [
  5808. {
  5809. "name": "appId",
  5810. "in": "path",
  5811. "description": "ID of the app",
  5812. "required": true,
  5813. "schema": {
  5814. "type": "string"
  5815. }
  5816. },
  5817. {
  5818. "name": "identifier",
  5819. "in": "query",
  5820. "description": "An arbitrary identifier for the task",
  5821. "schema": {
  5822. "type": "string",
  5823. "nullable": true
  5824. }
  5825. },
  5826. {
  5827. "name": "OCS-APIRequest",
  5828. "in": "header",
  5829. "description": "Required to be true for the API request to pass",
  5830. "required": true,
  5831. "schema": {
  5832. "type": "boolean",
  5833. "default": true
  5834. }
  5835. }
  5836. ],
  5837. "responses": {
  5838. "200": {
  5839. "description": "Task list returned",
  5840. "content": {
  5841. "application/json": {
  5842. "schema": {
  5843. "type": "object",
  5844. "required": [
  5845. "ocs"
  5846. ],
  5847. "properties": {
  5848. "ocs": {
  5849. "type": "object",
  5850. "required": [
  5851. "meta",
  5852. "data"
  5853. ],
  5854. "properties": {
  5855. "meta": {
  5856. "$ref": "#/components/schemas/OCSMeta"
  5857. },
  5858. "data": {
  5859. "type": "object",
  5860. "required": [
  5861. "tasks"
  5862. ],
  5863. "properties": {
  5864. "tasks": {
  5865. "type": "array",
  5866. "items": {
  5867. "$ref": "#/components/schemas/TextProcessingTask"
  5868. }
  5869. }
  5870. }
  5871. }
  5872. }
  5873. }
  5874. }
  5875. }
  5876. }
  5877. }
  5878. },
  5879. "500": {
  5880. "description": "",
  5881. "content": {
  5882. "application/json": {
  5883. "schema": {
  5884. "type": "object",
  5885. "required": [
  5886. "ocs"
  5887. ],
  5888. "properties": {
  5889. "ocs": {
  5890. "type": "object",
  5891. "required": [
  5892. "meta",
  5893. "data"
  5894. ],
  5895. "properties": {
  5896. "meta": {
  5897. "$ref": "#/components/schemas/OCSMeta"
  5898. },
  5899. "data": {
  5900. "type": "object",
  5901. "required": [
  5902. "message"
  5903. ],
  5904. "properties": {
  5905. "message": {
  5906. "type": "string"
  5907. }
  5908. }
  5909. }
  5910. }
  5911. }
  5912. }
  5913. }
  5914. }
  5915. }
  5916. }
  5917. }
  5918. }
  5919. },
  5920. "/ocs/v2.php/text2image/is_available": {
  5921. "get": {
  5922. "operationId": "text_to_image_api-is-available",
  5923. "summary": "Check whether this feature is available",
  5924. "tags": [
  5925. "text_to_image_api"
  5926. ],
  5927. "security": [
  5928. {},
  5929. {
  5930. "bearer_auth": []
  5931. },
  5932. {
  5933. "basic_auth": []
  5934. }
  5935. ],
  5936. "parameters": [
  5937. {
  5938. "name": "OCS-APIRequest",
  5939. "in": "header",
  5940. "description": "Required to be true for the API request to pass",
  5941. "required": true,
  5942. "schema": {
  5943. "type": "boolean",
  5944. "default": true
  5945. }
  5946. }
  5947. ],
  5948. "responses": {
  5949. "200": {
  5950. "description": "Returns availability status",
  5951. "content": {
  5952. "application/json": {
  5953. "schema": {
  5954. "type": "object",
  5955. "required": [
  5956. "ocs"
  5957. ],
  5958. "properties": {
  5959. "ocs": {
  5960. "type": "object",
  5961. "required": [
  5962. "meta",
  5963. "data"
  5964. ],
  5965. "properties": {
  5966. "meta": {
  5967. "$ref": "#/components/schemas/OCSMeta"
  5968. },
  5969. "data": {
  5970. "type": "object",
  5971. "required": [
  5972. "isAvailable"
  5973. ],
  5974. "properties": {
  5975. "isAvailable": {
  5976. "type": "boolean"
  5977. }
  5978. }
  5979. }
  5980. }
  5981. }
  5982. }
  5983. }
  5984. }
  5985. }
  5986. }
  5987. }
  5988. }
  5989. },
  5990. "/ocs/v2.php/text2image/schedule": {
  5991. "post": {
  5992. "operationId": "text_to_image_api-schedule",
  5993. "summary": "This endpoint allows scheduling a text to image task",
  5994. "tags": [
  5995. "text_to_image_api"
  5996. ],
  5997. "security": [
  5998. {},
  5999. {
  6000. "bearer_auth": []
  6001. },
  6002. {
  6003. "basic_auth": []
  6004. }
  6005. ],
  6006. "requestBody": {
  6007. "required": true,
  6008. "content": {
  6009. "application/json": {
  6010. "schema": {
  6011. "type": "object",
  6012. "required": [
  6013. "input",
  6014. "appId"
  6015. ],
  6016. "properties": {
  6017. "input": {
  6018. "type": "string",
  6019. "description": "Input text"
  6020. },
  6021. "appId": {
  6022. "type": "string",
  6023. "description": "ID of the app that will execute the task"
  6024. },
  6025. "identifier": {
  6026. "type": "string",
  6027. "default": "",
  6028. "description": "An arbitrary identifier for the task"
  6029. },
  6030. "numberOfImages": {
  6031. "type": "integer",
  6032. "format": "int64",
  6033. "default": 8,
  6034. "description": "The number of images to generate"
  6035. }
  6036. }
  6037. }
  6038. }
  6039. }
  6040. },
  6041. "parameters": [
  6042. {
  6043. "name": "OCS-APIRequest",
  6044. "in": "header",
  6045. "description": "Required to be true for the API request to pass",
  6046. "required": true,
  6047. "schema": {
  6048. "type": "boolean",
  6049. "default": true
  6050. }
  6051. }
  6052. ],
  6053. "responses": {
  6054. "200": {
  6055. "description": "Task scheduled successfully",
  6056. "content": {
  6057. "application/json": {
  6058. "schema": {
  6059. "type": "object",
  6060. "required": [
  6061. "ocs"
  6062. ],
  6063. "properties": {
  6064. "ocs": {
  6065. "type": "object",
  6066. "required": [
  6067. "meta",
  6068. "data"
  6069. ],
  6070. "properties": {
  6071. "meta": {
  6072. "$ref": "#/components/schemas/OCSMeta"
  6073. },
  6074. "data": {
  6075. "type": "object",
  6076. "required": [
  6077. "task"
  6078. ],
  6079. "properties": {
  6080. "task": {
  6081. "$ref": "#/components/schemas/TextToImageTask"
  6082. }
  6083. }
  6084. }
  6085. }
  6086. }
  6087. }
  6088. }
  6089. }
  6090. }
  6091. },
  6092. "412": {
  6093. "description": "Scheduling task is not possible",
  6094. "content": {
  6095. "application/json": {
  6096. "schema": {
  6097. "type": "object",
  6098. "required": [
  6099. "ocs"
  6100. ],
  6101. "properties": {
  6102. "ocs": {
  6103. "type": "object",
  6104. "required": [
  6105. "meta",
  6106. "data"
  6107. ],
  6108. "properties": {
  6109. "meta": {
  6110. "$ref": "#/components/schemas/OCSMeta"
  6111. },
  6112. "data": {
  6113. "type": "object",
  6114. "required": [
  6115. "message"
  6116. ],
  6117. "properties": {
  6118. "message": {
  6119. "type": "string"
  6120. }
  6121. }
  6122. }
  6123. }
  6124. }
  6125. }
  6126. }
  6127. }
  6128. }
  6129. },
  6130. "500": {
  6131. "description": "",
  6132. "content": {
  6133. "application/json": {
  6134. "schema": {
  6135. "type": "object",
  6136. "required": [
  6137. "ocs"
  6138. ],
  6139. "properties": {
  6140. "ocs": {
  6141. "type": "object",
  6142. "required": [
  6143. "meta",
  6144. "data"
  6145. ],
  6146. "properties": {
  6147. "meta": {
  6148. "$ref": "#/components/schemas/OCSMeta"
  6149. },
  6150. "data": {
  6151. "type": "object",
  6152. "required": [
  6153. "message"
  6154. ],
  6155. "properties": {
  6156. "message": {
  6157. "type": "string"
  6158. }
  6159. }
  6160. }
  6161. }
  6162. }
  6163. }
  6164. }
  6165. }
  6166. }
  6167. }
  6168. }
  6169. }
  6170. },
  6171. "/ocs/v2.php/text2image/task/{id}": {
  6172. "get": {
  6173. "operationId": "text_to_image_api-get-task",
  6174. "summary": "This endpoint allows checking the status and results of a task. Tasks are removed 1 week after receiving their last update.",
  6175. "tags": [
  6176. "text_to_image_api"
  6177. ],
  6178. "security": [
  6179. {},
  6180. {
  6181. "bearer_auth": []
  6182. },
  6183. {
  6184. "basic_auth": []
  6185. }
  6186. ],
  6187. "parameters": [
  6188. {
  6189. "name": "id",
  6190. "in": "path",
  6191. "description": "The id of the task",
  6192. "required": true,
  6193. "schema": {
  6194. "type": "integer",
  6195. "format": "int64"
  6196. }
  6197. },
  6198. {
  6199. "name": "OCS-APIRequest",
  6200. "in": "header",
  6201. "description": "Required to be true for the API request to pass",
  6202. "required": true,
  6203. "schema": {
  6204. "type": "boolean",
  6205. "default": true
  6206. }
  6207. }
  6208. ],
  6209. "responses": {
  6210. "200": {
  6211. "description": "Task returned",
  6212. "content": {
  6213. "application/json": {
  6214. "schema": {
  6215. "type": "object",
  6216. "required": [
  6217. "ocs"
  6218. ],
  6219. "properties": {
  6220. "ocs": {
  6221. "type": "object",
  6222. "required": [
  6223. "meta",
  6224. "data"
  6225. ],
  6226. "properties": {
  6227. "meta": {
  6228. "$ref": "#/components/schemas/OCSMeta"
  6229. },
  6230. "data": {
  6231. "type": "object",
  6232. "required": [
  6233. "task"
  6234. ],
  6235. "properties": {
  6236. "task": {
  6237. "$ref": "#/components/schemas/TextToImageTask"
  6238. }
  6239. }
  6240. }
  6241. }
  6242. }
  6243. }
  6244. }
  6245. }
  6246. }
  6247. },
  6248. "404": {
  6249. "description": "Task not found",
  6250. "content": {
  6251. "application/json": {
  6252. "schema": {
  6253. "type": "object",
  6254. "required": [
  6255. "ocs"
  6256. ],
  6257. "properties": {
  6258. "ocs": {
  6259. "type": "object",
  6260. "required": [
  6261. "meta",
  6262. "data"
  6263. ],
  6264. "properties": {
  6265. "meta": {
  6266. "$ref": "#/components/schemas/OCSMeta"
  6267. },
  6268. "data": {
  6269. "type": "object",
  6270. "required": [
  6271. "message"
  6272. ],
  6273. "properties": {
  6274. "message": {
  6275. "type": "string"
  6276. }
  6277. }
  6278. }
  6279. }
  6280. }
  6281. }
  6282. }
  6283. }
  6284. }
  6285. },
  6286. "500": {
  6287. "description": "",
  6288. "content": {
  6289. "application/json": {
  6290. "schema": {
  6291. "type": "object",
  6292. "required": [
  6293. "ocs"
  6294. ],
  6295. "properties": {
  6296. "ocs": {
  6297. "type": "object",
  6298. "required": [
  6299. "meta",
  6300. "data"
  6301. ],
  6302. "properties": {
  6303. "meta": {
  6304. "$ref": "#/components/schemas/OCSMeta"
  6305. },
  6306. "data": {
  6307. "type": "object",
  6308. "required": [
  6309. "message"
  6310. ],
  6311. "properties": {
  6312. "message": {
  6313. "type": "string"
  6314. }
  6315. }
  6316. }
  6317. }
  6318. }
  6319. }
  6320. }
  6321. }
  6322. }
  6323. }
  6324. }
  6325. },
  6326. "delete": {
  6327. "operationId": "text_to_image_api-delete-task",
  6328. "summary": "This endpoint allows to delete a scheduled task for a user",
  6329. "tags": [
  6330. "text_to_image_api"
  6331. ],
  6332. "security": [
  6333. {
  6334. "bearer_auth": []
  6335. },
  6336. {
  6337. "basic_auth": []
  6338. }
  6339. ],
  6340. "parameters": [
  6341. {
  6342. "name": "id",
  6343. "in": "path",
  6344. "description": "The id of the task",
  6345. "required": true,
  6346. "schema": {
  6347. "type": "integer",
  6348. "format": "int64"
  6349. }
  6350. },
  6351. {
  6352. "name": "OCS-APIRequest",
  6353. "in": "header",
  6354. "description": "Required to be true for the API request to pass",
  6355. "required": true,
  6356. "schema": {
  6357. "type": "boolean",
  6358. "default": true
  6359. }
  6360. }
  6361. ],
  6362. "responses": {
  6363. "200": {
  6364. "description": "Task returned",
  6365. "content": {
  6366. "application/json": {
  6367. "schema": {
  6368. "type": "object",
  6369. "required": [
  6370. "ocs"
  6371. ],
  6372. "properties": {
  6373. "ocs": {
  6374. "type": "object",
  6375. "required": [
  6376. "meta",
  6377. "data"
  6378. ],
  6379. "properties": {
  6380. "meta": {
  6381. "$ref": "#/components/schemas/OCSMeta"
  6382. },
  6383. "data": {
  6384. "type": "object",
  6385. "required": [
  6386. "task"
  6387. ],
  6388. "properties": {
  6389. "task": {
  6390. "$ref": "#/components/schemas/TextToImageTask"
  6391. }
  6392. }
  6393. }
  6394. }
  6395. }
  6396. }
  6397. }
  6398. }
  6399. }
  6400. },
  6401. "404": {
  6402. "description": "Task not found",
  6403. "content": {
  6404. "application/json": {
  6405. "schema": {
  6406. "type": "object",
  6407. "required": [
  6408. "ocs"
  6409. ],
  6410. "properties": {
  6411. "ocs": {
  6412. "type": "object",
  6413. "required": [
  6414. "meta",
  6415. "data"
  6416. ],
  6417. "properties": {
  6418. "meta": {
  6419. "$ref": "#/components/schemas/OCSMeta"
  6420. },
  6421. "data": {
  6422. "type": "object",
  6423. "required": [
  6424. "message"
  6425. ],
  6426. "properties": {
  6427. "message": {
  6428. "type": "string"
  6429. }
  6430. }
  6431. }
  6432. }
  6433. }
  6434. }
  6435. }
  6436. }
  6437. }
  6438. },
  6439. "500": {
  6440. "description": "",
  6441. "content": {
  6442. "application/json": {
  6443. "schema": {
  6444. "type": "object",
  6445. "required": [
  6446. "ocs"
  6447. ],
  6448. "properties": {
  6449. "ocs": {
  6450. "type": "object",
  6451. "required": [
  6452. "meta",
  6453. "data"
  6454. ],
  6455. "properties": {
  6456. "meta": {
  6457. "$ref": "#/components/schemas/OCSMeta"
  6458. },
  6459. "data": {
  6460. "type": "object",
  6461. "required": [
  6462. "message"
  6463. ],
  6464. "properties": {
  6465. "message": {
  6466. "type": "string"
  6467. }
  6468. }
  6469. }
  6470. }
  6471. }
  6472. }
  6473. }
  6474. }
  6475. }
  6476. }
  6477. }
  6478. }
  6479. },
  6480. "/ocs/v2.php/text2image/task/{id}/image/{index}": {
  6481. "get": {
  6482. "operationId": "text_to_image_api-get-image",
  6483. "summary": "This endpoint allows downloading the resulting image of a task",
  6484. "tags": [
  6485. "text_to_image_api"
  6486. ],
  6487. "security": [
  6488. {},
  6489. {
  6490. "bearer_auth": []
  6491. },
  6492. {
  6493. "basic_auth": []
  6494. }
  6495. ],
  6496. "parameters": [
  6497. {
  6498. "name": "id",
  6499. "in": "path",
  6500. "description": "The id of the task",
  6501. "required": true,
  6502. "schema": {
  6503. "type": "integer",
  6504. "format": "int64"
  6505. }
  6506. },
  6507. {
  6508. "name": "index",
  6509. "in": "path",
  6510. "description": "The index of the image to retrieve",
  6511. "required": true,
  6512. "schema": {
  6513. "type": "integer",
  6514. "format": "int64"
  6515. }
  6516. },
  6517. {
  6518. "name": "OCS-APIRequest",
  6519. "in": "header",
  6520. "description": "Required to be true for the API request to pass",
  6521. "required": true,
  6522. "schema": {
  6523. "type": "boolean",
  6524. "default": true
  6525. }
  6526. }
  6527. ],
  6528. "responses": {
  6529. "200": {
  6530. "description": "Image returned",
  6531. "content": {
  6532. "*/*": {
  6533. "schema": {
  6534. "type": "string",
  6535. "format": "binary"
  6536. }
  6537. }
  6538. }
  6539. },
  6540. "404": {
  6541. "description": "Task or image not found",
  6542. "content": {
  6543. "application/json": {
  6544. "schema": {
  6545. "type": "object",
  6546. "required": [
  6547. "ocs"
  6548. ],
  6549. "properties": {
  6550. "ocs": {
  6551. "type": "object",
  6552. "required": [
  6553. "meta",
  6554. "data"
  6555. ],
  6556. "properties": {
  6557. "meta": {
  6558. "$ref": "#/components/schemas/OCSMeta"
  6559. },
  6560. "data": {
  6561. "type": "object",
  6562. "required": [
  6563. "message"
  6564. ],
  6565. "properties": {
  6566. "message": {
  6567. "type": "string"
  6568. }
  6569. }
  6570. }
  6571. }
  6572. }
  6573. }
  6574. }
  6575. }
  6576. }
  6577. },
  6578. "500": {
  6579. "description": "",
  6580. "content": {
  6581. "application/json": {
  6582. "schema": {
  6583. "type": "object",
  6584. "required": [
  6585. "ocs"
  6586. ],
  6587. "properties": {
  6588. "ocs": {
  6589. "type": "object",
  6590. "required": [
  6591. "meta",
  6592. "data"
  6593. ],
  6594. "properties": {
  6595. "meta": {
  6596. "$ref": "#/components/schemas/OCSMeta"
  6597. },
  6598. "data": {
  6599. "type": "object",
  6600. "required": [
  6601. "message"
  6602. ],
  6603. "properties": {
  6604. "message": {
  6605. "type": "string"
  6606. }
  6607. }
  6608. }
  6609. }
  6610. }
  6611. }
  6612. }
  6613. }
  6614. }
  6615. }
  6616. }
  6617. }
  6618. },
  6619. "/ocs/v2.php/text2image/tasks/app/{appId}": {
  6620. "get": {
  6621. "operationId": "text_to_image_api-list-tasks-by-app",
  6622. "summary": "This endpoint returns a list of tasks of a user that are related with a specific appId and optionally with an identifier",
  6623. "tags": [
  6624. "text_to_image_api"
  6625. ],
  6626. "security": [
  6627. {
  6628. "bearer_auth": []
  6629. },
  6630. {
  6631. "basic_auth": []
  6632. }
  6633. ],
  6634. "parameters": [
  6635. {
  6636. "name": "appId",
  6637. "in": "path",
  6638. "description": "ID of the app",
  6639. "required": true,
  6640. "schema": {
  6641. "type": "string"
  6642. }
  6643. },
  6644. {
  6645. "name": "identifier",
  6646. "in": "query",
  6647. "description": "An arbitrary identifier for the task",
  6648. "schema": {
  6649. "type": "string",
  6650. "nullable": true
  6651. }
  6652. },
  6653. {
  6654. "name": "OCS-APIRequest",
  6655. "in": "header",
  6656. "description": "Required to be true for the API request to pass",
  6657. "required": true,
  6658. "schema": {
  6659. "type": "boolean",
  6660. "default": true
  6661. }
  6662. }
  6663. ],
  6664. "responses": {
  6665. "200": {
  6666. "description": "Task list returned",
  6667. "content": {
  6668. "application/json": {
  6669. "schema": {
  6670. "type": "object",
  6671. "required": [
  6672. "ocs"
  6673. ],
  6674. "properties": {
  6675. "ocs": {
  6676. "type": "object",
  6677. "required": [
  6678. "meta",
  6679. "data"
  6680. ],
  6681. "properties": {
  6682. "meta": {
  6683. "$ref": "#/components/schemas/OCSMeta"
  6684. },
  6685. "data": {
  6686. "type": "object",
  6687. "required": [
  6688. "tasks"
  6689. ],
  6690. "properties": {
  6691. "tasks": {
  6692. "type": "array",
  6693. "items": {
  6694. "$ref": "#/components/schemas/TextToImageTask"
  6695. }
  6696. }
  6697. }
  6698. }
  6699. }
  6700. }
  6701. }
  6702. }
  6703. }
  6704. }
  6705. },
  6706. "500": {
  6707. "description": "",
  6708. "content": {
  6709. "application/json": {
  6710. "schema": {
  6711. "type": "object",
  6712. "required": [
  6713. "ocs"
  6714. ],
  6715. "properties": {
  6716. "ocs": {
  6717. "type": "object",
  6718. "required": [
  6719. "meta",
  6720. "data"
  6721. ],
  6722. "properties": {
  6723. "meta": {
  6724. "$ref": "#/components/schemas/OCSMeta"
  6725. },
  6726. "data": {
  6727. "type": "object",
  6728. "required": [
  6729. "message"
  6730. ],
  6731. "properties": {
  6732. "message": {
  6733. "type": "string"
  6734. }
  6735. }
  6736. }
  6737. }
  6738. }
  6739. }
  6740. }
  6741. }
  6742. }
  6743. }
  6744. }
  6745. }
  6746. },
  6747. "/ocs/v2.php/translation/languages": {
  6748. "get": {
  6749. "operationId": "translation_api-languages",
  6750. "summary": "Get the list of supported languages",
  6751. "tags": [
  6752. "translation_api"
  6753. ],
  6754. "security": [
  6755. {},
  6756. {
  6757. "bearer_auth": []
  6758. },
  6759. {
  6760. "basic_auth": []
  6761. }
  6762. ],
  6763. "parameters": [
  6764. {
  6765. "name": "OCS-APIRequest",
  6766. "in": "header",
  6767. "description": "Required to be true for the API request to pass",
  6768. "required": true,
  6769. "schema": {
  6770. "type": "boolean",
  6771. "default": true
  6772. }
  6773. }
  6774. ],
  6775. "responses": {
  6776. "200": {
  6777. "description": "Supported languages returned",
  6778. "content": {
  6779. "application/json": {
  6780. "schema": {
  6781. "type": "object",
  6782. "required": [
  6783. "ocs"
  6784. ],
  6785. "properties": {
  6786. "ocs": {
  6787. "type": "object",
  6788. "required": [
  6789. "meta",
  6790. "data"
  6791. ],
  6792. "properties": {
  6793. "meta": {
  6794. "$ref": "#/components/schemas/OCSMeta"
  6795. },
  6796. "data": {
  6797. "type": "object",
  6798. "required": [
  6799. "languages",
  6800. "languageDetection"
  6801. ],
  6802. "properties": {
  6803. "languages": {
  6804. "type": "array",
  6805. "items": {
  6806. "type": "object",
  6807. "required": [
  6808. "from",
  6809. "fromLabel",
  6810. "to",
  6811. "toLabel"
  6812. ],
  6813. "properties": {
  6814. "from": {
  6815. "type": "string"
  6816. },
  6817. "fromLabel": {
  6818. "type": "string"
  6819. },
  6820. "to": {
  6821. "type": "string"
  6822. },
  6823. "toLabel": {
  6824. "type": "string"
  6825. }
  6826. }
  6827. }
  6828. },
  6829. "languageDetection": {
  6830. "type": "boolean"
  6831. }
  6832. }
  6833. }
  6834. }
  6835. }
  6836. }
  6837. }
  6838. }
  6839. }
  6840. }
  6841. }
  6842. }
  6843. },
  6844. "/ocs/v2.php/translation/translate": {
  6845. "post": {
  6846. "operationId": "translation_api-translate",
  6847. "summary": "Translate a text",
  6848. "tags": [
  6849. "translation_api"
  6850. ],
  6851. "security": [
  6852. {},
  6853. {
  6854. "bearer_auth": []
  6855. },
  6856. {
  6857. "basic_auth": []
  6858. }
  6859. ],
  6860. "requestBody": {
  6861. "required": true,
  6862. "content": {
  6863. "application/json": {
  6864. "schema": {
  6865. "type": "object",
  6866. "required": [
  6867. "text",
  6868. "toLanguage"
  6869. ],
  6870. "properties": {
  6871. "text": {
  6872. "type": "string",
  6873. "description": "Text to be translated"
  6874. },
  6875. "fromLanguage": {
  6876. "type": "string",
  6877. "nullable": true,
  6878. "description": "Language to translate from"
  6879. },
  6880. "toLanguage": {
  6881. "type": "string",
  6882. "description": "Language to translate to"
  6883. }
  6884. }
  6885. }
  6886. }
  6887. }
  6888. },
  6889. "parameters": [
  6890. {
  6891. "name": "OCS-APIRequest",
  6892. "in": "header",
  6893. "description": "Required to be true for the API request to pass",
  6894. "required": true,
  6895. "schema": {
  6896. "type": "boolean",
  6897. "default": true
  6898. }
  6899. }
  6900. ],
  6901. "responses": {
  6902. "200": {
  6903. "description": "Translated text returned",
  6904. "content": {
  6905. "application/json": {
  6906. "schema": {
  6907. "type": "object",
  6908. "required": [
  6909. "ocs"
  6910. ],
  6911. "properties": {
  6912. "ocs": {
  6913. "type": "object",
  6914. "required": [
  6915. "meta",
  6916. "data"
  6917. ],
  6918. "properties": {
  6919. "meta": {
  6920. "$ref": "#/components/schemas/OCSMeta"
  6921. },
  6922. "data": {
  6923. "type": "object",
  6924. "required": [
  6925. "text",
  6926. "from"
  6927. ],
  6928. "properties": {
  6929. "text": {
  6930. "type": "string"
  6931. },
  6932. "from": {
  6933. "type": "string",
  6934. "nullable": true
  6935. }
  6936. }
  6937. }
  6938. }
  6939. }
  6940. }
  6941. }
  6942. }
  6943. }
  6944. },
  6945. "400": {
  6946. "description": "Language not detected or unable to translate",
  6947. "content": {
  6948. "application/json": {
  6949. "schema": {
  6950. "type": "object",
  6951. "required": [
  6952. "ocs"
  6953. ],
  6954. "properties": {
  6955. "ocs": {
  6956. "type": "object",
  6957. "required": [
  6958. "meta",
  6959. "data"
  6960. ],
  6961. "properties": {
  6962. "meta": {
  6963. "$ref": "#/components/schemas/OCSMeta"
  6964. },
  6965. "data": {
  6966. "type": "object",
  6967. "required": [
  6968. "message"
  6969. ],
  6970. "properties": {
  6971. "message": {
  6972. "type": "string"
  6973. },
  6974. "from": {
  6975. "type": "string",
  6976. "nullable": true
  6977. }
  6978. }
  6979. }
  6980. }
  6981. }
  6982. }
  6983. }
  6984. }
  6985. }
  6986. },
  6987. "412": {
  6988. "description": "Translating is not possible",
  6989. "content": {
  6990. "application/json": {
  6991. "schema": {
  6992. "type": "object",
  6993. "required": [
  6994. "ocs"
  6995. ],
  6996. "properties": {
  6997. "ocs": {
  6998. "type": "object",
  6999. "required": [
  7000. "meta",
  7001. "data"
  7002. ],
  7003. "properties": {
  7004. "meta": {
  7005. "$ref": "#/components/schemas/OCSMeta"
  7006. },
  7007. "data": {
  7008. "type": "object",
  7009. "required": [
  7010. "message"
  7011. ],
  7012. "properties": {
  7013. "message": {
  7014. "type": "string"
  7015. },
  7016. "from": {
  7017. "type": "string",
  7018. "nullable": true
  7019. }
  7020. }
  7021. }
  7022. }
  7023. }
  7024. }
  7025. }
  7026. }
  7027. }
  7028. },
  7029. "500": {
  7030. "description": "",
  7031. "content": {
  7032. "application/json": {
  7033. "schema": {
  7034. "type": "object",
  7035. "required": [
  7036. "ocs"
  7037. ],
  7038. "properties": {
  7039. "ocs": {
  7040. "type": "object",
  7041. "required": [
  7042. "meta",
  7043. "data"
  7044. ],
  7045. "properties": {
  7046. "meta": {
  7047. "$ref": "#/components/schemas/OCSMeta"
  7048. },
  7049. "data": {
  7050. "type": "object",
  7051. "required": [
  7052. "message"
  7053. ],
  7054. "properties": {
  7055. "message": {
  7056. "type": "string"
  7057. },
  7058. "from": {
  7059. "type": "string",
  7060. "nullable": true
  7061. }
  7062. }
  7063. }
  7064. }
  7065. }
  7066. }
  7067. }
  7068. }
  7069. }
  7070. }
  7071. }
  7072. }
  7073. },
  7074. "/ocs/v2.php/search/providers": {
  7075. "get": {
  7076. "operationId": "unified_search-get-providers",
  7077. "summary": "Get the providers for unified search",
  7078. "tags": [
  7079. "unified_search"
  7080. ],
  7081. "security": [
  7082. {
  7083. "bearer_auth": []
  7084. },
  7085. {
  7086. "basic_auth": []
  7087. }
  7088. ],
  7089. "parameters": [
  7090. {
  7091. "name": "from",
  7092. "in": "query",
  7093. "description": "the url the user is currently at",
  7094. "schema": {
  7095. "type": "string",
  7096. "default": ""
  7097. }
  7098. },
  7099. {
  7100. "name": "OCS-APIRequest",
  7101. "in": "header",
  7102. "description": "Required to be true for the API request to pass",
  7103. "required": true,
  7104. "schema": {
  7105. "type": "boolean",
  7106. "default": true
  7107. }
  7108. }
  7109. ],
  7110. "responses": {
  7111. "200": {
  7112. "description": "Providers returned",
  7113. "content": {
  7114. "application/json": {
  7115. "schema": {
  7116. "type": "object",
  7117. "required": [
  7118. "ocs"
  7119. ],
  7120. "properties": {
  7121. "ocs": {
  7122. "type": "object",
  7123. "required": [
  7124. "meta",
  7125. "data"
  7126. ],
  7127. "properties": {
  7128. "meta": {
  7129. "$ref": "#/components/schemas/OCSMeta"
  7130. },
  7131. "data": {
  7132. "type": "array",
  7133. "items": {
  7134. "$ref": "#/components/schemas/UnifiedSearchProvider"
  7135. }
  7136. }
  7137. }
  7138. }
  7139. }
  7140. }
  7141. }
  7142. }
  7143. }
  7144. }
  7145. }
  7146. },
  7147. "/ocs/v2.php/search/providers/{providerId}/search": {
  7148. "get": {
  7149. "operationId": "unified_search-search",
  7150. "summary": "Launch a search for a specific search provider.",
  7151. "description": "Additional filters are available for each provider. Send a request to /providers endpoint to list providers with their available filters.",
  7152. "tags": [
  7153. "unified_search"
  7154. ],
  7155. "security": [
  7156. {
  7157. "bearer_auth": []
  7158. },
  7159. {
  7160. "basic_auth": []
  7161. }
  7162. ],
  7163. "parameters": [
  7164. {
  7165. "name": "providerId",
  7166. "in": "path",
  7167. "description": "ID of the provider",
  7168. "required": true,
  7169. "schema": {
  7170. "type": "string"
  7171. }
  7172. },
  7173. {
  7174. "name": "term",
  7175. "in": "query",
  7176. "description": "Term to search",
  7177. "schema": {
  7178. "type": "string",
  7179. "default": ""
  7180. }
  7181. },
  7182. {
  7183. "name": "sortOrder",
  7184. "in": "query",
  7185. "description": "Order of entries",
  7186. "schema": {
  7187. "type": "integer",
  7188. "format": "int64",
  7189. "nullable": true
  7190. }
  7191. },
  7192. {
  7193. "name": "limit",
  7194. "in": "query",
  7195. "description": "Maximum amount of entries, limited to 25",
  7196. "schema": {
  7197. "type": "integer",
  7198. "format": "int64",
  7199. "nullable": true
  7200. }
  7201. },
  7202. {
  7203. "name": "cursor",
  7204. "in": "query",
  7205. "description": "Offset for searching",
  7206. "schema": {
  7207. "nullable": true,
  7208. "oneOf": [
  7209. {
  7210. "type": "integer",
  7211. "format": "int64"
  7212. },
  7213. {
  7214. "type": "string"
  7215. }
  7216. ]
  7217. }
  7218. },
  7219. {
  7220. "name": "from",
  7221. "in": "query",
  7222. "description": "The current user URL",
  7223. "schema": {
  7224. "type": "string",
  7225. "default": ""
  7226. }
  7227. },
  7228. {
  7229. "name": "OCS-APIRequest",
  7230. "in": "header",
  7231. "description": "Required to be true for the API request to pass",
  7232. "required": true,
  7233. "schema": {
  7234. "type": "boolean",
  7235. "default": true
  7236. }
  7237. }
  7238. ],
  7239. "responses": {
  7240. "200": {
  7241. "description": "Search entries returned",
  7242. "content": {
  7243. "application/json": {
  7244. "schema": {
  7245. "type": "object",
  7246. "required": [
  7247. "ocs"
  7248. ],
  7249. "properties": {
  7250. "ocs": {
  7251. "type": "object",
  7252. "required": [
  7253. "meta",
  7254. "data"
  7255. ],
  7256. "properties": {
  7257. "meta": {
  7258. "$ref": "#/components/schemas/OCSMeta"
  7259. },
  7260. "data": {
  7261. "$ref": "#/components/schemas/UnifiedSearchResult"
  7262. }
  7263. }
  7264. }
  7265. }
  7266. }
  7267. }
  7268. }
  7269. },
  7270. "400": {
  7271. "description": "Searching is not possible",
  7272. "content": {
  7273. "application/json": {
  7274. "schema": {
  7275. "type": "object",
  7276. "required": [
  7277. "ocs"
  7278. ],
  7279. "properties": {
  7280. "ocs": {
  7281. "type": "object",
  7282. "required": [
  7283. "meta",
  7284. "data"
  7285. ],
  7286. "properties": {
  7287. "meta": {
  7288. "$ref": "#/components/schemas/OCSMeta"
  7289. },
  7290. "data": {
  7291. "type": "string"
  7292. }
  7293. }
  7294. }
  7295. }
  7296. }
  7297. }
  7298. }
  7299. }
  7300. }
  7301. }
  7302. },
  7303. "/ocs/v2.php/core/whatsnew": {
  7304. "get": {
  7305. "operationId": "whats_new-get",
  7306. "summary": "Get the changes",
  7307. "tags": [
  7308. "whats_new"
  7309. ],
  7310. "security": [
  7311. {
  7312. "bearer_auth": []
  7313. },
  7314. {
  7315. "basic_auth": []
  7316. }
  7317. ],
  7318. "parameters": [
  7319. {
  7320. "name": "OCS-APIRequest",
  7321. "in": "header",
  7322. "description": "Required to be true for the API request to pass",
  7323. "required": true,
  7324. "schema": {
  7325. "type": "boolean",
  7326. "default": true
  7327. }
  7328. }
  7329. ],
  7330. "responses": {
  7331. "200": {
  7332. "description": "Changes returned",
  7333. "content": {
  7334. "application/json": {
  7335. "schema": {
  7336. "type": "object",
  7337. "required": [
  7338. "ocs"
  7339. ],
  7340. "properties": {
  7341. "ocs": {
  7342. "type": "object",
  7343. "required": [
  7344. "meta",
  7345. "data"
  7346. ],
  7347. "properties": {
  7348. "meta": {
  7349. "$ref": "#/components/schemas/OCSMeta"
  7350. },
  7351. "data": {
  7352. "type": "object",
  7353. "required": [
  7354. "changelogURL",
  7355. "product",
  7356. "version"
  7357. ],
  7358. "properties": {
  7359. "changelogURL": {
  7360. "type": "string"
  7361. },
  7362. "product": {
  7363. "type": "string"
  7364. },
  7365. "version": {
  7366. "type": "string"
  7367. },
  7368. "whatsNew": {
  7369. "type": "object",
  7370. "required": [
  7371. "regular",
  7372. "admin"
  7373. ],
  7374. "properties": {
  7375. "regular": {
  7376. "type": "array",
  7377. "items": {
  7378. "type": "string"
  7379. }
  7380. },
  7381. "admin": {
  7382. "type": "array",
  7383. "items": {
  7384. "type": "string"
  7385. }
  7386. }
  7387. }
  7388. }
  7389. }
  7390. }
  7391. }
  7392. }
  7393. }
  7394. }
  7395. }
  7396. }
  7397. },
  7398. "204": {
  7399. "description": "No changes"
  7400. }
  7401. }
  7402. },
  7403. "post": {
  7404. "operationId": "whats_new-dismiss",
  7405. "summary": "Dismiss the changes",
  7406. "tags": [
  7407. "whats_new"
  7408. ],
  7409. "security": [
  7410. {
  7411. "bearer_auth": []
  7412. },
  7413. {
  7414. "basic_auth": []
  7415. }
  7416. ],
  7417. "requestBody": {
  7418. "required": true,
  7419. "content": {
  7420. "application/json": {
  7421. "schema": {
  7422. "type": "object",
  7423. "required": [
  7424. "version"
  7425. ],
  7426. "properties": {
  7427. "version": {
  7428. "type": "string",
  7429. "description": "Version to dismiss the changes for"
  7430. }
  7431. }
  7432. }
  7433. }
  7434. }
  7435. },
  7436. "parameters": [
  7437. {
  7438. "name": "OCS-APIRequest",
  7439. "in": "header",
  7440. "description": "Required to be true for the API request to pass",
  7441. "required": true,
  7442. "schema": {
  7443. "type": "boolean",
  7444. "default": true
  7445. }
  7446. }
  7447. ],
  7448. "responses": {
  7449. "200": {
  7450. "description": "Changes dismissed",
  7451. "content": {
  7452. "application/json": {
  7453. "schema": {
  7454. "type": "object",
  7455. "required": [
  7456. "ocs"
  7457. ],
  7458. "properties": {
  7459. "ocs": {
  7460. "type": "object",
  7461. "required": [
  7462. "meta",
  7463. "data"
  7464. ],
  7465. "properties": {
  7466. "meta": {
  7467. "$ref": "#/components/schemas/OCSMeta"
  7468. },
  7469. "data": {}
  7470. }
  7471. }
  7472. }
  7473. }
  7474. }
  7475. }
  7476. },
  7477. "500": {
  7478. "description": "",
  7479. "content": {
  7480. "text/plain": {
  7481. "schema": {
  7482. "type": "string"
  7483. }
  7484. }
  7485. }
  7486. }
  7487. }
  7488. }
  7489. },
  7490. "/index.php/avatar/{userId}/{size}/dark": {
  7491. "get": {
  7492. "operationId": "avatar-get-avatar-dark",
  7493. "summary": "Get the dark avatar",
  7494. "tags": [
  7495. "avatar"
  7496. ],
  7497. "security": [
  7498. {},
  7499. {
  7500. "bearer_auth": []
  7501. },
  7502. {
  7503. "basic_auth": []
  7504. }
  7505. ],
  7506. "parameters": [
  7507. {
  7508. "name": "userId",
  7509. "in": "path",
  7510. "description": "ID of the user",
  7511. "required": true,
  7512. "schema": {
  7513. "type": "string"
  7514. }
  7515. },
  7516. {
  7517. "name": "size",
  7518. "in": "path",
  7519. "description": "Size of the avatar",
  7520. "required": true,
  7521. "schema": {
  7522. "type": "integer",
  7523. "format": "int64",
  7524. "enum": [
  7525. 64,
  7526. 512
  7527. ]
  7528. }
  7529. },
  7530. {
  7531. "name": "guestFallback",
  7532. "in": "query",
  7533. "description": "Fallback to guest avatar if not found",
  7534. "schema": {
  7535. "type": "integer",
  7536. "default": 0,
  7537. "enum": [
  7538. 0,
  7539. 1
  7540. ]
  7541. }
  7542. }
  7543. ],
  7544. "responses": {
  7545. "200": {
  7546. "description": "Avatar returned",
  7547. "headers": {
  7548. "X-NC-IsCustomAvatar": {
  7549. "schema": {
  7550. "type": "integer",
  7551. "format": "int64"
  7552. }
  7553. }
  7554. },
  7555. "content": {
  7556. "*/*": {
  7557. "schema": {
  7558. "type": "string",
  7559. "format": "binary"
  7560. }
  7561. }
  7562. }
  7563. },
  7564. "201": {
  7565. "description": "Avatar returned",
  7566. "headers": {
  7567. "X-NC-IsCustomAvatar": {
  7568. "schema": {
  7569. "type": "integer",
  7570. "format": "int64"
  7571. }
  7572. }
  7573. },
  7574. "content": {
  7575. "*/*": {
  7576. "schema": {
  7577. "type": "string",
  7578. "format": "binary"
  7579. }
  7580. }
  7581. }
  7582. },
  7583. "404": {
  7584. "description": "Avatar not found",
  7585. "content": {
  7586. "application/json": {
  7587. "schema": {}
  7588. }
  7589. }
  7590. },
  7591. "500": {
  7592. "description": ""
  7593. }
  7594. }
  7595. }
  7596. },
  7597. "/index.php/avatar/{userId}/{size}": {
  7598. "get": {
  7599. "operationId": "avatar-get-avatar",
  7600. "summary": "Get the avatar",
  7601. "tags": [
  7602. "avatar"
  7603. ],
  7604. "security": [
  7605. {},
  7606. {
  7607. "bearer_auth": []
  7608. },
  7609. {
  7610. "basic_auth": []
  7611. }
  7612. ],
  7613. "parameters": [
  7614. {
  7615. "name": "userId",
  7616. "in": "path",
  7617. "description": "ID of the user",
  7618. "required": true,
  7619. "schema": {
  7620. "type": "string"
  7621. }
  7622. },
  7623. {
  7624. "name": "size",
  7625. "in": "path",
  7626. "description": "Size of the avatar",
  7627. "required": true,
  7628. "schema": {
  7629. "type": "integer",
  7630. "format": "int64",
  7631. "enum": [
  7632. 64,
  7633. 512
  7634. ]
  7635. }
  7636. },
  7637. {
  7638. "name": "guestFallback",
  7639. "in": "query",
  7640. "description": "Fallback to guest avatar if not found",
  7641. "schema": {
  7642. "type": "integer",
  7643. "default": 0,
  7644. "enum": [
  7645. 0,
  7646. 1
  7647. ]
  7648. }
  7649. }
  7650. ],
  7651. "responses": {
  7652. "200": {
  7653. "description": "Avatar returned",
  7654. "headers": {
  7655. "X-NC-IsCustomAvatar": {
  7656. "schema": {
  7657. "type": "integer",
  7658. "format": "int64"
  7659. }
  7660. }
  7661. },
  7662. "content": {
  7663. "*/*": {
  7664. "schema": {
  7665. "type": "string",
  7666. "format": "binary"
  7667. }
  7668. }
  7669. }
  7670. },
  7671. "201": {
  7672. "description": "Avatar returned",
  7673. "headers": {
  7674. "X-NC-IsCustomAvatar": {
  7675. "schema": {
  7676. "type": "integer",
  7677. "format": "int64"
  7678. }
  7679. }
  7680. },
  7681. "content": {
  7682. "*/*": {
  7683. "schema": {
  7684. "type": "string",
  7685. "format": "binary"
  7686. }
  7687. }
  7688. }
  7689. },
  7690. "404": {
  7691. "description": "Avatar not found",
  7692. "content": {
  7693. "application/json": {
  7694. "schema": {}
  7695. }
  7696. }
  7697. },
  7698. "500": {
  7699. "description": ""
  7700. }
  7701. }
  7702. }
  7703. },
  7704. "/index.php/csrftoken": {
  7705. "get": {
  7706. "operationId": "csrf_token-index",
  7707. "summary": "Returns a new CSRF token.",
  7708. "tags": [
  7709. "csrf_token"
  7710. ],
  7711. "security": [
  7712. {},
  7713. {
  7714. "bearer_auth": []
  7715. },
  7716. {
  7717. "basic_auth": []
  7718. }
  7719. ],
  7720. "responses": {
  7721. "200": {
  7722. "description": "CSRF token returned",
  7723. "content": {
  7724. "application/json": {
  7725. "schema": {
  7726. "type": "object",
  7727. "required": [
  7728. "token"
  7729. ],
  7730. "properties": {
  7731. "token": {
  7732. "type": "string"
  7733. }
  7734. }
  7735. }
  7736. }
  7737. }
  7738. },
  7739. "403": {
  7740. "description": "Strict cookie check failed",
  7741. "content": {
  7742. "application/json": {
  7743. "schema": {}
  7744. }
  7745. }
  7746. }
  7747. }
  7748. }
  7749. },
  7750. "/index.php/login/v2/poll": {
  7751. "post": {
  7752. "operationId": "client_flow_login_v2-poll",
  7753. "summary": "Poll the login flow credentials",
  7754. "tags": [
  7755. "client_flow_login_v2"
  7756. ],
  7757. "security": [
  7758. {},
  7759. {
  7760. "bearer_auth": []
  7761. },
  7762. {
  7763. "basic_auth": []
  7764. }
  7765. ],
  7766. "requestBody": {
  7767. "required": true,
  7768. "content": {
  7769. "application/json": {
  7770. "schema": {
  7771. "type": "object",
  7772. "required": [
  7773. "token"
  7774. ],
  7775. "properties": {
  7776. "token": {
  7777. "type": "string",
  7778. "description": "Token of the flow"
  7779. }
  7780. }
  7781. }
  7782. }
  7783. }
  7784. },
  7785. "responses": {
  7786. "200": {
  7787. "description": "Login flow credentials returned",
  7788. "content": {
  7789. "application/json": {
  7790. "schema": {
  7791. "$ref": "#/components/schemas/LoginFlowV2Credentials"
  7792. }
  7793. }
  7794. }
  7795. },
  7796. "404": {
  7797. "description": "Login flow not found or completed",
  7798. "content": {
  7799. "application/json": {
  7800. "schema": {}
  7801. }
  7802. }
  7803. }
  7804. }
  7805. }
  7806. },
  7807. "/index.php/login/v2": {
  7808. "post": {
  7809. "operationId": "client_flow_login_v2-init",
  7810. "summary": "Init a login flow",
  7811. "tags": [
  7812. "client_flow_login_v2"
  7813. ],
  7814. "security": [
  7815. {},
  7816. {
  7817. "bearer_auth": []
  7818. },
  7819. {
  7820. "basic_auth": []
  7821. }
  7822. ],
  7823. "responses": {
  7824. "200": {
  7825. "description": "Login flow init returned",
  7826. "content": {
  7827. "application/json": {
  7828. "schema": {
  7829. "$ref": "#/components/schemas/LoginFlowV2"
  7830. }
  7831. }
  7832. }
  7833. }
  7834. }
  7835. }
  7836. },
  7837. "/index.php/avatar/guest/{guestName}/{size}": {
  7838. "get": {
  7839. "operationId": "guest_avatar-get-avatar",
  7840. "summary": "Returns a guest avatar image response",
  7841. "tags": [
  7842. "guest_avatar"
  7843. ],
  7844. "security": [
  7845. {},
  7846. {
  7847. "bearer_auth": []
  7848. },
  7849. {
  7850. "basic_auth": []
  7851. }
  7852. ],
  7853. "parameters": [
  7854. {
  7855. "name": "guestName",
  7856. "in": "path",
  7857. "description": "The guest name, e.g. \"Albert\"",
  7858. "required": true,
  7859. "schema": {
  7860. "type": "string"
  7861. }
  7862. },
  7863. {
  7864. "name": "size",
  7865. "in": "path",
  7866. "description": "The desired avatar size, e.g. 64 for 64x64px",
  7867. "required": true,
  7868. "schema": {
  7869. "type": "integer",
  7870. "format": "int64",
  7871. "enum": [
  7872. 64,
  7873. 512
  7874. ]
  7875. }
  7876. },
  7877. {
  7878. "name": "darkTheme",
  7879. "in": "query",
  7880. "description": "Return dark avatar",
  7881. "schema": {
  7882. "type": "integer",
  7883. "nullable": true,
  7884. "default": 0,
  7885. "enum": [
  7886. 0,
  7887. 1
  7888. ]
  7889. }
  7890. }
  7891. ],
  7892. "responses": {
  7893. "200": {
  7894. "description": "Custom avatar returned",
  7895. "headers": {
  7896. "X-NC-IsCustomAvatar": {
  7897. "schema": {
  7898. "type": "integer",
  7899. "format": "int64"
  7900. }
  7901. }
  7902. },
  7903. "content": {
  7904. "*/*": {
  7905. "schema": {
  7906. "type": "string",
  7907. "format": "binary"
  7908. }
  7909. }
  7910. }
  7911. },
  7912. "201": {
  7913. "description": "Avatar returned",
  7914. "headers": {
  7915. "X-NC-IsCustomAvatar": {
  7916. "schema": {
  7917. "type": "integer",
  7918. "format": "int64"
  7919. }
  7920. }
  7921. },
  7922. "content": {
  7923. "*/*": {
  7924. "schema": {
  7925. "type": "string",
  7926. "format": "binary"
  7927. }
  7928. }
  7929. }
  7930. },
  7931. "500": {
  7932. "description": ""
  7933. }
  7934. }
  7935. }
  7936. },
  7937. "/index.php/avatar/guest/{guestName}/{size}/dark": {
  7938. "get": {
  7939. "operationId": "guest_avatar-get-avatar-dark",
  7940. "summary": "Returns a dark guest avatar image response",
  7941. "tags": [
  7942. "guest_avatar"
  7943. ],
  7944. "security": [
  7945. {},
  7946. {
  7947. "bearer_auth": []
  7948. },
  7949. {
  7950. "basic_auth": []
  7951. }
  7952. ],
  7953. "parameters": [
  7954. {
  7955. "name": "guestName",
  7956. "in": "path",
  7957. "description": "The guest name, e.g. \"Albert\"",
  7958. "required": true,
  7959. "schema": {
  7960. "type": "string"
  7961. }
  7962. },
  7963. {
  7964. "name": "size",
  7965. "in": "path",
  7966. "description": "The desired avatar size, e.g. 64 for 64x64px",
  7967. "required": true,
  7968. "schema": {
  7969. "type": "integer",
  7970. "format": "int64",
  7971. "enum": [
  7972. 64,
  7973. 512
  7974. ]
  7975. }
  7976. }
  7977. ],
  7978. "responses": {
  7979. "200": {
  7980. "description": "Custom avatar returned",
  7981. "headers": {
  7982. "X-NC-IsCustomAvatar": {
  7983. "schema": {
  7984. "type": "integer",
  7985. "format": "int64"
  7986. }
  7987. }
  7988. },
  7989. "content": {
  7990. "*/*": {
  7991. "schema": {
  7992. "type": "string",
  7993. "format": "binary"
  7994. }
  7995. }
  7996. }
  7997. },
  7998. "201": {
  7999. "description": "Avatar returned",
  8000. "headers": {
  8001. "X-NC-IsCustomAvatar": {
  8002. "schema": {
  8003. "type": "integer",
  8004. "format": "int64"
  8005. }
  8006. }
  8007. },
  8008. "content": {
  8009. "*/*": {
  8010. "schema": {
  8011. "type": "string",
  8012. "format": "binary"
  8013. }
  8014. }
  8015. }
  8016. },
  8017. "500": {
  8018. "description": ""
  8019. }
  8020. }
  8021. }
  8022. },
  8023. "/index.php/login/confirm": {
  8024. "post": {
  8025. "operationId": "login-confirm-password",
  8026. "summary": "Confirm the user password",
  8027. "tags": [
  8028. "login"
  8029. ],
  8030. "security": [
  8031. {
  8032. "bearer_auth": []
  8033. },
  8034. {
  8035. "basic_auth": []
  8036. }
  8037. ],
  8038. "requestBody": {
  8039. "required": true,
  8040. "content": {
  8041. "application/json": {
  8042. "schema": {
  8043. "type": "object",
  8044. "required": [
  8045. "password"
  8046. ],
  8047. "properties": {
  8048. "password": {
  8049. "type": "string",
  8050. "description": "The password of the user"
  8051. }
  8052. }
  8053. }
  8054. }
  8055. }
  8056. },
  8057. "responses": {
  8058. "200": {
  8059. "description": "Password confirmation succeeded",
  8060. "content": {
  8061. "application/json": {
  8062. "schema": {
  8063. "type": "object",
  8064. "required": [
  8065. "lastLogin"
  8066. ],
  8067. "properties": {
  8068. "lastLogin": {
  8069. "type": "integer",
  8070. "format": "int64"
  8071. }
  8072. }
  8073. }
  8074. }
  8075. }
  8076. },
  8077. "403": {
  8078. "description": "Password confirmation failed",
  8079. "content": {
  8080. "application/json": {
  8081. "schema": {}
  8082. }
  8083. }
  8084. }
  8085. }
  8086. }
  8087. },
  8088. "/index.php/ocm-provider": {
  8089. "get": {
  8090. "operationId": "ocm-discovery",
  8091. "summary": "generate a OCMProvider with local data and send it as DataResponse. This replaces the old PHP file ocm-provider/index.php",
  8092. "tags": [
  8093. "ocm"
  8094. ],
  8095. "security": [
  8096. {},
  8097. {
  8098. "bearer_auth": []
  8099. },
  8100. {
  8101. "basic_auth": []
  8102. }
  8103. ],
  8104. "responses": {
  8105. "200": {
  8106. "description": "OCM Provider details returned",
  8107. "headers": {
  8108. "X-NEXTCLOUD-OCM-PROVIDERS": {
  8109. "schema": {
  8110. "type": "boolean",
  8111. "enum": [
  8112. true
  8113. ]
  8114. }
  8115. }
  8116. },
  8117. "content": {
  8118. "application/json": {
  8119. "schema": {
  8120. "type": "object",
  8121. "required": [
  8122. "enabled",
  8123. "apiVersion",
  8124. "endPoint",
  8125. "resourceTypes"
  8126. ],
  8127. "properties": {
  8128. "enabled": {
  8129. "type": "boolean"
  8130. },
  8131. "apiVersion": {
  8132. "type": "string"
  8133. },
  8134. "endPoint": {
  8135. "type": "string"
  8136. },
  8137. "resourceTypes": {
  8138. "type": "array",
  8139. "items": {
  8140. "type": "object",
  8141. "required": [
  8142. "name",
  8143. "shareTypes",
  8144. "protocols"
  8145. ],
  8146. "properties": {
  8147. "name": {
  8148. "type": "string"
  8149. },
  8150. "shareTypes": {
  8151. "type": "array",
  8152. "items": {
  8153. "type": "string"
  8154. }
  8155. },
  8156. "protocols": {
  8157. "type": "object",
  8158. "required": [
  8159. "webdav"
  8160. ],
  8161. "properties": {
  8162. "webdav": {
  8163. "type": "string"
  8164. }
  8165. }
  8166. }
  8167. }
  8168. }
  8169. }
  8170. }
  8171. }
  8172. }
  8173. }
  8174. },
  8175. "500": {
  8176. "description": "OCM not supported",
  8177. "content": {
  8178. "application/json": {
  8179. "schema": {
  8180. "type": "object",
  8181. "required": [
  8182. "message"
  8183. ],
  8184. "properties": {
  8185. "message": {
  8186. "type": "string"
  8187. }
  8188. }
  8189. }
  8190. }
  8191. }
  8192. }
  8193. }
  8194. }
  8195. },
  8196. "/index.php/core/preview.png": {
  8197. "get": {
  8198. "operationId": "preview-get-preview",
  8199. "summary": "Get a preview by file path",
  8200. "tags": [
  8201. "preview"
  8202. ],
  8203. "security": [
  8204. {
  8205. "bearer_auth": []
  8206. },
  8207. {
  8208. "basic_auth": []
  8209. }
  8210. ],
  8211. "parameters": [
  8212. {
  8213. "name": "file",
  8214. "in": "query",
  8215. "description": "Path of the file",
  8216. "schema": {
  8217. "type": "string",
  8218. "default": ""
  8219. }
  8220. },
  8221. {
  8222. "name": "x",
  8223. "in": "query",
  8224. "description": "Width of the preview. A width of -1 will use the original image width.",
  8225. "schema": {
  8226. "type": "integer",
  8227. "format": "int64",
  8228. "default": 32
  8229. }
  8230. },
  8231. {
  8232. "name": "y",
  8233. "in": "query",
  8234. "description": "Height of the preview. A height of -1 will use the original image height.",
  8235. "schema": {
  8236. "type": "integer",
  8237. "format": "int64",
  8238. "default": 32
  8239. }
  8240. },
  8241. {
  8242. "name": "a",
  8243. "in": "query",
  8244. "description": "Preserve the aspect ratio",
  8245. "schema": {
  8246. "type": "integer",
  8247. "default": 0,
  8248. "enum": [
  8249. 0,
  8250. 1
  8251. ]
  8252. }
  8253. },
  8254. {
  8255. "name": "forceIcon",
  8256. "in": "query",
  8257. "description": "Force returning an icon",
  8258. "schema": {
  8259. "type": "integer",
  8260. "default": 1,
  8261. "enum": [
  8262. 0,
  8263. 1
  8264. ]
  8265. }
  8266. },
  8267. {
  8268. "name": "mode",
  8269. "in": "query",
  8270. "description": "How to crop the image",
  8271. "schema": {
  8272. "type": "string",
  8273. "default": "fill",
  8274. "enum": [
  8275. "fill",
  8276. "cover"
  8277. ]
  8278. }
  8279. },
  8280. {
  8281. "name": "mimeFallback",
  8282. "in": "query",
  8283. "description": "Whether to fallback to the mime icon if no preview is available",
  8284. "schema": {
  8285. "type": "integer",
  8286. "default": 0,
  8287. "enum": [
  8288. 0,
  8289. 1
  8290. ]
  8291. }
  8292. }
  8293. ],
  8294. "responses": {
  8295. "200": {
  8296. "description": "Preview returned",
  8297. "content": {
  8298. "*/*": {
  8299. "schema": {
  8300. "type": "string",
  8301. "format": "binary"
  8302. }
  8303. }
  8304. }
  8305. },
  8306. "400": {
  8307. "description": "Getting preview is not possible",
  8308. "content": {
  8309. "application/json": {
  8310. "schema": {}
  8311. }
  8312. }
  8313. },
  8314. "403": {
  8315. "description": "Getting preview is not allowed",
  8316. "content": {
  8317. "application/json": {
  8318. "schema": {}
  8319. }
  8320. }
  8321. },
  8322. "404": {
  8323. "description": "Preview not found",
  8324. "content": {
  8325. "application/json": {
  8326. "schema": {}
  8327. }
  8328. }
  8329. },
  8330. "303": {
  8331. "description": "Redirect to the mime icon url if mimeFallback is true",
  8332. "headers": {
  8333. "Location": {
  8334. "schema": {
  8335. "type": "string"
  8336. }
  8337. }
  8338. }
  8339. }
  8340. }
  8341. }
  8342. },
  8343. "/index.php/core/preview": {
  8344. "get": {
  8345. "operationId": "preview-get-preview-by-file-id",
  8346. "summary": "Get a preview by file ID",
  8347. "tags": [
  8348. "preview"
  8349. ],
  8350. "security": [
  8351. {
  8352. "bearer_auth": []
  8353. },
  8354. {
  8355. "basic_auth": []
  8356. }
  8357. ],
  8358. "parameters": [
  8359. {
  8360. "name": "fileId",
  8361. "in": "query",
  8362. "description": "ID of the file",
  8363. "schema": {
  8364. "type": "integer",
  8365. "format": "int64",
  8366. "default": -1
  8367. }
  8368. },
  8369. {
  8370. "name": "x",
  8371. "in": "query",
  8372. "description": "Width of the preview. A width of -1 will use the original image width.",
  8373. "schema": {
  8374. "type": "integer",
  8375. "format": "int64",
  8376. "default": 32
  8377. }
  8378. },
  8379. {
  8380. "name": "y",
  8381. "in": "query",
  8382. "description": "Height of the preview. A height of -1 will use the original image height.",
  8383. "schema": {
  8384. "type": "integer",
  8385. "format": "int64",
  8386. "default": 32
  8387. }
  8388. },
  8389. {
  8390. "name": "a",
  8391. "in": "query",
  8392. "description": "Preserve the aspect ratio",
  8393. "schema": {
  8394. "type": "integer",
  8395. "default": 0,
  8396. "enum": [
  8397. 0,
  8398. 1
  8399. ]
  8400. }
  8401. },
  8402. {
  8403. "name": "forceIcon",
  8404. "in": "query",
  8405. "description": "Force returning an icon",
  8406. "schema": {
  8407. "type": "integer",
  8408. "default": 1,
  8409. "enum": [
  8410. 0,
  8411. 1
  8412. ]
  8413. }
  8414. },
  8415. {
  8416. "name": "mode",
  8417. "in": "query",
  8418. "description": "How to crop the image",
  8419. "schema": {
  8420. "type": "string",
  8421. "default": "fill",
  8422. "enum": [
  8423. "fill",
  8424. "cover"
  8425. ]
  8426. }
  8427. },
  8428. {
  8429. "name": "mimeFallback",
  8430. "in": "query",
  8431. "description": "Whether to fallback to the mime icon if no preview is available",
  8432. "schema": {
  8433. "type": "integer",
  8434. "default": 0,
  8435. "enum": [
  8436. 0,
  8437. 1
  8438. ]
  8439. }
  8440. }
  8441. ],
  8442. "responses": {
  8443. "200": {
  8444. "description": "Preview returned",
  8445. "content": {
  8446. "*/*": {
  8447. "schema": {
  8448. "type": "string",
  8449. "format": "binary"
  8450. }
  8451. }
  8452. }
  8453. },
  8454. "400": {
  8455. "description": "Getting preview is not possible",
  8456. "content": {
  8457. "application/json": {
  8458. "schema": {}
  8459. }
  8460. }
  8461. },
  8462. "403": {
  8463. "description": "Getting preview is not allowed",
  8464. "content": {
  8465. "application/json": {
  8466. "schema": {}
  8467. }
  8468. }
  8469. },
  8470. "404": {
  8471. "description": "Preview not found",
  8472. "content": {
  8473. "application/json": {
  8474. "schema": {}
  8475. }
  8476. }
  8477. },
  8478. "303": {
  8479. "description": "Redirect to the mime icon url if mimeFallback is true",
  8480. "headers": {
  8481. "Location": {
  8482. "schema": {
  8483. "type": "string"
  8484. }
  8485. }
  8486. }
  8487. }
  8488. }
  8489. }
  8490. },
  8491. "/index.php/core/references/preview/{referenceId}": {
  8492. "get": {
  8493. "operationId": "reference-preview",
  8494. "summary": "Get a preview for a reference",
  8495. "tags": [
  8496. "reference"
  8497. ],
  8498. "security": [
  8499. {},
  8500. {
  8501. "bearer_auth": []
  8502. },
  8503. {
  8504. "basic_auth": []
  8505. }
  8506. ],
  8507. "parameters": [
  8508. {
  8509. "name": "referenceId",
  8510. "in": "path",
  8511. "description": "the reference cache key",
  8512. "required": true,
  8513. "schema": {
  8514. "type": "string"
  8515. }
  8516. }
  8517. ],
  8518. "responses": {
  8519. "200": {
  8520. "description": "Preview returned",
  8521. "content": {
  8522. "*/*": {
  8523. "schema": {
  8524. "type": "string",
  8525. "format": "binary"
  8526. }
  8527. }
  8528. }
  8529. },
  8530. "404": {
  8531. "description": "Reference not found",
  8532. "content": {
  8533. "application/json": {
  8534. "schema": {
  8535. "type": "string"
  8536. }
  8537. }
  8538. }
  8539. }
  8540. }
  8541. }
  8542. },
  8543. "/index.php/core/wipe/check": {
  8544. "post": {
  8545. "operationId": "wipe-check-wipe",
  8546. "summary": "Check if the device should be wiped",
  8547. "tags": [
  8548. "wipe"
  8549. ],
  8550. "security": [
  8551. {},
  8552. {
  8553. "bearer_auth": []
  8554. },
  8555. {
  8556. "basic_auth": []
  8557. }
  8558. ],
  8559. "requestBody": {
  8560. "required": true,
  8561. "content": {
  8562. "application/json": {
  8563. "schema": {
  8564. "type": "object",
  8565. "required": [
  8566. "token"
  8567. ],
  8568. "properties": {
  8569. "token": {
  8570. "type": "string",
  8571. "description": "App password"
  8572. }
  8573. }
  8574. }
  8575. }
  8576. }
  8577. },
  8578. "responses": {
  8579. "200": {
  8580. "description": "Device should be wiped",
  8581. "content": {
  8582. "application/json": {
  8583. "schema": {
  8584. "type": "object",
  8585. "required": [
  8586. "wipe"
  8587. ],
  8588. "properties": {
  8589. "wipe": {
  8590. "type": "boolean"
  8591. }
  8592. }
  8593. }
  8594. }
  8595. }
  8596. },
  8597. "404": {
  8598. "description": "Device should not be wiped",
  8599. "content": {
  8600. "application/json": {
  8601. "schema": {}
  8602. }
  8603. }
  8604. }
  8605. }
  8606. }
  8607. },
  8608. "/index.php/core/wipe/success": {
  8609. "post": {
  8610. "operationId": "wipe-wipe-done",
  8611. "summary": "Finish the wipe",
  8612. "tags": [
  8613. "wipe"
  8614. ],
  8615. "security": [
  8616. {},
  8617. {
  8618. "bearer_auth": []
  8619. },
  8620. {
  8621. "basic_auth": []
  8622. }
  8623. ],
  8624. "requestBody": {
  8625. "required": true,
  8626. "content": {
  8627. "application/json": {
  8628. "schema": {
  8629. "type": "object",
  8630. "required": [
  8631. "token"
  8632. ],
  8633. "properties": {
  8634. "token": {
  8635. "type": "string",
  8636. "description": "App password"
  8637. }
  8638. }
  8639. }
  8640. }
  8641. }
  8642. },
  8643. "responses": {
  8644. "200": {
  8645. "description": "Wipe finished successfully",
  8646. "content": {
  8647. "application/json": {
  8648. "schema": {}
  8649. }
  8650. }
  8651. },
  8652. "404": {
  8653. "description": "Device should not be wiped",
  8654. "content": {
  8655. "application/json": {
  8656. "schema": {}
  8657. }
  8658. }
  8659. }
  8660. }
  8661. }
  8662. },
  8663. "/status.php": {
  8664. "get": {
  8665. "operationId": "get-status",
  8666. "responses": {
  8667. "200": {
  8668. "description": "Status returned",
  8669. "content": {
  8670. "application/json": {
  8671. "schema": {
  8672. "$ref": "#/components/schemas/Status"
  8673. }
  8674. }
  8675. }
  8676. }
  8677. }
  8678. }
  8679. }
  8680. },
  8681. "tags": [
  8682. {
  8683. "name": "avatar",
  8684. "description": "Class AvatarController"
  8685. },
  8686. {
  8687. "name": "guest_avatar",
  8688. "description": "This controller handles guest avatar requests."
  8689. },
  8690. {
  8691. "name": "ocm",
  8692. "description": "Controller about the endpoint /ocm-provider/"
  8693. }
  8694. ]
  8695. }