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.
@@ -5577,6 +5577,9 @@ var ScriptService = class {
5577
5577
  }
5578
5578
  /**
5579
5579
  * create script
5580
+ * Creates a new script when the path does not already exist.
5581
+ * Creates a new version of an existing script when called with the same path and the current `parent_hash`.
5582
+ *
5580
5583
  * @param data The data for the request.
5581
5584
  * @param data.workspace
5582
5585
  * @param data.requestBody Partially filled script
@@ -7232,6 +7235,40 @@ var JobService = class {
7232
7235
  });
7233
7236
  }
7234
7237
  /**
7238
+ * queue a one-off dependencies job and return the job uuid
7239
+ * @param data The data for the request.
7240
+ * @param data.workspace
7241
+ * @param data.requestBody raw script content
7242
+ * @returns string dependency job created
7243
+ * @throws ApiError
7244
+ */
7245
+ static runRawScriptDependenciesAsync(data) {
7246
+ return request(OpenAPI, {
7247
+ method: "POST",
7248
+ url: "/w/{workspace}/jobs/run/dependencies_async",
7249
+ path: { workspace: data.workspace },
7250
+ body: data.requestBody,
7251
+ mediaType: "application/json"
7252
+ });
7253
+ }
7254
+ /**
7255
+ * queue a one-off flow dependencies job and return the job uuid
7256
+ * @param data The data for the request.
7257
+ * @param data.workspace
7258
+ * @param data.requestBody flow value and path
7259
+ * @returns string flow dependencies job created
7260
+ * @throws ApiError
7261
+ */
7262
+ static runFlowDependenciesAsync(data) {
7263
+ return request(OpenAPI, {
7264
+ method: "POST",
7265
+ url: "/w/{workspace}/jobs/run/flow_dependencies_async",
7266
+ path: { workspace: data.workspace },
7267
+ body: data.requestBody,
7268
+ mediaType: "application/json"
7269
+ });
7270
+ }
7271
+ /**
7235
7272
  * run flow preview
7236
7273
  * @param data The data for the request.
7237
7274
  * @param data.workspace
@@ -7868,6 +7905,7 @@ var JobService = class {
7868
7905
  * @param data.id
7869
7906
  * @param data.noLogs
7870
7907
  * @param data.noCode
7908
+ * @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).
7871
7909
  * @returns Job job details
7872
7910
  * @throws ApiError
7873
7911
  */
@@ -7881,7 +7919,8 @@ var JobService = class {
7881
7919
  },
7882
7920
  query: {
7883
7921
  no_logs: data.noLogs,
7884
- no_code: data.noCode
7922
+ no_code: data.noCode,
7923
+ approval_token: data.approvalToken
7885
7924
  }
7886
7925
  });
7887
7926
  }
@@ -8739,7 +8778,7 @@ var JobService = class {
8739
8778
  });
8740
8779
  }
8741
8780
  };
8742
- var FlowConversationService = class {
8781
+ var FlowConversationsService = class {
8743
8782
  /**
8744
8783
  * list flow conversations
8745
8784
  * @param data The data for the request.
@@ -8787,7 +8826,7 @@ var FlowConversationService = class {
8787
8826
  * @param data.conversationId conversation id
8788
8827
  * @param data.page which page to return (start at 1, default 1)
8789
8828
  * @param data.perPage number of items to return for a given page (default 30, max 100)
8790
- * @param data.afterId id to fetch only the messages after that id
8829
+ * @param data.afterSeq Message sequence cursor to fetch only the messages after that cursor
8791
8830
  * @returns FlowConversationMessage conversation messages
8792
8831
  * @throws ApiError
8793
8832
  */
@@ -8802,7 +8841,7 @@ var FlowConversationService = class {
8802
8841
  query: {
8803
8842
  page: data.page,
8804
8843
  per_page: data.perPage,
8805
- after_id: data.afterId
8844
+ after_seq: data.afterSeq
8806
8845
  }
8807
8846
  });
8808
8847
  }
@@ -10815,6 +10854,263 @@ var GcpTriggerService = class {
10815
10854
  });
10816
10855
  }
10817
10856
  };
