@aws-sdk/client-bedrock-agent-runtime 3.576.0 → 3.577.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-cjs/index.js +10 -0
- package/dist-es/models/models_0.js +8 -0
- package/dist-es/protocols/Aws_restJson1.js +2 -0
- package/dist-types/commands/RetrieveAndGenerateCommand.d.ts +4 -0
- package/dist-types/commands/RetrieveCommand.d.ts +4 -0
- package/dist-types/models/models_0.d.ts +132 -12
- package/dist-types/ts3.4/models/models_0.d.ts +60 -0
- package/package.json +13 -13
package/dist-cjs/index.js
CHANGED
|
@@ -612,6 +612,10 @@ var RetrievalFilter;
|
|
|
612
612
|
return visitor.notIn(value.notIn);
|
|
613
613
|
if (value.startsWith !== void 0)
|
|
614
614
|
return visitor.startsWith(value.startsWith);
|
|
615
|
+
if (value.listContains !== void 0)
|
|
616
|
+
return visitor.listContains(value.listContains);
|
|
617
|
+
if (value.stringContains !== void 0)
|
|
618
|
+
return visitor.stringContains(value.stringContains);
|
|
615
619
|
if (value.andAll !== void 0)
|
|
616
620
|
return visitor.andAll(value.andAll);
|
|
617
621
|
if (value.orAll !== void 0)
|
|
@@ -924,6 +928,10 @@ var RetrievalFilterFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
|
924
928
|
return { notIn: obj.notIn };
|
|
925
929
|
if (obj.startsWith !== void 0)
|
|
926
930
|
return { startsWith: obj.startsWith };
|
|
931
|
+
if (obj.listContains !== void 0)
|
|
932
|
+
return { listContains: obj.listContains };
|
|
933
|
+
if (obj.stringContains !== void 0)
|
|
934
|
+
return { stringContains: obj.stringContains };
|
|
927
935
|
if (obj.andAll !== void 0)
|
|
928
936
|
return { andAll: import_smithy_client.SENSITIVE_STRING };
|
|
929
937
|
if (obj.orAll !== void 0)
|
|
@@ -1501,10 +1509,12 @@ var se_RetrievalFilter = /* @__PURE__ */ __name((input, context) => {
|
|
|
1501
1509
|
in: (value) => ({ in: se_FilterAttribute(value, context) }),
|
|
1502
1510
|
lessThan: (value) => ({ lessThan: se_FilterAttribute(value, context) }),
|
|
1503
1511
|
lessThanOrEquals: (value) => ({ lessThanOrEquals: se_FilterAttribute(value, context) }),
|
|
1512
|
+
listContains: (value) => ({ listContains: se_FilterAttribute(value, context) }),
|
|
1504
1513
|
notEquals: (value) => ({ notEquals: se_FilterAttribute(value, context) }),
|
|
1505
1514
|
notIn: (value) => ({ notIn: se_FilterAttribute(value, context) }),
|
|
1506
1515
|
orAll: (value) => ({ orAll: se_RetrievalFilterList(value, context) }),
|
|
1507
1516
|
startsWith: (value) => ({ startsWith: se_FilterAttribute(value, context) }),
|
|
1517
|
+
stringContains: (value) => ({ stringContains: se_FilterAttribute(value, context) }),
|
|
1508
1518
|
_: (name, value) => ({ name: value })
|
|
1509
1519
|
});
|
|
1510
1520
|
}, "se_RetrievalFilter");
|
|
@@ -279,6 +279,10 @@ export var RetrievalFilter;
|
|
|
279
279
|
return visitor.notIn(value.notIn);
|
|
280
280
|
if (value.startsWith !== undefined)
|
|
281
281
|
return visitor.startsWith(value.startsWith);
|
|
282
|
+
if (value.listContains !== undefined)
|
|
283
|
+
return visitor.listContains(value.listContains);
|
|
284
|
+
if (value.stringContains !== undefined)
|
|
285
|
+
return visitor.stringContains(value.stringContains);
|
|
282
286
|
if (value.andAll !== undefined)
|
|
283
287
|
return visitor.andAll(value.andAll);
|
|
284
288
|
if (value.orAll !== undefined)
|
|
@@ -589,6 +593,10 @@ export const RetrievalFilterFilterSensitiveLog = (obj) => {
|
|
|
589
593
|
return { notIn: obj.notIn };
|
|
590
594
|
if (obj.startsWith !== undefined)
|
|
591
595
|
return { startsWith: obj.startsWith };
|
|
596
|
+
if (obj.listContains !== undefined)
|
|
597
|
+
return { listContains: obj.listContains };
|
|
598
|
+
if (obj.stringContains !== undefined)
|
|
599
|
+
return { stringContains: obj.stringContains };
|
|
592
600
|
if (obj.andAll !== undefined)
|
|
593
601
|
return { andAll: SENSITIVE_STRING };
|
|
594
602
|
if (obj.orAll !== undefined)
|
|
@@ -507,10 +507,12 @@ const se_RetrievalFilter = (input, context) => {
|
|
|
507
507
|
in: (value) => ({ in: se_FilterAttribute(value, context) }),
|
|
508
508
|
lessThan: (value) => ({ lessThan: se_FilterAttribute(value, context) }),
|
|
509
509
|
lessThanOrEquals: (value) => ({ lessThanOrEquals: se_FilterAttribute(value, context) }),
|
|
510
|
+
listContains: (value) => ({ listContains: se_FilterAttribute(value, context) }),
|
|
510
511
|
notEquals: (value) => ({ notEquals: se_FilterAttribute(value, context) }),
|
|
511
512
|
notIn: (value) => ({ notIn: se_FilterAttribute(value, context) }),
|
|
512
513
|
orAll: (value) => ({ orAll: se_RetrievalFilterList(value, context) }),
|
|
513
514
|
startsWith: (value) => ({ startsWith: se_FilterAttribute(value, context) }),
|
|
515
|
+
stringContains: (value) => ({ stringContains: se_FilterAttribute(value, context) }),
|
|
514
516
|
_: (name, value) => ({ name: value }),
|
|
515
517
|
});
|
|
516
518
|
};
|
|
@@ -72,6 +72,8 @@ declare const RetrieveAndGenerateCommand_base: {
|
|
|
72
72
|
* in: "<FilterAttribute>",
|
|
73
73
|
* notIn: "<FilterAttribute>",
|
|
74
74
|
* startsWith: "<FilterAttribute>",
|
|
75
|
+
* listContains: "<FilterAttribute>",
|
|
76
|
+
* stringContains: "<FilterAttribute>",
|
|
75
77
|
* andAll: [ // RetrievalFilterList
|
|
76
78
|
* {// Union: only one key present
|
|
77
79
|
* equals: "<FilterAttribute>",
|
|
@@ -83,6 +85,8 @@ declare const RetrieveAndGenerateCommand_base: {
|
|
|
83
85
|
* in: "<FilterAttribute>",
|
|
84
86
|
* notIn: "<FilterAttribute>",
|
|
85
87
|
* startsWith: "<FilterAttribute>",
|
|
88
|
+
* listContains: "<FilterAttribute>",
|
|
89
|
+
* stringContains: "<FilterAttribute>",
|
|
86
90
|
* andAll: [
|
|
87
91
|
* "<RetrievalFilter>",
|
|
88
92
|
* ],
|
|
@@ -67,6 +67,8 @@ declare const RetrieveCommand_base: {
|
|
|
67
67
|
* in: "<FilterAttribute>",
|
|
68
68
|
* notIn: "<FilterAttribute>",
|
|
69
69
|
* startsWith: "<FilterAttribute>",
|
|
70
|
+
* listContains: "<FilterAttribute>",
|
|
71
|
+
* stringContains: "<FilterAttribute>",
|
|
70
72
|
* andAll: [ // RetrievalFilterList
|
|
71
73
|
* {// Union: only one key present
|
|
72
74
|
* equals: "<FilterAttribute>",
|
|
@@ -78,6 +80,8 @@ declare const RetrieveCommand_base: {
|
|
|
78
80
|
* in: "<FilterAttribute>",
|
|
79
81
|
* notIn: "<FilterAttribute>",
|
|
80
82
|
* startsWith: "<FilterAttribute>",
|
|
83
|
+
* listContains: "<FilterAttribute>",
|
|
84
|
+
* stringContains: "<FilterAttribute>",
|
|
81
85
|
* andAll: [
|
|
82
86
|
* "<RetrievalFilter>",
|
|
83
87
|
* ],
|
|
@@ -2323,7 +2323,7 @@ export interface RetrieveResponse {
|
|
|
2323
2323
|
nextToken?: string;
|
|
2324
2324
|
}
|
|
2325
2325
|
/**
|
|
2326
|
-
* <p>Specifies the filters to use on the metadata attributes in the knowledge base data sources before returning results. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/kb-test-config.html">Query configurations</a
|
|
2326
|
+
* <p>Specifies the filters to use on the metadata attributes in the knowledge base data sources before returning results. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/kb-test-config.html">Query configurations</a>. See the examples below to see how to use these filters.</p>
|
|
2327
2327
|
* <p>This data type is used in the following API operations:</p>
|
|
2328
2328
|
* <ul>
|
|
2329
2329
|
* <li>
|
|
@@ -2337,13 +2337,17 @@ export interface RetrieveResponse {
|
|
|
2337
2337
|
* </ul>
|
|
2338
2338
|
* @public
|
|
2339
2339
|
*/
|
|
2340
|
-
export type RetrievalFilter = RetrievalFilter.AndAllMember | RetrievalFilter.EqualsMember | RetrievalFilter.GreaterThanMember | RetrievalFilter.GreaterThanOrEqualsMember | RetrievalFilter.InMember | RetrievalFilter.LessThanMember | RetrievalFilter.LessThanOrEqualsMember | RetrievalFilter.NotEqualsMember | RetrievalFilter.NotInMember | RetrievalFilter.OrAllMember | RetrievalFilter.StartsWithMember | RetrievalFilter.$UnknownMember;
|
|
2340
|
+
export type RetrievalFilter = RetrievalFilter.AndAllMember | RetrievalFilter.EqualsMember | RetrievalFilter.GreaterThanMember | RetrievalFilter.GreaterThanOrEqualsMember | RetrievalFilter.InMember | RetrievalFilter.LessThanMember | RetrievalFilter.LessThanOrEqualsMember | RetrievalFilter.ListContainsMember | RetrievalFilter.NotEqualsMember | RetrievalFilter.NotInMember | RetrievalFilter.OrAllMember | RetrievalFilter.StartsWithMember | RetrievalFilter.StringContainsMember | RetrievalFilter.$UnknownMember;
|
|
2341
2341
|
/**
|
|
2342
2342
|
* @public
|
|
2343
2343
|
*/
|
|
2344
2344
|
export declare namespace RetrievalFilter {
|
|
2345
2345
|
/**
|
|
2346
|
-
* <p>Knowledge base data sources
|
|
2346
|
+
* <p>Knowledge base data sources are returned if they contain a metadata attribute whose name matches the <code>key</code> and whose value matches the <code>value</code> in this object.</p>
|
|
2347
|
+
* <p>The following example would return data sources with an <code>animal</code> attribute whose value is <code>cat</code>:</p>
|
|
2348
|
+
* <p>
|
|
2349
|
+
* <code>"equals": \{ "key": "animal", "value": "cat" \}</code>
|
|
2350
|
+
* </p>
|
|
2347
2351
|
* @public
|
|
2348
2352
|
*/
|
|
2349
2353
|
interface EqualsMember {
|
|
@@ -2356,12 +2360,18 @@ export declare namespace RetrievalFilter {
|
|
|
2356
2360
|
in?: never;
|
|
2357
2361
|
notIn?: never;
|
|
2358
2362
|
startsWith?: never;
|
|
2363
|
+
listContains?: never;
|
|
2364
|
+
stringContains?: never;
|
|
2359
2365
|
andAll?: never;
|
|
2360
2366
|
orAll?: never;
|
|
2361
2367
|
$unknown?: never;
|
|
2362
2368
|
}
|
|
2363
2369
|
/**
|
|
2364
2370
|
* <p>Knowledge base data sources that contain a metadata attribute whose name matches the <code>key</code> and whose value doesn't match the <code>value</code> in this object are returned.</p>
|
|
2371
|
+
* <p>The following example would return data sources that don't contain an <code>animal</code> attribute whose value is <code>cat</code>.</p>
|
|
2372
|
+
* <p>
|
|
2373
|
+
* <code>"notEquals": \{ "key": "animal", "value": "cat" \}</code>
|
|
2374
|
+
* </p>
|
|
2365
2375
|
* @public
|
|
2366
2376
|
*/
|
|
2367
2377
|
interface NotEqualsMember {
|
|
@@ -2374,12 +2384,18 @@ export declare namespace RetrievalFilter {
|
|
|
2374
2384
|
in?: never;
|
|
2375
2385
|
notIn?: never;
|
|
2376
2386
|
startsWith?: never;
|
|
2387
|
+
listContains?: never;
|
|
2388
|
+
stringContains?: never;
|
|
2377
2389
|
andAll?: never;
|
|
2378
2390
|
orAll?: never;
|
|
2379
2391
|
$unknown?: never;
|
|
2380
2392
|
}
|
|
2381
2393
|
/**
|
|
2382
|
-
* <p>Knowledge base data sources
|
|
2394
|
+
* <p>Knowledge base data sources are returned if they contain a metadata attribute whose name matches the <code>key</code> and whose value is greater than the <code>value</code> in this object.</p>
|
|
2395
|
+
* <p>The following example would return data sources with an <code>year</code> attribute whose value is greater than <code>1989</code>:</p>
|
|
2396
|
+
* <p>
|
|
2397
|
+
* <code>"greaterThan": \{ "key": "year", "value": 1989 \}</code>
|
|
2398
|
+
* </p>
|
|
2383
2399
|
* @public
|
|
2384
2400
|
*/
|
|
2385
2401
|
interface GreaterThanMember {
|
|
@@ -2392,12 +2408,18 @@ export declare namespace RetrievalFilter {
|
|
|
2392
2408
|
in?: never;
|
|
2393
2409
|
notIn?: never;
|
|
2394
2410
|
startsWith?: never;
|
|
2411
|
+
listContains?: never;
|
|
2412
|
+
stringContains?: never;
|
|
2395
2413
|
andAll?: never;
|
|
2396
2414
|
orAll?: never;
|
|
2397
2415
|
$unknown?: never;
|
|
2398
2416
|
}
|
|
2399
2417
|
/**
|
|
2400
|
-
* <p>Knowledge base data sources
|
|
2418
|
+
* <p>Knowledge base data sources are returned if they contain a metadata attribute whose name matches the <code>key</code> and whose value is greater than or equal to the <code>value</code> in this object.</p>
|
|
2419
|
+
* <p>The following example would return data sources with an <code>year</code> attribute whose value is greater than or equal to <code>1989</code>:</p>
|
|
2420
|
+
* <p>
|
|
2421
|
+
* <code>"greaterThanOrEquals": \{ "key": "year", "value": 1989 \}</code>
|
|
2422
|
+
* </p>
|
|
2401
2423
|
* @public
|
|
2402
2424
|
*/
|
|
2403
2425
|
interface GreaterThanOrEqualsMember {
|
|
@@ -2410,12 +2432,18 @@ export declare namespace RetrievalFilter {
|
|
|
2410
2432
|
in?: never;
|
|
2411
2433
|
notIn?: never;
|
|
2412
2434
|
startsWith?: never;
|
|
2435
|
+
listContains?: never;
|
|
2436
|
+
stringContains?: never;
|
|
2413
2437
|
andAll?: never;
|
|
2414
2438
|
orAll?: never;
|
|
2415
2439
|
$unknown?: never;
|
|
2416
2440
|
}
|
|
2417
2441
|
/**
|
|
2418
|
-
* <p>Knowledge base data sources
|
|
2442
|
+
* <p>Knowledge base data sources are returned if they contain a metadata attribute whose name matches the <code>key</code> and whose value is less than the <code>value</code> in this object.</p>
|
|
2443
|
+
* <p>The following example would return data sources with an <code>year</code> attribute whose value is less than to <code>1989</code>.</p>
|
|
2444
|
+
* <p>
|
|
2445
|
+
* <code>"lessThan": \{ "key": "year", "value": 1989 \}</code>
|
|
2446
|
+
* </p>
|
|
2419
2447
|
* @public
|
|
2420
2448
|
*/
|
|
2421
2449
|
interface LessThanMember {
|
|
@@ -2428,12 +2456,18 @@ export declare namespace RetrievalFilter {
|
|
|
2428
2456
|
in?: never;
|
|
2429
2457
|
notIn?: never;
|
|
2430
2458
|
startsWith?: never;
|
|
2459
|
+
listContains?: never;
|
|
2460
|
+
stringContains?: never;
|
|
2431
2461
|
andAll?: never;
|
|
2432
2462
|
orAll?: never;
|
|
2433
2463
|
$unknown?: never;
|
|
2434
2464
|
}
|
|
2435
2465
|
/**
|
|
2436
|
-
* <p>Knowledge base data sources
|
|
2466
|
+
* <p>Knowledge base data sources are returned if they contain a metadata attribute whose name matches the <code>key</code> and whose value is less than or equal to the <code>value</code> in this object.</p>
|
|
2467
|
+
* <p>The following example would return data sources with an <code>year</code> attribute whose value is less than or equal to <code>1989</code>.</p>
|
|
2468
|
+
* <p>
|
|
2469
|
+
* <code>"lessThanOrEquals": \{ "key": "year", "value": 1989 \}</code>
|
|
2470
|
+
* </p>
|
|
2437
2471
|
* @public
|
|
2438
2472
|
*/
|
|
2439
2473
|
interface LessThanOrEqualsMember {
|
|
@@ -2446,12 +2480,18 @@ export declare namespace RetrievalFilter {
|
|
|
2446
2480
|
in?: never;
|
|
2447
2481
|
notIn?: never;
|
|
2448
2482
|
startsWith?: never;
|
|
2483
|
+
listContains?: never;
|
|
2484
|
+
stringContains?: never;
|
|
2449
2485
|
andAll?: never;
|
|
2450
2486
|
orAll?: never;
|
|
2451
2487
|
$unknown?: never;
|
|
2452
2488
|
}
|
|
2453
2489
|
/**
|
|
2454
|
-
* <p>Knowledge base data sources
|
|
2490
|
+
* <p>Knowledge base data sources are returned if they contain a metadata attribute whose name matches the <code>key</code> and whose value is in the list specified in the <code>value</code> in this object.</p>
|
|
2491
|
+
* <p>The following example would return data sources with an <code>animal</code> attribute that is either <code>cat</code> or <code>dog</code>:</p>
|
|
2492
|
+
* <p>
|
|
2493
|
+
* <code>"in": \{ "key": "animal", "value": ["cat", "dog"] \}</code>
|
|
2494
|
+
* </p>
|
|
2455
2495
|
* @public
|
|
2456
2496
|
*/
|
|
2457
2497
|
interface InMember {
|
|
@@ -2464,12 +2504,18 @@ export declare namespace RetrievalFilter {
|
|
|
2464
2504
|
in: FilterAttribute;
|
|
2465
2505
|
notIn?: never;
|
|
2466
2506
|
startsWith?: never;
|
|
2507
|
+
listContains?: never;
|
|
2508
|
+
stringContains?: never;
|
|
2467
2509
|
andAll?: never;
|
|
2468
2510
|
orAll?: never;
|
|
2469
2511
|
$unknown?: never;
|
|
2470
2512
|
}
|
|
2471
2513
|
/**
|
|
2472
|
-
* <p>Knowledge base data sources
|
|
2514
|
+
* <p>Knowledge base data sources are returned if they contain a metadata attribute whose name matches the <code>key</code> and whose value isn't in the list specified in the <code>value</code> in this object.</p>
|
|
2515
|
+
* <p>The following example would return data sources whose <code>animal</code> attribute is neither <code>cat</code> nor <code>dog</code>.</p>
|
|
2516
|
+
* <p>
|
|
2517
|
+
* <code>"notIn": \{ "key": "animal", "value": ["cat", "dog"] \}</code>
|
|
2518
|
+
* </p>
|
|
2473
2519
|
* @public
|
|
2474
2520
|
*/
|
|
2475
2521
|
interface NotInMember {
|
|
@@ -2482,12 +2528,18 @@ export declare namespace RetrievalFilter {
|
|
|
2482
2528
|
in?: never;
|
|
2483
2529
|
notIn: FilterAttribute;
|
|
2484
2530
|
startsWith?: never;
|
|
2531
|
+
listContains?: never;
|
|
2532
|
+
stringContains?: never;
|
|
2485
2533
|
andAll?: never;
|
|
2486
2534
|
orAll?: never;
|
|
2487
2535
|
$unknown?: never;
|
|
2488
2536
|
}
|
|
2489
2537
|
/**
|
|
2490
|
-
* <p>Knowledge base data sources
|
|
2538
|
+
* <p>Knowledge base data sources are returned if they contain a metadata attribute whose name matches the <code>key</code> and whose value starts with the <code>value</code> in this object. This filter is currently only supported for Amazon OpenSearch Serverless vector stores.</p>
|
|
2539
|
+
* <p>The following example would return data sources with an <code>animal</code> attribute starts with <code>ca</code> (for example, <code>cat</code> or <code>camel</code>).</p>
|
|
2540
|
+
* <p>
|
|
2541
|
+
* <code>"startsWith": \{ "key": "animal", "value": "ca" \}</code>
|
|
2542
|
+
* </p>
|
|
2491
2543
|
* @public
|
|
2492
2544
|
*/
|
|
2493
2545
|
interface StartsWithMember {
|
|
@@ -2500,12 +2552,72 @@ export declare namespace RetrievalFilter {
|
|
|
2500
2552
|
in?: never;
|
|
2501
2553
|
notIn?: never;
|
|
2502
2554
|
startsWith: FilterAttribute;
|
|
2555
|
+
listContains?: never;
|
|
2556
|
+
stringContains?: never;
|
|
2503
2557
|
andAll?: never;
|
|
2504
2558
|
orAll?: never;
|
|
2505
2559
|
$unknown?: never;
|
|
2506
2560
|
}
|
|
2507
2561
|
/**
|
|
2508
|
-
* <p>Knowledge base data sources
|
|
2562
|
+
* <p>Knowledge base data sources are returned if they contain a metadata attribute whose name matches the <code>key</code> and whose value is a list that contains the <code>value</code> as one of its members.</p>
|
|
2563
|
+
* <p>The following example would return data sources with an <code>animals</code> attribute that is a list containing a <code>cat</code> member (for example <code>["dog", "cat"]</code>).</p>
|
|
2564
|
+
* <p>
|
|
2565
|
+
* <code>"listContains": \{ "key": "animals", "value": "cat" \}</code>
|
|
2566
|
+
* </p>
|
|
2567
|
+
* @public
|
|
2568
|
+
*/
|
|
2569
|
+
interface ListContainsMember {
|
|
2570
|
+
equals?: never;
|
|
2571
|
+
notEquals?: never;
|
|
2572
|
+
greaterThan?: never;
|
|
2573
|
+
greaterThanOrEquals?: never;
|
|
2574
|
+
lessThan?: never;
|
|
2575
|
+
lessThanOrEquals?: never;
|
|
2576
|
+
in?: never;
|
|
2577
|
+
notIn?: never;
|
|
2578
|
+
startsWith?: never;
|
|
2579
|
+
listContains: FilterAttribute;
|
|
2580
|
+
stringContains?: never;
|
|
2581
|
+
andAll?: never;
|
|
2582
|
+
orAll?: never;
|
|
2583
|
+
$unknown?: never;
|
|
2584
|
+
}
|
|
2585
|
+
/**
|
|
2586
|
+
* <p>Knowledge base data sources are returned if they contain a metadata attribute whose name matches the <code>key</code> and whose value is one of the following:</p>
|
|
2587
|
+
* <ul>
|
|
2588
|
+
* <li>
|
|
2589
|
+
* <p>A string that contains the <code>value</code> as a substring. The following example would return data sources with an <code>animal</code> attribute that contains the substring <code>at</code> (for example <code>cat</code>).</p>
|
|
2590
|
+
* <p>
|
|
2591
|
+
* <code>"stringContains": \{ "key": "animal", "value": "at" \}</code>
|
|
2592
|
+
* </p>
|
|
2593
|
+
* </li>
|
|
2594
|
+
* <li>
|
|
2595
|
+
* <p>A list with a member that contains the <code>value</code> as a substring. The following example would return data sources with an <code>animals</code> attribute that is a list containing a member that contains the substring <code>at</code> (for example <code>["dog", "cat"]</code>).</p>
|
|
2596
|
+
* <p>
|
|
2597
|
+
* <code>"stringContains": \{ "key": "animals", "value": "at" \}</code>
|
|
2598
|
+
* </p>
|
|
2599
|
+
* </li>
|
|
2600
|
+
* </ul>
|
|
2601
|
+
* @public
|
|
2602
|
+
*/
|
|
2603
|
+
interface StringContainsMember {
|
|
2604
|
+
equals?: never;
|
|
2605
|
+
notEquals?: never;
|
|
2606
|
+
greaterThan?: never;
|
|
2607
|
+
greaterThanOrEquals?: never;
|
|
2608
|
+
lessThan?: never;
|
|
2609
|
+
lessThanOrEquals?: never;
|
|
2610
|
+
in?: never;
|
|
2611
|
+
notIn?: never;
|
|
2612
|
+
startsWith?: never;
|
|
2613
|
+
listContains?: never;
|
|
2614
|
+
stringContains: FilterAttribute;
|
|
2615
|
+
andAll?: never;
|
|
2616
|
+
orAll?: never;
|
|
2617
|
+
$unknown?: never;
|
|
2618
|
+
}
|
|
2619
|
+
/**
|
|
2620
|
+
* <p>Knowledge base data sources are returned if their metadata attributes fulfill all the filter conditions inside this list.</p>
|
|
2509
2621
|
* @public
|
|
2510
2622
|
*/
|
|
2511
2623
|
interface AndAllMember {
|
|
@@ -2518,12 +2630,14 @@ export declare namespace RetrievalFilter {
|
|
|
2518
2630
|
in?: never;
|
|
2519
2631
|
notIn?: never;
|
|
2520
2632
|
startsWith?: never;
|
|
2633
|
+
listContains?: never;
|
|
2634
|
+
stringContains?: never;
|
|
2521
2635
|
andAll: RetrievalFilter[];
|
|
2522
2636
|
orAll?: never;
|
|
2523
2637
|
$unknown?: never;
|
|
2524
2638
|
}
|
|
2525
2639
|
/**
|
|
2526
|
-
* <p>Knowledge base data sources
|
|
2640
|
+
* <p>Knowledge base data sources are returned if their metadata attributes fulfill at least one of the filter conditions inside this list.</p>
|
|
2527
2641
|
* @public
|
|
2528
2642
|
*/
|
|
2529
2643
|
interface OrAllMember {
|
|
@@ -2536,6 +2650,8 @@ export declare namespace RetrievalFilter {
|
|
|
2536
2650
|
in?: never;
|
|
2537
2651
|
notIn?: never;
|
|
2538
2652
|
startsWith?: never;
|
|
2653
|
+
listContains?: never;
|
|
2654
|
+
stringContains?: never;
|
|
2539
2655
|
andAll?: never;
|
|
2540
2656
|
orAll: RetrievalFilter[];
|
|
2541
2657
|
$unknown?: never;
|
|
@@ -2553,6 +2669,8 @@ export declare namespace RetrievalFilter {
|
|
|
2553
2669
|
in?: never;
|
|
2554
2670
|
notIn?: never;
|
|
2555
2671
|
startsWith?: never;
|
|
2672
|
+
listContains?: never;
|
|
2673
|
+
stringContains?: never;
|
|
2556
2674
|
andAll?: never;
|
|
2557
2675
|
orAll?: never;
|
|
2558
2676
|
$unknown: [string, any];
|
|
@@ -2567,6 +2685,8 @@ export declare namespace RetrievalFilter {
|
|
|
2567
2685
|
in: (value: FilterAttribute) => T;
|
|
2568
2686
|
notIn: (value: FilterAttribute) => T;
|
|
2569
2687
|
startsWith: (value: FilterAttribute) => T;
|
|
2688
|
+
listContains: (value: FilterAttribute) => T;
|
|
2689
|
+
stringContains: (value: FilterAttribute) => T;
|
|
2570
2690
|
andAll: (value: RetrievalFilter[]) => T;
|
|
2571
2691
|
orAll: (value: RetrievalFilter[]) => T;
|
|
2572
2692
|
_: (name: string, value: any) => T;
|
|
@@ -852,10 +852,12 @@ export type RetrievalFilter =
|
|
|
852
852
|
| RetrievalFilter.InMember
|
|
853
853
|
| RetrievalFilter.LessThanMember
|
|
854
854
|
| RetrievalFilter.LessThanOrEqualsMember
|
|
855
|
+
| RetrievalFilter.ListContainsMember
|
|
855
856
|
| RetrievalFilter.NotEqualsMember
|
|
856
857
|
| RetrievalFilter.NotInMember
|
|
857
858
|
| RetrievalFilter.OrAllMember
|
|
858
859
|
| RetrievalFilter.StartsWithMember
|
|
860
|
+
| RetrievalFilter.StringContainsMember
|
|
859
861
|
| RetrievalFilter.$UnknownMember;
|
|
860
862
|
export declare namespace RetrievalFilter {
|
|
861
863
|
interface EqualsMember {
|
|
@@ -868,6 +870,8 @@ export declare namespace RetrievalFilter {
|
|
|
868
870
|
in?: never;
|
|
869
871
|
notIn?: never;
|
|
870
872
|
startsWith?: never;
|
|
873
|
+
listContains?: never;
|
|
874
|
+
stringContains?: never;
|
|
871
875
|
andAll?: never;
|
|
872
876
|
orAll?: never;
|
|
873
877
|
$unknown?: never;
|
|
@@ -882,6 +886,8 @@ export declare namespace RetrievalFilter {
|
|
|
882
886
|
in?: never;
|
|
883
887
|
notIn?: never;
|
|
884
888
|
startsWith?: never;
|
|
889
|
+
listContains?: never;
|
|
890
|
+
stringContains?: never;
|
|
885
891
|
andAll?: never;
|
|
886
892
|
orAll?: never;
|
|
887
893
|
$unknown?: never;
|
|
@@ -896,6 +902,8 @@ export declare namespace RetrievalFilter {
|
|
|
896
902
|
in?: never;
|
|
897
903
|
notIn?: never;
|
|
898
904
|
startsWith?: never;
|
|
905
|
+
listContains?: never;
|
|
906
|
+
stringContains?: never;
|
|
899
907
|
andAll?: never;
|
|
900
908
|
orAll?: never;
|
|
901
909
|
$unknown?: never;
|
|
@@ -910,6 +918,8 @@ export declare namespace RetrievalFilter {
|
|
|
910
918
|
in?: never;
|
|
911
919
|
notIn?: never;
|
|
912
920
|
startsWith?: never;
|
|
921
|
+
listContains?: never;
|
|
922
|
+
stringContains?: never;
|
|
913
923
|
andAll?: never;
|
|
914
924
|
orAll?: never;
|
|
915
925
|
$unknown?: never;
|
|
@@ -924,6 +934,8 @@ export declare namespace RetrievalFilter {
|
|
|
924
934
|
in?: never;
|
|
925
935
|
notIn?: never;
|
|
926
936
|
startsWith?: never;
|
|
937
|
+
listContains?: never;
|
|
938
|
+
stringContains?: never;
|
|
927
939
|
andAll?: never;
|
|
928
940
|
orAll?: never;
|
|
929
941
|
$unknown?: never;
|
|
@@ -938,6 +950,8 @@ export declare namespace RetrievalFilter {
|
|
|
938
950
|
in?: never;
|
|
939
951
|
notIn?: never;
|
|
940
952
|
startsWith?: never;
|
|
953
|
+
listContains?: never;
|
|
954
|
+
stringContains?: never;
|
|
941
955
|
andAll?: never;
|
|
942
956
|
orAll?: never;
|
|
943
957
|
$unknown?: never;
|
|
@@ -952,6 +966,8 @@ export declare namespace RetrievalFilter {
|
|
|
952
966
|
in: FilterAttribute;
|
|
953
967
|
notIn?: never;
|
|
954
968
|
startsWith?: never;
|
|
969
|
+
listContains?: never;
|
|
970
|
+
stringContains?: never;
|
|
955
971
|
andAll?: never;
|
|
956
972
|
orAll?: never;
|
|
957
973
|
$unknown?: never;
|
|
@@ -966,6 +982,8 @@ export declare namespace RetrievalFilter {
|
|
|
966
982
|
in?: never;
|
|
967
983
|
notIn: FilterAttribute;
|
|
968
984
|
startsWith?: never;
|
|
985
|
+
listContains?: never;
|
|
986
|
+
stringContains?: never;
|
|
969
987
|
andAll?: never;
|
|
970
988
|
orAll?: never;
|
|
971
989
|
$unknown?: never;
|
|
@@ -980,6 +998,40 @@ export declare namespace RetrievalFilter {
|
|
|
980
998
|
in?: never;
|
|
981
999
|
notIn?: never;
|
|
982
1000
|
startsWith: FilterAttribute;
|
|
1001
|
+
listContains?: never;
|
|
1002
|
+
stringContains?: never;
|
|
1003
|
+
andAll?: never;
|
|
1004
|
+
orAll?: never;
|
|
1005
|
+
$unknown?: never;
|
|
1006
|
+
}
|
|
1007
|
+
interface ListContainsMember {
|
|
1008
|
+
equals?: never;
|
|
1009
|
+
notEquals?: never;
|
|
1010
|
+
greaterThan?: never;
|
|
1011
|
+
greaterThanOrEquals?: never;
|
|
1012
|
+
lessThan?: never;
|
|
1013
|
+
lessThanOrEquals?: never;
|
|
1014
|
+
in?: never;
|
|
1015
|
+
notIn?: never;
|
|
1016
|
+
startsWith?: never;
|
|
1017
|
+
listContains: FilterAttribute;
|
|
1018
|
+
stringContains?: never;
|
|
1019
|
+
andAll?: never;
|
|
1020
|
+
orAll?: never;
|
|
1021
|
+
$unknown?: never;
|
|
1022
|
+
}
|
|
1023
|
+
interface StringContainsMember {
|
|
1024
|
+
equals?: never;
|
|
1025
|
+
notEquals?: never;
|
|
1026
|
+
greaterThan?: never;
|
|
1027
|
+
greaterThanOrEquals?: never;
|
|
1028
|
+
lessThan?: never;
|
|
1029
|
+
lessThanOrEquals?: never;
|
|
1030
|
+
in?: never;
|
|
1031
|
+
notIn?: never;
|
|
1032
|
+
startsWith?: never;
|
|
1033
|
+
listContains?: never;
|
|
1034
|
+
stringContains: FilterAttribute;
|
|
983
1035
|
andAll?: never;
|
|
984
1036
|
orAll?: never;
|
|
985
1037
|
$unknown?: never;
|
|
@@ -994,6 +1046,8 @@ export declare namespace RetrievalFilter {
|
|
|
994
1046
|
in?: never;
|
|
995
1047
|
notIn?: never;
|
|
996
1048
|
startsWith?: never;
|
|
1049
|
+
listContains?: never;
|
|
1050
|
+
stringContains?: never;
|
|
997
1051
|
andAll: RetrievalFilter[];
|
|
998
1052
|
orAll?: never;
|
|
999
1053
|
$unknown?: never;
|
|
@@ -1008,6 +1062,8 @@ export declare namespace RetrievalFilter {
|
|
|
1008
1062
|
in?: never;
|
|
1009
1063
|
notIn?: never;
|
|
1010
1064
|
startsWith?: never;
|
|
1065
|
+
listContains?: never;
|
|
1066
|
+
stringContains?: never;
|
|
1011
1067
|
andAll?: never;
|
|
1012
1068
|
orAll: RetrievalFilter[];
|
|
1013
1069
|
$unknown?: never;
|
|
@@ -1022,6 +1078,8 @@ export declare namespace RetrievalFilter {
|
|
|
1022
1078
|
in?: never;
|
|
1023
1079
|
notIn?: never;
|
|
1024
1080
|
startsWith?: never;
|
|
1081
|
+
listContains?: never;
|
|
1082
|
+
stringContains?: never;
|
|
1025
1083
|
andAll?: never;
|
|
1026
1084
|
orAll?: never;
|
|
1027
1085
|
$unknown: [string, any];
|
|
@@ -1036,6 +1094,8 @@ export declare namespace RetrievalFilter {
|
|
|
1036
1094
|
in: (value: FilterAttribute) => T;
|
|
1037
1095
|
notIn: (value: FilterAttribute) => T;
|
|
1038
1096
|
startsWith: (value: FilterAttribute) => T;
|
|
1097
|
+
listContains: (value: FilterAttribute) => T;
|
|
1098
|
+
stringContains: (value: FilterAttribute) => T;
|
|
1039
1099
|
andAll: (value: RetrievalFilter[]) => T;
|
|
1040
1100
|
orAll: (value: RetrievalFilter[]) => T;
|
|
1041
1101
|
_: (name: string, value: any) => T;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-bedrock-agent-runtime",
|
|
3
3
|
"description": "AWS SDK for JavaScript Bedrock Agent Runtime Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.577.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-bedrock-agent-runtime",
|
|
@@ -20,19 +20,19 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sso-oidc": "3.
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
+
"@aws-sdk/client-sso-oidc": "3.577.0",
|
|
24
|
+
"@aws-sdk/client-sts": "3.577.0",
|
|
25
25
|
"@aws-sdk/core": "3.576.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
27
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
28
|
-
"@aws-sdk/middleware-logger": "3.
|
|
29
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
30
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
31
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
32
|
-
"@aws-sdk/types": "3.
|
|
33
|
-
"@aws-sdk/util-endpoints": "3.
|
|
34
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
35
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.577.0",
|
|
27
|
+
"@aws-sdk/middleware-host-header": "3.577.0",
|
|
28
|
+
"@aws-sdk/middleware-logger": "3.577.0",
|
|
29
|
+
"@aws-sdk/middleware-recursion-detection": "3.577.0",
|
|
30
|
+
"@aws-sdk/middleware-user-agent": "3.577.0",
|
|
31
|
+
"@aws-sdk/region-config-resolver": "3.577.0",
|
|
32
|
+
"@aws-sdk/types": "3.577.0",
|
|
33
|
+
"@aws-sdk/util-endpoints": "3.577.0",
|
|
34
|
+
"@aws-sdk/util-user-agent-browser": "3.577.0",
|
|
35
|
+
"@aws-sdk/util-user-agent-node": "3.577.0",
|
|
36
36
|
"@smithy/config-resolver": "^3.0.0",
|
|
37
37
|
"@smithy/core": "^2.0.0",
|
|
38
38
|
"@smithy/eventstream-serde-browser": "^3.0.0",
|