@alicloud/dianjin20240628 1.5.0 → 1.6.1
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 +106 -0
- package/dist/client.js +131 -3
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +190 -0
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -2457,10 +2457,12 @@ export class GetParseResultRequest extends $tea.Model {
|
|
|
2457
2457
|
* sjdgdsfg
|
|
2458
2458
|
*/
|
|
2459
2459
|
libraryId?: string;
|
|
2460
|
+
useUrlResult?: boolean;
|
|
2460
2461
|
static names(): { [key: string]: string } {
|
|
2461
2462
|
return {
|
|
2462
2463
|
docId: 'docId',
|
|
2463
2464
|
libraryId: 'libraryId',
|
|
2465
|
+
useUrlResult: 'useUrlResult',
|
|
2464
2466
|
};
|
|
2465
2467
|
}
|
|
2466
2468
|
|
|
@@ -2468,6 +2470,7 @@ export class GetParseResultRequest extends $tea.Model {
|
|
|
2468
2470
|
return {
|
|
2469
2471
|
docId: 'string',
|
|
2470
2472
|
libraryId: 'string',
|
|
2473
|
+
useUrlResult: 'boolean',
|
|
2471
2474
|
};
|
|
2472
2475
|
}
|
|
2473
2476
|
|
|
@@ -3385,6 +3388,122 @@ export class ReIndexResponse extends $tea.Model {
|
|
|
3385
3388
|
}
|
|
3386
3389
|
}
|
|
3387
3390
|
|
|
3391
|
+
export class RebuildTaskRequest extends $tea.Model {
|
|
3392
|
+
/**
|
|
3393
|
+
* @remarks
|
|
3394
|
+
* This parameter is required.
|
|
3395
|
+
*/
|
|
3396
|
+
taskIds?: string[];
|
|
3397
|
+
static names(): { [key: string]: string } {
|
|
3398
|
+
return {
|
|
3399
|
+
taskIds: 'taskIds',
|
|
3400
|
+
};
|
|
3401
|
+
}
|
|
3402
|
+
|
|
3403
|
+
static types(): { [key: string]: any } {
|
|
3404
|
+
return {
|
|
3405
|
+
taskIds: { 'type': 'array', 'itemType': 'string' },
|
|
3406
|
+
};
|
|
3407
|
+
}
|
|
3408
|
+
|
|
3409
|
+
constructor(map?: { [key: string]: any }) {
|
|
3410
|
+
super(map);
|
|
3411
|
+
}
|
|
3412
|
+
}
|
|
3413
|
+
|
|
3414
|
+
export class RebuildTaskResponseBody extends $tea.Model {
|
|
3415
|
+
/**
|
|
3416
|
+
* @example
|
|
3417
|
+
* null
|
|
3418
|
+
*/
|
|
3419
|
+
cost?: number;
|
|
3420
|
+
data?: { [key: string]: any }[];
|
|
3421
|
+
/**
|
|
3422
|
+
* @example
|
|
3423
|
+
* null
|
|
3424
|
+
*/
|
|
3425
|
+
dataType?: string;
|
|
3426
|
+
/**
|
|
3427
|
+
* @example
|
|
3428
|
+
* 0
|
|
3429
|
+
*/
|
|
3430
|
+
errCode?: string;
|
|
3431
|
+
/**
|
|
3432
|
+
* @example
|
|
3433
|
+
* ok
|
|
3434
|
+
*/
|
|
3435
|
+
message?: string;
|
|
3436
|
+
/**
|
|
3437
|
+
* @example
|
|
3438
|
+
* EF4B5C9B-3BC8-5171-A47B-4C5CF3DC3258
|
|
3439
|
+
*/
|
|
3440
|
+
requestId?: string;
|
|
3441
|
+
/**
|
|
3442
|
+
* @example
|
|
3443
|
+
* true
|
|
3444
|
+
*/
|
|
3445
|
+
success?: boolean;
|
|
3446
|
+
/**
|
|
3447
|
+
* @example
|
|
3448
|
+
* 2024-04-24 11:54:34
|
|
3449
|
+
*/
|
|
3450
|
+
time?: string;
|
|
3451
|
+
static names(): { [key: string]: string } {
|
|
3452
|
+
return {
|
|
3453
|
+
cost: 'cost',
|
|
3454
|
+
data: 'data',
|
|
3455
|
+
dataType: 'dataType',
|
|
3456
|
+
errCode: 'errCode',
|
|
3457
|
+
message: 'message',
|
|
3458
|
+
requestId: 'requestId',
|
|
3459
|
+
success: 'success',
|
|
3460
|
+
time: 'time',
|
|
3461
|
+
};
|
|
3462
|
+
}
|
|
3463
|
+
|
|
3464
|
+
static types(): { [key: string]: any } {
|
|
3465
|
+
return {
|
|
3466
|
+
cost: 'number',
|
|
3467
|
+
data: { 'type': 'array', 'itemType': { 'type': 'map', 'keyType': 'string', 'valueType': 'any' } },
|
|
3468
|
+
dataType: 'string',
|
|
3469
|
+
errCode: 'string',
|
|
3470
|
+
message: 'string',
|
|
3471
|
+
requestId: 'string',
|
|
3472
|
+
success: 'boolean',
|
|
3473
|
+
time: 'string',
|
|
3474
|
+
};
|
|
3475
|
+
}
|
|
3476
|
+
|
|
3477
|
+
constructor(map?: { [key: string]: any }) {
|
|
3478
|
+
super(map);
|
|
3479
|
+
}
|
|
3480
|
+
}
|
|
3481
|
+
|
|
3482
|
+
export class RebuildTaskResponse extends $tea.Model {
|
|
3483
|
+
headers?: { [key: string]: string };
|
|
3484
|
+
statusCode?: number;
|
|
3485
|
+
body?: RebuildTaskResponseBody;
|
|
3486
|
+
static names(): { [key: string]: string } {
|
|
3487
|
+
return {
|
|
3488
|
+
headers: 'headers',
|
|
3489
|
+
statusCode: 'statusCode',
|
|
3490
|
+
body: 'body',
|
|
3491
|
+
};
|
|
3492
|
+
}
|
|
3493
|
+
|
|
3494
|
+
static types(): { [key: string]: any } {
|
|
3495
|
+
return {
|
|
3496
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
3497
|
+
statusCode: 'number',
|
|
3498
|
+
body: RebuildTaskResponseBody,
|
|
3499
|
+
};
|
|
3500
|
+
}
|
|
3501
|
+
|
|
3502
|
+
constructor(map?: { [key: string]: any }) {
|
|
3503
|
+
super(map);
|
|
3504
|
+
}
|
|
3505
|
+
}
|
|
3506
|
+
|
|
3388
3507
|
export class RecallDocumentRequest extends $tea.Model {
|
|
3389
3508
|
filters?: RecallDocumentRequestFilters[];
|
|
3390
3509
|
/**
|
|
@@ -3539,6 +3658,7 @@ export class RecognizeIntentionRequest extends $tea.Model {
|
|
|
3539
3658
|
conversation?: string;
|
|
3540
3659
|
globalIntentionList?: RecognizeIntentionRequestGlobalIntentionList[];
|
|
3541
3660
|
hierarchicalIntentionList?: RecognizeIntentionRequestHierarchicalIntentionList[];
|
|
3661
|
+
intentionDomainCode?: string;
|
|
3542
3662
|
intentionList?: RecognizeIntentionRequestIntentionList[];
|
|
3543
3663
|
/**
|
|
3544
3664
|
* @example
|
|
@@ -3557,6 +3677,7 @@ export class RecognizeIntentionRequest extends $tea.Model {
|
|
|
3557
3677
|
conversation: 'conversation',
|
|
3558
3678
|
globalIntentionList: 'globalIntentionList',
|
|
3559
3679
|
hierarchicalIntentionList: 'hierarchicalIntentionList',
|
|
3680
|
+
intentionDomainCode: 'intentionDomainCode',
|
|
3560
3681
|
intentionList: 'intentionList',
|
|
3561
3682
|
opType: 'opType',
|
|
3562
3683
|
recommend: 'recommend',
|
|
@@ -3570,6 +3691,7 @@ export class RecognizeIntentionRequest extends $tea.Model {
|
|
|
3570
3691
|
conversation: 'string',
|
|
3571
3692
|
globalIntentionList: { 'type': 'array', 'itemType': RecognizeIntentionRequestGlobalIntentionList },
|
|
3572
3693
|
hierarchicalIntentionList: { 'type': 'array', 'itemType': RecognizeIntentionRequestHierarchicalIntentionList },
|
|
3694
|
+
intentionDomainCode: 'string',
|
|
3573
3695
|
intentionList: { 'type': 'array', 'itemType': RecognizeIntentionRequestIntentionList },
|
|
3574
3696
|
opType: 'string',
|
|
3575
3697
|
recommend: 'boolean',
|
|
@@ -6749,6 +6871,7 @@ export class GetParseResultResponseBodyData extends $tea.Model {
|
|
|
6749
6871
|
* }
|
|
6750
6872
|
*/
|
|
6751
6873
|
result?: { [key: string]: any };
|
|
6874
|
+
resultUrl?: string;
|
|
6752
6875
|
/**
|
|
6753
6876
|
* @example
|
|
6754
6877
|
* WaitRefresh
|
|
@@ -6760,6 +6883,7 @@ export class GetParseResultResponseBodyData extends $tea.Model {
|
|
|
6760
6883
|
providerType: 'providerType',
|
|
6761
6884
|
requestId: 'requestId',
|
|
6762
6885
|
result: 'result',
|
|
6886
|
+
resultUrl: 'resultUrl',
|
|
6763
6887
|
status: 'status',
|
|
6764
6888
|
};
|
|
6765
6889
|
}
|
|
@@ -6770,6 +6894,7 @@ export class GetParseResultResponseBodyData extends $tea.Model {
|
|
|
6770
6894
|
providerType: 'string',
|
|
6771
6895
|
requestId: 'string',
|
|
6772
6896
|
result: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
6897
|
+
resultUrl: 'string',
|
|
6773
6898
|
status: 'string',
|
|
6774
6899
|
};
|
|
6775
6900
|
}
|
|
@@ -8127,11 +8252,13 @@ export class RecognizeIntentionRequestGlobalIntentionList extends $tea.Model {
|
|
|
8127
8252
|
* 1810566978021232640
|
|
8128
8253
|
*/
|
|
8129
8254
|
intentionCode?: string;
|
|
8255
|
+
intentionScript?: string;
|
|
8130
8256
|
static names(): { [key: string]: string } {
|
|
8131
8257
|
return {
|
|
8132
8258
|
description: 'description',
|
|
8133
8259
|
intention: 'intention',
|
|
8134
8260
|
intentionCode: 'intentionCode',
|
|
8261
|
+
intentionScript: 'intentionScript',
|
|
8135
8262
|
};
|
|
8136
8263
|
}
|
|
8137
8264
|
|
|
@@ -8140,6 +8267,7 @@ export class RecognizeIntentionRequestGlobalIntentionList extends $tea.Model {
|
|
|
8140
8267
|
description: 'string',
|
|
8141
8268
|
intention: 'string',
|
|
8142
8269
|
intentionCode: 'string',
|
|
8270
|
+
intentionScript: 'string',
|
|
8143
8271
|
};
|
|
8144
8272
|
}
|
|
8145
8273
|
|
|
@@ -8156,11 +8284,13 @@ export class RecognizeIntentionRequestHierarchicalIntentionList extends $tea.Mod
|
|
|
8156
8284
|
* 1810929291010150400
|
|
8157
8285
|
*/
|
|
8158
8286
|
intentionCode?: string;
|
|
8287
|
+
intentionScript?: string;
|
|
8159
8288
|
static names(): { [key: string]: string } {
|
|
8160
8289
|
return {
|
|
8161
8290
|
description: 'description',
|
|
8162
8291
|
intention: 'intention',
|
|
8163
8292
|
intentionCode: 'intentionCode',
|
|
8293
|
+
intentionScript: 'intentionScript',
|
|
8164
8294
|
};
|
|
8165
8295
|
}
|
|
8166
8296
|
|
|
@@ -8169,6 +8299,7 @@ export class RecognizeIntentionRequestHierarchicalIntentionList extends $tea.Mod
|
|
|
8169
8299
|
description: 'string',
|
|
8170
8300
|
intention: 'string',
|
|
8171
8301
|
intentionCode: 'string',
|
|
8302
|
+
intentionScript: 'string',
|
|
8172
8303
|
};
|
|
8173
8304
|
}
|
|
8174
8305
|
|
|
@@ -8185,11 +8316,13 @@ export class RecognizeIntentionRequestIntentionList extends $tea.Model {
|
|
|
8185
8316
|
* 1808766224000262144
|
|
8186
8317
|
*/
|
|
8187
8318
|
intentionCode?: string;
|
|
8319
|
+
intentionScript?: string;
|
|
8188
8320
|
static names(): { [key: string]: string } {
|
|
8189
8321
|
return {
|
|
8190
8322
|
description: 'description',
|
|
8191
8323
|
intention: 'intention',
|
|
8192
8324
|
intentionCode: 'intentionCode',
|
|
8325
|
+
intentionScript: 'intentionScript',
|
|
8193
8326
|
};
|
|
8194
8327
|
}
|
|
8195
8328
|
|
|
@@ -8198,6 +8331,7 @@ export class RecognizeIntentionRequestIntentionList extends $tea.Model {
|
|
|
8198
8331
|
description: 'string',
|
|
8199
8332
|
intention: 'string',
|
|
8200
8333
|
intentionCode: 'string',
|
|
8334
|
+
intentionScript: 'string',
|
|
8201
8335
|
};
|
|
8202
8336
|
}
|
|
8203
8337
|
|
|
@@ -8214,6 +8348,7 @@ export class RecognizeIntentionResponseBodyData extends $tea.Model {
|
|
|
8214
8348
|
*/
|
|
8215
8349
|
intentionCode?: string;
|
|
8216
8350
|
intentionName?: string;
|
|
8351
|
+
intentionScript?: string;
|
|
8217
8352
|
recommendIntention?: string;
|
|
8218
8353
|
recommendScript?: string;
|
|
8219
8354
|
static names(): { [key: string]: string } {
|
|
@@ -8221,6 +8356,7 @@ export class RecognizeIntentionResponseBodyData extends $tea.Model {
|
|
|
8221
8356
|
analysisProcess: 'analysisProcess',
|
|
8222
8357
|
intentionCode: 'intentionCode',
|
|
8223
8358
|
intentionName: 'intentionName',
|
|
8359
|
+
intentionScript: 'intentionScript',
|
|
8224
8360
|
recommendIntention: 'recommendIntention',
|
|
8225
8361
|
recommendScript: 'recommendScript',
|
|
8226
8362
|
};
|
|
@@ -8231,6 +8367,7 @@ export class RecognizeIntentionResponseBodyData extends $tea.Model {
|
|
|
8231
8367
|
analysisProcess: 'string',
|
|
8232
8368
|
intentionCode: 'string',
|
|
8233
8369
|
intentionName: 'string',
|
|
8370
|
+
intentionScript: 'string',
|
|
8234
8371
|
recommendIntention: 'string',
|
|
8235
8372
|
recommendScript: 'string',
|
|
8236
8373
|
};
|
|
@@ -10030,6 +10167,10 @@ export default class Client extends OpenApi {
|
|
|
10030
10167
|
body["libraryId"] = request.libraryId;
|
|
10031
10168
|
}
|
|
10032
10169
|
|
|
10170
|
+
if (!Util.isUnset(request.useUrlResult)) {
|
|
10171
|
+
body["useUrlResult"] = request.useUrlResult;
|
|
10172
|
+
}
|
|
10173
|
+
|
|
10033
10174
|
let req = new $OpenApi.OpenApiRequest({
|
|
10034
10175
|
headers: headers,
|
|
10035
10176
|
body: OpenApiUtil.parseToMap(body),
|
|
@@ -10379,6 +10520,51 @@ export default class Client extends OpenApi {
|
|
|
10379
10520
|
return await this.reIndexWithOptions(workspaceId, request, headers, runtime);
|
|
10380
10521
|
}
|
|
10381
10522
|
|
|
10523
|
+
/**
|
|
10524
|
+
* 重建任务
|
|
10525
|
+
*
|
|
10526
|
+
* @param request - RebuildTaskRequest
|
|
10527
|
+
* @param headers - map
|
|
10528
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
10529
|
+
* @returns RebuildTaskResponse
|
|
10530
|
+
*/
|
|
10531
|
+
async rebuildTaskWithOptions(workspaceId: string, request: RebuildTaskRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<RebuildTaskResponse> {
|
|
10532
|
+
Util.validateModel(request);
|
|
10533
|
+
let body : {[key: string ]: any} = { };
|
|
10534
|
+
if (!Util.isUnset(request.taskIds)) {
|
|
10535
|
+
body["taskIds"] = request.taskIds;
|
|
10536
|
+
}
|
|
10537
|
+
|
|
10538
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
10539
|
+
headers: headers,
|
|
10540
|
+
body: OpenApiUtil.parseToMap(body),
|
|
10541
|
+
});
|
|
10542
|
+
let params = new $OpenApi.Params({
|
|
10543
|
+
action: "RebuildTask",
|
|
10544
|
+
version: "2024-06-28",
|
|
10545
|
+
protocol: "HTTPS",
|
|
10546
|
+
pathname: `/${OpenApiUtil.getEncodeParam(workspaceId)}/api/task/rebuild`,
|
|
10547
|
+
method: "POST",
|
|
10548
|
+
authType: "AK",
|
|
10549
|
+
style: "ROA",
|
|
10550
|
+
reqBodyType: "json",
|
|
10551
|
+
bodyType: "json",
|
|
10552
|
+
});
|
|
10553
|
+
return $tea.cast<RebuildTaskResponse>(await this.callApi(params, req, runtime), new RebuildTaskResponse({}));
|
|
10554
|
+
}
|
|
10555
|
+
|
|
10556
|
+
/**
|
|
10557
|
+
* 重建任务
|
|
10558
|
+
*
|
|
10559
|
+
* @param request - RebuildTaskRequest
|
|
10560
|
+
* @returns RebuildTaskResponse
|
|
10561
|
+
*/
|
|
10562
|
+
async rebuildTask(workspaceId: string, request: RebuildTaskRequest): Promise<RebuildTaskResponse> {
|
|
10563
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
10564
|
+
let headers : {[key: string ]: string} = { };
|
|
10565
|
+
return await this.rebuildTaskWithOptions(workspaceId, request, headers, runtime);
|
|
10566
|
+
}
|
|
10567
|
+
|
|
10382
10568
|
/**
|
|
10383
10569
|
* 文档召回。
|
|
10384
10570
|
*
|
|
@@ -10467,6 +10653,10 @@ export default class Client extends OpenApi {
|
|
|
10467
10653
|
body["hierarchicalIntentionList"] = request.hierarchicalIntentionList;
|
|
10468
10654
|
}
|
|
10469
10655
|
|
|
10656
|
+
if (!Util.isUnset(request.intentionDomainCode)) {
|
|
10657
|
+
body["intentionDomainCode"] = request.intentionDomainCode;
|
|
10658
|
+
}
|
|
10659
|
+
|
|
10470
10660
|
if (!Util.isUnset(request.intentionList)) {
|
|
10471
10661
|
body["intentionList"] = request.intentionList;
|
|
10472
10662
|
}
|