@envsync-cloud/envsync-ts-sdk 0.3.0 → 0.3.3

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/index.js CHANGED
@@ -29,15 +29,26 @@ __export(src_exports, {
29
29
  BaseHttpRequest: () => BaseHttpRequest,
30
30
  CancelError: () => CancelError,
31
31
  CancelablePromise: () => CancelablePromise,
32
+ CreateWebhookRequest: () => CreateWebhookRequest,
32
33
  EnvSyncAPISDK: () => EnvSyncAPISDK,
33
34
  EnvironmentTypesService: () => EnvironmentTypesService,
35
+ EnvironmentVariablesPointInTimeService: () => EnvironmentVariablesPointInTimeService,
36
+ EnvironmentVariablesRollbackService: () => EnvironmentVariablesRollbackService,
34
37
  EnvironmentVariablesService: () => EnvironmentVariablesService,
35
38
  FileUploadService: () => FileUploadService,
36
39
  OnboardingService: () => OnboardingService,
37
40
  OpenAPI: () => OpenAPI,
38
41
  OrganizationsService: () => OrganizationsService,
39
42
  RolesService: () => RolesService,
40
- UsersService: () => UsersService
43
+ SecretVariableRollbackResponse: () => SecretVariableRollbackResponse,
44
+ SecretsPointInTimeService: () => SecretsPointInTimeService,
45
+ SecretsRollbackService: () => SecretsRollbackService,
46
+ SecretsService: () => SecretsService,
47
+ UpdateWebhookRequest: () => UpdateWebhookRequest,
48
+ UsersService: () => UsersService,
49
+ VariableRollbackResponse: () => VariableRollbackResponse,
50
+ WebhookResponse: () => WebhookResponse,
51
+ WebhooksService: () => WebhooksService
41
52
  });
42
53
  module.exports = __toCommonJS(src_exports);
43
54
 
