windmill-client 1.815.0 → 1.816.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/core/OpenAPI.mjs +1 -1
- package/dist/index.js +126 -20
- package/dist/services.gen.d.ts +58 -12
- package/dist/services.gen.mjs +125 -19
- package/dist/types.gen.d.ts +398 -35
- package/package.json +1 -1
package/dist/services.gen.mjs
CHANGED
|
@@ -357,20 +357,6 @@ var UserService = class {
|
|
|
357
357
|
});
|
|
358
358
|
}
|
|
359
359
|
/**
|
|
360
|
-
* consume a single-use login link from its confirmation page, set the session cookie and answer where to go
|
|
361
|
-
* @param data The data for the request.
|
|
362
|
-
* @param data.token
|
|
363
|
-
* @returns unknown the post-login destination, or /user/login_link_expired when the link is used, expired or unknown
|
|
364
|
-
* @throws ApiError
|
|
365
|
-
*/
|
|
366
|
-
static confirmLoginLink(data) {
|
|
367
|
-
return request(OpenAPI, {
|
|
368
|
-
method: "POST",
|
|
369
|
-
url: "/auth/login_link/{token}",
|
|
370
|
-
path: { token: data.token }
|
|
371
|
-
});
|
|
372
|
-
}
|
|
373
|
-
/**
|
|
374
360
|
* reset password using token
|
|
375
361
|
* @param data The data for the request.
|
|
376
362
|
* @param data.requestBody token and new password
|
|
@@ -2787,6 +2773,74 @@ var WorkspaceService = class {
|
|
|
2787
2773
|
});
|
|
2788
2774
|
}
|
|
2789
2775
|
/**
|
|
2776
|
+
* read the owner and grants of an instance data table's database, schema or table
|
|
2777
|
+
* @param data The data for the request.
|
|
2778
|
+
* @param data.workspace
|
|
2779
|
+
* @param data.datatableName
|
|
2780
|
+
* @param data.kind
|
|
2781
|
+
* @param data.schema
|
|
2782
|
+
* @param data.table
|
|
2783
|
+
* @returns DatatableAclInfo owner and grants
|
|
2784
|
+
* @throws ApiError
|
|
2785
|
+
*/
|
|
2786
|
+
static getDatatableAcl(data) {
|
|
2787
|
+
return request(OpenAPI, {
|
|
2788
|
+
method: "GET",
|
|
2789
|
+
url: "/w/{workspace}/workspaces/datatable_acl/{datatable_name}",
|
|
2790
|
+
path: {
|
|
2791
|
+
workspace: data.workspace,
|
|
2792
|
+
datatable_name: data.datatableName
|
|
2793
|
+
},
|
|
2794
|
+
query: {
|
|
2795
|
+
kind: data.kind,
|
|
2796
|
+
schema: data.schema,
|
|
2797
|
+
table: data.table
|
|
2798
|
+
}
|
|
2799
|
+
});
|
|
2800
|
+
}
|
|
2801
|
+
/**
|
|
2802
|
+
* preview the SQL an ownership or grant change would run (data table administrators only)
|
|
2803
|
+
* @param data The data for the request.
|
|
2804
|
+
* @param data.workspace
|
|
2805
|
+
* @param data.datatableName
|
|
2806
|
+
* @param data.requestBody
|
|
2807
|
+
* @returns AclPlan statements that would run, in a single transaction
|
|
2808
|
+
* @throws ApiError
|
|
2809
|
+
*/
|
|
2810
|
+
static planDatatableAcl(data) {
|
|
2811
|
+
return request(OpenAPI, {
|
|
2812
|
+
method: "POST",
|
|
2813
|
+
url: "/w/{workspace}/workspaces/datatable_acl/{datatable_name}/plan",
|
|
2814
|
+
path: {
|
|
2815
|
+
workspace: data.workspace,
|
|
2816
|
+
datatable_name: data.datatableName
|
|
2817
|
+
},
|
|
2818
|
+
body: data.requestBody,
|
|
2819
|
+
mediaType: "application/json"
|
|
2820
|
+
});
|
|
2821
|
+
}
|
|
2822
|
+
/**
|
|
2823
|
+
* run an ownership or grant change exactly as planned (data table administrators only)
|
|
2824
|
+
* @param data The data for the request.
|
|
2825
|
+
* @param data.workspace
|
|
2826
|
+
* @param data.datatableName
|
|
2827
|
+
* @param data.requestBody
|
|
2828
|
+
* @returns string change applied
|
|
2829
|
+
* @throws ApiError
|
|
2830
|
+
*/
|
|
2831
|
+
static applyDatatableAcl(data) {
|
|
2832
|
+
return request(OpenAPI, {
|
|
2833
|
+
method: "POST",
|
|
2834
|
+
url: "/w/{workspace}/workspaces/datatable_acl/{datatable_name}/apply",
|
|
2835
|
+
path: {
|
|
2836
|
+
workspace: data.workspace,
|
|
2837
|
+
datatable_name: data.datatableName
|
|
2838
|
+
},
|
|
2839
|
+
body: data.requestBody,
|
|
2840
|
+
mediaType: "application/json"
|
|
2841
|
+
});
|
|
2842
|
+
}
|
|
2843
|
+
/**
|
|
2790
2844
|
* list the data table roles the caller may connect as
|
|
2791
2845
|
* @param data The data for the request.
|
|
2792
2846
|
* @param data.workspace
|
|
@@ -2840,6 +2894,9 @@ var WorkspaceService = class {
|
|
|
2840
2894
|
* list tables of all connected Datatables
|
|
2841
2895
|
* @param data The data for the request.
|
|
2842
2896
|
* @param data.workspace
|
|
2897
|
+
* @param data.datatableName list only this data table; each listed data table opens a connection to its database
|
|
2898
|
+
* @param data.roleFor the data table `role` applies to; every other one is listed as its default role
|
|
2899
|
+
* @param data.role the role to list `role_for` as; refused, in that entry's `error`, if the caller may not use it
|
|
2843
2900
|
* @returns DataTableTables table metadata of all datatables
|
|
2844
2901
|
* @throws ApiError
|
|
2845
2902
|
*/
|
|
@@ -2847,7 +2904,12 @@ var WorkspaceService = class {
|
|
|
2847
2904
|
return request(OpenAPI, {
|
|
2848
2905
|
method: "GET",
|
|
2849
2906
|
url: "/w/{workspace}/workspaces/list_datatable_tables",
|
|
2850
|
-
path: { workspace: data.workspace }
|
|
2907
|
+
path: { workspace: data.workspace },
|
|
2908
|
+
query: {
|
|
2909
|
+
datatable_name: data.datatableName,
|
|
2910
|
+
role_for: data.roleFor,
|
|
2911
|
+
role: data.role
|
|
2912
|
+
}
|
|
2851
2913
|
});
|
|
2852
2914
|
}
|
|
2853
2915
|
/**
|
|
@@ -2857,6 +2919,7 @@ var WorkspaceService = class {
|
|
|
2857
2919
|
* @param data.datatableName
|
|
2858
2920
|
* @param data.schemaName
|
|
2859
2921
|
* @param data.tableName
|
|
2922
|
+
* @param data.role the data table role to read the table as; defaults to the data table's default role
|
|
2860
2923
|
* @returns DataTableTableSchema schema of one datatable table
|
|
2861
2924
|
* @throws ApiError
|
|
2862
2925
|
*/
|
|
@@ -2868,7 +2931,8 @@ var WorkspaceService = class {
|
|
|
2868
2931
|
query: {
|
|
2869
2932
|
datatable_name: data.datatableName,
|
|
2870
2933
|
schema_name: data.schemaName,
|
|
2871
|
-
table_name: data.tableName
|
|
2934
|
+
table_name: data.tableName,
|
|
2935
|
+
role: data.role
|
|
2872
2936
|
}
|
|
2873
2937
|
});
|
|
2874
2938
|
}
|
|
@@ -6029,6 +6093,8 @@ var FlowService = class {
|
|
|
6029
6093
|
* @param data The data for the request.
|
|
6030
6094
|
* @param data.workspace
|
|
6031
6095
|
* @param data.path
|
|
6096
|
+
* @param data.page which page to return (start at 1, default 1)
|
|
6097
|
+
* @param data.perPage number of items to return for a given page (default 30, max 100)
|
|
6032
6098
|
* @returns FlowVersion Flow history
|
|
6033
6099
|
* @throws ApiError
|
|
6034
6100
|
*/
|
|
@@ -6039,6 +6105,10 @@ var FlowService = class {
|
|
|
6039
6105
|
path: {
|
|
6040
6106
|
workspace: data.workspace,
|
|
6041
6107
|
path: data.path
|
|
6108
|
+
},
|
|
6109
|
+
query: {
|
|
6110
|
+
page: data.page,
|
|
6111
|
+
per_page: data.perPage
|
|
6042
6112
|
}
|
|
6043
6113
|
});
|
|
6044
6114
|
}
|
|
@@ -6638,6 +6708,8 @@ var AppService = class {
|
|
|
6638
6708
|
* @param data The data for the request.
|
|
6639
6709
|
* @param data.workspace
|
|
6640
6710
|
* @param data.path
|
|
6711
|
+
* @param data.page which page to return (start at 1, default 1)
|
|
6712
|
+
* @param data.perPage number of items to return for a given page (default 30, max 100)
|
|
6641
6713
|
* @returns AppHistory app history
|
|
6642
6714
|
* @throws ApiError
|
|
6643
6715
|
*/
|
|
@@ -6648,6 +6720,10 @@ var AppService = class {
|
|
|
6648
6720
|
path: {
|
|
6649
6721
|
workspace: data.workspace,
|
|
6650
6722
|
path: data.path
|
|
6723
|
+
},
|
|
6724
|
+
query: {
|
|
6725
|
+
page: data.page,
|
|
6726
|
+
per_page: data.perPage
|
|
6651
6727
|
}
|
|
6652
6728
|
});
|
|
6653
6729
|
}
|
|
@@ -6866,7 +6942,7 @@ var AppService = class {
|
|
|
6866
6942
|
* @param data.workspace
|
|
6867
6943
|
* @param data.path
|
|
6868
6944
|
* @param data.requestBody update app
|
|
6869
|
-
* @returns
|
|
6945
|
+
* @returns AppDeployed app updated
|
|
6870
6946
|
* @throws ApiError
|
|
6871
6947
|
*/
|
|
6872
6948
|
static updateApp(data) {
|
|
@@ -6904,7 +6980,7 @@ var AppService = class {
|
|
|
6904
6980
|
* @param data.workspace
|
|
6905
6981
|
* @param data.path
|
|
6906
6982
|
* @param data.requestBody raw app sources to bundle and deploy
|
|
6907
|
-
* @returns
|
|
6983
|
+
* @returns AppDeployed app updated
|
|
6908
6984
|
* @throws ApiError
|
|
6909
6985
|
*/
|
|
6910
6986
|
static updateAppRawSource(data) {
|
|
@@ -6925,7 +7001,7 @@ var AppService = class {
|
|
|
6925
7001
|
* @param data.workspace
|
|
6926
7002
|
* @param data.path
|
|
6927
7003
|
* @param data.formData update app
|
|
6928
|
-
* @returns
|
|
7004
|
+
* @returns AppDeployed app updated
|
|
6929
7005
|
* @throws ApiError
|
|
6930
7006
|
*/
|
|
6931
7007
|
static updateAppRaw(data) {
|
|
@@ -7685,6 +7761,8 @@ var ScriptService = class {
|
|
|
7685
7761
|
* @param data The data for the request.
|
|
7686
7762
|
* @param data.workspace
|
|
7687
7763
|
* @param data.path
|
|
7764
|
+
* @param data.page which page to return (start at 1, default 1)
|
|
7765
|
+
* @param data.perPage number of items to return for a given page (default 30, max 100)
|
|
7688
7766
|
* @returns ScriptHistory script history
|
|
7689
7767
|
* @throws ApiError
|
|
7690
7768
|
*/
|
|
@@ -7695,6 +7773,10 @@ var ScriptService = class {
|
|
|
7695
7773
|
path: {
|
|
7696
7774
|
workspace: data.workspace,
|
|
7697
7775
|
path: data.path
|
|
7776
|
+
},
|
|
7777
|
+
query: {
|
|
7778
|
+
page: data.page,
|
|
7779
|
+
per_page: data.perPage
|
|
7698
7780
|
}
|
|
7699
7781
|
});
|
|
7700
7782
|
}
|
|
@@ -8131,6 +8213,30 @@ var DraftService = class {
|
|
|
8131
8213
|
});
|
|
8132
8214
|
}
|
|
8133
8215
|
/**
|
|
8216
|
+
* move the current user's draft-only item to another path
|
|
8217
|
+
* Relocates the authed user's own draft row, along with both path keys inside its value (the typed path and the mirror the editors keep beside it). Only for draft-only items — a deployed item must be moved through its own deploy endpoint, which carries every draft with it. Restricted to script, flow, app and raw_app; any other kind is rejected with 400, because only these keep their deploy target where this endpoint rewrites it.
|
|
8218
|
+
* @param data The data for the request.
|
|
8219
|
+
* @param data.workspace
|
|
8220
|
+
* @param data.kind script, flow, app or raw_app only.
|
|
8221
|
+
* @param data.path
|
|
8222
|
+
* @param data.requestBody
|
|
8223
|
+
* @returns string move result
|
|
8224
|
+
* @throws ApiError
|
|
8225
|
+
*/
|
|
8226
|
+
static moveDraft(data) {
|
|
8227
|
+
return request(OpenAPI, {
|
|
8228
|
+
method: "POST",
|
|
8229
|
+
url: "/w/{workspace}/drafts/move/{kind}/{path}",
|
|
8230
|
+
path: {
|
|
8231
|
+
workspace: data.workspace,
|
|
8232
|
+
kind: data.kind,
|
|
8233
|
+
path: data.path
|
|
8234
|
+
},
|
|
8235
|
+
body: data.requestBody,
|
|
8236
|
+
mediaType: "application/json"
|
|
8237
|
+
});
|
|
8238
|
+
}
|
|
8239
|
+
/**
|
|
8134
8240
|
* resolve a legacy (workspace-level) draft (admin only)
|
|
8135
8241
|
* Delete a legacy draft (email NULL) or assign it to the authed admin as a per-user draft. Workspace admins / superadmins only.
|
|
8136
8242
|
* @param data The data for the request.
|