windmill-client 1.818.0 → 1.820.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 +125 -20
- package/dist/services.gen.d.ts +58 -7
- package/dist/services.gen.mjs +124 -19
- package/dist/types.gen.d.ts +263 -13
- package/package.json +1 -1
package/dist/services.gen.mjs
CHANGED
|
@@ -1751,7 +1751,10 @@ var WorkspaceService = class {
|
|
|
1751
1751
|
* @param data The data for the request.
|
|
1752
1752
|
* @param data.workspace
|
|
1753
1753
|
* @param data.requestBody new forked workspace
|
|
1754
|
-
* @
|
|
1754
|
+
* @param data.background return once the request is validated and create the fork in the background, answering
|
|
1755
|
+
* with the creation id getForkCreationStatus reads
|
|
1756
|
+
*
|
|
1757
|
+
* @returns string forked workspace created, or with background set, the id of its creation
|
|
1755
1758
|
* @throws ApiError
|
|
1756
1759
|
*/
|
|
1757
1760
|
static createWorkspaceFork(data) {
|
|
@@ -1759,11 +1762,30 @@ var WorkspaceService = class {
|
|
|
1759
1762
|
method: "POST",
|
|
1760
1763
|
url: "/w/{workspace}/workspaces/create_fork",
|
|
1761
1764
|
path: { workspace: data.workspace },
|
|
1765
|
+
query: { background: data.background },
|
|
1762
1766
|
body: data.requestBody,
|
|
1763
1767
|
mediaType: "application/json"
|
|
1764
1768
|
});
|
|
1765
1769
|
}
|
|
1766
1770
|
/**
|
|
1771
|
+
* get the status of a fork created in the background
|
|
1772
|
+
* @param data The data for the request.
|
|
1773
|
+
* @param data.workspace
|
|
1774
|
+
* @param data.creationId
|
|
1775
|
+
* @returns unknown fork creation status
|
|
1776
|
+
* @throws ApiError
|
|
1777
|
+
*/
|
|
1778
|
+
static getForkCreationStatus(data) {
|
|
1779
|
+
return request(OpenAPI, {
|
|
1780
|
+
method: "GET",
|
|
1781
|
+
url: "/w/{workspace}/workspaces/fork_creation_status/{creation_id}",
|
|
1782
|
+
path: {
|
|
1783
|
+
workspace: data.workspace,
|
|
1784
|
+
creation_id: data.creationId
|
|
1785
|
+
}
|
|
1786
|
+
});
|
|
1787
|
+
}
|
|
1788
|
+
/**
|
|
1767
1789
|
* attach an existing workspace as the dev workspace of this (prod) workspace
|
|
1768
1790
|
* @param data The data for the request.
|
|
1769
1791
|
* @param data.workspace
|
|
@@ -3991,6 +4013,74 @@ var SettingService = class {
|
|
|
3991
4013
|
});
|
|
3992
4014
|
}
|
|
3993
4015
|
/**
|
|
4016
|
+
* Returns whether the external instance cluster is configured and how its last setup went
|
|
4017
|
+
* @returns ExternalInstancePgStatus external instance cluster status
|
|
4018
|
+
* @throws ApiError
|
|
4019
|
+
*/
|
|
4020
|
+
static getExternalInstancePgStatus() {
|
|
4021
|
+
return request(OpenAPI, {
|
|
4022
|
+
method: "GET",
|
|
4023
|
+
url: "/settings/external_instance_pg/status"
|
|
4024
|
+
});
|
|
4025
|
+
}
|
|
4026
|
+
/**
|
|
4027
|
+
* Sets up the external instance cluster with its saved admin login, optionally rotating the passwords Windmill manages on it (enterprise edition only)
|
|
4028
|
+
* @param data The data for the request.
|
|
4029
|
+
* @param data.requestBody
|
|
4030
|
+
* @returns ExternalInstancePgSetupReport the setup report, also stored as the last setup
|
|
4031
|
+
* @throws ApiError
|
|
4032
|
+
*/
|
|
4033
|
+
static setupExternalInstancePg(data) {
|
|
4034
|
+
return request(OpenAPI, {
|
|
4035
|
+
method: "POST",
|
|
4036
|
+
url: "/settings/external_instance_pg/setup",
|
|
4037
|
+
body: data.requestBody,
|
|
4038
|
+
mediaType: "application/json"
|
|
4039
|
+
});
|
|
4040
|
+
}
|
|
4041
|
+
/**
|
|
4042
|
+
* Lists the databases Windmill created on the external instance cluster, with the workspaces whose data tables, Ducklake catalogs or pending fork cleanups use each
|
|
4043
|
+
* @returns CustomInstanceDb databases by name
|
|
4044
|
+
* @throws ApiError
|
|
4045
|
+
*/
|
|
4046
|
+
static listExternalInstancePgDatabases() {
|
|
4047
|
+
return request(OpenAPI, {
|
|
4048
|
+
method: "GET",
|
|
4049
|
+
url: "/settings/external_instance_pg/databases"
|
|
4050
|
+
});
|
|
4051
|
+
}
|
|
4052
|
+
/**
|
|
4053
|
+
* Creates a database on the external instance cluster (enterprise edition only)
|
|
4054
|
+
* @param data The data for the request.
|
|
4055
|
+
* @param data.name
|
|
4056
|
+
* @param data.requestBody
|
|
4057
|
+
* @returns unknown database created
|
|
4058
|
+
* @throws ApiError
|
|
4059
|
+
*/
|
|
4060
|
+
static createExternalInstancePgDatabase(data) {
|
|
4061
|
+
return request(OpenAPI, {
|
|
4062
|
+
method: "POST",
|
|
4063
|
+
url: "/settings/external_instance_pg/databases/{name}",
|
|
4064
|
+
path: { name: data.name },
|
|
4065
|
+
body: data.requestBody,
|
|
4066
|
+
mediaType: "application/json"
|
|
4067
|
+
});
|
|
4068
|
+
}
|
|
4069
|
+
/**
|
|
4070
|
+
* Drops a database Windmill created on the external instance cluster, refused while a data table, Ducklake catalog or pending fork cleanup uses it
|
|
4071
|
+
* @param data The data for the request.
|
|
4072
|
+
* @param data.name
|
|
4073
|
+
* @returns unknown database dropped
|
|
4074
|
+
* @throws ApiError
|
|
4075
|
+
*/
|
|
4076
|
+
static dropExternalInstancePgDatabase(data) {
|
|
4077
|
+
return request(OpenAPI, {
|
|
4078
|
+
method: "DELETE",
|
|
4079
|
+
url: "/settings/external_instance_pg/databases/{name}",
|
|
4080
|
+
path: { name: data.name }
|
|
4081
|
+
});
|
|
4082
|
+
}
|
|
4083
|
+
/**
|
|
3994
4084
|
* Returns the set-up statuses of custom instance pg databases
|
|
3995
4085
|
* @returns CustomInstanceDb Statuses of all custom instance dbs
|
|
3996
4086
|
* @throws ApiError
|
|
@@ -4002,18 +4092,21 @@ var SettingService = class {
|
|
|
4002
4092
|
});
|
|
4003
4093
|
}
|
|
4004
4094
|
/**
|
|
4005
|
-
* list the
|
|
4006
|
-
* @
|
|
4095
|
+
* list the data table roles of one Windmill-managed Postgres cluster
|
|
4096
|
+
* @param data The data for the request.
|
|
4097
|
+
* @param data.cluster
|
|
4098
|
+
* @returns InstanceDatatableRole the cluster's role catalog
|
|
4007
4099
|
* @throws ApiError
|
|
4008
4100
|
*/
|
|
4009
|
-
static listInstanceDatatableRoles() {
|
|
4101
|
+
static listInstanceDatatableRoles(data = {}) {
|
|
4010
4102
|
return request(OpenAPI, {
|
|
4011
4103
|
method: "GET",
|
|
4012
|
-
url: "/settings/datatable_roles"
|
|
4104
|
+
url: "/settings/datatable_roles",
|
|
4105
|
+
query: { cluster: data.cluster }
|
|
4013
4106
|
});
|
|
4014
4107
|
}
|
|
4015
4108
|
/**
|
|
4016
|
-
* create a data table role on
|
|
4109
|
+
* create a data table role on a Windmill-managed Postgres cluster
|
|
4017
4110
|
* @param data The data for the request.
|
|
4018
4111
|
* @param data.requestBody
|
|
4019
4112
|
* @returns InstanceDatatableRole the created role
|
|
@@ -8520,7 +8613,8 @@ var WorkspaceDependenciesService = class {
|
|
|
8520
8613
|
url: "/w/{workspace}/workspace_dependencies/create",
|
|
8521
8614
|
path: { workspace: data.workspace },
|
|
8522
8615
|
body: data.requestBody,
|
|
8523
|
-
mediaType: "application/json"
|
|
8616
|
+
mediaType: "application/json",
|
|
8617
|
+
errors: { 400: "the body's workspace_id does not match the workspace in the path" }
|
|
8524
8618
|
});
|
|
8525
8619
|
}
|
|
8526
8620
|
/**
|
|
@@ -8769,7 +8863,8 @@ var JobService = class {
|
|
|
8769
8863
|
memory_id: data.memoryId
|
|
8770
8864
|
},
|
|
8771
8865
|
body: data.requestBody,
|
|
8772
|
-
mediaType: "application/json"
|
|
8866
|
+
mediaType: "application/json",
|
|
8867
|
+
errors: { 409: "Chat-enabled flow only: the conversation named by `memory_id` is still answering a message. The body is JSON: `{ \"error\": string, \"running_turn\": { \"job_id\", \"user_seq\" } }`." }
|
|
8773
8868
|
});
|
|
8774
8869
|
}
|
|
8775
8870
|
/**
|
|
@@ -8805,7 +8900,8 @@ var JobService = class {
|
|
|
8805
8900
|
memory_id: data.memoryId
|
|
8806
8901
|
},
|
|
8807
8902
|
body: data.requestBody,
|
|
8808
|
-
mediaType: "application/json"
|
|
8903
|
+
mediaType: "application/json",
|
|
8904
|
+
errors: { 409: "Chat-enabled flow only: the conversation named by `memory_id` is still answering a message. The body is JSON: `{ \"error\": string, \"running_turn\": { \"job_id\", \"user_seq\" } }`." }
|
|
8809
8905
|
});
|
|
8810
8906
|
}
|
|
8811
8907
|
/**
|
|
@@ -8842,7 +8938,8 @@ var JobService = class {
|
|
|
8842
8938
|
job_id: data.jobId,
|
|
8843
8939
|
skip_preprocessor: data.skipPreprocessor,
|
|
8844
8940
|
memory_id: data.memoryId
|
|
8845
|
-
}
|
|
8941
|
+
},
|
|
8942
|
+
errors: { 409: "Chat-enabled flow only: the conversation named by `memory_id` is still answering a message. The body is JSON: `{ \"error\": string, \"running_turn\": { \"job_id\", \"user_seq\" } }`." }
|
|
8846
8943
|
});
|
|
8847
8944
|
}
|
|
8848
8945
|
/**
|
|
@@ -8880,7 +8977,8 @@ var JobService = class {
|
|
|
8880
8977
|
poll_delay_ms: data.pollDelayMs
|
|
8881
8978
|
},
|
|
8882
8979
|
body: data.requestBody,
|
|
8883
|
-
mediaType: "application/json"
|
|
8980
|
+
mediaType: "application/json",
|
|
8981
|
+
errors: { 409: "Chat-enabled flow only: the conversation named by `memory_id` is still answering a message. The body is JSON: `{ \"error\": string, \"running_turn\": { \"job_id\", \"user_seq\" } }`." }
|
|
8884
8982
|
});
|
|
8885
8983
|
}
|
|
8886
8984
|
/**
|
|
@@ -8919,7 +9017,8 @@ var JobService = class {
|
|
|
8919
9017
|
skip_preprocessor: data.skipPreprocessor,
|
|
8920
9018
|
memory_id: data.memoryId,
|
|
8921
9019
|
poll_delay_ms: data.pollDelayMs
|
|
8922
|
-
}
|
|
9020
|
+
},
|
|
9021
|
+
errors: { 409: "Chat-enabled flow only: the conversation named by `memory_id` is still answering a message. The body is JSON: `{ \"error\": string, \"running_turn\": { \"job_id\", \"user_seq\" } }`." }
|
|
8923
9022
|
});
|
|
8924
9023
|
}
|
|
8925
9024
|
/**
|
|
@@ -8957,7 +9056,8 @@ var JobService = class {
|
|
|
8957
9056
|
poll_delay_ms: data.pollDelayMs
|
|
8958
9057
|
},
|
|
8959
9058
|
body: data.requestBody,
|
|
8960
|
-
mediaType: "application/json"
|
|
9059
|
+
mediaType: "application/json",
|
|
9060
|
+
errors: { 409: "Chat-enabled flow only: the conversation named by `memory_id` is still answering a message. The body is JSON: `{ \"error\": string, \"running_turn\": { \"job_id\", \"user_seq\" } }`." }
|
|
8961
9061
|
});
|
|
8962
9062
|
}
|
|
8963
9063
|
/**
|
|
@@ -8996,7 +9096,8 @@ var JobService = class {
|
|
|
8996
9096
|
skip_preprocessor: data.skipPreprocessor,
|
|
8997
9097
|
memory_id: data.memoryId,
|
|
8998
9098
|
poll_delay_ms: data.pollDelayMs
|
|
8999
|
-
}
|
|
9099
|
+
},
|
|
9100
|
+
errors: { 409: "Chat-enabled flow only: the conversation named by `memory_id` is still answering a message. The body is JSON: `{ \"error\": string, \"running_turn\": { \"job_id\", \"user_seq\" } }`." }
|
|
9000
9101
|
});
|
|
9001
9102
|
}
|
|
9002
9103
|
/**
|
|
@@ -9269,7 +9370,8 @@ var JobService = class {
|
|
|
9269
9370
|
memory_id: data.memoryId
|
|
9270
9371
|
},
|
|
9271
9372
|
body: data.requestBody,
|
|
9272
|
-
mediaType: "application/json"
|
|
9373
|
+
mediaType: "application/json",
|
|
9374
|
+
errors: { 409: "Chat-enabled flow only: the conversation named by `memory_id` is still answering a message. The body is JSON: `{ \"error\": string, \"running_turn\": { \"job_id\", \"user_seq\" } }`." }
|
|
9273
9375
|
});
|
|
9274
9376
|
}
|
|
9275
9377
|
/**
|
|
@@ -9312,7 +9414,8 @@ var JobService = class {
|
|
|
9312
9414
|
memory_id: data.memoryId
|
|
9313
9415
|
},
|
|
9314
9416
|
body: data.requestBody,
|
|
9315
|
-
mediaType: "application/json"
|
|
9417
|
+
mediaType: "application/json",
|
|
9418
|
+
errors: { 409: "Chat-enabled flow only: the conversation named by `memory_id` is still answering a message. The body is JSON: `{ \"error\": string, \"running_turn\": { \"job_id\", \"user_seq\" } }`." }
|
|
9316
9419
|
});
|
|
9317
9420
|
}
|
|
9318
9421
|
/**
|
|
@@ -9619,7 +9722,8 @@ var JobService = class {
|
|
|
9619
9722
|
memory_id: data.memoryId
|
|
9620
9723
|
},
|
|
9621
9724
|
body: data.requestBody,
|
|
9622
|
-
mediaType: "application/json"
|
|
9725
|
+
mediaType: "application/json",
|
|
9726
|
+
errors: { 409: "Chat-enabled flow only: the conversation named by `memory_id` is still answering a message. The body is JSON: `{ \"error\": string, \"running_turn\": { \"job_id\", \"user_seq\" } }`." }
|
|
9623
9727
|
});
|
|
9624
9728
|
}
|
|
9625
9729
|
/**
|
|
@@ -9638,7 +9742,8 @@ var JobService = class {
|
|
|
9638
9742
|
path: { workspace: data.workspace },
|
|
9639
9743
|
query: { memory_id: data.memoryId },
|
|
9640
9744
|
body: data.requestBody,
|
|
9641
|
-
mediaType: "application/json"
|
|
9745
|
+
mediaType: "application/json",
|
|
9746
|
+
errors: { 409: "Chat-enabled flow only: the conversation named by `memory_id` is still answering a message. The body is JSON: `{ \"error\": string, \"running_turn\": { \"job_id\", \"user_seq\" } }`." }
|
|
9642
9747
|
});
|
|
9643
9748
|
}
|
|
9644
9749
|
/**
|
|
@@ -11777,7 +11882,7 @@ var PathAutocompleteService = class {
|
|
|
11777
11882
|
* Returns the flat list of all item paths visible to the caller across
|
|
11778
11883
|
* scripts, flows, apps, raw apps, variables, and resources. Intended to
|
|
11779
11884
|
* feed an entirely client-side path autocomplete UI: the frontend fetches
|
|
11780
|
-
* once (server caches per
|
|
11885
|
+
* once (server caches per caller for 60s) and performs all prefix/segment
|
|
11781
11886
|
* computation locally. Capped at 20,000 paths (5,000 per table).
|
|
11782
11887
|
*
|
|
11783
11888
|
* @param data The data for the request.
|