openapi.json 380 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940
  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/twofactor/state": {
  7075. "post": {
  7076. "operationId": "twofactor-state",
  7077. "summary": "Get Two Factor state of specific users",
  7078. "tags": [
  7079. "twofactor"
  7080. ],
  7081. "security": [
  7082. {
  7083. "bearer_auth": []
  7084. },
  7085. {
  7086. "basic_auth": []
  7087. }
  7088. ],
  7089. "requestBody": {
  7090. "required": true,
  7091. "description": "State Request",
  7092. "content": {
  7093. "application/json": {
  7094. "schema": {
  7095. "type": "object",
  7096. "required": [
  7097. "users"
  7098. ],
  7099. "properties": {
  7100. "users": {
  7101. "type": "array",
  7102. "description": "Collection of user identifiers",
  7103. "items": {
  7104. "type": "string"
  7105. },
  7106. "example": ["user1", "user2", "user3"]
  7107. }
  7108. }
  7109. }
  7110. }
  7111. }
  7112. },
  7113. "responses": {
  7114. "200": {
  7115. "description": "State Response",
  7116. "content": {
  7117. "application/json": {
  7118. "schema": {
  7119. "type": "object",
  7120. "required": [
  7121. "ocs"
  7122. ],
  7123. "properties": {
  7124. "ocs": {
  7125. "type": "object",
  7126. "required": [
  7127. "meta",
  7128. "data"
  7129. ],
  7130. "properties": {
  7131. "meta": {
  7132. "$ref": "#/components/schemas/OCSMeta"
  7133. },
  7134. "data": {
  7135. "type": "object",
  7136. "example": {
  7137. "user1": {
  7138. "backup_codes": true,
  7139. "totp": false
  7140. },
  7141. "user2": {
  7142. "backup_codes": false,
  7143. "totp": true
  7144. }
  7145. }
  7146. }
  7147. }
  7148. }
  7149. }
  7150. }
  7151. }
  7152. }
  7153. }
  7154. }
  7155. }
  7156. },
  7157. "/ocs/v2.php/twofactor/enable": {
  7158. "post": {
  7159. "operationId": "twofactor-enable",
  7160. "summary": "Enable Two Factor Authentication for a specific user and specific TFA provider. Not all TFA providers can be enabled this way, some require user interaction",
  7161. "tags": [
  7162. "twofactor"
  7163. ],
  7164. "security": [
  7165. {
  7166. "bearer_auth": []
  7167. },
  7168. {
  7169. "basic_auth": []
  7170. }
  7171. ],
  7172. "requestBody": {
  7173. "required": true,
  7174. "description": "Enable Request",
  7175. "content": {
  7176. "application/json": {
  7177. "schema": {
  7178. "type": "object",
  7179. "required": [
  7180. "users"
  7181. ],
  7182. "properties": {
  7183. "user": {
  7184. "type": "string",
  7185. "description": "System user identifier"
  7186. },
  7187. "providers": {
  7188. "type": "array",
  7189. "description": "Collection of provider identifiers",
  7190. "items": {
  7191. "type": "string"
  7192. },
  7193. "example": ["backup_codes", "totp"]
  7194. }
  7195. }
  7196. }
  7197. }
  7198. }
  7199. },
  7200. "responses": {
  7201. "200": {
  7202. "description": "Enable Response",
  7203. "content": {
  7204. "application/json": {
  7205. "schema": {
  7206. "type": "object",
  7207. "required": [
  7208. "ocs"
  7209. ],
  7210. "properties": {
  7211. "ocs": {
  7212. "type": "object",
  7213. "required": [
  7214. "meta",
  7215. "data"
  7216. ],
  7217. "properties": {
  7218. "meta": {
  7219. "$ref": "#/components/schemas/OCSMeta"
  7220. },
  7221. "data": {
  7222. "type": "object",
  7223. "example": {
  7224. "backup_codes": true,
  7225. "totp": false
  7226. }
  7227. }
  7228. }
  7229. }
  7230. }
  7231. }
  7232. }
  7233. }
  7234. }
  7235. }
  7236. }
  7237. },
  7238. "/ocs/v2.php/twofactor/disable": {
  7239. "post": {
  7240. "operationId": "twofactor-disable",
  7241. "summary": "Disable Two Factor Authentication for a specific user and specific TFA provider",
  7242. "tags": [
  7243. "twofactor"
  7244. ],
  7245. "security": [
  7246. {
  7247. "bearer_auth": []
  7248. },
  7249. {
  7250. "basic_auth": []
  7251. }
  7252. ],
  7253. "requestBody": {
  7254. "required": true,
  7255. "description": "Disable Request",
  7256. "content": {
  7257. "application/json": {
  7258. "schema": {
  7259. "type": "object",
  7260. "required": [
  7261. "users"
  7262. ],
  7263. "properties": {
  7264. "user": {
  7265. "type": "string",
  7266. "description": "System user identifier"
  7267. },
  7268. "providers": {
  7269. "type": "array",
  7270. "description": "Collection of provider identifiers",
  7271. "items": {
  7272. "type": "string"
  7273. },
  7274. "example": ["backup_codes", "totp"]
  7275. }
  7276. }
  7277. }
  7278. }
  7279. }
  7280. },
  7281. "responses": {
  7282. "200": {
  7283. "description": "Disable Response",
  7284. "content": {
  7285. "application/json": {
  7286. "schema": {
  7287. "type": "object",
  7288. "required": [
  7289. "ocs"
  7290. ],
  7291. "properties": {
  7292. "ocs": {
  7293. "type": "object",
  7294. "required": [
  7295. "meta",
  7296. "data"
  7297. ],
  7298. "properties": {
  7299. "meta": {
  7300. "$ref": "#/components/schemas/OCSMeta"
  7301. },
  7302. "data": {
  7303. "type": "object",
  7304. "example": {
  7305. "backup_codes": true,
  7306. "totp": false
  7307. }
  7308. }
  7309. }
  7310. }
  7311. }
  7312. }
  7313. }
  7314. }
  7315. }
  7316. }
  7317. }
  7318. },
  7319. "/ocs/v2.php/search/providers": {
  7320. "get": {
  7321. "operationId": "unified_search-get-providers",
  7322. "summary": "Get the providers for unified search",
  7323. "tags": [
  7324. "unified_search"
  7325. ],
  7326. "security": [
  7327. {
  7328. "bearer_auth": []
  7329. },
  7330. {
  7331. "basic_auth": []
  7332. }
  7333. ],
  7334. "parameters": [
  7335. {
  7336. "name": "from",
  7337. "in": "query",
  7338. "description": "the url the user is currently at",
  7339. "schema": {
  7340. "type": "string",
  7341. "default": ""
  7342. }
  7343. },
  7344. {
  7345. "name": "OCS-APIRequest",
  7346. "in": "header",
  7347. "description": "Required to be true for the API request to pass",
  7348. "required": true,
  7349. "schema": {
  7350. "type": "boolean",
  7351. "default": true
  7352. }
  7353. }
  7354. ],
  7355. "responses": {
  7356. "200": {
  7357. "description": "Providers returned",
  7358. "content": {
  7359. "application/json": {
  7360. "schema": {
  7361. "type": "object",
  7362. "required": [
  7363. "ocs"
  7364. ],
  7365. "properties": {
  7366. "ocs": {
  7367. "type": "object",
  7368. "required": [
  7369. "meta",
  7370. "data"
  7371. ],
  7372. "properties": {
  7373. "meta": {
  7374. "$ref": "#/components/schemas/OCSMeta"
  7375. },
  7376. "data": {
  7377. "type": "array",
  7378. "items": {
  7379. "$ref": "#/components/schemas/UnifiedSearchProvider"
  7380. }
  7381. }
  7382. }
  7383. }
  7384. }
  7385. }
  7386. }
  7387. }
  7388. }
  7389. }
  7390. }
  7391. },
  7392. "/ocs/v2.php/search/providers/{providerId}/search": {
  7393. "get": {
  7394. "operationId": "unified_search-search",
  7395. "summary": "Launch a search for a specific search provider.",
  7396. "description": "Additional filters are available for each provider. Send a request to /providers endpoint to list providers with their available filters.",
  7397. "tags": [
  7398. "unified_search"
  7399. ],
  7400. "security": [
  7401. {
  7402. "bearer_auth": []
  7403. },
  7404. {
  7405. "basic_auth": []
  7406. }
  7407. ],
  7408. "parameters": [
  7409. {
  7410. "name": "providerId",
  7411. "in": "path",
  7412. "description": "ID of the provider",
  7413. "required": true,
  7414. "schema": {
  7415. "type": "string"
  7416. }
  7417. },
  7418. {
  7419. "name": "term",
  7420. "in": "query",
  7421. "description": "Term to search",
  7422. "schema": {
  7423. "type": "string",
  7424. "default": ""
  7425. }
  7426. },
  7427. {
  7428. "name": "sortOrder",
  7429. "in": "query",
  7430. "description": "Order of entries",
  7431. "schema": {
  7432. "type": "integer",
  7433. "format": "int64",
  7434. "nullable": true
  7435. }
  7436. },
  7437. {
  7438. "name": "limit",
  7439. "in": "query",
  7440. "description": "Maximum amount of entries, limited to 25",
  7441. "schema": {
  7442. "type": "integer",
  7443. "format": "int64",
  7444. "nullable": true
  7445. }
  7446. },
  7447. {
  7448. "name": "cursor",
  7449. "in": "query",
  7450. "description": "Offset for searching",
  7451. "schema": {
  7452. "nullable": true,
  7453. "oneOf": [
  7454. {
  7455. "type": "integer",
  7456. "format": "int64"
  7457. },
  7458. {
  7459. "type": "string"
  7460. }
  7461. ]
  7462. }
  7463. },
  7464. {
  7465. "name": "from",
  7466. "in": "query",
  7467. "description": "The current user URL",
  7468. "schema": {
  7469. "type": "string",
  7470. "default": ""
  7471. }
  7472. },
  7473. {
  7474. "name": "OCS-APIRequest",
  7475. "in": "header",
  7476. "description": "Required to be true for the API request to pass",
  7477. "required": true,
  7478. "schema": {
  7479. "type": "boolean",
  7480. "default": true
  7481. }
  7482. }
  7483. ],
  7484. "responses": {
  7485. "200": {
  7486. "description": "Search entries returned",
  7487. "content": {
  7488. "application/json": {
  7489. "schema": {
  7490. "type": "object",
  7491. "required": [
  7492. "ocs"
  7493. ],
  7494. "properties": {
  7495. "ocs": {
  7496. "type": "object",
  7497. "required": [
  7498. "meta",
  7499. "data"
  7500. ],
  7501. "properties": {
  7502. "meta": {
  7503. "$ref": "#/components/schemas/OCSMeta"
  7504. },
  7505. "data": {
  7506. "$ref": "#/components/schemas/UnifiedSearchResult"
  7507. }
  7508. }
  7509. }
  7510. }
  7511. }
  7512. }
  7513. }
  7514. },
  7515. "400": {
  7516. "description": "Searching is not possible",
  7517. "content": {
  7518. "application/json": {
  7519. "schema": {
  7520. "type": "object",
  7521. "required": [
  7522. "ocs"
  7523. ],
  7524. "properties": {
  7525. "ocs": {
  7526. "type": "object",
  7527. "required": [
  7528. "meta",
  7529. "data"
  7530. ],
  7531. "properties": {
  7532. "meta": {
  7533. "$ref": "#/components/schemas/OCSMeta"
  7534. },
  7535. "data": {
  7536. "type": "string"
  7537. }
  7538. }
  7539. }
  7540. }
  7541. }
  7542. }
  7543. }
  7544. }
  7545. }
  7546. }
  7547. },
  7548. "/ocs/v2.php/core/whatsnew": {
  7549. "get": {
  7550. "operationId": "whats_new-get",
  7551. "summary": "Get the changes",
  7552. "tags": [
  7553. "whats_new"
  7554. ],
  7555. "security": [
  7556. {
  7557. "bearer_auth": []
  7558. },
  7559. {
  7560. "basic_auth": []
  7561. }
  7562. ],
  7563. "parameters": [
  7564. {
  7565. "name": "OCS-APIRequest",
  7566. "in": "header",
  7567. "description": "Required to be true for the API request to pass",
  7568. "required": true,
  7569. "schema": {
  7570. "type": "boolean",
  7571. "default": true
  7572. }
  7573. }
  7574. ],
  7575. "responses": {
  7576. "200": {
  7577. "description": "Changes returned",
  7578. "content": {
  7579. "application/json": {
  7580. "schema": {
  7581. "type": "object",
  7582. "required": [
  7583. "ocs"
  7584. ],
  7585. "properties": {
  7586. "ocs": {
  7587. "type": "object",
  7588. "required": [
  7589. "meta",
  7590. "data"
  7591. ],
  7592. "properties": {
  7593. "meta": {
  7594. "$ref": "#/components/schemas/OCSMeta"
  7595. },
  7596. "data": {
  7597. "type": "object",
  7598. "required": [
  7599. "changelogURL",
  7600. "product",
  7601. "version"
  7602. ],
  7603. "properties": {
  7604. "changelogURL": {
  7605. "type": "string"
  7606. },
  7607. "product": {
  7608. "type": "string"
  7609. },
  7610. "version": {
  7611. "type": "string"
  7612. },
  7613. "whatsNew": {
  7614. "type": "object",
  7615. "required": [
  7616. "regular",
  7617. "admin"
  7618. ],
  7619. "properties": {
  7620. "regular": {
  7621. "type": "array",
  7622. "items": {
  7623. "type": "string"
  7624. }
  7625. },
  7626. "admin": {
  7627. "type": "array",
  7628. "items": {
  7629. "type": "string"
  7630. }
  7631. }
  7632. }
  7633. }
  7634. }
  7635. }
  7636. }
  7637. }
  7638. }
  7639. }
  7640. }
  7641. }
  7642. },
  7643. "204": {
  7644. "description": "No changes"
  7645. }
  7646. }
  7647. },
  7648. "post": {
  7649. "operationId": "whats_new-dismiss",
  7650. "summary": "Dismiss the changes",
  7651. "tags": [
  7652. "whats_new"
  7653. ],
  7654. "security": [
  7655. {
  7656. "bearer_auth": []
  7657. },
  7658. {
  7659. "basic_auth": []
  7660. }
  7661. ],
  7662. "requestBody": {
  7663. "required": true,
  7664. "content": {
  7665. "application/json": {
  7666. "schema": {
  7667. "type": "object",
  7668. "required": [
  7669. "version"
  7670. ],
  7671. "properties": {
  7672. "version": {
  7673. "type": "string",
  7674. "description": "Version to dismiss the changes for"
  7675. }
  7676. }
  7677. }
  7678. }
  7679. }
  7680. },
  7681. "parameters": [
  7682. {
  7683. "name": "OCS-APIRequest",
  7684. "in": "header",
  7685. "description": "Required to be true for the API request to pass",
  7686. "required": true,
  7687. "schema": {
  7688. "type": "boolean",
  7689. "default": true
  7690. }
  7691. }
  7692. ],
  7693. "responses": {
  7694. "200": {
  7695. "description": "Changes dismissed",
  7696. "content": {
  7697. "application/json": {
  7698. "schema": {
  7699. "type": "object",
  7700. "required": [
  7701. "ocs"
  7702. ],
  7703. "properties": {
  7704. "ocs": {
  7705. "type": "object",
  7706. "required": [
  7707. "meta",
  7708. "data"
  7709. ],
  7710. "properties": {
  7711. "meta": {
  7712. "$ref": "#/components/schemas/OCSMeta"
  7713. },
  7714. "data": {}
  7715. }
  7716. }
  7717. }
  7718. }
  7719. }
  7720. }
  7721. },
  7722. "500": {
  7723. "description": "",
  7724. "content": {
  7725. "text/plain": {
  7726. "schema": {
  7727. "type": "string"
  7728. }
  7729. }
  7730. }
  7731. }
  7732. }
  7733. }
  7734. },
  7735. "/index.php/avatar/{userId}/{size}/dark": {
  7736. "get": {
  7737. "operationId": "avatar-get-avatar-dark",
  7738. "summary": "Get the dark avatar",
  7739. "tags": [
  7740. "avatar"
  7741. ],
  7742. "security": [
  7743. {},
  7744. {
  7745. "bearer_auth": []
  7746. },
  7747. {
  7748. "basic_auth": []
  7749. }
  7750. ],
  7751. "parameters": [
  7752. {
  7753. "name": "userId",
  7754. "in": "path",
  7755. "description": "ID of the user",
  7756. "required": true,
  7757. "schema": {
  7758. "type": "string"
  7759. }
  7760. },
  7761. {
  7762. "name": "size",
  7763. "in": "path",
  7764. "description": "Size of the avatar",
  7765. "required": true,
  7766. "schema": {
  7767. "type": "integer",
  7768. "format": "int64",
  7769. "enum": [
  7770. 64,
  7771. 512
  7772. ]
  7773. }
  7774. },
  7775. {
  7776. "name": "guestFallback",
  7777. "in": "query",
  7778. "description": "Fallback to guest avatar if not found",
  7779. "schema": {
  7780. "type": "integer",
  7781. "default": 0,
  7782. "enum": [
  7783. 0,
  7784. 1
  7785. ]
  7786. }
  7787. }
  7788. ],
  7789. "responses": {
  7790. "200": {
  7791. "description": "Avatar returned",
  7792. "headers": {
  7793. "X-NC-IsCustomAvatar": {
  7794. "schema": {
  7795. "type": "integer",
  7796. "format": "int64"
  7797. }
  7798. }
  7799. },
  7800. "content": {
  7801. "*/*": {
  7802. "schema": {
  7803. "type": "string",
  7804. "format": "binary"
  7805. }
  7806. }
  7807. }
  7808. },
  7809. "201": {
  7810. "description": "Avatar returned",
  7811. "headers": {
  7812. "X-NC-IsCustomAvatar": {
  7813. "schema": {
  7814. "type": "integer",
  7815. "format": "int64"
  7816. }
  7817. }
  7818. },
  7819. "content": {
  7820. "*/*": {
  7821. "schema": {
  7822. "type": "string",
  7823. "format": "binary"
  7824. }
  7825. }
  7826. }
  7827. },
  7828. "404": {
  7829. "description": "Avatar not found",
  7830. "content": {
  7831. "application/json": {
  7832. "schema": {}
  7833. }
  7834. }
  7835. },
  7836. "500": {
  7837. "description": ""
  7838. }
  7839. }
  7840. }
  7841. },
  7842. "/index.php/avatar/{userId}/{size}": {
  7843. "get": {
  7844. "operationId": "avatar-get-avatar",
  7845. "summary": "Get the avatar",
  7846. "tags": [
  7847. "avatar"
  7848. ],
  7849. "security": [
  7850. {},
  7851. {
  7852. "bearer_auth": []
  7853. },
  7854. {
  7855. "basic_auth": []
  7856. }
  7857. ],
  7858. "parameters": [
  7859. {
  7860. "name": "userId",
  7861. "in": "path",
  7862. "description": "ID of the user",
  7863. "required": true,
  7864. "schema": {
  7865. "type": "string"
  7866. }
  7867. },
  7868. {
  7869. "name": "size",
  7870. "in": "path",
  7871. "description": "Size of the avatar",
  7872. "required": true,
  7873. "schema": {
  7874. "type": "integer",
  7875. "format": "int64",
  7876. "enum": [
  7877. 64,
  7878. 512
  7879. ]
  7880. }
  7881. },
  7882. {
  7883. "name": "guestFallback",
  7884. "in": "query",
  7885. "description": "Fallback to guest avatar if not found",
  7886. "schema": {
  7887. "type": "integer",
  7888. "default": 0,
  7889. "enum": [
  7890. 0,
  7891. 1
  7892. ]
  7893. }
  7894. }
  7895. ],
  7896. "responses": {
  7897. "200": {
  7898. "description": "Avatar returned",
  7899. "headers": {
  7900. "X-NC-IsCustomAvatar": {
  7901. "schema": {
  7902. "type": "integer",
  7903. "format": "int64"
  7904. }
  7905. }
  7906. },
  7907. "content": {
  7908. "*/*": {
  7909. "schema": {
  7910. "type": "string",
  7911. "format": "binary"
  7912. }
  7913. }
  7914. }
  7915. },
  7916. "201": {
  7917. "description": "Avatar returned",
  7918. "headers": {
  7919. "X-NC-IsCustomAvatar": {
  7920. "schema": {
  7921. "type": "integer",
  7922. "format": "int64"
  7923. }
  7924. }
  7925. },
  7926. "content": {
  7927. "*/*": {
  7928. "schema": {
  7929. "type": "string",
  7930. "format": "binary"
  7931. }
  7932. }
  7933. }
  7934. },
  7935. "404": {
  7936. "description": "Avatar not found",
  7937. "content": {
  7938. "application/json": {
  7939. "schema": {}
  7940. }
  7941. }
  7942. },
  7943. "500": {
  7944. "description": ""
  7945. }
  7946. }
  7947. }
  7948. },
  7949. "/index.php/csrftoken": {
  7950. "get": {
  7951. "operationId": "csrf_token-index",
  7952. "summary": "Returns a new CSRF token.",
  7953. "tags": [
  7954. "csrf_token"
  7955. ],
  7956. "security": [
  7957. {},
  7958. {
  7959. "bearer_auth": []
  7960. },
  7961. {
  7962. "basic_auth": []
  7963. }
  7964. ],
  7965. "responses": {
  7966. "200": {
  7967. "description": "CSRF token returned",
  7968. "content": {
  7969. "application/json": {
  7970. "schema": {
  7971. "type": "object",
  7972. "required": [
  7973. "token"
  7974. ],
  7975. "properties": {
  7976. "token": {
  7977. "type": "string"
  7978. }
  7979. }
  7980. }
  7981. }
  7982. }
  7983. },
  7984. "403": {
  7985. "description": "Strict cookie check failed",
  7986. "content": {
  7987. "application/json": {
  7988. "schema": {}
  7989. }
  7990. }
  7991. }
  7992. }
  7993. }
  7994. },
  7995. "/index.php/login/v2/poll": {
  7996. "post": {
  7997. "operationId": "client_flow_login_v2-poll",
  7998. "summary": "Poll the login flow credentials",
  7999. "tags": [
  8000. "client_flow_login_v2"
  8001. ],
  8002. "security": [
  8003. {},
  8004. {
  8005. "bearer_auth": []
  8006. },
  8007. {
  8008. "basic_auth": []
  8009. }
  8010. ],
  8011. "requestBody": {
  8012. "required": true,
  8013. "content": {
  8014. "application/json": {
  8015. "schema": {
  8016. "type": "object",
  8017. "required": [
  8018. "token"
  8019. ],
  8020. "properties": {
  8021. "token": {
  8022. "type": "string",
  8023. "description": "Token of the flow"
  8024. }
  8025. }
  8026. }
  8027. }
  8028. }
  8029. },
  8030. "responses": {
  8031. "200": {
  8032. "description": "Login flow credentials returned",
  8033. "content": {
  8034. "application/json": {
  8035. "schema": {
  8036. "$ref": "#/components/schemas/LoginFlowV2Credentials"
  8037. }
  8038. }
  8039. }
  8040. },
  8041. "404": {
  8042. "description": "Login flow not found or completed",
  8043. "content": {
  8044. "application/json": {
  8045. "schema": {}
  8046. }
  8047. }
  8048. }
  8049. }
  8050. }
  8051. },
  8052. "/index.php/login/v2": {
  8053. "post": {
  8054. "operationId": "client_flow_login_v2-init",
  8055. "summary": "Init a login flow",
  8056. "tags": [
  8057. "client_flow_login_v2"
  8058. ],
  8059. "security": [
  8060. {},
  8061. {
  8062. "bearer_auth": []
  8063. },
  8064. {
  8065. "basic_auth": []
  8066. }
  8067. ],
  8068. "responses": {
  8069. "200": {
  8070. "description": "Login flow init returned",
  8071. "content": {
  8072. "application/json": {
  8073. "schema": {
  8074. "$ref": "#/components/schemas/LoginFlowV2"
  8075. }
  8076. }
  8077. }
  8078. }
  8079. }
  8080. }
  8081. },
  8082. "/index.php/avatar/guest/{guestName}/{size}": {
  8083. "get": {
  8084. "operationId": "guest_avatar-get-avatar",
  8085. "summary": "Returns a guest avatar image response",
  8086. "tags": [
  8087. "guest_avatar"
  8088. ],
  8089. "security": [
  8090. {},
  8091. {
  8092. "bearer_auth": []
  8093. },
  8094. {
  8095. "basic_auth": []
  8096. }
  8097. ],
  8098. "parameters": [
  8099. {
  8100. "name": "guestName",
  8101. "in": "path",
  8102. "description": "The guest name, e.g. \"Albert\"",
  8103. "required": true,
  8104. "schema": {
  8105. "type": "string"
  8106. }
  8107. },
  8108. {
  8109. "name": "size",
  8110. "in": "path",
  8111. "description": "The desired avatar size, e.g. 64 for 64x64px",
  8112. "required": true,
  8113. "schema": {
  8114. "type": "integer",
  8115. "format": "int64",
  8116. "enum": [
  8117. 64,
  8118. 512
  8119. ]
  8120. }
  8121. },
  8122. {
  8123. "name": "darkTheme",
  8124. "in": "query",
  8125. "description": "Return dark avatar",
  8126. "schema": {
  8127. "type": "integer",
  8128. "nullable": true,
  8129. "default": 0,
  8130. "enum": [
  8131. 0,
  8132. 1
  8133. ]
  8134. }
  8135. }
  8136. ],
  8137. "responses": {
  8138. "200": {
  8139. "description": "Custom avatar returned",
  8140. "headers": {
  8141. "X-NC-IsCustomAvatar": {
  8142. "schema": {
  8143. "type": "integer",
  8144. "format": "int64"
  8145. }
  8146. }
  8147. },
  8148. "content": {
  8149. "*/*": {
  8150. "schema": {
  8151. "type": "string",
  8152. "format": "binary"
  8153. }
  8154. }
  8155. }
  8156. },
  8157. "201": {
  8158. "description": "Avatar returned",
  8159. "headers": {
  8160. "X-NC-IsCustomAvatar": {
  8161. "schema": {
  8162. "type": "integer",
  8163. "format": "int64"
  8164. }
  8165. }
  8166. },
  8167. "content": {
  8168. "*/*": {
  8169. "schema": {
  8170. "type": "string",
  8171. "format": "binary"
  8172. }
  8173. }
  8174. }
  8175. },
  8176. "500": {
  8177. "description": ""
  8178. }
  8179. }
  8180. }
  8181. },
  8182. "/index.php/avatar/guest/{guestName}/{size}/dark": {
  8183. "get": {
  8184. "operationId": "guest_avatar-get-avatar-dark",
  8185. "summary": "Returns a dark guest avatar image response",
  8186. "tags": [
  8187. "guest_avatar"
  8188. ],
  8189. "security": [
  8190. {},
  8191. {
  8192. "bearer_auth": []
  8193. },
  8194. {
  8195. "basic_auth": []
  8196. }
  8197. ],
  8198. "parameters": [
  8199. {
  8200. "name": "guestName",
  8201. "in": "path",
  8202. "description": "The guest name, e.g. \"Albert\"",
  8203. "required": true,
  8204. "schema": {
  8205. "type": "string"
  8206. }
  8207. },
  8208. {
  8209. "name": "size",
  8210. "in": "path",
  8211. "description": "The desired avatar size, e.g. 64 for 64x64px",
  8212. "required": true,
  8213. "schema": {
  8214. "type": "integer",
  8215. "format": "int64",
  8216. "enum": [
  8217. 64,
  8218. 512
  8219. ]
  8220. }
  8221. }
  8222. ],
  8223. "responses": {
  8224. "200": {
  8225. "description": "Custom avatar returned",
  8226. "headers": {
  8227. "X-NC-IsCustomAvatar": {
  8228. "schema": {
  8229. "type": "integer",
  8230. "format": "int64"
  8231. }
  8232. }
  8233. },
  8234. "content": {
  8235. "*/*": {
  8236. "schema": {
  8237. "type": "string",
  8238. "format": "binary"
  8239. }
  8240. }
  8241. }
  8242. },
  8243. "201": {
  8244. "description": "Avatar returned",
  8245. "headers": {
  8246. "X-NC-IsCustomAvatar": {
  8247. "schema": {
  8248. "type": "integer",
  8249. "format": "int64"
  8250. }
  8251. }
  8252. },
  8253. "content": {
  8254. "*/*": {
  8255. "schema": {
  8256. "type": "string",
  8257. "format": "binary"
  8258. }
  8259. }
  8260. }
  8261. },
  8262. "500": {
  8263. "description": ""
  8264. }
  8265. }
  8266. }
  8267. },
  8268. "/index.php/login/confirm": {
  8269. "post": {
  8270. "operationId": "login-confirm-password",
  8271. "summary": "Confirm the user password",
  8272. "tags": [
  8273. "login"
  8274. ],
  8275. "security": [
  8276. {
  8277. "bearer_auth": []
  8278. },
  8279. {
  8280. "basic_auth": []
  8281. }
  8282. ],
  8283. "requestBody": {
  8284. "required": true,
  8285. "content": {
  8286. "application/json": {
  8287. "schema": {
  8288. "type": "object",
  8289. "required": [
  8290. "password"
  8291. ],
  8292. "properties": {
  8293. "password": {
  8294. "type": "string",
  8295. "description": "The password of the user"
  8296. }
  8297. }
  8298. }
  8299. }
  8300. }
  8301. },
  8302. "responses": {
  8303. "200": {
  8304. "description": "Password confirmation succeeded",
  8305. "content": {
  8306. "application/json": {
  8307. "schema": {
  8308. "type": "object",
  8309. "required": [
  8310. "lastLogin"
  8311. ],
  8312. "properties": {
  8313. "lastLogin": {
  8314. "type": "integer",
  8315. "format": "int64"
  8316. }
  8317. }
  8318. }
  8319. }
  8320. }
  8321. },
  8322. "403": {
  8323. "description": "Password confirmation failed",
  8324. "content": {
  8325. "application/json": {
  8326. "schema": {}
  8327. }
  8328. }
  8329. }
  8330. }
  8331. }
  8332. },
  8333. "/index.php/ocm-provider": {
  8334. "get": {
  8335. "operationId": "ocm-discovery",
  8336. "summary": "generate a OCMProvider with local data and send it as DataResponse. This replaces the old PHP file ocm-provider/index.php",
  8337. "tags": [
  8338. "ocm"
  8339. ],
  8340. "security": [
  8341. {},
  8342. {
  8343. "bearer_auth": []
  8344. },
  8345. {
  8346. "basic_auth": []
  8347. }
  8348. ],
  8349. "responses": {
  8350. "200": {
  8351. "description": "OCM Provider details returned",
  8352. "headers": {
  8353. "X-NEXTCLOUD-OCM-PROVIDERS": {
  8354. "schema": {
  8355. "type": "boolean",
  8356. "enum": [
  8357. true
  8358. ]
  8359. }
  8360. }
  8361. },
  8362. "content": {
  8363. "application/json": {
  8364. "schema": {
  8365. "type": "object",
  8366. "required": [
  8367. "enabled",
  8368. "apiVersion",
  8369. "endPoint",
  8370. "resourceTypes"
  8371. ],
  8372. "properties": {
  8373. "enabled": {
  8374. "type": "boolean"
  8375. },
  8376. "apiVersion": {
  8377. "type": "string"
  8378. },
  8379. "endPoint": {
  8380. "type": "string"
  8381. },
  8382. "resourceTypes": {
  8383. "type": "array",
  8384. "items": {
  8385. "type": "object",
  8386. "required": [
  8387. "name",
  8388. "shareTypes",
  8389. "protocols"
  8390. ],
  8391. "properties": {
  8392. "name": {
  8393. "type": "string"
  8394. },
  8395. "shareTypes": {
  8396. "type": "array",
  8397. "items": {
  8398. "type": "string"
  8399. }
  8400. },
  8401. "protocols": {
  8402. "type": "object",
  8403. "required": [
  8404. "webdav"
  8405. ],
  8406. "properties": {
  8407. "webdav": {
  8408. "type": "string"
  8409. }
  8410. }
  8411. }
  8412. }
  8413. }
  8414. }
  8415. }
  8416. }
  8417. }
  8418. }
  8419. },
  8420. "500": {
  8421. "description": "OCM not supported",
  8422. "content": {
  8423. "application/json": {
  8424. "schema": {
  8425. "type": "object",
  8426. "required": [
  8427. "message"
  8428. ],
  8429. "properties": {
  8430. "message": {
  8431. "type": "string"
  8432. }
  8433. }
  8434. }
  8435. }
  8436. }
  8437. }
  8438. }
  8439. }
  8440. },
  8441. "/index.php/core/preview.png": {
  8442. "get": {
  8443. "operationId": "preview-get-preview",
  8444. "summary": "Get a preview by file path",
  8445. "tags": [
  8446. "preview"
  8447. ],
  8448. "security": [
  8449. {
  8450. "bearer_auth": []
  8451. },
  8452. {
  8453. "basic_auth": []
  8454. }
  8455. ],
  8456. "parameters": [
  8457. {
  8458. "name": "file",
  8459. "in": "query",
  8460. "description": "Path of the file",
  8461. "schema": {
  8462. "type": "string",
  8463. "default": ""
  8464. }
  8465. },
  8466. {
  8467. "name": "x",
  8468. "in": "query",
  8469. "description": "Width of the preview. A width of -1 will use the original image width.",
  8470. "schema": {
  8471. "type": "integer",
  8472. "format": "int64",
  8473. "default": 32
  8474. }
  8475. },
  8476. {
  8477. "name": "y",
  8478. "in": "query",
  8479. "description": "Height of the preview. A height of -1 will use the original image height.",
  8480. "schema": {
  8481. "type": "integer",
  8482. "format": "int64",
  8483. "default": 32
  8484. }
  8485. },
  8486. {
  8487. "name": "a",
  8488. "in": "query",
  8489. "description": "Preserve the aspect ratio",
  8490. "schema": {
  8491. "type": "integer",
  8492. "default": 0,
  8493. "enum": [
  8494. 0,
  8495. 1
  8496. ]
  8497. }
  8498. },
  8499. {
  8500. "name": "forceIcon",
  8501. "in": "query",
  8502. "description": "Force returning an icon",
  8503. "schema": {
  8504. "type": "integer",
  8505. "default": 1,
  8506. "enum": [
  8507. 0,
  8508. 1
  8509. ]
  8510. }
  8511. },
  8512. {
  8513. "name": "mode",
  8514. "in": "query",
  8515. "description": "How to crop the image",
  8516. "schema": {
  8517. "type": "string",
  8518. "default": "fill",
  8519. "enum": [
  8520. "fill",
  8521. "cover"
  8522. ]
  8523. }
  8524. },
  8525. {
  8526. "name": "mimeFallback",
  8527. "in": "query",
  8528. "description": "Whether to fallback to the mime icon if no preview is available",
  8529. "schema": {
  8530. "type": "integer",
  8531. "default": 0,
  8532. "enum": [
  8533. 0,
  8534. 1
  8535. ]
  8536. }
  8537. }
  8538. ],
  8539. "responses": {
  8540. "200": {
  8541. "description": "Preview returned",
  8542. "content": {
  8543. "*/*": {
  8544. "schema": {
  8545. "type": "string",
  8546. "format": "binary"
  8547. }
  8548. }
  8549. }
  8550. },
  8551. "400": {
  8552. "description": "Getting preview is not possible",
  8553. "content": {
  8554. "application/json": {
  8555. "schema": {}
  8556. }
  8557. }
  8558. },
  8559. "403": {
  8560. "description": "Getting preview is not allowed",
  8561. "content": {
  8562. "application/json": {
  8563. "schema": {}
  8564. }
  8565. }
  8566. },
  8567. "404": {
  8568. "description": "Preview not found",
  8569. "content": {
  8570. "application/json": {
  8571. "schema": {}
  8572. }
  8573. }
  8574. },
  8575. "303": {
  8576. "description": "Redirect to the mime icon url if mimeFallback is true",
  8577. "headers": {
  8578. "Location": {
  8579. "schema": {
  8580. "type": "string"
  8581. }
  8582. }
  8583. }
  8584. }
  8585. }
  8586. }
  8587. },
  8588. "/index.php/core/preview": {
  8589. "get": {
  8590. "operationId": "preview-get-preview-by-file-id",
  8591. "summary": "Get a preview by file ID",
  8592. "tags": [
  8593. "preview"
  8594. ],
  8595. "security": [
  8596. {
  8597. "bearer_auth": []
  8598. },
  8599. {
  8600. "basic_auth": []
  8601. }
  8602. ],
  8603. "parameters": [
  8604. {
  8605. "name": "fileId",
  8606. "in": "query",
  8607. "description": "ID of the file",
  8608. "schema": {
  8609. "type": "integer",
  8610. "format": "int64",
  8611. "default": -1
  8612. }
  8613. },
  8614. {
  8615. "name": "x",
  8616. "in": "query",
  8617. "description": "Width of the preview. A width of -1 will use the original image width.",
  8618. "schema": {
  8619. "type": "integer",
  8620. "format": "int64",
  8621. "default": 32
  8622. }
  8623. },
  8624. {
  8625. "name": "y",
  8626. "in": "query",
  8627. "description": "Height of the preview. A height of -1 will use the original image height.",
  8628. "schema": {
  8629. "type": "integer",
  8630. "format": "int64",
  8631. "default": 32
  8632. }
  8633. },
  8634. {
  8635. "name": "a",
  8636. "in": "query",
  8637. "description": "Preserve the aspect ratio",
  8638. "schema": {
  8639. "type": "integer",
  8640. "default": 0,
  8641. "enum": [
  8642. 0,
  8643. 1
  8644. ]
  8645. }
  8646. },
  8647. {
  8648. "name": "forceIcon",
  8649. "in": "query",
  8650. "description": "Force returning an icon",
  8651. "schema": {
  8652. "type": "integer",
  8653. "default": 1,
  8654. "enum": [
  8655. 0,
  8656. 1
  8657. ]
  8658. }
  8659. },
  8660. {
  8661. "name": "mode",
  8662. "in": "query",
  8663. "description": "How to crop the image",
  8664. "schema": {
  8665. "type": "string",
  8666. "default": "fill",
  8667. "enum": [
  8668. "fill",
  8669. "cover"
  8670. ]
  8671. }
  8672. },
  8673. {
  8674. "name": "mimeFallback",
  8675. "in": "query",
  8676. "description": "Whether to fallback to the mime icon if no preview is available",
  8677. "schema": {
  8678. "type": "integer",
  8679. "default": 0,
  8680. "enum": [
  8681. 0,
  8682. 1
  8683. ]
  8684. }
  8685. }
  8686. ],
  8687. "responses": {
  8688. "200": {
  8689. "description": "Preview returned",
  8690. "content": {
  8691. "*/*": {
  8692. "schema": {
  8693. "type": "string",
  8694. "format": "binary"
  8695. }
  8696. }
  8697. }
  8698. },
  8699. "400": {
  8700. "description": "Getting preview is not possible",
  8701. "content": {
  8702. "application/json": {
  8703. "schema": {}
  8704. }
  8705. }
  8706. },
  8707. "403": {
  8708. "description": "Getting preview is not allowed",
  8709. "content": {
  8710. "application/json": {
  8711. "schema": {}
  8712. }
  8713. }
  8714. },
  8715. "404": {
  8716. "description": "Preview not found",
  8717. "content": {
  8718. "application/json": {
  8719. "schema": {}
  8720. }
  8721. }
  8722. },
  8723. "303": {
  8724. "description": "Redirect to the mime icon url if mimeFallback is true",
  8725. "headers": {
  8726. "Location": {
  8727. "schema": {
  8728. "type": "string"
  8729. }
  8730. }
  8731. }
  8732. }
  8733. }
  8734. }
  8735. },
  8736. "/index.php/core/references/preview/{referenceId}": {
  8737. "get": {
  8738. "operationId": "reference-preview",
  8739. "summary": "Get a preview for a reference",
  8740. "tags": [
  8741. "reference"
  8742. ],
  8743. "security": [
  8744. {},
  8745. {
  8746. "bearer_auth": []
  8747. },
  8748. {
  8749. "basic_auth": []
  8750. }
  8751. ],
  8752. "parameters": [
  8753. {
  8754. "name": "referenceId",
  8755. "in": "path",
  8756. "description": "the reference cache key",
  8757. "required": true,
  8758. "schema": {
  8759. "type": "string"
  8760. }
  8761. }
  8762. ],
  8763. "responses": {
  8764. "200": {
  8765. "description": "Preview returned",
  8766. "content": {
  8767. "*/*": {
  8768. "schema": {
  8769. "type": "string",
  8770. "format": "binary"
  8771. }
  8772. }
  8773. }
  8774. },
  8775. "404": {
  8776. "description": "Reference not found",
  8777. "content": {
  8778. "application/json": {
  8779. "schema": {
  8780. "type": "string"
  8781. }
  8782. }
  8783. }
  8784. }
  8785. }
  8786. }
  8787. },
  8788. "/index.php/core/wipe/check": {
  8789. "post": {
  8790. "operationId": "wipe-check-wipe",
  8791. "summary": "Check if the device should be wiped",
  8792. "tags": [
  8793. "wipe"
  8794. ],
  8795. "security": [
  8796. {},
  8797. {
  8798. "bearer_auth": []
  8799. },
  8800. {
  8801. "basic_auth": []
  8802. }
  8803. ],
  8804. "requestBody": {
  8805. "required": true,
  8806. "content": {
  8807. "application/json": {
  8808. "schema": {
  8809. "type": "object",
  8810. "required": [
  8811. "token"
  8812. ],
  8813. "properties": {
  8814. "token": {
  8815. "type": "string",
  8816. "description": "App password"
  8817. }
  8818. }
  8819. }
  8820. }
  8821. }
  8822. },
  8823. "responses": {
  8824. "200": {
  8825. "description": "Device should be wiped",
  8826. "content": {
  8827. "application/json": {
  8828. "schema": {
  8829. "type": "object",
  8830. "required": [
  8831. "wipe"
  8832. ],
  8833. "properties": {
  8834. "wipe": {
  8835. "type": "boolean"
  8836. }
  8837. }
  8838. }
  8839. }
  8840. }
  8841. },
  8842. "404": {
  8843. "description": "Device should not be wiped",
  8844. "content": {
  8845. "application/json": {
  8846. "schema": {}
  8847. }
  8848. }
  8849. }
  8850. }
  8851. }
  8852. },
  8853. "/index.php/core/wipe/success": {
  8854. "post": {
  8855. "operationId": "wipe-wipe-done",
  8856. "summary": "Finish the wipe",
  8857. "tags": [
  8858. "wipe"
  8859. ],
  8860. "security": [
  8861. {},
  8862. {
  8863. "bearer_auth": []
  8864. },
  8865. {
  8866. "basic_auth": []
  8867. }
  8868. ],
  8869. "requestBody": {
  8870. "required": true,
  8871. "content": {
  8872. "application/json": {
  8873. "schema": {
  8874. "type": "object",
  8875. "required": [
  8876. "token"
  8877. ],
  8878. "properties": {
  8879. "token": {
  8880. "type": "string",
  8881. "description": "App password"
  8882. }
  8883. }
  8884. }
  8885. }
  8886. }
  8887. },
  8888. "responses": {
  8889. "200": {
  8890. "description": "Wipe finished successfully",
  8891. "content": {
  8892. "application/json": {
  8893. "schema": {}
  8894. }
  8895. }
  8896. },
  8897. "404": {
  8898. "description": "Device should not be wiped",
  8899. "content": {
  8900. "application/json": {
  8901. "schema": {}
  8902. }
  8903. }
  8904. }
  8905. }
  8906. }
  8907. },
  8908. "/status.php": {
  8909. "get": {
  8910. "operationId": "get-status",
  8911. "responses": {
  8912. "200": {
  8913. "description": "Status returned",
  8914. "content": {
  8915. "application/json": {
  8916. "schema": {
  8917. "$ref": "#/components/schemas/Status"
  8918. }
  8919. }
  8920. }
  8921. }
  8922. }
  8923. }
  8924. }
  8925. },
  8926. "tags": [
  8927. {
  8928. "name": "avatar",
  8929. "description": "Class AvatarController"
  8930. },
  8931. {
  8932. "name": "guest_avatar",
  8933. "description": "This controller handles guest avatar requests."
  8934. },
  8935. {
  8936. "name": "ocm",
  8937. "description": "Controller about the endpoint /ocm-provider/"
  8938. }
  8939. ]
  8940. }