@@ -927,7 +938,29 @@ var EnvironmentVariablesService = class {
927
938
  getEnv(key, requestBody) {
928
939
  return this.httpRequest.request({
929
940
  method: "POST",
930
- url: "/api/env/{key}",
941
+ url: "/api/env/i/{key}",
942
+ path: {
943
+ "key": key
944
+ },
945
+ body: requestBody,
946
+ mediaType: "application/json",
947
+ errors: {
948
+ 500: `Internal server error`
949
+ }
950
+ });
951
+ }
952
+ /**
953
+ * Update Environment Variable
954
+ * Update an existing environment variable
955
+ * @param key
956
+ * @param requestBody
957
+ * @returns EnvResponse Environment variable updated successfully
958
+ * @throws ApiError
959
+ */
960
+ updateEnv(key, requestBody) {
961
+ return this.httpRequest.request({
962
+ method: "PATCH",
963
+ url: "/api/env/i/{key}",
931
964
  path: {
932
965
  "key": key
933
966
  },
@@ -1010,18 +1043,184 @@ var EnvironmentVariablesService = class {
1010
1043
  }
1011
1044
  });
1012
1045
  }
1046
+ };
1047
+
1048
+ // src/services/EnvironmentVariablesPointInTimeService.ts
1049
+ var EnvironmentVariablesPointInTimeService = class {
1050
+ constructor(httpRequest) {
1051
+ this.httpRequest = httpRequest;
1052
+ }
1013
1053
  /**
1014
- * Update Environment Variable
1015
- * Update an existing environment variable
1054
+ * Get Environment Variables History
1055
+ * Retrieve paginated history of environment variable changes
1056
+ * @param requestBody
1057
+ * @returns EnvHistoryResponse Environment variables history retrieved successfully
1058
+ * @throws ApiError
1059
+ */
1060
+ getEnvHistory(requestBody) {
1061
+ return this.httpRequest.request({
1062
+ method: "POST",
1063
+ url: "/api/env/history",
1064
+ body: requestBody,
1065
+ mediaType: "application/json",
1066
+ errors: {
1067
+ 500: `Internal server error`
1068
+ }
1069
+ });
1070
+ }
1071
+ /**
1072
+ * Get Environment Variables at Point in Time
1073
+ * Retrieve environment variables state at a specific point in time
1074
+ * @param requestBody
1075
+ * @returns EnvPitStateResponse Environment variables at point in time retrieved successfully
1076
+ * @throws ApiError
1077
+ */
1078
+ getEnvsAtPointInTime(requestBody) {
1079
+ return this.httpRequest.request({
1080
+ method: "POST",
1081
+ url: "/api/env/pit",
1082
+ body: requestBody,
1083
+ mediaType: "application/json",
1084
+ errors: {
1085
+ 500: `Internal server error`
1086
+ }
1087
+ });
1088
+ }
1089
+ /**
1090
+ * Get Environment Variables at Timestamp
1091
+ * Retrieve environment variables state at a specific timestamp
1092
+ * @param requestBody
1093
+ * @returns EnvPitStateResponse Environment variables at timestamp retrieved successfully
1094
+ * @throws ApiError
1095
+ */
1096
+ getEnvsAtTimestamp(requestBody) {
1097
+ return this.httpRequest.request({
1098
+ method: "POST",
1099
+ url: "/api/env/timestamp",
1100
+ body: requestBody,
1101
+ mediaType: "application/json",
1102
+ errors: {
1103
+ 500: `Internal server error`
1104
+ }
1105
+ });
1106
+ }
1107
+ /**
1108
+ * Get Environment Variables Diff
1109
+ * Compare environment variables between two points in time
1110
+ * @param requestBody
1111
+ * @returns EnvDiffResponse Environment variables diff retrieved successfully
1112
+ * @throws ApiError
1113
+ */
1114
+ getEnvDiff(requestBody) {
1115
+ return this.httpRequest.request({
1116
+ method: "POST",
1117
+ url: "/api/env/diff",
1118
+ body: requestBody,
1119
+ mediaType: "application/json",
1120
+ errors: {
1121
+ 500: `Internal server error`
1122
+ }
1123
+ });
1124
+ }
1125
+ /**
1126
+ * Get Variable Timeline
1127
+ * Get timeline of changes for a specific environment variable
1016
1128
  * @param key
1017
1129
  * @param requestBody
1018
- * @returns EnvResponse Environment variable updated successfully
1130
+ * @returns VariableTimelineResponse Variable timeline retrieved successfully
1019
1131
  * @throws ApiError
1020
1132
  */
1021
- updateEnv(key, requestBody) {
1133
+ getVariableTimeline(key, requestBody) {
1022
1134
  return this.httpRequest.request({
1023
- method: "PATCH",
1024
- url: "/api/env/i/{key}",
1135
+ method: "POST",
1136
+ url: "/api/env/timeline/{key}",
1137
+ path: {
1138
+ "key": key
1139
+ },
1140
+ body: requestBody,
1141
+ mediaType: "application/json",
1142
+ errors: {
1143
+ 500: `Internal server error`
1144
+ }
1145
+ });
1146
+ }
1147
+ };
1148
+
1149
+ // src/services/EnvironmentVariablesRollbackService.ts
1150
+ var EnvironmentVariablesRollbackService = class {
1151
+ constructor(httpRequest) {
1152
+ this.httpRequest = httpRequest;
1153
+ }
1154
+ /**
1155
+ * Rollback Environment Variables to Point in Time
1156
+ * Rollback all environment variables to a specific point in time
1157
+ * @param requestBody
1158
+ * @returns RollbackResponse Environment variables rolled back successfully
1159
+ * @throws ApiError
1160
+ */
1161
+ rollbackEnvsToPitId(requestBody) {
1162
+ return this.httpRequest.request({
1163
+ method: "POST",
1164
+ url: "/api/env/rollback/pit",
1165
+ body: requestBody,
1166
+ mediaType: "application/json",
1167
+ errors: {
1168
+ 500: `Internal server error`
1169
+ }
1170
+ });
1171
+ }
1172
+ /**
1173
+ * Rollback Environment Variables to Timestamp
1174
+ * Rollback all environment variables to a specific timestamp
1175
+ * @param requestBody
1176
+ * @returns RollbackResponse Environment variables rolled back successfully
1177
+ * @throws ApiError
1178
+ */
1179
+ rollbackEnvsToTimestamp(requestBody) {
1180
+ return this.httpRequest.request({
1181
+ method: "POST",
1182
+ url: "/api/env/rollback/timestamp",
1183
+ body: requestBody,
1184
+ mediaType: "application/json",
1185
+ errors: {
1186
+ 500: `Internal server error`
1187
+ }
1188
+ });
1189
+ }
1190
+ /**
1191
+ * Rollback Single Variable to Point in Time
1192
+ * Rollback a specific environment variable to a point in time
1193
+ * @param key
1194
+ * @param requestBody
1195
+ * @returns VariableRollbackResponse Variable rolled back successfully
1196
+ * @throws ApiError
1197
+ */
1198
+ rollbackVariableToPitId(key, requestBody) {
1199
+ return this.httpRequest.request({
1200
+ method: "POST",
1201
+ url: "/api/env/rollback/variable/{key}/pit",
1202
+ path: {
1203
+ "key": key
1204
+ },
1205
+ body: requestBody,
1206
+ mediaType: "application/json",
1207
+ errors: {
1208
+ 500: `Internal server error`
1209
+ }
1210
+ });
1211
+ }
1212
+ /**
1213
+ * Rollback Single Variable to Timestamp
1214
+ * Rollback a specific environment variable to a timestamp
1215
+ * @param key
1216
+ * @param requestBody
1217
+ * @returns VariableRollbackResponse Variable rolled back successfully
1218
+ * @throws ApiError
1219
+ */
1220
+ rollbackVariableToTimestamp(key, requestBody) {
1221
+ return this.httpRequest.request({
1222
+ method: "POST",
1223
+ url: "/api/env/rollback/variable/{key}/timestamp",
1025
1224
  path: {
1026
1225
  "key": key
1027
1226
  },
@@ -1417,6 +1616,371 @@ var RolesService = class {
1417
1616
  }
1418
1617
  };
1419
1618
 
1619
+ // src/services/SecretsService.ts
1620
+ var SecretsService = class {
1621
+ constructor(httpRequest) {
1622
+ this.httpRequest = httpRequest;
1623
+ }
1624
+ /**
1625
+ * Get Secrets
1626
+ * Retrieve all secrets for an application and environment type
1627
+ * @param requestBody
1628
+ * @returns SecretsResponse Secrets retrieved successfully
1629
+ * @throws ApiError
1630
+ */
1631
+ getSecrets(requestBody) {
1632
+ return this.httpRequest.request({
1633
+ method: "POST",
1634
+ url: "/api/secret",
1635
+ body: requestBody,
1636
+ mediaType: "application/json",
1637
+ errors: {
1638
+ 500: `Internal server error`
1639
+ }
1640
+ });
1641
+ }
1642
+ /**
1643
+ * Delete Secret
1644
+ * Delete an existing secret
1645
+ * @param requestBody
1646
+ * @returns BatchSecretsResponse Secret deleted successfully
1647
+ * @throws ApiError
1648
+ */
1649
+ deleteSecret(requestBody) {
1650
+ return this.httpRequest.request({
1651
+ method: "DELETE",
1652
+ url: "/api/secret",
1653
+ body: requestBody,
1654
+ mediaType: "application/json",
1655
+ errors: {
1656
+ 500: `Internal server error`
1657
+ }
1658
+ });
1659
+ }
1660
+ /**
1661
+ * Get Single Secret
1662
+ * Retrieve a specific secret
1663
+ * @param key
1664
+ * @param requestBody
1665
+ * @returns SecretResponse Secret retrieved successfully
1666
+ * @throws ApiError
1667
+ */
1668
+ getSecret(key, requestBody) {
1669
+ return this.httpRequest.request({
1670
+ method: "POST",
1671
+ url: "/api/secret/i/{key}",
1672
+ path: {
1673
+ "key": key
1674
+ },
1675
+ body: requestBody,
1676
+ mediaType: "application/json",
1677
+ errors: {
1678
+ 500: `Internal server error`
1679
+ }
1680
+ });
1681
+ }
1682
+ /**
1683
+ * Update Secret
1684
+ * Update an existing secret
1685
+ * @param key
1686
+ * @param requestBody
1687
+ * @returns BatchSecretsResponse Secret updated successfully
1688
+ * @throws ApiError
1689
+ */
1690
+ updateSecret(key, requestBody) {
1691
+ return this.httpRequest.request({
1692
+ method: "PATCH",
1693
+ url: "/api/secret/i/{key}",
1694
+ path: {
1695
+ "key": key
1696
+ },
1697
+ body: requestBody,
1698
+ mediaType: "application/json",
1699
+ errors: {
1700
+ 500: `Internal server error`
1701
+ }
1702
+ });
1703
+ }
1704
+ /**
1705
+ * Create Secret
1706
+ * Create a new secret
1707
+ * @param requestBody
1708
+ * @returns SecretResponse Secret created successfully
1709
+ * @throws ApiError
1710
+ */
1711
+ createSecret(requestBody) {
1712
+ return this.httpRequest.request({
1713
+ method: "PUT",
1714
+ url: "/api/secret/single",
1715
+ body: requestBody,
1716
+ mediaType: "application/json",
1717
+ errors: {
1718
+ 500: `Internal server error`
1719
+ }
1720
+ });
1721
+ }
1722
+ /**
1723
+ * Batch Create Secrets
1724
+ * Create multiple secrets in a single request
1725
+ * @param requestBody
1726
+ * @returns BatchSecretsResponse Secrets created successfully
1727
+ * @throws ApiError
1728
+ */
1729
+ batchCreateSecrets(requestBody) {
1730
+ return this.httpRequest.request({
1731
+ method: "PUT",
1732
+ url: "/api/secret/batch",
1733
+ body: requestBody,
1734
+ mediaType: "application/json",
1735
+ errors: {
1736
+ 500: `Internal server error`
1737
+ }
1738
+ });
1739
+ }
1740
+ /**
1741
+ * Batch Update Secrets
1742
+ * Update multiple secrets in a single request
1743
+ * @param requestBody
1744
+ * @returns BatchSecretsResponse Secrets updated successfully
1745
+ * @throws ApiError
1746
+ */
1747
+ batchUpdateSecrets(requestBody) {
1748
+ return this.httpRequest.request({
1749
+ method: "PATCH",
1750
+ url: "/api/secret/batch",
1751
+ body: requestBody,
1752
+ mediaType: "application/json",
1753
+ errors: {
1754
+ 500: `Internal server error`
1755
+ }
1756
+ });
1757
+ }
1758
+ /**
1759
+ * Batch Delete Secrets
1760
+ * Delete multiple secrets in a single request
1761
+ * @param requestBody
1762
+ * @returns BatchSecretsResponse Secrets deleted successfully
1763
+ * @throws ApiError
1764
+ */
1765
+ deleteBatchSecrets(requestBody) {
1766
+ return this.httpRequest.request({
1767
+ method: "DELETE",
1768
+ url: "/api/secret/batch",
1769
+ body: requestBody,
1770
+ mediaType: "application/json",
1771
+ errors: {
1772
+ 500: `Internal server error`
1773
+ }
1774
+ });
1775
+ }
1776
+ /**
1777
+ * Reveal Secrets
1778
+ * Decrypt and reveal secret values for managed apps
1779
+ * @param requestBody
1780
+ * @returns RevealSecretsResponse Secrets revealed successfully
1781
+ * @throws ApiError
1782
+ */
1783
+ revealSecrets(requestBody) {
1784
+ return this.httpRequest.request({
1785
+ method: "POST",
1786
+ url: "/api/secret/reveal",
1787
+ body: requestBody,
1788
+ mediaType: "application/json",
1789
+ errors: {
1790
+ 500: `Internal server error`
1791
+ }
1792
+ });
1793
+ }
1794
+ };
1795
+
1796
+ // src/services/SecretsPointInTimeService.ts
1797
+ var SecretsPointInTimeService = class {
1798
+ constructor(httpRequest) {
1799
+ this.httpRequest = httpRequest;
1800
+ }
1801
+ /**
1802
+ * Get Secrets History
1803
+ * Retrieve paginated history of secret changes
1804
+ * @param requestBody
1805
+ * @returns SecretHistoryResponse Secrets history retrieved successfully
1806
+ * @throws ApiError
1807
+ */
1808
+ getSecretHistory(requestBody) {
1809
+ return this.httpRequest.request({
1810
+ method: "POST",
1811
+ url: "/api/secret/history",
1812
+ body: requestBody,
1813
+ mediaType: "application/json",
1814
+ errors: {
1815
+ 500: `Internal server error`
1816
+ }
1817
+ });
1818
+ }
1819
+ /**
1820
+ * Get Secrets at Point in Time
1821
+ * Retrieve secrets state at a specific point in time
1822
+ * @param requestBody
1823
+ * @returns SecretPitStateResponse Secrets at point in time retrieved successfully
1824
+ * @throws ApiError
1825
+ */
1826
+ getSecretsAtPointInTime(requestBody) {
1827
+ return this.httpRequest.request({
1828
+ method: "POST",
1829
+ url: "/api/secret/pit",
1830
+ body: requestBody,
1831
+ mediaType: "application/json",
1832
+ errors: {
1833
+ 500: `Internal server error`
1834
+ }
1835
+ });
1836
+ }
1837
+ /**
1838
+ * Get Secrets at Timestamp
1839
+ * Retrieve secrets state at a specific timestamp
1840
+ * @param requestBody
1841
+ * @returns SecretPitStateResponse Secrets at timestamp retrieved successfully
1842
+ * @throws ApiError
1843
+ */
1844
+ getSecretsAtTimestamp(requestBody) {
1845
+ return this.httpRequest.request({
1846
+ method: "POST",
1847
+ url: "/api/secret/timestamp",
1848
+ body: requestBody,
1849
+ mediaType: "application/json",
1850
+ errors: {
1851
+ 500: `Internal server error`
1852
+ }
1853
+ });
1854
+ }
1855
+ /**
1856
+ * Get Secrets Diff
1857
+ * Compare secrets between two points in time
1858
+ * @param requestBody
1859
+ * @returns SecretDiffResponse Secrets diff retrieved successfully
1860
+ * @throws ApiError
1861
+ */
1862
+ getSecretDiff(requestBody) {
1863
+ return this.httpRequest.request({
1864
+ method: "POST",
1865
+ url: "/api/secret/diff",
1866
+ body: requestBody,
1867
+ mediaType: "application/json",
1868
+ errors: {
1869
+ 500: `Internal server error`
1870
+ }
1871
+ });
1872
+ }
1873
+ /**
1874
+ * Get Secret Variable Timeline
1875
+ * Get timeline of changes for a specific secret variable
1876
+ * @param key
1877
+ * @param requestBody
1878
+ * @returns SecretVariableTimelineResponse Secret variable timeline retrieved successfully
1879
+ * @throws ApiError
1880
+ */
1881
+ getSecretVariableTimeline(key, requestBody) {
1882
+ return this.httpRequest.request({
1883
+ method: "POST",
1884
+ url: "/api/secret/timeline/{key}",
1885
+ path: {
1886
+ "key": key
1887
+ },
1888
+ body: requestBody,
1889
+ mediaType: "application/json",
1890
+ errors: {
1891
+ 500: `Internal server error`
1892
+ }
1893
+ });
1894
+ }
1895
+ };
1896
+
1897
+ // src/services/SecretsRollbackService.ts
1898
+ var SecretsRollbackService = class {
1899
+ constructor(httpRequest) {
1900
+ this.httpRequest = httpRequest;
1901
+ }
1902
+ /**
1903
+ * Rollback Secrets to Point in Time
1904
+ * Rollback all secrets to a specific point in time
1905
+ * @param requestBody
1906
+ * @returns RollbackSecretsResponse Secrets rolled back successfully
1907
+ * @throws ApiError
1908
+ */
1909
+ rollbackSecretsToPitId(requestBody) {
1910
+ return this.httpRequest.request({
1911
+ method: "POST",
1912
+ url: "/api/secret/rollback/pit",
1913
+ body: requestBody,
1914
+ mediaType: "application/json",
1915
+ errors: {
1916
+ 500: `Internal server error`
1917
+ }
1918
+ });
1919
+ }
1920
+ /**
1921
+ * Rollback Secrets to Timestamp
1922
+ * Rollback all secrets to a specific timestamp
1923
+ * @param requestBody
1924
+ * @returns RollbackSecretsResponse Secrets rolled back successfully
1925
+ * @throws ApiError
1926
+ */
1927
+ rollbackSecretsToTimestamp(requestBody) {
1928
+ return this.httpRequest.request({
1929
+ method: "POST",
1930
+ url: "/api/secret/rollback/timestamp",
1931
+ body: requestBody,
1932
+ mediaType: "application/json",
1933
+ errors: {
1934
+ 500: `Internal server error`
1935
+ }
1936
+ });
1937
+ }
1938
+ /**
1939
+ * Rollback Single Secret Variable to Point in Time
1940
+ * Rollback a specific secret variable to a point in time
1941
+ * @param key
1942
+ * @param requestBody
1943
+ * @returns SecretVariableRollbackResponse Secret variable rolled back successfully
1944
+ * @throws ApiError
1945
+ */
1946
+ rollbackSecretVariableToPitId(key, requestBody) {
1947
+ return this.httpRequest.request({
1948
+ method: "POST",
1949
+ url: "/api/secret/rollback/variable/{key}/pit",
1950
+ path: {
1951
+ "key": key
1952
+ },
1953
+ body: requestBody,
1954
+ mediaType: "application/json",
1955
+ errors: {
1956
+ 500: `Internal server error`
1957
+ }
1958
+ });
1959
+ }
1960
+ /**
1961
+ * Rollback Single Secret Variable to Timestamp
1962
+ * Rollback a specific secret variable to a timestamp
1963
+ * @param key
1964
+ * @param requestBody
1965
+ * @returns SecretVariableRollbackResponse Secret variable rolled back successfully
1966
+ * @throws ApiError
1967
+ */
1968
+ rollbackSecretVariableToTimestamp(key, requestBody) {
1969
+ return this.httpRequest.request({
1970
+ method: "POST",
1971
+ url: "/api/secret/rollback/variable/{key}/timestamp",
1972
+ path: {
1973
+ "key": key
1974
+ },
1975
+ body: requestBody,
1976
+ mediaType: "application/json",
1977
+ errors: {
1978
+ 500: `Internal server error`
1979
+ }
1980
+ });
1981
+ }
1982
+ };
1983
+
1420
1984
  // src/services/UsersService.ts
1421
1985
  var UsersService = class {
1422
1986
  constructor(httpRequest) {
@@ -1540,6 +2104,106 @@ var UsersService = class {
1540
2104
  }
1541
2105
  };
1542
2106
 
2107
+ // src/services/WebhooksService.ts
2108
+ var WebhooksService = class {
2109
+ constructor(httpRequest) {
2110
+ this.httpRequest = httpRequest;
2111
+ }
2112
+ /**
2113
+ * Create Webhook
2114
+ * Create a new webhook for the organization
2115
+ * @param requestBody
2116
+ * @returns WebhookResponse Webhook created successfully
2117
+ * @throws ApiError
2118
+ */
2119
+ createWebhook(requestBody) {
2120
+ return this.httpRequest.request({
2121
+ method: "POST",
2122
+ url: "/api/webhook",
2123
+ body: requestBody,
2124
+ mediaType: "application/json",
2125
+ errors: {
2126
+ 500: `Internal server error`
2127
+ }
2128
+ });
2129
+ }
2130
+ /**
2131
+ * Get All Webhooks
2132
+ * Retrieve all webhooks for the organization
2133
+ * @returns WebhooksResponse Webhooks retrieved successfully
2134
+ * @throws ApiError
2135
+ */
2136
+ getWebhooks() {
2137
+ return this.httpRequest.request({
2138
+ method: "GET",
2139
+ url: "/api/webhook",
2140
+ errors: {
2141
+ 500: `Internal server error`
2142
+ }
2143
+ });
2144
+ }
2145
+ /**
2146
+ * Get Webhook
2147
+ * Retrieve a specific webhook
2148
+ * @param id
2149
+ * @returns WebhookResponse Webhook retrieved successfully
2150
+ * @throws ApiError
2151
+ */
2152
+ getWebhook(id) {
2153
+ return this.httpRequest.request({
2154
+ method: "GET",
2155
+ url: "/api/webhook/{id}",
2156
+ path: {
2157
+ "id": id
2158
+ },
2159
+ errors: {
2160
+ 500: `Internal server error`
2161
+ }
2162
+ });
2163
+ }
2164
+ /**
2165
+ * Update Webhook
2166
+ * Update an existing webhook
2167
+ * @param id
2168
+ * @param requestBody
2169
+ * @returns WebhookResponse Webhook updated successfully
2170
+ * @throws ApiError
2171
+ */
2172
+ updateWebhook(id, requestBody) {
2173
+ return this.httpRequest.request({
2174
+ method: "PUT",
2175
+ url: "/api/webhook/{id}",
2176
+ path: {
2177
+ "id": id
2178
+ },
2179
+ body: requestBody,
2180
+ mediaType: "application/json",
2181
+ errors: {
2182
+ 500: `Internal server error`
2183
+ }
2184
+ });
2185
+ }
2186
+ /**
2187
+ * Delete Webhook
2188
+ * Delete an existing webhook
2189
+ * @param id
2190
+ * @returns WebhookResponse Webhook deleted successfully
2191
+ * @throws ApiError
2192
+ */
2193
+ deleteWebhook(id) {
2194
+ return this.httpRequest.request({
2195
+ method: "DELETE",
2196
+ url: "/api/webhook/{id}",
2197
+ path: {
2198
+ "id": id
2199
+ },
2200
+ errors: {
2201
+ 500: `Internal server error`
2202
+ }
2203
+ });
2204
+ }
2205
+ };
2206
+
1543
2207
  // src/EnvSyncAPISDK.ts
1544
2208
  var EnvSyncAPISDK = class {
1545
2209
  access;
@@ -1549,16 +2213,22 @@ var EnvSyncAPISDK = class {
1549
2213
  authentication;
1550
2214
  environmentTypes;
1551
2215
  environmentVariables;
2216
+ environmentVariablesPointInTime;
2217
+ environmentVariablesRollback;
1552
2218
  fileUpload;
1553
2219
  onboarding;
1554
2220
  organizations;
1555
2221
  roles;
2222
+ secrets;
2223
+ secretsPointInTime;
2224
+ secretsRollback;
1556
2225
  users;
2226
+ webhooks;
1557
2227
  request;
1558
2228
  constructor(config, HttpRequest = FetchHttpRequest) {
1559
2229
  this.request = new HttpRequest({
1560
2230
  BASE: config?.BASE ?? "http://localhost:8600",
1561
- VERSION: config?.VERSION ?? "0.3.0",
2231
+ VERSION: config?.VERSION ?? "0.3.3",
1562
2232
  WITH_CREDENTIALS: config?.WITH_CREDENTIALS ?? false,
1563
2233
  CREDENTIALS: config?.CREDENTIALS ?? "include",
1564
2234
  TOKEN: config?.TOKEN,
@@ -1574,18 +2244,24 @@ var EnvSyncAPISDK = class {
1574
2244
  this.authentication = new AuthenticationService(this.request);
1575
2245
  this.environmentTypes = new EnvironmentTypesService(this.request);
1576
2246
  this.environmentVariables = new EnvironmentVariablesService(this.request);
2247
+ this.environmentVariablesPointInTime = new EnvironmentVariablesPointInTimeService(this.request);
2248
+ this.environmentVariablesRollback = new EnvironmentVariablesRollbackService(this.request);
1577
2249
  this.fileUpload = new FileUploadService(this.request);
1578
2250
  this.onboarding = new OnboardingService(this.request);
1579
2251
  this.organizations = new OrganizationsService(this.request);
1580
2252
  this.roles = new RolesService(this.request);
2253
+ this.secrets = new SecretsService(this.request);
2254
+ this.secretsPointInTime = new SecretsPointInTimeService(this.request);
2255
+ this.secretsRollback = new SecretsRollbackService(this.request);
1581
2256
  this.users = new UsersService(this.request);
2257
+ this.webhooks = new WebhooksService(this.request);
1582
2258
  }
1583
2259
  };
1584
2260
 
1585
2261
  // src/core/OpenAPI.ts
1586
2262
  var OpenAPI = {
1587
2263
  BASE: "http://localhost:8600",
1588
- VERSION: "0.3.0",
2264
+ VERSION: "0.3.3",
1589
2265
  WITH_CREDENTIALS: false,
1590
2266
  CREDENTIALS: "include",
1591
2267
  TOKEN: void 0,
@@ -1594,6 +2270,76 @@ var OpenAPI = {
1594
2270
  HEADERS: void 0,
1595
2271
  ENCODE_PATH: void 0
1596
2272
  };
2273
+
2274
+ // src/models/CreateWebhookRequest.ts
2275
+ var CreateWebhookRequest;
2276
+ ((CreateWebhookRequest2) => {
2277
+ let webhook_type;
2278
+ ((webhook_type2) => {
2279
+ webhook_type2["DISCORD"] = "DISCORD";
2280
+ webhook_type2["SLACK"] = "SLACK";
2281
+ webhook_type2["CUSTOM"] = "CUSTOM";
2282
+ })(webhook_type = CreateWebhookRequest2.webhook_type || (CreateWebhookRequest2.webhook_type = {}));
2283
+ let linked_to;
2284
+ ((linked_to2) => {
2285
+ linked_to2["ORG"] = "org";
2286
+ linked_to2["APP"] = "app";
2287
+ })(linked_to = CreateWebhookRequest2.linked_to || (CreateWebhookRequest2.linked_to = {}));
2288
+ })(CreateWebhookRequest || (CreateWebhookRequest = {}));
2289
+
2290
+ // src/models/SecretVariableRollbackResponse.ts
2291
+ var SecretVariableRollbackResponse;
2292
+ ((SecretVariableRollbackResponse2) => {
2293
+ let operation;
2294
+ ((operation2) => {
2295
+ operation2["CREATE"] = "CREATE";
2296
+ operation2["UPDATE"] = "UPDATE";
2297
+ operation2["DELETE"] = "DELETE";
2298
+ })(operation = SecretVariableRollbackResponse2.operation || (SecretVariableRollbackResponse2.operation = {}));
2299
+ })(SecretVariableRollbackResponse || (SecretVariableRollbackResponse = {}));
2300
+
2301
+ // src/models/UpdateWebhookRequest.ts
2302
+ var UpdateWebhookRequest;
2303
+ ((UpdateWebhookRequest2) => {
2304
+ let webhook_type;
2305
+ ((webhook_type2) => {
2306
+ webhook_type2["DISCORD"] = "DISCORD";
2307
+ webhook_type2["SLACK"] = "SLACK";
2308
+ webhook_type2["CUSTOM"] = "CUSTOM";
2309
+ })(webhook_type = UpdateWebhookRequest2.webhook_type || (UpdateWebhookRequest2.webhook_type = {}));
2310
+ let linked_to;
2311
+ ((linked_to2) => {
2312
+ linked_to2["ORG"] = "org";
2313
+ linked_to2["APP"] = "app";
2314
+ })(linked_to = UpdateWebhookRequest2.linked_to || (UpdateWebhookRequest2.linked_to = {}));
2315
+ })(UpdateWebhookRequest || (UpdateWebhookRequest = {}));
2316
+
2317
+ // src/models/VariableRollbackResponse.ts
2318
+ var VariableRollbackResponse;
2319
+ ((VariableRollbackResponse2) => {
2320
+ let operation;
2321
+ ((operation2) => {
2322
+ operation2["CREATE"] = "CREATE";
2323
+ operation2["UPDATE"] = "UPDATE";
2324
+ operation2["DELETE"] = "DELETE";
2325
+ })(operation = VariableRollbackResponse2.operation || (VariableRollbackResponse2.operation = {}));
2326
+ })(VariableRollbackResponse || (VariableRollbackResponse = {}));
2327
+
2328
+ // src/models/WebhookResponse.ts
2329
+ var WebhookResponse;
2330
+ ((WebhookResponse2) => {
2331
+ let webhook_type;
2332
+ ((webhook_type2) => {
2333
+ webhook_type2["DISCORD"] = "DISCORD";
2334
+ webhook_type2["SLACK"] = "SLACK";
2335
+ webhook_type2["CUSTOM"] = "CUSTOM";
2336
+ })(webhook_type = WebhookResponse2.webhook_type || (WebhookResponse2.webhook_type = {}));
2337
+ let linked_to;
2338
+ ((linked_to2) => {
2339
+ linked_to2["ORG"] = "org";
2340
+ linked_to2["APP"] = "app";
2341
+ })(linked_to = WebhookResponse2.linked_to || (WebhookResponse2.linked_to = {}));
2342
+ })(WebhookResponse || (WebhookResponse = {}));
1597
2343
  // Annotate the CommonJS export names for ESM import in node:
1598
2344
  0 && (module.exports = {
1599
2345
  AccessService,
@@ -1605,13 +2351,24 @@ var OpenAPI = {
1605
2351
  BaseHttpRequest,
1606
2352
  CancelError,
1607
2353
  CancelablePromise,
2354
+ CreateWebhookRequest,
1608
2355
  EnvSyncAPISDK,
1609
2356
  EnvironmentTypesService,
2357
+ EnvironmentVariablesPointInTimeService,
2358
+ EnvironmentVariablesRollbackService,
1610
2359
  EnvironmentVariablesService,
1611
2360
  FileUploadService,
1612
2361
  OnboardingService,
1613
2362
  OpenAPI,
1614
2363
  OrganizationsService,
1615
2364
  RolesService,
1616
- UsersService
2365
+ SecretVariableRollbackResponse,
2366
+ SecretsPointInTimeService,
2367
+ SecretsRollbackService,
2368
+ SecretsService,
2369
+ UpdateWebhookRequest,
2370
+ UsersService,
2371
+ VariableRollbackResponse,
2372
+ WebhookResponse,
2373
+ WebhooksService
1617
2374
  });