@meshmakers/octo-services 3.3.1010 → 3.3.1030

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.
@@ -264,6 +264,15 @@ var LoggerSeverity;
264
264
  LoggerSeverity[LoggerSeverity["Error"] = 3] = "Error";
265
265
  })(LoggerSeverity || (LoggerSeverity = {}));
266
266
 
267
+ /**
268
+ * Pipeline reassignment DTOs.
269
+ *
270
+ * Mirrors `Meshmakers.Octo.Communication.Contracts.DataTransferObjects.MovePipeline*`
271
+ * on the backend (octo-sdk). Studio's "move pipeline to another adapter"
272
+ * flow PATCHes the controller with one of these and renders the per-pipeline
273
+ * outcome list.
274
+ */
275
+
267
276
  /** Defines the type of aggregation for runtime queries. */
268
277
  var AggregationInputTypesDto;
269
278
  (function (AggregationInputTypesDto) {
@@ -4361,6 +4370,23 @@ class CommunicationService {
4361
4370
  await firstValueFrom(this.httpClient.post(uri, null, { params, observe: 'response' }));
4362
4371
  }
4363
4372
  }
4373
+ /**
4374
+ * Reassigns one or more pipelines from their current adapter to a new
4375
+ * target adapter (bulk). Each pipeline is moved atomically on the server
4376
+ * (Executes-assoc swap in a single transaction); per-pipeline failures
4377
+ * are returned in the result list without aborting the batch. When
4378
+ * `redeploy=true` is set, the server also re-fires `DeployPipeline` on
4379
+ * the target adapter for every successfully moved pipeline — a redeploy
4380
+ * failure leaves the move committed and surfaces as a warning in
4381
+ * `errorMessage` while `success` stays `true`.
4382
+ */
4383
+ async movePipelinesToAdapter(tenantId, request) {
4384
+ if (!this.communicationServicesUrl) {
4385
+ throw new Error('Communication services URL is not configured');
4386
+ }
4387
+ const uri = `${this.communicationServicesUrl}${tenantId}/v1/pipeline/move-to-adapter`;
4388
+ return await firstValueFrom(this.httpClient.patch(uri, request));
4389
+ }
4364
4390
  /**
4365
4391
  * Encrypts a plaintext value via the controller's at-rest encryption key
4366
4392
  * and returns the sentinel-prefixed ciphertext (`enc:v1:...`). Use this