@envsync-cloud/envsync-ts-sdk 0.2.6 → 0.3.0

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 CHANGED
@@ -476,6 +476,16 @@ type BatchCreateEnvsRequest = {
476
476
  }>;
477
477
  };
478
478
 
479
+ type BatchDeleteEnvsRequest = {
480
+ app_id: string;
481
+ env_type_id: string;
482
+ keys: Array<string>;
483
+ };
484
+
485
+ type BatchEnvsResponse = {
486
+ message: string;
487
+ };
488
+
479
489
  type CreateEnvRequest = {
480
490
  key: string;
481
491
  value: string;
@@ -553,18 +563,26 @@ declare class EnvironmentVariablesService {
553
563
  * Batch Create Environment Variables
554
564
  * Create multiple environment variables in a single request
555
565
  * @param requestBody
556
- * @returns EnvsResponse Environment variables created successfully
566
+ * @returns BatchEnvsResponse Environment variables created successfully
557
567
  * @throws ApiError
558
568
  */
559
- batchCreateEnvs(requestBody?: BatchCreateEnvsRequest): CancelablePromise<EnvsResponse>;
569
+ batchCreateEnvs(requestBody?: BatchCreateEnvsRequest): CancelablePromise<BatchEnvsResponse>;
560
570
  /**
561
571
  * Batch Update Environment Variables
562
572
  * Update multiple environment variables in a single request
563
573
  * @param requestBody
564
- * @returns EnvsResponse Environment variables updated successfully
574
+ * @returns BatchEnvsResponse Environment variables updated successfully
575
+ * @throws ApiError
576
+ */
577
+ batchUpdateEnvs(requestBody?: BatchCreateEnvsRequest): CancelablePromise<BatchEnvsResponse>;
578
+ /**
579
+ * Batch Delete Environment Variables
580
+ * Delete multiple environment variables in a single request
581
+ * @param requestBody
582
+ * @returns BatchEnvsResponse Environment variables deleted successfully
565
583
  * @throws ApiError
566
584
  */
567
- batchUpdateEnvs(requestBody?: BatchCreateEnvsRequest): CancelablePromise<EnvsResponse>;
585
+ deleteBatchEnv(requestBody?: BatchDeleteEnvsRequest): CancelablePromise<BatchEnvsResponse>;
568
586
  /**
569
587
  * Update Environment Variable
570
588
  * Update an existing environment variable
@@ -1002,4 +1020,4 @@ type UploadFileError = {
1002
1020
  error: string;
1003
1021
  };
1004
1022
 
1005
- export { type AcceptOrgInviteRequest, type AcceptOrgInviteResponse, type AcceptUserInviteRequest, type AcceptUserInviteResponse, AccessService, ApiError, type ApiKeyResponse, type ApiKeysResponse, ApiKeysService, ApplicationsService, AuditLogsService, AuthenticationService, BaseHttpRequest, type BatchCreateEnvsRequest, type CallbackResponse, CancelError, CancelablePromise, type CheckSlugResponse, type CreateApiKeyRequest, type CreateAppRequest, type CreateAppResponse, type CreateEnvRequest, type CreateEnvTypeRequest, type CreateOrgInviteRequest, type CreateOrgInviteResponse, type CreateRoleRequest, type CreateUserInviteRequest, type CreateUserInviteResponse, type DeleteAppResponse, type DeleteEnvRequest, type DeleteEnvTypeRequest, type DeleteUserInviteResponse, type EnvResponse, EnvSyncAPISDK, type EnvTypeResponse, type EnvTypesResponse, EnvironmentTypesService, EnvironmentVariablesService, type EnvsResponse, type ErrorResponse, FileUploadService, type GetAppResponse, type GetAppsResponse, type GetAuditLogsResponse, type GetAuditLogsResponseWrapper, type GetEnvRequest, type GetOrgInviteByCodeResponse, type GetUserInviteByTokenResponse, type LoginUrlResponse, OnboardingService, OpenAPI, type OpenAPIConfig, type OrgResponse, OrganizationsService, type RegenerateApiKeyResponse, type RoleResponse, type RoleStatsResponse, type RolesResponse, RolesService, type UpdateApiKeyRequest, type UpdateAppRequest, type UpdateAppResponse, type UpdateEnvRequest, type UpdateEnvTypeRequest, type UpdateOrgRequest, type UpdateRoleRequest, type UpdateUserInviteRequest, type UpdateUserInviteResponse, type UpdateUserRequest, type UploadFileError, type UploadFileResponse, type UserResponse, type UsersResponse, UsersService, type WhoAmIResponse };
1023
+ export { type AcceptOrgInviteRequest, type AcceptOrgInviteResponse, type AcceptUserInviteRequest, type AcceptUserInviteResponse, AccessService, ApiError, type ApiKeyResponse, type ApiKeysResponse, ApiKeysService, ApplicationsService, AuditLogsService, AuthenticationService, BaseHttpRequest, type BatchCreateEnvsRequest, type BatchDeleteEnvsRequest, type BatchEnvsResponse, type CallbackResponse, CancelError, CancelablePromise, type CheckSlugResponse, type CreateApiKeyRequest, type CreateAppRequest, type CreateAppResponse, type CreateEnvRequest, type CreateEnvTypeRequest, type CreateOrgInviteRequest, type CreateOrgInviteResponse, type CreateRoleRequest, type CreateUserInviteRequest, type CreateUserInviteResponse, type DeleteAppResponse, type DeleteEnvRequest, type DeleteEnvTypeRequest, type DeleteUserInviteResponse, type EnvResponse, EnvSyncAPISDK, type EnvTypeResponse, type EnvTypesResponse, EnvironmentTypesService, EnvironmentVariablesService, type EnvsResponse, type ErrorResponse, FileUploadService, type GetAppResponse, type GetAppsResponse, type GetAuditLogsResponse, type GetAuditLogsResponseWrapper, type GetEnvRequest, type GetOrgInviteByCodeResponse, type GetUserInviteByTokenResponse, type LoginUrlResponse, OnboardingService, OpenAPI, type OpenAPIConfig, type OrgResponse, OrganizationsService, type RegenerateApiKeyResponse, type RoleResponse, type RoleStatsResponse, type RolesResponse, RolesService, type UpdateApiKeyRequest, type UpdateAppRequest, type UpdateAppResponse, type UpdateEnvRequest, type UpdateEnvTypeRequest, type UpdateOrgRequest, type UpdateRoleRequest, type UpdateUserInviteRequest, type UpdateUserInviteResponse, type UpdateUserRequest, type UploadFileError, type UploadFileResponse, type UserResponse, type UsersResponse, UsersService, type WhoAmIResponse };
package/dist/index.d.ts CHANGED
@@ -476,6 +476,16 @@ type BatchCreateEnvsRequest = {
476
476
  }>;
477
477
  };
478
478
 
479
+ type BatchDeleteEnvsRequest = {
480
+ app_id: string;
481
+ env_type_id: string;
482
+ keys: Array<string>;
483
+ };
484
+
485
+ type BatchEnvsResponse = {
486
+ message: string;
487
+ };
488
+
479
489
  type CreateEnvRequest = {
480
490
  key: string;
481
491
  value: string;
@@ -553,18 +563,26 @@ declare class EnvironmentVariablesService {
553
563
  * Batch Create Environment Variables
554
564
  * Create multiple environment variables in a single request
555
565
  * @param requestBody
556
- * @returns EnvsResponse Environment variables created successfully
566
+ * @returns BatchEnvsResponse Environment variables created successfully
557
567
  * @throws ApiError
558
568
  */
559
- batchCreateEnvs(requestBody?: BatchCreateEnvsRequest): CancelablePromise<EnvsResponse>;
569
+ batchCreateEnvs(requestBody?: BatchCreateEnvsRequest): CancelablePromise<BatchEnvsResponse>;
560
570
  /**
561
571
  * Batch Update Environment Variables
562
572
  * Update multiple environment variables in a single request
563
573
  * @param requestBody
564
- * @returns EnvsResponse Environment variables updated successfully
574
+ * @returns BatchEnvsResponse Environment variables updated successfully
575
+ * @throws ApiError
576
+ */
577
+ batchUpdateEnvs(requestBody?: BatchCreateEnvsRequest): CancelablePromise<BatchEnvsResponse>;
578
+ /**
579
+ * Batch Delete Environment Variables
580
+ * Delete multiple environment variables in a single request
581
+ * @param requestBody
582
+ * @returns BatchEnvsResponse Environment variables deleted successfully
565
583
  * @throws ApiError
566
584
  */
567
- batchUpdateEnvs(requestBody?: BatchCreateEnvsRequest): CancelablePromise<EnvsResponse>;
585
+ deleteBatchEnv(requestBody?: BatchDeleteEnvsRequest): CancelablePromise<BatchEnvsResponse>;
568
586
  /**
569
587
  * Update Environment Variable
570
588
  * Update an existing environment variable
@@ -1002,4 +1020,4 @@ type UploadFileError = {
1002
1020
  error: string;
1003
1021
  };
1004
1022
 
1005
- export { type AcceptOrgInviteRequest, type AcceptOrgInviteResponse, type AcceptUserInviteRequest, type AcceptUserInviteResponse, AccessService, ApiError, type ApiKeyResponse, type ApiKeysResponse, ApiKeysService, ApplicationsService, AuditLogsService, AuthenticationService, BaseHttpRequest, type BatchCreateEnvsRequest, type CallbackResponse, CancelError, CancelablePromise, type CheckSlugResponse, type CreateApiKeyRequest, type CreateAppRequest, type CreateAppResponse, type CreateEnvRequest, type CreateEnvTypeRequest, type CreateOrgInviteRequest, type CreateOrgInviteResponse, type CreateRoleRequest, type CreateUserInviteRequest, type CreateUserInviteResponse, type DeleteAppResponse, type DeleteEnvRequest, type DeleteEnvTypeRequest, type DeleteUserInviteResponse, type EnvResponse, EnvSyncAPISDK, type EnvTypeResponse, type EnvTypesResponse, EnvironmentTypesService, EnvironmentVariablesService, type EnvsResponse, type ErrorResponse, FileUploadService, type GetAppResponse, type GetAppsResponse, type GetAuditLogsResponse, type GetAuditLogsResponseWrapper, type GetEnvRequest, type GetOrgInviteByCodeResponse, type GetUserInviteByTokenResponse, type LoginUrlResponse, OnboardingService, OpenAPI, type OpenAPIConfig, type OrgResponse, OrganizationsService, type RegenerateApiKeyResponse, type RoleResponse, type RoleStatsResponse, type RolesResponse, RolesService, type UpdateApiKeyRequest, type UpdateAppRequest, type UpdateAppResponse, type UpdateEnvRequest, type UpdateEnvTypeRequest, type UpdateOrgRequest, type UpdateRoleRequest, type UpdateUserInviteRequest, type UpdateUserInviteResponse, type UpdateUserRequest, type UploadFileError, type UploadFileResponse, type UserResponse, type UsersResponse, UsersService, type WhoAmIResponse };
1023
+ export { type AcceptOrgInviteRequest, type AcceptOrgInviteResponse, type AcceptUserInviteRequest, type AcceptUserInviteResponse, AccessService, ApiError, type ApiKeyResponse, type ApiKeysResponse, ApiKeysService, ApplicationsService, AuditLogsService, AuthenticationService, BaseHttpRequest, type BatchCreateEnvsRequest, type BatchDeleteEnvsRequest, type BatchEnvsResponse, type CallbackResponse, CancelError, CancelablePromise, type CheckSlugResponse, type CreateApiKeyRequest, type CreateAppRequest, type CreateAppResponse, type CreateEnvRequest, type CreateEnvTypeRequest, type CreateOrgInviteRequest, type CreateOrgInviteResponse, type CreateRoleRequest, type CreateUserInviteRequest, type CreateUserInviteResponse, type DeleteAppResponse, type DeleteEnvRequest, type DeleteEnvTypeRequest, type DeleteUserInviteResponse, type EnvResponse, EnvSyncAPISDK, type EnvTypeResponse, type EnvTypesResponse, EnvironmentTypesService, EnvironmentVariablesService, type EnvsResponse, type ErrorResponse, FileUploadService, type GetAppResponse, type GetAppsResponse, type GetAuditLogsResponse, type GetAuditLogsResponseWrapper, type GetEnvRequest, type GetOrgInviteByCodeResponse, type GetUserInviteByTokenResponse, type LoginUrlResponse, OnboardingService, OpenAPI, type OpenAPIConfig, type OrgResponse, OrganizationsService, type RegenerateApiKeyResponse, type RoleResponse, type RoleStatsResponse, type RolesResponse, RolesService, type UpdateApiKeyRequest, type UpdateAppRequest, type UpdateAppResponse, type UpdateEnvRequest, type UpdateEnvTypeRequest, type UpdateOrgRequest, type UpdateRoleRequest, type UpdateUserInviteRequest, type UpdateUserInviteResponse, type UpdateUserRequest, type UploadFileError, type UploadFileResponse, type UserResponse, type UsersResponse, UsersService, type WhoAmIResponse };
@@ -919,7 +919,7 @@
919
919
  * Batch Create Environment Variables
920
920
  * Create multiple environment variables in a single request
921
921
  * @param requestBody
922
- * @returns EnvsResponse Environment variables created successfully
922
+ * @returns BatchEnvsResponse Environment variables created successfully
923
923
  * @throws ApiError
924
924
  */
925
925
  batchCreateEnvs(requestBody) {
@@ -937,7 +937,7 @@
937
937
  * Batch Update Environment Variables
938
938
  * Update multiple environment variables in a single request
939
939
  * @param requestBody
940
- * @returns EnvsResponse Environment variables updated successfully
940
+ * @returns BatchEnvsResponse Environment variables updated successfully
941
941
  * @throws ApiError
942
942
  */
943
943
  batchUpdateEnvs(requestBody) {
@@ -951,6 +951,24 @@
951
951
  }
952
952
  });
953
953
  }
