@envsync-cloud/envsync-ts-sdk 0.2.4 → 0.2.7

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
@@ -216,6 +216,14 @@ type GetAppResponse = {
216
216
  description: string;
217
217
  metadata: Record<string, any>;
218
218
  org_id: string;
219
+ envCount: number;
220
+ env_types: Array<{
221
+ id: string;
222
+ name: string;
223
+ is_default: boolean;
224
+ is_protected: boolean;
225
+ color: string;
226
+ }>;
219
227
  created_at: string;
220
228
  updated_at: string;
221
229
  };
@@ -226,6 +234,14 @@ type GetAppsResponse = Array<{
226
234
  description: string;
227
235
  metadata: Record<string, any>;
228
236
  org_id: string;
237
+ envCount: number;
238
+ env_types: Array<{
239
+ id: string;
240
+ name: string;
241
+ is_default: boolean;
242
+ is_protected: boolean;
243
+ color: string;
244
+ }>;
229
245
  created_at: string;
230
246
  updated_at: string;
231
247
  }>;
@@ -291,10 +307,19 @@ type GetAuditLogsResponse = Array<{
291
307
  org_id: string;
292
308
  user_id: string;
293
309
  details: string;
310
+ message: string;
294
311
  created_at: string;
295
312
  updated_at: string;
296
313
  }>;
297
314
 
