@aws-sdk/client-bedrock 3.1046.0 → 3.1047.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/README.md +35 -0
- package/dist-cjs/index.js +91 -7
- package/dist-cjs/models/errors.js +14 -14
- package/dist-cjs/schemas/schemas_0.js +192 -46
- package/dist-es/Bedrock.js +12 -0
- package/dist-es/commands/BatchDeleteAdvancedPromptOptimizationJobCommand.js +16 -0
- package/dist-es/commands/CreateAdvancedPromptOptimizationJobCommand.js +16 -0
- package/dist-es/commands/GetAdvancedPromptOptimizationJobCommand.js +16 -0
- package/dist-es/commands/ListAdvancedPromptOptimizationJobsCommand.js +16 -0
- package/dist-es/commands/StopAdvancedPromptOptimizationJobCommand.js +16 -0
- package/dist-es/commands/index.js +5 -0
- package/dist-es/models/enums.js +16 -7
- package/dist-es/models/errors.js +12 -12
- package/dist-es/pagination/ListAdvancedPromptOptimizationJobsPaginator.js +4 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/schemas/schemas_0.js +180 -34
- package/dist-types/Bedrock.d.ts +43 -0
- package/dist-types/BedrockClient.d.ts +7 -2
- package/dist-types/commands/BatchDeleteAdvancedPromptOptimizationJobCommand.d.ts +102 -0
- package/dist-types/commands/CreateAdvancedPromptOptimizationJobCommand.d.ts +131 -0
- package/dist-types/commands/CreateGuardrailCommand.d.ts +1 -1
- package/dist-types/commands/CreateGuardrailVersionCommand.d.ts +1 -1
- package/dist-types/commands/DeleteGuardrailCommand.d.ts +1 -1
- package/dist-types/commands/GetAdvancedPromptOptimizationJobCommand.d.ts +120 -0
- package/dist-types/commands/GetGuardrailCommand.d.ts +1 -2
- package/dist-types/commands/ListAdvancedPromptOptimizationJobsCommand.d.ts +100 -0
- package/dist-types/commands/StopAdvancedPromptOptimizationJobCommand.d.ts +92 -0
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/models/enums.d.ts +40 -23
- package/dist-types/models/errors.d.ts +12 -12
- package/dist-types/models/models_0.d.ts +3481 -3544
- package/dist-types/models/models_1.d.ts +417 -2
- package/dist-types/pagination/ListAdvancedPromptOptimizationJobsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +22 -0
- package/dist-types/ts3.4/Bedrock.d.ts +117 -0
- package/dist-types/ts3.4/BedrockClient.d.ts +30 -0
- package/dist-types/ts3.4/commands/BatchDeleteAdvancedPromptOptimizationJobCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/CreateAdvancedPromptOptimizationJobCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/CreateGuardrailCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/CreateGuardrailVersionCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeleteGuardrailCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetAdvancedPromptOptimizationJobCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/GetGuardrailCommand.d.ts +1 -2
- package/dist-types/ts3.4/commands/ListAdvancedPromptOptimizationJobsCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/StopAdvancedPromptOptimizationJobCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/index.d.ts +5 -0
- package/dist-types/ts3.4/models/enums.d.ts +20 -9
- package/dist-types/ts3.4/models/errors.d.ts +7 -7
- package/dist-types/ts3.4/models/models_0.d.ts +90 -107
- package/dist-types/ts3.4/models/models_1.d.ts +114 -7
- package/dist-types/ts3.4/pagination/ListAdvancedPromptOptimizationJobsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +22 -0
- package/package.json +6 -6
|
@@ -14,6 +14,26 @@ export declare const ConfigurationOwner: {
|
|
|
14
14
|
};
|
|
15
15
|
export type ConfigurationOwner =
|
|
16
16
|
(typeof ConfigurationOwner)[keyof typeof ConfigurationOwner];
|
|
17
|
+
export declare const AdvancedPromptOptimizationJobStatus: {
|
|
18
|
+
readonly COMPLETED: "Completed";
|
|
19
|
+
readonly DELETING: "Deleting";
|
|
20
|
+
readonly FAILED: "Failed";
|
|
21
|
+
readonly IN_PROGRESS: "InProgress";
|
|
22
|
+
readonly PARTIALLY_COMPLETED: "PartiallyCompleted";
|
|
23
|
+
readonly STOPPED: "Stopped";
|
|
24
|
+
readonly STOPPING: "Stopping";
|
|
25
|
+
};
|
|
26
|
+
export type AdvancedPromptOptimizationJobStatus =
|
|
27
|
+
(typeof AdvancedPromptOptimizationJobStatus)[keyof typeof AdvancedPromptOptimizationJobStatus];
|
|
28
|
+
export declare const SortJobsBy: {
|
|
29
|
+
readonly CREATION_TIME: "CreationTime";
|
|
30
|
+
};
|
|
31
|
+
export type SortJobsBy = (typeof SortJobsBy)[keyof typeof SortJobsBy];
|
|
32
|
+
export declare const SortOrder: {
|
|
33
|
+
readonly ASCENDING: "Ascending";
|
|
34
|
+
readonly DESCENDING: "Descending";
|
|
35
|
+
};
|
|
36
|
+
export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder];
|
|
17
37
|
export declare const AgreementStatus: {
|
|
18
38
|
readonly AVAILABLE: "AVAILABLE";
|
|
19
39
|
readonly ERROR: "ERROR";
|
|
@@ -129,11 +149,6 @@ export declare const SortModelsBy: {
|
|
|
129
149
|
readonly CREATION_TIME: "CreationTime";
|
|
130
150
|
};
|
|
131
151
|
export type SortModelsBy = (typeof SortModelsBy)[keyof typeof SortModelsBy];
|
|
132
|
-
export declare const SortOrder: {
|
|
133
|
-
readonly ASCENDING: "Ascending";
|
|
134
|
-
readonly DESCENDING: "Descending";
|
|
135
|
-
};
|
|
136
|
-
export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder];
|
|
137
152
|
export declare const ReasoningEffort: {
|
|
138
153
|
readonly HIGH: "high";
|
|
139
154
|
readonly LOW: "low";
|
|
@@ -233,10 +248,6 @@ export declare const EvaluationJobType: {
|
|
|
233
248
|
};
|
|
234
249
|
export type EvaluationJobType =
|
|
235
250
|
(typeof EvaluationJobType)[keyof typeof EvaluationJobType];
|
|
236
|
-
export declare const SortJobsBy: {
|
|
237
|
-
readonly CREATION_TIME: "CreationTime";
|
|
238
|
-
};
|
|
239
|
-
export type SortJobsBy = (typeof SortJobsBy)[keyof typeof SortJobsBy];
|
|
240
251
|
export declare const GuardrailContentFilterAction: {
|
|
241
252
|
readonly BLOCK: "BLOCK";
|
|
242
253
|
readonly NONE: "NONE";
|
|
@@ -14,13 +14,6 @@ export declare class InternalServerException extends __BaseException {
|
|
|
14
14
|
opts: __ExceptionOptionType<InternalServerException, __BaseException>
|
|
15
15
|
);
|
|
16
16
|
}
|
|
17
|
-
export declare class ResourceNotFoundException extends __BaseException {
|
|
18
|
-
readonly name: "ResourceNotFoundException";
|
|
19
|
-
readonly $fault: "client";
|
|
20
|
-
constructor(
|
|
21
|
-
opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
|
|
22
|
-
);
|
|
23
|
-
}
|
|
24
17
|
export declare class ThrottlingException extends __BaseException {
|
|
25
18
|
readonly name: "ThrottlingException";
|
|
26
19
|
readonly $fault: "client";
|
|
@@ -40,6 +33,13 @@ export declare class ConflictException extends __BaseException {
|
|
|
40
33
|
readonly $fault: "client";
|
|
41
34
|
constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
|
|
42
35
|
}
|
|
36
|
+
export declare class ResourceNotFoundException extends __BaseException {
|
|
37
|
+
readonly name: "ResourceNotFoundException";
|
|
38
|
+
readonly $fault: "client";
|
|
39
|
+
constructor(
|
|
40
|
+
opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
43
|
export declare class ServiceQuotaExceededException extends __BaseException {
|
|
44
44
|
readonly name: "ServiceQuotaExceededException";
|
|
45
45
|
readonly $fault: "client";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { DocumentType as __DocumentType } from "@smithy/types";
|
|
2
2
|
import {
|
|
3
|
+
AdvancedPromptOptimizationJobStatus,
|
|
3
4
|
AgreementStatus,
|
|
4
5
|
ApplicationType,
|
|
5
6
|
AttributeType,
|
|
@@ -76,6 +77,95 @@ export interface AccountEnforcedGuardrailOutputConfiguration {
|
|
|
76
77
|
owner?: ConfigurationOwner | undefined;
|
|
77
78
|
modelEnforcement?: ModelEnforcement | undefined;
|
|
78
79
|
}
|
|
80
|
+
export interface AdvancedPromptOptimizationInputConfig {
|
|
81
|
+
s3Uri: string | undefined;
|
|
82
|
+
}
|
|
83
|
+
export interface BatchDeleteAdvancedPromptOptimizationJobRequest {
|
|
84
|
+
jobIdentifiers: string[] | undefined;
|
|
85
|
+
}
|
|
86
|
+
export interface BatchDeleteAdvancedPromptOptimizationJobItem {
|
|
87
|
+
jobIdentifier: string | undefined;
|
|
88
|
+
jobStatus: AdvancedPromptOptimizationJobStatus | undefined;
|
|
89
|
+
}
|
|
90
|
+
export interface BatchDeleteAdvancedPromptOptimizationJobError {
|
|
91
|
+
jobIdentifier: string | undefined;
|
|
92
|
+
code: string | undefined;
|
|
93
|
+
message?: string | undefined;
|
|
94
|
+
}
|
|
95
|
+
export interface BatchDeleteAdvancedPromptOptimizationJobResponse {
|
|
96
|
+
errors: BatchDeleteAdvancedPromptOptimizationJobError[] | undefined;
|
|
97
|
+
advancedPromptOptimizationJobs:
|
|
98
|
+
| BatchDeleteAdvancedPromptOptimizationJobItem[]
|
|
99
|
+
| undefined;
|
|
100
|
+
}
|
|
101
|
+
export interface InferenceConfiguration {
|
|
102
|
+
maxTokens?: number | undefined;
|
|
103
|
+
temperature?: number | undefined;
|
|
104
|
+
topP?: number | undefined;
|
|
105
|
+
stopSequences?: string[] | undefined;
|
|
106
|
+
}
|
|
107
|
+
export interface ModelConfiguration {
|
|
108
|
+
modelId: string | undefined;
|
|
109
|
+
inferenceConfig?: InferenceConfiguration | undefined;
|
|
110
|
+
additionalModelRequestFields?: Record<string, __DocumentType> | undefined;
|
|
111
|
+
}
|
|
112
|
+
export interface AdvancedPromptOptimizationOutputConfig {
|
|
113
|
+
s3Uri: string | undefined;
|
|
114
|
+
}
|
|
115
|
+
export interface Tag {
|
|
116
|
+
key: string | undefined;
|
|
117
|
+
value: string | undefined;
|
|
118
|
+
}
|
|
119
|
+
export interface CreateAdvancedPromptOptimizationJobRequest {
|
|
120
|
+
jobName: string | undefined;
|
|
121
|
+
jobDescription?: string | undefined;
|
|
122
|
+
clientToken?: string | undefined;
|
|
123
|
+
inputConfig: AdvancedPromptOptimizationInputConfig | undefined;
|
|
124
|
+
outputConfig: AdvancedPromptOptimizationOutputConfig | undefined;
|
|
125
|
+
encryptionKeyArn?: string | undefined;
|
|
126
|
+
tags?: Tag[] | undefined;
|
|
127
|
+
modelConfigurations: ModelConfiguration[] | undefined;
|
|
128
|
+
}
|
|
129
|
+
export interface CreateAdvancedPromptOptimizationJobResponse {
|
|
130
|
+
jobArn: string | undefined;
|
|
131
|
+
}
|
|
132
|
+
export interface GetAdvancedPromptOptimizationJobRequest {
|
|
133
|
+
jobIdentifier: string | undefined;
|
|
134
|
+
}
|
|
135
|
+
export interface GetAdvancedPromptOptimizationJobResponse {
|
|
136
|
+
jobArn: string | undefined;
|
|
137
|
+
jobName: string | undefined;
|
|
138
|
+
jobDescription?: string | undefined;
|
|
139
|
+
jobStatus: AdvancedPromptOptimizationJobStatus | undefined;
|
|
140
|
+
inputConfig: AdvancedPromptOptimizationInputConfig | undefined;
|
|
141
|
+
outputConfig: AdvancedPromptOptimizationOutputConfig | undefined;
|
|
142
|
+
encryptionKeyArn?: string | undefined;
|
|
143
|
+
creationTime: Date | undefined;
|
|
144
|
+
lastModifiedTime?: Date | undefined;
|
|
145
|
+
failureMessage?: string | undefined;
|
|
146
|
+
modelConfigurations: ModelConfiguration[] | undefined;
|
|
147
|
+
}
|
|
148
|
+
export interface ListAdvancedPromptOptimizationJobsRequest {
|
|
149
|
+
maxResults?: number | undefined;
|
|
150
|
+
nextToken?: string | undefined;
|
|
151
|
+
sortBy?: SortJobsBy | undefined;
|
|
152
|
+
sortOrder?: SortOrder | undefined;
|
|
153
|
+
}
|
|
154
|
+
export interface AdvancedPromptOptimizationJobSummary {
|
|
155
|
+
jobArn: string | undefined;
|
|
156
|
+
jobName: string | undefined;
|
|
157
|
+
jobStatus: AdvancedPromptOptimizationJobStatus | undefined;
|
|
158
|
+
creationTime: Date | undefined;
|
|
159
|
+
lastModifiedTime?: Date | undefined;
|
|
160
|
+
}
|
|
161
|
+
export interface ListAdvancedPromptOptimizationJobsResponse {
|
|
162
|
+
jobSummaries?: AdvancedPromptOptimizationJobSummary[] | undefined;
|
|
163
|
+
nextToken?: string | undefined;
|
|
164
|
+
}
|
|
165
|
+
export interface StopAdvancedPromptOptimizationJobRequest {
|
|
166
|
+
jobIdentifier: string | undefined;
|
|
167
|
+
}
|
|
168
|
+
export interface StopAdvancedPromptOptimizationJobResponse {}
|
|
79
169
|
export interface AgreementAvailability {
|
|
80
170
|
status: AgreementStatus | undefined;
|
|
81
171
|
errorMessage?: string | undefined;
|
|
@@ -118,10 +208,6 @@ export interface AutomatedReasoningPolicyDefinition {
|
|
|
118
208
|
rules?: AutomatedReasoningPolicyDefinitionRule[] | undefined;
|
|
119
209
|
variables?: AutomatedReasoningPolicyDefinitionVariable[] | undefined;
|
|
120
210
|
}
|
|
121
|
-
export interface Tag {
|
|
122
|
-
key: string | undefined;
|
|
123
|
-
value: string | undefined;
|
|
124
|
-
}
|
|
125
211
|
export interface CreateAutomatedReasoningPolicyRequest {
|
|
126
212
|
name: string | undefined;
|
|
127
213
|
description?: string | undefined;
|
|
@@ -2447,106 +2533,3 @@ export interface GuardrailWordConfig {
|
|
|
2447
2533
|
inputEnabled?: boolean | undefined;
|
|
2448
2534
|
outputEnabled?: boolean | undefined;
|
|
2449
2535
|
}
|
|
2450
|
-
export interface GuardrailWordPolicyConfig {
|
|
2451
|
-
wordsConfig?: GuardrailWordConfig[] | undefined;
|
|
2452
|
-
managedWordListsConfig?: GuardrailManagedWordsConfig[] | undefined;
|
|
2453
|
-
}
|
|
2454
|
-
export interface CreateGuardrailRequest {
|
|
2455
|
-
name: string | undefined;
|
|
2456
|
-
description?: string | undefined;
|
|
2457
|
-
topicPolicyConfig?: GuardrailTopicPolicyConfig | undefined;
|
|
2458
|
-
contentPolicyConfig?: GuardrailContentPolicyConfig | undefined;
|
|
2459
|
-
wordPolicyConfig?: GuardrailWordPolicyConfig | undefined;
|
|
2460
|
-
sensitiveInformationPolicyConfig?:
|
|
2461
|
-
| GuardrailSensitiveInformationPolicyConfig
|
|
2462
|
-
| undefined;
|
|
2463
|
-
contextualGroundingPolicyConfig?:
|
|
2464
|
-
| GuardrailContextualGroundingPolicyConfig
|
|
2465
|
-
| undefined;
|
|
2466
|
-
automatedReasoningPolicyConfig?:
|
|
2467
|
-
| GuardrailAutomatedReasoningPolicyConfig
|
|
2468
|
-
| undefined;
|
|
2469
|
-
crossRegionConfig?: GuardrailCrossRegionConfig | undefined;
|
|
2470
|
-
blockedInputMessaging: string | undefined;
|
|
2471
|
-
blockedOutputsMessaging: string | undefined;
|
|
2472
|
-
kmsKeyId?: string | undefined;
|
|
2473
|
-
tags?: Tag[] | undefined;
|
|
2474
|
-
clientRequestToken?: string | undefined;
|
|
2475
|
-
}
|
|
2476
|
-
export interface CreateGuardrailResponse {
|
|
2477
|
-
guardrailId: string | undefined;
|
|
2478
|
-
guardrailArn: string | undefined;
|
|
2479
|
-
version: string | undefined;
|
|
2480
|
-
createdAt: Date | undefined;
|
|
2481
|
-
}
|
|
2482
|
-
export interface CreateGuardrailVersionRequest {
|
|
2483
|
-
guardrailIdentifier: string | undefined;
|
|
2484
|
-
description?: string | undefined;
|
|
2485
|
-
clientRequestToken?: string | undefined;
|
|
2486
|
-
}
|
|
2487
|
-
export interface CreateGuardrailVersionResponse {
|
|
2488
|
-
guardrailId: string | undefined;
|
|
2489
|
-
version: string | undefined;
|
|
2490
|
-
}
|
|
2491
|
-
export interface DeleteGuardrailRequest {
|
|
2492
|
-
guardrailIdentifier: string | undefined;
|
|
2493
|
-
guardrailVersion?: string | undefined;
|
|
2494
|
-
}
|
|
2495
|
-
export interface DeleteGuardrailResponse {}
|
|
2496
|
-
export interface GetGuardrailRequest {
|
|
2497
|
-
guardrailIdentifier: string | undefined;
|
|
2498
|
-
guardrailVersion?: string | undefined;
|
|
2499
|
-
}
|
|
2500
|
-
export interface GuardrailAutomatedReasoningPolicy {
|
|
2501
|
-
policies: string[] | undefined;
|
|
2502
|
-
confidenceThreshold?: number | undefined;
|
|
2503
|
-
}
|
|
2504
|
-
export interface GuardrailContentFilter {
|
|
2505
|
-
type: GuardrailContentFilterType | undefined;
|
|
2506
|
-
inputStrength: GuardrailFilterStrength | undefined;
|
|
2507
|
-
outputStrength: GuardrailFilterStrength | undefined;
|
|
2508
|
-
inputModalities?: GuardrailModality[] | undefined;
|
|
2509
|
-
outputModalities?: GuardrailModality[] | undefined;
|
|
2510
|
-
inputAction?: GuardrailContentFilterAction | undefined;
|
|
2511
|
-
outputAction?: GuardrailContentFilterAction | undefined;
|
|
2512
|
-
inputEnabled?: boolean | undefined;
|
|
2513
|
-
outputEnabled?: boolean | undefined;
|
|
2514
|
-
}
|
|
2515
|
-
export interface GuardrailContentFiltersTier {
|
|
2516
|
-
tierName: GuardrailContentFiltersTierName | undefined;
|
|
2517
|
-
}
|
|
2518
|
-
export interface GuardrailContentPolicy {
|
|
2519
|
-
filters?: GuardrailContentFilter[] | undefined;
|
|
2520
|
-
tier?: GuardrailContentFiltersTier | undefined;
|
|
2521
|
-
}
|
|
2522
|
-
export interface GuardrailContextualGroundingFilter {
|
|
2523
|
-
type: GuardrailContextualGroundingFilterType | undefined;
|
|
2524
|
-
threshold: number | undefined;
|
|
2525
|
-
action?: GuardrailContextualGroundingAction | undefined;
|
|
2526
|
-
enabled?: boolean | undefined;
|
|
2527
|
-
}
|
|
2528
|
-
export interface GuardrailContextualGroundingPolicy {
|
|
2529
|
-
filters: GuardrailContextualGroundingFilter[] | undefined;
|
|
2530
|
-
}
|
|
2531
|
-
export interface GuardrailCrossRegionDetails {
|
|
2532
|
-
guardrailProfileId?: string | undefined;
|
|
2533
|
-
guardrailProfileArn?: string | undefined;
|
|
2534
|
-
}
|
|
2535
|
-
export interface GuardrailPiiEntity {
|
|
2536
|
-
type: GuardrailPiiEntityType | undefined;
|
|
2537
|
-
action: GuardrailSensitiveInformationAction | undefined;
|
|
2538
|
-
inputAction?: GuardrailSensitiveInformationAction | undefined;
|
|
2539
|
-
outputAction?: GuardrailSensitiveInformationAction | undefined;
|
|
2540
|
-
inputEnabled?: boolean | undefined;
|
|
2541
|
-
outputEnabled?: boolean | undefined;
|
|
2542
|
-
}
|
|
2543
|
-
export interface GuardrailRegex {
|
|
2544
|
-
name: string | undefined;
|
|
2545
|
-
description?: string | undefined;
|
|
2546
|
-
pattern: string | undefined;
|
|
2547
|
-
action: GuardrailSensitiveInformationAction | undefined;
|
|
2548
|
-
inputAction?: GuardrailSensitiveInformationAction | undefined;
|
|
2549
|
-
outputAction?: GuardrailSensitiveInformationAction | undefined;
|
|
2550
|
-
inputEnabled?: boolean | undefined;
|
|
2551
|
-
outputEnabled?: boolean | undefined;
|
|
2552
|
-
}
|
|
@@ -8,7 +8,16 @@ import {
|
|
|
8
8
|
EvaluationJobType,
|
|
9
9
|
FineTuningJobStatus,
|
|
10
10
|
FoundationModelLifecycleStatus,
|
|
11
|
+
GuardrailContentFilterAction,
|
|
12
|
+
GuardrailContentFiltersTierName,
|
|
13
|
+
GuardrailContentFilterType,
|
|
14
|
+
GuardrailContextualGroundingAction,
|
|
15
|
+
GuardrailContextualGroundingFilterType,
|
|
16
|
+
GuardrailFilterStrength,
|
|
11
17
|
GuardrailManagedWordsType,
|
|
18
|
+
GuardrailModality,
|
|
19
|
+
GuardrailPiiEntityType,
|
|
20
|
+
GuardrailSensitiveInformationAction,
|
|
12
21
|
GuardrailStatus,
|
|
13
22
|
GuardrailTopicAction,
|
|
14
23
|
GuardrailTopicsTierName,
|
|
@@ -48,19 +57,14 @@ import {
|
|
|
48
57
|
ExternalSourcesRetrieveAndGenerateConfiguration,
|
|
49
58
|
FilterAttribute,
|
|
50
59
|
GenerationConfiguration,
|
|
51
|
-
GuardrailAutomatedReasoningPolicy,
|
|
52
60
|
GuardrailAutomatedReasoningPolicyConfig,
|
|
53
|
-
GuardrailContentPolicy,
|
|
54
61
|
GuardrailContentPolicyConfig,
|
|
55
|
-
GuardrailContextualGroundingPolicy,
|
|
56
62
|
GuardrailContextualGroundingPolicyConfig,
|
|
57
63
|
GuardrailCrossRegionConfig,
|
|
58
|
-
|
|
59
|
-
GuardrailPiiEntity,
|
|
60
|
-
GuardrailRegex,
|
|
64
|
+
GuardrailManagedWordsConfig,
|
|
61
65
|
GuardrailSensitiveInformationPolicyConfig,
|
|
62
66
|
GuardrailTopicPolicyConfig,
|
|
63
|
-
|
|
67
|
+
GuardrailWordConfig,
|
|
64
68
|
ImplicitFilterConfiguration,
|
|
65
69
|
ModelDataSource,
|
|
66
70
|
OrchestrationConfiguration,
|
|
@@ -73,6 +77,109 @@ import {
|
|
|
73
77
|
VectorSearchRerankingConfiguration,
|
|
74
78
|
VpcConfig,
|
|
75
79
|
} from "./models_0";
|
|
80
|
+
export interface GuardrailWordPolicyConfig {
|
|
81
|
+
wordsConfig?: GuardrailWordConfig[] | undefined;
|
|
82
|
+
managedWordListsConfig?: GuardrailManagedWordsConfig[] | undefined;
|
|
83
|
+
}
|
|
84
|
+
export interface CreateGuardrailRequest {
|
|
85
|
+
name: string | undefined;
|
|
86
|
+
description?: string | undefined;
|
|
87
|
+
topicPolicyConfig?: GuardrailTopicPolicyConfig | undefined;
|
|
88
|
+
contentPolicyConfig?: GuardrailContentPolicyConfig | undefined;
|
|
89
|
+
wordPolicyConfig?: GuardrailWordPolicyConfig | undefined;
|
|
90
|
+
sensitiveInformationPolicyConfig?:
|
|
91
|
+
| GuardrailSensitiveInformationPolicyConfig
|
|
92
|
+
| undefined;
|
|
93
|
+
contextualGroundingPolicyConfig?:
|
|
94
|
+
| GuardrailContextualGroundingPolicyConfig
|
|
95
|
+
| undefined;
|
|
96
|
+
automatedReasoningPolicyConfig?:
|
|
97
|
+
| GuardrailAutomatedReasoningPolicyConfig
|
|
98
|
+
| undefined;
|
|
99
|
+
crossRegionConfig?: GuardrailCrossRegionConfig | undefined;
|
|
100
|
+
blockedInputMessaging: string | undefined;
|
|
101
|
+
blockedOutputsMessaging: string | undefined;
|
|
102
|
+
kmsKeyId?: string | undefined;
|
|
103
|
+
tags?: Tag[] | undefined;
|
|
104
|
+
clientRequestToken?: string | undefined;
|
|
105
|
+
}
|
|
106
|
+
export interface CreateGuardrailResponse {
|
|
107
|
+
guardrailId: string | undefined;
|
|
108
|
+
guardrailArn: string | undefined;
|
|
109
|
+
version: string | undefined;
|
|
110
|
+
createdAt: Date | undefined;
|
|
111
|
+
}
|
|
112
|
+
export interface CreateGuardrailVersionRequest {
|
|
113
|
+
guardrailIdentifier: string | undefined;
|
|
114
|
+
description?: string | undefined;
|
|
115
|
+
clientRequestToken?: string | undefined;
|
|
116
|
+
}
|
|
117
|
+
export interface CreateGuardrailVersionResponse {
|
|
118
|
+
guardrailId: string | undefined;
|
|
119
|
+
version: string | undefined;
|
|
120
|
+
}
|
|
121
|
+
export interface DeleteGuardrailRequest {
|
|
122
|
+
guardrailIdentifier: string | undefined;
|
|
123
|
+
guardrailVersion?: string | undefined;
|
|
124
|
+
}
|
|
125
|
+
export interface DeleteGuardrailResponse {}
|
|
126
|
+
export interface GetGuardrailRequest {
|
|
127
|
+
guardrailIdentifier: string | undefined;
|
|
128
|
+
guardrailVersion?: string | undefined;
|
|
129
|
+
}
|
|
130
|
+
export interface GuardrailAutomatedReasoningPolicy {
|
|
131
|
+
policies: string[] | undefined;
|
|
132
|
+
confidenceThreshold?: number | undefined;
|
|
133
|
+
}
|
|
134
|
+
export interface GuardrailContentFilter {
|
|
135
|
+
type: GuardrailContentFilterType | undefined;
|
|
136
|
+
inputStrength: GuardrailFilterStrength | undefined;
|
|
137
|
+
outputStrength: GuardrailFilterStrength | undefined;
|
|
138
|
+
inputModalities?: GuardrailModality[] | undefined;
|
|
139
|
+
outputModalities?: GuardrailModality[] | undefined;
|
|
140
|
+
inputAction?: GuardrailContentFilterAction | undefined;
|
|
141
|
+
outputAction?: GuardrailContentFilterAction | undefined;
|
|
142
|
+
inputEnabled?: boolean | undefined;
|
|
143
|
+
outputEnabled?: boolean | undefined;
|
|
144
|
+
}
|
|
145
|
+
export interface GuardrailContentFiltersTier {
|
|
146
|
+
tierName: GuardrailContentFiltersTierName | undefined;
|
|
147
|
+
}
|
|
148
|
+
export interface GuardrailContentPolicy {
|
|
149
|
+
filters?: GuardrailContentFilter[] | undefined;
|
|
150
|
+
tier?: GuardrailContentFiltersTier | undefined;
|
|
151
|
+
}
|
|
152
|
+
export interface GuardrailContextualGroundingFilter {
|
|
153
|
+
type: GuardrailContextualGroundingFilterType | undefined;
|
|
154
|
+
threshold: number | undefined;
|
|
155
|
+
action?: GuardrailContextualGroundingAction | undefined;
|
|
156
|
+
enabled?: boolean | undefined;
|
|
157
|
+
}
|
|
158
|
+
export interface GuardrailContextualGroundingPolicy {
|
|
159
|
+
filters: GuardrailContextualGroundingFilter[] | undefined;
|
|
160
|
+
}
|
|
161
|
+
export interface GuardrailCrossRegionDetails {
|
|
162
|
+
guardrailProfileId?: string | undefined;
|
|
163
|
+
guardrailProfileArn?: string | undefined;
|
|
164
|
+
}
|
|
165
|
+
export interface GuardrailPiiEntity {
|
|
166
|
+
type: GuardrailPiiEntityType | undefined;
|
|
167
|
+
action: GuardrailSensitiveInformationAction | undefined;
|
|
168
|
+
inputAction?: GuardrailSensitiveInformationAction | undefined;
|
|
169
|
+
outputAction?: GuardrailSensitiveInformationAction | undefined;
|
|
170
|
+
inputEnabled?: boolean | undefined;
|
|
171
|
+
outputEnabled?: boolean | undefined;
|
|
172
|
+
}
|
|
173
|
+
export interface GuardrailRegex {
|
|
174
|
+
name: string | undefined;
|
|
175
|
+
description?: string | undefined;
|
|
176
|
+
pattern: string | undefined;
|
|
177
|
+
action: GuardrailSensitiveInformationAction | undefined;
|
|
178
|
+
inputAction?: GuardrailSensitiveInformationAction | undefined;
|
|
179
|
+
outputAction?: GuardrailSensitiveInformationAction | undefined;
|
|
180
|
+
inputEnabled?: boolean | undefined;
|
|
181
|
+
outputEnabled?: boolean | undefined;
|
|
182
|
+
}
|
|
76
183
|
export interface GuardrailSensitiveInformationPolicy {
|
|
77
184
|
piiEntities?: GuardrailPiiEntity[] | undefined;
|
|
78
185
|
regexes?: GuardrailRegex[] | undefined;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Paginator } from "@smithy/types";
|
|
2
|
+
import {
|
|
3
|
+
ListAdvancedPromptOptimizationJobsCommandInput,
|
|
4
|
+
ListAdvancedPromptOptimizationJobsCommandOutput,
|
|
5
|
+
} from "../commands/ListAdvancedPromptOptimizationJobsCommand";
|
|
6
|
+
import { BedrockPaginationConfiguration } from "./Interfaces";
|
|
7
|
+
export declare const paginateListAdvancedPromptOptimizationJobs: (
|
|
8
|
+
config: BedrockPaginationConfiguration,
|
|
9
|
+
input: ListAdvancedPromptOptimizationJobsCommandInput,
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListAdvancedPromptOptimizationJobsCommandOutput>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from "./Interfaces";
|
|
2
|
+
export * from "./ListAdvancedPromptOptimizationJobsPaginator";
|
|
2
3
|
export * from "./ListAutomatedReasoningPoliciesPaginator";
|
|
3
4
|
export * from "./ListAutomatedReasoningPolicyBuildWorkflowsPaginator";
|
|
4
5
|
export * from "./ListAutomatedReasoningPolicyTestCasesPaginator";
|
|
@@ -19,6 +19,9 @@ export declare var ValidationException$: StaticErrorSchema;
|
|
|
19
19
|
export declare const errorTypeRegistries: TypeRegistry[];
|
|
20
20
|
export declare var AccountEnforcedGuardrailInferenceInputConfiguration$: StaticStructureSchema;
|
|
21
21
|
export declare var AccountEnforcedGuardrailOutputConfiguration$: StaticStructureSchema;
|
|
22
|
+
export declare var AdvancedPromptOptimizationInputConfig$: StaticStructureSchema;
|
|
23
|
+
export declare var AdvancedPromptOptimizationJobSummary$: StaticStructureSchema;
|
|
24
|
+
export declare var AdvancedPromptOptimizationOutputConfig$: StaticStructureSchema;
|
|
22
25
|
export declare var AgreementAvailability$: StaticStructureSchema;
|
|
23
26
|
export declare var AutomatedEvaluationConfig$: StaticStructureSchema;
|
|
24
27
|
export declare var AutomatedEvaluationCustomMetricConfig$: StaticStructureSchema;
|
|
@@ -97,6 +100,10 @@ export declare var AutomatedReasoningPolicyUpdateTypeValue$: StaticStructureSche
|
|
|
97
100
|
export declare var AutomatedReasoningPolicyUpdateVariableAnnotation$: StaticStructureSchema;
|
|
98
101
|
export declare var AutomatedReasoningPolicyUpdateVariableMutation$: StaticStructureSchema;
|
|
99
102
|
export declare var AutomatedReasoningPolicyVariableReport$: StaticStructureSchema;
|
|
103
|
+
export declare var BatchDeleteAdvancedPromptOptimizationJobError$: StaticStructureSchema;
|
|
104
|
+
export declare var BatchDeleteAdvancedPromptOptimizationJobItem$: StaticStructureSchema;
|
|
105
|
+
export declare var BatchDeleteAdvancedPromptOptimizationJobRequest$: StaticStructureSchema;
|
|
106
|
+
export declare var BatchDeleteAdvancedPromptOptimizationJobResponse$: StaticStructureSchema;
|
|
100
107
|
export declare var BatchDeleteEvaluationJobError$: StaticStructureSchema;
|
|
101
108
|
export declare var BatchDeleteEvaluationJobItem$: StaticStructureSchema;
|
|
102
109
|
export declare var BatchDeleteEvaluationJobRequest$: StaticStructureSchema;
|
|
@@ -106,6 +113,8 @@ export declare var ByteContentDoc$: StaticStructureSchema;
|
|
|
106
113
|
export declare var CancelAutomatedReasoningPolicyBuildWorkflowRequest$: StaticStructureSchema;
|
|
107
114
|
export declare var CancelAutomatedReasoningPolicyBuildWorkflowResponse$: StaticStructureSchema;
|
|
108
115
|
export declare var CloudWatchConfig$: StaticStructureSchema;
|
|
116
|
+
export declare var CreateAdvancedPromptOptimizationJobRequest$: StaticStructureSchema;
|
|
117
|
+
export declare var CreateAdvancedPromptOptimizationJobResponse$: StaticStructureSchema;
|
|
109
118
|
export declare var CreateAutomatedReasoningPolicyRequest$: StaticStructureSchema;
|
|
110
119
|
export declare var CreateAutomatedReasoningPolicyResponse$: StaticStructureSchema;
|
|
111
120
|
export declare var CreateAutomatedReasoningPolicyTestCaseRequest$: StaticStructureSchema;
|
|
@@ -204,6 +213,8 @@ export declare var FoundationModelDetails$: StaticStructureSchema;
|
|
|
204
213
|
export declare var FoundationModelLifecycle$: StaticStructureSchema;
|
|
205
214
|
export declare var FoundationModelSummary$: StaticStructureSchema;
|
|
206
215
|
export declare var GenerationConfiguration$: StaticStructureSchema;
|
|
216
|
+
export declare var GetAdvancedPromptOptimizationJobRequest$: StaticStructureSchema;
|
|
217
|
+
export declare var GetAdvancedPromptOptimizationJobResponse$: StaticStructureSchema;
|
|
207
218
|
export declare var GetAutomatedReasoningPolicyAnnotationsRequest$: StaticStructureSchema;
|
|
208
219
|
export declare var GetAutomatedReasoningPolicyAnnotationsResponse$: StaticStructureSchema;
|
|
209
220
|
export declare var GetAutomatedReasoningPolicyBuildWorkflowRequest$: StaticStructureSchema;
|
|
@@ -293,6 +304,7 @@ export declare var HumanEvaluationCustomMetric$: StaticStructureSchema;
|
|
|
293
304
|
export declare var HumanWorkflowConfig$: StaticStructureSchema;
|
|
294
305
|
export declare var ImplicitFilterConfiguration$: StaticStructureSchema;
|
|
295
306
|
export declare var ImportedModelSummary$: StaticStructureSchema;
|
|
307
|
+
export declare var InferenceConfiguration$: StaticStructureSchema;
|
|
296
308
|
export declare var InferenceProfileModel$: StaticStructureSchema;
|
|
297
309
|
export declare var InferenceProfileSummary$: StaticStructureSchema;
|
|
298
310
|
export declare var InvocationLogsConfig$: StaticStructureSchema;
|
|
@@ -302,6 +314,8 @@ export declare var KnowledgeBaseRetrieveAndGenerateConfiguration$: StaticStructu
|
|
|
302
314
|
export declare var KnowledgeBaseVectorSearchConfiguration$: StaticStructureSchema;
|
|
303
315
|
export declare var LambdaGraderConfig$: StaticStructureSchema;
|
|
304
316
|
export declare var LegalTerm$: StaticStructureSchema;
|
|
317
|
+
export declare var ListAdvancedPromptOptimizationJobsRequest$: StaticStructureSchema;
|
|
318
|
+
export declare var ListAdvancedPromptOptimizationJobsResponse$: StaticStructureSchema;
|
|
305
319
|
export declare var ListAutomatedReasoningPoliciesRequest$: StaticStructureSchema;
|
|
306
320
|
export declare var ListAutomatedReasoningPoliciesResponse$: StaticStructureSchema;
|
|
307
321
|
export declare var ListAutomatedReasoningPolicyBuildWorkflowsRequest$: StaticStructureSchema;
|
|
@@ -349,6 +363,7 @@ export declare var MarketplaceModelEndpoint$: StaticStructureSchema;
|
|
|
349
363
|
export declare var MarketplaceModelEndpointSummary$: StaticStructureSchema;
|
|
350
364
|
export declare var MetadataAttributeSchema$: StaticStructureSchema;
|
|
351
365
|
export declare var MetadataConfigurationForReranking$: StaticStructureSchema;
|
|
366
|
+
export declare var ModelConfiguration$: StaticStructureSchema;
|
|
352
367
|
export declare var ModelCopyJobSummary$: StaticStructureSchema;
|
|
353
368
|
export declare var ModelCustomizationJobSummary$: StaticStructureSchema;
|
|
354
369
|
export declare var ModelEnforcement$: StaticStructureSchema;
|
|
@@ -393,6 +408,8 @@ export declare var StartAutomatedReasoningPolicyBuildWorkflowResponse$: StaticSt
|
|
|
393
408
|
export declare var StartAutomatedReasoningPolicyTestWorkflowRequest$: StaticStructureSchema;
|
|
394
409
|
export declare var StartAutomatedReasoningPolicyTestWorkflowResponse$: StaticStructureSchema;
|
|
395
410
|
export declare var StatusDetails$: StaticStructureSchema;
|
|
411
|
+
export declare var StopAdvancedPromptOptimizationJobRequest$: StaticStructureSchema;
|
|
412
|
+
export declare var StopAdvancedPromptOptimizationJobResponse$: StaticStructureSchema;
|
|
396
413
|
export declare var StopEvaluationJobRequest$: StaticStructureSchema;
|
|
397
414
|
export declare var StopEvaluationJobResponse$: StaticStructureSchema;
|
|
398
415
|
export declare var StopModelCustomizationJobRequest$: StaticStructureSchema;
|
|
@@ -465,8 +482,10 @@ export declare var RatingScaleItemValue$: StaticUnionSchema;
|
|
|
465
482
|
export declare var RequestMetadataFilters$: StaticUnionSchema;
|
|
466
483
|
export declare var RerankingMetadataSelectiveModeConfiguration$: StaticUnionSchema;
|
|
467
484
|
export declare var RetrievalFilter$: StaticUnionSchema;
|
|
485
|
+
export declare var BatchDeleteAdvancedPromptOptimizationJob$: StaticOperationSchema;
|
|
468
486
|
export declare var BatchDeleteEvaluationJob$: StaticOperationSchema;
|
|
469
487
|
export declare var CancelAutomatedReasoningPolicyBuildWorkflow$: StaticOperationSchema;
|
|
488
|
+
export declare var CreateAdvancedPromptOptimizationJob$: StaticOperationSchema;
|
|
470
489
|
export declare var CreateAutomatedReasoningPolicy$: StaticOperationSchema;
|
|
471
490
|
export declare var CreateAutomatedReasoningPolicyTestCase$: StaticOperationSchema;
|
|
472
491
|
export declare var CreateAutomatedReasoningPolicyVersion$: StaticOperationSchema;
|
|
@@ -501,6 +520,7 @@ export declare var DeleteProvisionedModelThroughput$: StaticOperationSchema;
|
|
|
501
520
|
export declare var DeleteResourcePolicy$: StaticOperationSchema;
|
|
502
521
|
export declare var DeregisterMarketplaceModelEndpoint$: StaticOperationSchema;
|
|
503
522
|
export declare var ExportAutomatedReasoningPolicyVersion$: StaticOperationSchema;
|
|
523
|
+
export declare var GetAdvancedPromptOptimizationJob$: StaticOperationSchema;
|
|
504
524
|
export declare var GetAutomatedReasoningPolicy$: StaticOperationSchema;
|
|
505
525
|
export declare var GetAutomatedReasoningPolicyAnnotations$: StaticOperationSchema;
|
|
506
526
|
export declare var GetAutomatedReasoningPolicyBuildWorkflow$: StaticOperationSchema;
|
|
@@ -526,6 +546,7 @@ export declare var GetPromptRouter$: StaticOperationSchema;
|
|
|
526
546
|
export declare var GetProvisionedModelThroughput$: StaticOperationSchema;
|
|
527
547
|
export declare var GetResourcePolicy$: StaticOperationSchema;
|
|
528
548
|
export declare var GetUseCaseForModelAccess$: StaticOperationSchema;
|
|
549
|
+
export declare var ListAdvancedPromptOptimizationJobs$: StaticOperationSchema;
|
|
529
550
|
export declare var ListAutomatedReasoningPolicies$: StaticOperationSchema;
|
|
530
551
|
export declare var ListAutomatedReasoningPolicyBuildWorkflows$: StaticOperationSchema;
|
|
531
552
|
export declare var ListAutomatedReasoningPolicyTestCases$: StaticOperationSchema;
|
|
@@ -554,6 +575,7 @@ export declare var PutUseCaseForModelAccess$: StaticOperationSchema;
|
|
|
554
575
|
export declare var RegisterMarketplaceModelEndpoint$: StaticOperationSchema;
|
|
555
576
|
export declare var StartAutomatedReasoningPolicyBuildWorkflow$: StaticOperationSchema;
|
|
556
577
|
export declare var StartAutomatedReasoningPolicyTestWorkflow$: StaticOperationSchema;
|
|
578
|
+
export declare var StopAdvancedPromptOptimizationJob$: StaticOperationSchema;
|
|
557
579
|
export declare var StopEvaluationJob$: StaticOperationSchema;
|
|
558
580
|
export declare var StopModelCustomizationJob$: StaticOperationSchema;
|
|
559
581
|
export declare var StopModelInvocationJob$: StaticOperationSchema;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-bedrock",
|
|
3
3
|
"description": "AWS SDK for JavaScript Bedrock Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.1047.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-bedrock",
|
|
@@ -21,18 +21,18 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
24
|
-
"@aws-sdk/core": "^3.974.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
24
|
+
"@aws-sdk/core": "^3.974.10",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "^3.972.41",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "^3.972.11",
|
|
27
27
|
"@aws-sdk/middleware-logger": "^3.972.10",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "^3.972.12",
|
|
29
|
-
"@aws-sdk/middleware-user-agent": "^3.972.
|
|
29
|
+
"@aws-sdk/middleware-user-agent": "^3.972.40",
|
|
30
30
|
"@aws-sdk/region-config-resolver": "^3.972.14",
|
|
31
|
-
"@aws-sdk/token-providers": "3.
|
|
31
|
+
"@aws-sdk/token-providers": "3.1047.0",
|
|
32
32
|
"@aws-sdk/types": "^3.973.8",
|
|
33
33
|
"@aws-sdk/util-endpoints": "^3.996.9",
|
|
34
34
|
"@aws-sdk/util-user-agent-browser": "^3.972.11",
|
|
35
|
-
"@aws-sdk/util-user-agent-node": "^3.973.
|
|
35
|
+
"@aws-sdk/util-user-agent-node": "^3.973.26",
|
|
36
36
|
"@smithy/core": "^3.24.1",
|
|
37
37
|
"@smithy/fetch-http-handler": "^5.4.1",
|
|
38
38
|
"@smithy/node-http-handler": "^4.7.1",
|