@withone/cli 1.14.1 → 1.15.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.
|
@@ -234,6 +234,40 @@ var OneApi = class {
|
|
|
234
234
|
responseData
|
|
235
235
|
};
|
|
236
236
|
}
|
|
237
|
+
// Webhook Relay methods
|
|
238
|
+
async createRelayEndpoint(body) {
|
|
239
|
+
return this.requestFull({ path: "/webhooks/relay", method: "POST", body });
|
|
240
|
+
}
|
|
241
|
+
async listRelayEndpoints(query) {
|
|
242
|
+
return this.requestFull({ path: "/webhooks/relay", queryParams: query });
|
|
243
|
+
}
|
|
244
|
+
async getRelayEndpoint(id) {
|
|
245
|
+
return this.requestFull({ path: `/webhooks/relay/${id}` });
|
|
246
|
+
}
|
|
247
|
+
async updateRelayEndpoint(id, body) {
|
|
248
|
+
return this.requestFull({ path: `/webhooks/relay/${id}`, method: "PATCH", body });
|
|
249
|
+
}
|
|
250
|
+
async deleteRelayEndpoint(id) {
|
|
251
|
+
return this.requestFull({ path: `/webhooks/relay/${id}`, method: "DELETE" });
|
|
252
|
+
}
|
|
253
|
+
async activateRelayEndpoint(id, body) {
|
|
254
|
+
return this.requestFull({ path: `/webhooks/relay/${id}/activate`, method: "POST", body });
|
|
255
|
+
}
|
|
256
|
+
async listRelayEvents(query) {
|
|
257
|
+
return this.requestFull({ path: "/webhooks/relay/events", queryParams: query });
|
|
258
|
+
}
|
|
259
|
+
async getRelayEvent(id) {
|
|
260
|
+
return this.requestFull({ path: `/webhooks/relay/events/${id}` });
|
|
261
|
+
}
|
|
262
|
+
async listRelayEndpointDeliveries(endpointId) {
|
|
263
|
+
return this.requestFull({ path: `/webhooks/relay/${endpointId}/deliveries` });
|
|
264
|
+
}
|
|
265
|
+
async listRelayEventDeliveries(eventId) {
|
|
266
|
+
return this.requestFull({ path: `/webhooks/relay/events/${eventId}/deliveries` });
|
|
267
|
+
}
|
|
268
|
+
async listRelayEventTypes(platform) {
|
|
269
|
+
return this.requestFull({ path: "/webhooks/relay/event-types", queryParams: { platform } });
|
|
270
|
+
}
|
|
237
271
|
async waitForConnection(platform, timeoutMs = 5 * 60 * 1e3, pollIntervalMs = 5e3, onPoll) {
|
|
238
272
|
const startTime = Date.now();
|
|
239
273
|
const existingConnections = await this.listConnections();
|
|
@@ -667,7 +701,7 @@ async function executeSubflowStep(step, context, api, permissions, allowedAction
|
|
|
667
701
|
if (flowStack.includes(resolvedKey)) {
|
|
668
702
|
throw new Error(`Circular flow detected: ${[...flowStack, resolvedKey].join(" \u2192 ")}`);
|
|
669
703
|
}
|
|
670
|
-
const { loadFlow: loadFlow2 } = await import("./flow-runner-
|
|
704
|
+
const { loadFlow: loadFlow2 } = await import("./flow-runner-7RUK2WMF.js");
|
|
671
705
|
const subFlow = loadFlow2(resolvedKey);
|
|
672
706
|
const subContext = await executeFlow(
|
|
673
707
|
subFlow,
|