@rapidaai/react 1.1.39 → 1.1.41

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.
@@ -27807,15 +27807,17 @@ function GetAllAssistant(connectionConfig, page, pageSize, criteria, cb, authHea
27807
27807
  cb
27808
27808
  );
27809
27809
  }
27810
- function UpdateAssistantVersion(connectionConfig, assistantId, assistantProviderModelId, cb, authHeader) {
27811
- const req = new import_assistant_provider_pb.UpdateAssistantVersionRequest();
27812
- req.setAssistantid(assistantId);
27813
- req.setAssistantproviderid(assistantProviderModelId);
27814
- return connectionConfig.assistantClient.updateAssistantVersion(
27815
- req,
27816
- WithAuthContext(authHeader),
27817
- cb
27818
- );
27810
+ function UpdateAssistantVersion(connectionConfig, req, authHeader) {
27811
+ return new Promise((resolve, reject) => {
27812
+ connectionConfig.assistantClient.updateAssistantVersion(
27813
+ req,
27814
+ WithAuthContext(connectionConfig.auth || authHeader),
27815
+ (err, response) => {
27816
+ if (err) reject(err);
27817
+ else resolve(response);
27818
+ }
27819
+ );
27820
+ });
27819
27821
  }
27820
27822
  function GetAllAssistantProvider(connectionConfig, assistantId, page, pageSize, criteria, cb, authHeader) {
27821
27823
  const req = new import_assistant_provider_pb.GetAllAssistantProviderRequest();
@@ -30187,4 +30189,4 @@ export {
30187
30189
  useSelectInputDeviceAgent,
30188
30190
  DeviceSelectorComponent
30189
30191
  };
30190
- //# sourceMappingURL=chunk-CUTI5FQX.mjs.map
30192
+ //# sourceMappingURL=chunk-QQVXG47Q.mjs.map