windmill-client 1.777.1 → 1.779.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/dist/client.mjs +5 -2
- package/dist/core/OpenAPI.mjs +2 -2
- package/dist/index.js +122 -7
- package/dist/services.gen.d.ts +59 -1
- package/dist/services.gen.mjs +115 -3
- package/dist/types.gen.d.ts +458 -4
- package/package.json +1 -1
package/dist/services.gen.mjs
CHANGED
|
@@ -878,6 +878,26 @@ var UserService = class {
|
|
|
878
878
|
});
|
|
879
879
|
}
|
|
880
880
|
/**
|
|
881
|
+
* list instance users that can still be added to this workspace (require to be super admin)
|
|
882
|
+
* @param data The data for the request.
|
|
883
|
+
* @param data.workspace
|
|
884
|
+
* @param data.search filter users whose email or username contains this string
|
|
885
|
+
* @param data.perPage number of users to return (default 10, max 100)
|
|
886
|
+
* @returns unknown addable instance users
|
|
887
|
+
* @throws ApiError
|
|
888
|
+
*/
|
|
889
|
+
static listAddableInstanceUsers(data) {
|
|
890
|
+
return request(OpenAPI, {
|
|
891
|
+
method: "GET",
|
|
892
|
+
url: "/w/{workspace}/users/list_addable",
|
|
893
|
+
path: { workspace: data.workspace },
|
|
894
|
+
query: {
|
|
895
|
+
search: data.search,
|
|
896
|
+
per_page: data.perPage
|
|
897
|
+
}
|
|
898
|
+
});
|
|
899
|
+
}
|
|
900
|
+
/**
|
|
881
901
|
* list users usage
|
|
882
902
|
* @param data The data for the request.
|
|
883
903
|
* @param data.workspace
|
|
@@ -5735,6 +5755,8 @@ var AppService = class {
|
|
|
5735
5755
|
* get app embed token by custom path
|
|
5736
5756
|
* @param data The data for the request.
|
|
5737
5757
|
* @param data.customPath
|
|
5758
|
+
* @param data.sdkConsent Raw apps: the viewer confirmed the frontend-SDK permissions consent banner, so the viewer-scoped SDK token may actually be minted. Without it the response only advertises the declared sdk_scopes.
|
|
5759
|
+
*
|
|
5738
5760
|
* @returns EmbedTokenResponse embed token
|
|
5739
5761
|
* @throws ApiError
|
|
5740
5762
|
*/
|
|
@@ -5742,7 +5764,8 @@ var AppService = class {
|
|
|
5742
5764
|
return request(OpenAPI, {
|
|
5743
5765
|
method: "GET",
|
|
5744
5766
|
url: "/apps_u/embed_token_by_custom_path/{custom_path}",
|
|
5745
|
-
path: { custom_path: data.customPath }
|
|
5767
|
+
path: { custom_path: data.customPath },
|
|
5768
|
+
query: { sdk_consent: data.sdkConsent }
|
|
5746
5769
|
});
|
|
5747
5770
|
}
|
|
5748
5771
|
/**
|
|
@@ -5901,10 +5924,29 @@ var AppService = class {
|
|
|
5901
5924
|
});
|
|
5902
5925
|
}
|
|
5903
5926
|
/**
|
|
5927
|
+
* mint a frontend SDK token for the raw app editor's preview
|
|
5928
|
+
* @param data The data for the request.
|
|
5929
|
+
* @param data.workspace
|
|
5930
|
+
* @param data.requestBody
|
|
5931
|
+
* @returns string the token
|
|
5932
|
+
* @throws ApiError
|
|
5933
|
+
*/
|
|
5934
|
+
static mintPreviewSdkToken(data) {
|
|
5935
|
+
return request(OpenAPI, {
|
|
5936
|
+
method: "POST",
|
|
5937
|
+
url: "/w/{workspace}/apps/preview_sdk_token",
|
|
5938
|
+
path: { workspace: data.workspace },
|
|
5939
|
+
body: data.requestBody,
|
|
5940
|
+
mediaType: "application/json"
|
|
5941
|
+
});
|
|
5942
|
+
}
|
|
5943
|
+
/**
|
|
5904
5944
|
* get app embed token by path
|
|
5905
5945
|
* @param data The data for the request.
|
|
5906
5946
|
* @param data.workspace
|
|
5907
5947
|
* @param data.path
|
|
5948
|
+
* @param data.sdkConsent Raw apps: the viewer confirmed the frontend-SDK permissions consent banner, so the viewer-scoped SDK token may actually be minted. Without it the response only advertises the declared sdk_scopes.
|
|
5949
|
+
*
|
|
5908
5950
|
* @returns EmbedTokenResponse embed token
|
|
5909
5951
|
* @throws ApiError
|
|
5910
5952
|
*/
|
|
@@ -5915,7 +5957,8 @@ var AppService = class {
|
|
|
5915
5957
|
path: {
|
|
5916
5958
|
workspace: data.workspace,
|
|
5917
5959
|
path: data.path
|
|
5918
|
-
}
|
|
5960
|
+
},
|
|
5961
|
+
query: { sdk_consent: data.sdkConsent }
|
|
5919
5962
|
});
|
|
5920
5963
|
}
|
|
5921
5964
|
/**
|
|
@@ -6038,6 +6081,8 @@ var AppService = class {
|
|
|
6038
6081
|
* @param data The data for the request.
|
|
6039
6082
|
* @param data.workspace
|
|
6040
6083
|
* @param data.secret
|
|
6084
|
+
* @param data.sdkConsent Raw apps: the viewer confirmed the frontend-SDK permissions consent banner, so the viewer-scoped SDK token may actually be minted. Without it the response only advertises the declared sdk_scopes.
|
|
6085
|
+
*
|
|
6041
6086
|
* @returns EmbedTokenResponse embed token
|
|
6042
6087
|
* @throws ApiError
|
|
6043
6088
|
*/
|
|
@@ -6048,7 +6093,8 @@ var AppService = class {
|
|
|
6048
6093
|
path: {
|
|
6049
6094
|
workspace: data.workspace,
|
|
6050
6095
|
secret: data.secret
|
|
6051
|
-
}
|
|
6096
|
+
},
|
|
6097
|
+
query: { sdk_consent: data.sdkConsent }
|
|
6052
6098
|
});
|
|
6053
6099
|
}
|
|
6054
6100
|
/**
|
|
@@ -6163,6 +6209,44 @@ var AppService = class {
|
|
|
6163
6209
|
});
|
|
6164
6210
|
}
|
|
6165
6211
|
/**
|
|
6212
|
+
* create a raw app from its sources, compiling them on a worker (which runs the app's own dependencies to do so)
|
|
6213
|
+
* @param data The data for the request.
|
|
6214
|
+
* @param data.workspace
|
|
6215
|
+
* @param data.requestBody raw app sources to bundle and deploy
|
|
6216
|
+
* @returns string app created
|
|
6217
|
+
* @throws ApiError
|
|
6218
|
+
*/
|
|
6219
|
+
static createAppRawSource(data) {
|
|
6220
|
+
return request(OpenAPI, {
|
|
6221
|
+
method: "POST",
|
|
6222
|
+
url: "/w/{workspace}/apps/create_raw_source",
|
|
6223
|
+
path: { workspace: data.workspace },
|
|
6224
|
+
body: data.requestBody,
|
|
6225
|
+
mediaType: "application/json"
|
|
6226
|
+
});
|
|
6227
|
+
}
|
|
6228
|
+
/**
|
|
6229
|
+
* update a raw app from its sources, compiling them on a worker (which runs the app's own dependencies to do so)
|
|
6230
|
+
* @param data The data for the request.
|
|
6231
|
+
* @param data.workspace
|
|
6232
|
+
* @param data.path
|
|
6233
|
+
* @param data.requestBody raw app sources to bundle and deploy
|
|
6234
|
+
* @returns string app updated
|
|
6235
|
+
* @throws ApiError
|
|
6236
|
+
*/
|
|
6237
|
+
static updateAppRawSource(data) {
|
|
6238
|
+
return request(OpenAPI, {
|
|
6239
|
+
method: "POST",
|
|
6240
|
+
url: "/w/{workspace}/apps/update_raw_source/{path}",
|
|
6241
|
+
path: {
|
|
6242
|
+
workspace: data.workspace,
|
|
6243
|
+
path: data.path
|
|
6244
|
+
},
|
|
6245
|
+
body: data.requestBody,
|
|
6246
|
+
mediaType: "application/json"
|
|
6247
|
+
});
|
|
6248
|
+
}
|
|
6249
|
+
/**
|
|
6166
6250
|
* update app
|
|
6167
6251
|
* @param data The data for the request.
|
|
6168
6252
|
* @param data.workspace
|
|
@@ -14768,6 +14852,7 @@ var HelpersService = class {
|
|
|
14768
14852
|
* @param data.maxKeys
|
|
14769
14853
|
* @param data.marker
|
|
14770
14854
|
* @param data.prefix
|
|
14855
|
+
* @param data.search Match keys by path prefix, case-sensitively, on the raw key rather than per path segment (so "a/file1" matches "a/file1000"). Pushed down to the storage provider as a seek; resume with the returned next_marker.
|
|
14771
14856
|
* @param data.storage
|
|
14772
14857
|
* @param data.s3ResourcePath When set, list the files of this object storage resource instead of the workspace storage
|
|
14773
14858
|
* @returns unknown List of file keys
|
|
@@ -14782,6 +14867,33 @@ var HelpersService = class {
|
|
|
14782
14867
|
max_keys: data.maxKeys,
|
|
14783
14868
|
marker: data.marker,
|
|
14784
14869
|
prefix: data.prefix,
|
|
14870
|
+
search: data.search,
|
|
14871
|
+
storage: data.storage,
|
|
14872
|
+
s3_resource_path: data.s3ResourcePath
|
|
14873
|
+
}
|
|
14874
|
+
});
|
|
14875
|
+
}
|
|
14876
|
+
/**
|
|
14877
|
+
* List one page of a single folder level in a workspace object storage
|
|
14878
|
+
* @param data The data for the request.
|
|
14879
|
+
* @param data.workspace
|
|
14880
|
+
* @param data.prefix Folder to list; empty for the bucket root, otherwise must end with '/'
|
|
14881
|
+
* @param data.maxKeys Maximum number of folders and files combined
|
|
14882
|
+
* @param data.pageToken Opaque token from a previous response, to continue listing the same folder
|
|
14883
|
+
* @param data.storage
|
|
14884
|
+
* @param data.s3ResourcePath When set, list the files of this object storage resource instead of the workspace storage
|
|
14885
|
+
* @returns unknown One page of folders and files at this level
|
|
14886
|
+
* @throws ApiError
|
|
14887
|
+
*/
|
|
14888
|
+
static listStoredFilesPaged(data) {
|
|
14889
|
+
return request(OpenAPI, {
|
|
14890
|
+
method: "GET",
|
|
14891
|
+
url: "/w/{workspace}/job_helpers/list_stored_files_paged",
|
|
14892
|
+
path: { workspace: data.workspace },
|
|
14893
|
+
query: {
|
|
14894
|
+
prefix: data.prefix,
|
|
14895
|
+
max_keys: data.maxKeys,
|
|
14896
|
+
page_token: data.pageToken,
|
|
14785
14897
|
storage: data.storage,
|
|
14786
14898
|
s3_resource_path: data.s3ResourcePath
|
|
14787
14899
|
}
|