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