@aws-sdk/client-bedrock 3.703.0 → 3.705.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.
@@ -738,6 +738,7 @@ export interface LoggingConfig {
738
738
  textDataDeliveryEnabled?: boolean | undefined;
739
739
  imageDataDeliveryEnabled?: boolean | undefined;
740
740
  embeddingDataDeliveryEnabled?: boolean | undefined;
741
+ videoDataDeliveryEnabled?: boolean | undefined;
741
742
  }
742
743
  export interface GetModelInvocationLoggingConfigurationResponse {
743
744
  loggingConfig?: LoggingConfig | undefined;
@@ -1084,8 +1085,34 @@ export interface DeleteCustomModelResponse {}
1084
1085
  export interface GetCustomModelRequest {
1085
1086
  modelIdentifier: string | undefined;
1086
1087
  }
1088
+ export interface TeacherModelConfig {
1089
+ teacherModelIdentifier: string | undefined;
1090
+ maxResponseLengthForInference?: number | undefined;
1091
+ }
1092
+ export interface DistillationConfig {
1093
+ teacherModelConfig: TeacherModelConfig | undefined;
1094
+ }
1095
+ export type CustomizationConfig =
1096
+ | CustomizationConfig.DistillationConfigMember
1097
+ | CustomizationConfig.$UnknownMember;
1098
+ export declare namespace CustomizationConfig {
1099
+ interface DistillationConfigMember {
1100
+ distillationConfig: DistillationConfig;
1101
+ $unknown?: never;
1102
+ }
1103
+ interface $UnknownMember {
1104
+ distillationConfig?: never;
1105
+ $unknown: [string, any];
1106
+ }
1107
+ interface Visitor<T> {
1108
+ distillationConfig: (value: DistillationConfig) => T;
1109
+ _: (name: string, value: any) => T;
1110
+ }
1111
+ const visit: <T>(value: CustomizationConfig, visitor: Visitor<T>) => T;
1112
+ }
1087
1113
  export declare const CustomizationType: {
1088
1114
  readonly CONTINUED_PRE_TRAINING: "CONTINUED_PRE_TRAINING";
1115
+ readonly DISTILLATION: "DISTILLATION";
1089
1116
  readonly FINE_TUNING: "FINE_TUNING";
1090
1117
  };
1091
1118
  export type CustomizationType =
@@ -1093,8 +1120,87 @@ export type CustomizationType =
1093
1120
  export interface OutputDataConfig {
1094
1121
  s3Uri: string | undefined;
1095
1122
  }
1123
+ export type InvocationLogSource =
1124
+ | InvocationLogSource.S3UriMember
1125
+ | InvocationLogSource.$UnknownMember;
1126
+ export declare namespace InvocationLogSource {
1127
+ interface S3UriMember {
1128
+ s3Uri: string;
1129
+ $unknown?: never;
1130
+ }
1131
+ interface $UnknownMember {
1132
+ s3Uri?: never;
1133
+ $unknown: [string, any];
1134
+ }
1135
+ interface Visitor<T> {
1136
+ s3Uri: (value: string) => T;
1137
+ _: (name: string, value: any) => T;
1138
+ }
1139
+ const visit: <T>(value: InvocationLogSource, visitor: Visitor<T>) => T;
1140
+ }
1141
+ export interface RequestMetadataBaseFilters {
1142
+ equals?: Record<string, string> | undefined;
1143
+ notEquals?: Record<string, string> | undefined;
1144
+ }
1145
+ export type RequestMetadataFilters =
1146
+ | RequestMetadataFilters.AndAllMember
1147
+ | RequestMetadataFilters.EqualsMember
1148
+ | RequestMetadataFilters.NotEqualsMember
1149
+ | RequestMetadataFilters.OrAllMember
1150
+ | RequestMetadataFilters.$UnknownMember;
1151
+ export declare namespace RequestMetadataFilters {
1152
+ interface EqualsMember {
1153
+ equals: Record<string, string>;
1154
+ notEquals?: never;
1155
+ andAll?: never;
1156
+ orAll?: never;
1157
+ $unknown?: never;
1158
+ }
1159
+ interface NotEqualsMember {
1160
+ equals?: never;
1161
+ notEquals: Record<string, string>;
1162
+ andAll?: never;
1163
+ orAll?: never;
1164
+ $unknown?: never;
1165
+ }
1166
+ interface AndAllMember {
1167
+ equals?: never;
1168
+ notEquals?: never;
1169
+ andAll: RequestMetadataBaseFilters[];
1170
+ orAll?: never;
1171
+ $unknown?: never;
1172
+ }
1173
+ interface OrAllMember {
1174
+ equals?: never;
1175
+ notEquals?: never;
1176
+ andAll?: never;
1177
+ orAll: RequestMetadataBaseFilters[];
1178
+ $unknown?: never;
1179
+ }
1180
+ interface $UnknownMember {
1181
+ equals?: never;
1182
+ notEquals?: never;
1183
+ andAll?: never;
1184
+ orAll?: never;
1185
+ $unknown: [string, any];
1186
+ }
1187
+ interface Visitor<T> {
1188
+ equals: (value: Record<string, string>) => T;
1189
+ notEquals: (value: Record<string, string>) => T;
1190
+ andAll: (value: RequestMetadataBaseFilters[]) => T;
1191
+ orAll: (value: RequestMetadataBaseFilters[]) => T;
1192
+ _: (name: string, value: any) => T;
1193
+ }
1194
+ const visit: <T>(value: RequestMetadataFilters, visitor: Visitor<T>) => T;
1195
+ }
1196
+ export interface InvocationLogsConfig {
1197
+ usePromptResponse?: boolean | undefined;
1198
+ invocationLogSource: InvocationLogSource | undefined;
1199
+ requestMetadataFilters?: RequestMetadataFilters | undefined;
1200
+ }
1096
1201
  export interface TrainingDataConfig {
1097
- s3Uri: string | undefined;
1202
+ s3Uri?: string | undefined;
1203
+ invocationLogsConfig?: InvocationLogsConfig | undefined;
1098
1204
  }
1099
1205
  export interface TrainingMetrics {
1100
1206
  trainingLoss?: number | undefined;
@@ -1123,12 +1229,14 @@ export interface GetCustomModelResponse {
1123
1229
  trainingMetrics?: TrainingMetrics | undefined;
1124
1230
  validationMetrics?: ValidatorMetric[] | undefined;
1125
1231
  creationTime: Date | undefined;
1232
+ customizationConfig?: CustomizationConfig | undefined;
1126
1233
  }
1127
1234
  export interface GetFoundationModelRequest {
1128
1235
  modelIdentifier: string | undefined;
1129
1236
  }
1130
1237
  export declare const ModelCustomization: {
1131
1238
  readonly CONTINUED_PRE_TRAINING: "CONTINUED_PRE_TRAINING";
1239
+ readonly DISTILLATION: "DISTILLATION";
1132
1240
  readonly FINE_TUNING: "FINE_TUNING";
1133
1241
  };
1134
1242
  export type ModelCustomization =
@@ -1330,8 +1438,9 @@ export interface CreateModelCustomizationJobRequest {
1330
1438
  trainingDataConfig: TrainingDataConfig | undefined;
1331
1439
  validationDataConfig?: ValidationDataConfig | undefined;
1332
1440
  outputDataConfig: OutputDataConfig | undefined;
1333
- hyperParameters: Record<string, string> | undefined;
1441
+ hyperParameters?: Record<string, string> | undefined;
1334
1442
  vpcConfig?: VpcConfig | undefined;
1443
+ customizationConfig?: CustomizationConfig | undefined;
1335
1444
  }
1336
1445
  export interface CreateModelCustomizationJobResponse {
1337
1446
  jobArn: string | undefined;
@@ -1361,7 +1470,7 @@ export interface GetModelCustomizationJobResponse {
1361
1470
  lastModifiedTime?: Date | undefined;
1362
1471
  endTime?: Date | undefined;
1363
1472
  baseModelArn: string | undefined;
1364
- hyperParameters: Record<string, string> | undefined;
1473
+ hyperParameters?: Record<string, string> | undefined;
1365
1474
  trainingDataConfig: TrainingDataConfig | undefined;
1366
1475
  validationDataConfig: ValidationDataConfig | undefined;
1367
1476
  outputDataConfig: OutputDataConfig | undefined;
@@ -1370,6 +1479,7 @@ export interface GetModelCustomizationJobResponse {
1370
1479
  trainingMetrics?: TrainingMetrics | undefined;
1371
1480
  validationMetrics?: ValidatorMetric[] | undefined;
1372
1481
  vpcConfig?: VpcConfig | undefined;
1482
+ customizationConfig?: CustomizationConfig | undefined;
1373
1483
  }
1374
1484
  export declare const FineTuningJobStatus: {
1375
1485
  readonly COMPLETED: "Completed";
@@ -1912,6 +2022,27 @@ export declare const ModelInvocationJobSummaryFilterSensitiveLog: (
1912
2022
  export declare const ListModelInvocationJobsResponseFilterSensitiveLog: (
1913
2023
  obj: ListModelInvocationJobsResponse
1914
2024
  ) => any;
2025
+ export declare const RequestMetadataBaseFiltersFilterSensitiveLog: (
2026
+ obj: RequestMetadataBaseFilters
2027
+ ) => any;
2028
+ export declare const RequestMetadataFiltersFilterSensitiveLog: (
2029
+ obj: RequestMetadataFilters
2030
+ ) => any;
2031
+ export declare const InvocationLogsConfigFilterSensitiveLog: (
2032
+ obj: InvocationLogsConfig
2033
+ ) => any;
2034
+ export declare const TrainingDataConfigFilterSensitiveLog: (
2035
+ obj: TrainingDataConfig
2036
+ ) => any;
2037
+ export declare const GetCustomModelResponseFilterSensitiveLog: (
2038
+ obj: GetCustomModelResponse
2039
+ ) => any;
2040
+ export declare const CreateModelCustomizationJobRequestFilterSensitiveLog: (
2041
+ obj: CreateModelCustomizationJobRequest
2042
+ ) => any;
2043
+ export declare const GetModelCustomizationJobResponseFilterSensitiveLog: (
2044
+ obj: GetModelCustomizationJobResponse
2045
+ ) => any;
1915
2046
  export declare const RetrievalFilterFilterSensitiveLog: (
1916
2047
  obj: RetrievalFilter
1917
2048
  ) => 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.703.0",
4
+ "version": "3.705.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",