954
+ /**
955
+ * Batch Delete Environment Variables
956
+ * Delete multiple environment variables in a single request
957
+ * @param requestBody
958
+ * @returns BatchEnvsResponse Environment variables deleted successfully
959
+ * @throws ApiError
960
+ */
961
+ deleteBatchEnv(requestBody) {
962
+ return this.httpRequest.request({
963
+ method: "DELETE",
964
+ url: "/api/env/batch",
965
+ body: requestBody,
966
+ mediaType: "application/json",
967
+ errors: {
968
+ 500: `Internal server error`
969
+ }
970
+ });
971
+ }
954
972
  /**
955
973
  * Update Environment Variable
956
974
  * Update an existing environment variable
@@ -1499,7 +1517,7 @@
1499
1517
  constructor(config, HttpRequest = FetchHttpRequest) {
1500
1518
  this.request = new HttpRequest({
1501
1519
  BASE: config?.BASE ?? "http://localhost:8600",
1502
- VERSION: config?.VERSION ?? "0.2.6",
1520
+ VERSION: config?.VERSION ?? "0.3.0",
1503
1521
  WITH_CREDENTIALS: config?.WITH_CREDENTIALS ?? false,
1504
1522
  CREDENTIALS: config?.CREDENTIALS ?? "include",
1505
1523
  TOKEN: config?.TOKEN,
@@ -1526,7 +1544,7 @@
1526
1544
  // src/core/OpenAPI.ts
1527
1545
  var OpenAPI = {
1528
1546
  BASE: "http://localhost:8600",
1529
- VERSION: "0.2.6",
1547
+ VERSION: "0.3.0",
1530
1548
  WITH_CREDENTIALS: false,
1531
1549
  CREDENTIALS: "include",
1532
1550
  TOKEN: void 0,
package/dist/index.js CHANGED
@@ -960,7 +960,7 @@ var EnvironmentVariablesService = class {
960
960
  * Batch Create Environment Variables
961
961
  * Create multiple environment variables in a single request
962
962
  * @param requestBody
963
- * @returns EnvsResponse Environment variables created successfully
963
+ * @returns BatchEnvsResponse Environment variables created successfully
964
964
  * @throws ApiError
965
965
  */
