windmill-cli 1.763.1-gitsync.0 → 1.765.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.
- package/esm/main.js +263 -20
- package/package.json +3 -3
package/esm/main.js
CHANGED
|
@@ -16784,7 +16784,7 @@ var init_OpenAPI = __esm(() => {
|
|
|
16784
16784
|
PASSWORD: undefined,
|
|
16785
16785
|
TOKEN: getEnv3("WM_TOKEN"),
|
|
16786
16786
|
USERNAME: undefined,
|
|
16787
|
-
VERSION: "1.
|
|
16787
|
+
VERSION: "1.765.0",
|
|
16788
16788
|
WITH_CREDENTIALS: true,
|
|
16789
16789
|
interceptors: {
|
|
16790
16790
|
request: new Interceptors,
|
|
@@ -17101,6 +17101,7 @@ __export(exports_services_gen, {
|
|
|
17101
17101
|
updateAppRaw: () => updateAppRaw,
|
|
17102
17102
|
updateAppHistory: () => updateAppHistory,
|
|
17103
17103
|
updateApp: () => updateApp,
|
|
17104
|
+
updateAmqpTrigger: () => updateAmqpTrigger,
|
|
17104
17105
|
unstar: () => unstar,
|
|
17105
17106
|
unassignGhesInstallation: () => unassignGhesInstallation,
|
|
17106
17107
|
unarchiveWorkspace: () => unarchiveWorkspace,
|
|
@@ -17122,6 +17123,7 @@ __export(exports_services_gen, {
|
|
|
17122
17123
|
testAzureKvBackend: () => testAzureKvBackend,
|
|
17123
17124
|
testAzureConnection: () => testAzureConnection,
|
|
17124
17125
|
testAwsSmBackend: () => testAwsSmBackend,
|
|
17126
|
+
testAmqpConnection: () => testAmqpConnection,
|
|
17125
17127
|
syncNativeTriggers: () => syncNativeTriggers,
|
|
17126
17128
|
submitOnboardingData: () => submitOnboardingData,
|
|
17127
17129
|
storeRawScriptTemp: () => storeRawScriptTemp,
|
|
@@ -17155,6 +17157,7 @@ __export(exports_services_gen, {
|
|
|
17155
17157
|
setDefaultErrorOrRecoveryHandler: () => setDefaultErrorOrRecoveryHandler,
|
|
17156
17158
|
setCaptureConfig: () => setCaptureConfig,
|
|
17157
17159
|
setAzureTriggerMode: () => setAzureTriggerMode,
|
|
17160
|
+
setAmqpTriggerMode: () => setAmqpTriggerMode,
|
|
17158
17161
|
sendStats: () => sendStats,
|
|
17159
17162
|
sendMessageToConversation: () => sendMessageToConversation,
|
|
17160
17163
|
searchLogsIndex: () => searchLogsIndex,
|
|
@@ -17382,6 +17385,7 @@ __export(exports_services_gen, {
|
|
|
17382
17385
|
listAssetDispatchEdges: () => listAssetDispatchEdges,
|
|
17383
17386
|
listApps: () => listApps,
|
|
17384
17387
|
listAppPathsFromWorkspaceRunnable: () => listAppPathsFromWorkspaceRunnable,
|
|
17388
|
+
listAmqpTriggers: () => listAmqpTriggers,
|
|
17385
17389
|
listAllWorkspaceDependencies: () => listAllWorkspaceDependencies,
|
|
17386
17390
|
listAllTgoogleTopicSubscriptions: () => listAllTgoogleTopicSubscriptions,
|
|
17387
17391
|
listAllDedicatedWithDeps: () => listAllDedicatedWithDeps,
|
|
@@ -17594,6 +17598,7 @@ __export(exports_services_gen, {
|
|
|
17594
17598
|
getAppEmbedTokenByCustomPath: () => getAppEmbedTokenByCustomPath,
|
|
17595
17599
|
getAppByVersion: () => getAppByVersion,
|
|
17596
17600
|
getAppByPath: () => getAppByPath,
|
|
17601
|
+
getAmqpTrigger: () => getAmqpTrigger,
|
|
17597
17602
|
getAiSkill: () => getAiSkill,
|
|
17598
17603
|
generateOpenapiSpec: () => generateOpenapiSpec,
|
|
17599
17604
|
generateNativeTriggerServiceConnectUrl: () => generateNativeTriggerServiceConnectUrl,
|
|
@@ -17636,6 +17641,7 @@ __export(exports_services_gen, {
|
|
|
17636
17641
|
existsEmail: () => existsEmail,
|
|
17637
17642
|
existsAzureTrigger: () => existsAzureTrigger,
|
|
17638
17643
|
existsApp: () => existsApp,
|
|
17644
|
+
existsAmqpTrigger: () => existsAmqpTrigger,
|
|
17639
17645
|
executeComponent: () => executeComponent,
|
|
17640
17646
|
encryptValue: () => encryptValue,
|
|
17641
17647
|
enableDatatableMigrations: () => enableDatatableMigrations,
|
|
@@ -17720,6 +17726,7 @@ __export(exports_services_gen, {
|
|
|
17720
17726
|
deleteAzureTrigger: () => deleteAzureTrigger,
|
|
17721
17727
|
deleteAzureSubscription: () => deleteAzureSubscription,
|
|
17722
17728
|
deleteApp: () => deleteApp,
|
|
17729
|
+
deleteAmqpTrigger: () => deleteAmqpTrigger,
|
|
17723
17730
|
deleteAiSkill: () => deleteAiSkill,
|
|
17724
17731
|
declineInvite: () => declineInvite,
|
|
17725
17732
|
datasetStorageTestConnection: () => datasetStorageTestConnection,
|
|
@@ -17768,6 +17775,7 @@ __export(exports_services_gen, {
|
|
|
17768
17775
|
createAzureTrigger: () => createAzureTrigger,
|
|
17769
17776
|
createAppRaw: () => createAppRaw,
|
|
17770
17777
|
createApp: () => createApp,
|
|
17778
|
+
createAmqpTrigger: () => createAmqpTrigger,
|
|
17771
17779
|
createAgentToken: () => createAgentToken,
|
|
17772
17780
|
createAccount: () => createAccount,
|
|
17773
17781
|
countSearchLogsIndex: () => countSearchLogsIndex,
|
|
@@ -23955,6 +23963,95 @@ var backendVersion = () => {
|
|
|
23955
23963
|
body: data3.requestBody,
|
|
23956
23964
|
mediaType: "application/json"
|
|
23957
23965
|
});
|
|
23966
|
+
}, createAmqpTrigger = (data3) => {
|
|
23967
|
+
return request(OpenAPI, {
|
|
23968
|
+
method: "POST",
|
|
23969
|
+
url: "/w/{workspace}/amqp_triggers/create",
|
|
23970
|
+
path: {
|
|
23971
|
+
workspace: data3.workspace
|
|
23972
|
+
},
|
|
23973
|
+
body: data3.requestBody,
|
|
23974
|
+
mediaType: "application/json"
|
|
23975
|
+
});
|
|
23976
|
+
}, updateAmqpTrigger = (data3) => {
|
|
23977
|
+
return request(OpenAPI, {
|
|
23978
|
+
method: "POST",
|
|
23979
|
+
url: "/w/{workspace}/amqp_triggers/update/{path}",
|
|
23980
|
+
path: {
|
|
23981
|
+
workspace: data3.workspace,
|
|
23982
|
+
path: data3.path
|
|
23983
|
+
},
|
|
23984
|
+
body: data3.requestBody,
|
|
23985
|
+
mediaType: "application/json"
|
|
23986
|
+
});
|
|
23987
|
+
}, deleteAmqpTrigger = (data3) => {
|
|
23988
|
+
return request(OpenAPI, {
|
|
23989
|
+
method: "DELETE",
|
|
23990
|
+
url: "/w/{workspace}/amqp_triggers/delete/{path}",
|
|
23991
|
+
path: {
|
|
23992
|
+
workspace: data3.workspace,
|
|
23993
|
+
path: data3.path
|
|
23994
|
+
}
|
|
23995
|
+
});
|
|
23996
|
+
}, getAmqpTrigger = (data3) => {
|
|
23997
|
+
return request(OpenAPI, {
|
|
23998
|
+
method: "GET",
|
|
23999
|
+
url: "/w/{workspace}/amqp_triggers/get/{path}",
|
|
24000
|
+
path: {
|
|
24001
|
+
workspace: data3.workspace,
|
|
24002
|
+
path: data3.path
|
|
24003
|
+
},
|
|
24004
|
+
query: {
|
|
24005
|
+
get_draft: data3.getDraft
|
|
24006
|
+
}
|
|
24007
|
+
});
|
|
24008
|
+
}, listAmqpTriggers = (data3) => {
|
|
24009
|
+
return request(OpenAPI, {
|
|
24010
|
+
method: "GET",
|
|
24011
|
+
url: "/w/{workspace}/amqp_triggers/list",
|
|
24012
|
+
path: {
|
|
24013
|
+
workspace: data3.workspace
|
|
24014
|
+
},
|
|
24015
|
+
query: {
|
|
24016
|
+
page: data3.page,
|
|
24017
|
+
per_page: data3.perPage,
|
|
24018
|
+
path: data3.path,
|
|
24019
|
+
is_flow: data3.isFlow,
|
|
24020
|
+
path_start: data3.pathStart,
|
|
24021
|
+
label: data3.label,
|
|
24022
|
+
include_draft_only: data3.includeDraftOnly
|
|
24023
|
+
}
|
|
24024
|
+
});
|
|
24025
|
+
}, existsAmqpTrigger = (data3) => {
|
|
24026
|
+
return request(OpenAPI, {
|
|
24027
|
+
method: "GET",
|
|
24028
|
+
url: "/w/{workspace}/amqp_triggers/exists/{path}",
|
|
24029
|
+
path: {
|
|
24030
|
+
workspace: data3.workspace,
|
|
24031
|
+
path: data3.path
|
|
24032
|
+
}
|
|
24033
|
+
});
|
|
24034
|
+
}, setAmqpTriggerMode = (data3) => {
|
|
24035
|
+
return request(OpenAPI, {
|
|
24036
|
+
method: "POST",
|
|
24037
|
+
url: "/w/{workspace}/amqp_triggers/setmode/{path}",
|
|
24038
|
+
path: {
|
|
24039
|
+
workspace: data3.workspace,
|
|
24040
|
+
path: data3.path
|
|
24041
|
+
},
|
|
24042
|
+
body: data3.requestBody,
|
|
24043
|
+
mediaType: "application/json"
|
|
24044
|
+
});
|
|
24045
|
+
}, testAmqpConnection = (data3) => {
|
|
24046
|
+
return request(OpenAPI, {
|
|
24047
|
+
method: "POST",
|
|
24048
|
+
url: "/w/{workspace}/amqp_triggers/test",
|
|
24049
|
+
path: {
|
|
24050
|
+
workspace: data3.workspace
|
|
24051
|
+
},
|
|
24052
|
+
body: data3.requestBody,
|
|
24053
|
+
mediaType: "application/json"
|
|
24054
|
+
});
|
|
23958
24055
|
}, createGcpTrigger = (data3) => {
|
|
23959
24056
|
return request(OpenAPI, {
|
|
23960
24057
|
method: "POST",
|
|
@@ -25858,6 +25955,7 @@ __export(exports_gen, {
|
|
|
25858
25955
|
updateAppRaw: () => updateAppRaw,
|
|
25859
25956
|
updateAppHistory: () => updateAppHistory,
|
|
25860
25957
|
updateApp: () => updateApp,
|
|
25958
|
+
updateAmqpTrigger: () => updateAmqpTrigger,
|
|
25861
25959
|
unstar: () => unstar,
|
|
25862
25960
|
unassignGhesInstallation: () => unassignGhesInstallation,
|
|
25863
25961
|
unarchiveWorkspace: () => unarchiveWorkspace,
|
|
@@ -25879,6 +25977,7 @@ __export(exports_gen, {
|
|
|
25879
25977
|
testAzureKvBackend: () => testAzureKvBackend,
|
|
25880
25978
|
testAzureConnection: () => testAzureConnection,
|
|
25881
25979
|
testAwsSmBackend: () => testAwsSmBackend,
|
|
25980
|
+
testAmqpConnection: () => testAmqpConnection,
|
|
25882
25981
|
syncNativeTriggers: () => syncNativeTriggers,
|
|
25883
25982
|
submitOnboardingData: () => submitOnboardingData,
|
|
25884
25983
|
storeRawScriptTemp: () => storeRawScriptTemp,
|
|
@@ -25912,6 +26011,7 @@ __export(exports_gen, {
|
|
|
25912
26011
|
setDefaultErrorOrRecoveryHandler: () => setDefaultErrorOrRecoveryHandler,
|
|
25913
26012
|
setCaptureConfig: () => setCaptureConfig,
|
|
25914
26013
|
setAzureTriggerMode: () => setAzureTriggerMode,
|
|
26014
|
+
setAmqpTriggerMode: () => setAmqpTriggerMode,
|
|
25915
26015
|
sendStats: () => sendStats,
|
|
25916
26016
|
sendMessageToConversation: () => sendMessageToConversation,
|
|
25917
26017
|
searchLogsIndex: () => searchLogsIndex,
|
|
@@ -26139,6 +26239,7 @@ __export(exports_gen, {
|
|
|
26139
26239
|
listAssetDispatchEdges: () => listAssetDispatchEdges,
|
|
26140
26240
|
listApps: () => listApps,
|
|
26141
26241
|
listAppPathsFromWorkspaceRunnable: () => listAppPathsFromWorkspaceRunnable,
|
|
26242
|
+
listAmqpTriggers: () => listAmqpTriggers,
|
|
26142
26243
|
listAllWorkspaceDependencies: () => listAllWorkspaceDependencies,
|
|
26143
26244
|
listAllTgoogleTopicSubscriptions: () => listAllTgoogleTopicSubscriptions,
|
|
26144
26245
|
listAllDedicatedWithDeps: () => listAllDedicatedWithDeps,
|
|
@@ -26351,6 +26452,7 @@ __export(exports_gen, {
|
|
|
26351
26452
|
getAppEmbedTokenByCustomPath: () => getAppEmbedTokenByCustomPath,
|
|
26352
26453
|
getAppByVersion: () => getAppByVersion,
|
|
26353
26454
|
getAppByPath: () => getAppByPath,
|
|
26455
|
+
getAmqpTrigger: () => getAmqpTrigger,
|
|
26354
26456
|
getAiSkill: () => getAiSkill,
|
|
26355
26457
|
generateOpenapiSpec: () => generateOpenapiSpec,
|
|
26356
26458
|
generateNativeTriggerServiceConnectUrl: () => generateNativeTriggerServiceConnectUrl,
|
|
@@ -26393,6 +26495,7 @@ __export(exports_gen, {
|
|
|
26393
26495
|
existsEmail: () => existsEmail,
|
|
26394
26496
|
existsAzureTrigger: () => existsAzureTrigger,
|
|
26395
26497
|
existsApp: () => existsApp,
|
|
26498
|
+
existsAmqpTrigger: () => existsAmqpTrigger,
|
|
26396
26499
|
executeComponent: () => executeComponent,
|
|
26397
26500
|
encryptValue: () => encryptValue,
|
|
26398
26501
|
enableDatatableMigrations: () => enableDatatableMigrations,
|
|
@@ -26477,6 +26580,7 @@ __export(exports_gen, {
|
|
|
26477
26580
|
deleteAzureTrigger: () => deleteAzureTrigger,
|
|
26478
26581
|
deleteAzureSubscription: () => deleteAzureSubscription,
|
|
26479
26582
|
deleteApp: () => deleteApp,
|
|
26583
|
+
deleteAmqpTrigger: () => deleteAmqpTrigger,
|
|
26480
26584
|
deleteAiSkill: () => deleteAiSkill,
|
|
26481
26585
|
declineInvite: () => declineInvite,
|
|
26482
26586
|
datasetStorageTestConnection: () => datasetStorageTestConnection,
|
|
@@ -26525,6 +26629,7 @@ __export(exports_gen, {
|
|
|
26525
26629
|
createAzureTrigger: () => createAzureTrigger,
|
|
26526
26630
|
createAppRaw: () => createAppRaw,
|
|
26527
26631
|
createApp: () => createApp,
|
|
26632
|
+
createAmqpTrigger: () => createAmqpTrigger,
|
|
26528
26633
|
createAgentToken: () => createAgentToken,
|
|
26529
26634
|
createAccount: () => createAccount,
|
|
26530
26635
|
countSearchLogsIndex: () => countSearchLogsIndex,
|
|
@@ -26699,7 +26804,7 @@ var init_auth = __esm(async () => {
|
|
|
26699
26804
|
});
|
|
26700
26805
|
|
|
26701
26806
|
// src/core/constants.ts
|
|
26702
|
-
var WM_FORK_PREFIX = "wm-fork", VERSION = "1.
|
|
26807
|
+
var WM_FORK_PREFIX = "wm-fork", VERSION = "1.765.0";
|
|
26703
26808
|
|
|
26704
26809
|
// src/utils/git.ts
|
|
26705
26810
|
var exports_git = {};
|
|
@@ -26886,6 +26991,8 @@ function gitSyncIncludePattern(pathType, path2) {
|
|
|
26886
26991
|
return `${path2}.postgres_trigger.*`;
|
|
26887
26992
|
case "mqtttrigger":
|
|
26888
26993
|
return `${path2}.mqtt_trigger.*`;
|
|
26994
|
+
case "amqptrigger":
|
|
26995
|
+
return `${path2}.amqp_trigger.*`;
|
|
26889
26996
|
case "sqstrigger":
|
|
26890
26997
|
return `${path2}.sqs_trigger.*`;
|
|
26891
26998
|
case "gcptrigger":
|
|
@@ -49223,7 +49330,7 @@ var require_zipEntries = __commonJS((exports, module) => {
|
|
|
49223
49330
|
if (this.centralDirRecords !== this.files.length) {
|
|
49224
49331
|
if (this.centralDirRecords !== 0 && this.files.length === 0) {
|
|
49225
49332
|
throw new Error("Corrupted zip or bug: expected " + this.centralDirRecords + " records in central dir, got " + this.files.length);
|
|
49226
|
-
}
|
|
49333
|
+
}
|
|
49227
49334
|
}
|
|
49228
49335
|
},
|
|
49229
49336
|
readEndOfCentral: function() {
|
|
@@ -57657,7 +57764,7 @@ var require_loader = __commonJS((exports, module) => {
|
|
|
57657
57764
|
var error2 = generateError(state, message);
|
|
57658
57765
|
if (state.onWarning) {
|
|
57659
57766
|
state.onWarning.call(null, error2);
|
|
57660
|
-
}
|
|
57767
|
+
}
|
|
57661
57768
|
}
|
|
57662
57769
|
var directiveHandlers = {
|
|
57663
57770
|
YAML: function handleYamlDirective(state, name, args) {
|
|
@@ -58195,7 +58302,7 @@ var require_loader = __commonJS((exports, module) => {
|
|
|
58195
58302
|
} else if (detectedIndent) {
|
|
58196
58303
|
sc.value += common3.repeat(`
|
|
58197
58304
|
`, emptyLines + 1);
|
|
58198
|
-
}
|
|
58305
|
+
}
|
|
58199
58306
|
detectedIndent = true;
|
|
58200
58307
|
emptyLines = 0;
|
|
58201
58308
|
captureStart = state.position;
|
|
@@ -68943,7 +69050,7 @@ async function elementsToMap(els, ignore, json, skips, specificItems, branchOver
|
|
|
68943
69050
|
const ext2 = json ? ".json" : ".yaml";
|
|
68944
69051
|
if (!skips.includeSchedules && path13.endsWith(".schedule" + ext2))
|
|
68945
69052
|
continue;
|
|
68946
|
-
if (!skips.includeTriggers && (path13.endsWith(".http_trigger" + ext2) || path13.endsWith(".websocket_trigger" + ext2) || path13.endsWith(".kafka_trigger" + ext2) || path13.endsWith(".nats_trigger" + ext2) || path13.endsWith(".postgres_trigger" + ext2) || path13.endsWith(".mqtt_trigger" + ext2) || path13.endsWith(".sqs_trigger" + ext2) || path13.endsWith(".gcp_trigger" + ext2) || path13.endsWith(".azure_trigger" + ext2) || path13.endsWith(".email_trigger" + ext2) || path13.endsWith("_native_trigger" + ext2))) {
|
|
69053
|
+
if (!skips.includeTriggers && (path13.endsWith(".http_trigger" + ext2) || path13.endsWith(".websocket_trigger" + ext2) || path13.endsWith(".kafka_trigger" + ext2) || path13.endsWith(".nats_trigger" + ext2) || path13.endsWith(".postgres_trigger" + ext2) || path13.endsWith(".mqtt_trigger" + ext2) || path13.endsWith(".amqp_trigger" + ext2) || path13.endsWith(".sqs_trigger" + ext2) || path13.endsWith(".gcp_trigger" + ext2) || path13.endsWith(".azure_trigger" + ext2) || path13.endsWith(".email_trigger" + ext2) || path13.endsWith("_native_trigger" + ext2))) {
|
|
68947
69054
|
continue;
|
|
68948
69055
|
}
|
|
68949
69056
|
if (!skips.includeUsers && path13.endsWith(".user" + ext2))
|
|
@@ -69443,7 +69550,7 @@ function getOrderFromPath(p) {
|
|
|
69443
69550
|
return 12;
|
|
69444
69551
|
} else if (typ == "schedule") {
|
|
69445
69552
|
return 13;
|
|
69446
|
-
} else if (typ == "http_trigger" || typ == "websocket_trigger" || typ == "kafka_trigger" || typ == "nats_trigger" || typ == "postgres_trigger" || typ == "mqtt_trigger" || typ == "sqs_trigger" || typ == "gcp_trigger" || typ == "azure_trigger" || typ == "email_trigger" || typ == "native_trigger") {
|
|
69553
|
+
} else if (typ == "http_trigger" || typ == "websocket_trigger" || typ == "kafka_trigger" || typ == "nats_trigger" || typ == "postgres_trigger" || typ == "mqtt_trigger" || typ == "amqp_trigger" || typ == "sqs_trigger" || typ == "gcp_trigger" || typ == "azure_trigger" || typ == "email_trigger" || typ == "native_trigger") {
|
|
69447
69554
|
return 14;
|
|
69448
69555
|
} else {
|
|
69449
69556
|
return 15;
|
|
@@ -70329,7 +70436,7 @@ Run 'wmill folder add-missing' to create them locally, then push again.`;
|
|
|
70329
70436
|
}
|
|
70330
70437
|
}
|
|
70331
70438
|
const rules = folderRulesCache.get(folderName2);
|
|
70332
|
-
const remotePath = change.path.replace(/\.(script|schedule|http_trigger|websocket_trigger|kafka_trigger|nats_trigger|postgres_trigger|mqtt_trigger|sqs_trigger|gcp_trigger|azure_trigger|email_trigger)\.(yaml|json)$/, "").replace(/(\.flow|__flow)\/flow\.(yaml|json)$/, "").replace(/\.(app|raw_app)(\/app\.(yaml|json))?$/, "");
|
|
70439
|
+
const remotePath = change.path.replace(/\.(script|schedule|http_trigger|websocket_trigger|kafka_trigger|nats_trigger|postgres_trigger|mqtt_trigger|amqp_trigger|sqs_trigger|gcp_trigger|azure_trigger|email_trigger)\.(yaml|json)$/, "").replace(/(\.flow|__flow)\/flow\.(yaml|json)$/, "").replace(/\.(app|raw_app)(\/app\.(yaml|json))?$/, "");
|
|
70333
70440
|
const relative7 = remotePath.slice(`f/${folderName2}/`.length);
|
|
70334
70441
|
if (!relative7)
|
|
70335
70442
|
continue;
|
|
@@ -70745,6 +70852,12 @@ Run 'wmill folder add-missing' to create them locally, then push again.`;
|
|
|
70745
70852
|
path: removeSuffix(target, ".mqtt_trigger.json")
|
|
70746
70853
|
});
|
|
70747
70854
|
break;
|
|
70855
|
+
case "amqp_trigger":
|
|
70856
|
+
await deleteAmqpTrigger({
|
|
70857
|
+
workspace: workspaceId,
|
|
70858
|
+
path: removeSuffix(target, ".amqp_trigger.json")
|
|
70859
|
+
});
|
|
70860
|
+
break;
|
|
70748
70861
|
case "sqs_trigger":
|
|
70749
70862
|
await deleteSqsTrigger({
|
|
70750
70863
|
workspace: workspaceId,
|
|
@@ -77757,6 +77870,7 @@ async function getTrigger(triggerType, workspace, path21) {
|
|
|
77757
77870
|
nats: getNatsTrigger,
|
|
77758
77871
|
postgres: getPostgresTrigger,
|
|
77759
77872
|
mqtt: getMqttTrigger,
|
|
77873
|
+
amqp: getAmqpTrigger,
|
|
77760
77874
|
sqs: getSqsTrigger,
|
|
77761
77875
|
gcp: getGcpTrigger,
|
|
77762
77876
|
azure: getAzureTrigger,
|
|
@@ -77774,6 +77888,7 @@ async function updateTrigger(triggerType, workspace, path21, trigger) {
|
|
|
77774
77888
|
nats: updateNatsTrigger,
|
|
77775
77889
|
postgres: updatePostgresTrigger,
|
|
77776
77890
|
mqtt: updateMqttTrigger,
|
|
77891
|
+
amqp: updateAmqpTrigger,
|
|
77777
77892
|
sqs: updateSqsTrigger,
|
|
77778
77893
|
gcp: updateGcpTrigger,
|
|
77779
77894
|
azure: updateAzureTrigger,
|
|
@@ -77790,6 +77905,7 @@ async function createTrigger(triggerType, workspace, path21, trigger) {
|
|
|
77790
77905
|
nats: createNatsTrigger,
|
|
77791
77906
|
postgres: createPostgresTrigger,
|
|
77792
77907
|
mqtt: createMqttTrigger,
|
|
77908
|
+
amqp: createAmqpTrigger,
|
|
77793
77909
|
sqs: createSqsTrigger,
|
|
77794
77910
|
gcp: createGcpTrigger,
|
|
77795
77911
|
azure: createAzureTrigger,
|
|
@@ -78034,6 +78150,7 @@ async function list11(opts) {
|
|
|
78034
78150
|
natsTriggers,
|
|
78035
78151
|
postgresTriggers,
|
|
78036
78152
|
mqttTriggers,
|
|
78153
|
+
amqpTriggers,
|
|
78037
78154
|
sqsTriggers,
|
|
78038
78155
|
gcpTriggers,
|
|
78039
78156
|
azureTriggers,
|
|
@@ -78045,6 +78162,7 @@ async function list11(opts) {
|
|
|
78045
78162
|
listOrEmpty(() => listNatsTriggers({ workspace: ws })),
|
|
78046
78163
|
listOrEmpty(() => listPostgresTriggers({ workspace: ws })),
|
|
78047
78164
|
listOrEmpty(() => listMqttTriggers({ workspace: ws })),
|
|
78165
|
+
listOrEmpty(() => listAmqpTriggers({ workspace: ws })),
|
|
78048
78166
|
listOrEmpty(() => listSqsTriggers({ workspace: ws })),
|
|
78049
78167
|
listOrEmpty(() => listGcpTriggers({ workspace: ws })),
|
|
78050
78168
|
listOrEmpty(() => listAzureTriggers({ workspace: ws })),
|
|
@@ -78057,6 +78175,7 @@ async function list11(opts) {
|
|
|
78057
78175
|
...natsTriggers.map((x) => ({ path: x.path, kind: "nats" })),
|
|
78058
78176
|
...postgresTriggers.map((x) => ({ path: x.path, kind: "postgres" })),
|
|
78059
78177
|
...mqttTriggers.map((x) => ({ path: x.path, kind: "mqtt" })),
|
|
78178
|
+
...amqpTriggers.map((x) => ({ path: x.path, kind: "amqp" })),
|
|
78060
78179
|
...sqsTriggers.map((x) => ({ path: x.path, kind: "sqs" })),
|
|
78061
78180
|
...gcpTriggers.map((x) => ({ path: x.path, kind: "gcp" })),
|
|
78062
78181
|
...azureTriggers.map((x) => ({ path: x.path, kind: "azure" })),
|
|
@@ -78176,6 +78295,13 @@ var init_trigger = __esm(async () => {
|
|
|
78176
78295
|
subscribe_topics: [],
|
|
78177
78296
|
enabled: false
|
|
78178
78297
|
},
|
|
78298
|
+
amqp: {
|
|
78299
|
+
script_path: "",
|
|
78300
|
+
is_flow: false,
|
|
78301
|
+
amqp_resource_path: "",
|
|
78302
|
+
queue_name: "",
|
|
78303
|
+
enabled: false
|
|
78304
|
+
},
|
|
78179
78305
|
sqs: {
|
|
78180
78306
|
script_path: "",
|
|
78181
78307
|
is_flow: false,
|
|
@@ -78211,7 +78337,7 @@ var init_trigger = __esm(async () => {
|
|
|
78211
78337
|
}
|
|
78212
78338
|
};
|
|
78213
78339
|
TRIGGER_SKIP_FIELDS = new Set(["workspace_id", "extra_perms", "edited_by", "edited_at"]);
|
|
78214
|
-
command20 = new Command().description("trigger related commands").option("--json", "Output as JSON (for piping to jq)").action(list11).command("list", "list all triggers").option("--json", "Output as JSON (for piping to jq)").action(list11).command("get", "get a trigger's details").arguments("<path:string>").option("--json", "Output as JSON (for piping to jq)").option("--kind <kind:string>", "Trigger kind (http, websocket, kafka, nats, postgres, mqtt, sqs, gcp, azure, email). Recommended for faster lookup").action(get8).command("new", "create a new trigger locally").arguments("<path:string>").option("--kind <kind:string>", "Trigger kind (required: http, websocket, kafka, nats, postgres, mqtt, sqs, gcp, azure, email)").action(newTrigger).command("push", "push a local trigger spec. This overrides any remote versions.").arguments("<file_path:string> <remote_path:string>").action(push10).command("set-permissioned-as", "Set the email (run-as user) for a trigger (requires admin or wm_deployers group)").arguments("<path:string> <email:string>").option("--kind <kind:string>", "Trigger kind (required: http, websocket, kafka, nats, postgres, mqtt, sqs, gcp, azure, email)").action(async (opts, triggerPath, email) => {
|
|
78340
|
+
command20 = new Command().description("trigger related commands").option("--json", "Output as JSON (for piping to jq)").action(list11).command("list", "list all triggers").option("--json", "Output as JSON (for piping to jq)").action(list11).command("get", "get a trigger's details").arguments("<path:string>").option("--json", "Output as JSON (for piping to jq)").option("--kind <kind:string>", "Trigger kind (http, websocket, kafka, nats, postgres, mqtt, amqp, sqs, gcp, azure, email). Recommended for faster lookup").action(get8).command("new", "create a new trigger locally").arguments("<path:string>").option("--kind <kind:string>", "Trigger kind (required: http, websocket, kafka, nats, postgres, mqtt, amqp, sqs, gcp, azure, email)").action(newTrigger).command("push", "push a local trigger spec. This overrides any remote versions.").arguments("<file_path:string> <remote_path:string>").action(push10).command("set-permissioned-as", "Set the email (run-as user) for a trigger (requires admin or wm_deployers group)").arguments("<path:string> <email:string>").option("--kind <kind:string>", "Trigger kind (required: http, websocket, kafka, nats, postgres, mqtt, amqp, sqs, gcp, azure, email)").action(async (opts, triggerPath, email) => {
|
|
78215
78341
|
const workspace = await resolveWorkspace(opts);
|
|
78216
78342
|
await requireLogin(opts);
|
|
78217
78343
|
if (!opts.kind) {
|
|
@@ -78358,6 +78484,8 @@ async function pushObj(workspace, p, befObj, newObj, plainSecrets, alreadySynced
|
|
|
78358
78484
|
await pushTrigger("postgres", workspace, p, befObj, newObj, permissionedAsContext);
|
|
78359
78485
|
} else if (typeEnding === "mqtt_trigger") {
|
|
78360
78486
|
await pushTrigger("mqtt", workspace, p, befObj, newObj, permissionedAsContext);
|
|
78487
|
+
} else if (typeEnding === "amqp_trigger") {
|
|
78488
|
+
await pushTrigger("amqp", workspace, p, befObj, newObj, permissionedAsContext);
|
|
78361
78489
|
} else if (typeEnding === "sqs_trigger") {
|
|
78362
78490
|
await pushTrigger("sqs", workspace, p, befObj, newObj, permissionedAsContext);
|
|
78363
78491
|
} else if (typeEnding === "gcp_trigger") {
|
|
@@ -78450,7 +78578,7 @@ function getTypeStrFromPath(p) {
|
|
|
78450
78578
|
if (typeEnding?.endsWith("_native_trigger")) {
|
|
78451
78579
|
return "native_trigger";
|
|
78452
78580
|
}
|
|
78453
|
-
if (typeEnding === "script" || typeEnding === "variable" || typeEnding === "resource" || typeEnding === "resource-type" || typeEnding === "app" || typeEnding === "schedule" || typeEnding === "http_trigger" || typeEnding === "websocket_trigger" || typeEnding === "kafka_trigger" || typeEnding === "nats_trigger" || typeEnding === "postgres_trigger" || typeEnding === "mqtt_trigger" || typeEnding === "sqs_trigger" || typeEnding === "gcp_trigger" || typeEnding === "azure_trigger" || typeEnding === "email_trigger" || typeEnding === "user" || typeEnding === "group" || typeEnding === "settings" || typeEnding === "encryption_key") {
|
|
78581
|
+
if (typeEnding === "script" || typeEnding === "variable" || typeEnding === "resource" || typeEnding === "resource-type" || typeEnding === "app" || typeEnding === "schedule" || typeEnding === "http_trigger" || typeEnding === "websocket_trigger" || typeEnding === "kafka_trigger" || typeEnding === "nats_trigger" || typeEnding === "postgres_trigger" || typeEnding === "mqtt_trigger" || typeEnding === "amqp_trigger" || typeEnding === "sqs_trigger" || typeEnding === "gcp_trigger" || typeEnding === "azure_trigger" || typeEnding === "email_trigger" || typeEnding === "user" || typeEnding === "group" || typeEnding === "settings" || typeEnding === "encryption_key") {
|
|
78454
78582
|
return typeEnding;
|
|
78455
78583
|
} else {
|
|
78456
78584
|
throw new Error("Could not infer type of path " + JSON.stringify(parsed));
|
|
@@ -78524,6 +78652,7 @@ var init_types = __esm(async () => {
|
|
|
78524
78652
|
"nats",
|
|
78525
78653
|
"postgres",
|
|
78526
78654
|
"mqtt",
|
|
78655
|
+
"amqp",
|
|
78527
78656
|
"sqs",
|
|
78528
78657
|
"gcp",
|
|
78529
78658
|
"azure",
|
|
@@ -80482,7 +80611,7 @@ When a new app needs to be created, YOU run \`wmill app new\` yourself with \`--
|
|
|
80482
80611
|
|
|
80483
80612
|
## Triggers
|
|
80484
80613
|
|
|
80485
|
-
You MUST use the \`triggers\` skill to configure HTTP routes, WebSocket, Kafka, NATS, SQS, MQTT, GCP, Azure, Email, or Postgres CDC triggers.
|
|
80614
|
+
You MUST use the \`triggers\` skill to configure HTTP routes, WebSocket, Kafka, NATS, SQS, MQTT, AMQP, GCP, Azure, Email, or Postgres CDC triggers.
|
|
80486
80615
|
|
|
80487
80616
|
## Schedules
|
|
80488
80617
|
|
|
@@ -87834,12 +87963,12 @@ trigger related commands
|
|
|
87834
87963
|
- \`--json\` - Output as JSON (for piping to jq)
|
|
87835
87964
|
- \`trigger get <path:string>\` - get a trigger's details
|
|
87836
87965
|
- \`--json\` - Output as JSON (for piping to jq)
|
|
87837
|
-
- \`--kind <kind:string>\` - Trigger kind (http, websocket, kafka, nats, postgres, mqtt, sqs, gcp, azure, email). Recommended for faster lookup
|
|
87966
|
+
- \`--kind <kind:string>\` - Trigger kind (http, websocket, kafka, nats, postgres, mqtt, amqp, sqs, gcp, azure, email). Recommended for faster lookup
|
|
87838
87967
|
- \`trigger new <path:string>\` - create a new trigger locally
|
|
87839
|
-
- \`--kind <kind:string>\` - Trigger kind (required: http, websocket, kafka, nats, postgres, mqtt, sqs, gcp, azure, email)
|
|
87968
|
+
- \`--kind <kind:string>\` - Trigger kind (required: http, websocket, kafka, nats, postgres, mqtt, amqp, sqs, gcp, azure, email)
|
|
87840
87969
|
- \`trigger push <file_path:string> <remote_path:string>\` - push a local trigger spec. This overrides any remote versions.
|
|
87841
87970
|
- \`trigger set-permissioned-as <path:string> <email:string>\` - Set the email (run-as user) for a trigger (requires admin or wm_deployers group)
|
|
87842
|
-
- \`--kind <kind:string>\` - Trigger kind (required: http, websocket, kafka, nats, postgres, mqtt, sqs, gcp, azure, email)
|
|
87971
|
+
- \`--kind <kind:string>\` - Trigger kind (required: http, websocket, kafka, nats, postgres, mqtt, amqp, sqs, gcp, azure, email)
|
|
87843
87972
|
|
|
87844
87973
|
### user
|
|
87845
87974
|
|
|
@@ -88109,6 +88238,120 @@ Both print the job result, are safe to run yourself, and don't deploy.
|
|
|
88109
88238
|
`
|
|
88110
88239
|
};
|
|
88111
88240
|
SCHEMAS = {
|
|
88241
|
+
amqp_trigger: `type: object
|
|
88242
|
+
properties:
|
|
88243
|
+
script_path:
|
|
88244
|
+
type: string
|
|
88245
|
+
description: Path to the script or flow to execute when triggered
|
|
88246
|
+
permissioned_as:
|
|
88247
|
+
type: string
|
|
88248
|
+
description: The user or group this trigger runs as (permissioned_as)
|
|
88249
|
+
is_flow:
|
|
88250
|
+
type: boolean
|
|
88251
|
+
description: True if script_path points to a flow, false if it points to a script
|
|
88252
|
+
labels:
|
|
88253
|
+
type: array
|
|
88254
|
+
items:
|
|
88255
|
+
type: string
|
|
88256
|
+
draft_only:
|
|
88257
|
+
type: boolean
|
|
88258
|
+
description: 'True when this row is a per-user draft with no deployed
|
|
88259
|
+
|
|
88260
|
+
trigger at the same path. Set by list endpoints when
|
|
88261
|
+
|
|
88262
|
+
\`include_draft_only=true\` synthesizes the row from the
|
|
88263
|
+
|
|
88264
|
+
draft. Frontend renders a "Draft" badge.
|
|
88265
|
+
|
|
88266
|
+
'
|
|
88267
|
+
is_draft:
|
|
88268
|
+
type: boolean
|
|
88269
|
+
description: 'True when the authed user has a per-user draft at this path
|
|
88270
|
+
|
|
88271
|
+
(over a deployed row or a synthesized draft-only row).
|
|
88272
|
+
|
|
88273
|
+
Frontend appends a \`*\` to the displayed name.
|
|
88274
|
+
|
|
88275
|
+
'
|
|
88276
|
+
amqp_resource_path:
|
|
88277
|
+
type: string
|
|
88278
|
+
description: Path to the AMQP resource containing broker connection configuration
|
|
88279
|
+
queue_name:
|
|
88280
|
+
type: string
|
|
88281
|
+
description: Name of the queue to consume messages from
|
|
88282
|
+
exchange:
|
|
88283
|
+
type: object
|
|
88284
|
+
properties:
|
|
88285
|
+
exchange_name:
|
|
88286
|
+
type: string
|
|
88287
|
+
description: Name of the exchange to bind the consumed queue to
|
|
88288
|
+
routing_keys:
|
|
88289
|
+
type: array
|
|
88290
|
+
items:
|
|
88291
|
+
type: string
|
|
88292
|
+
description: Routing keys used to bind the queue to the exchange
|
|
88293
|
+
options:
|
|
88294
|
+
type: object
|
|
88295
|
+
properties:
|
|
88296
|
+
declare_queue:
|
|
88297
|
+
type: boolean
|
|
88298
|
+
description: Declare the queue (durable) before consuming; when false the
|
|
88299
|
+
queue is declared passively and must already exist
|
|
88300
|
+
prefetch_count:
|
|
88301
|
+
type: integer
|
|
88302
|
+
format: int32
|
|
88303
|
+
minimum: 1
|
|
88304
|
+
maximum: 65535
|
|
88305
|
+
description: Maximum number of unacknowledged messages the broker delivers
|
|
88306
|
+
at once (1-65535)
|
|
88307
|
+
error_handler_path:
|
|
88308
|
+
type: string
|
|
88309
|
+
description: Path to a script or flow to run when the triggered job fails
|
|
88310
|
+
error_handler_args:
|
|
88311
|
+
type: object
|
|
88312
|
+
description: The arguments to pass to the script or flow
|
|
88313
|
+
retry:
|
|
88314
|
+
type: object
|
|
88315
|
+
properties:
|
|
88316
|
+
constant:
|
|
88317
|
+
type: object
|
|
88318
|
+
description: Retry with constant delay between attempts
|
|
88319
|
+
properties:
|
|
88320
|
+
attempts:
|
|
88321
|
+
type: integer
|
|
88322
|
+
description: Number of retry attempts
|
|
88323
|
+
seconds:
|
|
88324
|
+
type: integer
|
|
88325
|
+
description: Seconds to wait between retries
|
|
88326
|
+
exponential:
|
|
88327
|
+
type: object
|
|
88328
|
+
description: Retry with exponential backoff (delay doubles each time)
|
|
88329
|
+
properties:
|
|
88330
|
+
attempts:
|
|
88331
|
+
type: integer
|
|
88332
|
+
description: Number of retry attempts
|
|
88333
|
+
multiplier:
|
|
88334
|
+
type: integer
|
|
88335
|
+
description: Multiplier for exponential backoff
|
|
88336
|
+
seconds:
|
|
88337
|
+
type: integer
|
|
88338
|
+
minimum: 1
|
|
88339
|
+
description: Initial delay in seconds
|
|
88340
|
+
random_factor:
|
|
88341
|
+
type: integer
|
|
88342
|
+
minimum: 0
|
|
88343
|
+
maximum: 100
|
|
88344
|
+
description: Random jitter percentage (0-100) to avoid thundering herd
|
|
88345
|
+
retry_if:
|
|
88346
|
+
$ref: '#/components/schemas/RetryIf'
|
|
88347
|
+
description: Retry configuration for failed module executions
|
|
88348
|
+
required:
|
|
88349
|
+
- script_path
|
|
88350
|
+
- permissioned_as
|
|
88351
|
+
- is_flow
|
|
88352
|
+
- amqp_resource_path
|
|
88353
|
+
- queue_name
|
|
88354
|
+
`,
|
|
88112
88355
|
azure_trigger: `type: object
|
|
88113
88356
|
properties:
|
|
88114
88357
|
script_path:
|
|
@@ -89407,6 +89650,7 @@ required:
|
|
|
89407
89650
|
{ name: "NatsTrigger", schemaKey: "nats_trigger", filePattern: "*.nats_trigger.yaml" },
|
|
89408
89651
|
{ name: "PostgresTrigger", schemaKey: "postgres_trigger", filePattern: "*.postgres_trigger.yaml" },
|
|
89409
89652
|
{ name: "MqttTrigger", schemaKey: "mqtt_trigger", filePattern: "*.mqtt_trigger.yaml" },
|
|
89653
|
+
{ name: "AmqpTrigger", schemaKey: "amqp_trigger", filePattern: "*.amqp_trigger.yaml" },
|
|
89410
89654
|
{ name: "SqsTrigger", schemaKey: "sqs_trigger", filePattern: "*.sqs_trigger.yaml" },
|
|
89411
89655
|
{ name: "GcpTrigger", schemaKey: "gcp_trigger", filePattern: "*.gcp_trigger.yaml" },
|
|
89412
89656
|
{ name: "AzureTrigger", schemaKey: "azure_trigger", filePattern: "*.azure_trigger.yaml" },
|
|
@@ -96628,6 +96872,7 @@ var assetNodeId = (kind, path24) => `${kind}:${path24}`;
|
|
|
96628
96872
|
var NON_AUTORUN_TRIGGER_KINDS = new Set([
|
|
96629
96873
|
"kafka",
|
|
96630
96874
|
"mqtt",
|
|
96875
|
+
"amqp",
|
|
96631
96876
|
"nats",
|
|
96632
96877
|
"postgres",
|
|
96633
96878
|
"sqs",
|
|
@@ -96642,8 +96887,7 @@ function assetUriToNodeId(uri) {
|
|
|
96642
96887
|
return;
|
|
96643
96888
|
const prefix = m3[1].toLowerCase();
|
|
96644
96889
|
const kind = prefix === "s3" ? "s3object" : prefix;
|
|
96645
|
-
|
|
96646
|
-
return `${kind}:${path24}`;
|
|
96890
|
+
return `${kind}:${m3[2]}`;
|
|
96647
96891
|
}
|
|
96648
96892
|
function addEdge(dag, a2, b2) {
|
|
96649
96893
|
if (a2 === b2)
|
|
@@ -97131,6 +97375,7 @@ var NATIVE_KINDS = new Set([
|
|
|
97131
97375
|
"email",
|
|
97132
97376
|
"kafka",
|
|
97133
97377
|
"mqtt",
|
|
97378
|
+
"amqp",
|
|
97134
97379
|
"nats",
|
|
97135
97380
|
"postgres",
|
|
97136
97381
|
"sqs",
|
|
@@ -97166,8 +97411,7 @@ function fallbackParse(content, language) {
|
|
|
97166
97411
|
if (uri) {
|
|
97167
97412
|
const prefix = uri[1].toLowerCase();
|
|
97168
97413
|
const kind = prefix === "s3" ? "s3object" : prefix;
|
|
97169
|
-
|
|
97170
|
-
out.triggers.push({ kind: "asset", asset_kind: kind, path: path25 });
|
|
97414
|
+
out.triggers.push({ kind: "asset", asset_kind: kind, path: uri[2] });
|
|
97171
97415
|
} else if (NATIVE_KINDS.has(firstTok) && rest === firstTok) {
|
|
97172
97416
|
out.triggers.push({ kind: firstTok });
|
|
97173
97417
|
}
|
|
@@ -97241,8 +97485,7 @@ function parseMuteAnnotations(content) {
|
|
|
97241
97485
|
}
|
|
97242
97486
|
for (const [prefix, kind] of MUTE_ASSET_PREFIXES) {
|
|
97243
97487
|
if (arg.startsWith(prefix)) {
|
|
97244
|
-
|
|
97245
|
-
muted.add(`${kind}:${p3}`);
|
|
97488
|
+
muted.add(`${kind}:${arg.slice(prefix.length)}`);
|
|
97246
97489
|
break;
|
|
97247
97490
|
}
|
|
97248
97491
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "windmill-cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.765.0",
|
|
4
4
|
"description": "CLI for Windmill",
|
|
5
5
|
"license": "Apache 2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"esbuild": "0.28.0",
|
|
20
|
-
"windmill-parser-wasm-asset": "1.
|
|
20
|
+
"windmill-parser-wasm-asset": "1.753.0",
|
|
21
21
|
"windmill-parser-wasm-csharp": "1.510.1",
|
|
22
22
|
"windmill-parser-wasm-go": "1.761.0",
|
|
23
23
|
"windmill-parser-wasm-java": "1.510.1",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"windmill-parser-wasm-py": "1.693.1",
|
|
27
27
|
"windmill-parser-wasm-py-imports": "1.693.1",
|
|
28
28
|
"windmill-parser-wasm-r": "1.668.1",
|
|
29
|
-
"windmill-parser-wasm-regex": "1.
|
|
29
|
+
"windmill-parser-wasm-regex": "1.764.0",
|
|
30
30
|
"windmill-parser-wasm-ruby": "1.526.1",
|
|
31
31
|
"windmill-parser-wasm-rust": "1.647.1",
|
|
32
32
|
"windmill-parser-wasm-ts": "1.695.0",
|