@envsync-cloud/envsync-ts-sdk 0.20.0 → 0.20.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 +342 -21
- package/dist/index.d.ts +342 -21
- package/dist/index.js +451 -23
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +442 -22
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -44,6 +44,7 @@ __export(src_exports, {
|
|
|
44
44
|
DynamicSecretEngineResponse: () => DynamicSecretEngineResponse,
|
|
45
45
|
DynamicSecretsService: () => DynamicSecretsService,
|
|
46
46
|
EffectiveAccessEntry: () => EffectiveAccessEntry,
|
|
47
|
+
EnterpriseCmkService: () => EnterpriseCmkService,
|
|
47
48
|
EnterpriseProviderProfile: () => EnterpriseProviderProfile,
|
|
48
49
|
EnterpriseService: () => EnterpriseService,
|
|
49
50
|
EnvSyncAPISDK: () => EnvSyncAPISDK,
|
|
@@ -66,9 +67,14 @@ __export(src_exports, {
|
|
|
66
67
|
OidcProvidersService: () => OidcProvidersService,
|
|
67
68
|
OnboardingService: () => OnboardingService,
|
|
68
69
|
OpenAPI: () => OpenAPI,
|
|
70
|
+
OrgFeaturesService: () => OrgFeaturesService,
|
|
71
|
+
OrgKmsConfigResponse: () => OrgKmsConfigResponse,
|
|
72
|
+
OrgKmsJobResponse: () => OrgKmsJobResponse,
|
|
73
|
+
OrgKmsVerifyResponse: () => OrgKmsVerifyResponse,
|
|
69
74
|
OrganizationsService: () => OrganizationsService,
|
|
70
75
|
PermissionsService: () => PermissionsService,
|
|
71
76
|
ProviderConnection: () => ProviderConnection,
|
|
77
|
+
PutOrgFeatureGrantRequest: () => PutOrgFeatureGrantRequest,
|
|
72
78
|
RevokeAccessRequest: () => RevokeAccessRequest,
|
|
73
79
|
RolesService: () => RolesService,
|
|
74
80
|
RotateGpgKeyRequest: () => RotateGpgKeyRequest,
|
|
@@ -90,13 +96,15 @@ __export(src_exports, {
|
|
|
90
96
|
SystemService: () => SystemService,
|
|
91
97
|
SystemStatusState: () => SystemStatusState,
|
|
92
98
|
TeamsService: () => TeamsService,
|
|
99
|
+
UpdateOrgKmsConfigRequest: () => UpdateOrgKmsConfigRequest,
|
|
93
100
|
UpdateProviderConnectionRequest: () => UpdateProviderConnectionRequest,
|
|
94
101
|
UpdateTrustLevelRequest: () => UpdateTrustLevelRequest,
|
|
95
102
|
UpdateWebhookRequest: () => UpdateWebhookRequest,
|
|
96
103
|
UsersService: () => UsersService,
|
|
97
104
|
VariableRollbackResponse: () => VariableRollbackResponse,
|
|
98
105
|
WebhookResponse: () => WebhookResponse,
|
|
99
|
-
WebhooksService: () => WebhooksService
|
|
106
|
+
WebhooksService: () => WebhooksService,
|
|
107
|
+
WhoAmIResponse: () => WhoAmIResponse
|
|
100
108
|
});
|
|
101
109
|
module.exports = __toCommonJS(src_exports);
|
|
102
110
|
|
|
@@ -1764,6 +1772,190 @@ var EnterpriseService = class {
|
|
|
1764
1772
|
}
|
|
1765
1773
|
};
|
|
1766
1774
|
|
|
1775
|
+
// src/services/EnterpriseCmkService.ts
|
|
1776
|
+
var EnterpriseCmkService = class {
|
|
1777
|
+
constructor(httpRequest) {
|
|
1778
|
+
this.httpRequest = httpRequest;
|
|
1779
|
+
}
|
|
1780
|
+
/**
|
|
1781
|
+
* Break-glass detach organization CMK
|
|
1782
|
+
* Hosted platform API. Enqueues detach-to-managed even if the org lost the kms grant or status is unavailable. Does not call ensureTenantKek.
|
|
1783
|
+
* @param xEnvSyncPlatformToken
|
|
1784
|
+
* @param orgId
|
|
1785
|
+
* @returns OrgKmsJobResponse Already on managed wrapping
|
|
1786
|
+
* @throws ApiError
|
|
1787
|
+
*/
|
|
1788
|
+
breakGlassDetachOrgKms(xEnvSyncPlatformToken, orgId) {
|
|
1789
|
+
return this.httpRequest.request({
|
|
1790
|
+
method: "POST",
|
|
1791
|
+
url: "/api/v1/manage/kms/{orgId}/break-glass-detach",
|
|
1792
|
+
path: {
|
|
1793
|
+
"orgId": orgId
|
|
1794
|
+
},
|
|
1795
|
+
headers: {
|
|
1796
|
+
"X-EnvSync-Platform-Token": xEnvSyncPlatformToken
|
|
1797
|
+
},
|
|
1798
|
+
errors: {
|
|
1799
|
+
401: `Invalid platform token`,
|
|
1800
|
+
403: `Not hosted`,
|
|
1801
|
+
500: `Internal server error`
|
|
1802
|
+
}
|
|
1803
|
+
});
|
|
1804
|
+
}
|
|
1805
|
+
/**
|
|
1806
|
+
* Get organization KMS config
|
|
1807
|
+
* Returns implicit managed/active when no org_kms_config row exists. Never returns key material.
|
|
1808
|
+
* @returns OrgKmsConfigResponse Organization KMS config
|
|
1809
|
+
* @throws ApiError
|
|
1810
|
+
*/
|
|
1811
|
+
getOrgKmsConfig() {
|
|
1812
|
+
return this.httpRequest.request({
|
|
1813
|
+
method: "GET",
|
|
1814
|
+
url: "/api/v1/manage/kms",
|
|
1815
|
+
errors: {
|
|
1816
|
+
500: `Internal server error`
|
|
1817
|
+
}
|
|
1818
|
+
});
|
|
1819
|
+
}
|
|
1820
|
+
/**
|
|
1821
|
+
* Update organization KMS config
|
|
1822
|
+
* Self-host cloud sources return 403 CMK_HOSTED_ONLY. Hosted persists cloud source as pending until attach.
|
|
1823
|
+
* @param requestBody
|
|
1824
|
+
* @returns OrgKmsConfigResponse Organization KMS config updated
|
|
1825
|
+
* @throws ApiError
|
|
1826
|
+
*/
|
|
1827
|
+
updateOrgKmsConfig(requestBody) {
|
|
1828
|
+
return this.httpRequest.request({
|
|
1829
|
+
method: "PUT",
|
|
1830
|
+
url: "/api/v1/manage/kms",
|
|
1831
|
+
body: requestBody,
|
|
1832
|
+
mediaType: "application/json",
|
|
1833
|
+
errors: {
|
|
1834
|
+
403: `Cloud CMK is Hosted-only`,
|
|
1835
|
+
409: `A rewrap job is already running`,
|
|
1836
|
+
500: `Internal server error`
|
|
1837
|
+
}
|
|
1838
|
+
});
|
|
1839
|
+
}
|
|
1840
|
+
/**
|
|
1841
|
+
* Create a purpose=kms org secret
|
|
1842
|
+
* Encrypts the value under scope __kms_config__ before insert. Does not require the integrations feature.
|
|
1843
|
+
* @param requestBody
|
|
1844
|
+
* @returns OrgKmsCredentialResponse Credential created (value redacted)
|
|
1845
|
+
* @throws ApiError
|
|
1846
|
+
*/
|
|
1847
|
+
createOrgKmsCredential(requestBody) {
|
|
1848
|
+
return this.httpRequest.request({
|
|
1849
|
+
method: "POST",
|
|
1850
|
+
url: "/api/v1/manage/kms/credentials",
|
|
1851
|
+
body: requestBody,
|
|
1852
|
+
mediaType: "application/json",
|
|
1853
|
+
errors: {
|
|
1854
|
+
500: `Internal server error`
|
|
1855
|
+
}
|
|
1856
|
+
});
|
|
1857
|
+
}
|
|
1858
|
+
/**
|
|
1859
|
+
* Verify organization KMS
|
|
1860
|
+
* Managed source succeeds immediately. Cloud verify unwraps or first-wraps the tenant KEK.
|
|
1861
|
+
* @returns OrgKmsVerifyResponse Verify result
|
|
1862
|
+
* @throws ApiError
|
|
1863
|
+
*/
|
|
1864
|
+
verifyOrgKms() {
|
|
1865
|
+
return this.httpRequest.request({
|
|
1866
|
+
method: "POST",
|
|
1867
|
+
url: "/api/v1/manage/kms/verify",
|
|
1868
|
+
errors: {
|
|
1869
|
+
500: `Internal server error`,
|
|
1870
|
+
503: `CMK unavailable`
|
|
1871
|
+
}
|
|
1872
|
+
});
|
|
1873
|
+
}
|
|
1874
|
+
/**
|
|
1875
|
+
* Rotate organization KEK
|
|
1876
|
+
* Re-wraps wrapped_kek under the current key_ref. Hosted cloud-only; does not rewrap DEKs.
|
|
1877
|
+
* @returns OrgKmsConfigResponse KEK rotated
|
|
1878
|
+
* @throws ApiError
|
|
1879
|
+
*/
|
|
1880
|
+
rotateOrgKmsKek() {
|
|
1881
|
+
return this.httpRequest.request({
|
|
1882
|
+
method: "POST",
|
|
1883
|
+
url: "/api/v1/manage/kms/rotate-kek",
|
|
1884
|
+
errors: {
|
|
1885
|
+
500: `Internal server error`
|
|
1886
|
+
}
|
|
1887
|
+
});
|
|
1888
|
+
}
|
|
1889
|
+
/**
|
|
1890
|
+
* Attach organization CMK
|
|
1891
|
+
* Enqueues DEK rewrap under the tenant KEK with allow_root_unwrap during the attach window. Hosted only.
|
|
1892
|
+
* @returns OrgKmsJobResponse Attach job enqueued
|
|
1893
|
+
* @throws ApiError
|
|
1894
|
+
*/
|
|
1895
|
+
attachOrgKms() {
|
|
1896
|
+
return this.httpRequest.request({
|
|
1897
|
+
method: "POST",
|
|
1898
|
+
url: "/api/v1/manage/kms/attach",
|
|
1899
|
+
errors: {
|
|
1900
|
+
403: `Cloud CMK is Hosted-only`,
|
|
1901
|
+
409: `A rewrap job is already running`,
|
|
1902
|
+
500: `Internal server error`
|
|
1903
|
+
}
|
|
1904
|
+
});
|
|
1905
|
+
}
|
|
1906
|
+
/**
|
|
1907
|
+
* Detach organization CMK to managed
|
|
1908
|
+
* Enqueues detach_managed. Does not call ensureTenantKek when status is unavailable.
|
|
1909
|
+
* @returns OrgKmsJobResponse Detach job enqueued
|
|
1910
|
+
* @throws ApiError
|
|
1911
|
+
*/
|
|
1912
|
+
detachOrgKms() {
|
|
1913
|
+
return this.httpRequest.request({
|
|
1914
|
+
method: "POST",
|
|
1915
|
+
url: "/api/v1/manage/kms/detach",
|
|
1916
|
+
errors: {
|
|
1917
|
+
409: `A rewrap job is already running`,
|
|
1918
|
+
500: `Internal server error`
|
|
1919
|
+
}
|
|
1920
|
+
});
|
|
1921
|
+
}
|
|
1922
|
+
/**
|
|
1923
|
+
* Get organization KMS job
|
|
1924
|
+
* @param id
|
|
1925
|
+
* @returns OrgKmsJobResponse KMS job
|
|
1926
|
+
* @throws ApiError
|
|
1927
|
+
*/
|
|
1928
|
+
getOrgKmsJob(id) {
|
|
1929
|
+
return this.httpRequest.request({
|
|
1930
|
+
method: "GET",
|
|
1931
|
+
url: "/api/v1/manage/kms/jobs/{id}",
|
|
1932
|
+
path: {
|
|
1933
|
+
"id": id
|
|
1934
|
+
},
|
|
1935
|
+
errors: {
|
|
1936
|
+
404: `Job not found`,
|
|
1937
|
+
500: `Internal server error`
|
|
1938
|
+
}
|
|
1939
|
+
});
|
|
1940
|
+
}
|
|
1941
|
+
/**
|
|
1942
|
+
* List per-app KMS key info
|
|
1943
|
+
* Calls GetKeyInfo per app. Never returns key material.
|
|
1944
|
+
* @returns OrgKmsAppsResponse Per-app key metadata
|
|
1945
|
+
* @throws ApiError
|
|
1946
|
+
*/
|
|
1947
|
+
listOrgKmsApps() {
|
|
1948
|
+
return this.httpRequest.request({
|
|
1949
|
+
method: "GET",
|
|
1950
|
+
url: "/api/v1/manage/kms/apps",
|
|
1951
|
+
errors: {
|
|
1952
|
+
500: `Internal server error`,
|
|
1953
|
+
503: `CMK unavailable`
|
|
1954
|
+
}
|
|
1955
|
+
});
|
|
1956
|
+
}
|
|
1957
|
+
};
|
|
1958
|
+
|
|
1767
1959
|
// src/services/EnvironmentTypesService.ts
|
|
1768
1960
|
var EnvironmentTypesService = class {
|
|
1769
1961
|
constructor(httpRequest) {
|
|
@@ -3171,6 +3363,91 @@ var OrganizationsService = class {
|
|
|
3171
3363
|
}
|
|
3172
3364
|
};
|
|
3173
3365
|
|
|
3366
|
+
// src/services/OrgFeaturesService.ts
|
|
3367
|
+
var OrgFeaturesService = class {
|
|
3368
|
+
constructor(httpRequest) {
|
|
3369
|
+
this.httpRequest = httpRequest;
|
|
3370
|
+
}
|
|
3371
|
+
/**
|
|
3372
|
+
* Get Organization Feature Grant
|
|
3373
|
+
* Hosted platform API. No row means unrestricted (full catalog).
|
|
3374
|
+
* @param xEnvSyncPlatformToken
|
|
3375
|
+
* @param orgId
|
|
3376
|
+
* @returns OrgFeatureGrantResponse Organization feature grant
|
|
3377
|
+
* @throws ApiError
|
|
3378
|
+
*/
|
|
3379
|
+
getOrgFeatureGrant(xEnvSyncPlatformToken, orgId) {
|
|
3380
|
+
return this.httpRequest.request({
|
|
3381
|
+
method: "GET",
|
|
3382
|
+
url: "/api/v1/manage/org-features/{orgId}",
|
|
3383
|
+
path: {
|
|
3384
|
+
"orgId": orgId
|
|
3385
|
+
},
|
|
3386
|
+
headers: {
|
|
3387
|
+
"X-EnvSync-Platform-Token": xEnvSyncPlatformToken
|
|
3388
|
+
},
|
|
3389
|
+
errors: {
|
|
3390
|
+
401: `Invalid platform token`,
|
|
3391
|
+
403: `Not hosted`,
|
|
3392
|
+
500: `Internal server error`
|
|
3393
|
+
}
|
|
3394
|
+
});
|
|
3395
|
+
}
|
|
3396
|
+
/**
|
|
3397
|
+
* Replace Organization Feature Grant
|
|
3398
|
+
* Full replace. Empty features[] denies every EE feature. Unknown catalog keys are dropped.
|
|
3399
|
+
* @param xEnvSyncPlatformToken
|
|
3400
|
+
* @param orgId
|
|
3401
|
+
* @param requestBody
|
|
3402
|
+
* @returns OrgFeatureGrantResponse Organization feature grant replaced
|
|
3403
|
+
* @throws ApiError
|
|
3404
|
+
*/
|
|
3405
|
+
putOrgFeatureGrant(xEnvSyncPlatformToken, orgId, requestBody) {
|
|
3406
|
+
return this.httpRequest.request({
|
|
3407
|
+
method: "PUT",
|
|
3408
|
+
url: "/api/v1/manage/org-features/{orgId}",
|
|
3409
|
+
path: {
|
|
3410
|
+
"orgId": orgId
|
|
3411
|
+
},
|
|
3412
|
+
headers: {
|
|
3413
|
+
"X-EnvSync-Platform-Token": xEnvSyncPlatformToken
|
|
3414
|
+
},
|
|
3415
|
+
body: requestBody,
|
|
3416
|
+
mediaType: "application/json",
|
|
3417
|
+
errors: {
|
|
3418
|
+
401: `Invalid platform token`,
|
|
3419
|
+
403: `Not hosted`,
|
|
3420
|
+
500: `Internal server error`
|
|
3421
|
+
}
|
|
3422
|
+
});
|
|
3423
|
+
}
|
|
3424
|
+
/**
|
|
3425
|
+
* Delete Organization Feature Grant
|
|
3426
|
+
* Drops the grant row so the organization is unrestricted.
|
|
3427
|
+
* @param xEnvSyncPlatformToken
|
|
3428
|
+
* @param orgId
|
|
3429
|
+
* @returns OrgFeatureGrantResponse Grant deleted; organization unrestricted
|
|
3430
|
+
* @throws ApiError
|
|
3431
|
+
*/
|
|
3432
|
+
deleteOrgFeatureGrant(xEnvSyncPlatformToken, orgId) {
|
|
3433
|
+
return this.httpRequest.request({
|
|
3434
|
+
method: "DELETE",
|
|
3435
|
+
url: "/api/v1/manage/org-features/{orgId}",
|
|
3436
|
+
path: {
|
|
3437
|
+
"orgId": orgId
|
|
3438
|
+
},
|
|
3439
|
+
headers: {
|
|
3440
|
+
"X-EnvSync-Platform-Token": xEnvSyncPlatformToken
|
|
3441
|
+
},
|
|
3442
|
+
errors: {
|
|
3443
|
+
401: `Invalid platform token`,
|
|
3444
|
+
403: `Not hosted`,
|
|
3445
|
+
500: `Internal server error`
|
|
3446
|
+
}
|
|
3447
|
+
});
|
|
3448
|
+
}
|
|
3449
|
+
};
|
|
3450
|
+
|
|
3174
3451
|
// src/services/PermissionsService.ts
|
|
3175
3452
|
var PermissionsService = class {
|
|
3176
3453
|
constructor(httpRequest) {
|
|
@@ -3657,7 +3934,7 @@ var SamlProvidersService = class {
|
|
|
3657
3934
|
}
|
|
3658
3935
|
/**
|
|
3659
3936
|
* Get SAML Provider
|
|
3660
|
-
* Retrieve a specific SAML provider
|
|
3937
|
+
* Retrieve a specific SAML provider. Certificate PEM is omitted unless include=certificate.
|
|
3661
3938
|
* @param id
|
|
3662
3939
|
* @returns SamlProviderResponse SAML provider retrieved successfully
|
|
3663
3940
|
* @throws ApiError
|
|
@@ -3717,9 +3994,9 @@ var SamlProvidersService = class {
|
|
|
3717
3994
|
}
|
|
3718
3995
|
/**
|
|
3719
3996
|
* Get SAML SP Metadata
|
|
3720
|
-
*
|
|
3997
|
+
* Redirects to the public SP metadata URL for this organization
|
|
3721
3998
|
* @param id
|
|
3722
|
-
* @returns
|
|
3999
|
+
* @returns void
|
|
3723
4000
|
* @throws ApiError
|
|
3724
4001
|
*/
|
|
3725
4002
|
getSamlMetadata(id) {
|
|
@@ -3728,6 +4005,9 @@ var SamlProvidersService = class {
|
|
|
3728
4005
|
url: "/api/v1/manage/saml/{id}/metadata",
|
|
3729
4006
|
path: {
|
|
3730
4007
|
"id": id
|
|
4008
|
+
},
|
|
4009
|
+
errors: {
|
|
4010
|
+
302: `Redirect to /api/saml/metadata/{orgId}`
|
|
3731
4011
|
}
|
|
3732
4012
|
});
|
|
3733
4013
|
}
|
|
@@ -3739,42 +4019,85 @@ var SamlSsoService = class {
|
|
|
3739
4019
|
this.httpRequest = httpRequest;
|
|
3740
4020
|
}
|
|
3741
4021
|
/**
|
|
3742
|
-
*
|
|
3743
|
-
*
|
|
3744
|
-
* @param
|
|
3745
|
-
* @returns
|
|
4022
|
+
* Get public SAML SP metadata
|
|
4023
|
+
* Unauthenticated SP metadata XML for the organization
|
|
4024
|
+
* @param orgId
|
|
4025
|
+
* @returns string SP metadata XML
|
|
3746
4026
|
* @throws ApiError
|
|
3747
4027
|
*/
|
|
3748
|
-
|
|
4028
|
+
getPublicSamlMetadata(orgId) {
|
|
3749
4029
|
return this.httpRequest.request({
|
|
3750
|
-
method: "
|
|
3751
|
-
url: "/api/
|
|
3752
|
-
|
|
3753
|
-
|
|
4030
|
+
method: "GET",
|
|
4031
|
+
url: "/api/saml/metadata/{orgId}",
|
|
4032
|
+
path: {
|
|
4033
|
+
"orgId": orgId
|
|
4034
|
+
},
|
|
3754
4035
|
errors: {
|
|
3755
|
-
|
|
4036
|
+
404: `SSO is not available`
|
|
3756
4037
|
}
|
|
3757
4038
|
});
|
|
3758
4039
|
}
|
|
3759
4040
|
/**
|
|
3760
4041
|
* SAML Assertion Consumer Service
|
|
3761
|
-
* Receive and validate SAML Response from the identity provider
|
|
4042
|
+
* Receive and validate a SAML Response from the identity provider
|
|
3762
4043
|
* @param orgId
|
|
3763
|
-
* @returns
|
|
4044
|
+
* @returns void
|
|
3764
4045
|
* @throws ApiError
|
|
3765
4046
|
*/
|
|
3766
|
-
|
|
4047
|
+
handlePublicSamlAcs(orgId) {
|
|
3767
4048
|
return this.httpRequest.request({
|
|
3768
4049
|
method: "POST",
|
|
3769
|
-
url: "/api/
|
|
4050
|
+
url: "/api/saml/acs/{orgId}",
|
|
3770
4051
|
path: {
|
|
3771
4052
|
"orgId": orgId
|
|
3772
4053
|
},
|
|
3773
4054
|
errors: {
|
|
4055
|
+
302: `Authentication successful`,
|
|
3774
4056
|
401: `Authentication failed`
|
|
3775
4057
|
}
|
|
3776
4058
|
});
|
|
3777
4059
|
}
|
|
4060
|
+
/**
|
|
4061
|
+
* Start SAML SSO
|
|
4062
|
+
* Unauthenticated SP-initiated start. Returns a redirect URL for the login page or CLI.
|
|
4063
|
+
* @param orgSlug
|
|
4064
|
+
* @param requestBody
|
|
4065
|
+
* @returns SamlSsoResponse Redirect URL generated
|
|
4066
|
+
* @throws ApiError
|
|
4067
|
+
*/
|
|
4068
|
+
startPublicSamlSso(orgSlug, requestBody) {
|
|
4069
|
+
return this.httpRequest.request({
|
|
4070
|
+
method: "POST",
|
|
4071
|
+
url: "/api/saml/sso/{orgSlug}",
|
|
4072
|
+
path: {
|
|
4073
|
+
"orgSlug": orgSlug
|
|
4074
|
+
},
|
|
4075
|
+
body: requestBody,
|
|
4076
|
+
mediaType: "application/json",
|
|
4077
|
+
errors: {
|
|
4078
|
+
404: `SSO is not available`
|
|
4079
|
+
}
|
|
4080
|
+
});
|
|
4081
|
+
}
|
|
4082
|
+
/**
|
|
4083
|
+
* Bookmark SAML SSO start
|
|
4084
|
+
* Success redirects to the IdP. Any error redirects to the dashboard login page.
|
|
4085
|
+
* @param orgSlug
|
|
4086
|
+
* @returns void
|
|
4087
|
+
* @throws ApiError
|
|
4088
|
+
*/
|
|
4089
|
+
startPublicSamlSsoRedirect(orgSlug) {
|
|
4090
|
+
return this.httpRequest.request({
|
|
4091
|
+
method: "GET",
|
|
4092
|
+
url: "/api/saml/sso/{orgSlug}",
|
|
4093
|
+
path: {
|
|
4094
|
+
"orgSlug": orgSlug
|
|
4095
|
+
},
|
|
4096
|
+
errors: {
|
|
4097
|
+
302: `Redirect to the IdP or /login?sso=failed`
|
|
4098
|
+
}
|
|
4099
|
+
});
|
|
4100
|
+
}
|
|
3778
4101
|
};
|
|
3779
4102
|
|
|
3780
4103
|
// src/services/SecretsService.ts
|
|
@@ -4747,6 +5070,7 @@ var EnvSyncAPISDK = class {
|
|
|
4747
5070
|
changeRequests;
|
|
4748
5071
|
dynamicSecrets;
|
|
4749
5072
|
enterprise;
|
|
5073
|
+
enterpriseCmk;
|
|
4750
5074
|
environmentTypes;
|
|
4751
5075
|
environmentVariables;
|
|
4752
5076
|
environmentVariablesPointInTime;
|
|
@@ -4758,6 +5082,7 @@ var EnvSyncAPISDK = class {
|
|
|
4758
5082
|
oidcProviders;
|
|
4759
5083
|
onboarding;
|
|
4760
5084
|
organizations;
|
|
5085
|
+
orgFeatures;
|
|
4761
5086
|
permissions;
|
|
4762
5087
|
roles;
|
|
4763
5088
|
rotation;
|
|
@@ -4775,8 +5100,8 @@ var EnvSyncAPISDK = class {
|
|
|
4775
5100
|
request;
|
|
4776
5101
|
constructor(config, HttpRequest = FetchHttpRequest) {
|
|
4777
5102
|
this.request = new HttpRequest({
|
|
4778
|
-
BASE: config?.BASE ?? "http://localhost:
|
|
4779
|
-
VERSION: config?.VERSION ?? "0.20.
|
|
5103
|
+
BASE: config?.BASE ?? "http://localhost:0",
|
|
5104
|
+
VERSION: config?.VERSION ?? "0.20.1",
|
|
4780
5105
|
WITH_CREDENTIALS: config?.WITH_CREDENTIALS ?? false,
|
|
4781
5106
|
CREDENTIALS: config?.CREDENTIALS ?? "include",
|
|
4782
5107
|
TOKEN: config?.TOKEN,
|
|
@@ -4794,6 +5119,7 @@ var EnvSyncAPISDK = class {
|
|
|
4794
5119
|
this.changeRequests = new ChangeRequestsService(this.request);
|
|
4795
5120
|
this.dynamicSecrets = new DynamicSecretsService(this.request);
|
|
4796
5121
|
this.enterprise = new EnterpriseService(this.request);
|
|
5122
|
+
this.enterpriseCmk = new EnterpriseCmkService(this.request);
|
|
4797
5123
|
this.environmentTypes = new EnvironmentTypesService(this.request);
|
|
4798
5124
|
this.environmentVariables = new EnvironmentVariablesService(this.request);
|
|
4799
5125
|
this.environmentVariablesPointInTime = new EnvironmentVariablesPointInTimeService(this.request);
|
|
@@ -4805,6 +5131,7 @@ var EnvSyncAPISDK = class {
|
|
|
4805
5131
|
this.oidcProviders = new OidcProvidersService(this.request);
|
|
4806
5132
|
this.onboarding = new OnboardingService(this.request);
|
|
4807
5133
|
this.organizations = new OrganizationsService(this.request);
|
|
5134
|
+
this.orgFeatures = new OrgFeaturesService(this.request);
|
|
4808
5135
|
this.permissions = new PermissionsService(this.request);
|
|
4809
5136
|
this.roles = new RolesService(this.request);
|
|
4810
5137
|
this.rotation = new RotationService(this.request);
|
|
@@ -4824,8 +5151,8 @@ var EnvSyncAPISDK = class {
|
|
|
4824
5151
|
|
|
4825
5152
|
// src/core/OpenAPI.ts
|
|
4826
5153
|
var OpenAPI = {
|
|
4827
|
-
BASE: "http://localhost:
|
|
4828
|
-
VERSION: "0.20.
|
|
5154
|
+
BASE: "http://localhost:0",
|
|
5155
|
+
VERSION: "0.20.1",
|
|
4829
5156
|
WITH_CREDENTIALS: false,
|
|
4830
5157
|
CREDENTIALS: "include",
|
|
4831
5158
|
TOKEN: void 0,
|
|
@@ -5158,6 +5485,64 @@ var OidcProviderResponse;
|
|
|
5158
5485
|
})(provider_type = OidcProviderResponse2.provider_type || (OidcProviderResponse2.provider_type = {}));
|
|
5159
5486
|
})(OidcProviderResponse || (OidcProviderResponse = {}));
|
|
5160
5487
|
|
|
5488
|
+
// src/models/OrgKmsConfigResponse.ts
|
|
5489
|
+
var OrgKmsConfigResponse;
|
|
5490
|
+
((OrgKmsConfigResponse2) => {
|
|
5491
|
+
let source;
|
|
5492
|
+
((source2) => {
|
|
5493
|
+
source2["MANAGED"] = "managed";
|
|
5494
|
+
source2["AWS_KMS"] = "aws-kms";
|
|
5495
|
+
source2["GCP_KMS"] = "gcp-kms";
|
|
5496
|
+
source2["AZURE_KV"] = "azure-kv";
|
|
5497
|
+
})(source = OrgKmsConfigResponse2.source || (OrgKmsConfigResponse2.source = {}));
|
|
5498
|
+
let status;
|
|
5499
|
+
((status2) => {
|
|
5500
|
+
status2["ACTIVE"] = "active";
|
|
5501
|
+
status2["PENDING"] = "pending";
|
|
5502
|
+
status2["ROTATING"] = "rotating";
|
|
5503
|
+
status2["UNAVAILABLE"] = "unavailable";
|
|
5504
|
+
status2["DISABLED"] = "disabled";
|
|
5505
|
+
})(status = OrgKmsConfigResponse2.status || (OrgKmsConfigResponse2.status = {}));
|
|
5506
|
+
})(OrgKmsConfigResponse || (OrgKmsConfigResponse = {}));
|
|
5507
|
+
|
|
5508
|
+
// src/models/OrgKmsJobResponse.ts
|
|
5509
|
+
var OrgKmsJobResponse;
|
|
5510
|
+
((OrgKmsJobResponse2) => {
|
|
5511
|
+
let kind;
|
|
5512
|
+
((kind2) => {
|
|
5513
|
+
kind2["KEK_REWRAP"] = "kek_rewrap";
|
|
5514
|
+
kind2["DEK_REWRAP"] = "dek_rewrap";
|
|
5515
|
+
kind2["DETACH_MANAGED"] = "detach_managed";
|
|
5516
|
+
})(kind = OrgKmsJobResponse2.kind || (OrgKmsJobResponse2.kind = {}));
|
|
5517
|
+
let status;
|
|
5518
|
+
((status2) => {
|
|
5519
|
+
status2["PENDING"] = "pending";
|
|
5520
|
+
status2["RUNNING"] = "running";
|
|
5521
|
+
status2["SUCCEEDED"] = "succeeded";
|
|
5522
|
+
status2["FAILED"] = "failed";
|
|
5523
|
+
})(status = OrgKmsJobResponse2.status || (OrgKmsJobResponse2.status = {}));
|
|
5524
|
+
})(OrgKmsJobResponse || (OrgKmsJobResponse = {}));
|
|
5525
|
+
|
|
5526
|
+
// src/models/OrgKmsVerifyResponse.ts
|
|
5527
|
+
var OrgKmsVerifyResponse;
|
|
5528
|
+
((OrgKmsVerifyResponse2) => {
|
|
5529
|
+
let source;
|
|
5530
|
+
((source2) => {
|
|
5531
|
+
source2["MANAGED"] = "managed";
|
|
5532
|
+
source2["AWS_KMS"] = "aws-kms";
|
|
5533
|
+
source2["GCP_KMS"] = "gcp-kms";
|
|
5534
|
+
source2["AZURE_KV"] = "azure-kv";
|
|
5535
|
+
})(source = OrgKmsVerifyResponse2.source || (OrgKmsVerifyResponse2.source = {}));
|
|
5536
|
+
let status;
|
|
5537
|
+
((status2) => {
|
|
5538
|
+
status2["ACTIVE"] = "active";
|
|
5539
|
+
status2["PENDING"] = "pending";
|
|
5540
|
+
status2["ROTATING"] = "rotating";
|
|
5541
|
+
status2["UNAVAILABLE"] = "unavailable";
|
|
5542
|
+
status2["DISABLED"] = "disabled";
|
|
5543
|
+
})(status = OrgKmsVerifyResponse2.status || (OrgKmsVerifyResponse2.status = {}));
|
|
5544
|
+
})(OrgKmsVerifyResponse || (OrgKmsVerifyResponse = {}));
|
|
5545
|
+
|
|
5161
5546
|
// src/models/ProviderConnection.ts
|
|
5162
5547
|
var ProviderConnection;
|
|
5163
5548
|
((ProviderConnection2) => {
|
|
@@ -5177,6 +5562,17 @@ var ProviderConnection;
|
|
|
5177
5562
|
})(status = ProviderConnection2.status || (ProviderConnection2.status = {}));
|
|
5178
5563
|
})(ProviderConnection || (ProviderConnection = {}));
|
|
5179
5564
|
|
|
5565
|
+
// src/models/PutOrgFeatureGrantRequest.ts
|
|
5566
|
+
var PutOrgFeatureGrantRequest;
|
|
5567
|
+
((PutOrgFeatureGrantRequest2) => {
|
|
5568
|
+
let source;
|
|
5569
|
+
((source2) => {
|
|
5570
|
+
source2["BILLING"] = "billing";
|
|
5571
|
+
source2["SUPPORT"] = "support";
|
|
5572
|
+
source2["SEED"] = "seed";
|
|
5573
|
+
})(source = PutOrgFeatureGrantRequest2.source || (PutOrgFeatureGrantRequest2.source = {}));
|
|
5574
|
+
})(PutOrgFeatureGrantRequest || (PutOrgFeatureGrantRequest = {}));
|
|
5575
|
+
|
|
5180
5576
|
// src/models/RevokeAccessRequest.ts
|
|
5181
5577
|
var RevokeAccessRequest;
|
|
5182
5578
|
((RevokeAccessRequest2) => {
|
|
@@ -5328,6 +5724,18 @@ var SystemStatusState;
|
|
|
5328
5724
|
})(deployment_mode = SystemStatusState2.deployment_mode || (SystemStatusState2.deployment_mode = {}));
|
|
5329
5725
|
})(SystemStatusState || (SystemStatusState = {}));
|
|
5330
5726
|
|
|
5727
|
+
// src/models/UpdateOrgKmsConfigRequest.ts
|
|
5728
|
+
var UpdateOrgKmsConfigRequest;
|
|
5729
|
+
((UpdateOrgKmsConfigRequest2) => {
|
|
5730
|
+
let source;
|
|
5731
|
+
((source2) => {
|
|
5732
|
+
source2["MANAGED"] = "managed";
|
|
5733
|
+
source2["AWS_KMS"] = "aws-kms";
|
|
5734
|
+
source2["GCP_KMS"] = "gcp-kms";
|
|
5735
|
+
source2["AZURE_KV"] = "azure-kv";
|
|
5736
|
+
})(source = UpdateOrgKmsConfigRequest2.source || (UpdateOrgKmsConfigRequest2.source = {}));
|
|
5737
|
+
})(UpdateOrgKmsConfigRequest || (UpdateOrgKmsConfigRequest = {}));
|
|
5738
|
+
|
|
5331
5739
|
// src/models/UpdateProviderConnectionRequest.ts
|
|
5332
5740
|
var UpdateProviderConnectionRequest;
|
|
5333
5741
|
((UpdateProviderConnectionRequest2) => {
|
|
@@ -5408,6 +5816,18 @@ var WebhookResponse;
|
|
|
5408
5816
|
linked_to2["APP"] = "app";
|
|
5409
5817
|
})(linked_to = WebhookResponse2.linked_to || (WebhookResponse2.linked_to = {}));
|
|
5410
5818
|
})(WebhookResponse || (WebhookResponse = {}));
|
|
5819
|
+
|
|
5820
|
+
// src/models/WhoAmIResponse.ts
|
|
5821
|
+
var WhoAmIResponse;
|
|
5822
|
+
((WhoAmIResponse2) => {
|
|
5823
|
+
let auth_type;
|
|
5824
|
+
((auth_type2) => {
|
|
5825
|
+
auth_type2["JWT"] = "jwt";
|
|
5826
|
+
auth_type2["SAML"] = "saml";
|
|
5827
|
+
auth_type2["OIDC"] = "oidc";
|
|
5828
|
+
auth_type2["API_KEY"] = "api_key";
|
|
5829
|
+
})(auth_type = WhoAmIResponse2.auth_type || (WhoAmIResponse2.auth_type = {}));
|
|
5830
|
+
})(WhoAmIResponse || (WhoAmIResponse = {}));
|
|
5411
5831
|
// Annotate the CommonJS export names for ESM import in node:
|
|
5412
5832
|
0 && (module.exports = {
|
|
5413
5833
|
AccessService,
|
|
@@ -5434,6 +5854,7 @@ var WebhookResponse;
|
|
|
5434
5854
|
DynamicSecretEngineResponse,
|
|
5435
5855
|
DynamicSecretsService,
|
|
5436
5856
|
EffectiveAccessEntry,
|
|
5857
|
+
EnterpriseCmkService,
|
|
5437
5858
|
EnterpriseProviderProfile,
|
|
5438
5859
|
EnterpriseService,
|
|
5439
5860
|
EnvSyncAPISDK,
|
|
@@ -5456,9 +5877,14 @@ var WebhookResponse;
|
|
|
5456
5877
|
OidcProvidersService,
|
|
5457
5878
|
OnboardingService,
|
|
5458
5879
|
OpenAPI,
|
|
5880
|
+
OrgFeaturesService,
|
|
5881
|
+
OrgKmsConfigResponse,
|
|
5882
|
+
OrgKmsJobResponse,
|
|
5883
|
+
OrgKmsVerifyResponse,
|
|
5459
5884
|
OrganizationsService,
|
|
5460
5885
|
PermissionsService,
|
|
5461
5886
|
ProviderConnection,
|
|
5887
|
+
PutOrgFeatureGrantRequest,
|
|
5462
5888
|
RevokeAccessRequest,
|
|
5463
5889
|
RolesService,
|
|
5464
5890
|
RotateGpgKeyRequest,
|
|
@@ -5480,12 +5906,14 @@ var WebhookResponse;
|
|
|
5480
5906
|
SystemService,
|
|
5481
5907
|
SystemStatusState,
|
|
5482
5908
|
TeamsService,
|
|
5909
|
+
UpdateOrgKmsConfigRequest,
|
|
5483
5910
|
UpdateProviderConnectionRequest,
|
|
5484
5911
|
UpdateTrustLevelRequest,
|
|
5485
5912
|
UpdateWebhookRequest,
|
|
5486
5913
|
UsersService,
|
|
5487
5914
|
VariableRollbackResponse,
|
|
5488
5915
|
WebhookResponse,
|
|
5489
|
-
WebhooksService
|
|
5916
|
+
WebhooksService,
|
|
5917
|
+
WhoAmIResponse
|
|
5490
5918
|
});
|
|
5491
5919
|
//# sourceMappingURL=index.js.map
|