windmill-client 1.688.0 → 1.690.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.688.0",
32
+ VERSION: "1.690.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.688.0",
129
+ VERSION: "1.690.0",
130
130
  WITH_CREDENTIALS: true,
131
131
  interceptors: {
132
132
  request: new Interceptors(),
@@ -5945,6 +5945,9 @@ var ScriptService = class {
5945
5945
  }
5946
5946
  /**
5947
5947
  * create script
5948
+ * Creates a new script when the path does not already exist.
5949
+ * Creates a new version of an existing script when called with the same path and the current `parent_hash`.
5950
+ *
5948
5951
  * @param data The data for the request.
5949
5952
  * @param data.workspace
5950
5953
  * @param data.requestBody Partially filled script
@@ -7600,6 +7603,40 @@ var JobService = class {
7600
7603
  });
7601
7604
  }
7602
7605
  /**
7606
+ * queue a one-off dependencies job and return the job uuid
7607
+ * @param data The data for the request.
7608
+ * @param data.workspace
7609
+ * @param data.requestBody raw script content
7610
+ * @returns string dependency job created
7611
+ * @throws ApiError
7612
+ */
7613
+ static runRawScriptDependenciesAsync(data) {
7614
+ return request(OpenAPI, {
7615
+ method: "POST",
7616
+ url: "/w/{workspace}/jobs/run/dependencies_async",
7617
+ path: { workspace: data.workspace },
7618
+ body: data.requestBody,
7619
+ mediaType: "application/json"
7620
+ });
7621
+ }
7622
+ /**
7623
+ * queue a one-off flow dependencies job and return the job uuid
7624
+ * @param data The data for the request.
7625
+ * @param data.workspace
7626
+ * @param data.requestBody flow value and path
7627
+ * @returns string flow dependencies job created
7628
+ * @throws ApiError
7629
+ */
7630
+ static runFlowDependenciesAsync(data) {
7631
+ return request(OpenAPI, {
7632
+ method: "POST",
7633
+ url: "/w/{workspace}/jobs/run/flow_dependencies_async",
7634
+ path: { workspace: data.workspace },
7635
+ body: data.requestBody,
7636
+ mediaType: "application/json"
7637
+ });
7638
+ }
7639
+ /**
7603
7640
  * run flow preview
7604
7641
  * @param data The data for the request.
7605
7642
  * @param data.workspace
@@ -8236,6 +8273,7 @@ var JobService = class {
8236
8273
  * @param data.id
8237
8274
  * @param data.noLogs
8238
8275
  * @param data.noCode
8276
+ * @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).
8239
8277
  * @returns Job job details
8240
8278
  * @throws ApiError
8241
8279
  */
@@ -8249,7 +8287,8 @@ var JobService = class {
8249
8287
  },
8250
8288
  query: {
8251
8289
  no_logs: data.noLogs,
8252
- no_code: data.noCode
8290
+ no_code: data.noCode,
8291
+ approval_token: data.approvalToken
8253
8292
  }
8254
8293
  });
8255
8294
  }
@@ -9107,7 +9146,7 @@ var JobService = class {
9107
9146
  });
9108
9147
  }
9109
9148
  };
9110
- var FlowConversationService = class {
9149
+ var FlowConversationsService = class {
9111
9150
  /**
9112
9151
  * list flow conversations
9113
9152
  * @param data The data for the request.
@@ -9155,7 +9194,7 @@ var FlowConversationService = class {
9155
9194
  * @param data.conversationId conversation id
9156
9195
  * @param data.page which page to return (start at 1, default 1)
9157
9196
  * @param data.perPage number of items to return for a given page (default 30, max 100)
9158
- * @param data.afterId id to fetch only the messages after that id
9197
+ * @param data.afterSeq Message sequence cursor to fetch only the messages after that cursor
9159
9198
  * @returns FlowConversationMessage conversation messages
9160
9199
  * @throws ApiError
9161
9200
  */
@@ -9170,7 +9209,7 @@ var FlowConversationService = class {
9170
9209
  query: {
9171
9210
  page: data.page,
9172
9211
  per_page: data.perPage,
9173
- after_id: data.afterId
9212
+ after_seq: data.afterSeq
9174
9213
  }
9175
9214
  });
9176
9215
  }
@@ -11183,6 +11222,263 @@ var GcpTriggerService = class {
11183
11222
  });
11184
11223
  }
11185
11224
  };
