@aws-sdk/client-bedrock-agent-runtime 3.1109.0 → 3.1111.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.
Files changed (47) hide show
  1. package/README.md +15 -1
  2. package/dist-cjs/index.js +135 -21
  3. package/dist-es/BedrockAgentRuntime.js +4 -0
  4. package/dist-es/commands/CheckIngestedDocumentAclCommand.js +4 -0
  5. package/dist-es/commands/GetIngestedDocumentAclCommand.js +4 -0
  6. package/dist-es/commands/index.js +2 -0
  7. package/dist-es/models/enums.js +8 -0
  8. package/dist-es/schemas/schemas_0.js +103 -20
  9. package/dist-types/BedrockAgentRuntime.d.ts +15 -1
  10. package/dist-types/BedrockAgentRuntimeClient.d.ts +5 -3
  11. package/dist-types/commands/CheckIngestedDocumentAclCommand.d.ts +91 -0
  12. package/dist-types/commands/CreateInvocationCommand.d.ts +1 -1
  13. package/dist-types/commands/CreateSessionCommand.d.ts +2 -1
  14. package/dist-types/commands/DeleteSessionCommand.d.ts +1 -1
  15. package/dist-types/commands/EndSessionCommand.d.ts +1 -1
  16. package/dist-types/commands/GetIngestedDocumentAclCommand.d.ts +129 -0
  17. package/dist-types/commands/GetSessionCommand.d.ts +1 -1
  18. package/dist-types/commands/InvokeAgentCommand.d.ts +1 -1
  19. package/dist-types/commands/index.d.ts +2 -0
  20. package/dist-types/index.d.ts +1 -1
  21. package/dist-types/models/enums.d.ts +24 -0
  22. package/dist-types/models/models_0.d.ts +152 -162
  23. package/dist-types/models/models_1.d.ts +164 -4
  24. package/dist-types/runtimeConfig.browser.d.ts +39 -39
  25. package/dist-types/runtimeConfig.d.ts +36 -36
  26. package/dist-types/runtimeConfig.native.d.ts +38 -38
  27. package/dist-types/runtimeConfig.shared.d.ts +2 -2
  28. package/dist-types/schemas/schemas_0.d.ts +11 -0
  29. package/dist-types/ts3.4/BedrockAgentRuntime.d.ts +34 -0
  30. package/dist-types/ts3.4/BedrockAgentRuntimeClient.d.ts +12 -0
  31. package/dist-types/ts3.4/commands/CheckIngestedDocumentAclCommand.d.ts +42 -0
  32. package/dist-types/ts3.4/commands/CreateInvocationCommand.d.ts +1 -1
  33. package/dist-types/ts3.4/commands/CreateSessionCommand.d.ts +2 -1
  34. package/dist-types/ts3.4/commands/DeleteSessionCommand.d.ts +1 -1
  35. package/dist-types/ts3.4/commands/EndSessionCommand.d.ts +1 -1
  36. package/dist-types/ts3.4/commands/GetIngestedDocumentAclCommand.d.ts +39 -0
  37. package/dist-types/ts3.4/commands/GetSessionCommand.d.ts +1 -1
  38. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  39. package/dist-types/ts3.4/models/enums.d.ts +12 -0
  40. package/dist-types/ts3.4/models/models_0.d.ts +40 -41
  41. package/dist-types/ts3.4/models/models_1.d.ts +40 -0
  42. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +55 -57
  43. package/dist-types/ts3.4/runtimeConfig.d.ts +58 -58
  44. package/dist-types/ts3.4/runtimeConfig.native.d.ts +59 -61
  45. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +3 -3
  46. package/dist-types/ts3.4/schemas/schemas_0.d.ts +11 -0
  47. package/package.json +5 -5
@@ -88,6 +88,9 @@ const _CE = "ConflictException";
88
88
  const _CEi = "CitationEvent";
89
89
  const _CH = "ConversationHistory";
90
90
  const _CI = "CollaborationInstruction";
91
+ const _CIDA = "CheckIngestedDocumentAcl";
92
+ const _CIDAR = "CheckIngestedDocumentAclRequest";
93
+ const _CIDARh = "CheckIngestedDocumentAclResponse";
91
94
  const _CIII = "CodeInterpreterInvocationInput";
92
95
  const _CIIO = "CodeInterpreterInvocationOutput";
93
96
  const _CIR = "CreateInvocationRequest";
@@ -105,9 +108,17 @@ const _Ca = "Caller";
105
108
  const _Ci = "Citations";
106
109
  const _Co = "Collaborator";
107
110
  const _Col = "Collaborators";
108
- const _DAM = "DeleteAgentMemory";
111
+ const _DA = "DocumentAcl";
112
+ const _DAC = "DocumentAclCondition";
113
+ const _DACL = "DocumentAclConditionList";
114
+ const _DAG = "DocumentAclGroup";
115
+ const _DAGL = "DocumentAclGroupList";
116
+ const _DAM = "DocumentAclMembership";
109
117
  const _DAMR = "DeleteAgentMemoryRequest";
110
118
  const _DAMRe = "DeleteAgentMemoryResponse";
119
+ const _DAMe = "DeleteAgentMemory";
120
+ const _DAU = "DocumentAclUser";
121
+ const _DAUL = "DocumentAclUserList";
111
122
  const _DFE = "DependencyFailedException";
112
123
  const _DS = "DeleteSession";
113
124
  const _DSR = "DeleteSessionRequest";
@@ -205,6 +216,9 @@ const _GEFSRe = "GetExecutionFlowSnapshotResponse";
205
216
  const _GFE = "GetFlowExecution";
