windmill-client 1.846.1 → 1.848.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.
@@ -2547,6 +2547,23 @@ var WorkspaceService = class {
2547
2547
  });
2548
2548
  }
2549
2549
  /**
2550
+ * set the signing secret of the workspace's own slack app
2551
+ * @param data The data for the request.
2552
+ * @param data.workspace
2553
+ * @param data.requestBody The Slack app's signing secret, null or empty to remove it
2554
+ * @returns string status
2555
+ * @throws ApiError
2556
+ */
2557
+ static setWorkspaceSlackSigningSecret(data) {
2558
+ return request(OpenAPI, {
2559
+ method: "POST",
2560
+ url: "/w/{workspace}/workspaces/slack_signing_secret",
2561
+ path: { workspace: data.workspace },
2562
+ body: data.requestBody,
2563
+ mediaType: "application/json"
2564
+ });
2565
+ }
2566
+ /**
2550
2567
  * edit teams command
2551
2568
  * @param data The data for the request.
2552
2569
  * @param data.workspace
@@ -2816,6 +2833,23 @@ var WorkspaceService = class {
2816
2833
  });
2817
2834
  }
2818
2835
  /**
2836
+ * edit variable expiration handler
2837
+ * @param data The data for the request.
2838
+ * @param data.workspace
2839
+ * @param data.requestBody WorkspaceVariableExpirationHandler
2840
+ * @returns string status
2841
+ * @throws ApiError
2842
+ */
2843
+ static editVariableExpirationHandler(data) {
2844
+ return request(OpenAPI, {
2845
+ method: "POST",
2846
+ url: "/w/{workspace}/workspaces/edit_variable_expiration_handler",
2847
+ path: { workspace: data.workspace },
2848
+ body: data.requestBody,
2849
+ mediaType: "application/json"
2850
+ });
2851
+ }
2852
+ /**
2819
2853
  * edit success handler
2820
2854
  * @param data The data for the request.
2821
2855
  * @param data.workspace
@@ -13831,7 +13865,7 @@ var WorkspaceIntegrationService = class {
13831
13865
  * @param data The data for the request.
13832
13866
  * @param data.workspace
13833
13867
  * @param data.serviceName
13834
- * @param data.requestBody redirect_uri
13868
+ * @param data.requestBody redirect_uri, and where to save the connection (defaults to u/{caller}/native_{resource_type}). Uses the workspace OAuth client, or the instance one when the instance shares it.
13835
13869
  * @returns string native trigger service connect url
13836
13870
  * @throws ApiError
13837
13871
  */
@@ -13866,18 +13900,56 @@ var WorkspaceIntegrationService = class {
13866
13900
  });
13867
13901
  }
13868
13902
  /**
13869
- * generate connect url using instance-level credentials
13903
+ * list the native trigger connections of a service the caller can use
13904
+ * @param data The data for the request.
13905
+ * @param data.workspace
13906
+ * @param data.serviceName
13907
+ * @returns NativeTriggerConnection connections
13908
+ * @throws ApiError
13909
+ */
13910
+ static listNativeTriggerConnections(data) {
13911
+ return request(OpenAPI, {
13912
+ method: "GET",
13913
+ url: "/w/{workspace}/native_triggers/integrations/{service_name}/connections",
13914
+ path: {
13915
+ workspace: data.workspace,
13916
+ service_name: data.serviceName
13917
+ }
13918
+ });
13919
+ }
13920
+ /**
13921
+ * disconnect a native trigger connection and delete the triggers using it
13922
+ * @param data The data for the request.
13923
+ * @param data.workspace
13924
+ * @param data.serviceName
13925
+ * @param data.path
13926
+ * @returns string connection deleted
13927
+ * @throws ApiError
13928
+ */
13929
+ static deleteNativeTriggerConnection(data) {
13930
+ return request(OpenAPI, {
13931
+ method: "DELETE",
13932
+ url: "/w/{workspace}/native_triggers/integrations/{service_name}/connections/delete",
13933
+ path: {
13934
+ workspace: data.workspace,
13935
+ service_name: data.serviceName
13936
+ },
13937
+ query: { path: data.path }
13938
+ });
13939
+ }
13940
+ /**
13941
+ * share a connection of this service with every member of the workspace (admin only), or stop sharing
13870
13942
  * @param data The data for the request.
13871
13943
  * @param data.workspace
13872
13944
  * @param data.serviceName
13873
- * @param data.requestBody redirect_uri
13874
- * @returns string authorization URL using instance credentials
13945
+ * @param data.requestBody
13946
+ * @returns string workspace connection updated
13875
13947
  * @throws ApiError
13876
13948
  */
