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

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 = {
@@ -661,6 +736,13 @@ declare class OnboardingService {
661
736
  * @throws ApiError
662
737
  */
663
738
  createUserInvite(requestBody?: CreateUserInviteRequest): CancelablePromise<CreateUserInviteResponse>;
739
+ /**
740
+ * Get All User Invites
741
+ * Get all user invites
742
+ * @returns GetUserInviteByTokenResponse User invites retrieved successfully
743
+ * @throws ApiError
744
+ */
745
+ getAllUserInvites(): CancelablePromise<GetUserInviteByTokenResponse>;
664
746
  /**
665
747
  * Delete User Invite
666
748
  * Delete user invite
@@ -731,6 +813,7 @@ type CreateRoleRequest = {
731
813
  have_billing_options: boolean;
732
814
  have_webhook_access: boolean;
733
815
  is_admin: boolean;
816
+ color?: string;
734
817
  };
735
818
 
736
819
  type RolesResponse = Array<RoleResponse>;
@@ -801,10 +884,6 @@ declare class RolesService {
801
884
  deleteRole(id: string): CancelablePromise<RoleResponse>;
802
885
  }
803
886
 
804
- type UpdatePasswordRequest = {
805
- password: string;
806
- };
807
-
808
887
  type UpdateUserRequest = {
809
888
  full_name?: string;
810
889
  profile_picture_url?: string;
@@ -874,11 +953,10 @@ declare class UsersService {
874
953
  * Update User Password
875
954
  * Update a user's password (Admin only)
876
955
  * @param id
877
- * @param requestBody
878
956
  * @returns UserResponse Password update request sent successfully
879
957
  * @throws ApiError
880
958
  */
881
- updatePassword(id: string, requestBody?: UpdatePasswordRequest): CancelablePromise<UserResponse>;
959
+ updatePassword(id: string): CancelablePromise<UserResponse>;
882
960
  }
883
961
 
884
962
  type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
@@ -924,4 +1002,4 @@ type UploadFileError = {
924
1002
  error: string;
925
1003
  };
926
1004
 
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 };
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 };
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 = {
@@ -661,6 +736,13 @@ declare class OnboardingService {
661
736
  * @throws ApiError
662
737
  */
663
738
  createUserInvite(requestBody?: CreateUserInviteRequest): CancelablePromise<CreateUserInviteResponse>;
739
+ /**
740
+ * Get All User Invites
741
+ * Get all user invites
742
+ * @returns GetUserInviteByTokenResponse User invites retrieved successfully
743
+ * @throws ApiError
744
+ */
745
+ getAllUserInvites(): CancelablePromise<GetUserInviteByTokenResponse>;
664
746
  /**
665
747
  * Delete User Invite
666
748
  * Delete user invite
@@ -731,6 +813,7 @@ type CreateRoleRequest = {
731
813
  have_billing_options: boolean;
732
814
  have_webhook_access: boolean;
733
815
  is_admin: boolean;
816
+ color?: string;
734
817
  };
735
818
 
736
819
  type RolesResponse = Array<RoleResponse>;
@@ -801,10 +884,6 @@ declare class RolesService {
801
884
  deleteRole(id: string): CancelablePromise<RoleResponse>;
802
885
  }
803
886
 
804
- type UpdatePasswordRequest = {
805
- password: string;
806
- };
807
-
808
887
  type UpdateUserRequest = {
809
888
  full_name?: string;
810
889
  profile_picture_url?: string;
@@ -874,11 +953,10 @@ declare class UsersService {
874
953
  * Update User Password
875
954
  * Update a user's password (Admin only)
876
955
  * @param id
877
- * @param requestBody
878
956
  * @returns UserResponse Password update request sent successfully
879
957
  * @throws ApiError
880
958
  */
881
- updatePassword(id: string, requestBody?: UpdatePasswordRequest): CancelablePromise<UserResponse>;
959
+ updatePassword(id: string): CancelablePromise<UserResponse>;
882
960
  }
883
961
 
884
962
  type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
@@ -924,4 +1002,4 @@ type UploadFileError = {
924
1002
  error: string;
925
1003
  };
926
1004
 
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 };
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 };
@@ -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
@@ -1086,6 +1145,21 @@
1086
1145
  }