11225
+ var AzureTriggerService = class {
11226
+ /**
11227
+ * create an Azure Event Grid trigger
11228
+ * @param data The data for the request.
11229
+ * @param data.workspace
11230
+ * @param data.requestBody
11231
+ * @returns string azure trigger created
11232
+ * @throws ApiError
11233
+ */
11234
+ static createAzureTrigger(data) {
11235
+ return request(OpenAPI, {
11236
+ method: "POST",
11237
+ url: "/w/{workspace}/azure_triggers/create",
11238
+ path: { workspace: data.workspace },
11239
+ body: data.requestBody,
11240
+ mediaType: "application/json"
11241
+ });
11242
+ }
11243
+ /**
11244
+ * update an Azure Event Grid trigger
11245
+ * @param data The data for the request.
11246
+ * @param data.workspace
11247
+ * @param data.path
11248
+ * @param data.requestBody
11249
+ * @returns string azure trigger updated
11250
+ * @throws ApiError
11251
+ */
11252
+ static updateAzureTrigger(data) {
11253
+ return request(OpenAPI, {
11254
+ method: "POST",
11255
+ url: "/w/{workspace}/azure_triggers/update/{path}",
11256
+ path: {
11257
+ workspace: data.workspace,
11258
+ path: data.path
11259
+ },
11260
+ body: data.requestBody,
11261
+ mediaType: "application/json"
11262
+ });
11263
+ }
11264
+ /**
11265
+ * delete an Azure Event Grid trigger
11266
+ * @param data The data for the request.
11267
+ * @param data.workspace
11268
+ * @param data.path
11269
+ * @returns string azure trigger deleted
11270
+ * @throws ApiError
11271
+ */
11272
+ static deleteAzureTrigger(data) {
11273
+ return request(OpenAPI, {
11274
+ method: "DELETE",
11275
+ url: "/w/{workspace}/azure_triggers/delete/{path}",
11276
+ path: {
11277
+ workspace: data.workspace,
11278
+ path: data.path
11279
+ }
11280
+ });
11281
+ }
11282
+ /**
11283
+ * get an Azure Event Grid trigger
11284
+ * @param data The data for the request.
11285
+ * @param data.workspace
11286
+ * @param data.path
11287
+ * @returns AzureTrigger azure trigger
11288
+ * @throws ApiError
11289
+ */
11290
+ static getAzureTrigger(data) {
11291
+ return request(OpenAPI, {
11292
+ method: "GET",
11293
+ url: "/w/{workspace}/azure_triggers/get/{path}",
11294
+ path: {
11295
+ workspace: data.workspace,
11296
+ path: data.path
11297
+ }
11298
+ });
11299
+ }
11300
+ /**
11301
+ * list azure triggers
11302
+ * @param data The data for the request.
11303
+ * @param data.workspace
11304
+ * @param data.page which page to return (start at 1, default 1)
11305
+ * @param data.perPage number of items to return for a given page (default 30, max 100)
11306
+ * @param data.path filter by exact path
11307
+ * @param data.isFlow
11308
+ * @param data.pathStart
11309
+ * @returns AzureTrigger azure trigger list
11310
+ * @throws ApiError
11311
+ */
11312
+ static listAzureTriggers(data) {
11313
+ return request(OpenAPI, {
11314
+ method: "GET",
11315
+ url: "/w/{workspace}/azure_triggers/list",
11316
+ path: { workspace: data.workspace },
11317
+ query: {
11318
+ page: data.page,
11319
+ per_page: data.perPage,
11320
+ path: data.path,
11321
+ is_flow: data.isFlow,
11322
+ path_start: data.pathStart
11323
+ }
11324
+ });
11325
+ }
11326
+ /**
11327
+ * check whether an azure trigger exists
11328
+ * @param data The data for the request.
11329
+ * @param data.workspace
11330
+ * @param data.path
11331
+ * @returns boolean true/false
11332
+ * @throws ApiError
11333
+ */
11334
+ static existsAzureTrigger(data) {
11335
+ return request(OpenAPI, {
11336
+ method: "GET",
11337
+ url: "/w/{workspace}/azure_triggers/exists/{path}",
11338
+ path: {
11339
+ workspace: data.workspace,
11340
+ path: data.path
11341
+ }
11342
+ });
11343
+ }
11344
+ /**
11345
+ * set azure trigger mode
11346
+ * @param data The data for the request.
11347
+ * @param data.workspace
11348
+ * @param data.path
11349
+ * @param data.requestBody
11350
+ * @returns string trigger mode updated
11351
+ * @throws ApiError
11352
+ */
11353
+ static setAzureTriggerMode(data) {
11354
+ return request(OpenAPI, {
11355
+ method: "POST",
11356
+ url: "/w/{workspace}/azure_triggers/setmode/{path}",
11357
+ path: {
11358
+ workspace: data.workspace,
11359
+ path: data.path
11360
+ },
11361
+ body: data.requestBody,
11362
+ mediaType: "application/json"
11363
+ });
11364
+ }
11365
+ /**
11366
+ * test Azure service principal connection
11367
+ * @param data The data for the request.
11368
+ * @param data.workspace
11369
+ * @param data.requestBody
11370
+ * @returns string connection successful
11371
+ * @throws ApiError
11372
+ */
11373
+ static testAzureConnection(data) {
11374
+ return request(OpenAPI, {
11375
+ method: "POST",
11376
+ url: "/w/{workspace}/azure_triggers/test",
11377
+ path: { workspace: data.workspace },
11378
+ body: data.requestBody,
11379
+ mediaType: "application/json"
11380
+ });
11381
+ }
11382
+ /**
11383
+ * list topics under an Event Grid Namespace
11384
+ * @param data The data for the request.
11385
+ * @param data.workspace
11386
+ * @param data.path
11387
+ * @param data.requestBody
11388
+ * @returns unknown topic list
11389
+ * @throws ApiError
11390
+ */
11391
+ static listAzureNamespaceTopics(data) {
11392
+ return request(OpenAPI, {
11393
+ method: "POST",
11394
+ url: "/w/{workspace}/azure_triggers/namespaces/topics/list/{path}",
11395
+ path: {
11396
+ workspace: data.workspace,
11397
+ path: data.path
11398
+ },
11399
+ body: data.requestBody,
11400
+ mediaType: "application/json"
11401
+ });
11402
+ }
11403
+ /**
11404
+ * list subscriptions under a Namespace topic
11405
+ * @param data The data for the request.
11406
+ * @param data.workspace
11407
+ * @param data.path
11408
+ * @param data.requestBody
11409
+ * @returns unknown subscription list
11410
+ * @throws ApiError
11411
+ */
11412
+ static listAzureNamespaceSubscriptions(data) {
11413
+ return request(OpenAPI, {
11414
+ method: "POST",
11415
+ url: "/w/{workspace}/azure_triggers/namespaces/subscriptions/list/{path}",
11416
+ path: {
11417
+ workspace: data.workspace,
11418
+ path: data.path
11419
+ },
11420
+ body: data.requestBody,
11421
+ mediaType: "application/json"
11422
+ });
11423
+ }
11424
+ /**
11425
+ * delete an Event Grid subscription on Azure
11426
+ * @param data The data for the request.
11427
+ * @param data.workspace
11428
+ * @param data.path
11429
+ * @param data.requestBody
11430
+ * @returns string subscription deleted
11431
+ * @throws ApiError
11432
+ */
11433
+ static deleteAzureSubscription(data) {
11434
+ return request(OpenAPI, {
11435
+ method: "DELETE",
11436
+ url: "/w/{workspace}/azure_triggers/subscriptions/delete/{path}",
11437
+ path: {
11438
+ workspace: data.workspace,
11439
+ path: data.path
11440
+ },
11441
+ body: data.requestBody,
11442
+ mediaType: "application/json"
11443
+ });
11444
+ }
11445
+ /**
11446
+ * list Event Grid Namespaces the service principal can access
11447
+ * @param data The data for the request.
11448
+ * @param data.workspace
11449
+ * @param data.path
11450
+ * @returns AzureArmResource namespace list
11451
+ * @throws ApiError
11452
+ */
11453
+ static listAzureNamespaces(data) {
11454
+ return request(OpenAPI, {
11455
+ method: "POST",
11456
+ url: "/w/{workspace}/azure_triggers/namespaces/list/{path}",
11457
+ path: {
11458
+ workspace: data.workspace,
11459
+ path: data.path
11460
+ }
11461
+ });
11462
+ }
11463
+ /**
11464
+ * list Basic Event Grid topics + system topics the service principal can access
11465
+ * @param data The data for the request.
11466
+ * @param data.workspace
11467
+ * @param data.path
11468
+ * @returns AzureArmResource topic list
11469
+ * @throws ApiError
11470
+ */
11471
+ static listAzureBasicTopics(data) {
11472
+ return request(OpenAPI, {
11473
+ method: "POST",
11474
+ url: "/w/{workspace}/azure_triggers/basic/topics/list/{path}",
11475
+ path: {
11476
+ workspace: data.workspace,
11477
+ path: data.path
11478
+ }
11479
+ });
11480
+ }
11481
+ };
11186
11482
  var PostgresTriggerService = class {
11187
11483
  /**
11188
11484
  * get postgres version
@@ -15523,6 +15819,7 @@ exports.ApiError = ApiError;
15523
15819
  exports.AppService = AppService;
15524
15820
  exports.AssetService = AssetService;
15525
15821
  exports.AuditService = AuditService;
15822
+ exports.AzureTriggerService = AzureTriggerService;
15526
15823
  exports.CancelError = CancelError;
15527
15824
  exports.CancelablePromise = CancelablePromise;
15528
15825
  exports.CaptureService = CaptureService;
@@ -15532,7 +15829,7 @@ exports.DocumentationService = DocumentationService;
15532
15829
  exports.DraftService = DraftService;
15533
15830
  exports.EmailTriggerService = EmailTriggerService;
15534
15831
  exports.FavoriteService = FavoriteService;
15535
- exports.FlowConversationService = FlowConversationService;
15832
+ exports.FlowConversationsService = FlowConversationsService;
15536
15833
  exports.FlowService = FlowService;
15537
15834
  exports.FolderService = FolderService;
15538
15835
  exports.GcpTriggerService = GcpTriggerService;
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, FlowConversationService, 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, FlowConversationService, 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 };