@oriva/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 +98 -0
- package/dist/generated/client/client.gen.d.ts +3 -0
- package/dist/generated/client/client.gen.d.ts.map +1 -0
- package/dist/generated/client/client.gen.js +219 -0
- package/dist/generated/client/index.d.ts +9 -0
- package/dist/generated/client/index.d.ts.map +1 -0
- package/dist/generated/client/index.js +6 -0
- package/dist/generated/client/types.gen.d.ts +121 -0
- package/dist/generated/client/types.gen.d.ts.map +1 -0
- package/dist/generated/client/types.gen.js +2 -0
- package/dist/generated/client/utils.gen.d.ts +38 -0
- package/dist/generated/client/utils.gen.d.ts.map +1 -0
- package/dist/generated/client/utils.gen.js +228 -0
- package/dist/generated/client.gen.d.ts +13 -0
- package/dist/generated/client.gen.d.ts.map +1 -0
- package/dist/generated/client.gen.js +4 -0
- package/dist/generated/core/auth.gen.d.ts +19 -0
- package/dist/generated/core/auth.gen.d.ts.map +1 -0
- package/dist/generated/core/auth.gen.js +14 -0
- package/dist/generated/core/bodySerializer.gen.d.ts +26 -0
- package/dist/generated/core/bodySerializer.gen.d.ts.map +1 -0
- package/dist/generated/core/bodySerializer.gen.js +57 -0
- package/dist/generated/core/params.gen.d.ts +44 -0
- package/dist/generated/core/params.gen.d.ts.map +1 -0
- package/dist/generated/core/params.gen.js +100 -0
- package/dist/generated/core/pathSerializer.gen.d.ts +34 -0
- package/dist/generated/core/pathSerializer.gen.d.ts.map +1 -0
- package/dist/generated/core/pathSerializer.gen.js +106 -0
- package/dist/generated/core/queryKeySerializer.gen.d.ts +19 -0
- package/dist/generated/core/queryKeySerializer.gen.d.ts.map +1 -0
- package/dist/generated/core/queryKeySerializer.gen.js +92 -0
- package/dist/generated/core/serverSentEvents.gen.d.ts +72 -0
- package/dist/generated/core/serverSentEvents.gen.d.ts.map +1 -0
- package/dist/generated/core/serverSentEvents.gen.js +132 -0
- package/dist/generated/core/types.gen.d.ts +79 -0
- package/dist/generated/core/types.gen.d.ts.map +1 -0
- package/dist/generated/core/types.gen.js +2 -0
- package/dist/generated/core/utils.gen.d.ts +20 -0
- package/dist/generated/core/utils.gen.d.ts.map +1 -0
- package/dist/generated/core/utils.gen.js +87 -0
- package/dist/generated/index.d.ts +3 -0
- package/dist/generated/index.d.ts.map +1 -0
- package/dist/generated/index.js +2 -0
- package/dist/generated/sdk.gen.d.ts +282 -0
- package/dist/generated/sdk.gen.d.ts.map +1 -0
- package/dist/generated/sdk.gen.js +488 -0
- package/dist/generated/types.gen.d.ts +1652 -0
- package/dist/generated/types.gen.d.ts.map +1 -0
- package/dist/generated/types.gen.js +2 -0
- package/dist/index.d.ts +47 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +40 -0
- package/dist/runtime-config.d.ts +3 -0
- package/dist/runtime-config.d.ts.map +1 -0
- package/dist/runtime-config.js +4 -0
- package/package.json +53 -0
|
@@ -0,0 +1,1652 @@
|
|
|
1
|
+
export type ClientOptions = {
|
|
2
|
+
baseUrl: 'https://api.oriva.io' | 'http://localhost:3002' | (string & {});
|
|
3
|
+
};
|
|
4
|
+
export type AuthSessionResponse = {
|
|
5
|
+
user: {
|
|
6
|
+
id: string;
|
|
7
|
+
email: string | null;
|
|
8
|
+
display_name: string | null;
|
|
9
|
+
username: string | null;
|
|
10
|
+
subscription_tier: string;
|
|
11
|
+
created_at: string;
|
|
12
|
+
};
|
|
13
|
+
access_token: string;
|
|
14
|
+
refresh_token: string;
|
|
15
|
+
expires_in: number;
|
|
16
|
+
};
|
|
17
|
+
export type AuthProfileResponse = {
|
|
18
|
+
ok: boolean;
|
|
19
|
+
success: boolean;
|
|
20
|
+
data: {
|
|
21
|
+
id: string;
|
|
22
|
+
email: string | null;
|
|
23
|
+
displayName: string;
|
|
24
|
+
avatar: string | null;
|
|
25
|
+
authType: string;
|
|
26
|
+
permissions: Array<string>;
|
|
27
|
+
lastLogin: string;
|
|
28
|
+
accountStatus: string;
|
|
29
|
+
twoFactorEnabled: boolean;
|
|
30
|
+
emailVerified: boolean;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
export type RawProfileResponse = {
|
|
34
|
+
id: string;
|
|
35
|
+
display_name: string | null;
|
|
36
|
+
username: string | null;
|
|
37
|
+
bio: string | null;
|
|
38
|
+
avatar_url: string | null;
|
|
39
|
+
location: string | null;
|
|
40
|
+
website_url: string | null;
|
|
41
|
+
};
|
|
42
|
+
export type TokenRefreshResponse = {
|
|
43
|
+
access_token: string;
|
|
44
|
+
refresh_token: string;
|
|
45
|
+
expires_in: number;
|
|
46
|
+
};
|
|
47
|
+
export type ProfileSummary = {
|
|
48
|
+
profileId: string;
|
|
49
|
+
profileName: string;
|
|
50
|
+
isActive: boolean;
|
|
51
|
+
avatar: string | null;
|
|
52
|
+
isDefault: boolean;
|
|
53
|
+
};
|
|
54
|
+
export type UpdatedProfile = {
|
|
55
|
+
ok: boolean;
|
|
56
|
+
success: boolean;
|
|
57
|
+
data: {
|
|
58
|
+
profileId: string;
|
|
59
|
+
profileName: string;
|
|
60
|
+
isActive: boolean;
|
|
61
|
+
avatar: string | null;
|
|
62
|
+
bio: string | null;
|
|
63
|
+
location: string | null;
|
|
64
|
+
updatedAt: string;
|
|
65
|
+
};
|
|
66
|
+
message?: string;
|
|
67
|
+
};
|
|
68
|
+
export type GroupSummary = {
|
|
69
|
+
groupId: string;
|
|
70
|
+
groupName: string;
|
|
71
|
+
memberCount: number;
|
|
72
|
+
isActive: boolean;
|
|
73
|
+
role: string;
|
|
74
|
+
description: string | null;
|
|
75
|
+
image_url: string | null;
|
|
76
|
+
external_link: string | null;
|
|
77
|
+
};
|
|
78
|
+
export type GroupMember = {
|
|
79
|
+
memberId: string;
|
|
80
|
+
displayName: string;
|
|
81
|
+
role: string;
|
|
82
|
+
joinedAt: string;
|
|
83
|
+
avatar: string | null;
|
|
84
|
+
};
|
|
85
|
+
export type UserMe = {
|
|
86
|
+
ok: boolean;
|
|
87
|
+
success: boolean;
|
|
88
|
+
data: {
|
|
89
|
+
id: string;
|
|
90
|
+
username: string | null;
|
|
91
|
+
displayName: string;
|
|
92
|
+
email: string | null;
|
|
93
|
+
bio: string | null;
|
|
94
|
+
location: string | null;
|
|
95
|
+
website: string | null;
|
|
96
|
+
avatar: string | null;
|
|
97
|
+
createdAt: string;
|
|
98
|
+
updatedAt: string;
|
|
99
|
+
apiKeyInfo: {
|
|
100
|
+
keyId: string;
|
|
101
|
+
name: string;
|
|
102
|
+
userId: string;
|
|
103
|
+
permissions: Array<string>;
|
|
104
|
+
usageCount: number;
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
export type AnalyticsSummary = {
|
|
109
|
+
ok: boolean;
|
|
110
|
+
success: boolean;
|
|
111
|
+
data: {
|
|
112
|
+
overview: {
|
|
113
|
+
totalEntries: number;
|
|
114
|
+
totalResponses: number;
|
|
115
|
+
totalGroups: number;
|
|
116
|
+
installedApps: number;
|
|
117
|
+
};
|
|
118
|
+
metrics: {
|
|
119
|
+
entriesGrowth: string;
|
|
120
|
+
responseGrowth: string;
|
|
121
|
+
groupActivity: string;
|
|
122
|
+
appUsage: string;
|
|
123
|
+
};
|
|
124
|
+
recentActivity: Array<unknown>;
|
|
125
|
+
timeRange: {
|
|
126
|
+
start: string;
|
|
127
|
+
end: string;
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
message?: string;
|
|
131
|
+
};
|
|
132
|
+
export type TeamMember = {
|
|
133
|
+
profileId: string;
|
|
134
|
+
displayName: string | null;
|
|
135
|
+
username: string | null;
|
|
136
|
+
avatarUrl: string | null;
|
|
137
|
+
role: string;
|
|
138
|
+
joinedAt: string;
|
|
139
|
+
group: {
|
|
140
|
+
id: string;
|
|
141
|
+
name: string;
|
|
142
|
+
};
|
|
143
|
+
};
|
|
144
|
+
export type MarketplaceApp = {
|
|
145
|
+
id: string;
|
|
146
|
+
external_id?: string;
|
|
147
|
+
name: string;
|
|
148
|
+
slug: string;
|
|
149
|
+
tagline?: string | null;
|
|
150
|
+
description?: string | null;
|
|
151
|
+
category: string;
|
|
152
|
+
icon_url?: string | null;
|
|
153
|
+
screenshots?: Array<string> | null;
|
|
154
|
+
version: string;
|
|
155
|
+
pricing_model: string;
|
|
156
|
+
pricing_config?: {
|
|
157
|
+
[key: string]: unknown;
|
|
158
|
+
} | null;
|
|
159
|
+
install_count: number;
|
|
160
|
+
developer_id: string;
|
|
161
|
+
developer_name: string;
|
|
162
|
+
status: 'draft' | 'pending_review' | 'approved' | 'rejected';
|
|
163
|
+
is_active: boolean;
|
|
164
|
+
supported_audience?: Array<string> | null;
|
|
165
|
+
created_at: string;
|
|
166
|
+
updated_at: string;
|
|
167
|
+
};
|
|
168
|
+
export type InstalledApp = {
|
|
169
|
+
installationId: string;
|
|
170
|
+
installedAt: string;
|
|
171
|
+
isActive: boolean;
|
|
172
|
+
settings: {
|
|
173
|
+
[key: string]: unknown;
|
|
174
|
+
} | null;
|
|
175
|
+
app: MarketplaceApp;
|
|
176
|
+
};
|
|
177
|
+
export type MarketplaceItem = {
|
|
178
|
+
id: string;
|
|
179
|
+
title: string;
|
|
180
|
+
content?: string | null;
|
|
181
|
+
profile_id: string;
|
|
182
|
+
entry_type: string;
|
|
183
|
+
marketplace_metadata?: {
|
|
184
|
+
[key: string]: unknown;
|
|
185
|
+
} | null;
|
|
186
|
+
created_at: string;
|
|
187
|
+
updated_at: string;
|
|
188
|
+
};
|
|
189
|
+
export type Category = {
|
|
190
|
+
id: string;
|
|
191
|
+
name: string;
|
|
192
|
+
description?: string | null;
|
|
193
|
+
collection_type: string;
|
|
194
|
+
organization_rules?: {
|
|
195
|
+
[key: string]: unknown;
|
|
196
|
+
} | null;
|
|
197
|
+
created_at: string;
|
|
198
|
+
updated_at: string;
|
|
199
|
+
};
|
|
200
|
+
export type Entry = {
|
|
201
|
+
id: string;
|
|
202
|
+
title: string;
|
|
203
|
+
content: string;
|
|
204
|
+
profile_id: string;
|
|
205
|
+
audience_type: string;
|
|
206
|
+
created_at: string;
|
|
207
|
+
updated_at: string;
|
|
208
|
+
};
|
|
209
|
+
export type Event = {
|
|
210
|
+
id: string;
|
|
211
|
+
title: string;
|
|
212
|
+
description: string;
|
|
213
|
+
startDate: string;
|
|
214
|
+
endDate: string;
|
|
215
|
+
location: string | null;
|
|
216
|
+
isOnline: boolean;
|
|
217
|
+
category: string;
|
|
218
|
+
organizer: string;
|
|
219
|
+
maxAttendees: number | null;
|
|
220
|
+
currentAttendees: number | null;
|
|
221
|
+
price: number;
|
|
222
|
+
tags: Array<string>;
|
|
223
|
+
imageUrl: string | null;
|
|
224
|
+
createdAt: string;
|
|
225
|
+
updatedAt: string;
|
|
226
|
+
};
|
|
227
|
+
export type CreatedPersonalToken = {
|
|
228
|
+
ok: true;
|
|
229
|
+
success: true;
|
|
230
|
+
data: {
|
|
231
|
+
/**
|
|
232
|
+
* Full token value — displayed ONCE. Store it now; it cannot be retrieved again.
|
|
233
|
+
*/
|
|
234
|
+
token: string;
|
|
235
|
+
id: string;
|
|
236
|
+
name: string;
|
|
237
|
+
/**
|
|
238
|
+
* First 20 characters of the token, safe to display later.
|
|
239
|
+
*/
|
|
240
|
+
prefix: string;
|
|
241
|
+
created_at: string;
|
|
242
|
+
expires_at: string | null;
|
|
243
|
+
};
|
|
244
|
+
};
|
|
245
|
+
export type PersonalTokenSummary = {
|
|
246
|
+
id: string;
|
|
247
|
+
name: string;
|
|
248
|
+
prefix: string;
|
|
249
|
+
created_at: string;
|
|
250
|
+
last_used_at: string | null;
|
|
251
|
+
expires_at: string | null;
|
|
252
|
+
is_active: boolean;
|
|
253
|
+
};
|
|
254
|
+
export type PersonalTokenList = {
|
|
255
|
+
ok: true;
|
|
256
|
+
success: true;
|
|
257
|
+
data: Array<PersonalTokenSummary>;
|
|
258
|
+
};
|
|
259
|
+
export type RegisterData = {
|
|
260
|
+
body?: {
|
|
261
|
+
email: string;
|
|
262
|
+
password: string;
|
|
263
|
+
name?: string;
|
|
264
|
+
username?: string;
|
|
265
|
+
preferences?: unknown;
|
|
266
|
+
};
|
|
267
|
+
path?: never;
|
|
268
|
+
query?: never;
|
|
269
|
+
url: '/api/v1/auth/register';
|
|
270
|
+
};
|
|
271
|
+
export type RegisterErrors = {
|
|
272
|
+
/**
|
|
273
|
+
* Validation error — weak password or invalid email
|
|
274
|
+
*/
|
|
275
|
+
400: unknown;
|
|
276
|
+
/**
|
|
277
|
+
* Email already registered
|
|
278
|
+
*/
|
|
279
|
+
409: unknown;
|
|
280
|
+
};
|
|
281
|
+
export type RegisterResponses = {
|
|
282
|
+
/**
|
|
283
|
+
* User registered and session created
|
|
284
|
+
*/
|
|
285
|
+
201: AuthSessionResponse;
|
|
286
|
+
};
|
|
287
|
+
export type RegisterResponse = RegisterResponses[keyof RegisterResponses];
|
|
288
|
+
export type LoginData = {
|
|
289
|
+
body?: {
|
|
290
|
+
email: string;
|
|
291
|
+
password: string;
|
|
292
|
+
};
|
|
293
|
+
path?: never;
|
|
294
|
+
query?: never;
|
|
295
|
+
url: '/api/v1/auth/login';
|
|
296
|
+
};
|
|
297
|
+
export type LoginErrors = {
|
|
298
|
+
/**
|
|
299
|
+
* Validation error — missing email or password
|
|
300
|
+
*/
|
|
301
|
+
400: unknown;
|
|
302
|
+
/**
|
|
303
|
+
* Invalid credentials
|
|
304
|
+
*/
|
|
305
|
+
401: unknown;
|
|
306
|
+
};
|
|
307
|
+
export type LoginResponses = {
|
|
308
|
+
/**
|
|
309
|
+
* Login successful
|
|
310
|
+
*/
|
|
311
|
+
200: AuthSessionResponse;
|
|
312
|
+
};
|
|
313
|
+
export type LoginResponse = LoginResponses[keyof LoginResponses];
|
|
314
|
+
export type LogoutData = {
|
|
315
|
+
body?: never;
|
|
316
|
+
path?: never;
|
|
317
|
+
query?: never;
|
|
318
|
+
url: '/api/v1/auth/logout';
|
|
319
|
+
};
|
|
320
|
+
export type LogoutErrors = {
|
|
321
|
+
/**
|
|
322
|
+
* Missing authorization header
|
|
323
|
+
*/
|
|
324
|
+
401: unknown;
|
|
325
|
+
};
|
|
326
|
+
export type LogoutResponses = {
|
|
327
|
+
/**
|
|
328
|
+
* Logged out
|
|
329
|
+
*/
|
|
330
|
+
204: void;
|
|
331
|
+
};
|
|
332
|
+
export type LogoutResponse = LogoutResponses[keyof LogoutResponses];
|
|
333
|
+
export type RefreshTokenData = {
|
|
334
|
+
body?: {
|
|
335
|
+
refresh_token: string;
|
|
336
|
+
};
|
|
337
|
+
path?: never;
|
|
338
|
+
query?: never;
|
|
339
|
+
url: '/api/v1/auth/token/refresh';
|
|
340
|
+
};
|
|
341
|
+
export type RefreshTokenErrors = {
|
|
342
|
+
/**
|
|
343
|
+
* Validation error — missing refresh_token
|
|
344
|
+
*/
|
|
345
|
+
400: unknown;
|
|
346
|
+
/**
|
|
347
|
+
* Invalid or expired refresh token
|
|
348
|
+
*/
|
|
349
|
+
401: unknown;
|
|
350
|
+
};
|
|
351
|
+
export type RefreshTokenResponses = {
|
|
352
|
+
/**
|
|
353
|
+
* New tokens issued
|
|
354
|
+
*/
|
|
355
|
+
200: TokenRefreshResponse;
|
|
356
|
+
};
|
|
357
|
+
export type RefreshTokenResponse = RefreshTokenResponses[keyof RefreshTokenResponses];
|
|
358
|
+
export type GetAuthProfileData = {
|
|
359
|
+
body?: never;
|
|
360
|
+
path?: never;
|
|
361
|
+
query?: never;
|
|
362
|
+
url: '/api/v1/auth/profile';
|
|
363
|
+
};
|
|
364
|
+
export type GetAuthProfileErrors = {
|
|
365
|
+
/**
|
|
366
|
+
* Unauthorized
|
|
367
|
+
*/
|
|
368
|
+
401: unknown;
|
|
369
|
+
};
|
|
370
|
+
export type GetAuthProfileResponses = {
|
|
371
|
+
/**
|
|
372
|
+
* Auth profile
|
|
373
|
+
*/
|
|
374
|
+
200: AuthProfileResponse;
|
|
375
|
+
};
|
|
376
|
+
export type GetAuthProfileResponse = GetAuthProfileResponses[keyof GetAuthProfileResponses];
|
|
377
|
+
export type PatchAuthProfileData = {
|
|
378
|
+
body?: {
|
|
379
|
+
name?: string;
|
|
380
|
+
bio?: string;
|
|
381
|
+
avatar_url?: string;
|
|
382
|
+
location?: string;
|
|
383
|
+
website_url?: string;
|
|
384
|
+
};
|
|
385
|
+
path?: never;
|
|
386
|
+
query?: never;
|
|
387
|
+
url: '/api/v1/auth/profile';
|
|
388
|
+
};
|
|
389
|
+
export type PatchAuthProfileErrors = {
|
|
390
|
+
/**
|
|
391
|
+
* No fields provided
|
|
392
|
+
*/
|
|
393
|
+
400: unknown;
|
|
394
|
+
/**
|
|
395
|
+
* Unauthorized
|
|
396
|
+
*/
|
|
397
|
+
401: unknown;
|
|
398
|
+
};
|
|
399
|
+
export type PatchAuthProfileResponses = {
|
|
400
|
+
/**
|
|
401
|
+
* Updated profile row
|
|
402
|
+
*/
|
|
403
|
+
200: RawProfileResponse;
|
|
404
|
+
};
|
|
405
|
+
export type PatchAuthProfileResponse = PatchAuthProfileResponses[keyof PatchAuthProfileResponses];
|
|
406
|
+
export type PutAuthProfileData = {
|
|
407
|
+
body?: {
|
|
408
|
+
name?: string;
|
|
409
|
+
bio?: string;
|
|
410
|
+
avatar_url?: string;
|
|
411
|
+
location?: string;
|
|
412
|
+
website_url?: string;
|
|
413
|
+
preferences?: {
|
|
414
|
+
[key: string]: unknown;
|
|
415
|
+
};
|
|
416
|
+
data_retention_days?: number;
|
|
417
|
+
};
|
|
418
|
+
path?: never;
|
|
419
|
+
query?: never;
|
|
420
|
+
url: '/api/v1/auth/profile';
|
|
421
|
+
};
|
|
422
|
+
export type PutAuthProfileErrors = {
|
|
423
|
+
/**
|
|
424
|
+
* No fields provided, or data_retention_days < 30
|
|
425
|
+
*/
|
|
426
|
+
400: unknown;
|
|
427
|
+
/**
|
|
428
|
+
* Unauthorized
|
|
429
|
+
*/
|
|
430
|
+
401: unknown;
|
|
431
|
+
};
|
|
432
|
+
export type PutAuthProfileResponses = {
|
|
433
|
+
/**
|
|
434
|
+
* Updated profile row
|
|
435
|
+
*/
|
|
436
|
+
200: RawProfileResponse;
|
|
437
|
+
};
|
|
438
|
+
export type PutAuthProfileResponse = PutAuthProfileResponses[keyof PutAuthProfileResponses];
|
|
439
|
+
export type DeleteAccountData = {
|
|
440
|
+
body?: never;
|
|
441
|
+
path?: never;
|
|
442
|
+
query?: never;
|
|
443
|
+
url: '/api/v1/auth/account';
|
|
444
|
+
};
|
|
445
|
+
export type DeleteAccountErrors = {
|
|
446
|
+
/**
|
|
447
|
+
* Unauthorized
|
|
448
|
+
*/
|
|
449
|
+
401: unknown;
|
|
450
|
+
};
|
|
451
|
+
export type DeleteAccountResponses = {
|
|
452
|
+
/**
|
|
453
|
+
* Account deleted
|
|
454
|
+
*/
|
|
455
|
+
204: void;
|
|
456
|
+
};
|
|
457
|
+
export type DeleteAccountResponse = DeleteAccountResponses[keyof DeleteAccountResponses];
|
|
458
|
+
export type ListProfilesData = {
|
|
459
|
+
body?: never;
|
|
460
|
+
path?: never;
|
|
461
|
+
query?: never;
|
|
462
|
+
url: '/api/v1/profiles/available';
|
|
463
|
+
};
|
|
464
|
+
export type ListProfilesErrors = {
|
|
465
|
+
/**
|
|
466
|
+
* Invalid or missing API key
|
|
467
|
+
*/
|
|
468
|
+
401: unknown;
|
|
469
|
+
};
|
|
470
|
+
export type ListProfilesResponses = {
|
|
471
|
+
/**
|
|
472
|
+
* Available profiles
|
|
473
|
+
*/
|
|
474
|
+
200: {
|
|
475
|
+
ok: boolean;
|
|
476
|
+
success: boolean;
|
|
477
|
+
data: Array<ProfileSummary>;
|
|
478
|
+
};
|
|
479
|
+
};
|
|
480
|
+
export type ListProfilesResponse = ListProfilesResponses[keyof ListProfilesResponses];
|
|
481
|
+
export type GetActiveProfileData = {
|
|
482
|
+
body?: never;
|
|
483
|
+
path?: never;
|
|
484
|
+
query?: never;
|
|
485
|
+
url: '/api/v1/profiles/active';
|
|
486
|
+
};
|
|
487
|
+
export type GetActiveProfileErrors = {
|
|
488
|
+
/**
|
|
489
|
+
* Invalid or missing API key
|
|
490
|
+
*/
|
|
491
|
+
401: unknown;
|
|
492
|
+
};
|
|
493
|
+
export type GetActiveProfileResponses = {
|
|
494
|
+
/**
|
|
495
|
+
* Active profile
|
|
496
|
+
*/
|
|
497
|
+
200: {
|
|
498
|
+
ok: boolean;
|
|
499
|
+
success: boolean;
|
|
500
|
+
data: ProfileSummary;
|
|
501
|
+
};
|
|
502
|
+
};
|
|
503
|
+
export type GetActiveProfileResponse = GetActiveProfileResponses[keyof GetActiveProfileResponses];
|
|
504
|
+
export type UpdateProfileData = {
|
|
505
|
+
body?: {
|
|
506
|
+
profileName?: string;
|
|
507
|
+
avatar?: string;
|
|
508
|
+
bio?: string | null;
|
|
509
|
+
location?: string | null;
|
|
510
|
+
};
|
|
511
|
+
path: {
|
|
512
|
+
profileId: string;
|
|
513
|
+
};
|
|
514
|
+
query?: never;
|
|
515
|
+
url: '/api/v1/profiles/{profileId}';
|
|
516
|
+
};
|
|
517
|
+
export type UpdateProfileErrors = {
|
|
518
|
+
/**
|
|
519
|
+
* Validation error — invalid profileId format or body
|
|
520
|
+
*/
|
|
521
|
+
400: unknown;
|
|
522
|
+
/**
|
|
523
|
+
* Invalid or missing API key
|
|
524
|
+
*/
|
|
525
|
+
401: unknown;
|
|
526
|
+
};
|
|
527
|
+
export type UpdateProfileResponses = {
|
|
528
|
+
/**
|
|
529
|
+
* Profile updated
|
|
530
|
+
*/
|
|
531
|
+
200: UpdatedProfile;
|
|
532
|
+
};
|
|
533
|
+
export type UpdateProfileResponse = UpdateProfileResponses[keyof UpdateProfileResponses];
|
|
534
|
+
export type ActivateProfileData = {
|
|
535
|
+
body?: never;
|
|
536
|
+
path: {
|
|
537
|
+
profileId: string;
|
|
538
|
+
};
|
|
539
|
+
query?: never;
|
|
540
|
+
url: '/api/v1/profiles/{profileId}/activate';
|
|
541
|
+
};
|
|
542
|
+
export type ActivateProfileErrors = {
|
|
543
|
+
/**
|
|
544
|
+
* Validation error — invalid profileId format
|
|
545
|
+
*/
|
|
546
|
+
400: unknown;
|
|
547
|
+
/**
|
|
548
|
+
* Invalid or missing API key
|
|
549
|
+
*/
|
|
550
|
+
401: unknown;
|
|
551
|
+
};
|
|
552
|
+
export type ActivateProfileResponses = {
|
|
553
|
+
/**
|
|
554
|
+
* Profile activated
|
|
555
|
+
*/
|
|
556
|
+
200: {
|
|
557
|
+
ok: boolean;
|
|
558
|
+
success: boolean;
|
|
559
|
+
data: {
|
|
560
|
+
activeProfile: string;
|
|
561
|
+
switchedAt: string;
|
|
562
|
+
};
|
|
563
|
+
};
|
|
564
|
+
};
|
|
565
|
+
export type ActivateProfileResponse = ActivateProfileResponses[keyof ActivateProfileResponses];
|
|
566
|
+
export type ListGroupsData = {
|
|
567
|
+
body?: never;
|
|
568
|
+
path?: never;
|
|
569
|
+
query?: never;
|
|
570
|
+
url: '/api/v1/groups';
|
|
571
|
+
};
|
|
572
|
+
export type ListGroupsErrors = {
|
|
573
|
+
/**
|
|
574
|
+
* Invalid or missing API key
|
|
575
|
+
*/
|
|
576
|
+
401: unknown;
|
|
577
|
+
};
|
|
578
|
+
export type ListGroupsResponses = {
|
|
579
|
+
/**
|
|
580
|
+
* User groups
|
|
581
|
+
*/
|
|
582
|
+
200: {
|
|
583
|
+
ok: boolean;
|
|
584
|
+
success: boolean;
|
|
585
|
+
data: Array<GroupSummary>;
|
|
586
|
+
};
|
|
587
|
+
};
|
|
588
|
+
export type ListGroupsResponse = ListGroupsResponses[keyof ListGroupsResponses];
|
|
589
|
+
export type ListGroupMembersData = {
|
|
590
|
+
body?: never;
|
|
591
|
+
path: {
|
|
592
|
+
groupId: string;
|
|
593
|
+
};
|
|
594
|
+
query?: never;
|
|
595
|
+
url: '/api/v1/groups/{groupId}/members';
|
|
596
|
+
};
|
|
597
|
+
export type ListGroupMembersErrors = {
|
|
598
|
+
/**
|
|
599
|
+
* Validation error — invalid groupId format
|
|
600
|
+
*/
|
|
601
|
+
400: unknown;
|
|
602
|
+
/**
|
|
603
|
+
* Invalid or missing API key
|
|
604
|
+
*/
|
|
605
|
+
401: unknown;
|
|
606
|
+
/**
|
|
607
|
+
* Not a member or creator of this group
|
|
608
|
+
*/
|
|
609
|
+
403: unknown;
|
|
610
|
+
/**
|
|
611
|
+
* Group not found
|
|
612
|
+
*/
|
|
613
|
+
404: unknown;
|
|
614
|
+
};
|
|
615
|
+
export type ListGroupMembersResponses = {
|
|
616
|
+
/**
|
|
617
|
+
* Group members
|
|
618
|
+
*/
|
|
619
|
+
200: {
|
|
620
|
+
ok: boolean;
|
|
621
|
+
success: boolean;
|
|
622
|
+
data: Array<GroupMember>;
|
|
623
|
+
};
|
|
624
|
+
};
|
|
625
|
+
export type ListGroupMembersResponse = ListGroupMembersResponses[keyof ListGroupMembersResponses];
|
|
626
|
+
export type GetCurrentUserData = {
|
|
627
|
+
body?: never;
|
|
628
|
+
path?: never;
|
|
629
|
+
query?: never;
|
|
630
|
+
url: '/api/v1/user/me';
|
|
631
|
+
};
|
|
632
|
+
export type GetCurrentUserErrors = {
|
|
633
|
+
/**
|
|
634
|
+
* Invalid or missing API key
|
|
635
|
+
*/
|
|
636
|
+
401: unknown;
|
|
637
|
+
};
|
|
638
|
+
export type GetCurrentUserResponses = {
|
|
639
|
+
/**
|
|
640
|
+
* Current user
|
|
641
|
+
*/
|
|
642
|
+
200: UserMe;
|
|
643
|
+
};
|
|
644
|
+
export type GetCurrentUserResponse = GetCurrentUserResponses[keyof GetCurrentUserResponses];
|
|
645
|
+
export type GetAnalyticsSummaryData = {
|
|
646
|
+
body?: never;
|
|
647
|
+
path?: never;
|
|
648
|
+
query?: never;
|
|
649
|
+
url: '/api/v1/analytics/summary';
|
|
650
|
+
};
|
|
651
|
+
export type GetAnalyticsSummaryErrors = {
|
|
652
|
+
/**
|
|
653
|
+
* Invalid or missing API key
|
|
654
|
+
*/
|
|
655
|
+
401: unknown;
|
|
656
|
+
};
|
|
657
|
+
export type GetAnalyticsSummaryResponses = {
|
|
658
|
+
/**
|
|
659
|
+
* Analytics summary
|
|
660
|
+
*/
|
|
661
|
+
200: AnalyticsSummary;
|
|
662
|
+
};
|
|
663
|
+
export type GetAnalyticsSummaryResponse = GetAnalyticsSummaryResponses[keyof GetAnalyticsSummaryResponses];
|
|
664
|
+
export type ListSessionsData = {
|
|
665
|
+
body?: never;
|
|
666
|
+
path?: never;
|
|
667
|
+
query?: never;
|
|
668
|
+
url: '/api/v1/sessions';
|
|
669
|
+
};
|
|
670
|
+
export type ListSessionsErrors = {
|
|
671
|
+
/**
|
|
672
|
+
* Invalid or missing API key
|
|
673
|
+
*/
|
|
674
|
+
401: unknown;
|
|
675
|
+
};
|
|
676
|
+
export type ListSessionsResponses = {
|
|
677
|
+
/**
|
|
678
|
+
* Sessions list (currently always empty)
|
|
679
|
+
*/
|
|
680
|
+
200: {
|
|
681
|
+
ok: boolean;
|
|
682
|
+
success: boolean;
|
|
683
|
+
data: Array<unknown>;
|
|
684
|
+
meta: {
|
|
685
|
+
pagination: {
|
|
686
|
+
page: number;
|
|
687
|
+
limit: number;
|
|
688
|
+
total: number;
|
|
689
|
+
totalPages: number;
|
|
690
|
+
};
|
|
691
|
+
};
|
|
692
|
+
message?: string;
|
|
693
|
+
};
|
|
694
|
+
};
|
|
695
|
+
export type ListSessionsResponse = ListSessionsResponses[keyof ListSessionsResponses];
|
|
696
|
+
export type ListUpcomingSessionsData = {
|
|
697
|
+
body?: never;
|
|
698
|
+
path?: never;
|
|
699
|
+
query?: never;
|
|
700
|
+
url: '/api/v1/sessions/upcoming';
|
|
701
|
+
};
|
|
702
|
+
export type ListUpcomingSessionsErrors = {
|
|
703
|
+
/**
|
|
704
|
+
* Invalid or missing API key
|
|
705
|
+
*/
|
|
706
|
+
401: unknown;
|
|
707
|
+
};
|
|
708
|
+
export type ListUpcomingSessionsResponses = {
|
|
709
|
+
/**
|
|
710
|
+
* Upcoming sessions (currently always empty)
|
|
711
|
+
*/
|
|
712
|
+
200: {
|
|
713
|
+
ok: boolean;
|
|
714
|
+
success: boolean;
|
|
715
|
+
data: Array<unknown>;
|
|
716
|
+
message?: string;
|
|
717
|
+
};
|
|
718
|
+
};
|
|
719
|
+
export type ListUpcomingSessionsResponse = ListUpcomingSessionsResponses[keyof ListUpcomingSessionsResponses];
|
|
720
|
+
export type ListTeamMembersData = {
|
|
721
|
+
body?: never;
|
|
722
|
+
path?: never;
|
|
723
|
+
query?: never;
|
|
724
|
+
url: '/api/v1/team/members';
|
|
725
|
+
};
|
|
726
|
+
export type ListTeamMembersErrors = {
|
|
727
|
+
/**
|
|
728
|
+
* Invalid or missing API key
|
|
729
|
+
*/
|
|
730
|
+
401: unknown;
|
|
731
|
+
};
|
|
732
|
+
export type ListTeamMembersResponses = {
|
|
733
|
+
/**
|
|
734
|
+
* Team members
|
|
735
|
+
*/
|
|
736
|
+
200: {
|
|
737
|
+
ok: boolean;
|
|
738
|
+
success: boolean;
|
|
739
|
+
data: Array<TeamMember>;
|
|
740
|
+
meta: {
|
|
741
|
+
total: number;
|
|
742
|
+
roles: Array<string>;
|
|
743
|
+
};
|
|
744
|
+
};
|
|
745
|
+
};
|
|
746
|
+
export type ListTeamMembersResponse = ListTeamMembersResponses[keyof ListTeamMembersResponses];
|
|
747
|
+
export type ListMarketplaceAppsData = {
|
|
748
|
+
body?: never;
|
|
749
|
+
path?: never;
|
|
750
|
+
query?: {
|
|
751
|
+
limit?: number;
|
|
752
|
+
offset?: number;
|
|
753
|
+
category?: string;
|
|
754
|
+
search?: string;
|
|
755
|
+
};
|
|
756
|
+
url: '/api/v1/marketplace/apps';
|
|
757
|
+
};
|
|
758
|
+
export type ListMarketplaceAppsErrors = {
|
|
759
|
+
/**
|
|
760
|
+
* Invalid or missing API key
|
|
761
|
+
*/
|
|
762
|
+
401: unknown;
|
|
763
|
+
};
|
|
764
|
+
export type ListMarketplaceAppsResponses = {
|
|
765
|
+
/**
|
|
766
|
+
* Marketplace apps
|
|
767
|
+
*/
|
|
768
|
+
200: {
|
|
769
|
+
ok: boolean;
|
|
770
|
+
success: boolean;
|
|
771
|
+
data: Array<MarketplaceApp>;
|
|
772
|
+
meta: {
|
|
773
|
+
pagination: {
|
|
774
|
+
page: number;
|
|
775
|
+
limit: number;
|
|
776
|
+
total: number;
|
|
777
|
+
totalPages: number;
|
|
778
|
+
};
|
|
779
|
+
};
|
|
780
|
+
};
|
|
781
|
+
};
|
|
782
|
+
export type ListMarketplaceAppsResponse = ListMarketplaceAppsResponses[keyof ListMarketplaceAppsResponses];
|
|
783
|
+
export type ListTrendingAppsData = {
|
|
784
|
+
body?: never;
|
|
785
|
+
path?: never;
|
|
786
|
+
query?: never;
|
|
787
|
+
url: '/api/v1/marketplace/trending';
|
|
788
|
+
};
|
|
789
|
+
export type ListTrendingAppsErrors = {
|
|
790
|
+
/**
|
|
791
|
+
* Invalid or missing API key
|
|
792
|
+
*/
|
|
793
|
+
401: unknown;
|
|
794
|
+
};
|
|
795
|
+
export type ListTrendingAppsResponses = {
|
|
796
|
+
/**
|
|
797
|
+
* Trending apps
|
|
798
|
+
*/
|
|
799
|
+
200: {
|
|
800
|
+
ok: boolean;
|
|
801
|
+
success: boolean;
|
|
802
|
+
data: Array<MarketplaceApp>;
|
|
803
|
+
};
|
|
804
|
+
};
|
|
805
|
+
export type ListTrendingAppsResponse = ListTrendingAppsResponses[keyof ListTrendingAppsResponses];
|
|
806
|
+
export type ListFeaturedAppsData = {
|
|
807
|
+
body?: never;
|
|
808
|
+
path?: never;
|
|
809
|
+
query?: never;
|
|
810
|
+
url: '/api/v1/marketplace/featured';
|
|
811
|
+
};
|
|
812
|
+
export type ListFeaturedAppsErrors = {
|
|
813
|
+
/**
|
|
814
|
+
* Invalid or missing API key
|
|
815
|
+
*/
|
|
816
|
+
401: unknown;
|
|
817
|
+
};
|
|
818
|
+
export type ListFeaturedAppsResponses = {
|
|
819
|
+
/**
|
|
820
|
+
* Featured apps
|
|
821
|
+
*/
|
|
822
|
+
200: {
|
|
823
|
+
ok: boolean;
|
|
824
|
+
success: boolean;
|
|
825
|
+
data: Array<MarketplaceApp>;
|
|
826
|
+
};
|
|
827
|
+
};
|
|
828
|
+
export type ListFeaturedAppsResponse = ListFeaturedAppsResponses[keyof ListFeaturedAppsResponses];
|
|
829
|
+
export type ListMarketplaceCategoriesData = {
|
|
830
|
+
body?: never;
|
|
831
|
+
path?: never;
|
|
832
|
+
query?: never;
|
|
833
|
+
url: '/api/v1/marketplace/categories';
|
|
834
|
+
};
|
|
835
|
+
export type ListMarketplaceCategoriesErrors = {
|
|
836
|
+
/**
|
|
837
|
+
* Invalid or missing API key
|
|
838
|
+
*/
|
|
839
|
+
401: unknown;
|
|
840
|
+
};
|
|
841
|
+
export type ListMarketplaceCategoriesResponses = {
|
|
842
|
+
/**
|
|
843
|
+
* Category counts
|
|
844
|
+
*/
|
|
845
|
+
200: {
|
|
846
|
+
ok: boolean;
|
|
847
|
+
success: boolean;
|
|
848
|
+
data: Array<{
|
|
849
|
+
category: string;
|
|
850
|
+
count: number;
|
|
851
|
+
}>;
|
|
852
|
+
};
|
|
853
|
+
};
|
|
854
|
+
export type ListMarketplaceCategoriesResponse = ListMarketplaceCategoriesResponses[keyof ListMarketplaceCategoriesResponses];
|
|
855
|
+
export type GetMarketplaceAppData = {
|
|
856
|
+
body?: never;
|
|
857
|
+
path: {
|
|
858
|
+
appId: string;
|
|
859
|
+
};
|
|
860
|
+
query?: never;
|
|
861
|
+
url: '/api/v1/marketplace/apps/{appId}';
|
|
862
|
+
};
|
|
863
|
+
export type GetMarketplaceAppErrors = {
|
|
864
|
+
/**
|
|
865
|
+
* Invalid or missing API key
|
|
866
|
+
*/
|
|
867
|
+
401: unknown;
|
|
868
|
+
/**
|
|
869
|
+
* App not found
|
|
870
|
+
*/
|
|
871
|
+
404: unknown;
|
|
872
|
+
};
|
|
873
|
+
export type GetMarketplaceAppResponses = {
|
|
874
|
+
/**
|
|
875
|
+
* App details
|
|
876
|
+
*/
|
|
877
|
+
200: {
|
|
878
|
+
ok: boolean;
|
|
879
|
+
success: boolean;
|
|
880
|
+
data: MarketplaceApp;
|
|
881
|
+
};
|
|
882
|
+
};
|
|
883
|
+
export type GetMarketplaceAppResponse = GetMarketplaceAppResponses[keyof GetMarketplaceAppResponses];
|
|
884
|
+
export type ListInstalledAppsData = {
|
|
885
|
+
body?: never;
|
|
886
|
+
path?: never;
|
|
887
|
+
query?: {
|
|
888
|
+
limit?: number;
|
|
889
|
+
offset?: number;
|
|
890
|
+
};
|
|
891
|
+
url: '/api/v1/marketplace/installed';
|
|
892
|
+
};
|
|
893
|
+
export type ListInstalledAppsErrors = {
|
|
894
|
+
/**
|
|
895
|
+
* Unauthorized
|
|
896
|
+
*/
|
|
897
|
+
401: unknown;
|
|
898
|
+
};
|
|
899
|
+
export type ListInstalledAppsResponses = {
|
|
900
|
+
/**
|
|
901
|
+
* Installed apps
|
|
902
|
+
*/
|
|
903
|
+
200: {
|
|
904
|
+
ok: boolean;
|
|
905
|
+
success: boolean;
|
|
906
|
+
data: Array<InstalledApp>;
|
|
907
|
+
meta: {
|
|
908
|
+
pagination: {
|
|
909
|
+
page: number;
|
|
910
|
+
limit: number;
|
|
911
|
+
total: number;
|
|
912
|
+
totalPages: number;
|
|
913
|
+
};
|
|
914
|
+
};
|
|
915
|
+
};
|
|
916
|
+
};
|
|
917
|
+
export type ListInstalledAppsResponse = ListInstalledAppsResponses[keyof ListInstalledAppsResponses];
|
|
918
|
+
export type InstallMarketplaceAppData = {
|
|
919
|
+
body?: {
|
|
920
|
+
settings?: {
|
|
921
|
+
[key: string]: unknown;
|
|
922
|
+
};
|
|
923
|
+
};
|
|
924
|
+
path: {
|
|
925
|
+
appId: string;
|
|
926
|
+
};
|
|
927
|
+
query?: never;
|
|
928
|
+
url: '/api/v1/marketplace/install/{appId}';
|
|
929
|
+
};
|
|
930
|
+
export type InstallMarketplaceAppErrors = {
|
|
931
|
+
/**
|
|
932
|
+
* Unauthorized
|
|
933
|
+
*/
|
|
934
|
+
401: unknown;
|
|
935
|
+
/**
|
|
936
|
+
* App not found or not available for installation
|
|
937
|
+
*/
|
|
938
|
+
404: unknown;
|
|
939
|
+
/**
|
|
940
|
+
* App already installed
|
|
941
|
+
*/
|
|
942
|
+
409: unknown;
|
|
943
|
+
};
|
|
944
|
+
export type InstallMarketplaceAppResponses = {
|
|
945
|
+
/**
|
|
946
|
+
* App installed
|
|
947
|
+
*/
|
|
948
|
+
200: {
|
|
949
|
+
ok: boolean;
|
|
950
|
+
success: boolean;
|
|
951
|
+
data: InstalledApp;
|
|
952
|
+
message: string;
|
|
953
|
+
};
|
|
954
|
+
};
|
|
955
|
+
export type InstallMarketplaceAppResponse = InstallMarketplaceAppResponses[keyof InstallMarketplaceAppResponses];
|
|
956
|
+
export type UninstallMarketplaceAppData = {
|
|
957
|
+
body?: never;
|
|
958
|
+
path: {
|
|
959
|
+
appId: string;
|
|
960
|
+
};
|
|
961
|
+
query?: never;
|
|
962
|
+
url: '/api/v1/marketplace/uninstall/{appId}';
|
|
963
|
+
};
|
|
964
|
+
export type UninstallMarketplaceAppErrors = {
|
|
965
|
+
/**
|
|
966
|
+
* Unauthorized
|
|
967
|
+
*/
|
|
968
|
+
401: unknown;
|
|
969
|
+
/**
|
|
970
|
+
* App installation not found
|
|
971
|
+
*/
|
|
972
|
+
404: unknown;
|
|
973
|
+
};
|
|
974
|
+
export type UninstallMarketplaceAppResponses = {
|
|
975
|
+
/**
|
|
976
|
+
* App uninstalled
|
|
977
|
+
*/
|
|
978
|
+
200: {
|
|
979
|
+
ok: boolean;
|
|
980
|
+
success: boolean;
|
|
981
|
+
message: string;
|
|
982
|
+
};
|
|
983
|
+
};
|
|
984
|
+
export type UninstallMarketplaceAppResponse = UninstallMarketplaceAppResponses[keyof UninstallMarketplaceAppResponses];
|
|
985
|
+
export type ListMarketplaceItemsData = {
|
|
986
|
+
body?: never;
|
|
987
|
+
path?: never;
|
|
988
|
+
query?: {
|
|
989
|
+
limit?: number;
|
|
990
|
+
offset?: number;
|
|
991
|
+
item_type?: string;
|
|
992
|
+
earner_type?: string;
|
|
993
|
+
category_id?: string;
|
|
994
|
+
min_price?: number;
|
|
995
|
+
max_price?: number;
|
|
996
|
+
seller_id?: string;
|
|
997
|
+
search?: string;
|
|
998
|
+
};
|
|
999
|
+
url: '/api/v1/marketplace/items';
|
|
1000
|
+
};
|
|
1001
|
+
export type ListMarketplaceItemsResponses = {
|
|
1002
|
+
/**
|
|
1003
|
+
* Marketplace items
|
|
1004
|
+
*/
|
|
1005
|
+
200: {
|
|
1006
|
+
ok: boolean;
|
|
1007
|
+
success: boolean;
|
|
1008
|
+
data: Array<MarketplaceItem>;
|
|
1009
|
+
meta: {
|
|
1010
|
+
pagination: {
|
|
1011
|
+
page: number;
|
|
1012
|
+
limit: number;
|
|
1013
|
+
total: number;
|
|
1014
|
+
totalPages: number;
|
|
1015
|
+
};
|
|
1016
|
+
};
|
|
1017
|
+
};
|
|
1018
|
+
};
|
|
1019
|
+
export type ListMarketplaceItemsResponse = ListMarketplaceItemsResponses[keyof ListMarketplaceItemsResponses];
|
|
1020
|
+
export type GetMarketplaceItemData = {
|
|
1021
|
+
body?: never;
|
|
1022
|
+
path: {
|
|
1023
|
+
id: string;
|
|
1024
|
+
};
|
|
1025
|
+
query?: never;
|
|
1026
|
+
url: '/api/v1/marketplace/items/{id}';
|
|
1027
|
+
};
|
|
1028
|
+
export type GetMarketplaceItemErrors = {
|
|
1029
|
+
/**
|
|
1030
|
+
* Item not found
|
|
1031
|
+
*/
|
|
1032
|
+
404: unknown;
|
|
1033
|
+
};
|
|
1034
|
+
export type GetMarketplaceItemResponses = {
|
|
1035
|
+
/**
|
|
1036
|
+
* Marketplace item
|
|
1037
|
+
*/
|
|
1038
|
+
200: {
|
|
1039
|
+
ok: boolean;
|
|
1040
|
+
success: boolean;
|
|
1041
|
+
data: MarketplaceItem;
|
|
1042
|
+
};
|
|
1043
|
+
};
|
|
1044
|
+
export type GetMarketplaceItemResponse = GetMarketplaceItemResponses[keyof GetMarketplaceItemResponses];
|
|
1045
|
+
export type SearchMarketplaceData = {
|
|
1046
|
+
body?: {
|
|
1047
|
+
query: string;
|
|
1048
|
+
filters?: {
|
|
1049
|
+
[key: string]: unknown;
|
|
1050
|
+
};
|
|
1051
|
+
limit?: number;
|
|
1052
|
+
offset?: number;
|
|
1053
|
+
};
|
|
1054
|
+
path?: never;
|
|
1055
|
+
query?: never;
|
|
1056
|
+
url: '/api/v1/marketplace/search';
|
|
1057
|
+
};
|
|
1058
|
+
export type SearchMarketplaceResponses = {
|
|
1059
|
+
/**
|
|
1060
|
+
* Search results
|
|
1061
|
+
*/
|
|
1062
|
+
200: {
|
|
1063
|
+
ok: boolean;
|
|
1064
|
+
success: boolean;
|
|
1065
|
+
data: Array<MarketplaceItem>;
|
|
1066
|
+
meta: {
|
|
1067
|
+
pagination: {
|
|
1068
|
+
page: number;
|
|
1069
|
+
limit: number;
|
|
1070
|
+
total: number;
|
|
1071
|
+
totalPages: number;
|
|
1072
|
+
};
|
|
1073
|
+
};
|
|
1074
|
+
};
|
|
1075
|
+
};
|
|
1076
|
+
export type SearchMarketplaceResponse = SearchMarketplaceResponses[keyof SearchMarketplaceResponses];
|
|
1077
|
+
export type GetCategoryTreeData = {
|
|
1078
|
+
body?: never;
|
|
1079
|
+
path?: never;
|
|
1080
|
+
query?: never;
|
|
1081
|
+
url: '/api/v1/marketplace/categories/tree';
|
|
1082
|
+
};
|
|
1083
|
+
export type GetCategoryTreeResponses = {
|
|
1084
|
+
/**
|
|
1085
|
+
* Category tree
|
|
1086
|
+
*/
|
|
1087
|
+
200: {
|
|
1088
|
+
ok: boolean;
|
|
1089
|
+
success: boolean;
|
|
1090
|
+
data: Array<Category & {
|
|
1091
|
+
children?: Array<{
|
|
1092
|
+
[key: string]: unknown;
|
|
1093
|
+
}>;
|
|
1094
|
+
}>;
|
|
1095
|
+
};
|
|
1096
|
+
};
|
|
1097
|
+
export type GetCategoryTreeResponse = GetCategoryTreeResponses[keyof GetCategoryTreeResponses];
|
|
1098
|
+
export type GetMarketplaceCategoryData = {
|
|
1099
|
+
body?: never;
|
|
1100
|
+
path: {
|
|
1101
|
+
id: string;
|
|
1102
|
+
};
|
|
1103
|
+
query?: never;
|
|
1104
|
+
url: '/api/v1/marketplace/categories/{id}';
|
|
1105
|
+
};
|
|
1106
|
+
export type GetMarketplaceCategoryErrors = {
|
|
1107
|
+
/**
|
|
1108
|
+
* Category not found
|
|
1109
|
+
*/
|
|
1110
|
+
404: unknown;
|
|
1111
|
+
};
|
|
1112
|
+
export type GetMarketplaceCategoryResponses = {
|
|
1113
|
+
/**
|
|
1114
|
+
* Category
|
|
1115
|
+
*/
|
|
1116
|
+
200: {
|
|
1117
|
+
ok: boolean;
|
|
1118
|
+
success: boolean;
|
|
1119
|
+
data: Category;
|
|
1120
|
+
};
|
|
1121
|
+
};
|
|
1122
|
+
export type GetMarketplaceCategoryResponse = GetMarketplaceCategoryResponses[keyof GetMarketplaceCategoryResponses];
|
|
1123
|
+
export type ListDeveloperAppsData = {
|
|
1124
|
+
body?: never;
|
|
1125
|
+
path?: never;
|
|
1126
|
+
query?: never;
|
|
1127
|
+
url: '/api/v1/developer/apps';
|
|
1128
|
+
};
|
|
1129
|
+
export type ListDeveloperAppsErrors = {
|
|
1130
|
+
/**
|
|
1131
|
+
* Invalid or missing API key
|
|
1132
|
+
*/
|
|
1133
|
+
401: unknown;
|
|
1134
|
+
};
|
|
1135
|
+
export type ListDeveloperAppsResponses = {
|
|
1136
|
+
/**
|
|
1137
|
+
* Developer apps
|
|
1138
|
+
*/
|
|
1139
|
+
200: {
|
|
1140
|
+
ok: boolean;
|
|
1141
|
+
success: boolean;
|
|
1142
|
+
data: Array<MarketplaceApp>;
|
|
1143
|
+
};
|
|
1144
|
+
};
|
|
1145
|
+
export type ListDeveloperAppsResponse = ListDeveloperAppsResponses[keyof ListDeveloperAppsResponses];
|
|
1146
|
+
export type CreateDeveloperAppData = {
|
|
1147
|
+
body?: {
|
|
1148
|
+
name: string;
|
|
1149
|
+
slug: string;
|
|
1150
|
+
tagline?: string;
|
|
1151
|
+
description?: string;
|
|
1152
|
+
category: string;
|
|
1153
|
+
icon_url?: string;
|
|
1154
|
+
screenshots?: Array<string>;
|
|
1155
|
+
version?: string;
|
|
1156
|
+
pricing_model?: string;
|
|
1157
|
+
pricing_config?: {
|
|
1158
|
+
[key: string]: unknown;
|
|
1159
|
+
};
|
|
1160
|
+
supported_audience?: Array<string>;
|
|
1161
|
+
};
|
|
1162
|
+
path?: never;
|
|
1163
|
+
query?: never;
|
|
1164
|
+
url: '/api/v1/developer/apps';
|
|
1165
|
+
};
|
|
1166
|
+
export type CreateDeveloperAppErrors = {
|
|
1167
|
+
/**
|
|
1168
|
+
* Invalid or missing API key
|
|
1169
|
+
*/
|
|
1170
|
+
401: unknown;
|
|
1171
|
+
};
|
|
1172
|
+
export type CreateDeveloperAppResponses = {
|
|
1173
|
+
/**
|
|
1174
|
+
* App created (status: draft)
|
|
1175
|
+
*/
|
|
1176
|
+
201: {
|
|
1177
|
+
ok: boolean;
|
|
1178
|
+
success: boolean;
|
|
1179
|
+
data: MarketplaceApp;
|
|
1180
|
+
};
|
|
1181
|
+
};
|
|
1182
|
+
export type CreateDeveloperAppResponse = CreateDeveloperAppResponses[keyof CreateDeveloperAppResponses];
|
|
1183
|
+
export type DeleteDeveloperAppData = {
|
|
1184
|
+
body?: never;
|
|
1185
|
+
path: {
|
|
1186
|
+
appId: string;
|
|
1187
|
+
};
|
|
1188
|
+
query?: never;
|
|
1189
|
+
url: '/api/v1/developer/apps/{appId}';
|
|
1190
|
+
};
|
|
1191
|
+
export type DeleteDeveloperAppErrors = {
|
|
1192
|
+
/**
|
|
1193
|
+
* App is not in draft status — cannot delete
|
|
1194
|
+
*/
|
|
1195
|
+
400: unknown;
|
|
1196
|
+
/**
|
|
1197
|
+
* Invalid or missing API key
|
|
1198
|
+
*/
|
|
1199
|
+
401: unknown;
|
|
1200
|
+
/**
|
|
1201
|
+
* App not found or not owned by this developer
|
|
1202
|
+
*/
|
|
1203
|
+
404: unknown;
|
|
1204
|
+
};
|
|
1205
|
+
export type DeleteDeveloperAppResponses = {
|
|
1206
|
+
/**
|
|
1207
|
+
* App deleted
|
|
1208
|
+
*/
|
|
1209
|
+
204: void;
|
|
1210
|
+
};
|
|
1211
|
+
export type DeleteDeveloperAppResponse = DeleteDeveloperAppResponses[keyof DeleteDeveloperAppResponses];
|
|
1212
|
+
export type GetDeveloperAppData = {
|
|
1213
|
+
body?: never;
|
|
1214
|
+
path: {
|
|
1215
|
+
appId: string;
|
|
1216
|
+
};
|
|
1217
|
+
query?: never;
|
|
1218
|
+
url: '/api/v1/developer/apps/{appId}';
|
|
1219
|
+
};
|
|
1220
|
+
export type GetDeveloperAppErrors = {
|
|
1221
|
+
/**
|
|
1222
|
+
* Invalid or missing API key
|
|
1223
|
+
*/
|
|
1224
|
+
401: unknown;
|
|
1225
|
+
/**
|
|
1226
|
+
* App not found or not owned by this developer
|
|
1227
|
+
*/
|
|
1228
|
+
404: unknown;
|
|
1229
|
+
};
|
|
1230
|
+
export type GetDeveloperAppResponses = {
|
|
1231
|
+
/**
|
|
1232
|
+
* App details
|
|
1233
|
+
*/
|
|
1234
|
+
200: {
|
|
1235
|
+
ok: boolean;
|
|
1236
|
+
success: boolean;
|
|
1237
|
+
data: MarketplaceApp;
|
|
1238
|
+
};
|
|
1239
|
+
};
|
|
1240
|
+
export type GetDeveloperAppResponse = GetDeveloperAppResponses[keyof GetDeveloperAppResponses];
|
|
1241
|
+
export type UpdateDeveloperAppData = {
|
|
1242
|
+
body?: {
|
|
1243
|
+
name?: string;
|
|
1244
|
+
slug?: string;
|
|
1245
|
+
tagline?: string;
|
|
1246
|
+
description?: string;
|
|
1247
|
+
category?: string;
|
|
1248
|
+
icon_url?: string;
|
|
1249
|
+
screenshots?: Array<string>;
|
|
1250
|
+
version?: string;
|
|
1251
|
+
pricing_model?: string;
|
|
1252
|
+
pricing_config?: {
|
|
1253
|
+
[key: string]: unknown;
|
|
1254
|
+
};
|
|
1255
|
+
supported_audience?: Array<string>;
|
|
1256
|
+
};
|
|
1257
|
+
path: {
|
|
1258
|
+
appId: string;
|
|
1259
|
+
};
|
|
1260
|
+
query?: never;
|
|
1261
|
+
url: '/api/v1/developer/apps/{appId}';
|
|
1262
|
+
};
|
|
1263
|
+
export type UpdateDeveloperAppErrors = {
|
|
1264
|
+
/**
|
|
1265
|
+
* Invalid or missing API key
|
|
1266
|
+
*/
|
|
1267
|
+
401: unknown;
|
|
1268
|
+
/**
|
|
1269
|
+
* App not found or not owned by this developer
|
|
1270
|
+
*/
|
|
1271
|
+
404: unknown;
|
|
1272
|
+
};
|
|
1273
|
+
export type UpdateDeveloperAppResponses = {
|
|
1274
|
+
/**
|
|
1275
|
+
* App updated
|
|
1276
|
+
*/
|
|
1277
|
+
200: {
|
|
1278
|
+
ok: boolean;
|
|
1279
|
+
success: boolean;
|
|
1280
|
+
data: MarketplaceApp;
|
|
1281
|
+
};
|
|
1282
|
+
};
|
|
1283
|
+
export type UpdateDeveloperAppResponse = UpdateDeveloperAppResponses[keyof UpdateDeveloperAppResponses];
|
|
1284
|
+
export type SubmitDeveloperAppData = {
|
|
1285
|
+
body?: never;
|
|
1286
|
+
path: {
|
|
1287
|
+
appId: string;
|
|
1288
|
+
};
|
|
1289
|
+
query?: never;
|
|
1290
|
+
url: '/api/v1/developer/apps/{appId}/submit';
|
|
1291
|
+
};
|
|
1292
|
+
export type SubmitDeveloperAppErrors = {
|
|
1293
|
+
/**
|
|
1294
|
+
* App is not in draft status
|
|
1295
|
+
*/
|
|
1296
|
+
400: unknown;
|
|
1297
|
+
/**
|
|
1298
|
+
* Invalid or missing API key
|
|
1299
|
+
*/
|
|
1300
|
+
401: unknown;
|
|
1301
|
+
/**
|
|
1302
|
+
* App not found or not owned by this developer
|
|
1303
|
+
*/
|
|
1304
|
+
404: unknown;
|
|
1305
|
+
};
|
|
1306
|
+
export type SubmitDeveloperAppResponses = {
|
|
1307
|
+
/**
|
|
1308
|
+
* App submitted for review
|
|
1309
|
+
*/
|
|
1310
|
+
200: {
|
|
1311
|
+
ok: boolean;
|
|
1312
|
+
success: boolean;
|
|
1313
|
+
data: MarketplaceApp;
|
|
1314
|
+
message: string;
|
|
1315
|
+
};
|
|
1316
|
+
};
|
|
1317
|
+
export type SubmitDeveloperAppResponse = SubmitDeveloperAppResponses[keyof SubmitDeveloperAppResponses];
|
|
1318
|
+
export type ResubmitDeveloperAppData = {
|
|
1319
|
+
body?: {
|
|
1320
|
+
name?: string;
|
|
1321
|
+
slug?: string;
|
|
1322
|
+
tagline?: string;
|
|
1323
|
+
description?: string;
|
|
1324
|
+
category?: string;
|
|
1325
|
+
icon_url?: string;
|
|
1326
|
+
screenshots?: Array<string>;
|
|
1327
|
+
version?: string;
|
|
1328
|
+
pricing_model?: string;
|
|
1329
|
+
pricing_config?: {
|
|
1330
|
+
[key: string]: unknown;
|
|
1331
|
+
};
|
|
1332
|
+
supported_audience?: Array<string>;
|
|
1333
|
+
};
|
|
1334
|
+
path: {
|
|
1335
|
+
appId: string;
|
|
1336
|
+
};
|
|
1337
|
+
query?: never;
|
|
1338
|
+
url: '/api/v1/developer/apps/{appId}/resubmit';
|
|
1339
|
+
};
|
|
1340
|
+
export type ResubmitDeveloperAppErrors = {
|
|
1341
|
+
/**
|
|
1342
|
+
* App is not in rejected status
|
|
1343
|
+
*/
|
|
1344
|
+
400: unknown;
|
|
1345
|
+
/**
|
|
1346
|
+
* Invalid or missing API key
|
|
1347
|
+
*/
|
|
1348
|
+
401: unknown;
|
|
1349
|
+
/**
|
|
1350
|
+
* App not found or not owned by this developer
|
|
1351
|
+
*/
|
|
1352
|
+
404: unknown;
|
|
1353
|
+
};
|
|
1354
|
+
export type ResubmitDeveloperAppResponses = {
|
|
1355
|
+
/**
|
|
1356
|
+
* App resubmitted
|
|
1357
|
+
*/
|
|
1358
|
+
200: {
|
|
1359
|
+
ok: boolean;
|
|
1360
|
+
success: boolean;
|
|
1361
|
+
data: MarketplaceApp;
|
|
1362
|
+
message: string;
|
|
1363
|
+
};
|
|
1364
|
+
};
|
|
1365
|
+
export type ResubmitDeveloperAppResponse = ResubmitDeveloperAppResponses[keyof ResubmitDeveloperAppResponses];
|
|
1366
|
+
export type ListEntriesData = {
|
|
1367
|
+
body?: never;
|
|
1368
|
+
path?: never;
|
|
1369
|
+
query?: {
|
|
1370
|
+
limit?: number;
|
|
1371
|
+
offset?: number;
|
|
1372
|
+
};
|
|
1373
|
+
url: '/api/v1/entries';
|
|
1374
|
+
};
|
|
1375
|
+
export type ListEntriesErrors = {
|
|
1376
|
+
/**
|
|
1377
|
+
* Invalid or missing API key
|
|
1378
|
+
*/
|
|
1379
|
+
401: unknown;
|
|
1380
|
+
/**
|
|
1381
|
+
* User profile not found
|
|
1382
|
+
*/
|
|
1383
|
+
404: unknown;
|
|
1384
|
+
};
|
|
1385
|
+
export type ListEntriesResponses = {
|
|
1386
|
+
/**
|
|
1387
|
+
* Entries list
|
|
1388
|
+
*/
|
|
1389
|
+
200: {
|
|
1390
|
+
ok: boolean;
|
|
1391
|
+
success: boolean;
|
|
1392
|
+
data: Array<Entry>;
|
|
1393
|
+
meta: {
|
|
1394
|
+
pagination: {
|
|
1395
|
+
page: number;
|
|
1396
|
+
limit: number;
|
|
1397
|
+
total: number;
|
|
1398
|
+
totalPages: number;
|
|
1399
|
+
};
|
|
1400
|
+
};
|
|
1401
|
+
};
|
|
1402
|
+
};
|
|
1403
|
+
export type ListEntriesResponse = ListEntriesResponses[keyof ListEntriesResponses];
|
|
1404
|
+
export type ListTemplatesData = {
|
|
1405
|
+
body?: never;
|
|
1406
|
+
path?: never;
|
|
1407
|
+
query?: never;
|
|
1408
|
+
url: '/api/v1/templates';
|
|
1409
|
+
};
|
|
1410
|
+
export type ListTemplatesErrors = {
|
|
1411
|
+
/**
|
|
1412
|
+
* Invalid or missing API key
|
|
1413
|
+
*/
|
|
1414
|
+
401: unknown;
|
|
1415
|
+
};
|
|
1416
|
+
export type ListTemplatesResponses = {
|
|
1417
|
+
/**
|
|
1418
|
+
* Templates list (currently always empty)
|
|
1419
|
+
*/
|
|
1420
|
+
200: {
|
|
1421
|
+
ok: boolean;
|
|
1422
|
+
success: boolean;
|
|
1423
|
+
data: Array<unknown>;
|
|
1424
|
+
meta: {
|
|
1425
|
+
pagination: {
|
|
1426
|
+
page: number;
|
|
1427
|
+
limit: number;
|
|
1428
|
+
total: number;
|
|
1429
|
+
totalPages: number;
|
|
1430
|
+
};
|
|
1431
|
+
};
|
|
1432
|
+
};
|
|
1433
|
+
};
|
|
1434
|
+
export type ListTemplatesResponse = ListTemplatesResponses[keyof ListTemplatesResponses];
|
|
1435
|
+
export type GetStorageData = {
|
|
1436
|
+
body?: never;
|
|
1437
|
+
path?: never;
|
|
1438
|
+
query?: never;
|
|
1439
|
+
url: '/api/v1/storage';
|
|
1440
|
+
};
|
|
1441
|
+
export type GetStorageErrors = {
|
|
1442
|
+
/**
|
|
1443
|
+
* Invalid or missing API key
|
|
1444
|
+
*/
|
|
1445
|
+
401: unknown;
|
|
1446
|
+
};
|
|
1447
|
+
export type GetStorageResponses = {
|
|
1448
|
+
/**
|
|
1449
|
+
* Storage info
|
|
1450
|
+
*/
|
|
1451
|
+
200: {
|
|
1452
|
+
ok: boolean;
|
|
1453
|
+
success: boolean;
|
|
1454
|
+
data: {
|
|
1455
|
+
[key: string]: unknown;
|
|
1456
|
+
};
|
|
1457
|
+
};
|
|
1458
|
+
};
|
|
1459
|
+
export type GetStorageResponse = GetStorageResponses[keyof GetStorageResponses];
|
|
1460
|
+
export type CreateUiNotificationData = {
|
|
1461
|
+
body?: never;
|
|
1462
|
+
path?: never;
|
|
1463
|
+
query?: never;
|
|
1464
|
+
url: '/api/v1/ui/notifications';
|
|
1465
|
+
};
|
|
1466
|
+
export type CreateUiNotificationErrors = {
|
|
1467
|
+
/**
|
|
1468
|
+
* Invalid or missing API key
|
|
1469
|
+
*/
|
|
1470
|
+
401: unknown;
|
|
1471
|
+
};
|
|
1472
|
+
export type CreateUiNotificationResponses = {
|
|
1473
|
+
/**
|
|
1474
|
+
* Notification created
|
|
1475
|
+
*/
|
|
1476
|
+
200: {
|
|
1477
|
+
ok: boolean;
|
|
1478
|
+
success: boolean;
|
|
1479
|
+
data: {
|
|
1480
|
+
id: string;
|
|
1481
|
+
};
|
|
1482
|
+
};
|
|
1483
|
+
};
|
|
1484
|
+
export type CreateUiNotificationResponse = CreateUiNotificationResponses[keyof CreateUiNotificationResponses];
|
|
1485
|
+
export type ListEventsData = {
|
|
1486
|
+
body?: never;
|
|
1487
|
+
path?: never;
|
|
1488
|
+
query?: {
|
|
1489
|
+
category?: string;
|
|
1490
|
+
startDate?: string;
|
|
1491
|
+
endDate?: string;
|
|
1492
|
+
limit?: number;
|
|
1493
|
+
offset?: number;
|
|
1494
|
+
};
|
|
1495
|
+
url: '/api/oriva/events';
|
|
1496
|
+
};
|
|
1497
|
+
export type ListEventsResponses = {
|
|
1498
|
+
/**
|
|
1499
|
+
* Events list
|
|
1500
|
+
*/
|
|
1501
|
+
200: {
|
|
1502
|
+
ok: boolean;
|
|
1503
|
+
success: boolean;
|
|
1504
|
+
data: Array<Event>;
|
|
1505
|
+
total: number;
|
|
1506
|
+
limit: number;
|
|
1507
|
+
offset: number;
|
|
1508
|
+
};
|
|
1509
|
+
};
|
|
1510
|
+
export type ListEventsResponse = ListEventsResponses[keyof ListEventsResponses];
|
|
1511
|
+
export type CreateEventData = {
|
|
1512
|
+
body?: {
|
|
1513
|
+
title: string;
|
|
1514
|
+
description: string;
|
|
1515
|
+
startDate: string;
|
|
1516
|
+
endDate: string;
|
|
1517
|
+
isOnline: boolean;
|
|
1518
|
+
category: string;
|
|
1519
|
+
location?: string | null;
|
|
1520
|
+
maxAttendees?: number | null;
|
|
1521
|
+
price?: number;
|
|
1522
|
+
tags?: Array<string>;
|
|
1523
|
+
imageUrl?: string | null;
|
|
1524
|
+
};
|
|
1525
|
+
path?: never;
|
|
1526
|
+
query?: never;
|
|
1527
|
+
url: '/api/oriva/events';
|
|
1528
|
+
};
|
|
1529
|
+
export type CreateEventErrors = {
|
|
1530
|
+
/**
|
|
1531
|
+
* Validation error — missing required fields or invalid category
|
|
1532
|
+
*/
|
|
1533
|
+
400: unknown;
|
|
1534
|
+
/**
|
|
1535
|
+
* Unauthorized
|
|
1536
|
+
*/
|
|
1537
|
+
401: unknown;
|
|
1538
|
+
};
|
|
1539
|
+
export type CreateEventResponses = {
|
|
1540
|
+
/**
|
|
1541
|
+
* Event created
|
|
1542
|
+
*/
|
|
1543
|
+
201: {
|
|
1544
|
+
ok: boolean;
|
|
1545
|
+
success: boolean;
|
|
1546
|
+
data: Event;
|
|
1547
|
+
message: string;
|
|
1548
|
+
};
|
|
1549
|
+
};
|
|
1550
|
+
export type CreateEventResponse = CreateEventResponses[keyof CreateEventResponses];
|
|
1551
|
+
export type GetEventData = {
|
|
1552
|
+
body?: never;
|
|
1553
|
+
path: {
|
|
1554
|
+
eventId: string;
|
|
1555
|
+
};
|
|
1556
|
+
query?: never;
|
|
1557
|
+
url: '/api/oriva/events/{eventId}';
|
|
1558
|
+
};
|
|
1559
|
+
export type GetEventErrors = {
|
|
1560
|
+
/**
|
|
1561
|
+
* Event not found
|
|
1562
|
+
*/
|
|
1563
|
+
404: unknown;
|
|
1564
|
+
};
|
|
1565
|
+
export type GetEventResponses = {
|
|
1566
|
+
/**
|
|
1567
|
+
* Event details
|
|
1568
|
+
*/
|
|
1569
|
+
200: {
|
|
1570
|
+
ok: boolean;
|
|
1571
|
+
success: boolean;
|
|
1572
|
+
data: Event;
|
|
1573
|
+
};
|
|
1574
|
+
};
|
|
1575
|
+
export type GetEventResponse = GetEventResponses[keyof GetEventResponses];
|
|
1576
|
+
export type ListPersonalAccessTokensData = {
|
|
1577
|
+
body?: never;
|
|
1578
|
+
path?: never;
|
|
1579
|
+
query?: never;
|
|
1580
|
+
url: '/api/v1/me/tokens';
|
|
1581
|
+
};
|
|
1582
|
+
export type ListPersonalAccessTokensErrors = {
|
|
1583
|
+
/**
|
|
1584
|
+
* Not authenticated
|
|
1585
|
+
*/
|
|
1586
|
+
401: unknown;
|
|
1587
|
+
};
|
|
1588
|
+
export type ListPersonalAccessTokensResponses = {
|
|
1589
|
+
/**
|
|
1590
|
+
* List of PATs
|
|
1591
|
+
*/
|
|
1592
|
+
200: PersonalTokenList;
|
|
1593
|
+
};
|
|
1594
|
+
export type ListPersonalAccessTokensResponse = ListPersonalAccessTokensResponses[keyof ListPersonalAccessTokensResponses];
|
|
1595
|
+
export type CreatePersonalAccessTokenData = {
|
|
1596
|
+
body: {
|
|
1597
|
+
/**
|
|
1598
|
+
* Human-readable label for the token
|
|
1599
|
+
*/
|
|
1600
|
+
name: string;
|
|
1601
|
+
/**
|
|
1602
|
+
* ISO 8601 expiry date. Omit for a non-expiring token.
|
|
1603
|
+
*/
|
|
1604
|
+
expires_at?: string;
|
|
1605
|
+
};
|
|
1606
|
+
path?: never;
|
|
1607
|
+
query?: never;
|
|
1608
|
+
url: '/api/v1/me/tokens';
|
|
1609
|
+
};
|
|
1610
|
+
export type CreatePersonalAccessTokenErrors = {
|
|
1611
|
+
/**
|
|
1612
|
+
* Validation error
|
|
1613
|
+
*/
|
|
1614
|
+
400: unknown;
|
|
1615
|
+
/**
|
|
1616
|
+
* Not authenticated
|
|
1617
|
+
*/
|
|
1618
|
+
401: unknown;
|
|
1619
|
+
};
|
|
1620
|
+
export type CreatePersonalAccessTokenResponses = {
|
|
1621
|
+
/**
|
|
1622
|
+
* Token created — contains the full one-time token value
|
|
1623
|
+
*/
|
|
1624
|
+
201: CreatedPersonalToken;
|
|
1625
|
+
};
|
|
1626
|
+
export type CreatePersonalAccessTokenResponse = CreatePersonalAccessTokenResponses[keyof CreatePersonalAccessTokenResponses];
|
|
1627
|
+
export type RevokePersonalAccessTokenData = {
|
|
1628
|
+
body?: never;
|
|
1629
|
+
path: {
|
|
1630
|
+
id: string;
|
|
1631
|
+
};
|
|
1632
|
+
query?: never;
|
|
1633
|
+
url: '/api/v1/me/tokens/{id}';
|
|
1634
|
+
};
|
|
1635
|
+
export type RevokePersonalAccessTokenErrors = {
|
|
1636
|
+
/**
|
|
1637
|
+
* Not authenticated
|
|
1638
|
+
*/
|
|
1639
|
+
401: unknown;
|
|
1640
|
+
/**
|
|
1641
|
+
* Token not found or does not belong to this account
|
|
1642
|
+
*/
|
|
1643
|
+
404: unknown;
|
|
1644
|
+
};
|
|
1645
|
+
export type RevokePersonalAccessTokenResponses = {
|
|
1646
|
+
/**
|
|
1647
|
+
* Revoked successfully
|
|
1648
|
+
*/
|
|
1649
|
+
204: void;
|
|
1650
|
+
};
|
|
1651
|
+
export type RevokePersonalAccessTokenResponse = RevokePersonalAccessTokenResponses[keyof RevokePersonalAccessTokenResponses];
|
|
1652
|
+
//# sourceMappingURL=types.gen.d.ts.map
|