1087
1146
  });
1088
1147
  }
1148
+ /**
1149
+ * Get All User Invites
1150
+ * Get all user invites
1151
+ * @returns GetUserInviteByTokenResponse User invites retrieved successfully
1152
+ * @throws ApiError
1153
+ */
1154
+ getAllUserInvites() {
1155
+ return this.httpRequest.request({
1156
+ method: "GET",
1157
+ url: "/api/onboarding/user",
1158
+ errors: {
1159
+ 500: `Internal server error`
1160
+ }
1161
+ });
1162
+ }
1089
1163
  /**
1090
1164
  * Delete User Invite
1091
1165
  * Delete user invite
@@ -1390,19 +1464,16 @@
1390
1464
  * Update User Password
1391
1465
  * Update a user's password (Admin only)
1392
1466
  * @param id
1393
- * @param requestBody
1394
1467
  * @returns UserResponse Password update request sent successfully
1395
1468
  * @throws ApiError
1396
1469
  */
1397
- updatePassword(id, requestBody) {
1470
+ updatePassword(id) {
1398
1471
  return this.httpRequest.request({
1399
1472
  method: "PATCH",
1400
1473
  url: "/api/user/password/{id}",
1401
1474
  path: {
1402
1475
  "id": id
1403
1476
  },
1404
- body: requestBody,
1405
- mediaType: "application/json",
1406
1477
  errors: {
1407
1478
  500: `Internal server error`
1408
1479
  }
@@ -1428,7 +1499,7 @@
1428
1499
  constructor(config, HttpRequest = FetchHttpRequest) {
1429
1500
  this.request = new HttpRequest({
1430
1501
  BASE: config?.BASE ?? "http://localhost:8600",
1431
- VERSION: config?.VERSION ?? "0.2.2",
1502
+ VERSION: config?.VERSION ?? "0.2.6",
1432
1503
  WITH_CREDENTIALS: config?.WITH_CREDENTIALS ?? false,
1433
1504
  CREDENTIALS: config?.CREDENTIALS ?? "include",
1434
1505
  TOKEN: config?.TOKEN,
@@ -1455,7 +1526,7 @@
1455
1526
  // src/core/OpenAPI.ts
1456
1527
  var OpenAPI = {
1457
1528
  BASE: "http://localhost:8600",
1458
- VERSION: "0.2.2",
1529
+ VERSION: "0.2.6",
1459
1530
  WITH_CREDENTIALS: false,
1460
1531
  CREDENTIALS: "include",
1461
1532
  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
@@ -1127,6 +1186,21 @@ var OnboardingService = class {
1127
1186
  }
1128
1187
  });
1129
1188
  }
1189
+ /**
1190
+ * Get All User Invites
1191
+ * Get all user invites
1192
+ * @returns GetUserInviteByTokenResponse User invites retrieved successfully
1193
+ * @throws ApiError
1194
+ */
1195
+ getAllUserInvites() {
1196
+ return this.httpRequest.request({
1197
+ method: "GET",
1198
+ url: "/api/onboarding/user",
1199
+ errors: {
1200
+ 500: `Internal server error`
1201
+ }
1202
+ });
1203
+ }
1130
1204
  /**
1131
1205
  * Delete User Invite
1132
1206
  * Delete user invite
@@ -1431,19 +1505,16 @@ var UsersService = class {
1431
1505
  * Update User Password
1432
1506
  * Update a user's password (Admin only)
1433
1507
  * @param id
1434
- * @param requestBody
1435
1508
  * @returns UserResponse Password update request sent successfully
1436
1509
  * @throws ApiError
1437
1510
  */
1438
- updatePassword(id, requestBody) {
1511
+ updatePassword(id) {
1439
1512
  return this.httpRequest.request({
1440
1513
  method: "PATCH",
1441
1514
  url: "/api/user/password/{id}",
1442
1515
  path: {
1443
1516
  "id": id
1444
1517
  },
1445
- body: requestBody,
1446
- mediaType: "application/json",
1447
1518
  errors: {
1448
1519
  500: `Internal server error`
1449
1520
  }
@@ -1469,7 +1540,7 @@ var EnvSyncAPISDK = class {
1469
1540
  constructor(config, HttpRequest = FetchHttpRequest) {
1470
1541
  this.request = new HttpRequest({
1471
1542
  BASE: config?.BASE ?? "http://localhost:8600",
1472
- VERSION: config?.VERSION ?? "0.2.2",
1543
+ VERSION: config?.VERSION ?? "0.2.6",
1473
1544
  WITH_CREDENTIALS: config?.WITH_CREDENTIALS ?? false,
1474
1545
  CREDENTIALS: config?.CREDENTIALS ?? "include",
1475
1546
  TOKEN: config?.TOKEN,
@@ -1496,7 +1567,7 @@ var EnvSyncAPISDK = class {
1496
1567
  // src/core/OpenAPI.ts
1497
1568
  var OpenAPI = {
1498
1569
  BASE: "http://localhost:8600",
1499
- VERSION: "0.2.2",
1570
+ VERSION: "0.2.6",
1500
1571
  WITH_CREDENTIALS: false,
1501
1572
  CREDENTIALS: "include",
1502
1573
  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
@@ -1084,6 +1143,21 @@ var OnboardingService = class {
1084
1143
  }
1085
1144
  });
1086
1145
  }
1146
+ /**
1147
+ * Get All User Invites
1148
+ * Get all user invites
1149
+ * @returns GetUserInviteByTokenResponse User invites retrieved successfully
1150
+ * @throws ApiError
1151
+ */
1152
+ getAllUserInvites() {
1153
+ return this.httpRequest.request({
1154
+ method: "GET",
1155
+ url: "/api/onboarding/user",
1156
+ errors: {
1157
+ 500: `Internal server error`
1158
+ }
1159
+ });
1160
+ }
1087
1161
  /**
1088
1162
  * Delete User Invite
1089
1163
  * Delete user invite
@@ -1388,19 +1462,16 @@ var UsersService = class {
1388
1462
  * Update User Password
1389
1463
  * Update a user's password (Admin only)
1390
1464
  * @param id
1391
- * @param requestBody
1392
1465
  * @returns UserResponse Password update request sent successfully
1393
1466
  * @throws ApiError
1394
1467
  */
1395
- updatePassword(id, requestBody) {
1468
+ updatePassword(id) {
1396
1469
  return this.httpRequest.request({
1397
1470
  method: "PATCH",
1398
1471
  url: "/api/user/password/{id}",
1399
1472
  path: {
1400
1473
  "id": id
1401
1474
  },
1402
- body: requestBody,
1403
- mediaType: "application/json",
1404
1475
  errors: {
1405
1476
  500: `Internal server error`
1406
1477
  }
@@ -1426,7 +1497,7 @@ var EnvSyncAPISDK = class {
1426
1497
  constructor(config, HttpRequest = FetchHttpRequest) {
1427
1498
  this.request = new HttpRequest({
1428
1499
  BASE: config?.BASE ?? "http://localhost:8600",
1429
- VERSION: config?.VERSION ?? "0.2.2",
1500
+ VERSION: config?.VERSION ?? "0.2.6",
1430
1501
  WITH_CREDENTIALS: config?.WITH_CREDENTIALS ?? false,
1431
1502
  CREDENTIALS: config?.CREDENTIALS ?? "include",
1432
1503
  TOKEN: config?.TOKEN,
@@ -1453,7 +1524,7 @@ var EnvSyncAPISDK = class {
1453
1524
  // src/core/OpenAPI.ts
1454
1525
  var OpenAPI = {
1455
1526
  BASE: "http://localhost:8600",
1456
- VERSION: "0.2.2",
1527
+ VERSION: "0.2.6",
1457
1528
  WITH_CREDENTIALS: false,
1458
1529
  CREDENTIALS: "include",
1459
1530
  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.3",
36
+ "version": "0.2.6",
37
37
  "publishConfig": {
38
38
  "access": "public"
39
39
  }