@aws-sdk/client-bedrock-agentcore 3.1149.0 → 3.1151.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
@@ -70,7 +70,7 @@ const commonParams = {
70
70
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
71
71
  };
72
72
 
73
- var version = "3.1148.0";
73
+ var version = "3.1150.0";
74
74
  var packageInfo = {
75
75
  version: version};
76
76
 
@@ -801,6 +801,7 @@ const _RE = "RightExpression";
801
801
  const _REC = "RecommendationEvaluationConfig";
802
802
  const _REL = "RecommendationEvaluatorList";
803
803
  const _RER = "RecommendationEvaluatorReference";
804
+ const _RES = "RecordExpirySpecification";
804
805
  const _RL = "ResourceLocation";
805
806
  const _RMR = "RetrieveMemoryRecords";
806
807
  const _RMRI = "RetrieveMemoryRecordsInput";
@@ -1071,6 +1072,7 @@ const _des = "descriptors";
1071
1072
  const _e = "error";
1072
1073
  const _eA = "evaluatorArn";
1073
1074
  const _eAm = "emailAddress";
1075
+ const _eAx = "expiresAt";
1074
1076
  const _eC = "exitCode";
1075
1077
  const _eCW = "embeddedCryptoWallet";
1076
1078
  const _eCf = "efsConfiguration";
@@ -1304,7 +1306,9 @@ const _rCed = "redactedContent";
1304
1306
  const _rCo = "rootCause";
1305
1307
  const _rD = "resultDestination";
1306
1308
  const _rE = "requestExpiry";
1309
+ const _rEDD = "recordExpiryDurationDays";
1307
1310
  const _rEI = "rootEventId";
1311
+ const _rES = "recordExpirySpecification";
1308
1312
  const _rH = "requestHost";
1309
1313
  const _rI = "recommendationId";
1310
1314
  const _rIe = "requestIdentifier";
@@ -1676,8 +1680,8 @@ var BasicAuth$ = [3, n0, _BA,
1676
1680
  ];
1677
1681
  var BatchCreateMemoryRecordsInput$ = [3, n0, _BCMRI,
1678
1682
  0,
1679
- [_mI, _rec, _cT],
1680
- [[0, 1], [() => MemoryRecordsCreateInputList, 0], [0, 4]], 2
1683
+ [_mI, _rec, _cT, _rES],
1684
+ [[0, 1], [() => MemoryRecordsCreateInputList, 0], [0, 4], () => RecordExpirySpecification$], 2
1681
1685
  ];