13877
- static generateInstanceConnectUrl(data) {
13949
+ static setNativeTriggerWorkspaceConnection(data) {
13878
13950
  return request(OpenAPI, {
13879
13951
  method: "POST",
13880
- url: "/w/{workspace}/native_triggers/integrations/{service_name}/generate_instance_connect_url",
13952
+ url: "/w/{workspace}/native_triggers/integrations/{service_name}/workspace_connection",
13881
13953
  path: {
13882
13954
  workspace: data.workspace,
13883
13955
  service_name: data.serviceName
@@ -13910,7 +13982,7 @@ var WorkspaceIntegrationService = class {
13910
13982
  * @param data.workspace
13911
13983
  * @param data.serviceName
13912
13984
  * @param data.requestBody OAuth callback data
13913
- * @returns string native trigger service oauth completed
13985
+ * @returns string path of the saved connection
13914
13986
  * @throws ApiError
13915
13987
  */
13916
13988
  static nativeTriggerServiceCallback(data) {
@@ -14131,6 +14203,7 @@ var NativeTriggerService = class {
14131
14203
  * list available NextCloud events
14132
14204
  * @param data The data for the request.
14133
14205
  * @param data.workspace
14206
+ * @param data.connectionPath Connection to browse through; defaults to the caller's only usable one
14134
14207
  * @returns NextCloudEventType list of available NextCloud events
14135
14208
  * @throws ApiError
14136
14209
  */
@@ -14138,13 +14211,15 @@ var NativeTriggerService = class {
14138
14211
  return request(OpenAPI, {
14139
14212
  method: "GET",
14140
14213
  url: "/w/{workspace}/native_triggers/nextcloud/events",
14141
- path: { workspace: data.workspace }
14214
+ path: { workspace: data.workspace },
14215
+ query: { connection_path: data.connectionPath }
14142
14216
  });
14143
14217
  }
14144
14218
  /**
14145
14219
  * list Google Calendars for the authenticated user
14146
14220
  * @param data The data for the request.
14147
14221
  * @param data.workspace
14222
+ * @param data.connectionPath Connection to browse through; defaults to the caller's only usable one
14148
14223
  * @returns GoogleCalendarEntry list of Google Calendars
14149
14224
  * @throws ApiError
14150
14225
  */
@@ -14152,13 +14227,15 @@ var NativeTriggerService = class {
14152
14227
  return request(OpenAPI, {
14153
14228
  method: "GET",
14154
14229
  url: "/w/{workspace}/native_triggers/google/calendars",
14155
- path: { workspace: data.workspace }
14230
+ path: { workspace: data.workspace },
14231
+ query: { connection_path: data.connectionPath }
14156
14232
  });
14157
14233
  }
14158
14234
  /**
14159
14235
  * list or search Google Drive files
14160
14236
  * @param data The data for the request.
14161
14237
  * @param data.workspace
14238
+ * @param data.connectionPath Connection to browse through; defaults to the caller's only usable one
14162
14239
  * @param data.q search query to filter files by name
14163
14240
  * @param data.parentId folder ID to list children of
14164
14241
  * @param data.pageToken token for next page of results
@@ -14172,6 +14249,7 @@ var NativeTriggerService = class {
14172
14249
  url: "/w/{workspace}/native_triggers/google/drive/files",
14173
14250
  path: { workspace: data.workspace },
14174
14251
  query: {
14252
+ connection_path: data.connectionPath,
14175
14253
  q: data.q,
14176
14254
  parent_id: data.parentId,
14177
14255
  page_token: data.pageToken,
@@ -14183,6 +14261,7 @@ var NativeTriggerService = class {
14183
14261
  * list shared drives accessible to the user
14184
14262
  * @param data The data for the request.
14185
14263
  * @param data.workspace
14264
+ * @param data.connectionPath Connection to browse through; defaults to the caller's only usable one
14186
14265
  * @returns SharedDriveEntry list of shared drives
14187
14266
  * @throws ApiError
14188
14267
  */
@@ -14190,13 +14269,15 @@ var NativeTriggerService = class {
14190
14269
  return request(OpenAPI, {
14191
14270
  method: "GET",
14192
14271
  url: "/w/{workspace}/native_triggers/google/drive/shared_drives",
14193
- path: { workspace: data.workspace }
14272
+ path: { workspace: data.workspace },
14273
+ query: { connection_path: data.connectionPath }
14194
14274
  });
14195
14275
  }
14196
14276
  /**
14197
14277
  * list GitHub repositories accessible to the user
14198
14278
  * @param data The data for the request.
14199
14279
  * @param data.workspace
14280
+ * @param data.connectionPath Connection to browse through; defaults to the caller's only usable one
14200
14281
  * @returns GithubRepoEntry list of GitHub repositories
14201
14282
  * @throws ApiError
14202
14283
  */
@@ -14204,7 +14285,8 @@ var NativeTriggerService = class {
14204
14285
  return request(OpenAPI, {
14205
14286
  method: "GET",
14206
14287
  url: "/w/{workspace}/native_triggers/github/repos",
14207
- path: { workspace: data.workspace }
14288
+ path: { workspace: data.workspace },
14289
+ query: { connection_path: data.connectionPath }
14208
14290
  });
14209
14291
  }
14210
14292
  /**
@@ -16318,6 +16400,23 @@ var ConfigService = class {
16318
16400
  });
16319
16401
  }
16320
16402
  /**
16403
+ * Run an autoscaling integration once for a worker group, without recording an autoscaling event
16404
+ * @param data The data for the request.
16405
+ * @param data.workerGroup
16406
+ * @param data.requestBody
16407
+ * @returns unknown The job queued for a script integration
16408
+ * @throws ApiError
16409
+ */
16410
+ static testAutoscaling(data) {
16411
+ return request(OpenAPI, {
16412
+ method: "POST",
16413
+ url: "/configs/test_autoscaling/{worker_group}",
16414
+ path: { worker_group: data.workerGroup },
16415
+ body: data.requestBody,
16416
+ mediaType: "application/json"
16417
+ });
16418
+ }
16419
+ /**
16321
16420
  * Check Kubernetes autoscaling health for a worker group
16322
16421
  * @returns unknown Kubernetes autoscaling is healthy
16323
16422
  * @throws ApiError