@aws-sdk/client-bedrock 3.839.0 → 3.840.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.
Files changed (35) hide show
  1. package/dist-cjs/auth/httpAuthSchemeProvider.js +17 -0
  2. package/dist-cjs/index.js +152 -20
  3. package/dist-cjs/runtimeConfig.js +23 -0
  4. package/dist-cjs/runtimeConfig.shared.js +6 -0
  5. package/dist-es/BedrockClient.js +1 -0
  6. package/dist-es/auth/httpAuthExtensionConfiguration.js +8 -0
  7. package/dist-es/auth/httpAuthSchemeProvider.js +17 -0
  8. package/dist-es/models/models_0.js +56 -12
  9. package/dist-es/models/models_1.js +19 -1
  10. package/dist-es/protocols/Aws_restJson1.js +42 -0
  11. package/dist-es/runtimeConfig.js +24 -1
  12. package/dist-es/runtimeConfig.shared.js +6 -0
  13. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +4 -1
  14. package/dist-types/auth/httpAuthSchemeProvider.d.ts +9 -1
  15. package/dist-types/commands/CreateEvaluationJobCommand.d.ts +76 -6
  16. package/dist-types/commands/GetEvaluationJobCommand.d.ts +76 -6
  17. package/dist-types/commands/GetFoundationModelAvailabilityCommand.d.ts +2 -1
  18. package/dist-types/commands/ListFoundationModelAgreementOffersCommand.d.ts +1 -2
  19. package/dist-types/models/models_0.d.ts +220 -177
  20. package/dist-types/models/models_1.d.ts +188 -1
  21. package/dist-types/runtimeConfig.browser.d.ts +10 -1
  22. package/dist-types/runtimeConfig.d.ts +13 -1
  23. package/dist-types/runtimeConfig.native.d.ts +10 -1
  24. package/dist-types/runtimeConfig.shared.d.ts +12 -1
  25. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +5 -0
  26. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +4 -0
  27. package/dist-types/ts3.4/commands/GetFoundationModelAvailabilityCommand.d.ts +2 -4
  28. package/dist-types/ts3.4/commands/ListFoundationModelAgreementOffersCommand.d.ts +4 -2
  29. package/dist-types/ts3.4/models/models_0.d.ts +101 -52
  30. package/dist-types/ts3.4/models/models_1.d.ts +58 -1
  31. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +27 -1
  32. package/dist-types/ts3.4/runtimeConfig.d.ts +30 -1
  33. package/dist-types/ts3.4/runtimeConfig.native.d.ts +27 -1
  34. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +27 -1
  35. package/package.json +13 -12
@@ -1,3 +1,6 @@
1
+ import { AwsSdkSigV4Signer } from "@aws-sdk/core";
2
+ import { HttpBearerAuthSigner } from "@smithy/core";
3
+ import { IdentityProviderConfig } from "@smithy/types";
1
4
  import { BedrockClientConfig } from "./BedrockClient";
