@@ -1229,7 +1229,7 @@ public static Task<Result<object, HttpError<string>>> LearningConfigurationSchem
12291229 private static PutAsync < ResourceFieldAdded , string , ( string kbid , string rid , string fieldId , bool xSkipStore , FileField Body ) > _addResourceFieldFileRidPrefixKbKbidResourceRidFileFieldIdPut { get ; } =
12301230 RestClient . Net . HttpClientFactoryExtensions . CreatePut < ResourceFieldAdded , string , ( string kbid , string rid , string fieldId , bool xSkipStore , FileField Body ) > (
12311231 url : BaseUrl ,
1232- buildRequest : static param => new HttpRequestParts ( new RelativeUrl ( $ "/api/v1/kb/{ param . kbid } /resource/{ param . rid } /file/{ param . fieldId } ") , CreateJsonContent ( param . Body ) , new Dictionary < string , string > { [ "x-skip-store" ] = param . ToString ( ) ?? string . Empty } ) ,
1232+ buildRequest : static param => new HttpRequestParts ( new RelativeUrl ( $ "/api/v1/kb/{ param . kbid } /resource/{ param . rid } /file/{ param . fieldId } ") , CreateJsonContent ( param . Body ) , new Dictionary < string , string > { [ "x-skip-store" ] = param . xSkipStore . ToString ( ) ?? string . Empty } ) ,
12331233 deserializeSuccess : DeserializeJson < ResourceFieldAdded > ,
12341234 deserializeError : DeserializeError
12351235 ) ;
@@ -1277,23 +1277,23 @@ public static Task<Result<object, HttpError<string>>> LearningConfigurationSchem
12771277 private static PostAsync < ResourceUpdated , string , ( string kbid , string rid , bool resetTitle , string xNucliadbUser , object Body ) > _reprocessResourceRidPrefixKbKbidResourceRidReprocessPost { get ; } =
12781278 RestClient . Net . HttpClientFactoryExtensions . CreatePost < ResourceUpdated , string , ( string kbid , string rid , bool resetTitle , string xNucliadbUser , object Body ) > (
12791279 url : BaseUrl ,
1280- buildRequest : static param => new HttpRequestParts ( new RelativeUrl ( $ "/api/v1/kb/{ param . kbid } /resource/{ param . rid } /reprocess?reset_title={ param . resetTitle } ") , CreateJsonContent ( param . Body ) , new Dictionary < string , string > { [ "x-nucliadb-user" ] = param . ToString ( ) ?? string . Empty } ) ,
1280+ buildRequest : static param => new HttpRequestParts ( new RelativeUrl ( $ "/api/v1/kb/{ param . kbid } /resource/{ param . rid } /reprocess?reset_title={ param . resetTitle } ") , CreateJsonContent ( param . Body ) , new Dictionary < string , string > { [ "x-nucliadb-user" ] = param . xNucliadbUser . ToString ( ) ?? string . Empty } ) ,
12811281 deserializeSuccess : DeserializeJson < ResourceUpdated > ,
12821282 deserializeError : DeserializeError
12831283 ) ;
12841284
12851285 private static PostAsync < ResourceAgentsResponse , string , ( string kbid , string rid , string xNucliadbUser , ResourceAgentsRequest Body ) > _runAgentsByUuidKbKbidResourceRidRunAgentsPost { get ; } =
12861286 RestClient . Net . HttpClientFactoryExtensions . CreatePost < ResourceAgentsResponse , string , ( string kbid , string rid , string xNucliadbUser , ResourceAgentsRequest Body ) > (
12871287 url : BaseUrl ,
1288- buildRequest : static param => new HttpRequestParts ( new RelativeUrl ( $ "/api/v1/kb/{ param . kbid } /resource/{ param . rid } /run-agents") , CreateJsonContent ( param . Body ) , new Dictionary < string , string > { [ "x-nucliadb-user" ] = param . ToString ( ) ?? string . Empty } ) ,
1288+ buildRequest : static param => new HttpRequestParts ( new RelativeUrl ( $ "/api/v1/kb/{ param . kbid } /resource/{ param . rid } /run-agents") , CreateJsonContent ( param . Body ) , new Dictionary < string , string > { [ "x-nucliadb-user" ] = param . xNucliadbUser . ToString ( ) ?? string . Empty } ) ,
12891289 deserializeSuccess : DeserializeJson < ResourceAgentsResponse > ,
12901290 deserializeError : DeserializeError
12911291 ) ;
12921292
12931293 private static GetAsync < ResourceSearchResults , string , ( string kbid , string rid , string query , object filterExpression , List < string > fields , List < string > filters , List < string > faceted , object sortField , SortOrder sortOrder , object topK , object rangeCreationStart , object rangeCreationEnd , object rangeModificationStart , object rangeModificationEnd , bool highlight , bool debug , NucliaDBClientType xNdbClient ) > _resourceSearchKbKbidResourceRidSearchGet { get ; } =
12941294 RestClient . Net . HttpClientFactoryExtensions . CreateGet < ResourceSearchResults , string , ( string kbid , string rid , string query , object filterExpression , List < string > fields , List < string > filters , List < string > faceted , object sortField , SortOrder sortOrder , object topK , object rangeCreationStart , object rangeCreationEnd , object rangeModificationStart , object rangeModificationEnd , bool highlight , bool debug , NucliaDBClientType xNdbClient ) > (
12951295 url : BaseUrl ,
1296- buildRequest : static param => new HttpRequestParts ( new RelativeUrl ( $ "/api/v1/kb/{ param . kbid } /resource/{ param . rid } /search?query={ param . query } &filter_expression={ param . filterExpression } &fields={ param . fields } &filters={ param . filters } &faceted={ param . faceted } &sort_field={ param . sortField } &sort_order={ param . sortOrder } &top_k={ param . topK } &range_creation_start={ param . rangeCreationStart } &range_creation_end={ param . rangeCreationEnd } &range_modification_start={ param . rangeModificationStart } &range_modification_end={ param . rangeModificationEnd } &highlight={ param . highlight } &debug={ param . debug } ") , null , new Dictionary < string , string > { [ "x-ndb-client" ] = param . ToString ( ) ?? string . Empty } ) ,
1296+ buildRequest : static param => new HttpRequestParts ( new RelativeUrl ( $ "/api/v1/kb/{ param . kbid } /resource/{ param . rid } /search?query={ param . query } &filter_expression={ param . filterExpression } &fields={ param . fields } &filters={ param . filters } &faceted={ param . faceted } &sort_field={ param . sortField } &sort_order={ param . sortOrder } &top_k={ param . topK } &range_creation_start={ param . rangeCreationStart } &range_creation_end={ param . rangeCreationEnd } &range_modification_start={ param . rangeModificationStart } &range_modification_end={ param . rangeModificationEnd } &highlight={ param . highlight } &debug={ param . debug } ") , null , new Dictionary < string , string > { [ "x-ndb-client" ] = param . xNdbClient . ToString ( ) ?? string . Empty } ) ,
12971297 deserializeSuccess : DeserializeJson < ResourceSearchResults > ,
12981298 deserializeError : DeserializeError
12991299 ) ;
@@ -1461,7 +1461,7 @@ public static Task<Result<object, HttpError<string>>> LearningConfigurationSchem
14611461 private static PutAsync < ResourceFieldAdded , string , ( string kbid , string rslug , string fieldId , bool xSkipStore , FileField Body ) > _addResourceFieldFileRslugPrefixKbKbidSlugRslugFileFieldIdPut { get ; } =
14621462 RestClient . Net . HttpClientFactoryExtensions . CreatePut < ResourceFieldAdded , string , ( string kbid , string rslug , string fieldId , bool xSkipStore , FileField Body ) > (
14631463 url : BaseUrl ,
1464- buildRequest : static param => new HttpRequestParts ( new RelativeUrl ( $ "/api/v1/kb/{ param . kbid } /slug/{ param . rslug } /file/{ param . fieldId } ") , CreateJsonContent ( param . Body ) , new Dictionary < string , string > { [ "x-skip-store" ] = param . ToString ( ) ?? string . Empty } ) ,
1464+ buildRequest : static param => new HttpRequestParts ( new RelativeUrl ( $ "/api/v1/kb/{ param . kbid } /slug/{ param . rslug } /file/{ param . fieldId } ") , CreateJsonContent ( param . Body ) , new Dictionary < string , string > { [ "x-skip-store" ] = param . xSkipStore . ToString ( ) ?? string . Empty } ) ,
14651465 deserializeSuccess : DeserializeJson < ResourceFieldAdded > ,
14661466 deserializeError : DeserializeError
14671467 ) ;
@@ -1525,7 +1525,7 @@ public static Task<Result<object, HttpError<string>>> LearningConfigurationSchem
15251525 private static PostAsync < ResourceUpdated , string , ( string kbid , string rslug , bool resetTitle , string xNucliadbUser , object Body ) > _reprocessResourceRslugPrefixKbKbidSlugRslugReprocessPost { get ; } =
15261526 RestClient . Net . HttpClientFactoryExtensions . CreatePost < ResourceUpdated , string , ( string kbid , string rslug , bool resetTitle , string xNucliadbUser , object Body ) > (
15271527 url : BaseUrl ,
1528- buildRequest : static param => new HttpRequestParts ( new RelativeUrl ( $ "/api/v1/kb/{ param . kbid } /slug/{ param . rslug } /reprocess?reset_title={ param . resetTitle } ") , CreateJsonContent ( param . Body ) , new Dictionary < string , string > { [ "x-nucliadb-user" ] = param . ToString ( ) ?? string . Empty } ) ,
1528+ buildRequest : static param => new HttpRequestParts ( new RelativeUrl ( $ "/api/v1/kb/{ param . kbid } /slug/{ param . rslug } /reprocess?reset_title={ param . resetTitle } ") , CreateJsonContent ( param . Body ) , new Dictionary < string , string > { [ "x-nucliadb-user" ] = param . xNucliadbUser . ToString ( ) ?? string . Empty } ) ,
15291529 deserializeSuccess : DeserializeJson < ResourceUpdated > ,
15301530 deserializeError : DeserializeError
15311531 ) ;
@@ -1573,7 +1573,7 @@ public static Task<Result<object, HttpError<string>>> LearningConfigurationSchem
15731573 private static PostAsync < ResourceAgentsResponse , string , ( string kbid , string slug , string xNucliadbUser , ResourceAgentsRequest Body ) > _runAgentsBySlugKbKbidSlugSlugRunAgentsPost { get ; } =
15741574 RestClient . Net . HttpClientFactoryExtensions . CreatePost < ResourceAgentsResponse , string , ( string kbid , string slug , string xNucliadbUser , ResourceAgentsRequest Body ) > (
15751575 url : BaseUrl ,
1576- buildRequest : static param => new HttpRequestParts ( new RelativeUrl ( $ "/api/v1/kb/{ param . kbid } /slug/{ param . slug } /run-agents") , CreateJsonContent ( param . Body ) , new Dictionary < string , string > { [ "x-nucliadb-user" ] = param . ToString ( ) ?? string . Empty } ) ,
1576+ buildRequest : static param => new HttpRequestParts ( new RelativeUrl ( $ "/api/v1/kb/{ param . kbid } /slug/{ param . slug } /run-agents") , CreateJsonContent ( param . Body ) , new Dictionary < string , string > { [ "x-nucliadb-user" ] = param . xNucliadbUser . ToString ( ) ?? string . Empty } ) ,
15771577 deserializeSuccess : DeserializeJson < ResourceAgentsResponse > ,
15781578 deserializeError : DeserializeError
15791579 ) ;
@@ -1621,7 +1621,7 @@ public static Task<Result<object, HttpError<string>>> LearningConfigurationSchem
16211621 private static PostAsync < SummarizedResponse , string , ( string kbid , bool xShowConsumption , SummarizeRequest Body ) > _summarizeEndpointKbKbidSummarizePost { get ; } =
16221622 RestClient . Net . HttpClientFactoryExtensions . CreatePost < SummarizedResponse , string , ( string kbid , bool xShowConsumption , SummarizeRequest Body ) > (
16231623 url : BaseUrl ,
1624- buildRequest : static param => new HttpRequestParts ( new RelativeUrl ( $ "/api/v1/kb/{ param . kbid } /summarize") , CreateJsonContent ( param . Body ) , new Dictionary < string , string > { [ "x-show-consumption" ] = param . ToString ( ) ?? string . Empty } ) ,
1624+ buildRequest : static param => new HttpRequestParts ( new RelativeUrl ( $ "/api/v1/kb/{ param . kbid } /summarize") , CreateJsonContent ( param . Body ) , new Dictionary < string , string > { [ "x-show-consumption" ] = param . xShowConsumption . ToString ( ) ?? string . Empty } ) ,
16251625 deserializeSuccess : DeserializeJson < SummarizedResponse > ,
16261626 deserializeError : DeserializeError
16271627 ) ;
0 commit comments