@alien_intelligence/data-api-client 1.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (248) hide show
  1. package/README.md +70 -0
  2. package/dist/apis/AdminApi.d.ts +84 -0
  3. package/dist/apis/AdminApi.js +106 -0
  4. package/dist/apis/DatasetsApi.d.ts +221 -0
  5. package/dist/apis/DatasetsApi.js +250 -0
  6. package/dist/apis/DefaultApi.d.ts +48 -0
  7. package/dist/apis/DefaultApi.js +84 -0
  8. package/dist/apis/EmbeddingsApi.d.ts +111 -0
  9. package/dist/apis/EmbeddingsApi.js +134 -0
  10. package/dist/apis/EntriesApi.d.ts +458 -0
  11. package/dist/apis/EntriesApi.js +500 -0
  12. package/dist/apis/HealthApi.d.ts +118 -0
  13. package/dist/apis/HealthApi.js +125 -0
  14. package/dist/apis/PipelinesApi.d.ts +229 -0
  15. package/dist/apis/PipelinesApi.js +242 -0
  16. package/dist/apis/SearchApi.d.ts +109 -0
  17. package/dist/apis/SearchApi.js +144 -0
  18. package/dist/apis/SyncApi.d.ts +80 -0
  19. package/dist/apis/SyncApi.js +103 -0
  20. package/dist/apis/WebhooksApi.d.ts +94 -0
  21. package/dist/apis/WebhooksApi.js +127 -0
  22. package/dist/apis/WeightsApi.d.ts +276 -0
  23. package/dist/apis/WeightsApi.js +328 -0
  24. package/dist/apis/index.d.ts +11 -0
  25. package/dist/apis/index.js +29 -0
  26. package/dist/index.d.ts +3 -0
  27. package/dist/index.js +21 -0
  28. package/dist/models/ArtifactInputConfig.d.ts +46 -0
  29. package/dist/models/ArtifactInputConfig.js +58 -0
  30. package/dist/models/BatchContentRequest.d.ts +32 -0
  31. package/dist/models/BatchContentRequest.js +50 -0
  32. package/dist/models/BatchContentResponse.d.ts +33 -0
  33. package/dist/models/BatchContentResponse.js +51 -0
  34. package/dist/models/BatchGetEntriesRequest.d.ts +56 -0
  35. package/dist/models/BatchGetEntriesRequest.js +58 -0
  36. package/dist/models/BatchGetEntriesResponse.d.ts +39 -0
  37. package/dist/models/BatchGetEntriesResponse.js +55 -0
  38. package/dist/models/ChunkSearchResponse.d.ts +47 -0
  39. package/dist/models/ChunkSearchResponse.js +57 -0
  40. package/dist/models/ChunkSearchResult.d.ts +52 -0
  41. package/dist/models/ChunkSearchResult.js +58 -0
  42. package/dist/models/CollectionInfo.d.ts +50 -0
  43. package/dist/models/CollectionInfo.js +62 -0
  44. package/dist/models/ComponentArtifact.d.ts +46 -0
  45. package/dist/models/ComponentArtifact.js +54 -0
  46. package/dist/models/ComponentListResponse.d.ts +47 -0
  47. package/dist/models/ComponentListResponse.js +57 -0
  48. package/dist/models/ComponentMetadata.d.ts +95 -0
  49. package/dist/models/ComponentMetadata.js +74 -0
  50. package/dist/models/ComponentParameter.d.ts +48 -0
  51. package/dist/models/ComponentParameter.js +55 -0
  52. package/dist/models/CreateCollectionRequest.d.ts +44 -0
  53. package/dist/models/CreateCollectionRequest.js +54 -0
  54. package/dist/models/Dataset.d.ts +117 -0
  55. package/dist/models/Dataset.js +94 -0
  56. package/dist/models/DatasetCreateRequest.d.ts +58 -0
  57. package/dist/models/DatasetCreateRequest.js +68 -0
  58. package/dist/models/DatasetListResponse.d.ts +51 -0
  59. package/dist/models/DatasetListResponse.js +59 -0
  60. package/dist/models/DatasetPipelineConfigInput.d.ts +62 -0
  61. package/dist/models/DatasetPipelineConfigInput.js +65 -0
  62. package/dist/models/DatasetPipelineConfigOutput.d.ts +62 -0
  63. package/dist/models/DatasetPipelineConfigOutput.js +65 -0
  64. package/dist/models/DatasetResponse.d.ts +124 -0
  65. package/dist/models/DatasetResponse.js +100 -0
  66. package/dist/models/DatasetSchemaDefinition.d.ts +65 -0
  67. package/dist/models/DatasetSchemaDefinition.js +71 -0
  68. package/dist/models/DatasetSchemaOriginal.d.ts +46 -0
  69. package/dist/models/DatasetSchemaOriginal.js +52 -0
  70. package/dist/models/DatasetSchemaProcessed.d.ts +46 -0
  71. package/dist/models/DatasetSchemaProcessed.js +52 -0
  72. package/dist/models/DatasetSchemaProcessing.d.ts +38 -0
  73. package/dist/models/DatasetSchemaProcessing.js +50 -0
  74. package/dist/models/DatasetType.d.ts +27 -0
  75. package/dist/models/DatasetType.js +53 -0
  76. package/dist/models/DatasetUpdateSchemaRequest.d.ts +39 -0
  77. package/dist/models/DatasetUpdateSchemaRequest.js +55 -0
  78. package/dist/models/Default.d.ts +26 -0
  79. package/dist/models/Default.js +38 -0
  80. package/dist/models/EmbeddingProvider.d.ts +27 -0
  81. package/dist/models/EmbeddingProvider.js +53 -0
  82. package/dist/models/EmbeddingResponse.d.ts +57 -0
  83. package/dist/models/EmbeddingResponse.js +67 -0
  84. package/dist/models/Entry.d.ts +130 -0
  85. package/dist/models/Entry.js +100 -0
  86. package/dist/models/EntryContentResponse.d.ts +40 -0
  87. package/dist/models/EntryContentResponse.js +54 -0
  88. package/dist/models/EntryCreateRequest.d.ts +58 -0
  89. package/dist/models/EntryCreateRequest.js +62 -0
  90. package/dist/models/EntryCreateResponse.d.ts +39 -0
  91. package/dist/models/EntryCreateResponse.js +53 -0
  92. package/dist/models/EntryManifest.d.ts +71 -0
  93. package/dist/models/EntryManifest.js +65 -0
  94. package/dist/models/EntryPreview.d.ts +56 -0
  95. package/dist/models/EntryPreview.js +54 -0
  96. package/dist/models/EntrySearchResponse.d.ts +47 -0
  97. package/dist/models/EntrySearchResponse.js +57 -0
  98. package/dist/models/EntrySearchResult.d.ts +65 -0
  99. package/dist/models/EntrySearchResult.js +69 -0
  100. package/dist/models/EntryStatus.d.ts +29 -0
  101. package/dist/models/EntryStatus.js +55 -0
  102. package/dist/models/EntryUpdateRequest.d.ts +53 -0
  103. package/dist/models/EntryUpdateRequest.js +55 -0
  104. package/dist/models/EntryWithContent.d.ts +132 -0
  105. package/dist/models/EntryWithContent.js +102 -0
  106. package/dist/models/FileMetadata.d.ts +62 -0
  107. package/dist/models/FileMetadata.js +64 -0
  108. package/dist/models/GenerateEmbeddingsRequest.d.ts +44 -0
  109. package/dist/models/GenerateEmbeddingsRequest.js +54 -0
  110. package/dist/models/HTTPValidationError.d.ts +33 -0
  111. package/dist/models/HTTPValidationError.js +49 -0
  112. package/dist/models/HealthResponse.d.ts +50 -0
  113. package/dist/models/HealthResponse.js +62 -0
  114. package/dist/models/KeywordSearchHit.d.ts +96 -0
  115. package/dist/models/KeywordSearchHit.js +82 -0
  116. package/dist/models/KeywordSearchRequest.d.ts +102 -0
  117. package/dist/models/KeywordSearchRequest.js +80 -0
  118. package/dist/models/KeywordSearchResponse.d.ts +47 -0
  119. package/dist/models/KeywordSearchResponse.js +57 -0
  120. package/dist/models/ModelInfo.d.ts +51 -0
  121. package/dist/models/ModelInfo.js +63 -0
  122. package/dist/models/OriginalManifest.d.ts +41 -0
  123. package/dist/models/OriginalManifest.js +51 -0
  124. package/dist/models/PipelineStepConfig.d.ts +80 -0
  125. package/dist/models/PipelineStepConfig.js +69 -0
  126. package/dist/models/PresetListResponse.d.ts +42 -0
  127. package/dist/models/PresetListResponse.js +54 -0
  128. package/dist/models/ProcessedManifest.d.ts +59 -0
  129. package/dist/models/ProcessedManifest.js +57 -0
  130. package/dist/models/ProcessingManifest.d.ts +39 -0
  131. package/dist/models/ProcessingManifest.js +51 -0
  132. package/dist/models/RetryFailedWebhooksResponse.d.ts +44 -0
  133. package/dist/models/RetryFailedWebhooksResponse.js +58 -0
  134. package/dist/models/SaveProcessedContentRequest.d.ts +42 -0
  135. package/dist/models/SaveProcessedContentRequest.js +52 -0
  136. package/dist/models/SaveProcessedContentResponse.d.ts +45 -0
  137. package/dist/models/SaveProcessedContentResponse.js +57 -0
  138. package/dist/models/SearchSnippet.d.ts +57 -0
  139. package/dist/models/SearchSnippet.js +65 -0
  140. package/dist/models/SnippetContext.d.ts +68 -0
  141. package/dist/models/SnippetContext.js +75 -0
  142. package/dist/models/UploadFileResponse.d.ts +63 -0
  143. package/dist/models/UploadFileResponse.js +69 -0
  144. package/dist/models/ValidationError.d.ts +45 -0
  145. package/dist/models/ValidationError.js +59 -0
  146. package/dist/models/ValidationErrorLocInner.d.ts +26 -0
  147. package/dist/models/ValidationErrorLocInner.js +38 -0
  148. package/dist/models/VectorSearchRequest.d.ts +71 -0
  149. package/dist/models/VectorSearchRequest.js +60 -0
  150. package/dist/models/WebhookEndpointCreate.d.ts +32 -0
  151. package/dist/models/WebhookEndpointCreate.js +50 -0
  152. package/dist/models/WebhookEndpointResponse.d.ts +50 -0
  153. package/dist/models/WebhookEndpointResponse.js +62 -0
  154. package/dist/models/Weight.d.ts +101 -0
  155. package/dist/models/Weight.js +85 -0
  156. package/dist/models/WeightListResponse.d.ts +51 -0
  157. package/dist/models/WeightListResponse.js +59 -0
  158. package/dist/models/WeightResponse.d.ts +107 -0
  159. package/dist/models/WeightResponse.js +87 -0
  160. package/dist/models/WeightType.d.ts +26 -0
  161. package/dist/models/WeightType.js +52 -0
  162. package/dist/models/index.d.ts +66 -0
  163. package/dist/models/index.js +84 -0
  164. package/dist/runtime.d.ts +182 -0
  165. package/dist/runtime.js +334 -0
  166. package/package.json +38 -0
  167. package/src/apis/AdminApi.ts +140 -0
  168. package/src/apis/DatasetsApi.ts +461 -0
  169. package/src/apis/DefaultApi.ts +79 -0
  170. package/src/apis/EmbeddingsApi.ts +204 -0
  171. package/src/apis/EntriesApi.ts +969 -0
  172. package/src/apis/HealthApi.ts +161 -0
  173. package/src/apis/PipelinesApi.ts +432 -0
  174. package/src/apis/SearchApi.ts +234 -0
  175. package/src/apis/SyncApi.ts +125 -0
  176. package/src/apis/WebhooksApi.ts +191 -0
  177. package/src/apis/WeightsApi.ts +600 -0
  178. package/src/apis/index.ts +13 -0
  179. package/src/index.ts +5 -0
  180. package/src/models/ArtifactInputConfig.ts +86 -0
  181. package/src/models/BatchContentRequest.ts +66 -0
  182. package/src/models/BatchContentResponse.ts +74 -0
  183. package/src/models/BatchGetEntriesRequest.ts +98 -0
  184. package/src/models/BatchGetEntriesResponse.ts +83 -0
  185. package/src/models/ChunkSearchResponse.ts +91 -0
  186. package/src/models/ChunkSearchResult.ts +91 -0
  187. package/src/models/CollectionInfo.ts +93 -0
  188. package/src/models/ComponentArtifact.ts +84 -0
  189. package/src/models/ComponentListResponse.ts +93 -0
  190. package/src/models/ComponentMetadata.ts +158 -0
  191. package/src/models/ComponentParameter.ts +93 -0
  192. package/src/models/CreateCollectionRequest.ts +82 -0
  193. package/src/models/Dataset.ts +200 -0
  194. package/src/models/DatasetCreateRequest.ts +119 -0
  195. package/src/models/DatasetListResponse.ts +99 -0
  196. package/src/models/DatasetPipelineConfigInput.ts +112 -0
  197. package/src/models/DatasetPipelineConfigOutput.ts +112 -0
  198. package/src/models/DatasetResponse.ts +212 -0
  199. package/src/models/DatasetSchemaDefinition.ts +132 -0
  200. package/src/models/DatasetSchemaOriginal.ts +81 -0
  201. package/src/models/DatasetSchemaProcessed.ts +81 -0
  202. package/src/models/DatasetSchemaProcessing.ts +73 -0
  203. package/src/models/DatasetType.ts +55 -0
  204. package/src/models/DatasetUpdateSchemaRequest.ts +83 -0
  205. package/src/models/Default.ts +46 -0
  206. package/src/models/EmbeddingProvider.ts +55 -0
  207. package/src/models/EmbeddingResponse.ts +112 -0
  208. package/src/models/Entry.ts +218 -0
  209. package/src/models/EntryContentResponse.ts +75 -0
  210. package/src/models/EntryCreateRequest.ts +100 -0
  211. package/src/models/EntryCreateResponse.ts +82 -0
  212. package/src/models/EntryManifest.ts +135 -0
  213. package/src/models/EntryPreview.ts +89 -0
  214. package/src/models/EntrySearchResponse.ts +91 -0
  215. package/src/models/EntrySearchResult.ts +118 -0
  216. package/src/models/EntryStatus.ts +57 -0
  217. package/src/models/EntryUpdateRequest.ts +99 -0
  218. package/src/models/EntryWithContent.ts +220 -0
  219. package/src/models/FileMetadata.ts +108 -0
  220. package/src/models/GenerateEmbeddingsRequest.ts +82 -0
  221. package/src/models/HTTPValidationError.ts +73 -0
  222. package/src/models/HealthResponse.ts +93 -0
  223. package/src/models/KeywordSearchHit.ts +166 -0
  224. package/src/models/KeywordSearchRequest.ts +159 -0
  225. package/src/models/KeywordSearchResponse.ts +91 -0
  226. package/src/models/ModelInfo.ts +103 -0
  227. package/src/models/OriginalManifest.ts +81 -0
  228. package/src/models/PipelineStepConfig.ts +135 -0
  229. package/src/models/PresetListResponse.ts +77 -0
  230. package/src/models/ProcessedManifest.ts +105 -0
  231. package/src/models/ProcessingManifest.ts +81 -0
  232. package/src/models/RetryFailedWebhooksResponse.ts +84 -0
  233. package/src/models/SaveProcessedContentRequest.ts +74 -0
  234. package/src/models/SaveProcessedContentResponse.ts +91 -0
  235. package/src/models/SearchSnippet.ts +109 -0
  236. package/src/models/SnippetContext.ts +113 -0
  237. package/src/models/UploadFileResponse.ts +118 -0
  238. package/src/models/ValidationError.ts +92 -0
  239. package/src/models/ValidationErrorLocInner.ts +46 -0
  240. package/src/models/VectorSearchRequest.ts +116 -0
  241. package/src/models/WebhookEndpointCreate.ts +66 -0
  242. package/src/models/WebhookEndpointResponse.ts +93 -0
  243. package/src/models/Weight.ts +170 -0
  244. package/src/models/WeightListResponse.ts +99 -0
  245. package/src/models/WeightResponse.ts +178 -0
  246. package/src/models/WeightType.ts +54 -0
  247. package/src/models/index.ts +68 -0
  248. package/src/runtime.ts +431 -0
