@aws-sdk/client-bedrock 3.427.0 → 3.429.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.
@@ -416,12 +416,12 @@ export interface FoundationModelDetails {
416
416
  * @public
417
417
  * <p>The input modalities that the model supports.</p>
418
418
  */
419
- inputModalities?: (ModelModality | string)[];
419
+ inputModalities?: ModelModality[];
420
420
  /**
421
421
  * @public
422
422
  * <p>The output modalities that the model supports.</p>
423
423
  */
424
- outputModalities?: (ModelModality | string)[];
424
+ outputModalities?: ModelModality[];
425
425
  /**
426
426
  * @public
427
427
  * <p>Indicates whether the model supports streaming.</p>
@@ -431,12 +431,12 @@ export interface FoundationModelDetails {
431
431
  * @public
432
432
  * <p>The customization that the model supports.</p>
433
433
  */
434
- customizationsSupported?: (ModelCustomization | string)[];
434
+ customizationsSupported?: ModelCustomization[];
435
435
  /**
436
436
  * @public
437
437
  * <p>The inference types that the model supports.</p>
438
438
  */
439
- inferenceTypesSupported?: (InferenceType | string)[];
439
+ inferenceTypesSupported?: InferenceType[];
440
440
  }
441
441
  /**
442
442
  * @public
@@ -514,12 +514,12 @@ export interface ListCustomModelsRequest {
514
514
  * @public
515
515
  * <p>The field to sort by in the returned list of models.</p>
516
516
  */
517
- sortBy?: SortModelsBy | string;
517
+ sortBy?: SortModelsBy;
518
518
  /**
519
519
  * @public
520
520
  * <p>The sort order of the results.</p>
521
521
  */
522
- sortOrder?: SortOrder | string;
522
+ sortOrder?: SortOrder;
523
523
  }
524
524
  /**
525
525
  * @public
@@ -580,17 +580,17 @@ export interface ListFoundationModelsRequest {
580
580
  * @public
581
581
  * <p>List by customization type.</p>
582
582
  */
583
- byCustomizationType?: ModelCustomization | string;
583
+ byCustomizationType?: ModelCustomization;
584
584
  /**
585
585
  * @public
586
586
  * <p>List by output modality type.</p>
587
587
  */
588
- byOutputModality?: ModelModality | string;
588
+ byOutputModality?: ModelModality;
589
589
  /**
590
590
  * @public
591
591
  * <p>List by inference type.</p>
592
592
  */
593
- byInferenceType?: InferenceType | string;
593
+ byInferenceType?: InferenceType;
594
594
  }
595
595
  /**
596
596
  * @public
@@ -621,12 +621,12 @@ export interface FoundationModelSummary {
621
621
  * @public
622
622
  * <p>The input modalities that the model supports.</p>
623
623
  */
624
- inputModalities?: (ModelModality | string)[];
624
+ inputModalities?: ModelModality[];
625
625
  /**
626
626
  * @public
627
627
  * <p>The output modalities that the model supports.</p>
628
628
  */
629
- outputModalities?: (ModelModality | string)[];
629
+ outputModalities?: ModelModality[];
630
630
  /**
631
631
  * @public
632
632
  * <p>Indicates whether the model supports streaming.</p>
@@ -636,12 +636,12 @@ export interface FoundationModelSummary {
636
636
  * @public
637
637
  * <p>Whether the model supports fine-tuning or continual pre-training.</p>
638
638
  */
639
- customizationsSupported?: (ModelCustomization | string)[];
639
+ customizationsSupported?: ModelCustomization[];
640
640
  /**
641
641
  * @public
642
642
  * <p>The inference types that the model supports.</p>
643
643
  */
644
- inferenceTypesSupported?: (InferenceType | string)[];
644
+ inferenceTypesSupported?: InferenceType[];
645
645
  }
646
646
  /**
647
647
  * @public
@@ -710,7 +710,7 @@ export interface CreateProvisionedModelThroughputRequest {
710
710
  * @public
711
711
  * <p>Commitment duration requested for the provisioned throughput.</p>
712
712
  */
