@envsync-cloud/envsync-ts-sdk 0.3.0 → 0.3.1
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.d.mts +608 -5
- package/dist/index.d.ts +608 -5
- package/dist/index.global.js +594 -9
- package/dist/index.js +610 -11
- package/dist/index.mjs +602 -10
- package/package.json +1 -1
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
|
-
*
|
|
972
|
-
*
|
|
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
|
|
1076
|
+
* @returns VariableTimelineResponse Variable timeline retrieved successfully
|
|
976
1077
|
* @throws ApiError
|
|
977
1078
|
*/
|
|
978
|
-
|
|
1079
|
+
getVariableTimeline(key, requestBody) {
|
|
979
1080
|
return this.httpRequest.request({
|
|
980
|
-
method: "
|
|
981
|
-
url: "/api/env/
|
|
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) {
|
|
@@ -1506,16 +2059,21 @@ var EnvSyncAPISDK = class {
|
|
|
1506
2059
|
authentication;
|
|
1507
2060
|
environmentTypes;
|
|
1508
2061
|
environmentVariables;
|
|
2062
|
+
environmentVariablesPointInTime;
|
|
2063
|
+
environmentVariablesRollback;
|
|
1509
2064
|
fileUpload;
|
|
1510
2065
|
onboarding;
|
|
1511
2066
|
organizations;
|
|
1512
2067
|
roles;
|
|
2068
|
+
secrets;
|
|
2069
|
+
secretsPointInTime;
|
|
2070
|
+
secretsRollback;
|
|
1513
2071
|
users;
|
|
1514
2072
|
request;
|
|
1515
2073
|
constructor(config, HttpRequest = FetchHttpRequest) {
|
|
1516
2074
|
this.request = new HttpRequest({
|
|
1517
2075
|
BASE: config?.BASE ?? "http://localhost:8600",
|
|
1518
|
-
VERSION: config?.VERSION ?? "0.3.
|
|
2076
|
+
VERSION: config?.VERSION ?? "0.3.1",
|
|
1519
2077
|
WITH_CREDENTIALS: config?.WITH_CREDENTIALS ?? false,
|
|
1520
2078
|
CREDENTIALS: config?.CREDENTIALS ?? "include",
|
|
1521
2079
|
TOKEN: config?.TOKEN,
|
|
@@ -1531,10 +2089,15 @@ var EnvSyncAPISDK = class {
|
|
|
1531
2089
|
this.authentication = new AuthenticationService(this.request);
|
|
1532
2090
|
this.environmentTypes = new EnvironmentTypesService(this.request);
|
|
1533
2091
|
this.environmentVariables = new EnvironmentVariablesService(this.request);
|
|
2092
|
+
this.environmentVariablesPointInTime = new EnvironmentVariablesPointInTimeService(this.request);
|
|
2093
|
+
this.environmentVariablesRollback = new EnvironmentVariablesRollbackService(this.request);
|
|
1534
2094
|
this.fileUpload = new FileUploadService(this.request);
|
|
1535
2095
|
this.onboarding = new OnboardingService(this.request);
|
|
1536
2096
|
this.organizations = new OrganizationsService(this.request);
|
|
1537
2097
|
this.roles = new RolesService(this.request);
|
|
2098
|
+
this.secrets = new SecretsService(this.request);
|
|
2099
|
+
this.secretsPointInTime = new SecretsPointInTimeService(this.request);
|
|
2100
|
+
this.secretsRollback = new SecretsRollbackService(this.request);
|
|
1538
2101
|
this.users = new UsersService(this.request);
|
|
1539
2102
|
}
|
|
1540
2103
|
};
|
|
@@ -1542,7 +2105,7 @@ var EnvSyncAPISDK = class {
|
|
|
1542
2105
|
// src/core/OpenAPI.ts
|
|
1543
2106
|
var OpenAPI = {
|
|
1544
2107
|
BASE: "http://localhost:8600",
|
|
1545
|
-
VERSION: "0.3.
|
|
2108
|
+
VERSION: "0.3.1",
|
|
1546
2109
|
WITH_CREDENTIALS: false,
|
|
1547
2110
|
CREDENTIALS: "include",
|
|
1548
2111
|
TOKEN: void 0,
|
|
@@ -1551,6 +2114,28 @@ var OpenAPI = {
|
|
|
1551
2114
|
HEADERS: void 0,
|
|
1552
2115
|
ENCODE_PATH: void 0
|
|
1553
2116
|
};
|
|
2117
|
+
|
|
2118
|
+
// src/models/SecretVariableRollbackResponse.ts
|
|
2119
|
+
var SecretVariableRollbackResponse;
|
|
2120
|
+
((SecretVariableRollbackResponse2) => {
|
|
2121
|
+
let operation;
|
|
2122
|
+
((operation2) => {
|
|
2123
|
+
operation2["CREATE"] = "CREATE";
|
|
2124
|
+
operation2["UPDATE"] = "UPDATE";
|
|
2125
|
+
operation2["DELETE"] = "DELETE";
|
|
2126
|
+
})(operation = SecretVariableRollbackResponse2.operation || (SecretVariableRollbackResponse2.operation = {}));
|
|
2127
|
+
})(SecretVariableRollbackResponse || (SecretVariableRollbackResponse = {}));
|
|
2128
|
+
|
|
2129
|
+
// src/models/VariableRollbackResponse.ts
|
|
2130
|
+
var VariableRollbackResponse;
|
|
2131
|
+
((VariableRollbackResponse2) => {
|
|
2132
|
+
let operation;
|
|
2133
|
+
((operation2) => {
|
|
2134
|
+
operation2["CREATE"] = "CREATE";
|
|
2135
|
+
operation2["UPDATE"] = "UPDATE";
|
|
2136
|
+
operation2["DELETE"] = "DELETE";
|
|
2137
|
+
})(operation = VariableRollbackResponse2.operation || (VariableRollbackResponse2.operation = {}));
|
|
2138
|
+
})(VariableRollbackResponse || (VariableRollbackResponse = {}));
|
|
1554
2139
|
export {
|
|
1555
2140
|
AccessService,
|
|
1556
2141
|
ApiError,
|
|
@@ -1563,11 +2148,18 @@ export {
|
|
|
1563
2148
|
CancelablePromise,
|
|
1564
2149
|
EnvSyncAPISDK,
|
|
1565
2150
|
EnvironmentTypesService,
|
|
2151
|
+
EnvironmentVariablesPointInTimeService,
|
|
2152
|
+
EnvironmentVariablesRollbackService,
|
|
1566
2153
|
EnvironmentVariablesService,
|
|
1567
2154
|
FileUploadService,
|
|
1568
2155
|
OnboardingService,
|
|
1569
2156
|
OpenAPI,
|
|
1570
2157
|
OrganizationsService,
|
|
1571
2158
|
RolesService,
|
|
1572
|
-
|
|
2159
|
+
SecretVariableRollbackResponse,
|
|
2160
|
+
SecretsPointInTimeService,
|
|
2161
|
+
SecretsRollbackService,
|
|
2162
|
+
SecretsService,
|
|
2163
|
+
UsersService,
|
|
2164
|
+
VariableRollbackResponse
|
|
1573
2165
|
};
|