@@ -0,0 +1,234 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Client Data API
5
+ * Client Cluster Data API - Manifest-based storage service
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import * as runtime from '../runtime';
17
+ import type {
18
+ ChunkSearchResponse,
19
+ EntrySearchResponse,
20
+ HTTPValidationError,
21
+ KeywordSearchRequest,
22
+ KeywordSearchResponse,
23
+ VectorSearchRequest,
24
+ } from '../models/index';
25
+ import {
26
+ ChunkSearchResponseFromJSON,
27
+ ChunkSearchResponseToJSON,
28
+ EntrySearchResponseFromJSON,
29
+ EntrySearchResponseToJSON,
30
+ HTTPValidationErrorFromJSON,
31
+ HTTPValidationErrorToJSON,
32
+ KeywordSearchRequestFromJSON,
33
+ KeywordSearchRequestToJSON,
34
+ KeywordSearchResponseFromJSON,
35
+ KeywordSearchResponseToJSON,
36
+ VectorSearchRequestFromJSON,
37
+ VectorSearchRequestToJSON,
38
+ } from '../models/index';
39
+
40
+ export interface KeywordSearchApiV1SearchPostRequest {
41
+ keywordSearchRequest: KeywordSearchRequest;
42
+ }
43
+
44
+ export interface VectorSearchChunksApiV1VectorChunksPostRequest {
45
+ vectorSearchRequest: VectorSearchRequest;
46
+ }
47
+
48
+ export interface VectorSearchEntriesApiV1VectorEntriesPostRequest {
49
+ vectorSearchRequest: VectorSearchRequest;
50
+ maxChunksPerEntry?: number;
51
+ }
52
+
53
+ /**
54
+ * SearchApi - interface
55
+ *
56
+ * @export
57
+ * @interface SearchApiInterface
58
+ */
59
+ export interface SearchApiInterface {
60
+ /**
61
+ * **Keyword search endpoint** - Search documents using Meilisearch for full-text and faceted search. This endpoint provides fast keyword search with typo tolerance, relevance ranking, and powerful filtering capabilities. **Features**: - Full-text search across title, description, abstract, text content - Typo tolerance (finds \"machnie\" when searching for \"machine\") - Relevance ranking based on TF-IDF and proximity - Faceted filtering by dataset, status, MIME type, tags - Sorting by date, size, relevance - Highlighted search results **Flow**: 1. Query is sent to Meilisearch 2. Full-text search across indexed fields 3. Filters are applied (dataset_id, status, etc.) 4. Results are ranked and highlighted 5. Metadata is returned (no S3 fetching) **Performance**: Typically < 50ms for most queries **Use cases**: - Keyword-based document discovery - Filtering by metadata (tags, type, dataset) - Search with typo tolerance - Faceted search interfaces - Finding documents by title, author, abstract
62
+ * @summary Keyword/faceted search for documents
63
+ * @param {KeywordSearchRequest} keywordSearchRequest
64
+ * @param {*} [options] Override http request option.
65
+ * @throws {RequiredError}
66
+ * @memberof SearchApiInterface
67
+ */
68
+ keywordSearchApiV1SearchPostRaw(requestParameters: KeywordSearchApiV1SearchPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<KeywordSearchResponse>>;
69
+
70
+ /**
71
+ * **Keyword search endpoint** - Search documents using Meilisearch for full-text and faceted search. This endpoint provides fast keyword search with typo tolerance, relevance ranking, and powerful filtering capabilities. **Features**: - Full-text search across title, description, abstract, text content - Typo tolerance (finds \"machnie\" when searching for \"machine\") - Relevance ranking based on TF-IDF and proximity - Faceted filtering by dataset, status, MIME type, tags - Sorting by date, size, relevance - Highlighted search results **Flow**: 1. Query is sent to Meilisearch 2. Full-text search across indexed fields 3. Filters are applied (dataset_id, status, etc.) 4. Results are ranked and highlighted 5. Metadata is returned (no S3 fetching) **Performance**: Typically < 50ms for most queries **Use cases**: - Keyword-based document discovery - Filtering by metadata (tags, type, dataset) - Search with typo tolerance - Faceted search interfaces - Finding documents by title, author, abstract
72
+ * Keyword/faceted search for documents
73
+ */
74
+ keywordSearchApiV1SearchPost(requestParameters: KeywordSearchApiV1SearchPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<KeywordSearchResponse>;
75
+
76
+ /**
77
+ * **Primary vector search endpoint** - Returns matching text chunks directly from Qdrant. This is the FAST search method that returns chunks without fetching full entry content. Use this when you want quick results with snippet-level granularity. **Auto-Embedding Support**: - Provide `query` (text) for automatic embedding generation - OR provide `query_vector` (pre-computed embeddings) - If both provided, `query_vector` takes precedence **Flow**: 1. If `query` provided: Generate embeddings using configured provider 2. Query vector is sent to Qdrant 3. Matching chunks are returned with scores and metadata 4. No database or S3 lookups (very fast!) **Performance**: - With `query_vector`: < 100ms - With `query` (auto-embed): 500ms-2s (includes embedding generation) **Use cases**: - Quick similarity search - Preview/snippet display - Finding relevant passages - High-throughput scenarios
78
+ * @summary Vector search for similar chunks with auto-embedding (PRIMARY)
79
+ * @param {VectorSearchRequest} vectorSearchRequest
80
+ * @param {*} [options] Override http request option.
81
+ * @throws {RequiredError}
82
+ * @memberof SearchApiInterface
83
+ */
84
+ vectorSearchChunksApiV1VectorChunksPostRaw(requestParameters: VectorSearchChunksApiV1VectorChunksPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ChunkSearchResponse>>;
85
+
86
+ /**
87
+ * **Primary vector search endpoint** - Returns matching text chunks directly from Qdrant. This is the FAST search method that returns chunks without fetching full entry content. Use this when you want quick results with snippet-level granularity. **Auto-Embedding Support**: - Provide `query` (text) for automatic embedding generation - OR provide `query_vector` (pre-computed embeddings) - If both provided, `query_vector` takes precedence **Flow**: 1. If `query` provided: Generate embeddings using configured provider 2. Query vector is sent to Qdrant 3. Matching chunks are returned with scores and metadata 4. No database or S3 lookups (very fast!) **Performance**: - With `query_vector`: < 100ms - With `query` (auto-embed): 500ms-2s (includes embedding generation) **Use cases**: - Quick similarity search - Preview/snippet display - Finding relevant passages - High-throughput scenarios
88
+ * Vector search for similar chunks with auto-embedding (PRIMARY)
89
+ */
90
+ vectorSearchChunksApiV1VectorChunksPost(requestParameters: VectorSearchChunksApiV1VectorChunksPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ChunkSearchResponse>;
91
+
92
+ /**
93
+ * **Secondary vector search endpoint** - Returns full entry objects with S3 content. This is the COMPREHENSIVE search method that fetches complete entry content from S3. Use this when you need full documents, not just snippets. **Auto-Embedding Support**: - Provide `query` (text) for automatic embedding generation - OR provide `query_vector` (pre-computed embeddings) - If both provided, `query_vector` takes precedence **Flow**: 1. If `query` provided: Generate embeddings using configured provider 2. Query vector is sent to Qdrant 3. Matching chunks are grouped by entry_id 4. Entry records are fetched from PostgreSQL 5. Full content is retrieved from S3 (parallel batch operation) 6. Results combine entries with their matching chunks **Performance**: - With `query_vector`: 200-500ms - With `query` (auto-embed): 700ms-2.5s (includes embedding generation) **Use cases**: - Retrieving full documents - Document-level results - When you need complete content - Lower-throughput, higher-quality scenarios
94
+ * @summary Vector search entries with full content and auto-embedding (SECONDARY)
95
+ * @param {VectorSearchRequest} vectorSearchRequest
96
+ * @param {number} [maxChunksPerEntry]
97
+ * @param {*} [options] Override http request option.
98
+ * @throws {RequiredError}
99
+ * @memberof SearchApiInterface
100
+ */
101
+ vectorSearchEntriesApiV1VectorEntriesPostRaw(requestParameters: VectorSearchEntriesApiV1VectorEntriesPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<EntrySearchResponse>>;
102
+
103
+ /**
104
+ * **Secondary vector search endpoint** - Returns full entry objects with S3 content. This is the COMPREHENSIVE search method that fetches complete entry content from S3. Use this when you need full documents, not just snippets. **Auto-Embedding Support**: - Provide `query` (text) for automatic embedding generation - OR provide `query_vector` (pre-computed embeddings) - If both provided, `query_vector` takes precedence **Flow**: 1. If `query` provided: Generate embeddings using configured provider 2. Query vector is sent to Qdrant 3. Matching chunks are grouped by entry_id 4. Entry records are fetched from PostgreSQL 5. Full content is retrieved from S3 (parallel batch operation) 6. Results combine entries with their matching chunks **Performance**: - With `query_vector`: 200-500ms - With `query` (auto-embed): 700ms-2.5s (includes embedding generation) **Use cases**: - Retrieving full documents - Document-level results - When you need complete content - Lower-throughput, higher-quality scenarios
105
+ * Vector search entries with full content and auto-embedding (SECONDARY)
106
+ */
107
+ vectorSearchEntriesApiV1VectorEntriesPost(requestParameters: VectorSearchEntriesApiV1VectorEntriesPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EntrySearchResponse>;
108
+
109
+ }
110
+
111
+ /**
112
+ *
113
+ */
114
+ export class SearchApi extends runtime.BaseAPI implements SearchApiInterface {
115
+
116
+ /**
117
+ * **Keyword search endpoint** - Search documents using Meilisearch for full-text and faceted search. This endpoint provides fast keyword search with typo tolerance, relevance ranking, and powerful filtering capabilities. **Features**: - Full-text search across title, description, abstract, text content - Typo tolerance (finds \"machnie\" when searching for \"machine\") - Relevance ranking based on TF-IDF and proximity - Faceted filtering by dataset, status, MIME type, tags - Sorting by date, size, relevance - Highlighted search results **Flow**: 1. Query is sent to Meilisearch 2. Full-text search across indexed fields 3. Filters are applied (dataset_id, status, etc.) 4. Results are ranked and highlighted 5. Metadata is returned (no S3 fetching) **Performance**: Typically < 50ms for most queries **Use cases**: - Keyword-based document discovery - Filtering by metadata (tags, type, dataset) - Search with typo tolerance - Faceted search interfaces - Finding documents by title, author, abstract
118
+ * Keyword/faceted search for documents
119
+ */
120
+ async keywordSearchApiV1SearchPostRaw(requestParameters: KeywordSearchApiV1SearchPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<KeywordSearchResponse>> {
121
+ if (requestParameters['keywordSearchRequest'] == null) {
122
+ throw new runtime.RequiredError(
123
+ 'keywordSearchRequest',
124
+ 'Required parameter "keywordSearchRequest" was null or undefined when calling keywordSearchApiV1SearchPost().'
125
+ );
126
+ }
127
+
128
+ const queryParameters: any = {};
129
+
130
+ const headerParameters: runtime.HTTPHeaders = {};
131
+
132
+ headerParameters['Content-Type'] = 'application/json';
133
+
134
+ const response = await this.request({
135
+ path: `/api/v1/search`,
136
+ method: 'POST',
137
+ headers: headerParameters,
138
+ query: queryParameters,
139
+ body: KeywordSearchRequestToJSON(requestParameters['keywordSearchRequest']),
140
+ }, initOverrides);
141
+
142
+ return new runtime.JSONApiResponse(response, (jsonValue) => KeywordSearchResponseFromJSON(jsonValue));
143
+ }
144
+
145
+ /**
146
+ * **Keyword search endpoint** - Search documents using Meilisearch for full-text and faceted search. This endpoint provides fast keyword search with typo tolerance, relevance ranking, and powerful filtering capabilities. **Features**: - Full-text search across title, description, abstract, text content - Typo tolerance (finds \"machnie\" when searching for \"machine\") - Relevance ranking based on TF-IDF and proximity - Faceted filtering by dataset, status, MIME type, tags - Sorting by date, size, relevance - Highlighted search results **Flow**: 1. Query is sent to Meilisearch 2. Full-text search across indexed fields 3. Filters are applied (dataset_id, status, etc.) 4. Results are ranked and highlighted 5. Metadata is returned (no S3 fetching) **Performance**: Typically < 50ms for most queries **Use cases**: - Keyword-based document discovery - Filtering by metadata (tags, type, dataset) - Search with typo tolerance - Faceted search interfaces - Finding documents by title, author, abstract
147
+ * Keyword/faceted search for documents
148
+ */
149
+ async keywordSearchApiV1SearchPost(requestParameters: KeywordSearchApiV1SearchPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<KeywordSearchResponse> {
150
+ const response = await this.keywordSearchApiV1SearchPostRaw(requestParameters, initOverrides);
151
+ return await response.value();
152
+ }
153
+
154
+ /**
155
+ * **Primary vector search endpoint** - Returns matching text chunks directly from Qdrant. This is the FAST search method that returns chunks without fetching full entry content. Use this when you want quick results with snippet-level granularity. **Auto-Embedding Support**: - Provide `query` (text) for automatic embedding generation - OR provide `query_vector` (pre-computed embeddings) - If both provided, `query_vector` takes precedence **Flow**: 1. If `query` provided: Generate embeddings using configured provider 2. Query vector is sent to Qdrant 3. Matching chunks are returned with scores and metadata 4. No database or S3 lookups (very fast!) **Performance**: - With `query_vector`: < 100ms - With `query` (auto-embed): 500ms-2s (includes embedding generation) **Use cases**: - Quick similarity search - Preview/snippet display - Finding relevant passages - High-throughput scenarios
156
+ * Vector search for similar chunks with auto-embedding (PRIMARY)
157
+ */
158
+ async vectorSearchChunksApiV1VectorChunksPostRaw(requestParameters: VectorSearchChunksApiV1VectorChunksPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ChunkSearchResponse>> {
159
+ if (requestParameters['vectorSearchRequest'] == null) {
160
+ throw new runtime.RequiredError(
161
+ 'vectorSearchRequest',
162
+ 'Required parameter "vectorSearchRequest" was null or undefined when calling vectorSearchChunksApiV1VectorChunksPost().'
163
+ );
164
+ }
165
+
166
+ const queryParameters: any = {};
167
+
168
+ const headerParameters: runtime.HTTPHeaders = {};
169
+
170
+ headerParameters['Content-Type'] = 'application/json';
171
+
172
+ const response = await this.request({
173
+ path: `/api/v1/vector/chunks`,
174
+ method: 'POST',
175
+ headers: headerParameters,
176
+ query: queryParameters,
177
+ body: VectorSearchRequestToJSON(requestParameters['vectorSearchRequest']),
178
+ }, initOverrides);
179
+
180
+ return new runtime.JSONApiResponse(response, (jsonValue) => ChunkSearchResponseFromJSON(jsonValue));
181
+ }
182
+
183
+ /**
184
+ * **Primary vector search endpoint** - Returns matching text chunks directly from Qdrant. This is the FAST search method that returns chunks without fetching full entry content. Use this when you want quick results with snippet-level granularity. **Auto-Embedding Support**: - Provide `query` (text) for automatic embedding generation - OR provide `query_vector` (pre-computed embeddings) - If both provided, `query_vector` takes precedence **Flow**: 1. If `query` provided: Generate embeddings using configured provider 2. Query vector is sent to Qdrant 3. Matching chunks are returned with scores and metadata 4. No database or S3 lookups (very fast!) **Performance**: - With `query_vector`: < 100ms - With `query` (auto-embed): 500ms-2s (includes embedding generation) **Use cases**: - Quick similarity search - Preview/snippet display - Finding relevant passages - High-throughput scenarios
185
+ * Vector search for similar chunks with auto-embedding (PRIMARY)
186
+ */
187
+ async vectorSearchChunksApiV1VectorChunksPost(requestParameters: VectorSearchChunksApiV1VectorChunksPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ChunkSearchResponse> {
188
+ const response = await this.vectorSearchChunksApiV1VectorChunksPostRaw(requestParameters, initOverrides);
189
+ return await response.value();
190
+ }
191
+
192
+ /**
193
+ * **Secondary vector search endpoint** - Returns full entry objects with S3 content. This is the COMPREHENSIVE search method that fetches complete entry content from S3. Use this when you need full documents, not just snippets. **Auto-Embedding Support**: - Provide `query` (text) for automatic embedding generation - OR provide `query_vector` (pre-computed embeddings) - If both provided, `query_vector` takes precedence **Flow**: 1. If `query` provided: Generate embeddings using configured provider 2. Query vector is sent to Qdrant 3. Matching chunks are grouped by entry_id 4. Entry records are fetched from PostgreSQL 5. Full content is retrieved from S3 (parallel batch operation) 6. Results combine entries with their matching chunks **Performance**: - With `query_vector`: 200-500ms - With `query` (auto-embed): 700ms-2.5s (includes embedding generation) **Use cases**: - Retrieving full documents - Document-level results - When you need complete content - Lower-throughput, higher-quality scenarios
194
+ * Vector search entries with full content and auto-embedding (SECONDARY)
195
+ */
196
+ async vectorSearchEntriesApiV1VectorEntriesPostRaw(requestParameters: VectorSearchEntriesApiV1VectorEntriesPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<EntrySearchResponse>> {
197
+ if (requestParameters['vectorSearchRequest'] == null) {
198
+ throw new runtime.RequiredError(
199
+ 'vectorSearchRequest',
200
+ 'Required parameter "vectorSearchRequest" was null or undefined when calling vectorSearchEntriesApiV1VectorEntriesPost().'
201
+ );
202
+ }
203
+
204
+ const queryParameters: any = {};
205
+
206
+ if (requestParameters['maxChunksPerEntry'] != null) {
207
+ queryParameters['max_chunks_per_entry'] = requestParameters['maxChunksPerEntry'];
208
+ }
209
+
210
+ const headerParameters: runtime.HTTPHeaders = {};
211
+
212
+ headerParameters['Content-Type'] = 'application/json';
213
+
214
+ const response = await this.request({
215
+ path: `/api/v1/vector/entries`,
216
+ method: 'POST',
217
+ headers: headerParameters,
218
+ query: queryParameters,
219
+ body: VectorSearchRequestToJSON(requestParameters['vectorSearchRequest']),
220
+ }, initOverrides);
221
+
222
+ return new runtime.JSONApiResponse(response, (jsonValue) => EntrySearchResponseFromJSON(jsonValue));
223
+ }
224
+
225
+ /**
226
+ * **Secondary vector search endpoint** - Returns full entry objects with S3 content. This is the COMPREHENSIVE search method that fetches complete entry content from S3. Use this when you need full documents, not just snippets. **Auto-Embedding Support**: - Provide `query` (text) for automatic embedding generation - OR provide `query_vector` (pre-computed embeddings) - If both provided, `query_vector` takes precedence **Flow**: 1. If `query` provided: Generate embeddings using configured provider 2. Query vector is sent to Qdrant 3. Matching chunks are grouped by entry_id 4. Entry records are fetched from PostgreSQL 5. Full content is retrieved from S3 (parallel batch operation) 6. Results combine entries with their matching chunks **Performance**: - With `query_vector`: 200-500ms - With `query` (auto-embed): 700ms-2.5s (includes embedding generation) **Use cases**: - Retrieving full documents - Document-level results - When you need complete content - Lower-throughput, higher-quality scenarios
227
+ * Vector search entries with full content and auto-embedding (SECONDARY)
228
+ */
229
+ async vectorSearchEntriesApiV1VectorEntriesPost(requestParameters: VectorSearchEntriesApiV1VectorEntriesPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EntrySearchResponse> {
230
+ const response = await this.vectorSearchEntriesApiV1VectorEntriesPostRaw(requestParameters, initOverrides);
231
+ return await response.value();
232
+ }
233
+
234
+ }
@@ -0,0 +1,125 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Client Data API
5
+ * Client Cluster Data API - Manifest-based storage service
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import * as runtime from '../runtime';
17
+ import type {
18
+ RetryFailedWebhooksResponse,
19
+ } from '../models/index';
20
+ import {
21
+ RetryFailedWebhooksResponseFromJSON,
22
+ RetryFailedWebhooksResponseToJSON,
23
+ } from '../models/index';
24
+
25
+ /**
26
+ * SyncApi - interface
27
+ *
28
+ * @export
29
+ * @interface SyncApiInterface
30
+ */
31
+ export interface SyncApiInterface {
32
+ /**
33
+ * Get ground truth statistics for reconciliation. The backend calls this endpoint to compare its catalog against the actual state of the cluster\'s database. Returns: - timestamp: Current server time - datasets: List of datasets with entry counts and sizes - totals: Aggregated statistics across all datasets
34
+ * @summary Get Sync Summary
35
+ * @param {*} [options] Override http request option.
36
+ * @throws {RequiredError}
37
+ * @memberof SyncApiInterface
38
+ */
39
+ getSyncSummaryApiV1SyncSummaryGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{ [key: string]: any; }>>;
40
+
41
+ /**
42
+ * Get ground truth statistics for reconciliation. The backend calls this endpoint to compare its catalog against the actual state of the cluster\'s database. Returns: - timestamp: Current server time - datasets: List of datasets with entry counts and sizes - totals: Aggregated statistics across all datasets
43
+ * Get Sync Summary
44
+ */
45
+ getSyncSummaryApiV1SyncSummaryGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{ [key: string]: any; }>;
46
+
47
+ /**
48
+ * Retry all failed webhooks that haven\'t exhausted max retries. This endpoint resets all webhooks with status=\'failed\' and attempt_count < 20 back to \'pending\' status. The background worker will pick them up automatically for processing. **Use cases**: - Backend was temporarily down and webhooks failed - Network issues resolved - Manual intervention after fixing backend issues **Note**: Only webhooks that haven\'t exceeded max retries (20 attempts) will be reset. Permanently failed webhooks (attempt_count >= 20) are not affected.
49
+ * @summary Retry Failed Webhooks
50
+ * @param {*} [options] Override http request option.
51
+ * @throws {RequiredError}
52
+ * @memberof SyncApiInterface
53
+ */
54
+ retryFailedWebhooksApiV1SyncWebhooksRetryFailedPostRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RetryFailedWebhooksResponse>>;
55
+
56
+ /**
57
+ * Retry all failed webhooks that haven\'t exhausted max retries. This endpoint resets all webhooks with status=\'failed\' and attempt_count < 20 back to \'pending\' status. The background worker will pick them up automatically for processing. **Use cases**: - Backend was temporarily down and webhooks failed - Network issues resolved - Manual intervention after fixing backend issues **Note**: Only webhooks that haven\'t exceeded max retries (20 attempts) will be reset. Permanently failed webhooks (attempt_count >= 20) are not affected.
58
+ * Retry Failed Webhooks
59
+ */
60
+ retryFailedWebhooksApiV1SyncWebhooksRetryFailedPost(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RetryFailedWebhooksResponse>;
61
+
62
+ }
63
+
64
+ /**
65
+ *
66
+ */
67
+ export class SyncApi extends runtime.BaseAPI implements SyncApiInterface {
68
+
69
+ /**
70
+ * Get ground truth statistics for reconciliation. The backend calls this endpoint to compare its catalog against the actual state of the cluster\'s database. Returns: - timestamp: Current server time - datasets: List of datasets with entry counts and sizes - totals: Aggregated statistics across all datasets
71
+ * Get Sync Summary
72
+ */
73
+ async getSyncSummaryApiV1SyncSummaryGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{ [key: string]: any; }>> {
74
+ const queryParameters: any = {};
75
+
76
+ const headerParameters: runtime.HTTPHeaders = {};
77
+
78
+ const response = await this.request({
79
+ path: `/api/v1/sync/summary`,
80
+ method: 'GET',
81
+ headers: headerParameters,
82
+ query: queryParameters,
83
+ }, initOverrides);
84
+
85
+ return new runtime.JSONApiResponse<any>(response);
86
+ }
87
+
88
+ /**
89
+ * Get ground truth statistics for reconciliation. The backend calls this endpoint to compare its catalog against the actual state of the cluster\'s database. Returns: - timestamp: Current server time - datasets: List of datasets with entry counts and sizes - totals: Aggregated statistics across all datasets
90
+ * Get Sync Summary
91
+ */
92
+ async getSyncSummaryApiV1SyncSummaryGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{ [key: string]: any; }> {
93
+ const response = await this.getSyncSummaryApiV1SyncSummaryGetRaw(initOverrides);
94
+ return await response.value();
95
+ }
96
+
97
+ /**
98
+ * Retry all failed webhooks that haven\'t exhausted max retries. This endpoint resets all webhooks with status=\'failed\' and attempt_count < 20 back to \'pending\' status. The background worker will pick them up automatically for processing. **Use cases**: - Backend was temporarily down and webhooks failed - Network issues resolved - Manual intervention after fixing backend issues **Note**: Only webhooks that haven\'t exceeded max retries (20 attempts) will be reset. Permanently failed webhooks (attempt_count >= 20) are not affected.
99
+ * Retry Failed Webhooks
100
+ */
101
+ async retryFailedWebhooksApiV1SyncWebhooksRetryFailedPostRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RetryFailedWebhooksResponse>> {
102
+ const queryParameters: any = {};
103
+
104
+ const headerParameters: runtime.HTTPHeaders = {};
105
+
106
+ const response = await this.request({
107
+ path: `/api/v1/sync/webhooks/retry-failed`,
108
+ method: 'POST',
109
+ headers: headerParameters,
110
+ query: queryParameters,
111
+ }, initOverrides);
112
+
113
+ return new runtime.JSONApiResponse(response, (jsonValue) => RetryFailedWebhooksResponseFromJSON(jsonValue));
114
+ }
115
+
116
+ /**
117
+ * Retry all failed webhooks that haven\'t exhausted max retries. This endpoint resets all webhooks with status=\'failed\' and attempt_count < 20 back to \'pending\' status. The background worker will pick them up automatically for processing. **Use cases**: - Backend was temporarily down and webhooks failed - Network issues resolved - Manual intervention after fixing backend issues **Note**: Only webhooks that haven\'t exceeded max retries (20 attempts) will be reset. Permanently failed webhooks (attempt_count >= 20) are not affected.
118
+ * Retry Failed Webhooks
119
+ */
120
+ async retryFailedWebhooksApiV1SyncWebhooksRetryFailedPost(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RetryFailedWebhooksResponse> {
121
+ const response = await this.retryFailedWebhooksApiV1SyncWebhooksRetryFailedPostRaw(initOverrides);
122
+ return await response.value();
123
+ }
124
+
125
+ }
@@ -0,0 +1,191 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Client Data API
5
+ * Client Cluster Data API - Manifest-based storage service
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import * as runtime from '../runtime';
17
+ import type {
18
+ HTTPValidationError,
19
+ WebhookEndpointCreate,
20
+ WebhookEndpointResponse,
21
+ } from '../models/index';
22
+ import {
23
+ HTTPValidationErrorFromJSON,
24
+ HTTPValidationErrorToJSON,
25
+ WebhookEndpointCreateFromJSON,
26
+ WebhookEndpointCreateToJSON,
27
+ WebhookEndpointResponseFromJSON,
28
+ WebhookEndpointResponseToJSON,
29
+ } from '../models/index';
30
+
31
+ export interface CreateWebhookApiV1WebhooksPostRequest {
32
+ webhookEndpointCreate: WebhookEndpointCreate;
33
+ }
34
+
35
+ export interface DeleteWebhookApiV1WebhooksWebhookIdDeleteRequest {
36
+ webhookId: number;
37
+ }
38
+
39
+ /**
40
+ * WebhooksApi - interface
41
+ *
42
+ * @export
43
+ * @interface WebhooksApiInterface
44
+ */
45
+ export interface WebhooksApiInterface {
46
+ /**
47
+ *
48
+ * @summary Create Webhook
49
+ * @param {WebhookEndpointCreate} webhookEndpointCreate
50
+ * @param {*} [options] Override http request option.
51
+ * @throws {RequiredError}
52
+ * @memberof WebhooksApiInterface
53
+ */
54
+ createWebhookApiV1WebhooksPostRaw(requestParameters: CreateWebhookApiV1WebhooksPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WebhookEndpointResponse>>;
55
+
56
+ /**
57
+ * Create Webhook
58
+ */
59
+ createWebhookApiV1WebhooksPost(requestParameters: CreateWebhookApiV1WebhooksPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WebhookEndpointResponse>;
60
+
61
+ /**
62
+ *
63
+ * @summary Delete Webhook
64
+ * @param {number} webhookId
65
+ * @param {*} [options] Override http request option.
66
+ * @throws {RequiredError}
67
+ * @memberof WebhooksApiInterface
68
+ */
69
+ deleteWebhookApiV1WebhooksWebhookIdDeleteRaw(requestParameters: DeleteWebhookApiV1WebhooksWebhookIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
70
+
71
+ /**
72
+ * Delete Webhook
73
+ */
74
+ deleteWebhookApiV1WebhooksWebhookIdDelete(requestParameters: DeleteWebhookApiV1WebhooksWebhookIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
75
+
76
+ /**
77
+ *
78
+ * @summary List Webhooks
79
+ * @param {*} [options] Override http request option.
80
+ * @throws {RequiredError}
81
+ * @memberof WebhooksApiInterface
82
+ */
83
+ listWebhooksApiV1WebhooksGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<WebhookEndpointResponse>>>;
84
+
85
+ /**
86
+ * List Webhooks
87
+ */
88
+ listWebhooksApiV1WebhooksGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<WebhookEndpointResponse>>;
89
+
90
+ }
91
+
92
+ /**
93
+ *
94
+ */
95
+ export class WebhooksApi extends runtime.BaseAPI implements WebhooksApiInterface {
96
+
97
+ /**
98
+ * Create Webhook
99
+ */
100
+ async createWebhookApiV1WebhooksPostRaw(requestParameters: CreateWebhookApiV1WebhooksPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WebhookEndpointResponse>> {
101
+ if (requestParameters['webhookEndpointCreate'] == null) {
102
+ throw new runtime.RequiredError(
103
+ 'webhookEndpointCreate',
104
+ 'Required parameter "webhookEndpointCreate" was null or undefined when calling createWebhookApiV1WebhooksPost().'
105
+ );
106
+ }
107
+
108
+ const queryParameters: any = {};
109
+
110
+ const headerParameters: runtime.HTTPHeaders = {};
111
+
112
+ headerParameters['Content-Type'] = 'application/json';
113
+
114
+ const response = await this.request({
115
+ path: `/api/v1/webhooks`,
116
+ method: 'POST',
117
+ headers: headerParameters,
118
+ query: queryParameters,
119
+ body: WebhookEndpointCreateToJSON(requestParameters['webhookEndpointCreate']),
120
+ }, initOverrides);
121
+
122
+ return new runtime.JSONApiResponse(response, (jsonValue) => WebhookEndpointResponseFromJSON(jsonValue));
123
+ }
124
+
125
+ /**
126
+ * Create Webhook
127
+ */
128
+ async createWebhookApiV1WebhooksPost(requestParameters: CreateWebhookApiV1WebhooksPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WebhookEndpointResponse> {
129
+ const response = await this.createWebhookApiV1WebhooksPostRaw(requestParameters, initOverrides);
130
+ return await response.value();
131
+ }
132
+
133
+ /**
134
+ * Delete Webhook
135
+ */
136
+ async deleteWebhookApiV1WebhooksWebhookIdDeleteRaw(requestParameters: DeleteWebhookApiV1WebhooksWebhookIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
137
+ if (requestParameters['webhookId'] == null) {
138
+ throw new runtime.RequiredError(
139
+ 'webhookId',
140
+ 'Required parameter "webhookId" was null or undefined when calling deleteWebhookApiV1WebhooksWebhookIdDelete().'
141
+ );
142
+ }
143
+
144
+ const queryParameters: any = {};
145
+
146
+ const headerParameters: runtime.HTTPHeaders = {};
147
+
148
+ const response = await this.request({
149
+ path: `/api/v1/webhooks/{webhook_id}`.replace(`{${"webhook_id"}}`, encodeURIComponent(String(requestParameters['webhookId']))),
150
+ method: 'DELETE',
151
+ headers: headerParameters,
152
+ query: queryParameters,
153
+ }, initOverrides);
154
+
155
+ return new runtime.VoidApiResponse(response);
156
+ }
157
+
158
+ /**
159
+ * Delete Webhook
160
+ */
161
+ async deleteWebhookApiV1WebhooksWebhookIdDelete(requestParameters: DeleteWebhookApiV1WebhooksWebhookIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
162
+ await this.deleteWebhookApiV1WebhooksWebhookIdDeleteRaw(requestParameters, initOverrides);
163
+ }
164
+
165
+ /**
166
+ * List Webhooks
167
+ */
168
+ async listWebhooksApiV1WebhooksGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<WebhookEndpointResponse>>> {
169
+ const queryParameters: any = {};
170
+
171
+ const headerParameters: runtime.HTTPHeaders = {};
172
+
173
+ const response = await this.request({
174
+ path: `/api/v1/webhooks`,
175
+ method: 'GET',
176
+ headers: headerParameters,
177
+ query: queryParameters,
178
+ }, initOverrides);
179
+
180
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(WebhookEndpointResponseFromJSON));
181
+ }
182
+
183
+ /**
184
+ * List Webhooks
185
+ */
186
+ async listWebhooksApiV1WebhooksGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<WebhookEndpointResponse>> {
187
+ const response = await this.listWebhooksApiV1WebhooksGetRaw(initOverrides);
188
+ return await response.value();
189
+ }
190
+
191
+ }