206
217
  const _GFER = "GetFlowExecutionRequest";
207
218
  const _GFERe = "GetFlowExecutionResponse";
219
+ const _GIDA = "GetIngestedDocumentAcl";
220
+ const _GIDAR = "GetIngestedDocumentAclRequest";
221
+ const _GIDARe = "GetIngestedDocumentAclResponse";
208
222
  const _GIS = "GetInvocationStep";
209
223
  const _GISR = "GetInvocationStepRequest";
210
224
  const _GISRe = "GetInvocationStepResponse";
@@ -513,6 +527,7 @@ const _aGc = "actionGroups";
513
527
  const _aI = "agentId";
514
528
  const _aII = "apiInvocationInput";
515
529
  const _aIT = "actionInvocationType";
530
+ const _aL = "allowList";
516
531
  const _aMRF = "additionalModelRequestFields";
517
532
  const _aN = "agentName";
518
533
  const _aP = "apiPath";
@@ -554,8 +569,9 @@ const _cN = "collaboratorName";
554
569
  const _cNRT = "conditionNodeResultTrace";
555
570
  const _cNo = "conditionName";
556
571
  const _cNol = "columnName";
557
- const _cO = "customOrchestration";
572
+ const _cO = "conditionOperator";
558
573
  const _cOT = "customOrchestrationTrace";
574
+ const _cOu = "customOrchestration";
559
575
  const _cP = "contentPolicy";
560
576
  const _cR = "completionReason";
561
577
  const _cRE = "conditionResultEvent";
@@ -573,11 +589,14 @@ const _cod = "code";
573
589
  const _col = "collaborators";
574
590
  const _com = "completion";
575
591
  const _con = "configuration";
592
+ const _cond = "conditions";
576
593
  const _conf = "confidence";
577
594
  const _d = "description";
595
+ const _dA = "documentAcl";
578
596
  const _dCL = "documentContentLength";
579
597
  const _dFE = "dependencyFailedException";
580
598
  const _dI = "documentId";
599
+ const _dL = "denyList";
581
600
  const _dSI = "dataSourceId";
582
601
  const _da = "data";
583
602
  const _de = "definition";
@@ -644,7 +663,7 @@ const _fil = "filters";
644
663
  const _filt = "filter";
645
664
  const _fo = "format";
646
665
  const _fu = "functions";
647
- const _g = "guardrail";
666
+ const _g = "groups";
648
667
  const _gA = "guardrailAction";
649
668
  const _gC = "guardrailConfiguration";
650
669
  const _gCe = "generationConfiguration";
@@ -658,7 +677,9 @@ const _gT = "greaterThan";
658
677
  const _gTOE = "greaterThanOrEquals";
659
678
  const _gTu = "guardrailTrace";
660
679
  const _gV = "guardrailVersion";
680
+ const _gu = "guardrail";
661
681
  const _h = "http";
682
+ const _hA = "hasAccess";
662
683
  const _hE = "httpError";
663
684
  const _hH = "httpHeader";
664
685
  const _hM = "httpMethod";
@@ -731,7 +752,8 @@ const _mL = "maximumLength";
731
752
  const _mNOR = "maxNumberOfResults";
732
753
  const _mNRE = "modelNotReadyException";
733
754
  const _mPC = "modelPerformanceConfiguration";
734
- const _mR = "maxResults";
755
+ const _mR = "memberRelation";
756
+ const _mRa = "maxResults";
735
757
  const _mSC = "managedSearchConfiguration";
736
758
  const _mT = "mediaType";
737
759
  const _mTa = "maxTokens";
@@ -932,12 +954,13 @@ const _to = "topics";
932
954
  const _tr = "transcription";
933
955
  const _tra = "trace";
934
956
  const _ty = "type";
935
- const _u = "usage";
957
+ const _u = "users";
936
958
  const _uC = "userContext";
937
959
  const _uCs = "useCase";
938
960
  const _uI = "userId";
939
961
  const _ur = "url";
940
962
  const _uri = "uri";
963
+ const _us = "usage";
941
964
  const _v = "verb";
942
965
  const _vE = "validationException";
943
966
  const _vSC = "vectorSearchConfiguration";
@@ -1299,6 +1322,16 @@ export var ByteContentFile$ = [3, n0, _BCF,
1299
1322
  [_mT, _da],
1300
1323
  [0, [() => ByteContentBlob, 0]], 2
1301
1324
  ];
