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,89 @@
|
|
|
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 { SearchResultDTO } from './SearchResultDTO';
|
|
17
|
+
import {
|
|
18
|
+
SearchResultDTOFromJSON,
|
|
19
|
+
SearchResultDTOFromJSONTyped,
|
|
20
|
+
SearchResultDTOToJSON,
|
|
21
|
+
SearchResultDTOToJSONTyped,
|
|
22
|
+
} from './SearchResultDTO';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface QueryResponseDTO
|
|
28
|
+
*/
|
|
29
|
+
export interface QueryResponseDTO {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof QueryResponseDTO
|
|
34
|
+
*/
|
|
35
|
+
count?: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof QueryResponseDTO
|
|
40
|
+
*/
|
|
41
|
+
query?: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {Array<SearchResultDTO>}
|
|
45
|
+
* @memberof QueryResponseDTO
|
|
46
|
+
*/
|
|
47
|
+
results?: Array<SearchResultDTO>;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the QueryResponseDTO interface.
|
|
52
|
+
*/
|
|
53
|
+
export function instanceOfQueryResponseDTO(value: object): value is QueryResponseDTO {
|
|
54
|
+
return true;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function QueryResponseDTOFromJSON(json: any): QueryResponseDTO {
|
|
58
|
+
return QueryResponseDTOFromJSONTyped(json, false);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function QueryResponseDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): QueryResponseDTO {
|
|
62
|
+
if (json == null) {
|
|
63
|
+
return json;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
|
|
67
|
+
'count': json['count'] == null ? undefined : json['count'],
|
|
68
|
+
'query': json['query'] == null ? undefined : json['query'],
|
|
69
|
+
'results': json['results'] == null ? undefined : ((json['results'] as Array<any>).map(SearchResultDTOFromJSON)),
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function QueryResponseDTOToJSON(json: any): QueryResponseDTO {
|
|
74
|
+
return QueryResponseDTOToJSONTyped(json, false);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function QueryResponseDTOToJSONTyped(value?: QueryResponseDTO | null, ignoreDiscriminator: boolean = false): any {
|
|
78
|
+
if (value == null) {
|
|
79
|
+
return value;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
'count': value['count'],
|
|
85
|
+
'query': value['query'],
|
|
86
|
+
'results': value['results'] == null ? undefined : ((value['results'] as Array<any>).map(SearchResultDTOToJSON)),
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
|
@@ -0,0 +1,59 @@
|
|
|
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.instanceOfResourceDTO = instanceOfResourceDTO;
|
|
17
|
+
exports.ResourceDTOFromJSON = ResourceDTOFromJSON;
|
|
18
|
+
exports.ResourceDTOFromJSONTyped = ResourceDTOFromJSONTyped;
|
|
19
|
+
exports.ResourceDTOToJSON = ResourceDTOToJSON;
|
|
20
|
+
exports.ResourceDTOToJSONTyped = ResourceDTOToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ResourceDTO interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfResourceDTO(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function ResourceDTOFromJSON(json) {
|
|
28
|
+
return ResourceDTOFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function ResourceDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'createdAt': json['created_at'] == null ? undefined : json['created_at'],
|
|
36
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
37
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
38
|
+
'role': json['role'] == null ? undefined : json['role'],
|
|
39
|
+
'text': json['text'] == null ? undefined : json['text'],
|
|
40
|
+
'updatedAt': json['updated_at'] == null ? undefined : json['updated_at'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function ResourceDTOToJSON(json) {
|
|
44
|
+
return ResourceDTOToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function ResourceDTOToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'created_at': value['createdAt'],
|
|
52
|
+
'id': value['id'],
|
|
53
|
+
'name': value['name'],
|
|
54
|
+
'role': value['role'],
|
|
55
|
+
'text': value['text'],
|
|
56
|
+
'updated_at': value['updatedAt'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
//# sourceMappingURL=ResourceDTO.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ResourceDTO.js","sourceRoot":"","sources":["ResourceDTO.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAkDH,sDAEC;AAED,kDAEC;AAED,4DAaC;AAED,8CAEC;AAED,wDAcC;AA5CD;;GAEG;AACH,SAAgB,qBAAqB,CAAC,KAAa;IAC/C,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,mBAAmB,CAAC,IAAS;IACzC,OAAO,wBAAwB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACjD,CAAC;AAED,SAAgB,wBAAwB,CAAC,IAAS,EAAE,mBAA4B;IAC5E,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,WAAW,EAAE,IAAI,CAAC,YAAY,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC;QACxE,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;QACjD,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC;QACvD,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC;QACvD,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC;QACvD,WAAW,EAAE,IAAI,CAAC,YAAY,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC;KAC3E,CAAC;AACN,CAAC;AAED,SAAgB,iBAAiB,CAAC,IAAS;IACvC,OAAO,sBAAsB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC/C,CAAC;AAED,SAAgB,sBAAsB,CAAC,KAA0B,EAAE,sBAA+B,KAAK;IACnG,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,YAAY,EAAE,KAAK,CAAC,WAAW,CAAC;QAChC,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC;QACjB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;QACrB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;QACrB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;QACrB,YAAY,EAAE,KAAK,CAAC,WAAW,CAAC;KACnC,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,105 @@
|
|
|
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 ResourceDTO
|
|
20
|
+
*/
|
|
21
|
+
export interface ResourceDTO {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ResourceDTO
|
|
26
|
+
*/
|
|
27
|
+
createdAt?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ResourceDTO
|
|
32
|
+
*/
|
|
33
|
+
id?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof ResourceDTO
|
|
38
|
+
*/
|
|
39
|
+
name?: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof ResourceDTO
|
|
44
|
+
*/
|
|
45
|
+
role?: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof ResourceDTO
|
|
50
|
+
*/
|
|
51
|
+
text?: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof ResourceDTO
|
|
56
|
+
*/
|
|
57
|
+
updatedAt?: string;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Check if a given object implements the ResourceDTO interface.
|
|
62
|
+
*/
|
|
63
|
+
export function instanceOfResourceDTO(value: object): value is ResourceDTO {
|
|
64
|
+
return true;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function ResourceDTOFromJSON(json: any): ResourceDTO {
|
|
68
|
+
return ResourceDTOFromJSONTyped(json, false);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function ResourceDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResourceDTO {
|
|
72
|
+
if (json == null) {
|
|
73
|
+
return json;
|
|
74
|
+
}
|
|
75
|
+
return {
|
|
76
|
+
|
|
77
|
+
'createdAt': json['created_at'] == null ? undefined : json['created_at'],
|
|
78
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
79
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
80
|
+
'role': json['role'] == null ? undefined : json['role'],
|
|
81
|
+
'text': json['text'] == null ? undefined : json['text'],
|
|
82
|
+
'updatedAt': json['updated_at'] == null ? undefined : json['updated_at'],
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export function ResourceDTOToJSON(json: any): ResourceDTO {
|
|
87
|
+
return ResourceDTOToJSONTyped(json, false);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function ResourceDTOToJSONTyped(value?: ResourceDTO | null, ignoreDiscriminator: boolean = false): any {
|
|
91
|
+
if (value == null) {
|
|
92
|
+
return value;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
return {
|
|
96
|
+
|
|
97
|
+
'created_at': value['createdAt'],
|
|
98
|
+
'id': value['id'],
|
|
99
|
+
'name': value['name'],
|
|
100
|
+
'role': value['role'],
|
|
101
|
+
'text': value['text'],
|
|
102
|
+
'updated_at': value['updatedAt'],
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
|
|
@@ -0,0 +1,55 @@
|
|
|
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.instanceOfSearchRequestDTO = instanceOfSearchRequestDTO;
|
|
17
|
+
exports.SearchRequestDTOFromJSON = SearchRequestDTOFromJSON;
|
|
18
|
+
exports.SearchRequestDTOFromJSONTyped = SearchRequestDTOFromJSONTyped;
|
|
19
|
+
exports.SearchRequestDTOToJSON = SearchRequestDTOToJSON;
|
|
20
|
+
exports.SearchRequestDTOToJSONTyped = SearchRequestDTOToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the SearchRequestDTO interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfSearchRequestDTO(value) {
|
|
25
|
+
if (!('query' in value) || value['query'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function SearchRequestDTOFromJSON(json) {
|
|
30
|
+
return SearchRequestDTOFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function SearchRequestDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'limit': json['limit'] == null ? undefined : json['limit'],
|
|
38
|
+
'query': json['query'],
|
|
39
|
+
'role': json['role'] == null ? undefined : json['role'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
function SearchRequestDTOToJSON(json) {
|
|
43
|
+
return SearchRequestDTOToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function SearchRequestDTOToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'limit': value['limit'],
|
|
51
|
+
'query': value['query'],
|
|
52
|
+
'role': value['role'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=SearchRequestDTO.js.map
|
|
@@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AC,OAAO,CAAC;QACvB,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC;QACvB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;KACxB,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,82 @@
|
|
|
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 SearchRequestDTO
|
|
20
|
+
*/
|
|
21
|
+
export interface SearchRequestDTO {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof SearchRequestDTO
|
|
26
|
+
*/
|
|
27
|
+
limit?: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof SearchRequestDTO
|
|
32
|
+
*/
|
|
33
|
+
query: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof SearchRequestDTO
|
|
38
|
+
*/
|
|
39
|
+
role?: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the SearchRequestDTO interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfSearchRequestDTO(value: object): value is SearchRequestDTO {
|
|
46
|
+
if (!('query' in value) || value['query'] === undefined) return false;
|
|
47
|
+
return true;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function SearchRequestDTOFromJSON(json: any): SearchRequestDTO {
|
|
51
|
+
return SearchRequestDTOFromJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function SearchRequestDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchRequestDTO {
|
|
55
|
+
if (json == null) {
|
|
56
|
+
return json;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
|
|
60
|
+
'limit': json['limit'] == null ? undefined : json['limit'],
|
|
61
|
+
'query': json['query'],
|
|
62
|
+
'role': json['role'] == null ? undefined : json['role'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function SearchRequestDTOToJSON(json: any): SearchRequestDTO {
|
|
67
|
+
return SearchRequestDTOToJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function SearchRequestDTOToJSONTyped(value?: SearchRequestDTO | null, ignoreDiscriminator: boolean = false): any {
|
|
71
|
+
if (value == null) {
|
|
72
|
+
return value;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
return {
|
|
76
|
+
|
|
77
|
+
'limit': value['limit'],
|
|
78
|
+
'query': value['query'],
|
|
79
|
+
'role': value['role'],
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
@@ -0,0 +1,57 @@
|
|
|
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.instanceOfSearchResultDTO = instanceOfSearchResultDTO;
|
|
17
|
+
exports.SearchResultDTOFromJSON = SearchResultDTOFromJSON;
|
|
18
|
+
exports.SearchResultDTOFromJSONTyped = SearchResultDTOFromJSONTyped;
|
|
19
|
+
exports.SearchResultDTOToJSON = SearchResultDTOToJSON;
|
|
20
|
+
exports.SearchResultDTOToJSONTyped = SearchResultDTOToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the SearchResultDTO interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfSearchResultDTO(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function SearchResultDTOFromJSON(json) {
|
|
28
|
+
return SearchResultDTOFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function SearchResultDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'addedAt': json['added_at'] == null ? undefined : json['added_at'],
|
|
36
|
+
'content': json['content'] == null ? undefined : json['content'],
|
|
37
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
38
|
+
'resourceId': json['resource_id'] == null ? undefined : json['resource_id'],
|
|
39
|
+
'score': json['score'] == null ? undefined : json['score'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
function SearchResultDTOToJSON(json) {
|
|
43
|
+
return SearchResultDTOToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function SearchResultDTOToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'added_at': value['addedAt'],
|
|
51
|
+
'content': value['content'],
|
|
52
|
+
'id': value['id'],
|
|
53
|
+
'resource_id': value['resourceId'],
|
|
54
|
+
'score': value['score'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|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IAAS;IAC3C,OAAO,0BAA0B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACnD,CAAC;AAED,SAAgB,0BAA0B,CAAC,KAA8B,EAAE,sBAA+B,KAAK;IAC3G,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC;QAC5B,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;QAC3B,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC;QACjB,aAAa,EAAE,KAAK,CAAC,YAAY,CAAC;QAClC,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC;KAC1B,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,97 @@
|
|
|
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 SearchResultDTO
|
|
20
|
+
*/
|
|
21
|
+
export interface SearchResultDTO {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof SearchResultDTO
|
|
26
|
+
*/
|
|
27
|
+
addedAt?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof SearchResultDTO
|
|
32
|
+
*/
|
|
33
|
+
content?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof SearchResultDTO
|
|
38
|
+
*/
|
|
39
|
+
id?: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof SearchResultDTO
|
|
44
|
+
*/
|
|
45
|
+
resourceId?: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof SearchResultDTO
|
|
50
|
+
*/
|
|
51
|
+
score?: number;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the SearchResultDTO interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfSearchResultDTO(value: object): value is SearchResultDTO {
|
|
58
|
+
return true;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function SearchResultDTOFromJSON(json: any): SearchResultDTO {
|
|
62
|
+
return SearchResultDTOFromJSONTyped(json, false);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function SearchResultDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchResultDTO {
|
|
66
|
+
if (json == null) {
|
|
67
|
+
return json;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'addedAt': json['added_at'] == null ? undefined : json['added_at'],
|
|
72
|
+
'content': json['content'] == null ? undefined : json['content'],
|
|
73
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
74
|
+
'resourceId': json['resource_id'] == null ? undefined : json['resource_id'],
|
|
75
|
+
'score': json['score'] == null ? undefined : json['score'],
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function SearchResultDTOToJSON(json: any): SearchResultDTO {
|
|
80
|
+
return SearchResultDTOToJSONTyped(json, false);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function SearchResultDTOToJSONTyped(value?: SearchResultDTO | null, ignoreDiscriminator: boolean = false): any {
|
|
84
|
+
if (value == null) {
|
|
85
|
+
return value;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
return {
|
|
89
|
+
|
|
90
|
+
'added_at': value['addedAt'],
|
|
91
|
+
'content': value['content'],
|
|
92
|
+
'id': value['id'],
|
|
93
|
+
'resource_id': value['resourceId'],
|
|
94
|
+
'score': value['score'],
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
|
package/models/index.js
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
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("./CreateResourceResponseDTO"), exports);
|
|
20
|
+
__exportStar(require("./ErrorDTO"), exports);
|
|
21
|
+
__exportStar(require("./PaginatedResourcesDTO"), exports);
|
|
22
|
+
__exportStar(require("./QueryResponseDTO"), exports);
|
|
23
|
+
__exportStar(require("./ResourceDTO"), exports);
|
|
24
|
+
__exportStar(require("./SearchRequestDTO"), exports);
|
|
25
|
+
__exportStar(require("./SearchResultDTO"), exports);
|
|
26
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oBAAoB;AACpB,oBAAoB;AACpB,8DAA4C;AAC5C,6CAA2B;AAC3B,0DAAwC;AACxC,qDAAmC;AACnC,gDAA8B;AAC9B,qDAAmC;AACnC,oDAAkC"}
|
package/models/index.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
export * from './CreateResourceResponseDTO';
|
|
4
|
+
export * from './ErrorDTO';
|
|
5
|
+
export * from './PaginatedResourcesDTO';
|
|
6
|
+
export * from './QueryResponseDTO';
|
|
7
|
+
export * from './ResourceDTO';
|
|
8
|
+
export * from './SearchRequestDTO';
|
|
9
|
+
export * from './SearchResultDTO';
|
package/package.json
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "tuix-rag-service-client",
|
|
3
|
+
"version": "0.1.2",
|
|
4
|
+
"description": "This package facilitates the client requests to service api",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"private": false,
|
|
7
|
+
"keywords": [
|
|
8
|
+
"tuix",
|
|
9
|
+
"api"
|
|
10
|
+
],
|
|
11
|
+
"author": "",
|
|
12
|
+
"license": "ISC",
|
|
13
|
+
"devDependencies": {
|
|
14
|
+
"@openapitools/openapi-generator-cli": "^2.9.0",
|
|
15
|
+
"typescript": "^5.3.3"
|
|
16
|
+
}
|
|
17
|
+
}
|