315
+ /**
316
+ * Response schema for getting audit logs
317
+ */
318
+ type GetAuditLogsResponseWrapper = {
319
+ auditLogs: GetAuditLogsResponse;
320
+ totalPages: number;
321
+ };
322
+
298
323
  declare class AuditLogsService {
299
324
  readonly httpRequest: BaseHttpRequest;
300
325
  constructor(httpRequest: BaseHttpRequest);
@@ -303,10 +328,10 @@ declare class AuditLogsService {
303
328
  * Retrieve audit logs for the organization with pagination
304
329
  * @param page
305
330
  * @param perPage
306
- * @returns GetAuditLogsResponse Audit logs retrieved successfully
331
+ * @returns GetAuditLogsResponseWrapper Audit logs retrieved successfully
307
332
  * @throws ApiError
308
333
  */
309
- getAuditLogs(page?: string, perPage?: string): CancelablePromise<GetAuditLogsResponse>;
334
+ getAuditLogs(page?: string, perPage?: string): CancelablePromise<GetAuditLogsResponseWrapper>;
310
335
  }
311
336
 
312
337
  type RoleResponse = {
@@ -318,6 +343,7 @@ type RoleResponse = {
318
343
  have_api_access: boolean;
319
344
  have_billing_options: boolean;
320
345
  have_webhook_access: boolean;
346
+ color?: string;
321
347
  is_admin: boolean;
322
348
  is_master: boolean;
323
349
  created_at: string;
@@ -362,16 +388,40 @@ declare class AuthenticationService {
362
388
  whoami(): CancelablePromise<WhoAmIResponse>;
363
389
  }
364
390
 
391
+ type CreateEnvTypeRequest = {
392
+ name: string;
393
+ color?: string;
394
+ is_default?: boolean;
395
+ is_protected?: boolean;
396
+ app_id: string;
397
+ };
398
+
399
+ type DeleteEnvTypeRequest = {
400
+ id: string;
401
+ };
402
+
365
403
  type EnvTypeResponse = {
366
404
  id: string;
367
405
  name: string;
368
406
  org_id: string;
407
+ app_id: string;
408
+ color: string;
409
+ is_default: boolean;
410
+ is_protected: boolean;
369
411
  created_at: string;
370
412
  updated_at: string;
371
413
  };
372
414
 
373
415
  type EnvTypesResponse = Array<EnvTypeResponse>;
374
416
 
417
+ type UpdateEnvTypeRequest = {
418
+ id: string;
419
+ name: string;
420
+ color?: string;
421
+ is_default?: boolean;
422
+ is_protected?: boolean;
423
+ };
424
+
375
425
  declare class EnvironmentTypesService {
376
426
  readonly httpRequest: BaseHttpRequest;
377
427
  constructor(httpRequest: BaseHttpRequest);
@@ -382,6 +432,14 @@ declare class EnvironmentTypesService {
382
432
  * @throws ApiError
383
433
  */
384
434
  getEnvTypes(): CancelablePromise<EnvTypesResponse>;
435
+ /**
436
+ * Create Environment Type
437
+ * Create a new environment type
438
+ * @param requestBody
439
+ * @returns EnvTypeResponse Environment type created successfully
440
+ * @throws ApiError
441
+ */
442
+ createEnvType(requestBody?: CreateEnvTypeRequest): CancelablePromise<EnvTypeResponse>;
385
443
  /**
386
444
  * Get Environment Type
387
445
  * Retrieve a specific environment type
@@ -390,6 +448,23 @@ declare class EnvironmentTypesService {
390
448
  * @throws ApiError
391
449
  */
392
450
  getEnvType(id: string): CancelablePromise<EnvTypeResponse>;
451
+ /**
452
+ * Update Environment Type
453
+ * Update an existing environment type
454
+ * @param id
455
+ * @param requestBody
456
+ * @returns EnvTypeResponse Environment type updated successfully
457
+ * @throws ApiError
458
+ */
459
+ updateEnvType(id: string, requestBody?: UpdateEnvTypeRequest): CancelablePromise<EnvTypeResponse>;
460
+ /**
461
+ * Delete Environment Type
462
+ * Delete an existing environment type
463
+ * @param id
464
+ * @returns DeleteEnvTypeRequest Environment type deleted successfully
465
+ * @throws ApiError
466
+ */
467
+ deleteEnvType(id: string): CancelablePromise<DeleteEnvTypeRequest>;
393
468
  }
394
469
 
395
470
  type BatchCreateEnvsRequest = {
@@ -401,6 +476,16 @@ type BatchCreateEnvsRequest = {
401
476
  }>;
402
477
  };
403
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
+
404
489
  type CreateEnvRequest = {
405
490
  key: string;
406
491
  value: string;
@@ -478,18 +563,26 @@ declare class EnvironmentVariablesService {
478
563
  * Batch Create Environment Variables
479
564
  * Create multiple environment variables in a single request
480
565
  * @param requestBody
481
- * @returns EnvsResponse Environment variables created successfully
566
+ * @returns BatchEnvsResponse Environment variables created successfully
482
567
  * @throws ApiError
483
568
  */
484
- batchCreateEnvs(requestBody?: BatchCreateEnvsRequest): CancelablePromise<EnvsResponse>;
569
+ batchCreateEnvs(requestBody?: BatchCreateEnvsRequest): CancelablePromise<BatchEnvsResponse>;
485
570
  /**
486
571
  * Batch Update Environment Variables
487
572
  * Update multiple environment variables in a single request
488
573
  * @param requestBody
489
- * @returns EnvsResponse Environment variables updated successfully
574
+ * @returns BatchEnvsResponse Environment variables updated successfully
490
575
  * @throws ApiError
491
576
  */
492
- batchUpdateEnvs(requestBody?: BatchCreateEnvsRequest): CancelablePromise<EnvsResponse>;
577
+ batchUpdateEnvs(requestBody?: BatchCreateEnvsRequest): CancelablePromise<BatchEnvsResponse>;
578
+ /**
579
+ * Delete Environment Variables
580
+ * Delete multiple environment variables in a single request
581
+ * @param requestBody
582
+ * @returns BatchEnvsResponse Environment variables deleted successfully
583
+ * @throws ApiError
584
+ */
585
+ deleteBatchEnv(requestBody?: BatchDeleteEnvsRequest): CancelablePromise<BatchEnvsResponse>;
493
586
  /**
494
587
  * Update Environment Variable
495
588
  * Update an existing environment variable
@@ -661,6 +754,13 @@ declare class OnboardingService {
661
754
  * @throws ApiError
662
755
  */
663
756
  createUserInvite(requestBody?: CreateUserInviteRequest): CancelablePromise<CreateUserInviteResponse>;
757
+ /**
758
+ * Get All User Invites
759
+ * Get all user invites
760
+ * @returns GetUserInviteByTokenResponse User invites retrieved successfully
761
+ * @throws ApiError
762
+ */
763
+ getAllUserInvites(): CancelablePromise<GetUserInviteByTokenResponse>;
664
764
  /**
665
765
  * Delete User Invite
666
766
  * Delete user invite
@@ -731,6 +831,7 @@ type CreateRoleRequest = {
731
831
  have_billing_options: boolean;
732
832
  have_webhook_access: boolean;
733
833
  is_admin: boolean;
834
+ color?: string;
734
835
  };
735
836
 
736
837
  type RolesResponse = Array<RoleResponse>;
@@ -801,10 +902,6 @@ declare class RolesService {
801
902
  deleteRole(id: string): CancelablePromise<RoleResponse>;
802
903
  }
803
904
 
804
- type UpdatePasswordRequest = {
805
- password: string;
806
- };
807
-
808
905
  type UpdateUserRequest = {
809
906
  full_name?: string;
810
907
  profile_picture_url?: string;
@@ -874,11 +971,10 @@ declare class UsersService {
874
971
  * Update User Password
875
972
  * Update a user's password (Admin only)
876
973
  * @param id
877
- * @param requestBody
878
974
  * @returns UserResponse Password update request sent successfully
879
975
  * @throws ApiError
880
976
  */
881
- updatePassword(id: string, requestBody?: UpdatePasswordRequest): CancelablePromise<UserResponse>;
977
+ updatePassword(id: string): CancelablePromise<UserResponse>;
882
978
  }
883
979
 
884
980
  type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
@@ -924,4 +1020,4 @@ type UploadFileError = {
924
1020
  error: string;
925
1021
  };
926
1022
 
927
- 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 CreateOrgInviteRequest, type CreateOrgInviteResponse, type CreateRoleRequest, type CreateUserInviteRequest, type CreateUserInviteResponse, type DeleteAppResponse, type DeleteEnvRequest, type DeleteUserInviteResponse, type EnvResponse, EnvSyncAPISDK, type EnvTypeResponse, type EnvTypesResponse, EnvironmentTypesService, EnvironmentVariablesService, type EnvsResponse, type ErrorResponse, FileUploadService, type GetAppResponse, type GetAppsResponse, type GetAuditLogsResponse, 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 UpdateOrgRequest, type UpdatePasswordRequest, 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
@@ -216,6 +216,14 @@ type GetAppResponse = {
216
216
  description: string;
217
217
  metadata: Record<string, any>;
218
218
  org_id: string;
219
+ envCount: number;
220
+ env_types: Array<{
221
+ id: string;
222
+ name: string;
223
+ is_default: boolean;
224
+ is_protected: boolean;
225
+ color: string;
226
+ }>;
219
227
  created_at: string;
220
228
  updated_at: string;
221
229
  };
@@ -226,6 +234,14 @@ type GetAppsResponse = Array<{
226
234
  description: string;
227
235
  metadata: Record<string, any>;
228
236
  org_id: string;
237
+ envCount: number;
238
+ env_types: Array<{
239
+ id: string;
240
+ name: string;
241
+ is_default: boolean;
242
+ is_protected: boolean;
243
+ color: string;
244
+ }>;
229
245
  created_at: string;
230
246
  updated_at: string;
231
247
  }>;
@@ -291,10 +307,19 @@ type GetAuditLogsResponse = Array<{
291
307
  org_id: string;
292
308
  user_id: string;
293
309
  details: string;
310
+ message: string;
294
311
  created_at: string;
295
312
  updated_at: string;
296
313
  }>;
297
314
 
315
+ /**
316
+ * Response schema for getting audit logs
317
+ */
318
+ type GetAuditLogsResponseWrapper = {
319
+ auditLogs: GetAuditLogsResponse;
320
+ totalPages: number;
321
+ };
322
+
298
323
  declare class AuditLogsService {
299
324
  readonly httpRequest: BaseHttpRequest;
300
325
  constructor(httpRequest: BaseHttpRequest);
@@ -303,10 +328,10 @@ declare class AuditLogsService {
303
328
  * Retrieve audit logs for the organization with pagination
304
329
  * @param page
305
330
  * @param perPage
306
- * @returns GetAuditLogsResponse Audit logs retrieved successfully
331
+ * @returns GetAuditLogsResponseWrapper Audit logs retrieved successfully
307
332
  * @throws ApiError
308
333
  */
309
- getAuditLogs(page?: string, perPage?: string): CancelablePromise<GetAuditLogsResponse>;
334
+ getAuditLogs(page?: string, perPage?: string): CancelablePromise<GetAuditLogsResponseWrapper>;
310
335
  }
311
336
 
312
337
  type RoleResponse = {
@@ -318,6 +343,7 @@ type RoleResponse = {
318
343
  have_api_access: boolean;
319
344
  have_billing_options: boolean;
320
345
  have_webhook_access: boolean;
346
+ color?: string;
321
347
  is_admin: boolean;
322
348
  is_master: boolean;
323
349
  created_at: string;
@@ -362,16 +388,40 @@ declare class AuthenticationService {
362
388
  whoami(): CancelablePromise<WhoAmIResponse>;
363
389
  }
364
390
 
391
+ type CreateEnvTypeRequest = {
392
+ name: string;
393
+ color?: string;
394
+ is_default?: boolean;
395
+ is_protected?: boolean;
396
+ app_id: string;
397
+ };
398
+
399
+ type DeleteEnvTypeRequest = {
400
+ id: string;
401
+ };
402
+
365
403
  type EnvTypeResponse = {
366
404
  id: string;
367
405
  name: string;
368
406
  org_id: string;
407
+ app_id: string;
408
+ color: string;
409
+ is_default: boolean;
410
+ is_protected: boolean;
369
411
  created_at: string;
370
412
  updated_at: string;
371
413
  };
372
414
 
373
415
  type EnvTypesResponse = Array<EnvTypeResponse>;
374
416
 
417
+ type UpdateEnvTypeRequest = {
418
+ id: string;
419
+ name: string;
420
+ color?: string;
421
+ is_default?: boolean;
422
+ is_protected?: boolean;
423
+ };
424
+
375
425
  declare class EnvironmentTypesService {
376
426
  readonly httpRequest: BaseHttpRequest;
377
427
  constructor(httpRequest: BaseHttpRequest);
@@ -382,6 +432,14 @@ declare class EnvironmentTypesService {
382
432
  * @throws ApiError
383
433
  */
384
434
  getEnvTypes(): CancelablePromise<EnvTypesResponse>;
435
+ /**
436
+ * Create Environment Type
437
+ * Create a new environment type
438
+ * @param requestBody
439
+ * @returns EnvTypeResponse Environment type created successfully
440
+ * @throws ApiError
441
+ */
442
+ createEnvType(requestBody?: CreateEnvTypeRequest): CancelablePromise<EnvTypeResponse>;
385
443
  /**
386
444
  * Get Environment Type
387
445
  * Retrieve a specific environment type
@@ -390,6 +448,23 @@ declare class EnvironmentTypesService {
390
448
  * @throws ApiError
391
449
  */
392
450
  getEnvType(id: string): CancelablePromise<EnvTypeResponse>;
451
+ /**
452
+ * Update Environment Type
453
+ * Update an existing environment type
454
+ * @param id
455
+ * @param requestBody
456
+ * @returns EnvTypeResponse Environment type updated successfully
457
+ * @throws ApiError
458
+ */
459
+ updateEnvType(id: string, requestBody?: UpdateEnvTypeRequest): CancelablePromise<EnvTypeResponse>;
460
+ /**
461
+ * Delete Environment Type
462
+ * Delete an existing environment type
463
+ * @param id
464
+ * @returns DeleteEnvTypeRequest Environment type deleted successfully
465
+ * @throws ApiError
466
+ */
467
+ deleteEnvType(id: string): CancelablePromise<DeleteEnvTypeRequest>;
393
468
  }
394
469
 
395
470
  type BatchCreateEnvsRequest = {
@@ -401,6 +476,16 @@ type BatchCreateEnvsRequest = {
401
476
  }>;
402
477
  };
403
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
+
404
489
  type CreateEnvRequest = {
405
490
  key: string;
406
491
  value: string;
@@ -478,18 +563,26 @@ declare class EnvironmentVariablesService {
478
563
  * Batch Create Environment Variables
479
564
  * Create multiple environment variables in a single request
480
565
  * @param requestBody
481
- * @returns EnvsResponse Environment variables created successfully
566
+ * @returns BatchEnvsResponse Environment variables created successfully
482
567
  * @throws ApiError
483
568
  */
484
- batchCreateEnvs(requestBody?: BatchCreateEnvsRequest): CancelablePromise<EnvsResponse>;
569
+ batchCreateEnvs(requestBody?: BatchCreateEnvsRequest): CancelablePromise<BatchEnvsResponse>;
485
570
  /**
486
571
  * Batch Update Environment Variables
487
572
  * Update multiple environment variables in a single request
488
573
  * @param requestBody
489
- * @returns EnvsResponse Environment variables updated successfully
574
+ * @returns BatchEnvsResponse Environment variables updated successfully
490
575
  * @throws ApiError
491
576
  */
492
- batchUpdateEnvs(requestBody?: BatchCreateEnvsRequest): CancelablePromise<EnvsResponse>;
577
+ batchUpdateEnvs(requestBody?: BatchCreateEnvsRequest): CancelablePromise<BatchEnvsResponse>;
578
+ /**
579
+ * Delete Environment Variables
580
+ * Delete multiple environment variables in a single request
581
+ * @param requestBody
582
+ * @returns BatchEnvsResponse Environment variables deleted successfully
583
+ * @throws ApiError
584
+ */
585
+ deleteBatchEnv(requestBody?: BatchDeleteEnvsRequest): CancelablePromise<BatchEnvsResponse>;
493
586
  /**
494
587
  * Update Environment Variable
495
588
  * Update an existing environment variable
@@ -661,6 +754,13 @@ declare class OnboardingService {
661
754
  * @throws ApiError
662
755
  */
663
756
  createUserInvite(requestBody?: CreateUserInviteRequest): CancelablePromise<CreateUserInviteResponse>;
757
+ /**
758
+ * Get All User Invites
759
+ * Get all user invites
760
+ * @returns GetUserInviteByTokenResponse User invites retrieved successfully
761
+ * @throws ApiError
762
+ */
763
+ getAllUserInvites(): CancelablePromise<GetUserInviteByTokenResponse>;
664
764
  /**
665
765
  * Delete User Invite
666
766
  * Delete user invite
@@ -731,6 +831,7 @@ type CreateRoleRequest = {
731
831
  have_billing_options: boolean;
732
832
  have_webhook_access: boolean;
733
833
  is_admin: boolean;
834
+ color?: string;
734
835
  };
735
836
 
736
837
  type RolesResponse = Array<RoleResponse>;
@@ -801,10 +902,6 @@ declare class RolesService {
801
902
  deleteRole(id: string): CancelablePromise<RoleResponse>;
802
903
  }
803
904
 
804
- type UpdatePasswordRequest = {
805
- password: string;
806
- };
807
-
808
905
  type UpdateUserRequest = {
809
906
  full_name?: string;
810
907
  profile_picture_url?: string;
@@ -874,11 +971,10 @@ declare class UsersService {
874
971
  * Update User Password
875
972
  * Update a user's password (Admin only)
876
973
  * @param id
877
- * @param requestBody
878
974
  * @returns UserResponse Password update request sent successfully
879
975
  * @throws ApiError
880
976
  */
881
- updatePassword(id: string, requestBody?: UpdatePasswordRequest): CancelablePromise<UserResponse>;
977
+ updatePassword(id: string): CancelablePromise<UserResponse>;
882
978
  }
883
979
 
884
980
  type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
@@ -924,4 +1020,4 @@ type UploadFileError = {
924
1020
  error: string;
925
1021
  };
926
1022
 
927
- 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 CreateOrgInviteRequest, type CreateOrgInviteResponse, type CreateRoleRequest, type CreateUserInviteRequest, type CreateUserInviteResponse, type DeleteAppResponse, type DeleteEnvRequest, type DeleteUserInviteResponse, type EnvResponse, EnvSyncAPISDK, type EnvTypeResponse, type EnvTypesResponse, EnvironmentTypesService, EnvironmentVariablesService, type EnvsResponse, type ErrorResponse, FileUploadService, type GetAppResponse, type GetAppsResponse, type GetAuditLogsResponse, 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 UpdateOrgRequest, type UpdatePasswordRequest, 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 };
@@ -694,7 +694,7 @@
694
694
  * Retrieve audit logs for the organization with pagination
695
695
  * @param page
696
696
  * @param perPage
697
- * @returns GetAuditLogsResponse Audit logs retrieved successfully
697
+ * @returns GetAuditLogsResponseWrapper Audit logs retrieved successfully
698
698
  * @throws ApiError
699
699
  */
700
700
  getAuditLogs(page = "1", perPage = "20") {
@@ -754,6 +754,24 @@
754
754
  }
755
755
  });
756
756
  }
757
+ /**
758
+ * Create Environment Type
759
+ * Create a new environment type
760
+ * @param requestBody
761
+ * @returns EnvTypeResponse Environment type created successfully
762
+ * @throws ApiError
763
+ */
764
+ createEnvType(requestBody) {
765
+ return this.httpRequest.request({
766
+ method: "POST",
767
+ url: "/api/env_type",
768
+ body: requestBody,
769
+ mediaType: "application/json",
770
+ errors: {
771
+ 500: `Internal server error`
772
+ }
773
+ });
774
+ }
757
775
  /**
758
776
  * Get Environment Type
759
777
  * Retrieve a specific environment type
@@ -773,6 +791,47 @@
773
791
  }
774
792
  });
775
793
  }
794
+ /**
795
+ * Update Environment Type
796
+ * Update an existing environment type
797
+ * @param id
798
+ * @param requestBody
799
+ * @returns EnvTypeResponse Environment type updated successfully
800
+ * @throws ApiError
801
+ */
802
+ updateEnvType(id, requestBody) {
803
+ return this.httpRequest.request({
804
+ method: "PATCH",
805
+ url: "/api/env_type/{id}",
806
+ path: {
807
+ "id": id
808
+ },
809
+ body: requestBody,
810
+ mediaType: "application/json",
811
+ errors: {
812
+ 500: `Internal server error`
813
+ }
814
+ });
815
+ }
816
+ /**
817
+ * Delete Environment Type
818
+ * Delete an existing environment type
819
+ * @param id
820
+ * @returns DeleteEnvTypeRequest Environment type deleted successfully
821
+ * @throws ApiError
822
+ */
823
+ deleteEnvType(id) {
824
+ return this.httpRequest.request({
825
+ method: "DELETE",
826
+ url: "/api/env_type/{id}",
827
+ path: {
828
+ "id": id
829
+ },
830
+ errors: {
831
+ 500: `Internal server error`
832
+ }
833
+ });
834
+ }
776
835
  };
777
836
 
778
837
  // src/services/EnvironmentVariablesService.ts
@@ -860,7 +919,7 @@
860
919
  * Batch Create Environment Variables
861
920
  * Create multiple environment variables in a single request
862
921
  * @param requestBody
863
- * @returns EnvsResponse Environment variables created successfully
922
+ * @returns BatchEnvsResponse Environment variables created successfully
864
923
  * @throws ApiError
865
924
  */
866
925
  batchCreateEnvs(requestBody) {
@@ -878,7 +937,7 @@
878
937
  * Batch Update Environment Variables
879
938
  * Update multiple environment variables in a single request
880
939
  * @param requestBody
881
- * @returns EnvsResponse Environment variables updated successfully
940
+ * @returns BatchEnvsResponse Environment variables updated successfully
882
941
  * @throws ApiError
883
942
  */
884
943
  batchUpdateEnvs(requestBody) {
@@ -892,6 +951,24 @@
892
951
  }
893
952
  });
894
953
  }
954
+ /**
955
+ * 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
+ }
895
972
  /**
896
973
  * Update Environment Variable
897
974
  * Update an existing environment variable
@@ -1086,6 +1163,21 @@
1086
1163
  }
1087
1164
  });
1088
1165
  }
1166
+ /**
1167
+ * Get All User Invites
1168
+ * Get all user invites
1169
+ * @returns GetUserInviteByTokenResponse User invites retrieved successfully
1170
+ * @throws ApiError
1171
+ */
1172
+ getAllUserInvites() {
1173
+ return this.httpRequest.request({
1174
+ method: "GET",
1175
+ url: "/api/onboarding/user",
1176
+ errors: {
1177
+ 500: `Internal server error`
1178
+ }
1179
+ });
1180
+ }
1089
1181
  /**
1090
1182
  * Delete User Invite
1091
1183
  * Delete user invite
@@ -1390,19 +1482,16 @@
1390
1482
  * Update User Password
1391
1483
  * Update a user's password (Admin only)
1392
1484
  * @param id
1393
- * @param requestBody
1394
1485
  * @returns UserResponse Password update request sent successfully
1395
1486
  * @throws ApiError
1396
1487
  */
1397
- updatePassword(id, requestBody) {
1488
+ updatePassword(id) {
1398
1489
  return this.httpRequest.request({
1399
1490
  method: "PATCH",
1400
1491
  url: "/api/user/password/{id}",
1401
1492
  path: {
1402
1493
  "id": id
1403
1494
  },
1404
- body: requestBody,
1405
- mediaType: "application/json",
1406
1495
  errors: {
1407
1496
  500: `Internal server error`
1408
1497
  }
@@ -1428,7 +1517,7 @@
1428
1517
  constructor(config, HttpRequest = FetchHttpRequest) {
1429
1518
  this.request = new HttpRequest({
1430
1519
  BASE: config?.BASE ?? "http://localhost:8600",
1431
- VERSION: config?.VERSION ?? "0.2.2",
1520
+ VERSION: config?.VERSION ?? "0.2.7",
1432
1521
  WITH_CREDENTIALS: config?.WITH_CREDENTIALS ?? false,
1433
1522
  CREDENTIALS: config?.CREDENTIALS ?? "include",
1434
1523
  TOKEN: config?.TOKEN,
@@ -1455,7 +1544,7 @@
1455
1544
  // src/core/OpenAPI.ts
1456
1545
  var OpenAPI = {
1457
1546
  BASE: "http://localhost:8600",
1458
- VERSION: "0.2.2",
1547
+ VERSION: "0.2.7",
1459
1548
  WITH_CREDENTIALS: false,
1460
1549
  CREDENTIALS: "include",
1461
1550
  TOKEN: void 0,
package/dist/index.js CHANGED
@@ -735,7 +735,7 @@ var AuditLogsService = class {
735
735
  * Retrieve audit logs for the organization with pagination
736
736
  * @param page
737
737
  * @param perPage
738
- * @returns GetAuditLogsResponse Audit logs retrieved successfully
738
+ * @returns GetAuditLogsResponseWrapper Audit logs retrieved successfully
739
739
  * @throws ApiError
740
740
  */
741
741
  getAuditLogs(page = "1", perPage = "20") {
@@ -795,6 +795,24 @@ var EnvironmentTypesService = class {
795
795
  }
796
796
  });
797
797
  }
798
+ /**
799
+ * Create Environment Type
800
+ * Create a new environment type
801
+ * @param requestBody
802
+ * @returns EnvTypeResponse Environment type created successfully
803
+ * @throws ApiError
804
+ */
805
+ createEnvType(requestBody) {
806
+ return this.httpRequest.request({
807
+ method: "POST",
808
+ url: "/api/env_type",
809
+ body: requestBody,
810
+ mediaType: "application/json",
811
+ errors: {
812
+ 500: `Internal server error`
813
+ }
814
+ });
815
+ }
798
816
  /**
799
817
  * Get Environment Type
800
818
  * Retrieve a specific environment type
@@ -814,6 +832,47 @@ var EnvironmentTypesService = class {
814
832
  }
815
833
  });
816
834
  }
835
+ /**
836
+ * Update Environment Type
837
+ * Update an existing environment type
838
+ * @param id
839
+ * @param requestBody
840
+ * @returns EnvTypeResponse Environment type updated successfully
841
+ * @throws ApiError
842
+ */
843
+ updateEnvType(id, requestBody) {
844
+ return this.httpRequest.request({
845
+ method: "PATCH",
846
+ url: "/api/env_type/{id}",
847
+ path: {
848
+ "id": id
849
+ },
850
+ body: requestBody,
851
+ mediaType: "application/json",
852
+ errors: {
853
+ 500: `Internal server error`
854
+ }
855
+ });
856
+ }
857
+ /**
858
+ * Delete Environment Type
859
+ * Delete an existing environment type
860
+ * @param id
861
+ * @returns DeleteEnvTypeRequest Environment type deleted successfully
862
+ * @throws ApiError
863
+ */
864
+ deleteEnvType(id) {
865
+ return this.httpRequest.request({
866
+ method: "DELETE",
867
+ url: "/api/env_type/{id}",
868
+ path: {
869
+ "id": id
870
+ },
871
+ errors: {
872
+ 500: `Internal server error`
873
+ }
874
+ });
875
+ }
817
876
  };
818
877
 
819
878
  // src/services/EnvironmentVariablesService.ts
@@ -901,7 +960,7 @@ var EnvironmentVariablesService = class {
901
960
  * Batch Create Environment Variables
902
961
  * Create multiple environment variables in a single request
903
962
  * @param requestBody
904
- * @returns EnvsResponse Environment variables created successfully
963
+ * @returns BatchEnvsResponse Environment variables created successfully
905
964
  * @throws ApiError
906
965
  */
907
966
  batchCreateEnvs(requestBody) {
@@ -919,7 +978,7 @@ var EnvironmentVariablesService = class {
919
978
  * Batch Update Environment Variables
920
979
  * Update multiple environment variables in a single request
921
980
  * @param requestBody
922
- * @returns EnvsResponse Environment variables updated successfully
981
+ * @returns BatchEnvsResponse Environment variables updated successfully
923
982
  * @throws ApiError
924
983
  */
925
984
  batchUpdateEnvs(requestBody) {
@@ -933,6 +992,24 @@ var EnvironmentVariablesService = class {
933
992
  }
934
993
  });
935
994
  }
995
+ /**
996
+ * 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
+ }
936
1013
  /**
937
1014
  * Update Environment Variable
938
1015
  * Update an existing environment variable
@@ -1127,6 +1204,21 @@ var OnboardingService = class {
1127
1204
  }
1128
1205
  });
1129
1206
  }
1207
+ /**
1208
+ * Get All User Invites
1209
+ * Get all user invites
1210
+ * @returns GetUserInviteByTokenResponse User invites retrieved successfully
1211
+ * @throws ApiError
1212
+ */
1213
+ getAllUserInvites() {
1214
+ return this.httpRequest.request({
1215
+ method: "GET",
1216
+ url: "/api/onboarding/user",
1217
+ errors: {
1218
+ 500: `Internal server error`
1219
+ }
1220
+ });
1221
+ }
1130
1222
  /**
1131
1223
  * Delete User Invite
1132
1224
  * Delete user invite
@@ -1431,19 +1523,16 @@ var UsersService = class {
1431
1523
  * Update User Password
1432
1524
  * Update a user's password (Admin only)
1433
1525
  * @param id
1434
- * @param requestBody
1435
1526
  * @returns UserResponse Password update request sent successfully
1436
1527
  * @throws ApiError
1437
1528
  */
1438
- updatePassword(id, requestBody) {
1529
+ updatePassword(id) {
1439
1530
  return this.httpRequest.request({
1440
1531
  method: "PATCH",
1441
1532
  url: "/api/user/password/{id}",
1442
1533
  path: {
1443
1534
  "id": id
1444
1535
  },
1445
- body: requestBody,
1446
- mediaType: "application/json",
1447
1536
  errors: {
1448
1537
  500: `Internal server error`
1449
1538
  }
@@ -1469,7 +1558,7 @@ var EnvSyncAPISDK = class {
1469
1558
  constructor(config, HttpRequest = FetchHttpRequest) {
1470
1559
  this.request = new HttpRequest({
1471
1560
  BASE: config?.BASE ?? "http://localhost:8600",
1472
- VERSION: config?.VERSION ?? "0.2.2",
1561
+ VERSION: config?.VERSION ?? "0.2.7",
1473
1562
  WITH_CREDENTIALS: config?.WITH_CREDENTIALS ?? false,
1474
1563
  CREDENTIALS: config?.CREDENTIALS ?? "include",
1475
1564
  TOKEN: config?.TOKEN,
@@ -1496,7 +1585,7 @@ var EnvSyncAPISDK = class {
1496
1585
  // src/core/OpenAPI.ts
1497
1586
  var OpenAPI = {
1498
1587
  BASE: "http://localhost:8600",
1499
- VERSION: "0.2.2",
1588
+ VERSION: "0.2.7",
1500
1589
  WITH_CREDENTIALS: false,
1501
1590
  CREDENTIALS: "include",
1502
1591
  TOKEN: void 0,
package/dist/index.mjs CHANGED
@@ -692,7 +692,7 @@ var AuditLogsService = class {
692
692
  * Retrieve audit logs for the organization with pagination
693
693
  * @param page
694
694
  * @param perPage
695
- * @returns GetAuditLogsResponse Audit logs retrieved successfully
695
+ * @returns GetAuditLogsResponseWrapper Audit logs retrieved successfully
696
696
  * @throws ApiError
697
697
  */
698
698
  getAuditLogs(page = "1", perPage = "20") {
@@ -752,6 +752,24 @@ var EnvironmentTypesService = class {
752
752
  }
753
753
  });
754
754
  }
755
+ /**
756
+ * Create Environment Type
757
+ * Create a new environment type
758
+ * @param requestBody
759
+ * @returns EnvTypeResponse Environment type created successfully
760
+ * @throws ApiError
761
+ */
762
+ createEnvType(requestBody) {
763
+ return this.httpRequest.request({
764
+ method: "POST",
765
+ url: "/api/env_type",
766
+ body: requestBody,
767
+ mediaType: "application/json",
768
+ errors: {
769
+ 500: `Internal server error`
770
+ }
771
+ });
772
+ }
755
773
  /**
756
774
  * Get Environment Type
757
775
  * Retrieve a specific environment type
@@ -771,6 +789,47 @@ var EnvironmentTypesService = class {
771
789
  }
772
790
  });
773
791
  }
792
+ /**
793
+ * Update Environment Type
794
+ * Update an existing environment type
795
+ * @param id
796
+ * @param requestBody
797
+ * @returns EnvTypeResponse Environment type updated successfully
798
+ * @throws ApiError
799
+ */
800
+ updateEnvType(id, requestBody) {
801
+ return this.httpRequest.request({
802
+ method: "PATCH",
803
+ url: "/api/env_type/{id}",
804
+ path: {
805
+ "id": id
806
+ },
807
+ body: requestBody,
808
+ mediaType: "application/json",
809
+ errors: {
810
+ 500: `Internal server error`
811
+ }
812
+ });
813
+ }
814
+ /**
815
+ * Delete Environment Type
816
+ * Delete an existing environment type
817
+ * @param id
818
+ * @returns DeleteEnvTypeRequest Environment type deleted successfully
819
+ * @throws ApiError
820
+ */
821
+ deleteEnvType(id) {
822
+ return this.httpRequest.request({
823
+ method: "DELETE",
824
+ url: "/api/env_type/{id}",
825
+ path: {
826
+ "id": id
827
+ },
828
+ errors: {
829
+ 500: `Internal server error`
830
+ }
831
+ });
832
+ }
774
833
  };
775
834
 
776
835
  // src/services/EnvironmentVariablesService.ts
@@ -858,7 +917,7 @@ var EnvironmentVariablesService = class {
858
917
  * Batch Create Environment Variables
859
918
  * Create multiple environment variables in a single request
860
919
  * @param requestBody
861
- * @returns EnvsResponse Environment variables created successfully
920
+ * @returns BatchEnvsResponse Environment variables created successfully
862
921
  * @throws ApiError
863
922
  */
864
923
  batchCreateEnvs(requestBody) {
@@ -876,7 +935,7 @@ var EnvironmentVariablesService = class {
876
935
  * Batch Update Environment Variables
877
936
  * Update multiple environment variables in a single request
878
937
  * @param requestBody
879
- * @returns EnvsResponse Environment variables updated successfully
938
+ * @returns BatchEnvsResponse Environment variables updated successfully
880
939
  * @throws ApiError
881
940
  */
882
941
  batchUpdateEnvs(requestBody) {
@@ -890,6 +949,24 @@ var EnvironmentVariablesService = class {
890
949
  }
891
950
  });
892
951
  }
952
+ /**
953
+ * 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
+ }
893
970
  /**
894
971
  * Update Environment Variable
895
972
  * Update an existing environment variable
@@ -1084,6 +1161,21 @@ var OnboardingService = class {
1084
1161
  }
1085
1162
  });
1086
1163
  }
1164
+ /**
1165
+ * Get All User Invites
1166
+ * Get all user invites
1167
+ * @returns GetUserInviteByTokenResponse User invites retrieved successfully
1168
+ * @throws ApiError
1169
+ */
1170
+ getAllUserInvites() {
1171
+ return this.httpRequest.request({
1172
+ method: "GET",
1173
+ url: "/api/onboarding/user",
1174
+ errors: {
1175
+ 500: `Internal server error`
1176
+ }
1177
+ });
1178
+ }
1087
1179
  /**
1088
1180
  * Delete User Invite
1089
1181
  * Delete user invite
@@ -1388,19 +1480,16 @@ var UsersService = class {
1388
1480
  * Update User Password
1389
1481
  * Update a user's password (Admin only)
1390
1482
  * @param id
1391
- * @param requestBody
1392
1483
  * @returns UserResponse Password update request sent successfully
1393
1484
  * @throws ApiError
1394
1485
  */
1395
- updatePassword(id, requestBody) {
1486
+ updatePassword(id) {
1396
1487
  return this.httpRequest.request({
1397
1488
  method: "PATCH",
1398
1489
  url: "/api/user/password/{id}",
1399
1490
  path: {
1400
1491
  "id": id
1401
1492
  },
1402
- body: requestBody,
1403
- mediaType: "application/json",
1404
1493
  errors: {
1405
1494
  500: `Internal server error`
1406
1495
  }
@@ -1426,7 +1515,7 @@ var EnvSyncAPISDK = class {
1426
1515
  constructor(config, HttpRequest = FetchHttpRequest) {
1427
1516
  this.request = new HttpRequest({
1428
1517
  BASE: config?.BASE ?? "http://localhost:8600",
1429
- VERSION: config?.VERSION ?? "0.2.2",
1518
+ VERSION: config?.VERSION ?? "0.2.7",
1430
1519
  WITH_CREDENTIALS: config?.WITH_CREDENTIALS ?? false,
1431
1520
  CREDENTIALS: config?.CREDENTIALS ?? "include",
1432
1521
  TOKEN: config?.TOKEN,
@@ -1453,7 +1542,7 @@ var EnvSyncAPISDK = class {
1453
1542
  // src/core/OpenAPI.ts
1454
1543
  var OpenAPI = {
1455
1544
  BASE: "http://localhost:8600",
1456
- VERSION: "0.2.2",
1545
+ VERSION: "0.2.7",
1457
1546
  WITH_CREDENTIALS: false,
1458
1547
  CREDENTIALS: "include",
1459
1548
  TOKEN: void 0,
package/package.json CHANGED
@@ -22,7 +22,7 @@
22
22
  "build": "tsup",
23
23
  "dev": "tsup --watch",
24
24
  "openapi": "openapi",
25
- "generate": "bun run generate:local",
25
+ "generate": "bun run generate:local && bun run build && bun publish",
26
26
  "generate:local": "bun run scripts/gen.ts"
27
27
  },
28
28
  "devDependencies": {
@@ -33,7 +33,7 @@
33
33
  "peerDependencies": {
34
34
  "typescript": "^5"
35
35
  },
36
- "version": "0.2.4",
36
+ "version": "0.2.7",
37
37
  "publishConfig": {
38
38
  "access": "public"
39
39
  }