@cozeloop/prompt-components 0.0.1 → 0.0.3

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 (150) hide show
  1. package/dist/es/idls/fornax_ml_flow/index.js +2322 -0
  2. package/dist/es/idls/fornax_ml_flow/namespaces/ai_annotate.js +41 -0
  3. package/dist/es/idls/fornax_ml_flow/namespaces/aidpcallback.js +108 -0
  4. package/dist/es/idls/fornax_ml_flow/namespaces/annotation_job.js +52 -0
  5. package/dist/es/idls/fornax_ml_flow/namespaces/base.js +0 -0
  6. package/dist/es/idls/fornax_ml_flow/namespaces/batch_infer.js +72 -0
  7. package/dist/es/idls/fornax_ml_flow/namespaces/dataprocess.js +10 -0
  8. package/dist/es/idls/fornax_ml_flow/namespaces/dataset.js +36 -0
  9. package/dist/es/idls/fornax_ml_flow/namespaces/datasetv2.js +139 -0
  10. package/dist/es/idls/fornax_ml_flow/namespaces/datasetv2job.js +40 -0
  11. package/dist/es/idls/fornax_ml_flow/namespaces/datasetv2lineage.js +25 -0
  12. package/dist/es/idls/fornax_ml_flow/namespaces/datasetv2similarity.js +12 -0
  13. package/dist/es/idls/fornax_ml_flow/namespaces/filter.js +0 -0
  14. package/dist/es/idls/fornax_ml_flow/namespaces/flow_devops_evaluation_callback_common.js +36 -0
  15. package/dist/es/idls/fornax_ml_flow/namespaces/flow_devops_prompt_common.js +318 -0
  16. package/dist/es/idls/fornax_ml_flow/namespaces/fornax_domain_model.js +326 -0
  17. package/dist/es/idls/fornax_ml_flow/namespaces/ml_flow_domain_model.js +327 -0
  18. package/dist/es/idls/fornax_ml_flow/namespaces/openapi.js +0 -0
  19. package/dist/es/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_annotateservice.js +0 -0
  20. package/dist/es/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_annotationjobservice.js +0 -0
  21. package/dist/es/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_batchinferservice.js +0 -0
  22. package/dist/es/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_crowdsourcingannotationjobservice.js +0 -0
  23. package/dist/es/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_dataprocessservice.js +0 -0
  24. package/dist/es/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_datasetservice.js +0 -0
  25. package/dist/es/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_datasetservicev2.js +0 -0
  26. package/dist/es/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_modelservice.js +0 -0
  27. package/dist/es/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_openapi_annotationjobservice.js +0 -0
  28. package/dist/es/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_openapi_batchinferservice.js +0 -0
  29. package/dist/es/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_openapi_datasetservicev2.js +0 -0
  30. package/dist/es/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_tagservice.js +0 -0
  31. package/dist/es/idls/fornax_ml_flow/namespaces/tag.js +33 -0
  32. package/dist/es/idls/prompt_api/index.js +2009 -0
  33. package/dist/es/idls/prompt_api/namespaces/base.js +0 -0
  34. package/dist/es/idls/prompt_api/namespaces/flow_devops_prompt_callback.js +35 -0
  35. package/dist/es/idls/prompt_api/namespaces/flow_devops_prompt_commercial_openapi.js +0 -0
  36. package/dist/es/idls/prompt_api/namespaces/flow_devops_prompt_common.js +318 -0
  37. package/dist/es/idls/prompt_api/namespaces/flow_devops_prompt_debug.js +0 -0
  38. package/dist/es/idls/prompt_api/namespaces/flow_devops_prompt_manage.js +23 -0
  39. package/dist/es/idls/prompt_api/namespaces/flow_devops_prompt_mcp.js +0 -0
  40. package/dist/es/idls/prompt_api/namespaces/flow_devops_prompt_optimize.js +0 -0
  41. package/dist/es/idls/prompt_api/namespaces/flow_devops_prompt_paas.js +43 -0
  42. package/dist/es/idls/prompt_api/namespaces/flow_devops_prompt_platform.js +0 -0
  43. package/dist/es/idls/prompt_api/namespaces/mcp.js +9 -0
  44. package/dist/es/idls/prompt_api/namespaces/model.js +320 -0
  45. package/dist/es/idls/prompt_api/namespaces/permission.js +47 -0
  46. package/dist/es/idls/prompt_api/namespaces/release.js +25 -0
  47. package/dist/es/prompt-editor/index.js +1 -1
  48. package/dist/es/utils/model-config.js +3 -3
  49. package/dist/lib/idls/fornax_ml_flow/index.js +2414 -0
  50. package/dist/lib/idls/fornax_ml_flow/namespaces/ai_annotate.js +69 -0
  51. package/dist/lib/idls/fornax_ml_flow/namespaces/aidpcallback.js +140 -0
  52. package/dist/lib/idls/fornax_ml_flow/namespaces/annotation_job.js +82 -0
  53. package/dist/lib/idls/fornax_ml_flow/namespaces/base.js +16 -0
  54. package/dist/lib/idls/fornax_ml_flow/namespaces/batch_infer.js +105 -0
  55. package/dist/lib/idls/fornax_ml_flow/namespaces/dataprocess.js +34 -0
  56. package/dist/lib/idls/fornax_ml_flow/namespaces/dataset.js +63 -0
  57. package/dist/lib/idls/fornax_ml_flow/namespaces/datasetv2.js +177 -0
  58. package/dist/lib/idls/fornax_ml_flow/namespaces/datasetv2job.js +68 -0
  59. package/dist/lib/idls/fornax_ml_flow/namespaces/datasetv2lineage.js +50 -0
  60. package/dist/lib/idls/fornax_ml_flow/namespaces/datasetv2similarity.js +37 -0
  61. package/dist/lib/idls/fornax_ml_flow/namespaces/filter.js +16 -0
  62. package/dist/lib/idls/fornax_ml_flow/namespaces/flow_devops_evaluation_callback_common.js +62 -0
  63. package/dist/lib/idls/fornax_ml_flow/namespaces/flow_devops_prompt_common.js +378 -0
  64. package/dist/lib/idls/fornax_ml_flow/namespaces/fornax_domain_model.js +384 -0
  65. package/dist/lib/idls/fornax_ml_flow/namespaces/ml_flow_domain_model.js +385 -0
  66. package/dist/lib/idls/fornax_ml_flow/namespaces/openapi.js +16 -0
  67. package/dist/lib/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_annotateservice.js +16 -0
  68. package/dist/lib/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_annotationjobservice.js +16 -0
  69. package/dist/lib/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_batchinferservice.js +16 -0
  70. package/dist/lib/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_crowdsourcingannotationjobservice.js +16 -0
  71. package/dist/lib/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_dataprocessservice.js +16 -0
  72. package/dist/lib/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_datasetservice.js +16 -0
  73. package/dist/lib/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_datasetservicev2.js +16 -0
  74. package/dist/lib/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_modelservice.js +16 -0
  75. package/dist/lib/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_openapi_annotationjobservice.js +16 -0
  76. package/dist/lib/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_openapi_batchinferservice.js +16 -0
  77. package/dist/lib/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_openapi_datasetservicev2.js +16 -0
  78. package/dist/lib/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_tagservice.js +16 -0
  79. package/dist/lib/idls/fornax_ml_flow/namespaces/tag.js +60 -0
  80. package/dist/lib/idls/prompt_api/index.js +2071 -0
  81. package/dist/lib/idls/prompt_api/namespaces/base.js +16 -0
  82. package/dist/lib/idls/prompt_api/namespaces/flow_devops_prompt_callback.js +62 -0
  83. package/dist/lib/idls/prompt_api/namespaces/flow_devops_prompt_commercial_openapi.js +16 -0
  84. package/dist/lib/idls/prompt_api/namespaces/flow_devops_prompt_common.js +378 -0
  85. package/dist/lib/idls/prompt_api/namespaces/flow_devops_prompt_debug.js +16 -0
  86. package/dist/lib/idls/prompt_api/namespaces/flow_devops_prompt_manage.js +49 -0
  87. package/dist/lib/idls/prompt_api/namespaces/flow_devops_prompt_mcp.js +16 -0
  88. package/dist/lib/idls/prompt_api/namespaces/flow_devops_prompt_optimize.js +16 -0
  89. package/dist/lib/idls/prompt_api/namespaces/flow_devops_prompt_paas.js +72 -0
  90. package/dist/lib/idls/prompt_api/namespaces/flow_devops_prompt_platform.js +16 -0
  91. package/dist/lib/idls/prompt_api/namespaces/mcp.js +33 -0
  92. package/dist/lib/idls/prompt_api/namespaces/model.js +377 -0
  93. package/dist/lib/idls/prompt_api/namespaces/permission.js +72 -0
  94. package/dist/lib/idls/prompt_api/namespaces/release.js +50 -0
  95. package/dist/lib/prompt-editor/index.js +1 -1
  96. package/dist/lib/utils/model-config.js +13 -3
  97. package/dist/types/idls/fornax_ml_flow/index.d.ts +779 -0
  98. package/dist/types/idls/fornax_ml_flow/namespaces/ai_annotate.d.ts +102 -0
  99. package/dist/types/idls/fornax_ml_flow/namespaces/aidpcallback.d.ts +227 -0
  100. package/dist/types/idls/fornax_ml_flow/namespaces/annotation_job.d.ts +402 -0
  101. package/dist/types/idls/fornax_ml_flow/namespaces/base.d.ts +18 -0
  102. package/dist/types/idls/fornax_ml_flow/namespaces/batch_infer.d.ts +331 -0
  103. package/dist/types/idls/fornax_ml_flow/namespaces/dataprocess.d.ts +16 -0
  104. package/dist/types/idls/fornax_ml_flow/namespaces/dataset.d.ts +88 -0
  105. package/dist/types/idls/fornax_ml_flow/namespaces/datasetv2.d.ts +462 -0
  106. package/dist/types/idls/fornax_ml_flow/namespaces/datasetv2job.d.ts +180 -0
  107. package/dist/types/idls/fornax_ml_flow/namespaces/datasetv2lineage.d.ts +69 -0
  108. package/dist/types/idls/fornax_ml_flow/namespaces/datasetv2similarity.d.ts +8 -0
  109. package/dist/types/idls/fornax_ml_flow/namespaces/filter.d.ts +39 -0
  110. package/dist/types/idls/fornax_ml_flow/namespaces/flow_devops_evaluation_callback_common.d.ts +88 -0
  111. package/dist/types/idls/fornax_ml_flow/namespaces/flow_devops_prompt_common.d.ts +370 -0
  112. package/dist/types/idls/fornax_ml_flow/namespaces/fornax_domain_model.d.ts +320 -0
  113. package/dist/types/idls/fornax_ml_flow/namespaces/ml_flow_domain_model.d.ts +510 -0
  114. package/dist/types/idls/fornax_ml_flow/namespaces/openapi.d.ts +6 -0
  115. package/dist/types/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_annotateservice.d.ts +106 -0
  116. package/dist/types/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_annotationjobservice.d.ts +256 -0
  117. package/dist/types/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_batchinferservice.d.ts +73 -0
  118. package/dist/types/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_crowdsourcingannotationjobservice.d.ts +94 -0
  119. package/dist/types/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_dataprocessservice.d.ts +11 -0
  120. package/dist/types/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_datasetservice.d.ts +24 -0
  121. package/dist/types/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_datasetservicev2.d.ts +653 -0
  122. package/dist/types/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_modelservice.d.ts +83 -0
  123. package/dist/types/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_openapi_annotationjobservice.d.ts +81 -0
  124. package/dist/types/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_openapi_batchinferservice.d.ts +24 -0
  125. package/dist/types/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_openapi_datasetservicev2.d.ts +260 -0
  126. package/dist/types/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_tagservice.d.ts +111 -0
  127. package/dist/types/idls/fornax_ml_flow/namespaces/tag.d.ts +109 -0
  128. package/dist/types/idls/prompt_api/index.d.ts +667 -0
  129. package/dist/types/idls/prompt_api/namespaces/base.d.ts +18 -0
  130. package/dist/types/idls/prompt_api/namespaces/flow_devops_prompt_callback.d.ts +102 -0
  131. package/dist/types/idls/prompt_api/namespaces/flow_devops_prompt_commercial_openapi.d.ts +81 -0
  132. package/dist/types/idls/prompt_api/namespaces/flow_devops_prompt_common.d.ts +1270 -0
  133. package/dist/types/idls/prompt_api/namespaces/flow_devops_prompt_debug.d.ts +197 -0
  134. package/dist/types/idls/prompt_api/namespaces/flow_devops_prompt_manage.d.ts +769 -0
  135. package/dist/types/idls/prompt_api/namespaces/flow_devops_prompt_mcp.d.ts +301 -0
  136. package/dist/types/idls/prompt_api/namespaces/flow_devops_prompt_optimize.d.ts +155 -0
  137. package/dist/types/idls/prompt_api/namespaces/flow_devops_prompt_paas.d.ts +198 -0
  138. package/dist/types/idls/prompt_api/namespaces/flow_devops_prompt_platform.d.ts +230 -0
  139. package/dist/types/idls/prompt_api/namespaces/mcp.d.ts +95 -0
  140. package/dist/types/idls/prompt_api/namespaces/model.d.ts +315 -0
  141. package/dist/types/idls/prompt_api/namespaces/permission.d.ts +52 -0
  142. package/dist/types/idls/prompt_api/namespaces/release.d.ts +62 -0
  143. package/dist/types/model-config-editor/basic-type.d.ts +2 -2
  144. package/dist/types/model-config-editor/model-config-form.d.ts +1 -1
  145. package/dist/types/model-config-editor/popover-type.d.ts +3 -3
  146. package/dist/types/model-select/index.d.ts +1 -1
  147. package/dist/types/model-select/model-option/index.d.ts +1 -1
  148. package/dist/types/prompt-editor/index.d.ts +1 -1
  149. package/dist/types/utils/model-config.d.ts +4 -4
  150. package/package.json +5 -3
