windmill-cli 1.796.0 → 1.798.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 +71 -20
- package/package.json +1 -1
package/esm/main.js
CHANGED
|
@@ -16769,7 +16769,7 @@ var init_OpenAPI = __esm(() => {
|
|
|
16769
16769
|
PASSWORD: undefined,
|
|
16770
16770
|
TOKEN: getEnv3("WM_TOKEN"),
|
|
16771
16771
|
USERNAME: undefined,
|
|
16772
|
-
VERSION: "1.
|
|
16772
|
+
VERSION: "1.798.0",
|
|
16773
16773
|
WITH_CREDENTIALS: true,
|
|
16774
16774
|
interceptors: {
|
|
16775
16775
|
request: new Interceptors,
|
|
@@ -17209,6 +17209,7 @@ __export(exports_services_gen, {
|
|
|
17209
17209
|
detachDevWorkspace: () => detachDevWorkspace,
|
|
17210
17210
|
diffRawScriptsWithDeployed: () => diffRawScriptsWithDeployed,
|
|
17211
17211
|
disableDatatableMigrations: () => disableDatatableMigrations,
|
|
17212
|
+
discardHubProjectUpdate: () => discardHubProjectUpdate,
|
|
17212
17213
|
disconnectAccount: () => disconnectAccount,
|
|
17213
17214
|
disconnectSlack: () => disconnectSlack,
|
|
17214
17215
|
disconnectTeams: () => disconnectTeams,
|
|
@@ -17884,6 +17885,7 @@ __export(exports_services_gen, {
|
|
|
17884
17885
|
usernameToEmail: () => usernameToEmail,
|
|
17885
17886
|
whoami: () => whoami,
|
|
17886
17887
|
whois: () => whois,
|
|
17888
|
+
withdrawHubProject: () => withdrawHubProject,
|
|
17887
17889
|
workspaceAcknowledgeAllCriticalAlerts: () => workspaceAcknowledgeAllCriticalAlerts,
|
|
17888
17890
|
workspaceAcknowledgeCriticalAlert: () => workspaceAcknowledgeCriticalAlert,
|
|
17889
17891
|
workspaceGetCriticalAlerts: () => workspaceGetCriticalAlerts,
|
|
@@ -26754,6 +26756,30 @@ var backendVersion = () => {
|
|
|
26754
26756
|
folder: data3.folder
|
|
26755
26757
|
}
|
|
26756
26758
|
});
|
|
26759
|
+
}, withdrawHubProject = (data3) => {
|
|
26760
|
+
return request(OpenAPI, {
|
|
26761
|
+
method: "POST",
|
|
26762
|
+
url: "/w/{workspace}/hub/projects/{slug}/withdraw",
|
|
26763
|
+
path: {
|
|
26764
|
+
workspace: data3.workspace,
|
|
26765
|
+
slug: data3.slug
|
|
26766
|
+
},
|
|
26767
|
+
query: {
|
|
26768
|
+
folder: data3.folder
|
|
26769
|
+
}
|
|
26770
|
+
});
|
|
26771
|
+
}, discardHubProjectUpdate = (data3) => {
|
|
26772
|
+
return request(OpenAPI, {
|
|
26773
|
+
method: "POST",
|
|
26774
|
+
url: "/w/{workspace}/hub/projects/{slug}/discard_update",
|
|
26775
|
+
path: {
|
|
26776
|
+
workspace: data3.workspace,
|
|
26777
|
+
slug: data3.slug
|
|
26778
|
+
},
|
|
26779
|
+
query: {
|
|
26780
|
+
folder: data3.folder
|
|
26781
|
+
}
|
|
26782
|
+
});
|
|
26757
26783
|
}, getHubProjectBySource = (data3) => {
|
|
26758
26784
|
return request(OpenAPI, {
|
|
26759
26785
|
method: "GET",
|
|
@@ -26946,6 +26972,7 @@ __export(exports_gen, {
|
|
|
26946
26972
|
detachDevWorkspace: () => detachDevWorkspace,
|
|
26947
26973
|
diffRawScriptsWithDeployed: () => diffRawScriptsWithDeployed,
|
|
26948
26974
|
disableDatatableMigrations: () => disableDatatableMigrations,
|
|
26975
|
+
discardHubProjectUpdate: () => discardHubProjectUpdate,
|
|
26949
26976
|
disconnectAccount: () => disconnectAccount,
|
|
26950
26977
|
disconnectSlack: () => disconnectSlack,
|
|
26951
26978
|
disconnectTeams: () => disconnectTeams,
|
|
@@ -27621,6 +27648,7 @@ __export(exports_gen, {
|
|
|
27621
27648
|
usernameToEmail: () => usernameToEmail,
|
|
27622
27649
|
whoami: () => whoami,
|
|
27623
27650
|
whois: () => whois,
|
|
27651
|
+
withdrawHubProject: () => withdrawHubProject,
|
|
27624
27652
|
workspaceAcknowledgeAllCriticalAlerts: () => workspaceAcknowledgeAllCriticalAlerts,
|
|
27625
27653
|
workspaceAcknowledgeCriticalAlert: () => workspaceAcknowledgeCriticalAlert,
|
|
27626
27654
|
workspaceGetCriticalAlerts: () => workspaceGetCriticalAlerts,
|
|
@@ -27748,7 +27776,7 @@ var init_auth = __esm(async () => {
|
|
|
27748
27776
|
});
|
|
27749
27777
|
|
|
27750
27778
|
// src/core/constants.ts
|
|
27751
|
-
var WM_FORK_PREFIX = "wm-fork", VERSION = "1.
|
|
27779
|
+
var WM_FORK_PREFIX = "wm-fork", VERSION = "1.798.0";
|
|
27752
27780
|
|
|
27753
27781
|
// src/utils/git.ts
|
|
27754
27782
|
var exports_git = {};
|
|
@@ -43366,7 +43394,10 @@ function createSveltePlugin(appDir) {
|
|
|
43366
43394
|
const filename = path6.relative(process14.cwd(), args.path);
|
|
43367
43395
|
const convertMessage = messageConverter(source, filename);
|
|
43368
43396
|
try {
|
|
43369
|
-
const { js, warnings } = svelte.compile(source, {
|
|
43397
|
+
const { js, warnings } = svelte.compile(source, {
|
|
43398
|
+
filename,
|
|
43399
|
+
css: "injected"
|
|
43400
|
+
});
|
|
43370
43401
|
const contents = js.code + `//# sourceMappingURL=` + js.map.toUrl();
|
|
43371
43402
|
return { contents, warnings: warnings.map(convertMessage) };
|
|
43372
43403
|
} catch (e4) {
|
|
@@ -65812,7 +65843,7 @@ var init_openflow = __esm(() => {
|
|
|
65812
65843
|
openflow_default = {
|
|
65813
65844
|
openapi: "3.0.3",
|
|
65814
65845
|
info: {
|
|
65815
|
-
version: "1.
|
|
65846
|
+
version: "1.798.0",
|
|
65816
65847
|
title: "OpenFlow Spec",
|
|
65817
65848
|
contact: {
|
|
65818
65849
|
name: "Ruben Fiszel",
|
|
@@ -88507,31 +88538,35 @@ async deleteS3File(s3object: S3Object, workspace: string | undefined = undefined
|
|
|
88507
88538
|
/**
|
|
88508
88539
|
* Sign S3 objects to be used by anonymous users in public apps
|
|
88509
88540
|
* @param s3objects s3 objects to sign
|
|
88541
|
+
* @param expirySecs how long the signature stays valid, in seconds (default 43200 = 12h, clamped to [60, 604800])
|
|
88510
88542
|
* @returns signed s3 objects
|
|
88511
88543
|
*/
|
|
88512
|
-
async signS3Objects(s3objects: S3Object[]): Promise<S3Object[]>
|
|
88544
|
+
async signS3Objects(s3objects: S3Object[], { expirySecs }: { expirySecs?: number } = {}): Promise<S3Object[]>
|
|
88513
88545
|
|
|
88514
88546
|
/**
|
|
88515
88547
|
* Sign S3 object to be used by anonymous users in public apps
|
|
88516
88548
|
* @param s3object s3 object to sign
|
|
88549
|
+
* @param expirySecs how long the signature stays valid, in seconds (default 43200 = 12h, clamped to [60, 604800])
|
|
88517
88550
|
* @returns signed s3 object
|
|
88518
88551
|
*/
|
|
88519
|
-
async signS3Object(s3object: S3Object): Promise<S3Object>
|
|
88552
|
+
async signS3Object(s3object: S3Object, { expirySecs }: { expirySecs?: number } = {}): Promise<S3Object>
|
|
88520
88553
|
|
|
88521
88554
|
/**
|
|
88522
88555
|
* Generate a presigned public URL for an array of S3 objects.
|
|
88523
88556
|
* If an S3 object is not signed yet, it will be signed first.
|
|
88524
88557
|
* @param s3Objects s3 objects to sign
|
|
88558
|
+
* @param expirySecs how long the signature stays valid, in seconds (default 43200 = 12h, clamped to [60, 604800])
|
|
88525
88559
|
* @returns list of signed public URLs
|
|
88526
88560
|
*/
|
|
88527
|
-
async getPresignedS3PublicUrls(s3Objects: S3Object[], { baseUrl }: { baseUrl?: string } = {}): Promise<string[]>
|
|
88561
|
+
async getPresignedS3PublicUrls(s3Objects: S3Object[], { baseUrl, expirySecs }: { baseUrl?: string; expirySecs?: number } = {}): Promise<string[]>
|
|
88528
88562
|
|
|
88529
88563
|
/**
|
|
88530
88564
|
* Generate a presigned public URL for an S3 object. If the S3 object is not signed yet, it will be signed first.
|
|
88531
88565
|
* @param s3Object s3 object to sign
|
|
88566
|
+
* @param expirySecs how long the signature stays valid, in seconds (default 43200 = 12h, clamped to [60, 604800])
|
|
88532
88567
|
* @returns signed public URL
|
|
88533
88568
|
*/
|
|
88534
|
-
async getPresignedS3PublicUrl(s3Objects: S3Object, { baseUrl }: { baseUrl?: string } = {}): Promise<string>
|
|
88569
|
+
async getPresignedS3PublicUrl(s3Objects: S3Object, { baseUrl, expirySecs }: { baseUrl?: string; expirySecs?: number } = {}): Promise<string>
|
|
88535
88570
|
|
|
88536
88571
|
/**
|
|
88537
88572
|
* Get URLs needed for resuming a flow after this step
|
|
@@ -89290,31 +89325,35 @@ async deleteS3File(s3object: S3Object, workspace: string | undefined = undefined
|
|
|
89290
89325
|
/**
|
|
89291
89326
|
* Sign S3 objects to be used by anonymous users in public apps
|
|
89292
89327
|
* @param s3objects s3 objects to sign
|
|
89328
|
+
* @param expirySecs how long the signature stays valid, in seconds (default 43200 = 12h, clamped to [60, 604800])
|
|
89293
89329
|
* @returns signed s3 objects
|
|
89294
89330
|
*/
|
|
89295
|
-
async signS3Objects(s3objects: S3Object[]): Promise<S3Object[]>
|
|
89331
|
+
async signS3Objects(s3objects: S3Object[], { expirySecs }: { expirySecs?: number } = {}): Promise<S3Object[]>
|
|
89296
89332
|
|
|
89297
89333
|
/**
|
|
89298
89334
|
* Sign S3 object to be used by anonymous users in public apps
|
|
89299
89335
|
* @param s3object s3 object to sign
|
|
89336
|
+
* @param expirySecs how long the signature stays valid, in seconds (default 43200 = 12h, clamped to [60, 604800])
|
|
89300
89337
|
* @returns signed s3 object
|
|
89301
89338
|
*/
|
|
89302
|
-
async signS3Object(s3object: S3Object): Promise<S3Object>
|
|
89339
|
+
async signS3Object(s3object: S3Object, { expirySecs }: { expirySecs?: number } = {}): Promise<S3Object>
|
|
89303
89340
|
|
|
89304
89341
|
/**
|
|
89305
89342
|
* Generate a presigned public URL for an array of S3 objects.
|
|
89306
89343
|
* If an S3 object is not signed yet, it will be signed first.
|
|
89307
89344
|
* @param s3Objects s3 objects to sign
|
|
89345
|
+
* @param expirySecs how long the signature stays valid, in seconds (default 43200 = 12h, clamped to [60, 604800])
|
|
89308
89346
|
* @returns list of signed public URLs
|
|
89309
89347
|
*/
|
|
89310
|
-
async getPresignedS3PublicUrls(s3Objects: S3Object[], { baseUrl }: { baseUrl?: string } = {}): Promise<string[]>
|
|
89348
|
+
async getPresignedS3PublicUrls(s3Objects: S3Object[], { baseUrl, expirySecs }: { baseUrl?: string; expirySecs?: number } = {}): Promise<string[]>
|
|
89311
89349
|
|
|
89312
89350
|
/**
|
|
89313
89351
|
* Generate a presigned public URL for an S3 object. If the S3 object is not signed yet, it will be signed first.
|
|
89314
89352
|
* @param s3Object s3 object to sign
|
|
89353
|
+
* @param expirySecs how long the signature stays valid, in seconds (default 43200 = 12h, clamped to [60, 604800])
|
|
89315
89354
|
* @returns signed public URL
|
|
89316
89355
|
*/
|
|
89317
|
-
async getPresignedS3PublicUrl(s3Objects: S3Object, { baseUrl }: { baseUrl?: string } = {}): Promise<string>
|
|
89356
|
+
async getPresignedS3PublicUrl(s3Objects: S3Object, { baseUrl, expirySecs }: { baseUrl?: string; expirySecs?: number } = {}): Promise<string>
|
|
89318
89357
|
|
|
89319
89358
|
/**
|
|
89320
89359
|
* Get URLs needed for resuming a flow after this step
|
|
@@ -90167,31 +90206,35 @@ async deleteS3File(s3object: S3Object, workspace: string | undefined = undefined
|
|
|
90167
90206
|
/**
|
|
90168
90207
|
* Sign S3 objects to be used by anonymous users in public apps
|
|
90169
90208
|
* @param s3objects s3 objects to sign
|
|
90209
|
+
* @param expirySecs how long the signature stays valid, in seconds (default 43200 = 12h, clamped to [60, 604800])
|
|
90170
90210
|
* @returns signed s3 objects
|
|
90171
90211
|
*/
|
|
90172
|
-
async signS3Objects(s3objects: S3Object[]): Promise<S3Object[]>
|
|
90212
|
+
async signS3Objects(s3objects: S3Object[], { expirySecs }: { expirySecs?: number } = {}): Promise<S3Object[]>
|
|
90173
90213
|
|
|
90174
90214
|
/**
|
|
90175
90215
|
* Sign S3 object to be used by anonymous users in public apps
|
|
90176
90216
|
* @param s3object s3 object to sign
|
|
90217
|
+
* @param expirySecs how long the signature stays valid, in seconds (default 43200 = 12h, clamped to [60, 604800])
|
|
90177
90218
|
* @returns signed s3 object
|
|
90178
90219
|
*/
|
|
90179
|
-
async signS3Object(s3object: S3Object): Promise<S3Object>
|
|
90220
|
+
async signS3Object(s3object: S3Object, { expirySecs }: { expirySecs?: number } = {}): Promise<S3Object>
|
|
90180
90221
|
|
|
90181
90222
|
/**
|
|
90182
90223
|
* Generate a presigned public URL for an array of S3 objects.
|
|
90183
90224
|
* If an S3 object is not signed yet, it will be signed first.
|
|
90184
90225
|
* @param s3Objects s3 objects to sign
|
|
90226
|
+
* @param expirySecs how long the signature stays valid, in seconds (default 43200 = 12h, clamped to [60, 604800])
|
|
90185
90227
|
* @returns list of signed public URLs
|
|
90186
90228
|
*/
|
|
90187
|
-
async getPresignedS3PublicUrls(s3Objects: S3Object[], { baseUrl }: { baseUrl?: string } = {}): Promise<string[]>
|
|
90229
|
+
async getPresignedS3PublicUrls(s3Objects: S3Object[], { baseUrl, expirySecs }: { baseUrl?: string; expirySecs?: number } = {}): Promise<string[]>
|
|
90188
90230
|
|
|
90189
90231
|
/**
|
|
90190
90232
|
* Generate a presigned public URL for an S3 object. If the S3 object is not signed yet, it will be signed first.
|
|
90191
90233
|
* @param s3Object s3 object to sign
|
|
90234
|
+
* @param expirySecs how long the signature stays valid, in seconds (default 43200 = 12h, clamped to [60, 604800])
|
|
90192
90235
|
* @returns signed public URL
|
|
90193
90236
|
*/
|
|
90194
|
-
async getPresignedS3PublicUrl(s3Objects: S3Object, { baseUrl }: { baseUrl?: string } = {}): Promise<string>
|
|
90237
|
+
async getPresignedS3PublicUrl(s3Objects: S3Object, { baseUrl, expirySecs }: { baseUrl?: string; expirySecs?: number } = {}): Promise<string>
|
|
90195
90238
|
|
|
90196
90239
|
/**
|
|
90197
90240
|
* Get URLs needed for resuming a flow after this step
|
|
@@ -91884,19 +91927,23 @@ def delete_s3_object(s3object: S3Object | str, s3_resource_path: str | None = No
|
|
|
91884
91927
|
#
|
|
91885
91928
|
# Args:
|
|
91886
91929
|
# s3_objects: List of S3 objects to sign
|
|
91930
|
+
# expiry_secs: How long the signature stays valid, in seconds
|
|
91931
|
+
# (defaults to 43200 = 12h, clamped to [60, 604800])
|
|
91887
91932
|
#
|
|
91888
91933
|
# Returns:
|
|
91889
91934
|
# List of signed S3 objects
|
|
91890
|
-
def sign_s3_objects(s3_objects: list[S3Object | str]) -> list[S3Object]
|
|
91935
|
+
def sign_s3_objects(s3_objects: list[S3Object | str], expiry_secs: int | None = None) -> list[S3Object]
|
|
91891
91936
|
|
|
91892
91937
|
# Sign a single S3 object for use by anonymous users in public apps.
|
|
91893
91938
|
#
|
|
91894
91939
|
# Args:
|
|
91895
91940
|
# s3_object: S3 object to sign
|
|
91941
|
+
# expiry_secs: How long the signature stays valid, in seconds
|
|
91942
|
+
# (defaults to 43200 = 12h, clamped to [60, 604800])
|
|
91896
91943
|
#
|
|
91897
91944
|
# Returns:
|
|
91898
91945
|
# Signed S3 object
|
|
91899
|
-
def sign_s3_object(s3_object: S3Object | str) -> S3Object
|
|
91946
|
+
def sign_s3_object(s3_object: S3Object | str, expiry_secs: int | None = None) -> S3Object
|
|
91900
91947
|
|
|
91901
91948
|
# Generate presigned public URLs for an array of S3 objects.
|
|
91902
91949
|
# If an S3 object is not signed yet, it will be signed first.
|
|
@@ -91904,6 +91951,8 @@ def sign_s3_object(s3_object: S3Object | str) -> S3Object
|
|
|
91904
91951
|
# Args:
|
|
91905
91952
|
# s3_objects: List of S3 objects to sign
|
|
91906
91953
|
# base_url: Optional base URL for the presigned URLs (defaults to WM_BASE_URL)
|
|
91954
|
+
# expiry_secs: How long the signatures stay valid, in seconds
|
|
91955
|
+
# (defaults to 43200 = 12h, clamped to [60, 604800])
|
|
91907
91956
|
#
|
|
91908
91957
|
# Returns:
|
|
91909
91958
|
# List of signed public URLs
|
|
@@ -91911,7 +91960,7 @@ def sign_s3_object(s3_object: S3Object | str) -> S3Object
|
|
|
91911
91960
|
# Example:
|
|
91912
91961
|
# >>> s3_objs = [S3Object(s3="/path/to/file1.txt"), S3Object(s3="/path/to/file2.txt")]
|
|
91913
91962
|
# >>> urls = client.get_presigned_s3_public_urls(s3_objs)
|
|
91914
|
-
def get_presigned_s3_public_urls(s3_objects: list[S3Object | str], base_url: str | None = None) -> list[str]
|
|
91963
|
+
def get_presigned_s3_public_urls(s3_objects: list[S3Object | str], base_url: str | None = None, expiry_secs: int | None = None) -> list[str]
|
|
91915
91964
|
|
|
91916
91965
|
# Generate a presigned public URL for an S3 object.
|
|
91917
91966
|
# If the S3 object is not signed yet, it will be signed first.
|
|
@@ -91919,6 +91968,8 @@ def get_presigned_s3_public_urls(s3_objects: list[S3Object | str], base_url: str
|
|
|
91919
91968
|
# Args:
|
|
91920
91969
|
# s3_object: S3 object to sign
|
|
91921
91970
|
# base_url: Optional base URL for the presigned URL (defaults to WM_BASE_URL)
|
|
91971
|
+
# expiry_secs: How long the signature stays valid, in seconds
|
|
91972
|
+
# (defaults to 43200 = 12h, clamped to [60, 604800])
|
|
91922
91973
|
#
|
|
91923
91974
|
# Returns:
|
|
91924
91975
|
# Signed public URL
|
|
@@ -91926,7 +91977,7 @@ def get_presigned_s3_public_urls(s3_objects: list[S3Object | str], base_url: str
|
|
|
91926
91977
|
# Example:
|
|
91927
91978
|
# >>> s3_obj = S3Object(s3="/path/to/file.txt")
|
|
91928
91979
|
# >>> url = client.get_presigned_s3_public_url(s3_obj)
|
|
91929
|
-
def get_presigned_s3_public_url(s3_object: S3Object | str, base_url: str | None = None) -> str
|
|
91980
|
+
def get_presigned_s3_public_url(s3_object: S3Object | str, base_url: str | None = None, expiry_secs: int | None = None) -> str
|
|
91930
91981
|
|
|
91931
91982
|
# Get the current user information.
|
|
91932
91983
|
#
|