@alicloud/bailian20231229 2.14.2 → 2.14.4

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 (57) hide show
  1. package/dist/client.d.ts +62 -58
  2. package/dist/client.js +62 -62
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/AddFileRequest.d.ts +20 -20
  5. package/dist/models/AddFileResponseBody.d.ts +5 -5
  6. package/dist/models/AddFileShrinkRequest.d.ts +16 -16
  7. package/dist/models/BatchUpdateFileTagRequest.d.ts +6 -4
  8. package/dist/models/BatchUpdateFileTagRequest.js.map +1 -1
  9. package/dist/models/BatchUpdateFileTagResponseBody.d.ts +14 -18
  10. package/dist/models/BatchUpdateFileTagResponseBody.js.map +1 -1
  11. package/dist/models/BatchUpdateFileTagShrinkRequest.d.ts +4 -2
  12. package/dist/models/BatchUpdateFileTagShrinkRequest.js.map +1 -1
  13. package/dist/models/CreateIndexRequest.d.ts +60 -60
  14. package/dist/models/CreateIndexResponseBody.d.ts +3 -3
  15. package/dist/models/CreateIndexShrinkRequest.d.ts +52 -52
  16. package/dist/models/ListIndexFileDetailsRequest.d.ts +3 -3
  17. package/dist/models/ListIndexFileDetailsResponseBody.d.ts +14 -4
  18. package/dist/models/ListIndexFileDetailsResponseBody.js.map +1 -1
  19. package/dist/models/ListIndicesRequest.d.ts +2 -2
  20. package/dist/models/ListIndicesResponseBody.d.ts +98 -29
  21. package/dist/models/ListIndicesResponseBody.js +37 -1
  22. package/dist/models/ListIndicesResponseBody.js.map +1 -1
  23. package/dist/models/SubmitIndexAddDocumentsJobRequest.d.ts +33 -44
  24. package/dist/models/SubmitIndexAddDocumentsJobRequest.js.map +1 -1
  25. package/dist/models/SubmitIndexAddDocumentsJobResponseBody.d.ts +8 -9
  26. package/dist/models/SubmitIndexAddDocumentsJobResponseBody.js.map +1 -1
  27. package/dist/models/SubmitIndexAddDocumentsJobShrinkRequest.d.ts +33 -44
  28. package/dist/models/SubmitIndexAddDocumentsJobShrinkRequest.js.map +1 -1
  29. package/dist/models/UpdateFileTagRequest.d.ts +1 -1
  30. package/dist/models/UpdateFileTagResponseBody.d.ts +8 -9
  31. package/dist/models/UpdateFileTagResponseBody.js.map +1 -1
  32. package/dist/models/UpdateFileTagShrinkRequest.d.ts +1 -1
  33. package/dist/models/model.d.ts +1 -0
  34. package/dist/models/model.js +12 -10
  35. package/dist/models/model.js.map +1 -1
  36. package/package.json +1 -1
  37. package/src/client.ts +62 -62
  38. package/src/models/AddFileRequest.ts +20 -20
  39. package/src/models/AddFileResponseBody.ts +5 -5
  40. package/src/models/AddFileShrinkRequest.ts +16 -16
  41. package/src/models/BatchUpdateFileTagRequest.ts +6 -4
  42. package/src/models/BatchUpdateFileTagResponseBody.ts +14 -18
  43. package/src/models/BatchUpdateFileTagShrinkRequest.ts +4 -2
  44. package/src/models/CreateIndexRequest.ts +60 -60
  45. package/src/models/CreateIndexResponseBody.ts +3 -3
  46. package/src/models/CreateIndexShrinkRequest.ts +52 -52
  47. package/src/models/ListIndexFileDetailsRequest.ts +3 -3
  48. package/src/models/ListIndexFileDetailsResponseBody.ts +14 -4
  49. package/src/models/ListIndicesRequest.ts +2 -2
  50. package/src/models/ListIndicesResponseBody.ts +125 -29
  51. package/src/models/SubmitIndexAddDocumentsJobRequest.ts +33 -44
  52. package/src/models/SubmitIndexAddDocumentsJobResponseBody.ts +8 -9
  53. package/src/models/SubmitIndexAddDocumentsJobShrinkRequest.ts +33 -44
  54. package/src/models/UpdateFileTagRequest.ts +1 -1
  55. package/src/models/UpdateFileTagResponseBody.ts +8 -9
  56. package/src/models/UpdateFileTagShrinkRequest.ts +1 -1
  57. package/src/models/model.ts +1 -0