2
5
  /**
3
6
  * @internal
@@ -12,7 +15,15 @@ export declare const getRuntimeConfig: (config: BedrockClientConfig) => {
12
15
  }) => import("@smithy/types").EndpointV2;
13
16
  extensions: import("./runtimeExtensions").RuntimeExtension[];
14
17
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").BedrockHttpAuthSchemeProvider;
15
- httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
18
+ httpAuthSchemes: ({
19
+ schemeId: string;
20
+ identityProvider: (ipc: IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | undefined;
21
+ signer: AwsSdkSigV4Signer;
22
+ } | {
23
+ schemeId: string;
24
+ identityProvider: (ipc: IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | undefined;
25
+ signer: HttpBearerAuthSigner;
26
+ })[];
16
27
  logger: import("@smithy/types").Logger;
17
28
  serviceId: string;
18
29
  urlParser: import("@smithy/types").UrlParser;
@@ -2,6 +2,8 @@ import {
2
2
  AwsCredentialIdentity,
3
3
  AwsCredentialIdentityProvider,
4
4
  HttpAuthScheme,
5
+ TokenIdentity,
6
+ TokenIdentityProvider,
5
7
  } from "@smithy/types";
6
8
  import { BedrockHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
7
9
  export interface HttpAuthExtensionConfiguration {
@@ -18,11 +20,14 @@ export interface HttpAuthExtensionConfiguration {
18
20
  | AwsCredentialIdentity
19
21
  | AwsCredentialIdentityProvider
20
22
  | undefined;
23
+ setToken(token: TokenIdentity | TokenIdentityProvider): void;
24
+ token(): TokenIdentity | TokenIdentityProvider | undefined;
21
25
  }
22
26
  export type HttpAuthRuntimeConfig = Partial<{
23
27
  httpAuthSchemes: HttpAuthScheme[];
24
28
  httpAuthSchemeProvider: BedrockHttpAuthSchemeProvider;
25
29
  credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider;
30
+ token: TokenIdentity | TokenIdentityProvider;
26
31
  }>;
27
32
  export declare const getHttpAuthExtensionConfiguration: (
28
33
  runtimeConfig: HttpAuthRuntimeConfig
@@ -10,6 +10,8 @@ import {
10
10
  HttpAuthSchemeParametersProvider,
11
11
  HttpAuthSchemeProvider,
12
12
  Provider,
13
+ TokenIdentity,
14
+ TokenIdentityProvider,
13
15
  } from "@smithy/types";
14
16
  import { BedrockClientResolvedConfig } from "../BedrockClient";
15
17
  export interface BedrockHttpAuthSchemeParameters
@@ -35,12 +37,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
35
37
  authSchemePreference?: string[] | Provider<string[]>;
36
38
  httpAuthSchemes?: HttpAuthScheme[];
37
39
  httpAuthSchemeProvider?: BedrockHttpAuthSchemeProvider;
40
+ token?: TokenIdentity | TokenIdentityProvider;
38
41
  }
39
42
  export interface HttpAuthSchemeResolvedConfig
40
43
  extends AwsSdkSigV4AuthResolvedConfig {
41
44
  readonly authSchemePreference: Provider<string[]>;
42
45
  readonly httpAuthSchemes: HttpAuthScheme[];
43
46
  readonly httpAuthSchemeProvider: BedrockHttpAuthSchemeProvider;
47
+ readonly token?: TokenIdentityProvider;
44
48
  }
45
49
  export declare const resolveHttpAuthSchemeConfig: <T>(
46
50
  config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved
@@ -5,10 +5,8 @@ import {
5
5
  ServiceInputTypes,
6
6
  ServiceOutputTypes,
7
7
  } from "../BedrockClient";
8
- import {
9
- GetFoundationModelAvailabilityRequest,
10
- GetFoundationModelAvailabilityResponse,
11
- } from "../models/models_0";
8
+ import { GetFoundationModelAvailabilityRequest } from "../models/models_0";
9
+ import { GetFoundationModelAvailabilityResponse } from "../models/models_1";
12
10
  export { __MetadataBearer };
13
11
  export { $Command };
14
12
  export interface GetFoundationModelAvailabilityCommandInput
@@ -5,8 +5,10 @@ import {
5
5
  ServiceInputTypes,
6
6
  ServiceOutputTypes,
7
7
  } from "../BedrockClient";
8
- import { ListFoundationModelAgreementOffersRequest } from "../models/models_0";
9
- import { ListFoundationModelAgreementOffersResponse } from "../models/models_1";
8
+ import {
9
+ ListFoundationModelAgreementOffersRequest,
10
+ ListFoundationModelAgreementOffersResponse,
11
+ } from "../models/models_1";
10
12
  export { __MetadataBearer };
11
13
  export { $Command };
12
14
  export interface ListFoundationModelAgreementOffersCommandInput
@@ -736,11 +736,94 @@ export interface FilterAttribute {
736
736
  key: string | undefined;
737
737
  value: __DocumentType | undefined;
738
738
  }
739
+ export declare const AttributeType: {
740
+ readonly BOOLEAN: "BOOLEAN";
741
+ readonly NUMBER: "NUMBER";
742
+ readonly STRING: "STRING";
743
+ readonly STRING_LIST: "STRING_LIST";
744
+ };
745
+ export type AttributeType = (typeof AttributeType)[keyof typeof AttributeType];
746
+ export interface MetadataAttributeSchema {
747
+ key: string | undefined;
748
+ type: AttributeType | undefined;
749
+ description: string | undefined;
750
+ }
751
+ export interface ImplicitFilterConfiguration {
752
+ metadataAttributes: MetadataAttributeSchema[] | undefined;
753
+ modelArn: string | undefined;
754
+ }
739
755
  export declare const SearchType: {
740
756
  readonly HYBRID: "HYBRID";
741
757
  readonly SEMANTIC: "SEMANTIC";
742
758
  };
743
759
  export type SearchType = (typeof SearchType)[keyof typeof SearchType];
760
+ export declare const RerankingMetadataSelectionMode: {
761
+ readonly ALL: "ALL";
762
+ readonly SELECTIVE: "SELECTIVE";
763
+ };
764
+ export type RerankingMetadataSelectionMode =
765
+ (typeof RerankingMetadataSelectionMode)[keyof typeof RerankingMetadataSelectionMode];
766
+ export interface FieldForReranking {
767
+ fieldName: string | undefined;
768
+ }
769
+ export type RerankingMetadataSelectiveModeConfiguration =
770
+ | RerankingMetadataSelectiveModeConfiguration.FieldsToExcludeMember
771
+ | RerankingMetadataSelectiveModeConfiguration.FieldsToIncludeMember
772
+ | RerankingMetadataSelectiveModeConfiguration.$UnknownMember;
773
+ export declare namespace RerankingMetadataSelectiveModeConfiguration {
774
+ interface FieldsToIncludeMember {
775
+ fieldsToInclude: FieldForReranking[];
776
+ fieldsToExclude?: never;
777
+ $unknown?: never;
778
+ }
779
+ interface FieldsToExcludeMember {
780
+ fieldsToInclude?: never;
781
+ fieldsToExclude: FieldForReranking[];
782
+ $unknown?: never;
783
+ }
784
+ interface $UnknownMember {
785
+ fieldsToInclude?: never;
786
+ fieldsToExclude?: never;
787
+ $unknown: [string, any];
788
+ }
789
+ interface Visitor<T> {
790
+ fieldsToInclude: (value: FieldForReranking[]) => T;
791
+ fieldsToExclude: (value: FieldForReranking[]) => T;
792
+ _: (name: string, value: any) => T;
793
+ }
794
+ const visit: <T>(
795
+ value: RerankingMetadataSelectiveModeConfiguration,
796
+ visitor: Visitor<T>
797
+ ) => T;
798
+ }
799
+ export interface MetadataConfigurationForReranking {
800
+ selectionMode: RerankingMetadataSelectionMode | undefined;
801
+ selectiveModeConfiguration?:
802
+ | RerankingMetadataSelectiveModeConfiguration
803
+ | undefined;
804
+ }
805
+ export interface VectorSearchBedrockRerankingModelConfiguration {
806
+ modelArn: string | undefined;
807
+ additionalModelRequestFields?: Record<string, __DocumentType> | undefined;
808
+ }
809
+ export interface VectorSearchBedrockRerankingConfiguration {
810
+ modelConfiguration:
811
+ | VectorSearchBedrockRerankingModelConfiguration
812
+ | undefined;
813
+ numberOfRerankedResults?: number | undefined;
814
+ metadataConfiguration?: MetadataConfigurationForReranking | undefined;
815
+ }
816
+ export declare const VectorSearchRerankingConfigurationType: {
817
+ readonly BEDROCK_RERANKING_MODEL: "BEDROCK_RERANKING_MODEL";
818
+ };
819
+ export type VectorSearchRerankingConfigurationType =
820
+ (typeof VectorSearchRerankingConfigurationType)[keyof typeof VectorSearchRerankingConfigurationType];
821
+ export interface VectorSearchRerankingConfiguration {
822
+ type: VectorSearchRerankingConfigurationType | undefined;
823
+ bedrockRerankingConfiguration?:
824
+ | VectorSearchBedrockRerankingConfiguration
825
+ | undefined;
826
+ }
744
827
  export declare const RetrieveAndGenerateType: {
745
828
  readonly EXTERNAL_SOURCES: "EXTERNAL_SOURCES";
746
829
  readonly KNOWLEDGE_BASE: "KNOWLEDGE_BASE";
@@ -1922,58 +2005,6 @@ export declare const AuthorizationStatus: {
1922
2005
  };
1923
2006
  export type AuthorizationStatus =
1924
2007
  (typeof AuthorizationStatus)[keyof typeof AuthorizationStatus];
1925
- export declare const EntitlementAvailability: {
1926
- readonly AVAILABLE: "AVAILABLE";
1927
- readonly NOT_AVAILABLE: "NOT_AVAILABLE";
1928
- };
1929
- export type EntitlementAvailability =
1930
- (typeof EntitlementAvailability)[keyof typeof EntitlementAvailability];
1931
- export declare const RegionAvailability: {
1932
- readonly AVAILABLE: "AVAILABLE";
1933
- readonly NOT_AVAILABLE: "NOT_AVAILABLE";
1934
- };
1935
- export type RegionAvailability =
1936
- (typeof RegionAvailability)[keyof typeof RegionAvailability];
1937
- export interface GetFoundationModelAvailabilityResponse {
1938
- modelId: string | undefined;
1939
- agreementAvailability: AgreementAvailability | undefined;
1940
- authorizationStatus: AuthorizationStatus | undefined;
1941
- entitlementAvailability: EntitlementAvailability | undefined;
1942
- regionAvailability: RegionAvailability | undefined;
1943
- }
1944
- export declare const OfferType: {
1945
- readonly ALL: "ALL";
1946
- readonly PUBLIC: "PUBLIC";
1947
- };
1948
- export type OfferType = (typeof OfferType)[keyof typeof OfferType];
1949
- export interface ListFoundationModelAgreementOffersRequest {
1950
- modelId: string | undefined;
1951
- offerType?: OfferType | undefined;
1952
- }
1953
- export interface LegalTerm {
1954
- url?: string | undefined;
1955
- }
1956
- export interface SupportTerm {
1957
- refundPolicyDescription?: string | undefined;
1958
- }
1959
- export interface DimensionalPriceRate {
1960
- dimension?: string | undefined;
1961
- price?: string | undefined;
1962
- description?: string | undefined;
1963
- unit?: string | undefined;
1964
- }
1965
- export interface PricingTerm {
1966
- rateCard: DimensionalPriceRate[] | undefined;
1967
- }
1968
- export interface ValidityTerm {
1969
- agreementDuration?: string | undefined;
1970
- }
1971
- export interface TermDetails {
1972
- usageBasedPricingTerm: PricingTerm | undefined;
1973
- legalTerm: LegalTerm | undefined;
1974
- supportTerm: SupportTerm | undefined;
1975
- validityTerm?: ValidityTerm | undefined;
1976
- }
1977
2008
  export declare const RequestMetadataBaseFiltersFilterSensitiveLog: (
1978
2009
  obj: RequestMetadataBaseFilters
1979
2010
  ) => any;
@@ -2055,6 +2086,24 @@ export declare const ExternalSourcesRetrieveAndGenerateConfigurationFilterSensit
2055
2086
  export declare const GenerationConfigurationFilterSensitiveLog: (
2056
2087
  obj: GenerationConfiguration
2057
2088
  ) => any;
2089
+ export declare const MetadataAttributeSchemaFilterSensitiveLog: (
2090
+ obj: MetadataAttributeSchema
2091
+ ) => any;
2092
+ export declare const ImplicitFilterConfigurationFilterSensitiveLog: (
2093
+ obj: ImplicitFilterConfiguration
2094
+ ) => any;
2095
+ export declare const RerankingMetadataSelectiveModeConfigurationFilterSensitiveLog: (
2096
+ obj: RerankingMetadataSelectiveModeConfiguration
2097
+ ) => any;
2098
+ export declare const MetadataConfigurationForRerankingFilterSensitiveLog: (
2099
+ obj: MetadataConfigurationForReranking
2100
+ ) => any;
2101
+ export declare const VectorSearchBedrockRerankingConfigurationFilterSensitiveLog: (
2102
+ obj: VectorSearchBedrockRerankingConfiguration
2103
+ ) => any;
2104
+ export declare const VectorSearchRerankingConfigurationFilterSensitiveLog: (
2105
+ obj: VectorSearchRerankingConfiguration
2106
+ ) => any;
2058
2107
  export declare const GetEvaluationJobRequestFilterSensitiveLog: (
2059
2108
  obj: GetEvaluationJobRequest
2060
2109
  ) => any;
@@ -1,5 +1,7 @@
1
1
  import {
2
+ AgreementAvailability,
2
3
  ApplicationType,
4
+ AuthorizationStatus,
3
5
  CustomizationConfig,
4
6
  CustomizationType,
5
7
  EvaluationConfig,
@@ -11,6 +13,7 @@ import {
11
13
  ExternalSourcesRetrieveAndGenerateConfiguration,
12
14
  FilterAttribute,
13
15
  GenerationConfiguration,
16
+ ImplicitFilterConfiguration,
14
17
  OrchestrationConfiguration,
15
18
  OutputDataConfig,
16
19
  RetrieveAndGenerateType,
@@ -18,13 +21,65 @@ import {
18
21
  SortJobsBy,
19
22
  SortOrder,
20
23
  Tag,
21
- TermDetails,
22
24
  TrainingDataConfig,
23
25
  TrainingMetrics,
24
26
  ValidationDataConfig,
25
27
  ValidatorMetric,
28
+ VectorSearchRerankingConfiguration,
26
29
  VpcConfig,
27
30
  } from "./models_0";
31
+ export declare const EntitlementAvailability: {
32
+ readonly AVAILABLE: "AVAILABLE";
33
+ readonly NOT_AVAILABLE: "NOT_AVAILABLE";
34
+ };
35
+ export type EntitlementAvailability =
36
+ (typeof EntitlementAvailability)[keyof typeof EntitlementAvailability];
37
+ export declare const RegionAvailability: {
38
+ readonly AVAILABLE: "AVAILABLE";
39
+ readonly NOT_AVAILABLE: "NOT_AVAILABLE";
40
+ };
41
+ export type RegionAvailability =
42
+ (typeof RegionAvailability)[keyof typeof RegionAvailability];
43
+ export interface GetFoundationModelAvailabilityResponse {
44
+ modelId: string | undefined;
45
+ agreementAvailability: AgreementAvailability | undefined;
46
+ authorizationStatus: AuthorizationStatus | undefined;
47
+ entitlementAvailability: EntitlementAvailability | undefined;
48
+ regionAvailability: RegionAvailability | undefined;
49
+ }
50
+ export declare const OfferType: {
51
+ readonly ALL: "ALL";
52
+ readonly PUBLIC: "PUBLIC";
53
+ };
54
+ export type OfferType = (typeof OfferType)[keyof typeof OfferType];
55
+ export interface ListFoundationModelAgreementOffersRequest {
56
+ modelId: string | undefined;
57
+ offerType?: OfferType | undefined;
58
+ }
59
+ export interface LegalTerm {
60
+ url?: string | undefined;
61
+ }
62
+ export interface SupportTerm {
63
+ refundPolicyDescription?: string | undefined;
64
+ }
65
+ export interface DimensionalPriceRate {
66
+ dimension?: string | undefined;
67
+ price?: string | undefined;
68
+ description?: string | undefined;
69
+ unit?: string | undefined;
70
+ }
71
+ export interface PricingTerm {
72
+ rateCard: DimensionalPriceRate[] | undefined;
73
+ }
74
+ export interface ValidityTerm {
75
+ agreementDuration?: string | undefined;
76
+ }
77
+ export interface TermDetails {
78
+ usageBasedPricingTerm: PricingTerm | undefined;
79
+ legalTerm: LegalTerm | undefined;
80
+ supportTerm: SupportTerm | undefined;
81
+ validityTerm?: ValidityTerm | undefined;
82
+ }
28
83
  export interface Offer {
29
84
  offerId?: string | undefined;
30
85
  offerToken: string | undefined;
@@ -439,6 +494,8 @@ export interface KnowledgeBaseVectorSearchConfiguration {
439
494
  numberOfResults?: number | undefined;
440
495
  overrideSearchType?: SearchType | undefined;
441
496
  filter?: RetrievalFilter | undefined;
497
+ implicitFilterConfiguration?: ImplicitFilterConfiguration | undefined;
498
+ rerankingConfiguration?: VectorSearchRerankingConfiguration | undefined;
442
499
  }
443
500
  export interface KnowledgeBaseRetrievalConfiguration {
444
501
  vectorSearchConfiguration: KnowledgeBaseVectorSearchConfiguration | undefined;
@@ -72,8 +72,34 @@ export declare const getRuntimeConfig: (config: BedrockClientConfig) => {
72
72
  tls?: boolean;
73
73
  serviceConfiguredEndpoint?: never;
74
74
  authSchemePreference?: string[] | import("@smithy/types").Provider<string[]>;
75
- httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
75
+ httpAuthSchemes: (
76
+ | {
77
+ schemeId: string;
78
+ identityProvider: (
79
+ ipc: import("@smithy/types").IdentityProviderConfig
80
+ ) =>
81
+ | import("@smithy/types").IdentityProvider<
82
+ import("@smithy/types").Identity
83
+ >
84
+ | undefined;
85
+ signer: import("@aws-sdk/core").AwsSdkSigV4Signer;
86
+ }
87
+ | {
88
+ schemeId: string;
89
+ identityProvider: (
90
+ ipc: import("@smithy/types").IdentityProviderConfig
91
+ ) =>
92
+ | import("@smithy/types").IdentityProvider<
93
+ import("@smithy/types").Identity
94
+ >
95
+ | undefined;
96
+ signer: import("@smithy/core").HttpBearerAuthSigner;
97
+ }
98
+ )[];
76
99
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").BedrockHttpAuthSchemeProvider;
100
+ token?:
101
+ | import("@smithy/types").TokenIdentity
102
+ | import("@smithy/types").TokenIdentityProvider;
77
103
  credentials?:
78
104
  | import("@smithy/types").AwsCredentialIdentity
79
105
  | import("@smithy/types").AwsCredentialIdentityProvider;
@@ -1,4 +1,7 @@
1
+ import { AwsSdkSigV4Signer } from "@aws-sdk/core";
2
+ import { HttpBearerAuthSigner } from "@smithy/core";
1
3
  import { NodeHttpHandler as RequestHandler } from "@smithy/node-http-handler";
4
+ import { IdentityProviderConfig } from "@smithy/types";
2
5
  import { BedrockClientConfig } from "./BedrockClient";
3
6
  export declare const getRuntimeConfig: (config: BedrockClientConfig) => {
4
7
  runtime: string;
@@ -17,6 +20,30 @@ export declare const getRuntimeConfig: (config: BedrockClientConfig) => {
17
20
  defaultUserAgentProvider: (
18
21
  config?: import("@aws-sdk/util-user-agent-node").PreviouslyResolved
19
22
  ) => Promise<import("@smithy/types").UserAgent>;
23
+ httpAuthSchemes:
24
+ | import("@smithy/types").HttpAuthScheme[]
25
+ | (
26
+ | {
27
+ schemeId: string;
28
+ identityProvider: (
29
+ ipc: IdentityProviderConfig
30
+ ) =>
31
+ | import("@smithy/types").IdentityProvider<
32
+ import("@smithy/types").Identity
33
+ >
34
+ | undefined;
35
+ signer: AwsSdkSigV4Signer;
36
+ }
37
+ | {
38
+ schemeId: string;
39
+ identityProvider: (
40
+ ipc: IdentityProviderConfig
41
+ ) => import("@smithy/types").IdentityProvider<
42
+ import("@smithy/types").Identity
43
+ >;
44
+ signer: HttpBearerAuthSigner;
45
+ }
46
+ )[];
20
47
  maxAttempts: number | import("@smithy/types").Provider<number>;
21
48
  region: string | import("@smithy/types").Provider<string>;
22
49
  requestHandler:
@@ -69,8 +96,10 @@ export declare const getRuntimeConfig: (config: BedrockClientConfig) => {
69
96
  ) => import("@smithy/types").EndpointV2;
70
97
  tls?: boolean;
71
98
  serviceConfiguredEndpoint?: never;
72
- httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
73
99
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").BedrockHttpAuthSchemeProvider;
100
+ token?:
101
+ | import("@smithy/types").TokenIdentity
102
+ | import("@smithy/types").TokenIdentityProvider;
74
103
  credentials?:
75
104
  | import("@smithy/types").AwsCredentialIdentity
76
105
  | import("@smithy/types").AwsCredentialIdentityProvider;
@@ -76,8 +76,34 @@ export declare const getRuntimeConfig: (config: BedrockClientConfig) => {
76
76
  tls?: boolean;
77
77
  serviceConfiguredEndpoint?: never;
78
78
  authSchemePreference?: string[] | import("@smithy/types").Provider<string[]>;
79
- httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
79
+ httpAuthSchemes: (
80
+ | {
81
+ schemeId: string;
82
+ identityProvider: (
83
+ ipc: import("@smithy/types").IdentityProviderConfig
84
+ ) =>
85
+ | import("@smithy/types").IdentityProvider<
86
+ import("@smithy/types").Identity
87
+ >
88
+ | undefined;
89
+ signer: import("@aws-sdk/core").AwsSdkSigV4Signer;
90
+ }
91
+ | {
92
+ schemeId: string;
93
+ identityProvider: (
94
+ ipc: import("@smithy/types").IdentityProviderConfig
95
+ ) =>
96
+ | import("@smithy/types").IdentityProvider<
97
+ import("@smithy/types").Identity
98
+ >
99
+ | undefined;
100
+ signer: import("@smithy/core").HttpBearerAuthSigner;
101
+ }
102
+ )[];
80
103
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").BedrockHttpAuthSchemeProvider;
104
+ token?:
105
+ | import("@smithy/types").TokenIdentity
106
+ | import("@smithy/types").TokenIdentityProvider;
81
107
  credentials?:
82
108
  | import("@smithy/types").AwsCredentialIdentity
83
109
  | import("@smithy/types").AwsCredentialIdentityProvider;
@@ -1,3 +1,6 @@
1
+ import { AwsSdkSigV4Signer } from "@aws-sdk/core";
2
+ import { HttpBearerAuthSigner } from "@smithy/core";
3
+ import { IdentityProviderConfig } from "@smithy/types";
1
4
  import { BedrockClientConfig } from "./BedrockClient";
2
5
  export declare const getRuntimeConfig: (config: BedrockClientConfig) => {
3
6
  apiVersion: string;
@@ -12,7 +15,30 @@ export declare const getRuntimeConfig: (config: BedrockClientConfig) => {
12
15
  ) => import("@smithy/types").EndpointV2;
13
16
  extensions: import("./runtimeExtensions").RuntimeExtension[];
14
17
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").BedrockHttpAuthSchemeProvider;
15
- httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
18
+ httpAuthSchemes: (
19
+ | {
20
+ schemeId: string;
21
+ identityProvider: (
22
+ ipc: IdentityProviderConfig
23
+ ) =>
24
+ | import("@smithy/types").IdentityProvider<
25
+ import("@smithy/types").Identity
26
+ >
27
+ | undefined;
28
+ signer: AwsSdkSigV4Signer;
29
+ }
30
+ | {
31
+ schemeId: string;
32
+ identityProvider: (
33
+ ipc: IdentityProviderConfig
34
+ ) =>
35
+ | import("@smithy/types").IdentityProvider<
36
+ import("@smithy/types").Identity
37
+ >
38
+ | undefined;
39
+ signer: HttpBearerAuthSigner;
40
+ }
41
+ )[];
16
42
  logger: import("@smithy/types").Logger;
17
43
  serviceId: string;
18
44
  urlParser: import("@smithy/types").UrlParser;
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.839.0",
4
+ "version": "3.840.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",
@@ -20,17 +20,18 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.839.0",
24
- "@aws-sdk/credential-provider-node": "3.839.0",
25
- "@aws-sdk/middleware-host-header": "3.821.0",
26
- "@aws-sdk/middleware-logger": "3.821.0",
27
- "@aws-sdk/middleware-recursion-detection": "3.821.0",
28
- "@aws-sdk/middleware-user-agent": "3.839.0",
29
- "@aws-sdk/region-config-resolver": "3.821.0",
30
- "@aws-sdk/types": "3.821.0",
31
- "@aws-sdk/util-endpoints": "3.828.0",
32
- "@aws-sdk/util-user-agent-browser": "3.821.0",
33
- "@aws-sdk/util-user-agent-node": "3.839.0",
23
+ "@aws-sdk/core": "3.840.0",
24
+ "@aws-sdk/credential-provider-node": "3.840.0",
25
+ "@aws-sdk/middleware-host-header": "3.840.0",
26
+ "@aws-sdk/middleware-logger": "3.840.0",
27
+ "@aws-sdk/middleware-recursion-detection": "3.840.0",
28
+ "@aws-sdk/middleware-user-agent": "3.840.0",
29
+ "@aws-sdk/region-config-resolver": "3.840.0",
30
+ "@aws-sdk/token-providers": "3.840.0",
31
+ "@aws-sdk/types": "3.840.0",
32
+ "@aws-sdk/util-endpoints": "3.840.0",
33
+ "@aws-sdk/util-user-agent-browser": "3.840.0",
34
+ "@aws-sdk/util-user-agent-node": "3.840.0",
34
35
  "@smithy/config-resolver": "^4.1.4",
35
36
  "@smithy/core": "^3.6.0",
36
37
  "@smithy/fetch-http-handler": "^5.0.4",