713
- commitmentDuration?: CommitmentDuration | string;
713
+ commitmentDuration?: CommitmentDuration;
714
714
  /**
715
715
  * @public
716
716
  * <p>Tags to associate with this provisioned throughput.</p>
@@ -839,7 +839,7 @@ export interface GetProvisionedModelThroughputResponse {
839
839
  * @public
840
840
  * <p>Status of the provisioned throughput. </p>
841
841
  */
842
- status: ProvisionedModelStatus | string | undefined;
842
+ status: ProvisionedModelStatus | undefined;
843
843
  /**
844
844
  * @public
845
845
  * <p>The timestamp of the creation time for this provisioned throughput. </p>
@@ -859,7 +859,7 @@ export interface GetProvisionedModelThroughputResponse {
859
859
  * @public
860
860
  * <p>Commitment duration of the provisioned throughput.</p>
861
861
  */
862
- commitmentDuration?: CommitmentDuration | string;
862
+ commitmentDuration?: CommitmentDuration;
863
863
  /**
864
864
  * @public
865
865
  * <p>Commitment expiration time for the provisioned throughput.</p>
@@ -895,7 +895,7 @@ export interface ListProvisionedModelThroughputsRequest {
895
895
  * @public
896
896
  * <p>Return the list of provisioned capacities that match the specified status.</p>
897
897
  */
898
- statusEquals?: ProvisionedModelStatus | string;
898
+ statusEquals?: ProvisionedModelStatus;
899
899
  /**
900
900
  * @public
901
901
  * <p>Return the list of provisioned capacities where their model ARN is equal to this parameter.</p>
@@ -920,12 +920,12 @@ export interface ListProvisionedModelThroughputsRequest {
920
920
  * @public
921
921
  * <p>The field to sort by in the returned list of provisioned capacities.</p>
922
922
  */
923
- sortBy?: SortByProvisionedModels | string;
923
+ sortBy?: SortByProvisionedModels;
924
924
  /**
925
925
  * @public
926
926
  * <p>The sort order of the results.</p>
927
927
  */
928
- sortOrder?: SortOrder | string;
928
+ sortOrder?: SortOrder;
929
929
  }
930
930
  /**
931
931
  * @public
@@ -971,12 +971,12 @@ export interface ProvisionedModelSummary {
971
971
  * @public
972
972
  * <p>Status of the provisioned throughput.</p>
973
973
  */
974
- status: ProvisionedModelStatus | string | undefined;
974
+ status: ProvisionedModelStatus | undefined;
975
975
  /**
976
976
  * @public
977
977
  * <p>Commitment duration for the provisioned throughput.</p>
978
978
  */
979
- commitmentDuration?: CommitmentDuration | string;
979
+ commitmentDuration?: CommitmentDuration;
980
980
  /**
981
981
  * @public
982
982
  * <p>Commitment expiration time for the provisioned throughput.</p>
@@ -1257,7 +1257,7 @@ export interface GetModelCustomizationJobResponse {
1257
1257
  * <p>The status of the job. A successful job transitions from in-progress to completed when the output model is ready to use.
1258
1258
  * If the job failed, the failure message contains information about why the job failed.</p>
1259
1259
  */
1260
- status?: ModelCustomizationJobStatus | string;
1260
+ status?: ModelCustomizationJobStatus;
1261
1261
  /**
1262
1262
  * @public
1263
1263
  * <p>Information about why the job failed.</p>
@@ -1368,7 +1368,7 @@ export interface ListModelCustomizationJobsRequest {
1368
1368
  * @public
1369
1369
  * <p>Return customization jobs with the specified status. </p>
1370
1370
  */
1371
- statusEquals?: FineTuningJobStatus | string;
1371
+ statusEquals?: FineTuningJobStatus;
1372
1372
  /**
1373
1373
  * @public
1374
1374
  * <p>Return customization jobs only if the job name contains these characters.</p>
@@ -1388,12 +1388,12 @@ export interface ListModelCustomizationJobsRequest {
1388
1388
  * @public
1389
1389
  * <p>The field to sort by in the returned list of jobs.</p>
1390
1390
  */
