1818import com .formkiq .stacks .client .models .AddDocusignResponse ;
1919import com .formkiq .stacks .client .models .AddTagSchemaResponse ;
2020import com .formkiq .stacks .client .models .AddWebhookResponse ;
21+ import com .formkiq .stacks .client .models .ApiKey ;
22+ import com .formkiq .stacks .client .models .ApiKeys ;
23+ import com .formkiq .stacks .client .models .Configuration ;
2124import com .formkiq .stacks .client .models .Document ;
2225import com .formkiq .stacks .client .models .DocumentActions ;
2326import com .formkiq .stacks .client .models .DocumentFulltext ;
3740import com .formkiq .stacks .client .models .Version ;
3841import com .formkiq .stacks .client .models .WebhookTags ;
3942import com .formkiq .stacks .client .models .Webhooks ;
43+ import com .formkiq .stacks .client .requests .AddApiKeyRequest ;
44+ import com .formkiq .stacks .client .requests .AddDocumentActionRequest ;
4045import com .formkiq .stacks .client .requests .AddDocumentOcrRequest ;
4146import com .formkiq .stacks .client .requests .AddDocumentRequest ;
4247import com .formkiq .stacks .client .requests .AddDocumentTagRequest ;
4550import com .formkiq .stacks .client .requests .AddTagSchemaRequest ;
4651import com .formkiq .stacks .client .requests .AddWebhookRequest ;
4752import com .formkiq .stacks .client .requests .AddWebhookTagRequest ;
53+ import com .formkiq .stacks .client .requests .DeleteApiKeyRequest ;
4854import com .formkiq .stacks .client .requests .DeleteDocumentFulltextRequest ;
4955import com .formkiq .stacks .client .requests .DeleteDocumentOcrRequest ;
5056import com .formkiq .stacks .client .requests .DeleteDocumentRequest ;
7884import com .formkiq .stacks .client .requests .SetDocumentOcrRequest ;
7985import com .formkiq .stacks .client .requests .SetDocumentVersionRequest ;
8086import com .formkiq .stacks .client .requests .SetDocusignConfigRequest ;
87+ import com .formkiq .stacks .client .requests .UpdateConfigurationRequest ;
8188import com .formkiq .stacks .client .requests .UpdateDocumentFulltextRequest ;
8289import com .formkiq .stacks .client .requests .UpdateDocumentRequest ;
8390import com .formkiq .stacks .client .requests .UpdateDocumentTagKeyRequest ;
8895 */
8996public interface FormKiqClient {
9097
98+ /**
99+ * POST /configs/apiKey.
100+ *
101+ * @param request {@link AddApiKeyRequest}
102+ * @return {@link ApiKey}
103+ *
104+ * @throws IOException IOException
105+ * @throws InterruptedException InterruptedException
106+ */
107+ ApiKey addApiKey (AddApiKeyRequest request ) throws IOException , InterruptedException ;
108+
91109 /**
92110 * POST(Add) /documents.
93111 *
@@ -99,6 +117,16 @@ public interface FormKiqClient {
99117 AddDocumentResponse addDocument (AddDocumentRequest request )
100118 throws IOException , InterruptedException ;
101119
120+ /**
121+ * POST /documents/{documentId}/action.
122+ *
123+ * @param request {@link AddDocumentActionRequest}
124+ *
125+ * @throws IOException IOException
126+ * @throws InterruptedException InterruptedException
127+ */
128+ void addDocumentAction (AddDocumentActionRequest request ) throws IOException , InterruptedException ;
129+
102130 /**
103131 * POST /documents/{documentId}/ocr.
104132 *
@@ -171,6 +199,17 @@ AddTagSchemaResponse addTagSchema(AddTagSchemaRequest request)
171199 */
172200 boolean addWebhookTag (AddWebhookTagRequest request ) throws IOException , InterruptedException ;
173201
202+ /**
203+ * DELETE /configs/apiKey.
204+ *
205+ * @param request {@link DeleteApiKeyRequest}
206+ * @return boolean - Whether the document was successfully deleted
207+ *
208+ * @throws IOException IOException
209+ * @throws InterruptedException InterruptedException
210+ */
211+ boolean deleteApiKey (DeleteApiKeyRequest request ) throws IOException , InterruptedException ;
212+
174213 /**
175214 * DELETE /documents/{documentId}.
176215 *
@@ -207,15 +246,16 @@ boolean deleteDocumentOcr(DeleteDocumentOcrRequest request)
207246 throws IOException , InterruptedException ;
208247
209248 /**
210- * DELETE /indices/{indexType}/{indexKey }.
249+ * DELETE /documents/{documentId}/tags/{tagKey }.
211250 *
212- * @param request {@link DeleteIndicesRequest }
213- * @return boolean - Whether the Indices was successfully deleted
251+ * @param request {@link DeleteDocumentTagRequest }
252+ * @return {@link HttpResponse} {@link String}
214253 *
215- * @throws IOException IOException
216254 * @throws InterruptedException InterruptedException
255+ * @throws IOException IOException
217256 */
218- boolean deleteIndices (DeleteIndicesRequest request ) throws IOException , InterruptedException ;
257+ boolean deleteDocumentTag (DeleteDocumentTagRequest request )
258+ throws IOException , InterruptedException ;
219259
220260 /**
221261 * DELETE /documents/{documentId}/versions/{versionKey}.
@@ -230,28 +270,27 @@ boolean deleteDocumentVersion(DeleteDocumentVersionRequest request)
230270 throws IOException , InterruptedException ;
231271
232272 /**
233- * DELETE /documents/{documentId}/tags/{tagKey} .
273+ * DELETE /documents/{documentId}/fulltext/tags .
234274 *
235- * @param request {@link DeleteDocumentTagRequest }
236- * @return {@link HttpResponse} {@link String}
275+ * @param request {@link DeleteFulltextTagsRequest }
276+ * @return boolean - Whether the document fulltext tags was successfully deleted
237277 *
238- * @throws InterruptedException InterruptedException
239278 * @throws IOException IOException
279+ * @throws InterruptedException InterruptedException
240280 */
241- boolean deleteDocumentTag ( DeleteDocumentTagRequest request )
281+ boolean deleteFulltextTags ( DeleteFulltextTagsRequest request )
242282 throws IOException , InterruptedException ;
243283
244284 /**
245- * DELETE /documents/{documentId}/fulltext/tags .
285+ * DELETE /indices/{indexType}/{indexKey} .
246286 *
247- * @param request {@link DeleteFulltextTagsRequest }
248- * @return boolean - Whether the document fulltext tags was successfully deleted
287+ * @param request {@link DeleteIndicesRequest }
288+ * @return boolean - Whether the Indices was successfully deleted
249289 *
250290 * @throws IOException IOException
251291 * @throws InterruptedException InterruptedException
252292 */
253- boolean deleteFulltextTags (DeleteFulltextTagsRequest request )
254- throws IOException , InterruptedException ;
293+ boolean deleteIndices (DeleteIndicesRequest request ) throws IOException , InterruptedException ;
255294
256295 /**
257296 * DELETE /tagSchemas/{tagSchemaId}.
@@ -275,6 +314,24 @@ boolean deleteFulltextTags(DeleteFulltextTagsRequest request)
275314 */
276315 boolean deleteWebhook (DeleteWebhookRequest request ) throws IOException , InterruptedException ;
277316
317+ /**
318+ * GET /configs/apiKey.
319+ *
320+ * @return {@link HttpResponse}
321+ * @throws IOException IOException
322+ * @throws InterruptedException InterruptedException
323+ */
324+ ApiKeys getApiKeys () throws IOException , InterruptedException ;
325+
326+ /**
327+ * GET /configuration.
328+ *
329+ * @return {@link HttpResponse}
330+ * @throws IOException IOException
331+ * @throws InterruptedException InterruptedException
332+ */
333+ Configuration getConfiguration () throws IOException , InterruptedException ;
334+
278335 /**
279336 * GET /documents/{documentId}.
280337 *
@@ -469,7 +526,6 @@ TagSchemaSummaries getTagSchemas(GetTagSchemasRequest request)
469526 WebhookTags getWebhookTags (GetWebhookTagsRequest request )
470527 throws IOException , InterruptedException ;
471528
472-
473529 /**
474530 * POST /queryFulltext.
475531 *
@@ -480,6 +536,7 @@ WebhookTags getWebhookTags(GetWebhookTagsRequest request)
480536 */
481537 String queryFulltext (QueryFulltextRequest request ) throws IOException , InterruptedException ;
482538
539+
483540 /**
484541 * POST /search.
485542 *
@@ -501,7 +558,6 @@ WebhookTags getWebhookTags(GetWebhookTagsRequest request)
501558 FulltextDocuments searchFulltext (SearchFulltextRequest request )
502559 throws IOException , InterruptedException ;
503560
504-
505561 /**
506562 * PUT /documents/{documentId}/antivirus.
507563 *
@@ -512,6 +568,7 @@ FulltextDocuments searchFulltext(SearchFulltextRequest request)
512568 void setDocumentAntivirus (SetDocumentAntivirusRequest request )
513569 throws IOException , InterruptedException ;
514570
571+
515572 /**
516573 * PUT /documents/{documentId}/fulltext.
517574 *
@@ -550,6 +607,16 @@ void setDocumentVersion(SetDocumentVersionRequest request)
550607 */
551608 void setDocusignConfig (SetDocusignConfigRequest request ) throws IOException , InterruptedException ;
552609
610+ /**
611+ * PATCH(Update) /configuration.
612+ *
613+ * @param request {@link UpdateConfigurationRequest}
614+ * @throws IOException IOException
615+ * @throws InterruptedException InterruptedException
616+ */
617+ void updateConfiguration (UpdateConfigurationRequest request )
618+ throws IOException , InterruptedException ;
619+
553620 /**
554621 * PATCH(Update) /documents/{documentId}.
555622 *
0 commit comments