tuix-rag-service-client 0.1.99 → 0.1.100

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/apis/ClientApi.js CHANGED
@@ -769,8 +769,8 @@ class ClientApi extends runtime.BaseAPI {
769
769
  };
770
770
  }
771
771
  /**
772
- * Update the fields present in the form. Chunks are only rebuilt when the file or the chunk size changes.
773
- * Update a resource
772
+ * Update resource metadata and replace all chunks with new ones
773
+ * Update a resource and replace its chunks
774
774
  */
775
775
  async updateResourceRaw(requestParameters, initOverrides) {
776
776
  const requestOptions = await this.updateResourceRequestOpts(requestParameters);
@@ -778,8 +778,8 @@ class ClientApi extends runtime.BaseAPI {
778
778
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, ResourceDTO_1.ResourceDTOFromJSON)(jsonValue));
779
779
  }
780
780
  /**
781
- * Update the fields present in the form. Chunks are only rebuilt when the file or the chunk size changes.
782
- * Update a resource
781
+ * Update resource metadata and replace all chunks with new ones
782
+ * Update a resource and replace its chunks
783
783
  */
784
784
  async updateResource(requestParameters, initOverrides) {
785
785
  const response = await this.updateResourceRaw(requestParameters, initOverrides);
package/apis/ClientApi.ts CHANGED
@@ -288,7 +288,7 @@ export interface UpdateResourceRequest {
288
288
  */
289
289
  name?: string;
290
290
  /**
291
- * Role; send it empty to clear it
291
+ * Role
292
292
  */
293
293
  role?: string;
294
294
  }
@@ -1264,8 +1264,8 @@ export class ClientApi extends runtime.BaseAPI {
1264
1264
  }
1265
1265
 
1266
1266
  /**
1267
- * Update the fields present in the form. Chunks are only rebuilt when the file or the chunk size changes.
1268
- * Update a resource
1267
+ * Update resource metadata and replace all chunks with new ones
1268
+ * Update a resource and replace its chunks
1269
1269
  */
1270
1270
  async updateResourceRaw(requestParameters: UpdateResourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ResourceDTO>> {
1271
1271
  const requestOptions = await this.updateResourceRequestOpts(requestParameters);
@@ -1275,8 +1275,8 @@ export class ClientApi extends runtime.BaseAPI {
1275
1275
  }
1276
1276
 
1277
1277
  /**
1278
- * Update the fields present in the form. Chunks are only rebuilt when the file or the chunk size changes.
1279
- * Update a resource
1278
+ * Update resource metadata and replace all chunks with new ones
1279
+ * Update a resource and replace its chunks
1280
1280
  */
1281
1281
  async updateResource(requestParameters: UpdateResourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ResourceDTO> {
1282
1282
  const response = await this.updateResourceRaw(requestParameters, initOverrides);
package/docs/ClientApi.md CHANGED
@@ -19,7 +19,7 @@ All URIs are relative to *http://0.0.0.0:3000/local*
19
19
  | [**getResources**](ClientApi.md#getresources) | **GET** /resources-groups/{resourceGroupId}/resources | Get paginated list of resources with chunks |
20
20
  | [**resourcesGroupsResourceGroupIdResourcesIdGet**](ClientApi.md#resourcesgroupsresourcegroupidresourcesidget) | **GET** /resources-groups/{resourceGroupId}/resources/{id} | Get a resource by ID with chunks |
21
21
  | [**searchResourceGroup**](ClientApi.md#searchresourcegroup) | **POST** /resource-groups/{resourceGroupId}/search | Search for similar content within a resource group using POST method |
22
- | [**updateResource**](ClientApi.md#updateresource) | **PATCH** /resources-groups/{resourceGroupId}/resources/{id} | Update a resource |
22
+ | [**updateResource**](ClientApi.md#updateresource) | **PATCH** /resources-groups/{resourceGroupId}/resources/{id} | Update a resource and replace its chunks |
23
23
  | [**updateResourceGroup**](ClientApi.md#updateresourcegroup) | **PATCH** /resource-groups/{resourceGroupId} | Update a resource group |
24
24
 
25
25
 
@@ -1210,9 +1210,9 @@ example().catch(console.error);
1210
1210
 
1211
1211
  > ResourceDTO updateResource(id, resourceGroupId, chunkSize, file, name, role)
1212
1212
 
1213
- Update a resource
1213
+ Update a resource and replace its chunks
1214
1214
 
1215
- Update the fields present in the form. Chunks are only rebuilt when the file or the chunk size changes.
1215
+ Update resource metadata and replace all chunks with new ones
1216
1216
 
1217
1217
  ### Example
1218
1218
 
@@ -1242,7 +1242,7 @@ async function example() {
1242
1242
  file: BINARY_DATA_HERE,
1243
1243
  // string | Resource name (optional)
1244
1244
  name: name_example,
1245
- // string | Role; send it empty to clear it (optional)
1245
+ // string | Role (optional)
1246
1246
  role: role_example,
1247
1247
  } satisfies UpdateResourceRequest;
1248
1248
 
@@ -1268,7 +1268,7 @@ example().catch(console.error);
1268
1268
  | **chunkSize** | `number` | Chunk size | [Optional] [Defaults to `undefined`] |
1269
1269
  | **file** | `Blob` | Text file to be processed | [Optional] [Defaults to `undefined`] |
1270
1270
  | **name** | `string` | Resource name | [Optional] [Defaults to `undefined`] |
1271
- | **role** | `string` | Role; send it empty to clear it | [Optional] [Defaults to `undefined`] |
1271
+ | **role** | `string` | Role | [Optional] [Defaults to `undefined`] |
1272
1272
 
1273
1273
  ### Return type
1274
1274
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tuix-rag-service-client",
3
- "version": "0.1.99",
3
+ "version": "0.1.100",
4
4
  "description": "This package facilitates the client request to tuix tuix-rag-service",
5
5
  "main": "index.js",
6
6
  "private": false,