@flagpole/api-types 1.0.1
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 +54 -0
- package/index.d.ts +1 -0
- package/index.js +1 -0
- package/lib/flagpole-api-types.d.ts +1579 -0
- package/lib/flagpole-api-types.js +827 -0
- package/package.json +44 -0
|
@@ -0,0 +1,1579 @@
|
|
|
1
|
+
export type AcceptInvitationDto = object;
|
|
2
|
+
export interface ActivateOrganizationDto {
|
|
3
|
+
/**
|
|
4
|
+
* Whether to activate users in the organization as well
|
|
5
|
+
* @default true
|
|
6
|
+
* @example true
|
|
7
|
+
*/
|
|
8
|
+
activateUsers: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface AddUserToOrganizationDto {
|
|
11
|
+
/**
|
|
12
|
+
* Email of the user to add to the organization
|
|
13
|
+
* @example "user@example.com"
|
|
14
|
+
*/
|
|
15
|
+
email: string;
|
|
16
|
+
/**
|
|
17
|
+
* Role of the user in the organization
|
|
18
|
+
* @default "member"
|
|
19
|
+
*/
|
|
20
|
+
role?: "owner" | "admin" | "member";
|
|
21
|
+
}
|
|
22
|
+
export type ApiKeysControllerCreateData = any;
|
|
23
|
+
export type ApiKeysControllerDeactivateData = any;
|
|
24
|
+
export type ApiKeysControllerFindAllData = any;
|
|
25
|
+
export type AuthControllerAcceptInvitationData = any;
|
|
26
|
+
export type AuthControllerForgotPasswordData = any;
|
|
27
|
+
export type AuthControllerGetCurrentUserData = any;
|
|
28
|
+
export type AuthControllerGoogleAuthRedirectData = any;
|
|
29
|
+
export type AuthControllerLoginData = any;
|
|
30
|
+
export type AuthControllerLogoutData = any;
|
|
31
|
+
export type AuthControllerResetPasswordData = any;
|
|
32
|
+
export interface CheckoutSessionResponseDto {
|
|
33
|
+
/** @example "cs_test_1234567890" */
|
|
34
|
+
id: string;
|
|
35
|
+
/** @example "https://checkout.stripe.com/pay/cs_test_1234567890" */
|
|
36
|
+
url: object | null;
|
|
37
|
+
}
|
|
38
|
+
export type CreateApiKeyDto = object;
|
|
39
|
+
export interface CreateCheckoutSessionByPlanDto {
|
|
40
|
+
/**
|
|
41
|
+
* Existing Stripe customer ID
|
|
42
|
+
* @example "cus_1234567890"
|
|
43
|
+
*/
|
|
44
|
+
customerId?: string;
|
|
45
|
+
/**
|
|
46
|
+
* Billing interval
|
|
47
|
+
* @default "month"
|
|
48
|
+
* @example "month"
|
|
49
|
+
*/
|
|
50
|
+
interval?: "month" | "year";
|
|
51
|
+
/**
|
|
52
|
+
* Additional metadata to attach to the checkout session
|
|
53
|
+
* @example {"organizationId":"org_123"}
|
|
54
|
+
*/
|
|
55
|
+
metadata?: object;
|
|
56
|
+
/**
|
|
57
|
+
* The plan type to create checkout session for
|
|
58
|
+
* @example "professional"
|
|
59
|
+
*/
|
|
60
|
+
planType: "basic" | "professional" | "enterprise";
|
|
61
|
+
/**
|
|
62
|
+
* Number of trial days to offer
|
|
63
|
+
* @example 14
|
|
64
|
+
*/
|
|
65
|
+
trialPeriodDays?: number;
|
|
66
|
+
}
|
|
67
|
+
export type CreateCheckoutSessionDto = object;
|
|
68
|
+
export type CreateFeatureFlagDto = object;
|
|
69
|
+
export interface CreateOrganizationDto {
|
|
70
|
+
/**
|
|
71
|
+
* The name of the organization
|
|
72
|
+
* @example "Acme Corporation"
|
|
73
|
+
*/
|
|
74
|
+
name: string;
|
|
75
|
+
/**
|
|
76
|
+
* Organization-specific settings
|
|
77
|
+
* @example {"theme":"dark"}
|
|
78
|
+
*/
|
|
79
|
+
settings?: object;
|
|
80
|
+
/**
|
|
81
|
+
* URL-friendly name of the organization
|
|
82
|
+
* @example "acme-corp"
|
|
83
|
+
*/
|
|
84
|
+
slug: string;
|
|
85
|
+
}
|
|
86
|
+
export type CreatePaymentIntentDto = object;
|
|
87
|
+
export interface CreateProjectDto {
|
|
88
|
+
/**
|
|
89
|
+
* Optional project description
|
|
90
|
+
* @example "Feature flags for our mobile application"
|
|
91
|
+
*/
|
|
92
|
+
description?: string;
|
|
93
|
+
/**
|
|
94
|
+
* Project name (letters, numbers, hyphens, and underscores only, min 3 characters)
|
|
95
|
+
* @example "mobile-app-v2"
|
|
96
|
+
*/
|
|
97
|
+
name: string;
|
|
98
|
+
}
|
|
99
|
+
export interface DemoRequestDto {
|
|
100
|
+
/**
|
|
101
|
+
* Company name
|
|
102
|
+
* @example "Acme Corporation"
|
|
103
|
+
*/
|
|
104
|
+
companyName: string;
|
|
105
|
+
/**
|
|
106
|
+
* Email address for demo account
|
|
107
|
+
* @example "john.doe@company.com"
|
|
108
|
+
*/
|
|
109
|
+
email: string;
|
|
110
|
+
/**
|
|
111
|
+
* Full name of the person requesting the demo
|
|
112
|
+
* @example "John Doe"
|
|
113
|
+
*/
|
|
114
|
+
name: string;
|
|
115
|
+
/**
|
|
116
|
+
* Additional information about the demo request
|
|
117
|
+
* @example "Looking to implement feature flags in our e-commerce platform"
|
|
118
|
+
*/
|
|
119
|
+
notes?: string;
|
|
120
|
+
}
|
|
121
|
+
export type FeatureFlag = object;
|
|
122
|
+
export type FeatureFlagControllerCreateData = FeatureFlag;
|
|
123
|
+
export type FeatureFlagControllerDeleteData = any;
|
|
124
|
+
export type FeatureFlagControllerFindAllData = FeatureFlag[];
|
|
125
|
+
export type FeatureFlagControllerFindAllSdkData = FeatureFlag[];
|
|
126
|
+
export interface FeatureFlagControllerFindAllSdkParams {
|
|
127
|
+
environments: string;
|
|
128
|
+
}
|
|
129
|
+
export type FeatureFlagControllerToggleData = FeatureFlag;
|
|
130
|
+
export type FeatureFlagControllerUpdateData = any;
|
|
131
|
+
export type FeedbackControllerSubmitData = any;
|
|
132
|
+
export interface ForgotPasswordDto {
|
|
133
|
+
/**
|
|
134
|
+
* Email address to send password reset link
|
|
135
|
+
* @example "user@example.com"
|
|
136
|
+
*/
|
|
137
|
+
email: string;
|
|
138
|
+
}
|
|
139
|
+
export type InviteUserDto = object;
|
|
140
|
+
export interface LoginDto {
|
|
141
|
+
/**
|
|
142
|
+
* User's email address
|
|
143
|
+
* @example "user@example.com"
|
|
144
|
+
*/
|
|
145
|
+
email: string;
|
|
146
|
+
/**
|
|
147
|
+
* User's password
|
|
148
|
+
* @example "password123"
|
|
149
|
+
*/
|
|
150
|
+
password: string;
|
|
151
|
+
}
|
|
152
|
+
export type OnboardingControllerRequestDemoData = any;
|
|
153
|
+
export type OrganizationsControllerActivateOrganizationData = any;
|
|
154
|
+
export type OrganizationsControllerAddUserData = any;
|
|
155
|
+
export type OrganizationsControllerCreateData = any;
|
|
156
|
+
export type OrganizationsControllerFindAllData = any;
|
|
157
|
+
export interface OrganizationsControllerFindAllParams {
|
|
158
|
+
/** @default 1 */
|
|
159
|
+
page?: number;
|
|
160
|
+
/** @default 50 */
|
|
161
|
+
limit?: number;
|
|
162
|
+
includeDetails?: boolean;
|
|
163
|
+
status?: string[];
|
|
164
|
+
search?: string;
|
|
165
|
+
}
|
|
166
|
+
export type OrganizationsControllerGetDemoRequestsData = any;
|
|
167
|
+
export type OrganizationsControllerSwitchOrganizationData = any;
|
|
168
|
+
export interface ProductFeaturesDto {
|
|
169
|
+
/** @example "Get Professional" */
|
|
170
|
+
buttonText: string;
|
|
171
|
+
/** @example ["50 team members","50 projects","500 flags per project"] */
|
|
172
|
+
description: string[];
|
|
173
|
+
/** @example "Recommended" */
|
|
174
|
+
subheader?: string;
|
|
175
|
+
}
|
|
176
|
+
export interface ProductMetadataDto {
|
|
177
|
+
/** @example "user,percentage,geo" */
|
|
178
|
+
available_conditions?: string;
|
|
179
|
+
/** @example "500" */
|
|
180
|
+
max_flags_per_project?: string;
|
|
181
|
+
/** @example "50" */
|
|
182
|
+
max_projects?: string;
|
|
183
|
+
/** @example "50" */
|
|
184
|
+
max_users?: string;
|
|
185
|
+
/** @example "professional" */
|
|
186
|
+
plan_type: "basic" | "professional" | "enterprise";
|
|
187
|
+
}
|
|
188
|
+
export interface ProductPriceDto {
|
|
189
|
+
/** @example "usd" */
|
|
190
|
+
currency: string;
|
|
191
|
+
/** @example "price_1234567890" */
|
|
192
|
+
id: string;
|
|
193
|
+
recurring?: object;
|
|
194
|
+
/** @example 2999 */
|
|
195
|
+
unit_amount: number;
|
|
196
|
+
}
|
|
197
|
+
export interface ProductWithFeaturesDto {
|
|
198
|
+
/** @example "Perfect for growing teams" */
|
|
199
|
+
description?: string;
|
|
200
|
+
features: ProductFeaturesDto;
|
|
201
|
+
/** @example "prod_1234567890" */
|
|
202
|
+
id: string;
|
|
203
|
+
metadata: ProductMetadataDto;
|
|
204
|
+
/** @example "Professional Plan" */
|
|
205
|
+
name: string;
|
|
206
|
+
prices: ProductPriceDto[];
|
|
207
|
+
}
|
|
208
|
+
export type ProjectsControllerCreateData = any;
|
|
209
|
+
export type ProjectsControllerDeleteData = any;
|
|
210
|
+
export type ProjectsControllerFindAllData = any;
|
|
211
|
+
export type ProjectsControllerUpdateData = any;
|
|
212
|
+
export interface ResetPasswordDto {
|
|
213
|
+
/**
|
|
214
|
+
* New password
|
|
215
|
+
* @minLength 8
|
|
216
|
+
*/
|
|
217
|
+
password: string;
|
|
218
|
+
/** Password reset token */
|
|
219
|
+
token: string;
|
|
220
|
+
}
|
|
221
|
+
export type StripeControllerCancelSubscriptionData = any;
|
|
222
|
+
export type StripeControllerCreateCheckoutSessionByPlanData = CheckoutSessionResponseDto;
|
|
223
|
+
export type StripeControllerCreateCheckoutSessionData = CheckoutSessionResponseDto;
|
|
224
|
+
export type StripeControllerCreatePaymentIntentData = any;
|
|
225
|
+
export type StripeControllerGetCustomerSubscriptionsData = any;
|
|
226
|
+
export type StripeControllerGetEnvironmentData = StripeEnvironmentResponseDto;
|
|
227
|
+
export type StripeControllerGetProductsData = StripeProductsResponseDto;
|
|
228
|
+
export interface StripeControllerGetProductsParams {
|
|
229
|
+
/** Return only active products (default: true) */
|
|
230
|
+
activeOnly?: boolean;
|
|
231
|
+
}
|
|
232
|
+
export type StripeControllerGetSubscriptionData = any;
|
|
233
|
+
export type StripeControllerHandleWebhookData = any;
|
|
234
|
+
export type StripeControllerHandleWebhookDebugData = any;
|
|
235
|
+
export type StripeControllerUpdateSubscriptionData = any;
|
|
236
|
+
export interface StripeEnvironmentResponseDto {
|
|
237
|
+
/** @example "test" */
|
|
238
|
+
environment: "test" | "live";
|
|
239
|
+
/** @example true */
|
|
240
|
+
isTestMode: boolean;
|
|
241
|
+
}
|
|
242
|
+
export interface StripeProductsResponseDto {
|
|
243
|
+
/** @example "test" */
|
|
244
|
+
environment: "test" | "live";
|
|
245
|
+
products: ProductWithFeaturesDto[];
|
|
246
|
+
}
|
|
247
|
+
export type SubmitFeedbackDto = object;
|
|
248
|
+
export type UpdateProfileDto = object;
|
|
249
|
+
export interface UpdateProjectDto {
|
|
250
|
+
/**
|
|
251
|
+
* Optional project description
|
|
252
|
+
* @example "Feature flags for our mobile application"
|
|
253
|
+
*/
|
|
254
|
+
description?: string;
|
|
255
|
+
/**
|
|
256
|
+
* Project name (letters, numbers, hyphens, and underscores only, min 3 characters)
|
|
257
|
+
* @example "mobile-app-v2"
|
|
258
|
+
*/
|
|
259
|
+
name: string;
|
|
260
|
+
}
|
|
261
|
+
export type UpdateUserProjectsDto = object;
|
|
262
|
+
export type UpdateUserRoleDto = object;
|
|
263
|
+
export type UsersControllerDeleteUserData = any;
|
|
264
|
+
export type UsersControllerFindAllData = any;
|
|
265
|
+
export type UsersControllerGetProfileData = any;
|
|
266
|
+
export type UsersControllerInviteData = any;
|
|
267
|
+
export type UsersControllerResendInvitationData = any;
|
|
268
|
+
export type UsersControllerUpdateProfileData = any;
|
|
269
|
+
export type UsersControllerUpdateProjectsData = any;
|
|
270
|
+
export type UsersControllerUpdateRoleData = any;
|
|
271
|
+
export declare namespace Api {
|
|
272
|
+
/**
|
|
273
|
+
* No description
|
|
274
|
+
* @tags auth
|
|
275
|
+
* @name AuthControllerLogin
|
|
276
|
+
* @summary Login with email and password
|
|
277
|
+
* @request POST:/api/auth/login
|
|
278
|
+
* @response `200` `AuthControllerLoginData` Returns JWT token and user information
|
|
279
|
+
*/
|
|
280
|
+
namespace AuthControllerLogin {
|
|
281
|
+
type RequestParams = {};
|
|
282
|
+
type RequestQuery = {};
|
|
283
|
+
type RequestBody = LoginDto;
|
|
284
|
+
type RequestHeaders = {};
|
|
285
|
+
type ResponseBody = AuthControllerLoginData;
|
|
286
|
+
}
|
|
287
|
+
/**
|
|
288
|
+
* No description
|
|
289
|
+
* @tags auth
|
|
290
|
+
* @name AuthControllerGoogleAuth
|
|
291
|
+
* @summary Login with Google
|
|
292
|
+
* @request GET:/api/auth/google
|
|
293
|
+
* @response `302` `void` Redirects to Google login page
|
|
294
|
+
*/
|
|
295
|
+
namespace AuthControllerGoogleAuth {
|
|
296
|
+
type RequestParams = {};
|
|
297
|
+
type RequestQuery = {};
|
|
298
|
+
type RequestBody = never;
|
|
299
|
+
type RequestHeaders = {};
|
|
300
|
+
type ResponseBody = any;
|
|
301
|
+
}
|
|
302
|
+
/**
|
|
303
|
+
* No description
|
|
304
|
+
* @tags auth
|
|
305
|
+
* @name AuthControllerGoogleAuthRedirect
|
|
306
|
+
* @summary Google auth callback
|
|
307
|
+
* @request GET:/api/auth/google/callback
|
|
308
|
+
* @response `200` `AuthControllerGoogleAuthRedirectData` Returns JWT token and user information after successful Google login
|
|
309
|
+
*/
|
|
310
|
+
namespace AuthControllerGoogleAuthRedirect {
|
|
311
|
+
type RequestParams = {};
|
|
312
|
+
type RequestQuery = {};
|
|
313
|
+
type RequestBody = never;
|
|
314
|
+
type RequestHeaders = {};
|
|
315
|
+
type ResponseBody = AuthControllerGoogleAuthRedirectData;
|
|
316
|
+
}
|
|
317
|
+
/**
|
|
318
|
+
* No description
|
|
319
|
+
* @tags auth
|
|
320
|
+
* @name AuthControllerGetCurrentUser
|
|
321
|
+
* @summary Get current user information
|
|
322
|
+
* @request GET:/api/auth/me
|
|
323
|
+
* @secure
|
|
324
|
+
* @response `200` `AuthControllerGetCurrentUserData` Returns current user information
|
|
325
|
+
*/
|
|
326
|
+
namespace AuthControllerGetCurrentUser {
|
|
327
|
+
type RequestParams = {};
|
|
328
|
+
type RequestQuery = {};
|
|
329
|
+
type RequestBody = never;
|
|
330
|
+
type RequestHeaders = {};
|
|
331
|
+
type ResponseBody = AuthControllerGetCurrentUserData;
|
|
332
|
+
}
|
|
333
|
+
/**
|
|
334
|
+
* No description
|
|
335
|
+
* @tags auth
|
|
336
|
+
* @name AuthControllerLogout
|
|
337
|
+
* @summary Log user out
|
|
338
|
+
* @request POST:/api/auth/logout
|
|
339
|
+
* @secure
|
|
340
|
+
* @response `204` `AuthControllerLogoutData` User logged out successfully
|
|
341
|
+
* @response `500` `void` Error logging out
|
|
342
|
+
*/
|
|
343
|
+
namespace AuthControllerLogout {
|
|
344
|
+
type RequestParams = {};
|
|
345
|
+
type RequestQuery = {};
|
|
346
|
+
type RequestBody = never;
|
|
347
|
+
type RequestHeaders = {};
|
|
348
|
+
type ResponseBody = AuthControllerLogoutData;
|
|
349
|
+
}
|
|
350
|
+
/**
|
|
351
|
+
* No description
|
|
352
|
+
* @tags auth
|
|
353
|
+
* @name AuthControllerForgotPassword
|
|
354
|
+
* @summary Request password reset email
|
|
355
|
+
* @request POST:/api/auth/forgot-password
|
|
356
|
+
* @response `200` `AuthControllerForgotPasswordData` Password reset email sent if user exists
|
|
357
|
+
*/
|
|
358
|
+
namespace AuthControllerForgotPassword {
|
|
359
|
+
type RequestParams = {};
|
|
360
|
+
type RequestQuery = {};
|
|
361
|
+
type RequestBody = ForgotPasswordDto;
|
|
362
|
+
type RequestHeaders = {};
|
|
363
|
+
type ResponseBody = AuthControllerForgotPasswordData;
|
|
364
|
+
}
|
|
365
|
+
/**
|
|
366
|
+
* No description
|
|
367
|
+
* @tags auth
|
|
368
|
+
* @name AuthControllerResetPassword
|
|
369
|
+
* @summary Reset password using token
|
|
370
|
+
* @request POST:/api/auth/reset-password
|
|
371
|
+
* @response `200` `AuthControllerResetPasswordData` Password reset successful
|
|
372
|
+
*/
|
|
373
|
+
namespace AuthControllerResetPassword {
|
|
374
|
+
type RequestParams = {};
|
|
375
|
+
type RequestQuery = {};
|
|
376
|
+
type RequestBody = ResetPasswordDto;
|
|
377
|
+
type RequestHeaders = {};
|
|
378
|
+
type ResponseBody = AuthControllerResetPasswordData;
|
|
379
|
+
}
|
|
380
|
+
/**
|
|
381
|
+
* No description
|
|
382
|
+
* @tags auth
|
|
383
|
+
* @name AuthControllerAcceptInvitation
|
|
384
|
+
* @request POST:/api/auth/accept-invitation
|
|
385
|
+
* @response `201` `AuthControllerAcceptInvitationData`
|
|
386
|
+
*/
|
|
387
|
+
namespace AuthControllerAcceptInvitation {
|
|
388
|
+
type RequestParams = {};
|
|
389
|
+
type RequestQuery = {};
|
|
390
|
+
type RequestBody = AcceptInvitationDto;
|
|
391
|
+
type RequestHeaders = {};
|
|
392
|
+
type ResponseBody = AuthControllerAcceptInvitationData;
|
|
393
|
+
}
|
|
394
|
+
/**
|
|
395
|
+
* No description
|
|
396
|
+
* @name UsersControllerFindAll
|
|
397
|
+
* @request GET:/api/users
|
|
398
|
+
* @response `200` `UsersControllerFindAllData`
|
|
399
|
+
*/
|
|
400
|
+
namespace UsersControllerFindAll {
|
|
401
|
+
type RequestParams = {};
|
|
402
|
+
type RequestQuery = {};
|
|
403
|
+
type RequestBody = never;
|
|
404
|
+
type RequestHeaders = {};
|
|
405
|
+
type ResponseBody = UsersControllerFindAllData;
|
|
406
|
+
}
|
|
407
|
+
/**
|
|
408
|
+
* No description
|
|
409
|
+
* @name UsersControllerInvite
|
|
410
|
+
* @request POST:/api/users/invite
|
|
411
|
+
* @response `201` `UsersControllerInviteData`
|
|
412
|
+
*/
|
|
413
|
+
namespace UsersControllerInvite {
|
|
414
|
+
type RequestParams = {};
|
|
415
|
+
type RequestQuery = {};
|
|
416
|
+
type RequestBody = InviteUserDto;
|
|
417
|
+
type RequestHeaders = {};
|
|
418
|
+
type ResponseBody = UsersControllerInviteData;
|
|
419
|
+
}
|
|
420
|
+
/**
|
|
421
|
+
* No description
|
|
422
|
+
* @name UsersControllerUpdateRole
|
|
423
|
+
* @request PATCH:/api/users/{id}/role
|
|
424
|
+
* @response `200` `UsersControllerUpdateRoleData`
|
|
425
|
+
*/
|
|
426
|
+
namespace UsersControllerUpdateRole {
|
|
427
|
+
type RequestParams = {
|
|
428
|
+
id: string;
|
|
429
|
+
};
|
|
430
|
+
type RequestQuery = {};
|
|
431
|
+
type RequestBody = UpdateUserRoleDto;
|
|
432
|
+
type RequestHeaders = {};
|
|
433
|
+
type ResponseBody = UsersControllerUpdateRoleData;
|
|
434
|
+
}
|
|
435
|
+
/**
|
|
436
|
+
* No description
|
|
437
|
+
* @name UsersControllerUpdateProjects
|
|
438
|
+
* @request PATCH:/api/users/{id}/projects
|
|
439
|
+
* @response `200` `UsersControllerUpdateProjectsData`
|
|
440
|
+
*/
|
|
441
|
+
namespace UsersControllerUpdateProjects {
|
|
442
|
+
type RequestParams = {
|
|
443
|
+
id: string;
|
|
444
|
+
};
|
|
445
|
+
type RequestQuery = {};
|
|
446
|
+
type RequestBody = UpdateUserProjectsDto;
|
|
447
|
+
type RequestHeaders = {};
|
|
448
|
+
type ResponseBody = UsersControllerUpdateProjectsData;
|
|
449
|
+
}
|
|
450
|
+
/**
|
|
451
|
+
* No description
|
|
452
|
+
* @name UsersControllerDeleteUser
|
|
453
|
+
* @request DELETE:/api/users/{id}
|
|
454
|
+
* @response `200` `UsersControllerDeleteUserData`
|
|
455
|
+
*/
|
|
456
|
+
namespace UsersControllerDeleteUser {
|
|
457
|
+
type RequestParams = {
|
|
458
|
+
id: string;
|
|
459
|
+
};
|
|
460
|
+
type RequestQuery = {};
|
|
461
|
+
type RequestBody = never;
|
|
462
|
+
type RequestHeaders = {};
|
|
463
|
+
type ResponseBody = UsersControllerDeleteUserData;
|
|
464
|
+
}
|
|
465
|
+
/**
|
|
466
|
+
* No description
|
|
467
|
+
* @name UsersControllerResendInvitation
|
|
468
|
+
* @request POST:/api/users/{id}/resend-invitation
|
|
469
|
+
* @response `201` `UsersControllerResendInvitationData`
|
|
470
|
+
*/
|
|
471
|
+
namespace UsersControllerResendInvitation {
|
|
472
|
+
type RequestParams = {
|
|
473
|
+
id: string;
|
|
474
|
+
};
|
|
475
|
+
type RequestQuery = {};
|
|
476
|
+
type RequestBody = never;
|
|
477
|
+
type RequestHeaders = {};
|
|
478
|
+
type ResponseBody = UsersControllerResendInvitationData;
|
|
479
|
+
}
|
|
480
|
+
/**
|
|
481
|
+
* No description
|
|
482
|
+
* @name UsersControllerGetProfile
|
|
483
|
+
* @request GET:/api/users/profile
|
|
484
|
+
* @response `200` `UsersControllerGetProfileData`
|
|
485
|
+
*/
|
|
486
|
+
namespace UsersControllerGetProfile {
|
|
487
|
+
type RequestParams = {};
|
|
488
|
+
type RequestQuery = {};
|
|
489
|
+
type RequestBody = never;
|
|
490
|
+
type RequestHeaders = {};
|
|
491
|
+
type ResponseBody = UsersControllerGetProfileData;
|
|
492
|
+
}
|
|
493
|
+
/**
|
|
494
|
+
* No description
|
|
495
|
+
* @name UsersControllerUpdateProfile
|
|
496
|
+
* @request PATCH:/api/users/profile
|
|
497
|
+
* @response `200` `UsersControllerUpdateProfileData`
|
|
498
|
+
*/
|
|
499
|
+
namespace UsersControllerUpdateProfile {
|
|
500
|
+
type RequestParams = {};
|
|
501
|
+
type RequestQuery = {};
|
|
502
|
+
type RequestBody = UpdateProfileDto;
|
|
503
|
+
type RequestHeaders = {};
|
|
504
|
+
type ResponseBody = UsersControllerUpdateProfileData;
|
|
505
|
+
}
|
|
506
|
+
/**
|
|
507
|
+
* No description
|
|
508
|
+
* @tags organizations
|
|
509
|
+
* @name OrganizationsControllerCreate
|
|
510
|
+
* @summary Create a new organization
|
|
511
|
+
* @request POST:/api/organizations
|
|
512
|
+
* @secure
|
|
513
|
+
* @response `201` `OrganizationsControllerCreateData`
|
|
514
|
+
*/
|
|
515
|
+
namespace OrganizationsControllerCreate {
|
|
516
|
+
type RequestParams = {};
|
|
517
|
+
type RequestQuery = {};
|
|
518
|
+
type RequestBody = CreateOrganizationDto;
|
|
519
|
+
type RequestHeaders = {};
|
|
520
|
+
type ResponseBody = OrganizationsControllerCreateData;
|
|
521
|
+
}
|
|
522
|
+
/**
|
|
523
|
+
* No description
|
|
524
|
+
* @tags organizations
|
|
525
|
+
* @name OrganizationsControllerFindAll
|
|
526
|
+
* @request GET:/api/organizations
|
|
527
|
+
* @secure
|
|
528
|
+
* @response `200` `OrganizationsControllerFindAllData`
|
|
529
|
+
*/
|
|
530
|
+
namespace OrganizationsControllerFindAll {
|
|
531
|
+
type RequestParams = {};
|
|
532
|
+
type RequestQuery = {
|
|
533
|
+
/** @default 1 */
|
|
534
|
+
page?: number;
|
|
535
|
+
/** @default 50 */
|
|
536
|
+
limit?: number;
|
|
537
|
+
includeDetails?: boolean;
|
|
538
|
+
status?: string[];
|
|
539
|
+
search?: string;
|
|
540
|
+
};
|
|
541
|
+
type RequestBody = never;
|
|
542
|
+
type RequestHeaders = {};
|
|
543
|
+
type ResponseBody = OrganizationsControllerFindAllData;
|
|
544
|
+
}
|
|
545
|
+
/**
|
|
546
|
+
* No description
|
|
547
|
+
* @tags organizations
|
|
548
|
+
* @name OrganizationsControllerAddUser
|
|
549
|
+
* @summary Add a user to the organization
|
|
550
|
+
* @request POST:/api/organizations/{id}/users
|
|
551
|
+
* @secure
|
|
552
|
+
* @response `201` `OrganizationsControllerAddUserData`
|
|
553
|
+
*/
|
|
554
|
+
namespace OrganizationsControllerAddUser {
|
|
555
|
+
type RequestParams = {
|
|
556
|
+
id: string;
|
|
557
|
+
};
|
|
558
|
+
type RequestQuery = {};
|
|
559
|
+
type RequestBody = AddUserToOrganizationDto;
|
|
560
|
+
type RequestHeaders = {};
|
|
561
|
+
type ResponseBody = OrganizationsControllerAddUserData;
|
|
562
|
+
}
|
|
563
|
+
/**
|
|
564
|
+
* No description
|
|
565
|
+
* @tags organizations
|
|
566
|
+
* @name OrganizationsControllerSwitchOrganization
|
|
567
|
+
* @summary Switch current organization
|
|
568
|
+
* @request POST:/api/organizations/switch/{id}
|
|
569
|
+
* @secure
|
|
570
|
+
* @response `201` `OrganizationsControllerSwitchOrganizationData`
|
|
571
|
+
*/
|
|
572
|
+
namespace OrganizationsControllerSwitchOrganization {
|
|
573
|
+
type RequestParams = {
|
|
574
|
+
id: string;
|
|
575
|
+
};
|
|
576
|
+
type RequestQuery = {};
|
|
577
|
+
type RequestBody = never;
|
|
578
|
+
type RequestHeaders = {};
|
|
579
|
+
type ResponseBody = OrganizationsControllerSwitchOrganizationData;
|
|
580
|
+
}
|
|
581
|
+
/**
|
|
582
|
+
* No description
|
|
583
|
+
* @tags organizations
|
|
584
|
+
* @name OrganizationsControllerGetDemoRequests
|
|
585
|
+
* @summary Get all demo requests
|
|
586
|
+
* @request GET:/api/organizations/demo-requests
|
|
587
|
+
* @secure
|
|
588
|
+
* @response `200` `OrganizationsControllerGetDemoRequestsData`
|
|
589
|
+
*/
|
|
590
|
+
namespace OrganizationsControllerGetDemoRequests {
|
|
591
|
+
type RequestParams = {};
|
|
592
|
+
type RequestQuery = {};
|
|
593
|
+
type RequestBody = never;
|
|
594
|
+
type RequestHeaders = {};
|
|
595
|
+
type ResponseBody = OrganizationsControllerGetDemoRequestsData;
|
|
596
|
+
}
|
|
597
|
+
/**
|
|
598
|
+
* @description Sets organization status to ACTIVE and optionally activates all users in the organization
|
|
599
|
+
* @tags organizations
|
|
600
|
+
* @name OrganizationsControllerActivateOrganization
|
|
601
|
+
* @summary Activate an organization
|
|
602
|
+
* @request PATCH:/api/organizations/{id}/activate
|
|
603
|
+
* @secure
|
|
604
|
+
* @response `200` `OrganizationsControllerActivateOrganizationData`
|
|
605
|
+
*/
|
|
606
|
+
namespace OrganizationsControllerActivateOrganization {
|
|
607
|
+
type RequestParams = {
|
|
608
|
+
id: string;
|
|
609
|
+
};
|
|
610
|
+
type RequestQuery = {};
|
|
611
|
+
type RequestBody = ActivateOrganizationDto;
|
|
612
|
+
type RequestHeaders = {};
|
|
613
|
+
type ResponseBody = OrganizationsControllerActivateOrganizationData;
|
|
614
|
+
}
|
|
615
|
+
/**
|
|
616
|
+
* No description
|
|
617
|
+
* @name ApiKeysControllerCreate
|
|
618
|
+
* @request POST:/api/api-keys
|
|
619
|
+
* @response `201` `ApiKeysControllerCreateData`
|
|
620
|
+
*/
|
|
621
|
+
namespace ApiKeysControllerCreate {
|
|
622
|
+
type RequestParams = {};
|
|
623
|
+
type RequestQuery = {};
|
|
624
|
+
type RequestBody = CreateApiKeyDto;
|
|
625
|
+
type RequestHeaders = {};
|
|
626
|
+
type ResponseBody = ApiKeysControllerCreateData;
|
|
627
|
+
}
|
|
628
|
+
/**
|
|
629
|
+
* No description
|
|
630
|
+
* @name ApiKeysControllerFindAll
|
|
631
|
+
* @request GET:/api/api-keys
|
|
632
|
+
* @response `200` `ApiKeysControllerFindAllData`
|
|
633
|
+
*/
|
|
634
|
+
namespace ApiKeysControllerFindAll {
|
|
635
|
+
type RequestParams = {};
|
|
636
|
+
type RequestQuery = {};
|
|
637
|
+
type RequestBody = never;
|
|
638
|
+
type RequestHeaders = {
|
|
639
|
+
"x-project-id": string;
|
|
640
|
+
};
|
|
641
|
+
type ResponseBody = ApiKeysControllerFindAllData;
|
|
642
|
+
}
|
|
643
|
+
/**
|
|
644
|
+
* No description
|
|
645
|
+
* @name ApiKeysControllerDeactivate
|
|
646
|
+
* @request PATCH:/api/api-keys/{id}/deactivate
|
|
647
|
+
* @response `200` `ApiKeysControllerDeactivateData`
|
|
648
|
+
*/
|
|
649
|
+
namespace ApiKeysControllerDeactivate {
|
|
650
|
+
type RequestParams = {
|
|
651
|
+
id: string;
|
|
652
|
+
};
|
|
653
|
+
type RequestQuery = {};
|
|
654
|
+
type RequestBody = never;
|
|
655
|
+
type RequestHeaders = {};
|
|
656
|
+
type ResponseBody = ApiKeysControllerDeactivateData;
|
|
657
|
+
}
|
|
658
|
+
/**
|
|
659
|
+
* No description
|
|
660
|
+
* @tags feature-flags
|
|
661
|
+
* @name FeatureFlagControllerCreate
|
|
662
|
+
* @summary Create a new feature flag
|
|
663
|
+
* @request POST:/api/feature-flags
|
|
664
|
+
* @secure
|
|
665
|
+
* @response `201` `FeatureFlagControllerCreateData` Feature flag created successfully
|
|
666
|
+
*/
|
|
667
|
+
namespace FeatureFlagControllerCreate {
|
|
668
|
+
type RequestParams = {};
|
|
669
|
+
type RequestQuery = {};
|
|
670
|
+
type RequestBody = CreateFeatureFlagDto;
|
|
671
|
+
type RequestHeaders = {
|
|
672
|
+
/** ID of the current project */
|
|
673
|
+
"x-project-id": string;
|
|
674
|
+
"x-organization-id": string;
|
|
675
|
+
};
|
|
676
|
+
type ResponseBody = FeatureFlagControllerCreateData;
|
|
677
|
+
}
|
|
678
|
+
/**
|
|
679
|
+
* No description
|
|
680
|
+
* @tags feature-flags
|
|
681
|
+
* @name FeatureFlagControllerFindAll
|
|
682
|
+
* @summary Get all feature flags for the current project
|
|
683
|
+
* @request GET:/api/feature-flags
|
|
684
|
+
* @secure
|
|
685
|
+
* @response `200` `FeatureFlagControllerFindAllData` Returns all feature flags
|
|
686
|
+
*/
|
|
687
|
+
namespace FeatureFlagControllerFindAll {
|
|
688
|
+
type RequestParams = {};
|
|
689
|
+
type RequestQuery = {};
|
|
690
|
+
type RequestBody = never;
|
|
691
|
+
type RequestHeaders = {
|
|
692
|
+
/** ID of the current project */
|
|
693
|
+
"x-project-id": string;
|
|
694
|
+
};
|
|
695
|
+
type ResponseBody = FeatureFlagControllerFindAllData;
|
|
696
|
+
}
|
|
697
|
+
/**
|
|
698
|
+
* No description
|
|
699
|
+
* @tags feature-flags
|
|
700
|
+
* @name FeatureFlagControllerToggle
|
|
701
|
+
* @summary Toggle feature flag status
|
|
702
|
+
* @request PATCH:/api/feature-flags/{id}/toggle
|
|
703
|
+
* @secure
|
|
704
|
+
* @response `200` `FeatureFlagControllerToggleData` Feature flag toggled successfully
|
|
705
|
+
*/
|
|
706
|
+
namespace FeatureFlagControllerToggle {
|
|
707
|
+
type RequestParams = {
|
|
708
|
+
/** Feature flag ID */
|
|
709
|
+
id: string;
|
|
710
|
+
};
|
|
711
|
+
type RequestQuery = {};
|
|
712
|
+
type RequestBody = never;
|
|
713
|
+
type RequestHeaders = {
|
|
714
|
+
/** ID of the current project */
|
|
715
|
+
"x-project-id": string;
|
|
716
|
+
};
|
|
717
|
+
type ResponseBody = FeatureFlagControllerToggleData;
|
|
718
|
+
}
|
|
719
|
+
/**
|
|
720
|
+
* No description
|
|
721
|
+
* @tags feature-flags
|
|
722
|
+
* @name FeatureFlagControllerUpdate
|
|
723
|
+
* @summary Update feature flag
|
|
724
|
+
* @request PATCH:/api/feature-flags/{id}
|
|
725
|
+
* @secure
|
|
726
|
+
* @response `200` `FeatureFlagControllerUpdateData`
|
|
727
|
+
*/
|
|
728
|
+
namespace FeatureFlagControllerUpdate {
|
|
729
|
+
type RequestParams = {
|
|
730
|
+
id: string;
|
|
731
|
+
};
|
|
732
|
+
type RequestQuery = {};
|
|
733
|
+
type RequestBody = never;
|
|
734
|
+
type RequestHeaders = {
|
|
735
|
+
"x-project-id": string;
|
|
736
|
+
"x-organization-id": string;
|
|
737
|
+
};
|
|
738
|
+
type ResponseBody = FeatureFlagControllerUpdateData;
|
|
739
|
+
}
|
|
740
|
+
/**
|
|
741
|
+
* No description
|
|
742
|
+
* @tags feature-flags
|
|
743
|
+
* @name FeatureFlagControllerDelete
|
|
744
|
+
* @summary Delete feature flag
|
|
745
|
+
* @request DELETE:/api/feature-flags/{id}
|
|
746
|
+
* @secure
|
|
747
|
+
* @response `200` `FeatureFlagControllerDeleteData`
|
|
748
|
+
*/
|
|
749
|
+
namespace FeatureFlagControllerDelete {
|
|
750
|
+
type RequestParams = {
|
|
751
|
+
id: string;
|
|
752
|
+
};
|
|
753
|
+
type RequestQuery = {};
|
|
754
|
+
type RequestBody = never;
|
|
755
|
+
type RequestHeaders = {
|
|
756
|
+
"x-project-id": string;
|
|
757
|
+
"x-organization-id": string;
|
|
758
|
+
};
|
|
759
|
+
type ResponseBody = FeatureFlagControllerDeleteData;
|
|
760
|
+
}
|
|
761
|
+
/**
|
|
762
|
+
* No description
|
|
763
|
+
* @tags feature-flags
|
|
764
|
+
* @name FeatureFlagControllerFindAllSdk
|
|
765
|
+
* @summary Get all feature flags for SDK
|
|
766
|
+
* @request GET:/api/feature-flags/sdk
|
|
767
|
+
* @response `200` `FeatureFlagControllerFindAllSdkData` Returns all feature flags
|
|
768
|
+
*/
|
|
769
|
+
namespace FeatureFlagControllerFindAllSdk {
|
|
770
|
+
type RequestParams = {};
|
|
771
|
+
type RequestQuery = {
|
|
772
|
+
environments: string;
|
|
773
|
+
};
|
|
774
|
+
type RequestBody = never;
|
|
775
|
+
type RequestHeaders = {
|
|
776
|
+
/** API Key for SDK authentication */
|
|
777
|
+
"x-api-key": string;
|
|
778
|
+
};
|
|
779
|
+
type ResponseBody = FeatureFlagControllerFindAllSdkData;
|
|
780
|
+
}
|
|
781
|
+
/**
|
|
782
|
+
* No description
|
|
783
|
+
* @name ProjectsControllerFindAll
|
|
784
|
+
* @request GET:/api/projects
|
|
785
|
+
* @response `200` `ProjectsControllerFindAllData`
|
|
786
|
+
*/
|
|
787
|
+
namespace ProjectsControllerFindAll {
|
|
788
|
+
type RequestParams = {};
|
|
789
|
+
type RequestQuery = {};
|
|
790
|
+
type RequestBody = never;
|
|
791
|
+
type RequestHeaders = {};
|
|
792
|
+
type ResponseBody = ProjectsControllerFindAllData;
|
|
793
|
+
}
|
|
794
|
+
/**
|
|
795
|
+
* No description
|
|
796
|
+
* @name ProjectsControllerCreate
|
|
797
|
+
* @request POST:/api/projects
|
|
798
|
+
* @response `201` `ProjectsControllerCreateData`
|
|
799
|
+
*/
|
|
800
|
+
namespace ProjectsControllerCreate {
|
|
801
|
+
type RequestParams = {};
|
|
802
|
+
type RequestQuery = {};
|
|
803
|
+
type RequestBody = CreateProjectDto;
|
|
804
|
+
type RequestHeaders = {};
|
|
805
|
+
type ResponseBody = ProjectsControllerCreateData;
|
|
806
|
+
}
|
|
807
|
+
/**
|
|
808
|
+
* No description
|
|
809
|
+
* @name ProjectsControllerUpdate
|
|
810
|
+
* @request PATCH:/api/projects/{id}
|
|
811
|
+
* @response `200` `ProjectsControllerUpdateData`
|
|
812
|
+
*/
|
|
813
|
+
namespace ProjectsControllerUpdate {
|
|
814
|
+
type RequestParams = {
|
|
815
|
+
id: string;
|
|
816
|
+
};
|
|
817
|
+
type RequestQuery = {};
|
|
818
|
+
type RequestBody = UpdateProjectDto;
|
|
819
|
+
type RequestHeaders = {};
|
|
820
|
+
type ResponseBody = ProjectsControllerUpdateData;
|
|
821
|
+
}
|
|
822
|
+
/**
|
|
823
|
+
* No description
|
|
824
|
+
* @name ProjectsControllerDelete
|
|
825
|
+
* @request DELETE:/api/projects/{id}
|
|
826
|
+
* @response `200` `ProjectsControllerDeleteData`
|
|
827
|
+
*/
|
|
828
|
+
namespace ProjectsControllerDelete {
|
|
829
|
+
type RequestParams = {
|
|
830
|
+
id: string;
|
|
831
|
+
};
|
|
832
|
+
type RequestQuery = {};
|
|
833
|
+
type RequestBody = never;
|
|
834
|
+
type RequestHeaders = {};
|
|
835
|
+
type ResponseBody = ProjectsControllerDeleteData;
|
|
836
|
+
}
|
|
837
|
+
/**
|
|
838
|
+
* No description
|
|
839
|
+
* @name FeedbackControllerSubmit
|
|
840
|
+
* @request POST:/api/feedback
|
|
841
|
+
* @response `201` `FeedbackControllerSubmitData`
|
|
842
|
+
*/
|
|
843
|
+
namespace FeedbackControllerSubmit {
|
|
844
|
+
type RequestParams = {};
|
|
845
|
+
type RequestQuery = {};
|
|
846
|
+
type RequestBody = SubmitFeedbackDto;
|
|
847
|
+
type RequestHeaders = {
|
|
848
|
+
"x-organization-id": string;
|
|
849
|
+
};
|
|
850
|
+
type ResponseBody = FeedbackControllerSubmitData;
|
|
851
|
+
}
|
|
852
|
+
/**
|
|
853
|
+
* No description
|
|
854
|
+
* @tags stripe
|
|
855
|
+
* @name StripeControllerHandleWebhook
|
|
856
|
+
* @summary Handle Stripe webhooks
|
|
857
|
+
* @request POST:/api/stripe/webhook
|
|
858
|
+
* @response `200` `StripeControllerHandleWebhookData` Webhook processed successfully
|
|
859
|
+
* @response `400` `void` Bad request or webhook error
|
|
860
|
+
*/
|
|
861
|
+
namespace StripeControllerHandleWebhook {
|
|
862
|
+
type RequestParams = {};
|
|
863
|
+
type RequestQuery = {};
|
|
864
|
+
type RequestBody = never;
|
|
865
|
+
type RequestHeaders = {
|
|
866
|
+
"stripe-signature": string;
|
|
867
|
+
};
|
|
868
|
+
type ResponseBody = StripeControllerHandleWebhookData;
|
|
869
|
+
}
|
|
870
|
+
/**
|
|
871
|
+
* No description
|
|
872
|
+
* @tags stripe
|
|
873
|
+
* @name StripeControllerHandleWebhookDebug
|
|
874
|
+
* @request POST:/api/stripe/webhook-debug
|
|
875
|
+
* @response `201` `StripeControllerHandleWebhookDebugData`
|
|
876
|
+
*/
|
|
877
|
+
namespace StripeControllerHandleWebhookDebug {
|
|
878
|
+
type RequestParams = {};
|
|
879
|
+
type RequestQuery = {};
|
|
880
|
+
type RequestBody = never;
|
|
881
|
+
type RequestHeaders = {};
|
|
882
|
+
type ResponseBody = StripeControllerHandleWebhookDebugData;
|
|
883
|
+
}
|
|
884
|
+
/**
|
|
885
|
+
* No description
|
|
886
|
+
* @tags stripe
|
|
887
|
+
* @name StripeControllerCreateCheckoutSession
|
|
888
|
+
* @summary Create checkout session with specific price ID
|
|
889
|
+
* @request POST:/api/stripe/create-checkout-session
|
|
890
|
+
* @response `200` `StripeControllerCreateCheckoutSessionData` Checkout session created successfully
|
|
891
|
+
* @response `400` `void` Error creating checkout session
|
|
892
|
+
*/
|
|
893
|
+
namespace StripeControllerCreateCheckoutSession {
|
|
894
|
+
type RequestParams = {};
|
|
895
|
+
type RequestQuery = {};
|
|
896
|
+
type RequestBody = CreateCheckoutSessionDto;
|
|
897
|
+
type RequestHeaders = {};
|
|
898
|
+
type ResponseBody = StripeControllerCreateCheckoutSessionData;
|
|
899
|
+
}
|
|
900
|
+
/**
|
|
901
|
+
* No description
|
|
902
|
+
* @tags stripe
|
|
903
|
+
* @name StripeControllerCreateCheckoutSessionByPlan
|
|
904
|
+
* @summary Create checkout session by plan type (automatically finds correct price)
|
|
905
|
+
* @request POST:/api/stripe/create-checkout-session-by-plan
|
|
906
|
+
* @response `200` `StripeControllerCreateCheckoutSessionByPlanData` Checkout session created successfully
|
|
907
|
+
* @response `400` `void` Error creating checkout session
|
|
908
|
+
*/
|
|
909
|
+
namespace StripeControllerCreateCheckoutSessionByPlan {
|
|
910
|
+
type RequestParams = {};
|
|
911
|
+
type RequestQuery = {};
|
|
912
|
+
type RequestBody = CreateCheckoutSessionByPlanDto;
|
|
913
|
+
type RequestHeaders = {
|
|
914
|
+
"x-organization-id": string;
|
|
915
|
+
};
|
|
916
|
+
type ResponseBody = StripeControllerCreateCheckoutSessionByPlanData;
|
|
917
|
+
}
|
|
918
|
+
/**
|
|
919
|
+
* No description
|
|
920
|
+
* @tags stripe
|
|
921
|
+
* @name StripeControllerGetProducts
|
|
922
|
+
* @summary Get all products with features and pricing
|
|
923
|
+
* @request GET:/api/stripe/products
|
|
924
|
+
* @response `200` `StripeControllerGetProductsData` Products retrieved successfully
|
|
925
|
+
* @response `400` `void` Error fetching products
|
|
926
|
+
*/
|
|
927
|
+
namespace StripeControllerGetProducts {
|
|
928
|
+
type RequestParams = {};
|
|
929
|
+
type RequestQuery = {
|
|
930
|
+
/** Return only active products (default: true) */
|
|
931
|
+
activeOnly?: boolean;
|
|
932
|
+
};
|
|
933
|
+
type RequestBody = never;
|
|
934
|
+
type RequestHeaders = {};
|
|
935
|
+
type ResponseBody = StripeControllerGetProductsData;
|
|
936
|
+
}
|
|
937
|
+
/**
|
|
938
|
+
* No description
|
|
939
|
+
* @tags stripe
|
|
940
|
+
* @name StripeControllerGetEnvironment
|
|
941
|
+
* @summary Get current Stripe environment (test/live mode)
|
|
942
|
+
* @request GET:/api/stripe/environment
|
|
943
|
+
* @response `200` `StripeControllerGetEnvironmentData` Environment information
|
|
944
|
+
*/
|
|
945
|
+
namespace StripeControllerGetEnvironment {
|
|
946
|
+
type RequestParams = {};
|
|
947
|
+
type RequestQuery = {};
|
|
948
|
+
type RequestBody = never;
|
|
949
|
+
type RequestHeaders = {};
|
|
950
|
+
type ResponseBody = StripeControllerGetEnvironmentData;
|
|
951
|
+
}
|
|
952
|
+
/**
|
|
953
|
+
* No description
|
|
954
|
+
* @tags stripe
|
|
955
|
+
* @name StripeControllerCreatePaymentIntent
|
|
956
|
+
* @summary Create a payment intent
|
|
957
|
+
* @request POST:/api/stripe/create-payment-intent
|
|
958
|
+
* @response `200` `StripeControllerCreatePaymentIntentData` Payment intent created successfully
|
|
959
|
+
* @response `400` `void` Error creating payment intent
|
|
960
|
+
*/
|
|
961
|
+
namespace StripeControllerCreatePaymentIntent {
|
|
962
|
+
type RequestParams = {};
|
|
963
|
+
type RequestQuery = {};
|
|
964
|
+
type RequestBody = CreatePaymentIntentDto;
|
|
965
|
+
type RequestHeaders = {};
|
|
966
|
+
type ResponseBody = StripeControllerCreatePaymentIntentData;
|
|
967
|
+
}
|
|
968
|
+
/**
|
|
969
|
+
* No description
|
|
970
|
+
* @tags stripe
|
|
971
|
+
* @name StripeControllerGetSubscription
|
|
972
|
+
* @summary Get subscription by ID
|
|
973
|
+
* @request GET:/api/stripe/subscription/{id}
|
|
974
|
+
* @response `200` `StripeControllerGetSubscriptionData` Subscription retrieved successfully
|
|
975
|
+
* @response `404` `void` Subscription not found
|
|
976
|
+
*/
|
|
977
|
+
namespace StripeControllerGetSubscription {
|
|
978
|
+
type RequestParams = {
|
|
979
|
+
id: string;
|
|
980
|
+
};
|
|
981
|
+
type RequestQuery = {};
|
|
982
|
+
type RequestBody = never;
|
|
983
|
+
type RequestHeaders = {};
|
|
984
|
+
type ResponseBody = StripeControllerGetSubscriptionData;
|
|
985
|
+
}
|
|
986
|
+
/**
|
|
987
|
+
* No description
|
|
988
|
+
* @tags stripe
|
|
989
|
+
* @name StripeControllerUpdateSubscription
|
|
990
|
+
* @summary Update subscription
|
|
991
|
+
* @request PATCH:/api/stripe/subscription/{id}
|
|
992
|
+
* @response `200` `StripeControllerUpdateSubscriptionData` Subscription updated successfully
|
|
993
|
+
* @response `404` `void` Subscription not found
|
|
994
|
+
*/
|
|
995
|
+
namespace StripeControllerUpdateSubscription {
|
|
996
|
+
type RequestParams = {
|
|
997
|
+
id: string;
|
|
998
|
+
};
|
|
999
|
+
type RequestQuery = {};
|
|
1000
|
+
type RequestBody = never;
|
|
1001
|
+
type RequestHeaders = {};
|
|
1002
|
+
type ResponseBody = StripeControllerUpdateSubscriptionData;
|
|
1003
|
+
}
|
|
1004
|
+
/**
|
|
1005
|
+
* No description
|
|
1006
|
+
* @tags stripe
|
|
1007
|
+
* @name StripeControllerGetCustomerSubscriptions
|
|
1008
|
+
* @summary Get all subscriptions for a customer
|
|
1009
|
+
* @request GET:/api/stripe/customer/{id}/subscriptions
|
|
1010
|
+
* @response `200` `StripeControllerGetCustomerSubscriptionsData` Customer subscriptions retrieved successfully
|
|
1011
|
+
* @response `404` `void` Customer not found
|
|
1012
|
+
*/
|
|
1013
|
+
namespace StripeControllerGetCustomerSubscriptions {
|
|
1014
|
+
type RequestParams = {
|
|
1015
|
+
id: string;
|
|
1016
|
+
};
|
|
1017
|
+
type RequestQuery = {};
|
|
1018
|
+
type RequestBody = never;
|
|
1019
|
+
type RequestHeaders = {};
|
|
1020
|
+
type ResponseBody = StripeControllerGetCustomerSubscriptionsData;
|
|
1021
|
+
}
|
|
1022
|
+
/**
|
|
1023
|
+
* No description
|
|
1024
|
+
* @tags stripe
|
|
1025
|
+
* @name StripeControllerCancelSubscription
|
|
1026
|
+
* @summary Cancel subscription
|
|
1027
|
+
* @request POST:/api/stripe/subscription/{id}/cancel
|
|
1028
|
+
* @response `200` `StripeControllerCancelSubscriptionData` Subscription canceled successfully
|
|
1029
|
+
* @response `404` `void` Subscription not found
|
|
1030
|
+
*/
|
|
1031
|
+
namespace StripeControllerCancelSubscription {
|
|
1032
|
+
type RequestParams = {
|
|
1033
|
+
id: string;
|
|
1034
|
+
};
|
|
1035
|
+
type RequestQuery = {};
|
|
1036
|
+
type RequestBody = never;
|
|
1037
|
+
type RequestHeaders = {};
|
|
1038
|
+
type ResponseBody = StripeControllerCancelSubscriptionData;
|
|
1039
|
+
}
|
|
1040
|
+
/**
|
|
1041
|
+
* No description
|
|
1042
|
+
* @tags onboarding
|
|
1043
|
+
* @name OnboardingControllerRequestDemo
|
|
1044
|
+
* @summary Request a demo account
|
|
1045
|
+
* @request POST:/api/onboarding/request-demo
|
|
1046
|
+
* @response `201` `OnboardingControllerRequestDemoData`
|
|
1047
|
+
*/
|
|
1048
|
+
namespace OnboardingControllerRequestDemo {
|
|
1049
|
+
type RequestParams = {};
|
|
1050
|
+
type RequestQuery = {};
|
|
1051
|
+
type RequestBody = DemoRequestDto;
|
|
1052
|
+
type RequestHeaders = {};
|
|
1053
|
+
type ResponseBody = OnboardingControllerRequestDemoData;
|
|
1054
|
+
}
|
|
1055
|
+
}
|
|
1056
|
+
import { AxiosInstance, AxiosRequestConfig, AxiosResponse, ResponseType } from "axios";
|
|
1057
|
+
export type QueryParamsType = Record<string | number, any>;
|
|
1058
|
+
export interface FullRequestParams extends Omit<AxiosRequestConfig, "data" | "params" | "url" | "responseType"> {
|
|
1059
|
+
/** set parameter to `true` for call `securityWorker` for this request */
|
|
1060
|
+
secure?: boolean;
|
|
1061
|
+
/** request path */
|
|
1062
|
+
path: string;
|
|
1063
|
+
/** content type of request body */
|
|
1064
|
+
type?: ContentType;
|
|
1065
|
+
/** query params */
|
|
1066
|
+
query?: QueryParamsType;
|
|
1067
|
+
/** format of response (i.e. response.json() -> format: "json") */
|
|
1068
|
+
format?: ResponseType;
|
|
1069
|
+
/** request body */
|
|
1070
|
+
body?: unknown;
|
|
1071
|
+
}
|
|
1072
|
+
export type RequestParams = Omit<FullRequestParams, "body" | "method" | "query" | "path">;
|
|
1073
|
+
export interface ApiConfig<SecurityDataType = unknown> extends Omit<AxiosRequestConfig, "data" | "cancelToken"> {
|
|
1074
|
+
securityWorker?: (securityData: SecurityDataType | null) => Promise<AxiosRequestConfig | void> | AxiosRequestConfig | void;
|
|
1075
|
+
secure?: boolean;
|
|
1076
|
+
format?: ResponseType;
|
|
1077
|
+
}
|
|
1078
|
+
export declare enum ContentType {
|
|
1079
|
+
Json = "application/json",
|
|
1080
|
+
FormData = "multipart/form-data",
|
|
1081
|
+
UrlEncoded = "application/x-www-form-urlencoded",
|
|
1082
|
+
Text = "text/plain"
|
|
1083
|
+
}
|
|
1084
|
+
export declare class HttpClient<SecurityDataType = unknown> {
|
|
1085
|
+
instance: AxiosInstance;
|
|
1086
|
+
private securityData;
|
|
1087
|
+
private securityWorker?;
|
|
1088
|
+
private secure?;
|
|
1089
|
+
private format?;
|
|
1090
|
+
constructor({ securityWorker, secure, format, ...axiosConfig }?: ApiConfig<SecurityDataType>);
|
|
1091
|
+
setSecurityData: (data: SecurityDataType | null) => void;
|
|
1092
|
+
protected mergeRequestParams(params1: AxiosRequestConfig, params2?: AxiosRequestConfig): AxiosRequestConfig;
|
|
1093
|
+
protected stringifyFormItem(formItem: unknown): string;
|
|
1094
|
+
protected createFormData(input: Record<string, unknown>): FormData;
|
|
1095
|
+
request: <T = any, _E = any>({ secure, path, type, query, format, body, ...params }: FullRequestParams) => Promise<AxiosResponse<T>>;
|
|
1096
|
+
}
|
|
1097
|
+
/**
|
|
1098
|
+
* @title FlagPole API
|
|
1099
|
+
* @version 1.0.0
|
|
1100
|
+
* @license Proprietary (https://useflagpole.dev/terms)
|
|
1101
|
+
* @baseUrl http://localhost:5000
|
|
1102
|
+
* @contact FlagPole Support <support@useflagpole.dev> (https://useflagpole.dev)
|
|
1103
|
+
*
|
|
1104
|
+
* API for managing feature flags and organizations
|
|
1105
|
+
*/
|
|
1106
|
+
export declare class Api<SecurityDataType extends unknown> {
|
|
1107
|
+
http: HttpClient<SecurityDataType>;
|
|
1108
|
+
constructor(http: HttpClient<SecurityDataType>);
|
|
1109
|
+
api: {
|
|
1110
|
+
/**
|
|
1111
|
+
* No description
|
|
1112
|
+
*
|
|
1113
|
+
* @tags auth
|
|
1114
|
+
* @name AuthControllerLogin
|
|
1115
|
+
* @summary Login with email and password
|
|
1116
|
+
* @request POST:/api/auth/login
|
|
1117
|
+
* @response `200` `AuthControllerLoginData` Returns JWT token and user information
|
|
1118
|
+
*/
|
|
1119
|
+
authControllerLogin: (data: LoginDto, params?: RequestParams) => Promise<AxiosResponse<any, any>>;
|
|
1120
|
+
/**
|
|
1121
|
+
* No description
|
|
1122
|
+
*
|
|
1123
|
+
* @tags auth
|
|
1124
|
+
* @name AuthControllerGoogleAuth
|
|
1125
|
+
* @summary Login with Google
|
|
1126
|
+
* @request GET:/api/auth/google
|
|
1127
|
+
* @response `302` `void` Redirects to Google login page
|
|
1128
|
+
*/
|
|
1129
|
+
authControllerGoogleAuth: (params?: RequestParams) => Promise<AxiosResponse<any, any>>;
|
|
1130
|
+
/**
|
|
1131
|
+
* No description
|
|
1132
|
+
*
|
|
1133
|
+
* @tags auth
|
|
1134
|
+
* @name AuthControllerGoogleAuthRedirect
|
|
1135
|
+
* @summary Google auth callback
|
|
1136
|
+
* @request GET:/api/auth/google/callback
|
|
1137
|
+
* @response `200` `AuthControllerGoogleAuthRedirectData` Returns JWT token and user information after successful Google login
|
|
1138
|
+
*/
|
|
1139
|
+
authControllerGoogleAuthRedirect: (params?: RequestParams) => Promise<AxiosResponse<any, any>>;
|
|
1140
|
+
/**
|
|
1141
|
+
* No description
|
|
1142
|
+
*
|
|
1143
|
+
* @tags auth
|
|
1144
|
+
* @name AuthControllerGetCurrentUser
|
|
1145
|
+
* @summary Get current user information
|
|
1146
|
+
* @request GET:/api/auth/me
|
|
1147
|
+
* @secure
|
|
1148
|
+
* @response `200` `AuthControllerGetCurrentUserData` Returns current user information
|
|
1149
|
+
*/
|
|
1150
|
+
authControllerGetCurrentUser: (params?: RequestParams) => Promise<AxiosResponse<any, any>>;
|
|
1151
|
+
/**
|
|
1152
|
+
* No description
|
|
1153
|
+
*
|
|
1154
|
+
* @tags auth
|
|
1155
|
+
* @name AuthControllerLogout
|
|
1156
|
+
* @summary Log user out
|
|
1157
|
+
* @request POST:/api/auth/logout
|
|
1158
|
+
* @secure
|
|
1159
|
+
* @response `204` `AuthControllerLogoutData` User logged out successfully
|
|
1160
|
+
* @response `500` `void` Error logging out
|
|
1161
|
+
*/
|
|
1162
|
+
authControllerLogout: (params?: RequestParams) => Promise<AxiosResponse<any, any>>;
|
|
1163
|
+
/**
|
|
1164
|
+
* No description
|
|
1165
|
+
*
|
|
1166
|
+
* @tags auth
|
|
1167
|
+
* @name AuthControllerForgotPassword
|
|
1168
|
+
* @summary Request password reset email
|
|
1169
|
+
* @request POST:/api/auth/forgot-password
|
|
1170
|
+
* @response `200` `AuthControllerForgotPasswordData` Password reset email sent if user exists
|
|
1171
|
+
*/
|
|
1172
|
+
authControllerForgotPassword: (data: ForgotPasswordDto, params?: RequestParams) => Promise<AxiosResponse<any, any>>;
|
|
1173
|
+
/**
|
|
1174
|
+
* No description
|
|
1175
|
+
*
|
|
1176
|
+
* @tags auth
|
|
1177
|
+
* @name AuthControllerResetPassword
|
|
1178
|
+
* @summary Reset password using token
|
|
1179
|
+
* @request POST:/api/auth/reset-password
|
|
1180
|
+
* @response `200` `AuthControllerResetPasswordData` Password reset successful
|
|
1181
|
+
*/
|
|
1182
|
+
authControllerResetPassword: (data: ResetPasswordDto, params?: RequestParams) => Promise<AxiosResponse<any, any>>;
|
|
1183
|
+
/**
|
|
1184
|
+
* No description
|
|
1185
|
+
*
|
|
1186
|
+
* @tags auth
|
|
1187
|
+
* @name AuthControllerAcceptInvitation
|
|
1188
|
+
* @request POST:/api/auth/accept-invitation
|
|
1189
|
+
* @response `201` `AuthControllerAcceptInvitationData`
|
|
1190
|
+
*/
|
|
1191
|
+
authControllerAcceptInvitation: (data: AcceptInvitationDto, params?: RequestParams) => Promise<AxiosResponse<any, any>>;
|
|
1192
|
+
/**
|
|
1193
|
+
* No description
|
|
1194
|
+
*
|
|
1195
|
+
* @name UsersControllerFindAll
|
|
1196
|
+
* @request GET:/api/users
|
|
1197
|
+
* @response `200` `UsersControllerFindAllData`
|
|
1198
|
+
*/
|
|
1199
|
+
usersControllerFindAll: (params?: RequestParams) => Promise<AxiosResponse<any, any>>;
|
|
1200
|
+
/**
|
|
1201
|
+
* No description
|
|
1202
|
+
*
|
|
1203
|
+
* @name UsersControllerInvite
|
|
1204
|
+
* @request POST:/api/users/invite
|
|
1205
|
+
* @response `201` `UsersControllerInviteData`
|
|
1206
|
+
*/
|
|
1207
|
+
usersControllerInvite: (data: InviteUserDto, params?: RequestParams) => Promise<AxiosResponse<any, any>>;
|
|
1208
|
+
/**
|
|
1209
|
+
* No description
|
|
1210
|
+
*
|
|
1211
|
+
* @name UsersControllerUpdateRole
|
|
1212
|
+
* @request PATCH:/api/users/{id}/role
|
|
1213
|
+
* @response `200` `UsersControllerUpdateRoleData`
|
|
1214
|
+
*/
|
|
1215
|
+
usersControllerUpdateRole: (id: string, data: UpdateUserRoleDto, params?: RequestParams) => Promise<AxiosResponse<any, any>>;
|
|
1216
|
+
/**
|
|
1217
|
+
* No description
|
|
1218
|
+
*
|
|
1219
|
+
* @name UsersControllerUpdateProjects
|
|
1220
|
+
* @request PATCH:/api/users/{id}/projects
|
|
1221
|
+
* @response `200` `UsersControllerUpdateProjectsData`
|
|
1222
|
+
*/
|
|
1223
|
+
usersControllerUpdateProjects: (id: string, data: UpdateUserProjectsDto, params?: RequestParams) => Promise<AxiosResponse<any, any>>;
|
|
1224
|
+
/**
|
|
1225
|
+
* No description
|
|
1226
|
+
*
|
|
1227
|
+
* @name UsersControllerDeleteUser
|
|
1228
|
+
* @request DELETE:/api/users/{id}
|
|
1229
|
+
* @response `200` `UsersControllerDeleteUserData`
|
|
1230
|
+
*/
|
|
1231
|
+
usersControllerDeleteUser: (id: string, params?: RequestParams) => Promise<AxiosResponse<any, any>>;
|
|
1232
|
+
/**
|
|
1233
|
+
* No description
|
|
1234
|
+
*
|
|
1235
|
+
* @name UsersControllerResendInvitation
|
|
1236
|
+
* @request POST:/api/users/{id}/resend-invitation
|
|
1237
|
+
* @response `201` `UsersControllerResendInvitationData`
|
|
1238
|
+
*/
|
|
1239
|
+
usersControllerResendInvitation: (id: string, params?: RequestParams) => Promise<AxiosResponse<any, any>>;
|
|
1240
|
+
/**
|
|
1241
|
+
* No description
|
|
1242
|
+
*
|
|
1243
|
+
* @name UsersControllerGetProfile
|
|
1244
|
+
* @request GET:/api/users/profile
|
|
1245
|
+
* @response `200` `UsersControllerGetProfileData`
|
|
1246
|
+
*/
|
|
1247
|
+
usersControllerGetProfile: (params?: RequestParams) => Promise<AxiosResponse<any, any>>;
|
|
1248
|
+
/**
|
|
1249
|
+
* No description
|
|
1250
|
+
*
|
|
1251
|
+
* @name UsersControllerUpdateProfile
|
|
1252
|
+
* @request PATCH:/api/users/profile
|
|
1253
|
+
* @response `200` `UsersControllerUpdateProfileData`
|
|
1254
|
+
*/
|
|
1255
|
+
usersControllerUpdateProfile: (data: UpdateProfileDto, params?: RequestParams) => Promise<AxiosResponse<any, any>>;
|
|
1256
|
+
/**
|
|
1257
|
+
* No description
|
|
1258
|
+
*
|
|
1259
|
+
* @tags organizations
|
|
1260
|
+
* @name OrganizationsControllerCreate
|
|
1261
|
+
* @summary Create a new organization
|
|
1262
|
+
* @request POST:/api/organizations
|
|
1263
|
+
* @secure
|
|
1264
|
+
* @response `201` `OrganizationsControllerCreateData`
|
|
1265
|
+
*/
|
|
1266
|
+
organizationsControllerCreate: (data: CreateOrganizationDto, params?: RequestParams) => Promise<AxiosResponse<any, any>>;
|
|
1267
|
+
/**
|
|
1268
|
+
* No description
|
|
1269
|
+
*
|
|
1270
|
+
* @tags organizations
|
|
1271
|
+
* @name OrganizationsControllerFindAll
|
|
1272
|
+
* @request GET:/api/organizations
|
|
1273
|
+
* @secure
|
|
1274
|
+
* @response `200` `OrganizationsControllerFindAllData`
|
|
1275
|
+
*/
|
|
1276
|
+
organizationsControllerFindAll: (query: OrganizationsControllerFindAllParams, params?: RequestParams) => Promise<AxiosResponse<any, any>>;
|
|
1277
|
+
/**
|
|
1278
|
+
* No description
|
|
1279
|
+
*
|
|
1280
|
+
* @tags organizations
|
|
1281
|
+
* @name OrganizationsControllerAddUser
|
|
1282
|
+
* @summary Add a user to the organization
|
|
1283
|
+
* @request POST:/api/organizations/{id}/users
|
|
1284
|
+
* @secure
|
|
1285
|
+
* @response `201` `OrganizationsControllerAddUserData`
|
|
1286
|
+
*/
|
|
1287
|
+
organizationsControllerAddUser: (id: string, data: AddUserToOrganizationDto, params?: RequestParams) => Promise<AxiosResponse<any, any>>;
|
|
1288
|
+
/**
|
|
1289
|
+
* No description
|
|
1290
|
+
*
|
|
1291
|
+
* @tags organizations
|
|
1292
|
+
* @name OrganizationsControllerSwitchOrganization
|
|
1293
|
+
* @summary Switch current organization
|
|
1294
|
+
* @request POST:/api/organizations/switch/{id}
|
|
1295
|
+
* @secure
|
|
1296
|
+
* @response `201` `OrganizationsControllerSwitchOrganizationData`
|
|
1297
|
+
*/
|
|
1298
|
+
organizationsControllerSwitchOrganization: (id: string, params?: RequestParams) => Promise<AxiosResponse<any, any>>;
|
|
1299
|
+
/**
|
|
1300
|
+
* No description
|
|
1301
|
+
*
|
|
1302
|
+
* @tags organizations
|
|
1303
|
+
* @name OrganizationsControllerGetDemoRequests
|
|
1304
|
+
* @summary Get all demo requests
|
|
1305
|
+
* @request GET:/api/organizations/demo-requests
|
|
1306
|
+
* @secure
|
|
1307
|
+
* @response `200` `OrganizationsControllerGetDemoRequestsData`
|
|
1308
|
+
*/
|
|
1309
|
+
organizationsControllerGetDemoRequests: (params?: RequestParams) => Promise<AxiosResponse<any, any>>;
|
|
1310
|
+
/**
|
|
1311
|
+
* @description Sets organization status to ACTIVE and optionally activates all users in the organization
|
|
1312
|
+
*
|
|
1313
|
+
* @tags organizations
|
|
1314
|
+
* @name OrganizationsControllerActivateOrganization
|
|
1315
|
+
* @summary Activate an organization
|
|
1316
|
+
* @request PATCH:/api/organizations/{id}/activate
|
|
1317
|
+
* @secure
|
|
1318
|
+
* @response `200` `OrganizationsControllerActivateOrganizationData`
|
|
1319
|
+
*/
|
|
1320
|
+
organizationsControllerActivateOrganization: (id: string, data: ActivateOrganizationDto, params?: RequestParams) => Promise<AxiosResponse<any, any>>;
|
|
1321
|
+
/**
|
|
1322
|
+
* No description
|
|
1323
|
+
*
|
|
1324
|
+
* @name ApiKeysControllerCreate
|
|
1325
|
+
* @request POST:/api/api-keys
|
|
1326
|
+
* @response `201` `ApiKeysControllerCreateData`
|
|
1327
|
+
*/
|
|
1328
|
+
apiKeysControllerCreate: (data: CreateApiKeyDto, params?: RequestParams) => Promise<AxiosResponse<any, any>>;
|
|
1329
|
+
/**
|
|
1330
|
+
* No description
|
|
1331
|
+
*
|
|
1332
|
+
* @name ApiKeysControllerFindAll
|
|
1333
|
+
* @request GET:/api/api-keys
|
|
1334
|
+
* @response `200` `ApiKeysControllerFindAllData`
|
|
1335
|
+
*/
|
|
1336
|
+
apiKeysControllerFindAll: (params?: RequestParams) => Promise<AxiosResponse<any, any>>;
|
|
1337
|
+
/**
|
|
1338
|
+
* No description
|
|
1339
|
+
*
|
|
1340
|
+
* @name ApiKeysControllerDeactivate
|
|
1341
|
+
* @request PATCH:/api/api-keys/{id}/deactivate
|
|
1342
|
+
* @response `200` `ApiKeysControllerDeactivateData`
|
|
1343
|
+
*/
|
|
1344
|
+
apiKeysControllerDeactivate: (id: string, params?: RequestParams) => Promise<AxiosResponse<any, any>>;
|
|
1345
|
+
/**
|
|
1346
|
+
* No description
|
|
1347
|
+
*
|
|
1348
|
+
* @tags feature-flags
|
|
1349
|
+
* @name FeatureFlagControllerCreate
|
|
1350
|
+
* @summary Create a new feature flag
|
|
1351
|
+
* @request POST:/api/feature-flags
|
|
1352
|
+
* @secure
|
|
1353
|
+
* @response `201` `FeatureFlagControllerCreateData` Feature flag created successfully
|
|
1354
|
+
*/
|
|
1355
|
+
featureFlagControllerCreate: (data: CreateFeatureFlagDto, params?: RequestParams) => Promise<AxiosResponse<object, any>>;
|
|
1356
|
+
/**
|
|
1357
|
+
* No description
|
|
1358
|
+
*
|
|
1359
|
+
* @tags feature-flags
|
|
1360
|
+
* @name FeatureFlagControllerFindAll
|
|
1361
|
+
* @summary Get all feature flags for the current project
|
|
1362
|
+
* @request GET:/api/feature-flags
|
|
1363
|
+
* @secure
|
|
1364
|
+
* @response `200` `FeatureFlagControllerFindAllData` Returns all feature flags
|
|
1365
|
+
*/
|
|
1366
|
+
featureFlagControllerFindAll: (params?: RequestParams) => Promise<AxiosResponse<FeatureFlagControllerFindAllData, any>>;
|
|
1367
|
+
/**
|
|
1368
|
+
* No description
|
|
1369
|
+
*
|
|
1370
|
+
* @tags feature-flags
|
|
1371
|
+
* @name FeatureFlagControllerToggle
|
|
1372
|
+
* @summary Toggle feature flag status
|
|
1373
|
+
* @request PATCH:/api/feature-flags/{id}/toggle
|
|
1374
|
+
* @secure
|
|
1375
|
+
* @response `200` `FeatureFlagControllerToggleData` Feature flag toggled successfully
|
|
1376
|
+
*/
|
|
1377
|
+
featureFlagControllerToggle: (id: string, params?: RequestParams) => Promise<AxiosResponse<object, any>>;
|
|
1378
|
+
/**
|
|
1379
|
+
* No description
|
|
1380
|
+
*
|
|
1381
|
+
* @tags feature-flags
|
|
1382
|
+
* @name FeatureFlagControllerUpdate
|
|
1383
|
+
* @summary Update feature flag
|
|
1384
|
+
* @request PATCH:/api/feature-flags/{id}
|
|
1385
|
+
* @secure
|
|
1386
|
+
* @response `200` `FeatureFlagControllerUpdateData`
|
|
1387
|
+
*/
|
|
1388
|
+
featureFlagControllerUpdate: (id: string, params?: RequestParams) => Promise<AxiosResponse<any, any>>;
|
|
1389
|
+
/**
|
|
1390
|
+
* No description
|
|
1391
|
+
*
|
|
1392
|
+
* @tags feature-flags
|
|
1393
|
+
* @name FeatureFlagControllerDelete
|
|
1394
|
+
* @summary Delete feature flag
|
|
1395
|
+
* @request DELETE:/api/feature-flags/{id}
|
|
1396
|
+
* @secure
|
|
1397
|
+
* @response `200` `FeatureFlagControllerDeleteData`
|
|
1398
|
+
*/
|
|
1399
|
+
featureFlagControllerDelete: (id: string, params?: RequestParams) => Promise<AxiosResponse<any, any>>;
|
|
1400
|
+
/**
|
|
1401
|
+
* No description
|
|
1402
|
+
*
|
|
1403
|
+
* @tags feature-flags
|
|
1404
|
+
* @name FeatureFlagControllerFindAllSdk
|
|
1405
|
+
* @summary Get all feature flags for SDK
|
|
1406
|
+
* @request GET:/api/feature-flags/sdk
|
|
1407
|
+
* @response `200` `FeatureFlagControllerFindAllSdkData` Returns all feature flags
|
|
1408
|
+
*/
|
|
1409
|
+
featureFlagControllerFindAllSdk: (query: FeatureFlagControllerFindAllSdkParams, params?: RequestParams) => Promise<AxiosResponse<FeatureFlagControllerFindAllSdkData, any>>;
|
|
1410
|
+
/**
|
|
1411
|
+
* No description
|
|
1412
|
+
*
|
|
1413
|
+
* @name ProjectsControllerFindAll
|
|
1414
|
+
* @request GET:/api/projects
|
|
1415
|
+
* @response `200` `ProjectsControllerFindAllData`
|
|
1416
|
+
*/
|
|
1417
|
+
projectsControllerFindAll: (params?: RequestParams) => Promise<AxiosResponse<any, any>>;
|
|
1418
|
+
/**
|
|
1419
|
+
* No description
|
|
1420
|
+
*
|
|
1421
|
+
* @name ProjectsControllerCreate
|
|
1422
|
+
* @request POST:/api/projects
|
|
1423
|
+
* @response `201` `ProjectsControllerCreateData`
|
|
1424
|
+
*/
|
|
1425
|
+
projectsControllerCreate: (data: CreateProjectDto, params?: RequestParams) => Promise<AxiosResponse<any, any>>;
|
|
1426
|
+
/**
|
|
1427
|
+
* No description
|
|
1428
|
+
*
|
|
1429
|
+
* @name ProjectsControllerUpdate
|
|
1430
|
+
* @request PATCH:/api/projects/{id}
|
|
1431
|
+
* @response `200` `ProjectsControllerUpdateData`
|
|
1432
|
+
*/
|
|
1433
|
+
projectsControllerUpdate: (id: string, data: UpdateProjectDto, params?: RequestParams) => Promise<AxiosResponse<any, any>>;
|
|
1434
|
+
/**
|
|
1435
|
+
* No description
|
|
1436
|
+
*
|
|
1437
|
+
* @name ProjectsControllerDelete
|
|
1438
|
+
* @request DELETE:/api/projects/{id}
|
|
1439
|
+
* @response `200` `ProjectsControllerDeleteData`
|
|
1440
|
+
*/
|
|
1441
|
+
projectsControllerDelete: (id: string, params?: RequestParams) => Promise<AxiosResponse<any, any>>;
|
|
1442
|
+
/**
|
|
1443
|
+
* No description
|
|
1444
|
+
*
|
|
1445
|
+
* @name FeedbackControllerSubmit
|
|
1446
|
+
* @request POST:/api/feedback
|
|
1447
|
+
* @response `201` `FeedbackControllerSubmitData`
|
|
1448
|
+
*/
|
|
1449
|
+
feedbackControllerSubmit: (data: SubmitFeedbackDto, params?: RequestParams) => Promise<AxiosResponse<any, any>>;
|
|
1450
|
+
/**
|
|
1451
|
+
* No description
|
|
1452
|
+
*
|
|
1453
|
+
* @tags stripe
|
|
1454
|
+
* @name StripeControllerHandleWebhook
|
|
1455
|
+
* @summary Handle Stripe webhooks
|
|
1456
|
+
* @request POST:/api/stripe/webhook
|
|
1457
|
+
* @response `200` `StripeControllerHandleWebhookData` Webhook processed successfully
|
|
1458
|
+
* @response `400` `void` Bad request or webhook error
|
|
1459
|
+
*/
|
|
1460
|
+
stripeControllerHandleWebhook: (params?: RequestParams) => Promise<AxiosResponse<any, any>>;
|
|
1461
|
+
/**
|
|
1462
|
+
* No description
|
|
1463
|
+
*
|
|
1464
|
+
* @tags stripe
|
|
1465
|
+
* @name StripeControllerHandleWebhookDebug
|
|
1466
|
+
* @request POST:/api/stripe/webhook-debug
|
|
1467
|
+
* @response `201` `StripeControllerHandleWebhookDebugData`
|
|
1468
|
+
*/
|
|
1469
|
+
stripeControllerHandleWebhookDebug: (params?: RequestParams) => Promise<AxiosResponse<any, any>>;
|
|
1470
|
+
/**
|
|
1471
|
+
* No description
|
|
1472
|
+
*
|
|
1473
|
+
* @tags stripe
|
|
1474
|
+
* @name StripeControllerCreateCheckoutSession
|
|
1475
|
+
* @summary Create checkout session with specific price ID
|
|
1476
|
+
* @request POST:/api/stripe/create-checkout-session
|
|
1477
|
+
* @response `200` `StripeControllerCreateCheckoutSessionData` Checkout session created successfully
|
|
1478
|
+
* @response `400` `void` Error creating checkout session
|
|
1479
|
+
*/
|
|
1480
|
+
stripeControllerCreateCheckoutSession: (data: CreateCheckoutSessionDto, params?: RequestParams) => Promise<AxiosResponse<CheckoutSessionResponseDto, any>>;
|
|
1481
|
+
/**
|
|
1482
|
+
* No description
|
|
1483
|
+
*
|
|
1484
|
+
* @tags stripe
|
|
1485
|
+
* @name StripeControllerCreateCheckoutSessionByPlan
|
|
1486
|
+
* @summary Create checkout session by plan type (automatically finds correct price)
|
|
1487
|
+
* @request POST:/api/stripe/create-checkout-session-by-plan
|
|
1488
|
+
* @response `200` `StripeControllerCreateCheckoutSessionByPlanData` Checkout session created successfully
|
|
1489
|
+
* @response `400` `void` Error creating checkout session
|
|
1490
|
+
*/
|
|
1491
|
+
stripeControllerCreateCheckoutSessionByPlan: (data: CreateCheckoutSessionByPlanDto, params?: RequestParams) => Promise<AxiosResponse<CheckoutSessionResponseDto, any>>;
|
|
1492
|
+
/**
|
|
1493
|
+
* No description
|
|
1494
|
+
*
|
|
1495
|
+
* @tags stripe
|
|
1496
|
+
* @name StripeControllerGetProducts
|
|
1497
|
+
* @summary Get all products with features and pricing
|
|
1498
|
+
* @request GET:/api/stripe/products
|
|
1499
|
+
* @response `200` `StripeControllerGetProductsData` Products retrieved successfully
|
|
1500
|
+
* @response `400` `void` Error fetching products
|
|
1501
|
+
*/
|
|
1502
|
+
stripeControllerGetProducts: (query: StripeControllerGetProductsParams, params?: RequestParams) => Promise<AxiosResponse<StripeProductsResponseDto, any>>;
|
|
1503
|
+
/**
|
|
1504
|
+
* No description
|
|
1505
|
+
*
|
|
1506
|
+
* @tags stripe
|
|
1507
|
+
* @name StripeControllerGetEnvironment
|
|
1508
|
+
* @summary Get current Stripe environment (test/live mode)
|
|
1509
|
+
* @request GET:/api/stripe/environment
|
|
1510
|
+
* @response `200` `StripeControllerGetEnvironmentData` Environment information
|
|
1511
|
+
*/
|
|
1512
|
+
stripeControllerGetEnvironment: (params?: RequestParams) => Promise<AxiosResponse<StripeEnvironmentResponseDto, any>>;
|
|
1513
|
+
/**
|
|
1514
|
+
* No description
|
|
1515
|
+
*
|
|
1516
|
+
* @tags stripe
|
|
1517
|
+
* @name StripeControllerCreatePaymentIntent
|
|
1518
|
+
* @summary Create a payment intent
|
|
1519
|
+
* @request POST:/api/stripe/create-payment-intent
|
|
1520
|
+
* @response `200` `StripeControllerCreatePaymentIntentData` Payment intent created successfully
|
|
1521
|
+
* @response `400` `void` Error creating payment intent
|
|
1522
|
+
*/
|
|
1523
|
+
stripeControllerCreatePaymentIntent: (data: CreatePaymentIntentDto, params?: RequestParams) => Promise<AxiosResponse<any, any>>;
|
|
1524
|
+
/**
|
|
1525
|
+
* No description
|
|
1526
|
+
*
|
|
1527
|
+
* @tags stripe
|
|
1528
|
+
* @name StripeControllerGetSubscription
|
|
1529
|
+
* @summary Get subscription by ID
|
|
1530
|
+
* @request GET:/api/stripe/subscription/{id}
|
|
1531
|
+
* @response `200` `StripeControllerGetSubscriptionData` Subscription retrieved successfully
|
|
1532
|
+
* @response `404` `void` Subscription not found
|
|
1533
|
+
*/
|
|
1534
|
+
stripeControllerGetSubscription: (id: string, params?: RequestParams) => Promise<AxiosResponse<any, any>>;
|
|
1535
|
+
/**
|
|
1536
|
+
* No description
|
|
1537
|
+
*
|
|
1538
|
+
* @tags stripe
|
|
1539
|
+
* @name StripeControllerUpdateSubscription
|
|
1540
|
+
* @summary Update subscription
|
|
1541
|
+
* @request PATCH:/api/stripe/subscription/{id}
|
|
1542
|
+
* @response `200` `StripeControllerUpdateSubscriptionData` Subscription updated successfully
|
|
1543
|
+
* @response `404` `void` Subscription not found
|
|
1544
|
+
*/
|
|
1545
|
+
stripeControllerUpdateSubscription: (id: string, params?: RequestParams) => Promise<AxiosResponse<any, any>>;
|
|
1546
|
+
/**
|
|
1547
|
+
* No description
|
|
1548
|
+
*
|
|
1549
|
+
* @tags stripe
|
|
1550
|
+
* @name StripeControllerGetCustomerSubscriptions
|
|
1551
|
+
* @summary Get all subscriptions for a customer
|
|
1552
|
+
* @request GET:/api/stripe/customer/{id}/subscriptions
|
|
1553
|
+
* @response `200` `StripeControllerGetCustomerSubscriptionsData` Customer subscriptions retrieved successfully
|
|
1554
|
+
* @response `404` `void` Customer not found
|
|
1555
|
+
*/
|
|
1556
|
+
stripeControllerGetCustomerSubscriptions: (id: string, params?: RequestParams) => Promise<AxiosResponse<any, any>>;
|
|
1557
|
+
/**
|
|
1558
|
+
* No description
|
|
1559
|
+
*
|
|
1560
|
+
* @tags stripe
|
|
1561
|
+
* @name StripeControllerCancelSubscription
|
|
1562
|
+
* @summary Cancel subscription
|
|
1563
|
+
* @request POST:/api/stripe/subscription/{id}/cancel
|
|
1564
|
+
* @response `200` `StripeControllerCancelSubscriptionData` Subscription canceled successfully
|
|
1565
|
+
* @response `404` `void` Subscription not found
|
|
1566
|
+
*/
|
|
1567
|
+
stripeControllerCancelSubscription: (id: string, params?: RequestParams) => Promise<AxiosResponse<any, any>>;
|
|
1568
|
+
/**
|
|
1569
|
+
* No description
|
|
1570
|
+
*
|
|
1571
|
+
* @tags onboarding
|
|
1572
|
+
* @name OnboardingControllerRequestDemo
|
|
1573
|
+
* @summary Request a demo account
|
|
1574
|
+
* @request POST:/api/onboarding/request-demo
|
|
1575
|
+
* @response `201` `OnboardingControllerRequestDemoData`
|
|
1576
|
+
*/
|
|
1577
|
+
onboardingControllerRequestDemo: (data: DemoRequestDto, params?: RequestParams) => Promise<AxiosResponse<any, any>>;
|
|
1578
|
+
};
|
|
1579
|
+
}
|