@envsync-cloud/envsync-ts-sdk 0.7.1 → 0.7.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.d.mts +357 -10
- package/dist/index.d.ts +357 -10
- package/dist/index.js +415 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +411 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -30,12 +30,15 @@ __export(src_exports, {
|
|
|
30
30
|
CancelError: () => CancelError,
|
|
31
31
|
CancelablePromise: () => CancelablePromise,
|
|
32
32
|
CertificatesService: () => CertificatesService,
|
|
33
|
+
ChangeRequestResponse: () => ChangeRequestResponse,
|
|
34
|
+
ChangeRequestsService: () => ChangeRequestsService,
|
|
33
35
|
CreateWebhookRequest: () => CreateWebhookRequest,
|
|
34
36
|
EnvSyncAPISDK: () => EnvSyncAPISDK,
|
|
35
37
|
EnvironmentTypesService: () => EnvironmentTypesService,
|
|
36
38
|
EnvironmentVariablesPointInTimeService: () => EnvironmentVariablesPointInTimeService,
|
|
37
39
|
EnvironmentVariablesRollbackService: () => EnvironmentVariablesRollbackService,
|
|
38
40
|
EnvironmentVariablesService: () => EnvironmentVariablesService,
|
|
41
|
+
ExportEnvRequest: () => ExportEnvRequest,
|
|
39
42
|
FileUploadService: () => FileUploadService,
|
|
40
43
|
GenerateGpgKeyRequest: () => GenerateGpgKeyRequest,
|
|
41
44
|
GpgKeysService: () => GpgKeysService,
|
|
@@ -46,6 +49,7 @@ __export(src_exports, {
|
|
|
46
49
|
PermissionsService: () => PermissionsService,
|
|
47
50
|
RevokeAccessRequest: () => RevokeAccessRequest,
|
|
48
51
|
RolesService: () => RolesService,
|
|
52
|
+
RotateGpgKeyRequest: () => RotateGpgKeyRequest,
|
|
49
53
|
SecretVariableRollbackResponse: () => SecretVariableRollbackResponse,
|
|
50
54
|
SecretsPointInTimeService: () => SecretsPointInTimeService,
|
|
51
55
|
SecretsRollbackService: () => SecretsRollbackService,
|
|
@@ -472,7 +476,7 @@ var AccessService = class {
|
|
|
472
476
|
}
|
|
473
477
|
/**
|
|
474
478
|
* Web Login Callback
|
|
475
|
-
* Handle web login callback from
|
|
479
|
+
* Handle web login callback from Keycloak
|
|
476
480
|
* @param code
|
|
477
481
|
* @returns void
|
|
478
482
|
* @throws ApiError
|
|
@@ -485,7 +489,22 @@ var AccessService = class {
|
|
|
485
489
|
"code": code
|
|
486
490
|
},
|
|
487
491
|
errors: {
|
|
488
|
-
302: `Redirect
|
|
492
|
+
302: `Redirect after establishing the browser session`,
|
|
493
|
+
500: `Internal server error`
|
|
494
|
+
}
|
|
495
|
+
});
|
|
496
|
+
}
|
|
497
|
+
/**
|
|
498
|
+
* Logout Web Session
|
|
499
|
+
* Clear API-managed web session cookies and return the Keycloak logout URL
|
|
500
|
+
* @returns LogoutUrlResponse Web logout prepared successfully
|
|
501
|
+
* @throws ApiError
|
|
502
|
+
*/
|
|
503
|
+
logoutWebLogin() {
|
|
504
|
+
return this.httpRequest.request({
|
|
505
|
+
method: "POST",
|
|
506
|
+
url: "/api/access/web/logout",
|
|
507
|
+
errors: {
|
|
489
508
|
500: `Internal server error`
|
|
490
509
|
}
|
|
491
510
|
});
|
|
@@ -507,7 +526,7 @@ var AccessService = class {
|
|
|
507
526
|
}
|
|
508
527
|
/**
|
|
509
528
|
* API Login Callback
|
|
510
|
-
* Handle API login callback from
|
|
529
|
+
* Handle API login callback from Keycloak
|
|
511
530
|
* @param code
|
|
512
531
|
* @returns CallbackResponse API login callback successful
|
|
513
532
|
* @throws ApiError
|
|
@@ -943,6 +962,50 @@ var CertificatesService = class {
|
|
|
943
962
|
}
|
|
944
963
|
});
|
|
945
964
|
}
|
|
965
|
+
/**
|
|
966
|
+
* Renew Certificate
|
|
967
|
+
* Issue a renewed replacement certificate linked to the existing certificate lineage.
|
|
968
|
+
* @param id
|
|
969
|
+
* @param requestBody
|
|
970
|
+
* @returns MemberCertResponse Certificate renewed successfully
|
|
971
|
+
* @throws ApiError
|
|
972
|
+
*/
|
|
973
|
+
renewCertificate(id, requestBody) {
|
|
974
|
+
return this.httpRequest.request({
|
|
975
|
+
method: "POST",
|
|
976
|
+
url: "/api/certificate/{id}/renew",
|
|
977
|
+
path: {
|
|
978
|
+
"id": id
|
|
979
|
+
},
|
|
980
|
+
body: requestBody,
|
|
981
|
+
mediaType: "application/json",
|
|
982
|
+
errors: {
|
|
983
|
+
500: `Internal server error`
|
|
984
|
+
}
|
|
985
|
+
});
|
|
986
|
+
}
|
|
987
|
+
/**
|
|
988
|
+
* Rotate Certificate
|
|
989
|
+
* Rotate a certificate by issuing a replacement and optionally revoking the previous certificate.
|
|
990
|
+
* @param id
|
|
991
|
+
* @param requestBody
|
|
992
|
+
* @returns MemberCertResponse Certificate rotated successfully
|
|
993
|
+
* @throws ApiError
|
|
994
|
+
*/
|
|
995
|
+
rotateCertificate(id, requestBody) {
|
|
996
|
+
return this.httpRequest.request({
|
|
997
|
+
method: "POST",
|
|
998
|
+
url: "/api/certificate/{id}/rotate",
|
|
999
|
+
path: {
|
|
1000
|
+
"id": id
|
|
1001
|
+
},
|
|
1002
|
+
body: requestBody,
|
|
1003
|
+
mediaType: "application/json",
|
|
1004
|
+
errors: {
|
|
1005
|
+
500: `Internal server error`
|
|
1006
|
+
}
|
|
1007
|
+
});
|
|
1008
|
+
}
|
|
946
1009
|
/**
|
|
947
1010
|
* Check OCSP Status
|
|
948
1011
|
* Check the OCSP status of a certificate
|
|
@@ -964,6 +1027,134 @@ var CertificatesService = class {
|
|
|
964
1027
|
}
|
|
965
1028
|
};
|
|
966
1029
|
|
|
1030
|
+
// src/services/ChangeRequestsService.ts
|
|
1031
|
+
var ChangeRequestsService = class {
|
|
1032
|
+
constructor(httpRequest) {
|
|
1033
|
+
this.httpRequest = httpRequest;
|
|
1034
|
+
}
|
|
1035
|
+
/**
|
|
1036
|
+
* Create Direct Change Request
|
|
1037
|
+
* Create a protected-environment change request with explicit env and secret changes.
|
|
1038
|
+
* @param requestBody
|
|
1039
|
+
* @returns ChangeRequestResponse Direct change request created
|
|
1040
|
+
* @throws ApiError
|
|
1041
|
+
*/
|
|
1042
|
+
createDirectChangeRequest(requestBody) {
|
|
1043
|
+
return this.httpRequest.request({
|
|
1044
|
+
method: "POST",
|
|
1045
|
+
url: "/api/change_request/direct",
|
|
1046
|
+
body: requestBody,
|
|
1047
|
+
mediaType: "application/json",
|
|
1048
|
+
errors: {
|
|
1049
|
+
422: `Validation error`
|
|
1050
|
+
}
|
|
1051
|
+
});
|
|
1052
|
+
}
|
|
1053
|
+
/**
|
|
1054
|
+
* Create Promotion Change Request
|
|
1055
|
+
* Create a promotion request from one app environment to another protected environment.
|
|
1056
|
+
* @param requestBody
|
|
1057
|
+
* @returns ChangeRequestResponse Promotion change request created
|
|
1058
|
+
* @throws ApiError
|
|
1059
|
+
*/
|
|
1060
|
+
createPromotionChangeRequest(requestBody) {
|
|
1061
|
+
return this.httpRequest.request({
|
|
1062
|
+
method: "POST",
|
|
1063
|
+
url: "/api/change_request/promotion",
|
|
1064
|
+
body: requestBody,
|
|
1065
|
+
mediaType: "application/json"
|
|
1066
|
+
});
|
|
1067
|
+
}
|
|
1068
|
+
/**
|
|
1069
|
+
* List Change Requests
|
|
1070
|
+
* List change requests for the current organization.
|
|
1071
|
+
* @returns ChangeRequestListResponse Change requests listed
|
|
1072
|
+
* @throws ApiError
|
|
1073
|
+
*/
|
|
1074
|
+
listChangeRequests() {
|
|
1075
|
+
return this.httpRequest.request({
|
|
1076
|
+
method: "GET",
|
|
1077
|
+
url: "/api/change_request"
|
|
1078
|
+
});
|
|
1079
|
+
}
|
|
1080
|
+
/**
|
|
1081
|
+
* Get Change Request
|
|
1082
|
+
* Fetch a single change request including env and secret item diffs.
|
|
1083
|
+
* @param id
|
|
1084
|
+
* @returns ChangeRequestResponse Change request fetched
|
|
1085
|
+
* @throws ApiError
|
|
1086
|
+
*/
|
|
1087
|
+
getChangeRequest(id) {
|
|
1088
|
+
return this.httpRequest.request({
|
|
1089
|
+
method: "GET",
|
|
1090
|
+
url: "/api/change_request/{id}",
|
|
1091
|
+
path: {
|
|
1092
|
+
"id": id
|
|
1093
|
+
}
|
|
1094
|
+
});
|
|
1095
|
+
}
|
|
1096
|
+
/**
|
|
1097
|
+
* Approve Change Request
|
|
1098
|
+
* Approve a pending change request and apply it atomically to the target environment.
|
|
1099
|
+
* @param id
|
|
1100
|
+
* @returns ChangeRequestResponse Change request approved and applied
|
|
1101
|
+
* @throws ApiError
|
|
1102
|
+
*/
|
|
1103
|
+
approveChangeRequest(id) {
|
|
1104
|
+
return this.httpRequest.request({
|
|
1105
|
+
method: "POST",
|
|
1106
|
+
url: "/api/change_request/{id}/approve",
|
|
1107
|
+
path: {
|
|
1108
|
+
"id": id
|
|
1109
|
+
},
|
|
1110
|
+
errors: {
|
|
1111
|
+
404: `Change request not found`
|
|
1112
|
+
}
|
|
1113
|
+
});
|
|
1114
|
+
}
|
|
1115
|
+
/**
|
|
1116
|
+
* Reject Change Request
|
|
1117
|
+
* Reject a pending change request without mutating the target environment.
|
|
1118
|
+
* @param id
|
|
1119
|
+
* @param requestBody
|
|
1120
|
+
* @returns ChangeRequestResponse Change request rejected
|
|
1121
|
+
* @throws ApiError
|
|
1122
|
+
*/
|
|
1123
|
+
rejectChangeRequest(id, requestBody) {
|
|
1124
|
+
return this.httpRequest.request({
|
|
1125
|
+
method: "POST",
|
|
1126
|
+
url: "/api/change_request/{id}/reject",
|
|
1127
|
+
path: {
|
|
1128
|
+
"id": id
|
|
1129
|
+
},
|
|
1130
|
+
body: requestBody,
|
|
1131
|
+
mediaType: "application/json",
|
|
1132
|
+
errors: {
|
|
1133
|
+
404: `Change request not found`
|
|
1134
|
+
}
|
|
1135
|
+
});
|
|
1136
|
+
}
|
|
1137
|
+
/**
|
|
1138
|
+
* Cancel Change Request
|
|
1139
|
+
* Cancel a pending change request created by the current user.
|
|
1140
|
+
* @param id
|
|
1141
|
+
* @returns ChangeRequestResponse Change request cancelled
|
|
1142
|
+
* @throws ApiError
|
|
1143
|
+
*/
|
|
1144
|
+
cancelChangeRequest(id) {
|
|
1145
|
+
return this.httpRequest.request({
|
|
1146
|
+
method: "POST",
|
|
1147
|
+
url: "/api/change_request/{id}/cancel",
|
|
1148
|
+
path: {
|
|
1149
|
+
"id": id
|
|
1150
|
+
},
|
|
1151
|
+
errors: {
|
|
1152
|
+
404: `Change request not found`
|
|
1153
|
+
}
|
|
1154
|
+
});
|
|
1155
|
+
}
|
|
1156
|
+
};
|
|
1157
|
+
|
|
967
1158
|
// src/services/EnvironmentTypesService.ts
|
|
968
1159
|
var EnvironmentTypesService = class {
|
|
969
1160
|
constructor(httpRequest) {
|
|
@@ -1069,6 +1260,24 @@ var EnvironmentVariablesService = class {
|
|
|
1069
1260
|
constructor(httpRequest) {
|
|
1070
1261
|
this.httpRequest = httpRequest;
|
|
1071
1262
|
}
|
|
1263
|
+
/**
|
|
1264
|
+
* Export Environment
|
|
1265
|
+
* Export environment variables and optionally secrets for an application environment in a single payload.
|
|
1266
|
+
* @param requestBody
|
|
1267
|
+
* @returns ExportEnvResponse Environment exported successfully
|
|
1268
|
+
* @throws ApiError
|
|
1269
|
+
*/
|
|
1270
|
+
exportEnvironment(requestBody) {
|
|
1271
|
+
return this.httpRequest.request({
|
|
1272
|
+
method: "POST",
|
|
1273
|
+
url: "/api/env/export",
|
|
1274
|
+
body: requestBody,
|
|
1275
|
+
mediaType: "application/json",
|
|
1276
|
+
errors: {
|
|
1277
|
+
400: `Invalid export request`
|
|
1278
|
+
}
|
|
1279
|
+
});
|
|
1280
|
+
}
|
|
1072
1281
|
/**
|
|
1073
1282
|
* Get Environment Variables
|
|
1074
1283
|
* Retrieve all environment variables for an application and environment type
|
|
@@ -1607,6 +1816,50 @@ var GpgKeysService = class {
|
|
|
1607
1816
|
}
|
|
1608
1817
|
});
|
|
1609
1818
|
}
|
|
1819
|
+
/**
|
|
1820
|
+
* Rotate GPG Key
|
|
1821
|
+
* Create a replacement GPG key, optionally promote it to default, and supersede the original key.
|
|
1822
|
+
* @param id
|
|
1823
|
+
* @param requestBody
|
|
1824
|
+
* @returns GpgKeyDetailResponse GPG key rotated successfully
|
|
1825
|
+
* @throws ApiError
|
|
1826
|
+
*/
|
|
1827
|
+
rotateGpgKey(id, requestBody) {
|
|
1828
|
+
return this.httpRequest.request({
|
|
1829
|
+
method: "POST",
|
|
1830
|
+
url: "/api/gpg_key/{id}/rotate",
|
|
1831
|
+
path: {
|
|
1832
|
+
"id": id
|
|
1833
|
+
},
|
|
1834
|
+
body: requestBody,
|
|
1835
|
+
mediaType: "application/json",
|
|
1836
|
+
errors: {
|
|
1837
|
+
500: `Internal server error`
|
|
1838
|
+
}
|
|
1839
|
+
});
|
|
1840
|
+
}
|
|
1841
|
+
/**
|
|
1842
|
+
* Extend GPG Key Expiry
|
|
1843
|
+
* Extend the expiry date of an active GPG key without rotating it.
|
|
1844
|
+
* @param id
|
|
1845
|
+
* @param requestBody
|
|
1846
|
+
* @returns GpgKeyDetailResponse GPG key expiry extended successfully
|
|
1847
|
+
* @throws ApiError
|
|
1848
|
+
*/
|
|
1849
|
+
extendGpgKeyExpiry(id, requestBody) {
|
|
1850
|
+
return this.httpRequest.request({
|
|
1851
|
+
method: "POST",
|
|
1852
|
+
url: "/api/gpg_key/{id}/extend-expiry",
|
|
1853
|
+
path: {
|
|
1854
|
+
"id": id
|
|
1855
|
+
},
|
|
1856
|
+
body: requestBody,
|
|
1857
|
+
mediaType: "application/json",
|
|
1858
|
+
errors: {
|
|
1859
|
+
500: `Internal server error`
|
|
1860
|
+
}
|
|
1861
|
+
});
|
|
1862
|
+
}
|
|
1610
1863
|
/**
|
|
1611
1864
|
* Update Trust Level
|
|
1612
1865
|
* Update the trust level of a GPG key
|
|
@@ -1935,6 +2188,38 @@ var PermissionsService = class {
|
|
|
1935
2188
|
}
|
|
1936
2189
|
});
|
|
1937
2190
|
}
|
|
2191
|
+
/**
|
|
2192
|
+
* List App Grants
|
|
2193
|
+
* List direct user and team grants on an app
|
|
2194
|
+
* @param appId
|
|
2195
|
+
* @returns GrantsListResponse App grants listed successfully
|
|
2196
|
+
* @throws ApiError
|
|
2197
|
+
*/
|
|
2198
|
+
listAppGrants(appId) {
|
|
2199
|
+
return this.httpRequest.request({
|
|
2200
|
+
method: "GET",
|
|
2201
|
+
url: "/api/permission/app/{app_id}/grants",
|
|
2202
|
+
path: {
|
|
2203
|
+
"app_id": appId
|
|
2204
|
+
}
|
|
2205
|
+
});
|
|
2206
|
+
}
|
|
2207
|
+
/**
|
|
2208
|
+
* Get App Effective Access
|
|
2209
|
+
* List user effective access for an app including team inheritance
|
|
2210
|
+
* @param appId
|
|
2211
|
+
* @returns EffectiveAccessResponse Effective app access returned successfully
|
|
2212
|
+
* @throws ApiError
|
|
2213
|
+
*/
|
|
2214
|
+
getAppEffectiveAccess(appId) {
|
|
2215
|
+
return this.httpRequest.request({
|
|
2216
|
+
method: "GET",
|
|
2217
|
+
url: "/api/permission/app/{app_id}/effective-access",
|
|
2218
|
+
path: {
|
|
2219
|
+
"app_id": appId
|
|
2220
|
+
}
|
|
2221
|
+
});
|
|
2222
|
+
}
|
|
1938
2223
|
/**
|
|
1939
2224
|
* Grant Env Type Access
|
|
1940
2225
|
* Grant a user or team access to an environment type
|
|
@@ -1979,6 +2264,22 @@ var PermissionsService = class {
|
|
|
1979
2264
|
}
|
|
1980
2265
|
});
|
|
1981
2266
|
}
|
|
2267
|
+
/**
|
|
2268
|
+
* List Env Type Grants
|
|
2269
|
+
* List direct user and team grants on an environment type
|
|
2270
|
+
* @param id
|
|
2271
|
+
* @returns GrantsListResponse Env type grants listed successfully
|
|
2272
|
+
* @throws ApiError
|
|
2273
|
+
*/
|
|
2274
|
+
listEnvTypeGrants(id) {
|
|
2275
|
+
return this.httpRequest.request({
|
|
2276
|
+
method: "GET",
|
|
2277
|
+
url: "/api/permission/env_type/{id}/grants",
|
|
2278
|
+
path: {
|
|
2279
|
+
"id": id
|
|
2280
|
+
}
|
|
2281
|
+
});
|
|
2282
|
+
}
|
|
1982
2283
|
};
|
|
1983
2284
|
|
|
1984
2285
|
// src/services/RolesService.ts
|
|
@@ -2602,6 +2903,63 @@ var TeamsService = class {
|
|
|
2602
2903
|
}
|
|
2603
2904
|
});
|
|
2604
2905
|
}
|
|
2906
|
+
/**
|
|
2907
|
+
* Assign Team Role
|
|
2908
|
+
* Assign an organization role to a team so members inherit its permissions.
|
|
2909
|
+
* @param id
|
|
2910
|
+
* @param requestBody
|
|
2911
|
+
* @returns TeamMessageResponse Team role assigned successfully
|
|
2912
|
+
* @throws ApiError
|
|
2913
|
+
*/
|
|
2914
|
+
assignTeamRole(id, requestBody) {
|
|
2915
|
+
return this.httpRequest.request({
|
|
2916
|
+
method: "POST",
|
|
2917
|
+
url: "/api/team/{id}/assign-role",
|
|
2918
|
+
path: {
|
|
2919
|
+
"id": id
|
|
2920
|
+
},
|
|
2921
|
+
body: requestBody,
|
|
2922
|
+
mediaType: "application/json",
|
|
2923
|
+
errors: {
|
|
2924
|
+
500: `Internal server error`
|
|
2925
|
+
}
|
|
2926
|
+
});
|
|
2927
|
+
}
|
|
2928
|
+
/**
|
|
2929
|
+
* Unassign Team Role
|
|
2930
|
+
* Remove the inherited organization role from a team.
|
|
2931
|
+
* @param id
|
|
2932
|
+
* @returns TeamMessageResponse Team role removed successfully
|
|
2933
|
+
* @throws ApiError
|
|
2934
|
+
*/
|
|
2935
|
+
unassignTeamRole(id) {
|
|
2936
|
+
return this.httpRequest.request({
|
|
2937
|
+
method: "POST",
|
|
2938
|
+
url: "/api/team/{id}/unassign-role",
|
|
2939
|
+
path: {
|
|
2940
|
+
"id": id
|
|
2941
|
+
},
|
|
2942
|
+
errors: {
|
|
2943
|
+
500: `Internal server error`
|
|
2944
|
+
}
|
|
2945
|
+
});
|
|
2946
|
+
}
|
|
2947
|
+
/**
|
|
2948
|
+
* Get Team Effective Permissions
|
|
2949
|
+
* Get the org-level permissions inherited by team members through the team role
|
|
2950
|
+
* @param id
|
|
2951
|
+
* @returns EffectivePermissionsResponse Team effective permissions returned successfully
|
|
2952
|
+
* @throws ApiError
|
|
2953
|
+
*/
|
|
2954
|
+
getTeamEffectivePermissions(id) {
|
|
2955
|
+
return this.httpRequest.request({
|
|
2956
|
+
method: "GET",
|
|
2957
|
+
url: "/api/team/{id}/effective-permissions",
|
|
2958
|
+
path: {
|
|
2959
|
+
"id": id
|
|
2960
|
+
}
|
|
2961
|
+
});
|
|
2962
|
+
}
|
|
2605
2963
|
};
|
|
2606
2964
|
|
|
2607
2965
|
// src/services/UsersService.ts
|
|
@@ -2835,6 +3193,7 @@ var EnvSyncAPISDK = class {
|
|
|
2835
3193
|
auditLogs;
|
|
2836
3194
|
authentication;
|
|
2837
3195
|
certificates;
|
|
3196
|
+
changeRequests;
|
|
2838
3197
|
environmentTypes;
|
|
2839
3198
|
environmentVariables;
|
|
2840
3199
|
environmentVariablesPointInTime;
|
|
@@ -2855,7 +3214,7 @@ var EnvSyncAPISDK = class {
|
|
|
2855
3214
|
constructor(config, HttpRequest = FetchHttpRequest) {
|
|
2856
3215
|
this.request = new HttpRequest({
|
|
2857
3216
|
BASE: config?.BASE ?? "http://localhost:4000",
|
|
2858
|
-
VERSION: config?.VERSION ?? "0.
|
|
3217
|
+
VERSION: config?.VERSION ?? "0.7.2",
|
|
2859
3218
|
WITH_CREDENTIALS: config?.WITH_CREDENTIALS ?? false,
|
|
2860
3219
|
CREDENTIALS: config?.CREDENTIALS ?? "include",
|
|
2861
3220
|
TOKEN: config?.TOKEN,
|
|
@@ -2870,6 +3229,7 @@ var EnvSyncAPISDK = class {
|
|
|
2870
3229
|
this.auditLogs = new AuditLogsService(this.request);
|
|
2871
3230
|
this.authentication = new AuthenticationService(this.request);
|
|
2872
3231
|
this.certificates = new CertificatesService(this.request);
|
|
3232
|
+
this.changeRequests = new ChangeRequestsService(this.request);
|
|
2873
3233
|
this.environmentTypes = new EnvironmentTypesService(this.request);
|
|
2874
3234
|
this.environmentVariables = new EnvironmentVariablesService(this.request);
|
|
2875
3235
|
this.environmentVariablesPointInTime = new EnvironmentVariablesPointInTimeService(this.request);
|
|
@@ -2892,7 +3252,7 @@ var EnvSyncAPISDK = class {
|
|
|
2892
3252
|
// src/core/OpenAPI.ts
|
|
2893
3253
|
var OpenAPI = {
|
|
2894
3254
|
BASE: "http://localhost:4000",
|
|
2895
|
-
VERSION: "0.
|
|
3255
|
+
VERSION: "0.7.2",
|
|
2896
3256
|
WITH_CREDENTIALS: false,
|
|
2897
3257
|
CREDENTIALS: "include",
|
|
2898
3258
|
TOKEN: void 0,
|
|
@@ -2902,6 +3262,23 @@ var OpenAPI = {
|
|
|
2902
3262
|
ENCODE_PATH: void 0
|
|
2903
3263
|
};
|
|
2904
3264
|
|
|
3265
|
+
// src/models/ChangeRequestResponse.ts
|
|
3266
|
+
var ChangeRequestResponse;
|
|
3267
|
+
((ChangeRequestResponse2) => {
|
|
3268
|
+
let request_kind;
|
|
3269
|
+
((request_kind2) => {
|
|
3270
|
+
request_kind2["DIRECT"] = "direct";
|
|
3271
|
+
request_kind2["PROMOTION"] = "promotion";
|
|
3272
|
+
})(request_kind = ChangeRequestResponse2.request_kind || (ChangeRequestResponse2.request_kind = {}));
|
|
3273
|
+
let status;
|
|
3274
|
+
((status2) => {
|
|
3275
|
+
status2["PENDING"] = "pending";
|
|
3276
|
+
status2["APPROVED"] = "approved";
|
|
3277
|
+
status2["REJECTED"] = "rejected";
|
|
3278
|
+
status2["CANCELLED"] = "cancelled";
|
|
3279
|
+
})(status = ChangeRequestResponse2.status || (ChangeRequestResponse2.status = {}));
|
|
3280
|
+
})(ChangeRequestResponse || (ChangeRequestResponse = {}));
|
|
3281
|
+
|
|
2905
3282
|
// src/models/CreateWebhookRequest.ts
|
|
2906
3283
|
var CreateWebhookRequest;
|
|
2907
3284
|
((CreateWebhookRequest2) => {
|
|
@@ -2918,6 +3295,23 @@ var CreateWebhookRequest;
|
|
|
2918
3295
|
})(linked_to = CreateWebhookRequest2.linked_to || (CreateWebhookRequest2.linked_to = {}));
|
|
2919
3296
|
})(CreateWebhookRequest || (CreateWebhookRequest = {}));
|
|
2920
3297
|
|
|
3298
|
+
// src/models/ExportEnvRequest.ts
|
|
3299
|
+
var ExportEnvRequest;
|
|
3300
|
+
((ExportEnvRequest2) => {
|
|
3301
|
+
let enable_secrets;
|
|
3302
|
+
((enable_secrets2) => {
|
|
3303
|
+
enable_secrets2["AUTO"] = "auto";
|
|
3304
|
+
enable_secrets2["TRUE"] = "true";
|
|
3305
|
+
enable_secrets2["FALSE"] = "false";
|
|
3306
|
+
})(enable_secrets = ExportEnvRequest2.enable_secrets || (ExportEnvRequest2.enable_secrets = {}));
|
|
3307
|
+
let is_secret_managed;
|
|
3308
|
+
((is_secret_managed2) => {
|
|
3309
|
+
is_secret_managed2["AUTO"] = "auto";
|
|
3310
|
+
is_secret_managed2["TRUE"] = "true";
|
|
3311
|
+
is_secret_managed2["FALSE"] = "false";
|
|
3312
|
+
})(is_secret_managed = ExportEnvRequest2.is_secret_managed || (ExportEnvRequest2.is_secret_managed = {}));
|
|
3313
|
+
})(ExportEnvRequest || (ExportEnvRequest = {}));
|
|
3314
|
+
|
|
2921
3315
|
// src/models/GenerateGpgKeyRequest.ts
|
|
2922
3316
|
var GenerateGpgKeyRequest;
|
|
2923
3317
|
((GenerateGpgKeyRequest2) => {
|
|
@@ -2962,6 +3356,18 @@ var RevokeAccessRequest;
|
|
|
2962
3356
|
})(relation = RevokeAccessRequest2.relation || (RevokeAccessRequest2.relation = {}));
|
|
2963
3357
|
})(RevokeAccessRequest || (RevokeAccessRequest = {}));
|
|
2964
3358
|
|
|
3359
|
+
// src/models/RotateGpgKeyRequest.ts
|
|
3360
|
+
var RotateGpgKeyRequest;
|
|
3361
|
+
((RotateGpgKeyRequest2) => {
|
|
3362
|
+
let algorithm;
|
|
3363
|
+
((algorithm2) => {
|
|
3364
|
+
algorithm2["RSA"] = "rsa";
|
|
3365
|
+
algorithm2["ECC_CURVE25519"] = "ecc-curve25519";
|
|
3366
|
+
algorithm2["ECC_P256"] = "ecc-p256";
|
|
3367
|
+
algorithm2["ECC_P384"] = "ecc-p384";
|
|
3368
|
+
})(algorithm = RotateGpgKeyRequest2.algorithm || (RotateGpgKeyRequest2.algorithm = {}));
|
|
3369
|
+
})(RotateGpgKeyRequest || (RotateGpgKeyRequest = {}));
|
|
3370
|
+
|
|
2965
3371
|
// src/models/SecretVariableRollbackResponse.ts
|
|
2966
3372
|
var SecretVariableRollbackResponse;
|
|
2967
3373
|
((SecretVariableRollbackResponse2) => {
|
|
@@ -3051,12 +3457,15 @@ var WebhookResponse;
|
|
|
3051
3457
|
CancelError,
|
|
3052
3458
|
CancelablePromise,
|
|
3053
3459
|
CertificatesService,
|
|
3460
|
+
ChangeRequestResponse,
|
|
3461
|
+
ChangeRequestsService,
|
|
3054
3462
|
CreateWebhookRequest,
|
|
3055
3463
|
EnvSyncAPISDK,
|
|
3056
3464
|
EnvironmentTypesService,
|
|
3057
3465
|
EnvironmentVariablesPointInTimeService,
|
|
3058
3466
|
EnvironmentVariablesRollbackService,
|
|
3059
3467
|
EnvironmentVariablesService,
|
|
3468
|
+
ExportEnvRequest,
|
|
3060
3469
|
FileUploadService,
|
|
3061
3470
|
GenerateGpgKeyRequest,
|
|
3062
3471
|
GpgKeysService,
|
|
@@ -3067,6 +3476,7 @@ var WebhookResponse;
|
|
|
3067
3476
|
PermissionsService,
|
|
3068
3477
|
RevokeAccessRequest,
|
|
3069
3478
|
RolesService,
|
|
3479
|
+
RotateGpgKeyRequest,
|
|
3070
3480
|
SecretVariableRollbackResponse,
|
|
3071
3481
|
SecretsPointInTimeService,
|
|
3072
3482
|
SecretsRollbackService,
|