package/src/client.ts CHANGED
@@ -12,10 +12,6 @@ export default class Client extends OpenApi {
12
12
  constructor(config: $OpenApiUtil.Config) {
13
13
  super(config);
14
14
  this._endpointRule = "regional";
15
- this._endpointMap = {
16
- 'cn-beijing': "bailian.cn-beijing.aliyuncs.com",
17
- 'ap-southeast-1': "bailian.ap-southeast-1.aliyuncs.com",
18
- };
19
15
  this.checkConfig(config);
20
16
  this._endpoint = this.getEndpoint("bailian", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint);
21
17
  }
@@ -256,10 +252,10 @@ export default class Client extends OpenApi {
256
252
  * Imports a file from the temporary storage of Alibaba Cloud Model Studio into an Alibaba Cloud Model Studio data connection (formerly known as application data).
257
253
  *
258
254
  * @remarks
259
- * - Resource Access Management (RAM) users must first obtain [API permissions](https://help.aliyun.com/document_detail/2848578.html) for Alibaba Cloud Model Studio (requires `AliyunBailianDataFullAccess`, which includes the sfm:AddFile permission), and [join a workspace](https://help.aliyun.com/document_detail/2851098.html) before invoking this operation. Alibaba Cloud accounts can invoke this operation directly without authorization. Invoke this operation by using the latest <props="china">[Alibaba Cloud Model Studio SDK](https://api.aliyun.com/api-tools/sdk/bailian?version=2023-12-29)<props="intl">[Alibaba Cloud Model Studio SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29).
255
+ * - RAM users must first obtain [API permissions](https://help.aliyun.com/document_detail/2848578.html) for Alibaba Cloud Model Studio (requires `AliyunBailianDataFullAccess`, which includes the sfm:AddFile permission) and [join a workspace](https://help.aliyun.com/document_detail/2851098.html) before calling this operation. Alibaba Cloud accounts can call this operation directly without authorization. Call this operation by using the latest <props="china">[Alibaba Cloud Model Studio SDK](https://api.aliyun.com/api-tools/sdk/bailian?version=2023-12-29)<props="intl">[Alibaba Cloud Model Studio SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29).
260
256
  * - This operation is not idempotent.
261
- * **Throttling:**
262
- * This operation is subject to throttling. Do not exceed 10 calls per second. If you are throttled, retry later.
257
+ * **Rate limiting:**
258
+ * This operation is rate-limited. Do not exceed 10 calls per second. If you are throttled, retry later.
263
259
  *
264
260
  * @param tmpReq - AddFileRequest
265
261
  * @param headers - map
@@ -329,10 +325,10 @@ export default class Client extends OpenApi {
329
325
  * Imports a file from the temporary storage of Alibaba Cloud Model Studio into an Alibaba Cloud Model Studio data connection (formerly known as application data).
330
326
  *
331
327
  * @remarks
332
- * - Resource Access Management (RAM) users must first obtain [API permissions](https://help.aliyun.com/document_detail/2848578.html) for Alibaba Cloud Model Studio (requires `AliyunBailianDataFullAccess`, which includes the sfm:AddFile permission), and [join a workspace](https://help.aliyun.com/document_detail/2851098.html) before invoking this operation. Alibaba Cloud accounts can invoke this operation directly without authorization. Invoke this operation by using the latest <props="china">[Alibaba Cloud Model Studio SDK](https://api.aliyun.com/api-tools/sdk/bailian?version=2023-12-29)<props="intl">[Alibaba Cloud Model Studio SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29).
328
+ * - RAM users must first obtain [API permissions](https://help.aliyun.com/document_detail/2848578.html) for Alibaba Cloud Model Studio (requires `AliyunBailianDataFullAccess`, which includes the sfm:AddFile permission) and [join a workspace](https://help.aliyun.com/document_detail/2851098.html) before calling this operation. Alibaba Cloud accounts can call this operation directly without authorization. Call this operation by using the latest <props="china">[Alibaba Cloud Model Studio SDK](https://api.aliyun.com/api-tools/sdk/bailian?version=2023-12-29)<props="intl">[Alibaba Cloud Model Studio SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29).
333
329
  * - This operation is not idempotent.
334
- * **Throttling:**
335
- * This operation is subject to throttling. Do not exceed 10 calls per second. If you are throttled, retry later.
330
+ * **Rate limiting:**
331
+ * This operation is rate-limited. Do not exceed 10 calls per second. If you are throttled, retry later.
336
332
  *
337
333
  * @param request - AddFileRequest
338
334
  * @returns AddFileResponse
@@ -646,7 +642,7 @@ export default class Client extends OpenApi {
646
642
  }
647
643
 
648
644
  /**
649
- * This operation updates document tags in a data connection in batches.
645
+ * Batch updates document tags in a data connection.
650
646
  *
651
647
  * @param tmpReq - BatchUpdateFileTagRequest
652
648
  * @param headers - map
@@ -689,7 +685,7 @@ export default class Client extends OpenApi {
689
685
  }
690
686
 
691
687
  /**
692
- * This operation updates document tags in a data connection in batches.
688
+ * Batch updates document tags in a data connection.
693
689
  *
694
690
  * @param request - BatchUpdateFileTagRequest
695
691
  * @returns BatchUpdateFileTagResponse
@@ -847,17 +843,17 @@ export default class Client extends OpenApi {
847
843
  }
848
844
 
849
845
  /**
850
- * Creates a knowledge base, either an unstructured knowledge base based on documents or audio/video, or a structured knowledge base for data queries or image-based Q&A.
846
+ * Creates a knowledge base of either type: an unstructured knowledge base based on documents or audio/video, or a structured knowledge base for data queries or image-based Q&A.
851
847
  *
852
848
  * @remarks
853
849
  * - **Permission requirements**:
854
- * - **Resource Access Management (RAM) user**: Obtain [API permissions](https://help.aliyun.com/document_detail/2848578.html) for Alibaba Cloud Model Studio first (you can use the `AliyunBailianDataFullAccess` policy, which includes the sfm:CreateIndex permission required by this operation), and [join a workspace](https://help.aliyun.com/document_detail/2851098.html) before invoking this operation.
850
+ * - **Resource Access Management (RAM) user**: Before invoking this operation, obtain [API permissions](https://help.aliyun.com/document_detail/2848578.html) for Alibaba Cloud Model Studio (you can use the `AliyunBailianDataFullAccess` policy, which includes the sfm:CreateIndex permission required by this operation), and [join a workspace](https://help.aliyun.com/document_detail/2851098.html).
855
851
  * - **Alibaba Cloud account**: Has permissions by default and can invoke this operation directly.
856
- * - **Calling method**: Use the latest <props="china">[Alibaba Cloud Model Studio SDK](https://api.aliyun.com/api-tools/sdk/bailian?version=2023-12-29)<props="intl">[Alibaba Cloud Model Studio SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29). The SDK has encapsulated the complex signature calculation logic and simplifies the invocation procedure.
857
- * - **What to do next**: This operation only performs initialization of the knowledge base creation job. After invoking this operation, you must invoke the **SubmitIndexJob** operation to complete the creation (otherwise, you will get an empty knowledge base). For code examples, refer to [Knowledge Base API Guide](https://help.aliyun.com/document_detail/2852772.html).
858
- * - **Idempotence**: This operation does not have idempotence. Repeated invocations may create multiple knowledge bases with the same name. Implement idempotent invocations by querying first and then creating.
859
- * **Rate limit:**
860
- * This operation is subject to rate limiting. Do not exceed 10 calls per second. If you are throttled, retry later.
852
+ * - **Calling method**: Use the latest <props="china">[Alibaba Cloud Model Studio SDK](https://api.aliyun.com/api-tools/sdk/bailian?version=2023-12-29)<props="intl">[Alibaba Cloud Model Studio SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29). The SDK provides encapsulation of complex signature calculation logic and simplifies the invocation procedure.
853
+ * - **What to do next**: This operation only performs initialization of the knowledge base creation job. After invoking this operation, you must invoke the **SubmitIndexJob** operation to complete the creation (otherwise, you will get an empty knowledge base). For code examples, see [Knowledge Base API Guide](https://help.aliyun.com/document_detail/2852772.html).
854
+ * - **Idempotence**: This operation is not idempotent. Repeated invocations may create multiple knowledge bases with the same name. Implement idempotent calls by using a "query first, then create" approach.
855
+ * **Rate limiting:**
856
+ * This operation is subject to rate limiting. Do not exceed 10 calls per second. If you are rate-limited, retry later.
861
857
  *
862
858
  * @param tmpReq - CreateIndexRequest
863
859
  * @param headers - map
@@ -1044,17 +1040,17 @@ export default class Client extends OpenApi {
1044
1040
  }
1045
1041
 
1046
1042
  /**
1047
- * Creates a knowledge base, either an unstructured knowledge base based on documents or audio/video, or a structured knowledge base for data queries or image-based Q&A.
1043
+ * Creates a knowledge base of either type: an unstructured knowledge base based on documents or audio/video, or a structured knowledge base for data queries or image-based Q&A.
1048
1044
  *
1049
1045
  * @remarks
1050
1046
  * - **Permission requirements**:
1051
- * - **Resource Access Management (RAM) user**: Obtain [API permissions](https://help.aliyun.com/document_detail/2848578.html) for Alibaba Cloud Model Studio first (you can use the `AliyunBailianDataFullAccess` policy, which includes the sfm:CreateIndex permission required by this operation), and [join a workspace](https://help.aliyun.com/document_detail/2851098.html) before invoking this operation.
1047
+ * - **Resource Access Management (RAM) user**: Before invoking this operation, obtain [API permissions](https://help.aliyun.com/document_detail/2848578.html) for Alibaba Cloud Model Studio (you can use the `AliyunBailianDataFullAccess` policy, which includes the sfm:CreateIndex permission required by this operation), and [join a workspace](https://help.aliyun.com/document_detail/2851098.html).
1052
1048
  * - **Alibaba Cloud account**: Has permissions by default and can invoke this operation directly.
1053
- * - **Calling method**: Use the latest <props="china">[Alibaba Cloud Model Studio SDK](https://api.aliyun.com/api-tools/sdk/bailian?version=2023-12-29)<props="intl">[Alibaba Cloud Model Studio SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29). The SDK has encapsulated the complex signature calculation logic and simplifies the invocation procedure.
1054
- * - **What to do next**: This operation only performs initialization of the knowledge base creation job. After invoking this operation, you must invoke the **SubmitIndexJob** operation to complete the creation (otherwise, you will get an empty knowledge base). For code examples, refer to [Knowledge Base API Guide](https://help.aliyun.com/document_detail/2852772.html).
1055
- * - **Idempotence**: This operation does not have idempotence. Repeated invocations may create multiple knowledge bases with the same name. Implement idempotent invocations by querying first and then creating.
1056
- * **Rate limit:**
1057
- * This operation is subject to rate limiting. Do not exceed 10 calls per second. If you are throttled, retry later.
1049
+ * - **Calling method**: Use the latest <props="china">[Alibaba Cloud Model Studio SDK](https://api.aliyun.com/api-tools/sdk/bailian?version=2023-12-29)<props="intl">[Alibaba Cloud Model Studio SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29). The SDK provides encapsulation of complex signature calculation logic and simplifies the invocation procedure.
1050
+ * - **What to do next**: This operation only performs initialization of the knowledge base creation job. After invoking this operation, you must invoke the **SubmitIndexJob** operation to complete the creation (otherwise, you will get an empty knowledge base). For code examples, see [Knowledge Base API Guide](https://help.aliyun.com/document_detail/2852772.html).
1051
+ * - **Idempotence**: This operation is not idempotent. Repeated invocations may create multiple knowledge bases with the same name. Implement idempotent calls by using a "query first, then create" approach.
1052
+ * **Rate limiting:**
1053
+ * This operation is subject to rate limiting. Do not exceed 10 calls per second. If you are rate-limited, retry later.
1058
1054
  *
1059
1055
  * @param request - CreateIndexRequest
1060
1056
  * @returns CreateIndexResponse
@@ -2847,12 +2843,12 @@ export default class Client extends OpenApi {
2847
2843
  }
2848
2844
 
2849
2845
  /**
2850
- * Retrieves the files in a specified knowledge base along with their details.
2846
+ * Retrieves files and their details from a specified knowledge base.
2851
2847
  *
2852
2848
  * @remarks
2853
- * - RAM users must first obtain [API permissions](https://help.aliyun.com/document_detail/2848578.html) for Alibaba Cloud Model Studio (requires `AliyunBailianDataFullAccess`, which includes the sfm:ListIndexFiles permission), before calling this operation. Alibaba Cloud accounts can call this operation directly without authorization. Use the latest <props="china">[Alibaba Cloud Model Studio SDK](https://api.aliyun.com/api-tools/sdk/bailian?version=2023-12-29)<props="intl">[Alibaba Cloud Model Studio SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29) to call this operation.
2854
- * - Before calling this operation, make sure that your knowledge base has been created and has not been deleted (that is, the knowledge base ID `IndexId` is valid).
2855
- * - This operation is idempotent.
2849
+ * - Resource Access Management (RAM) users must first obtain [API permissions](https://help.aliyun.com/document_detail/2848578.html) for Alibaba Cloud Model Studio (requires `AliyunBailianDataFullAccess`, which includes the sfm:ListIndexFiles permission), before invoking this operation. Alibaba Cloud accounts can invoke this operation directly without authorization. Invoke this operation through the latest <props="china">[Alibaba Cloud Model Studio SDK](https://api.aliyun.com/api-tools/sdk/bailian?version=2023-12-29)<props="intl">[Alibaba Cloud Model Studio SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29).
2850
+ * - Before invoking this operation, make sure your knowledge base has been created and has not been deleted (that is, the knowledge base ID `IndexId` is valid).
2851
+ * - This operation has idempotence.
2856
2852
  *
2857
2853
  * @param request - ListIndexFileDetailsRequest
2858
2854
  * @param headers - map
@@ -2905,12 +2901,12 @@ export default class Client extends OpenApi {
2905
2901
  }
2906
2902
 
2907
2903
  /**
2908
- * Retrieves the files in a specified knowledge base along with their details.
2904
+ * Retrieves files and their details from a specified knowledge base.
2909
2905
  *
2910
2906
  * @remarks
2911
- * - RAM users must first obtain [API permissions](https://help.aliyun.com/document_detail/2848578.html) for Alibaba Cloud Model Studio (requires `AliyunBailianDataFullAccess`, which includes the sfm:ListIndexFiles permission), before calling this operation. Alibaba Cloud accounts can call this operation directly without authorization. Use the latest <props="china">[Alibaba Cloud Model Studio SDK](https://api.aliyun.com/api-tools/sdk/bailian?version=2023-12-29)<props="intl">[Alibaba Cloud Model Studio SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29) to call this operation.
2912
- * - Before calling this operation, make sure that your knowledge base has been created and has not been deleted (that is, the knowledge base ID `IndexId` is valid).
2913
- * - This operation is idempotent.
2907
+ * - Resource Access Management (RAM) users must first obtain [API permissions](https://help.aliyun.com/document_detail/2848578.html) for Alibaba Cloud Model Studio (requires `AliyunBailianDataFullAccess`, which includes the sfm:ListIndexFiles permission), before invoking this operation. Alibaba Cloud accounts can invoke this operation directly without authorization. Invoke this operation through the latest <props="china">[Alibaba Cloud Model Studio SDK](https://api.aliyun.com/api-tools/sdk/bailian?version=2023-12-29)<props="intl">[Alibaba Cloud Model Studio SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29).
2908
+ * - Before invoking this operation, make sure your knowledge base has been created and has not been deleted (that is, the knowledge base ID `IndexId` is valid).
2909
+ * - This operation has idempotence.
2914
2910
  *
2915
2911
  * @param request - ListIndexFileDetailsRequest
2916
2912
  * @returns ListIndexFileDetailsResponse
@@ -2925,10 +2921,10 @@ export default class Client extends OpenApi {
2925
2921
  * Retrieves the list of knowledge bases in a specified workspace.
2926
2922
  *
2927
2923
  * @remarks
2928
- * - Resource Access Management (RAM) users must first obtain [API permissions](https://help.aliyun.com/document_detail/2848578.html) for Alibaba Cloud Model Studio (requires `AliyunBailianDataFullAccess`, which includes the sfm:ListIndex permission) before calling this operation. Alibaba Cloud accounts can call this operation directly without authorization. Use the latest <props="china">[Alibaba Cloud Model Studio SDK](https://api.aliyun.com/api-tools/sdk/bailian?version=2023-12-29)<props="intl">[Alibaba Cloud Model Studio SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29) to call this operation.
2924
+ * - RAM users must first obtain [API permissions](https://help.aliyun.com/document_detail/2848578.html) for Alibaba Cloud Model Studio (requires `AliyunBailianDataFullAccess`, which includes the sfm:ListIndex permission). Only then can they call this operation. Alibaba Cloud accounts (primary accounts) can call this operation directly without authorization. Use the latest <props="china">[Alibaba Cloud Model Studio SDK](https://api.aliyun.com/api-tools/sdk/bailian?version=2023-12-29)<props="intl">[Alibaba Cloud Model Studio SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29) to call this operation.
2929
2925
  * - This operation is idempotent.
2930
2926
  * **Rate limit:**
2931
- * This operation is throttled if called too frequently. Do not exceed 10 calls per second. If throttled, retry later.
2927
+ * This operation is throttled if called too frequently. Do not exceed 10 calls per second. If you are throttled, retry later.
2932
2928
  *
2933
2929
  * @param request - ListIndicesRequest
2934
2930
  * @param headers - map
@@ -2972,10 +2968,10 @@ export default class Client extends OpenApi {
2972
2968
  * Retrieves the list of knowledge bases in a specified workspace.
2973
2969
  *
2974
2970
  * @remarks
2975
- * - Resource Access Management (RAM) users must first obtain [API permissions](https://help.aliyun.com/document_detail/2848578.html) for Alibaba Cloud Model Studio (requires `AliyunBailianDataFullAccess`, which includes the sfm:ListIndex permission) before calling this operation. Alibaba Cloud accounts can call this operation directly without authorization. Use the latest <props="china">[Alibaba Cloud Model Studio SDK](https://api.aliyun.com/api-tools/sdk/bailian?version=2023-12-29)<props="intl">[Alibaba Cloud Model Studio SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29) to call this operation.
2971
+ * - RAM users must first obtain [API permissions](https://help.aliyun.com/document_detail/2848578.html) for Alibaba Cloud Model Studio (requires `AliyunBailianDataFullAccess`, which includes the sfm:ListIndex permission). Only then can they call this operation. Alibaba Cloud accounts (primary accounts) can call this operation directly without authorization. Use the latest <props="china">[Alibaba Cloud Model Studio SDK](https://api.aliyun.com/api-tools/sdk/bailian?version=2023-12-29)<props="intl">[Alibaba Cloud Model Studio SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29) to call this operation.
2976
2972
  * - This operation is idempotent.
2977
2973
  * **Rate limit:**
2978
- * This operation is throttled if called too frequently. Do not exceed 10 calls per second. If throttled, retry later.
2974
+ * This operation is throttled if called too frequently. Do not exceed 10 calls per second. If you are throttled, retry later.
2979
2975
  *
2980
2976
  * @param request - ListIndicesRequest
2981
2977
  * @returns ListIndicesResponse
@@ -3370,19 +3366,20 @@ export default class Client extends OpenApi {
3370
3366
  }
3371
3367
 
3372
3368
  /**
3373
- * Adds parsed files to the specified knowledge base.
3369
+ * Appends parsed files to a specified knowledge base.
3374
3370
  *
3375
3371
  * @remarks
3376
3372
  * <props="china">
3377
- * - This API does not support knowledge bases for data queries or image Q\\&A. To update these knowledge bases, see the [knowledge base](https://help.aliyun.com/document_detail/2807740.html) documentation.
3373
+ * - This operation does not support data query or image Q&A knowledge bases. For information about how to update data query or image Q&A knowledge bases, see the knowledge base update instructions in [Knowledge base](https://help.aliyun.com/document_detail/2807740.html).
3378
3374
  * <props="intl">
3379
- * - This API does not support knowledge bases for data queries or image Q\\&A. To update these knowledge bases, see the [knowledge base](https://help.aliyun.com/document_detail/2807740.html) documentation.
3380
- * - A RAM user (sub-account) can call this API only after being granted the required [api permission](https://help.aliyun.com/document_detail/2848578.html) for Alibaba Cloud Model Studio (specifically, the `AliyunBailianDataFullAccess` policy, which includes the `sfm:SubmitIndexAddDocumentsJob` permission) and joining a [workspace](https://help.aliyun.com/document_detail/2851098.html). An Alibaba Cloud account can call this API directly without authorization. We recommend using the latest version of the <props="china">[Alibaba Cloud Model Studio SDK](https://api.aliyun.com/api-tools/sdk/bailian?version=2023-12-29)<props="intl">[Alibaba Cloud Model Studio SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29) to call this API.
3381
- * - Before calling this API, ensure your knowledge base exists and has a valid knowledge base ID (`IndexId`).
3382
- * - Before calling this API, you must first upload files to Alibaba Cloud Model Studio using the **AddFile** API.
3383
- * - After calling this API, the job runs in the background and may take several hours to complete, especially during peak times. Do not submit duplicate requests until the job is complete. To check the job status, call the **GetIndexJobStatus** API. The `Documents` file list returned by the GetIndexJobStatus API contains all files for the job, which is uniquely identified by the `job_id` you provided. You can check this list to verify whether each file was imported (parsed) successfully. Note that frequent calls to the GetIndexJobStatus API are subject to rate limiting. Do not exceed 20 calls per minute.
3384
- * - A successful API call indicates the job has been submitted for processing, which takes time. This API is not idempotent, so do not send duplicate requests; doing so will create multiple jobs.
3385
- * **Rate limiting:** This API is limited to 10 calls per second. If you exceed this limit, wait before retrying.
3375
+ * - This operation does not support data query or image Q&A knowledge bases. For information about how to update data query or image Q&A knowledge bases, see the knowledge base update instructions in [Knowledge base](https://help.aliyun.com/document_detail/2807740.html).
3376
+ * - Resource Access Management (RAM) users must first obtain [API permissions](https://help.aliyun.com/document_detail/2848578.html) for Model Studio (requiring `AliyunBailianDataFullAccess`, which includes the sfm:SubmitIndexAddDocumentsJob permission), and [join a workspace](https://help.aliyun.com/document_detail/2851098.html) before invoking this operation. Alibaba Cloud accounts can invoke this operation directly without authorization. Use the latest <props="china">[Model Studio SDK](https://api.aliyun.com/api-tools/sdk/bailian?version=2023-12-29)<props="intl">[Model Studio SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29) to invoke this operation.
3377
+ * - Before invoking this operation, make sure that your knowledge base has been created and has not been deleted (that is, the knowledge base ID `IndexId` is valid).
3378
+ * - Before invoking this operation, invoke the **AddFile** operation to upload the files you want to append to Model Studio.
3379
+ * - After invoking this operation, the node requires time to execute and may take several hours during peak periods. Do not submit duplicate requests before the node is complete. To query the node execution status, invoke the **GetIndexJobStatus** operation. The `Documents` file list returned by this operation contains all files in this append job (uniquely identified by the `job_id` you provide), and you can check whether each file was imported (parsed) successfully. Note that invoking GetIndexJobStatus too frequently will trigger rate limiting. Do not exceed a frequency of 20 times per minute.
3380
+ * - After this operation is invoked successfully, it takes some time to execute. Do not submit duplicate requests before the response is returned. This operation does not have idempotence.
3381
+ * **Rate limit:**
3382
+ * Frequent calls to this operation will be throttled. Do not exceed 10 calls per second. If throttled, retry later.
3386
3383
  *
3387
3384
  * @param tmpReq - SubmitIndexAddDocumentsJobRequest
3388
3385
  * @param headers - map
@@ -3465,19 +3462,20 @@ export default class Client extends OpenApi {
3465
3462
  }
3466
3463
 
3467
3464
  /**
3468
- * Adds parsed files to the specified knowledge base.
3465
+ * Appends parsed files to a specified knowledge base.
3469
3466
  *
3470
3467
  * @remarks
3471
3468
  * <props="china">
3472
- * - This API does not support knowledge bases for data queries or image Q\\&A. To update these knowledge bases, see the [knowledge base](https://help.aliyun.com/document_detail/2807740.html) documentation.
3469
+ * - This operation does not support data query or image Q&A knowledge bases. For information about how to update data query or image Q&A knowledge bases, see the knowledge base update instructions in [Knowledge base](https://help.aliyun.com/document_detail/2807740.html).
3473
3470
  * <props="intl">
3474
- * - This API does not support knowledge bases for data queries or image Q\\&A. To update these knowledge bases, see the [knowledge base](https://help.aliyun.com/document_detail/2807740.html) documentation.
3475
- * - A RAM user (sub-account) can call this API only after being granted the required [api permission](https://help.aliyun.com/document_detail/2848578.html) for Alibaba Cloud Model Studio (specifically, the `AliyunBailianDataFullAccess` policy, which includes the `sfm:SubmitIndexAddDocumentsJob` permission) and joining a [workspace](https://help.aliyun.com/document_detail/2851098.html). An Alibaba Cloud account can call this API directly without authorization. We recommend using the latest version of the <props="china">[Alibaba Cloud Model Studio SDK](https://api.aliyun.com/api-tools/sdk/bailian?version=2023-12-29)<props="intl">[Alibaba Cloud Model Studio SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29) to call this API.
3476
- * - Before calling this API, ensure your knowledge base exists and has a valid knowledge base ID (`IndexId`).
3477
- * - Before calling this API, you must first upload files to Alibaba Cloud Model Studio using the **AddFile** API.
3478
- * - After calling this API, the job runs in the background and may take several hours to complete, especially during peak times. Do not submit duplicate requests until the job is complete. To check the job status, call the **GetIndexJobStatus** API. The `Documents` file list returned by the GetIndexJobStatus API contains all files for the job, which is uniquely identified by the `job_id` you provided. You can check this list to verify whether each file was imported (parsed) successfully. Note that frequent calls to the GetIndexJobStatus API are subject to rate limiting. Do not exceed 20 calls per minute.
3479
- * - A successful API call indicates the job has been submitted for processing, which takes time. This API is not idempotent, so do not send duplicate requests; doing so will create multiple jobs.
3480
- * **Rate limiting:** This API is limited to 10 calls per second. If you exceed this limit, wait before retrying.
3471
+ * - This operation does not support data query or image Q&A knowledge bases. For information about how to update data query or image Q&A knowledge bases, see the knowledge base update instructions in [Knowledge base](https://help.aliyun.com/document_detail/2807740.html).
3472
+ * - Resource Access Management (RAM) users must first obtain [API permissions](https://help.aliyun.com/document_detail/2848578.html) for Model Studio (requiring `AliyunBailianDataFullAccess`, which includes the sfm:SubmitIndexAddDocumentsJob permission), and [join a workspace](https://help.aliyun.com/document_detail/2851098.html) before invoking this operation. Alibaba Cloud accounts can invoke this operation directly without authorization. Use the latest <props="china">[Model Studio SDK](https://api.aliyun.com/api-tools/sdk/bailian?version=2023-12-29)<props="intl">[Model Studio SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29) to invoke this operation.
3473
+ * - Before invoking this operation, make sure that your knowledge base has been created and has not been deleted (that is, the knowledge base ID `IndexId` is valid).
3474
+ * - Before invoking this operation, invoke the **AddFile** operation to upload the files you want to append to Model Studio.
3475
+ * - After invoking this operation, the node requires time to execute and may take several hours during peak periods. Do not submit duplicate requests before the node is complete. To query the node execution status, invoke the **GetIndexJobStatus** operation. The `Documents` file list returned by this operation contains all files in this append job (uniquely identified by the `job_id` you provide), and you can check whether each file was imported (parsed) successfully. Note that invoking GetIndexJobStatus too frequently will trigger rate limiting. Do not exceed a frequency of 20 times per minute.
3476
+ * - After this operation is invoked successfully, it takes some time to execute. Do not submit duplicate requests before the response is returned. This operation does not have idempotence.
3477
+ * **Rate limit:**
3478
+ * Frequent calls to this operation will be throttled. Do not exceed 10 calls per second. If throttled, retry later.
3481
3479
  *
3482
3480
  * @param request - SubmitIndexAddDocumentsJobRequest
3483
3481
  * @returns SubmitIndexAddDocumentsJobResponse
@@ -3840,11 +3838,12 @@ export default class Client extends OpenApi {
3840
3838
  }
3841
3839
 
3842
3840
  /**
3843
- * Updates the tags for a specified file.
3841
+ * Updates the tags of a specified file.
3844
3842
  *
3845
3843
  * @remarks
3846
- * - A RAM User (sub-account) must be granted the required [API permissions](https://help.aliyun.com/document_detail/2848578.html) for Alibaba Cloud Model Studio (the `AliyunBailianDataFullAccess` policy, which includes the `sfm:UpdateFileTag` permission) and [join a workspace](https://help.aliyun.com/document_detail/2851098.html) before calling this operation. An Alibaba Cloud account (main account) can call this operation directly without authorization. We recommend using the latest version of the <props="china">[Alibaba Cloud Model Studio SDK](https://api.aliyun.com/api-tools/sdk/bailian?version=2023-12-29)<props="intl">[Alibaba Cloud Model Studio SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29) to call this operation.
3847
- * **Throttling:** Do not call this operation more than 5 times per second. If a request is throttled, try again later.
3844
+ * - Resource Access Management (RAM) users must first obtain [API permissions](https://help.aliyun.com/document_detail/2848578.html) for Alibaba Cloud Model Studio (requires `AliyunBailianDataFullAccess`, which includes the sfm:UpdateFileTag permission), and [join a workspace](https://help.aliyun.com/document_detail/2851098.html) before calling this operation. Alibaba Cloud accounts can call this operation directly without authorization. Use the latest <props="china">[Alibaba Cloud Model Studio SDK](https://api.aliyun.com/api-tools/sdk/bailian?version=2023-12-29)<props="intl">[Alibaba Cloud Model Studio SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29) to call this operation.
3845
+ * **Rate limiting:**
3846
+ * This operation is rate-limited. Do not exceed 5 calls per second. If you are throttled, retry later.
3848
3847
  *
3849
3848
  * @param tmpReq - UpdateFileTagRequest
3850
3849
  * @param headers - map
@@ -3883,11 +3882,12 @@ export default class Client extends OpenApi {
3883
3882
  }
3884
3883
 
3885
3884
  /**
3886
- * Updates the tags for a specified file.
3885
+ * Updates the tags of a specified file.
3887
3886
  *
3888
3887
  * @remarks
3889
- * - A RAM User (sub-account) must be granted the required [API permissions](https://help.aliyun.com/document_detail/2848578.html) for Alibaba Cloud Model Studio (the `AliyunBailianDataFullAccess` policy, which includes the `sfm:UpdateFileTag` permission) and [join a workspace](https://help.aliyun.com/document_detail/2851098.html) before calling this operation. An Alibaba Cloud account (main account) can call this operation directly without authorization. We recommend using the latest version of the <props="china">[Alibaba Cloud Model Studio SDK](https://api.aliyun.com/api-tools/sdk/bailian?version=2023-12-29)<props="intl">[Alibaba Cloud Model Studio SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29) to call this operation.
3890
- * **Throttling:** Do not call this operation more than 5 times per second. If a request is throttled, try again later.
3888
+ * - Resource Access Management (RAM) users must first obtain [API permissions](https://help.aliyun.com/document_detail/2848578.html) for Alibaba Cloud Model Studio (requires `AliyunBailianDataFullAccess`, which includes the sfm:UpdateFileTag permission), and [join a workspace](https://help.aliyun.com/document_detail/2851098.html) before calling this operation. Alibaba Cloud accounts can call this operation directly without authorization. Use the latest <props="china">[Alibaba Cloud Model Studio SDK](https://api.aliyun.com/api-tools/sdk/bailian?version=2023-12-29)<props="intl">[Alibaba Cloud Model Studio SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29) to call this operation.
3889
+ * **Rate limiting:**
3890
+ * This operation is rate-limited. Do not exceed 5 calls per second. If you are throttled, retry later.
3891
3891
  *
3892
3892
  * @param request - UpdateFileTagRequest
3893
3893
  * @returns UpdateFileTagResponse
@@ -16,10 +16,10 @@ export class AddFileRequestParserConfig extends $dara.Model {
16
16
  * The prompt used when calling Qwen VL parsing.
17
17
  *
18
18
  * @example
19
- * #角色
20
- * 你是一个专业的图片内容标注人员,擅长识别并描述出图片中的内容。
21
- * # 任务目标
22
- * 请结合输入图片,详细描述图片中的内容。
19
+ * # Role
20
+ * You are a professional image content annotator who excels at identifying and describing the content in images.
21
+ * # Task objective
22
+ * Based on the input image, describe the content in the image in detail
23
23
  */
24
24
  modelPrompt?: string;
25
25
  static names(): { [key: string]: string } {
@@ -50,14 +50,14 @@ export class AddFileRequest extends $dara.Model {
50
50
  * @remarks
51
51
  * <props="china">
52
52
  *
53
- * - When CategoryType is set to UNSTRUCTURED, set this parameter to the category ID of the uploaded file, which is the `CategoryId` returned by the **AddCategory** operation. You can also go to [Application Data](https://bailian.console.aliyun.com/?tab=app#/data-center), click the File tab, and then click the ID icon next to the category name to obtain the category ID. You can set this parameter to default to use the system-created default category.
53
+ * - When CategoryType is set to UNSTRUCTURED, specify the category ID to which the uploaded file belongs. This is the `CategoryId` returned by the **AddCategory** operation. You can also go to [Application Data](https://bailian.console.aliyun.com/?tab=app#/data-center) > Files tab and click the ID icon next to the category name to obtain the category ID. You can set this parameter to default to use the system-created default category.
54
54
  *
55
55
  * - When CategoryType is set to SESSION_FILE, set this parameter to "default".
56
56
  *
57
57
  *
58
58
  * <props="intl">
59
59
  *
60
- * Set this parameter to the category ID of the uploaded file, which is the `CategoryId` returned by the **AddCategory** operation. You can also go to [Application Data](https://modelstudio.console.alibabacloud.com/?tab=app#/data-center), click the File tab, and then click the ID icon next to the category name to obtain the category ID. You can set this parameter to default to use the system-created default category.
60
+ * Specify the category ID to which the uploaded file belongs. This is the `CategoryId` returned by the **AddCategory** operation. You can also go to [Application Data](https://modelstudio.console.alibabacloud.com/?tab=app#/data-center) > Files tab and click the ID icon next to the category name to obtain the category ID. You can set this parameter to default to use the system-created default category.
61
61
  *
62
62
  * This parameter is required.
63
63
  *
@@ -68,12 +68,12 @@ export class AddFileRequest extends $dara.Model {
68
68
  /**
69
69
  * @remarks
70
70
  * The category type. This parameter is optional. Default value: UNSTRUCTURED. Valid values:
71
- * - UNSTRUCTURED: category used for building knowledge base scenarios.
71
+ * - UNSTRUCTURED: Category. Used for knowledge base scenarios.
72
72
  *
73
73
  * <props="china">
74
- * - SESSION_FILE: file used for [session interaction](https://www.alibabacloud.com/help/en/model-studio/user-guide/file-interaction) in agent applications.
74
+ * - SESSION_FILE: A file used for [conversation interaction](https://www.alibabacloud.com/help/en/model-studio/user-guide/file-interaction) in agent applications.
75
75
  * <note>When using `SESSION_FILE`, set the CategoryType parameter to `SESSION_FILE` when calling the ApplyFileUploadLease operation as well.</note>
76
- * <note>The file is valid only for the current user session. After the user closes the session, the file expires. The maximum validity period is 7 days. Long-term storage is not supported.</note>
76
+ * <note>The file is valid only for the current user session. After the user closes the session, the file expires (maximum validity period is 7 days) and cannot be retained for long-term storage.</note>
77
77
  *
78
78
  * @example
79
79
  * UNSTRUCTURED
@@ -93,17 +93,17 @@ export class AddFileRequest extends $dara.Model {
93
93
  * @remarks
94
94
  * <props="china">
95
95
  *
96
- * Specifies a URL for the file. The system records this URL when building a [document search knowledge base](https://help.aliyun.com/document_detail/2807740.html). When you use the Alibaba Cloud Model Studio console to interact with an [agent application](https://help.aliyun.com/document_detail/2842749.html), this URL is returned with the retrieval results of the file through the `docUrl` field.
96
+ * Adds a URL to the file. The system records this link when building a [document search knowledge base](https://help.aliyun.com/document_detail/2807740.html). When you use the Alibaba Cloud Model Studio console to chat with an [agent application](https://help.aliyun.com/document_detail/2842749.html), this link is returned with the file retrieval results through the `docUrl` field.
97
97
  *
98
- * > The agent application must have **Knowledge Base** enabled and the **Show answer sources** feature turned on. Otherwise, this parameter does not take effect.
98
+ * > The agent application must have **Knowledge Base** enabled and the **Display answer sources** feature turned on. Otherwise, this parameter does not take effect.
99
99
  *
100
100
  *
101
101
  *
102
102
  * <props="intl">
103
103
  *
104
- * Specifies a URL for the file. The system records this URL when building a [document search knowledge base](https://help.aliyun.com/document_detail/2807740.html). When you use the Alibaba Cloud Model Studio console to interact with an [agent application](https://help.aliyun.com/document_detail/2842749.html), this URL is returned with the retrieval results of the file through the `docUrl` field.
104
+ * Adds a URL to the file. The system records this link when building a [document search knowledge base](https://help.aliyun.com/document_detail/2807740.html). When you use the Alibaba Cloud Model Studio console to chat with an [agent application](https://help.aliyun.com/document_detail/2842749.html), this link is returned with the file retrieval results through the `docUrl` field.
105
105
  *
106
- * > The agent application must have **Knowledge Base** enabled and the **Show answer sources** feature turned on. Otherwise, this parameter does not take effect.
106
+ * > The agent application must have **Knowledge Base** enabled and the **Display answer sources** feature turned on. Otherwise, this parameter does not take effect.
107
107
  *
108
108
  * @example
109
109
  * www.test.com/111.docx
@@ -113,15 +113,15 @@ export class AddFileRequest extends $dara.Model {
113
113
  * @remarks
114
114
  * The parser type. Valid values:
115
115
  *
116
- * - DOCMIND: intelligent document parsing
117
- * - DOCMIND_DIGITAL: electronic document parsing
118
- * - DOCMIND_LLM_VERSION: large language model document parsing
119
- * - DASH_QWEN_VL_PARSER: Qwen VL parsing
120
- * - DOCMIND_LLM_VERSION_MEDIA: audio and video parsing
121
- * - AUTO_SELECT: automatic parser selection
116
+ * - DOCMIND: Intelligent document parsing.
117
+ * - DOCMIND_DIGITAL: Electronic document parsing.
118
+ * - DOCMIND_LLM_VERSION: Large language model (LLM) document parsing.
119
+ * - DASH_QWEN_VL_PARSER: Qwen VL parsing.
120
+ * - DOCMIND_LLM_VERSION_MEDIA: Audio and video parsing.
121
+ * - AUTO_SELECT: Automatic parser selection.
122
122
  *
123
123
  * <props="intl">
124
- * <note>The uploaded file is parsed by using the currently specified parser. If you set this parameter to AUTO_SELECT, the parser configured for the category is used.</note>
124
+ * <note>The file you upload is parsed by using the currently specified parser. If you set this parameter to AUTO_SELECT, the parser configured for the category is used.</note>
125
125
  *
126
126
  *
127
127
  * <props="china">
@@ -46,7 +46,7 @@ export class AddFileResponseBodyData extends $dara.Model {
46
46
  export class AddFileResponseBody extends $dara.Model {
47
47
  /**
48
48
  * @remarks
49
- * The error code.
49
+ * The error status code.
50
50
  *
51
51
  * @example
52
52
  * DataCenter.FileTooLarge
@@ -54,7 +54,7 @@ export class AddFileResponseBody extends $dara.Model {
54
54
  code?: string;
55
55
  /**
56
56
  * @remarks
57
- * The data field returned by the operation.
57
+ * The business data field of the operation.
58
58
  */
59
59
  data?: AddFileResponseBodyData;
60
60
  /**
@@ -83,9 +83,9 @@ export class AddFileResponseBody extends $dara.Model {
83
83
  status?: string;
84
84
  /**
85
85
  * @remarks
86
- * Indicates whether the call was successful. Valid values:
87
- * - true: The call was successful.
88
- * - false: The call failed.
86
+ * Indicates whether the operation was successful. Valid values:
87
+ * - true: Successful.
88
+ * - false: Failed.
89
89
  *
90
90
  * @example
91
91
  * true
@@ -7,14 +7,14 @@ export class AddFileShrinkRequest extends $dara.Model {
7
7
  * @remarks
8
8
  * <props="china">
9
9
  *
10
- * - When CategoryType is set to UNSTRUCTURED, set this parameter to the category ID of the uploaded file, which is the `CategoryId` returned by the **AddCategory** operation. You can also go to [Application Data](https://bailian.console.aliyun.com/?tab=app#/data-center), click the File tab, and then click the ID icon next to the category name to obtain the category ID. You can set this parameter to default to use the system-created default category.
10
+ * - When CategoryType is set to UNSTRUCTURED, specify the category ID to which the uploaded file belongs. This is the `CategoryId` returned by the **AddCategory** operation. You can also go to [Application Data](https://bailian.console.aliyun.com/?tab=app#/data-center) > Files tab and click the ID icon next to the category name to obtain the category ID. You can set this parameter to default to use the system-created default category.
11
11
  *
12
12
  * - When CategoryType is set to SESSION_FILE, set this parameter to "default".
13
13
  *
14
14
  *
15
15
  * <props="intl">
16
16
  *
17
- * Set this parameter to the category ID of the uploaded file, which is the `CategoryId` returned by the **AddCategory** operation. You can also go to [Application Data](https://modelstudio.console.alibabacloud.com/?tab=app#/data-center), click the File tab, and then click the ID icon next to the category name to obtain the category ID. You can set this parameter to default to use the system-created default category.
17
+ * Specify the category ID to which the uploaded file belongs. This is the `CategoryId` returned by the **AddCategory** operation. You can also go to [Application Data](https://modelstudio.console.alibabacloud.com/?tab=app#/data-center) > Files tab and click the ID icon next to the category name to obtain the category ID. You can set this parameter to default to use the system-created default category.
18
18
  *
19
19
  * This parameter is required.
20
20
  *
@@ -25,12 +25,12 @@ export class AddFileShrinkRequest extends $dara.Model {
25
25
  /**
26
26
  * @remarks
27
27
  * The category type. This parameter is optional. Default value: UNSTRUCTURED. Valid values:
28
- * - UNSTRUCTURED: category used for building knowledge base scenarios.
28
+ * - UNSTRUCTURED: Category. Used for knowledge base scenarios.
29
29
  *
30
30
  * <props="china">
31
- * - SESSION_FILE: file used for [session interaction](https://www.alibabacloud.com/help/en/model-studio/user-guide/file-interaction) in agent applications.
31
+ * - SESSION_FILE: A file used for [conversation interaction](https://www.alibabacloud.com/help/en/model-studio/user-guide/file-interaction) in agent applications.
32
32
  * <note>When using `SESSION_FILE`, set the CategoryType parameter to `SESSION_FILE` when calling the ApplyFileUploadLease operation as well.</note>
33
- * <note>The file is valid only for the current user session. After the user closes the session, the file expires. The maximum validity period is 7 days. Long-term storage is not supported.</note>
33
+ * <note>The file is valid only for the current user session. After the user closes the session, the file expires (maximum validity period is 7 days) and cannot be retained for long-term storage.</note>
34
34
  *
35
35
  * @example
36
36
  * UNSTRUCTURED
@@ -50,17 +50,17 @@ export class AddFileShrinkRequest extends $dara.Model {
50
50
  * @remarks
51
51
  * <props="china">
52
52
  *
53
- * Specifies a URL for the file. The system records this URL when building a [document search knowledge base](https://help.aliyun.com/document_detail/2807740.html). When you use the Alibaba Cloud Model Studio console to interact with an [agent application](https://help.aliyun.com/document_detail/2842749.html), this URL is returned with the retrieval results of the file through the `docUrl` field.
53
+ * Adds a URL to the file. The system records this link when building a [document search knowledge base](https://help.aliyun.com/document_detail/2807740.html). When you use the Alibaba Cloud Model Studio console to chat with an [agent application](https://help.aliyun.com/document_detail/2842749.html), this link is returned with the file retrieval results through the `docUrl` field.
54
54
  *
55
- * > The agent application must have **Knowledge Base** enabled and the **Show answer sources** feature turned on. Otherwise, this parameter does not take effect.
55
+ * > The agent application must have **Knowledge Base** enabled and the **Display answer sources** feature turned on. Otherwise, this parameter does not take effect.
56
56
  *
57
57
  *
58
58
  *
59
59
  * <props="intl">
60
60
  *
61
- * Specifies a URL for the file. The system records this URL when building a [document search knowledge base](https://help.aliyun.com/document_detail/2807740.html). When you use the Alibaba Cloud Model Studio console to interact with an [agent application](https://help.aliyun.com/document_detail/2842749.html), this URL is returned with the retrieval results of the file through the `docUrl` field.
61
+ * Adds a URL to the file. The system records this link when building a [document search knowledge base](https://help.aliyun.com/document_detail/2807740.html). When you use the Alibaba Cloud Model Studio console to chat with an [agent application](https://help.aliyun.com/document_detail/2842749.html), this link is returned with the file retrieval results through the `docUrl` field.
62
62
  *
63
- * > The agent application must have **Knowledge Base** enabled and the **Show answer sources** feature turned on. Otherwise, this parameter does not take effect.
63
+ * > The agent application must have **Knowledge Base** enabled and the **Display answer sources** feature turned on. Otherwise, this parameter does not take effect.
64
64
  *
65
65
  * @example
66
66
  * www.test.com/111.docx
@@ -70,15 +70,15 @@ export class AddFileShrinkRequest extends $dara.Model {
70
70
  * @remarks
71
71
  * The parser type. Valid values:
72
72
  *
73
- * - DOCMIND: intelligent document parsing
74
- * - DOCMIND_DIGITAL: electronic document parsing
75
- * - DOCMIND_LLM_VERSION: large language model document parsing
76
- * - DASH_QWEN_VL_PARSER: Qwen VL parsing
77
- * - DOCMIND_LLM_VERSION_MEDIA: audio and video parsing
78
- * - AUTO_SELECT: automatic parser selection
73
+ * - DOCMIND: Intelligent document parsing.
74
+ * - DOCMIND_DIGITAL: Electronic document parsing.
75
+ * - DOCMIND_LLM_VERSION: Large language model (LLM) document parsing.
76
+ * - DASH_QWEN_VL_PARSER: Qwen VL parsing.
77
+ * - DOCMIND_LLM_VERSION_MEDIA: Audio and video parsing.
78
+ * - AUTO_SELECT: Automatic parser selection.
79
79
  *
80
80
  * <props="intl">
81
- * <note>The uploaded file is parsed by using the currently specified parser. If you set this parameter to AUTO_SELECT, the parser configured for the category is used.</note>
81
+ * <note>The file you upload is parsed by using the currently specified parser. If you set this parameter to AUTO_SELECT, the parser configured for the category is used.</note>
82
82
  *
83
83
  *
84
84
  * <props="china">
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class BatchUpdateFileTagRequestFileInfos extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The file ID. To get this ID, go to the <props="china">[application data](https://bailian.console.aliyun.com/?tab=app#/data-center)<props="intl">[application data](https://modelstudio.console.alibabacloud.com/?tab=app#/data-center) page and click the ID icon next to the file name.
8
+ * The file ID in the data center. On the <props="china">[Application Data](https://bailian.console.aliyun.com/?tab=app#/data-center)<props="intl">[Application Data](https://modelstudio.console.alibabacloud.com/?tab=app#/data-center) page, click the ID icon next to the file name to obtain the ID.
9
9
  *
10
10
  * This parameter is required.
11
11
  *
@@ -15,7 +15,7 @@ export class BatchUpdateFileTagRequestFileInfos extends $dara.Model {
15
15
  fileId?: string;
16
16
  /**
17
17
  * @remarks
18
- * - A list of up to 100 tags to associate with the file. The total length of all tags cannot exceed 700 characters.
18
+ * - The list of tags associated with the file. You can specify up to 100 tags, and the total character length of all tags cannot exceed 700.
19
19
  *
20
20
  * This parameter is required.
21
21
  */
@@ -49,14 +49,16 @@ export class BatchUpdateFileTagRequestFileInfos extends $dara.Model {
49
49
  export class BatchUpdateFileTagRequest extends $dara.Model {
50
50
  /**
51
51
  * @remarks
52
- * A list of files to update.
52
+ * The list of documents to update.
53
53
  *
54
54
  * This parameter is required.
55
55
  */
56
56
  fileInfos?: BatchUpdateFileTagRequestFileInfos[];
57
57
  /**
58
58
  * @remarks
59
- * The update mode. Valid values are APPEND and OVERWRITE.
59
+ * The update mode. Valid values:
60
+ * - APPEND: appends tags to existing tags.
61
+ * - OVERWRITE: overwrites existing tags.
60
62
  *
61
63
  * @example
62
64
  * OVERWRITE