windmill-client 1.689.0 → 1.691.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.
@@ -29,7 +29,7 @@ const OpenAPI = {
29
29
  PASSWORD: void 0,
30
30
  TOKEN: getEnv("WM_TOKEN"),
31
31
  USERNAME: void 0,
32
- VERSION: "1.689.0",
32
+ VERSION: "1.691.0",
33
33
  WITH_CREDENTIALS: true,
34
34
  interceptors: {
35
35
  request: new Interceptors(),
package/dist/index.js CHANGED
@@ -126,7 +126,7 @@ const OpenAPI = {
126
126
  PASSWORD: void 0,
127
127
  TOKEN: getEnv$1("WM_TOKEN"),
128
128
  USERNAME: void 0,
129
- VERSION: "1.689.0",
129
+ VERSION: "1.691.0",
130
130
  WITH_CREDENTIALS: true,
131
131
  interceptors: {
132
132
  request: new Interceptors(),
@@ -2302,6 +2302,23 @@ var WorkspaceService = class {
2302
2302
  });
2303
2303
  }
2304
2304
  /**
2305
+ * connect slack (non-interactive; pre-minted bot token)
2306
+ * @param data The data for the request.
2307
+ * @param data.workspace
2308
+ * @param data.requestBody connect slack with a pre-minted bot token
2309
+ * @returns unknown status
2310
+ * @throws ApiError
2311
+ */
2312
+ static connectSlack(data) {
2313
+ return request(OpenAPI, {
2314
+ method: "POST",
2315
+ url: "/w/{workspace}/workspaces/connect_slack",
2316
+ path: { workspace: data.workspace },
2317
+ body: data.requestBody,
2318
+ mediaType: "application/json"
2319
+ });
2320
+ }
2321
+ /**
2305
2322
  * run a job that sends a message to Slack
2306
2323
  * @param data The data for the request.
2307
2324
  * @param data.workspace
@@ -4040,6 +4057,21 @@ var OauthService = class {
4040
4057
  });
4041
4058
  }
4042
4059
  /**
4060
+ * connect slack instance (non-interactive; pre-minted bot token)
4061
+ * @param data The data for the request.
4062
+ * @param data.requestBody connect slack at the instance level with a pre-minted bot token
4063
+ * @returns unknown status
4064
+ * @throws ApiError
4065
+ */
4066
+ static connectSlackInstance(data) {
4067
+ return request(OpenAPI, {
4068
+ method: "POST",
4069
+ url: "/oauth/connect_slack_instance",
4070
+ body: data.requestBody,
4071
+ mediaType: "application/json"
4072
+ });
4073
+ }
4074
+ /**
4043
4075
  * connect callback
4044
4076
  * @param data The data for the request.
4045
4077
  * @param data.clientName
@@ -5945,6 +5977,9 @@ var ScriptService = class {
5945
5977
  }
5946
5978
  /**
5947
5979
  * create script
5980
+ * Creates a new script when the path does not already exist.
5981
+ * Creates a new version of an existing script when called with the same path and the current `parent_hash`.
5982
+ *
5948
5983
  * @param data The data for the request.
5949
5984
  * @param data.workspace
5950
5985
  * @param data.requestBody Partially filled script
@@ -8270,6 +8305,7 @@ var JobService = class {
8270
8305
  * @param data.id
8271
8306
  * @param data.noLogs
8272
8307
  * @param data.noCode
8308
+ * @param data.approvalToken Approval token granting read access to the job when not logged in. The token must be the one issued for this job's flow (i.e. the flow id used when generating the approval URL).
8273
8309
  * @returns Job job details
8274
8310
  * @throws ApiError
8275
8311
  */
@@ -8283,7 +8319,8 @@ var JobService = class {
8283
8319
  },
8284
8320
  query: {
8285
8321
  no_logs: data.noLogs,
8286
- no_code: data.noCode
8322
+ no_code: data.noCode,
8323
+ approval_token: data.approvalToken
8287
8324
  }
8288
8325
  });
8289
8326
  }