10857
+ var AzureTriggerService = class {
10858
+ /**
10859
+ * create an Azure Event Grid trigger
10860
+ * @param data The data for the request.
10861
+ * @param data.workspace
10862
+ * @param data.requestBody
10863
+ * @returns string azure trigger created
10864
+ * @throws ApiError
10865
+ */
10866
+ static createAzureTrigger(data) {
10867
+ return request(OpenAPI, {
10868
+ method: "POST",
10869
+ url: "/w/{workspace}/azure_triggers/create",
10870
+ path: { workspace: data.workspace },
10871
+ body: data.requestBody,
10872
+ mediaType: "application/json"
10873
+ });
10874
+ }
10875
+ /**
10876
+ * update an Azure Event Grid trigger
10877
+ * @param data The data for the request.
10878
+ * @param data.workspace
10879
+ * @param data.path
10880
+ * @param data.requestBody
10881
+ * @returns string azure trigger updated
10882
+ * @throws ApiError
10883
+ */
10884
+ static updateAzureTrigger(data) {
10885
+ return request(OpenAPI, {
10886
+ method: "POST",
10887
+ url: "/w/{workspace}/azure_triggers/update/{path}",
10888
+ path: {
10889
+ workspace: data.workspace,
10890
+ path: data.path
10891
+ },
10892
+ body: data.requestBody,
10893
+ mediaType: "application/json"
10894
+ });
10895
+ }
10896
+ /**
10897
+ * delete an Azure Event Grid trigger
10898
+ * @param data The data for the request.
10899
+ * @param data.workspace
10900
+ * @param data.path
10901
+ * @returns string azure trigger deleted
10902
+ * @throws ApiError
10903
+ */
10904
+ static deleteAzureTrigger(data) {
10905
+ return request(OpenAPI, {
10906
+ method: "DELETE",
10907
+ url: "/w/{workspace}/azure_triggers/delete/{path}",
10908
+ path: {
10909
+ workspace: data.workspace,
10910
+ path: data.path
10911
+ }
10912
+ });
10913
+ }
10914
+ /**
10915
+ * get an Azure Event Grid trigger
10916
+ * @param data The data for the request.
10917
+ * @param data.workspace
10918
+ * @param data.path
10919
+ * @returns AzureTrigger azure trigger
10920
+ * @throws ApiError
10921
+ */
10922
+ static getAzureTrigger(data) {
10923
+ return request(OpenAPI, {
10924
+ method: "GET",
10925
+ url: "/w/{workspace}/azure_triggers/get/{path}",
10926
+ path: {
10927
+ workspace: data.workspace,
10928
+ path: data.path
10929
+ }
10930
+ });
10931
+ }
10932
+ /**
10933
+ * list azure triggers
10934
+ * @param data The data for the request.
10935
+ * @param data.workspace
10936
+ * @param data.page which page to return (start at 1, default 1)
10937
+ * @param data.perPage number of items to return for a given page (default 30, max 100)
10938
+ * @param data.path filter by exact path
10939
+ * @param data.isFlow
10940
+ * @param data.pathStart
10941
+ * @returns AzureTrigger azure trigger list
10942
+ * @throws ApiError
10943
+ */
10944
+ static listAzureTriggers(data) {
10945
+ return request(OpenAPI, {
10946
+ method: "GET",
10947
+ url: "/w/{workspace}/azure_triggers/list",
10948
+ path: { workspace: data.workspace },
10949
+ query: {
10950
+ page: data.page,
10951
+ per_page: data.perPage,
10952
+ path: data.path,
10953
+ is_flow: data.isFlow,
10954
+ path_start: data.pathStart
10955
+ }
10956
+ });
10957
+ }
10958
+ /**
10959
+ * check whether an azure trigger exists
10960
+ * @param data The data for the request.
10961
+ * @param data.workspace
10962
+ * @param data.path
10963
+ * @returns boolean true/false
10964
+ * @throws ApiError
10965
+ */
10966
+ static existsAzureTrigger(data) {
10967
+ return request(OpenAPI, {
10968
+ method: "GET",
10969
+ url: "/w/{workspace}/azure_triggers/exists/{path}",
10970
+ path: {
10971
+ workspace: data.workspace,
10972
+ path: data.path
10973
+ }
10974
+ });
10975
+ }
10976
+ /**
10977
+ * set azure trigger mode
10978
+ * @param data The data for the request.
10979
+ * @param data.workspace
10980
+ * @param data.path
10981
+ * @param data.requestBody
10982
+ * @returns string trigger mode updated
10983
+ * @throws ApiError
10984
+ */
10985
+ static setAzureTriggerMode(data) {
10986
+ return request(OpenAPI, {
10987
+ method: "POST",
10988
+ url: "/w/{workspace}/azure_triggers/setmode/{path}",
10989
+ path: {
10990
+ workspace: data.workspace,
10991
+ path: data.path
10992
+ },
10993
+ body: data.requestBody,
10994
+ mediaType: "application/json"
10995
+ });
10996
+ }
10997
+ /**
10998
+ * test Azure service principal connection
10999
+ * @param data The data for the request.
11000
+ * @param data.workspace
11001
+ * @param data.requestBody
11002
+ * @returns string connection successful
11003
+ * @throws ApiError
11004
+ */
11005
+ static testAzureConnection(data) {
11006
+ return request(OpenAPI, {
11007
+ method: "POST",
11008
+ url: "/w/{workspace}/azure_triggers/test",
11009
+ path: { workspace: data.workspace },
11010
+ body: data.requestBody,
11011
+ mediaType: "application/json"
11012
+ });
11013
+ }
11014
+ /**
11015
+ * list topics under an Event Grid Namespace
11016
+ * @param data The data for the request.
11017
+ * @param data.workspace
11018
+ * @param data.path
11019
+ * @param data.requestBody
11020
+ * @returns unknown topic list
11021
+ * @throws ApiError
11022
+ */
11023
+ static listAzureNamespaceTopics(data) {
11024
+ return request(OpenAPI, {
11025
+ method: "POST",
11026
+ url: "/w/{workspace}/azure_triggers/namespaces/topics/list/{path}",
11027
+ path: {
11028
+ workspace: data.workspace,
11029
+ path: data.path
11030
+ },
11031
+ body: data.requestBody,
11032
+ mediaType: "application/json"
11033
+ });
11034
+ }
11035
+ /**
11036
+ * list subscriptions under a Namespace topic
11037
+ * @param data The data for the request.
11038
+ * @param data.workspace
11039
+ * @param data.path
11040
+ * @param data.requestBody
11041
+ * @returns unknown subscription list
11042
+ * @throws ApiError
11043
+ */
11044
+ static listAzureNamespaceSubscriptions(data) {
11045
+ return request(OpenAPI, {
11046
+ method: "POST",
11047
+ url: "/w/{workspace}/azure_triggers/namespaces/subscriptions/list/{path}",
11048
+ path: {
11049
+ workspace: data.workspace,
11050
+ path: data.path
11051
+ },
11052
+ body: data.requestBody,
11053
+ mediaType: "application/json"
11054
+ });
11055
+ }
11056
+ /**
11057
+ * delete an Event Grid subscription on Azure
11058
+ * @param data The data for the request.
11059
+ * @param data.workspace
11060
+ * @param data.path
11061
+ * @param data.requestBody
11062
+ * @returns string subscription deleted
11063
+ * @throws ApiError
11064
+ */
11065
+ static deleteAzureSubscription(data) {
11066
+ return request(OpenAPI, {
11067
+ method: "DELETE",
11068
+ url: "/w/{workspace}/azure_triggers/subscriptions/delete/{path}",
11069
+ path: {
11070
+ workspace: data.workspace,
11071
+ path: data.path
11072
+ },
11073
+ body: data.requestBody,
11074
+ mediaType: "application/json"
11075
+ });
11076
+ }
11077
+ /**
11078
+ * list Event Grid Namespaces the service principal can access
11079
+ * @param data The data for the request.
11080
+ * @param data.workspace
11081
+ * @param data.path
11082
+ * @returns AzureArmResource namespace list
11083
+ * @throws ApiError
11084
+ */
11085
+ static listAzureNamespaces(data) {
11086
+ return request(OpenAPI, {
11087
+ method: "POST",
11088
+ url: "/w/{workspace}/azure_triggers/namespaces/list/{path}",
11089
+ path: {
11090
+ workspace: data.workspace,
11091
+ path: data.path
11092
+ }
11093
+ });
11094
+ }
11095
+ /**
11096
+ * list Basic Event Grid topics + system topics the service principal can access
11097
+ * @param data The data for the request.
11098
+ * @param data.workspace
11099
+ * @param data.path
11100
+ * @returns AzureArmResource topic list
11101
+ * @throws ApiError
11102
+ */
11103
+ static listAzureBasicTopics(data) {
11104
+ return request(OpenAPI, {
11105
+ method: "POST",
11106
+ url: "/w/{workspace}/azure_triggers/basic/topics/list/{path}",
11107
+ path: {
11108
+ workspace: data.workspace,
11109
+ path: data.path
11110
+ }
11111
+ });
11112
+ }
11113
+ };
10818
11114
  var PostgresTriggerService = class {
10819
11115
  /**
10820
11116
  * get postgres version
@@ -13556,4 +13852,4 @@ var McpOauthService = class {
13556
13852
  };
13557
13853
 
13558
13854
  //#endregion
13559
- export { 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 };
13855
+ export { 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 };