@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.mjs
CHANGED
|
@@ -1662,6 +1662,190 @@ var EnterpriseService = class {
|
|
|
1662
1662
|
}
|
|
1663
1663
|
};
|
|
1664
1664
|
|
|
1665
|
+
// src/services/EnterpriseCmkService.ts
|
|
1666
|
+
var EnterpriseCmkService = class {
|
|
1667
|
+
constructor(httpRequest) {
|
|
1668
|
+
this.httpRequest = httpRequest;
|
|
1669
|
+
}
|
|
1670
|
+
/**
|
|
1671
|
+
* Break-glass detach organization CMK
|
|
1672
|
+
* Hosted platform API. Enqueues detach-to-managed even if the org lost the kms grant or status is unavailable. Does not call ensureTenantKek.
|
|
1673
|
+
* @param xEnvSyncPlatformToken
|
|
1674
|
+
* @param orgId
|
|
1675
|
+
* @returns OrgKmsJobResponse Already on managed wrapping
|
|
1676
|
+
* @throws ApiError
|
|
1677
|
+
*/
|
|
1678
|
+
breakGlassDetachOrgKms(xEnvSyncPlatformToken, orgId) {
|
|
1679
|
+
return this.httpRequest.request({
|
|
1680
|
+
method: "POST",
|
|
1681
|
+
url: "/api/v1/manage/kms/{orgId}/break-glass-detach",
|
|
1682
|
+
path: {
|
|
1683
|
+
"orgId": orgId
|
|
1684
|
+
},
|
|
1685
|
+
headers: {
|
|
1686
|
+
"X-EnvSync-Platform-Token": xEnvSyncPlatformToken
|
|
1687
|
+
},
|
|
1688
|
+
errors: {
|
|
1689
|
+
401: `Invalid platform token`,
|
|
1690
|
+
403: `Not hosted`,
|
|
1691
|
+
500: `Internal server error`
|
|
1692
|
+
}
|
|
1693
|
+
});
|
|
1694
|
+
}
|
|
1695
|
+
/**
|
|
1696
|
+
* Get organization KMS config
|
|
1697
|
+
* Returns implicit managed/active when no org_kms_config row exists. Never returns key material.
|
|
1698
|
+
* @returns OrgKmsConfigResponse Organization KMS config
|
|
1699
|
+
* @throws ApiError
|
|
1700
|
+
*/
|
|
1701
|
+
getOrgKmsConfig() {
|
|
1702
|
+
return this.httpRequest.request({
|
|
1703
|
+
method: "GET",
|
|
1704
|
+
url: "/api/v1/manage/kms",
|
|
1705
|
+
errors: {
|
|
1706
|
+
500: `Internal server error`
|
|
1707
|
+
}
|
|
1708
|
+
});
|
|
1709
|
+
}
|
|
1710
|
+
/**
|
|
1711
|
+
* Update organization KMS config
|
|
1712
|
+
* Self-host cloud sources return 403 CMK_HOSTED_ONLY. Hosted persists cloud source as pending until attach.
|
|
1713
|
+
* @param requestBody
|
|
1714
|
+
* @returns OrgKmsConfigResponse Organization KMS config updated
|
|
1715
|
+
* @throws ApiError
|
|
1716
|
+
*/
|
|
1717
|
+
updateOrgKmsConfig(requestBody) {
|
|
1718
|
+
return this.httpRequest.request({
|
|
1719
|
+
method: "PUT",
|
|
1720
|
+
url: "/api/v1/manage/kms",
|
|
1721
|
+
body: requestBody,
|
|
1722
|
+
mediaType: "application/json",
|
|
1723
|
+
errors: {
|
|
1724
|
+
403: `Cloud CMK is Hosted-only`,
|
|
1725
|
+
409: `A rewrap job is already running`,
|
|
1726
|
+
500: `Internal server error`
|
|
1727
|
+
}
|
|
1728
|
+
});
|
|
1729
|
+
}
|
|
1730
|
+
/**
|
|
1731
|
+
* Create a purpose=kms org secret
|
|
1732
|
+
* Encrypts the value under scope __kms_config__ before insert. Does not require the integrations feature.
|
|
1733
|
+
* @param requestBody
|
|
1734
|
+
* @returns OrgKmsCredentialResponse Credential created (value redacted)
|
|
1735
|
+
* @throws ApiError
|
|
1736
|
+
*/
|
|
1737
|
+
createOrgKmsCredential(requestBody) {
|
|
1738
|
+
return this.httpRequest.request({
|
|
1739
|
+
method: "POST",
|
|
1740
|
+
url: "/api/v1/manage/kms/credentials",
|
|
1741
|
+
body: requestBody,
|
|
1742
|
+
mediaType: "application/json",
|
|
1743
|
+
errors: {
|
|
1744
|
+
500: `Internal server error`
|
|
1745
|
+
}
|
|
1746
|
+
});
|
|
1747
|
+
}
|
|
1748
|
+
/**
|
|
1749
|
+
* Verify organization KMS
|
|
1750
|
+
* Managed source succeeds immediately. Cloud verify unwraps or first-wraps the tenant KEK.
|
|
1751
|
+
* @returns OrgKmsVerifyResponse Verify result
|
|
1752
|
+
* @throws ApiError
|
|
1753
|
+
*/
|
|
1754
|
+
verifyOrgKms() {
|
|
1755
|
+
return this.httpRequest.request({
|
|
1756
|
+
method: "POST",
|
|
1757
|
+
url: "/api/v1/manage/kms/verify",
|
|
1758
|
+
errors: {
|
|
1759
|
+
500: `Internal server error`,
|
|
1760
|
+
503: `CMK unavailable`
|
|
1761
|
+
}
|
|
1762
|
+
});
|
|
1763
|
+
}
|
|
1764
|
+
/**
|
|
1765
|
+
* Rotate organization KEK
|
|
1766
|
+
* Re-wraps wrapped_kek under the current key_ref. Hosted cloud-only; does not rewrap DEKs.
|
|
1767
|
+
* @returns OrgKmsConfigResponse KEK rotated
|
|
1768
|
+
* @throws ApiError
|
|
1769
|
+
*/
|
|
1770
|
+
rotateOrgKmsKek() {
|
|
1771
|
+
return this.httpRequest.request({
|
|
1772
|
+
method: "POST",
|
|
1773
|
+
url: "/api/v1/manage/kms/rotate-kek",
|
|
1774
|
+
errors: {
|
|
1775
|
+
500: `Internal server error`
|
|
1776
|
+
}
|
|
1777
|
+
});
|
|
1778
|
+
}
|
|
1779
|
+
/**
|
|
1780
|
+
* Attach organization CMK
|
|
1781
|
+
* Enqueues DEK rewrap under the tenant KEK with allow_root_unwrap during the attach window. Hosted only.
|
|
1782
|
+
* @returns OrgKmsJobResponse Attach job enqueued
|
|
1783
|
+
* @throws ApiError
|
|
1784
|
+
*/
|
|
1785
|
+
attachOrgKms() {
|
|
1786
|
+
return this.httpRequest.request({
|
|
1787
|
+
method: "POST",
|
|
1788
|
+
url: "/api/v1/manage/kms/attach",
|
|
1789
|
+
errors: {
|
|
1790
|
+
403: `Cloud CMK is Hosted-only`,
|
|
1791
|
+
409: `A rewrap job is already running`,
|
|
1792
|
+
500: `Internal server error`
|
|
1793
|
+
}
|
|
1794
|
+
});
|
|
1795
|
+
}
|
|
1796
|
+
/**
|
|
1797
|
+
* Detach organization CMK to managed
|
|
1798
|
+
* Enqueues detach_managed. Does not call ensureTenantKek when status is unavailable.
|
|
1799
|
+
* @returns OrgKmsJobResponse Detach job enqueued
|
|
1800
|
+
* @throws ApiError
|
|
1801
|
+
*/
|
|
1802
|
+
detachOrgKms() {
|
|
1803
|
+
return this.httpRequest.request({
|
|
1804
|
+
method: "POST",
|
|
1805
|
+
url: "/api/v1/manage/kms/detach",
|
|
1806
|
+
errors: {
|
|
1807
|
+
409: `A rewrap job is already running`,
|
|
1808
|
+
500: `Internal server error`
|
|
1809
|
+
}
|
|
1810
|
+
});
|
|
1811
|
+
}
|
|
1812
|
+
/**
|
|
1813
|
+
* Get organization KMS job
|
|
1814
|
+
* @param id
|
|
1815
|
+
* @returns OrgKmsJobResponse KMS job
|
|
1816
|
+
* @throws ApiError
|
|
1817
|
+
*/
|
|
1818
|
+
getOrgKmsJob(id) {
|
|
1819
|
+
return this.httpRequest.request({
|
|
1820
|
+
method: "GET",
|
|
1821
|
+
url: "/api/v1/manage/kms/jobs/{id}",
|
|
1822
|
+
path: {
|
|
1823
|
+
"id": id
|
|
1824
|
+
},
|
|
1825
|
+
errors: {
|
|
1826
|
+
404: `Job not found`,
|
|
1827
|
+
500: `Internal server error`
|
|
1828
|
+
}
|
|
1829
|
+
});
|
|
1830
|
+
}
|
|
1831
|
+
/**
|
|
1832
|
+
* List per-app KMS key info
|
|
1833
|
+
* Calls GetKeyInfo per app. Never returns key material.
|
|
1834
|
+
* @returns OrgKmsAppsResponse Per-app key metadata
|
|
1835
|
+
* @throws ApiError
|
|
1836
|
+
*/
|
|
1837
|
+
listOrgKmsApps() {
|
|
1838
|
+
return this.httpRequest.request({
|
|
1839
|
+
method: "GET",
|
|
1840
|
+
url: "/api/v1/manage/kms/apps",
|
|
1841
|
+
errors: {
|
|
1842
|
+
500: `Internal server error`,
|
|
1843
|
+
503: `CMK unavailable`
|
|
1844
|
+
}
|
|
1845
|
+
});
|
|
1846
|
+
}
|
|
1847
|
+
};
|
|
1848
|
+
|
|
1665
1849
|
// src/services/EnvironmentTypesService.ts
|
|
1666
1850
|
var EnvironmentTypesService = class {
|
|
1667
1851
|
constructor(httpRequest) {
|
|
@@ -3069,6 +3253,91 @@ var OrganizationsService = class {
|
|
|
3069
3253
|
}
|
|
3070
3254
|
};
|
|
3071
3255
|
|
|
3256
|
+
// src/services/OrgFeaturesService.ts
|
|
3257
|
+
var OrgFeaturesService = class {
|
|
3258
|
+
constructor(httpRequest) {
|
|
3259
|
+
this.httpRequest = httpRequest;
|
|
3260
|
+
}
|
|
3261
|
+
/**
|
|
3262
|
+
* Get Organization Feature Grant
|
|
3263
|
+
* Hosted platform API. No row means unrestricted (full catalog).
|
|
3264
|
+
* @param xEnvSyncPlatformToken
|
|
3265
|
+
* @param orgId
|
|
3266
|
+
* @returns OrgFeatureGrantResponse Organization feature grant
|
|
3267
|
+
* @throws ApiError
|
|
3268
|
+
*/
|
|
3269
|
+
getOrgFeatureGrant(xEnvSyncPlatformToken, orgId) {
|
|
3270
|
+
return this.httpRequest.request({
|
|
3271
|
+
method: "GET",
|
|
3272
|
+
url: "/api/v1/manage/org-features/{orgId}",
|
|
3273
|
+
path: {
|
|
3274
|
+
"orgId": orgId
|
|
3275
|
+
},
|
|
3276
|
+
headers: {
|
|
3277
|
+
"X-EnvSync-Platform-Token": xEnvSyncPlatformToken
|
|
3278
|
+
},
|
|
3279
|
+
errors: {
|
|
3280
|
+
401: `Invalid platform token`,
|
|
3281
|
+
403: `Not hosted`,
|
|
3282
|
+
500: `Internal server error`
|
|
3283
|
+
}
|
|
3284
|
+
});
|
|
3285
|
+
}
|
|
3286
|
+
/**
|
|
3287
|
+
* Replace Organization Feature Grant
|
|
3288
|
+
* Full replace. Empty features[] denies every EE feature. Unknown catalog keys are dropped.
|
|
3289
|
+
* @param xEnvSyncPlatformToken
|
|
3290
|
+
* @param orgId
|
|
3291
|
+
* @param requestBody
|
|
3292
|
+
* @returns OrgFeatureGrantResponse Organization feature grant replaced
|
|
3293
|
+
* @throws ApiError
|
|
3294
|
+
*/
|
|
3295
|
+
putOrgFeatureGrant(xEnvSyncPlatformToken, orgId, requestBody) {
|
|
3296
|
+
return this.httpRequest.request({
|
|
3297
|
+
method: "PUT",
|
|
3298
|
+
url: "/api/v1/manage/org-features/{orgId}",
|
|
3299
|
+
path: {
|
|
3300
|
+
"orgId": orgId
|
|
3301
|
+
},
|
|
3302
|
+
headers: {
|
|
3303
|
+
"X-EnvSync-Platform-Token": xEnvSyncPlatformToken
|
|
3304
|
+
},
|
|
3305
|
+
body: requestBody,
|
|
3306
|
+
mediaType: "application/json",
|
|
3307
|
+
errors: {
|
|
3308
|
+
401: `Invalid platform token`,
|
|
3309
|
+
403: `Not hosted`,
|
|
3310
|
+
500: `Internal server error`
|
|
3311
|
+
}
|
|
3312
|
+
});
|
|
3313
|
+
}
|
|
3314
|
+
/**
|
|
3315
|
+
* Delete Organization Feature Grant
|
|
3316
|
+
* Drops the grant row so the organization is unrestricted.
|
|
3317
|
+
* @param xEnvSyncPlatformToken
|
|
3318
|
+
* @param orgId
|
|
3319
|
+
* @returns OrgFeatureGrantResponse Grant deleted; organization unrestricted
|
|
3320
|
+
* @throws ApiError
|
|
3321
|
+
*/
|
|
3322
|
+
deleteOrgFeatureGrant(xEnvSyncPlatformToken, orgId) {
|
|
3323
|
+
return this.httpRequest.request({
|
|
3324
|
+
method: "DELETE",
|
|
3325
|
+
url: "/api/v1/manage/org-features/{orgId}",
|
|
3326
|
+
path: {
|
|
3327
|
+
"orgId": orgId
|
|
3328
|
+
},
|
|
3329
|
+
headers: {
|
|
3330
|
+
"X-EnvSync-Platform-Token": xEnvSyncPlatformToken
|
|
3331
|
+
},
|
|
3332
|
+
errors: {
|
|
3333
|
+
401: `Invalid platform token`,
|
|
3334
|
+
403: `Not hosted`,
|
|
3335
|
+
500: `Internal server error`
|
|
3336
|
+
}
|
|
3337
|
+
});
|
|
3338
|
+
}
|
|
3339
|
+
};
|
|
3340
|
+
|
|
3072
3341
|
// src/services/PermissionsService.ts
|
|
3073
3342
|
var PermissionsService = class {
|
|
3074
3343
|
constructor(httpRequest) {
|
|
@@ -3555,7 +3824,7 @@ var SamlProvidersService = class {
|
|
|
3555
3824
|
}
|
|
3556
3825
|
/**
|
|
3557
3826
|
* Get SAML Provider
|
|
3558
|
-
* Retrieve a specific SAML provider
|
|
3827
|
+
* Retrieve a specific SAML provider. Certificate PEM is omitted unless include=certificate.
|
|
3559
3828
|
* @param id
|
|
3560
3829
|
* @returns SamlProviderResponse SAML provider retrieved successfully
|
|
3561
3830
|
* @throws ApiError
|
|
@@ -3615,9 +3884,9 @@ var SamlProvidersService = class {
|
|
|
3615
3884
|
}
|
|
3616
3885
|
/**
|
|
3617
3886
|
* Get SAML SP Metadata
|
|
3618
|
-
*
|
|
3887
|
+
* Redirects to the public SP metadata URL for this organization
|
|
3619
3888
|
* @param id
|
|
3620
|
-
* @returns
|
|
3889
|
+
* @returns void
|
|
3621
3890
|
* @throws ApiError
|
|
3622
3891
|
*/
|
|
3623
3892
|
getSamlMetadata(id) {
|
|
@@ -3626,6 +3895,9 @@ var SamlProvidersService = class {
|
|
|
3626
3895
|
url: "/api/v1/manage/saml/{id}/metadata",
|
|
3627
3896
|
path: {
|
|
3628
3897
|
"id": id
|
|
3898
|
+
},
|
|
3899
|
+
errors: {
|
|
3900
|
+
302: `Redirect to /api/saml/metadata/{orgId}`
|
|
3629
3901
|
}
|
|
3630
3902
|
});
|
|
3631
3903
|
}
|
|
@@ -3637,42 +3909,85 @@ var SamlSsoService = class {
|
|
|
3637
3909
|
this.httpRequest = httpRequest;
|
|
3638
3910
|
}
|
|
3639
3911
|
/**
|
|
3640
|
-
*
|
|
3641
|
-
*
|
|
3642
|
-
* @param
|
|
3643
|
-
* @returns
|
|
3912
|
+
* Get public SAML SP metadata
|
|
3913
|
+
* Unauthenticated SP metadata XML for the organization
|
|
3914
|
+
* @param orgId
|
|
3915
|
+
* @returns string SP metadata XML
|
|
3644
3916
|
* @throws ApiError
|
|
3645
3917
|
*/
|
|
3646
|
-
|
|
3918
|
+
getPublicSamlMetadata(orgId) {
|
|
3647
3919
|
return this.httpRequest.request({
|
|
3648
|
-
method: "
|
|
3649
|
-
url: "/api/
|
|
3650
|
-
|
|
3651
|
-
|
|
3920
|
+
method: "GET",
|
|
3921
|
+
url: "/api/saml/metadata/{orgId}",
|
|
3922
|
+
path: {
|
|
3923
|
+
"orgId": orgId
|
|
3924
|
+
},
|
|
3652
3925
|
errors: {
|
|
3653
|
-
|
|
3926
|
+
404: `SSO is not available`
|
|
3654
3927
|
}
|
|
3655
3928
|
});
|
|
3656
3929
|
}
|
|
3657
3930
|
/**
|
|
3658
3931
|
* SAML Assertion Consumer Service
|
|
3659
|
-
* Receive and validate SAML Response from the identity provider
|
|
3932
|
+
* Receive and validate a SAML Response from the identity provider
|
|
3660
3933
|
* @param orgId
|
|
3661
|
-
* @returns
|
|
3934
|
+
* @returns void
|
|
3662
3935
|
* @throws ApiError
|
|
3663
3936
|
*/
|
|
3664
|
-
|
|
3937
|
+
handlePublicSamlAcs(orgId) {
|
|
3665
3938
|
return this.httpRequest.request({
|
|
3666
3939
|
method: "POST",
|
|
3667
|
-
url: "/api/
|
|
3940
|
+
url: "/api/saml/acs/{orgId}",
|
|
3668
3941
|
path: {
|
|
3669
3942
|
"orgId": orgId
|
|
3670
3943
|
},
|
|
3671
3944
|
errors: {
|
|
3945
|
+
302: `Authentication successful`,
|
|
3672
3946
|
401: `Authentication failed`
|
|
3673
3947
|
}
|
|
3674
3948
|
});
|
|
3675
3949
|
}
|
|
3950
|
+
/**
|
|
3951
|
+
* Start SAML SSO
|
|
3952
|
+
* Unauthenticated SP-initiated start. Returns a redirect URL for the login page or CLI.
|
|
3953
|
+
* @param orgSlug
|
|
3954
|
+
* @param requestBody
|
|
3955
|
+
* @returns SamlSsoResponse Redirect URL generated
|
|
3956
|
+
* @throws ApiError
|
|
3957
|
+
*/
|
|
3958
|
+
startPublicSamlSso(orgSlug, requestBody) {
|
|
3959
|
+
return this.httpRequest.request({
|
|
3960
|
+
method: "POST",
|
|
3961
|
+
url: "/api/saml/sso/{orgSlug}",
|
|
3962
|
+
path: {
|
|
3963
|
+
"orgSlug": orgSlug
|
|
3964
|
+
},
|
|
3965
|
+
body: requestBody,
|
|
3966
|
+
mediaType: "application/json",
|
|
3967
|
+
errors: {
|
|
3968
|
+
404: `SSO is not available`
|
|
3969
|
+
}
|
|
3970
|
+
});
|
|
3971
|
+
}
|
|
3972
|
+
/**
|
|
3973
|
+
* Bookmark SAML SSO start
|
|
3974
|
+
* Success redirects to the IdP. Any error redirects to the dashboard login page.
|
|
3975
|
+
* @param orgSlug
|
|
3976
|
+
* @returns void
|
|
3977
|
+
* @throws ApiError
|
|
3978
|
+
*/
|
|
3979
|
+
startPublicSamlSsoRedirect(orgSlug) {
|
|
3980
|
+
return this.httpRequest.request({
|
|
3981
|
+
method: "GET",
|
|
3982
|
+
url: "/api/saml/sso/{orgSlug}",
|
|
3983
|
+
path: {
|
|
3984
|
+
"orgSlug": orgSlug
|
|
3985
|
+
},
|
|
3986
|
+
errors: {
|
|
3987
|
+
302: `Redirect to the IdP or /login?sso=failed`
|
|
3988
|
+
}
|
|
3989
|
+
});
|
|
3990
|
+
}
|
|
3676
3991
|
};
|
|
3677
3992
|
|
|
3678
3993
|
// src/services/SecretsService.ts
|
|
@@ -4645,6 +4960,7 @@ var EnvSyncAPISDK = class {
|
|
|
4645
4960
|
changeRequests;
|
|
4646
4961
|
dynamicSecrets;
|
|
4647
4962
|
enterprise;
|
|
4963
|
+
enterpriseCmk;
|
|
4648
4964
|
environmentTypes;
|
|
4649
4965
|
environmentVariables;
|
|
4650
4966
|
environmentVariablesPointInTime;
|
|
@@ -4656,6 +4972,7 @@ var EnvSyncAPISDK = class {
|
|
|
4656
4972
|
oidcProviders;
|
|
4657
4973
|
onboarding;
|
|
4658
4974
|
organizations;
|
|
4975
|
+
orgFeatures;
|
|
4659
4976
|
permissions;
|
|
4660
4977
|
roles;
|
|
4661
4978
|
rotation;
|
|
@@ -4673,8 +4990,8 @@ var EnvSyncAPISDK = class {
|
|
|
4673
4990
|
request;
|
|
4674
4991
|
constructor(config, HttpRequest = FetchHttpRequest) {
|
|
4675
4992
|
this.request = new HttpRequest({
|
|
4676
|
-
BASE: config?.BASE ?? "http://localhost:
|
|
4677
|
-
VERSION: config?.VERSION ?? "0.20.
|
|
4993
|
+
BASE: config?.BASE ?? "http://localhost:0",
|
|
4994
|
+
VERSION: config?.VERSION ?? "0.20.1",
|
|
4678
4995
|
WITH_CREDENTIALS: config?.WITH_CREDENTIALS ?? false,
|
|
4679
4996
|
CREDENTIALS: config?.CREDENTIALS ?? "include",
|
|
4680
4997
|
TOKEN: config?.TOKEN,
|
|
@@ -4692,6 +5009,7 @@ var EnvSyncAPISDK = class {
|
|
|
4692
5009
|
this.changeRequests = new ChangeRequestsService(this.request);
|
|
4693
5010
|
this.dynamicSecrets = new DynamicSecretsService(this.request);
|
|
4694
5011
|
this.enterprise = new EnterpriseService(this.request);
|
|
5012
|
+
this.enterpriseCmk = new EnterpriseCmkService(this.request);
|
|
4695
5013
|
this.environmentTypes = new EnvironmentTypesService(this.request);
|
|
4696
5014
|
this.environmentVariables = new EnvironmentVariablesService(this.request);
|
|
4697
5015
|
this.environmentVariablesPointInTime = new EnvironmentVariablesPointInTimeService(this.request);
|
|
@@ -4703,6 +5021,7 @@ var EnvSyncAPISDK = class {
|
|
|
4703
5021
|
this.oidcProviders = new OidcProvidersService(this.request);
|
|
4704
5022
|
this.onboarding = new OnboardingService(this.request);
|
|
4705
5023
|
this.organizations = new OrganizationsService(this.request);
|
|
5024
|
+
this.orgFeatures = new OrgFeaturesService(this.request);
|
|
4706
5025
|
this.permissions = new PermissionsService(this.request);
|
|
4707
5026
|
this.roles = new RolesService(this.request);
|
|
4708
5027
|
this.rotation = new RotationService(this.request);
|
|
@@ -4722,8 +5041,8 @@ var EnvSyncAPISDK = class {
|
|
|
4722
5041
|
|
|
4723
5042
|
// src/core/OpenAPI.ts
|
|
4724
5043
|
var OpenAPI = {
|
|
4725
|
-
BASE: "http://localhost:
|
|
4726
|
-
VERSION: "0.20.
|
|
5044
|
+
BASE: "http://localhost:0",
|
|
5045
|
+
VERSION: "0.20.1",
|
|
4727
5046
|
WITH_CREDENTIALS: false,
|
|
4728
5047
|
CREDENTIALS: "include",
|
|
4729
5048
|
TOKEN: void 0,
|
|
@@ -5056,6 +5375,64 @@ var OidcProviderResponse;
|
|
|
5056
5375
|
})(provider_type = OidcProviderResponse2.provider_type || (OidcProviderResponse2.provider_type = {}));
|
|
5057
5376
|
})(OidcProviderResponse || (OidcProviderResponse = {}));
|
|
5058
5377
|
|
|
5378
|
+
// src/models/OrgKmsConfigResponse.ts
|
|
5379
|
+
var OrgKmsConfigResponse;
|
|
5380
|
+
((OrgKmsConfigResponse2) => {
|
|
5381
|
+
let source;
|
|
5382
|
+
((source2) => {
|
|
5383
|
+
source2["MANAGED"] = "managed";
|
|
5384
|
+
source2["AWS_KMS"] = "aws-kms";
|
|
5385
|
+
source2["GCP_KMS"] = "gcp-kms";
|
|
5386
|
+
source2["AZURE_KV"] = "azure-kv";
|
|
5387
|
+
})(source = OrgKmsConfigResponse2.source || (OrgKmsConfigResponse2.source = {}));
|
|
5388
|
+
let status;
|
|
5389
|
+
((status2) => {
|
|
5390
|
+
status2["ACTIVE"] = "active";
|
|
5391
|
+
status2["PENDING"] = "pending";
|
|
5392
|
+
status2["ROTATING"] = "rotating";
|
|
5393
|
+
status2["UNAVAILABLE"] = "unavailable";
|
|
5394
|
+
status2["DISABLED"] = "disabled";
|
|
5395
|
+
})(status = OrgKmsConfigResponse2.status || (OrgKmsConfigResponse2.status = {}));
|
|
5396
|
+
})(OrgKmsConfigResponse || (OrgKmsConfigResponse = {}));
|
|
5397
|
+
|
|
5398
|
+
// src/models/OrgKmsJobResponse.ts
|
|
5399
|
+
var OrgKmsJobResponse;
|
|
5400
|
+
((OrgKmsJobResponse2) => {
|
|
5401
|
+
let kind;
|
|
5402
|
+
((kind2) => {
|
|
5403
|
+
kind2["KEK_REWRAP"] = "kek_rewrap";
|
|
5404
|
+
kind2["DEK_REWRAP"] = "dek_rewrap";
|
|
5405
|
+
kind2["DETACH_MANAGED"] = "detach_managed";
|
|
5406
|
+
})(kind = OrgKmsJobResponse2.kind || (OrgKmsJobResponse2.kind = {}));
|
|
5407
|
+
let status;
|
|
5408
|
+
((status2) => {
|
|
5409
|
+
status2["PENDING"] = "pending";
|
|
5410
|
+
status2["RUNNING"] = "running";
|
|
5411
|
+
status2["SUCCEEDED"] = "succeeded";
|
|
5412
|
+
status2["FAILED"] = "failed";
|
|
5413
|
+
})(status = OrgKmsJobResponse2.status || (OrgKmsJobResponse2.status = {}));
|
|
5414
|
+
})(OrgKmsJobResponse || (OrgKmsJobResponse = {}));
|
|
5415
|
+
|
|
5416
|
+
// src/models/OrgKmsVerifyResponse.ts
|
|
5417
|
+
var OrgKmsVerifyResponse;
|
|
5418
|
+
((OrgKmsVerifyResponse2) => {
|
|
5419
|
+
let source;
|
|
5420
|
+
((source2) => {
|
|
5421
|
+
source2["MANAGED"] = "managed";
|
|
5422
|
+
source2["AWS_KMS"] = "aws-kms";
|
|
5423
|
+
source2["GCP_KMS"] = "gcp-kms";
|
|
5424
|
+
source2["AZURE_KV"] = "azure-kv";
|
|
5425
|
+
})(source = OrgKmsVerifyResponse2.source || (OrgKmsVerifyResponse2.source = {}));
|
|
5426
|
+
let status;
|
|
5427
|
+
((status2) => {
|
|
5428
|
+
status2["ACTIVE"] = "active";
|
|
5429
|
+
status2["PENDING"] = "pending";
|
|
5430
|
+
status2["ROTATING"] = "rotating";
|
|
5431
|
+
status2["UNAVAILABLE"] = "unavailable";
|
|
5432
|
+
status2["DISABLED"] = "disabled";
|
|
5433
|
+
})(status = OrgKmsVerifyResponse2.status || (OrgKmsVerifyResponse2.status = {}));
|
|
5434
|
+
})(OrgKmsVerifyResponse || (OrgKmsVerifyResponse = {}));
|
|
5435
|
+
|
|
5059
5436
|
// src/models/ProviderConnection.ts
|
|
5060
5437
|
var ProviderConnection;
|
|
5061
5438
|
((ProviderConnection2) => {
|
|
@@ -5075,6 +5452,17 @@ var ProviderConnection;
|
|
|
5075
5452
|
})(status = ProviderConnection2.status || (ProviderConnection2.status = {}));
|
|
5076
5453
|
})(ProviderConnection || (ProviderConnection = {}));
|
|
5077
5454
|
|
|
5455
|
+
// src/models/PutOrgFeatureGrantRequest.ts
|
|
5456
|
+
var PutOrgFeatureGrantRequest;
|
|
5457
|
+
((PutOrgFeatureGrantRequest2) => {
|
|
5458
|
+
let source;
|
|
5459
|
+
((source2) => {
|
|
5460
|
+
source2["BILLING"] = "billing";
|
|
5461
|
+
source2["SUPPORT"] = "support";
|
|
5462
|
+
source2["SEED"] = "seed";
|
|
5463
|
+
})(source = PutOrgFeatureGrantRequest2.source || (PutOrgFeatureGrantRequest2.source = {}));
|
|
5464
|
+
})(PutOrgFeatureGrantRequest || (PutOrgFeatureGrantRequest = {}));
|
|
5465
|
+
|
|
5078
5466
|
// src/models/RevokeAccessRequest.ts
|
|
5079
5467
|
var RevokeAccessRequest;
|
|
5080
5468
|
((RevokeAccessRequest2) => {
|
|
@@ -5226,6 +5614,18 @@ var SystemStatusState;
|
|
|
5226
5614
|
})(deployment_mode = SystemStatusState2.deployment_mode || (SystemStatusState2.deployment_mode = {}));
|
|
5227
5615
|
})(SystemStatusState || (SystemStatusState = {}));
|
|
5228
5616
|
|
|
5617
|
+
// src/models/UpdateOrgKmsConfigRequest.ts
|
|
5618
|
+
var UpdateOrgKmsConfigRequest;
|
|
5619
|
+
((UpdateOrgKmsConfigRequest2) => {
|
|
5620
|
+
let source;
|
|
5621
|
+
((source2) => {
|
|
5622
|
+
source2["MANAGED"] = "managed";
|
|
5623
|
+
source2["AWS_KMS"] = "aws-kms";
|
|
5624
|
+
source2["GCP_KMS"] = "gcp-kms";
|
|
5625
|
+
source2["AZURE_KV"] = "azure-kv";
|
|
5626
|
+
})(source = UpdateOrgKmsConfigRequest2.source || (UpdateOrgKmsConfigRequest2.source = {}));
|
|
5627
|
+
})(UpdateOrgKmsConfigRequest || (UpdateOrgKmsConfigRequest = {}));
|
|
5628
|
+
|
|
5229
5629
|
// src/models/UpdateProviderConnectionRequest.ts
|
|
5230
5630
|
var UpdateProviderConnectionRequest;
|
|
5231
5631
|
((UpdateProviderConnectionRequest2) => {
|
|
@@ -5306,6 +5706,18 @@ var WebhookResponse;
|
|
|
5306
5706
|
linked_to2["APP"] = "app";
|
|
5307
5707
|
})(linked_to = WebhookResponse2.linked_to || (WebhookResponse2.linked_to = {}));
|
|
5308
5708
|
})(WebhookResponse || (WebhookResponse = {}));
|
|
5709
|
+
|
|
5710
|
+
// src/models/WhoAmIResponse.ts
|
|
5711
|
+
var WhoAmIResponse;
|
|
5712
|
+
((WhoAmIResponse2) => {
|
|
5713
|
+
let auth_type;
|
|
5714
|
+
((auth_type2) => {
|
|
5715
|
+
auth_type2["JWT"] = "jwt";
|
|
5716
|
+
auth_type2["SAML"] = "saml";
|
|
5717
|
+
auth_type2["OIDC"] = "oidc";
|
|
5718
|
+
auth_type2["API_KEY"] = "api_key";
|
|
5719
|
+
})(auth_type = WhoAmIResponse2.auth_type || (WhoAmIResponse2.auth_type = {}));
|
|
5720
|
+
})(WhoAmIResponse || (WhoAmIResponse = {}));
|
|
5309
5721
|
export {
|
|
5310
5722
|
AccessService,
|
|
5311
5723
|
ApiError,
|
|
@@ -5331,6 +5743,7 @@ export {
|
|
|
5331
5743
|
DynamicSecretEngineResponse,
|
|
5332
5744
|
DynamicSecretsService,
|
|
5333
5745
|
EffectiveAccessEntry,
|
|
5746
|
+
EnterpriseCmkService,
|
|
5334
5747
|
EnterpriseProviderProfile,
|
|
5335
5748
|
EnterpriseService,
|
|
5336
5749
|
EnvSyncAPISDK,
|
|
@@ -5353,9 +5766,14 @@ export {
|
|
|
5353
5766
|
OidcProvidersService,
|
|
5354
5767
|
OnboardingService,
|
|
5355
5768
|
OpenAPI,
|
|
5769
|
+
OrgFeaturesService,
|
|
5770
|
+
OrgKmsConfigResponse,
|
|
5771
|
+
OrgKmsJobResponse,
|
|
5772
|
+
OrgKmsVerifyResponse,
|
|
5356
5773
|
OrganizationsService,
|
|
5357
5774
|
PermissionsService,
|
|
5358
5775
|
ProviderConnection,
|
|
5776
|
+
PutOrgFeatureGrantRequest,
|
|
5359
5777
|
RevokeAccessRequest,
|
|
5360
5778
|
RolesService,
|
|
5361
5779
|
RotateGpgKeyRequest,
|
|
@@ -5377,12 +5795,14 @@ export {
|
|
|
5377
5795
|
SystemService,
|
|
5378
5796
|
SystemStatusState,
|
|
5379
5797
|
TeamsService,
|
|
5798
|
+
UpdateOrgKmsConfigRequest,
|
|
5380
5799
|
UpdateProviderConnectionRequest,
|
|
5381
5800
|
UpdateTrustLevelRequest,
|
|
5382
5801
|
UpdateWebhookRequest,
|
|
5383
5802
|
UsersService,
|
|
5384
5803
|
VariableRollbackResponse,
|
|
5385
5804
|
WebhookResponse,
|
|
5386
|
-
WebhooksService
|
|
5805
|
+
WebhooksService,
|
|
5806
|
+
WhoAmIResponse
|
|
5387
5807
|
};
|
|
5388
5808
|
//# sourceMappingURL=index.mjs.map
|