]> Git — Sourcephile - gargantext.git/blob - src/Gargantext/API/Client.hs
[FIX] When posting new list as file, reindex after
[gargantext.git] / src / Gargantext / API / Client.hs
1 {-# OPTIONS_GHC -freduction-depth=0 #-}
2 {-# OPTIONS_GHC -O0 #-}
3
4 module Gargantext.API.Client where
5
6 import Data.Int
7 import Data.Maybe
8 import Data.Map (Map)
9 import Data.Proxy
10 import Data.Text (Text)
11 import Data.Time.Clock
12 import Data.Vector (Vector)
13 import Gargantext.API
14 import Gargantext.API.Admin.Auth.Types hiding (Token)
15 import Gargantext.API.Admin.Orchestrator.Types
16 import Gargantext.API.Count
17 import Gargantext.API.EKG
18 import Gargantext.API.HashedResponse
19 import Gargantext.API.Ngrams as Ngrams
20 import Gargantext.API.Ngrams.NgramsTree
21 import Gargantext.API.Ngrams.List.Types
22 import Gargantext.API.Node
23 import Gargantext.API.Node.Contact
24 import Gargantext.API.Node.Corpus.Export.Types
25 import Gargantext.API.Node.Corpus.New
26 import qualified Gargantext.API.Node.Document.Export.Types as DocumentExport
27 import Gargantext.API.Node.DocumentsFromWriteNodes
28 import Gargantext.API.Node.DocumentUpload
29 import Gargantext.API.Node.File
30 import Gargantext.API.Node.FrameCalcUpload
31 import Gargantext.API.Node.New
32 import Gargantext.API.Node.Share
33 import Gargantext.API.Node.Types
34 import Gargantext.API.Node.Update
35 import Gargantext.API.Public
36 import Gargantext.API.Routes
37 import Gargantext.API.Search
38 import Gargantext.API.Table
39 import Gargantext.Core.Types (NodeTableResult)
40 import Gargantext.Core.Types.Main hiding (Limit, Offset)
41 import Gargantext.Core.Viz.Graph hiding (Node, Version)
42 import Gargantext.Core.Viz.Graph.API
43 import Gargantext.Core.Viz.Types
44 import Gargantext.Database.Admin.Types.Metrics
45 import Gargantext.Database.Admin.Types.Hyperdata
46 import Gargantext.Database.Admin.Types.Node
47 import Gargantext.Database.Schema.Ngrams
48 import Gargantext.Database.Query.Facet as Facet
49 import Servant.API
50 import Servant.API.Flatten
51 import Servant.Auth.Client
52 import Servant.Client
53 import Servant.Job.Core
54 import Servant.Job.Types
55 import System.Metrics.Json (Sample, Value)
56
57 import qualified Data.Aeson as Aeson
58
59 -- * version API
60 getBackendVersion :: ClientM Text
61
62 -- * auth API
63 postAuth :: AuthRequest -> ClientM AuthResponse
64
65 -- * admin api
66 getRoots :: Token -> ClientM [Node HyperdataUser]
67 putRoots :: Token -> ClientM Int -- not actually implemented in the backend
68 deleteNodes :: Token -> [NodeId] -> ClientM Int
69
70 -- * node api
71 getNode :: Token -> NodeId -> ClientM (Node HyperdataAny)
72 getContext :: Token -> ContextId -> ClientM (Node HyperdataAny)
73 renameNode :: Token -> NodeId -> RenameNode -> ClientM [Int]
74 postNode :: Token -> NodeId -> PostNode -> ClientM [NodeId]
75 postNodeAsync :: Token -> NodeId -> ClientM (JobStatus 'Safe JobLog)
76 postNodeAsyncJob :: Token -> NodeId -> JobInput Maybe PostNode -> ClientM (JobStatus 'Safe JobLog)
77 killNodeAsyncJob :: Token -> NodeId -> JobID 'Unsafe -> Maybe Limit -> Maybe Offset -> ClientM (JobStatus 'Safe JobLog)
78 pollNodeAsyncJob :: Token -> NodeId -> JobID 'Unsafe -> Maybe Limit -> Maybe Offset -> ClientM (JobStatus 'Safe JobLog)
79 waitNodeAsyncJob :: Token -> NodeId -> JobID 'Unsafe -> ClientM (JobOutput JobLog)
80
81 postNodeFrameCalcAsync :: Token -> NodeId -> ClientM (JobStatus 'Safe JobLog)
82 postNodeFrameCalcAsyncJob :: Token -> NodeId -> JobInput Maybe FrameCalcUpload -> ClientM (JobStatus 'Safe JobLog)
83 killNodeFrameCalcAsyncJob :: Token -> NodeId -> JobID 'Unsafe -> Maybe Limit -> Maybe Offset -> ClientM (JobStatus 'Safe JobLog)
84 pollNodeFrameCalcAsyncJob :: Token -> NodeId -> JobID 'Unsafe -> Maybe Limit -> Maybe Offset -> ClientM (JobStatus 'Safe JobLog)
85 waitNodeFrameCalcAsyncJob :: Token -> NodeId -> JobID 'Unsafe -> ClientM (JobOutput JobLog)
86
87 putNode :: Token -> NodeId -> HyperdataAny -> ClientM Int
88
89 postUpdateNodeAsync :: Token -> NodeId -> ClientM (JobStatus 'Safe JobLog)
90 postUpdateNodeAsyncJob :: Token -> NodeId -> JobInput Maybe UpdateNodeParams -> ClientM (JobStatus 'Safe JobLog)
91 killUpdateNodeAsyncJob :: Token -> NodeId -> JobID 'Unsafe -> Maybe Limit -> Maybe Offset -> ClientM (JobStatus 'Safe JobLog)
92 pollUpdateNodeAsyncJob :: Token -> NodeId -> JobID 'Unsafe -> Maybe Limit -> Maybe Offset -> ClientM (JobStatus 'Safe JobLog)
93 waitUpdateNodeAsyncJob :: Token -> NodeId -> JobID 'Unsafe -> ClientM (JobOutput JobLog)
94
95 deleteNode :: Token -> NodeId -> ClientM Int
96 getNodeChildren :: Token -> NodeId -> Maybe NodeType -> Maybe Int -> Maybe Int -> ClientM (NodeTableResult HyperdataAny)
97
98 getNodeTable :: Token -> NodeId -> Maybe TabType -> Maybe ListId -> Maybe Int -> Maybe Int -> Maybe Facet.OrderBy -> Maybe Text -> ClientM (HashedResponse FacetTableResult)
99 postNodeTableQuery :: Token -> NodeId -> TableQuery -> ClientM FacetTableResult
100 getNodeTableHash :: Token -> NodeId -> Maybe TabType -> ClientM Text
101
102 getNodeNgramsTable :: Token -> NodeId -> TabType -> ListId -> Int -> Maybe Int -> Maybe ListType -> Maybe MinSize -> Maybe MaxSize -> Maybe Ngrams.OrderBy -> Maybe Text -> ClientM (VersionedWithCount NgramsTable)
103 putNodeNgramsTablePatch :: Token -> NodeId -> TabType -> ListId -> Versioned NgramsTablePatch -> ClientM (Versioned NgramsTablePatch)
104 postNodeRecomputeNgramsTableScores :: Token -> NodeId -> TabType -> ListId -> ClientM Int
105 getNodeNgramsTableVersion :: Token -> NodeId -> TabType -> ListId -> ClientM Version
106 postNodeUpdateNgramsTableChartsAsync :: Token -> NodeId -> ClientM (JobStatus 'Safe JobLog)
107 postNodeUpdateNgramsTableChartsAsyncJob :: Token -> NodeId -> JobInput Maybe UpdateTableNgramsCharts -> ClientM (JobStatus 'Safe JobLog)
108 killNodeUpdateNgramsTableChartsAsyncJob :: Token -> NodeId -> JobID 'Unsafe -> Maybe Limit -> Maybe Offset -> ClientM (JobStatus 'Safe JobLog)
109 pollNodeUpdateNgramsTableChartsAsyncJob :: Token -> NodeId -> JobID 'Unsafe -> Maybe Limit -> Maybe Offset -> ClientM (JobStatus 'Safe JobLog)
110 waitNodeUpdateNgramsTableChartsAsyncJob :: Token -> NodeId -> JobID 'Unsafe -> ClientM (JobOutput JobLog)
111
112 putNodeCategory :: Token -> NodeId -> NodesToCategory -> ClientM [Int]
113 putNodeScore :: Token -> NodeId -> NodesToScore -> ClientM [Int]
114
115 postNodeSearch :: Token -> NodeId -> SearchQuery -> Maybe Int -> Maybe Int -> Maybe Facet.OrderBy -> ClientM SearchResult
116
117 postNodeShare :: Token -> NodeId -> ShareNodeParams -> ClientM Int
118
119 postNodePairCorpusAnnuaire :: Token -> NodeId -> AnnuaireId -> Maybe ListId -> ClientM Int
120 getNodePairs :: Token -> NodeId -> ClientM [AnnuaireId]
121 getNodePairings :: Token -> NodeId -> Maybe TabType -> Maybe Int -> Maybe Int -> Maybe Facet.OrderBy -> ClientM [FacetDoc]
122
123 getNodeScatterMetrics :: Token -> NodeId -> Maybe NodeId -> TabType -> Maybe Int -> ClientM (HashedResponse Metrics)
124 postNodeScatterMetricsUpdate :: Token -> NodeId -> Maybe NodeId -> TabType -> Maybe Int -> ClientM ()
125 getNodeScatterMetricsHash :: Token -> NodeId -> Maybe NodeId -> TabType -> ClientM Text
126 getNodeChart :: Token -> NodeId -> Maybe UTCTime -> Maybe UTCTime -> Maybe NodeId -> TabType -> ClientM (HashedResponse (ChartMetrics Histo))
127 postNodeChartUpdate :: Token -> NodeId -> Maybe NodeId -> TabType -> Maybe Int -> ClientM ()
128 getNodeChartHash :: Token -> NodeId -> Maybe NodeId -> TabType -> ClientM Text
129 getNodePie :: Token -> NodeId -> Maybe UTCTime -> Maybe UTCTime -> Maybe NodeId -> TabType -> ClientM (HashedResponse (ChartMetrics Histo))
130 postNodePieUpdate :: Token -> NodeId -> Maybe NodeId -> TabType -> Maybe Int -> ClientM ()
131 getNodePieHash :: Token -> NodeId -> Maybe NodeId -> TabType -> ClientM Text
132 getNodeTree :: Token -> NodeId -> Maybe UTCTime -> Maybe UTCTime -> Maybe NodeId -> TabType -> ListType -> ClientM (HashedResponse (ChartMetrics (Vector NgramsTree)))
133 postNodeTreeUpdate :: Token -> NodeId -> Maybe NodeId -> TabType -> ListType -> ClientM ()
134 getNodeTreeHash :: Token -> NodeId -> Maybe NodeId -> TabType -> ListType -> ClientM Text
135 getNodePhylo :: Token -> NodeId -> Maybe NodeId -> Maybe Int -> Maybe Int -> ClientM Aeson.Value
136 putNodePhylo :: Token -> NodeId -> Maybe NodeId -> ClientM NodeId
137
138 putNodeMove :: Token -> NodeId -> ParentId -> ClientM [Int]
139 postNodeUnpublish :: Token -> NodeId -> NodeId -> ClientM Int
140
141 getNodeFile :: Token -> NodeId -> ClientM (Headers '[Header "Content-Type" Text] BSResponse)
142 postNodeFileAsync :: Token -> NodeId -> ClientM (JobStatus 'Safe JobLog)
143 postNodeFileAsyncJob :: Token -> NodeId -> JobInput Maybe NewWithFile -> ClientM (JobStatus 'Safe JobLog)
144 killNodeFileAsyncJob :: Token -> NodeId -> JobID 'Unsafe -> Maybe Limit -> Maybe Offset -> ClientM (JobStatus 'Safe JobLog)
145 pollNodeFileAsyncJob :: Token -> NodeId -> JobID 'Unsafe -> Maybe Limit -> Maybe Offset -> ClientM (JobStatus 'Safe JobLog)
146 waitNodeFileAsyncJob :: Token -> NodeId -> JobID 'Unsafe -> ClientM (JobOutput JobLog)
147
148 postNodeDocumentWriteNodesAsync :: Token -> NodeId -> ClientM (JobStatus 'Safe JobLog)
149 postNodeDocumentWriteNodesAsyncJob :: Token -> NodeId -> JobInput Maybe Params -> ClientM (JobStatus 'Safe JobLog)
150 killNodeDocumentWriteNodesAsyncJob :: Token -> NodeId -> JobID 'Unsafe -> Maybe Limit -> Maybe Offset -> ClientM (JobStatus 'Safe JobLog)
151 pollNodeDocumentWriteNodesAsyncJob :: Token -> NodeId -> JobID 'Unsafe -> Maybe Limit -> Maybe Offset -> ClientM (JobStatus 'Safe JobLog)
152 waitNodeDocumentWriteNodesAsyncJob :: Token -> NodeId -> JobID 'Unsafe -> ClientM (JobOutput JobLog)
153
154 postNodeDocumentUploadAsync :: Token -> NodeId -> ClientM (JobStatus 'Safe JobLog)
155 postNodeDocumentUploadAsyncJob :: Token -> NodeId -> JobInput Maybe DocumentUpload -> ClientM (JobStatus 'Safe JobLog)
156 killNodeDocumentUploadAsyncJob :: Token -> NodeId -> JobID 'Unsafe -> Maybe Limit -> Maybe Offset -> ClientM (JobStatus 'Safe JobLog)
157 pollNodeDocumentUploadAsyncJob :: Token -> NodeId -> JobID 'Unsafe -> Maybe Limit -> Maybe Offset -> ClientM (JobStatus 'Safe JobLog)
158 waitNodeDocumentUploadAsyncJob :: Token -> NodeId -> JobID 'Unsafe -> ClientM (JobOutput JobLog)
159
160 -- * corpus api
161 getCorpus :: Token -> CorpusId -> ClientM (Node HyperdataCorpus)
162 renameCorpus :: Token -> CorpusId -> RenameNode -> ClientM [Int]
163 postCorpus :: Token -> CorpusId -> PostNode -> ClientM [CorpusId]
164 postCorpusAsync :: Token -> CorpusId -> ClientM (JobStatus 'Safe JobLog)
165 postCorpusAsyncJob :: Token -> CorpusId -> JobInput Maybe PostNode -> ClientM (JobStatus 'Safe JobLog)
166 killCorpusAsyncJob :: Token -> CorpusId -> JobID 'Unsafe -> Maybe Limit -> Maybe Offset -> ClientM (JobStatus 'Safe JobLog)
167 pollCorpusAsyncJob :: Token -> CorpusId -> JobID 'Unsafe -> Maybe Limit -> Maybe Offset -> ClientM (JobStatus 'Safe JobLog)
168 waitCorpusAsyncJob :: Token -> CorpusId -> JobID 'Unsafe -> ClientM (JobOutput JobLog)
169
170 postCorpusFrameCalcAsync :: Token -> CorpusId -> ClientM (JobStatus 'Safe JobLog)
171 postCorpusFrameCalcAsyncJob :: Token -> CorpusId -> JobInput Maybe FrameCalcUpload -> ClientM (JobStatus 'Safe JobLog)
172 killCorpusFrameCalcAsyncJob :: Token -> CorpusId -> JobID 'Unsafe -> Maybe Limit -> Maybe Offset -> ClientM (JobStatus 'Safe JobLog)
173 pollCorpusFrameCalcAsyncJob :: Token -> CorpusId -> JobID 'Unsafe -> Maybe Limit -> Maybe Offset -> ClientM (JobStatus 'Safe JobLog)
174 waitCorpusFrameCalcAsyncJob :: Token -> CorpusId -> JobID 'Unsafe -> ClientM (JobOutput JobLog)
175
176 putCorpus :: Token -> CorpusId -> HyperdataCorpus -> ClientM Int
177
178 postUpdateCorpusAsync :: Token -> CorpusId -> ClientM (JobStatus 'Safe JobLog)
179 postUpdateCorpusAsyncJob :: Token -> CorpusId -> JobInput Maybe UpdateNodeParams -> ClientM (JobStatus 'Safe JobLog)
180 killUpdateCorpusAsyncJob :: Token -> CorpusId -> JobID 'Unsafe -> Maybe Limit -> Maybe Offset -> ClientM (JobStatus 'Safe JobLog)
181 pollUpdateCorpusAsyncJob :: Token -> CorpusId -> JobID 'Unsafe -> Maybe Limit -> Maybe Offset -> ClientM (JobStatus 'Safe JobLog)
182 waitUpdateCorpusAsyncJob :: Token -> CorpusId -> JobID 'Unsafe -> ClientM (JobOutput JobLog)
183
184 deleteCorpus :: Token -> CorpusId -> ClientM Int
185 getCorpusChildren :: Token -> CorpusId -> Maybe NodeType -> Maybe Int -> Maybe Int -> ClientM (NodeTableResult HyperdataCorpus)
186
187 getCorpusTable :: Token -> CorpusId -> Maybe TabType -> Maybe ListId -> Maybe Int -> Maybe Int -> Maybe Facet.OrderBy -> Maybe Text -> ClientM (HashedResponse FacetTableResult)
188 postCorpusTableQuery :: Token -> CorpusId -> TableQuery -> ClientM FacetTableResult
189 getCorpusTableHash :: Token -> CorpusId -> Maybe TabType -> ClientM Text
190
191 getCorpusNgramsTable :: Token -> CorpusId -> TabType -> ListId -> Int -> Maybe Int -> Maybe ListType -> Maybe MinSize -> Maybe MaxSize -> Maybe Ngrams.OrderBy -> Maybe Text -> ClientM (VersionedWithCount NgramsTable)
192 putCorpusNgramsTablePatch :: Token -> CorpusId -> TabType -> ListId -> Versioned NgramsTablePatch -> ClientM (Versioned NgramsTablePatch)
193 postCorpusRecomputeNgramsTableScores :: Token -> CorpusId -> TabType -> ListId -> ClientM Int
194 getCorpusNgramsTableVersion :: Token -> CorpusId -> TabType -> ListId -> ClientM Version
195 postCorpusUpdateNgramsTableChartsAsync :: Token -> CorpusId -> ClientM (JobStatus 'Safe JobLog)
196 postCorpusUpdateNgramsTableChartsAsyncJob :: Token -> CorpusId -> JobInput Maybe UpdateTableNgramsCharts -> ClientM (JobStatus 'Safe JobLog)
197 killCorpusUpdateNgramsTableChartsAsyncJob :: Token -> CorpusId -> JobID 'Unsafe -> Maybe Limit -> Maybe Offset -> ClientM (JobStatus 'Safe JobLog)
198 pollCorpusUpdateNgramsTableChartsAsyncJob :: Token -> CorpusId -> JobID 'Unsafe -> Maybe Limit -> Maybe Offset -> ClientM (JobStatus 'Safe JobLog)
199 waitCorpusUpdateNgramsTableChartsAsyncJob :: Token -> CorpusId -> JobID 'Unsafe -> ClientM (JobOutput JobLog)
200
201 putCorpusCategory :: Token -> CorpusId -> NodesToCategory -> ClientM [Int]
202 putCorpusScore :: Token -> CorpusId -> NodesToScore -> ClientM [Int]
203
204 postCorpusSearch :: Token -> CorpusId -> SearchQuery -> Maybe Int -> Maybe Int -> Maybe Facet.OrderBy -> ClientM SearchResult
205
206 postCorpusShare :: Token -> CorpusId -> ShareNodeParams -> ClientM Int
207
208 postCorpusPairCorpusAnnuaire :: Token -> CorpusId -> AnnuaireId -> Maybe ListId -> ClientM Int
209 getCorpusPairs :: Token -> CorpusId -> ClientM [AnnuaireId]
210 getCorpusPairings :: Token -> CorpusId -> Maybe TabType -> Maybe Int -> Maybe Int -> Maybe Facet.OrderBy -> ClientM [FacetDoc]
211
212 getCorpusScatterMetrics :: Token -> CorpusId -> Maybe NodeId -> TabType -> Maybe Int -> ClientM (HashedResponse Metrics)
213 postCorpusScatterMetricsUpdate :: Token -> CorpusId -> Maybe NodeId -> TabType -> Maybe Int -> ClientM ()
214 getCorpusScatterMetricsHash :: Token -> CorpusId -> Maybe NodeId -> TabType -> ClientM Text
215 getCorpusChart :: Token -> CorpusId -> Maybe UTCTime -> Maybe UTCTime -> Maybe NodeId -> TabType -> ClientM (HashedResponse (ChartMetrics Histo))
216 postCorpusChartUpdate :: Token -> CorpusId -> Maybe NodeId -> TabType -> Maybe Int -> ClientM ()
217 getCorpusChartHash :: Token -> CorpusId -> Maybe NodeId -> TabType -> ClientM Text
218 getCorpusPie :: Token -> CorpusId -> Maybe UTCTime -> Maybe UTCTime -> Maybe NodeId -> TabType -> ClientM (HashedResponse (ChartMetrics Histo))
219 postCorpusPieUpdate :: Token -> CorpusId -> Maybe NodeId -> TabType -> Maybe Int -> ClientM ()
220 getCorpusPieHash :: Token -> CorpusId -> Maybe NodeId -> TabType -> ClientM Text
221 getCorpusTree :: Token -> CorpusId -> Maybe UTCTime -> Maybe UTCTime -> Maybe NodeId -> TabType -> ListType -> ClientM (HashedResponse (ChartMetrics (Vector NgramsTree)))
222 postCorpusTreeUpdate :: Token -> CorpusId -> Maybe NodeId -> TabType -> ListType -> ClientM ()
223 getCorpusTreeHash :: Token -> CorpusId -> Maybe NodeId -> TabType -> ListType -> ClientM Text
224 getCorpusPhylo :: Token -> CorpusId -> Maybe NodeId -> Maybe Int -> Maybe Int -> ClientM Aeson.Value
225 putCorpusPhylo :: Token -> CorpusId -> Maybe NodeId -> ClientM NodeId
226
227 putCorpusMove :: Token -> CorpusId -> ParentId -> ClientM [Int]
228 postCorpusUnpublish :: Token -> CorpusId -> CorpusId -> ClientM Int
229
230 getCorpusFile :: Token -> NodeId -> ClientM (Headers '[Header "Content-Type" Text] BSResponse)
231 postCorpusFileAsync :: Token -> CorpusId -> ClientM (JobStatus 'Safe JobLog)
232 postCorpusFileAsyncJob :: Token -> CorpusId -> JobInput Maybe NewWithFile -> ClientM (JobStatus 'Safe JobLog)
233 killCorpusFileAsyncJob :: Token -> CorpusId -> JobID 'Unsafe -> Maybe Limit -> Maybe Offset -> ClientM (JobStatus 'Safe JobLog)
234 pollCorpusFileAsyncJob :: Token -> CorpusId -> JobID 'Unsafe -> Maybe Limit -> Maybe Offset -> ClientM (JobStatus 'Safe JobLog)
235 waitCorpusFileAsyncJob :: Token -> CorpusId -> JobID 'Unsafe -> ClientM (JobOutput JobLog)
236
237 postCorpusDocumentWriteNodesAsync :: Token -> CorpusId -> ClientM (JobStatus 'Safe JobLog)
238 postCorpusDocumentWriteNodesAsyncJob :: Token -> CorpusId -> JobInput Maybe Params -> ClientM (JobStatus 'Safe JobLog)
239 killCorpusDocumentWriteNodesAsyncJob :: Token -> CorpusId -> JobID 'Unsafe -> Maybe Limit -> Maybe Offset -> ClientM (JobStatus 'Safe JobLog)
240 pollCorpusDocumentWriteNodesAsyncJob :: Token -> CorpusId -> JobID 'Unsafe -> Maybe Limit -> Maybe Offset -> ClientM (JobStatus 'Safe JobLog)
241 waitCorpusDocumentWriteNodesAsyncJob :: Token -> CorpusId -> JobID 'Unsafe -> ClientM (JobOutput JobLog)
242
243 postCorpusDocumentUploadAsync :: Token -> CorpusId -> ClientM (JobStatus 'Safe JobLog)
244 postCorpusDocumentUploadAsyncJob :: Token -> CorpusId -> JobInput Maybe DocumentUpload -> ClientM (JobStatus 'Safe JobLog)
245 killCorpusDocumentUploadAsyncJob :: Token -> CorpusId -> JobID 'Unsafe -> Maybe Limit -> Maybe Offset -> ClientM (JobStatus 'Safe JobLog)
246 pollCorpusDocumentUploadAsyncJob :: Token -> CorpusId -> JobID 'Unsafe -> Maybe Limit -> Maybe Offset -> ClientM (JobStatus 'Safe JobLog)
247 waitCorpusDocumentUploadAsyncJob :: Token -> CorpusId -> JobID 'Unsafe -> ClientM (JobOutput JobLog)
248
249 -- * corpus node/node API
250 getCorpusNodeNode :: Token -> NodeId -> NodeId -> ClientM (Node HyperdataAny)
251
252 -- * corpus export API
253 getCorpusExport :: Token -> CorpusId -> Maybe ListId -> Maybe NgramsType -> ClientM Corpus
254
255 -- * annuaire api
256 getAnnuaire :: Token -> AnnuaireId -> ClientM (Node HyperdataAnnuaire)
257 renameAnnuaire :: Token -> AnnuaireId -> RenameNode -> ClientM [Int]
258 postAnnuaire :: Token -> AnnuaireId -> PostNode -> ClientM [AnnuaireId]
259 postAnnuaireAsync :: Token -> AnnuaireId -> ClientM (JobStatus 'Safe JobLog)
260 postAnnuaireAsyncJob :: Token -> AnnuaireId -> JobInput Maybe PostNode -> ClientM (JobStatus 'Safe JobLog)
261 killAnnuaireAsyncJob :: Token -> AnnuaireId -> JobID 'Unsafe -> Maybe Limit -> Maybe Offset -> ClientM (JobStatus 'Safe JobLog)
262 pollAnnuaireAsyncJob :: Token -> AnnuaireId -> JobID 'Unsafe -> Maybe Limit -> Maybe Offset -> ClientM (JobStatus 'Safe JobLog)
263 waitAnnuaireAsyncJob :: Token -> AnnuaireId -> JobID 'Unsafe -> ClientM (JobOutput JobLog)
264
265 postAnnuaireFrameCalcAsync :: Token -> AnnuaireId -> ClientM (JobStatus 'Safe JobLog)
266 postAnnuaireFrameCalcAsyncJob :: Token -> AnnuaireId -> JobInput Maybe FrameCalcUpload -> ClientM (JobStatus 'Safe JobLog)
267 killAnnuaireFrameCalcAsyncJob :: Token -> AnnuaireId -> JobID 'Unsafe -> Maybe Limit -> Maybe Offset -> ClientM (JobStatus 'Safe JobLog)
268 pollAnnuaireFrameCalcAsyncJob :: Token -> AnnuaireId -> JobID 'Unsafe -> Maybe Limit -> Maybe Offset -> ClientM (JobStatus 'Safe JobLog)
269 waitAnnuaireFrameCalcAsyncJob :: Token -> AnnuaireId -> JobID 'Unsafe -> ClientM (JobOutput JobLog)
270
271 putAnnuaire :: Token -> AnnuaireId -> HyperdataAnnuaire -> ClientM Int
272
273 postUpdateAnnuaireAsync :: Token -> AnnuaireId -> ClientM (JobStatus 'Safe JobLog)
274 postUpdateAnnuaireAsyncJob :: Token -> AnnuaireId -> JobInput Maybe UpdateNodeParams -> ClientM (JobStatus 'Safe JobLog)
275 killUpdateAnnuaireAsyncJob :: Token -> AnnuaireId -> JobID 'Unsafe -> Maybe Limit -> Maybe Offset -> ClientM (JobStatus 'Safe JobLog)
276 pollUpdateAnnuaireAsyncJob :: Token -> AnnuaireId -> JobID 'Unsafe -> Maybe Limit -> Maybe Offset -> ClientM (JobStatus 'Safe JobLog)
277 waitUpdateAnnuaireAsyncJob :: Token -> AnnuaireId -> JobID 'Unsafe -> ClientM (JobOutput JobLog)
278
279 deleteAnnuaire :: Token -> AnnuaireId -> ClientM Int
280 getAnnuaireChildren :: Token -> AnnuaireId -> Maybe NodeType -> Maybe Int -> Maybe Int -> ClientM (NodeTableResult HyperdataAnnuaire)
281
282 getAnnuaireTable :: Token -> AnnuaireId -> Maybe TabType -> Maybe ListId -> Maybe Int -> Maybe Int -> Maybe Facet.OrderBy -> Maybe Text -> ClientM (HashedResponse FacetTableResult)
283 postAnnuaireTableQuery :: Token -> AnnuaireId -> TableQuery -> ClientM FacetTableResult
284 getAnnuaireTableHash :: Token -> AnnuaireId -> Maybe TabType -> ClientM Text
285
286 getAnnuaireNgramsTable :: Token -> AnnuaireId -> TabType -> ListId -> Int -> Maybe Int -> Maybe ListType -> Maybe MinSize -> Maybe MaxSize -> Maybe Ngrams.OrderBy -> Maybe Text -> ClientM (VersionedWithCount NgramsTable)
287 putAnnuaireNgramsTablePatch :: Token -> AnnuaireId -> TabType -> ListId -> Versioned NgramsTablePatch -> ClientM (Versioned NgramsTablePatch)
288 postAnnuaireRecomputeNgramsTableScores :: Token -> AnnuaireId -> TabType -> ListId -> ClientM Int
289 getAnnuaireNgramsTableVersion :: Token -> AnnuaireId -> TabType -> ListId -> ClientM Version
290 postAnnuaireUpdateNgramsTableChartsAsync :: Token -> AnnuaireId -> ClientM (JobStatus 'Safe JobLog)
291 postAnnuaireUpdateNgramsTableChartsAsyncJob :: Token -> AnnuaireId -> JobInput Maybe UpdateTableNgramsCharts -> ClientM (JobStatus 'Safe JobLog)
292 killAnnuaireUpdateNgramsTableChartsAsyncJob :: Token -> AnnuaireId -> JobID 'Unsafe -> Maybe Limit -> Maybe Offset -> ClientM (JobStatus 'Safe JobLog)
293 pollAnnuaireUpdateNgramsTableChartsAsyncJob :: Token -> AnnuaireId -> JobID 'Unsafe -> Maybe Limit -> Maybe Offset -> ClientM (JobStatus 'Safe JobLog)
294 waitAnnuaireUpdateNgramsTableChartsAsyncJob :: Token -> AnnuaireId -> JobID 'Unsafe -> ClientM (JobOutput JobLog)
295
296 putAnnuaireCategory :: Token -> AnnuaireId -> NodesToCategory -> ClientM [Int]
297 putAnnuaireScore :: Token -> AnnuaireId -> NodesToScore -> ClientM [Int]
298
299 postAnnuaireSearch :: Token -> AnnuaireId -> SearchQuery -> Maybe Int -> Maybe Int -> Maybe Facet.OrderBy -> ClientM SearchResult
300 postAnnuaireShare :: Token -> AnnuaireId -> ShareNodeParams -> ClientM Int
301
302 postAnnuairePairCorpusAnnuaire :: Token -> AnnuaireId -> AnnuaireId -> Maybe ListId -> ClientM Int
303 getAnnuairePairs :: Token -> AnnuaireId -> ClientM [AnnuaireId]
304 getAnnuairePairings :: Token -> AnnuaireId -> Maybe TabType -> Maybe Int -> Maybe Int -> Maybe Facet.OrderBy -> ClientM [FacetDoc]
305
306 getAnnuaireScatterMetrics :: Token -> AnnuaireId -> Maybe NodeId -> TabType -> Maybe Int -> ClientM (HashedResponse Metrics)
307 postAnnuaireScatterMetricsUpdate :: Token -> AnnuaireId -> Maybe NodeId -> TabType -> Maybe Int -> ClientM ()
308 getAnnuaireScatterMetricsHash :: Token -> AnnuaireId -> Maybe NodeId -> TabType -> ClientM Text
309 getAnnuaireChart :: Token -> AnnuaireId -> Maybe UTCTime -> Maybe UTCTime -> Maybe NodeId -> TabType -> ClientM (HashedResponse (ChartMetrics Histo))
310 postAnnuaireChartUpdate :: Token -> AnnuaireId -> Maybe NodeId -> TabType -> Maybe Int -> ClientM ()
311 getAnnuaireChartHash :: Token -> AnnuaireId -> Maybe NodeId -> TabType -> ClientM Text
312 getAnnuairePie :: Token -> AnnuaireId -> Maybe UTCTime -> Maybe UTCTime -> Maybe NodeId -> TabType -> ClientM (HashedResponse (ChartMetrics Histo))
313 postAnnuairePieUpdate :: Token -> AnnuaireId -> Maybe NodeId -> TabType -> Maybe Int -> ClientM ()
314 getAnnuairePieHash :: Token -> AnnuaireId -> Maybe NodeId -> TabType -> ClientM Text
315 getAnnuaireTree :: Token -> AnnuaireId -> Maybe UTCTime -> Maybe UTCTime -> Maybe NodeId -> TabType -> ListType -> ClientM (HashedResponse (ChartMetrics (Vector NgramsTree)))
316 postAnnuaireTreeUpdate :: Token -> AnnuaireId -> Maybe NodeId -> TabType -> ListType -> ClientM ()
317 getAnnuaireTreeHash :: Token -> AnnuaireId -> Maybe NodeId -> TabType -> ListType -> ClientM Text
318 getAnnuairePhylo :: Token -> AnnuaireId -> Maybe NodeId -> Maybe Int -> Maybe Int -> ClientM Aeson.Value
319 putAnnuairePhylo :: Token -> AnnuaireId -> Maybe NodeId -> ClientM NodeId
320
321 putAnnuaireMove :: Token -> AnnuaireId -> ParentId -> ClientM [Int]
322 postAnnuaireUnpublish :: Token -> AnnuaireId -> AnnuaireId -> ClientM Int
323
324 getAnnuaireFile :: Token -> AnnuaireId -> ClientM (Headers '[Header "Content-Type" Text] BSResponse)
325 postAnnuaireFileAsync :: Token -> AnnuaireId -> ClientM (JobStatus 'Safe JobLog)
326 postAnnuaireFileAsyncJob :: Token -> AnnuaireId -> JobInput Maybe NewWithFile -> ClientM (JobStatus 'Safe JobLog)
327 killAnnuaireFileAsyncJob :: Token -> AnnuaireId -> JobID 'Unsafe -> Maybe Limit -> Maybe Offset -> ClientM (JobStatus 'Safe JobLog)
328 pollAnnuaireFileAsyncJob :: Token -> AnnuaireId -> JobID 'Unsafe -> Maybe Limit -> Maybe Offset -> ClientM (JobStatus 'Safe JobLog)
329 waitAnnuaireFileAsyncJob :: Token -> AnnuaireId -> JobID 'Unsafe -> ClientM (JobOutput JobLog)
330
331 postAnnuaireDocumentWriteNodesAsync :: Token -> AnnuaireId -> ClientM (JobStatus 'Safe JobLog)
332 postAnnuaireDocumentWriteNodesAsyncJob :: Token -> AnnuaireId -> JobInput Maybe Params -> ClientM (JobStatus 'Safe JobLog)
333 killAnnuaireDocumentWriteNodesAsyncJob :: Token -> AnnuaireId -> JobID 'Unsafe -> Maybe Limit -> Maybe Offset -> ClientM (JobStatus 'Safe JobLog)
334 pollAnnuaireDocumentWriteNodesAsyncJob :: Token -> AnnuaireId -> JobID 'Unsafe -> Maybe Limit -> Maybe Offset -> ClientM (JobStatus 'Safe JobLog)
335 waitAnnuaireDocumentWriteNodesAsyncJob :: Token -> AnnuaireId -> JobID 'Unsafe -> ClientM (JobOutput JobLog)
336
337 postAnnuaireDocumentUploadAsync :: Token -> AnnuaireId -> ClientM (JobStatus 'Safe JobLog)
338 postAnnuaireDocumentUploadAsyncJob :: Token -> AnnuaireId -> JobInput Maybe DocumentUpload -> ClientM (JobStatus 'Safe JobLog)
339 killAnnuaireDocumentUploadAsyncJob :: Token -> AnnuaireId -> JobID 'Unsafe -> Maybe Limit -> Maybe Offset -> ClientM (JobStatus 'Safe JobLog)
340 pollAnnuaireDocumentUploadAsyncJob :: Token -> AnnuaireId -> JobID 'Unsafe -> Maybe Limit -> Maybe Offset -> ClientM (JobStatus 'Safe JobLog)
341 waitAnnuaireDocumentUploadAsyncJob :: Token -> AnnuaireId -> JobID 'Unsafe -> ClientM (JobOutput JobLog)
342
343 -- * contact api
344 postAnnuaireContactAsync :: Token -> AnnuaireId -> ClientM (JobStatus 'Safe JobLog)
345 postAnnuaireContactAsyncJob :: Token -> AnnuaireId -> JobInput Maybe AddContactParams -> ClientM (JobStatus 'Safe JobLog)
346 killAnnuaireContactAsyncJob :: Token -> AnnuaireId -> JobID 'Unsafe -> Maybe Limit -> Maybe Offset -> ClientM (JobStatus 'Safe JobLog)
347 pollAnnuaireContactAsyncJob :: Token -> AnnuaireId -> JobID 'Unsafe -> Maybe Limit -> Maybe Offset -> ClientM (JobStatus 'Safe JobLog)
348 waitAnnuaireContactAsyncJob :: Token -> AnnuaireId -> JobID 'Unsafe -> ClientM (JobOutput JobLog)
349
350 -- * contact node/node API
351 getAnnuaireContactNodeNode :: Token -> NodeId -> NodeId -> ClientM (Node HyperdataContact)
352
353 -- * document ngrams api
354 getDocumentNgramsTable :: Token -> DocId -> TabType -> ListId -> Int -> Maybe Int -> Maybe ListType -> Maybe MinSize -> Maybe MaxSize -> Maybe Ngrams.OrderBy -> Maybe Text -> ClientM (VersionedWithCount NgramsTable)
355 putDocumentNgramsTable :: Token -> DocId -> TabType -> ListId -> Versioned NgramsTablePatch -> ClientM (Versioned NgramsTablePatch)
356 postRecomputeDocumentNgramsTableScore :: Token -> DocId -> TabType -> ListId -> ClientM Int
357 getDocumentNgramsTableVersion :: Token -> DocId -> TabType -> ListId -> ClientM Version
358 postDocumentNgramsTableAsync :: Token -> DocId -> ClientM (JobStatus 'Safe JobLog)
359 postDocumentNgramsTableAsyncJob :: Token -> DocId -> JobInput Maybe UpdateTableNgramsCharts -> ClientM (JobStatus 'Safe JobLog)
360 killDocumentNgramsTableAsyncJob :: Token -> DocId -> JobID 'Unsafe -> Maybe Limit -> Maybe Offset -> ClientM (JobStatus 'Safe JobLog)
361 pollDocumentNgramsTableAsyncJob :: Token -> DocId -> JobID 'Unsafe -> Maybe Limit -> Maybe Offset -> ClientM (JobStatus 'Safe JobLog)
362 waitDocumentNgramsTableAsyncJob :: Token -> DocId -> JobID 'Unsafe -> ClientM (JobOutput JobLog)
363
364 -- * document export API
365 getDocumentExportJSON :: Token -> DocId -> ClientM DocumentExport.DocumentExport
366 getDocumentExportCSV :: Token -> DocId -> ClientM Text
367
368 -- * count api
369 postCountQuery :: Token -> Query -> ClientM Counts
370
371 -- * graph api
372 getGraphHyperdata :: Token -> NodeId -> ClientM HyperdataGraphAPI
373 postGraphAsync :: Token -> NodeId -> ClientM (JobStatus 'Safe JobLog)
374 postGraphAsyncJob :: Token -> NodeId -> JobInput Maybe () -> ClientM (JobStatus 'Safe JobLog)
375 killGraphAsyncJob :: Token -> NodeId -> JobID 'Unsafe -> Maybe Limit -> Maybe Offset -> ClientM (JobStatus 'Safe JobLog)
376 pollGraphAsyncJob :: Token -> NodeId -> JobID 'Unsafe -> Maybe Limit -> Maybe Offset -> ClientM (JobStatus 'Safe JobLog)
377 waitGraphAsyncJob :: Token -> NodeId -> JobID 'Unsafe -> ClientM (JobOutput JobLog)
378
379 postGraphClone :: Token -> NodeId -> HyperdataGraphAPI -> ClientM NodeId
380 getGraphGexf :: Token -> NodeId -> ClientM (Headers '[Header "Content-Disposition" Text] Graph)
381 getGraphVersions :: Token -> NodeId -> ClientM GraphVersions
382 postGraphRecomputeVersion :: Token -> NodeId -> ClientM Graph
383 getTree :: Token -> NodeId -> [NodeType] -> ClientM (Tree NodeTree)
384 getTreeFirstLevel :: Token -> NodeId -> [NodeType] -> ClientM (Tree NodeTree)
385
386 -- * new corpus API
387 postNewCorpusWithFormAsync :: Token -> NodeId -> ClientM (JobStatus 'Safe JobLog)
388 postNewCorpusWithFormAsyncJob :: Token -> NodeId -> JobInput Maybe NewWithForm -> ClientM (JobStatus 'Safe JobLog)
389 killNewCorpusWithFormAsyncJob :: Token -> NodeId -> JobID 'Unsafe -> Maybe Limit -> Maybe Offset -> ClientM (JobStatus 'Safe JobLog)
390 pollNewCorpusWithFormAsyncJob :: Token -> NodeId -> JobID 'Unsafe -> Maybe Limit -> Maybe Offset -> ClientM (JobStatus 'Safe JobLog)
391 waitNewCorpusWithFormAsyncJob :: Token -> NodeId -> JobID 'Unsafe -> ClientM (JobOutput JobLog)
392
393 postNewCorpusWithQueryAsync :: Token -> NodeId -> ClientM (JobStatus 'Safe JobLog)
394 postNewCorpusWithQueryAsyncJob :: Token -> NodeId -> JobInput Maybe WithQuery -> ClientM (JobStatus 'Safe JobLog)
395 killNewCorpusWithQueryAsyncJob :: Token -> NodeId -> JobID 'Unsafe -> Maybe Limit -> Maybe Offset -> ClientM (JobStatus 'Safe JobLog)
396 pollNewCorpusWithQueryAsyncJob :: Token -> NodeId -> JobID 'Unsafe -> Maybe Limit -> Maybe Offset -> ClientM (JobStatus 'Safe JobLog)
397 waitNewCorpusWithQueryAsyncJob :: Token -> NodeId -> JobID 'Unsafe -> ClientM (JobOutput JobLog)
398
399 -- * list API
400 getList :: Token -> NodeId -> ClientM (Headers '[Header "Content-Disposition" Text] (Map NgramsType (Versioned NgramsTableMap)))
401 postListJsonUpdateAsync :: Token -> NodeId -> ClientM (JobStatus 'Safe JobLog)
402 postListJsonUpdateAsyncJob :: Token -> NodeId -> JobInput Maybe WithFile -> ClientM (JobStatus 'Safe JobLog)
403 killListJsonUpdateAsyncJob :: Token -> NodeId -> JobID 'Unsafe -> Maybe Limit -> Maybe Offset -> ClientM (JobStatus 'Safe JobLog)
404 pollListJsonUpdateAsyncJob :: Token -> NodeId -> JobID 'Unsafe -> Maybe Limit -> Maybe Offset -> ClientM (JobStatus 'Safe JobLog)
405 waitListJsonUpdateAsyncJob :: Token -> NodeId -> JobID 'Unsafe -> ClientM (JobOutput JobLog)
406
407 postListCsvUpdateAsync :: Token -> NodeId -> ClientM (JobStatus 'Safe JobLog)
408 postListCsvUpdateAsyncJob :: Token -> NodeId -> JobInput Maybe WithTextFile -> ClientM (JobStatus 'Safe JobLog)
409 killListCsvUpdateAsyncJob :: Token -> NodeId -> JobID 'Unsafe -> Maybe Limit -> Maybe Offset -> ClientM (JobStatus 'Safe JobLog)
410 pollListCsvUpdateAsyncJob :: Token -> NodeId -> JobID 'Unsafe -> Maybe Limit -> Maybe Offset -> ClientM (JobStatus 'Safe JobLog)
411 waitListCsvUpdateAsyncJob :: Token -> NodeId -> JobID 'Unsafe -> ClientM (JobOutput JobLog)
412
413 -- * public API
414 getPublicData :: ClientM [PublicData]
415 getPublicNodeFile :: NodeId -> ClientM (Headers '[Header "Content-Type" Text] BSResponse)
416
417 -- * ekg api
418 -- | get a sample of all metrics
419 getMetricsSample :: ClientM Sample
420 -- | open @<backend:port\/ekg\/index.html@ to see a list of metrics
421 getMetricSample :: [Text] -> ClientM Value
422
423 -- * unpacking of client functions to derive all the individual clients
424
425 clientApi :: Client ClientM (Flat GargAPI)
426 clientApi = client (flatten apiGarg)
427
428 getMetricsSample :<|> getMetricSample :<|> _ = client (Proxy :: Proxy (Flat EkgAPI))
429
430 postAuth
431 :<|> getBackendVersion
432 :<|> getRoots
433 :<|> putRoots
434 :<|> deleteNodes
435 :<|> getNode
436 :<|> renameNode
437 :<|> postNode
438 :<|> postNodeAsync
439 :<|> postNodeAsyncJob
440 :<|> killNodeAsyncJob
441 :<|> pollNodeAsyncJob
442 :<|> waitNodeAsyncJob
443 :<|> postNodeFrameCalcAsync
444 :<|> postNodeFrameCalcAsyncJob
445 :<|> killNodeFrameCalcAsyncJob
446 :<|> pollNodeFrameCalcAsyncJob
447 :<|> waitNodeFrameCalcAsyncJob
448 :<|> putNode
449 :<|> postUpdateNodeAsync
450 :<|> postUpdateNodeAsyncJob
451 :<|> killUpdateNodeAsyncJob
452 :<|> pollUpdateNodeAsyncJob
453 :<|> waitUpdateNodeAsyncJob
454 :<|> deleteNode
455 :<|> getNodeChildren
456 :<|> getNodeTable
457 :<|> postNodeTableQuery
458 :<|> getNodeTableHash
459 :<|> getNodeNgramsTable
460 :<|> putNodeNgramsTablePatch
461 :<|> postNodeRecomputeNgramsTableScores
462 :<|> getNodeNgramsTableVersion
463 :<|> postNodeUpdateNgramsTableChartsAsync
464 :<|> postNodeUpdateNgramsTableChartsAsyncJob
465 :<|> killNodeUpdateNgramsTableChartsAsyncJob
466 :<|> pollNodeUpdateNgramsTableChartsAsyncJob
467 :<|> waitNodeUpdateNgramsTableChartsAsyncJob
468 :<|> putNodeCategory
469 :<|> putNodeScore
470 :<|> postNodeSearch
471 :<|> postNodeShare
472 :<|> postNodePairCorpusAnnuaire
473 :<|> getNodePairs
474 :<|> getNodePairings
475 :<|> getNodeScatterMetrics
476 :<|> postNodeScatterMetricsUpdate
477 :<|> getNodeScatterMetricsHash
478 :<|> getNodeChart
479 :<|> postNodeChartUpdate
480 :<|> getNodeChartHash
481 :<|> getNodePie
482 :<|> postNodePieUpdate
483 :<|> getNodePieHash
484 :<|> getNodeTree
485 :<|> postNodeTreeUpdate
486 :<|> getNodeTreeHash
487 :<|> getNodePhylo
488 :<|> putNodePhylo
489 :<|> putNodeMove
490 :<|> postNodeUnpublish
491 :<|> getNodeFile
492 :<|> postNodeFileAsync
493 :<|> postNodeFileAsyncJob
494 :<|> killNodeFileAsyncJob
495 :<|> pollNodeFileAsyncJob
496 :<|> waitNodeFileAsyncJob
497 :<|> postNodeDocumentWriteNodesAsync
498 :<|> postNodeDocumentWriteNodesAsyncJob
499 :<|> killNodeDocumentWriteNodesAsyncJob
500 :<|> pollNodeDocumentWriteNodesAsyncJob
501 :<|> waitNodeDocumentWriteNodesAsyncJob
502 :<|> postNodeDocumentUploadAsync
503 :<|> postNodeDocumentUploadAsyncJob
504 :<|> killNodeDocumentUploadAsyncJob
505 :<|> pollNodeDocumentUploadAsyncJob
506 :<|> waitNodeDocumentUploadAsyncJob
507 :<|> getContext
508 :<|> getCorpus
509 :<|> renameCorpus
510 :<|> postCorpus
511 :<|> postCorpusAsync
512 :<|> postCorpusAsyncJob
513 :<|> killCorpusAsyncJob
514 :<|> pollCorpusAsyncJob
515 :<|> waitCorpusAsyncJob
516 :<|> postCorpusFrameCalcAsync
517 :<|> postCorpusFrameCalcAsyncJob
518 :<|> killCorpusFrameCalcAsyncJob
519 :<|> pollCorpusFrameCalcAsyncJob
520 :<|> waitCorpusFrameCalcAsyncJob
521 :<|> putCorpus
522 :<|> postUpdateCorpusAsync
523 :<|> postUpdateCorpusAsyncJob
524 :<|> killUpdateCorpusAsyncJob
525 :<|> pollUpdateCorpusAsyncJob
526 :<|> waitUpdateCorpusAsyncJob
527 :<|> deleteCorpus
528 :<|> getCorpusChildren
529 :<|> getCorpusTable
530 :<|> postCorpusTableQuery
531 :<|> getCorpusTableHash
532 :<|> getCorpusNgramsTable
533 :<|> putCorpusNgramsTablePatch
534 :<|> postCorpusRecomputeNgramsTableScores
535 :<|> getCorpusNgramsTableVersion
536 :<|> postCorpusUpdateNgramsTableChartsAsync
537 :<|> postCorpusUpdateNgramsTableChartsAsyncJob
538 :<|> killCorpusUpdateNgramsTableChartsAsyncJob
539 :<|> pollCorpusUpdateNgramsTableChartsAsyncJob
540 :<|> waitCorpusUpdateNgramsTableChartsAsyncJob
541 :<|> putCorpusCategory
542 :<|> putCorpusScore
543 :<|> postCorpusSearch
544 :<|> postCorpusShare
545 :<|> postCorpusPairCorpusAnnuaire
546 :<|> getCorpusPairs
547 :<|> getCorpusPairings
548 :<|> getCorpusScatterMetrics
549 :<|> postCorpusScatterMetricsUpdate
550 :<|> getCorpusScatterMetricsHash
551 :<|> getCorpusChart
552 :<|> postCorpusChartUpdate
553 :<|> getCorpusChartHash
554 :<|> getCorpusPie
555 :<|> postCorpusPieUpdate
556 :<|> getCorpusPieHash
557 :<|> getCorpusTree
558 :<|> postCorpusTreeUpdate
559 :<|> getCorpusTreeHash
560 :<|> getCorpusPhylo
561 :<|> putCorpusPhylo
562 :<|> putCorpusMove
563 :<|> postCorpusUnpublish
564 :<|> getCorpusFile
565 :<|> postCorpusFileAsync
566 :<|> postCorpusFileAsyncJob
567 :<|> killCorpusFileAsyncJob
568 :<|> pollCorpusFileAsyncJob
569 :<|> waitCorpusFileAsyncJob
570 :<|> postCorpusDocumentWriteNodesAsync
571 :<|> postCorpusDocumentWriteNodesAsyncJob
572 :<|> killCorpusDocumentWriteNodesAsyncJob
573 :<|> pollCorpusDocumentWriteNodesAsyncJob
574 :<|> waitCorpusDocumentWriteNodesAsyncJob
575 :<|> postCorpusDocumentUploadAsync
576 :<|> postCorpusDocumentUploadAsyncJob
577 :<|> killCorpusDocumentUploadAsyncJob
578 :<|> pollCorpusDocumentUploadAsyncJob
579 :<|> waitCorpusDocumentUploadAsyncJob
580 :<|> getCorpusNodeNode
581 :<|> getCorpusExport
582 :<|> getAnnuaire
583 :<|> renameAnnuaire
584 :<|> postAnnuaire
585 :<|> postAnnuaireAsync
586 :<|> postAnnuaireAsyncJob
587 :<|> killAnnuaireAsyncJob
588 :<|> pollAnnuaireAsyncJob
589 :<|> waitAnnuaireAsyncJob
590 :<|> postAnnuaireFrameCalcAsync
591 :<|> postAnnuaireFrameCalcAsyncJob
592 :<|> killAnnuaireFrameCalcAsyncJob
593 :<|> pollAnnuaireFrameCalcAsyncJob
594 :<|> waitAnnuaireFrameCalcAsyncJob
595 :<|> putAnnuaire
596 :<|> postUpdateAnnuaireAsync
597 :<|> postUpdateAnnuaireAsyncJob
598 :<|> killUpdateAnnuaireAsyncJob
599 :<|> pollUpdateAnnuaireAsyncJob
600 :<|> waitUpdateAnnuaireAsyncJob
601 :<|> deleteAnnuaire
602 :<|> getAnnuaireChildren
603 :<|> getAnnuaireTable
604 :<|> postAnnuaireTableQuery
605 :<|> getAnnuaireTableHash
606 :<|> getAnnuaireNgramsTable
607 :<|> putAnnuaireNgramsTablePatch
608 :<|> postAnnuaireRecomputeNgramsTableScores
609 :<|> getAnnuaireNgramsTableVersion
610 :<|> postAnnuaireUpdateNgramsTableChartsAsync
611 :<|> postAnnuaireUpdateNgramsTableChartsAsyncJob
612 :<|> killAnnuaireUpdateNgramsTableChartsAsyncJob
613 :<|> pollAnnuaireUpdateNgramsTableChartsAsyncJob
614 :<|> waitAnnuaireUpdateNgramsTableChartsAsyncJob
615 :<|> putAnnuaireCategory
616 :<|> putAnnuaireScore
617 :<|> postAnnuaireSearch
618 :<|> postAnnuaireShare
619 :<|> postAnnuairePairCorpusAnnuaire
620 :<|> getAnnuairePairs
621 :<|> getAnnuairePairings
622 :<|> getAnnuaireScatterMetrics
623 :<|> postAnnuaireScatterMetricsUpdate
624 :<|> getAnnuaireScatterMetricsHash
625 :<|> getAnnuaireChart
626 :<|> postAnnuaireChartUpdate
627 :<|> getAnnuaireChartHash
628 :<|> getAnnuairePie
629 :<|> postAnnuairePieUpdate
630 :<|> getAnnuairePieHash
631 :<|> getAnnuaireTree
632 :<|> postAnnuaireTreeUpdate
633 :<|> getAnnuaireTreeHash
634 :<|> getAnnuairePhylo
635 :<|> putAnnuairePhylo
636 :<|> putAnnuaireMove
637 :<|> postAnnuaireUnpublish
638 :<|> getAnnuaireFile
639 :<|> postAnnuaireFileAsync
640 :<|> postAnnuaireFileAsyncJob
641 :<|> killAnnuaireFileAsyncJob
642 :<|> pollAnnuaireFileAsyncJob
643 :<|> waitAnnuaireFileAsyncJob
644 :<|> postAnnuaireDocumentWriteNodesAsync
645 :<|> postAnnuaireDocumentWriteNodesAsyncJob
646 :<|> killAnnuaireDocumentWriteNodesAsyncJob
647 :<|> pollAnnuaireDocumentWriteNodesAsyncJob
648 :<|> waitAnnuaireDocumentWriteNodesAsyncJob
649 :<|> postAnnuaireDocumentUploadAsync
650 :<|> postAnnuaireDocumentUploadAsyncJob
651 :<|> killAnnuaireDocumentUploadAsyncJob
652 :<|> pollAnnuaireDocumentUploadAsyncJob
653 :<|> waitAnnuaireDocumentUploadAsyncJob
654 :<|> postAnnuaireContactAsync
655 :<|> postAnnuaireContactAsyncJob
656 :<|> killAnnuaireContactAsyncJob
657 :<|> pollAnnuaireContactAsyncJob
658 :<|> waitAnnuaireContactAsyncJob
659 :<|> getAnnuaireContactNodeNode
660 :<|> getDocumentNgramsTable
661 :<|> putDocumentNgramsTable
662 :<|> postRecomputeDocumentNgramsTableScore
663 :<|> getDocumentNgramsTableVersion
664 :<|> postDocumentNgramsTableAsync
665 :<|> postDocumentNgramsTableAsyncJob
666 :<|> killDocumentNgramsTableAsyncJob
667 :<|> pollDocumentNgramsTableAsyncJob
668 :<|> waitDocumentNgramsTableAsyncJob
669 :<|> getDocumentExportJSON
670 :<|> getDocumentExportCSV
671 :<|> postCountQuery
672 :<|> getGraphHyperdata
673 :<|> postGraphAsync
674 :<|> postGraphAsyncJob
675 :<|> killGraphAsyncJob
676 :<|> pollGraphAsyncJob
677 :<|> waitGraphAsyncJob
678 :<|> postGraphClone
679 :<|> getGraphGexf
680 :<|> getGraphVersions
681 :<|> postGraphRecomputeVersion
682 :<|> getTree
683 :<|> getTreeFirstLevel
684 :<|> postNewCorpusWithFormAsync
685 :<|> postNewCorpusWithFormAsyncJob
686 :<|> killNewCorpusWithFormAsyncJob
687 :<|> pollNewCorpusWithFormAsyncJob
688 :<|> waitNewCorpusWithFormAsyncJob
689 :<|> postNewCorpusWithQueryAsync
690 :<|> postNewCorpusWithQueryAsyncJob
691 :<|> killNewCorpusWithQueryAsyncJob
692 :<|> pollNewCorpusWithQueryAsyncJob
693 :<|> waitNewCorpusWithQueryAsyncJob
694 :<|> getList
695 :<|> postListJsonUpdateAsync
696 :<|> postListJsonUpdateAsyncJob
697 :<|> killListJsonUpdateAsyncJob
698 :<|> pollListJsonUpdateAsyncJob
699 :<|> waitListJsonUpdateAsyncJob
700 :<|> postListCsvUpdateAsync
701 :<|> postListCsvUpdateAsyncJob
702 :<|> killListCsvUpdateAsyncJob
703 :<|> pollListCsvUpdateAsyncJob
704 :<|> waitListCsvUpdateAsyncJob
705 :<|> getPublicData
706 :<|> getPublicNodeFile
707 = clientApi