1325
+ export var CheckIngestedDocumentAclRequest$ = [3, n0, _CIDAR,
1326
+ 0,
1327
+ [_kBI, _dSI, _dI, _uC],
1328
+ [[0, 1], [0, 1], 0, [() => UserContext$, 0]], 4
1329
+ ];
1330
+ export var CheckIngestedDocumentAclResponse$ = [3, n0, _CIDARh,
1331
+ 0,
1332
+ [_hA],
1333
+ [2], 1
1334
+ ];
1302
1335
  export var Citation$ = [3, n0, _C,
1303
1336
  0,
1304
1337
  [_gRP, _rRe],
@@ -1399,6 +1432,31 @@ export var DeleteSessionResponse$ = [3, n0, _DSRe,
1399
1432
  [],
1400
1433
  []
1401
1434
  ];
1435
+ export var DocumentAcl$ = [3, n0, _DA,
1436
+ 8,
1437
+ [_aL, _dL],
1438
+ [() => DocumentAclMembership$, () => DocumentAclMembership$]
1439
+ ];
1440
+ export var DocumentAclCondition$ = [3, n0, _DAC,
1441
+ 0,
1442
+ [_cO, _u, _g],
1443
+ [0, () => DocumentAclUserList, () => DocumentAclGroupList]
1444
+ ];
1445
+ export var DocumentAclGroup$ = [3, n0, _DAG,
1446
+ 0,
1447
+ [_id, _ty],
1448
+ [0, 0], 2
1449
+ ];
1450
+ export var DocumentAclMembership$ = [3, n0, _DAM,
1451
+ 0,
1452
+ [_mR, _cond],
1453
+ [0, () => DocumentAclConditionList]
1454
+ ];
1455
+ export var DocumentAclUser$ = [3, n0, _DAU,
1456
+ 0,
1457
+ [_id, _ty],
1458
+ [0, 0], 2
1459
+ ];
1402
1460
  export var EndSessionRequest$ = [3, n0, _ESR,
1403
1461
  0,
1404
1462
  [_sIe],
@@ -1659,6 +1717,16 @@ export var GetFlowExecutionResponse$ = [3, n0, _GFERe,
1659
1717
  [_eA, _sta, _sAt, _fAI, _fI, _fV, _eAn, _er],
1660
1718
  [0, 0, 5, 0, 0, 0, 5, () => FlowExecutionErrors], 6
1661
1719
  ];
1720
+ export var GetIngestedDocumentAclRequest$ = [3, n0, _GIDAR,
1721
+ 0,
1722
+ [_kBI, _dSI, _dI],
1723
+ [[0, 1], [0, 1], 0], 3
1724
+ ];
1725
+ export var GetIngestedDocumentAclResponse$ = [3, n0, _GIDARe,
1726
+ 0,
1727
+ [_dA],
1728
+ [[() => DocumentAcl$, 0]], 1
1729
+ ];
1662
1730
  export var GetInvocationStepRequest$ = [3, n0, _GISR,
1663
1731
  0,
1664
1732
  [_iIn, _iSI, _sIe],
@@ -1861,7 +1929,7 @@ export var InvokeFlowResponse$ = [3, n0, _IFRn,
1861
1929
  ];
1862
1930
  export var InvokeInlineAgentRequest$ = [3, n0, _IIAR,
1863
1931
  0,
1864
- [_fM, _in, _sIes, _cEKA, _iSTTLIS, _aGc, _kB, _gC, _pOC, _aC, _cC, _aN, _eS, _eTn, _iTn, _sCt, _pCC, _iSS, _col, _bMC, _oT, _cO],
1932
+ [_fM, _in, _sIes, _cEKA, _iSTTLIS, _aGc, _kB, _gC, _pOC, _aC, _cC, _aN, _eS, _eTn, _iTn, _sCt, _pCC, _iSS, _col, _bMC, _oT, _cOu],
1865
1933
  [0, [() => Instruction, 0], [0, 1], 0, 1, [() => AgentActionGroups, 0], [() => KnowledgeBases, 0], () => GuardrailConfigurationWithArn$, [() => PromptOverrideConfiguration$, 0], 0, [() => CollaboratorConfigurations, 0], [() => Name, 0], 2, 2, [() => InputText, 0], () => StreamingConfigurations$, () => PromptCreationConfigurations$, [() => InlineSessionState$, 0], [() => Collaborators, 0], () => InlineBedrockModelConfigurations$, 0, () => CustomOrchestration$], 3
1866
1934
  ];
1867
1935
  export var InvokeInlineAgentResponse$ = [3, n0, _IIARn,
@@ -1921,8 +1989,8 @@ export var KnowledgeBaseVectorSearchConfiguration$ = [3, n0, _KBVSC,
1921
1989
  ];
1922
1990
  export var ListFlowExecutionEventsRequest$ = [3, n0, _LFEER,
1923
1991
  0,
1924
- [_fI, _fAI, _eIx, _eTve, _mR, _nT],
1925
- [[0, 1], [0, 1], [0, 1], [0, { [_hQ]: _eTve }], [1, { [_hQ]: _mR }], [0, { [_hQ]: _nT }]], 4
1992
+ [_fI, _fAI, _eIx, _eTve, _mRa, _nT],
1993
+ [[0, 1], [0, 1], [0, 1], [0, { [_hQ]: _eTve }], [1, { [_hQ]: _mRa }], [0, { [_hQ]: _nT }]], 4
1926
1994
  ];
1927
1995
  export var ListFlowExecutionEventsResponse$ = [3, n0, _LFEERi,
1928
1996
  0,
@@ -1931,8 +1999,8 @@ export var ListFlowExecutionEventsResponse$ = [3, n0, _LFEERi,
1931
1999
  ];
1932
2000
  export var ListFlowExecutionsRequest$ = [3, n0, _LFER,
1933
2001
  0,
1934
- [_fI, _fAI, _mR, _nT],
1935
- [[0, 1], [0, { [_hQ]: _fAI }], [1, { [_hQ]: _mR }], [0, { [_hQ]: _nT }]], 1
2002
+ [_fI, _fAI, _mRa, _nT],
2003
+ [[0, 1], [0, { [_hQ]: _fAI }], [1, { [_hQ]: _mRa }], [0, { [_hQ]: _nT }]], 1
1936
2004
  ];
1937
2005
  export var ListFlowExecutionsResponse$ = [3, n0, _LFERi,
1938
2006
  0,
@@ -1941,8 +2009,8 @@ export var ListFlowExecutionsResponse$ = [3, n0, _LFERi,
1941
2009
  ];
1942
2010
  export var ListInvocationsRequest$ = [3, n0, _LIR,
1943
2011
  0,
1944
- [_sIe, _nT, _mR],
1945
- [[0, 1], [0, { [_hQ]: _nT }], [1, { [_hQ]: _mR }]], 1
2012
+ [_sIe, _nT, _mRa],
2013
+ [[0, 1], [0, { [_hQ]: _nT }], [1, { [_hQ]: _mRa }]], 1
1946
2014
  ];
1947
2015
  export var ListInvocationsResponse$ = [3, n0, _LIRi,
1948
2016
  0,
@@ -1951,8 +2019,8 @@ export var ListInvocationsResponse$ = [3, n0, _LIRi,
1951
2019
  ];
1952
2020
  export var ListInvocationStepsRequest$ = [3, n0, _LISR,
1953
2021
  0,
1954
- [_sIe, _iIn, _nT, _mR],
1955
- [[0, 1], 0, [0, { [_hQ]: _nT }], [1, { [_hQ]: _mR }]], 1
2022
+ [_sIe, _iIn, _nT, _mRa],
2023
+ [[0, 1], 0, [0, { [_hQ]: _nT }], [1, { [_hQ]: _mRa }]], 1
1956
2024
  ];
1957
2025
  export var ListInvocationStepsResponse$ = [3, n0, _LISRi,
1958
2026
  0,
@@ -1961,8 +2029,8 @@ export var ListInvocationStepsResponse$ = [3, n0, _LISRi,
1961
2029
  ];
1962
2030
  export var ListSessionsRequest$ = [3, n0, _LSR,
1963
2031
  0,
1964
- [_mR, _nT],
1965
- [[1, { [_hQ]: _mR }], [0, { [_hQ]: _nT }]]
2032
+ [_mRa, _nT],
2033
+ [[1, { [_hQ]: _mRa }], [0, { [_hQ]: _nT }]]
1966
2034
  ];
1967
2035
  export var ListSessionsResponse$ = [3, n0, _LSRi,
1968
2036
  0,
@@ -2011,7 +2079,7 @@ export var Message$ = [3, n0, _M,
2011
2079
  ];
2012
2080
  export var Metadata$ = [3, n0, _Me,
2013
2081
  8,
2014
- [_sTt, _eTnd, _tTM, _oTTM, _cRI, _u],
2082
+ [_sTt, _eTnd, _tTM, _oTTM, _cRI, _us],
2015
2083
  [5, 5, 1, 1, 0, [() => Usage$, 0]]
2016
2084
  ];
2017
2085
  export var MetadataAttributeSchema$ = [3, n0, _MAS,
@@ -2649,6 +2717,15 @@ var ContentBlocks = [1, n0, _CBo,
2649
2717
  0, [() => ContentBlock$,
2650
2718
  0]
2651
2719
  ];
2720
+ var DocumentAclConditionList = [1, n0, _DACL,
2721
+ 0, () => DocumentAclCondition$
2722
+ ];
2723
+ var DocumentAclGroupList = [1, n0, _DAGL,
2724
+ 0, () => DocumentAclGroup$
2725
+ ];
2726
+ var DocumentAclUserList = [1, n0, _DAUL,
2727
+ 0, () => DocumentAclUser$
2728
+ ];
2652
2729
  var ExternalSources = [1, n0, _ESx,
2653
2730
  0, [() => ExternalSource$,
2654
2731
  0]
@@ -2879,7 +2956,7 @@ export var AgenticRetrieveStreamResponseOutput$ = [4, n0, _ARSRO,
2879
2956
  ];
2880
2957
  export var AgenticRetrieveWarning$ = [4, n0, _ARWg,
2881
2958
  0,
2882
- [_m, _g],
2959
+ [_m, _gu],
2883
2960
  [() => AgenticRetrieveWarningMessage$, () => AgenticRetrieveGuardrailWarning$]
2884
2961
  ];
2885
2962
  export var APISchema$ = [4, n0, _APIS,
@@ -3054,7 +3131,7 @@ export var RetrievalFilter$ = [4, n0, _RF,
3054
3131
  ];
3055
3132
  export var RetrieveAndGenerateStreamResponseOutput$ = [4, n0, _RAGSRO,
3056
3133
  { [_str]: 1 },
3057
- [_o, _cit, _g, _iSE, _vE, _rNFE, _sQEE, _tEh, _aDE, _cE, _dFE, _bGE],
3134
+ [_o, _cit, _gu, _iSE, _vE, _rNFE, _sQEE, _tEh, _aDE, _cE, _dFE, _bGE],
3058
3135
  [[() => RetrieveAndGenerateOutputEvent$, 0], [() => CitationEvent$, 0], () => GuardrailEvent$, [() => InternalServerException$, 0], [() => ValidationException$, 0], [() => ResourceNotFoundException$, 0], [() => ServiceQuotaExceededException$, 0], [() => ThrottlingException$, 0], [() => AccessDeniedException$, 0], [() => ConflictException$, 0], [() => DependencyFailedException$, 0], [() => BadGatewayException$, 0]]
3059
3136
  ];
3060
3137
  export var RetrieverConfiguration$ = [4, n0, _RCet,
@@ -3080,13 +3157,16 @@ export var TraceElements$ = [4, n0, _TEr,
3080
3157
  export var AgenticRetrieveStream$ = [9, n0, _ARS,
3081
3158
  { [_h]: ["POST", "/agenticRetrieveStream", 200] }, () => AgenticRetrieveStreamRequest$, () => AgenticRetrieveStreamResponse$
3082
3159
  ];
3160
+ export var CheckIngestedDocumentAcl$ = [9, n0, _CIDA,
3161
+ { [_h]: ["POST", "/knowledgebases/{knowledgeBaseId}/datasources/{dataSourceId}/check-ingested-document-acl", 200] }, () => CheckIngestedDocumentAclRequest$, () => CheckIngestedDocumentAclResponse$
3162
+ ];
3083
3163
  export var CreateInvocation$ = [9, n0, _CIr,
3084
3164
  { [_h]: ["PUT", "/sessions/{sessionIdentifier}/invocations/", 201] }, () => CreateInvocationRequest$, () => CreateInvocationResponse$
3085
3165
  ];
3086
3166
  export var CreateSession$ = [9, n0, _CS,
3087
3167
  { [_h]: ["PUT", "/sessions/", 201] }, () => CreateSessionRequest$, () => CreateSessionResponse$
3088
3168
  ];
3089
- export var DeleteAgentMemory$ = [9, n0, _DAM,
3169
+ export var DeleteAgentMemory$ = [9, n0, _DAMe,
3090
3170
  { [_h]: ["DELETE", "/agents/{agentId}/agentAliases/{agentAliasId}/memories", 202] }, () => DeleteAgentMemoryRequest$, () => DeleteAgentMemoryResponse$
3091
3171
  ];
3092
3172
  export var DeleteSession$ = [9, n0, _DS,
@@ -3110,6 +3190,9 @@ export var GetExecutionFlowSnapshot$ = [9, n0, _GEFS,
3110
3190
  export var GetFlowExecution$ = [9, n0, _GFE,
3111
3191
  { [_h]: ["GET", "/flows/{flowIdentifier}/aliases/{flowAliasIdentifier}/executions/{executionIdentifier}", 200] }, () => GetFlowExecutionRequest$, () => GetFlowExecutionResponse$
3112
3192
  ];
3193
+ export var GetIngestedDocumentAcl$ = [9, n0, _GIDA,
3194
+ { [_h]: ["POST", "/knowledgebases/{knowledgeBaseId}/datasources/{dataSourceId}/get-ingested-document-acl", 200] }, () => GetIngestedDocumentAclRequest$, () => GetIngestedDocumentAclResponse$
3195
+ ];
3113
3196
  export var GetInvocationStep$ = [9, n0, _GIS,
3114
3197
  { [_h]: ["POST", "/sessions/{sessionIdentifier}/invocationSteps/{invocationStepId}", 200] }, () => GetInvocationStepRequest$, () => GetInvocationStepResponse$
3115
3198
  ];
@@ -1,6 +1,7 @@
1
1
  import type { HttpHandlerOptions as __HttpHandlerOptions, PaginationConfiguration, Paginator } from "@smithy/types";
2
2
  import { BedrockAgentRuntimeClient } from "./BedrockAgentRuntimeClient";
3
3
  import { type AgenticRetrieveStreamCommandInput, type AgenticRetrieveStreamCommandOutput } from "./commands/AgenticRetrieveStreamCommand";
4
+ import { type CheckIngestedDocumentAclCommandInput, type CheckIngestedDocumentAclCommandOutput } from "./commands/CheckIngestedDocumentAclCommand";
4
5
  import { type CreateInvocationCommandInput, type CreateInvocationCommandOutput } from "./commands/CreateInvocationCommand";
5
6
  import { type CreateSessionCommandInput, type CreateSessionCommandOutput } from "./commands/CreateSessionCommand";
6
7
  import { type DeleteAgentMemoryCommandInput, type DeleteAgentMemoryCommandOutput } from "./commands/DeleteAgentMemoryCommand";
@@ -11,6 +12,7 @@ import { type GetAgentMemoryCommandInput, type GetAgentMemoryCommandOutput } fro
11
12
  import { type GetDocumentContentCommandInput, type GetDocumentContentCommandOutput } from "./commands/GetDocumentContentCommand";
12
13
  import { type GetExecutionFlowSnapshotCommandInput, type GetExecutionFlowSnapshotCommandOutput } from "./commands/GetExecutionFlowSnapshotCommand";
13
14
  import { type GetFlowExecutionCommandInput, type GetFlowExecutionCommandOutput } from "./commands/GetFlowExecutionCommand";
15
+ import { type GetIngestedDocumentAclCommandInput, type GetIngestedDocumentAclCommandOutput } from "./commands/GetIngestedDocumentAclCommand";
14
16
  import { type GetInvocationStepCommandInput, type GetInvocationStepCommandOutput } from "./commands/GetInvocationStepCommand";
15
17
  import { type GetSessionCommandInput, type GetSessionCommandOutput } from "./commands/GetSessionCommand";
16
18
  import { type InvokeAgentCommandInput, type InvokeAgentCommandOutput } from "./commands/InvokeAgentCommand";
@@ -40,6 +42,12 @@ export interface BedrockAgentRuntime {
40
42
  agenticRetrieveStream(args: AgenticRetrieveStreamCommandInput, options?: __HttpHandlerOptions): Promise<AgenticRetrieveStreamCommandOutput>;
41
43
  agenticRetrieveStream(args: AgenticRetrieveStreamCommandInput, cb: (err: any, data?: AgenticRetrieveStreamCommandOutput) => void): void;
42
44
  agenticRetrieveStream(args: AgenticRetrieveStreamCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AgenticRetrieveStreamCommandOutput) => void): void;
45
+ /**
46
+ * @see {@link CheckIngestedDocumentAclCommand}
47
+ */
48
+ checkIngestedDocumentAcl(args: CheckIngestedDocumentAclCommandInput, options?: __HttpHandlerOptions): Promise<CheckIngestedDocumentAclCommandOutput>;
49
+ checkIngestedDocumentAcl(args: CheckIngestedDocumentAclCommandInput, cb: (err: any, data?: CheckIngestedDocumentAclCommandOutput) => void): void;
50
+ checkIngestedDocumentAcl(args: CheckIngestedDocumentAclCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CheckIngestedDocumentAclCommandOutput) => void): void;
43
51
  /**
44
52
  * @see {@link CreateInvocationCommand}
45
53
  */
@@ -101,6 +109,12 @@ export interface BedrockAgentRuntime {
101
109
  getFlowExecution(args: GetFlowExecutionCommandInput, options?: __HttpHandlerOptions): Promise<GetFlowExecutionCommandOutput>;
102
110
  getFlowExecution(args: GetFlowExecutionCommandInput, cb: (err: any, data?: GetFlowExecutionCommandOutput) => void): void;
103
111
  getFlowExecution(args: GetFlowExecutionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetFlowExecutionCommandOutput) => void): void;
112
+ /**
113
+ * @see {@link GetIngestedDocumentAclCommand}
114
+ */
115
+ getIngestedDocumentAcl(args: GetIngestedDocumentAclCommandInput, options?: __HttpHandlerOptions): Promise<GetIngestedDocumentAclCommandOutput>;
116
+ getIngestedDocumentAcl(args: GetIngestedDocumentAclCommandInput, cb: (err: any, data?: GetIngestedDocumentAclCommandOutput) => void): void;
117
+ getIngestedDocumentAcl(args: GetIngestedDocumentAclCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetIngestedDocumentAclCommandOutput) => void): void;
104
118
  /**
105
119
  * @see {@link GetInvocationStepCommand}
106
120
  */
@@ -292,7 +306,7 @@ export interface BedrockAgentRuntime {
292
306
  paginateRetrieve(args: RetrieveCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<RetrieveCommandOutput>;
293
307
  }
294
308
  /**
295
- * <p>Contains APIs related to model invocation and querying of knowledge bases.</p>
309
+ * <note> <p>Amazon Bedrock Agents (now Amazon Bedrock Agents Classic) is no longer open to new customers. For capabilities similar to Bedrock Agents Classic, explore Amazon Bedrock AgentCore. Existing customers can continue to use the service as normal. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/agents-classic-maintenance-mode.html">Amazon Bedrock Agents Classic availability change</a>.</p> </note> <p>Contains APIs related to model invocation and querying of knowledge bases.</p>
296
310
  * @public
297
311
  */
298
312
  export declare class BedrockAgentRuntime extends BedrockAgentRuntimeClient implements BedrockAgentRuntime {
@@ -8,6 +8,7 @@ import { type RetryInputConfig, type RetryResolvedConfig } from "@smithy/core/re
8
8
  import type { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, EventStreamSerdeProvider as __EventStreamSerdeProvider, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
9
9
  import { type HttpAuthSchemeInputConfig, type HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
10
10
  import type { AgenticRetrieveStreamCommandInput, AgenticRetrieveStreamCommandOutput } from "./commands/AgenticRetrieveStreamCommand";
11
+ import type { CheckIngestedDocumentAclCommandInput, CheckIngestedDocumentAclCommandOutput } from "./commands/CheckIngestedDocumentAclCommand";
11
12
  import type { CreateInvocationCommandInput, CreateInvocationCommandOutput } from "./commands/CreateInvocationCommand";
12
13
  import type { CreateSessionCommandInput, CreateSessionCommandOutput } from "./commands/CreateSessionCommand";
13
14
  import type { DeleteAgentMemoryCommandInput, DeleteAgentMemoryCommandOutput } from "./commands/DeleteAgentMemoryCommand";
@@ -18,6 +19,7 @@ import type { GetAgentMemoryCommandInput, GetAgentMemoryCommandOutput } from "./
18
19
  import type { GetDocumentContentCommandInput, GetDocumentContentCommandOutput } from "./commands/GetDocumentContentCommand";
19
20
  import type { GetExecutionFlowSnapshotCommandInput, GetExecutionFlowSnapshotCommandOutput } from "./commands/GetExecutionFlowSnapshotCommand";
20
21
  import type { GetFlowExecutionCommandInput, GetFlowExecutionCommandOutput } from "./commands/GetFlowExecutionCommand";
22
+ import type { GetIngestedDocumentAclCommandInput, GetIngestedDocumentAclCommandOutput } from "./commands/GetIngestedDocumentAclCommand";
21
23
  import type { GetInvocationStepCommandInput, GetInvocationStepCommandOutput } from "./commands/GetInvocationStepCommand";
22
24
  import type { GetSessionCommandInput, GetSessionCommandOutput } from "./commands/GetSessionCommand";
23
25
  import type { InvokeAgentCommandInput, InvokeAgentCommandOutput } from "./commands/InvokeAgentCommand";
@@ -46,11 +48,11 @@ export { __Client };
46
48
  /**
47
49
  * @public
48
50
  */
49
- export type ServiceInputTypes = AgenticRetrieveStreamCommandInput | CreateInvocationCommandInput | CreateSessionCommandInput | DeleteAgentMemoryCommandInput | DeleteSessionCommandInput | EndSessionCommandInput | GenerateQueryCommandInput | GetAgentMemoryCommandInput | GetDocumentContentCommandInput | GetExecutionFlowSnapshotCommandInput | GetFlowExecutionCommandInput | GetInvocationStepCommandInput | GetSessionCommandInput | InvokeAgentCommandInput | InvokeFlowCommandInput | InvokeInlineAgentCommandInput | ListFlowExecutionEventsCommandInput | ListFlowExecutionsCommandInput | ListInvocationStepsCommandInput | ListInvocationsCommandInput | ListSessionsCommandInput | ListTagsForResourceCommandInput | OptimizePromptCommandInput | PutInvocationStepCommandInput | RerankCommandInput | RetrieveAndGenerateCommandInput | RetrieveAndGenerateStreamCommandInput | RetrieveCommandInput | StartFlowExecutionCommandInput | StopFlowExecutionCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateSessionCommandInput;
51
+ export type ServiceInputTypes = AgenticRetrieveStreamCommandInput | CheckIngestedDocumentAclCommandInput | CreateInvocationCommandInput | CreateSessionCommandInput | DeleteAgentMemoryCommandInput | DeleteSessionCommandInput | EndSessionCommandInput | GenerateQueryCommandInput | GetAgentMemoryCommandInput | GetDocumentContentCommandInput | GetExecutionFlowSnapshotCommandInput | GetFlowExecutionCommandInput | GetIngestedDocumentAclCommandInput | GetInvocationStepCommandInput | GetSessionCommandInput | InvokeAgentCommandInput | InvokeFlowCommandInput | InvokeInlineAgentCommandInput | ListFlowExecutionEventsCommandInput | ListFlowExecutionsCommandInput | ListInvocationStepsCommandInput | ListInvocationsCommandInput | ListSessionsCommandInput | ListTagsForResourceCommandInput | OptimizePromptCommandInput | PutInvocationStepCommandInput | RerankCommandInput | RetrieveAndGenerateCommandInput | RetrieveAndGenerateStreamCommandInput | RetrieveCommandInput | StartFlowExecutionCommandInput | StopFlowExecutionCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateSessionCommandInput;
50
52
  /**
51
53
  * @public
52
54
  */
53
- export type ServiceOutputTypes = AgenticRetrieveStreamCommandOutput | CreateInvocationCommandOutput | CreateSessionCommandOutput | DeleteAgentMemoryCommandOutput | DeleteSessionCommandOutput | EndSessionCommandOutput | GenerateQueryCommandOutput | GetAgentMemoryCommandOutput | GetDocumentContentCommandOutput | GetExecutionFlowSnapshotCommandOutput | GetFlowExecutionCommandOutput | GetInvocationStepCommandOutput | GetSessionCommandOutput | InvokeAgentCommandOutput | InvokeFlowCommandOutput | InvokeInlineAgentCommandOutput | ListFlowExecutionEventsCommandOutput | ListFlowExecutionsCommandOutput | ListInvocationStepsCommandOutput | ListInvocationsCommandOutput | ListSessionsCommandOutput | ListTagsForResourceCommandOutput | OptimizePromptCommandOutput | PutInvocationStepCommandOutput | RerankCommandOutput | RetrieveAndGenerateCommandOutput | RetrieveAndGenerateStreamCommandOutput | RetrieveCommandOutput | StartFlowExecutionCommandOutput | StopFlowExecutionCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateSessionCommandOutput;
55
+ export type ServiceOutputTypes = AgenticRetrieveStreamCommandOutput | CheckIngestedDocumentAclCommandOutput | CreateInvocationCommandOutput | CreateSessionCommandOutput | DeleteAgentMemoryCommandOutput | DeleteSessionCommandOutput | EndSessionCommandOutput | GenerateQueryCommandOutput | GetAgentMemoryCommandOutput | GetDocumentContentCommandOutput | GetExecutionFlowSnapshotCommandOutput | GetFlowExecutionCommandOutput | GetIngestedDocumentAclCommandOutput | GetInvocationStepCommandOutput | GetSessionCommandOutput | InvokeAgentCommandOutput | InvokeFlowCommandOutput | InvokeInlineAgentCommandOutput | ListFlowExecutionEventsCommandOutput | ListFlowExecutionsCommandOutput | ListInvocationStepsCommandOutput | ListInvocationsCommandOutput | ListSessionsCommandOutput | ListTagsForResourceCommandOutput | OptimizePromptCommandOutput | PutInvocationStepCommandOutput | RerankCommandOutput | RetrieveAndGenerateCommandOutput | RetrieveAndGenerateStreamCommandOutput | RetrieveCommandOutput | StartFlowExecutionCommandOutput | StopFlowExecutionCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateSessionCommandOutput;
54
56
  /**
55
57
  * @public
56
58
  */
@@ -206,7 +208,7 @@ export type BedrockAgentRuntimeClientResolvedConfigType = __SmithyResolvedConfig
206
208
  export interface BedrockAgentRuntimeClientResolvedConfig extends BedrockAgentRuntimeClientResolvedConfigType {
207
209
  }
208
210
  /**
209
- * <p>Contains APIs related to model invocation and querying of knowledge bases.</p>
211
+ * <note> <p>Amazon Bedrock Agents (now Amazon Bedrock Agents Classic) is no longer open to new customers. For capabilities similar to Bedrock Agents Classic, explore Amazon Bedrock AgentCore. Existing customers can continue to use the service as normal. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/agents-classic-maintenance-mode.html">Amazon Bedrock Agents Classic availability change</a>.</p> </note> <p>Contains APIs related to model invocation and querying of knowledge bases.</p>
210
212
  * @public
211
213
  */
212
214
  export declare class BedrockAgentRuntimeClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, BedrockAgentRuntimeClientResolvedConfig> {
@@ -0,0 +1,91 @@
1
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import type { CheckIngestedDocumentAclRequest, CheckIngestedDocumentAclResponse } from "../models/models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export type { __MetadataBearer };
7
+ /**
8
+ * @public
9
+ *
10
+ * The input for {@link CheckIngestedDocumentAclCommand}.
11
+ */
12
+ export interface CheckIngestedDocumentAclCommandInput extends CheckIngestedDocumentAclRequest {
13
+ }
14
+ /**
15
+ * @public
16
+ *
17
+ * The output of {@link CheckIngestedDocumentAclCommand}.
18
+ */
19
+ export interface CheckIngestedDocumentAclCommandOutput extends CheckIngestedDocumentAclResponse, __MetadataBearer {
20
+ }
21
+ declare const CheckIngestedDocumentAclCommand_base: {
22
+ new (input: CheckIngestedDocumentAclCommandInput): import("@smithy/core/client").CommandImpl<CheckIngestedDocumentAclCommandInput, CheckIngestedDocumentAclCommandOutput, import("..").BedrockAgentRuntimeClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: CheckIngestedDocumentAclCommandInput): import("@smithy/core/client").CommandImpl<CheckIngestedDocumentAclCommandInput, CheckIngestedDocumentAclCommandOutput, import("..").BedrockAgentRuntimeClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
+ };
26
+ /**
27
+ * <p>Checks whether a user has access to a specific document by verifying against the ingested access control list (ACL) in a knowledge base. Use this operation to validate that document-level access control is working as expected after ingestion. To use this operation, you must have the <code>bedrock:CheckIngestedDocumentAcl</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 { BedrockAgentRuntimeClient, CheckIngestedDocumentAclCommand } from "@aws-sdk/client-bedrock-agent-runtime"; // ES Modules import
32
+ * // const { BedrockAgentRuntimeClient, CheckIngestedDocumentAclCommand } = require("@aws-sdk/client-bedrock-agent-runtime"); // CommonJS import
33
+ * // import type { BedrockAgentRuntimeClientConfig } from "@aws-sdk/client-bedrock-agent-runtime";
34
+ * const config = {}; // type is BedrockAgentRuntimeClientConfig
35
+ * const client = new BedrockAgentRuntimeClient(config);
36
+ * const input = { // CheckIngestedDocumentAclRequest
37
+ * knowledgeBaseId: "STRING_VALUE", // required
38
+ * dataSourceId: "STRING_VALUE", // required
39
+ * documentId: "STRING_VALUE", // required
40
+ * userContext: { // UserContext
41
+ * userId: "STRING_VALUE", // required
42
+ * },
43
+ * };
44
+ * const command = new CheckIngestedDocumentAclCommand(input);
45
+ * const response = await client.send(command);
46
+ * // { // CheckIngestedDocumentAclResponse
47
+ * // hasAccess: true || false, // required
48
+ * // };
49
+ *
50
+ * ```
51
+ *
52
+ * @param CheckIngestedDocumentAclCommandInput - {@link CheckIngestedDocumentAclCommandInput}
53
+ * @returns {@link CheckIngestedDocumentAclCommandOutput}
54
+ * @see {@link CheckIngestedDocumentAclCommandInput} for command's `input` shape.
55
+ * @see {@link CheckIngestedDocumentAclCommandOutput} for command's `response` shape.
56
+ * @see {@link BedrockAgentRuntimeClientResolvedConfig | config} for BedrockAgentRuntimeClient's `config` shape.
57
+ *
58
+ * @throws {@link AccessDeniedException} (client fault)
59
+ * <p>The request is denied because of missing access permissions. Check your permissions and retry your request.</p>
60
+ *
61
+ * @throws {@link InternalServerException} (server fault)
62
+ * <p>An internal server error occurred. Retry your request.</p>
63
+ *
64
+ * @throws {@link ResourceNotFoundException} (client fault)
65
+ * <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
66
+ *
67
+ * @throws {@link ThrottlingException} (client fault)
68
+ * <p>The number of requests exceeds the limit. Resubmit your request later.</p>
69
+ *
70
+ * @throws {@link ValidationException} (client fault)
71
+ * <p>Input validation failed. Check your request parameters and retry the request.</p>
72
+ *
73
+ * @throws {@link BedrockAgentRuntimeServiceException}
74
+ * <p>Base exception class for all service exceptions from BedrockAgentRuntime service.</p>
75
+ *
76
+ *
77
+ * @public
78
+ */
79
+ export declare class CheckIngestedDocumentAclCommand extends CheckIngestedDocumentAclCommand_base {
80
+ /** @internal type navigation helper, not in runtime. */
81
+ protected static __types: {
82
+ api: {
83
+ input: CheckIngestedDocumentAclRequest;
84
+ output: CheckIngestedDocumentAclResponse;
85
+ };
86
+ sdk: {
87
+ input: CheckIngestedDocumentAclCommandInput;
88
+ output: CheckIngestedDocumentAclCommandOutput;
89
+ };
90
+ };
91
+ }
@@ -1,5 +1,5 @@
1
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
- import type { CreateInvocationRequest, CreateInvocationResponse } from "../models/models_0";
2
+ import type { CreateInvocationRequest, CreateInvocationResponse } from "../models/models_1";
3
3
  /**
4
4
  * @public
5
5
  */
@@ -1,5 +1,6 @@
1
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
- import type { CreateSessionRequest, CreateSessionResponse } from "../models/models_0";
2
+ import type { CreateSessionRequest } from "../models/models_0";
3
+ import type { CreateSessionResponse } from "../models/models_1";
3
4
  /**
4
5
  * @public
5
6
  */
@@ -1,5 +1,5 @@
1
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
- import type { DeleteSessionRequest, DeleteSessionResponse } from "../models/models_0";
2
+ import type { DeleteSessionRequest, DeleteSessionResponse } from "../models/models_1";
3
3
  /**
4
4
  * @public
5
5
  */
@@ -1,5 +1,5 @@
1
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
- import type { EndSessionRequest, EndSessionResponse } from "../models/models_0";
2
+ import type { EndSessionRequest, EndSessionResponse } from "../models/models_1";
3
3
  /**
4
4
  * @public
5
5
  */