windmill-client 1.811.1 → 1.813.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.
@@ -181,6 +181,99 @@ var AuditService = class {
181
181
  });
182
182
  }
183
183
  };
184
+ var TrashService = class {
185
+ /**
186
+ * list the workspace trashbin (requires admin privilege)
187
+ * @param data The data for the request.
188
+ * @param data.workspace
189
+ * @param data.itemKind only return items of this kind: script, flow, app, schedule, variable, resource, or a trigger kind such as http_trigger
190
+ *
191
+ * @param data.page which page to return (starts at 0, default 0)
192
+ * @param data.perPage number of items to return for a given page (default 100, max 1000)
193
+ * @returns TrashItem the trashed items, most recently deleted first
194
+ * @throws ApiError
195
+ */
196
+ static listTrash(data) {
197
+ return request(OpenAPI, {
198
+ method: "GET",
199
+ url: "/w/{workspace}/trash/list",
200
+ path: { workspace: data.workspace },
201
+ query: {
202
+ item_kind: data.itemKind,
203
+ page: data.page,
204
+ per_page: data.perPage
205
+ }
206
+ });
207
+ }
208
+ /**
209
+ * get a trashed item with the data it was deleted with (requires admin privilege)
210
+ * @param data The data for the request.
211
+ * @param data.workspace
212
+ * @param data.id
213
+ * @returns TrashItemWithData the trashed item
214
+ * @throws ApiError
215
+ */
216
+ static getTrashItem(data) {
217
+ return request(OpenAPI, {
218
+ method: "GET",
219
+ url: "/w/{workspace}/trash/get/{id}",
220
+ path: {
221
+ workspace: data.workspace,
222
+ id: data.id
223
+ }
224
+ });
225
+ }
226
+ /**
227
+ * restore a trashed item to its path (requires admin privilege)
228
+ * @param data The data for the request.
229
+ * @param data.workspace
230
+ * @param data.id
231
+ * @returns string item restored
232
+ * @throws ApiError
233
+ */
234
+ static restoreTrashItem(data) {
235
+ return request(OpenAPI, {
236
+ method: "POST",
237
+ url: "/w/{workspace}/trash/restore/{id}",
238
+ path: {
239
+ workspace: data.workspace,
240
+ id: data.id
241
+ }
242
+ });
243
+ }
244
+ /**
245
+ * permanently delete a trashed item (requires admin privilege)
246
+ * @param data The data for the request.
247
+ * @param data.workspace
248
+ * @param data.id
249
+ * @returns string item permanently deleted
250
+ * @throws ApiError
251
+ */
252
+ static permanentlyDeleteTrashItem(data) {
253
+ return request(OpenAPI, {
254
+ method: "DELETE",
255
+ url: "/w/{workspace}/trash/delete/{id}",
256
+ path: {
257
+ workspace: data.workspace,
258
+ id: data.id
259
+ }
260
+ });
261
+ }
262
+ /**
263
+ * permanently delete every item in the workspace trashbin (requires admin privilege)
264
+ * @param data The data for the request.
265
+ * @param data.workspace
266
+ * @returns string trashbin emptied
267
+ * @throws ApiError
268
+ */
269
+ static emptyTrash(data) {
270
+ return request(OpenAPI, {
271
+ method: "POST",
272
+ url: "/w/{workspace}/trash/empty",
273
+ path: { workspace: data.workspace }
274
+ });
275
+ }
276
+ };
184
277
  var UserService = class {
185
278
  /**
186
279
  * login with password
@@ -248,6 +341,22 @@ var UserService = class {
248
341
  });
249
342
  }
250
343
  /**
344
+ * consume a single-use login link, set the session cookie and redirect
345
+ * @param data The data for the request.
346
+ * @param data.token
347
+ * @param data.rd
348
+ * @throws ApiError
349
+ */
350
+ static consumeLoginLink(data) {
351
+ return request(OpenAPI, {
352
+ method: "GET",
353
+ url: "/auth/login_link/{token}",
354
+ path: { token: data.token },
355
+ query: { rd: data.rd },
356
+ errors: { 302: "redirected to the post-login destination, or to /user/login_link_expired when the link is used, expired or unknown" }
357
+ });
358
+ }
359
+ /**
251
360
  * reset password using token
252
361
  * @param data The data for the request.
253
362
  * @param data.requestBody token and new password
@@ -996,6 +1105,89 @@ var UserService = class {
996
1105
  });
997
1106
  }
998
1107
  /**
1108
+ * mint a single-use login link for an account (require superadmin)
1109
+ * @param data The data for the request.
1110
+ * @param data.requestBody target account and link options
1111
+ * @returns unknown login link minted
1112
+ * @throws ApiError
1113
+ */
1114
+ static createLoginLink(data) {
1115
+ return request(OpenAPI, {
1116
+ method: "POST",
1117
+ url: "/users/login_links",
1118
+ body: data.requestBody,
1119
+ mediaType: "application/json",
1120
+ errors: { 409: "the account does not have the required login type" }
1121
+ });
1122
+ }
1123
+ /**
1124
+ * record or consume a pre-approved self-hosted trial offer for a cloud account (require superadmin, cloud only)
1125
+ * @param data The data for the request.
1126
+ * @param data.requestBody
1127
+ * @returns string offer recorded or consumed
1128
+ * @throws ApiError
1129
+ */
1130
+ static setCloudTrialOffer(data) {
1131
+ return request(OpenAPI, {
1132
+ method: "POST",
1133
+ url: "/users/cloud_trial_offer",
1134
+ body: data.requestBody,
1135
+ mediaType: "application/json"
1136
+ });
1137
+ }
1138
+ /**
1139
+ * whether the signed-in account holds an unconsumed pre-approved self-hosted trial offer (cloud only)
1140
+ * @returns unknown offer state
1141
+ * @throws ApiError
1142
+ */
1143
+ static getCloudTrialOffer() {
1144
+ return request(OpenAPI, {
1145
+ method: "GET",
1146
+ url: "/users/cloud_trial_offer"
1147
+ });
1148
+ }
1149
+ /**
1150
+ * start the signed-in account's pre-approved self-hosted trial on the customer portal (cloud only). A POST answered as JSON rather than a redirecting GET, so a cross-site navigation cannot start it; the browser navigates to `location` itself
1151
+ * @returns unknown where to go — the customer portal signed in with the trial being started, or the portal home with the reason the offer could not be used
1152
+ * @throws ApiError
1153
+ */
1154
+ static goCloudTrialOffer() {
1155
+ return request(OpenAPI, {
1156
+ method: "POST",
1157
+ url: "/users/cloud_trial_offer/go",
1158
+ errors: {
1159
+ 403: "called with a job token",
1160
+ 404: "no offer for this account"
1161
+ }
1162
+ });
1163
+ }
1164
+ /**
1165
+ * record the invite context an account's onboarding tailors itself from (require superadmin, cloud only)
1166
+ * @param data The data for the request.
1167
+ * @param data.requestBody
1168
+ * @returns string profile recorded
1169
+ * @throws ApiError
1170
+ */
1171
+ static setOnboardingProfile(data) {
1172
+ return request(OpenAPI, {
1173
+ method: "POST",
1174
+ url: "/users/onboarding_profile",
1175
+ body: data.requestBody,
1176
+ mediaType: "application/json"
1177
+ });
1178
+ }
1179
+ /**
1180
+ * the invite context recorded for the signed-in account, if any (cloud only)
1181
+ * @returns unknown the profile, or null when none was recorded
1182
+ * @throws ApiError
1183
+ */
1184
+ static getOnboardingProfile() {
1185
+ return request(OpenAPI, {
1186
+ method: "GET",
1187
+ url: "/users/onboarding_profile"
1188
+ });
1189
+ }
1190
+ /**
999
1191
  * delete token
1000
1192
  * @param data The data for the request.
1001
1193
  * @param data.tokenPrefix
@@ -1476,6 +1668,21 @@ var WorkspaceService = class {
1476
1668
  });
1477
1669
  }
1478
1670
  /**
1671
+ * get the AI session retention of workspaces referenced by client-side sessions
1672
+ * @param data The data for the request.
1673
+ * @param data.requestBody
1674
+ * @returns number map of workspace id to its `ai_config.sessions_retention_days`; a workspace without a retention, or one the caller cannot be authenticated into, is absent
1675
+ * @throws ApiError
1676
+ */
1677
+ static getSessionWorkspaceRetention(data) {
1678
+ return request(OpenAPI, {
1679
+ method: "POST",
1680
+ url: "/workspaces/session_workspace_retention",
1681
+ body: data.requestBody,
1682
+ mediaType: "application/json"
1683
+ });
1684
+ }
1685
+ /**
1479
1686
  * get workspace as super admin (require to be super admin)
1480
1687
  * @param data The data for the request.
1481
1688
  * @param data.workspace
@@ -5730,6 +5937,24 @@ var FlowService = class {
5730
5937
  });
5731
5938
  }
5732
5939
  /**
5940
+ * list flow paths with a step linked to a saved agent
5941
+ * @param data The data for the request.
5942
+ * @param data.workspace
5943
+ * @param data.path
5944
+ * @returns string paths of the flows linking the `ai_agent` resource, as of their last deploy
5945
+ * @throws ApiError
5946
+ */
5947
+ static listFlowPathsLinkingAgent(data) {
5948
+ return request(OpenAPI, {
5949
+ method: "GET",
5950
+ url: "/w/{workspace}/flows/list_paths_linking_agent/{path}",
5951
+ path: {
5952
+ workspace: data.workspace,
5953
+ path: data.path
5954
+ }
5955
+ });
5956
+ }
5957
+ /**
5733
5958
  * get flow version
5734
5959
  * @param data The data for the request.
5735
5960
  * @param data.workspace
@@ -11271,6 +11496,125 @@ var AiService = class {
11271
11496
  }
11272
11497
  });
11273
11498
  }
11499
+ /**
11500
+ * list the calling user's AI session backups in the workspace object storage
11501
+ * @param data The data for the request.
11502
+ * @param data.workspace
11503
+ * @returns unknown backups, newest first; `enabled` is false when the workspace has no storage for them
11504
+ * @throws ApiError
11505
+ */
11506
+ static listAiSessionBackups(data) {
11507
+ return request(OpenAPI, {
11508
+ method: "GET",
11509
+ url: "/w/{workspace}/ai/sessions/list",
11510
+ path: { workspace: data.workspace }
11511
+ });
11512
+ }
11513
+ /**
11514
+ * fetch whole AI session backups
11515
+ * @param data The data for the request.
11516
+ * @param data.workspace
11517
+ * @param data.requestBody
11518
+ * @returns unknown the backups found; `deferred` lists ids that did not fit the response budget
11519
+ * @throws ApiError
11520
+ */
11521
+ static pullAiSessionBackups(data) {
11522
+ return request(OpenAPI, {
11523
+ method: "POST",
11524
+ url: "/w/{workspace}/ai/sessions/pull",
11525
+ path: { workspace: data.workspace },
11526
+ body: data.requestBody,
11527
+ mediaType: "application/json"
11528
+ });
11529
+ }
11530
+ /**
11531
+ * write changed pieces of AI sessions to their backups, and remove deleted ones
11532
+ * @param data The data for the request.
11533
+ * @param data.workspace
11534
+ * @param data.requestBody
11535
+ * @returns unknown one result per session written or removed, in request order
11536
+ * @throws ApiError
11537
+ */
11538
+ static pushAiSessionBackups(data) {
11539
+ return request(OpenAPI, {
11540
+ method: "POST",
11541
+ url: "/w/{workspace}/ai/sessions/push",
11542
+ path: { workspace: data.workspace },
11543
+ body: data.requestBody,
11544
+ mediaType: "application/json"
11545
+ });
11546
+ }
11547
+ /**
11548
+ * share an AI session artifact with the workspace
11549
+ * Stores a read-only copy that any member of the workspace can open by id. Sharing the same artifact again updates that copy, keeps its id, and restarts its retention window.
11550
+ *
11551
+ * @param data The data for the request.
11552
+ * @param data.workspace
11553
+ * @param data.requestBody
11554
+ * @returns SharedAiArtifactInfo the shared copy
11555
+ * @throws ApiError
11556
+ */
11557
+ static shareAiArtifact(data) {
11558
+ return request(OpenAPI, {
11559
+ method: "POST",
11560
+ url: "/w/{workspace}/ai/shared_artifacts/share",
11561
+ path: { workspace: data.workspace },
11562
+ body: data.requestBody,
11563
+ mediaType: "application/json"
11564
+ });
11565
+ }
11566
+ /**
11567
+ * get the calling user's share of one of their AI session artifacts
11568
+ * @param data The data for the request.
11569
+ * @param data.workspace
11570
+ * @param data.artifactId
11571
+ * @returns unknown the live share, if any, and how long shares last
11572
+ * @throws ApiError
11573
+ */
11574
+ static getAiArtifactShareStatus(data) {
11575
+ return request(OpenAPI, {
11576
+ method: "GET",
11577
+ url: "/w/{workspace}/ai/shared_artifacts/status",
11578
+ path: { workspace: data.workspace },
11579
+ query: { artifact_id: data.artifactId }
11580
+ });
11581
+ }
11582
+ /**
11583
+ * get a shared AI session artifact
11584
+ * @param data The data for the request.
11585
+ * @param data.workspace
11586
+ * @param data.id
11587
+ * @returns unknown the shared artifact
11588
+ * @throws ApiError
11589
+ */
11590
+ static getSharedAiArtifact(data) {
11591
+ return request(OpenAPI, {
11592
+ method: "GET",
11593
+ url: "/w/{workspace}/ai/shared_artifacts/get/{id}",
11594
+ path: {
11595
+ workspace: data.workspace,
11596
+ id: data.id
11597
+ }
11598
+ });
11599
+ }
11600
+ /**
11601
+ * stop sharing an AI session artifact
11602
+ * @param data The data for the request.
11603
+ * @param data.workspace
11604
+ * @param data.id
11605
+ * @returns string share deleted
11606
+ * @throws ApiError
11607
+ */
11608
+ static unshareAiArtifact(data) {
11609
+ return request(OpenAPI, {
11610
+ method: "DELETE",
11611
+ url: "/w/{workspace}/ai/shared_artifacts/delete/{id}",
11612
+ path: {
11613
+ workspace: data.workspace,
11614
+ id: data.id
11615
+ }
11616
+ });
11617
+ }
11274
11618
  };
