windmill-client 1.819.0 → 1.821.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.
@@ -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
- * @returns string forked workspace created
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 instance's data table roles
4006
- * @returns InstanceDatatableRole the instance role catalog
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 the instance's Postgres cluster
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
@@ -6061,6 +6154,20 @@ var IntegrationService = class {
6061
6154
  query: { kind: data.kind }
6062
6155
  });
6063
6156
  }
6157
+ /**
6158
+ * get hub integration metadata
6159
+ * @param data The data for the request.
6160
+ * @param data.app integration slug
6161
+ * @returns unknown integration metadata
6162
+ * @throws ApiError
6163
+ */
6164
+ static getHubIntegrationMeta(data) {
6165
+ return request(OpenAPI, {
6166
+ method: "GET",
6167
+ url: "/integrations/hub/{app}/meta",
6168
+ path: { app: data.app }
6169
+ });
6170
+ }
6064
6171
  };
6065
6172
  var FlowService = class {
6066
6173
  /**
@@ -8770,7 +8877,8 @@ var JobService = class {
8770
8877
  memory_id: data.memoryId
8771
8878
  },
8772
8879
  body: data.requestBody,
8773
- mediaType: "application/json"
8880
+ mediaType: "application/json",
8881
+ 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\" } }`." }
8774
8882
  });
8775
8883
  }
8776
8884
  /**
@@ -8806,7 +8914,8 @@ var JobService = class {
8806
8914
  memory_id: data.memoryId
8807
8915
  },
8808
8916
  body: data.requestBody,
8809
- mediaType: "application/json"
8917
+ mediaType: "application/json",
8918
+ 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\" } }`." }
8810
8919
  });
8811
8920
  }
8812
8921
  /**
@@ -8843,7 +8952,8 @@ var JobService = class {
8843
8952
  job_id: data.jobId,
8844
8953
  skip_preprocessor: data.skipPreprocessor,
8845
8954
  memory_id: data.memoryId
8846
- }
8955
+ },
8956
+ 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\" } }`." }
8847
8957
  });
8848
8958
  }
8849
8959
  /**
@@ -8881,7 +8991,8 @@ var JobService = class {
8881
8991
  poll_delay_ms: data.pollDelayMs
8882
8992
  },
8883
8993
  body: data.requestBody,
8884
- mediaType: "application/json"
8994
+ mediaType: "application/json",
8995
+ 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\" } }`." }
8885
8996
  });
8886
8997
  }
8887
8998
  /**
@@ -8920,7 +9031,8 @@ var JobService = class {
8920
9031
  skip_preprocessor: data.skipPreprocessor,
8921
9032
  memory_id: data.memoryId,
8922
9033
  poll_delay_ms: data.pollDelayMs
8923
- }
9034
+ },
9035
+ 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\" } }`." }
8924
9036
  });
8925
9037
  }
8926
9038
  /**
@@ -8958,7 +9070,8 @@ var JobService = class {
8958
9070
  poll_delay_ms: data.pollDelayMs
8959
9071
  },
8960
9072
  body: data.requestBody,
8961
- mediaType: "application/json"
9073
+ mediaType: "application/json",
9074
+ 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\" } }`." }
8962
9075
  });
8963
9076
  }
8964
9077
  /**
@@ -8997,7 +9110,8 @@ var JobService = class {
8997
9110
  skip_preprocessor: data.skipPreprocessor,
8998
9111
  memory_id: data.memoryId,
8999
9112
  poll_delay_ms: data.pollDelayMs
9000
- }
9113
+ },
9114
+ 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\" } }`." }
9001
9115
  });
9002
9116
  }
9003
9117
  /**
@@ -9270,7 +9384,8 @@ var JobService = class {
9270
9384
  memory_id: data.memoryId
9271
9385
  },
9272
9386
  body: data.requestBody,
9273
- mediaType: "application/json"
9387
+ mediaType: "application/json",
9388
+ 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\" } }`." }
9274
9389
  });
9275
9390
  }
9276
9391
  /**
@@ -9313,7 +9428,8 @@ var JobService = class {
9313
9428
  memory_id: data.memoryId
9314
9429
  },
9315
9430
  body: data.requestBody,
9316
- mediaType: "application/json"
9431
+ mediaType: "application/json",
9432
+ 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\" } }`." }
9317
9433
  });
9318
9434
  }
9319
9435
  /**
@@ -9620,6 +9736,35 @@ var JobService = class {
9620
9736
  memory_id: data.memoryId
9621
9737
  },
9622
9738
  body: data.requestBody,
9739
+ mediaType: "application/json",
9740
+ 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\" } }`." }
9741
+ });
9742
+ }
9743
+ /**
9744
+ * run a saved AI agent
9745
+ * Runs the `ai_agent` resource at `path` as stored, for any caller who can read it
9746
+ * (operators included), as the caller, who needs access to the agent's AI resource and to
9747
+ * whatever its tools use. With `memory_id`, the run is a turn
9748
+ * of the caller's conversation with the agent; without, a single run.
9749
+ *
9750
+ * @param data The data for the request.
9751
+ * @param data.workspace
9752
+ * @param data.path
9753
+ * @param data.requestBody the run's inputs
9754
+ * @param data.memoryId The conversation this turn belongs to. A uuid is used as is; any other string is hashed within the workspace and agent.
9755
+ * @returns string job created
9756
+ * @throws ApiError
9757
+ */
9758
+ static runAgent(data) {
9759
+ return request(OpenAPI, {
9760
+ method: "POST",
9761
+ url: "/w/{workspace}/jobs/run/agent/{path}",
9762
+ path: {
9763
+ workspace: data.workspace,
9764
+ path: data.path
9765
+ },
9766
+ query: { memory_id: data.memoryId },
9767
+ body: data.requestBody,
9623
9768
  mediaType: "application/json"
9624
9769
  });
9625
9770
  }
@@ -9639,7 +9784,8 @@ var JobService = class {
9639
9784
  path: { workspace: data.workspace },
9640
9785
  query: { memory_id: data.memoryId },
9641
9786
  body: data.requestBody,
9642
- mediaType: "application/json"
9787
+ mediaType: "application/json",
9788
+ 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\" } }`." }
9643
9789
  });
9644
9790
  }
9645
9791
  /**