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/types.gen.d.ts
CHANGED
|
@@ -189,6 +189,14 @@ export type DbtAssetProvenance = {
|
|
|
189
189
|
export type UserDraftOverlay = {
|
|
190
190
|
is_draft: boolean;
|
|
191
191
|
draft_saved_at?: string;
|
|
192
|
+
/**
|
|
193
|
+
* The deployed version the draft forked from, as text whatever the
|
|
194
|
+
* kind (script hash, flow version id, app version id). Compare to the
|
|
195
|
+
* deployed head to tell a draft that is behind. Absent when there is
|
|
196
|
+
* no draft or it was never forked from a deploy.
|
|
197
|
+
*
|
|
198
|
+
*/
|
|
199
|
+
draft_base?: string;
|
|
192
200
|
no_deployed?: boolean;
|
|
193
201
|
draft?: {
|
|
194
202
|
[key: string]: unknown;
|
|
@@ -1964,6 +1972,12 @@ export type AIConfig = {
|
|
|
1964
1972
|
model_pricing?: {
|
|
1965
1973
|
[key: string]: ModelPriceOverride;
|
|
1966
1974
|
};
|
|
1975
|
+
/**
|
|
1976
|
+
* Context window in tokens per `provider:model`, overriding the built-in table the AI chat uses to decide when to compact its history.
|
|
1977
|
+
*/
|
|
1978
|
+
context_window_per_model?: {
|
|
1979
|
+
[key: string]: (number);
|
|
1980
|
+
};
|
|
1967
1981
|
/**
|
|
1968
1982
|
* Hides the Windmill AI assistant (chat, sessions, code generation, completion, fixes) from the workspace UI. Read from the workspace's own settings even when the providers served fall back to the instance config. AI agent steps and the AI sandbox in flows are unaffected.
|
|
1969
1983
|
*/
|
|
@@ -2350,6 +2364,8 @@ export type NewScript = {
|
|
|
2350
2364
|
export type ScriptHistory = {
|
|
2351
2365
|
script_hash: string;
|
|
2352
2366
|
deployment_msg?: string;
|
|
2367
|
+
created_at?: string;
|
|
2368
|
+
created_by?: string;
|
|
2353
2369
|
};
|
|
2354
2370
|
/**
|
|
2355
2371
|
* The arguments to pass to the script or flow
|
|
@@ -4846,6 +4862,7 @@ export type CustomInstanceDbLogs = {
|
|
|
4846
4862
|
grant_permissions?: LoggedWizardStatus;
|
|
4847
4863
|
replication_user?: LoggedWizardStatus;
|
|
4848
4864
|
replication_user_error?: string;
|
|
4865
|
+
user_connect?: LoggedWizardStatus;
|
|
4849
4866
|
};
|
|
4850
4867
|
export type CustomInstanceDbTag = 'ducklake' | 'datatable';
|
|
4851
4868
|
export type InstanceDatatableRole = {
|
|
@@ -4867,6 +4884,13 @@ export type DatatablePermissions = {
|
|
|
4867
4884
|
default_role: string;
|
|
4868
4885
|
roles: Array<DatatableRoleTenants>;
|
|
4869
4886
|
governing_workspace_id?: string;
|
|
4887
|
+
/**
|
|
4888
|
+
* for a clone, the data table whose roles it takes
|
|
4889
|
+
*/
|
|
4890
|
+
clone_of?: {
|
|
4891
|
+
workspace_id: string;
|
|
4892
|
+
datatable: string;
|
|
4893
|
+
};
|
|
4870
4894
|
editable: boolean;
|
|
4871
4895
|
available_roles: Array<InstanceDatatableRole>;
|
|
4872
4896
|
ungoverned_reachers?: Array<{
|
|
@@ -4874,6 +4898,134 @@ export type DatatablePermissions = {
|
|
|
4874
4898
|
datatable: string;
|
|
4875
4899
|
}>;
|
|
4876
4900
|
};
|
|
4901
|
+
/**
|
|
4902
|
+
* what access is read or changed on
|
|
4903
|
+
*/
|
|
4904
|
+
export type AclTarget = AclTargetDatabase | AclTargetSchema | AclTargetTable;
|
|
4905
|
+
export type AclTargetDatabase = {
|
|
4906
|
+
kind: 'database';
|
|
4907
|
+
};
|
|
4908
|
+
export type AclTargetSchema = {
|
|
4909
|
+
kind: 'schema';
|
|
4910
|
+
schema: string;
|
|
4911
|
+
};
|
|
4912
|
+
export type AclTargetTable = {
|
|
4913
|
+
kind: 'table';
|
|
4914
|
+
schema: string;
|
|
4915
|
+
table: string;
|
|
4916
|
+
};
|
|
4917
|
+
/**
|
|
4918
|
+
* one change to plan or apply
|
|
4919
|
+
*/
|
|
4920
|
+
export type AclChange = AclChangeSetOwner | AclChangeGrant | AclChangeRevoke;
|
|
4921
|
+
/**
|
|
4922
|
+
* hands the target to role — for a schema, with everything already in it but an extension's members, which stay with the extension
|
|
4923
|
+
*/
|
|
4924
|
+
export type AclChangeSetOwner = {
|
|
4925
|
+
type: 'set_owner';
|
|
4926
|
+
/**
|
|
4927
|
+
* a data table role of the instance, or admin
|
|
4928
|
+
*/
|
|
4929
|
+
role: string;
|
|
4930
|
+
};
|
|
4931
|
+
export type AclChangeGrant = {
|
|
4932
|
+
type: 'grant';
|
|
4933
|
+
/**
|
|
4934
|
+
* a data table role of the instance, or admin
|
|
4935
|
+
*/
|
|
4936
|
+
role: string;
|
|
4937
|
+
privileges: Array<(string)>;
|
|
4938
|
+
scope: AclGrantScope;
|
|
4939
|
+
};
|
|
4940
|
+
export type AclChangeRevoke = {
|
|
4941
|
+
type: 'revoke';
|
|
4942
|
+
/**
|
|
4943
|
+
* a data table role of the instance, other than admin
|
|
4944
|
+
*/
|
|
4945
|
+
role: string;
|
|
4946
|
+
privileges: Array<(string)>;
|
|
4947
|
+
scope: AclGrantScope;
|
|
4948
|
+
/**
|
|
4949
|
+
* objects inside the target the revoke covers, empty for the target itself. Only with the target scope; a revoke on all objects of a kind is refused, since it cannot say which grants it takes back.
|
|
4950
|
+
*/
|
|
4951
|
+
objects?: Array<AclObject>;
|
|
4952
|
+
};
|
|
4953
|
+
export type AclGrantScope = 'target' | 'all_tables' | 'all_sequences' | 'all_functions' | 'future_tables' | 'future_sequences' | 'future_functions';
|
|
4954
|
+
export type AclChangeRequest = {
|
|
4955
|
+
target: AclTarget;
|
|
4956
|
+
change: AclChange;
|
|
4957
|
+
/**
|
|
4958
|
+
* The statements the plan showed. Required to apply, which plans again and refuses if the result differs.
|
|
4959
|
+
*/
|
|
4960
|
+
statements?: Array<(string)>;
|
|
4961
|
+
};
|
|
4962
|
+
export type AclPlan = {
|
|
4963
|
+
statements: Array<(string)>;
|
|
4964
|
+
warnings: Array<(string)>;
|
|
4965
|
+
};
|
|
4966
|
+
export type AclObject = {
|
|
4967
|
+
name: string;
|
|
4968
|
+
/**
|
|
4969
|
+
* TABLE, SEQUENCE, FUNCTION, PROCEDURE or TYPE — what the object is. A revoke turns it into the keyword it takes, ROUTINE for both routine kinds; a type's grants are read only.
|
|
4970
|
+
*/
|
|
4971
|
+
kind: string;
|
|
4972
|
+
/**
|
|
4973
|
+
* identity arguments of a routine, which is what tells two of the same name apart
|
|
4974
|
+
*/
|
|
4975
|
+
args?: string;
|
|
4976
|
+
};
|
|
4977
|
+
export type AclGrant = {
|
|
4978
|
+
grantee: string;
|
|
4979
|
+
privileges: Array<(string)>;
|
|
4980
|
+
object?: AclObject;
|
|
4981
|
+
/**
|
|
4982
|
+
* set for a default privilege, naming the kind of object it covers (TABLES, SEQUENCES, FUNCTIONS, TYPES, or SCHEMAS). On a schema, the defaults set in that schema; on the database, the ones set database-wide, which apply in every schema and which no schema's own defaults take back.
|
|
4983
|
+
*/
|
|
4984
|
+
future?: string;
|
|
4985
|
+
/**
|
|
4986
|
+
* the roles the grant comes from, each once — who granted it, or for a default privilege the role whose future objects it covers. A revoke of some of the grant's privileges takes them back from every source that gave them.
|
|
4987
|
+
*/
|
|
4988
|
+
sources: Array<AclSource>;
|
|
4989
|
+
};
|
|
4990
|
+
export type AclSource = {
|
|
4991
|
+
role: string;
|
|
4992
|
+
/**
|
|
4993
|
+
* what role gave of the grant's privileges. A revoke is held back only by a source out of reach that gave some of what it takes back.
|
|
4994
|
+
*/
|
|
4995
|
+
privileges: Array<(string)>;
|
|
4996
|
+
/**
|
|
4997
|
+
* whether the data table's connection can take back what role gave. On an object that is the owner, when the connection acts for the owner, and otherwise the connection itself; for a default privilege, a creating role the connection acts for. What a source out of reach gave is not revocable from here; privileges only other sources gave still are.
|
|
4998
|
+
*/
|
|
4999
|
+
reachable: boolean;
|
|
5000
|
+
};
|
|
5001
|
+
export type DatatableAclInfo = {
|
|
5002
|
+
owner: string;
|
|
5003
|
+
/**
|
|
5004
|
+
* the roles a change may name; empty unless the caller may change anything
|
|
5005
|
+
*/
|
|
5006
|
+
roles: Array<(string)>;
|
|
5007
|
+
/**
|
|
5008
|
+
* whether the caller may plan and apply changes
|
|
5009
|
+
*/
|
|
5010
|
+
editable: boolean;
|
|
5011
|
+
/**
|
|
5012
|
+
* whether this is a clone, whose grants stay as they were copied
|
|
5013
|
+
*/
|
|
5014
|
+
clone: boolean;
|
|
5015
|
+
/**
|
|
5016
|
+
* whether the server is Postgres 17+, which added the MAINTAIN table privilege
|
|
5017
|
+
*/
|
|
5018
|
+
supports_maintain: boolean;
|
|
5019
|
+
/**
|
|
5020
|
+
* the database the target lives in
|
|
5021
|
+
*/
|
|
5022
|
+
dbname: string;
|
|
5023
|
+
grants: Array<AclGrant>;
|
|
5024
|
+
/**
|
|
5025
|
+
* a database's schemas, or a schema's tables
|
|
5026
|
+
*/
|
|
5027
|
+
children: Array<(string)>;
|
|
5028
|
+
};
|
|
4877
5029
|
export type CustomInstanceDb = {
|
|
4878
5030
|
logs: CustomInstanceDbLogs;
|
|
4879
5031
|
/**
|
|
@@ -5672,6 +5824,10 @@ export type CreateWorkspaceFork = {
|
|
|
5672
5824
|
* New database name for the fork
|
|
5673
5825
|
*/
|
|
5674
5826
|
new_dbname: string;
|
|
5827
|
+
/**
|
|
5828
|
+
* What the fork request copies into `new_dbname`, which it creates — with the owners and grants of a data table under roles. This server refuses an entry without it; servers predating it expect `new_dbname` created and filled beforehand.
|
|
5829
|
+
*/
|
|
5830
|
+
fork_behavior?: 'schema_only' | 'schema_and_data';
|
|
5675
5831
|
}>;
|
|
5676
5832
|
/**
|
|
5677
5833
|
* Lake names the fork SHARES with the parent (reads and writes the parent's lake directly). Every lake not listed gets the default isolated fork namespace with read-defer to the parent.
|
|
@@ -5997,9 +6153,21 @@ export type AppWithLastVersion = {
|
|
|
5997
6153
|
bundle_secret?: string;
|
|
5998
6154
|
labels?: Array<(string)>;
|
|
5999
6155
|
};
|
|
6156
|
+
/**
|
|
6157
|
+
* What a deploy of an existing app answers with. `version` is the one this call wrote, which is what an editor pins as the fork base of the draft it starts next: reading the head back afterwards cannot tell it from a deploy that landed beside it. A metadata-only update writes none and reports the head it kept.
|
|
6158
|
+
*/
|
|
6159
|
+
export type AppDeployed = {
|
|
6160
|
+
/**
|
|
6161
|
+
* Where the app now lives, which differs from the request path on a rename.
|
|
6162
|
+
*/
|
|
6163
|
+
path: string;
|
|
6164
|
+
version: number;
|
|
6165
|
+
};
|
|
6000
6166
|
export type AppHistory = {
|
|
6001
6167
|
version: number;
|
|
6002
6168
|
deployment_msg?: string;
|
|
6169
|
+
created_at?: string;
|
|
6170
|
+
created_by?: string;
|
|
6003
6171
|
};
|
|
6004
6172
|
export type EmbedTokenResponse = {
|
|
6005
6173
|
/**
|
|
@@ -6043,6 +6211,7 @@ export type FlowVersion = {
|
|
|
6043
6211
|
id: number;
|
|
6044
6212
|
created_at: string;
|
|
6045
6213
|
deployment_msg?: string;
|
|
6214
|
+
created_by?: string;
|
|
6046
6215
|
};
|
|
6047
6216
|
export type SlackToken = {
|
|
6048
6217
|
access_token: string;
|
|
@@ -6157,6 +6326,13 @@ export type DataTableSettings = {
|
|
|
6157
6326
|
workspace_id: string;
|
|
6158
6327
|
datatable: string;
|
|
6159
6328
|
};
|
|
6329
|
+
/**
|
|
6330
|
+
* On a clone, the data table it was copied from, whose roles it takes. Server-owned like `reference`.
|
|
6331
|
+
*/
|
|
6332
|
+
governed_by?: {
|
|
6333
|
+
workspace_id: string;
|
|
6334
|
+
datatable: string;
|
|
6335
|
+
};
|
|
6160
6336
|
/**
|
|
6161
6337
|
* Whether the SQL migrations feature is opted in for this data table
|
|
6162
6338
|
*/
|
|
@@ -6212,6 +6388,24 @@ export type DataTableTables = {
|
|
|
6212
6388
|
[key: string]: Array<(string)>;
|
|
6213
6389
|
};
|
|
6214
6390
|
error?: string;
|
|
6391
|
+
/**
|
|
6392
|
+
* on the instance database, the only kind that can be under roles or have its access edited
|
|
6393
|
+
*/
|
|
6394
|
+
instance: boolean;
|
|
6395
|
+
permissioned: boolean;
|
|
6396
|
+
/**
|
|
6397
|
+
* the roles the caller may connect as, by name; empty when not under roles
|
|
6398
|
+
*/
|
|
6399
|
+
usable_roles: Array<(string)>;
|
|
6400
|
+
default_role: string;
|
|
6401
|
+
/**
|
|
6402
|
+
* whether the role the listing connected as may create schemas
|
|
6403
|
+
*/
|
|
6404
|
+
can_create_schema: boolean;
|
|
6405
|
+
/**
|
|
6406
|
+
* the schemas the role the listing connected as may create in
|
|
6407
|
+
*/
|
|
6408
|
+
creatable_schemas: Array<(string)>;
|
|
6215
6409
|
};
|
|
6216
6410
|
export type DataTableTableSchema = {
|
|
6217
6411
|
datatable_name: string;
|
|
@@ -7740,12 +7934,6 @@ export type ConsumeLoginLinkData = {
|
|
|
7740
7934
|
rd?: string;
|
|
7741
7935
|
token: string;
|
|
7742
7936
|
};
|
|
7743
|
-
export type ConfirmLoginLinkData = {
|
|
7744
|
-
token: string;
|
|
7745
|
-
};
|
|
7746
|
-
export type ConfirmLoginLinkResponse = {
|
|
7747
|
-
location: string;
|
|
7748
|
-
};
|
|
7749
7937
|
export type ResetPasswordData = {
|
|
7750
7938
|
/**
|
|
7751
7939
|
* token and new password
|
|
@@ -8076,7 +8264,7 @@ export type CreateLoginLinkData = {
|
|
|
8076
8264
|
requestBody: {
|
|
8077
8265
|
email: string;
|
|
8078
8266
|
/**
|
|
8079
|
-
* link lifetime in seconds, at most
|
|
8267
|
+
* link lifetime in seconds, at most 900 (default 600)
|
|
8080
8268
|
*/
|
|
8081
8269
|
expires_in_s?: number;
|
|
8082
8270
|
/**
|
|
@@ -8087,10 +8275,6 @@ export type CreateLoginLinkData = {
|
|
|
8087
8275
|
* mint only while the account still has this login type (for example pending_oauth), so a link stops working once the owner has set a password or signed in with a provider
|
|
8088
8276
|
*/
|
|
8089
8277
|
require_login_type?: string;
|
|
8090
|
-
/**
|
|
8091
|
-
* return a /user/login_link page that signs in only when its button is clicked, instead of a link spent by opening it; set it for links sent by email, which mail scanners open on delivery (default false)
|
|
8092
|
-
*/
|
|
8093
|
-
confirm?: boolean;
|
|
8094
8278
|
};
|
|
8095
8279
|
};
|
|
8096
8280
|
export type CreateLoginLinkResponse = {
|
|
@@ -9005,6 +9189,26 @@ export type SetDatatablePermissionsData = {
|
|
|
9005
9189
|
workspace: string;
|
|
9006
9190
|
};
|
|
9007
9191
|
export type SetDatatablePermissionsResponse = string;
|
|
9192
|
+
export type GetDatatableAclData = {
|
|
9193
|
+
datatableName: string;
|
|
9194
|
+
kind: 'database' | 'schema' | 'table';
|
|
9195
|
+
schema?: string;
|
|
9196
|
+
table?: string;
|
|
9197
|
+
workspace: string;
|
|
9198
|
+
};
|
|
9199
|
+
export type GetDatatableAclResponse = DatatableAclInfo;
|
|
9200
|
+
export type PlanDatatableAclData = {
|
|
9201
|
+
datatableName: string;
|
|
9202
|
+
requestBody: AclChangeRequest;
|
|
9203
|
+
workspace: string;
|
|
9204
|
+
};
|
|
9205
|
+
export type PlanDatatableAclResponse = AclPlan;
|
|
9206
|
+
export type ApplyDatatableAclData = {
|
|
9207
|
+
datatableName: string;
|
|
9208
|
+
requestBody: AclChangeRequest;
|
|
9209
|
+
workspace: string;
|
|
9210
|
+
};
|
|
9211
|
+
export type ApplyDatatableAclResponse = string;
|
|
9008
9212
|
export type ListUsableDatatableRolesData = {
|
|
9009
9213
|
datatableName: string;
|
|
9010
9214
|
workspace: string;
|
|
@@ -9032,11 +9236,27 @@ export type TestDataTableConnectionResponse = {
|
|
|
9032
9236
|
suggested_search_path?: string;
|
|
9033
9237
|
};
|
|
9034
9238
|
export type ListDataTableTablesData = {
|
|
9239
|
+
/**
|
|
9240
|
+
* list only this data table; each listed data table opens a connection to its database
|
|
9241
|
+
*/
|
|
9242
|
+
datatableName?: string;
|
|
9243
|
+
/**
|
|
9244
|
+
* the role to list `role_for` as; refused, in that entry's `error`, if the caller may not use it
|
|
9245
|
+
*/
|
|
9246
|
+
role?: string;
|
|
9247
|
+
/**
|
|
9248
|
+
* the data table `role` applies to; every other one is listed as its default role
|
|
9249
|
+
*/
|
|
9250
|
+
roleFor?: string;
|
|
9035
9251
|
workspace: string;
|
|
9036
9252
|
};
|
|
9037
9253
|
export type ListDataTableTablesResponse = Array<DataTableTables>;
|
|
9038
9254
|
export type GetDataTableTableSchemaData = {
|
|
9039
9255
|
datatableName: string;
|
|
9256
|
+
/**
|
|
9257
|
+
* the data table role to read the table as; defaults to the data table's default role
|
|
9258
|
+
*/
|
|
9259
|
+
role?: string;
|
|
9040
9260
|
schemaName: string;
|
|
9041
9261
|
tableName: string;
|
|
9042
9262
|
workspace: string;
|
|
@@ -10985,7 +11205,15 @@ export type ListFlowsResponse = Array<(Flow & {
|
|
|
10985
11205
|
}>;
|
|
10986
11206
|
})>;
|
|
10987
11207
|
export type GetFlowHistoryData = {
|
|
11208
|
+
/**
|
|
11209
|
+
* which page to return (start at 1, default 1)
|
|
11210
|
+
*/
|
|
11211
|
+
page?: number;
|
|
10988
11212
|
path: string;
|
|
11213
|
+
/**
|
|
11214
|
+
* number of items to return for a given page (default 30, max 100)
|
|
11215
|
+
*/
|
|
11216
|
+
perPage?: number;
|
|
10989
11217
|
workspace: string;
|
|
10990
11218
|
};
|
|
10991
11219
|
export type GetFlowHistoryResponse = Array<FlowVersion>;
|
|
@@ -11332,7 +11560,15 @@ export type GetAppLiteByPathData = {
|
|
|
11332
11560
|
};
|
|
11333
11561
|
export type GetAppLiteByPathResponse = AppWithLastVersion;
|
|
11334
11562
|
export type GetAppHistoryByPathData = {
|
|
11563
|
+
/**
|
|
11564
|
+
* which page to return (start at 1, default 1)
|
|
11565
|
+
*/
|
|
11566
|
+
page?: number;
|
|
11335
11567
|
path: string;
|
|
11568
|
+
/**
|
|
11569
|
+
* number of items to return for a given page (default 30, max 100)
|
|
11570
|
+
*/
|
|
11571
|
+
perPage?: number;
|
|
11336
11572
|
workspace: string;
|
|
11337
11573
|
};
|
|
11338
11574
|
export type GetAppHistoryByPathResponse = Array<AppHistory>;
|
|
@@ -11432,7 +11668,7 @@ export type UpdateAppData = {
|
|
|
11432
11668
|
};
|
|
11433
11669
|
workspace: string;
|
|
11434
11670
|
};
|
|
11435
|
-
export type UpdateAppResponse =
|
|
11671
|
+
export type UpdateAppResponse = AppDeployed;
|
|
11436
11672
|
export type CreateAppRawSourceData = {
|
|
11437
11673
|
/**
|
|
11438
11674
|
* raw app sources to bundle and deploy
|
|
@@ -11511,7 +11747,7 @@ export type UpdateAppRawSourceData = {
|
|
|
11511
11747
|
};
|
|
11512
11748
|
workspace: string;
|
|
11513
11749
|
};
|
|
11514
|
-
export type UpdateAppRawSourceResponse =
|
|
11750
|
+
export type UpdateAppRawSourceResponse = AppDeployed;
|
|
11515
11751
|
export type UpdateAppRawData = {
|
|
11516
11752
|
/**
|
|
11517
11753
|
* update app
|
|
@@ -11544,7 +11780,7 @@ export type UpdateAppRawData = {
|
|
|
11544
11780
|
path: string;
|
|
11545
11781
|
workspace: string;
|
|
11546
11782
|
};
|
|
11547
|
-
export type UpdateAppRawResponse =
|
|
11783
|
+
export type UpdateAppRawResponse = AppDeployed;
|
|
11548
11784
|
export type CustomPathExistsData = {
|
|
11549
11785
|
customPath: string;
|
|
11550
11786
|
workspace: string;
|
|
@@ -12060,7 +12296,15 @@ export type ListTokensOfScriptData = {
|
|
|
12060
12296
|
};
|
|
12061
12297
|
export type ListTokensOfScriptResponse = Array<TruncatedToken>;
|
|
12062
12298
|
export type GetScriptHistoryByPathData = {
|
|
12299
|
+
/**
|
|
12300
|
+
* which page to return (start at 1, default 1)
|
|
12301
|
+
*/
|
|
12302
|
+
page?: number;
|
|
12063
12303
|
path: string;
|
|
12304
|
+
/**
|
|
12305
|
+
* number of items to return for a given page (default 30, max 100)
|
|
12306
|
+
*/
|
|
12307
|
+
perPage?: number;
|
|
12064
12308
|
workspace: string;
|
|
12065
12309
|
};
|
|
12066
12310
|
export type GetScriptHistoryByPathResponse = Array<ScriptHistory>;
|
|
@@ -12373,7 +12617,27 @@ export type UpdateDraftData = {
|
|
|
12373
12617
|
export type UpdateDraftResponse = {
|
|
12374
12618
|
status: 'saved' | 'conflict';
|
|
12375
12619
|
current_timestamp: string;
|
|
12620
|
+
/**
|
|
12621
|
+
* `saved` only, upsert or delete: where the write landed. Differs from the URL path when the item had moved away from it; the editor follows it there. Absent when a delete found nothing to remove and the caller cannot read the path it moved to.
|
|
12622
|
+
*/
|
|
12623
|
+
path?: string;
|
|
12376
12624
|
};
|
|
12625
|
+
export type MoveDraftData = {
|
|
12626
|
+
/**
|
|
12627
|
+
* script, flow, app or raw_app only.
|
|
12628
|
+
*/
|
|
12629
|
+
kind: 'script' | 'flow' | 'app' | 'raw_app';
|
|
12630
|
+
path: string;
|
|
12631
|
+
requestBody: {
|
|
12632
|
+
new_path: string;
|
|
12633
|
+
/**
|
|
12634
|
+
* Also restate the draft's summary.
|
|
12635
|
+
*/
|
|
12636
|
+
summary?: string;
|
|
12637
|
+
};
|
|
12638
|
+
workspace: string;
|
|
12639
|
+
};
|
|
12640
|
+
export type MoveDraftResponse = string;
|
|
12377
12641
|
export type MigrateLegacyDraftData = {
|
|
12378
12642
|
kind: UserDraftItemKind;
|
|
12379
12643
|
path: string;
|
|
@@ -19042,19 +19306,6 @@ export type $OpenApiTs = {
|
|
|
19042
19306
|
302: unknown;
|
|
19043
19307
|
};
|
|
19044
19308
|
};
|
|
19045
|
-
post: {
|
|
19046
|
-
req: {
|
|
19047
|
-
token: string;
|
|
19048
|
-
};
|
|
19049
|
-
res: {
|
|
19050
|
-
/**
|
|
19051
|
-
* the post-login destination, or /user/login_link_expired when the link is used, expired or unknown
|
|
19052
|
-
*/
|
|
19053
|
-
200: {
|
|
19054
|
-
location: string;
|
|
19055
|
-
};
|
|
19056
|
-
};
|
|
19057
|
-
};
|
|
19058
19309
|
};
|
|
19059
19310
|
'/auth/reset_password': {
|
|
19060
19311
|
post: {
|
|
@@ -19822,7 +20073,7 @@ export type $OpenApiTs = {
|
|
|
19822
20073
|
requestBody: {
|
|
19823
20074
|
email: string;
|
|
19824
20075
|
/**
|
|
19825
|
-
* link lifetime in seconds, at most
|
|
20076
|
+
* link lifetime in seconds, at most 900 (default 600)
|
|
19826
20077
|
*/
|
|
19827
20078
|
expires_in_s?: number;
|
|
19828
20079
|
/**
|
|
@@ -19833,10 +20084,6 @@ export type $OpenApiTs = {
|
|
|
19833
20084
|
* mint only while the account still has this login type (for example pending_oauth), so a link stops working once the owner has set a password or signed in with a provider
|
|
19834
20085
|
*/
|
|
19835
20086
|
require_login_type?: string;
|
|
19836
|
-
/**
|
|
19837
|
-
* return a /user/login_link page that signs in only when its button is clicked, instead of a link spent by opening it; set it for links sent by email, which mail scanners open on delivery (default false)
|
|
19838
|
-
*/
|
|
19839
|
-
confirm?: boolean;
|
|
19840
20087
|
};
|
|
19841
20088
|
};
|
|
19842
20089
|
res: {
|
|
@@ -21614,6 +21861,53 @@ export type $OpenApiTs = {
|
|
|
21614
21861
|
};
|
|
21615
21862
|
};
|
|
21616
21863
|
};
|
|
21864
|
+
'/w/{workspace}/workspaces/datatable_acl/{datatable_name}': {
|
|
21865
|
+
get: {
|
|
21866
|
+
req: {
|
|
21867
|
+
datatableName: string;
|
|
21868
|
+
kind: 'database' | 'schema' | 'table';
|
|
21869
|
+
schema?: string;
|
|
21870
|
+
table?: string;
|
|
21871
|
+
workspace: string;
|
|
21872
|
+
};
|
|
21873
|
+
res: {
|
|
21874
|
+
/**
|
|
21875
|
+
* owner and grants
|
|
21876
|
+
*/
|
|
21877
|
+
200: DatatableAclInfo;
|
|
21878
|
+
};
|
|
21879
|
+
};
|
|
21880
|
+
};
|
|
21881
|
+
'/w/{workspace}/workspaces/datatable_acl/{datatable_name}/plan': {
|
|
21882
|
+
post: {
|
|
21883
|
+
req: {
|
|
21884
|
+
datatableName: string;
|
|
21885
|
+
requestBody: AclChangeRequest;
|
|
21886
|
+
workspace: string;
|
|
21887
|
+
};
|
|
21888
|
+
res: {
|
|
21889
|
+
/**
|
|
21890
|
+
* statements that would run, in a single transaction
|
|
21891
|
+
*/
|
|
21892
|
+
200: AclPlan;
|
|
21893
|
+
};
|
|
21894
|
+
};
|
|
21895
|
+
};
|
|
21896
|
+
'/w/{workspace}/workspaces/datatable_acl/{datatable_name}/apply': {
|
|
21897
|
+
post: {
|
|
21898
|
+
req: {
|
|
21899
|
+
datatableName: string;
|
|
21900
|
+
requestBody: AclChangeRequest;
|
|
21901
|
+
workspace: string;
|
|
21902
|
+
};
|
|
21903
|
+
res: {
|
|
21904
|
+
/**
|
|
21905
|
+
* change applied
|
|
21906
|
+
*/
|
|
21907
|
+
200: string;
|
|
21908
|
+
};
|
|
21909
|
+
};
|
|
21910
|
+
};
|
|
21617
21911
|
'/w/{workspace}/workspaces/datatable_usable_roles/{datatable_name}': {
|
|
21618
21912
|
get: {
|
|
21619
21913
|
req: {
|
|
@@ -21670,6 +21964,18 @@ export type $OpenApiTs = {
|
|
|
21670
21964
|
'/w/{workspace}/workspaces/list_datatable_tables': {
|
|
21671
21965
|
get: {
|
|
21672
21966
|
req: {
|
|
21967
|
+
/**
|
|
21968
|
+
* list only this data table; each listed data table opens a connection to its database
|
|
21969
|
+
*/
|
|
21970
|
+
datatableName?: string;
|
|
21971
|
+
/**
|
|
21972
|
+
* the role to list `role_for` as; refused, in that entry's `error`, if the caller may not use it
|
|
21973
|
+
*/
|
|
21974
|
+
role?: string;
|
|
21975
|
+
/**
|
|
21976
|
+
* the data table `role` applies to; every other one is listed as its default role
|
|
21977
|
+
*/
|
|
21978
|
+
roleFor?: string;
|
|
21673
21979
|
workspace: string;
|
|
21674
21980
|
};
|
|
21675
21981
|
res: {
|
|
@@ -21684,6 +21990,10 @@ export type $OpenApiTs = {
|
|
|
21684
21990
|
get: {
|
|
21685
21991
|
req: {
|
|
21686
21992
|
datatableName: string;
|
|
21993
|
+
/**
|
|
21994
|
+
* the data table role to read the table as; defaults to the data table's default role
|
|
21995
|
+
*/
|
|
21996
|
+
role?: string;
|
|
21687
21997
|
schemaName: string;
|
|
21688
21998
|
tableName: string;
|
|
21689
21999
|
workspace: string;
|
|
@@ -25321,7 +25631,15 @@ export type $OpenApiTs = {
|
|
|
25321
25631
|
'/w/{workspace}/flows/history/p/{path}': {
|
|
25322
25632
|
get: {
|
|
25323
25633
|
req: {
|
|
25634
|
+
/**
|
|
25635
|
+
* which page to return (start at 1, default 1)
|
|
25636
|
+
*/
|
|
25637
|
+
page?: number;
|
|
25324
25638
|
path: string;
|
|
25639
|
+
/**
|
|
25640
|
+
* number of items to return for a given page (default 30, max 100)
|
|
25641
|
+
*/
|
|
25642
|
+
perPage?: number;
|
|
25325
25643
|
workspace: string;
|
|
25326
25644
|
};
|
|
25327
25645
|
res: {
|
|
@@ -25956,7 +26274,15 @@ export type $OpenApiTs = {
|
|
|
25956
26274
|
'/w/{workspace}/apps/history/p/{path}': {
|
|
25957
26275
|
get: {
|
|
25958
26276
|
req: {
|
|
26277
|
+
/**
|
|
26278
|
+
* which page to return (start at 1, default 1)
|
|
26279
|
+
*/
|
|
26280
|
+
page?: number;
|
|
25959
26281
|
path: string;
|
|
26282
|
+
/**
|
|
26283
|
+
* number of items to return for a given page (default 30, max 100)
|
|
26284
|
+
*/
|
|
26285
|
+
perPage?: number;
|
|
25960
26286
|
workspace: string;
|
|
25961
26287
|
};
|
|
25962
26288
|
res: {
|
|
@@ -26168,7 +26494,7 @@ export type $OpenApiTs = {
|
|
|
26168
26494
|
/**
|
|
26169
26495
|
* app updated
|
|
26170
26496
|
*/
|
|
26171
|
-
200:
|
|
26497
|
+
200: AppDeployed;
|
|
26172
26498
|
};
|
|
26173
26499
|
};
|
|
26174
26500
|
};
|
|
@@ -26265,7 +26591,7 @@ export type $OpenApiTs = {
|
|
|
26265
26591
|
/**
|
|
26266
26592
|
* app updated
|
|
26267
26593
|
*/
|
|
26268
|
-
200:
|
|
26594
|
+
200: AppDeployed;
|
|
26269
26595
|
};
|
|
26270
26596
|
};
|
|
26271
26597
|
};
|
|
@@ -26307,7 +26633,7 @@ export type $OpenApiTs = {
|
|
|
26307
26633
|
/**
|
|
26308
26634
|
* app updated
|
|
26309
26635
|
*/
|
|
26310
|
-
200:
|
|
26636
|
+
200: AppDeployed;
|
|
26311
26637
|
};
|
|
26312
26638
|
};
|
|
26313
26639
|
};
|
|
@@ -27098,7 +27424,15 @@ export type $OpenApiTs = {
|
|
|
27098
27424
|
'/w/{workspace}/scripts/history/p/{path}': {
|
|
27099
27425
|
get: {
|
|
27100
27426
|
req: {
|
|
27427
|
+
/**
|
|
27428
|
+
* which page to return (start at 1, default 1)
|
|
27429
|
+
*/
|
|
27430
|
+
page?: number;
|
|
27101
27431
|
path: string;
|
|
27432
|
+
/**
|
|
27433
|
+
* number of items to return for a given page (default 30, max 100)
|
|
27434
|
+
*/
|
|
27435
|
+
perPage?: number;
|
|
27102
27436
|
workspace: string;
|
|
27103
27437
|
};
|
|
27104
27438
|
res: {
|
|
@@ -27608,10 +27942,39 @@ export type $OpenApiTs = {
|
|
|
27608
27942
|
200: {
|
|
27609
27943
|
status: 'saved' | 'conflict';
|
|
27610
27944
|
current_timestamp: string;
|
|
27945
|
+
/**
|
|
27946
|
+
* `saved` only, upsert or delete: where the write landed. Differs from the URL path when the item had moved away from it; the editor follows it there. Absent when a delete found nothing to remove and the caller cannot read the path it moved to.
|
|
27947
|
+
*/
|
|
27948
|
+
path?: string;
|
|
27611
27949
|
};
|
|
27612
27950
|
};
|
|
27613
27951
|
};
|
|
27614
27952
|
};
|
|
27953
|
+
'/w/{workspace}/drafts/move/{kind}/{path}': {
|
|
27954
|
+
post: {
|
|
27955
|
+
req: {
|
|
27956
|
+
/**
|
|
27957
|
+
* script, flow, app or raw_app only.
|
|
27958
|
+
*/
|
|
27959
|
+
kind: 'script' | 'flow' | 'app' | 'raw_app';
|
|
27960
|
+
path: string;
|
|
27961
|
+
requestBody: {
|
|
27962
|
+
new_path: string;
|
|
27963
|
+
/**
|
|
27964
|
+
* Also restate the draft's summary.
|
|
27965
|
+
*/
|
|
27966
|
+
summary?: string;
|
|
27967
|
+
};
|
|
27968
|
+
workspace: string;
|
|
27969
|
+
};
|
|
27970
|
+
res: {
|
|
27971
|
+
/**
|
|
27972
|
+
* move result
|
|
27973
|
+
*/
|
|
27974
|
+
200: string;
|
|
27975
|
+
};
|
|
27976
|
+
};
|
|
27977
|
+
};
|
|
27615
27978
|
'/w/{workspace}/drafts/migrate_legacy/{kind}/{path}': {
|
|
27616
27979
|
post: {
|
|
27617
27980
|
req: {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "windmill-client",
|
|
3
3
|
"description": "Windmill SDK client for browsers and Node.js",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.816.0",
|
|
5
5
|
"author": "Ruben Fiszel",
|
|
6
6
|
"license": "Apache 2.0",
|
|
7
7
|
"homepage": "https://github.com/windmill-labs/windmill/tree/main/typescript-client#readme",
|