windmill-client 1.689.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.689.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.689.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
@@ -8270,6 +8273,7 @@ var JobService = class {
8270
8273
  * @param data.id
8271
8274
  * @param data.noLogs
8272
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).
8273
8277
  * @returns Job job details
8274
8278
  * @throws ApiError
8275
8279
  */
@@ -8283,7 +8287,8 @@ var JobService = class {
8283
8287
  },
8284
8288
  query: {
8285
8289
  no_logs: data.noLogs,
8286
- no_code: data.noCode
8290
+ no_code: data.noCode,
8291
+ approval_token: data.approvalToken
8287
8292
  }
8288
8293
  });
8289
8294
  }
@@ -9189,7 +9194,7 @@ var FlowConversationsService = class {
9189
9194
  * @param data.conversationId conversation id
9190
9195
  * @param data.page which page to return (start at 1, default 1)
9191
9196
  * @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
9197
+ * @param data.afterSeq Message sequence cursor to fetch only the messages after that cursor
9193
9198
  * @returns FlowConversationMessage conversation messages
9194
9199
  * @throws ApiError
9195
9200
  */
@@ -9204,7 +9209,7 @@ var FlowConversationsService = class {
9204
9209
  query: {
9205
9210
  page: data.page,
9206
9211
  per_page: data.perPage,
9207
- after_id: data.afterId
9212
+ after_seq: data.afterSeq
9208
9213
  }
9209
9214
  });
9210
9215
  }
@@ -11217,6 +11222,263 @@ var GcpTriggerService = class {
11217
11222
  });
11218
11223
  }
11219
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
+ };
11220
11482
  var PostgresTriggerService = class {
11221
11483
  /**
11222
11484
  * get postgres version
@@ -15557,6 +15819,7 @@ exports.ApiError = ApiError;
15557
15819
  exports.AppService = AppService;
15558
15820
  exports.AssetService = AssetService;
15559
15821
  exports.AuditService = AuditService;
15822
+ exports.AzureTriggerService = AzureTriggerService;
15560
15823
  exports.CancelError = CancelError;
15561
15824
  exports.CancelablePromise = CancelablePromise;
15562
15825
  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 };