@aws-sdk/client-bedrock-agentcore 3.1120.0 → 3.1121.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/README.md CHANGED
@@ -419,6 +419,13 @@ GetWorkloadAccessTokenForUserId
419
419
  </details>
420
420
  <details>
421
421
  <summary>
422
+ IngestData
423
+ </summary>
424
+
425
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-agentcore/command/IngestDataCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agentcore/Interface/IngestDataCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agentcore/Interface/IngestDataCommandOutput/)
426
+ </details>
427
+ <details>
428
+ <summary>
422
429
  InvokeAgentRuntime
423
430
  </summary>
424
431
 
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.1119.0";
73
+ var version = "3.1120.0";
74
74
  var packageInfo = {
75
75
  version: version};
76
76
 
@@ -414,6 +414,7 @@ const _CRVT = "CustomRequestValueType";
414
414
  const _CS = "ControlStats";
415
415
  const _CSE = "ContentStartEvent";
416
416
  const _CSEo = "ContentStopEvent";
417
+ const _CSo = "ContentSource";
417
418
  const _CT = "Content-Type";
418
419
  const _CWFC = "CloudWatchFilterConfig";
419
420
  const _CWLF = "CloudWatchLogsFilter";
@@ -632,6 +633,9 @@ const _ICBL = "InputContentBlockList";
632
633
  const _ICI = "InvokeCodeInterpreter";
633
634
  const _ICIR = "InvokeCodeInterpreterRequest";
634
635
  const _ICIRn = "InvokeCodeInterpreterResponse";
636
+ const _ID = "IngestData";
637
+ const _IDI = "IngestDataInput";
638
+ const _IDO = "IngestDataOutput";
635
639
  const _IFS = "InsightsFailureSignal";
636
640
  const _IFSL = "InsightsFailureSignalList";
637
641
  const _IGT = "InlineGroundTruth";
@@ -641,6 +645,9 @@ const _IHRn = "InvokeHarnessResponse";
641
645
  const _IHSO = "InvokeHarnessStreamOutput";
642
646
  const _IIE = "InvalidInputException";
643
647
  const _IL = "InsightList";
648
+ const _IMC = "InlineMemoryContent";
649
+ const _IPL = "IngestPayloadList";
650
+ const _IPT = "IngestPayloadType";
644
651
  const _ISE = "InternalServerException";
645
652
  const _KPA = "KeyPressArguments";
646
653
  const _KPR = "KeyPressResult";
@@ -1005,7 +1012,8 @@ const _cSo = "contentStart";
1005
1012
  const _cSon = "contentStop";
1006
1013
  const _cSu = "customState";
1007
1014
  const _cT = "clientToken";
1008
- const _cTo = "contentType";
1015
+ const _cTo = "contentTimestamp";
1016
+ const _cTon = "contentType";
1009
1017
  const _cWC = "cloudWatchConfig";
1010
1018
  const _cWIT = "cacheWriteInputTokens";
1011
1019
  const _cWL = "cloudWatchLogs";
@@ -1363,6 +1371,7 @@ const _sig = "signals";
1363
1371
  const _sign = "signature";
1364
1372
  const _sk = "skills";
1365
1373
  const _sm = "sms";
1374
+ const _so = "source";
1366
1375
  const _st = "streaming";
1367
1376
  const _sta = "status";
1368
1377
  const _star = "start";
@@ -2427,11 +2436,26 @@ var HarnessToolUseBlockStart$ = [3, n0, _HTUBS,
2427
2436
  [_tUI, _n, _t, _sNe],
2428
2437
  [0, 0, 0, 0], 2
2429
2438
  ];
2439
+ var IngestDataInput$ = [3, n0, _IDI,
2440
+ 0,
2441
+ [_mI, _so, _cTo, _aI, _sI, _eCx, _met, _cT],
2442
+ [[0, 1], [() => ContentSource$, 0], 4, 0, 0, () => ExtractionConfig$, () => MetadataMap, [0, 4]], 4
2443
+ ];
2444
+ var IngestDataOutput$ = [3, n0, _IDO,
2445
+ 0,
2446
+ [_sI],
2447
+ [0], 1
2448
+ ];
2430
2449
  var InlineGroundTruth$ = [3, n0, _IGT,
2431
2450
  0,
2432
2451
  [_as, _eTx, _tu],
2433
2452
  [() => EvaluationContentList, () => EvaluationExpectedTrajectory$, () => GroundTruthTurnList]
2434
2453
  ];