@@ -0,0 +1,83 @@
1
+ import * as base from './base';
2
+ import * as ml_flow_domain_model from './ml_flow_domain_model';
3
+ export type Int64 = string | number;
4
+ export interface GetModelFilterParamsRequest {
5
+ /** 因为coze暂时给不了rpc接口,所以后端需要拿到cookie去请求coze的前端接口 */
6
+ cookie?: string;
7
+ base?: base.Base;
8
+ }
9
+ export interface GetModelFilterParamsResponse {
10
+ modelFilterTags?: Record<ml_flow_domain_model.ModelFilterKey, Array<string>>;
11
+ modelContextRange?: ModelContextRange;
12
+ modelVendors?: Array<string>;
13
+ baseResp?: base.BaseResp;
14
+ }
15
+ export interface GetModelRequest {
16
+ /** 本期只支持BotEngine(等于llm gateway等于coze) */
17
+ provider?: ml_flow_domain_model.Provider;
18
+ providerModelID?: string;
19
+ spaceID?: Int64;
20
+ /** 因为coze暂时给不了rpc接口,所以后端需要拿到cookie去请求coze的前端接口 */
21
+ cookie?: string;
22
+ base?: base.Base;
23
+ }
24
+ export interface GetModelResponse {
25
+ model?: ml_flow_domain_model.Model;
26
+ baseResp?: base.BaseResp;
27
+ }
28
+ export interface GetModelUsageRequest {
29
+ modelIdentification?: string;
30
+ /** 本期只支持llm gateway */
31
+ provider?: ml_flow_domain_model.Provider;
32
+ spaceID?: Int64;
33
+ base?: base.Base;
34
+ }
35
+ export interface GetModelUsageResponse {
36
+ modelUsages?: Array<ModelUsage>;
37
+ baseResp?: base.BaseResp;
38
+ }
39
+ export interface ListModelRequest {
40
+ cursorID?: string;
41
+ limit?: number;
42
+ /** 筛选项 */
43
+ filter?: ModelFilter;
44
+ /** coze空间id */
45
+ spaceID?: Int64;
46
+ /** 因为coze暂时给不了rpc接口,所以后端需要拿到cookie去请求coze的前端接口 */
47
+ cookie?: string;
48
+ base?: base.Base;
49
+ }
50
+ export interface ListModelResponse {
51
+ models?: Array<ml_flow_domain_model.Model>;
52
+ cursorID?: string;
53
+ hasMore?: boolean;
54
+ total?: Int64;
55
+ baseResp?: base.BaseResp;
56
+ }
57
+ export interface ModelContextRange {
58
+ /** 上限,不传代表不设限 */
59
+ upperBound?: number;
60
+ /** 下限,不传代表不设限 */
61
+ lowerBound?: number;
62
+ }
63
+ export interface ModelFilter {
64
+ /** 模型tag过滤项,value中list内部各个元素在过滤时是or关系,各个key之间在过滤时是and关系 */
65
+ modelFilterTags?: Record<ml_flow_domain_model.ModelFilterKey, Array<string>>;
66
+ /** 模型状态 */
67
+ modelStatuses?: Array<ml_flow_domain_model.CommercialModelStatus>;
68
+ /** 模型支持的上下文长度的范围 */
69
+ modelContextRange?: ModelContextRange;
70
+ /** 模型厂商 */
71
+ modelVendors?: Array<string>;
72
+ /** 名称关键字 */
73
+ name?: string;
74
+ /** 特殊场景 */
75
+ modelFilterScene?: ml_flow_domain_model.ModelFilterScene;
76
+ }
77
+ export interface ModelUsage {
78
+ promptInputToken?: Int64;
79
+ promptOutputToken?: Int64;
80
+ evaluationInputToken?: Int64;
81
+ evaluationOutputToken?: Int64;
82
+ date?: string;
83
+ }
@@ -0,0 +1,81 @@
1
+ import * as base from './base';
2
+ import * as annotation_job from './annotation_job';
3
+ export type Int64 = string | number;
4
+ export interface OpenCloneAnnotationJobRequest {
5
+ datasetID: string;
6
+ 'FlowDevops-Agw-OpenAPI-AppId'?: string;
7
+ 'FlowDevops-Agw-OpenAPI-SpaceId'?: string;
8
+ jobID: string;
9
+ 'FlowDevops-Agw-OpenAPI-AccountId'?: string;
10
+ targetDatasetID: string;
11
+ jobName: string;
12
+ base?: base.Base;
13
+ }
14
+ export interface OpenCloneAnnotationJobResponse {
15
+ jobID?: string;
16
+ baseResp?: base.BaseResp;
17
+ }
18
+ export interface OpenDeleteAnnotationJobRequest {
19
+ datasetID?: string;
20
+ 'FlowDevops-Agw-OpenAPI-AppId'?: string;
21
+ 'FlowDevops-Agw-OpenAPI-SpaceId'?: string;
22
+ jobID?: string;
23
+ 'FlowDevops-Agw-OpenAPI-AccountId'?: string;
24
+ base?: base.Base;
25
+ }
26
+ export interface OpenDeleteAnnotationJobResponse {
27
+ baseResp?: base.BaseResp;
28
+ }
29
+ export interface OpenGetAnnotationJobInstanceRequest {
30
+ datasetID: string;
31
+ 'FlowDevops-Agw-OpenAPI-AppId'?: string;
32
+ 'FlowDevops-Agw-OpenAPI-SpaceId'?: string;
33
+ jobID: string;
34
+ 'FlowDevops-Agw-OpenAPI-AccountId'?: string;
35
+ jobInstanceID?: string;
36
+ base?: base.Base;
37
+ }
38
+ export interface OpenGetAnnotationJobInstanceResponse {
39
+ data?: annotation_job.AnnotationJobRunInstance;
40
+ baseResp?: base.BaseResp;
41
+ }
42
+ export interface OpenListAnnotationJobsRequest {
43
+ datasetID: string;
44
+ 'FlowDevops-Agw-OpenAPI-AppId'?: string;
45
+ 'FlowDevops-Agw-OpenAPI-SpaceId'?: string;
46
+ 'FlowDevops-Agw-OpenAPI-AccountId'?: string;
47
+ cursor?: string;
48
+ base?: base.Base;
49
+ }
50
+ export interface OpenListAnnotationJobsResponse {
51
+ data?: Array<annotation_job.AnnotationJob>;
52
+ nextCursor?: string;
53
+ baseResp?: base.BaseResp;
54
+ }
55
+ export interface OpenRunAnnotationJobRequest {
56
+ datasetID: string;
57
+ 'FlowDevops-Agw-OpenAPI-AppId'?: string;
58
+ 'FlowDevops-Agw-OpenAPI-SpaceId'?: string;
59
+ jobID: string;
60
+ 'FlowDevops-Agw-OpenAPI-AccountId'?: string;
61
+ /** 离线推理需要 */
62
+ jwtToken?: string;
63
+ base?: base.Base;
64
+ }
65
+ export interface OpenRunAnnotationJobResponse {
66
+ jobInstanceID?: string;
67
+ baseResp?: base.BaseResp;
68
+ }
69
+ export interface OpenTerminateAnnotationJobInstanceRequest {
70
+ datasetID: string;
71
+ 'FlowDevops-Agw-OpenAPI-AppId'?: string;
72
+ 'FlowDevops-Agw-OpenAPI-SpaceId'?: string;
73
+ jobID: string;
74
+ 'FlowDevops-Agw-OpenAPI-AccountId'?: string;
75
+ instanceID: string;
76
+ jwtToken?: string;
77
+ base?: base.Base;
78
+ }
79
+ export interface OpenTerminateAnnotationJobInstanceResponse {
80
+ baseResp?: base.BaseResp;
81
+ }
@@ -0,0 +1,24 @@
1
+ import * as base from './base';
2
+ import * as batch_infer from './batch_infer';
3
+ export type Int64 = string | number;
4
+ export interface OpenGetBatchInferTaskReq {
5
+ task_id?: string;
6
+ userJwtToken?: string;
7
+ /** 空间ID */
8
+ space_id?: string;
9
+ base?: base.Base;
10
+ }
11
+ export interface OpenGetBatchInferTaskResp {
12
+ batchInferTask?: batch_infer.BatchInferTask;
13
+ baseResp?: base.BaseResp;
14
+ }
15
+ export interface OpenReportBatchInferProgressReq {
16
+ task_id?: string;
17
+ errorMsg?: string;
18
+ /** 空间ID */
19
+ space_id?: string;
20
+ base?: base.Base;
21
+ }
22
+ export interface OpenReportBatchInferProgressResp {
23
+ baseResp?: base.BaseResp;
24
+ }
@@ -0,0 +1,260 @@
1
+ import * as datasetv2 from './datasetv2';
2
+ import * as base from './base';
3
+ import * as datasetv2job from './datasetv2job';
4
+ export type Int64 = string | number;
5
+ export interface ConflictField {
6
+ /** 存在冲突的列名 */
7
+ fieldName?: string;
8
+ /** 冲突详情。key: 文件名,val:该文件中包含的类型 */
9
+ detailM?: Record<string, datasetv2.FieldSchema>;
10
+ }
11
+ export interface DatasetItemWithSource {
12
+ item?: datasetv2.DatasetItem;
13
+ source?: datasetv2.ItemSource;
14
+ deepSources?: Array<datasetv2.ItemSource>;
15
+ }
16
+ export interface OpenBatchCreateDatasetItemsRequest {
17
+ datasetID: string;
18
+ 'FlowDevops-Agw-OpenAPI-AppId'?: string;
19
+ 'FlowDevops-Agw-OpenAPI-SpaceId'?: string;
20
+ items: Array<datasetv2.DatasetItem>;
21
+ 'FlowDevops-Agw-OpenAPI-AccountId'?: string;
22
+ /** 是否跳过无效数据 */
23
+ skipInvalidItems?: boolean;
24
+ /** 是否允许写入不超过容量限制的数据 */
25
+ allowPartialAdd?: boolean;
26
+ base?: base.Base;
27
+ }
28
+ export interface OpenBatchCreateDatasetItemsResponse {
29
+ /** key: item在输入数据的索引, value:item的唯一ID */
30
+ addedItems?: Record<number, Int64>;
31
+ errors?: Array<datasetv2.ItemErrorGroup>;
32
+ baseResp?: base.BaseResp;
33
+ }
34
+ export interface OpenBatchDeleteDatasetItemsRequest {
35
+ datasetID: string;
36
+ 'FlowDevops-Agw-OpenAPI-AppId'?: string;
37
+ 'FlowDevops-Agw-OpenAPI-SpaceId'?: string;
38
+ itemIDs: Array<string>;
39
+ 'FlowDevops-Agw-OpenAPI-AccountId'?: string;
40
+ base?: base.Base;
41
+ }
42
+ export interface OpenBatchDeleteDatasetItemsResponse {
43
+ baseResp?: base.BaseResp;
44
+ }
45
+ export interface OpenBatchGetDatasetItemsByVersionRequest {
46
+ datasetID: string;
47
+ 'FlowDevops-Agw-OpenAPI-AppId'?: string;
48
+ 'FlowDevops-Agw-OpenAPI-SpaceId'?: string;
49
+ versionID: string;
50
+ 'FlowDevops-Agw-OpenAPI-AccountId'?: string;
51
+ itemIDs: Array<string>;
52
+ base?: base.Base;
53
+ }
54
+ export interface OpenBatchGetDatasetItemsByVersionResponse {
55
+ data?: Array<datasetv2.DatasetItem>;
56
+ baseResp?: base.BaseResp;
57
+ }
58
+ export interface OpenBatchGetDatasetItemsRequest {
59
+ datasetID: string;
60
+ 'FlowDevops-Agw-OpenAPI-AppId'?: string;
61
+ 'FlowDevops-Agw-OpenAPI-SpaceId'?: string;
62
+ itemIDs: Array<string>;
63
+ 'FlowDevops-Agw-OpenAPI-AccountId'?: string;
64
+ base?: base.Base;
65
+ }
66
+ export interface OpenBatchGetDatasetItemsResponse {
67
+ data?: Array<datasetv2.DatasetItem>;
68
+ baseResp?: base.BaseResp;
69
+ }
70
+ export interface OpenCancelDatasetIOJobReq {
71
+ 'FlowDevops-Agw-OpenAPI-AppId'?: string;
72
+ jobID: string;
73
+ 'FlowDevops-Agw-OpenAPI-SpaceId'?: string;
74
+ 'FlowDevops-Agw-OpenAPI-AccountId'?: string;
75
+ base?: base.Base;
76
+ }
77
+ export interface OpenCancelDatasetIOJobResp {
78
+ baseResp?: base.BaseResp;
79
+ }
80
+ export interface OpenClearDatasetItemsRequest {
81
+ datasetID: string;
82
+ 'FlowDevops-Agw-OpenAPI-AppId'?: string;
83
+ 'FlowDevops-Agw-OpenAPI-SpaceId'?: string;
84
+ 'FlowDevops-Agw-OpenAPI-AccountId'?: string;
85
+ base?: base.Base;
86
+ }
87
+ export interface OpenClearDatasetItemsResponse {
88
+ baseResp?: base.BaseResp;
89
+ }
90
+ export interface OpenCreateDatasetReq {
91
+ 'FlowDevops-Agw-OpenAPI-AppId'?: string;
92
+ name: string;
93
+ description?: string;
94
+ 'FlowDevops-Agw-OpenAPI-SpaceId'?: string;
95
+ fields?: Array<datasetv2.FieldSchema>;
96
+ 'FlowDevops-Agw-OpenAPI-AccountId'?: string;
97
+ base?: base.Base;
98
+ }
99
+ export interface OpenCreateDatasetResp {
100
+ datasetID?: string;
101
+ baseResp?: base.BaseResp;
102
+ }
103
+ export interface OpenCreateDatasetVersionRequest {
104
+ datasetID: string;
105
+ 'FlowDevops-Agw-OpenAPI-AppId'?: string;
106
+ 'FlowDevops-Agw-OpenAPI-SpaceId'?: string;
107
+ /** 展示版本号,SemVer2三段式,需要大于上一个版本 */
108
+ version: string;
109
+ desc?: string;
110
+ 'FlowDevops-Agw-OpenAPI-AccountId'?: string;
111
+ base?: base.Base;
112
+ }
113
+ export interface OpenCreateDatasetVersionResponse {
114
+ versionID?: string;
115
+ baseResp?: base.BaseResp;
116
+ }
117
+ export interface OpenExportDatasetReq {
118
+ datasetID: string;
119
+ 'FlowDevops-Agw-OpenAPI-AppId'?: string;
120
+ 'FlowDevops-Agw-OpenAPI-SpaceId'?: string;
121
+ /** 需要导出的数据集版本 id,为 0 表示导出草稿版本 */
122
+ versionID?: string;
123
+ 'FlowDevops-Agw-OpenAPI-AccountId'?: string;
124
+ targetType: datasetv2job.SourceType;
125
+ /** 此处填写一个文件夹,会将对应的文件生成到该文件夹下 */
126
+ target: datasetv2job.DatasetIOEndpoint;
127
+ base?: base.Base;
128
+ }
129
+ export interface OpenExportDatasetResp {
130
+ jobID?: string;
131
+ baseResp?: base.BaseResp;
132
+ }
133
+ export interface OpenGetDatasetIOJobReq {
134
+ 'FlowDevops-Agw-OpenAPI-AppId'?: string;
135
+ jobID: string;
136
+ 'FlowDevops-Agw-OpenAPI-SpaceId'?: string;
137
+ 'FlowDevops-Agw-OpenAPI-AccountId'?: string;
138
+ base?: base.Base;
139
+ }
140
+ export interface OpenGetDatasetIOJobResp {
141
+ job?: datasetv2job.DatasetIOJob;
142
+ baseResp?: base.BaseResp;
143
+ }
144
+ export interface OpenGetDatasetItemRequest {
145
+ datasetID: string;
146
+ 'FlowDevops-Agw-OpenAPI-AppId'?: string;
147
+ 'FlowDevops-Agw-OpenAPI-SpaceId'?: string;
148
+ itemID: string;
149
+ 'FlowDevops-Agw-OpenAPI-AccountId'?: string;
150
+ withDeepSources?: boolean;
151
+ base?: base.Base;
152
+ }
153
+ export interface OpenGetDatasetItemResponse {
154
+ data?: DatasetItemWithSource;
155
+ baseResp?: base.BaseResp;
156
+ }
157
+ export interface OpenImportDatasetReq {
158
+ datasetID: string;
159
+ 'FlowDevops-Agw-OpenAPI-AppId'?: string;
160
+ file?: datasetv2job.DatasetIOFile;
161
+ 'FlowDevops-Agw-OpenAPI-SpaceId'?: string;
162
+ fieldMappings?: Array<datasetv2job.FieldMapping>;
163
+ 'FlowDevops-Agw-OpenAPI-AccountId'?: string;
164
+ option?: datasetv2job.DatasetIOJobOption;
165
+ base?: base.Base;
166
+ }
167
+ export interface OpenImportDatasetResp {
168
+ jobID?: string;
169
+ baseResp?: base.BaseResp;
170
+ }
171
+ export interface OpenListDatasetItemsByVersionRequest {
172
+ datasetID: string;
173
+ 'FlowDevops-Agw-OpenAPI-AppId'?: string;
174
+ 'FlowDevops-Agw-OpenAPI-SpaceId'?: string;
175
+ versionID: string;
176
+ 'FlowDevops-Agw-OpenAPI-AccountId'?: string;
177
+ cursor?: string;
178
+ base?: base.Base;
179
+ }
180
+ export interface OpenListDatasetItemsByVersionResponse {
181
+ data?: Array<datasetv2.DatasetItem>;
182
+ nextCursor?: string;
183
+ total?: string;
184
+ baseResp?: base.BaseResp;
185
+ }
186
+ export interface OpenListDatasetItemsRequest {
187
+ datasetID: string;
188
+ 'FlowDevops-Agw-OpenAPI-AppId'?: string;
189
+ 'FlowDevops-Agw-OpenAPI-SpaceId'?: string;
190
+ 'FlowDevops-Agw-OpenAPI-AccountId'?: string;
191
+ cursor?: string;
192
+ base?: base.Base;
193
+ }
194
+ export interface OpenListDatasetItemsResponse {
195
+ data?: Array<datasetv2.DatasetItem>;
196
+ nextCursor?: string;
197
+ baseResp?: base.BaseResp;
198
+ }
199
+ export interface OpenListDatasetVersionsRequest {
200
+ datasetID: string;
201
+ 'FlowDevops-Agw-OpenAPI-AppId'?: string;
202
+ 'FlowDevops-Agw-OpenAPI-SpaceId'?: string;
203
+ 'FlowDevops-Agw-OpenAPI-AccountId'?: string;
204
+ cursor?: string;
205
+ base?: base.Base;
206
+ }
207
+ export interface OpenListDatasetVersionsResponse {
208
+ data?: Array<datasetv2.DatasetVersion>;
209
+ nextCursor?: string;
210
+ baseResp?: base.BaseResp;
211
+ }
212
+ export interface OpenParseImportSourceFileReq {
213
+ /** 如果 path 为文件夹,此处只默认解析当前路径级别下所有指定类型的文件,不嵌套解析 */
214
+ file?: datasetv2job.DatasetIOFile;
215
+ 'FlowDevops-Agw-OpenAPI-AppId'?: string;
216
+ 'FlowDevops-Agw-OpenAPI-SpaceId'?: string;
217
+ 'FlowDevops-Agw-OpenAPI-AccountId'?: string;
218
+ base?: base.Base;
219
+ }
220
+ export interface OpenParseImportSourceFileResp {
221
+ /** 文件大小,单位为 byte */
222
+ bytes?: string;
223
+ /** 列名和类型,有多文件的话会取并集返回。如果文件中的列定义存在冲突,此处不返回解析结果,具体冲突详情通过 conflicts 返回 */
224
+ fields?: Array<datasetv2.FieldSchema>;
225
+ /** 冲突详情。key: 列名,val:冲突详情 */
226
+ conflicts?: Array<ConflictField>;
227
+ /** 存在列定义不明确的文件(即一个列被定义为多个类型),当前仅 jsonl 文件会出现该状况 */
228
+ filesWithAmbiguousColumn?: Array<string>;
229
+ /** base */
230
+ baseResp?: base.BaseResp;
231
+ }
232
+ export interface OpenPatchDatasetItemRequest {
233
+ datasetID: string;
234
+ 'FlowDevops-Agw-OpenAPI-AppId'?: string;
235
+ 'FlowDevops-Agw-OpenAPI-SpaceId'?: string;
236
+ itemID: string;
237
+ 'FlowDevops-Agw-OpenAPI-AccountId'?: string;
238
+ /** 单轮数据内容,当数据集为单轮时,写入此处的值 */
239
+ data?: Array<datasetv2.FieldData>;
240
+ /** 多轮对话数据内容,当数据集为多轮对话时,写入此处的值 */
241
+ repeatedData?: Array<datasetv2.ItemData>;
242
+ base?: base.Base;
243
+ }
244
+ export interface OpenPatchDatasetItemResponse {
245
+ baseResp?: base.BaseResp;
246
+ }
247
+ export interface OpenSearchDatasetsRequest {
248
+ 'FlowDevops-Agw-OpenAPI-AppId'?: string;
249
+ name?: string;
250
+ createdBys?: Array<string>;
251
+ 'FlowDevops-Agw-OpenAPI-SpaceId'?: string;
252
+ 'FlowDevops-Agw-OpenAPI-AccountId'?: string;
253
+ cursor?: string;
254
+ base?: base.Base;
255
+ }
256
+ export interface OpenSearchDatasetsResponse {
257
+ data?: Array<datasetv2.Dataset>;
258
+ nextCursor?: string;
259
+ baseResp?: base.BaseResp;
260
+ }
@@ -0,0 +1,111 @@
1
+ import * as base from './base';
2
+ import * as tag from './tag';
3
+ import * as datasetv2 from './datasetv2';
4
+ export type Int64 = string | number;
5
+ export interface ArchiveOptionTagRequest {
6
+ spaceID: string;
7
+ tagKeyID: string;
8
+ name: string;
9
+ description?: string;
10
+ base?: base.Base;
11
+ }
12
+ export interface ArchiveOptionTagResponse {
13
+ baseResp?: base.BaseResp;
14
+ }
15
+ export interface BatchUpdateTagStatusRequest {
16
+ spaceID: string;
17
+ tagKeyIDs: Array<string>;
18
+ status: tag.TagStatus;
19
+ base?: base.Base;
20
+ }
21
+ export interface BatchUpdateTagStatusResponse {
22
+ errInfo?: Record<Int64, string>;
23
+ baseResp?: base.BaseResp;
24
+ }
25
+ export interface CreateTagRequest {
26
+ spaceID: string;
27
+ tagKeyName: string;
28
+ tagType: tag.TagType;
29
+ version: string;
30
+ description?: string;
31
+ tagValues: Array<tag.TagValue>;
32
+ base?: base.Base;
33
+ }
34
+ export interface CreateTagResponse {
35
+ tagKeyID?: string;
36
+ baseResp?: base.BaseResp;
37
+ }
38
+ /** 每一个元素代表柱状图中的一个柱 */
39
+ export interface DistributeBucket {
40
+ /** 代表没打标签的对象,若为true则只需要看count,代表没被打标签的个数 */
41
+ isEmpty?: boolean;
42
+ tagValueID?: string;
43
+ tagKeyName?: string;
44
+ tagValueName?: string;
45
+ /** 数量 */
46
+ count?: Int64;
47
+ }
48
+ export interface GetTagDetailRequest {
49
+ spaceID: string;
50
+ tagKeyID: string;
51
+ base?: base.Base;
52
+ }
53
+ export interface GetTagDetailResponse {
54
+ tags?: Array<tag.TagInfo>;
55
+ baseResp?: base.BaseResp;
56
+ }
57
+ export interface GetTagSpecRequest {
58
+ spaceID: string;
59
+ }
60
+ export interface GetTagSpecResponse {
61
+ /** 最大高度 */
62
+ maxHeight?: Int64;
63
+ /** 最大宽度(一层最多有多少个) */
64
+ maxWidth?: Int64;
65
+ /** 最多个数(各层加一起总数) */
66
+ maxTotal?: Int64;
67
+ }
68
+ export interface QueryFieldDistributeRequest {
69
+ spaceID: string;
70
+ datasetID: string;
71
+ datasetVersion?: string;
72
+ /** 按照列洞察的时候,列的字段 */
73
+ fieldKeys?: Array<string>;
74
+ base?: base.Base;
75
+ }
76
+ export interface QueryFieldDistributeResponse {
77
+ fieldsDistributeMap?: Record<string, Array<DistributeBucket>>;
78
+ baseResp?: base.BaseResp;
79
+ }
80
+ export interface SearchTagsRequest {
81
+ spaceID: string;
82
+ status?: Array<tag.TagStatus>;
83
+ tagKeyNameLike?: string;
84
+ createdBys?: Array<string>;
85
+ page?: number;
86
+ /** 分页大小(0, 200],默认为 20 */
87
+ pageSize?: number;
88
+ cursor?: string;
89
+ orderBy?: datasetv2.OrderBy;
90
+ base?: base.Base;
91
+ }
92
+ export interface SearchTagsResponse {
93
+ tags?: Array<tag.TagInfo>;
94
+ nextCursor?: string;
95
+ total?: string;
96
+ baseResp?: base.BaseResp;
97
+ }
98
+ export interface UpdateTagRequest {
99
+ spaceID: string;
100
+ tagKeyID: string;
101
+ /** 三段式版本 */
102
+ version: string;
103
+ tagKeyName?: string;
104
+ description?: string;
105
+ tagType?: tag.TagType;
106
+ tagValues?: Array<tag.TagValue>;
107
+ base?: base.Base;
108
+ }
109
+ export interface UpdateTagResponse {
110
+ baseResp?: base.BaseResp;
111
+ }
@@ -0,0 +1,109 @@
1
+ export type Int64 = string | number;
2
+ export declare enum ChangeTargetType {
3
+ /** tag */
4
+ Tag = 1,
5
+ /** tag name */
6
+ TagName = 2,
7
+ /** tag description */
8
+ TagDescription = 3,
9
+ /** tag status */
10
+ TagStatus = 4,
11
+ /** tag type */
12
+ TagType = 5,
13
+ /** tag value name */
14
+ TagValueName = 6,
15
+ /** tag value status */
16
+ TagValueStatus = 7,
17
+ }
18
+ export declare enum OperationType {
19
+ /** 创建 */
20
+ Create = 1,
21
+ /** 更新 */
22
+ Update = 2,
23
+ /** 删除 */
24
+ Delete = 3,
25
+ }
26
+ export declare enum TagStatus {
27
+ /** 启用 */
28
+ Active = 1,
29
+ /** 禁用 */
30
+ Inactive = 2,
31
+ /** 弃用,旧版本状态 */
32
+ Deprecated = 99,
33
+ }
34
+ export declare enum TagType {
35
+ /** 标签类型 */
36
+ Tag = 1,
37
+ /** 单选类型 */
38
+ Option = 2,
39
+ }
40
+ export interface ChangeLog {
41
+ /** 变更的属性 */
42
+ target?: ChangeTargetType;
43
+ /** 变更类型: create, update, delete */
44
+ operation?: OperationType;
45
+ /** 变更前的值 */
46
+ beforValue?: string;
47
+ /** 变更后的值 */
48
+ afterValue?: string;
49
+ /** 变更属性的值:如果是标签选项变更,该值为变更属选项值名字 */
50
+ targetValue?: string;
51
+ }
52
+ export interface TagInfo {
53
+ ID?: string;
54
+ appID?: number;
55
+ spaceID?: string;
56
+ /** 数字版本号 */
57
+ versionNum?: number;
58
+ /** SemVer 三段式版本号 */
59
+ version?: string;
60
+ /** tag key id */
61
+ tagKeyID?: string;
62
+ /** tag key name */
63
+ tagKeyName?: string;
64
+ /** 描述 */
65
+ description?: string;
66
+ /** 状态,启用active、禁用inactive、弃用deprecated(最新版之前的版本的状态) */
67
+ status?: TagStatus;
68
+ /** 类型: tag: 标签管理中的标签类型; option: 临时单选类型 */
69
+ tagType?: TagType;
70
+ parentTagKeyID?: string;
71
+ /** 标签值 */
72
+ tagValues?: Array<TagValue>;
73
+ /** 变更历史 */
74
+ changeLogs?: Array<ChangeLog>;
75
+ createdBy?: string;
76
+ createdAt?: string;
77
+ updatedBy?: string;
78
+ updatedAt?: string;
79
+ }
80
+ export interface TagValue {
81
+ /** 创建时不传 */
82
+ ID?: string;
83
+ /** 创建时不传 */
84
+ appID?: number;
85
+ /** 创建时不传 */
86
+ spaceID?: string;
87
+ /** 创建时不传 */
88
+ tagKeyID?: string;
89
+ /** 创建时不传 */
90
+ tagValueID?: string;
91
+ /** 标签值 */
92
+ tagValueName?: string;
93
+ /** 描述 */
94
+ description?: string;
95
+ /** 状态,启用active、禁用inactive、弃用deprecated(最新版之前的版本的状态) */
96
+ status?: TagStatus;
97
+ /** 数字版本号 */
98
+ versionNum?: number;
99
+ /** 父标签选项的ID */
100
+ parentValueID?: string;
101
+ /** 子标签 */
102
+ children?: Array<TagValue>;
103
+ /** 是否是系统标签而非用户标签 */
104
+ isSystem?: boolean;
105
+ createdBy?: string;
106
+ createAt?: string;
107
+ updatedBy?: string;
108
+ updatedAt?: string;
109
+ }