@envsync-cloud/envsync-ts-sdk 0.7.6 → 0.7.8
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 +179 -19
- package/dist/index.d.ts +179 -19
- package/dist/index.js +120 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +118 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -839,6 +839,21 @@ var CertificatesService = class {
|
|
|
839
839
|
}
|
|
840
840
|
});
|
|
841
841
|
}
|
|
842
|
+
/**
|
|
843
|
+
* Get Current User Certificate Bundle
|
|
844
|
+
* Retrieve the current user's active system-generated certificate bundle
|
|
845
|
+
* @returns MyCertificateBundleResponse Certificate bundle retrieved successfully
|
|
846
|
+
* @throws ApiError
|
|
847
|
+
*/
|
|
848
|
+
getMyCertificateBundle() {
|
|
849
|
+
return this.httpRequest.request({
|
|
850
|
+
method: "GET",
|
|
851
|
+
url: "/api/certificate/me",
|
|
852
|
+
errors: {
|
|
853
|
+
404: `Certificate bundle not found`
|
|
854
|
+
}
|
|
855
|
+
});
|
|
856
|
+
}
|
|
842
857
|
/**
|
|
843
858
|
* List Certificates
|
|
844
859
|
* List all certificates for the organization
|
|
@@ -1442,6 +1457,24 @@ var EnvironmentVariablesPointInTimeService = class {
|
|
|
1442
1457
|
}
|
|
1443
1458
|
});
|
|
1444
1459
|
}
|
|
1460
|
+
/**
|
|
1461
|
+
* Get Environment Variables Diff By Timestamp Range
|
|
1462
|
+
* Compare environment variables between two timestamps
|
|
1463
|
+
* @param requestBody
|
|
1464
|
+
* @returns EnvDiffResponse Environment variables timestamp-range diff retrieved successfully
|
|
1465
|
+
* @throws ApiError
|
|
1466
|
+
*/
|
|
1467
|
+
getEnvDiffByTimestampRange(requestBody) {
|
|
1468
|
+
return this.httpRequest.request({
|
|
1469
|
+
method: "POST",
|
|
1470
|
+
url: "/api/env/diff/timestamp-range",
|
|
1471
|
+
body: requestBody,
|
|
1472
|
+
mediaType: "application/json",
|
|
1473
|
+
errors: {
|
|
1474
|
+
500: `Internal server error`
|
|
1475
|
+
}
|
|
1476
|
+
});
|
|
1477
|
+
}
|
|
1445
1478
|
/**
|
|
1446
1479
|
* Get Variable Timeline
|
|
1447
1480
|
* Get timeline of changes for a specific environment variable
|
|
@@ -2036,6 +2069,24 @@ var OrganizationsService = class {
|
|
|
2036
2069
|
}
|
|
2037
2070
|
});
|
|
2038
2071
|
}
|
|
2072
|
+
/**
|
|
2073
|
+
* Delete Organization
|
|
2074
|
+
* Permanently delete the current organization
|
|
2075
|
+
* @param requestBody
|
|
2076
|
+
* @returns DeleteOrgResponse Organization deleted successfully
|
|
2077
|
+
* @throws ApiError
|
|
2078
|
+
*/
|
|
2079
|
+
deleteOrg(requestBody) {
|
|
2080
|
+
return this.httpRequest.request({
|
|
2081
|
+
method: "DELETE",
|
|
2082
|
+
url: "/api/org",
|
|
2083
|
+
body: requestBody,
|
|
2084
|
+
mediaType: "application/json",
|
|
2085
|
+
errors: {
|
|
2086
|
+
500: `Internal server error`
|
|
2087
|
+
}
|
|
2088
|
+
});
|
|
2089
|
+
}
|
|
2039
2090
|
/**
|
|
2040
2091
|
* Check Slug Availability
|
|
2041
2092
|
* Check if an organization slug is available
|
|
@@ -2584,6 +2635,24 @@ var SecretsPointInTimeService = class {
|
|
|
2584
2635
|
}
|
|
2585
2636
|
});
|
|
2586
2637
|
}
|
|
2638
|
+
/**
|
|
2639
|
+
* Get Secrets Diff By Timestamp Range
|
|
2640
|
+
* Compare secrets between two timestamps
|
|
2641
|
+
* @param requestBody
|
|
2642
|
+
* @returns SecretDiffResponse Secrets timestamp-range diff retrieved successfully
|
|
2643
|
+
* @throws ApiError
|
|
2644
|
+
*/
|
|
2645
|
+
getSecretDiffByTimestampRange(requestBody) {
|
|
2646
|
+
return this.httpRequest.request({
|
|
2647
|
+
method: "POST",
|
|
2648
|
+
url: "/api/secret/diff/timestamp-range",
|
|
2649
|
+
body: requestBody,
|
|
2650
|
+
mediaType: "application/json",
|
|
2651
|
+
errors: {
|
|
2652
|
+
500: `Internal server error`
|
|
2653
|
+
}
|
|
2654
|
+
});
|
|
2655
|
+
}
|
|
2587
2656
|
/**
|
|
2588
2657
|
* Get Secret Variable Timeline
|
|
2589
2658
|
* Get timeline of changes for a specific secret variable
|
|
@@ -3147,7 +3216,7 @@ var EnvSyncAPISDK = class {
|
|
|
3147
3216
|
constructor(config, HttpRequest = FetchHttpRequest) {
|
|
3148
3217
|
this.request = new HttpRequest({
|
|
3149
3218
|
BASE: config?.BASE ?? "http://localhost:4000",
|
|
3150
|
-
VERSION: config?.VERSION ?? "0.7.
|
|
3219
|
+
VERSION: config?.VERSION ?? "0.7.7",
|
|
3151
3220
|
WITH_CREDENTIALS: config?.WITH_CREDENTIALS ?? false,
|
|
3152
3221
|
CREDENTIALS: config?.CREDENTIALS ?? "include",
|
|
3153
3222
|
TOKEN: config?.TOKEN,
|
|
@@ -3185,7 +3254,7 @@ var EnvSyncAPISDK = class {
|
|
|
3185
3254
|
// src/core/OpenAPI.ts
|
|
3186
3255
|
var OpenAPI = {
|
|
3187
3256
|
BASE: "http://localhost:4000",
|
|
3188
|
-
VERSION: "0.7.
|
|
3257
|
+
VERSION: "0.7.7",
|
|
3189
3258
|
WITH_CREDENTIALS: false,
|
|
3190
3259
|
CREDENTIALS: "include",
|
|
3191
3260
|
TOKEN: void 0,
|
|
@@ -3228,6 +3297,35 @@ var CreateWebhookRequest;
|
|
|
3228
3297
|
})(linked_to = CreateWebhookRequest2.linked_to || (CreateWebhookRequest2.linked_to = {}));
|
|
3229
3298
|
})(CreateWebhookRequest || (CreateWebhookRequest = {}));
|
|
3230
3299
|
|
|
3300
|
+
// src/models/EffectiveAccessEntry.ts
|
|
3301
|
+
var EffectiveAccessEntry;
|
|
3302
|
+
((EffectiveAccessEntry2) => {
|
|
3303
|
+
let relation;
|
|
3304
|
+
((relation2) => {
|
|
3305
|
+
relation2["ADMIN"] = "admin";
|
|
3306
|
+
relation2["EDITOR"] = "editor";
|
|
3307
|
+
relation2["VIEWER"] = "viewer";
|
|
3308
|
+
})(relation = EffectiveAccessEntry2.relation || (EffectiveAccessEntry2.relation = {}));
|
|
3309
|
+
let org_relation;
|
|
3310
|
+
((org_relation2) => {
|
|
3311
|
+
org_relation2["ADMIN"] = "admin";
|
|
3312
|
+
org_relation2["EDITOR"] = "editor";
|
|
3313
|
+
org_relation2["VIEWER"] = "viewer";
|
|
3314
|
+
})(org_relation = EffectiveAccessEntry2.org_relation || (EffectiveAccessEntry2.org_relation = {}));
|
|
3315
|
+
let direct_relation;
|
|
3316
|
+
((direct_relation2) => {
|
|
3317
|
+
direct_relation2["ADMIN"] = "admin";
|
|
3318
|
+
direct_relation2["EDITOR"] = "editor";
|
|
3319
|
+
direct_relation2["VIEWER"] = "viewer";
|
|
3320
|
+
})(direct_relation = EffectiveAccessEntry2.direct_relation || (EffectiveAccessEntry2.direct_relation = {}));
|
|
3321
|
+
let team_relation;
|
|
3322
|
+
((team_relation2) => {
|
|
3323
|
+
team_relation2["ADMIN"] = "admin";
|
|
3324
|
+
team_relation2["EDITOR"] = "editor";
|
|
3325
|
+
team_relation2["VIEWER"] = "viewer";
|
|
3326
|
+
})(team_relation = EffectiveAccessEntry2.team_relation || (EffectiveAccessEntry2.team_relation = {}));
|
|
3327
|
+
})(EffectiveAccessEntry || (EffectiveAccessEntry = {}));
|
|
3328
|
+
|
|
3231
3329
|
// src/models/ExportEnvRequest.ts
|
|
3232
3330
|
var ExportEnvRequest;
|
|
3233
3331
|
((ExportEnvRequest2) => {
|
|
@@ -3273,6 +3371,22 @@ var GrantAccessRequest;
|
|
|
3273
3371
|
})(relation = GrantAccessRequest2.relation || (GrantAccessRequest2.relation = {}));
|
|
3274
3372
|
})(GrantAccessRequest || (GrantAccessRequest = {}));
|
|
3275
3373
|
|
|
3374
|
+
// src/models/GrantEntry.ts
|
|
3375
|
+
var GrantEntry;
|
|
3376
|
+
((GrantEntry2) => {
|
|
3377
|
+
let subject_type;
|
|
3378
|
+
((subject_type2) => {
|
|
3379
|
+
subject_type2["USER"] = "user";
|
|
3380
|
+
subject_type2["TEAM"] = "team";
|
|
3381
|
+
})(subject_type = GrantEntry2.subject_type || (GrantEntry2.subject_type = {}));
|
|
3382
|
+
let relation;
|
|
3383
|
+
((relation2) => {
|
|
3384
|
+
relation2["ADMIN"] = "admin";
|
|
3385
|
+
relation2["EDITOR"] = "editor";
|
|
3386
|
+
relation2["VIEWER"] = "viewer";
|
|
3387
|
+
})(relation = GrantEntry2.relation || (GrantEntry2.relation = {}));
|
|
3388
|
+
})(GrantEntry || (GrantEntry = {}));
|
|
3389
|
+
|
|
3276
3390
|
// src/models/RevokeAccessRequest.ts
|
|
3277
3391
|
var RevokeAccessRequest;
|
|
3278
3392
|
((RevokeAccessRequest2) => {
|
|
@@ -3392,6 +3506,7 @@ export {
|
|
|
3392
3506
|
ChangeRequestResponse,
|
|
3393
3507
|
ChangeRequestsService,
|
|
3394
3508
|
CreateWebhookRequest,
|
|
3509
|
+
EffectiveAccessEntry,
|
|
3395
3510
|
EnvSyncAPISDK,
|
|
3396
3511
|
EnvironmentTypesService,
|
|
3397
3512
|
EnvironmentVariablesPointInTimeService,
|
|
@@ -3402,6 +3517,7 @@ export {
|
|
|
3402
3517
|
GenerateGpgKeyRequest,
|
|
3403
3518
|
GpgKeysService,
|
|
3404
3519
|
GrantAccessRequest,
|
|
3520
|
+
GrantEntry,
|
|
3405
3521
|
OnboardingService,
|
|
3406
3522
|
OpenAPI,
|
|
3407
3523
|
OrganizationsService,
|