@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.d.ts
CHANGED
|
@@ -416,7 +416,7 @@ declare class AuthenticationService {
|
|
|
416
416
|
whoami(): CancelablePromise<WhoAmIResponse>;
|
|
417
417
|
}
|
|
418
418
|
|
|
419
|
-
type
|
|
419
|
+
type BaseCertificateResponse = {
|
|
420
420
|
id: string;
|
|
421
421
|
org_id: string;
|
|
422
422
|
serial_hex: string;
|
|
@@ -424,15 +424,19 @@ type CertificateListResponse = Array<{
|
|
|
424
424
|
subject_cn: string;
|
|
425
425
|
subject_email: string | null;
|
|
426
426
|
status: string;
|
|
427
|
-
|
|
428
|
-
not_after: string | null;
|
|
429
|
-
description: string | null;
|
|
427
|
+
description?: string | null;
|
|
430
428
|
metadata?: any | null;
|
|
431
|
-
|
|
429
|
+
cert_pem?: string | null;
|
|
430
|
+
is_system_generated: boolean;
|
|
431
|
+
not_before?: string | null;
|
|
432
|
+
not_after?: string | null;
|
|
433
|
+
revoked_at?: string | null;
|
|
432
434
|
supersedes_certificate_id?: string | null;
|
|
433
435
|
created_at: string;
|
|
434
436
|
updated_at: string;
|
|
435
|
-
}
|
|
437
|
+
};
|
|
438
|
+
|
|
439
|
+
type CertificateListResponse = Array<BaseCertificateResponse>;
|
|
436
440
|
|
|
437
441
|
type CRLResponse = {
|
|
438
442
|
crl_pem: string;
|
|
@@ -447,7 +451,7 @@ type InitOrgCARequest = {
|
|
|
447
451
|
|
|
448
452
|
type IssueMemberCertRequest = {
|
|
449
453
|
member_email: string;
|
|
450
|
-
role
|
|
454
|
+
role?: string;
|
|
451
455
|
description?: string;
|
|
452
456
|
metadata?: Record<string, string>;
|
|
453
457
|
};
|
|
@@ -460,10 +464,41 @@ type MemberCertResponse = {
|
|
|
460
464
|
subject_cn: string;
|
|
461
465
|
subject_email: string | null;
|
|
462
466
|
status: string;
|
|
467
|
+
description?: string | null;
|
|
463
468
|
metadata?: any | null;
|
|
464
|
-
cert_pem
|
|
465
|
-
|
|
469
|
+
cert_pem?: string | null;
|
|
470
|
+
is_system_generated: boolean;
|
|
471
|
+
not_before?: string | null;
|
|
472
|
+
not_after?: string | null;
|
|
473
|
+
revoked_at?: string | null;
|
|
474
|
+
supersedes_certificate_id?: string | null;
|
|
466
475
|
created_at: string;
|
|
476
|
+
updated_at: string;
|
|
477
|
+
key_pem: string;
|
|
478
|
+
};
|
|
479
|
+
|
|
480
|
+
type MyCertificateBundleResponse = {
|
|
481
|
+
root_ca_pem: string;
|
|
482
|
+
member_certificate: {
|
|
483
|
+
id: string;
|
|
484
|
+
org_id: string;
|
|
485
|
+
serial_hex: string;
|
|
486
|
+
cert_type: string;
|
|
487
|
+
subject_cn: string;
|
|
488
|
+
subject_email: string | null;
|
|
489
|
+
status: string;
|
|
490
|
+
description?: string | null;
|
|
491
|
+
metadata?: any | null;
|
|
492
|
+
cert_pem?: string | null;
|
|
493
|
+
is_system_generated: boolean;
|
|
494
|
+
not_before?: string | null;
|
|
495
|
+
not_after?: string | null;
|
|
496
|
+
revoked_at?: string | null;
|
|
497
|
+
supersedes_certificate_id?: string | null;
|
|
498
|
+
created_at: string;
|
|
499
|
+
updated_at: string;
|
|
500
|
+
key_pem: string;
|
|
501
|
+
};
|
|
467
502
|
};
|
|
468
503
|
|
|
469
504
|
type OCSPResponse = {
|
|
@@ -477,9 +512,18 @@ type OrgCAResponse = {
|
|
|
477
512
|
serial_hex: string;
|
|
478
513
|
cert_type: string;
|
|
479
514
|
subject_cn: string;
|
|
515
|
+
subject_email: string | null;
|
|
480
516
|
status: string;
|
|
481
|
-
|
|
517
|
+
description?: string | null;
|
|
518
|
+
metadata?: any | null;
|
|
519
|
+
cert_pem?: string | null;
|
|
520
|
+
is_system_generated: boolean;
|
|
521
|
+
not_before?: string | null;
|
|
522
|
+
not_after?: string | null;
|
|
523
|
+
revoked_at?: string | null;
|
|
524
|
+
supersedes_certificate_id?: string | null;
|
|
482
525
|
created_at: string;
|
|
526
|
+
updated_at: string;
|
|
483
527
|
};
|
|
484
528
|
|
|
485
529
|
type RenewCertRequest = {
|
|
@@ -547,6 +591,13 @@ declare class CertificatesService {
|
|
|
547
591
|
* @throws ApiError
|
|
548
592
|
*/
|
|
549
593
|
getCrl(): CancelablePromise<CRLResponse>;
|
|
594
|
+
/**
|
|
595
|
+
* Get Current User Certificate Bundle
|
|
596
|
+
* Retrieve the current user's active system-generated certificate bundle
|
|
597
|
+
* @returns MyCertificateBundleResponse Certificate bundle retrieved successfully
|
|
598
|
+
* @throws ApiError
|
|
599
|
+
*/
|
|
600
|
+
getMyCertificateBundle(): CancelablePromise<MyCertificateBundleResponse>;
|
|
550
601
|
/**
|
|
551
602
|
* List Certificates
|
|
552
603
|
* List all certificates for the organization
|
|
@@ -1016,6 +1067,8 @@ type EnvHistoryRequest = {
|
|
|
1016
1067
|
env_type_id: string;
|
|
1017
1068
|
page?: number;
|
|
1018
1069
|
per_page?: number;
|
|
1070
|
+
from_created_at?: string;
|
|
1071
|
+
to_created_at?: string;
|
|
1019
1072
|
};
|
|
1020
1073
|
|
|
1021
1074
|
type EnvHistoryResponse = {
|
|
@@ -1028,6 +1081,7 @@ type EnvHistoryResponse = {
|
|
|
1028
1081
|
user_id: string;
|
|
1029
1082
|
created_at: string;
|
|
1030
1083
|
updated_at: string;
|
|
1084
|
+
changes_count: number;
|
|
1031
1085
|
}>;
|
|
1032
1086
|
totalPages: number;
|
|
1033
1087
|
};
|
|
@@ -1045,6 +1099,13 @@ type EnvPitStateResponse = Array<{
|
|
|
1045
1099
|
operation: 'CREATE' | 'UPDATE' | 'DELETE';
|
|
1046
1100
|
}>;
|
|
1047
1101
|
|
|
1102
|
+
type EnvTimestampRangeDiffRequest = {
|
|
1103
|
+
app_id: string;
|
|
1104
|
+
env_type_id: string;
|
|
1105
|
+
from_timestamp: string;
|
|
1106
|
+
to_timestamp: string;
|
|
1107
|
+
};
|
|
1108
|
+
|
|
1048
1109
|
type EnvTimestampRequest = {
|
|
1049
1110
|
app_id: string;
|
|
1050
1111
|
env_type_id: string;
|
|
@@ -1102,6 +1163,14 @@ declare class EnvironmentVariablesPointInTimeService {
|
|
|
1102
1163
|
* @throws ApiError
|
|
1103
1164
|
*/
|
|
1104
1165
|
getEnvDiff(requestBody?: EnvDiffRequest): CancelablePromise<EnvDiffResponse>;
|
|
1166
|
+
/**
|
|
1167
|
+
* Get Environment Variables Diff By Timestamp Range
|
|
1168
|
+
* Compare environment variables between two timestamps
|
|
1169
|
+
* @param requestBody
|
|
1170
|
+
* @returns EnvDiffResponse Environment variables timestamp-range diff retrieved successfully
|
|
1171
|
+
* @throws ApiError
|
|
1172
|
+
*/
|
|
1173
|
+
getEnvDiffByTimestampRange(requestBody?: EnvTimestampRangeDiffRequest): CancelablePromise<EnvDiffResponse>;
|
|
1105
1174
|
/**
|
|
1106
1175
|
* Get Variable Timeline
|
|
1107
1176
|
* Get timeline of changes for a specific environment variable
|
|
@@ -1474,6 +1543,14 @@ type AcceptOrgInviteRequest = {
|
|
|
1474
1543
|
|
|
1475
1544
|
type AcceptOrgInviteResponse = {
|
|
1476
1545
|
message: string;
|
|
1546
|
+
generated_certificate_bundle: {
|
|
1547
|
+
root_ca_pem: string;
|
|
1548
|
+
member_cert_pem: string;
|
|
1549
|
+
member_key_pem: string;
|
|
1550
|
+
member_certificate_id: string;
|
|
1551
|
+
member_serial_hex: string;
|
|
1552
|
+
is_system_generated: boolean;
|
|
1553
|
+
};
|
|
1477
1554
|
};
|
|
1478
1555
|
|
|
1479
1556
|
type AcceptUserInviteRequest = {
|
|
@@ -1483,6 +1560,14 @@ type AcceptUserInviteRequest = {
|
|
|
1483
1560
|
|
|
1484
1561
|
type AcceptUserInviteResponse = {
|
|
1485
1562
|
message: string;
|
|
1563
|
+
generated_certificate_bundle: {
|
|
1564
|
+
root_ca_pem: string;
|
|
1565
|
+
member_cert_pem: string;
|
|
1566
|
+
member_key_pem: string;
|
|
1567
|
+
member_certificate_id: string;
|
|
1568
|
+
member_serial_hex: string;
|
|
1569
|
+
is_system_generated: boolean;
|
|
1570
|
+
};
|
|
1486
1571
|
};
|
|
1487
1572
|
|
|
1488
1573
|
type CreateOrgInviteRequest = {
|
|
@@ -1621,6 +1706,14 @@ type CheckSlugResponse = {
|
|
|
1621
1706
|
exists: boolean;
|
|
1622
1707
|
};
|
|
1623
1708
|
|
|
1709
|
+
type DeleteOrgRequest = {
|
|
1710
|
+
confirm_name: string;
|
|
1711
|
+
};
|
|
1712
|
+
|
|
1713
|
+
type DeleteOrgResponse = {
|
|
1714
|
+
message: string;
|
|
1715
|
+
};
|
|
1716
|
+
|
|
1624
1717
|
type OrgResponse = {
|
|
1625
1718
|
id: string;
|
|
1626
1719
|
name: string;
|
|
@@ -1659,6 +1752,14 @@ declare class OrganizationsService {
|
|
|
1659
1752
|
* @throws ApiError
|
|
1660
1753
|
*/
|
|
1661
1754
|
updateOrg(requestBody?: UpdateOrgRequest): CancelablePromise<OrgResponse>;
|
|
1755
|
+
/**
|
|
1756
|
+
* Delete Organization
|
|
1757
|
+
* Permanently delete the current organization
|
|
1758
|
+
* @param requestBody
|
|
1759
|
+
* @returns DeleteOrgResponse Organization deleted successfully
|
|
1760
|
+
* @throws ApiError
|
|
1761
|
+
*/
|
|
1762
|
+
deleteOrg(requestBody?: DeleteOrgRequest): CancelablePromise<DeleteOrgResponse>;
|
|
1662
1763
|
/**
|
|
1663
1764
|
* Check Slug Availability
|
|
1664
1765
|
* Check if an organization slug is available
|
|
@@ -1669,13 +1770,40 @@ declare class OrganizationsService {
|
|
|
1669
1770
|
checkIfSlugExists(slug: string): CancelablePromise<CheckSlugResponse>;
|
|
1670
1771
|
}
|
|
1671
1772
|
|
|
1672
|
-
type
|
|
1773
|
+
type EffectiveAccessEntry = {
|
|
1673
1774
|
user_id: string;
|
|
1674
1775
|
email: string;
|
|
1675
|
-
relation:
|
|
1676
|
-
|
|
1776
|
+
relation: EffectiveAccessEntry.relation;
|
|
1777
|
+
org_relation: EffectiveAccessEntry.org_relation;
|
|
1778
|
+
direct_relation: EffectiveAccessEntry.direct_relation;
|
|
1779
|
+
team_relation: EffectiveAccessEntry.team_relation;
|
|
1780
|
+
sources: Array<'org' | 'direct' | 'team'>;
|
|
1677
1781
|
teams: Array<string>;
|
|
1678
|
-
}
|
|
1782
|
+
};
|
|
1783
|
+
declare namespace EffectiveAccessEntry {
|
|
1784
|
+
enum relation {
|
|
1785
|
+
ADMIN = "admin",
|
|
1786
|
+
EDITOR = "editor",
|
|
1787
|
+
VIEWER = "viewer"
|
|
1788
|
+
}
|
|
1789
|
+
enum org_relation {
|
|
1790
|
+
ADMIN = "admin",
|
|
1791
|
+
EDITOR = "editor",
|
|
1792
|
+
VIEWER = "viewer"
|
|
1793
|
+
}
|
|
1794
|
+
enum direct_relation {
|
|
1795
|
+
ADMIN = "admin",
|
|
1796
|
+
EDITOR = "editor",
|
|
1797
|
+
VIEWER = "viewer"
|
|
1798
|
+
}
|
|
1799
|
+
enum team_relation {
|
|
1800
|
+
ADMIN = "admin",
|
|
1801
|
+
EDITOR = "editor",
|
|
1802
|
+
VIEWER = "viewer"
|
|
1803
|
+
}
|
|
1804
|
+
}
|
|
1805
|
+
|
|
1806
|
+
type EffectiveAccessResponse = Array<EffectiveAccessEntry>;
|
|
1679
1807
|
|
|
1680
1808
|
type EffectivePermissionsResponse = {
|
|
1681
1809
|
can_view: boolean;
|
|
@@ -1712,11 +1840,24 @@ declare namespace GrantAccessRequest {
|
|
|
1712
1840
|
}
|
|
1713
1841
|
}
|
|
1714
1842
|
|
|
1715
|
-
type
|
|
1843
|
+
type GrantEntry = {
|
|
1716
1844
|
subject_id: string;
|
|
1717
|
-
subject_type:
|
|
1718
|
-
relation:
|
|
1719
|
-
}
|
|
1845
|
+
subject_type: GrantEntry.subject_type;
|
|
1846
|
+
relation: GrantEntry.relation;
|
|
1847
|
+
};
|
|
1848
|
+
declare namespace GrantEntry {
|
|
1849
|
+
enum subject_type {
|
|
1850
|
+
USER = "user",
|
|
1851
|
+
TEAM = "team"
|
|
1852
|
+
}
|
|
1853
|
+
enum relation {
|
|
1854
|
+
ADMIN = "admin",
|
|
1855
|
+
EDITOR = "editor",
|
|
1856
|
+
VIEWER = "viewer"
|
|
1857
|
+
}
|
|
1858
|
+
}
|
|
1859
|
+
|
|
1860
|
+
type GrantsListResponse = Array<GrantEntry>;
|
|
1720
1861
|
|
|
1721
1862
|
type PermissionMessageResponse = {
|
|
1722
1863
|
message: string;
|
|
@@ -2076,6 +2217,8 @@ type SecretHistoryRequest = {
|
|
|
2076
2217
|
env_type_id: string;
|
|
2077
2218
|
page?: number;
|
|
2078
2219
|
per_page?: number;
|
|
2220
|
+
from_created_at?: string;
|
|
2221
|
+
to_created_at?: string;
|
|
2079
2222
|
};
|
|
2080
2223
|
|
|
2081
2224
|
type SecretHistoryResponse = {
|
|
@@ -2088,6 +2231,7 @@ type SecretHistoryResponse = {
|
|
|
2088
2231
|
user_id: string;
|
|
2089
2232
|
created_at: string;
|
|
2090
2233
|
updated_at: string;
|
|
2234
|
+
changes_count: number;
|
|
2091
2235
|
}>;
|
|
2092
2236
|
totalPages: number;
|
|
2093
2237
|
};
|
|
@@ -2102,8 +2246,16 @@ type SecretPitStateResponse = Array<{
|
|
|
2102
2246
|
key: string;
|
|
2103
2247
|
value: string;
|
|
2104
2248
|
last_updated: string;
|
|
2249
|
+
operation: 'CREATE' | 'UPDATE' | 'DELETE';
|
|
2105
2250
|
}>;
|
|
2106
2251
|
|
|
2252
|
+
type SecretTimestampRangeDiffRequest = {
|
|
2253
|
+
app_id: string;
|
|
2254
|
+
env_type_id: string;
|
|
2255
|
+
from_timestamp: string;
|
|
2256
|
+
to_timestamp: string;
|
|
2257
|
+
};
|
|
2258
|
+
|
|
2107
2259
|
type SecretTimestampRequest = {
|
|
2108
2260
|
app_id: string;
|
|
2109
2261
|
env_type_id: string;
|
|
@@ -2161,6 +2313,14 @@ declare class SecretsPointInTimeService {
|
|
|
2161
2313
|
* @throws ApiError
|
|
2162
2314
|
*/
|
|
2163
2315
|
getSecretDiff(requestBody?: SecretDiffRequest): CancelablePromise<SecretDiffResponse>;
|
|
2316
|
+
/**
|
|
2317
|
+
* Get Secrets Diff By Timestamp Range
|
|
2318
|
+
* Compare secrets between two timestamps
|
|
2319
|
+
* @param requestBody
|
|
2320
|
+
* @returns SecretDiffResponse Secrets timestamp-range diff retrieved successfully
|
|
2321
|
+
* @throws ApiError
|
|
2322
|
+
*/
|
|
2323
|
+
getSecretDiffByTimestampRange(requestBody?: SecretTimestampRangeDiffRequest): CancelablePromise<SecretDiffResponse>;
|
|
2164
2324
|
/**
|
|
2165
2325
|
* Get Secret Variable Timeline
|
|
2166
2326
|
* Get timeline of changes for a specific secret variable
|
|
@@ -2663,4 +2823,4 @@ type UploadFileError = {
|
|
|
2663
2823
|
error: string;
|
|
2664
2824
|
};
|
|
2665
2825
|
|
|
2666
|
-
export { type AcceptOrgInviteRequest, type AcceptOrgInviteResponse, type AcceptUserInviteRequest, type AcceptUserInviteResponse, AccessService, type AddTeamMemberRequest, ApiError, type ApiKeyResponse, type ApiKeysResponse, ApiKeysService, ApplicationsService, type AssignTeamRoleRequest, AuditLogsService, AuthenticationService, BaseHttpRequest, type BatchCreateEnvsRequest, type BatchCreateSecretsRequest, type BatchDeleteEnvsRequest, type BatchDeleteSecretsRequest, type BatchEnvsResponse, type BatchSecretsResponse, type CRLResponse, type CallbackResponse, CancelError, CancelablePromise, type CertificateListResponse, CertificatesService, type ChangeRequestListResponse, ChangeRequestResponse, ChangeRequestsService, type CheckSlugResponse, type CreateApiKeyRequest, type CreateAppRequest, type CreateAppResponse, type CreateEnvRequest, type CreateEnvTypeRequest, type CreateOrgInviteRequest, type CreateOrgInviteResponse, type CreateRoleRequest, type CreateSecretRequest, type CreateTeamRequest, type CreateTeamResponse, type CreateUserInviteRequest, type CreateUserInviteResponse, CreateWebhookRequest, type DeleteAppResponse, type DeleteEnvRequest, type DeleteEnvTypeRequest, type DeleteSecretRequest, type DeleteUserInviteResponse, type DirectChangeRequestBody, type EffectiveAccessResponse, type EffectivePermissionsResponse, type EnvDiffRequest, type EnvDiffResponse, type EnvHistoryRequest, type EnvHistoryResponse, type EnvPitRequest, type EnvPitStateResponse, type EnvResponse, EnvSyncAPISDK, type EnvTimestampRequest, type EnvTypeResponse, type EnvTypesResponse, EnvironmentTypesService, EnvironmentVariablesPointInTimeService, EnvironmentVariablesRollbackService, EnvironmentVariablesService, type EnvsResponse, type ErrorResponse, ExportEnvRequest, type ExportEnvResponse, type ExportKeyResponse, type ExtendGpgKeyExpiryRequest, FileUploadService, GenerateGpgKeyRequest, type GetAppResponse, type GetAppsResponse, type GetAuditLogsResponse, type GetAuditLogsResponseWrapper, type GetEnvRequest, type GetOrgInviteByCodeResponse, type GetSecretRequest, type GetTeamResponse, type GetTeamsResponse, type GetUserInviteByTokenResponse, type GpgKeyDetailResponse, type GpgKeyResponse, type GpgKeysResponse, GpgKeysService, GrantAccessRequest, type GrantsListResponse, type ImportGpgKeyRequest, type InitOrgCARequest, type IssueMemberCertRequest, type LoginUrlResponse, type LogoutUrlResponse, type MemberCertResponse, type OCSPResponse, OnboardingService, OpenAPI, type OpenAPIConfig, type OrgCAResponse, type OrgResponse, OrganizationsService, type PermissionMessageResponse, PermissionsService, type PromotionChangeRequestBody, type RegenerateApiKeyResponse, type RejectChangeRequestBody, type RenewCertRequest, type RevealSecretsRequest, type RevealSecretsResponse, RevokeAccessRequest, type RevokeCertRequest, type RevokeCertResponse, type RevokeGpgKeyRequest, type RoleResponse, type RoleStatsResponse, type RolesResponse, RolesService, type RollbackResponse, type RollbackSecretsResponse, type RollbackSecretsToPitRequest, type RollbackSecretsToTimestampRequest, type RollbackToPitRequest, type RollbackToTimestampRequest, type RootCAResponse, type RotateCertRequest, RotateGpgKeyRequest, type SecretDiffRequest, type SecretDiffResponse, type SecretHistoryRequest, type SecretHistoryResponse, type SecretPitRequest, type SecretPitStateResponse, type SecretResponse, type SecretTimestampRequest, SecretVariableRollbackResponse, type SecretVariableRollbackToPitRequest, type SecretVariableRollbackToTimestampRequest, type SecretVariableTimelineRequest, type SecretVariableTimelineResponse, SecretsPointInTimeService, type SecretsResponse, SecretsRollbackService, SecretsService, SignDataRequest, type SignatureResponse, type TeamMessageResponse, TeamsService, type UpdateApiKeyRequest, type UpdateAppRequest, type UpdateAppResponse, type UpdateEnvRequest, type UpdateEnvTypeRequest, type UpdateOrgRequest, type UpdateRoleRequest, type UpdateSecretRequest, type UpdateTeamRequest, UpdateTrustLevelRequest, type UpdateUserInviteRequest, type UpdateUserInviteResponse, type UpdateUserRequest, UpdateWebhookRequest, type UploadFileError, type UploadFileResponse, type UserResponse, type UsersResponse, UsersService, VariableRollbackResponse, type VariableRollbackToPitRequest, type VariableRollbackToTimestampRequest, type VariableTimelineRequest, type VariableTimelineResponse, type VerifyResponse, type VerifySignatureRequest, WebhookResponse, type WebhooksResponse, WebhooksService, type WhoAmIResponse };
|
|
2826
|
+
export { type AcceptOrgInviteRequest, type AcceptOrgInviteResponse, type AcceptUserInviteRequest, type AcceptUserInviteResponse, AccessService, type AddTeamMemberRequest, ApiError, type ApiKeyResponse, type ApiKeysResponse, ApiKeysService, ApplicationsService, type AssignTeamRoleRequest, AuditLogsService, AuthenticationService, type BaseCertificateResponse, BaseHttpRequest, type BatchCreateEnvsRequest, type BatchCreateSecretsRequest, type BatchDeleteEnvsRequest, type BatchDeleteSecretsRequest, type BatchEnvsResponse, type BatchSecretsResponse, type CRLResponse, type CallbackResponse, CancelError, CancelablePromise, type CertificateListResponse, CertificatesService, type ChangeRequestListResponse, ChangeRequestResponse, ChangeRequestsService, type CheckSlugResponse, type CreateApiKeyRequest, type CreateAppRequest, type CreateAppResponse, type CreateEnvRequest, type CreateEnvTypeRequest, type CreateOrgInviteRequest, type CreateOrgInviteResponse, type CreateRoleRequest, type CreateSecretRequest, type CreateTeamRequest, type CreateTeamResponse, type CreateUserInviteRequest, type CreateUserInviteResponse, CreateWebhookRequest, type DeleteAppResponse, type DeleteEnvRequest, type DeleteEnvTypeRequest, type DeleteOrgRequest, type DeleteOrgResponse, type DeleteSecretRequest, type DeleteUserInviteResponse, type DirectChangeRequestBody, EffectiveAccessEntry, type EffectiveAccessResponse, type EffectivePermissionsResponse, type EnvDiffRequest, type EnvDiffResponse, type EnvHistoryRequest, type EnvHistoryResponse, type EnvPitRequest, type EnvPitStateResponse, type EnvResponse, EnvSyncAPISDK, type EnvTimestampRangeDiffRequest, type EnvTimestampRequest, type EnvTypeResponse, type EnvTypesResponse, EnvironmentTypesService, EnvironmentVariablesPointInTimeService, EnvironmentVariablesRollbackService, EnvironmentVariablesService, type EnvsResponse, type ErrorResponse, ExportEnvRequest, type ExportEnvResponse, type ExportKeyResponse, type ExtendGpgKeyExpiryRequest, FileUploadService, GenerateGpgKeyRequest, type GetAppResponse, type GetAppsResponse, type GetAuditLogsResponse, type GetAuditLogsResponseWrapper, type GetEnvRequest, type GetOrgInviteByCodeResponse, type GetSecretRequest, type GetTeamResponse, type GetTeamsResponse, type GetUserInviteByTokenResponse, type GpgKeyDetailResponse, type GpgKeyResponse, type GpgKeysResponse, GpgKeysService, GrantAccessRequest, GrantEntry, type GrantsListResponse, type ImportGpgKeyRequest, type InitOrgCARequest, type IssueMemberCertRequest, type LoginUrlResponse, type LogoutUrlResponse, type MemberCertResponse, type MyCertificateBundleResponse, type OCSPResponse, OnboardingService, OpenAPI, type OpenAPIConfig, type OrgCAResponse, type OrgResponse, OrganizationsService, type PermissionMessageResponse, PermissionsService, type PromotionChangeRequestBody, type RegenerateApiKeyResponse, type RejectChangeRequestBody, type RenewCertRequest, type RevealSecretsRequest, type RevealSecretsResponse, RevokeAccessRequest, type RevokeCertRequest, type RevokeCertResponse, type RevokeGpgKeyRequest, type RoleResponse, type RoleStatsResponse, type RolesResponse, RolesService, type RollbackResponse, type RollbackSecretsResponse, type RollbackSecretsToPitRequest, type RollbackSecretsToTimestampRequest, type RollbackToPitRequest, type RollbackToTimestampRequest, type RootCAResponse, type RotateCertRequest, RotateGpgKeyRequest, type SecretDiffRequest, type SecretDiffResponse, type SecretHistoryRequest, type SecretHistoryResponse, type SecretPitRequest, type SecretPitStateResponse, type SecretResponse, type SecretTimestampRangeDiffRequest, type SecretTimestampRequest, SecretVariableRollbackResponse, type SecretVariableRollbackToPitRequest, type SecretVariableRollbackToTimestampRequest, type SecretVariableTimelineRequest, type SecretVariableTimelineResponse, SecretsPointInTimeService, type SecretsResponse, SecretsRollbackService, SecretsService, SignDataRequest, type SignatureResponse, type TeamMessageResponse, TeamsService, type UpdateApiKeyRequest, type UpdateAppRequest, type UpdateAppResponse, type UpdateEnvRequest, type UpdateEnvTypeRequest, type UpdateOrgRequest, type UpdateRoleRequest, type UpdateSecretRequest, type UpdateTeamRequest, UpdateTrustLevelRequest, type UpdateUserInviteRequest, type UpdateUserInviteResponse, type UpdateUserRequest, UpdateWebhookRequest, type UploadFileError, type UploadFileResponse, type UserResponse, type UsersResponse, UsersService, VariableRollbackResponse, type VariableRollbackToPitRequest, type VariableRollbackToTimestampRequest, type VariableTimelineRequest, type VariableTimelineResponse, type VerifyResponse, type VerifySignatureRequest, WebhookResponse, type WebhooksResponse, WebhooksService, type WhoAmIResponse };
|
package/dist/index.js
CHANGED
|
@@ -33,6 +33,7 @@ __export(src_exports, {
|
|
|
33
33
|
ChangeRequestResponse: () => ChangeRequestResponse,
|
|
34
34
|
ChangeRequestsService: () => ChangeRequestsService,
|
|
35
35
|
CreateWebhookRequest: () => CreateWebhookRequest,
|
|
36
|
+
EffectiveAccessEntry: () => EffectiveAccessEntry,
|
|
36
37
|
EnvSyncAPISDK: () => EnvSyncAPISDK,
|
|
37
38
|
EnvironmentTypesService: () => EnvironmentTypesService,
|
|
38
39
|
EnvironmentVariablesPointInTimeService: () => EnvironmentVariablesPointInTimeService,
|
|
@@ -43,6 +44,7 @@ __export(src_exports, {
|
|
|
43
44
|
GenerateGpgKeyRequest: () => GenerateGpgKeyRequest,
|
|
44
45
|
GpgKeysService: () => GpgKeysService,
|
|
45
46
|
GrantAccessRequest: () => GrantAccessRequest,
|
|
47
|
+
GrantEntry: () => GrantEntry,
|
|
46
48
|
OnboardingService: () => OnboardingService,
|
|
47
49
|
OpenAPI: () => OpenAPI,
|
|
48
50
|
OrganizationsService: () => OrganizationsService,
|
|
@@ -906,6 +908,21 @@ var CertificatesService = class {
|
|
|
906
908
|
}
|
|
907
909
|
});
|
|
908
910
|
}
|
|
911
|
+
/**
|
|
912
|
+
* Get Current User Certificate Bundle
|
|
913
|
+
* Retrieve the current user's active system-generated certificate bundle
|
|
914
|
+
* @returns MyCertificateBundleResponse Certificate bundle retrieved successfully
|
|
915
|
+
* @throws ApiError
|
|
916
|
+
*/
|
|
917
|
+
getMyCertificateBundle() {
|
|
918
|
+
return this.httpRequest.request({
|
|
919
|
+
method: "GET",
|
|
920
|
+
url: "/api/certificate/me",
|
|
921
|
+
errors: {
|
|
922
|
+
404: `Certificate bundle not found`
|
|
923
|
+
}
|
|
924
|
+
});
|
|
925
|
+
}
|
|
909
926
|
/**
|
|
910
927
|
* List Certificates
|
|
911
928
|
* List all certificates for the organization
|
|
@@ -1509,6 +1526,24 @@ var EnvironmentVariablesPointInTimeService = class {
|
|
|
1509
1526
|
}
|
|
1510
1527
|
});
|
|
1511
1528
|
}
|
|
1529
|
+
/**
|
|
1530
|
+
* Get Environment Variables Diff By Timestamp Range
|
|
1531
|
+
* Compare environment variables between two timestamps
|
|
1532
|
+
* @param requestBody
|
|
1533
|
+
* @returns EnvDiffResponse Environment variables timestamp-range diff retrieved successfully
|
|
1534
|
+
* @throws ApiError
|
|
1535
|
+
*/
|
|
1536
|
+
getEnvDiffByTimestampRange(requestBody) {
|
|
1537
|
+
return this.httpRequest.request({
|
|
1538
|
+
method: "POST",
|
|
1539
|
+
url: "/api/env/diff/timestamp-range",
|
|
1540
|
+
body: requestBody,
|
|
1541
|
+
mediaType: "application/json",
|
|
1542
|
+
errors: {
|
|
1543
|
+
500: `Internal server error`
|
|
1544
|
+
}
|
|
1545
|
+
});
|
|
1546
|
+
}
|
|
1512
1547
|
/**
|
|
1513
1548
|
* Get Variable Timeline
|
|
1514
1549
|
* Get timeline of changes for a specific environment variable
|
|
@@ -2103,6 +2138,24 @@ var OrganizationsService = class {
|
|
|
2103
2138
|
}
|
|
2104
2139
|
});
|
|
2105
2140
|
}
|
|
2141
|
+
/**
|
|
2142
|
+
* Delete Organization
|
|
2143
|
+
* Permanently delete the current organization
|
|
2144
|
+
* @param requestBody
|
|
2145
|
+
* @returns DeleteOrgResponse Organization deleted successfully
|
|
2146
|
+
* @throws ApiError
|
|
2147
|
+
*/
|
|
2148
|
+
deleteOrg(requestBody) {
|
|
2149
|
+
return this.httpRequest.request({
|
|
2150
|
+
method: "DELETE",
|
|
2151
|
+
url: "/api/org",
|
|
2152
|
+
body: requestBody,
|
|
2153
|
+
mediaType: "application/json",
|
|
2154
|
+
errors: {
|
|
2155
|
+
500: `Internal server error`
|
|
2156
|
+
}
|
|
2157
|
+
});
|
|
2158
|
+
}
|
|
2106
2159
|
/**
|
|
2107
2160
|
* Check Slug Availability
|
|
2108
2161
|
* Check if an organization slug is available
|
|
@@ -2651,6 +2704,24 @@ var SecretsPointInTimeService = class {
|
|
|
2651
2704
|
}
|
|
2652
2705
|
});
|
|
2653
2706
|
}
|
|
2707
|
+
/**
|
|
2708
|
+
* Get Secrets Diff By Timestamp Range
|
|
2709
|
+
* Compare secrets between two timestamps
|
|
2710
|
+
* @param requestBody
|
|
2711
|
+
* @returns SecretDiffResponse Secrets timestamp-range diff retrieved successfully
|
|
2712
|
+
* @throws ApiError
|
|
2713
|
+
*/
|
|
2714
|
+
getSecretDiffByTimestampRange(requestBody) {
|
|
2715
|
+
return this.httpRequest.request({
|
|
2716
|
+
method: "POST",
|
|
2717
|
+
url: "/api/secret/diff/timestamp-range",
|
|
2718
|
+
body: requestBody,
|
|
2719
|
+
mediaType: "application/json",
|
|
2720
|
+
errors: {
|
|
2721
|
+
500: `Internal server error`
|
|
2722
|
+
}
|
|
2723
|
+
});
|
|
2724
|
+
}
|
|
2654
2725
|
/**
|
|
2655
2726
|
* Get Secret Variable Timeline
|
|
2656
2727
|
* Get timeline of changes for a specific secret variable
|
|
@@ -3214,7 +3285,7 @@ var EnvSyncAPISDK = class {
|
|
|
3214
3285
|
constructor(config, HttpRequest = FetchHttpRequest) {
|
|
3215
3286
|
this.request = new HttpRequest({
|
|
3216
3287
|
BASE: config?.BASE ?? "http://localhost:4000",
|
|
3217
|
-
VERSION: config?.VERSION ?? "0.7.
|
|
3288
|
+
VERSION: config?.VERSION ?? "0.7.7",
|
|
3218
3289
|
WITH_CREDENTIALS: config?.WITH_CREDENTIALS ?? false,
|
|
3219
3290
|
CREDENTIALS: config?.CREDENTIALS ?? "include",
|
|
3220
3291
|
TOKEN: config?.TOKEN,
|
|
@@ -3252,7 +3323,7 @@ var EnvSyncAPISDK = class {
|
|
|
3252
3323
|
// src/core/OpenAPI.ts
|
|
3253
3324
|
var OpenAPI = {
|
|
3254
3325
|
BASE: "http://localhost:4000",
|
|
3255
|
-
VERSION: "0.7.
|
|
3326
|
+
VERSION: "0.7.7",
|
|
3256
3327
|
WITH_CREDENTIALS: false,
|
|
3257
3328
|
CREDENTIALS: "include",
|
|
3258
3329
|
TOKEN: void 0,
|
|
@@ -3295,6 +3366,35 @@ var CreateWebhookRequest;
|
|
|
3295
3366
|
})(linked_to = CreateWebhookRequest2.linked_to || (CreateWebhookRequest2.linked_to = {}));
|
|
3296
3367
|
})(CreateWebhookRequest || (CreateWebhookRequest = {}));
|
|
3297
3368
|
|
|
3369
|
+
// src/models/EffectiveAccessEntry.ts
|
|
3370
|
+
var EffectiveAccessEntry;
|
|
3371
|
+
((EffectiveAccessEntry2) => {
|
|
3372
|
+
let relation;
|
|
3373
|
+
((relation2) => {
|
|
3374
|
+
relation2["ADMIN"] = "admin";
|
|
3375
|
+
relation2["EDITOR"] = "editor";
|
|
3376
|
+
relation2["VIEWER"] = "viewer";
|
|
3377
|
+
})(relation = EffectiveAccessEntry2.relation || (EffectiveAccessEntry2.relation = {}));
|
|
3378
|
+
let org_relation;
|
|
3379
|
+
((org_relation2) => {
|
|
3380
|
+
org_relation2["ADMIN"] = "admin";
|
|
3381
|
+
org_relation2["EDITOR"] = "editor";
|
|
3382
|
+
org_relation2["VIEWER"] = "viewer";
|
|
3383
|
+
})(org_relation = EffectiveAccessEntry2.org_relation || (EffectiveAccessEntry2.org_relation = {}));
|
|
3384
|
+
let direct_relation;
|
|
3385
|
+
((direct_relation2) => {
|
|
3386
|
+
direct_relation2["ADMIN"] = "admin";
|
|
3387
|
+
direct_relation2["EDITOR"] = "editor";
|
|
3388
|
+
direct_relation2["VIEWER"] = "viewer";
|
|
3389
|
+
})(direct_relation = EffectiveAccessEntry2.direct_relation || (EffectiveAccessEntry2.direct_relation = {}));
|
|
3390
|
+
let team_relation;
|
|
3391
|
+
((team_relation2) => {
|
|
3392
|
+
team_relation2["ADMIN"] = "admin";
|
|
3393
|
+
team_relation2["EDITOR"] = "editor";
|
|
3394
|
+
team_relation2["VIEWER"] = "viewer";
|
|
3395
|
+
})(team_relation = EffectiveAccessEntry2.team_relation || (EffectiveAccessEntry2.team_relation = {}));
|
|
3396
|
+
})(EffectiveAccessEntry || (EffectiveAccessEntry = {}));
|
|
3397
|
+
|
|
3298
3398
|
// src/models/ExportEnvRequest.ts
|
|
3299
3399
|
var ExportEnvRequest;
|
|
3300
3400
|
((ExportEnvRequest2) => {
|
|
@@ -3340,6 +3440,22 @@ var GrantAccessRequest;
|
|
|
3340
3440
|
})(relation = GrantAccessRequest2.relation || (GrantAccessRequest2.relation = {}));
|
|
3341
3441
|
})(GrantAccessRequest || (GrantAccessRequest = {}));
|
|
3342
3442
|
|
|
3443
|
+
// src/models/GrantEntry.ts
|
|
3444
|
+
var GrantEntry;
|
|
3445
|
+
((GrantEntry2) => {
|
|
3446
|
+
let subject_type;
|
|
3447
|
+
((subject_type2) => {
|
|
3448
|
+
subject_type2["USER"] = "user";
|
|
3449
|
+
subject_type2["TEAM"] = "team";
|
|
3450
|
+
})(subject_type = GrantEntry2.subject_type || (GrantEntry2.subject_type = {}));
|
|
3451
|
+
let relation;
|
|
3452
|
+
((relation2) => {
|
|
3453
|
+
relation2["ADMIN"] = "admin";
|
|
3454
|
+
relation2["EDITOR"] = "editor";
|
|
3455
|
+
relation2["VIEWER"] = "viewer";
|
|
3456
|
+
})(relation = GrantEntry2.relation || (GrantEntry2.relation = {}));
|
|
3457
|
+
})(GrantEntry || (GrantEntry = {}));
|
|
3458
|
+
|
|
3343
3459
|
// src/models/RevokeAccessRequest.ts
|
|
3344
3460
|
var RevokeAccessRequest;
|
|
3345
3461
|
((RevokeAccessRequest2) => {
|
|
@@ -3460,6 +3576,7 @@ var WebhookResponse;
|
|
|
3460
3576
|
ChangeRequestResponse,
|
|
3461
3577
|
ChangeRequestsService,
|
|
3462
3578
|
CreateWebhookRequest,
|
|
3579
|
+
EffectiveAccessEntry,
|
|
3463
3580
|
EnvSyncAPISDK,
|
|
3464
3581
|
EnvironmentTypesService,
|
|
3465
3582
|
EnvironmentVariablesPointInTimeService,
|
|
@@ -3470,6 +3587,7 @@ var WebhookResponse;
|
|
|
3470
3587
|
GenerateGpgKeyRequest,
|
|
3471
3588
|
GpgKeysService,
|
|
3472
3589
|
GrantAccessRequest,
|
|
3590
|
+
GrantEntry,
|
|
3473
3591
|
OnboardingService,
|
|
3474
3592
|
OpenAPI,
|
|
3475
3593
|
OrganizationsService,
|