@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.mjs CHANGED
@@ -884,7 +884,29 @@ var EnvironmentVariablesService = class {
884
884
  getEnv(key, requestBody) {
885
885
  return this.httpRequest.request({
886
886
  method: "POST",
887
- url: "/api/env/{key}",
887
+ url: "/api/env/i/{key}",
888
+ path: {
889
+ "key": key
890
+ },
891
+ body: requestBody,
892
+ mediaType: "application/json",
893
+ errors: {
894
+ 500: `Internal server error`
895
+ }
896
+ });
897
+ }
898
+ /**
899
+ * Update Environment Variable
900
+ * Update an existing environment variable
901
+ * @param key
902
+ * @param requestBody
903
+ * @returns EnvResponse Environment variable updated successfully
904
+ * @throws ApiError
905
+ */
906
+ updateEnv(key, requestBody) {
907
+ return this.httpRequest.request({
908
+ method: "PATCH",
909
+ url: "/api/env/i/{key}",
888
910
  path: {
889
911
  "key": key
890
912
  },
@@ -967,18 +989,184 @@ var EnvironmentVariablesService = class {
967
989
  }
968
990
  });
969
991
  }
992
+ };
993
+
994
+ // src/services/EnvironmentVariablesPointInTimeService.ts
995
+ var EnvironmentVariablesPointInTimeService = class {
996
+ constructor(httpRequest) {
997
+ this.httpRequest = httpRequest;
998
+ }
970
999
  /**
971
- * Update Environment Variable
972
- * Update an existing environment variable
1000
+ * Get Environment Variables History
1001
+ * Retrieve paginated history of environment variable changes
1002
+ * @param requestBody
1003
+ * @returns EnvHistoryResponse Environment variables history retrieved successfully
1004
+ * @throws ApiError
1005
+ */
1006
+ getEnvHistory(requestBody) {
1007
+ return this.httpRequest.request({
1008
+ method: "POST",
1009
+ url: "/api/env/history",
1010
+ body: requestBody,
1011
+ mediaType: "application/json",
1012
+ errors: {
1013
+ 500: `Internal server error`
1014
+ }
1015
+ });
1016
+ }
1017
+ /**
1018
+ * Get Environment Variables at Point in Time
1019
+ * Retrieve environment variables state at a specific point in time
1020
+ * @param requestBody
1021
+ * @returns EnvPitStateResponse Environment variables at point in time retrieved successfully
1022
+ * @throws ApiError
1023
+ */
1024
+ getEnvsAtPointInTime(requestBody) {
1025
+ return this.httpRequest.request({
1026
+ method: "POST",
1027
+ url: "/api/env/pit",
1028
+ body: requestBody,
1029
+ mediaType: "application/json",
1030
+ errors: {
1031
+ 500: `Internal server error`
1032
+ }
1033
+ });
1034
+ }
1035
+ /**
1036
+ * Get Environment Variables at Timestamp
1037
+ * Retrieve environment variables state at a specific timestamp
1038
+ * @param requestBody
1039
+ * @returns EnvPitStateResponse Environment variables at timestamp retrieved successfully
1040
+ * @throws ApiError
1041
+ */
1042
+ getEnvsAtTimestamp(requestBody) {
1043
+ return this.httpRequest.request({
1044
+ method: "POST",
1045
+ url: "/api/env/timestamp",
1046
+ body: requestBody,
1047
+ mediaType: "application/json",
1048
+ errors: {
1049
+ 500: `Internal server error`
1050
+ }
1051
+ });
1052
+ }
1053
+ /**
1054
+ * Get Environment Variables Diff
1055
+ * Compare environment variables between two points in time
1056
+ * @param requestBody
1057
+ * @returns EnvDiffResponse Environment variables diff retrieved successfully
1058
+ * @throws ApiError
1059
+ */
1060
+ getEnvDiff(requestBody) {
1061
+ return this.httpRequest.request({
1062
+ method: "POST",
1063
+ url: "/api/env/diff",
1064
+ body: requestBody,
1065
+ mediaType: "application/json",
1066
+ errors: {
1067
+ 500: `Internal server error`
1068
+ }
1069
+ });
1070
+ }
1071
+ /**
1072
+ * Get Variable Timeline
1073
+ * Get timeline of changes for a specific environment variable
973
1074
  * @param key
974
1075
  * @param requestBody
975
- * @returns EnvResponse Environment variable updated successfully
1076
+ * @returns VariableTimelineResponse Variable timeline retrieved successfully
976
1077
  * @throws ApiError
977
1078
  */
978
- updateEnv(key, requestBody) {
1079
+ getVariableTimeline(key, requestBody) {
979
1080
  return this.httpRequest.request({
980
- method: "PATCH",
981
- url: "/api/env/i/{key}",
1081
+ method: "POST",
1082
+ url: "/api/env/timeline/{key}",
1083
+ path: {
1084
+ "key": key
1085
+ },
1086
+ body: requestBody,
1087
+ mediaType: "application/json",
1088
+ errors: {
1089
+ 500: `Internal server error`
1090
+ }
1091
+ });
1092
+ }
1093
+ };
1094
+
1095
+ // src/services/EnvironmentVariablesRollbackService.ts
1096
+ var EnvironmentVariablesRollbackService = class {
1097
+ constructor(httpRequest) {
1098
+ this.httpRequest = httpRequest;
1099
+ }
1100
+ /**
1101
+ * Rollback Environment Variables to Point in Time
1102
+ * Rollback all environment variables to a specific point in time
1103
+ * @param requestBody
1104
+ * @returns RollbackResponse Environment variables rolled back successfully
1105
+ * @throws ApiError
1106
+ */
1107
+ rollbackEnvsToPitId(requestBody) {
1108
+ return this.httpRequest.request({
1109
+ method: "POST",
1110
+ url: "/api/env/rollback/pit",
1111
+ body: requestBody,
1112
+ mediaType: "application/json",
1113
+ errors: {
1114
+ 500: `Internal server error`
1115
+ }
1116
+ });
1117
+ }
1118
+ /**
1119
+ * Rollback Environment Variables to Timestamp
1120
+ * Rollback all environment variables to a specific timestamp
1121
+ * @param requestBody
1122
+ * @returns RollbackResponse Environment variables rolled back successfully
1123
+ * @throws ApiError
1124
+ */
1125
+ rollbackEnvsToTimestamp(requestBody) {
1126
+ return this.httpRequest.request({
1127
+ method: "POST",
1128
+ url: "/api/env/rollback/timestamp",
1129
+ body: requestBody,
1130
+ mediaType: "application/json",
1131
+ errors: {
1132
+ 500: `Internal server error`
1133
+ }
1134
+ });
1135
+ }
1136
+ /**
1137
+ * Rollback Single Variable to Point in Time
1138
+ * Rollback a specific environment variable to a point in time
1139
+ * @param key
1140
+ * @param requestBody
1141
+ * @returns VariableRollbackResponse Variable rolled back successfully
1142
+ * @throws ApiError
1143
+ */
1144
+ rollbackVariableToPitId(key, requestBody) {
1145
+ return this.httpRequest.request({
1146
+ method: "POST",
1147
+ url: "/api/env/rollback/variable/{key}/pit",
1148
+ path: {
1149
+ "key": key
1150
+ },
1151
+ body: requestBody,
1152
+ mediaType: "application/json",
1153
+ errors: {
1154
+ 500: `Internal server error`
1155
+ }
1156
+ });
1157
+ }
1158
+ /**
1159
+ * Rollback Single Variable to Timestamp
1160
+ * Rollback a specific environment variable to a timestamp
1161
+ * @param key
1162
+ * @param requestBody
1163
+ * @returns VariableRollbackResponse Variable rolled back successfully
1164
+ * @throws ApiError
1165
+ */
1166
+ rollbackVariableToTimestamp(key, requestBody) {
1167
+ return this.httpRequest.request({
1168
+ method: "POST",
1169
+ url: "/api/env/rollback/variable/{key}/timestamp",
982
1170
  path: {
983
1171
  "key": key
984
1172
  },
@@ -1374,6 +1562,371 @@ var RolesService = class {
1374
1562
  }
1375
1563
  };
1376
1564
 
1565
+ // src/services/SecretsService.ts
1566
+ var SecretsService = class {
1567
+ constructor(httpRequest) {
1568
+ this.httpRequest = httpRequest;
1569
+ }
1570
+ /**
1571
+ * Get Secrets
1572
+ * Retrieve all secrets for an application and environment type
1573
+ * @param requestBody
1574
+ * @returns SecretsResponse Secrets retrieved successfully
1575
+ * @throws ApiError
1576
+ */
1577
+ getSecrets(requestBody) {
1578
+ return this.httpRequest.request({
1579
+ method: "POST",
1580
+ url: "/api/secret",
1581
+ body: requestBody,
1582
+ mediaType: "application/json",
1583
+ errors: {
1584
+ 500: `Internal server error`
1585
+ }
1586
+ });
1587
+ }
1588
+ /**
1589
+ * Delete Secret
1590
+ * Delete an existing secret
1591
+ * @param requestBody
1592
+ * @returns BatchSecretsResponse Secret deleted successfully
1593
+ * @throws ApiError
1594
+ */
1595
+ deleteSecret(requestBody) {
1596
+ return this.httpRequest.request({
1597
+ method: "DELETE",
1598
+ url: "/api/secret",
1599
+ body: requestBody,
1600
+ mediaType: "application/json",
1601
+ errors: {
1602
+ 500: `Internal server error`
1603
+ }
1604
+ });
1605
+ }
1606
+ /**
1607
+ * Get Single Secret
1608
+ * Retrieve a specific secret
1609
+ * @param key
1610
+ * @param requestBody
1611
+ * @returns SecretResponse Secret retrieved successfully
1612
+ * @throws ApiError
1613
+ */
1614
+ getSecret(key, requestBody) {
1615
+ return this.httpRequest.request({
1616
+ method: "POST",
1617
+ url: "/api/secret/i/{key}",
1618
+ path: {
1619
+ "key": key
1620
+ },
1621
+ body: requestBody,
1622
+ mediaType: "application/json",
1623
+ errors: {
1624
+ 500: `Internal server error`
1625
+ }
1626
+ });
1627
+ }
1628
+ /**
1629
+ * Update Secret
1630
+ * Update an existing secret
1631
+ * @param key
1632
+ * @param requestBody
1633
+ * @returns BatchSecretsResponse Secret updated successfully
1634
+ * @throws ApiError
1635
+ */
1636
+ updateSecret(key, requestBody) {
1637
+ return this.httpRequest.request({
1638
+ method: "PATCH",
1639
+ url: "/api/secret/i/{key}",
1640
+ path: {
1641
+ "key": key
1642
+ },
1643
+ body: requestBody,
1644
+ mediaType: "application/json",
1645
+ errors: {
1646
+ 500: `Internal server error`
1647
+ }
1648
+ });
1649
+ }
1650
+ /**
1651
+ * Create Secret
1652
+ * Create a new secret
1653
+ * @param requestBody
1654
+ * @returns SecretResponse Secret created successfully
1655
+ * @throws ApiError
1656
+ */
1657
+ createSecret(requestBody) {
1658
+ return this.httpRequest.request({
1659
+ method: "PUT",
1660
+ url: "/api/secret/single",
1661
+ body: requestBody,
1662
+ mediaType: "application/json",
1663
+ errors: {
1664
+ 500: `Internal server error`
1665
+ }
1666
+ });
1667
+ }
1668
+ /**
1669
+ * Batch Create Secrets
1670
+ * Create multiple secrets in a single request
1671
+ * @param requestBody
1672
+ * @returns BatchSecretsResponse Secrets created successfully
1673
+ * @throws ApiError
1674
+ */
1675
+ batchCreateSecrets(requestBody) {
1676
+ return this.httpRequest.request({
1677
+ method: "PUT",
1678
+ url: "/api/secret/batch",
1679
+ body: requestBody,
1680
+ mediaType: "application/json",
1681
+ errors: {
1682
+ 500: `Internal server error`
1683
+ }
1684
+ });
1685
+ }
1686
+ /**
1687
+ * Batch Update Secrets
1688
+ * Update multiple secrets in a single request
1689
+ * @param requestBody
1690
+ * @returns BatchSecretsResponse Secrets updated successfully
1691
+ * @throws ApiError
1692
+ */
1693
+ batchUpdateSecrets(requestBody) {
1694
+ return this.httpRequest.request({
1695
+ method: "PATCH",
1696
+ url: "/api/secret/batch",
1697
+ body: requestBody,
1698
+ mediaType: "application/json",
1699
+ errors: {
1700
+ 500: `Internal server error`
1701
+ }
1702
+ });
1703
+ }
1704
+ /**
1705
+ * Batch Delete Secrets
1706
+ * Delete multiple secrets in a single request
1707
+ * @param requestBody
1708
+ * @returns BatchSecretsResponse Secrets deleted successfully
1709
+ * @throws ApiError
1710
+ */
1711
+ deleteBatchSecrets(requestBody) {
1712
+ return this.httpRequest.request({
1713
+ method: "DELETE",
1714
+ url: "/api/secret/batch",
1715
+ body: requestBody,
1716
+ mediaType: "application/json",
1717
+ errors: {
1718
+ 500: `Internal server error`
1719
+ }
1720
+ });
1721
+ }
1722
+ /**
1723
+ * Reveal Secrets
1724
+ * Decrypt and reveal secret values for managed apps
1725
+ * @param requestBody
1726
+ * @returns RevealSecretsResponse Secrets revealed successfully
1727
+ * @throws ApiError
1728
+ */
1729
+ revealSecrets(requestBody) {
1730
+ return this.httpRequest.request({
1731
+ method: "POST",
1732
+ url: "/api/secret/reveal",
1733
+ body: requestBody,
1734
+ mediaType: "application/json",
1735
+ errors: {
1736
+ 500: `Internal server error`
1737
+ }
1738
+ });
1739
+ }
1740
+ };
1741
+
1742
+ // src/services/SecretsPointInTimeService.ts
1743
+ var SecretsPointInTimeService = class {
1744
+ constructor(httpRequest) {
1745
+ this.httpRequest = httpRequest;
1746
+ }
1747
+ /**
1748
+ * Get Secrets History
1749
+ * Retrieve paginated history of secret changes
1750
+ * @param requestBody
1751
+ * @returns SecretHistoryResponse Secrets history retrieved successfully
1752
+ * @throws ApiError
1753
+ */
1754
+ getSecretHistory(requestBody) {
1755
+ return this.httpRequest.request({
1756
+ method: "POST",
1757
+ url: "/api/secret/history",
1758
+ body: requestBody,
1759
+ mediaType: "application/json",
1760
+ errors: {
1761
+ 500: `Internal server error`
1762
+ }
1763
+ });
1764
+ }
1765
+ /**
1766
+ * Get Secrets at Point in Time
1767
+ * Retrieve secrets state at a specific point in time
1768
+ * @param requestBody
1769
+ * @returns SecretPitStateResponse Secrets at point in time retrieved successfully
1770
+ * @throws ApiError
1771
+ */
1772
+ getSecretsAtPointInTime(requestBody) {
1773
+ return this.httpRequest.request({
1774
+ method: "POST",
1775
+ url: "/api/secret/pit",
1776
+ body: requestBody,
1777
+ mediaType: "application/json",
1778
+ errors: {
1779
+ 500: `Internal server error`
1780
+ }
1781
+ });
1782
+ }
1783
+ /**
1784
+ * Get Secrets at Timestamp
1785
+ * Retrieve secrets state at a specific timestamp
1786
+ * @param requestBody
1787
+ * @returns SecretPitStateResponse Secrets at timestamp retrieved successfully
1788
+ * @throws ApiError
1789
+ */
1790
+ getSecretsAtTimestamp(requestBody) {
1791
+ return this.httpRequest.request({
1792
+ method: "POST",
1793
+ url: "/api/secret/timestamp",
1794
+ body: requestBody,
1795
+ mediaType: "application/json",
1796
+ errors: {
1797
+ 500: `Internal server error`
1798
+ }
1799
+ });
1800
+ }
1801
+ /**
1802
+ * Get Secrets Diff
1803
+ * Compare secrets between two points in time
1804
+ * @param requestBody
1805
+ * @returns SecretDiffResponse Secrets diff retrieved successfully
1806
+ * @throws ApiError
1807
+ */
1808
+ getSecretDiff(requestBody) {
1809
+ return this.httpRequest.request({
1810
+ method: "POST",
1811
+ url: "/api/secret/diff",
1812
+ body: requestBody,
1813
+ mediaType: "application/json",
1814
+ errors: {
1815
+ 500: `Internal server error`
1816
+ }
1817
+ });
1818
+ }
1819
+ /**
1820
+ * Get Secret Variable Timeline
1821
+ * Get timeline of changes for a specific secret variable
1822
+ * @param key
1823
+ * @param requestBody
1824
+ * @returns SecretVariableTimelineResponse Secret variable timeline retrieved successfully
1825
+ * @throws ApiError
1826
+ */
1827
+ getSecretVariableTimeline(key, requestBody) {
1828
+ return this.httpRequest.request({
1829
+ method: "POST",
1830
+ url: "/api/secret/timeline/{key}",
1831
+ path: {
1832
+ "key": key
1833
+ },
1834
+ body: requestBody,
1835
+ mediaType: "application/json",
1836
+ errors: {
1837
+ 500: `Internal server error`
1838
+ }
1839
+ });
1840
+ }
1841
+ };
1842
+
1843
+ // src/services/SecretsRollbackService.ts
1844
+ var SecretsRollbackService = class {
1845
+ constructor(httpRequest) {
1846
+ this.httpRequest = httpRequest;
1847
+ }
1848
+ /**
1849
+ * Rollback Secrets to Point in Time
1850
+ * Rollback all secrets to a specific point in time
1851
+ * @param requestBody
1852
+ * @returns RollbackSecretsResponse Secrets rolled back successfully
1853
+ * @throws ApiError
1854
+ */
1855
+ rollbackSecretsToPitId(requestBody) {
1856
+ return this.httpRequest.request({
1857
+ method: "POST",
1858
+ url: "/api/secret/rollback/pit",
1859
+ body: requestBody,
1860
+ mediaType: "application/json",
1861
+ errors: {
1862
+ 500: `Internal server error`
1863
+ }
1864
+ });
1865
+ }
1866
+ /**
1867
+ * Rollback Secrets to Timestamp
1868
+ * Rollback all secrets to a specific timestamp
1869
+ * @param requestBody
1870
+ * @returns RollbackSecretsResponse Secrets rolled back successfully
1871
+ * @throws ApiError
1872
+ */
1873
+ rollbackSecretsToTimestamp(requestBody) {
1874
+ return this.httpRequest.request({
1875
+ method: "POST",
1876
+ url: "/api/secret/rollback/timestamp",
1877
+ body: requestBody,
1878
+ mediaType: "application/json",
1879
+ errors: {
1880
+ 500: `Internal server error`
1881
+ }
1882
+ });
1883
+ }
1884
+ /**
1885
+ * Rollback Single Secret Variable to Point in Time
1886
+ * Rollback a specific secret variable to a point in time
1887
+ * @param key
1888
+ * @param requestBody
1889
+ * @returns SecretVariableRollbackResponse Secret variable rolled back successfully
1890
+ * @throws ApiError
1891
+ */
1892
+ rollbackSecretVariableToPitId(key, requestBody) {
1893
+ return this.httpRequest.request({
1894
+ method: "POST",
1895
+ url: "/api/secret/rollback/variable/{key}/pit",
1896
+ path: {
1897
+ "key": key
1898
+ },
1899
+ body: requestBody,
1900
+ mediaType: "application/json",
1901
+ errors: {
1902
+ 500: `Internal server error`
1903
+ }
1904
+ });
1905
+ }
1906
+ /**
1907
+ * Rollback Single Secret Variable to Timestamp
1908
+ * Rollback a specific secret variable to a timestamp
1909
+ * @param key
1910
+ * @param requestBody
1911
+ * @returns SecretVariableRollbackResponse Secret variable rolled back successfully
1912
+ * @throws ApiError
1913
+ */
1914
+ rollbackSecretVariableToTimestamp(key, requestBody) {
1915
+ return this.httpRequest.request({
1916
+ method: "POST",
1917
+ url: "/api/secret/rollback/variable/{key}/timestamp",
1918
+ path: {
1919
+ "key": key
1920
+ },
1921
+ body: requestBody,
1922
+ mediaType: "application/json",
1923
+ errors: {
1924
+ 500: `Internal server error`
1925
+ }
1926
+ });
1927
+ }
1928
+ };
1929
+
1377
1930
  // src/services/UsersService.ts
1378
1931
  var UsersService = class {
1379
1932
  constructor(httpRequest) {
@@ -1497,6 +2050,106 @@ var UsersService = class {
1497
2050
  }
1498
2051
  };
1499
2052
 
2053
+ // src/services/WebhooksService.ts
2054
+ var WebhooksService = class {
2055
+ constructor(httpRequest) {
2056
+ this.httpRequest = httpRequest;
2057
+ }
2058
+ /**
2059
+ * Create Webhook
2060
+ * Create a new webhook for the organization
2061
+ * @param requestBody
2062
+ * @returns WebhookResponse Webhook created successfully
2063
+ * @throws ApiError
2064
+ */
2065
+ createWebhook(requestBody) {
2066
+ return this.httpRequest.request({
2067
+ method: "POST",
2068
+ url: "/api/webhook",
2069
+ body: requestBody,
2070
+ mediaType: "application/json",
2071
+ errors: {
2072
+ 500: `Internal server error`
2073
+ }
2074
+ });
2075
+ }
2076
+ /**
2077
+ * Get All Webhooks
2078
+ * Retrieve all webhooks for the organization
2079
+ * @returns WebhooksResponse Webhooks retrieved successfully
2080
+ * @throws ApiError
2081
+ */
2082
+ getWebhooks() {
2083
+ return this.httpRequest.request({
2084
+ method: "GET",
2085
+ url: "/api/webhook",
2086
+ errors: {
2087
+ 500: `Internal server error`
2088
+ }
2089
+ });
2090
+ }
2091
+ /**
2092
+ * Get Webhook
2093
+ * Retrieve a specific webhook
2094
+ * @param id
2095
+ * @returns WebhookResponse Webhook retrieved successfully
2096
+ * @throws ApiError
2097
+ */
2098
+ getWebhook(id) {
2099
+ return this.httpRequest.request({
2100
+ method: "GET",
2101
+ url: "/api/webhook/{id}",
2102
+ path: {
2103
+ "id": id
2104
+ },
2105
+ errors: {
2106
+ 500: `Internal server error`
2107
+ }
2108
+ });
2109
+ }
2110
+ /**
2111
+ * Update Webhook
2112
+ * Update an existing webhook
2113
+ * @param id
2114
+ * @param requestBody
2115
+ * @returns WebhookResponse Webhook updated successfully
2116
+ * @throws ApiError
2117
+ */
2118
+ updateWebhook(id, requestBody) {
2119
+ return this.httpRequest.request({
2120
+ method: "PUT",
2121
+ url: "/api/webhook/{id}",
2122
+ path: {
2123
+ "id": id
2124
+ },
2125
+ body: requestBody,
2126
+ mediaType: "application/json",
2127
+ errors: {
2128
+ 500: `Internal server error`
2129
+ }
2130
+ });
2131
+ }
2132
+ /**
2133
+ * Delete Webhook
2134
+ * Delete an existing webhook
2135
+ * @param id
2136
+ * @returns WebhookResponse Webhook deleted successfully
2137
+ * @throws ApiError
2138
+ */
2139
+ deleteWebhook(id) {
2140
+ return this.httpRequest.request({
2141
+ method: "DELETE",
2142
+ url: "/api/webhook/{id}",
2143
+ path: {
2144
+ "id": id
2145
+ },
2146
+ errors: {
2147
+ 500: `Internal server error`
2148
+ }
2149
+ });
2150
+ }
2151
+ };
2152
+
1500
2153
  // src/EnvSyncAPISDK.ts
1501
2154
  var EnvSyncAPISDK = class {
1502
2155
  access;
@@ -1506,16 +2159,22 @@ var EnvSyncAPISDK = class {
1506
2159
  authentication;
1507
2160
  environmentTypes;
1508
2161
  environmentVariables;
2162
+ environmentVariablesPointInTime;
2163
+ environmentVariablesRollback;
1509
2164
  fileUpload;
1510
2165
  onboarding;
1511
2166
  organizations;
1512
2167
  roles;
2168
+ secrets;
2169
+ secretsPointInTime;
2170
+ secretsRollback;
1513
2171
  users;
2172
+ webhooks;
1514
2173
  request;
1515
2174
  constructor(config, HttpRequest = FetchHttpRequest) {
1516
2175
  this.request = new HttpRequest({
1517
2176
  BASE: config?.BASE ?? "http://localhost:8600",
1518
- VERSION: config?.VERSION ?? "0.3.0",
2177
+ VERSION: config?.VERSION ?? "0.3.3",
1519
2178
  WITH_CREDENTIALS: config?.WITH_CREDENTIALS ?? false,
1520
2179
  CREDENTIALS: config?.CREDENTIALS ?? "include",
1521
2180
  TOKEN: config?.TOKEN,
@@ -1531,18 +2190,24 @@ var EnvSyncAPISDK = class {
1531
2190
  this.authentication = new AuthenticationService(this.request);
1532
2191
  this.environmentTypes = new EnvironmentTypesService(this.request);
1533
2192
  this.environmentVariables = new EnvironmentVariablesService(this.request);
2193
+ this.environmentVariablesPointInTime = new EnvironmentVariablesPointInTimeService(this.request);
2194
+ this.environmentVariablesRollback = new EnvironmentVariablesRollbackService(this.request);
1534
2195
  this.fileUpload = new FileUploadService(this.request);
1535
2196
  this.onboarding = new OnboardingService(this.request);
1536
2197
  this.organizations = new OrganizationsService(this.request);
1537
2198
  this.roles = new RolesService(this.request);
2199
+ this.secrets = new SecretsService(this.request);
2200
+ this.secretsPointInTime = new SecretsPointInTimeService(this.request);
2201
+ this.secretsRollback = new SecretsRollbackService(this.request);
1538
2202
  this.users = new UsersService(this.request);
2203
+ this.webhooks = new WebhooksService(this.request);
1539
2204
  }
1540
2205
  };
1541
2206
 
1542
2207
  // src/core/OpenAPI.ts
1543
2208
  var OpenAPI = {
1544
2209
  BASE: "http://localhost:8600",
1545
- VERSION: "0.3.0",
2210
+ VERSION: "0.3.3",
1546
2211
  WITH_CREDENTIALS: false,
1547
2212
  CREDENTIALS: "include",
1548
2213
  TOKEN: void 0,
@@ -1551,6 +2216,76 @@ var OpenAPI = {
1551
2216
  HEADERS: void 0,
1552
2217
  ENCODE_PATH: void 0
1553
2218
  };
2219
+
2220
+ // src/models/CreateWebhookRequest.ts
2221
+ var CreateWebhookRequest;
2222
+ ((CreateWebhookRequest2) => {
2223
+ let webhook_type;
2224
+ ((webhook_type2) => {
2225
+ webhook_type2["DISCORD"] = "DISCORD";
2226
+ webhook_type2["SLACK"] = "SLACK";
2227
+ webhook_type2["CUSTOM"] = "CUSTOM";
2228
+ })(webhook_type = CreateWebhookRequest2.webhook_type || (CreateWebhookRequest2.webhook_type = {}));
2229
+ let linked_to;
2230
+ ((linked_to2) => {
2231
+ linked_to2["ORG"] = "org";
2232
+ linked_to2["APP"] = "app";
2233
+ })(linked_to = CreateWebhookRequest2.linked_to || (CreateWebhookRequest2.linked_to = {}));
2234
+ })(CreateWebhookRequest || (CreateWebhookRequest = {}));
2235
+
2236
+ // src/models/SecretVariableRollbackResponse.ts
2237
+ var SecretVariableRollbackResponse;
2238
+ ((SecretVariableRollbackResponse2) => {
2239
+ let operation;
2240
+ ((operation2) => {
2241
+ operation2["CREATE"] = "CREATE";
2242
+ operation2["UPDATE"] = "UPDATE";
2243
+ operation2["DELETE"] = "DELETE";
2244
+ })(operation = SecretVariableRollbackResponse2.operation || (SecretVariableRollbackResponse2.operation = {}));
2245
+ })(SecretVariableRollbackResponse || (SecretVariableRollbackResponse = {}));
2246
+
2247
+ // src/models/UpdateWebhookRequest.ts
2248
+ var UpdateWebhookRequest;
2249
+ ((UpdateWebhookRequest2) => {
2250
+ let webhook_type;
2251
+ ((webhook_type2) => {
2252
+ webhook_type2["DISCORD"] = "DISCORD";
2253
+ webhook_type2["SLACK"] = "SLACK";
2254
+ webhook_type2["CUSTOM"] = "CUSTOM";
2255
+ })(webhook_type = UpdateWebhookRequest2.webhook_type || (UpdateWebhookRequest2.webhook_type = {}));
2256
+ let linked_to;
2257
+ ((linked_to2) => {
2258
+ linked_to2["ORG"] = "org";
2259
+ linked_to2["APP"] = "app";
2260
+ })(linked_to = UpdateWebhookRequest2.linked_to || (UpdateWebhookRequest2.linked_to = {}));
2261
+ })(UpdateWebhookRequest || (UpdateWebhookRequest = {}));
2262
+
2263
+ // src/models/VariableRollbackResponse.ts
2264
+ var VariableRollbackResponse;
2265
+ ((VariableRollbackResponse2) => {
2266
+ let operation;
2267
+ ((operation2) => {
2268
+ operation2["CREATE"] = "CREATE";
2269
+ operation2["UPDATE"] = "UPDATE";
2270
+ operation2["DELETE"] = "DELETE";
2271
+ })(operation = VariableRollbackResponse2.operation || (VariableRollbackResponse2.operation = {}));
2272
+ })(VariableRollbackResponse || (VariableRollbackResponse = {}));
2273
+
2274
+ // src/models/WebhookResponse.ts
2275
+ var WebhookResponse;
2276
+ ((WebhookResponse2) => {
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 = WebhookResponse2.webhook_type || (WebhookResponse2.webhook_type = {}));
2283
+ let linked_to;
2284
+ ((linked_to2) => {
2285
+ linked_to2["ORG"] = "org";
2286
+ linked_to2["APP"] = "app";
2287
+ })(linked_to = WebhookResponse2.linked_to || (WebhookResponse2.linked_to = {}));
2288
+ })(WebhookResponse || (WebhookResponse = {}));
1554
2289
  export {
1555
2290
  AccessService,
1556
2291
  ApiError,
@@ -1561,13 +2296,24 @@ export {
1561
2296
  BaseHttpRequest,
1562
2297
  CancelError,
1563
2298
  CancelablePromise,
2299
+ CreateWebhookRequest,
1564
2300
  EnvSyncAPISDK,
1565
2301
  EnvironmentTypesService,
2302
+ EnvironmentVariablesPointInTimeService,
2303
+ EnvironmentVariablesRollbackService,
1566
2304
  EnvironmentVariablesService,
1567
2305
  FileUploadService,
1568
2306
  OnboardingService,
1569
2307
  OpenAPI,
1570
2308
  OrganizationsService,
1571
2309
  RolesService,
1572
- UsersService
2310
+ SecretVariableRollbackResponse,
2311
+ SecretsPointInTimeService,
2312
+ SecretsRollbackService,
2313
+ SecretsService,
2314
+ UpdateWebhookRequest,
2315
+ UsersService,
2316
+ VariableRollbackResponse,
2317
+ WebhookResponse,
2318
+ WebhooksService
1573
2319
  };