|
621 | 621 | %% <<"branch">> => branch(), |
622 | 622 | %% <<"clientToken">> => [string()], |
623 | 623 | %% <<"eventTimestamp">> := [non_neg_integer()], |
| 624 | +%% <<"extractionConfig">> => extraction_config(), |
624 | 625 | %% <<"extractionMode">> => list(any()), |
625 | 626 | %% <<"metadata">> => map(), |
626 | 627 | %% <<"payload">> := list(list()), |
|
748 | 749 | %% } |
749 | 750 | -type delete_event_output() :: #{binary() => any()}. |
750 | 751 |
|
| 752 | + |
751 | 753 | %% Example: |
752 | | -%% delete_memory_record_input() :: #{} |
753 | | --type delete_memory_record_input() :: #{}. |
| 754 | +%% delete_memory_record_input() :: #{ |
| 755 | +%% <<"namespace">> => string() |
| 756 | +%% } |
| 757 | +-type delete_memory_record_input() :: #{binary() => any()}. |
754 | 758 |
|
755 | 759 |
|
756 | 760 | %% Example: |
|
996 | 1000 | -type external_proxy() :: #{binary() => any()}. |
997 | 1001 |
|
998 | 1002 |
|
| 1003 | +%% Example: |
| 1004 | +%% extraction_config() :: #{ |
| 1005 | +%% <<"namespaceVariables">> => map() |
| 1006 | +%% } |
| 1007 | +-type extraction_config() :: #{binary() => any()}. |
| 1008 | + |
| 1009 | + |
999 | 1010 | %% Example: |
1000 | 1011 | %% extraction_job() :: #{ |
1001 | 1012 | %% <<"jobId">> => [string()] |
|
1212 | 1223 | %% } |
1213 | 1224 | -type get_event_output() :: #{binary() => any()}. |
1214 | 1225 |
|
| 1226 | + |
1215 | 1227 | %% Example: |
1216 | | -%% get_memory_record_input() :: #{} |
1217 | | --type get_memory_record_input() :: #{}. |
| 1228 | +%% get_memory_record_input() :: #{ |
| 1229 | +%% <<"namespace">> => string() |
| 1230 | +%% } |
| 1231 | +-type get_memory_record_input() :: #{binary() => any()}. |
1218 | 1232 |
|
1219 | 1233 |
|
1220 | 1234 | %% Example: |
|
2154 | 2168 | -type mcp_descriptor() :: #{binary() => any()}. |
2155 | 2169 |
|
2156 | 2170 |
|
| 2171 | +%% Example: |
| 2172 | +%% memory_json_data() :: #{ |
| 2173 | +%% <<"content">> => any() |
| 2174 | +%% } |
| 2175 | +-type memory_json_data() :: #{binary() => any()}. |
| 2176 | + |
| 2177 | + |
2157 | 2178 | %% Example: |
2158 | 2179 | %% memory_metadata_filter_expression() :: #{ |
2159 | 2180 | %% <<"left">> => list(), |
|
2189 | 2210 |
|
2190 | 2211 | %% Example: |
2191 | 2212 | %% memory_record_delete_input() :: #{ |
2192 | | -%% <<"memoryRecordId">> => string() |
| 2213 | +%% <<"memoryRecordId">> => string(), |
| 2214 | +%% <<"namespace">> => string() |
2193 | 2215 | %% } |
2194 | 2216 | -type memory_record_delete_input() :: #{binary() => any()}. |
2195 | 2217 |
|
|
2225 | 2247 | %% <<"memoryStrategyId">> => string(), |
2226 | 2248 | %% <<"metadata">> => map(), |
2227 | 2249 | %% <<"namespaces">> => list(string()), |
| 2250 | +%% <<"sourceNamespaces">> => list(string()), |
2228 | 2251 | %% <<"timestamp">> => [non_neg_integer()] |
2229 | 2252 | %% } |
2230 | 2253 | -type memory_record_update_input() :: #{binary() => any()}. |
@@ -4315,9 +4338,10 @@ delete_memory_record(Client, MemoryId, MemoryRecordId, Input0, Options0) -> |
4315 | 4338 | CustomHeaders = [], |
4316 | 4339 | Input2 = Input1, |
4317 | 4340 |
|
4318 | | - Query_ = [], |
4319 | | - Input = Input2, |
4320 | | - |
| 4341 | + QueryMapping = [ |
| 4342 | + {<<"namespace">>, <<"namespace">>} |
| 4343 | + ], |
| 4344 | + {Query_, Input} = aws_request:build_headers(QueryMapping, Input2), |
4321 | 4345 | request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). |
4322 | 4346 |
|
4323 | 4347 | %% @doc Deletes a payment instrument. |
@@ -4804,7 +4828,11 @@ get_memory_record(Client, MemoryId, MemoryRecordId, QueryMap, HeadersMap, Option |
4804 | 4828 |
|
4805 | 4829 | Headers = [], |
4806 | 4830 |
|
4807 | | - Query_ = [], |
| 4831 | + Query0_ = |
| 4832 | + [ |
| 4833 | + {<<"namespace">>, maps:get(<<"namespace">>, QueryMap, undefined)} |
| 4834 | + ], |
| 4835 | + Query_ = [H || {_, V} = H <- Query0_, V =/= undefined], |
4808 | 4836 |
|
4809 | 4837 | request(Client, get, Path, Query_, Headers, undefined, Options, SuccessStatusCode). |
4810 | 4838 |
|
|
0 commit comments