windmill-client 1.448.0 → 1.449.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.
- package/dist/core/OpenAPI.js +1 -1
- package/dist/services.gen.d.ts +197 -1
- package/dist/services.gen.js +400 -1
- package/dist/types.gen.d.ts +629 -27
- package/package.json +1 -1
package/dist/services.gen.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.IndexSearchService = exports.ConcurrencyGroupsService = exports.ServiceLogsService = exports.MetricsService = exports.HelpersService = exports.InputService = exports.FavoriteService = exports.CaptureService = exports.GranularAclService = exports.ConfigService = exports.FolderService = exports.GroupService = exports.NatsTriggerService = exports.KafkaTriggerService = exports.WebsocketTriggerService = exports.HttpTriggerService = exports.ScheduleService = exports.RawAppService = exports.JobService = exports.WorkerService = exports.DraftService = exports.ScriptService = exports.AppService = exports.FlowService = exports.IntegrationService = exports.ResourceService = exports.OauthService = exports.VariableService = exports.OidcService = exports.SettingService = exports.WorkspaceService = exports.AdminService = exports.UserService = exports.AuditService = exports.SettingsService = void 0;
|
|
4
|
+
exports.IndexSearchService = exports.ConcurrencyGroupsService = exports.ServiceLogsService = exports.MetricsService = exports.HelpersService = exports.InputService = exports.FavoriteService = exports.CaptureService = exports.GranularAclService = exports.ConfigService = exports.FolderService = exports.GroupService = exports.PostgresTriggerService = exports.NatsTriggerService = exports.KafkaTriggerService = exports.WebsocketTriggerService = exports.HttpTriggerService = exports.ScheduleService = exports.RawAppService = exports.JobService = exports.WorkerService = exports.DraftService = exports.ScriptService = exports.AppService = exports.FlowService = exports.IntegrationService = exports.ResourceService = exports.TeamsService = exports.OauthService = exports.VariableService = exports.OidcService = exports.SettingService = exports.WorkspaceService = exports.AdminService = exports.UserService = exports.AuditService = exports.SettingsService = void 0;
|
|
5
5
|
const OpenAPI_1 = require("./core/OpenAPI");
|
|
6
6
|
const request_1 = require("./core/request");
|
|
7
7
|
class SettingsService {
|
|
@@ -1090,6 +1090,26 @@ class WorkspaceService {
|
|
|
1090
1090
|
mediaType: 'application/json'
|
|
1091
1091
|
});
|
|
1092
1092
|
}
|
|
1093
|
+
/**
|
|
1094
|
+
* Update operator settings for a workspace
|
|
1095
|
+
* Updates the operator settings for a specific workspace. Requires workspace admin privileges.
|
|
1096
|
+
* @param data The data for the request.
|
|
1097
|
+
* @param data.workspace
|
|
1098
|
+
* @param data.requestBody
|
|
1099
|
+
* @returns string Operator settings updated successfully
|
|
1100
|
+
* @throws ApiError
|
|
1101
|
+
*/
|
|
1102
|
+
static updateOperatorSettings(data) {
|
|
1103
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
1104
|
+
method: 'POST',
|
|
1105
|
+
url: '/w/{workspace}/workspaces/operator_settings',
|
|
1106
|
+
path: {
|
|
1107
|
+
workspace: data.workspace
|
|
1108
|
+
},
|
|
1109
|
+
body: data.requestBody,
|
|
1110
|
+
mediaType: 'application/json'
|
|
1111
|
+
});
|
|
1112
|
+
}
|
|
1093
1113
|
/**
|
|
1094
1114
|
* list pending invites for a workspace
|
|
1095
1115
|
* @param data The data for the request.
|
|
@@ -2297,6 +2317,20 @@ class OauthService {
|
|
|
2297
2317
|
}
|
|
2298
2318
|
}
|
|
2299
2319
|
exports.OauthService = OauthService;
|
|
2320
|
+
class TeamsService {
|
|
2321
|
+
/**
|
|
2322
|
+
* synchronize Microsoft Teams information (teams/channels)
|
|
2323
|
+
* @returns TeamInfo Teams information successfully synchronized
|
|
2324
|
+
* @throws ApiError
|
|
2325
|
+
*/
|
|
2326
|
+
static syncTeams() {
|
|
2327
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
2328
|
+
method: 'POST',
|
|
2329
|
+
url: '/teams/sync'
|
|
2330
|
+
});
|
|
2331
|
+
}
|
|
2332
|
+
}
|
|
2333
|
+
exports.TeamsService = TeamsService;
|
|
2300
2334
|
class ResourceService {
|
|
2301
2335
|
/**
|
|
2302
2336
|
* create resource
|
|
@@ -6583,6 +6617,371 @@ class NatsTriggerService {
|
|
|
6583
6617
|
}
|
|
6584
6618
|
}
|
|
6585
6619
|
exports.NatsTriggerService = NatsTriggerService;
|
|
6620
|
+
class PostgresTriggerService {
|
|
6621
|
+
/**
|
|
6622
|
+
* check if postgres configuration is set to logical
|
|
6623
|
+
* @param data The data for the request.
|
|
6624
|
+
* @param data.workspace
|
|
6625
|
+
* @param data.path
|
|
6626
|
+
* @returns boolean boolean that indicates if postgres is set to logical level or not
|
|
6627
|
+
* @throws ApiError
|
|
6628
|
+
*/
|
|
6629
|
+
static isValidPostgresConfiguration(data) {
|
|
6630
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
6631
|
+
method: 'GET',
|
|
6632
|
+
url: '/w/{workspace}/postgres_triggers/is_valid_postgres_configuration/{path}',
|
|
6633
|
+
path: {
|
|
6634
|
+
workspace: data.workspace,
|
|
6635
|
+
path: data.path
|
|
6636
|
+
}
|
|
6637
|
+
});
|
|
6638
|
+
}
|
|
6639
|
+
/**
|
|
6640
|
+
* create template script
|
|
6641
|
+
* @param data The data for the request.
|
|
6642
|
+
* @param data.workspace
|
|
6643
|
+
* @param data.requestBody template script
|
|
6644
|
+
* @returns string custom id to retrieve template script
|
|
6645
|
+
* @throws ApiError
|
|
6646
|
+
*/
|
|
6647
|
+
static createTemplateScript(data) {
|
|
6648
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
6649
|
+
method: 'POST',
|
|
6650
|
+
url: '/w/{workspace}/postgres_triggers/create_template_script',
|
|
6651
|
+
path: {
|
|
6652
|
+
workspace: data.workspace
|
|
6653
|
+
},
|
|
6654
|
+
body: data.requestBody,
|
|
6655
|
+
mediaType: 'application/json'
|
|
6656
|
+
});
|
|
6657
|
+
}
|
|
6658
|
+
/**
|
|
6659
|
+
* get template script
|
|
6660
|
+
* @param data The data for the request.
|
|
6661
|
+
* @param data.workspace
|
|
6662
|
+
* @param data.id
|
|
6663
|
+
* @returns string template script
|
|
6664
|
+
* @throws ApiError
|
|
6665
|
+
*/
|
|
6666
|
+
static getTemplateScript(data) {
|
|
6667
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
6668
|
+
method: 'GET',
|
|
6669
|
+
url: '/w/{workspace}/postgres_triggers/get_template_script/{id}',
|
|
6670
|
+
path: {
|
|
6671
|
+
workspace: data.workspace,
|
|
6672
|
+
id: data.id
|
|
6673
|
+
}
|
|
6674
|
+
});
|
|
6675
|
+
}
|
|
6676
|
+
/**
|
|
6677
|
+
* list postgres replication slot
|
|
6678
|
+
* @param data The data for the request.
|
|
6679
|
+
* @param data.workspace
|
|
6680
|
+
* @param data.path
|
|
6681
|
+
* @returns SlotList list postgres slot
|
|
6682
|
+
* @throws ApiError
|
|
6683
|
+
*/
|
|
6684
|
+
static listPostgresReplicationSlot(data) {
|
|
6685
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
6686
|
+
method: 'GET',
|
|
6687
|
+
url: '/w/{workspace}/postgres_triggers/slot/list/{path}',
|
|
6688
|
+
path: {
|
|
6689
|
+
workspace: data.workspace,
|
|
6690
|
+
path: data.path
|
|
6691
|
+
}
|
|
6692
|
+
});
|
|
6693
|
+
}
|
|
6694
|
+
/**
|
|
6695
|
+
* create replication slot for postgres
|
|
6696
|
+
* @param data The data for the request.
|
|
6697
|
+
* @param data.workspace
|
|
6698
|
+
* @param data.path
|
|
6699
|
+
* @param data.requestBody new slot for postgres
|
|
6700
|
+
* @returns string slot created
|
|
6701
|
+
* @throws ApiError
|
|
6702
|
+
*/
|
|
6703
|
+
static createPostgresReplicationSlot(data) {
|
|
6704
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
6705
|
+
method: 'POST',
|
|
6706
|
+
url: '/w/{workspace}/postgres_triggers/slot/create/{path}',
|
|
6707
|
+
path: {
|
|
6708
|
+
workspace: data.workspace,
|
|
6709
|
+
path: data.path
|
|
6710
|
+
},
|
|
6711
|
+
body: data.requestBody,
|
|
6712
|
+
mediaType: 'application/json'
|
|
6713
|
+
});
|
|
6714
|
+
}
|
|
6715
|
+
/**
|
|
6716
|
+
* delete postgres replication slot
|
|
6717
|
+
* @param data The data for the request.
|
|
6718
|
+
* @param data.workspace
|
|
6719
|
+
* @param data.path
|
|
6720
|
+
* @param data.requestBody replication slot of postgres
|
|
6721
|
+
* @returns string postgres replication slot deleted
|
|
6722
|
+
* @throws ApiError
|
|
6723
|
+
*/
|
|
6724
|
+
static deletePostgresReplicationSlot(data) {
|
|
6725
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
6726
|
+
method: 'DELETE',
|
|
6727
|
+
url: '/w/{workspace}/postgres_triggers/slot/delete/{path}',
|
|
6728
|
+
path: {
|
|
6729
|
+
workspace: data.workspace,
|
|
6730
|
+
path: data.path
|
|
6731
|
+
},
|
|
6732
|
+
body: data.requestBody,
|
|
6733
|
+
mediaType: 'application/json'
|
|
6734
|
+
});
|
|
6735
|
+
}
|
|
6736
|
+
/**
|
|
6737
|
+
* list postgres publication
|
|
6738
|
+
* @param data The data for the request.
|
|
6739
|
+
* @param data.workspace
|
|
6740
|
+
* @param data.path
|
|
6741
|
+
* @returns string database publication list
|
|
6742
|
+
* @throws ApiError
|
|
6743
|
+
*/
|
|
6744
|
+
static listPostgresPublication(data) {
|
|
6745
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
6746
|
+
method: 'GET',
|
|
6747
|
+
url: '/w/{workspace}/postgres_triggers/publication/list/{path}',
|
|
6748
|
+
path: {
|
|
6749
|
+
workspace: data.workspace,
|
|
6750
|
+
path: data.path
|
|
6751
|
+
}
|
|
6752
|
+
});
|
|
6753
|
+
}
|
|
6754
|
+
/**
|
|
6755
|
+
* get postgres publication
|
|
6756
|
+
* @param data The data for the request.
|
|
6757
|
+
* @param data.workspace
|
|
6758
|
+
* @param data.path
|
|
6759
|
+
* @param data.publication
|
|
6760
|
+
* @returns PublicationData postgres publication get
|
|
6761
|
+
* @throws ApiError
|
|
6762
|
+
*/
|
|
6763
|
+
static getPostgresPublication(data) {
|
|
6764
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
6765
|
+
method: 'GET',
|
|
6766
|
+
url: '/w/{workspace}/postgres_triggers/publication/get/{publication}/{path}',
|
|
6767
|
+
path: {
|
|
6768
|
+
workspace: data.workspace,
|
|
6769
|
+
path: data.path,
|
|
6770
|
+
publication: data.publication
|
|
6771
|
+
}
|
|
6772
|
+
});
|
|
6773
|
+
}
|
|
6774
|
+
/**
|
|
6775
|
+
* create publication for postgres
|
|
6776
|
+
* @param data The data for the request.
|
|
6777
|
+
* @param data.workspace
|
|
6778
|
+
* @param data.path
|
|
6779
|
+
* @param data.publication
|
|
6780
|
+
* @param data.requestBody new publication for postgres
|
|
6781
|
+
* @returns string publication created
|
|
6782
|
+
* @throws ApiError
|
|
6783
|
+
*/
|
|
6784
|
+
static createPostgresPublication(data) {
|
|
6785
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
6786
|
+
method: 'POST',
|
|
6787
|
+
url: '/w/{workspace}/postgres_triggers/publication/create/{publication}/{path}',
|
|
6788
|
+
path: {
|
|
6789
|
+
workspace: data.workspace,
|
|
6790
|
+
path: data.path,
|
|
6791
|
+
publication: data.publication
|
|
6792
|
+
},
|
|
6793
|
+
body: data.requestBody,
|
|
6794
|
+
mediaType: 'application/json'
|
|
6795
|
+
});
|
|
6796
|
+
}
|
|
6797
|
+
/**
|
|
6798
|
+
* update publication for postgres
|
|
6799
|
+
* @param data The data for the request.
|
|
6800
|
+
* @param data.workspace
|
|
6801
|
+
* @param data.path
|
|
6802
|
+
* @param data.publication
|
|
6803
|
+
* @param data.requestBody update publication for postgres
|
|
6804
|
+
* @returns string publication updated
|
|
6805
|
+
* @throws ApiError
|
|
6806
|
+
*/
|
|
6807
|
+
static updatePostgresPublication(data) {
|
|
6808
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
6809
|
+
method: 'POST',
|
|
6810
|
+
url: '/w/{workspace}/postgres_triggers/publication/update/{publication}/{path}',
|
|
6811
|
+
path: {
|
|
6812
|
+
workspace: data.workspace,
|
|
6813
|
+
path: data.path,
|
|
6814
|
+
publication: data.publication
|
|
6815
|
+
},
|
|
6816
|
+
body: data.requestBody,
|
|
6817
|
+
mediaType: 'application/json'
|
|
6818
|
+
});
|
|
6819
|
+
}
|
|
6820
|
+
/**
|
|
6821
|
+
* delete postgres publication
|
|
6822
|
+
* @param data The data for the request.
|
|
6823
|
+
* @param data.workspace
|
|
6824
|
+
* @param data.path
|
|
6825
|
+
* @param data.publication
|
|
6826
|
+
* @returns string postgres publication deleted
|
|
6827
|
+
* @throws ApiError
|
|
6828
|
+
*/
|
|
6829
|
+
static deletePostgresPublication(data) {
|
|
6830
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
6831
|
+
method: 'DELETE',
|
|
6832
|
+
url: '/w/{workspace}/postgres_triggers/publication/delete/{publication}/{path}',
|
|
6833
|
+
path: {
|
|
6834
|
+
workspace: data.workspace,
|
|
6835
|
+
path: data.path,
|
|
6836
|
+
publication: data.publication
|
|
6837
|
+
}
|
|
6838
|
+
});
|
|
6839
|
+
}
|
|
6840
|
+
/**
|
|
6841
|
+
* create postgres trigger
|
|
6842
|
+
* @param data The data for the request.
|
|
6843
|
+
* @param data.workspace
|
|
6844
|
+
* @param data.requestBody new postgres trigger
|
|
6845
|
+
* @returns string postgres trigger created
|
|
6846
|
+
* @throws ApiError
|
|
6847
|
+
*/
|
|
6848
|
+
static createPostgresTrigger(data) {
|
|
6849
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
6850
|
+
method: 'POST',
|
|
6851
|
+
url: '/w/{workspace}/postgres_triggers/create',
|
|
6852
|
+
path: {
|
|
6853
|
+
workspace: data.workspace
|
|
6854
|
+
},
|
|
6855
|
+
body: data.requestBody,
|
|
6856
|
+
mediaType: 'application/json'
|
|
6857
|
+
});
|
|
6858
|
+
}
|
|
6859
|
+
/**
|
|
6860
|
+
* update postgres trigger
|
|
6861
|
+
* @param data The data for the request.
|
|
6862
|
+
* @param data.workspace
|
|
6863
|
+
* @param data.path
|
|
6864
|
+
* @param data.requestBody updated trigger
|
|
6865
|
+
* @returns string postgres trigger updated
|
|
6866
|
+
* @throws ApiError
|
|
6867
|
+
*/
|
|
6868
|
+
static updatePostgresTrigger(data) {
|
|
6869
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
6870
|
+
method: 'POST',
|
|
6871
|
+
url: '/w/{workspace}/postgres_triggers/update/{path}',
|
|
6872
|
+
path: {
|
|
6873
|
+
workspace: data.workspace,
|
|
6874
|
+
path: data.path
|
|
6875
|
+
},
|
|
6876
|
+
body: data.requestBody,
|
|
6877
|
+
mediaType: 'application/json'
|
|
6878
|
+
});
|
|
6879
|
+
}
|
|
6880
|
+
/**
|
|
6881
|
+
* delete postgres trigger
|
|
6882
|
+
* @param data The data for the request.
|
|
6883
|
+
* @param data.workspace
|
|
6884
|
+
* @param data.path
|
|
6885
|
+
* @returns string postgres trigger deleted
|
|
6886
|
+
* @throws ApiError
|
|
6887
|
+
*/
|
|
6888
|
+
static deletePostgresTrigger(data) {
|
|
6889
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
6890
|
+
method: 'DELETE',
|
|
6891
|
+
url: '/w/{workspace}/postgres_triggers/delete/{path}',
|
|
6892
|
+
path: {
|
|
6893
|
+
workspace: data.workspace,
|
|
6894
|
+
path: data.path
|
|
6895
|
+
}
|
|
6896
|
+
});
|
|
6897
|
+
}
|
|
6898
|
+
/**
|
|
6899
|
+
* get postgres trigger
|
|
6900
|
+
* @param data The data for the request.
|
|
6901
|
+
* @param data.workspace
|
|
6902
|
+
* @param data.path
|
|
6903
|
+
* @returns PostgresTrigger get postgres trigger
|
|
6904
|
+
* @throws ApiError
|
|
6905
|
+
*/
|
|
6906
|
+
static getPostgresTrigger(data) {
|
|
6907
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
6908
|
+
method: 'GET',
|
|
6909
|
+
url: '/w/{workspace}/postgres_triggers/get/{path}',
|
|
6910
|
+
path: {
|
|
6911
|
+
workspace: data.workspace,
|
|
6912
|
+
path: data.path
|
|
6913
|
+
}
|
|
6914
|
+
});
|
|
6915
|
+
}
|
|
6916
|
+
/**
|
|
6917
|
+
* list postgres triggers
|
|
6918
|
+
* @param data The data for the request.
|
|
6919
|
+
* @param data.workspace
|
|
6920
|
+
* @param data.page which page to return (start at 1, default 1)
|
|
6921
|
+
* @param data.perPage number of items to return for a given page (default 30, max 100)
|
|
6922
|
+
* @param data.path filter by path
|
|
6923
|
+
* @param data.isFlow
|
|
6924
|
+
* @param data.pathStart
|
|
6925
|
+
* @returns PostgresTrigger postgres trigger list
|
|
6926
|
+
* @throws ApiError
|
|
6927
|
+
*/
|
|
6928
|
+
static listPostgresTriggers(data) {
|
|
6929
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
6930
|
+
method: 'GET',
|
|
6931
|
+
url: '/w/{workspace}/postgres_triggers/list',
|
|
6932
|
+
path: {
|
|
6933
|
+
workspace: data.workspace
|
|
6934
|
+
},
|
|
6935
|
+
query: {
|
|
6936
|
+
page: data.page,
|
|
6937
|
+
per_page: data.perPage,
|
|
6938
|
+
path: data.path,
|
|
6939
|
+
is_flow: data.isFlow,
|
|
6940
|
+
path_start: data.pathStart
|
|
6941
|
+
}
|
|
6942
|
+
});
|
|
6943
|
+
}
|
|
6944
|
+
/**
|
|
6945
|
+
* does postgres trigger exists
|
|
6946
|
+
* @param data The data for the request.
|
|
6947
|
+
* @param data.workspace
|
|
6948
|
+
* @param data.path
|
|
6949
|
+
* @returns boolean postgres trigger exists
|
|
6950
|
+
* @throws ApiError
|
|
6951
|
+
*/
|
|
6952
|
+
static existsPostgresTrigger(data) {
|
|
6953
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
6954
|
+
method: 'GET',
|
|
6955
|
+
url: '/w/{workspace}/postgres_triggers/exists/{path}',
|
|
6956
|
+
path: {
|
|
6957
|
+
workspace: data.workspace,
|
|
6958
|
+
path: data.path
|
|
6959
|
+
}
|
|
6960
|
+
});
|
|
6961
|
+
}
|
|
6962
|
+
/**
|
|
6963
|
+
* set enabled postgres trigger
|
|
6964
|
+
* @param data The data for the request.
|
|
6965
|
+
* @param data.workspace
|
|
6966
|
+
* @param data.path
|
|
6967
|
+
* @param data.requestBody updated postgres trigger enable
|
|
6968
|
+
* @returns string postgres trigger enabled set
|
|
6969
|
+
* @throws ApiError
|
|
6970
|
+
*/
|
|
6971
|
+
static setPostgresTriggerEnabled(data) {
|
|
6972
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
6973
|
+
method: 'POST',
|
|
6974
|
+
url: '/w/{workspace}/postgres_triggers/setenabled/{path}',
|
|
6975
|
+
path: {
|
|
6976
|
+
workspace: data.workspace,
|
|
6977
|
+
path: data.path
|
|
6978
|
+
},
|
|
6979
|
+
body: data.requestBody,
|
|
6980
|
+
mediaType: 'application/json'
|
|
6981
|
+
});
|
|
6982
|
+
}
|
|
6983
|
+
}
|
|
6984
|
+
exports.PostgresTriggerService = PostgresTriggerService;
|
|
6586
6985
|
class GroupService {
|
|
6587
6986
|
/**
|
|
6588
6987
|
* list instance groups
|