966
966
  batchCreateEnvs(requestBody) {
@@ -978,7 +978,7 @@ var EnvironmentVariablesService = class {
978
978
  * Batch Update Environment Variables
979
979
  * Update multiple environment variables in a single request
980
980
  * @param requestBody
981
- * @returns EnvsResponse Environment variables updated successfully
981
+ * @returns BatchEnvsResponse Environment variables updated successfully
982
982
  * @throws ApiError
983
983
  */
984
984
  batchUpdateEnvs(requestBody) {
@@ -992,6 +992,24 @@ var EnvironmentVariablesService = class {
992
992
  }
993
993
  });
994
994
  }
995
+ /**
996
+ * Batch Delete Environment Variables
997
+ * Delete multiple environment variables in a single request
998
+ * @param requestBody
999
+ * @returns BatchEnvsResponse Environment variables deleted successfully
1000
+ * @throws ApiError
1001
+ */
1002
+ deleteBatchEnv(requestBody) {
1003
+ return this.httpRequest.request({
1004
+ method: "DELETE",
1005
+ url: "/api/env/batch",
1006
+ body: requestBody,
1007
+ mediaType: "application/json",
1008
+ errors: {
1009
+ 500: `Internal server error`
1010
+ }
1011
+ });
1012
+ }
995
1013
  /**
996
1014
  * Update Environment Variable
997
1015
  * Update an existing environment variable
@@ -1540,7 +1558,7 @@ var EnvSyncAPISDK = class {
1540
1558
  constructor(config, HttpRequest = FetchHttpRequest) {
1541
1559
  this.request = new HttpRequest({
1542
1560
  BASE: config?.BASE ?? "http://localhost:8600",
1543
- VERSION: config?.VERSION ?? "0.2.6",
1561
+ VERSION: config?.VERSION ?? "0.3.0",
1544
1562
  WITH_CREDENTIALS: config?.WITH_CREDENTIALS ?? false,
1545
1563
  CREDENTIALS: config?.CREDENTIALS ?? "include",
1546
1564
  TOKEN: config?.TOKEN,
@@ -1567,7 +1585,7 @@ var EnvSyncAPISDK = class {
1567
1585
  // src/core/OpenAPI.ts
1568
1586
  var OpenAPI = {
1569
1587
  BASE: "http://localhost:8600",
1570
- VERSION: "0.2.6",
1588
+ VERSION: "0.3.0",
1571
1589
  WITH_CREDENTIALS: false,
1572
1590
  CREDENTIALS: "include",
1573
1591
  TOKEN: void 0,
package/dist/index.mjs CHANGED
@@ -917,7 +917,7 @@ var EnvironmentVariablesService = class {
917
917
  * Batch Create Environment Variables
918
918
  * Create multiple environment variables in a single request
919
919
  * @param requestBody
920
- * @returns EnvsResponse Environment variables created successfully
920
+ * @returns BatchEnvsResponse Environment variables created successfully
921
921
  * @throws ApiError
922
922
  */
