@aws-sdk/client-bedrock 3.674.0 → 3.675.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 CHANGED
@@ -1842,6 +1842,7 @@ var de_GetImportedModelCommand = /* @__PURE__ */ __name(async (output, context)
1842
1842
  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1843
1843
  const doc = (0, import_smithy_client.take)(data, {
1844
1844
  creationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
1845
+ instructSupported: import_smithy_client.expectBoolean,
1845
1846
  jobArn: import_smithy_client.expectString,
1846
1847
  jobName: import_smithy_client.expectString,
1847
1848
  modelArchitecture: import_smithy_client.expectString,
@@ -2526,6 +2527,8 @@ var de_GuardrailSummary = /* @__PURE__ */ __name((output, context) => {
2526
2527
  var de_ImportedModelSummary = /* @__PURE__ */ __name((output, context) => {
2527
2528
  return (0, import_smithy_client.take)(output, {
2528
2529
  creationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
2530
+ instructSupported: import_smithy_client.expectBoolean,
2531
+ modelArchitecture: import_smithy_client.expectString,
2529
2532
  modelArn: import_smithy_client.expectString,
2530
2533
  modelName: import_smithy_client.expectString
2531
2534
  });
@@ -1,6 +1,6 @@
1
1
  import { awsExpectUnion as __expectUnion, loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
2
2
  import { requestBuilder as rb } from "@smithy/core";
3
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, limitedParseFloat32 as __limitedParseFloat32, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, serializeDateTime as __serializeDateTime, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
3
+ import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, limitedParseFloat32 as __limitedParseFloat32, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, serializeDateTime as __serializeDateTime, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
4
4
  import { v4 as generateIdempotencyToken } from "uuid";
5
5
  import { BedrockServiceException as __BaseException } from "../models/BedrockServiceException";
6
6
  import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, TooManyTagsException, ValidationException, } from "../models/models_0";
@@ -932,6 +932,7 @@ export const de_GetImportedModelCommand = async (output, context) => {
932
932
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
933
933
  const doc = take(data, {
934
934
  creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
935
+ instructSupported: __expectBoolean,
935
936
  jobArn: __expectString,
936
937
  jobName: __expectString,
937
938
  modelArchitecture: __expectString,
@@ -1626,6 +1627,8 @@ const de_GuardrailSummary = (output, context) => {
1626
1627
  const de_ImportedModelSummary = (output, context) => {
1627
1628
  return take(output, {
1628
1629
  creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1630
+ instructSupported: __expectBoolean,
1631
+ modelArchitecture: __expectString,
1629
1632
  modelArn: __expectString,
1630
1633
  modelName: __expectString,
1631
1634
  });
@@ -52,6 +52,7 @@ declare const GetImportedModelCommand_base: {
52
52
  * // creationTime: new Date("TIMESTAMP"),
53
53
  * // modelArchitecture: "STRING_VALUE",
54
54
  * // modelKmsKeyArn: "STRING_VALUE",
55
+ * // instructSupported: true || false,
55
56
  * // };
56
57
  *
57
58
  * ```
@@ -54,6 +54,8 @@ declare const ListImportedModelsCommand_base: {
54
54
  * // modelArn: "STRING_VALUE", // required
55
55
  * // modelName: "STRING_VALUE", // required
56
56
  * // creationTime: new Date("TIMESTAMP"), // required
57
+ * // instructSupported: true || false,
58
+ * // modelArchitecture: "STRING_VALUE",
57
59
  * // },
58
60
  * // ],
59
61
  * // };
@@ -2883,6 +2883,11 @@ export interface GetImportedModelResponse {
2883
2883
  * @public
2884
2884
  */
2885
2885
  modelKmsKeyArn?: string;
2886
+ /**
2887
+ * <p>Specifies if the imported model supports fine tuning.</p>
2888
+ * @public
2889
+ */
2890
+ instructSupported?: boolean;
2886
2891
  }
2887
2892
  /**
2888
2893
  * @public
@@ -3030,7 +3035,7 @@ export interface ListImportedModelsRequest {
3030
3035
  sortOrder?: SortOrder;
3031
3036
  }
3032
3037
  /**
3033
- * <p>Information about tne imported model.</p>
3038
+ * <p>Information about the imported model.</p>
3034
3039
  * @public
3035
3040
  */
3036
3041
  export interface ImportedModelSummary {
@@ -3049,6 +3054,16 @@ export interface ImportedModelSummary {
3049
3054
  * @public
3050
3055
  */
3051
3056
  creationTime: Date | undefined;
3057
+ /**
3058
+ * <p>Specifies if the imported model supports fine tuning.</p>
3059
+ * @public
3060
+ */
3061
+ instructSupported?: boolean;
3062
+ /**
3063
+ * <p>The architecture of the imported model.</p>
3064
+ * @public
3065
+ */
3066
+ modelArchitecture?: string;
3052
3067
  }
3053
3068
  /**
3054
3069
  * @public
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: BedrockClientConfig) => {
8
8
  defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
9
9
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
10
  credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
11
- defaultUserAgentProvider: (config: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved) => Promise<import("@smithy/types").UserAgent>;
11
+ defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
12
12
  maxAttempts: number | import("@smithy/types").Provider<number>;
13
13
  region: string | import("@smithy/types").Provider<any>;
14
14
  requestHandler: import("@smithy/protocol-http").HttpHandler<any> | RequestHandler;
@@ -20,7 +20,7 @@ export declare const getRuntimeConfig: (config: BedrockClientConfig) => {
20
20
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
21
21
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
22
22
  region: string | import("@smithy/types").Provider<any>;
23
- defaultUserAgentProvider: (config: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved) => Promise<import("@smithy/types").UserAgent>;
23
+ defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
24
24
  credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
25
25
  maxAttempts: number | import("@smithy/types").Provider<number>;
26
26
  retryMode: string | import("@smithy/types").Provider<string>;
@@ -748,6 +748,7 @@ export interface GetImportedModelResponse {
748
748
  creationTime?: Date;
749
749
  modelArchitecture?: string;
750
750
  modelKmsKeyArn?: string;
751
+ instructSupported?: boolean;
751
752
  }
752
753
  export interface GetModelImportJobRequest {
753
754
  jobIdentifier: string | undefined;
@@ -791,6 +792,8 @@ export interface ImportedModelSummary {
791
792
  modelArn: string | undefined;
792
793
  modelName: string | undefined;
793
794
  creationTime: Date | undefined;
795
+ instructSupported?: boolean;
796
+ modelArchitecture?: string;
794
797
  }
795
798
  export interface ListImportedModelsResponse {
796
799
  nextToken?: string;
@@ -10,7 +10,9 @@ export declare const getRuntimeConfig: (config: BedrockClientConfig) => {
10
10
  input: any
11
11
  ) => import("@smithy/types").AwsCredentialIdentityProvider;
12
12
  defaultUserAgentProvider: (
13
- config: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
13
+ config?:
14
+ | import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
15
+ | undefined
14
16
  ) => Promise<import("@smithy/types").UserAgent>;
15
17
  maxAttempts: number | import("@smithy/types").Provider<number>;
16
18
  region: string | import("@smithy/types").Provider<any>;
@@ -23,7 +23,9 @@ export declare const getRuntimeConfig: (config: BedrockClientConfig) => {
23
23
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
24
24
  region: string | import("@smithy/types").Provider<any>;
25
25
  defaultUserAgentProvider: (
26
- config: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
26
+ config?:
27
+ | import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
28
+ | undefined
27
29
  ) => Promise<import("@smithy/types").UserAgent>;
28
30
  credentialDefaultProvider: (
29
31
  input: any
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.674.0",
4
+ "version": "3.675.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,10 +20,10 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/client-sso-oidc": "3.670.0",
24
- "@aws-sdk/client-sts": "3.670.0",
23
+ "@aws-sdk/client-sso-oidc": "3.675.0",
24
+ "@aws-sdk/client-sts": "3.675.0",
25
25
  "@aws-sdk/core": "3.667.0",
26
- "@aws-sdk/credential-provider-node": "3.670.0",
26
+ "@aws-sdk/credential-provider-node": "3.675.0",
27
27
  "@aws-sdk/middleware-host-header": "3.667.0",
28
28
  "@aws-sdk/middleware-logger": "3.667.0",
29
29
  "@aws-sdk/middleware-recursion-detection": "3.667.0",
@@ -31,7 +31,7 @@
31
31
  "@aws-sdk/region-config-resolver": "3.667.0",
32
32
  "@aws-sdk/types": "3.667.0",
33
33
  "@aws-sdk/util-endpoints": "3.667.0",
34
- "@aws-sdk/util-user-agent-browser": "3.670.0",
34
+ "@aws-sdk/util-user-agent-browser": "3.675.0",
35
35
  "@aws-sdk/util-user-agent-node": "3.669.0",
36
36
  "@smithy/config-resolver": "^3.0.9",
37
37
  "@smithy/core": "^2.4.8",