@aws-sdk/client-bedrock 3.1086.0 → 3.1088.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 +1 -1
- package/dist-types/ts3.4/Bedrock.d.ts +346 -529
- package/dist-types/ts3.4/BedrockClient.d.ts +16 -29
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +5 -12
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +11 -15
- package/dist-types/ts3.4/commandBuilder.d.ts +7 -13
- package/dist-types/ts3.4/commands/BatchDeleteAdvancedPromptOptimizationJobCommand.d.ts +4 -6
- package/dist-types/ts3.4/commands/BatchDeleteEvaluationJobCommand.d.ts +4 -6
- package/dist-types/ts3.4/commands/CancelAutomatedReasoningPolicyBuildWorkflowCommand.d.ts +4 -6
- package/dist-types/ts3.4/commands/CreateAdvancedPromptOptimizationJobCommand.d.ts +4 -6
- package/dist-types/ts3.4/commands/CreateAutomatedReasoningPolicyCommand.d.ts +4 -6
- package/dist-types/ts3.4/commands/CreateAutomatedReasoningPolicyTestCaseCommand.d.ts +4 -6
- package/dist-types/ts3.4/commands/CreateAutomatedReasoningPolicyVersionCommand.d.ts +4 -6
- package/dist-types/ts3.4/commands/CreateCustomModelCommand.d.ts +5 -10
- package/dist-types/ts3.4/commands/CreateCustomModelDeploymentCommand.d.ts +4 -6
- package/dist-types/ts3.4/commands/CreateEvaluationJobCommand.d.ts +4 -6
- package/dist-types/ts3.4/commands/CreateFoundationModelAgreementCommand.d.ts +4 -6
- package/dist-types/ts3.4/commands/CreateGuardrailCommand.d.ts +4 -9
- package/dist-types/ts3.4/commands/CreateGuardrailVersionCommand.d.ts +5 -10
- package/dist-types/ts3.4/commands/CreateInferenceProfileCommand.d.ts +5 -10
- package/dist-types/ts3.4/commands/CreateMarketplaceModelEndpointCommand.d.ts +4 -6
- package/dist-types/ts3.4/commands/CreateModelCopyJobCommand.d.ts +5 -10
- package/dist-types/ts3.4/commands/CreateModelCustomizationJobCommand.d.ts +4 -6
- package/dist-types/ts3.4/commands/CreateModelImportJobCommand.d.ts +5 -10
- package/dist-types/ts3.4/commands/CreateModelInvocationJobCommand.d.ts +4 -6
- package/dist-types/ts3.4/commands/CreatePromptRouterCommand.d.ts +5 -10
- package/dist-types/ts3.4/commands/CreateProvisionedModelThroughputCommand.d.ts +4 -6
- package/dist-types/ts3.4/commands/DeleteAutomatedReasoningPolicyBuildWorkflowCommand.d.ts +4 -6
- package/dist-types/ts3.4/commands/DeleteAutomatedReasoningPolicyCommand.d.ts +4 -6
- package/dist-types/ts3.4/commands/DeleteAutomatedReasoningPolicyTestCaseCommand.d.ts +4 -6
- package/dist-types/ts3.4/commands/DeleteCustomModelCommand.d.ts +5 -10
- package/dist-types/ts3.4/commands/DeleteCustomModelDeploymentCommand.d.ts +4 -6
- package/dist-types/ts3.4/commands/DeleteEnforcedGuardrailConfigurationCommand.d.ts +4 -6
- package/dist-types/ts3.4/commands/DeleteFoundationModelAgreementCommand.d.ts +4 -6
- package/dist-types/ts3.4/commands/DeleteGuardrailCommand.d.ts +4 -9
- package/dist-types/ts3.4/commands/DeleteImportedModelCommand.d.ts +5 -10
- package/dist-types/ts3.4/commands/DeleteInferenceProfileCommand.d.ts +5 -10
- package/dist-types/ts3.4/commands/DeleteMarketplaceModelEndpointCommand.d.ts +4 -6
- package/dist-types/ts3.4/commands/DeleteModelInvocationLoggingConfigurationCommand.d.ts +3 -5
- package/dist-types/ts3.4/commands/DeletePromptRouterCommand.d.ts +5 -10
- package/dist-types/ts3.4/commands/DeleteProvisionedModelThroughputCommand.d.ts +4 -6
- package/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +5 -10
- package/dist-types/ts3.4/commands/DeregisterMarketplaceModelEndpointCommand.d.ts +4 -6
- package/dist-types/ts3.4/commands/ExportAutomatedReasoningPolicyVersionCommand.d.ts +4 -6
- package/dist-types/ts3.4/commands/GetAccountDataRetentionCommand.d.ts +3 -5
- package/dist-types/ts3.4/commands/GetAdvancedPromptOptimizationJobCommand.d.ts +4 -6
- package/dist-types/ts3.4/commands/GetAutomatedReasoningPolicyAnnotationsCommand.d.ts +4 -6
- package/dist-types/ts3.4/commands/GetAutomatedReasoningPolicyBuildWorkflowCommand.d.ts +4 -6
- package/dist-types/ts3.4/commands/GetAutomatedReasoningPolicyBuildWorkflowResultAssetsCommand.d.ts +4 -6
- package/dist-types/ts3.4/commands/GetAutomatedReasoningPolicyCommand.d.ts +4 -6
- package/dist-types/ts3.4/commands/GetAutomatedReasoningPolicyNextScenarioCommand.d.ts +4 -6
- package/dist-types/ts3.4/commands/GetAutomatedReasoningPolicyTestCaseCommand.d.ts +4 -6
- package/dist-types/ts3.4/commands/GetAutomatedReasoningPolicyTestResultCommand.d.ts +4 -6
- package/dist-types/ts3.4/commands/GetCustomModelCommand.d.ts +4 -9
- package/dist-types/ts3.4/commands/GetCustomModelDeploymentCommand.d.ts +4 -6
- package/dist-types/ts3.4/commands/GetEvaluationJobCommand.d.ts +3 -5
- package/dist-types/ts3.4/commands/GetFoundationModelAvailabilityCommand.d.ts +4 -6
- package/dist-types/ts3.4/commands/GetFoundationModelCommand.d.ts +5 -10
- package/dist-types/ts3.4/commands/GetGuardrailCommand.d.ts +3 -5
- package/dist-types/ts3.4/commands/GetImportedModelCommand.d.ts +4 -9
- package/dist-types/ts3.4/commands/GetInferenceProfileCommand.d.ts +5 -10
- package/dist-types/ts3.4/commands/GetMarketplaceModelEndpointCommand.d.ts +4 -6
- package/dist-types/ts3.4/commands/GetModelCopyJobCommand.d.ts +4 -9
- package/dist-types/ts3.4/commands/GetModelCustomizationJobCommand.d.ts +4 -6
- package/dist-types/ts3.4/commands/GetModelImportJobCommand.d.ts +5 -10
- package/dist-types/ts3.4/commands/GetModelInvocationJobCommand.d.ts +5 -10
- package/dist-types/ts3.4/commands/GetModelInvocationLoggingConfigurationCommand.d.ts +3 -5
- package/dist-types/ts3.4/commands/GetPromptRouterCommand.d.ts +4 -9
- package/dist-types/ts3.4/commands/GetProvisionedModelThroughputCommand.d.ts +4 -6
- package/dist-types/ts3.4/commands/GetResourcePolicyCommand.d.ts +5 -10
- package/dist-types/ts3.4/commands/GetUseCaseForModelAccessCommand.d.ts +3 -5
- package/dist-types/ts3.4/commands/ListAdvancedPromptOptimizationJobsCommand.d.ts +3 -5
- package/dist-types/ts3.4/commands/ListAutomatedReasoningPoliciesCommand.d.ts +3 -5
- package/dist-types/ts3.4/commands/ListAutomatedReasoningPolicyBuildWorkflowsCommand.d.ts +4 -6
- package/dist-types/ts3.4/commands/ListAutomatedReasoningPolicyTestCasesCommand.d.ts +4 -6
- package/dist-types/ts3.4/commands/ListAutomatedReasoningPolicyTestResultsCommand.d.ts +4 -6
- package/dist-types/ts3.4/commands/ListCustomModelDeploymentsCommand.d.ts +3 -5
- package/dist-types/ts3.4/commands/ListCustomModelsCommand.d.ts +3 -8
- package/dist-types/ts3.4/commands/ListEnforcedGuardrailsConfigurationCommand.d.ts +3 -5
- package/dist-types/ts3.4/commands/ListEvaluationJobsCommand.d.ts +4 -9
- package/dist-types/ts3.4/commands/ListFoundationModelAgreementOffersCommand.d.ts +4 -6
- package/dist-types/ts3.4/commands/ListFoundationModelsCommand.d.ts +4 -9
- package/dist-types/ts3.4/commands/ListGuardrailsCommand.d.ts +3 -8
- package/dist-types/ts3.4/commands/ListImportedModelsCommand.d.ts +4 -9
- package/dist-types/ts3.4/commands/ListInferenceProfilesCommand.d.ts +4 -9
- package/dist-types/ts3.4/commands/ListMarketplaceModelEndpointsCommand.d.ts +3 -5
- package/dist-types/ts3.4/commands/ListModelCopyJobsCommand.d.ts +4 -9
- package/dist-types/ts3.4/commands/ListModelCustomizationJobsCommand.d.ts +3 -5
- package/dist-types/ts3.4/commands/ListModelImportJobsCommand.d.ts +4 -9
- package/dist-types/ts3.4/commands/ListModelInvocationJobsCommand.d.ts +3 -5
- package/dist-types/ts3.4/commands/ListPromptRoutersCommand.d.ts +4 -9
- package/dist-types/ts3.4/commands/ListProvisionedModelThroughputsCommand.d.ts +3 -5
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +5 -10
- package/dist-types/ts3.4/commands/PutAccountDataRetentionCommand.d.ts +4 -6
- package/dist-types/ts3.4/commands/PutEnforcedGuardrailConfigurationCommand.d.ts +4 -6
- package/dist-types/ts3.4/commands/PutModelInvocationLoggingConfigurationCommand.d.ts +4 -6
- package/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +5 -10
- package/dist-types/ts3.4/commands/PutUseCaseForModelAccessCommand.d.ts +4 -6
- package/dist-types/ts3.4/commands/RegisterMarketplaceModelEndpointCommand.d.ts +4 -6
- package/dist-types/ts3.4/commands/StartAutomatedReasoningPolicyBuildWorkflowCommand.d.ts +4 -6
- package/dist-types/ts3.4/commands/StartAutomatedReasoningPolicyTestWorkflowCommand.d.ts +4 -6
- package/dist-types/ts3.4/commands/StopAdvancedPromptOptimizationJobCommand.d.ts +4 -6
- package/dist-types/ts3.4/commands/StopEvaluationJobCommand.d.ts +5 -10
- package/dist-types/ts3.4/commands/StopModelCustomizationJobCommand.d.ts +4 -6
- package/dist-types/ts3.4/commands/StopModelInvocationJobCommand.d.ts +5 -10
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +3 -5
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +4 -9
- package/dist-types/ts3.4/commands/UpdateAutomatedReasoningPolicyAnnotationsCommand.d.ts +4 -6
- package/dist-types/ts3.4/commands/UpdateAutomatedReasoningPolicyCommand.d.ts +4 -6
- package/dist-types/ts3.4/commands/UpdateAutomatedReasoningPolicyTestCaseCommand.d.ts +4 -6
- package/dist-types/ts3.4/commands/UpdateCustomModelDeploymentCommand.d.ts +4 -6
- package/dist-types/ts3.4/commands/UpdateGuardrailCommand.d.ts +4 -9
- package/dist-types/ts3.4/commands/UpdateMarketplaceModelEndpointCommand.d.ts +4 -6
- package/dist-types/ts3.4/commands/UpdateProvisionedModelThroughputCommand.d.ts +4 -6
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +1 -1
- package/dist-types/ts3.4/extensionConfiguration.d.ts +2 -1
- package/dist-types/ts3.4/models/enums.d.ts +27 -54
- package/dist-types/ts3.4/models/errors.d.ts +9 -27
- package/dist-types/ts3.4/models/models_0.d.ts +37 -103
- package/dist-types/ts3.4/models/models_1.d.ts +10 -30
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +1 -2
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +14 -37
- package/dist-types/ts3.4/runtimeConfig.d.ts +13 -27
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +14 -37
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +5 -13
- package/dist-types/ts3.4/runtimeExtensions.d.ts +1 -1
- package/package.json +40 -40
|
@@ -129,15 +129,9 @@ export interface CreateGuardrailRequest {
|
|
|
129
129
|
topicPolicyConfig?: GuardrailTopicPolicyConfig | undefined;
|
|
130
130
|
contentPolicyConfig?: GuardrailContentPolicyConfig | undefined;
|
|
131
131
|
wordPolicyConfig?: GuardrailWordPolicyConfig | undefined;
|
|
132
|
-
sensitiveInformationPolicyConfig?:
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
contextualGroundingPolicyConfig?:
|
|
136
|
-
| GuardrailContextualGroundingPolicyConfig
|
|
137
|
-
| undefined;
|
|
138
|
-
automatedReasoningPolicyConfig?:
|
|
139
|
-
| GuardrailAutomatedReasoningPolicyConfig
|
|
140
|
-
| undefined;
|
|
132
|
+
sensitiveInformationPolicyConfig?: GuardrailSensitiveInformationPolicyConfig | undefined;
|
|
133
|
+
contextualGroundingPolicyConfig?: GuardrailContextualGroundingPolicyConfig | undefined;
|
|
134
|
+
automatedReasoningPolicyConfig?: GuardrailAutomatedReasoningPolicyConfig | undefined;
|
|
141
135
|
crossRegionConfig?: GuardrailCrossRegionConfig | undefined;
|
|
142
136
|
blockedInputMessaging: string | undefined;
|
|
143
137
|
blockedOutputsMessaging: string | undefined;
|
|
@@ -310,15 +304,9 @@ export interface UpdateGuardrailRequest {
|
|
|
310
304
|
topicPolicyConfig?: GuardrailTopicPolicyConfig | undefined;
|
|
311
305
|
contentPolicyConfig?: GuardrailContentPolicyConfig | undefined;
|
|
312
306
|
wordPolicyConfig?: GuardrailWordPolicyConfig | undefined;
|
|
313
|
-
sensitiveInformationPolicyConfig?:
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
contextualGroundingPolicyConfig?:
|
|
317
|
-
| GuardrailContextualGroundingPolicyConfig
|
|
318
|
-
| undefined;
|
|
319
|
-
automatedReasoningPolicyConfig?:
|
|
320
|
-
| GuardrailAutomatedReasoningPolicyConfig
|
|
321
|
-
| undefined;
|
|
307
|
+
sensitiveInformationPolicyConfig?: GuardrailSensitiveInformationPolicyConfig | undefined;
|
|
308
|
+
contextualGroundingPolicyConfig?: GuardrailContextualGroundingPolicyConfig | undefined;
|
|
309
|
+
automatedReasoningPolicyConfig?: GuardrailAutomatedReasoningPolicyConfig | undefined;
|
|
322
310
|
crossRegionConfig?: GuardrailCrossRegionConfig | undefined;
|
|
323
311
|
blockedInputMessaging: string | undefined;
|
|
324
312
|
blockedOutputsMessaging: string | undefined;
|
|
@@ -1343,18 +1331,12 @@ export interface KnowledgeBaseRetrieveAndGenerateConfiguration {
|
|
|
1343
1331
|
}
|
|
1344
1332
|
export interface RetrieveConfig {
|
|
1345
1333
|
knowledgeBaseId: string | undefined;
|
|
1346
|
-
knowledgeBaseRetrievalConfiguration:
|
|
1347
|
-
| KnowledgeBaseRetrievalConfiguration
|
|
1348
|
-
| undefined;
|
|
1334
|
+
knowledgeBaseRetrievalConfiguration: KnowledgeBaseRetrievalConfiguration | undefined;
|
|
1349
1335
|
}
|
|
1350
1336
|
export interface RetrieveAndGenerateConfiguration {
|
|
1351
1337
|
type: RetrieveAndGenerateType | undefined;
|
|
1352
|
-
knowledgeBaseConfiguration?:
|
|
1353
|
-
|
|
1354
|
-
| undefined;
|
|
1355
|
-
externalSourcesConfiguration?:
|
|
1356
|
-
| ExternalSourcesRetrieveAndGenerateConfiguration
|
|
1357
|
-
| undefined;
|
|
1338
|
+
knowledgeBaseConfiguration?: KnowledgeBaseRetrieveAndGenerateConfiguration | undefined;
|
|
1339
|
+
externalSourcesConfiguration?: ExternalSourcesRetrieveAndGenerateConfiguration | undefined;
|
|
1358
1340
|
}
|
|
1359
1341
|
export type KnowledgeBaseConfig =
|
|
1360
1342
|
| KnowledgeBaseConfig.RetrieveAndGenerateConfigMember
|
|
@@ -1404,9 +1386,7 @@ export declare namespace RAGConfig {
|
|
|
1404
1386
|
}
|
|
1405
1387
|
interface Visitor<T> {
|
|
1406
1388
|
knowledgeBaseConfig: (value: KnowledgeBaseConfig) => T;
|
|
1407
|
-
precomputedRagSourceConfig: (
|
|
1408
|
-
value: EvaluationPrecomputedRagSourceConfig
|
|
1409
|
-
) => T;
|
|
1389
|
+
precomputedRagSourceConfig: (value: EvaluationPrecomputedRagSourceConfig) => T;
|
|
1410
1390
|
_: (name: string, value: any) => T;
|
|
1411
1391
|
}
|
|
1412
1392
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { PaginationConfiguration } from "@smithy/types";
|
|
2
2
|
import { BedrockClient } from "../BedrockClient";
|
|
3
|
-
export interface BedrockPaginationConfiguration
|
|
4
|
-
extends PaginationConfiguration {
|
|
3
|
+
export interface BedrockPaginationConfiguration extends PaginationConfiguration {
|
|
5
4
|
client: BedrockClient;
|
|
6
5
|
}
|
|
@@ -8,24 +8,16 @@ export declare const getRuntimeConfig: (config: BedrockClientConfig) => {
|
|
|
8
8
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
9
9
|
credentialDefaultProvider:
|
|
10
10
|
| ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
|
|
11
|
-
| ((
|
|
12
|
-
_: unknown
|
|
13
|
-
) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
|
|
11
|
+
| ((_: unknown) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
|
|
14
12
|
defaultUserAgentProvider: (
|
|
15
|
-
config?: import("@aws-sdk/core/client").PreviouslyResolved
|
|
13
|
+
config?: import("@aws-sdk/core/client").PreviouslyResolved,
|
|
16
14
|
) => Promise<import("@smithy/types").UserAgent>;
|
|
17
15
|
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
18
16
|
region: string | import("@smithy/types").Provider<any>;
|
|
19
|
-
requestHandler:
|
|
20
|
-
| import("@smithy/core/protocols").HttpHandler<any>
|
|
21
|
-
| RequestHandler;
|
|
17
|
+
requestHandler: import("@smithy/core/protocols").HttpHandler<any> | RequestHandler;
|
|
22
18
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
23
19
|
streamCollector: (
|
|
24
|
-
stream:
|
|
25
|
-
| import("stream").Readable
|
|
26
|
-
| import("stream/web").ReadableStream
|
|
27
|
-
| ReadableStream
|
|
28
|
-
| Blob
|
|
20
|
+
stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob,
|
|
29
21
|
) => Promise<Uint8Array>;
|
|
30
22
|
useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
|
|
31
23
|
(boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
@@ -53,13 +45,8 @@ export declare const getRuntimeConfig: (config: BedrockClientConfig) => {
|
|
|
53
45
|
logger: import("@smithy/types").Logger;
|
|
54
46
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
55
47
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
56
|
-
userAgentAppId?:
|
|
57
|
-
|
|
58
|
-
| undefined
|
|
59
|
-
| import("@smithy/types").Provider<string | undefined>;
|
|
60
|
-
retryStrategy?:
|
|
61
|
-
| import("@smithy/types").RetryStrategy
|
|
62
|
-
| import("@smithy/types").RetryStrategyV2;
|
|
48
|
+
userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
|
|
49
|
+
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
|
|
63
50
|
endpoint?:
|
|
64
51
|
| ((
|
|
65
52
|
| string
|
|
@@ -81,7 +68,7 @@ export declare const getRuntimeConfig: (config: BedrockClientConfig) => {
|
|
|
81
68
|
endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
|
|
82
69
|
context?: {
|
|
83
70
|
logger?: import("@smithy/types").Logger;
|
|
84
|
-
}
|
|
71
|
+
},
|
|
85
72
|
) => import("@smithy/types").EndpointV2;
|
|
86
73
|
tls?: boolean;
|
|
87
74
|
serviceConfiguredEndpoint?: never;
|
|
@@ -90,43 +77,33 @@ export declare const getRuntimeConfig: (config: BedrockClientConfig) => {
|
|
|
90
77
|
| {
|
|
91
78
|
schemeId: string;
|
|
92
79
|
identityProvider: (
|
|
93
|
-
ipc: import("@smithy/types").IdentityProviderConfig
|
|
94
|
-
) =>
|
|
95
|
-
| import("@smithy/types").IdentityProvider<
|
|
96
|
-
import("@smithy/types").Identity
|
|
97
|
-
>
|
|
98
|
-
| undefined;
|
|
80
|
+
ipc: import("@smithy/types").IdentityProviderConfig,
|
|
81
|
+
) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | undefined;
|
|
99
82
|
signer: import("@aws-sdk/core/httpAuthSchemes").AwsSdkSigV4Signer;
|
|
100
83
|
}
|
|
101
84
|
| {
|
|
102
85
|
schemeId: string;
|
|
103
86
|
identityProvider: (
|
|
104
|
-
ipc: import("@smithy/types").IdentityProviderConfig
|
|
105
|
-
) =>
|
|
106
|
-
| import("@smithy/types").IdentityProvider<
|
|
107
|
-
import("@smithy/types").Identity
|
|
108
|
-
>
|
|
109
|
-
| undefined;
|
|
87
|
+
ipc: import("@smithy/types").IdentityProviderConfig,
|
|
88
|
+
) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | undefined;
|
|
110
89
|
signer: import("@smithy/core").HttpBearerAuthSigner;
|
|
111
90
|
}
|
|
112
91
|
)[];
|
|
113
92
|
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").BedrockHttpAuthSchemeProvider;
|
|
114
|
-
token?:
|
|
115
|
-
| import("@smithy/types").TokenIdentity
|
|
116
|
-
| import("@smithy/types").TokenIdentityProvider;
|
|
93
|
+
token?: import("@smithy/types").TokenIdentity | import("@smithy/types").TokenIdentityProvider;
|
|
117
94
|
credentials?:
|
|
118
95
|
| import("@smithy/types").AwsCredentialIdentity
|
|
119
96
|
| import("@smithy/types").AwsCredentialIdentityProvider;
|
|
120
97
|
signer?:
|
|
121
98
|
| import("@smithy/types").RequestSigner
|
|
122
99
|
| ((
|
|
123
|
-
authScheme?: import("@smithy/types").AuthScheme
|
|
100
|
+
authScheme?: import("@smithy/types").AuthScheme,
|
|
124
101
|
) => Promise<import("@smithy/types").RequestSigner>);
|
|
125
102
|
signingEscapePath?: boolean;
|
|
126
103
|
systemClockOffset?: number;
|
|
127
104
|
signingRegion?: string;
|
|
128
105
|
signerConstructor?: new (
|
|
129
106
|
options: import("@smithy/signature-v4").SignatureV4Init &
|
|
130
|
-
import("@smithy/signature-v4").SignatureV4CryptoInit
|
|
107
|
+
import("@smithy/signature-v4").SignatureV4CryptoInit,
|
|
131
108
|
) => import("@smithy/types").RequestSigner;
|
|
132
109
|
};
|
|
@@ -13,10 +13,10 @@ export declare const getRuntimeConfig: (config: BedrockClientConfig) => {
|
|
|
13
13
|
credentialDefaultProvider:
|
|
14
14
|
| ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
|
|
15
15
|
| ((
|
|
16
|
-
init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit
|
|
16
|
+
init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit,
|
|
17
17
|
) => import("@aws-sdk/credential-provider-node").MemoizedRuntimeConfigAwsCredentialIdentityProvider);
|
|
18
18
|
defaultUserAgentProvider: (
|
|
19
|
-
config?: import("@aws-sdk/core/client").PreviouslyResolved
|
|
19
|
+
config?: import("@aws-sdk/core/client").PreviouslyResolved,
|
|
20
20
|
) => Promise<import("@smithy/types").UserAgent>;
|
|
21
21
|
httpAuthSchemes:
|
|
22
22
|
| import("@smithy/types").HttpAuthScheme[]
|
|
@@ -24,36 +24,26 @@ export declare const getRuntimeConfig: (config: BedrockClientConfig) => {
|
|
|
24
24
|
| {
|
|
25
25
|
schemeId: string;
|
|
26
26
|
identityProvider: (
|
|
27
|
-
ipc: IdentityProviderConfig
|
|
27
|
+
ipc: IdentityProviderConfig,
|
|
28
28
|
) =>
|
|
29
|
-
| import("@smithy/types").IdentityProvider<
|
|
30
|
-
import("@smithy/types").Identity
|
|
31
|
-
>
|
|
29
|
+
| import("@smithy/types").IdentityProvider<import("@smithy/types").Identity>
|
|
32
30
|
| undefined;
|
|
33
31
|
signer: AwsSdkSigV4Signer;
|
|
34
32
|
}
|
|
35
33
|
| {
|
|
36
34
|
schemeId: string;
|
|
37
35
|
identityProvider: (
|
|
38
|
-
ipc: IdentityProviderConfig
|
|
39
|
-
) => import("@smithy/types").IdentityProvider<
|
|
40
|
-
import("@smithy/types").Identity
|
|
41
|
-
>;
|
|
36
|
+
ipc: IdentityProviderConfig,
|
|
37
|
+
) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity>;
|
|
42
38
|
signer: HttpBearerAuthSigner;
|
|
43
39
|
}
|
|
44
40
|
)[];
|
|
45
41
|
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
46
42
|
region: string | import("@smithy/types").Provider<string>;
|
|
47
|
-
requestHandler:
|
|
48
|
-
| RequestHandler
|
|
49
|
-
| import("@smithy/core/protocols").HttpHandler<any>;
|
|
43
|
+
requestHandler: RequestHandler | import("@smithy/core/protocols").HttpHandler<any>;
|
|
50
44
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
51
45
|
streamCollector: (
|
|
52
|
-
stream:
|
|
53
|
-
| import("stream").Readable
|
|
54
|
-
| import("stream/web").ReadableStream
|
|
55
|
-
| ReadableStream
|
|
56
|
-
| Blob
|
|
46
|
+
stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob,
|
|
57
47
|
) => Promise<Uint8Array>;
|
|
58
48
|
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
59
49
|
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
@@ -80,9 +70,7 @@ export declare const getRuntimeConfig: (config: BedrockClientConfig) => {
|
|
|
80
70
|
logger: import("@smithy/types").Logger;
|
|
81
71
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
82
72
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
83
|
-
retryStrategy?:
|
|
84
|
-
| import("@smithy/types").RetryStrategy
|
|
85
|
-
| import("@smithy/types").RetryStrategyV2;
|
|
73
|
+
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
|
|
86
74
|
endpoint?:
|
|
87
75
|
| ((
|
|
88
76
|
| string
|
|
@@ -104,27 +92,25 @@ export declare const getRuntimeConfig: (config: BedrockClientConfig) => {
|
|
|
104
92
|
endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
|
|
105
93
|
context?: {
|
|
106
94
|
logger?: import("@smithy/types").Logger;
|
|
107
|
-
}
|
|
95
|
+
},
|
|
108
96
|
) => import("@smithy/types").EndpointV2;
|
|
109
97
|
tls?: boolean;
|
|
110
98
|
serviceConfiguredEndpoint?: never;
|
|
111
99
|
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").BedrockHttpAuthSchemeProvider;
|
|
112
|
-
token?:
|
|
113
|
-
| import("@smithy/types").TokenIdentity
|
|
114
|
-
| import("@smithy/types").TokenIdentityProvider;
|
|
100
|
+
token?: import("@smithy/types").TokenIdentity | import("@smithy/types").TokenIdentityProvider;
|
|
115
101
|
credentials?:
|
|
116
102
|
| import("@smithy/types").AwsCredentialIdentity
|
|
117
103
|
| import("@smithy/types").AwsCredentialIdentityProvider;
|
|
118
104
|
signer?:
|
|
119
105
|
| import("@smithy/types").RequestSigner
|
|
120
106
|
| ((
|
|
121
|
-
authScheme?: import("@smithy/types").AuthScheme
|
|
107
|
+
authScheme?: import("@smithy/types").AuthScheme,
|
|
122
108
|
) => Promise<import("@smithy/types").RequestSigner>);
|
|
123
109
|
signingEscapePath?: boolean;
|
|
124
110
|
systemClockOffset?: number;
|
|
125
111
|
signingRegion?: string;
|
|
126
112
|
signerConstructor?: new (
|
|
127
113
|
options: import("@smithy/signature-v4").SignatureV4Init &
|
|
128
|
-
import("@smithy/signature-v4").SignatureV4CryptoInit
|
|
114
|
+
import("@smithy/signature-v4").SignatureV4CryptoInit,
|
|
129
115
|
) => import("@smithy/types").RequestSigner;
|
|
130
116
|
};
|
|
@@ -21,11 +21,7 @@ export declare const getRuntimeConfig: (config: BedrockClientConfig) => {
|
|
|
21
21
|
urlParser: import("@smithy/types").UrlParser;
|
|
22
22
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
23
23
|
streamCollector: (
|
|
24
|
-
stream:
|
|
25
|
-
| import("stream").Readable
|
|
26
|
-
| import("stream/web").ReadableStream
|
|
27
|
-
| ReadableStream
|
|
28
|
-
| Blob
|
|
24
|
+
stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob,
|
|
29
25
|
) => Promise<Uint8Array>;
|
|
30
26
|
base64Decoder: import("@smithy/types").Decoder;
|
|
31
27
|
base64Encoder: (_input: Uint8Array | string) => string;
|
|
@@ -40,30 +36,21 @@ export declare const getRuntimeConfig: (config: BedrockClientConfig) => {
|
|
|
40
36
|
region: string | import("@smithy/types").Provider<any>;
|
|
41
37
|
profile?: string;
|
|
42
38
|
defaultUserAgentProvider: (
|
|
43
|
-
config?: import("@aws-sdk/core/client").PreviouslyResolved
|
|
39
|
+
config?: import("@aws-sdk/core/client").PreviouslyResolved,
|
|
44
40
|
) => Promise<import("@smithy/types").UserAgent>;
|
|
45
41
|
credentialDefaultProvider:
|
|
46
42
|
| ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
|
|
47
|
-
| ((
|
|
48
|
-
_: unknown
|
|
49
|
-
) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
|
|
43
|
+
| ((_: unknown) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
|
|
50
44
|
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
51
45
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
52
46
|
logger: import("@smithy/types").Logger;
|
|
53
47
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
54
48
|
defaultsMode:
|
|
55
49
|
| import("@smithy/core/client").DefaultsMode
|
|
56
|
-
| import("@smithy/types").Provider<
|
|
57
|
-
import("@smithy/core/client").DefaultsMode
|
|
58
|
-
>;
|
|
50
|
+
| import("@smithy/types").Provider<import("@smithy/core/client").DefaultsMode>;
|
|
59
51
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
60
|
-
userAgentAppId?:
|
|
61
|
-
|
|
62
|
-
| undefined
|
|
63
|
-
| import("@smithy/types").Provider<string | undefined>;
|
|
64
|
-
retryStrategy?:
|
|
65
|
-
| import("@smithy/types").RetryStrategy
|
|
66
|
-
| import("@smithy/types").RetryStrategyV2;
|
|
52
|
+
userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
|
|
53
|
+
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
|
|
67
54
|
endpoint?:
|
|
68
55
|
| ((
|
|
69
56
|
| string
|
|
@@ -85,7 +72,7 @@ export declare const getRuntimeConfig: (config: BedrockClientConfig) => {
|
|
|
85
72
|
endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
|
|
86
73
|
context?: {
|
|
87
74
|
logger?: import("@smithy/types").Logger;
|
|
88
|
-
}
|
|
75
|
+
},
|
|
89
76
|
) => import("@smithy/types").EndpointV2;
|
|
90
77
|
tls?: boolean;
|
|
91
78
|
serviceConfiguredEndpoint?: never;
|
|
@@ -94,43 +81,33 @@ export declare const getRuntimeConfig: (config: BedrockClientConfig) => {
|
|
|
94
81
|
| {
|
|
95
82
|
schemeId: string;
|
|
96
83
|
identityProvider: (
|
|
97
|
-
ipc: import("@smithy/types").IdentityProviderConfig
|
|
98
|
-
) =>
|
|
99
|
-
| import("@smithy/types").IdentityProvider<
|
|
100
|
-
import("@smithy/types").Identity
|
|
101
|
-
>
|
|
102
|
-
| undefined;
|
|
84
|
+
ipc: import("@smithy/types").IdentityProviderConfig,
|
|
85
|
+
) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | undefined;
|
|
103
86
|
signer: import("@aws-sdk/core/httpAuthSchemes").AwsSdkSigV4Signer;
|
|
104
87
|
}
|
|
105
88
|
| {
|
|
106
89
|
schemeId: string;
|
|
107
90
|
identityProvider: (
|
|
108
|
-
ipc: import("@smithy/types").IdentityProviderConfig
|
|
109
|
-
) =>
|
|
110
|
-
| import("@smithy/types").IdentityProvider<
|
|
111
|
-
import("@smithy/types").Identity
|
|
112
|
-
>
|
|
113
|
-
| undefined;
|
|
91
|
+
ipc: import("@smithy/types").IdentityProviderConfig,
|
|
92
|
+
) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | undefined;
|
|
114
93
|
signer: import("@smithy/core").HttpBearerAuthSigner;
|
|
115
94
|
}
|
|
116
95
|
)[];
|
|
117
96
|
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").BedrockHttpAuthSchemeProvider;
|
|
118
|
-
token?:
|
|
119
|
-
| import("@smithy/types").TokenIdentity
|
|
120
|
-
| import("@smithy/types").TokenIdentityProvider;
|
|
97
|
+
token?: import("@smithy/types").TokenIdentity | import("@smithy/types").TokenIdentityProvider;
|
|
121
98
|
credentials?:
|
|
122
99
|
| import("@smithy/types").AwsCredentialIdentity
|
|
123
100
|
| import("@smithy/types").AwsCredentialIdentityProvider;
|
|
124
101
|
signer?:
|
|
125
102
|
| import("@smithy/types").RequestSigner
|
|
126
103
|
| ((
|
|
127
|
-
authScheme?: import("@smithy/types").AuthScheme
|
|
104
|
+
authScheme?: import("@smithy/types").AuthScheme,
|
|
128
105
|
) => Promise<import("@smithy/types").RequestSigner>);
|
|
129
106
|
signingEscapePath?: boolean;
|
|
130
107
|
systemClockOffset?: number;
|
|
131
108
|
signingRegion?: string;
|
|
132
109
|
signerConstructor?: new (
|
|
133
110
|
options: import("@smithy/signature-v4").SignatureV4Init &
|
|
134
|
-
import("@smithy/signature-v4").SignatureV4CryptoInit
|
|
111
|
+
import("@smithy/signature-v4").SignatureV4CryptoInit,
|
|
135
112
|
) => import("@smithy/types").RequestSigner;
|
|
136
113
|
};
|
|
@@ -12,7 +12,7 @@ export declare const getRuntimeConfig: (config: BedrockClientConfig) => {
|
|
|
12
12
|
endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
|
|
13
13
|
context?: {
|
|
14
14
|
logger?: import("@smithy/types").Logger;
|
|
15
|
-
}
|
|
15
|
+
},
|
|
16
16
|
) => import("@smithy/types").EndpointV2;
|
|
17
17
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
18
18
|
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").BedrockHttpAuthSchemeProvider;
|
|
@@ -20,23 +20,15 @@ export declare const getRuntimeConfig: (config: BedrockClientConfig) => {
|
|
|
20
20
|
| {
|
|
21
21
|
schemeId: string;
|
|
22
22
|
identityProvider: (
|
|
23
|
-
ipc: IdentityProviderConfig
|
|
24
|
-
) =>
|
|
25
|
-
| import("@smithy/types").IdentityProvider<
|
|
26
|
-
import("@smithy/types").Identity
|
|
27
|
-
>
|
|
28
|
-
| undefined;
|
|
23
|
+
ipc: IdentityProviderConfig,
|
|
24
|
+
) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | undefined;
|
|
29
25
|
signer: AwsSdkSigV4Signer;
|
|
30
26
|
}
|
|
31
27
|
| {
|
|
32
28
|
schemeId: string;
|
|
33
29
|
identityProvider: (
|
|
34
|
-
ipc: IdentityProviderConfig
|
|
35
|
-
) =>
|
|
36
|
-
| import("@smithy/types").IdentityProvider<
|
|
37
|
-
import("@smithy/types").Identity
|
|
38
|
-
>
|
|
39
|
-
| undefined;
|
|
30
|
+
ipc: IdentityProviderConfig,
|
|
31
|
+
) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | undefined;
|
|
40
32
|
signer: HttpBearerAuthSigner;
|
|
41
33
|
}
|
|
42
34
|
)[];
|
package/package.json
CHANGED
|
@@ -1,7 +1,38 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-bedrock",
|
|
3
|
+
"version": "3.1088.0",
|
|
3
4
|
"description": "AWS SDK for JavaScript Bedrock Client for Node.js, Browser and React Native",
|
|
4
|
-
"
|
|
5
|
+
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-bedrock",
|
|
6
|
+
"license": "Apache-2.0",
|
|
7
|
+
"author": {
|
|
8
|
+
"name": "AWS SDK for JavaScript Team",
|
|
9
|
+
"url": "https://aws.amazon.com/sdk-for-javascript/"
|
|
10
|
+
},
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "https://github.com/aws/aws-sdk-js-v3.git",
|
|
14
|
+
"directory": "clients/client-bedrock"
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"dist-*/**"
|
|
18
|
+
],
|
|
19
|
+
"sideEffects": false,
|
|
20
|
+
"main": "./dist-cjs/index.js",
|
|
21
|
+
"module": "./dist-es/index.js",
|
|
22
|
+
"browser": {
|
|
23
|
+
"./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser"
|
|
24
|
+
},
|
|
25
|
+
"types": "./dist-types/index.d.ts",
|
|
26
|
+
"typesVersions": {
|
|
27
|
+
"<4.5": {
|
|
28
|
+
"dist-types/*": [
|
|
29
|
+
"dist-types/ts3.4/*"
|
|
30
|
+
]
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"react-native": {
|
|
34
|
+
"./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
|
|
35
|
+
},
|
|
5
36
|
"scripts": {
|
|
6
37
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
7
38
|
"build:cjs": "node ../../scripts/compilation/inline",
|
|
@@ -14,19 +45,15 @@
|
|
|
14
45
|
"generate:client": "node ../../scripts/generate-clients/single-service",
|
|
15
46
|
"test:index": "tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs"
|
|
16
47
|
},
|
|
17
|
-
"main": "./dist-cjs/index.js",
|
|
18
|
-
"types": "./dist-types/index.d.ts",
|
|
19
|
-
"module": "./dist-es/index.js",
|
|
20
|
-
"sideEffects": false,
|
|
21
48
|
"dependencies": {
|
|
22
|
-
"@aws-sdk/core": "^3.975.
|
|
23
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
24
|
-
"@aws-sdk/token-providers": "3.
|
|
25
|
-
"@aws-sdk/types": "^3.974.
|
|
26
|
-
"@smithy/core": "^3.29.
|
|
27
|
-
"@smithy/fetch-http-handler": "^5.6.
|
|
28
|
-
"@smithy/node-http-handler": "^4.9.
|
|
29
|
-
"@smithy/types": "^4.16.
|
|
49
|
+
"@aws-sdk/core": "^3.975.3",
|
|
50
|
+
"@aws-sdk/credential-provider-node": "^3.972.69",
|
|
51
|
+
"@aws-sdk/token-providers": "3.1088.0",
|
|
52
|
+
"@aws-sdk/types": "^3.974.2",
|
|
53
|
+
"@smithy/core": "^3.29.4",
|
|
54
|
+
"@smithy/fetch-http-handler": "^5.6.6",
|
|
55
|
+
"@smithy/node-http-handler": "^4.9.6",
|
|
56
|
+
"@smithy/types": "^4.16.1",
|
|
30
57
|
"tslib": "^2.6.2"
|
|
31
58
|
},
|
|
32
59
|
"devDependencies": {
|
|
@@ -39,32 +66,5 @@
|
|
|
39
66
|
},
|
|
40
67
|
"engines": {
|
|
41
68
|
"node": ">=20.0.0"
|
|
42
|
-
},
|
|
43
|
-
"typesVersions": {
|
|
44
|
-
"<4.5": {
|
|
45
|
-
"dist-types/*": [
|
|
46
|
-
"dist-types/ts3.4/*"
|
|
47
|
-
]
|
|
48
|
-
}
|
|
49
|
-
},
|
|
50
|
-
"files": [
|
|
51
|
-
"dist-*/**"
|
|
52
|
-
],
|
|
53
|
-
"author": {
|
|
54
|
-
"name": "AWS SDK for JavaScript Team",
|
|
55
|
-
"url": "https://aws.amazon.com/sdk-for-javascript/"
|
|
56
|
-
},
|
|
57
|
-
"license": "Apache-2.0",
|
|
58
|
-
"browser": {
|
|
59
|
-
"./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser"
|
|
60
|
-
},
|
|
61
|
-
"react-native": {
|
|
62
|
-
"./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
|
|
63
|
-
},
|
|
64
|
-
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-bedrock",
|
|
65
|
-
"repository": {
|
|
66
|
-
"type": "git",
|
|
67
|
-
"url": "https://github.com/aws/aws-sdk-js-v3.git",
|
|
68
|
-
"directory": "clients/client-bedrock"
|
|
69
69
|
}
|
|
70
70
|
}
|