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.
@@ -1934,6 +1934,23 @@ var WorkspaceService = class {
1934
1934
  });
1935
1935
  }
1936
1936
  /**
1937
+ * connect slack (non-interactive; pre-minted bot token)
1938
+ * @param data The data for the request.
1939
+ * @param data.workspace
1940
+ * @param data.requestBody connect slack with a pre-minted bot token
1941
+ * @returns unknown status
1942
+ * @throws ApiError
1943
+ */
1944
+ static connectSlack(data) {
1945
+ return request(OpenAPI, {
1946
+ method: "POST",
1947
+ url: "/w/{workspace}/workspaces/connect_slack",
1948
+ path: { workspace: data.workspace },
1949
+ body: data.requestBody,
1950
+ mediaType: "application/json"
1951
+ });
1952
+ }
1953
+ /**
1937
1954
  * run a job that sends a message to Slack
1938
1955
  * @param data The data for the request.
1939
1956
  * @param data.workspace
@@ -3672,6 +3689,21 @@ var OauthService = class {
3672
3689
  });
3673
3690
  }
3674
3691
  /**
3692
+ * connect slack instance (non-interactive; pre-minted bot token)
3693
+ * @param data The data for the request.
3694
+ * @param data.requestBody connect slack at the instance level with a pre-minted bot token
3695
+ * @returns unknown status
3696
+ * @throws ApiError
3697
+ */
3698
+ static connectSlackInstance(data) {
3699
+ return request(OpenAPI, {
3700
+ method: "POST",
3701
+ url: "/oauth/connect_slack_instance",
3702
+ body: data.requestBody,
3703
+ mediaType: "application/json"
3704
+ });
3705
+ }
3706
+ /**
3675
3707
  * connect callback
3676
3708
  * @param data The data for the request.
3677
3709
  * @param data.clientName
@@ -5577,6 +5609,9 @@ var ScriptService = class {
5577
5609
  }
5578
5610
  /**
5579
5611
  * create script
5612
+ * Creates a new script when the path does not already exist.
5613
+ * Creates a new version of an existing script when called with the same path and the current `parent_hash`.
5614
+ *
5580
5615
  * @param data The data for the request.
5581
5616
  * @param data.workspace
5582
5617
  * @param data.requestBody Partially filled script
@@ -7902,6 +7937,7 @@ var JobService = class {
7902
7937
  * @param data.id
7903
7938
  * @param data.noLogs
7904
7939
  * @param data.noCode
7940
+ * @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).
7905
7941
  * @returns Job job details
7906
7942
  * @throws ApiError
7907
7943
  */
@@ -7915,7 +7951,8 @@ var JobService = class {
7915
7951
  },
7916
7952
  query: {
7917
7953
  no_logs: data.noLogs,
7918
- no_code: data.noCode
7954
+ no_code: data.noCode,
7955
+ approval_token: data.approvalToken
7919
7956
  }
7920
7957
  });
7921
7958
  }
@@ -8821,7 +8858,7 @@ var FlowConversationsService = class {
8821
8858
  * @param data.conversationId conversation id
8822
8859
  * @param data.page which page to return (start at 1, default 1)
8823
8860
  * @param data.perPage number of items to return for a given page (default 30, max 100)
8824
- * @param data.afterId id to fetch only the messages after that id
8861
+ * @param data.afterSeq Message sequence cursor to fetch only the messages after that cursor
8825
8862
  * @returns FlowConversationMessage conversation messages
8826
8863
  * @throws ApiError
8827
8864
  */
@@ -8836,7 +8873,7 @@ var FlowConversationsService = class {
8836
8873
  query: {
8837
8874
  page: data.page,
8838
8875
  per_page: data.perPage,
8839
- after_id: data.afterId
8876
+ after_seq: data.afterSeq
8840
8877
  }
8841
8878
  });
8842
8879
  }
@@ -10849,6 +10886,263 @@ var GcpTriggerService = class {
10849
10886
  });
10850
10887
  }
10851
10888
  };
