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