@alicloud/green20220926 1.3.2 → 1.4.0

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/dist/client.d.ts CHANGED
@@ -558,6 +558,57 @@ export declare class GetCipStatsResponseBodyData extends $dara.Model {
558
558
  [key: string]: any;
559
559
  });
560
560
  }
561
+ export declare class GetFeatureConfigResponseBodyData extends $dara.Model {
562
+ /**
563
+ * @remarks
564
+ * List of feature configurations
565
+ */
566
+ featureConf?: {
567
+ [key: string]: any;
568
+ }[];
569
+ /**
570
+ * @remarks
571
+ * Resource type.
572
+ *
573
+ * @example
574
+ * text
575
+ */
576
+ resourceType?: string;
577
+ /**
578
+ * @remarks
579
+ * Service code.
580
+ *
581
+ * @example
582
+ * llm_query_moderation
583
+ */
584
+ serviceCode?: string;
585
+ /**
586
+ * @remarks
587
+ * Type
588
+ *
589
+ * @example
590
+ * custom_llm_template
591
+ */
592
+ type?: string;
593
+ /**
594
+ * @remarks
595
+ * UID.
596
+ *
597
+ * @example
598
+ * 1643953****74290
599
+ */
600
+ uid?: string;
601
+ static names(): {
602
+ [key: string]: string;
603
+ };
604
+ static types(): {
605
+ [key: string]: any;
606
+ };
607
+ validate(): void;
608
+ constructor(map?: {
609
+ [key: string]: any;
610
+ });
611
+ }
561
612
  export declare class GetKeywordImportResultResponseBodyData extends $dara.Model {
562
613
  /**
563
614
  * @example
@@ -702,6 +753,7 @@ export declare class GetScanResultResponseBodyDataItemsResult extends $dara.Mode
702
753
  });
703
754
  }
704
755
  export declare class GetScanResultResponseBodyDataItems extends $dara.Model {
756
+ attackLevel?: string;
705
757
  /**
706
758
  * @example
707
759
  * xxx
@@ -774,6 +826,7 @@ export declare class GetScanResultResponseBodyDataItems extends $dara.Model {
774
826
  * 1
775
827
  */
776
828
  pageNum?: number;
829
+ requestFrom?: string;
777
830
  /**
778
831
  * @example
779
832
  * AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****
@@ -798,6 +851,7 @@ export declare class GetScanResultResponseBodyDataItems extends $dara.Model {
798
851
  * 25
799
852
  */
800
853
  score?: number;
854
+ sensitiveLevel?: string;
801
855
  /**
802
856
  * @example
803
857
  * baselineCheck
@@ -3038,6 +3092,135 @@ export declare class DeleteCallbackResponse extends $dara.Model {
3038
3092
  [key: string]: any;
3039
3093
  });
3040
3094
  }
3095
+ export declare class DeleteFeatureConfigRequest extends $dara.Model {
3096
+ /**
3097
+ * @remarks
3098
+ * Label value, customer-defined
3099
+ *
3100
+ * @example
3101
+ * __config__
3102
+ */
3103
+ field?: string;
3104
+ /**
3105
+ * @remarks
3106
+ * Region
3107
+ *
3108
+ * @example
3109
+ * cn-shanghai
3110
+ */
3111
+ regionId?: string;
3112
+ /**
3113
+ * @remarks
3114
+ * Resource type.
3115
+ *
3116
+ * @example
3117
+ * text
3118
+ */
3119
+ resourceType?: string;
3120
+ /**
3121
+ * @remarks
3122
+ * Service code.
3123
+ *
3124
+ * @example
3125
+ * llm_query_moderation
3126
+ */
3127
+ serviceCode?: string;
3128
+ /**
3129
+ * @remarks
3130
+ * Type
3131
+ *
3132
+ * @example
3133
+ * custom_llm_template
3134
+ */
3135
+ type?: string;
3136
+ static names(): {
3137
+ [key: string]: string;
3138
+ };
3139
+ static types(): {
3140
+ [key: string]: any;
3141
+ };
3142
+ validate(): void;
3143
+ constructor(map?: {
3144
+ [key: string]: any;
3145
+ });
3146
+ }
3147
+ export declare class DeleteFeatureConfigResponseBody extends $dara.Model {
3148
+ /**
3149
+ * @remarks
3150
+ * Status code.
3151
+ *
3152
+ * @example
3153
+ * 200
3154
+ */
3155
+ code?: number;
3156
+ /**
3157
+ * @remarks
3158
+ * Return result.
3159
+ *
3160
+ * @example
3161
+ * True
3162
+ */
3163
+ data?: boolean;
3164
+ /**
3165
+ * @remarks
3166
+ * HTTP status code.
3167
+ *
3168
+ * @example
3169
+ * 200
3170
+ */
3171
+ httpStatusCode?: number;
3172
+ /**
3173
+ * @remarks
3174
+ * Response message of this request.
3175
+ *
3176
+ * @example
3177
+ * success
3178
+ */
3179
+ msg?: string;
3180
+ /**
3181
+ * @remarks
3182
+ * ID assigned by the backend, used to uniquely identify a request. Can be used for troubleshooting.
3183
+ *
3184
+ * @example
3185
+ * AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****
3186
+ */
3187
+ requestId?: string;
3188
+ /**
3189
+ * @remarks
3190
+ * Success indicator.
3191
+ *
3192
+ * @example
3193
+ * True
3194
+ */
3195
+ success?: boolean;
3196
+ static names(): {
3197
+ [key: string]: string;
3198
+ };
3199
+ static types(): {
3200
+ [key: string]: any;
3201
+ };
3202
+ validate(): void;
3203
+ constructor(map?: {
3204
+ [key: string]: any;
3205
+ });
3206
+ }
3207
+ export declare class DeleteFeatureConfigResponse extends $dara.Model {
3208
+ headers?: {
3209
+ [key: string]: string;
3210
+ };
3211
+ statusCode?: number;
3212
+ body?: DeleteFeatureConfigResponseBody;
3213
+ static names(): {
3214
+ [key: string]: string;
3215
+ };
3216
+ static types(): {
3217
+ [key: string]: any;
3218
+ };
3219
+ validate(): void;
3220
+ constructor(map?: {
3221
+ [key: string]: any;
3222
+ });
3223
+ }
3041
3224
  export declare class DeleteImagesFromLibRequest extends $dara.Model {
3042
3225
  /**
3043
3226
  * @example
@@ -4549,6 +4732,124 @@ export declare class GetExecuteTimeResponse extends $dara.Model {
4549
4732
  [key: string]: any;
4550
4733
  });
4551
4734
  }
4735
+ export declare class GetFeatureConfigRequest extends $dara.Model {
4736
+ /**
4737
+ * @remarks
4738
+ * Region ID
4739
+ *
4740
+ * @example
4741
+ * cn-shanghai
4742
+ */
4743
+ regionId?: string;
4744
+ /**
4745
+ * @remarks
4746
+ * Resource type.
4747
+ *
4748
+ * @example
4749
+ * text
4750
+ */
4751
+ resourceType?: string;
4752
+ /**
4753
+ * @remarks
4754
+ * Service code.
4755
+ *
4756
+ * @example
4757
+ * llm_query_moderation
4758
+ */
4759
+ serviceCode?: string;
4760
+ /**
4761
+ * @remarks
4762
+ * Type
4763
+ *
4764
+ * @example
4765
+ * custom_llm_template
4766
+ */
4767
+ type?: string;
4768
+ static names(): {
4769
+ [key: string]: string;
4770
+ };
4771
+ static types(): {
4772
+ [key: string]: any;
4773
+ };
4774
+ validate(): void;
4775
+ constructor(map?: {
4776
+ [key: string]: any;
4777
+ });
4778
+ }
4779
+ export declare class GetFeatureConfigResponseBody extends $dara.Model {
4780
+ /**
4781
+ * @remarks
4782
+ * Status code
4783
+ *
4784
+ * @example
4785
+ * 200
4786
+ */
4787
+ code?: number;
4788
+ /**
4789
+ * @remarks
4790
+ * Returned data.
4791
+ */
4792
+ data?: GetFeatureConfigResponseBodyData;
4793
+ /**
4794
+ * @remarks
4795
+ * HTTP status code.
4796
+ *
4797
+ * @example
4798
+ * 200
4799
+ */
4800
+ httpStatusCode?: number;
4801
+ /**
4802
+ * @remarks
4803
+ * Response message for this request.
4804
+ *
4805
+ * @example
4806
+ * success
4807
+ */
4808
+ msg?: string;
4809
+ /**
4810
+ * @remarks
4811
+ * ID assigned by the backend, used to uniquely identify a request. Can be used for troubleshooting.
4812
+ *
4813
+ * @example
4814
+ * AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****
4815
+ */
4816
+ requestId?: string;
4817
+ /**
4818
+ * @remarks
4819
+ * Success indicator
4820
+ *
4821
+ * @example
4822
+ * true
4823
+ */
4824
+ success?: boolean;
4825
+ static names(): {
4826
+ [key: string]: string;
4827
+ };
4828
+ static types(): {
4829
+ [key: string]: any;
4830
+ };
4831
+ validate(): void;
4832
+ constructor(map?: {
4833
+ [key: string]: any;
4834
+ });
4835
+ }
4836
+ export declare class GetFeatureConfigResponse extends $dara.Model {
4837
+ headers?: {
4838
+ [key: string]: string;
4839
+ };
4840
+ statusCode?: number;
4841
+ body?: GetFeatureConfigResponseBody;
4842
+ static names(): {
4843
+ [key: string]: string;
4844
+ };
4845
+ static types(): {
4846
+ [key: string]: any;
4847
+ };
4848
+ validate(): void;
4849
+ constructor(map?: {
4850
+ [key: string]: any;
4851
+ });
4852
+ }
4552
4853
  export declare class GetImageSceneLabelConfRequest extends $dara.Model {
4553
4854
  /**
4554
4855
  * @example
@@ -6950,6 +7251,151 @@ export declare class ModifyCallbackResponse extends $dara.Model {
6950
7251
  [key: string]: any;
6951
7252
  });
6952
7253
  }
7254
+ export declare class ModifyFeatureConfigRequest extends $dara.Model {
7255
+ /**
7256
+ * @remarks
7257
+ * Configuration, in JSON format
7258
+ *
7259
+ * @example
7260
+ * {}
7261
+ */
7262
+ config?: string;
7263
+ /**
7264
+ * @remarks
7265
+ * Label meaning
7266
+ *
7267
+ * @example
7268
+ * 标签2
7269
+ */
7270
+ description?: string;
7271
+ /**
7272
+ * @remarks
7273
+ * Label value, customer-defined
7274
+ *
7275
+ * @example
7276
+ * __config__
7277
+ */
7278
+ field?: string;
7279
+ /**
7280
+ * @remarks
7281
+ * Region
7282
+ *
7283
+ * @example
7284
+ * cn-shanghai
7285
+ */
7286
+ regionId?: string;
7287
+ /**
7288
+ * @remarks
7289
+ * Resource type.
7290
+ *
7291
+ * @example
7292
+ * text
7293
+ */
7294
+ resourceType?: string;
7295
+ /**
7296
+ * @remarks
7297
+ * Service code.
7298
+ *
7299
+ * @example
7300
+ * llm_query_moderation
7301
+ */
7302
+ serviceCode?: string;
7303
+ /**
7304
+ * @remarks
7305
+ * Type
7306
+ *
7307
+ * @example
7308
+ * custom_llm_template
7309
+ */
7310
+ type?: string;
7311
+ static names(): {
7312
+ [key: string]: string;
7313
+ };
7314
+ static types(): {
7315
+ [key: string]: any;
7316
+ };
7317
+ validate(): void;
7318
+ constructor(map?: {
7319
+ [key: string]: any;
7320
+ });
7321
+ }
7322
+ export declare class ModifyFeatureConfigResponseBody extends $dara.Model {
7323
+ /**
7324
+ * @remarks
7325
+ * Status code.
7326
+ *
7327
+ * @example
7328
+ * 200
7329
+ */
7330
+ code?: number;
7331
+ /**
7332
+ * @remarks
7333
+ * Returned data
7334
+ *
7335
+ * @example
7336
+ * True
7337
+ */
7338
+ data?: boolean;
7339
+ /**
7340
+ * @remarks
7341
+ * HTTP status code.
7342
+ *
7343
+ * @example
7344
+ * 200
7345
+ */
7346
+ httpStatusCode?: number;
7347
+ /**
7348
+ * @remarks
7349
+ * Response message of this request.
7350
+ *
7351
+ * @example
7352
+ * success
7353
+ */
7354
+ msg?: string;
7355
+ /**
7356
+ * @remarks
7357
+ * ID assigned by the backend to uniquely identify a request. Can be used for troubleshooting.
7358
+ *
7359
+ * @example
7360
+ * AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****
7361
+ */
7362
+ requestId?: string;
7363
+ /**
7364
+ * @remarks
7365
+ * Success indicator.
7366
+ *
7367
+ * @example
7368
+ * True
7369
+ */
7370
+ success?: boolean;
7371
+ static names(): {
7372
+ [key: string]: string;
7373
+ };
7374
+ static types(): {
7375
+ [key: string]: any;
7376
+ };
7377
+ validate(): void;
7378
+ constructor(map?: {
7379
+ [key: string]: any;
7380
+ });
7381
+ }
7382
+ export declare class ModifyFeatureConfigResponse extends $dara.Model {
7383
+ headers?: {
7384
+ [key: string]: string;
7385
+ };
7386
+ statusCode?: number;
7387
+ body?: ModifyFeatureConfigResponseBody;
7388
+ static names(): {
7389
+ [key: string]: string;
7390
+ };
7391
+ static types(): {
7392
+ [key: string]: any;
7393
+ };
7394
+ validate(): void;
7395
+ constructor(map?: {
7396
+ [key: string]: any;
7397
+ });
7398
+ }
6953
7399
  export declare class ModifyServiceInfoRequest extends $dara.Model {
6954
7400
  /**
6955
7401
  * @example
@@ -8081,6 +8527,21 @@ export default class Client extends OpenApi {
8081
8527
  * @returns DeleteCallbackResponse
8082
8528
  */
8083
8529
  deleteCallback(request: DeleteCallbackRequest): Promise<DeleteCallbackResponse>;
8530
+ /**
8531
+ * Delete feature configuration
8532
+ *
8533
+ * @param request - DeleteFeatureConfigRequest
8534
+ * @param runtime - runtime options for this request RuntimeOptions
8535
+ * @returns DeleteFeatureConfigResponse
8536
+ */
8537
+ deleteFeatureConfigWithOptions(request: DeleteFeatureConfigRequest, runtime: $dara.RuntimeOptions): Promise<DeleteFeatureConfigResponse>;
8538
+ /**
8539
+ * Delete feature configuration
8540
+ *
8541
+ * @param request - DeleteFeatureConfigRequest
8542
+ * @returns DeleteFeatureConfigResponse
8543
+ */
8544
+ deleteFeatureConfig(request: DeleteFeatureConfigRequest): Promise<DeleteFeatureConfigResponse>;
8084
8545
  /**
8085
8546
  * 批量删除
8086
8547
  *
@@ -8336,6 +8797,21 @@ export default class Client extends OpenApi {
8336
8797
  * @returns GetExecuteTimeResponse
8337
8798
  */
8338
8799
  getExecuteTime(request: GetExecuteTimeRequest): Promise<GetExecuteTimeResponse>;
8800
+ /**
8801
+ * Get Feature Configuration
8802
+ *
8803
+ * @param request - GetFeatureConfigRequest
8804
+ * @param runtime - runtime options for this request RuntimeOptions
8805
+ * @returns GetFeatureConfigResponse
8806
+ */
8807
+ getFeatureConfigWithOptions(request: GetFeatureConfigRequest, runtime: $dara.RuntimeOptions): Promise<GetFeatureConfigResponse>;
8808
+ /**
8809
+ * Get Feature Configuration
8810
+ *
8811
+ * @param request - GetFeatureConfigRequest
8812
+ * @returns GetFeatureConfigResponse
8813
+ */
8814
+ getFeatureConfig(request: GetFeatureConfigRequest): Promise<GetFeatureConfigResponse>;
8339
8815
  /**
8340
8816
  * 获取图片规则标签信息
8341
8817
  *
@@ -8726,6 +9202,21 @@ export default class Client extends OpenApi {
8726
9202
  * @returns ModifyCallbackResponse
8727
9203
  */
8728
9204
  modifyCallback(request: ModifyCallbackRequest): Promise<ModifyCallbackResponse>;
9205
+ /**
9206
+ * Save Feature Configuration
9207
+ *
9208
+ * @param request - ModifyFeatureConfigRequest
9209
+ * @param runtime - runtime options for this request RuntimeOptions
9210
+ * @returns ModifyFeatureConfigResponse
9211
+ */
9212
+ modifyFeatureConfigWithOptions(request: ModifyFeatureConfigRequest, runtime: $dara.RuntimeOptions): Promise<ModifyFeatureConfigResponse>;
9213
+ /**
9214
+ * Save Feature Configuration
9215
+ *
9216
+ * @param request - ModifyFeatureConfigRequest
9217
+ * @returns ModifyFeatureConfigResponse
9218
+ */
9219
+ modifyFeatureConfig(request: ModifyFeatureConfigRequest): Promise<ModifyFeatureConfigResponse>;
8729
9220
  /**
8730
9221
  * 编辑服务
8731
9222
  *