10889
+ var AzureTriggerService = class {
10890
+ /**
10891
+ * create an Azure Event Grid trigger
10892
+ * @param data The data for the request.
10893
+ * @param data.workspace
10894
+ * @param data.requestBody
10895
+ * @returns string azure trigger created
10896
+ * @throws ApiError
10897
+ */
10898
+ static createAzureTrigger(data) {
10899
+ return request(OpenAPI, {
10900
+ method: "POST",
10901
+ url: "/w/{workspace}/azure_triggers/create",
10902
+ path: { workspace: data.workspace },
10903
+ body: data.requestBody,
10904
+ mediaType: "application/json"
10905
+ });
10906
+ }
10907
+ /**
10908
+ * update an Azure Event Grid trigger
10909
+ * @param data The data for the request.
10910
+ * @param data.workspace
10911
+ * @param data.path
10912
+ * @param data.requestBody
10913
+ * @returns string azure trigger updated
10914
+ * @throws ApiError
10915
+ */
10916
+ static updateAzureTrigger(data) {
10917
+ return request(OpenAPI, {
10918
+ method: "POST",
10919
+ url: "/w/{workspace}/azure_triggers/update/{path}",
10920
+ path: {
10921
+ workspace: data.workspace,
10922
+ path: data.path
10923
+ },
10924
+ body: data.requestBody,
10925
+ mediaType: "application/json"
10926
+ });
10927
+ }
10928
+ /**
10929
+ * delete an Azure Event Grid trigger
10930
+ * @param data The data for the request.
10931
+ * @param data.workspace
10932
+ * @param data.path
10933
+ * @returns string azure trigger deleted
10934
+ * @throws ApiError
10935
+ */
10936
+ static deleteAzureTrigger(data) {
10937
+ return request(OpenAPI, {
10938
+ method: "DELETE",
10939
+ url: "/w/{workspace}/azure_triggers/delete/{path}",
10940
+ path: {
10941
+ workspace: data.workspace,
10942
+ path: data.path
10943
+ }
10944
+ });
10945
+ }
10946
+ /**
10947
+ * get an Azure Event Grid trigger
10948
+ * @param data The data for the request.
10949
+ * @param data.workspace
10950
+ * @param data.path
10951
+ * @returns AzureTrigger azure trigger
10952
+ * @throws ApiError
10953
+ */
10954
+ static getAzureTrigger(data) {
10955
+ return request(OpenAPI, {
10956
+ method: "GET",
10957
+ url: "/w/{workspace}/azure_triggers/get/{path}",
10958
+ path: {
10959
+ workspace: data.workspace,
10960
+ path: data.path
10961
+ }
10962
+ });
10963
+ }
10964
+ /**
10965
+ * list azure triggers
10966
+ * @param data The data for the request.
10967
+ * @param data.workspace
10968
+ * @param data.page which page to return (start at 1, default 1)
10969
+ * @param data.perPage number of items to return for a given page (default 30, max 100)
10970
+ * @param data.path filter by exact path
10971
+ * @param data.isFlow
10972
+ * @param data.pathStart
10973
+ * @returns AzureTrigger azure trigger list
10974
+ * @throws ApiError
10975
+ */
10976
+ static listAzureTriggers(data) {
10977
+ return request(OpenAPI, {
10978
+ method: "GET",
10979
+ url: "/w/{workspace}/azure_triggers/list",
10980
+ path: { workspace: data.workspace },
10981
+ query: {
10982
+ page: data.page,
10983
+ per_page: data.perPage,
10984
+ path: data.path,
10985
+ is_flow: data.isFlow,
10986
+ path_start: data.pathStart
10987
+ }
10988
+ });
10989
+ }
10990
+ /**
10991
+ * check whether an azure trigger exists
10992
+ * @param data The data for the request.
10993
+ * @param data.workspace
10994
+ * @param data.path
10995
+ * @returns boolean true/false
10996
+ * @throws ApiError
10997
+ */
10998
+ static existsAzureTrigger(data) {
10999
+ return request(OpenAPI, {
11000
+ method: "GET",
11001
+ url: "/w/{workspace}/azure_triggers/exists/{path}",
11002
+ path: {
11003
+ workspace: data.workspace,
11004
+ path: data.path
11005
+ }
11006
+ });
11007
+ }
11008
+ /**
11009
+ * set azure trigger mode
11010
+ * @param data The data for the request.
11011
+ * @param data.workspace
11012
+ * @param data.path
11013
+ * @param data.requestBody
11014
+ * @returns string trigger mode updated
11015
+ * @throws ApiError
11016
+ */
11017
+ static setAzureTriggerMode(data) {
11018
+ return request(OpenAPI, {
11019
+ method: "POST",
11020
+ url: "/w/{workspace}/azure_triggers/setmode/{path}",
11021
+ path: {
11022
+ workspace: data.workspace,
11023
+ path: data.path
11024
+ },
11025
+ body: data.requestBody,
11026
+ mediaType: "application/json"
11027
+ });
11028
+ }
11029
+ /**
11030
+ * test Azure service principal connection
11031
+ * @param data The data for the request.
11032
+ * @param data.workspace
11033
+ * @param data.requestBody
11034
+ * @returns string connection successful
11035
+ * @throws ApiError
11036
+ */
11037
+ static testAzureConnection(data) {
11038
+ return request(OpenAPI, {
11039
+ method: "POST",
11040
+ url: "/w/{workspace}/azure_triggers/test",
11041
+ path: { workspace: data.workspace },
11042
+ body: data.requestBody,
11043
+ mediaType: "application/json"
11044
+ });
11045
+ }
11046
+ /**
11047
+ * list topics under an Event Grid Namespace
11048
+ * @param data The data for the request.
11049
+ * @param data.workspace
11050
+ * @param data.path
11051
+ * @param data.requestBody
11052
+ * @returns unknown topic list
11053
+ * @throws ApiError
11054
+ */
11055
+ static listAzureNamespaceTopics(data) {
11056
+ return request(OpenAPI, {
11057
+ method: "POST",
11058
+ url: "/w/{workspace}/azure_triggers/namespaces/topics/list/{path}",
11059
+ path: {
11060
+ workspace: data.workspace,
11061
+ path: data.path
11062
+ },
11063
+ body: data.requestBody,
11064
+ mediaType: "application/json"
11065
+ });
11066
+ }
11067
+ /**
11068
+ * list subscriptions under a Namespace topic
11069
+ * @param data The data for the request.
11070
+ * @param data.workspace
11071
+ * @param data.path
11072
+ * @param data.requestBody
11073
+ * @returns unknown subscription list
11074
+ * @throws ApiError
11075
+ */
11076
+ static listAzureNamespaceSubscriptions(data) {
11077
+ return request(OpenAPI, {
11078
+ method: "POST",
11079
+ url: "/w/{workspace}/azure_triggers/namespaces/subscriptions/list/{path}",
11080
+ path: {
11081
+ workspace: data.workspace,
11082
+ path: data.path
11083
+ },
11084
+ body: data.requestBody,
11085
+ mediaType: "application/json"
11086
+ });
11087
+ }
11088
+ /**
11089
+ * delete an Event Grid subscription on Azure
11090
+ * @param data The data for the request.
11091
+ * @param data.workspace
11092
+ * @param data.path
11093
+ * @param data.requestBody
11094
+ * @returns string subscription deleted
11095
+ * @throws ApiError
11096
+ */
11097
+ static deleteAzureSubscription(data) {
11098
+ return request(OpenAPI, {
11099
+ method: "DELETE",
11100
+ url: "/w/{workspace}/azure_triggers/subscriptions/delete/{path}",
11101
+ path: {
11102
+ workspace: data.workspace,
11103
+ path: data.path
11104
+ },
11105
+ body: data.requestBody,
11106
+ mediaType: "application/json"
11107
+ });
11108
+ }
11109
+ /**
11110
+ * list Event Grid Namespaces the service principal can access
11111
+ * @param data The data for the request.
11112
+ * @param data.workspace
11113
+ * @param data.path
11114
+ * @returns AzureArmResource namespace list
11115
+ * @throws ApiError
11116
+ */
11117
+ static listAzureNamespaces(data) {
11118
+ return request(OpenAPI, {
11119
+ method: "POST",
11120
+ url: "/w/{workspace}/azure_triggers/namespaces/list/{path}",
11121
+ path: {
11122
+ workspace: data.workspace,
11123
+ path: data.path
11124
+ }
11125
+ });
11126
+ }
11127
+ /**
11128
+ * list Basic Event Grid topics + system topics the service principal can access
11129
+ * @param data The data for the request.
11130
+ * @param data.workspace
11131
+ * @param data.path
11132
+ * @returns AzureArmResource topic list
11133
+ * @throws ApiError
11134
+ */
11135
+ static listAzureBasicTopics(data) {
11136
+ return request(OpenAPI, {
11137
+ method: "POST",
11138
+ url: "/w/{workspace}/azure_triggers/basic/topics/list/{path}",
11139
+ path: {
11140
+ workspace: data.workspace,
11141
+ path: data.path
11142
+ }
11143
+ });
11144
+ }
11145
+ };
10852
11146
  var PostgresTriggerService = class {
10853
11147
  /**
10854
11148
  * get postgres version
@@ -13590,4 +13884,4 @@ var McpOauthService = class {
13590
13884
  };
13591
13885
 
13592
13886
  //#endregion
13593
- export { 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 };
13887
+ 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 };