@envsync-cloud/envsync-ts-sdk 0.1.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/README.md ADDED
@@ -0,0 +1,5 @@
1
+ # envsync-ts-sdk
2
+
3
+ This is generated SDK for EnvSync API developed by EnvSync Cloud
4
+
5
+ ## envsync-cloud
@@ -0,0 +1,702 @@
1
+ type ApiRequestOptions = {
2
+ readonly method: 'GET' | 'PUT' | 'POST' | 'DELETE' | 'OPTIONS' | 'HEAD' | 'PATCH';
3
+ readonly url: string;
4
+ readonly path?: Record<string, any>;
5
+ readonly cookies?: Record<string, any>;
6
+ readonly headers?: Record<string, any>;
7
+ readonly query?: Record<string, any>;
8
+ readonly formData?: Record<string, any>;
9
+ readonly body?: any;
10
+ readonly mediaType?: string;
11
+ readonly responseHeader?: string;
12
+ readonly errors?: Record<number, string>;
13
+ };
14
+
15
+ declare class CancelError extends Error {
16
+ constructor(message: string);
17
+ get isCancelled(): boolean;
18
+ }
19
+ interface OnCancel {
20
+ readonly isResolved: boolean;
21
+ readonly isRejected: boolean;
22
+ readonly isCancelled: boolean;
23
+ (cancelHandler: () => void): void;
24
+ }
25
+ declare class CancelablePromise<T> implements Promise<T> {
26
+ #private;
27
+ constructor(executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void, onCancel: OnCancel) => void);
28
+ get [Symbol.toStringTag](): string;
29
+ then<TResult1 = T, TResult2 = never>(onFulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | null, onRejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null): Promise<TResult1 | TResult2>;
30
+ catch<TResult = never>(onRejected?: ((reason: any) => TResult | PromiseLike<TResult>) | null): Promise<T | TResult>;
31
+ finally(onFinally?: (() => void) | null): Promise<T>;
32
+ cancel(): void;
33
+ get isCancelled(): boolean;
34
+ }
35
+
36
+ type Resolver<T> = (options: ApiRequestOptions) => Promise<T>;
37
+ type Headers = Record<string, string>;
38
+ type OpenAPIConfig = {
39
+ BASE: string;
40
+ VERSION: string;
41
+ WITH_CREDENTIALS: boolean;
42
+ CREDENTIALS: 'include' | 'omit' | 'same-origin';
43
+ TOKEN?: string | Resolver<string> | undefined;
44
+ USERNAME?: string | Resolver<string> | undefined;
45
+ PASSWORD?: string | Resolver<string> | undefined;
46
+ HEADERS?: Headers | Resolver<Headers> | undefined;
47
+ ENCODE_PATH?: ((path: string) => string) | undefined;
48
+ };
49
+ declare const OpenAPI: OpenAPIConfig;
50
+
51
+ declare abstract class BaseHttpRequest {
52
+ readonly config: OpenAPIConfig;
53
+ constructor(config: OpenAPIConfig);
54
+ abstract request<T>(options: ApiRequestOptions): CancelablePromise<T>;
55
+ }
56
+
57
+ type CreateAppRequest = {
58
+ name: string;
59
+ description: string;
60
+ metadata?: Record<string, any>;
61
+ };
62
+
63
+ type CreateAppResponse = {
64
+ message: string;
65
+ id: string;
66
+ };
67
+
68
+ type DeleteAppResponse = {
69
+ message: string;
70
+ };
71
+
72
+ type GetAppResponse = {
73
+ app: {
74
+ id: string;
75
+ name: string;
76
+ description: string;
77
+ metadata: Record<string, any>;
78
+ org_id: string;
79
+ created_at: string;
80
+ updated_at: string;
81
+ };
82
+ };
83
+
84
+ type GetAppsResponse = {
85
+ apps: Array<{
86
+ id: string;
87
+ name: string;
88
+ description: string;
89
+ metadata: Record<string, any>;
90
+ org_id: string;
91
+ created_at: string;
92
+ updated_at: string;
93
+ }>;
94
+ };
95
+
96
+ type UpdateAppRequest = {
97
+ name?: string;
98
+ description?: string;
99
+ metadata?: Record<string, any>;
100
+ };
101
+
102
+ type UpdateAppResponse = {
103
+ message: string;
104
+ };
105
+
106
+ declare class ApplicationsService {
107
+ readonly httpRequest: BaseHttpRequest;
108
+ constructor(httpRequest: BaseHttpRequest);
109
+ /**
110
+ * Get All Applications
111
+ * Retrieve all applications for the organization
112
+ * @returns GetAppsResponse Applications retrieved successfully
113
+ * @throws ApiError
114
+ */
115
+ getApps(): CancelablePromise<GetAppsResponse>;
116
+ /**
117
+ * Create Application
118
+ * Create a new application
119
+ * @param requestBody
120
+ * @returns CreateAppResponse Application created successfully
121
+ * @throws ApiError
122
+ */
123
+ createApp(requestBody?: CreateAppRequest): CancelablePromise<CreateAppResponse>;
124
+ /**
125
+ * Get Application
126
+ * Retrieve a specific application by ID
127
+ * @param id
128
+ * @returns GetAppResponse Application retrieved successfully
129
+ * @throws ApiError
130
+ */
131
+ getApp(id: string): CancelablePromise<GetAppResponse>;
132
+ /**
133
+ * Update Application
134
+ * Update an existing application
135
+ * @param id
136
+ * @param requestBody
137
+ * @returns UpdateAppResponse Application updated successfully
138
+ * @throws ApiError
139
+ */
140
+ updateApp(id: string, requestBody?: UpdateAppRequest): CancelablePromise<UpdateAppResponse>;
141
+ /**
142
+ * Delete Application
143
+ * Delete an existing application
144
+ * @param id
145
+ * @returns DeleteAppResponse Application deleted successfully
146
+ * @throws ApiError
147
+ */
148
+ deleteApp(id: string): CancelablePromise<DeleteAppResponse>;
149
+ }
150
+
151
+ type GetAuditLogsResponse = Array<{
152
+ id: string;
153
+ action: string;
154
+ org_id: string;
155
+ user_id: string;
156
+ details: string;
157
+ created_at: string;
158
+ updated_at: string;
159
+ }>;
160
+
161
+ declare class AuditLogsService {
162
+ readonly httpRequest: BaseHttpRequest;
163
+ constructor(httpRequest: BaseHttpRequest);
164
+ /**
165
+ * Get Audit Logs
166
+ * Retrieve audit logs for the organization with pagination
167
+ * @param page
168
+ * @param perPage
169
+ * @returns GetAuditLogsResponse Audit logs retrieved successfully
170
+ * @throws ApiError
171
+ */
172
+ getAuditLogs(page?: number, perPage?: number): CancelablePromise<GetAuditLogsResponse>;
173
+ }
174
+
175
+ type WhoAmIResponse = {
176
+ user: {
177
+ id: string;
178
+ email: string;
179
+ full_name: string;
180
+ org_id: string;
181
+ role_id: string;
182
+ profile_picture_url: string | null;
183
+ is_active: boolean;
184
+ created_at: string;
185
+ updated_at: string;
186
+ };
187
+ org: {
188
+ id: string;
189
+ name: string;
190
+ logo_url: string | null;
191
+ slug: string;
192
+ size: string | null;
193
+ website: string | null;
194
+ metadata: Record<string, any>;
195
+ created_at: string;
196
+ updated_at: string;
197
+ };
198
+ };
199
+
200
+ declare class AuthenticationService {
201
+ readonly httpRequest: BaseHttpRequest;
202
+ constructor(httpRequest: BaseHttpRequest);
203
+ /**
204
+ * Get Current User
205
+ * Retrieve the current authenticated user's information and their organization details
206
+ * @returns WhoAmIResponse User information retrieved successfully
207
+ * @throws ApiError
208
+ */
209
+ whoami(): CancelablePromise<WhoAmIResponse>;
210
+ }
211
+
212
+ type CreateEnvTypeRequest = {
213
+ name: string;
214
+ };
215
+
216
+ type DeleteEnvTypeRequest = {
217
+ id: string;
218
+ };
219
+
220
+ type EnvTypeResponse = {
221
+ id: string;
222
+ name: string;
223
+ org_id: string;
224
+ created_at: string;
225
+ updated_at: string;
226
+ };
227
+
228
+ type EnvTypesResponse = Array<EnvTypeResponse>;
229
+
230
+ type UpdateEnvTypeRequest = {
231
+ id: string;
232
+ name: string;
233
+ };
234
+
235
+ declare class EnvironmentTypesService {
236
+ readonly httpRequest: BaseHttpRequest;
237
+ constructor(httpRequest: BaseHttpRequest);
238
+ /**
239
+ * Get Environment Types
240
+ * Retrieve all environment types for the organization
241
+ * @returns EnvTypesResponse Environment types retrieved successfully
242
+ * @throws ApiError
243
+ */
244
+ getEnvTypes(): CancelablePromise<EnvTypesResponse>;
245
+ /**
246
+ * Create Environment Type
247
+ * Create a new environment type
248
+ * @param requestBody
249
+ * @returns EnvTypeResponse Environment type created successfully
250
+ * @throws ApiError
251
+ */
252
+ createEnvType(requestBody?: CreateEnvTypeRequest): CancelablePromise<EnvTypeResponse>;
253
+ /**
254
+ * Get Environment Type
255
+ * Retrieve a specific environment type
256
+ * @param id
257
+ * @returns EnvTypeResponse Environment type retrieved successfully
258
+ * @throws ApiError
259
+ */
260
+ getEnvType(id: string): CancelablePromise<EnvTypeResponse>;
261
+ /**
262
+ * Update Environment Type
263
+ * Update an existing environment type
264
+ * @param id
265
+ * @param requestBody
266
+ * @returns EnvTypeResponse Environment type updated successfully
267
+ * @throws ApiError
268
+ */
269
+ updateEnvType(id: string, requestBody?: UpdateEnvTypeRequest): CancelablePromise<EnvTypeResponse>;
270
+ /**
271
+ * Delete Environment Type
272
+ * Delete an existing environment type
273
+ * @param id
274
+ * @returns DeleteEnvTypeRequest Environment type deleted successfully
275
+ * @throws ApiError
276
+ */
277
+ deleteEnvType(id: string): CancelablePromise<DeleteEnvTypeRequest>;
278
+ }
279
+
280
+ type BatchCreateEnvsRequest = {
281
+ app_id: string;
282
+ env_type_id: string;
283
+ envs: Array<{
284
+ key: string;
285
+ value: string;
286
+ }>;
287
+ };
288
+
289
+ type CreateEnvRequest = {
290
+ key: string;
291
+ value: string;
292
+ app_id: string;
293
+ env_type_id: string;
294
+ };
295
+
296
+ type DeleteEnvRequest = {
297
+ app_id: string;
298
+ env_type_id: string;
299
+ key: string;
300
+ };
301
+
302
+ type EnvResponse = {
303
+ id: string;
304
+ key: string;
305
+ value: string;
306
+ app_id: string;
307
+ env_type_id: string;
308
+ org_id: string;
309
+ created_at: string;
310
+ updated_at: string;
311
+ };
312
+
313
+ type EnvsResponse = Array<EnvResponse>;
314
+
315
+ type GetEnvRequest = {
316
+ app_id: string;
317
+ env_type_id: string;
318
+ };
319
+
320
+ type UpdateEnvRequest = {
321
+ value: string;
322
+ app_id: string;
323
+ env_type_id: string;
324
+ };
325
+
326
+ declare class EnvironmentVariablesService {
327
+ readonly httpRequest: BaseHttpRequest;
328
+ constructor(httpRequest: BaseHttpRequest);
329
+ /**
330
+ * Get Environment Variables
331
+ * Retrieve all environment variables for an application and environment type
332
+ * @param requestBody
333
+ * @returns EnvsResponse Environment variables retrieved successfully
334
+ * @throws ApiError
335
+ */
336
+ getEnvs(requestBody?: GetEnvRequest): CancelablePromise<EnvsResponse>;
337
+ /**
338
+ * Delete Environment Variable
339
+ * Delete an existing environment variable
340
+ * @param requestBody
341
+ * @returns DeleteEnvRequest Environment variable deleted successfully
342
+ * @throws ApiError
343
+ */
344
+ deleteEnv(requestBody?: DeleteEnvRequest): CancelablePromise<DeleteEnvRequest>;
345
+ /**
346
+ * Get Single Environment Variable
347
+ * Retrieve a specific environment variable
348
+ * @param key
349
+ * @param requestBody
350
+ * @returns EnvResponse Environment variable retrieved successfully
351
+ * @throws ApiError
352
+ */
353
+ getEnv(key: string, requestBody?: GetEnvRequest): CancelablePromise<EnvResponse>;
354
+ /**
355
+ * Update Environment Variable
356
+ * Update an existing environment variable
357
+ * @param key
358
+ * @param requestBody
359
+ * @returns EnvResponse Environment variable updated successfully
360
+ * @throws ApiError
361
+ */
362
+ updateEnv(key: string, requestBody?: UpdateEnvRequest): CancelablePromise<EnvResponse>;
363
+ /**
364
+ * Create Environment Variable
365
+ * Create a new environment variable
366
+ * @param requestBody
367
+ * @returns EnvResponse Environment variable created successfully
368
+ * @throws ApiError
369
+ */
370
+ createEnv(requestBody?: CreateEnvRequest): CancelablePromise<EnvResponse>;
371
+ /**
372
+ * Batch Create Environment Variables
373
+ * Create multiple environment variables in a single request
374
+ * @param requestBody
375
+ * @returns EnvsResponse Environment variables created successfully
376
+ * @throws ApiError
377
+ */
378
+ batchCreateEnvs(requestBody?: BatchCreateEnvsRequest): CancelablePromise<EnvsResponse>;
379
+ }
380
+
381
+ type AcceptOrgInviteRequest = {
382
+ org_data: {
383
+ name: string;
384
+ size: string;
385
+ website: string;
386
+ };
387
+ user_data: {
388
+ full_name: string;
389
+ password: string;
390
+ };
391
+ };
392
+
393
+ type AcceptOrgInviteResponse = {
394
+ message: string;
395
+ };
396
+
397
+ type AcceptUserInviteRequest = {
398
+ full_name: string;
399
+ password: string;
400
+ };
401
+
402
+ type AcceptUserInviteResponse = {
403
+ message: string;
404
+ };
405
+
406
+ type CreateOrgInviteRequest = {
407
+ email: string;
408
+ };
409
+
410
+ type CreateOrgInviteResponse = {
411
+ message: string;
412
+ };
413
+
414
+ type CreateUserInviteRequest = {
415
+ email: string;
416
+ role_id: string;
417
+ };
418
+
419
+ type CreateUserInviteResponse = {
420
+ message: string;
421
+ };
422
+
423
+ type DeleteUserInviteResponse = {
424
+ message: string;
425
+ };
426
+
427
+ type GetOrgInviteByCodeResponse = {
428
+ invite: {
429
+ id: string;
430
+ email: string;
431
+ invite_token: string;
432
+ is_accepted: boolean;
433
+ created_at: string;
434
+ updated_at: string;
435
+ };
436
+ };
437
+
438
+ type GetUserInviteByTokenResponse = {
439
+ invite: {
440
+ id: string;
441
+ email: string;
442
+ invite_token: string;
443
+ role_id: string;
444
+ org_id: string;
445
+ is_accepted: boolean;
446
+ created_at: string;
447
+ updated_at: string;
448
+ };
449
+ };
450
+
451
+ type UpdateUserInviteRequest = {
452
+ role_id: string;
453
+ };
454
+
455
+ type UpdateUserInviteResponse = {
456
+ message: string;
457
+ };
458
+
459
+ declare class OnboardingService {
460
+ readonly httpRequest: BaseHttpRequest;
461
+ constructor(httpRequest: BaseHttpRequest);
462
+ /**
463
+ * Create Organization Invite
464
+ * Create an organization invite
465
+ * @param requestBody
466
+ * @returns CreateOrgInviteResponse Successful greeting response
467
+ * @throws ApiError
468
+ */
469
+ createOrgInvite(requestBody?: CreateOrgInviteRequest): CancelablePromise<CreateOrgInviteResponse>;
470
+ /**
471
+ * Get Organization Invite by Code
472
+ * Get organization invite by code
473
+ * @param inviteCode
474
+ * @returns GetOrgInviteByCodeResponse Organization invite retrieved successfully
475
+ * @throws ApiError
476
+ */
477
+ getOrgInviteByCode(inviteCode: string): CancelablePromise<GetOrgInviteByCodeResponse>;
478
+ /**
479
+ * Accept Organization Invite
480
+ * Accept organization invite
481
+ * @param inviteCode
482
+ * @param requestBody
483
+ * @returns AcceptOrgInviteResponse Organization invite accepted successfully
484
+ * @throws ApiError
485
+ */
486
+ acceptOrgInvite(inviteCode: string, requestBody?: AcceptOrgInviteRequest): CancelablePromise<AcceptOrgInviteResponse>;
487
+ /**
488
+ * Get User Invite by Code
489
+ * Get user invite by code
490
+ * @param inviteCode
491
+ * @returns GetUserInviteByTokenResponse User invite retrieved successfully
492
+ * @throws ApiError
493
+ */
494
+ getUserInviteByCode(inviteCode: string): CancelablePromise<GetUserInviteByTokenResponse>;
495
+ /**
496
+ * Update User Invite
497
+ * Update user invite
498
+ * @param inviteCode
499
+ * @param requestBody
500
+ * @returns UpdateUserInviteResponse User invite updated successfully
501
+ * @throws ApiError
502
+ */
503
+ updateUserInvite(inviteCode: string, requestBody?: UpdateUserInviteRequest): CancelablePromise<UpdateUserInviteResponse>;
504
+ /**
505
+ * Accept User Invite
506
+ * Accept user invite
507
+ * @param inviteCode
508
+ * @param requestBody
509
+ * @returns AcceptUserInviteResponse User invite accepted successfully
510
+ * @throws ApiError
511
+ */
512
+ acceptUserInvite(inviteCode: string, requestBody?: AcceptUserInviteRequest): CancelablePromise<AcceptUserInviteResponse>;
513
+ /**
514
+ * Create User Invite
515
+ * Create a user invite
516
+ * @param requestBody
517
+ * @returns CreateUserInviteResponse User invite created successfully
518
+ * @throws ApiError
519
+ */
520
+ createUserInvite(requestBody?: CreateUserInviteRequest): CancelablePromise<CreateUserInviteResponse>;
521
+ /**
522
+ * Delete User Invite
523
+ * Delete user invite
524
+ * @param inviteId
525
+ * @param requestBody
526
+ * @returns DeleteUserInviteResponse User invite deleted successfully
527
+ * @throws ApiError
528
+ */
529
+ deleteUserInvite(inviteId: string, requestBody?: DeleteUserInviteResponse): CancelablePromise<DeleteUserInviteResponse>;
530
+ }
531
+
532
+ type CheckSlugResponse = {
533
+ exists: boolean;
534
+ };
535
+
536
+ type OrgResponse = {
537
+ id: string;
538
+ name: string;
539
+ logo_url: string | null;
540
+ slug: string;
541
+ size: string | null;
542
+ website: string | null;
543
+ metadata: Record<string, any>;
544
+ created_at: string;
545
+ updated_at: string;
546
+ };
547
+
548
+ type UpdateOrgRequest = {
549
+ logo_url?: string;
550
+ website?: string;
551
+ name?: string;
552
+ slug?: string;
553
+ };
554
+
555
+ declare class OrganizationsService {
556
+ readonly httpRequest: BaseHttpRequest;
557
+ constructor(httpRequest: BaseHttpRequest);
558
+ /**
559
+ * Get Organization
560
+ * Retrieve the current organization's details
561
+ * @returns OrgResponse Organization retrieved successfully
562
+ * @throws ApiError
563
+ */
564
+ getOrg(): CancelablePromise<OrgResponse>;
565
+ /**
566
+ * Update Organization
567
+ * Update the current organization's details
568
+ * @param requestBody
569
+ * @returns OrgResponse Organization updated successfully
570
+ * @throws ApiError
571
+ */
572
+ updateOrg(requestBody?: UpdateOrgRequest): CancelablePromise<OrgResponse>;
573
+ /**
574
+ * Check Slug Availability
575
+ * Check if an organization slug is available
576
+ * @param slug
577
+ * @returns CheckSlugResponse Slug availability checked successfully
578
+ * @throws ApiError
579
+ */
580
+ checkIfSlugExists(slug: string): CancelablePromise<CheckSlugResponse>;
581
+ }
582
+
583
+ type UpdatePasswordRequest = {
584
+ password: string;
585
+ };
586
+
587
+ type UpdateRoleRequest = {
588
+ role_id: string;
589
+ };
590
+
591
+ type UpdateUserRequest = {
592
+ full_name?: string;
593
+ profile_picture_url?: string;
594
+ email?: string;
595
+ };
596
+
597
+ type UserResponse = {
598
+ id: string;
599
+ email: string;
600
+ full_name: string;
601
+ profile_picture_url: string | null;
602
+ org_id: string;
603
+ role_id: string;
604
+ auth0_id: string | null;
605
+ is_active: boolean;
606
+ created_at: string;
607
+ updated_at: string;
608
+ };
609
+
610
+ type UsersResponse = Array<UserResponse>;
611
+
612
+ declare class UsersService {
613
+ readonly httpRequest: BaseHttpRequest;
614
+ constructor(httpRequest: BaseHttpRequest);
615
+ /**
616
+ * Get All Users
617
+ * Retrieve all users in the organization
618
+ * @returns UsersResponse Users retrieved successfully
619
+ * @throws ApiError
620
+ */
621
+ getUsers(): CancelablePromise<UsersResponse>;
622
+ /**
623
+ * Get User by ID
624
+ * Retrieve a specific user by their ID
625
+ * @param id
626
+ * @returns UserResponse User retrieved successfully
627
+ * @throws ApiError
628
+ */
629
+ getUserById(id: string): CancelablePromise<UserResponse>;
630
+ /**
631
+ * Update User
632
+ * Update a user's profile information
633
+ * @param id
634
+ * @param requestBody
635
+ * @returns UserResponse User updated successfully
636
+ * @throws ApiError
637
+ */
638
+ updateUser(id: string, requestBody?: UpdateUserRequest): CancelablePromise<UserResponse>;
639
+ /**
640
+ * Delete User
641
+ * Delete a user from the organization (Admin only)
642
+ * @param id
643
+ * @returns UserResponse User deleted successfully
644
+ * @throws ApiError
645
+ */
646
+ deleteUser(id: string): CancelablePromise<UserResponse>;
647
+ /**
648
+ * Update User Role
649
+ * Update a user's role (Admin only)
650
+ * @param id
651
+ * @param requestBody
652
+ * @returns UserResponse User role updated successfully
653
+ * @throws ApiError
654
+ */
655
+ updateRole(id: string, requestBody?: UpdateRoleRequest): CancelablePromise<UserResponse>;
656
+ /**
657
+ * Update User Password
658
+ * Update a user's password (Admin only)
659
+ * @param id
660
+ * @param requestBody
661
+ * @returns UserResponse Password update request sent successfully
662
+ * @throws ApiError
663
+ */
664
+ updatePassword(id: string, requestBody?: UpdatePasswordRequest): CancelablePromise<UserResponse>;
665
+ }
666
+
667
+ type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
668
+ declare class EnvSyncAPISDK {
669
+ readonly applications: ApplicationsService;
670
+ readonly auditLogs: AuditLogsService;
671
+ readonly authentication: AuthenticationService;
672
+ readonly environmentTypes: EnvironmentTypesService;
673
+ readonly environmentVariables: EnvironmentVariablesService;
674
+ readonly onboarding: OnboardingService;
675
+ readonly organizations: OrganizationsService;
676
+ readonly users: UsersService;
677
+ readonly request: BaseHttpRequest;
678
+ constructor(config?: Partial<OpenAPIConfig>, HttpRequest?: HttpRequestConstructor);
679
+ }
680
+
681
+ type ApiResult = {
682
+ readonly url: string;
683
+ readonly ok: boolean;
684
+ readonly status: number;
685
+ readonly statusText: string;
686
+ readonly body: any;
687
+ };
688
+
689
+ declare class ApiError extends Error {
690
+ readonly url: string;
691
+ readonly status: number;
692
+ readonly statusText: string;
693
+ readonly body: any;
694
+ readonly request: ApiRequestOptions;
695
+ constructor(request: ApiRequestOptions, response: ApiResult, message: string);
696
+ }
697
+
698
+ type ErrorResponse = {
699
+ error: string;
700
+ };
701
+
702
+ export { type AcceptOrgInviteRequest, type AcceptOrgInviteResponse, type AcceptUserInviteRequest, type AcceptUserInviteResponse, ApiError, ApplicationsService, AuditLogsService, AuthenticationService, BaseHttpRequest, type BatchCreateEnvsRequest, CancelError, CancelablePromise, type CheckSlugResponse, type CreateAppRequest, type CreateAppResponse, type CreateEnvRequest, type CreateEnvTypeRequest, type CreateOrgInviteRequest, type CreateOrgInviteResponse, 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, type GetAppResponse, type GetAppsResponse, type GetAuditLogsResponse, type GetEnvRequest, type GetOrgInviteByCodeResponse, type GetUserInviteByTokenResponse, OnboardingService, OpenAPI, type OpenAPIConfig, type OrgResponse, OrganizationsService, type UpdateAppRequest, type UpdateAppResponse, type UpdateEnvRequest, type UpdateEnvTypeRequest, type UpdateOrgRequest, type UpdatePasswordRequest, type UpdateRoleRequest, type UpdateUserInviteRequest, type UpdateUserInviteResponse, type UpdateUserRequest, type UserResponse, type UsersResponse, UsersService, type WhoAmIResponse };