@@ -9189,7 +9226,7 @@ var FlowConversationsService = class {
9189
9226
  * @param data.conversationId conversation id
9190
9227
  * @param data.page which page to return (start at 1, default 1)
9191
9228
  * @param data.perPage number of items to return for a given page (default 30, max 100)
9192
- * @param data.afterId id to fetch only the messages after that id
9229
+ * @param data.afterSeq Message sequence cursor to fetch only the messages after that cursor
9193
9230
  * @returns FlowConversationMessage conversation messages
9194
9231
  * @throws ApiError
9195
9232
  */
@@ -9204,7 +9241,7 @@ var FlowConversationsService = class {
9204
9241
  query: {
9205
9242
  page: data.page,
9206
9243
  per_page: data.perPage,
9207
- after_id: data.afterId
9244
+ after_seq: data.afterSeq
9208
9245
  }
9209
9246
  });
9210
9247
  }
@@ -11217,6 +11254,263 @@ var GcpTriggerService = class {
11217
11254
  });
11218
11255
  }
11219
11256
  };
11257
+ var AzureTriggerService = class {
11258
+ /**
11259
+ * create an Azure Event Grid trigger
11260
+ * @param data The data for the request.
11261
+ * @param data.workspace
11262
+ * @param data.requestBody
11263
+ * @returns string azure trigger created
11264
+ * @throws ApiError
11265
+ */
11266
+ static createAzureTrigger(data) {
11267
+ return request(OpenAPI, {
11268
+ method: "POST",
11269
+ url: "/w/{workspace}/azure_triggers/create",
11270
+ path: { workspace: data.workspace },
11271
+ body: data.requestBody,
11272
+ mediaType: "application/json"
11273
+ });
11274
+ }
11275
+ /**
11276
+ * update an Azure Event Grid trigger
11277
+ * @param data The data for the request.
11278
+ * @param data.workspace
11279
+ * @param data.path
11280
+ * @param data.requestBody
11281
+ * @returns string azure trigger updated
11282
+ * @throws ApiError
11283
+ */
11284
+ static updateAzureTrigger(data) {
11285
+ return request(OpenAPI, {
11286
+ method: "POST",
11287
+ url: "/w/{workspace}/azure_triggers/update/{path}",
11288
+ path: {
11289
+ workspace: data.workspace,
11290
+ path: data.path
11291
+ },
11292
+ body: data.requestBody,
11293
+ mediaType: "application/json"
11294
+ });
11295
+ }
11296
+ /**
11297
+ * delete an Azure Event Grid trigger
11298
+ * @param data The data for the request.
11299
+ * @param data.workspace
11300
+ * @param data.path
11301
+ * @returns string azure trigger deleted
11302
+ * @throws ApiError
11303
+ */
11304
+ static deleteAzureTrigger(data) {
11305
+ return request(OpenAPI, {
11306
+ method: "DELETE",
11307
+ url: "/w/{workspace}/azure_triggers/delete/{path}",
11308
+ path: {
11309
+ workspace: data.workspace,
11310
+ path: data.path
11311
+ }
11312
+ });
11313
+ }
11314
+ /**
11315
+ * get an Azure Event Grid trigger
11316
+ * @param data The data for the request.
11317
+ * @param data.workspace
11318
+ * @param data.path
11319
+ * @returns AzureTrigger azure trigger
11320
+ * @throws ApiError
11321
+ */
11322
+ static getAzureTrigger(data) {
11323
+ return request(OpenAPI, {
11324
+ method: "GET",
11325
+ url: "/w/{workspace}/azure_triggers/get/{path}",
11326
+ path: {
11327
+ workspace: data.workspace,
11328
+ path: data.path
11329
+ }
11330
+ });
11331
+ }
11332
+ /**
11333
+ * list azure triggers
11334
+ * @param data The data for the request.
11335
+ * @param data.workspace
11336
+ * @param data.page which page to return (start at 1, default 1)
11337
+ * @param data.perPage number of items to return for a given page (default 30, max 100)
11338
+ * @param data.path filter by exact path
11339
+ * @param data.isFlow
11340
+ * @param data.pathStart
11341
+ * @returns AzureTrigger azure trigger list
11342
+ * @throws ApiError
11343
+ */
11344
+ static listAzureTriggers(data) {
11345
+ return request(OpenAPI, {
11346
+ method: "GET",
11347
+ url: "/w/{workspace}/azure_triggers/list",
11348
+ path: { workspace: data.workspace },
11349
+ query: {
11350
+ page: data.page,
11351
+ per_page: data.perPage,
11352
+ path: data.path,
11353
+ is_flow: data.isFlow,
11354
+ path_start: data.pathStart
11355
+ }
11356
+ });
11357
+ }
11358
+ /**
11359
+ * check whether an azure trigger exists
11360
+ * @param data The data for the request.
11361
+ * @param data.workspace
11362
+ * @param data.path
11363
+ * @returns boolean true/false
11364
+ * @throws ApiError
11365
+ */
11366
+ static existsAzureTrigger(data) {
11367
+ return request(OpenAPI, {
11368
+ method: "GET",
11369
+ url: "/w/{workspace}/azure_triggers/exists/{path}",
11370
+ path: {
11371
+ workspace: data.workspace,
11372
+ path: data.path
11373
+ }
11374
+ });
11375
+ }
11376
+ /**
11377
+ * set azure trigger mode
11378
+ * @param data The data for the request.
11379
+ * @param data.workspace
11380
+ * @param data.path
11381
+ * @param data.requestBody
11382
+ * @returns string trigger mode updated
11383
+ * @throws ApiError
11384
+ */
11385
+ static setAzureTriggerMode(data) {
11386
+ return request(OpenAPI, {
11387
+ method: "POST",
11388
+ url: "/w/{workspace}/azure_triggers/setmode/{path}",
11389
+ path: {
11390
+ workspace: data.workspace,
11391
+ path: data.path
11392
+ },
11393
+ body: data.requestBody,
11394
+ mediaType: "application/json"
11395
+ });
11396
+ }
11397
+ /**
11398
+ * test Azure service principal connection
11399
+ * @param data The data for the request.
11400
+ * @param data.workspace
11401
+ * @param data.requestBody
11402
+ * @returns string connection successful
11403
+ * @throws ApiError
11404
+ */
11405
+ static testAzureConnection(data) {
11406
+ return request(OpenAPI, {
11407
+ method: "POST",
11408
+ url: "/w/{workspace}/azure_triggers/test",
11409
+ path: { workspace: data.workspace },
11410
+ body: data.requestBody,
11411
+ mediaType: "application/json"
11412
+ });
11413
+ }
11414
+ /**
11415
+ * list topics under an Event Grid Namespace
11416
+ * @param data The data for the request.
11417
+ * @param data.workspace
11418
+ * @param data.path
11419
+ * @param data.requestBody
11420
+ * @returns unknown topic list
11421
+ * @throws ApiError
11422
+ */
11423
+ static listAzureNamespaceTopics(data) {
11424
+ return request(OpenAPI, {
11425
+ method: "POST",
11426
+ url: "/w/{workspace}/azure_triggers/namespaces/topics/list/{path}",
11427
+ path: {
11428
+ workspace: data.workspace,
11429
+ path: data.path
11430
+ },
11431
+ body: data.requestBody,
11432
+ mediaType: "application/json"
11433
+ });
11434
+ }
11435
+ /**
11436
+ * list subscriptions under a Namespace topic
11437
+ * @param data The data for the request.
11438
+ * @param data.workspace
11439
+ * @param data.path
11440
+ * @param data.requestBody
11441
+ * @returns unknown subscription list
11442
+ * @throws ApiError
11443
+ */
11444
+ static listAzureNamespaceSubscriptions(data) {
11445
+ return request(OpenAPI, {
11446
+ method: "POST",
11447
+ url: "/w/{workspace}/azure_triggers/namespaces/subscriptions/list/{path}",
11448
+ path: {
11449
+ workspace: data.workspace,
11450
+ path: data.path
11451
+ },
11452
+ body: data.requestBody,
11453
+ mediaType: "application/json"
11454
+ });
11455
+ }
11456
+ /**
11457
+ * delete an Event Grid subscription on Azure
11458
+ * @param data The data for the request.
11459
+ * @param data.workspace
11460
+ * @param data.path
11461
+ * @param data.requestBody
11462
+ * @returns string subscription deleted
11463
+ * @throws ApiError
11464
+ */
11465
+ static deleteAzureSubscription(data) {
11466
+ return request(OpenAPI, {
11467
+ method: "DELETE",
11468
+ url: "/w/{workspace}/azure_triggers/subscriptions/delete/{path}",
11469
+ path: {
11470
+ workspace: data.workspace,
11471
+ path: data.path
11472
+ },
11473
+ body: data.requestBody,
11474
+ mediaType: "application/json"
11475
+ });
11476
+ }
11477
+ /**
11478
+ * list Event Grid Namespaces the service principal can access
11479
+ * @param data The data for the request.
11480
+ * @param data.workspace
11481
+ * @param data.path
11482
+ * @returns AzureArmResource namespace list
11483
+ * @throws ApiError
11484
+ */
11485
+ static listAzureNamespaces(data) {
11486
+ return request(OpenAPI, {
11487
+ method: "POST",
11488
+ url: "/w/{workspace}/azure_triggers/namespaces/list/{path}",
11489
+ path: {
11490
+ workspace: data.workspace,
11491
+ path: data.path
11492
+ }
11493
+ });
11494
+ }
11495
+ /**
11496
+ * list Basic Event Grid topics + system topics the service principal can access
11497
+ * @param data The data for the request.
11498
+ * @param data.workspace
11499
+ * @param data.path
11500
+ * @returns AzureArmResource topic list
11501
+ * @throws ApiError
11502
+ */
11503
+ static listAzureBasicTopics(data) {
11504
+ return request(OpenAPI, {
11505
+ method: "POST",
11506
+ url: "/w/{workspace}/azure_triggers/basic/topics/list/{path}",
11507
+ path: {
11508
+ workspace: data.workspace,
11509
+ path: data.path
11510
+ }
11511
+ });
11512
+ }
11513
+ };
11220
11514
  var PostgresTriggerService = class {
11221
11515
  /**
11222
11516
  * get postgres version
@@ -15557,6 +15851,7 @@ exports.ApiError = ApiError;
15557
15851
  exports.AppService = AppService;
15558
15852
  exports.AssetService = AssetService;
15559
15853
  exports.AuditService = AuditService;
15854
+ exports.AzureTriggerService = AzureTriggerService;
15560
15855
  exports.CancelError = CancelError;
15561
15856
  exports.CancelablePromise = CancelablePromise;
15562
15857
  exports.CaptureService = CaptureService;
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { ApiError } from "./core/ApiError.mjs";
2
2
  import { CancelError, CancelablePromise } from "./core/CancelablePromise.mjs";
3
3
  import { OpenAPI } from "./core/OpenAPI.mjs";
4
- import { AdminService, AgentWorkersService, AppService, AssetService, AuditService, CaptureService, ConcurrencyGroupsService, ConfigService, DocumentationService, DraftService, EmailTriggerService, FavoriteService, FlowConversationsService, FlowService, FolderService, GcpTriggerService, GitSyncService, GranularAclService, GroupService, HealthService, HelpersService, HttpTriggerService, 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 } from "./services.gen.mjs";
4
+ import { AdminService, AgentWorkersService, AppService, AssetService, AuditService, AzureTriggerService, CaptureService, ConcurrencyGroupsService, ConfigService, DocumentationService, DraftService, EmailTriggerService, FavoriteService, FlowConversationsService, FlowService, FolderService, GcpTriggerService, GitSyncService, GranularAclService, GroupService, HealthService, HelpersService, HttpTriggerService, 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 } from "./services.gen.mjs";
5
5
  import { datatable, ducklake } from "./sqlUtils.mjs";
6
6
  import { SHARED_FOLDER, StepSuspend, WorkflowCtx, _workflowCtx, appendToResultStream, base64ToUint8Array, commitKafkaOffsets, databaseUrlFromResource, denoS3LightClientSettings, getFlowUserState, getIdToken, getInternalState, getPresignedS3PublicUrl, getPresignedS3PublicUrls, getProgress, getResource, getResult, getResultMaybe, getResumeEndpoints, getResumeUrls, getRootJobId, getState, getStatePath, getVariable, getWorkspace, loadS3File, loadS3FileStream, parallel, parseS3Object, requestInteractiveSlackApproval, requestInteractiveTeamsApproval, resolveDefaultResource, runFlow, runFlowAsync, runScript, runScriptAsync, runScriptByHash, runScriptByHashAsync, runScriptByPath, runScriptByPathAsync, setClient, setFlowUserState, setInternalState, setProgress, setResource, setState, setVariable, setWorkflowCtx, signS3Object, signS3Objects, sleep, step, streamResult, task, taskFlow, taskScript, uint8ArrayToBase64, usernameToEmail, waitForApproval, waitJob, workflow, writeS3File } from "./client.mjs";
7
7
 
@@ -89,4 +89,4 @@ const wmill = {
89
89
  var src_default = wmill;
90
90
 
91
91
  //#endregion
92
- export { AdminService, AgentWorkersService, ApiError, AppService, AssetService, AuditService, CancelError, CancelablePromise, CaptureService, ConcurrencyGroupsService, ConfigService, DocumentationService, DraftService, EmailTriggerService, FavoriteService, FlowConversationsService, FlowService, FolderService, GcpTriggerService, GitSyncService, GranularAclService, GroupService, HealthService, HelpersService, HttpTriggerService, IndexSearchService, InputService, IntegrationService, JobService, KafkaTriggerService, McpOauthService, McpService, MetricsService, MqttTriggerService, NativeTriggerService, NatsTriggerService, NpmProxyService, OauthService, OidcService, OpenAPI, OpenapiService, PathAutocompleteService, PostgresTriggerService, RawAppService, ResourceService, ScheduleService, ScriptService, ServiceLogsService, SettingService, SettingsService, SqsTriggerService, StepSuspend, TeamsService, TokenService, TriggerService, UserService, VariableService, VolumeService, WebsocketTriggerService, WorkerService, WorkflowCtx, WorkspaceDependenciesService, WorkspaceIntegrationService, WorkspaceService, _workflowCtx, appendToResultStream, commitKafkaOffsets, datatable, src_default as default, denoS3LightClientSettings, ducklake, getFlowUserState, getIdToken, getPresignedS3PublicUrl, getPresignedS3PublicUrls, getProgress, getResource, getResumeUrls, getRootJobId, getState, getVariable, loadS3File, loadS3FileStream, parallel, requestInteractiveSlackApproval, requestInteractiveTeamsApproval, runFlow, runFlowAsync, runScript, runScriptAsync, runScriptByHash, runScriptByHashAsync, runScriptByPath, runScriptByPathAsync, setClient, setFlowUserState, setProgress, setResource, setState, setVariable, setWorkflowCtx, signS3Object, signS3Objects, sleep, step, streamResult, task, taskFlow, taskScript, usernameToEmail, waitForApproval, waitJob, workflow, writeS3File };
92
+ export { AdminService, AgentWorkersService, ApiError, AppService, AssetService, AuditService, AzureTriggerService, CancelError, CancelablePromise, CaptureService, ConcurrencyGroupsService, ConfigService, DocumentationService, DraftService, EmailTriggerService, FavoriteService, FlowConversationsService, FlowService, FolderService, GcpTriggerService, GitSyncService, GranularAclService, GroupService, HealthService, HelpersService, HttpTriggerService, IndexSearchService, InputService, IntegrationService, JobService, KafkaTriggerService, McpOauthService, McpService, MetricsService, MqttTriggerService, NativeTriggerService, NatsTriggerService, NpmProxyService, OauthService, OidcService, OpenAPI, OpenapiService, PathAutocompleteService, PostgresTriggerService, RawAppService, ResourceService, ScheduleService, ScriptService, ServiceLogsService, SettingService, SettingsService, SqsTriggerService, StepSuspend, TeamsService, TokenService, TriggerService, UserService, VariableService, VolumeService, WebsocketTriggerService, WorkerService, WorkflowCtx, WorkspaceDependenciesService, WorkspaceIntegrationService, WorkspaceService, _workflowCtx, appendToResultStream, commitKafkaOffsets, datatable, src_default as default, denoS3LightClientSettings, ducklake, getFlowUserState, getIdToken, getPresignedS3PublicUrl, getPresignedS3PublicUrls, getProgress, getResource, getResumeUrls, getRootJobId, getState, getVariable, loadS3File, loadS3FileStream, parallel, requestInteractiveSlackApproval, requestInteractiveTeamsApproval, runFlow, runFlowAsync, runScript, runScriptAsync, runScriptByHash, runScriptByHashAsync, runScriptByPath, runScriptByPathAsync, setClient, setFlowUserState, setProgress, setResource, setState, setVariable, setWorkflowCtx, signS3Object, signS3Objects, sleep, step, streamResult, task, taskFlow, taskScript, usernameToEmail, waitForApproval, waitJob, workflow, writeS3File };