tuix-rag-service-client 0.1.2
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.
- package/.openapi-generator/FILES +20 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +48 -0
- package/apis/ClientApi.js +365 -0
- package/apis/ClientApi.js.map +1 -0
- package/apis/ClientApi.ts +501 -0
- package/apis/index.js +20 -0
- package/apis/index.js.map +1 -0
- package/apis/index.ts +3 -0
- package/docs/ClientApi.md +614 -0
- package/docs/CreateResourceResponseDTO.md +34 -0
- package/docs/ErrorDTO.md +34 -0
- package/docs/PaginatedResourcesDTO.md +42 -0
- package/docs/QueryResponseDTO.md +38 -0
- package/docs/ResourceDTO.md +44 -0
- package/docs/SearchRequestDTO.md +38 -0
- package/docs/SearchResultDTO.md +42 -0
- package/index.js +22 -0
- package/index.js.map +1 -0
- package/index.ts +5 -0
- package/models/CreateResourceResponseDTO.js +49 -0
- package/models/CreateResourceResponseDTO.js.map +1 -0
- package/models/CreateResourceResponseDTO.ts +65 -0
- package/models/ErrorDTO.js +49 -0
- package/models/ErrorDTO.js.map +1 -0
- package/models/ErrorDTO.ts +65 -0
- package/models/PaginatedResourcesDTO.js +68 -0
- package/models/PaginatedResourcesDTO.js.map +1 -0
- package/models/PaginatedResourcesDTO.ts +110 -0
- package/models/QueryResponseDTO.js +54 -0
- package/models/QueryResponseDTO.js.map +1 -0
- package/models/QueryResponseDTO.ts +89 -0
- package/models/ResourceDTO.js +59 -0
- package/models/ResourceDTO.js.map +1 -0
- package/models/ResourceDTO.ts +105 -0
- package/models/SearchRequestDTO.js +55 -0
- package/models/SearchRequestDTO.js.map +1 -0
- package/models/SearchRequestDTO.ts +82 -0
- package/models/SearchResultDTO.js +57 -0
- package/models/SearchResultDTO.js.map +1 -0
- package/models/SearchResultDTO.ts +97 -0
- package/models/index.js +26 -0
- package/models/index.js.map +1 -0
- package/models/index.ts +9 -0
- package/package.json +17 -0
- package/runtime.js +330 -0
- package/runtime.js.map +1 -0
- package/runtime.ts +432 -0
- package/tsconfig.build.tsbuildinfo +1 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
|
|
2
|
+
# QueryResponseDTO
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`count` | number
|
|
10
|
+
`query` | string
|
|
11
|
+
`results` | [Array<SearchResultDTO>](SearchResultDTO.md)
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import type { QueryResponseDTO } from ''
|
|
17
|
+
|
|
18
|
+
// TODO: Update the object below with actual values
|
|
19
|
+
const example = {
|
|
20
|
+
"count": null,
|
|
21
|
+
"query": null,
|
|
22
|
+
"results": null,
|
|
23
|
+
} satisfies QueryResponseDTO
|
|
24
|
+
|
|
25
|
+
console.log(example)
|
|
26
|
+
|
|
27
|
+
// Convert the instance to a JSON string
|
|
28
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
29
|
+
console.log(exampleJSON)
|
|
30
|
+
|
|
31
|
+
// Parse the JSON string back to an object
|
|
32
|
+
const exampleParsed = JSON.parse(exampleJSON) as QueryResponseDTO
|
|
33
|
+
console.log(exampleParsed)
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
37
|
+
|
|
38
|
+
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
|
|
2
|
+
# ResourceDTO
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`createdAt` | string
|
|
10
|
+
`id` | string
|
|
11
|
+
`name` | string
|
|
12
|
+
`role` | string
|
|
13
|
+
`text` | string
|
|
14
|
+
`updatedAt` | string
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import type { ResourceDTO } from ''
|
|
20
|
+
|
|
21
|
+
// TODO: Update the object below with actual values
|
|
22
|
+
const example = {
|
|
23
|
+
"createdAt": null,
|
|
24
|
+
"id": null,
|
|
25
|
+
"name": null,
|
|
26
|
+
"role": null,
|
|
27
|
+
"text": null,
|
|
28
|
+
"updatedAt": null,
|
|
29
|
+
} satisfies ResourceDTO
|
|
30
|
+
|
|
31
|
+
console.log(example)
|
|
32
|
+
|
|
33
|
+
// Convert the instance to a JSON string
|
|
34
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
35
|
+
console.log(exampleJSON)
|
|
36
|
+
|
|
37
|
+
// Parse the JSON string back to an object
|
|
38
|
+
const exampleParsed = JSON.parse(exampleJSON) as ResourceDTO
|
|
39
|
+
console.log(exampleParsed)
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
43
|
+
|
|
44
|
+
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
|
|
2
|
+
# SearchRequestDTO
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`limit` | number
|
|
10
|
+
`query` | string
|
|
11
|
+
`role` | string
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import type { SearchRequestDTO } from ''
|
|
17
|
+
|
|
18
|
+
// TODO: Update the object below with actual values
|
|
19
|
+
const example = {
|
|
20
|
+
"limit": null,
|
|
21
|
+
"query": null,
|
|
22
|
+
"role": null,
|
|
23
|
+
} satisfies SearchRequestDTO
|
|
24
|
+
|
|
25
|
+
console.log(example)
|
|
26
|
+
|
|
27
|
+
// Convert the instance to a JSON string
|
|
28
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
29
|
+
console.log(exampleJSON)
|
|
30
|
+
|
|
31
|
+
// Parse the JSON string back to an object
|
|
32
|
+
const exampleParsed = JSON.parse(exampleJSON) as SearchRequestDTO
|
|
33
|
+
console.log(exampleParsed)
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
37
|
+
|
|
38
|
+
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
|
|
2
|
+
# SearchResultDTO
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`addedAt` | string
|
|
10
|
+
`content` | string
|
|
11
|
+
`id` | string
|
|
12
|
+
`resourceId` | string
|
|
13
|
+
`score` | number
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import type { SearchResultDTO } from ''
|
|
19
|
+
|
|
20
|
+
// TODO: Update the object below with actual values
|
|
21
|
+
const example = {
|
|
22
|
+
"addedAt": null,
|
|
23
|
+
"content": null,
|
|
24
|
+
"id": null,
|
|
25
|
+
"resourceId": null,
|
|
26
|
+
"score": null,
|
|
27
|
+
} satisfies SearchResultDTO
|
|
28
|
+
|
|
29
|
+
console.log(example)
|
|
30
|
+
|
|
31
|
+
// Convert the instance to a JSON string
|
|
32
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
33
|
+
console.log(exampleJSON)
|
|
34
|
+
|
|
35
|
+
// Parse the JSON string back to an object
|
|
36
|
+
const exampleParsed = JSON.parse(exampleJSON) as SearchResultDTO
|
|
37
|
+
console.log(exampleParsed)
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
41
|
+
|
|
42
|
+
|
package/index.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
/* tslint:disable */
|
|
18
|
+
/* eslint-disable */
|
|
19
|
+
__exportStar(require("./runtime"), exports);
|
|
20
|
+
__exportStar(require("./apis/index"), exports);
|
|
21
|
+
__exportStar(require("./models/index"), exports);
|
|
22
|
+
//# sourceMappingURL=index.js.map
|
package/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oBAAoB;AACpB,oBAAoB;AACpB,4CAA0B;AAC1B,+CAA6B;AAC7B,iDAA+B"}
|
package/index.ts
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Tuix RAG Service
|
|
6
|
+
* RAG (Retrieval-Augmented Generation) service for vector search and embeddings
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.0.1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfCreateResourceResponseDTO = instanceOfCreateResourceResponseDTO;
|
|
17
|
+
exports.CreateResourceResponseDTOFromJSON = CreateResourceResponseDTOFromJSON;
|
|
18
|
+
exports.CreateResourceResponseDTOFromJSONTyped = CreateResourceResponseDTOFromJSONTyped;
|
|
19
|
+
exports.CreateResourceResponseDTOToJSON = CreateResourceResponseDTOToJSON;
|
|
20
|
+
exports.CreateResourceResponseDTOToJSONTyped = CreateResourceResponseDTOToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the CreateResourceResponseDTO interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfCreateResourceResponseDTO(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function CreateResourceResponseDTOFromJSON(json) {
|
|
28
|
+
return CreateResourceResponseDTOFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function CreateResourceResponseDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
function CreateResourceResponseDTOToJSON(json) {
|
|
39
|
+
return CreateResourceResponseDTOToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function CreateResourceResponseDTOToJSONTyped(value, ignoreDiscriminator = false) {
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'id': value['id'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=CreateResourceResponseDTO.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CreateResourceResponseDTO.js","sourceRoot":"","sources":["CreateResourceResponseDTO.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAoBH,kFAEC;AAED,8EAEC;AAED,wFAQC;AAED,0EAEC;AAED,oFASC;AAlCD;;GAEG;AACH,SAAgB,mCAAmC,CAAC,KAAa;IAC7D,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,iCAAiC,CAAC,IAAS;IACvD,OAAO,sCAAsC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC/D,CAAC;AAED,SAAgB,sCAAsC,CAAC,IAAS,EAAE,mBAA4B;IAC1F,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;KACpD,CAAC;AACN,CAAC;AAED,SAAgB,+BAA+B,CAAC,IAAS;IACrD,OAAO,oCAAoC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC7D,CAAC;AAED,SAAgB,oCAAoC,CAAC,KAAwC,EAAE,sBAA+B,KAAK;IAC/H,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC;KACpB,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Tuix RAG Service
|
|
5
|
+
* RAG (Retrieval-Augmented Generation) service for vector search and embeddings
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.0.1
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface CreateResourceResponseDTO
|
|
20
|
+
*/
|
|
21
|
+
export interface CreateResourceResponseDTO {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof CreateResourceResponseDTO
|
|
26
|
+
*/
|
|
27
|
+
id?: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the CreateResourceResponseDTO interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfCreateResourceResponseDTO(value: object): value is CreateResourceResponseDTO {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function CreateResourceResponseDTOFromJSON(json: any): CreateResourceResponseDTO {
|
|
38
|
+
return CreateResourceResponseDTOFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function CreateResourceResponseDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateResourceResponseDTO {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
|
|
47
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function CreateResourceResponseDTOToJSON(json: any): CreateResourceResponseDTO {
|
|
52
|
+
return CreateResourceResponseDTOToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function CreateResourceResponseDTOToJSONTyped(value?: CreateResourceResponseDTO | null, ignoreDiscriminator: boolean = false): any {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'id': value['id'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Tuix RAG Service
|
|
6
|
+
* RAG (Retrieval-Augmented Generation) service for vector search and embeddings
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.0.1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfErrorDTO = instanceOfErrorDTO;
|
|
17
|
+
exports.ErrorDTOFromJSON = ErrorDTOFromJSON;
|
|
18
|
+
exports.ErrorDTOFromJSONTyped = ErrorDTOFromJSONTyped;
|
|
19
|
+
exports.ErrorDTOToJSON = ErrorDTOToJSON;
|
|
20
|
+
exports.ErrorDTOToJSONTyped = ErrorDTOToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ErrorDTO interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfErrorDTO(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function ErrorDTOFromJSON(json) {
|
|
28
|
+
return ErrorDTOFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function ErrorDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'message': json['message'] == null ? undefined : json['message'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
function ErrorDTOToJSON(json) {
|
|
39
|
+
return ErrorDTOToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function ErrorDTOToJSONTyped(value, ignoreDiscriminator = false) {
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'message': value['message'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=ErrorDTO.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ErrorDTO.js","sourceRoot":"","sources":["ErrorDTO.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAoBH,gDAEC;AAED,4CAEC;AAED,sDAQC;AAED,wCAEC;AAED,kDASC;AAlCD;;GAEG;AACH,SAAgB,kBAAkB,CAAC,KAAa;IAC5C,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,gBAAgB,CAAC,IAAS;IACtC,OAAO,qBAAqB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC9C,CAAC;AAED,SAAgB,qBAAqB,CAAC,IAAS,EAAE,mBAA4B;IACzE,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC;KACnE,CAAC;AACN,CAAC;AAED,SAAgB,cAAc,CAAC,IAAS;IACpC,OAAO,mBAAmB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC5C,CAAC;AAED,SAAgB,mBAAmB,CAAC,KAAuB,EAAE,sBAA+B,KAAK;IAC7F,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;KAC9B,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Tuix RAG Service
|
|
5
|
+
* RAG (Retrieval-Augmented Generation) service for vector search and embeddings
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.0.1
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ErrorDTO
|
|
20
|
+
*/
|
|
21
|
+
export interface ErrorDTO {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ErrorDTO
|
|
26
|
+
*/
|
|
27
|
+
message?: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the ErrorDTO interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfErrorDTO(value: object): value is ErrorDTO {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function ErrorDTOFromJSON(json: any): ErrorDTO {
|
|
38
|
+
return ErrorDTOFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function ErrorDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): ErrorDTO {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
|
|
47
|
+
'message': json['message'] == null ? undefined : json['message'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function ErrorDTOToJSON(json: any): ErrorDTO {
|
|
52
|
+
return ErrorDTOToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function ErrorDTOToJSONTyped(value?: ErrorDTO | null, ignoreDiscriminator: boolean = false): any {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'message': value['message'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Tuix RAG Service
|
|
6
|
+
* RAG (Retrieval-Augmented Generation) service for vector search and embeddings
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.0.1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfPaginatedResourcesDTO = instanceOfPaginatedResourcesDTO;
|
|
17
|
+
exports.PaginatedResourcesDTOFromJSON = PaginatedResourcesDTOFromJSON;
|
|
18
|
+
exports.PaginatedResourcesDTOFromJSONTyped = PaginatedResourcesDTOFromJSONTyped;
|
|
19
|
+
exports.PaginatedResourcesDTOToJSON = PaginatedResourcesDTOToJSON;
|
|
20
|
+
exports.PaginatedResourcesDTOToJSONTyped = PaginatedResourcesDTOToJSONTyped;
|
|
21
|
+
const ResourceDTO_1 = require("./ResourceDTO");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the PaginatedResourcesDTO interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfPaginatedResourcesDTO(value) {
|
|
26
|
+
if (!('items' in value) || value['items'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('page' in value) || value['page'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('pageSize' in value) || value['pageSize'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('totalItems' in value) || value['totalItems'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('totalPages' in value) || value['totalPages'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
function PaginatedResourcesDTOFromJSON(json) {
|
|
39
|
+
return PaginatedResourcesDTOFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function PaginatedResourcesDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'items': (json['items'].map(ResourceDTO_1.ResourceDTOFromJSON)),
|
|
47
|
+
'page': json['page'],
|
|
48
|
+
'pageSize': json['pageSize'],
|
|
49
|
+
'totalItems': json['totalItems'],
|
|
50
|
+
'totalPages': json['totalPages'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
function PaginatedResourcesDTOToJSON(json) {
|
|
54
|
+
return PaginatedResourcesDTOToJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
function PaginatedResourcesDTOToJSONTyped(value, ignoreDiscriminator = false) {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'items': (value['items'].map(ResourceDTO_1.ResourceDTOToJSON)),
|
|
62
|
+
'page': value['page'],
|
|
63
|
+
'pageSize': value['pageSize'],
|
|
64
|
+
'totalItems': value['totalItems'],
|
|
65
|
+
'totalPages': value['totalPages'],
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
//# sourceMappingURL=PaginatedResourcesDTO.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PaginatedResourcesDTO.js","sourceRoot":"","sources":["PaginatedResourcesDTO.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAoDH,0EAOC;AAED,sEAEC;AAED,gFAYC;AAED,kEAEC;AAED,4EAaC;AA5FD,+CAKuB;AAwCvB;;GAEG;AACH,SAAgB,+BAA+B,CAAC,KAAa;IACzD,IAAI,CAAC,CAAC,OAAO,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACtE,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,IAAI,CAAC,CAAC,UAAU,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,UAAU,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC5E,IAAI,CAAC,CAAC,YAAY,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,YAAY,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAChF,IAAI,CAAC,CAAC,YAAY,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,YAAY,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAChF,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,6BAA6B,CAAC,IAAS;IACnD,OAAO,kCAAkC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC3D,CAAC;AAED,SAAgB,kCAAkC,CAAC,IAAS,EAAE,mBAA4B;IACtF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,OAAO,EAAE,CAAE,IAAI,CAAC,OAAO,CAAgB,CAAC,GAAG,CAAC,iCAAmB,CAAC,CAAC;QACjE,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;QACpB,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC;QAC5B,YAAY,EAAE,IAAI,CAAC,YAAY,CAAC;QAChC,YAAY,EAAE,IAAI,CAAC,YAAY,CAAC;KACnC,CAAC;AACN,CAAC;AAED,SAAgB,2BAA2B,CAAC,IAAS;IACjD,OAAO,gCAAgC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACzD,CAAC;AAED,SAAgB,gCAAgC,CAAC,KAAoC,EAAE,sBAA+B,KAAK;IACvH,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,OAAO,EAAE,CAAE,KAAK,CAAC,OAAO,CAAgB,CAAC,GAAG,CAAC,+BAAiB,CAAC,CAAC;QAChE,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;QACrB,UAAU,EAAE,KAAK,CAAC,UAAU,CAAC;QAC7B,YAAY,EAAE,KAAK,CAAC,YAAY,CAAC;QACjC,YAAY,EAAE,KAAK,CAAC,YAAY,CAAC;KACpC,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Tuix RAG Service
|
|
5
|
+
* RAG (Retrieval-Augmented Generation) service for vector search and embeddings
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.0.1
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { ResourceDTO } from './ResourceDTO';
|
|
17
|
+
import {
|
|
18
|
+
ResourceDTOFromJSON,
|
|
19
|
+
ResourceDTOFromJSONTyped,
|
|
20
|
+
ResourceDTOToJSON,
|
|
21
|
+
ResourceDTOToJSONTyped,
|
|
22
|
+
} from './ResourceDTO';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface PaginatedResourcesDTO
|
|
28
|
+
*/
|
|
29
|
+
export interface PaginatedResourcesDTO {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<ResourceDTO>}
|
|
33
|
+
* @memberof PaginatedResourcesDTO
|
|
34
|
+
*/
|
|
35
|
+
items: Array<ResourceDTO>;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof PaginatedResourcesDTO
|
|
40
|
+
*/
|
|
41
|
+
page: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof PaginatedResourcesDTO
|
|
46
|
+
*/
|
|
47
|
+
pageSize: number;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof PaginatedResourcesDTO
|
|
52
|
+
*/
|
|
53
|
+
totalItems: number;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof PaginatedResourcesDTO
|
|
58
|
+
*/
|
|
59
|
+
totalPages: number;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Check if a given object implements the PaginatedResourcesDTO interface.
|
|
64
|
+
*/
|
|
65
|
+
export function instanceOfPaginatedResourcesDTO(value: object): value is PaginatedResourcesDTO {
|
|
66
|
+
if (!('items' in value) || value['items'] === undefined) return false;
|
|
67
|
+
if (!('page' in value) || value['page'] === undefined) return false;
|
|
68
|
+
if (!('pageSize' in value) || value['pageSize'] === undefined) return false;
|
|
69
|
+
if (!('totalItems' in value) || value['totalItems'] === undefined) return false;
|
|
70
|
+
if (!('totalPages' in value) || value['totalPages'] === undefined) return false;
|
|
71
|
+
return true;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function PaginatedResourcesDTOFromJSON(json: any): PaginatedResourcesDTO {
|
|
75
|
+
return PaginatedResourcesDTOFromJSONTyped(json, false);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function PaginatedResourcesDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedResourcesDTO {
|
|
79
|
+
if (json == null) {
|
|
80
|
+
return json;
|
|
81
|
+
}
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
'items': ((json['items'] as Array<any>).map(ResourceDTOFromJSON)),
|
|
85
|
+
'page': json['page'],
|
|
86
|
+
'pageSize': json['pageSize'],
|
|
87
|
+
'totalItems': json['totalItems'],
|
|
88
|
+
'totalPages': json['totalPages'],
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function PaginatedResourcesDTOToJSON(json: any): PaginatedResourcesDTO {
|
|
93
|
+
return PaginatedResourcesDTOToJSONTyped(json, false);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export function PaginatedResourcesDTOToJSONTyped(value?: PaginatedResourcesDTO | null, ignoreDiscriminator: boolean = false): any {
|
|
97
|
+
if (value == null) {
|
|
98
|
+
return value;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
return {
|
|
102
|
+
|
|
103
|
+
'items': ((value['items'] as Array<any>).map(ResourceDTOToJSON)),
|
|
104
|
+
'page': value['page'],
|
|
105
|
+
'pageSize': value['pageSize'],
|
|
106
|
+
'totalItems': value['totalItems'],
|
|
107
|
+
'totalPages': value['totalPages'],
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Tuix RAG Service
|
|
6
|
+
* RAG (Retrieval-Augmented Generation) service for vector search and embeddings
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.0.1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfQueryResponseDTO = instanceOfQueryResponseDTO;
|
|
17
|
+
exports.QueryResponseDTOFromJSON = QueryResponseDTOFromJSON;
|
|
18
|
+
exports.QueryResponseDTOFromJSONTyped = QueryResponseDTOFromJSONTyped;
|
|
19
|
+
exports.QueryResponseDTOToJSON = QueryResponseDTOToJSON;
|
|
20
|
+
exports.QueryResponseDTOToJSONTyped = QueryResponseDTOToJSONTyped;
|
|
21
|
+
const SearchResultDTO_1 = require("./SearchResultDTO");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the QueryResponseDTO interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfQueryResponseDTO(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function QueryResponseDTOFromJSON(json) {
|
|
29
|
+
return QueryResponseDTOFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function QueryResponseDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'count': json['count'] == null ? undefined : json['count'],
|
|
37
|
+
'query': json['query'] == null ? undefined : json['query'],
|
|
38
|
+
'results': json['results'] == null ? undefined : (json['results'].map(SearchResultDTO_1.SearchResultDTOFromJSON)),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function QueryResponseDTOToJSON(json) {
|
|
42
|
+
return QueryResponseDTOToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function QueryResponseDTOToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'count': value['count'],
|
|
50
|
+
'query': value['query'],
|
|
51
|
+
'results': value['results'] == null ? undefined : (value['results'].map(SearchResultDTO_1.SearchResultDTOToJSON)),
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=QueryResponseDTO.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QueryResponseDTO.js","sourceRoot":"","sources":["QueryResponseDTO.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAwCH,gEAEC;AAED,4DAEC;AAED,sEAUC;AAED,wDAEC;AAED,kEAWC;AAvED,uDAK2B;AA4B3B;;GAEG;AACH,SAAgB,0BAA0B,CAAC,KAAa;IACpD,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,wBAAwB,CAAC,IAAS;IAC9C,OAAO,6BAA6B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACtD,CAAC;AAED,SAAgB,6BAA6B,CAAC,IAAS,EAAE,mBAA4B;IACjF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC;QAC1D,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC;QAC1D,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAE,IAAI,CAAC,SAAS,CAAgB,CAAC,GAAG,CAAC,yCAAuB,CAAC,CAAC;KAClH,CAAC;AACN,CAAC;AAED,SAAgB,sBAAsB,CAAC,IAAS;IAC5C,OAAO,2BAA2B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACpD,CAAC;AAED,SAAgB,2BAA2B,CAAC,KAA+B,EAAE,sBAA+B,KAAK;IAC7G,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC;QACvB,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC;QACvB,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAE,KAAK,CAAC,SAAS,CAAgB,CAAC,GAAG,CAAC,uCAAqB,CAAC,CAAC;KAClH,CAAC;AACN,CAAC"}
|