923
923
  batchCreateEnvs(requestBody) {
@@ -935,7 +935,7 @@ var EnvironmentVariablesService = class {
935
935
  * Batch Update Environment Variables
936
936
  * Update multiple environment variables in a single request
937
937
  * @param requestBody
938
- * @returns EnvsResponse Environment variables updated successfully
938
+ * @returns BatchEnvsResponse Environment variables updated successfully
939
939
  * @throws ApiError
940
940
  */
941
941
  batchUpdateEnvs(requestBody) {
@@ -949,6 +949,24 @@ var EnvironmentVariablesService = class {
949
949
  }
950
950
  });
951
951
  }
952
+ /**
953
+ * Batch Delete Environment Variables
954
+ * Delete multiple environment variables in a single request
955
+ * @param requestBody
956
+ * @returns BatchEnvsResponse Environment variables deleted successfully
957
+ * @throws ApiError
958
+ */
959
+ deleteBatchEnv(requestBody) {
960
+ return this.httpRequest.request({
961
+ method: "DELETE",
962
+ url: "/api/env/batch",
963
+ body: requestBody,
964
+ mediaType: "application/json",
965
+ errors: {
966
+ 500: `Internal server error`
967
+ }
968
+ });
969
+ }
952
970
  /**
953
971
  * Update Environment Variable
954
972
  * Update an existing environment variable
@@ -1497,7 +1515,7 @@ var EnvSyncAPISDK = class {
1497
1515
  constructor(config, HttpRequest = FetchHttpRequest) {
1498
1516
  this.request = new HttpRequest({
1499
1517
  BASE: config?.BASE ?? "http://localhost:8600",
1500
- VERSION: config?.VERSION ?? "0.2.6",
1518
+ VERSION: config?.VERSION ?? "0.3.0",
1501
1519
  WITH_CREDENTIALS: config?.WITH_CREDENTIALS ?? false,
1502
1520
  CREDENTIALS: config?.CREDENTIALS ?? "include",
1503
1521
  TOKEN: config?.TOKEN,
@@ -1524,7 +1542,7 @@ var EnvSyncAPISDK = class {
1524
1542
  // src/core/OpenAPI.ts
1525
1543
  var OpenAPI = {
1526
1544
  BASE: "http://localhost:8600",
1527
- VERSION: "0.2.6",
1545
+ VERSION: "0.3.0",
1528
1546
  WITH_CREDENTIALS: false,
1529
1547
  CREDENTIALS: "include",
1530
1548
  TOKEN: void 0,
package/package.json CHANGED
@@ -33,7 +33,7 @@
33
33
  "peerDependencies": {
34
34
  "typescript": "^5"
35
35
  },
36
- "version": "0.2.6",
36
+ "version": "0.3.0",
37
37
  "publishConfig": {
38
38
  "access": "public"
39
39
  }