2454
+ var InlineMemoryContent$ = [3, n0, _IMC,
2455
+ 0,
2456
+ [_p],
2457
+ [[() => IngestPayloadList, 0]], 1
2458
+ ];
2435
2459
  var InputContentBlock$ = [3, n0, _ICB,
2436
2460
  0,
2437
2461
  [_pat, _te, _bl],
@@ -2449,7 +2473,7 @@ var InsightsFailureSignal$ = [3, n0, _IFS,
2449
2473
  ];
2450
2474
  var InvokeAgentRuntimeCommandRequest$ = [3, n0, _IARCR,
2451
2475
  0,
2452
- [_aRA, _bo, _cTo, _ac, _rSI, _tI, _tPr, _tS, _ba, _q, _aIc],
2476
+ [_aRA, _bo, _cTon, _ac, _rSI, _tI, _tPr, _tS, _ba, _q, _aIc],
2453
2477
  [[0, 1], [() => InvokeAgentRuntimeCommandRequestBody$, 16], [0, { [_hH]: _CT }], [0, { [_hH]: _Ac }], [0, { [_hH]: _XABARSI, [_iT]: 1 }], [0, { [_hH]: _XATI }], [0, { [_hH]: _tr }], [0, { [_hH]: _tra }], [0, { [_hH]: _ba }], [0, { [_hQ]: _q }], [0, { [_hQ]: _aIc }]], 2
2454
2478
  ];
2455
2479
  var InvokeAgentRuntimeCommandRequestBody$ = [3, n0, _IARCRB,
@@ -2459,17 +2483,17 @@ var InvokeAgentRuntimeCommandRequestBody$ = [3, n0, _IARCRB,
2459
2483
  ];
2460
2484
  var InvokeAgentRuntimeCommandResponse$ = [3, n0, _IARCRn,
2461
2485
  0,
2462
- [_cTo, _stre, _rSI, _tI, _tPr, _tS, _ba, _sCt],
2486
+ [_cTon, _stre, _rSI, _tI, _tPr, _tS, _ba, _sCt],
2463
2487
  [[0, { [_hH]: _CT }], [() => InvokeAgentRuntimeCommandStreamOutput$, 16], [0, { [_hH]: _XABARSI }], [0, { [_hH]: _XATI }], [0, { [_hH]: _tr }], [0, { [_hH]: _tra }], [0, { [_hH]: _ba }], [1, 32]], 2
2464
2488
  ];
2465
2489
  var InvokeAgentRuntimeRequest$ = [3, n0, _IARR,
2466
2490
  0,
2467
- [_aRA, _p, _cTo, _ac, _mSI, _rSI, _mPV, _mM, _mN, _rUI, _tI, _tPr, _tS, _ba, _q, _aIc],
2491
+ [_aRA, _p, _cTon, _ac, _mSI, _rSI, _mPV, _mM, _mN, _rUI, _tI, _tPr, _tS, _ba, _q, _aIc],
2468
2492
  [[0, 1], [() => Body, 16], [0, { [_hH]: _CT }], [0, { [_hH]: _Ac }], [0, { [_hH]: _MSI }], [0, { [_hH]: _XABARSI, [_iT]: 1 }], [0, { [_hH]: _MPV }], [0, { [_hH]: _MM }], [0, { [_hH]: _MN }], [0, { [_hH]: _XABARUI }], [0, { [_hH]: _XATI }], [0, { [_hH]: _tr }], [0, { [_hH]: _tra }], [0, { [_hH]: _ba }], [0, { [_hQ]: _q }], [0, { [_hQ]: _aIc }]], 2
2469
2493
  ];
2470
2494
  var InvokeAgentRuntimeResponse$ = [3, n0, _IARRn,
2471
2495
  0,
2472
- [_cTo, _rSI, _mSI, _mPV, _tI, _tPr, _tS, _ba, _resp, _sCt],
2496
+ [_cTon, _rSI, _mSI, _mPV, _tI, _tPr, _tS, _ba, _resp, _sCt],
2473
2497
  [[0, { [_hH]: _CT }], [0, { [_hH]: _XABARSI }], [0, { [_hH]: _MSI }], [0, { [_hH]: _MPV }], [0, { [_hH]: _XATI }], [0, { [_hH]: _tr }], [0, { [_hH]: _tra }], [0, { [_hH]: _ba }], [() => ResponseStream, 16], [1, 32]], 1
2474
2498
  ];
2475
2499
  var InvokeBrowserRequest$ = [3, n0, _IBR,
@@ -3328,6 +3352,10 @@ var HarnessTools = [1, n0, _HTa,
3328
3352
  0, [() => HarnessTool$,
3329
3353
  0]
3330
3354
  ];
3355
+ var IngestPayloadList = [1, n0, _IPL,
3356
+ 0, [() => IngestPayloadType$,
3357
+ 0]
3358
+ ];
3331
3359
  var InputContentBlockList = [1, n0, _ICBL,
3332
3360
  0, [() => InputContentBlock$,
3333
3361
  0]
@@ -3486,6 +3514,11 @@ var Content$ = [4, n0, _Con,
3486
3514
  [_te],
3487
3515
  [[() => SensitiveString, 0]]
3488
3516
  ];
3517
+ var ContentSource$ = [4, n0, _CSo,
3518
+ 0,
3519
+ [_inl],
3520
+ [[() => InlineMemoryContent$, 0]]
3521
+ ];
3489
3522
  var Context$ = [4, n0, _Cont,
3490
3523
  0,
3491
3524
  [_sCp],
@@ -3596,6 +3629,11 @@ var HarnessToolResultContentBlock$ = [4, n0, _HTRCBa,
3596
3629
  [_te, _js],
3597
3630
  [[() => SensitiveText, 0], [() => SensitiveJson, 0]]
3598
3631
  ];
3632
+ var IngestPayloadType$ = [4, n0, _IPT,
3633
+ 0,
3634
+ [_conv, _js],
3635
+ [[() => Conversational$, 0], [() => MemoryJsonData$, 0]]
3636
+ ];
3599
3637
  var InvokeAgentRuntimeCommandStreamOutput$ = [4, n0, _IARCSO,
3600
3638
  { [_st]: 1 },
3601
3639
  [_chu, _aDE, _iSE, _rNFE, _sQEE, _tEh, _vE, _rCE],
@@ -3843,6 +3881,9 @@ var GetWorkloadAccessTokenForJWT$ = [9, n0, _GWATFJWT,
3843
3881
  var GetWorkloadAccessTokenForUserId$ = [9, n0, _GWATFUI,
3844
3882
  { [_ht]: ["POST", "/identities/GetWorkloadAccessTokenForUserId", 200] }, () => GetWorkloadAccessTokenForUserIdRequest$, () => GetWorkloadAccessTokenForUserIdResponse$
3845
3883
  ];
3884
+ var IngestData$ = [9, n0, _ID,
3885
+ { [_ht]: ["POST", "/memories/{memoryId}/ingest", 202] }, () => IngestDataInput$, () => IngestDataOutput$
3886
+ ];
3846
3887
  var InvokeAgentRuntime$ = [9, n0, _IAR,
3847
3888
  { [_ht]: ["POST", "/runtimes/{agentRuntimeArn}/invocations", 200] }, () => InvokeAgentRuntimeRequest$, () => InvokeAgentRuntimeResponse$
3848
3889
  ];
@@ -4195,6 +4236,9 @@ class GetWorkloadAccessTokenForJWTCommand extends command(_ep0, _mw0, "GetWorklo
4195
4236
  class GetWorkloadAccessTokenForUserIdCommand extends command(_ep0, _mw0, "GetWorkloadAccessTokenForUserId", GetWorkloadAccessTokenForUserId$) {
4196
4237
  }
4197
4238
 
4239
+ class IngestDataCommand extends command(_ep0, _mw0, "IngestData", IngestData$) {
4240
+ }
4241
+
4198
4242
  class InvokeAgentRuntimeCommand extends command(_ep0, _mw0, "InvokeAgentRuntime", InvokeAgentRuntime$) {
4199
4243
  }
4200
4244
 
@@ -4348,6 +4392,7 @@ const commands = {
4348
4392
  GetWorkloadAccessTokenCommand,
4349
4393
  GetWorkloadAccessTokenForJWTCommand,
4350
4394
  GetWorkloadAccessTokenForUserIdCommand,
4395
+ IngestDataCommand,
4351
4396
  InvokeAgentRuntimeCommand,
4352
4397
  InvokeAgentRuntimeCommandCommand,
4353
4398
  InvokeBrowserCommand,
@@ -4802,6 +4847,7 @@ exports.Content$ = Content$;
4802
4847
  exports.ContentBlock$ = ContentBlock$;
4803
4848
  exports.ContentBlockType = ContentBlockType;
4804
4849
  exports.ContentDeltaEvent$ = ContentDeltaEvent$;
4850
+ exports.ContentSource$ = ContentSource$;
4805
4851
  exports.ContentStartEvent$ = ContentStartEvent$;
4806
4852
  exports.ContentStopEvent$ = ContentStopEvent$;
4807
4853
  exports.Context$ = Context$;
@@ -5024,7 +5070,13 @@ exports.HarnessToolUseBlockDelta$ = HarnessToolUseBlockDelta$;
5024
5070
  exports.HarnessToolUseBlockStart$ = HarnessToolUseBlockStart$;
5025
5071
  exports.HarnessToolUseStatus = HarnessToolUseStatus;
5026
5072
  exports.HarnessToolUseType = HarnessToolUseType;
5073
+ exports.IngestData$ = IngestData$;
5074
+ exports.IngestDataCommand = IngestDataCommand;
5075
+ exports.IngestDataInput$ = IngestDataInput$;
5076
+ exports.IngestDataOutput$ = IngestDataOutput$;
5077
+ exports.IngestPayloadType$ = IngestPayloadType$;
5027
5078
  exports.InlineGroundTruth$ = InlineGroundTruth$;
5079
+ exports.InlineMemoryContent$ = InlineMemoryContent$;
5028
5080
  exports.InputContentBlock$ = InputContentBlock$;
5029
5081
  exports.Insight$ = Insight$;
5030
5082
  exports.InsightsFailureCategory = InsightsFailureCategory;
@@ -34,6 +34,7 @@ import { GetResourcePaymentTokenCommand, } from "./commands/GetResourcePaymentTo
34
34
  import { GetWorkloadAccessTokenCommand, } from "./commands/GetWorkloadAccessTokenCommand";
35
35
  import { GetWorkloadAccessTokenForJWTCommand, } from "./commands/GetWorkloadAccessTokenForJWTCommand";
36
36
  import { GetWorkloadAccessTokenForUserIdCommand, } from "./commands/GetWorkloadAccessTokenForUserIdCommand";
37
+ import { IngestDataCommand, } from "./commands/IngestDataCommand";
37
38
  import { InvokeAgentRuntimeCommand, } from "./commands/InvokeAgentRuntimeCommand";
38
39
  import { InvokeAgentRuntimeCommandCommand, } from "./commands/InvokeAgentRuntimeCommandCommand";
39
40
  import { InvokeBrowserCommand, } from "./commands/InvokeBrowserCommand";
@@ -112,6 +113,7 @@ const commands = {
112
113
  GetWorkloadAccessTokenCommand,
113
114
  GetWorkloadAccessTokenForJWTCommand,
114
115
  GetWorkloadAccessTokenForUserIdCommand,
116
+ IngestDataCommand,
115
117
  InvokeAgentRuntimeCommand,
116
118
  InvokeAgentRuntimeCommandCommand,
117
119
  InvokeBrowserCommand,
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { IngestData$ } from "../schemas/schemas_0";
3
+ export class IngestDataCommand extends command(_ep0, _mw0, "IngestData", IngestData$) {
4
+ }
@@ -32,6 +32,7 @@ export * from "./GetResourcePaymentTokenCommand";
32
32
  export * from "./GetWorkloadAccessTokenCommand";
33
33
  export * from "./GetWorkloadAccessTokenForJWTCommand";
34
34
  export * from "./GetWorkloadAccessTokenForUserIdCommand";
35
+ export * from "./IngestDataCommand";
35
36
  export * from "./InvokeAgentRuntimeCommand";
36
37
  export * from "./InvokeAgentRuntimeCommandCommand";
37
38
  export * from "./InvokeBrowserCommand";
@@ -83,6 +83,7 @@ const _CRVT = "CustomRequestValueType";
83
83
  const _CS = "ControlStats";
84
84
  const _CSE = "ContentStartEvent";
85
85
  const _CSEo = "ContentStopEvent";
86
+ const _CSo = "ContentSource";
86
87
  const _CT = "Content-Type";
87
88
  const _CWFC = "CloudWatchFilterConfig";
88
89
  const _CWLF = "CloudWatchLogsFilter";
@@ -301,6 +302,9 @@ const _ICBL = "InputContentBlockList";
301
302
  const _ICI = "InvokeCodeInterpreter";
302
303
  const _ICIR = "InvokeCodeInterpreterRequest";
303
304
  const _ICIRn = "InvokeCodeInterpreterResponse";
305
+ const _ID = "IngestData";
306
+ const _IDI = "IngestDataInput";
307
+ const _IDO = "IngestDataOutput";
304
308
  const _IFS = "InsightsFailureSignal";
305
309
  const _IFSL = "InsightsFailureSignalList";
306
310
  const _IGT = "InlineGroundTruth";
@@ -310,6 +314,9 @@ const _IHRn = "InvokeHarnessResponse";
310
314
  const _IHSO = "InvokeHarnessStreamOutput";
311
315
  const _IIE = "InvalidInputException";
312
316
  const _IL = "InsightList";
317
+ const _IMC = "InlineMemoryContent";
318
+ const _IPL = "IngestPayloadList";
319
+ const _IPT = "IngestPayloadType";
313
320
  const _ISE = "InternalServerException";
314
321
  const _KPA = "KeyPressArguments";
315
322
  const _KPR = "KeyPressResult";
@@ -674,7 +681,8 @@ const _cSo = "contentStart";
674
681
  const _cSon = "contentStop";
675
682
  const _cSu = "customState";
676
683
  const _cT = "clientToken";
677
- const _cTo = "contentType";
684
+ const _cTo = "contentTimestamp";
685
+ const _cTon = "contentType";
678
686
  const _cWC = "cloudWatchConfig";
679
687
  const _cWIT = "cacheWriteInputTokens";
680
688
  const _cWL = "cloudWatchLogs";
@@ -1032,6 +1040,7 @@ const _sig = "signals";
1032
1040
  const _sign = "signature";
1033
1041
  const _sk = "skills";
1034
1042
  const _sm = "sms";
1043
+ const _so = "source";
1035
1044
  const _st = "streaming";
1036
1045
  const _sta = "status";
1037
1046
  const _star = "start";
@@ -2099,11 +2108,26 @@ export var HarnessToolUseBlockStart$ = [3, n0, _HTUBS,
2099
2108
  [_tUI, _n, _t, _sNe],
2100
2109
  [0, 0, 0, 0], 2
2101
2110
  ];
2111
+ export var IngestDataInput$ = [3, n0, _IDI,
2112
+ 0,
2113
+ [_mI, _so, _cTo, _aI, _sI, _eCx, _met, _cT],
2114
+ [[0, 1], [() => ContentSource$, 0], 4, 0, 0, () => ExtractionConfig$, () => MetadataMap, [0, 4]], 4
2115
+ ];
2116
+ export var IngestDataOutput$ = [3, n0, _IDO,
2117
+ 0,
2118
+ [_sI],
2119
+ [0], 1
2120
+ ];
2102
2121
  export var InlineGroundTruth$ = [3, n0, _IGT,
2103
2122
  0,
2104
2123
  [_as, _eTx, _tu],
2105
2124
  [() => EvaluationContentList, () => EvaluationExpectedTrajectory$, () => GroundTruthTurnList]
2106
2125
  ];
2126
+ export var InlineMemoryContent$ = [3, n0, _IMC,
2127
+ 0,
2128
+ [_p],
2129
+ [[() => IngestPayloadList, 0]], 1
2130
+ ];
2107
2131
  export var InputContentBlock$ = [3, n0, _ICB,
2108
2132
  0,
2109
2133
  [_pat, _te, _bl],
@@ -2121,7 +2145,7 @@ export var InsightsFailureSignal$ = [3, n0, _IFS,
2121
2145
  ];
2122
2146
  export var InvokeAgentRuntimeCommandRequest$ = [3, n0, _IARCR,
2123
2147
  0,
2124
- [_aRA, _bo, _cTo, _ac, _rSI, _tI, _tPr, _tS, _ba, _q, _aIc],
2148
+ [_aRA, _bo, _cTon, _ac, _rSI, _tI, _tPr, _tS, _ba, _q, _aIc],
2125
2149
  [[0, 1], [() => InvokeAgentRuntimeCommandRequestBody$, 16], [0, { [_hH]: _CT }], [0, { [_hH]: _Ac }], [0, { [_hH]: _XABARSI, [_iT]: 1 }], [0, { [_hH]: _XATI }], [0, { [_hH]: _tr }], [0, { [_hH]: _tra }], [0, { [_hH]: _ba }], [0, { [_hQ]: _q }], [0, { [_hQ]: _aIc }]], 2
2126
2150
  ];
2127
2151
  export var InvokeAgentRuntimeCommandRequestBody$ = [3, n0, _IARCRB,
@@ -2131,17 +2155,17 @@ export var InvokeAgentRuntimeCommandRequestBody$ = [3, n0, _IARCRB,
2131
2155
  ];
2132
2156
  export var InvokeAgentRuntimeCommandResponse$ = [3, n0, _IARCRn,
2133
2157
  0,
2134
- [_cTo, _stre, _rSI, _tI, _tPr, _tS, _ba, _sCt],
2158
+ [_cTon, _stre, _rSI, _tI, _tPr, _tS, _ba, _sCt],
2135
2159
  [[0, { [_hH]: _CT }], [() => InvokeAgentRuntimeCommandStreamOutput$, 16], [0, { [_hH]: _XABARSI }], [0, { [_hH]: _XATI }], [0, { [_hH]: _tr }], [0, { [_hH]: _tra }], [0, { [_hH]: _ba }], [1, 32]], 2
2136
2160
  ];
2137
2161
  export var InvokeAgentRuntimeRequest$ = [3, n0, _IARR,
2138
2162
  0,
2139
- [_aRA, _p, _cTo, _ac, _mSI, _rSI, _mPV, _mM, _mN, _rUI, _tI, _tPr, _tS, _ba, _q, _aIc],
2163
+ [_aRA, _p, _cTon, _ac, _mSI, _rSI, _mPV, _mM, _mN, _rUI, _tI, _tPr, _tS, _ba, _q, _aIc],
2140
2164
  [[0, 1], [() => Body, 16], [0, { [_hH]: _CT }], [0, { [_hH]: _Ac }], [0, { [_hH]: _MSI }], [0, { [_hH]: _XABARSI, [_iT]: 1 }], [0, { [_hH]: _MPV }], [0, { [_hH]: _MM }], [0, { [_hH]: _MN }], [0, { [_hH]: _XABARUI }], [0, { [_hH]: _XATI }], [0, { [_hH]: _tr }], [0, { [_hH]: _tra }], [0, { [_hH]: _ba }], [0, { [_hQ]: _q }], [0, { [_hQ]: _aIc }]], 2
2141
2165
  ];
2142
2166
  export var InvokeAgentRuntimeResponse$ = [3, n0, _IARRn,
2143
2167
  0,
2144
- [_cTo, _rSI, _mSI, _mPV, _tI, _tPr, _tS, _ba, _resp, _sCt],
2168
+ [_cTon, _rSI, _mSI, _mPV, _tI, _tPr, _tS, _ba, _resp, _sCt],
2145
2169
  [[0, { [_hH]: _CT }], [0, { [_hH]: _XABARSI }], [0, { [_hH]: _MSI }], [0, { [_hH]: _MPV }], [0, { [_hH]: _XATI }], [0, { [_hH]: _tr }], [0, { [_hH]: _tra }], [0, { [_hH]: _ba }], [() => ResponseStream, 16], [1, 32]], 1
2146
2170
  ];
2147
2171
  export var InvokeBrowserRequest$ = [3, n0, _IBR,
@@ -3008,6 +3032,10 @@ var HarnessTools = [1, n0, _HTa,
3008
3032
  0]
3009
3033
  ];
3010
3034
  var IgnoredReferenceInputFields = 64 | 0;
3035
+ var IngestPayloadList = [1, n0, _IPL,
3036
+ 0, [() => IngestPayloadType$,
3037
+ 0]
3038
+ ];
3011
3039
  var InputContentBlockList = [1, n0, _ICBL,
3012
3040
  0, [() => InputContentBlock$,
3013
3041
  0]
@@ -3184,6 +3212,11 @@ export var Content$ = [4, n0, _Con,
3184
3212
  [_te],
3185
3213
  [[() => SensitiveString, 0]]
3186
3214
  ];
3215
+ export var ContentSource$ = [4, n0, _CSo,
3216
+ 0,
3217
+ [_inl],
3218
+ [[() => InlineMemoryContent$, 0]]
3219
+ ];
3187
3220
  export var Context$ = [4, n0, _Cont,
3188
3221
  0,
3189
3222
  [_sCp],
@@ -3294,6 +3327,11 @@ export var HarnessToolResultContentBlock$ = [4, n0, _HTRCBa,
3294
3327
  [_te, _js],
3295
3328
  [[() => SensitiveText, 0], [() => SensitiveJson, 0]]
3296
3329
  ];
3330
+ export var IngestPayloadType$ = [4, n0, _IPT,
3331
+ 0,
3332
+ [_conv, _js],
3333
+ [[() => Conversational$, 0], [() => MemoryJsonData$, 0]]
3334
+ ];
3297
3335
  export var InvokeAgentRuntimeCommandStreamOutput$ = [4, n0, _IARCSO,
3298
3336
  { [_st]: 1 },
3299
3337
  [_chu, _aDE, _iSE, _rNFE, _sQEE, _tEh, _vE, _rCE],
@@ -3541,6 +3579,9 @@ export var GetWorkloadAccessTokenForJWT$ = [9, n0, _GWATFJWT,
3541
3579
  export var GetWorkloadAccessTokenForUserId$ = [9, n0, _GWATFUI,
3542
3580
  { [_ht]: ["POST", "/identities/GetWorkloadAccessTokenForUserId", 200] }, () => GetWorkloadAccessTokenForUserIdRequest$, () => GetWorkloadAccessTokenForUserIdResponse$
3543
3581
  ];
3582
+ export var IngestData$ = [9, n0, _ID,
3583
+ { [_ht]: ["POST", "/memories/{memoryId}/ingest", 202] }, () => IngestDataInput$, () => IngestDataOutput$
3584
+ ];
3544
3585
  export var InvokeAgentRuntime$ = [9, n0, _IAR,
3545
3586
  { [_ht]: ["POST", "/runtimes/{agentRuntimeArn}/invocations", 200] }, () => InvokeAgentRuntimeRequest$, () => InvokeAgentRuntimeResponse$
3546
3587
  ];
@@ -34,6 +34,7 @@ import { type GetResourcePaymentTokenCommandInput, type GetResourcePaymentTokenC
34
34
  import { type GetWorkloadAccessTokenCommandInput, type GetWorkloadAccessTokenCommandOutput } from "./commands/GetWorkloadAccessTokenCommand";
35
35
  import { type GetWorkloadAccessTokenForJWTCommandInput, type GetWorkloadAccessTokenForJWTCommandOutput } from "./commands/GetWorkloadAccessTokenForJWTCommand";
36
36
  import { type GetWorkloadAccessTokenForUserIdCommandInput, type GetWorkloadAccessTokenForUserIdCommandOutput } from "./commands/GetWorkloadAccessTokenForUserIdCommand";
37
+ import { type IngestDataCommandInput, type IngestDataCommandOutput } from "./commands/IngestDataCommand";
37
38
  import { type InvokeAgentRuntimeCommandInput, type InvokeAgentRuntimeCommandOutput } from "./commands/InvokeAgentRuntimeCommand";
38
39
  import { type InvokeAgentRuntimeCommandCommandInput, type InvokeAgentRuntimeCommandCommandOutput } from "./commands/InvokeAgentRuntimeCommandCommand";
39
40
  import { type InvokeBrowserCommandInput, type InvokeBrowserCommandOutput } from "./commands/InvokeBrowserCommand";
@@ -271,6 +272,12 @@ export interface BedrockAgentCore {
271
272
  getWorkloadAccessTokenForUserId(args: GetWorkloadAccessTokenForUserIdCommandInput, options?: __HttpHandlerOptions): Promise<GetWorkloadAccessTokenForUserIdCommandOutput>;
272
273
  getWorkloadAccessTokenForUserId(args: GetWorkloadAccessTokenForUserIdCommandInput, cb: (err: any, data?: GetWorkloadAccessTokenForUserIdCommandOutput) => void): void;
273
274
  getWorkloadAccessTokenForUserId(args: GetWorkloadAccessTokenForUserIdCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetWorkloadAccessTokenForUserIdCommandOutput) => void): void;
275
+ /**
276
+ * @see {@link IngestDataCommand}
277
+ */
278
+ ingestData(args: IngestDataCommandInput, options?: __HttpHandlerOptions): Promise<IngestDataCommandOutput>;
279
+ ingestData(args: IngestDataCommandInput, cb: (err: any, data?: IngestDataCommandOutput) => void): void;
280
+ ingestData(args: IngestDataCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: IngestDataCommandOutput) => void): void;
274
281
  /**
275
282
  * @see {@link InvokeAgentRuntimeCommand}
276
283
  */
@@ -41,6 +41,7 @@ import type { GetResourcePaymentTokenCommandInput, GetResourcePaymentTokenComman
41
41
  import type { GetWorkloadAccessTokenCommandInput, GetWorkloadAccessTokenCommandOutput } from "./commands/GetWorkloadAccessTokenCommand";
42
42
  import type { GetWorkloadAccessTokenForJWTCommandInput, GetWorkloadAccessTokenForJWTCommandOutput } from "./commands/GetWorkloadAccessTokenForJWTCommand";
43
43
  import type { GetWorkloadAccessTokenForUserIdCommandInput, GetWorkloadAccessTokenForUserIdCommandOutput } from "./commands/GetWorkloadAccessTokenForUserIdCommand";
44
+ import type { IngestDataCommandInput, IngestDataCommandOutput } from "./commands/IngestDataCommand";
44
45
  import type { InvokeAgentRuntimeCommandInput, InvokeAgentRuntimeCommandOutput } from "./commands/InvokeAgentRuntimeCommand";
45
46
  import type { InvokeAgentRuntimeCommandCommandInput, InvokeAgentRuntimeCommandCommandOutput } from "./commands/InvokeAgentRuntimeCommandCommand";
46
47
  import type { InvokeBrowserCommandInput, InvokeBrowserCommandOutput } from "./commands/InvokeBrowserCommand";
@@ -79,11 +80,11 @@ export { __Client };
79
80
  /**
80
81
  * @public
81
82
  */
82
- export type ServiceInputTypes = BatchCreateMemoryRecordsCommandInput | BatchDeleteMemoryRecordsCommandInput | BatchUpdateMemoryRecordsCommandInput | CompleteResourceTokenAuthCommandInput | CreateABTestCommandInput | CreateEventCommandInput | CreatePaymentInstrumentCommandInput | CreatePaymentSessionCommandInput | DeleteABTestCommandInput | DeleteBatchEvaluationCommandInput | DeleteCapacityProviderSessionCommandInput | DeleteEventCommandInput | DeleteMemoryRecordCommandInput | DeletePaymentInstrumentCommandInput | DeletePaymentSessionCommandInput | DeleteRecommendationCommandInput | EvaluateCommandInput | GetABTestCommandInput | GetAgentCardCommandInput | GetBatchEvaluationCommandInput | GetBrowserSessionCommandInput | GetCodeInterpreterSessionCommandInput | GetEventCommandInput | GetMemoryRecordCommandInput | GetPaymentInstrumentBalanceCommandInput | GetPaymentInstrumentCommandInput | GetPaymentSessionCommandInput | GetRecommendationCommandInput | GetResourceApiKeyCommandInput | GetResourceOauth2TokenCommandInput | GetResourcePaymentTokenCommandInput | GetWorkloadAccessTokenCommandInput | GetWorkloadAccessTokenForJWTCommandInput | GetWorkloadAccessTokenForUserIdCommandInput | InvokeAgentRuntimeCommandCommandInput | InvokeAgentRuntimeCommandInput | InvokeBrowserCommandInput | InvokeCodeInterpreterCommandInput | InvokeHarnessCommandInput | ListABTestsCommandInput | ListActorsCommandInput | ListBatchEvaluationsCommandInput | ListBrowserSessionsCommandInput | ListCodeInterpreterSessionsCommandInput | ListEventsCommandInput | ListMemoryExtractionJobsCommandInput | ListMemoryRecordsCommandInput | ListPaymentInstrumentsCommandInput | ListPaymentSessionsCommandInput | ListRecommendationsCommandInput | ListSessionsCommandInput | ProcessPaymentCommandInput | RetrieveMemoryRecordsCommandInput | SaveBrowserSessionProfileCommandInput | SearchRegistryRecordsCommandInput | StartBatchEvaluationCommandInput | StartBrowserSessionCommandInput | StartCodeInterpreterSessionCommandInput | StartMemoryExtractionJobCommandInput | StartRecommendationCommandInput | StopBatchEvaluationCommandInput | StopBrowserSessionCommandInput | StopCodeInterpreterSessionCommandInput | StopRuntimeSessionCommandInput | UpdateABTestCommandInput | UpdateBrowserStreamCommandInput;
83
+ export type ServiceInputTypes = BatchCreateMemoryRecordsCommandInput | BatchDeleteMemoryRecordsCommandInput | BatchUpdateMemoryRecordsCommandInput | CompleteResourceTokenAuthCommandInput | CreateABTestCommandInput | CreateEventCommandInput | CreatePaymentInstrumentCommandInput | CreatePaymentSessionCommandInput | DeleteABTestCommandInput | DeleteBatchEvaluationCommandInput | DeleteCapacityProviderSessionCommandInput | DeleteEventCommandInput | DeleteMemoryRecordCommandInput | DeletePaymentInstrumentCommandInput | DeletePaymentSessionCommandInput | DeleteRecommendationCommandInput | EvaluateCommandInput | GetABTestCommandInput | GetAgentCardCommandInput | GetBatchEvaluationCommandInput | GetBrowserSessionCommandInput | GetCodeInterpreterSessionCommandInput | GetEventCommandInput | GetMemoryRecordCommandInput | GetPaymentInstrumentBalanceCommandInput | GetPaymentInstrumentCommandInput | GetPaymentSessionCommandInput | GetRecommendationCommandInput | GetResourceApiKeyCommandInput | GetResourceOauth2TokenCommandInput | GetResourcePaymentTokenCommandInput | GetWorkloadAccessTokenCommandInput | GetWorkloadAccessTokenForJWTCommandInput | GetWorkloadAccessTokenForUserIdCommandInput | IngestDataCommandInput | InvokeAgentRuntimeCommandCommandInput | InvokeAgentRuntimeCommandInput | InvokeBrowserCommandInput | InvokeCodeInterpreterCommandInput | InvokeHarnessCommandInput | ListABTestsCommandInput | ListActorsCommandInput | ListBatchEvaluationsCommandInput | ListBrowserSessionsCommandInput | ListCodeInterpreterSessionsCommandInput | ListEventsCommandInput | ListMemoryExtractionJobsCommandInput | ListMemoryRecordsCommandInput | ListPaymentInstrumentsCommandInput | ListPaymentSessionsCommandInput | ListRecommendationsCommandInput | ListSessionsCommandInput | ProcessPaymentCommandInput | RetrieveMemoryRecordsCommandInput | SaveBrowserSessionProfileCommandInput | SearchRegistryRecordsCommandInput | StartBatchEvaluationCommandInput | StartBrowserSessionCommandInput | StartCodeInterpreterSessionCommandInput | StartMemoryExtractionJobCommandInput | StartRecommendationCommandInput | StopBatchEvaluationCommandInput | StopBrowserSessionCommandInput | StopCodeInterpreterSessionCommandInput | StopRuntimeSessionCommandInput | UpdateABTestCommandInput | UpdateBrowserStreamCommandInput;
83
84
  /**
84
85
  * @public
85
86
  */
86
- export type ServiceOutputTypes = BatchCreateMemoryRecordsCommandOutput | BatchDeleteMemoryRecordsCommandOutput | BatchUpdateMemoryRecordsCommandOutput | CompleteResourceTokenAuthCommandOutput | CreateABTestCommandOutput | CreateEventCommandOutput | CreatePaymentInstrumentCommandOutput | CreatePaymentSessionCommandOutput | DeleteABTestCommandOutput | DeleteBatchEvaluationCommandOutput | DeleteCapacityProviderSessionCommandOutput | DeleteEventCommandOutput | DeleteMemoryRecordCommandOutput | DeletePaymentInstrumentCommandOutput | DeletePaymentSessionCommandOutput | DeleteRecommendationCommandOutput | EvaluateCommandOutput | GetABTestCommandOutput | GetAgentCardCommandOutput | GetBatchEvaluationCommandOutput | GetBrowserSessionCommandOutput | GetCodeInterpreterSessionCommandOutput | GetEventCommandOutput | GetMemoryRecordCommandOutput | GetPaymentInstrumentBalanceCommandOutput | GetPaymentInstrumentCommandOutput | GetPaymentSessionCommandOutput | GetRecommendationCommandOutput | GetResourceApiKeyCommandOutput | GetResourceOauth2TokenCommandOutput | GetResourcePaymentTokenCommandOutput | GetWorkloadAccessTokenCommandOutput | GetWorkloadAccessTokenForJWTCommandOutput | GetWorkloadAccessTokenForUserIdCommandOutput | InvokeAgentRuntimeCommandCommandOutput | InvokeAgentRuntimeCommandOutput | InvokeBrowserCommandOutput | InvokeCodeInterpreterCommandOutput | InvokeHarnessCommandOutput | ListABTestsCommandOutput | ListActorsCommandOutput | ListBatchEvaluationsCommandOutput | ListBrowserSessionsCommandOutput | ListCodeInterpreterSessionsCommandOutput | ListEventsCommandOutput | ListMemoryExtractionJobsCommandOutput | ListMemoryRecordsCommandOutput | ListPaymentInstrumentsCommandOutput | ListPaymentSessionsCommandOutput | ListRecommendationsCommandOutput | ListSessionsCommandOutput | ProcessPaymentCommandOutput | RetrieveMemoryRecordsCommandOutput | SaveBrowserSessionProfileCommandOutput | SearchRegistryRecordsCommandOutput | StartBatchEvaluationCommandOutput | StartBrowserSessionCommandOutput | StartCodeInterpreterSessionCommandOutput | StartMemoryExtractionJobCommandOutput | StartRecommendationCommandOutput | StopBatchEvaluationCommandOutput | StopBrowserSessionCommandOutput | StopCodeInterpreterSessionCommandOutput | StopRuntimeSessionCommandOutput | UpdateABTestCommandOutput | UpdateBrowserStreamCommandOutput;
87
+ export type ServiceOutputTypes = BatchCreateMemoryRecordsCommandOutput | BatchDeleteMemoryRecordsCommandOutput | BatchUpdateMemoryRecordsCommandOutput | CompleteResourceTokenAuthCommandOutput | CreateABTestCommandOutput | CreateEventCommandOutput | CreatePaymentInstrumentCommandOutput | CreatePaymentSessionCommandOutput | DeleteABTestCommandOutput | DeleteBatchEvaluationCommandOutput | DeleteCapacityProviderSessionCommandOutput | DeleteEventCommandOutput | DeleteMemoryRecordCommandOutput | DeletePaymentInstrumentCommandOutput | DeletePaymentSessionCommandOutput | DeleteRecommendationCommandOutput | EvaluateCommandOutput | GetABTestCommandOutput | GetAgentCardCommandOutput | GetBatchEvaluationCommandOutput | GetBrowserSessionCommandOutput | GetCodeInterpreterSessionCommandOutput | GetEventCommandOutput | GetMemoryRecordCommandOutput | GetPaymentInstrumentBalanceCommandOutput | GetPaymentInstrumentCommandOutput | GetPaymentSessionCommandOutput | GetRecommendationCommandOutput | GetResourceApiKeyCommandOutput | GetResourceOauth2TokenCommandOutput | GetResourcePaymentTokenCommandOutput | GetWorkloadAccessTokenCommandOutput | GetWorkloadAccessTokenForJWTCommandOutput | GetWorkloadAccessTokenForUserIdCommandOutput | IngestDataCommandOutput | InvokeAgentRuntimeCommandCommandOutput | InvokeAgentRuntimeCommandOutput | InvokeBrowserCommandOutput | InvokeCodeInterpreterCommandOutput | InvokeHarnessCommandOutput | ListABTestsCommandOutput | ListActorsCommandOutput | ListBatchEvaluationsCommandOutput | ListBrowserSessionsCommandOutput | ListCodeInterpreterSessionsCommandOutput | ListEventsCommandOutput | ListMemoryExtractionJobsCommandOutput | ListMemoryRecordsCommandOutput | ListPaymentInstrumentsCommandOutput | ListPaymentSessionsCommandOutput | ListRecommendationsCommandOutput | ListSessionsCommandOutput | ProcessPaymentCommandOutput | RetrieveMemoryRecordsCommandOutput | SaveBrowserSessionProfileCommandOutput | SearchRegistryRecordsCommandOutput | StartBatchEvaluationCommandOutput | StartBrowserSessionCommandOutput | StartCodeInterpreterSessionCommandOutput | StartMemoryExtractionJobCommandOutput | StartRecommendationCommandOutput | StopBatchEvaluationCommandOutput | StopBrowserSessionCommandOutput | StopCodeInterpreterSessionCommandOutput | StopRuntimeSessionCommandOutput | UpdateABTestCommandOutput | UpdateBrowserStreamCommandOutput;
87
88
  /**
88
89
  * @public
89
90
  */
@@ -0,0 +1,120 @@
1
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import type { IngestDataInput, IngestDataOutput } from "../models/models_1";
3
+ /**
4
+ * @public
5
+ */
6
+ export type { __MetadataBearer };
7
+ /**
8
+ * @public
9
+ *
10
+ * The input for {@link IngestDataCommand}.
11
+ */
12
+ export interface IngestDataCommandInput extends IngestDataInput {
13
+ }
14
+ /**
15
+ * @public
16
+ *
17
+ * The output of {@link IngestDataCommand}.
18
+ */
19
+ export interface IngestDataCommandOutput extends IngestDataOutput, __MetadataBearer {
20
+ }
21
+ declare const IngestDataCommand_base: {
22
+ new (input: IngestDataCommandInput): import("@smithy/core/client").CommandImpl<IngestDataCommandInput, IngestDataCommandOutput, import("..").BedrockAgentCoreClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: IngestDataCommandInput): import("@smithy/core/client").CommandImpl<IngestDataCommandInput, IngestDataCommandOutput, import("..").BedrockAgentCoreClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
+ };
26
+ /**
27
+ * <p>Submits content directly for ingestion to generate long-term memory records in a AgentCore Memory resource.</p> <p>To use this operation, you must have the <code>bedrock-agentcore:IngestData</code> permission.</p>
28
+ * @example
29
+ * Use a bare-bones client and the command you need to make an API call.
30
+ * ```javascript
31
+ * import { BedrockAgentCoreClient, IngestDataCommand } from "@aws-sdk/client-bedrock-agentcore"; // ES Modules import
32
+ * // const { BedrockAgentCoreClient, IngestDataCommand } = require("@aws-sdk/client-bedrock-agentcore"); // CommonJS import
33
+ * // import type { BedrockAgentCoreClientConfig } from "@aws-sdk/client-bedrock-agentcore";
34
+ * const config = {}; // type is BedrockAgentCoreClientConfig
35
+ * const client = new BedrockAgentCoreClient(config);
36
+ * const input = { // IngestDataInput
37
+ * memoryId: "STRING_VALUE", // required
38
+ * source: { // ContentSource Union: only one key present
39
+ * inline: { // InlineMemoryContent
40
+ * payload: [ // IngestPayloadList // required
41
+ * { // IngestPayloadType Union: only one key present
42
+ * conversational: { // Conversational
43
+ * content: { // Content Union: only one key present
44
+ * text: "STRING_VALUE",
45
+ * },
46
+ * role: "ASSISTANT" || "USER" || "TOOL" || "OTHER", // required
47
+ * },
48
+ * json: { // MemoryJsonData
49
+ * content: "DOCUMENT_VALUE", // required
50
+ * },
51
+ * },
52
+ * ],
53
+ * },
54
+ * },
55
+ * contentTimestamp: new Date("TIMESTAMP"), // required
56
+ * actorId: "STRING_VALUE", // required
57
+ * sessionId: "STRING_VALUE",
58
+ * extractionConfig: { // ExtractionConfig
59
+ * namespaceVariables: { // NamespaceVariablesMap
60
+ * "<keys>": "STRING_VALUE",
61
+ * },
62
+ * },
63
+ * metadata: { // MetadataMap
64
+ * "<keys>": { // MetadataValue Union: only one key present
65
+ * stringValue: "STRING_VALUE",
66
+ * },
67
+ * },
68
+ * clientToken: "STRING_VALUE",
69
+ * };
70
+ * const command = new IngestDataCommand(input);
71
+ * const response = await client.send(command);
72
+ * // { // IngestDataOutput
73
+ * // sessionId: "STRING_VALUE", // required
74
+ * // };
75
+ *
76
+ * ```
77
+ *
78
+ * @param IngestDataCommandInput - {@link IngestDataCommandInput}
79
+ * @returns {@link IngestDataCommandOutput}
80
+ * @see {@link IngestDataCommandInput} for command's `input` shape.
81
+ * @see {@link IngestDataCommandOutput} for command's `response` shape.
82
+ * @see {@link BedrockAgentCoreClientResolvedConfig | config} for BedrockAgentCoreClient's `config` shape.
83
+ *
84
+ * @throws {@link AccessDeniedException} (client fault)
85
+ * <p>The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.</p>
86
+ *
87
+ * @throws {@link ResourceNotFoundException} (client fault)
88
+ * <p>The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.</p>
89
+ *
90
+ * @throws {@link ServiceException} (server fault)
91
+ * <p>The service encountered an internal error. Try your request again later.</p>
92
+ *
93
+ * @throws {@link ServiceQuotaExceededException} (client fault)
94
+ * <p>The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.</p>
95
+ *
96
+ * @throws {@link ThrottledException} (client fault)
97
+ * <p>The request was denied due to request throttling. Reduce the frequency of requests and try again.</p>
98
+ *
99
+ * @throws {@link ValidationException} (client fault)
100
+ * <p>The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.</p>
101
+ *
102
+ * @throws {@link BedrockAgentCoreServiceException}
103
+ * <p>Base exception class for all service exceptions from BedrockAgentCore service.</p>
104
+ *
105
+ *
106
+ * @public
107
+ */
108
+ export declare class IngestDataCommand extends IngestDataCommand_base {
109
+ /** @internal type navigation helper, not in runtime. */
110
+ protected static __types: {
111
+ api: {
112
+ input: IngestDataInput;
113
+ output: IngestDataOutput;
114
+ };
115
+ sdk: {
116
+ input: IngestDataCommandInput;
117
+ output: IngestDataCommandOutput;
118
+ };
119
+ };
120
+ }
@@ -32,6 +32,7 @@ export * from "./GetResourcePaymentTokenCommand";
32
32
  export * from "./GetWorkloadAccessTokenCommand";
33
33
  export * from "./GetWorkloadAccessTokenForJWTCommand";
34
34
  export * from "./GetWorkloadAccessTokenForUserIdCommand";
35
+ export * from "./IngestDataCommand";
35
36
  export * from "./InvokeAgentRuntimeCommand";
36
37
  export * from "./InvokeAgentRuntimeCommandCommand";
37
38
  export * from "./InvokeBrowserCommand";
@@ -1,6 +1,6 @@
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
- import type { A2aDescriptor, ActorSummary, AgentSkillsDescriptor, Event, MemoryContent, MemoryRecordMetadataValue, MetadataValue } from "./models_0";
3
+ import type { A2aDescriptor, ActorSummary, AgentSkillsDescriptor, Conversational, Event, ExtractionConfig, MemoryContent, MemoryJsonData, MemoryRecordMetadataValue, MetadataValue } from "./models_0";
4
4
  /**
5
5
  * @public
6
6
  */
@@ -102,6 +102,150 @@ export interface GetMemoryRecordOutput {
102
102
  */
103
103
  memoryRecord: MemoryRecord | undefined;
104
104
  }
105
+ /**
106
+ * <p>A single content payload item to ingest. A payload item contains either conversational or JSON content.</p>
107
+ * @public
108
+ */
109
+ export type IngestPayloadType = IngestPayloadType.ConversationalMember | IngestPayloadType.JsonMember | IngestPayloadType.$UnknownMember;
110
+ /**
111
+ * @public
112
+ */
113
+ export declare namespace IngestPayloadType {
114
+ /**
115
+ * <p>The conversational content for this payload item.</p>
116
+ * @public
117
+ */
118
+ interface ConversationalMember {
119
+ conversational: Conversational;
120
+ json?: never;
121
+ $unknown?: never;
122
+ }
123
+ /**
124
+ * <p>The JSON content for this payload item.</p>
125
+ * @public
126
+ */
127
+ interface JsonMember {
128
+ conversational?: never;
129
+ json: MemoryJsonData;
130
+ $unknown?: never;
131
+ }
132
+ /**
133
+ * @public
134
+ */
135
+ interface $UnknownMember {
136
+ conversational?: never;
137
+ json?: never;
138
+ $unknown: [string, any];
139
+ }
140
+ /**
141
+ * @deprecated unused in schema-serde mode.
142
+ *
143
+ */
144
+ interface Visitor<T> {
145
+ conversational: (value: Conversational) => T;
146
+ json: (value: MemoryJsonData) => T;
147
+ _: (name: string, value: any) => T;
148
+ }
149
+ }
150
+ /**
151
+ * <p>The content included directly in the request as one or more payload items.</p>
152
+ * @public
153
+ */
154
+ export interface InlineMemoryContent {
155
+ /**
156
+ * <p>The list of content payload items to ingest.</p>
157
+ * @public
158
+ */
159
+ payload: IngestPayloadType[] | undefined;
160
+ }
161
+ /**
162
+ * <p>The source of the content to ingest. Only inline content is supported.</p>
163
+ * @public
164
+ */
165
+ export type ContentSource = ContentSource.InlineMember | ContentSource.$UnknownMember;
166
+ /**
167
+ * @public
168
+ */
169
+ export declare namespace ContentSource {
170
+ /**
171
+ * <p>The content included directly in the request.</p>
172
+ * @public
173
+ */
174
+ interface InlineMember {
175
+ inline: InlineMemoryContent;
176
+ $unknown?: never;
177
+ }
178
+ /**
179
+ * @public
180
+ */
181
+ interface $UnknownMember {
182
+ inline?: never;
183
+ $unknown: [string, any];
184
+ }
185
+ /**
186
+ * @deprecated unused in schema-serde mode.
187
+ *
188
+ */
189
+ interface Visitor<T> {
190
+ inline: (value: InlineMemoryContent) => T;
191
+ _: (name: string, value: any) => T;
192
+ }
193
+ }
194
+ /**
195
+ * @public
196
+ */
197
+ export interface IngestDataInput {
198
+ /**
199
+ * <p>The identifier of the AgentCore Memory resource to ingest content into.</p>
200
+ * @public
201
+ */
202
+ memoryId: string | undefined;
203
+ /**
204
+ * <p>The content to ingest. Only inline content is supported.</p>
205
+ * @public
206
+ */
207
+ source: ContentSource | undefined;
208
+ /**
209
+ * <p>The timestamp of when the content occurred.</p>
210
+ * @public
211
+ */
212
+ contentTimestamp: Date | undefined;
213
+ /**
214
+ * <p>The identifier of the actor associated with this content. An actor represents an entity that participates in sessions and generates content.</p>
215
+ * @public
216
+ */
217
+ actorId: string | undefined;
218
+ /**
219
+ * <p>The identifier of the session that the content belongs to. If not provided, a session identifier is generated and returned in the response.</p>
220
+ * @public
221
+ */
222
+ sessionId?: string | undefined;
223
+ /**
224
+ * <p>The extraction configuration for long-term memory records. Use this parameter to specify namespace variable keys and their values for namespace substitution during extraction.</p>
225
+ * @public
226
+ */
227
+ extractionConfig?: ExtractionConfig | undefined;
228
+ /**
229
+ * <p>The key-value metadata to attach to the content.</p>
230
+ * @public
231
+ */
232
+ metadata?: Record<string, MetadataValue> | undefined;
233
+ /**
234
+ * <p>A unique, case-sensitive identifier to ensure that the operation completes no more than one time. If this token matches a previous request, AgentCore ignores the request, but does not return an error.</p>
235
+ * @public
236
+ */
237
+ clientToken?: string | undefined;
238
+ }
239
+ /**
240
+ * @public
241
+ */
242
+ export interface IngestDataOutput {
243
+ /**
244
+ * <p>The identifier of the session that the service ingested the content into. This value echoes the session identifier from the request, or the identifier that the service generated when you did not provide one.</p>
245
+ * @public
246
+ */
247
+ sessionId: string | undefined;
248
+ }
105
249
  /**
106
250
  * @public
107
251
  */
@@ -192,7 +192,10 @@ export declare var HarnessToolResultMetadataBlockDelta$: StaticStructureSchema;
192
192
  export declare var HarnessToolUseBlock$: StaticStructureSchema;
193
193
  export declare var HarnessToolUseBlockDelta$: StaticStructureSchema;
194
194
  export declare var HarnessToolUseBlockStart$: StaticStructureSchema;
195
+ export declare var IngestDataInput$: StaticStructureSchema;
196
+ export declare var IngestDataOutput$: StaticStructureSchema;
195
197
  export declare var InlineGroundTruth$: StaticStructureSchema;
198
+ export declare var InlineMemoryContent$: StaticStructureSchema;
196
199
  export declare var InputContentBlock$: StaticStructureSchema;
197
200
  export declare var Insight$: StaticStructureSchema;
198
201
  export declare var InsightsFailureSignal$: StaticStructureSchema;
@@ -357,6 +360,7 @@ export declare var BrowserActionResult$: StaticUnionSchema;
357
360
  export declare var CertificateLocation$: StaticUnionSchema;
358
361
  export declare var CodeInterpreterStreamOutput$: StaticUnionSchema;
359
362
  export declare var Content$: StaticUnionSchema;
363
+ export declare var ContentSource$: StaticUnionSchema;
360
364
  export declare var Context$: StaticUnionSchema;
361
365
  export declare var DataSourceConfig$: StaticUnionSchema;
362
366
  export declare var EvaluationContent$: StaticUnionSchema;
@@ -379,6 +383,7 @@ export declare var HarnessSystemContentBlock$: StaticUnionSchema;
379
383
  export declare var HarnessToolConfiguration$: StaticUnionSchema;
380
384
  export declare var HarnessToolResultBlockDelta$: StaticUnionSchema;
381
385
  export declare var HarnessToolResultContentBlock$: StaticUnionSchema;
386
+ export declare var IngestPayloadType$: StaticUnionSchema;
382
387
  export declare var InvokeAgentRuntimeCommandStreamOutput$: StaticUnionSchema;
383
388
  export declare var InvokeHarnessStreamOutput$: StaticUnionSchema;
384
389
  export declare var LeftExpression$: StaticUnionSchema;
@@ -442,6 +447,7 @@ export declare var GetResourcePaymentToken$: StaticOperationSchema;
442
447
  export declare var GetWorkloadAccessToken$: StaticOperationSchema;
443
448
  export declare var GetWorkloadAccessTokenForJWT$: StaticOperationSchema;
444
449
  export declare var GetWorkloadAccessTokenForUserId$: StaticOperationSchema;
450
+ export declare var IngestData$: StaticOperationSchema;
445
451
  export declare var InvokeAgentRuntime$: StaticOperationSchema;
446
452
  export declare var InvokeAgentRuntimeCommand$: StaticOperationSchema;
447
453
  export declare var InvokeBrowser$: StaticOperationSchema;
@@ -125,6 +125,7 @@ import {
125
125
  GetWorkloadAccessTokenForUserIdCommandInput,
126
126
  GetWorkloadAccessTokenForUserIdCommandOutput,
127
127
  } from "./commands/GetWorkloadAccessTokenForUserIdCommand";
128
+ import { IngestDataCommandInput, IngestDataCommandOutput } from "./commands/IngestDataCommand";
128
129
  import {
129
130
  InvokeAgentRuntimeCommandInput,
130
131
  InvokeAgentRuntimeCommandOutput,
@@ -681,6 +682,19 @@ export interface BedrockAgentCore {
681
682
  options: __HttpHandlerOptions,
682
683
  cb: (err: any, data?: GetWorkloadAccessTokenForUserIdCommandOutput) => void,
683
684
  ): void;
685
+ ingestData(
686
+ args: IngestDataCommandInput,
687
+ options?: __HttpHandlerOptions,
688
+ ): Promise<IngestDataCommandOutput>;
689
+ ingestData(
690
+ args: IngestDataCommandInput,
691
+ cb: (err: any, data?: IngestDataCommandOutput) => void,
692
+ ): void;
693
+ ingestData(
694
+ args: IngestDataCommandInput,
695
+ options: __HttpHandlerOptions,
696
+ cb: (err: any, data?: IngestDataCommandOutput) => void,
697
+ ): void;
684
698
  invokeAgentRuntime(
685
699
  args: InvokeAgentRuntimeCommandInput,
686
700
  options?: __HttpHandlerOptions,
@@ -160,6 +160,7 @@ import {
160
160
  GetWorkloadAccessTokenForUserIdCommandInput,
161
161
  GetWorkloadAccessTokenForUserIdCommandOutput,
162
162
  } from "./commands/GetWorkloadAccessTokenForUserIdCommand";
163
+ import { IngestDataCommandInput, IngestDataCommandOutput } from "./commands/IngestDataCommand";
163
164
  import {
164
165
  InvokeAgentRuntimeCommandInput,
165
166
  InvokeAgentRuntimeCommandOutput,
@@ -321,6 +322,7 @@ export type ServiceInputTypes =
321
322
  | GetWorkloadAccessTokenCommandInput
322
323
  | GetWorkloadAccessTokenForJWTCommandInput
323
324
  | GetWorkloadAccessTokenForUserIdCommandInput
325
+ | IngestDataCommandInput
324
326
  | InvokeAgentRuntimeCommandCommandInput
325
327
  | InvokeAgentRuntimeCommandInput
326
328
  | InvokeBrowserCommandInput
@@ -388,6 +390,7 @@ export type ServiceOutputTypes =
388
390
  | GetWorkloadAccessTokenCommandOutput
389
391
  | GetWorkloadAccessTokenForJWTCommandOutput
390
392
  | GetWorkloadAccessTokenForUserIdCommandOutput
393
+ | IngestDataCommandOutput
391
394
  | InvokeAgentRuntimeCommandCommandOutput
392
395
  | InvokeAgentRuntimeCommandOutput
393
396
  | InvokeBrowserCommandOutput
@@ -0,0 +1,38 @@
1
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import { IngestDataInput, IngestDataOutput } from "../models/models_1";
3
+ export { __MetadataBearer };
4
+ export interface IngestDataCommandInput extends IngestDataInput {}
5
+ export interface IngestDataCommandOutput extends IngestDataOutput, __MetadataBearer {}
6
+ declare const IngestDataCommand_base: {
7
+ new (
8
+ input: IngestDataCommandInput,
9
+ ): import("@smithy/core/client").CommandImpl<
10
+ IngestDataCommandInput,
11
+ IngestDataCommandOutput,
12
+ import("..").BedrockAgentCoreClientResolvedConfig,
13
+ import("..").ServiceInputTypes,
14
+ import("..").ServiceOutputTypes
15
+ >;
16
+ new (
17
+ input: IngestDataCommandInput,
18
+ ): import("@smithy/core/client").CommandImpl<
19
+ IngestDataCommandInput,
20
+ IngestDataCommandOutput,
21
+ import("..").BedrockAgentCoreClientResolvedConfig,
22
+ import("..").ServiceInputTypes,
23
+ import("..").ServiceOutputTypes
24
+ >;
25
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
26
+ };
27
+ export declare class IngestDataCommand extends IngestDataCommand_base {
28
+ protected static __types: {
29
+ api: {
30
+ input: IngestDataInput;
31
+ output: IngestDataOutput;
32
+ };
33
+ sdk: {
34
+ input: IngestDataCommandInput;
35
+ output: IngestDataCommandOutput;
36
+ };
37
+ };
38
+ }
@@ -32,6 +32,7 @@ export * from "./GetResourcePaymentTokenCommand";
32
32
  export * from "./GetWorkloadAccessTokenCommand";
33
33
  export * from "./GetWorkloadAccessTokenForJWTCommand";
34
34
  export * from "./GetWorkloadAccessTokenForUserIdCommand";
35
+ export * from "./IngestDataCommand";
35
36
  export * from "./InvokeAgentRuntimeCommand";
36
37
  export * from "./InvokeAgentRuntimeCommandCommand";
37
38
  export * from "./InvokeBrowserCommand";
@@ -20,8 +20,11 @@ import {
20
20
  A2aDescriptor,
21
21
  ActorSummary,
22
22
  AgentSkillsDescriptor,
23
+ Conversational,
23
24
  Event,
25
+ ExtractionConfig,
24
26
  MemoryContent,
27
+ MemoryJsonData,
25
28
  MemoryRecordMetadataValue,
26
29
  MetadataValue,
27
30
  } from "./models_0";
@@ -50,6 +53,63 @@ export interface MemoryRecord {
50
53
  export interface GetMemoryRecordOutput {
51
54
  memoryRecord: MemoryRecord | undefined;
52
55
  }
56
+ export type IngestPayloadType =
57
+ | IngestPayloadType.ConversationalMember
58
+ | IngestPayloadType.JsonMember
59
+ | IngestPayloadType.$UnknownMember;
60
+ export declare namespace IngestPayloadType {
61
+ interface ConversationalMember {
62
+ conversational: Conversational;
63
+ json?: never;
64
+ $unknown?: never;
65
+ }
66
+ interface JsonMember {
67
+ conversational?: never;
68
+ json: MemoryJsonData;
69
+ $unknown?: never;
70
+ }
71
+ interface $UnknownMember {
72
+ conversational?: never;
73
+ json?: never;
74
+ $unknown: [string, any];
75
+ }
76
+ interface Visitor<T> {
77
+ conversational: (value: Conversational) => T;
78
+ json: (value: MemoryJsonData) => T;
79
+ _: (name: string, value: any) => T;
80
+ }
81
+ }
82
+ export interface InlineMemoryContent {
83
+ payload: IngestPayloadType[] | undefined;
84
+ }
85
+ export type ContentSource = ContentSource.InlineMember | ContentSource.$UnknownMember;
86
+ export declare namespace ContentSource {
87
+ interface InlineMember {
88
+ inline: InlineMemoryContent;
89
+ $unknown?: never;
90
+ }
91
+ interface $UnknownMember {
92
+ inline?: never;
93
+ $unknown: [string, any];
94
+ }
95
+ interface Visitor<T> {
96
+ inline: (value: InlineMemoryContent) => T;
97
+ _: (name: string, value: any) => T;
98
+ }
99
+ }
100
+ export interface IngestDataInput {
101
+ memoryId: string | undefined;
102
+ source: ContentSource | undefined;
103
+ contentTimestamp: Date | undefined;
104
+ actorId: string | undefined;
105
+ sessionId?: string | undefined;
106
+ extractionConfig?: ExtractionConfig | undefined;
107
+ metadata?: Record<string, MetadataValue> | undefined;
108
+ clientToken?: string | undefined;
109
+ }
110
+ export interface IngestDataOutput {
111
+ sessionId: string | undefined;
112
+ }
53
113
  export interface ListActorsInput {
54
114
  memoryId: string | undefined;
55
115
  maxResults?: number | undefined;
@@ -192,7 +192,10 @@ export declare var HarnessToolResultMetadataBlockDelta$: StaticStructureSchema;
192
192
  export declare var HarnessToolUseBlock$: StaticStructureSchema;
193
193
  export declare var HarnessToolUseBlockDelta$: StaticStructureSchema;
194
194
  export declare var HarnessToolUseBlockStart$: StaticStructureSchema;
195
+ export declare var IngestDataInput$: StaticStructureSchema;
196
+ export declare var IngestDataOutput$: StaticStructureSchema;
195
197
  export declare var InlineGroundTruth$: StaticStructureSchema;
198
+ export declare var InlineMemoryContent$: StaticStructureSchema;
196
199
  export declare var InputContentBlock$: StaticStructureSchema;
197
200
  export declare var Insight$: StaticStructureSchema;
198
201
  export declare var InsightsFailureSignal$: StaticStructureSchema;
@@ -357,6 +360,7 @@ export declare var BrowserActionResult$: StaticUnionSchema;
357
360
  export declare var CertificateLocation$: StaticUnionSchema;
358
361
  export declare var CodeInterpreterStreamOutput$: StaticUnionSchema;
359
362
  export declare var Content$: StaticUnionSchema;
363
+ export declare var ContentSource$: StaticUnionSchema;
360
364
  export declare var Context$: StaticUnionSchema;
361
365
  export declare var DataSourceConfig$: StaticUnionSchema;
362
366
  export declare var EvaluationContent$: StaticUnionSchema;
@@ -379,6 +383,7 @@ export declare var HarnessSystemContentBlock$: StaticUnionSchema;
379
383
  export declare var HarnessToolConfiguration$: StaticUnionSchema;
380
384
  export declare var HarnessToolResultBlockDelta$: StaticUnionSchema;
381
385
  export declare var HarnessToolResultContentBlock$: StaticUnionSchema;
386
+ export declare var IngestPayloadType$: StaticUnionSchema;
382
387
  export declare var InvokeAgentRuntimeCommandStreamOutput$: StaticUnionSchema;
383
388
  export declare var InvokeHarnessStreamOutput$: StaticUnionSchema;
384
389
  export declare var LeftExpression$: StaticUnionSchema;
@@ -442,6 +447,7 @@ export declare var GetResourcePaymentToken$: StaticOperationSchema;
442
447
  export declare var GetWorkloadAccessToken$: StaticOperationSchema;
443
448
  export declare var GetWorkloadAccessTokenForJWT$: StaticOperationSchema;
444
449
  export declare var GetWorkloadAccessTokenForUserId$: StaticOperationSchema;
450
+ export declare var IngestData$: StaticOperationSchema;
445
451
  export declare var InvokeAgentRuntime$: StaticOperationSchema;
446
452
  export declare var InvokeAgentRuntimeCommand$: StaticOperationSchema;
447
453
  export declare var InvokeBrowser$: StaticOperationSchema;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-bedrock-agentcore",
3
- "version": "3.1120.0",
3
+ "version": "3.1121.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",