1682
1686
  var BatchCreateMemoryRecordsOutput$ = [3, n0, _BCMRO,
1683
1687
  0,
@@ -1706,8 +1710,8 @@ var BatchEvaluationTraceConfig$ = [3, n0, _BETC,
1706
1710
  ];
1707
1711
  var BatchUpdateMemoryRecordsInput$ = [3, n0, _BUMRI,
1708
1712
  0,
1709
- [_mI, _rec],
1710
- [[0, 1], [() => MemoryRecordsUpdateInputList, 0]], 2
1713
+ [_mI, _rec, _rES],
1714
+ [[0, 1], [() => MemoryRecordsUpdateInputList, 0], () => RecordExpirySpecification$], 2
1711
1715
  ];
1712
1716
  var BatchUpdateMemoryRecordsOutput$ = [3, n0, _BUMRO,
1713
1717
  0,
@@ -2746,8 +2750,8 @@ var MemoryMetadataFilterExpression$ = [3, n0, _MMFE,
2746
2750
  ];
2747
2751
  var MemoryRecord$ = [3, n0, _MR,
2748
2752
  0,
2749
- [_mRI, _co, _mSIe, _nam, _cA, _met],
2750
- [0, [() => MemoryContent$, 0], 0, 64 | 0, 4, () => MemoryRecordMetadataMap], 5
2753
+ [_mRI, _co, _mSIe, _nam, _cA, _tim, _met, _eAx],
2754
+ [0, [() => MemoryContent$, 0], 0, 64 | 0, 4, 4, () => MemoryRecordMetadataMap, 4], 5
2751
2755
  ];
2752
2756
  var MemoryRecordCreateInput$ = [3, n0, _MRCI,
2753
2757
  0,
@@ -2766,8 +2770,8 @@ var MemoryRecordOutput$ = [3, n0, _MRO,
2766
2770
  ];
2767
2771
  var MemoryRecordSummary$ = [3, n0, _MRS,
2768
2772
  0,
2769
- [_mRI, _co, _mSIe, _nam, _cA, _sco, _met],
2770
- [0, [() => MemoryContent$, 0], 0, 64 | 0, 4, 1, () => MemoryRecordMetadataMap], 5
2773
+ [_mRI, _co, _mSIe, _nam, _cA, _sco, _tim, _met],
2774
+ [0, [() => MemoryContent$, 0], 0, 64 | 0, 4, 1, 4, () => MemoryRecordMetadataMap], 5
2771
2775
  ];
2772
2776
  var MemoryRecordUpdateInput$ = [3, n0, _MRUI,
2773
2777
  0,
@@ -3780,6 +3784,11 @@ var RecommendationResult$ = [4, n0, _RR,
3780
3784
  [_sPRR, _tDRR],
3781
3785
  [[() => SystemPromptRecommendationResult$, 0], [() => ToolDescriptionRecommendationResult$, 0]]
3782
3786
  ];
3787
+ var RecordExpirySpecification$ = [4, n0, _RES,
3788
+ 0,
3789
+ [_rEDD, _act],
3790
+ [1, 0]
3791
+ ];
3783
3792
  var ResourceLocation$ = [4, n0, _RL,
3784
3793
  0,
3785
3794
  [_s_],
@@ -4733,6 +4742,9 @@ const HarnessStopReason = {
4733
4742
  TOOL_RESULT: "tool_result",
4734
4743
  TOOL_USE: "tool_use",
4735
4744
  };
4745
+ const RecordExpiryAction = {
4746
+ REMOVE: "REMOVE",
4747
+ };
4736
4748
  const MemoryRecordStatus = {
4737
4749
  FAILED: "FAILED",
4738
4750
  SUCCEEDED: "SUCCEEDED",
@@ -5300,6 +5312,8 @@ exports.RecommendationResultConfigurationBundle$ = RecommendationResultConfigura
5300
5312
  exports.RecommendationStatus = RecommendationStatus;
5301
5313
  exports.RecommendationSummary$ = RecommendationSummary$;
5302
5314
  exports.RecommendationType = RecommendationType;
5315
+ exports.RecordExpiryAction = RecordExpiryAction;
5316
+ exports.RecordExpirySpecification$ = RecordExpirySpecification$;
5303
5317
  exports.RegistryRecordStatus = RegistryRecordStatus;
5304
5318
  exports.RegistryRecordSummary$ = RegistryRecordSummary$;
5305
5319
  exports.ResourceContent$ = ResourceContent$;
@@ -247,6 +247,9 @@ export const HarnessStopReason = {
247
247
  TOOL_RESULT: "tool_result",
248
248
  TOOL_USE: "tool_use",
249
249
  };
250
+ export const RecordExpiryAction = {
251
+ REMOVE: "REMOVE",
252
+ };
250
253
  export const MemoryRecordStatus = {
251
254
  FAILED: "FAILED",
252
255
  SUCCEEDED: "SUCCEEDED",
@@ -454,6 +454,7 @@ const _RE = "RightExpression";
454
454
  const _REC = "RecommendationEvaluationConfig";
455
455
  const _REL = "RecommendationEvaluatorList";
456
456
  const _RER = "RecommendationEvaluatorReference";
457
+ const _RES = "RecordExpirySpecification";
457
458
  const _RL = "ResourceLocation";
458
459
  const _RMR = "RetrieveMemoryRecords";
459
460
  const _RMRI = "RetrieveMemoryRecordsInput";
@@ -724,6 +725,7 @@ const _des = "descriptors";
724
725
  const _e = "error";
725
726
  const _eA = "evaluatorArn";
726
727
  const _eAm = "emailAddress";
728
+ const _eAx = "expiresAt";
727
729
  const _eC = "exitCode";
728
730
  const _eCW = "embeddedCryptoWallet";
729
731
  const _eCf = "efsConfiguration";
@@ -957,7 +959,9 @@ const _rCed = "redactedContent";
957
959
  const _rCo = "rootCause";
958
960
  const _rD = "resultDestination";
959
961
  const _rE = "requestExpiry";
962
+ const _rEDD = "recordExpiryDurationDays";
960
963
  const _rEI = "rootEventId";
964
+ const _rES = "recordExpirySpecification";
961
965
  const _rH = "requestHost";
962
966
  const _rI = "recommendationId";
963
967
  const _rIe = "requestIdentifier";
@@ -1332,8 +1336,8 @@ export var BasicAuth$ = [3, n0, _BA,
1332
1336
  ];
1333
1337
  export var BatchCreateMemoryRecordsInput$ = [3, n0, _BCMRI,
1334
1338
  0,
1335
- [_mI, _rec, _cT],
1336
- [[0, 1], [() => MemoryRecordsCreateInputList, 0], [0, 4]], 2
1339
+ [_mI, _rec, _cT, _rES],
1340
+ [[0, 1], [() => MemoryRecordsCreateInputList, 0], [0, 4], () => RecordExpirySpecification$], 2
1337
1341
  ];
1338
1342
  export var BatchCreateMemoryRecordsOutput$ = [3, n0, _BCMRO,
1339
1343
  0,
@@ -1362,8 +1366,8 @@ export var BatchEvaluationTraceConfig$ = [3, n0, _BETC,
1362
1366
  ];
1363
1367
  export var BatchUpdateMemoryRecordsInput$ = [3, n0, _BUMRI,
1364
1368
  0,
1365
- [_mI, _rec],
1366
- [[0, 1], [() => MemoryRecordsUpdateInputList, 0]], 2
1369
+ [_mI, _rec, _rES],
1370
+ [[0, 1], [() => MemoryRecordsUpdateInputList, 0], () => RecordExpirySpecification$], 2
1367
1371
  ];
1368
1372
  export var BatchUpdateMemoryRecordsOutput$ = [3, n0, _BUMRO,
1369
1373
  0,
@@ -2402,8 +2406,8 @@ export var MemoryMetadataFilterExpression$ = [3, n0, _MMFE,
2402
2406
  ];
2403
2407
  export var MemoryRecord$ = [3, n0, _MR,
2404
2408
  0,
2405
- [_mRI, _co, _mSIe, _nam, _cA, _met],
2406
- [0, [() => MemoryContent$, 0], 0, 64 | 0, 4, () => MemoryRecordMetadataMap], 5
2409
+ [_mRI, _co, _mSIe, _nam, _cA, _tim, _met, _eAx],
2410
+ [0, [() => MemoryContent$, 0], 0, 64 | 0, 4, 4, () => MemoryRecordMetadataMap, 4], 5
2407
2411
  ];
2408
2412
  export var MemoryRecordCreateInput$ = [3, n0, _MRCI,
2409
2413
  0,
@@ -2422,8 +2426,8 @@ export var MemoryRecordOutput$ = [3, n0, _MRO,
2422
2426
  ];
2423
2427
  export var MemoryRecordSummary$ = [3, n0, _MRS,
2424
2428
  0,
2425
- [_mRI, _co, _mSIe, _nam, _cA, _sco, _met],
2426
- [0, [() => MemoryContent$, 0], 0, 64 | 0, 4, 1, () => MemoryRecordMetadataMap], 5
2429
+ [_mRI, _co, _mSIe, _nam, _cA, _sco, _tim, _met],
2430
+ [0, [() => MemoryContent$, 0], 0, 64 | 0, 4, 1, 4, () => MemoryRecordMetadataMap], 5
2427
2431
  ];
2428
2432
  export var MemoryRecordUpdateInput$ = [3, n0, _MRUI,
2429
2433
  0,
@@ -3465,6 +3469,11 @@ export var RecommendationResult$ = [4, n0, _RR,
3465
3469
  [_sPRR, _tDRR],
3466
3470
  [[() => SystemPromptRecommendationResult$, 0], [() => ToolDescriptionRecommendationResult$, 0]]
3467
3471
  ];
3472
+ export var RecordExpirySpecification$ = [4, n0, _RES,
3473
+ 0,
3474
+ [_rEDD, _act],
3475
+ [1, 0]
3476
+ ];
3468
3477
  export var ResourceLocation$ = [4, n0, _RL,
3469
3478
  0,
3470
3479
  [_s_],
@@ -59,6 +59,10 @@ declare const BatchCreateMemoryRecordsCommand_base: {
59
59
  * },
60
60
  * ],
61
61
  * clientToken: "STRING_VALUE",
62
+ * recordExpirySpecification: { // RecordExpirySpecification Union: only one key present
63
+ * recordExpiryDurationDays: Number("int"),
64
+ * action: "REMOVE",
65
+ * },
62
66
  * };
63
67
  * const command = new BatchCreateMemoryRecordsCommand(input);
64
68
  * const response = await client.send(command);
@@ -61,6 +61,10 @@ declare const BatchUpdateMemoryRecordsCommand_base: {
61
61
  * },
62
62
  * },
63
63
  * ],
64
+ * recordExpirySpecification: { // RecordExpirySpecification Union: only one key present
65
+ * recordExpiryDurationDays: Number("int"),
66
+ * action: "REMOVE",
67
+ * },
64
68
  * };
65
69
  * const command = new BatchUpdateMemoryRecordsCommand(input);
66
70
  * const response = await client.send(command);
@@ -1,5 +1,6 @@
1
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
- import type { DeleteEventInput, DeleteEventOutput } from "../models/models_0";
2
+ import type { DeleteEventInput } from "../models/models_0";
3
+ import type { DeleteEventOutput } from "../models/models_1";
3
4
  /**
4
5
  * @public
5
6
  */
@@ -51,6 +51,7 @@ declare const GetMemoryRecordCommand_base: {
51
51
  * // "STRING_VALUE",
52
52
  * // ],
53
53
  * // createdAt: new Date("TIMESTAMP"), // required
54
+ * // timestamp: new Date("TIMESTAMP"),
54
55
  * // metadata: { // MemoryRecordMetadataMap
55
56
  * // "<keys>": { // MemoryRecordMetadataValue Union: only one key present
56
57
  * // stringValue: "STRING_VALUE",
@@ -61,6 +62,7 @@ declare const GetMemoryRecordCommand_base: {
61
62
  * // dateTimeValue: new Date("TIMESTAMP"),
62
63
  * // },
63
64
  * // },
65
+ * // expiresAt: new Date("TIMESTAMP"),
64
66
  * // },
65
67
  * // };
66
68
  *
@@ -74,6 +74,7 @@ declare const ListMemoryRecordsCommand_base: {
74
74
  * // ],
75
75
  * // createdAt: new Date("TIMESTAMP"), // required
76
76
  * // score: Number("double"),
77
+ * // timestamp: new Date("TIMESTAMP"),
77
78
  * // metadata: { // MemoryRecordMetadataMap
78
79
  * // "<keys>": { // MemoryRecordMetadataValue Union: only one key present
79
80
  * // stringValue: "STRING_VALUE",
@@ -78,6 +78,7 @@ declare const RetrieveMemoryRecordsCommand_base: {
78
78
  * // ],
79
79
  * // createdAt: new Date("TIMESTAMP"), // required
80
80
  * // score: Number("double"),
81
+ * // timestamp: new Date("TIMESTAMP"),
81
82
  * // metadata: { // MemoryRecordMetadataMap
82
83
  * // "<keys>": { // MemoryRecordMetadataValue Union: only one key present
83
84
  * // stringValue: "STRING_VALUE",
@@ -558,6 +558,17 @@ export declare const HarnessStopReason: {
558
558
  * @public
559
559
  */
560
560
  export type HarnessStopReason = (typeof HarnessStopReason)[keyof typeof HarnessStopReason];
561
+ /**
562
+ * @public
563
+ * @enum
564
+ */
565
+ export declare const RecordExpiryAction: {
566
+ readonly REMOVE: "REMOVE";
567
+ };
568
+ /**
569
+ * @public
570
+ */
571
+ export type RecordExpiryAction = (typeof RecordExpiryAction)[keyof typeof RecordExpiryAction];
561
572
  /**
562
573
  * @public
563
574
  * @enum
@@ -1,5 +1,5 @@
1
1
  import type { DocumentType as __DocumentType, StreamingBlobTypes } from "@smithy/types";
2
- import type { ABTestExecutionStatus, ABTestStatus, AutomationStreamStatus, BatchEvaluationStatus, BrowserActionStatus, BrowserEnterprisePolicyType, BrowserSessionStatus, CapacityProviderSessionStatus, CloudWatchLogsFilterOperator, CodeInterpreterSessionStatus, CommandExecutionStatus, ContentBlockType, ExtractionMode, HarnessBedrockApiFormat, HarnessConversationRole, HarnessHookDecision, HarnessHookEventType, HarnessOpenAiApiFormat, HarnessStopReason, HarnessToolType, HarnessToolUseStatus, HarnessToolUseType, InsightsFailureCategory, LanguageRuntime, MemoryRecordStatus, MouseButton, Oauth2FlowType, OAuthGrantType, PaymentHttpMethodType, ProgrammingLanguage, RecommendationStatus, RecommendationType, ResourceContentType, ResultDestination, Role, ScreenshotFormat, SessionStatus, TaskStatus, ToolName } from "./enums";
2
+ import type { ABTestExecutionStatus, ABTestStatus, AutomationStreamStatus, BatchEvaluationStatus, BrowserActionStatus, BrowserEnterprisePolicyType, BrowserSessionStatus, CapacityProviderSessionStatus, CloudWatchLogsFilterOperator, CodeInterpreterSessionStatus, CommandExecutionStatus, ContentBlockType, ExtractionMode, HarnessBedrockApiFormat, HarnessConversationRole, HarnessHookDecision, HarnessHookEventType, HarnessOpenAiApiFormat, HarnessStopReason, HarnessToolType, HarnessToolUseStatus, HarnessToolUseType, InsightsFailureCategory, LanguageRuntime, MemoryRecordStatus, MouseButton, Oauth2FlowType, OAuthGrantType, PaymentHttpMethodType, ProgrammingLanguage, RecommendationStatus, RecommendationType, RecordExpiryAction, ResourceContentType, ResultDestination, Role, ScreenshotFormat, SessionStatus, TaskStatus, ToolName } from "./enums";
3
3
  import type { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, RuntimeClientError, ServiceQuotaExceededException, ThrottlingException, ValidationException } from "./errors";
4
4
  /**
5
5
  * <p> The agent card definition for A2A descriptors, including the schema version and inline content that describes the agent's capabilities.</p>
@@ -6909,7 +6909,7 @@ export declare namespace HarnessModelConfiguration {
6909
6909
  }
6910
6910
  }
6911
6911
  /**
6912
- * <p>Passed to show that AWS Skills should be included.</p>
6912
+ * <p>Passed to show that Amazon Web Services Skills should be included.</p>
6913
6913
  * @public
6914
6914
  */
6915
6915
  export interface HarnessSkillAwsSkillsSource {
@@ -7010,7 +7010,7 @@ export declare namespace HarnessSkill {
7010
7010
  $unknown?: never;
7011
7011
  }
7012
7012
  /**
7013
- * <p>AWS Skills baked into the Harness's underlying Runtime.</p>
7013
+ * <p>Amazon Web Services Skills baked into the Harness's underlying Runtime.</p>
7014
7014
  * @public
7015
7015
  */
7016
7016
  interface AwsSkillsMember {
@@ -8132,6 +8132,51 @@ export interface InvokeHarnessResponse {
8132
8132
  */
8133
8133
  stream: AsyncIterable<InvokeHarnessStreamOutput> | undefined;
8134
8134
  }
8135
+ /**
8136
+ * <p>Specifies the record expiry (long-term memory time-to-live) applied to the records in a batch request. Provide exactly one of <code>recordExpiryDurationDays</code> or <code>action</code>. Set <code>recordExpiryDurationDays</code> to configure or update the expiry, or set <code>action</code> to <code>REMOVE</code> to remove a previously configured expiry.</p>
8137
+ * @public
8138
+ */
8139
+ export type RecordExpirySpecification = RecordExpirySpecification.ActionMember | RecordExpirySpecification.RecordExpiryDurationDaysMember | RecordExpirySpecification.$UnknownMember;
8140
+ /**
8141
+ * @public
8142
+ */
8143
+ export declare namespace RecordExpirySpecification {
8144
+ /**
8145
+ * <p>The duration, in days, after which the records in this request expire. The minimum is 31 days.</p>
8146
+ * @public
8147
+ */
8148
+ interface RecordExpiryDurationDaysMember {
8149
+ recordExpiryDurationDays: number;
8150
+ action?: never;
8151
+ $unknown?: never;
8152
+ }
8153
+ /**
8154
+ * <p>The action to apply to the existing record expiry configuration. Set to <code>REMOVE</code> to remove a previously configured expiry so that the records no longer expire. This value does not apply when creating records.</p>
8155
+ * @public
8156
+ */
8157
+ interface ActionMember {
8158
+ recordExpiryDurationDays?: never;
8159
+ action: RecordExpiryAction;
8160
+ $unknown?: never;
8161
+ }
8162
+ /**
8163
+ * @public
8164
+ */
8165
+ interface $UnknownMember {
8166
+ recordExpiryDurationDays?: never;
8167
+ action?: never;
8168
+ $unknown: [string, any];
8169
+ }
8170
+ /**
8171
+ * @deprecated unused in schema-serde mode.
8172
+ *
8173
+ */
8174
+ interface Visitor<T> {
8175
+ recordExpiryDurationDays: (value: number) => T;
8176
+ action: (value: RecordExpiryAction) => T;
8177
+ _: (name: string, value: any) => T;
8178
+ }
8179
+ }
8135
8180
  /**
8136
8181
  * <p>Contains the content of a memory record.</p>
8137
8182
  * @public
@@ -8295,6 +8340,11 @@ export interface BatchCreateMemoryRecordsInput {
8295
8340
  * @public
8296
8341
  */
8297
8342
  clientToken?: string | undefined;
8343
+ /**
8344
+ * <p>The record expiry (long-term memory time-to-live) applied to every record created by this request. Set <code>recordExpiryDurationDays</code> to the number of days after which the records expire. Only the expiry provided here is applied; the records' strategy association has no effect on their expiry. If you do not provide this value, the records do not expire. The <code>REMOVE</code> action does not apply when creating records.</p>
8345
+ * @public
8346
+ */
8347
+ recordExpirySpecification?: RecordExpirySpecification | undefined;
8298
8348
  }
8299
8349
  /**
8300
8350
  * <p>Output information returned after processing a memory record operation.</p>
@@ -8443,6 +8493,11 @@ export interface BatchUpdateMemoryRecordsInput {
8443
8493
  * @public
8444
8494
  */
8445
8495
  records: MemoryRecordUpdateInput[] | undefined;
8496
+ /**
8497
+ * <p>The record expiry (long-term memory time-to-live) applied to every record updated by this request. Set <code>recordExpiryDurationDays</code> to configure or overwrite the number of days after which the records expire, or set <code>action</code> to <code>REMOVE</code> to clear a previously configured expiry so that the records no longer expire.</p> <p>When you do not provide this value, the service determines each record's expiry from its current state:</p> <ul> <li> <p>If the record already has an expiry configured, the service resets and reapplies the expiry based on the last applied <code>recordExpiryDurationDays</code>.</p> </li> <li> <p>If the record does not have an expiry configured, no expiry is applied and the record remains non-expiring. This is the outcome regardless of whether the record's strategy configures an expiry.</p> </li> </ul> <p>Providing an explicit <code>recordExpiryDurationDays</code> always takes precedence: it overwrites an existing expiry, or sets one on a record that previously had none.</p>
8498
+ * @public
8499
+ */
8500
+ recordExpirySpecification?: RecordExpirySpecification | undefined;
8446
8501
  }
8447
8502
  /**
8448
8503
  * @public
@@ -8774,13 +8829,3 @@ export interface DeleteEventInput {
8774
8829
  */
8775
8830
  actorId: string | undefined;
8776
8831
  }
8777
- /**
8778
- * @public
8779
- */
8780
- export interface DeleteEventOutput {
8781
- /**
8782
- * <p>The identifier of the event that was deleted.</p>
8783
- * @public
8784
- */
8785
- eventId: string | undefined;
8786
- }
@@ -1,6 +1,16 @@
1
1
  import type { DocumentType as __DocumentType } from "@smithy/types";
2
2
  import type { BlockchainChainId, CryptoWalletNetwork, Currency, DescriptorType, EventFilterCondition, ExtractionJobStatus, InstrumentBalanceToken, MemoryRecordOperatorType, OperatorType, PaymentInstrumentStatus, PaymentInstrumentType, PaymentSessionStatus, PaymentStatus, PaymentType, RegistryRecordStatus } from "./enums";
3
3
  import type { A2aDescriptor, ActorSummary, AgentSkillsDescriptor, Conversational, Event, ExtractionConfig, MemoryContent, MemoryJsonData, MemoryRecordMetadataValue, MetadataValue } from "./models_0";
4
+ /**
5
+ * @public
6
+ */
7
+ export interface DeleteEventOutput {
8
+ /**
9
+ * <p>The identifier of the event that was deleted.</p>
10
+ * @public
11
+ */
12
+ eventId: string | undefined;
13
+ }
4
14
  /**
5
15
  * @public
6
16
  */
@@ -116,11 +126,21 @@ export interface MemoryRecord {
116
126
  * @public
117
127
  */
118
128
  createdAt: Date | undefined;
129
+ /**
130
+ * <p>The timestamp based on which the memory record was ingested. This reflects the time of the source content that the record was derived from, which can differ from <code>createdAt</code>, the time the record itself was written.</p>
131
+ * @public
132
+ */
133
+ timestamp?: Date | undefined;
119
134
  /**
120
135
  * <p>A map of metadata key-value pairs associated with a memory record.</p>
121
136
  * @public
122
137
  */
123
138
  metadata?: Record<string, MemoryRecordMetadataValue> | undefined;
139
+ /**
140
+ * <p>The timestamp at which the memory record expires and becomes eligible for deletion. This value is set when a record expiry (long-term memory time-to-live) applies to the record, either from the strategy the record belongs to or from a record expiry provided on the batch request that created or updated it. If the record has no expiry configured, this value is not present and the record does not expire.</p>
141
+ * @public
142
+ */
143
+ expiresAt?: Date | undefined;
124
144
  }
125
145
  /**
126
146
  * @public
@@ -803,6 +823,11 @@ export interface MemoryRecordSummary {
803
823
  * @public
804
824
  */
805
825
  score?: number | undefined;
826
+ /**
827
+ * <p>The timestamp based on which the memory record was ingested. This reflects the time of the source content that the record was derived from, which can differ from <code>createdAt</code>, the time the record itself was written.</p>
828
+ * @public
829
+ */
830
+ timestamp?: Date | undefined;
806
831
  /**
807
832
  * <p>A map of metadata key-value pairs associated with a memory record.</p>
808
833
  * @public
@@ -407,6 +407,7 @@ export declare var Proxy$: StaticUnionSchema;
407
407
  export declare var ProxyCredentials$: StaticUnionSchema;
408
408
  export declare var RecommendationConfig$: StaticUnionSchema;
409
409
  export declare var RecommendationResult$: StaticUnionSchema;
410
+ export declare var RecordExpirySpecification$: StaticUnionSchema;
410
411
  export declare var ResourceLocation$: StaticUnionSchema;
411
412
  export declare var RightExpression$: StaticUnionSchema;
412
413
  export declare var StreamUpdate$: StaticUnionSchema;
@@ -1,5 +1,6 @@
1
1
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
- import { DeleteEventInput, DeleteEventOutput } from "../models/models_0";
2
+ import { DeleteEventInput } from "../models/models_0";
3
+ import { DeleteEventOutput } from "../models/models_1";
3
4
  export { __MetadataBearer };
4
5
  export interface DeleteEventCommandInput extends DeleteEventInput {}
5
6
  export interface DeleteEventCommandOutput extends DeleteEventOutput, __MetadataBearer {}
@@ -298,6 +298,10 @@ export declare const HarnessStopReason: {
298
298
  readonly TOOL_USE: "tool_use";
299
299
  };
300
300
  export type HarnessStopReason = (typeof HarnessStopReason)[keyof typeof HarnessStopReason];
301
+ export declare const RecordExpiryAction: {
302
+ readonly REMOVE: "REMOVE";
303
+ };
304
+ export type RecordExpiryAction = (typeof RecordExpiryAction)[keyof typeof RecordExpiryAction];
301
305
  export declare const MemoryRecordStatus: {
302
306
  readonly FAILED: "FAILED";
303
307
  readonly SUCCEEDED: "SUCCEEDED";
@@ -32,6 +32,7 @@ import {
32
32
  ProgrammingLanguage,
33
33
  RecommendationStatus,
34
34
  RecommendationType,
35
+ RecordExpiryAction,
35
36
  ResourceContentType,
36
37
  ResultDestination,
37
38
  Role,
@@ -3055,6 +3056,32 @@ export declare namespace InvokeHarnessStreamOutput {
3055
3056
  export interface InvokeHarnessResponse {
3056
3057
  stream: AsyncIterable<InvokeHarnessStreamOutput> | undefined;
3057
3058
  }
3059
+ export type RecordExpirySpecification =
3060
+ | RecordExpirySpecification.ActionMember
3061
+ | RecordExpirySpecification.RecordExpiryDurationDaysMember
3062
+ | RecordExpirySpecification.$UnknownMember;
3063
+ export declare namespace RecordExpirySpecification {
3064
+ interface RecordExpiryDurationDaysMember {
3065
+ recordExpiryDurationDays: number;
3066
+ action?: never;
3067
+ $unknown?: never;
3068
+ }
3069
+ interface ActionMember {
3070
+ recordExpiryDurationDays?: never;
3071
+ action: RecordExpiryAction;
3072
+ $unknown?: never;
3073
+ }
3074
+ interface $UnknownMember {
3075
+ recordExpiryDurationDays?: never;
3076
+ action?: never;
3077
+ $unknown: [string, any];
3078
+ }
3079
+ interface Visitor<T> {
3080
+ recordExpiryDurationDays: (value: number) => T;
3081
+ action: (value: RecordExpiryAction) => T;
3082
+ _: (name: string, value: any) => T;
3083
+ }
3084
+ }
3058
3085
  export type MemoryContent = MemoryContent.TextMember | MemoryContent.$UnknownMember;
3059
3086
  export declare namespace MemoryContent {
3060
3087
  interface TextMember {
@@ -3132,6 +3159,7 @@ export interface BatchCreateMemoryRecordsInput {
3132
3159
  memoryId: string | undefined;
3133
3160
  records: MemoryRecordCreateInput[] | undefined;
3134
3161
  clientToken?: string | undefined;
3162
+ recordExpirySpecification?: RecordExpirySpecification | undefined;
3135
3163
  }
3136
3164
  export interface MemoryRecordOutput {
3137
3165
  memoryRecordId: string | undefined;
@@ -3168,6 +3196,7 @@ export interface MemoryRecordUpdateInput {
3168
3196
  export interface BatchUpdateMemoryRecordsInput {
3169
3197
  memoryId: string | undefined;
3170
3198
  records: MemoryRecordUpdateInput[] | undefined;
3199
+ recordExpirySpecification?: RecordExpirySpecification | undefined;
3171
3200
  }
3172
3201
  export interface BatchUpdateMemoryRecordsOutput {
3173
3202
  successfulRecords: MemoryRecordOutput[] | undefined;
@@ -3285,6 +3314,3 @@ export interface DeleteEventInput {
3285
3314
  eventId: string | undefined;
3286
3315
  actorId: string | undefined;
3287
3316
  }
3288
- export interface DeleteEventOutput {
3289
- eventId: string | undefined;
3290
- }
@@ -28,6 +28,9 @@ import {
28
28
  MemoryRecordMetadataValue,
29
29
  MetadataValue,
30
30
  } from "./models_0";
31
+ export interface DeleteEventOutput {
32
+ eventId: string | undefined;
33
+ }
31
34
  export interface DeleteMemoryRecordInput {
32
35
  memoryId: string | undefined;
33
36
  memoryRecordId: string | undefined;
@@ -56,7 +59,9 @@ export interface MemoryRecord {
56
59
  memoryStrategyId: string | undefined;
57
60
  namespaces: string[] | undefined;
58
61
  createdAt: Date | undefined;
62
+ timestamp?: Date | undefined;
59
63
  metadata?: Record<string, MemoryRecordMetadataValue> | undefined;
64
+ expiresAt?: Date | undefined;
60
65
  }
61
66
  export interface GetMemoryRecordOutput {
62
67
  memoryRecord: MemoryRecord | undefined;
@@ -284,6 +289,7 @@ export interface MemoryRecordSummary {
284
289
  namespaces: string[] | undefined;
285
290
  createdAt: Date | undefined;
286
291
  score?: number | undefined;
292
+ timestamp?: Date | undefined;
287
293
  metadata?: Record<string, MemoryRecordMetadataValue> | undefined;
288
294
  }
289
295
  export interface ListMemoryRecordsOutput {
@@ -407,6 +407,7 @@ export declare var Proxy$: StaticUnionSchema;
407
407
  export declare var ProxyCredentials$: StaticUnionSchema;
408
408
  export declare var RecommendationConfig$: StaticUnionSchema;
409
409
  export declare var RecommendationResult$: StaticUnionSchema;
410
+ export declare var RecordExpirySpecification$: StaticUnionSchema;
410
411
  export declare var ResourceLocation$: StaticUnionSchema;
411
412
  export declare var RightExpression$: StaticUnionSchema;
412
413
  export declare var StreamUpdate$: StaticUnionSchema;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-bedrock-agentcore",
3
- "version": "3.1149.0",
3
+ "version": "3.1151.0",
4
4
  "description": "AWS SDK for JavaScript Bedrock Agentcore Client for Node.js, Browser and React Native",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-bedrock-agentcore",
6
6
  "license": "Apache-2.0",
@@ -46,8 +46,8 @@
46
46
  "test:index": "tsc -p tsconfig.test.json && node ./test/index-objects.spec.mjs"
47
47
  },
48
48
  "dependencies": {
49
- "@aws-sdk/core": "^3.978.2",
50
- "@aws-sdk/credential-provider-node": "^3.972.85",
49
+ "@aws-sdk/core": "^3.978.3",
50
+ "@aws-sdk/credential-provider-node": "^3.972.86",
51
51
  "@aws-sdk/types": "^3.974.6",
52
52
  "@smithy/core": "^3.35.2",
53
53
  "@smithy/fetch-http-handler": "^5.8.0",