1391
- sortBy?: SortJobsBy | string;
1391
+ sortBy?: SortJobsBy;
1392
1392
  /**
1393
1393
  * @public
1394
1394
  * <p>The sort order of the results.</p>
1395
1395
  */
1396
- sortOrder?: SortOrder | string;
1396
+ sortOrder?: SortOrder;
1397
1397
  }
1398
1398
  /**
1399
1399
  * @public
@@ -1419,7 +1419,7 @@ export interface ModelCustomizationJobSummary {
1419
1419
  * @public
1420
1420
  * <p>Status of the customization job. </p>
1421
1421
  */
1422
- status: ModelCustomizationJobStatus | string | undefined;
1422
+ status: ModelCustomizationJobStatus | undefined;
1423
1423
  /**
1424
1424
  * @public
1425
1425
  * <p>Time that the customization job was last modified.</p>
@@ -130,11 +130,11 @@ export interface FoundationModelDetails {
130
130
  modelId: string | undefined;
131
131
  modelName?: string;
132
132
  providerName?: string;
133
- inputModalities?: (ModelModality | string)[];
134
- outputModalities?: (ModelModality | string)[];
133
+ inputModalities?: ModelModality[];
134
+ outputModalities?: ModelModality[];
135
135
  responseStreamingSupported?: boolean;
136
- customizationsSupported?: (ModelCustomization | string)[];
137
- inferenceTypesSupported?: (InferenceType | string)[];
136
+ customizationsSupported?: ModelCustomization[];
137
+ inferenceTypesSupported?: InferenceType[];
138
138
  }
139
139
  export interface GetFoundationModelResponse {
140
140
  modelDetails?: FoundationModelDetails;
@@ -156,8 +156,8 @@ export interface ListCustomModelsRequest {
156
156
  foundationModelArnEquals?: string;
157
157
  maxResults?: number;
158
158
  nextToken?: string;
159
- sortBy?: SortModelsBy | string;
160
- sortOrder?: SortOrder | string;
159
+ sortBy?: SortModelsBy;
160
+ sortOrder?: SortOrder;
161
161
  }
162
162
  export interface CustomModelSummary {
163
163
  modelArn: string | undefined;
@@ -172,20 +172,20 @@ export interface ListCustomModelsResponse {
172
172
  }
173
173
  export interface ListFoundationModelsRequest {
174
174
  byProvider?: string;
175
- byCustomizationType?: ModelCustomization | string;
176
- byOutputModality?: ModelModality | string;
177
- byInferenceType?: InferenceType | string;
175
+ byCustomizationType?: ModelCustomization;
176
+ byOutputModality?: ModelModality;
177
+ byInferenceType?: InferenceType;
178
178
  }
179
179
  export interface FoundationModelSummary {
180
180
  modelArn: string | undefined;
181
181
  modelId: string | undefined;
182
182
  modelName?: string;
183
183
  providerName?: string;
184
- inputModalities?: (ModelModality | string)[];
185
- outputModalities?: (ModelModality | string)[];
184
+ inputModalities?: ModelModality[];
185
+ outputModalities?: ModelModality[];
186
186
  responseStreamingSupported?: boolean;
187
- customizationsSupported?: (ModelCustomization | string)[];
188
- inferenceTypesSupported?: (InferenceType | string)[];
187
+ customizationsSupported?: ModelCustomization[];
188
+ inferenceTypesSupported?: InferenceType[];
189
189
  }
190
190
  export interface ListFoundationModelsResponse {
191
191
  modelSummaries?: FoundationModelSummary[];
@@ -205,7 +205,7 @@ export interface CreateProvisionedModelThroughputRequest {
205
205
  modelUnits: number | undefined;
206
206
  provisionedModelName: string | undefined;
207
207
  modelId: string | undefined;
208
- commitmentDuration?: CommitmentDuration | string;
208
+ commitmentDuration?: CommitmentDuration;
209
209
  tags?: Tag[];
210
210
  }
211
211
  export interface CreateProvisionedModelThroughputResponse {
@@ -249,11 +249,11 @@ export interface GetProvisionedModelThroughputResponse {
249
249
  modelArn: string | undefined;
250
250
  desiredModelArn: string | undefined;
251
251
  foundationModelArn: string | undefined;
252
- status: ProvisionedModelStatus | string | undefined;
252
+ status: ProvisionedModelStatus | undefined;
253
253
  creationTime: Date | undefined;
254
254
  lastModifiedTime: Date | undefined;
255
255
  failureMessage?: string;
256
- commitmentDuration?: CommitmentDuration | string;
256
+ commitmentDuration?: CommitmentDuration;
257
257
  commitmentExpirationTime?: Date;
258
258
  }
259
259
  export declare const SortByProvisionedModels: {
@@ -264,13 +264,13 @@ export type SortByProvisionedModels =
264
264
  export interface ListProvisionedModelThroughputsRequest {
265
265
  creationTimeAfter?: Date;
266
266
  creationTimeBefore?: Date;
267
- statusEquals?: ProvisionedModelStatus | string;
267
+ statusEquals?: ProvisionedModelStatus;
268
268
  modelArnEquals?: string;
269
269
  nameContains?: string;
270
270
  maxResults?: number;
271
271
  nextToken?: string;
272
- sortBy?: SortByProvisionedModels | string;
273
- sortOrder?: SortOrder | string;
272
+ sortBy?: SortByProvisionedModels;
273
+ sortOrder?: SortOrder;
274
274
  }
275
275
  export interface ProvisionedModelSummary {
276
276
  provisionedModelName: string | undefined;
@@ -280,8 +280,8 @@ export interface ProvisionedModelSummary {
280
280
  foundationModelArn: string | undefined;
281
281
  modelUnits: number | undefined;
282
282
  desiredModelUnits: number | undefined;
283
- status: ProvisionedModelStatus | string | undefined;
284
- commitmentDuration?: CommitmentDuration | string;
283
+ status: ProvisionedModelStatus | undefined;
284
+ commitmentDuration?: CommitmentDuration;
285
285
  commitmentExpirationTime?: Date;
286
286
  creationTime: Date | undefined;
287
287
  lastModifiedTime: Date | undefined;
@@ -353,7 +353,7 @@ export interface GetModelCustomizationJobResponse {
353
353
  outputModelArn?: string;
354
354
  clientRequestToken?: string;
355
355
  roleArn: string | undefined;
356
- status?: ModelCustomizationJobStatus | string;
356
+ status?: ModelCustomizationJobStatus;
357
357
  failureMessage?: string;
358
358
  creationTime: Date | undefined;
359
359
  lastModifiedTime?: Date;
@@ -384,18 +384,18 @@ export type FineTuningJobStatus =
384
384
  export interface ListModelCustomizationJobsRequest {
385
385
  creationTimeAfter?: Date;
386
386
  creationTimeBefore?: Date;
387
- statusEquals?: FineTuningJobStatus | string;
387
+ statusEquals?: FineTuningJobStatus;
388
388
  nameContains?: string;
389
389
  maxResults?: number;
390
390
  nextToken?: string;
391
- sortBy?: SortJobsBy | string;
392
- sortOrder?: SortOrder | string;
391
+ sortBy?: SortJobsBy;
392
+ sortOrder?: SortOrder;
393
393
  }
394
394
  export interface ModelCustomizationJobSummary {
395
395
  jobArn: string | undefined;
396
396
  baseModelArn: string | undefined;
397
397
  jobName: string | undefined;
398
- status: ModelCustomizationJobStatus | string | undefined;
398
+ status: ModelCustomizationJobStatus | undefined;
399
399
  lastModifiedTime?: Date;
400
400
  creationTime: Date | undefined;
401
401
  endTime?: Date;
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.427.0",
4
+ "version": "3.429.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,39 +21,39 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.427.0",
25
- "@aws-sdk/credential-provider-node": "3.427.0",
26
- "@aws-sdk/middleware-host-header": "3.425.0",
27
- "@aws-sdk/middleware-logger": "3.425.0",
28
- "@aws-sdk/middleware-recursion-detection": "3.425.0",
29
- "@aws-sdk/middleware-signing": "3.425.0",
30
- "@aws-sdk/middleware-user-agent": "3.427.0",
31
- "@aws-sdk/region-config-resolver": "3.425.0",
32
- "@aws-sdk/types": "3.425.0",
33
- "@aws-sdk/util-endpoints": "3.427.0",
34
- "@aws-sdk/util-user-agent-browser": "3.425.0",
35
- "@aws-sdk/util-user-agent-node": "3.425.0",
36
- "@smithy/config-resolver": "^2.0.11",
37
- "@smithy/fetch-http-handler": "^2.2.1",
38
- "@smithy/hash-node": "^2.0.10",
39
- "@smithy/invalid-dependency": "^2.0.10",
40
- "@smithy/middleware-content-length": "^2.0.12",
41
- "@smithy/middleware-endpoint": "^2.0.10",
42
- "@smithy/middleware-retry": "^2.0.13",
43
- "@smithy/middleware-serde": "^2.0.10",
44
- "@smithy/middleware-stack": "^2.0.4",
45
- "@smithy/node-config-provider": "^2.0.13",
46
- "@smithy/node-http-handler": "^2.1.6",
47
- "@smithy/protocol-http": "^3.0.6",
48
- "@smithy/smithy-client": "^2.1.9",
49
- "@smithy/types": "^2.3.4",
50
- "@smithy/url-parser": "^2.0.10",
24
+ "@aws-sdk/client-sts": "3.429.0",
25
+ "@aws-sdk/credential-provider-node": "3.429.0",
26
+ "@aws-sdk/middleware-host-header": "3.429.0",
27
+ "@aws-sdk/middleware-logger": "3.428.0",
28
+ "@aws-sdk/middleware-recursion-detection": "3.428.0",
29
+ "@aws-sdk/middleware-signing": "3.428.0",
30
+ "@aws-sdk/middleware-user-agent": "3.428.0",
31
+ "@aws-sdk/region-config-resolver": "3.428.0",
32
+ "@aws-sdk/types": "3.428.0",
33
+ "@aws-sdk/util-endpoints": "3.428.0",
34
+ "@aws-sdk/util-user-agent-browser": "3.428.0",
35
+ "@aws-sdk/util-user-agent-node": "3.428.0",
36
+ "@smithy/config-resolver": "^2.0.14",
37
+ "@smithy/fetch-http-handler": "^2.2.3",
38
+ "@smithy/hash-node": "^2.0.11",
39
+ "@smithy/invalid-dependency": "^2.0.11",
40
+ "@smithy/middleware-content-length": "^2.0.13",
41
+ "@smithy/middleware-endpoint": "^2.1.1",
42
+ "@smithy/middleware-retry": "^2.0.16",
43
+ "@smithy/middleware-serde": "^2.0.11",
44
+ "@smithy/middleware-stack": "^2.0.5",
45
+ "@smithy/node-config-provider": "^2.1.1",
46
+ "@smithy/node-http-handler": "^2.1.7",
47
+ "@smithy/protocol-http": "^3.0.7",
48
+ "@smithy/smithy-client": "^2.1.11",
49
+ "@smithy/types": "^2.3.5",
50
+ "@smithy/url-parser": "^2.0.11",
51
51
  "@smithy/util-base64": "^2.0.0",
52
52
  "@smithy/util-body-length-browser": "^2.0.0",
53
53
  "@smithy/util-body-length-node": "^2.1.0",
54
- "@smithy/util-defaults-mode-browser": "^2.0.13",
55
- "@smithy/util-defaults-mode-node": "^2.0.15",
56
- "@smithy/util-retry": "^2.0.3",
54
+ "@smithy/util-defaults-mode-browser": "^2.0.15",
55
+ "@smithy/util-defaults-mode-node": "^2.0.19",
56
+ "@smithy/util-retry": "^2.0.4",
57
57
  "@smithy/util-utf8": "^2.0.0",
58
58
  "tslib": "^2.5.0",
59
59
  "uuid": "^8.3.2"