11275
11619
  var TriggerService = class {
11276
11620
  /**
@@ -17346,4 +17690,4 @@ var HubPublishService = class {
17346
17690
  };
17347
17691
 
17348
17692
  //#endregion
17349
- export { AdminService, AgentWorkersService, AiEvalsService, AiService, AmqpTriggerService, AppService, AssetService, AuditService, AzureTriggerService, CaptureService, ConcurrencyGroupsService, ConfigService, DataMetricService, DbtService, DocumentationService, DraftService, EmailTriggerService, FavoriteService, FlowConversationsService, FlowService, FolderService, GcpTriggerService, GitSyncService, GranularAclService, GroupService, HealthService, HelpersService, HttpTriggerService, HubPublishService, IndexSearchService, InputService, IntegrationService, JobService, KafkaTriggerService, McpOauthService, McpService, MetricsService, MqttTriggerService, NativeTriggerService, NatsTriggerService, NpmProxyService, OauthService, OidcService, OpenapiService, PathAutocompleteService, PostgresTriggerService, RawAppService, ResourceService, ScheduleService, ScriptService, ServiceLogsService, SettingService, SettingsService, SqsTriggerService, TeamsService, TokenService, TriggerService, UserService, VariableService, VolumeService, WebsocketTriggerService, WorkerService, WorkspaceDependenciesService, WorkspaceIntegrationService, WorkspaceService };
17693
+ export { AdminService, AgentWorkersService, AiEvalsService, AiService, AmqpTriggerService, AppService, AssetService, AuditService, AzureTriggerService, CaptureService, ConcurrencyGroupsService, ConfigService, DataMetricService, DbtService, DocumentationService, DraftService, EmailTriggerService, FavoriteService, FlowConversationsService, FlowService, FolderService, GcpTriggerService, GitSyncService, GranularAclService, GroupService, HealthService, HelpersService, HttpTriggerService, HubPublishService, IndexSearchService, InputService, IntegrationService, JobService, KafkaTriggerService, McpOauthService, McpService, MetricsService, MqttTriggerService, NativeTriggerService, NatsTriggerService, NpmProxyService, OauthService, OidcService, OpenapiService, PathAutocompleteService, PostgresTriggerService, RawAppService, ResourceService, ScheduleService, ScriptService, ServiceLogsService, SettingService, SettingsService, SqsTriggerService, TeamsService, TokenService, TrashService, TriggerService, UserService, VariableService, VolumeService, WebsocketTriggerService, WorkerService, WorkspaceDependenciesService, WorkspaceIntegrationService, WorkspaceService };