gamecore-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.
Files changed (69) hide show
  1. package/README.md +56 -0
  2. package/bin/cli.js +78 -0
  3. package/dist/client/client.gen.d.ts +3 -0
  4. package/dist/client/client.gen.d.ts.map +1 -0
  5. package/dist/client/client.gen.js +236 -0
  6. package/dist/client/client.gen.js.map +1 -0
  7. package/dist/client/index.d.ts +9 -0
  8. package/dist/client/index.d.ts.map +1 -0
  9. package/dist/client/index.js +7 -0
  10. package/dist/client/index.js.map +1 -0
  11. package/dist/client/types.gen.d.ts +118 -0
  12. package/dist/client/types.gen.d.ts.map +1 -0
  13. package/dist/client/types.gen.js +3 -0
  14. package/dist/client/types.gen.js.map +1 -0
  15. package/dist/client/utils.gen.d.ts +34 -0
  16. package/dist/client/utils.gen.d.ts.map +1 -0
  17. package/dist/client/utils.gen.js +229 -0
  18. package/dist/client/utils.gen.js.map +1 -0
  19. package/dist/client.gen.d.ts +13 -0
  20. package/dist/client.gen.d.ts.map +1 -0
  21. package/dist/client.gen.js +4 -0
  22. package/dist/client.gen.js.map +1 -0
  23. package/dist/core/auth.gen.d.ts +19 -0
  24. package/dist/core/auth.gen.d.ts.map +1 -0
  25. package/dist/core/auth.gen.js +15 -0
  26. package/dist/core/auth.gen.js.map +1 -0
  27. package/dist/core/bodySerializer.gen.d.ts +26 -0
  28. package/dist/core/bodySerializer.gen.d.ts.map +1 -0
  29. package/dist/core/bodySerializer.gen.js +58 -0
  30. package/dist/core/bodySerializer.gen.js.map +1 -0
  31. package/dist/core/params.gen.d.ts +44 -0
  32. package/dist/core/params.gen.d.ts.map +1 -0
  33. package/dist/core/params.gen.js +101 -0
  34. package/dist/core/params.gen.js.map +1 -0
  35. package/dist/core/pathSerializer.gen.d.ts +34 -0
  36. package/dist/core/pathSerializer.gen.d.ts.map +1 -0
  37. package/dist/core/pathSerializer.gen.js +107 -0
  38. package/dist/core/pathSerializer.gen.js.map +1 -0
  39. package/dist/core/queryKeySerializer.gen.d.ts +19 -0
  40. package/dist/core/queryKeySerializer.gen.d.ts.map +1 -0
  41. package/dist/core/queryKeySerializer.gen.js +93 -0
  42. package/dist/core/queryKeySerializer.gen.js.map +1 -0
  43. package/dist/core/serverSentEvents.gen.d.ts +72 -0
  44. package/dist/core/serverSentEvents.gen.d.ts.map +1 -0
  45. package/dist/core/serverSentEvents.gen.js +134 -0
  46. package/dist/core/serverSentEvents.gen.js.map +1 -0
  47. package/dist/core/types.gen.d.ts +79 -0
  48. package/dist/core/types.gen.d.ts.map +1 -0
  49. package/dist/core/types.gen.js +3 -0
  50. package/dist/core/types.gen.js.map +1 -0
  51. package/dist/core/utils.gen.d.ts +20 -0
  52. package/dist/core/utils.gen.d.ts.map +1 -0
  53. package/dist/core/utils.gen.js +88 -0
  54. package/dist/core/utils.gen.js.map +1 -0
  55. package/dist/index.d.ts +3 -0
  56. package/dist/index.d.ts.map +1 -0
  57. package/dist/index.js +3 -0
  58. package/dist/index.js.map +1 -0
  59. package/dist/sdk.gen.d.ts +431 -0
  60. package/dist/sdk.gen.d.ts.map +1 -0
  61. package/dist/sdk.gen.js +991 -0
  62. package/dist/sdk.gen.js.map +1 -0
  63. package/dist/types.gen.d.ts +1565 -0
  64. package/dist/types.gen.d.ts.map +1 -0
  65. package/dist/types.gen.js +3 -0
  66. package/dist/types.gen.js.map +1 -0
  67. package/package.json +37 -0
  68. package/skill/gamecore-integration/SKILL.md +402 -0
  69. package/skill/gamecore-integration/references/api-reference.md +271 -0
@@ -0,0 +1,991 @@
1
+ // This file is auto-generated by @hey-api/openapi-ts
2
+ import { client } from './client.gen.js';
3
+ /**
4
+ * Health check
5
+ */
6
+ export const healthControllerCheck = (options) => (options?.client ?? client).get({ url: '/health', ...options });
7
+ /**
8
+ * Detailed health check with system info
9
+ */
10
+ export const healthControllerDetailed = (options) => (options?.client ?? client).get({ url: '/health/detailed', ...options });
11
+ /**
12
+ * List audit log entries
13
+ */
14
+ export const auditLogControllerList = (options) => (options?.client ?? client).get({
15
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
16
+ url: '/admin/v1/audit-logs',
17
+ ...options
18
+ });
19
+ /**
20
+ * Create a new tenant
21
+ */
22
+ export const tenantControllerCreate = (options) => (options.client ?? client).post({
23
+ url: '/tenants',
24
+ ...options,
25
+ headers: {
26
+ 'Content-Type': 'application/json',
27
+ ...options.headers
28
+ }
29
+ });
30
+ /**
31
+ * Get current tenant info
32
+ */
33
+ export const tenantControllerGetMe = (options) => (options?.client ?? client).get({
34
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
35
+ url: '/tenants/me',
36
+ ...options
37
+ });
38
+ /**
39
+ * List all API keys
40
+ */
41
+ export const tenantControllerListApiKeys = (options) => (options?.client ?? client).get({
42
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
43
+ url: '/tenants/me/api-keys',
44
+ ...options
45
+ });
46
+ /**
47
+ * Generate a new API key
48
+ */
49
+ export const tenantControllerGenerateApiKey = (options) => (options?.client ?? client).post({
50
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
51
+ url: '/tenants/me/api-keys',
52
+ ...options
53
+ });
54
+ /**
55
+ * Revoke an API key
56
+ */
57
+ export const tenantControllerRevokeApiKey = (options) => (options.client ?? client).delete({
58
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
59
+ url: '/tenants/me/api-keys/{prefix}',
60
+ ...options
61
+ });
62
+ /**
63
+ * Update data retention and privacy policies
64
+ */
65
+ export const tenantControllerUpdatePolicies = (options) => (options.client ?? client).patch({
66
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
67
+ url: '/tenants/me/policies',
68
+ ...options,
69
+ headers: {
70
+ 'Content-Type': 'application/json',
71
+ ...options.headers
72
+ }
73
+ });
74
+ /**
75
+ * Request a magic link email
76
+ */
77
+ export const authControllerRequestMagicLink = (options) => (options.client ?? client).post({
78
+ url: '/admin/auth/magic-link',
79
+ ...options,
80
+ headers: {
81
+ 'Content-Type': 'application/json',
82
+ ...options.headers
83
+ }
84
+ });
85
+ /**
86
+ * Verify magic link and create session
87
+ */
88
+ export const authControllerVerify = (options) => (options.client ?? client).post({
89
+ url: '/admin/auth/verify',
90
+ ...options,
91
+ headers: {
92
+ 'Content-Type': 'application/json',
93
+ ...options.headers
94
+ }
95
+ });
96
+ /**
97
+ * Get current admin user
98
+ */
99
+ export const authControllerMe = (options) => (options?.client ?? client).get({ url: '/admin/auth/me', ...options });
100
+ /**
101
+ * Logout and invalidate session
102
+ */
103
+ export const authControllerLogout = (options) => (options?.client ?? client).post({ url: '/admin/auth/logout', ...options });
104
+ /**
105
+ * Delete user and all associated data (LGPD right to be forgotten)
106
+ */
107
+ export const userControllerDeleteUser = (options) => (options.client ?? client).delete({
108
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
109
+ url: '/users/{id}',
110
+ ...options
111
+ });
112
+ /**
113
+ * Get user by ID
114
+ */
115
+ export const userControllerFindOne = (options) => (options.client ?? client).get({
116
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
117
+ url: '/users/{id}',
118
+ ...options
119
+ });
120
+ /**
121
+ * Update user attributes
122
+ */
123
+ export const userControllerUpdate = (options) => (options.client ?? client).patch({
124
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
125
+ url: '/users/{id}',
126
+ ...options,
127
+ headers: {
128
+ 'Content-Type': 'application/json',
129
+ ...options.headers
130
+ }
131
+ });
132
+ /**
133
+ * Identify (upsert) a user
134
+ */
135
+ export const userControllerIdentify = (options) => (options.client ?? client).put({
136
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
137
+ url: '/users/{id}',
138
+ ...options,
139
+ headers: {
140
+ 'Content-Type': 'application/json',
141
+ ...options.headers
142
+ }
143
+ });
144
+ /**
145
+ * Create a new user
146
+ */
147
+ export const userControllerCreate = (options) => (options.client ?? client).post({
148
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
149
+ url: '/users',
150
+ ...options,
151
+ headers: {
152
+ 'Content-Type': 'application/json',
153
+ ...options.headers
154
+ }
155
+ });
156
+ /**
157
+ * Get user notification preferences
158
+ */
159
+ export const userControllerGetPreferences = (options) => (options.client ?? client).get({
160
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
161
+ url: '/users/{id}/preferences',
162
+ ...options
163
+ });
164
+ /**
165
+ * Update user notification preferences
166
+ */
167
+ export const userControllerUpdatePreferences = (options) => (options.client ?? client).patch({
168
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
169
+ url: '/users/{id}/preferences',
170
+ ...options,
171
+ headers: {
172
+ 'Content-Type': 'application/json',
173
+ ...options.headers
174
+ }
175
+ });
176
+ /**
177
+ * Anonymize user data (LGPD)
178
+ */
179
+ export const userControllerAnonymize = (options) => (options.client ?? client).delete({
180
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
181
+ url: '/users/{id}/data',
182
+ ...options
183
+ });
184
+ /**
185
+ * Record user consent for data processing
186
+ */
187
+ export const userControllerGiveConsent = (options) => (options.client ?? client).post({
188
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
189
+ url: '/users/{id}/consent',
190
+ ...options,
191
+ headers: {
192
+ 'Content-Type': 'application/json',
193
+ ...options.headers
194
+ }
195
+ });
196
+ /**
197
+ * List users with search and pagination
198
+ */
199
+ export const adminUserControllerFindAll = (options) => (options.client ?? client).get({
200
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
201
+ url: '/admin/v1/users',
202
+ ...options
203
+ });
204
+ /**
205
+ * Get total user count
206
+ */
207
+ export const adminUserControllerCount = (options) => (options?.client ?? client).get({
208
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
209
+ url: '/admin/v1/users/count',
210
+ ...options
211
+ });
212
+ /**
213
+ * Send a metric event
214
+ *
215
+ * Records a user interaction and triggers achievement/streak/points evaluation
216
+ */
217
+ export const metricControllerSendEvent = (options) => (options.client ?? client).post({
218
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
219
+ url: '/metrics/{key}/event',
220
+ ...options,
221
+ headers: {
222
+ 'Content-Type': 'application/json',
223
+ ...options.headers
224
+ }
225
+ });
226
+ /**
227
+ * Get user metric total
228
+ */
229
+ export const metricControllerGetUserMetric = (options) => (options.client ?? client).get({
230
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
231
+ url: '/metrics/{key}/users/{userId}',
232
+ ...options
233
+ });
234
+ /**
235
+ * Get user metric event history
236
+ */
237
+ export const metricControllerGetUserMetricEvents = (options) => (options.client ?? client).get({
238
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
239
+ url: '/metrics/{key}/users/{userId}/events',
240
+ ...options
241
+ });
242
+ /**
243
+ * List all metric definitions
244
+ */
245
+ export const adminMetricControllerFindAll = (options) => (options?.client ?? client).get({
246
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
247
+ url: '/admin/v1/metrics',
248
+ ...options
249
+ });
250
+ /**
251
+ * Create a metric definition
252
+ */
253
+ export const adminMetricControllerCreate = (options) => (options.client ?? client).post({
254
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
255
+ url: '/admin/v1/metrics',
256
+ ...options,
257
+ headers: {
258
+ 'Content-Type': 'application/json',
259
+ ...options.headers
260
+ }
261
+ });
262
+ /**
263
+ * Delete a metric definition
264
+ */
265
+ export const adminMetricControllerRemove = (options) => (options.client ?? client).delete({
266
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
267
+ url: '/admin/v1/metrics/{key}',
268
+ ...options
269
+ });
270
+ /**
271
+ * Update a metric definition
272
+ */
273
+ export const adminMetricControllerUpdate = (options) => (options.client ?? client).patch({
274
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
275
+ url: '/admin/v1/metrics/{key}',
276
+ ...options,
277
+ headers: {
278
+ 'Content-Type': 'application/json',
279
+ ...options.headers
280
+ }
281
+ });
282
+ /**
283
+ * List all achievements
284
+ */
285
+ export const achievementControllerGetAll = (options) => (options?.client ?? client).get({
286
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
287
+ url: '/achievements',
288
+ ...options
289
+ });
290
+ /**
291
+ * Complete an API achievement
292
+ */
293
+ export const achievementControllerComplete = (options) => (options.client ?? client).post({
294
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
295
+ url: '/achievements/{key}/complete',
296
+ ...options,
297
+ headers: {
298
+ 'Content-Type': 'application/json',
299
+ ...options.headers
300
+ }
301
+ });
302
+ /**
303
+ * Get user achievements
304
+ */
305
+ export const userAchievementControllerGetUserAchievements = (options) => (options.client ?? client).get({
306
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
307
+ url: '/users/{id}/achievements',
308
+ ...options
309
+ });
310
+ /**
311
+ * List all achievements
312
+ */
313
+ export const adminAchievementControllerFindAll = (options) => (options?.client ?? client).get({
314
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
315
+ url: '/admin/v1/achievements',
316
+ ...options
317
+ });
318
+ /**
319
+ * Create an achievement
320
+ */
321
+ export const adminAchievementControllerCreate = (options) => (options.client ?? client).post({
322
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
323
+ url: '/admin/v1/achievements',
324
+ ...options,
325
+ headers: {
326
+ 'Content-Type': 'application/json',
327
+ ...options.headers
328
+ }
329
+ });
330
+ /**
331
+ * Delete an achievement
332
+ */
333
+ export const adminAchievementControllerRemove = (options) => (options.client ?? client).delete({
334
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
335
+ url: '/admin/v1/achievements/{id}',
336
+ ...options
337
+ });
338
+ /**
339
+ * Update an achievement
340
+ */
341
+ export const adminAchievementControllerUpdate = (options) => (options.client ?? client).patch({
342
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
343
+ url: '/admin/v1/achievements/{id}',
344
+ ...options,
345
+ headers: {
346
+ 'Content-Type': 'application/json',
347
+ ...options.headers
348
+ }
349
+ });
350
+ /**
351
+ * Change achievement status
352
+ */
353
+ export const adminAchievementControllerUpdateStatus = (options) => (options.client ?? client).patch({
354
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
355
+ url: '/admin/v1/achievements/{id}/status',
356
+ ...options,
357
+ headers: {
358
+ 'Content-Type': 'application/json',
359
+ ...options.headers
360
+ }
361
+ });
362
+ /**
363
+ * List all streak configs
364
+ */
365
+ export const streakControllerGetStreaks = (options) => (options?.client ?? client).get({
366
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
367
+ url: '/streaks',
368
+ ...options
369
+ });
370
+ /**
371
+ * Get streak rankings
372
+ */
373
+ export const streakControllerGetRankings = (options) => (options.client ?? client).get({
374
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
375
+ url: '/streaks/rankings',
376
+ ...options
377
+ });
378
+ /**
379
+ * Get user streak status
380
+ */
381
+ export const userStreakControllerGetUserStreak = (options) => (options.client ?? client).get({
382
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
383
+ url: '/users/{id}/streak/{configId}',
384
+ ...options
385
+ });
386
+ /**
387
+ * Restore a lost streak
388
+ */
389
+ export const adminStreakControllerRestore = (options) => (options.client ?? client).post({
390
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
391
+ url: '/admin/streaks/restore',
392
+ ...options,
393
+ headers: {
394
+ 'Content-Type': 'application/json',
395
+ ...options.headers
396
+ }
397
+ });
398
+ /**
399
+ * Grant streak freezes to a user
400
+ */
401
+ export const adminStreakControllerGrantFreezes = (options) => (options.client ?? client).post({
402
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
403
+ url: '/admin/streaks/freezes',
404
+ ...options,
405
+ headers: {
406
+ 'Content-Type': 'application/json',
407
+ ...options.headers
408
+ }
409
+ });
410
+ /**
411
+ * List all streak configs
412
+ */
413
+ export const adminStreakConfigControllerFindAll = (options) => (options?.client ?? client).get({
414
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
415
+ url: '/admin/v1/streaks',
416
+ ...options
417
+ });
418
+ /**
419
+ * Create a streak config
420
+ */
421
+ export const adminStreakConfigControllerCreate = (options) => (options.client ?? client).post({
422
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
423
+ url: '/admin/v1/streaks',
424
+ ...options,
425
+ headers: {
426
+ 'Content-Type': 'application/json',
427
+ ...options.headers
428
+ }
429
+ });
430
+ /**
431
+ * Delete a streak config
432
+ */
433
+ export const adminStreakConfigControllerRemove = (options) => (options.client ?? client).delete({
434
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
435
+ url: '/admin/v1/streaks/{id}',
436
+ ...options
437
+ });
438
+ /**
439
+ * Update a streak config
440
+ */
441
+ export const adminStreakConfigControllerUpdate = (options) => (options.client ?? client).patch({
442
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
443
+ url: '/admin/v1/streaks/{id}',
444
+ ...options,
445
+ headers: {
446
+ 'Content-Type': 'application/json',
447
+ ...options.headers
448
+ }
449
+ });
450
+ export const pointsControllerGetPointsSystem = (options) => (options.client ?? client).get({
451
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
452
+ url: '/points/{key}',
453
+ ...options
454
+ });
455
+ export const pointsControllerGetBoosts = (options) => (options.client ?? client).get({
456
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
457
+ url: '/points/{key}/boosts',
458
+ ...options
459
+ });
460
+ export const pointsControllerGetLevels = (options) => (options.client ?? client).get({
461
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
462
+ url: '/points/{key}/levels',
463
+ ...options
464
+ });
465
+ export const pointsControllerGetSummary = (options) => (options.client ?? client).get({
466
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
467
+ url: '/points/{key}/summary',
468
+ ...options
469
+ });
470
+ export const pointsControllerGetLevelSummary = (options) => (options.client ?? client).get({
471
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
472
+ url: '/points/{key}/levels/summary',
473
+ ...options
474
+ });
475
+ /**
476
+ * Get user points for a system
477
+ */
478
+ export const userPointsControllerGetUserPoints = (options) => (options.client ?? client).get({
479
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
480
+ url: '/users/{id}/points/{key}',
481
+ ...options
482
+ });
483
+ /**
484
+ * Get user active boosts
485
+ */
486
+ export const userPointsControllerGetUserBoosts = (options) => (options.client ?? client).get({
487
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
488
+ url: '/users/{id}/points/{key}/boosts',
489
+ ...options
490
+ });
491
+ /**
492
+ * Create a points boost
493
+ */
494
+ export const adminPointsControllerCreateBoost = (options) => (options.client ?? client).post({
495
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
496
+ url: '/admin/points/{key}/boosts',
497
+ ...options,
498
+ headers: {
499
+ 'Content-Type': 'application/json',
500
+ ...options.headers
501
+ }
502
+ });
503
+ /**
504
+ * List all points systems
505
+ */
506
+ export const adminPointsSystemControllerFindAll = (options) => (options?.client ?? client).get({
507
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
508
+ url: '/admin/v1/points',
509
+ ...options
510
+ });
511
+ /**
512
+ * Create a points system
513
+ */
514
+ export const adminPointsSystemControllerCreate = (options) => (options.client ?? client).post({
515
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
516
+ url: '/admin/v1/points',
517
+ ...options,
518
+ headers: {
519
+ 'Content-Type': 'application/json',
520
+ ...options.headers
521
+ }
522
+ });
523
+ /**
524
+ * Delete a points system
525
+ */
526
+ export const adminPointsSystemControllerRemove = (options) => (options.client ?? client).delete({
527
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
528
+ url: '/admin/v1/points/{key}',
529
+ ...options
530
+ });
531
+ /**
532
+ * Update a points system
533
+ */
534
+ export const adminPointsSystemControllerUpdate = (options) => (options.client ?? client).patch({
535
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
536
+ url: '/admin/v1/points/{key}',
537
+ ...options,
538
+ headers: {
539
+ 'Content-Type': 'application/json',
540
+ ...options.headers
541
+ }
542
+ });
543
+ /**
544
+ * List triggers for a points system
545
+ */
546
+ export const adminPointsSystemControllerFindTriggers = (options) => (options.client ?? client).get({
547
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
548
+ url: '/admin/v1/points/{key}/triggers',
549
+ ...options
550
+ });
551
+ /**
552
+ * Create a points trigger
553
+ */
554
+ export const adminPointsSystemControllerCreateTrigger = (options) => (options.client ?? client).post({
555
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
556
+ url: '/admin/v1/points/{key}/triggers',
557
+ ...options,
558
+ headers: {
559
+ 'Content-Type': 'application/json',
560
+ ...options.headers
561
+ }
562
+ });
563
+ /**
564
+ * Delete a points trigger
565
+ */
566
+ export const adminPointsSystemControllerRemoveTrigger = (options) => (options.client ?? client).delete({
567
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
568
+ url: '/admin/v1/points/{key}/triggers/{triggerId}',
569
+ ...options
570
+ });
571
+ /**
572
+ * Update a points trigger
573
+ */
574
+ export const adminPointsSystemControllerUpdateTrigger = (options) => (options.client ?? client).patch({
575
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
576
+ url: '/admin/v1/points/{key}/triggers/{triggerId}',
577
+ ...options,
578
+ headers: {
579
+ 'Content-Type': 'application/json',
580
+ ...options.headers
581
+ }
582
+ });
583
+ /**
584
+ * List levels for a points system
585
+ */
586
+ export const adminPointsSystemControllerFindLevels = (options) => (options.client ?? client).get({
587
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
588
+ url: '/admin/v1/points/{key}/levels',
589
+ ...options
590
+ });
591
+ /**
592
+ * Create a points level
593
+ */
594
+ export const adminPointsSystemControllerCreateLevel = (options) => (options.client ?? client).post({
595
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
596
+ url: '/admin/v1/points/{key}/levels',
597
+ ...options,
598
+ headers: {
599
+ 'Content-Type': 'application/json',
600
+ ...options.headers
601
+ }
602
+ });
603
+ /**
604
+ * Delete a points level
605
+ */
606
+ export const adminPointsSystemControllerRemoveLevel = (options) => (options.client ?? client).delete({
607
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
608
+ url: '/admin/v1/points/{key}/levels/{levelId}',
609
+ ...options
610
+ });
611
+ /**
612
+ * Update a points level
613
+ */
614
+ export const adminPointsSystemControllerUpdateLevel = (options) => (options.client ?? client).patch({
615
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
616
+ url: '/admin/v1/points/{key}/levels/{levelId}',
617
+ ...options,
618
+ headers: {
619
+ 'Content-Type': 'application/json',
620
+ ...options.headers
621
+ }
622
+ });
623
+ /**
624
+ * List all leaderboards
625
+ */
626
+ export const leaderboardControllerGetAll = (options) => (options?.client ?? client).get({
627
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
628
+ url: '/leaderboards',
629
+ ...options
630
+ });
631
+ /**
632
+ * Get leaderboard rankings
633
+ */
634
+ export const leaderboardControllerGetLeaderboard = (options) => (options.client ?? client).get({
635
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
636
+ url: '/leaderboards/{key}',
637
+ ...options
638
+ });
639
+ /**
640
+ * List all leaderboards
641
+ */
642
+ export const adminLeaderboardControllerFindAll = (options) => (options?.client ?? client).get({
643
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
644
+ url: '/admin/v1/leaderboards',
645
+ ...options
646
+ });
647
+ /**
648
+ * Create a leaderboard
649
+ */
650
+ export const adminLeaderboardControllerCreate = (options) => (options.client ?? client).post({
651
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
652
+ url: '/admin/v1/leaderboards',
653
+ ...options,
654
+ headers: {
655
+ 'Content-Type': 'application/json',
656
+ ...options.headers
657
+ }
658
+ });
659
+ /**
660
+ * Delete a leaderboard
661
+ */
662
+ export const adminLeaderboardControllerRemove = (options) => (options.client ?? client).delete({
663
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
664
+ url: '/admin/v1/leaderboards/{key}',
665
+ ...options
666
+ });
667
+ /**
668
+ * Update a leaderboard
669
+ */
670
+ export const adminLeaderboardControllerUpdate = (options) => (options.client ?? client).patch({
671
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
672
+ url: '/admin/v1/leaderboards/{key}',
673
+ ...options,
674
+ headers: {
675
+ 'Content-Type': 'application/json',
676
+ ...options.headers
677
+ }
678
+ });
679
+ /**
680
+ * List attribute definitions
681
+ */
682
+ export const attributeDefinitionControllerList = (options) => (options.client ?? client).get({
683
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
684
+ url: '/attributes',
685
+ ...options
686
+ });
687
+ /**
688
+ * Create attribute definition
689
+ */
690
+ export const attributeDefinitionControllerCreate = (options) => (options.client ?? client).post({
691
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
692
+ url: '/attributes',
693
+ ...options,
694
+ headers: {
695
+ 'Content-Type': 'application/json',
696
+ ...options.headers
697
+ }
698
+ });
699
+ /**
700
+ * Delete attribute definition
701
+ */
702
+ export const attributeDefinitionControllerDelete = (options) => (options.client ?? client).delete({
703
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
704
+ url: '/attributes/{scope}/{key}',
705
+ ...options
706
+ });
707
+ /**
708
+ * Update attribute definition
709
+ */
710
+ export const attributeDefinitionControllerUpdate = (options) => (options.client ?? client).patch({
711
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
712
+ url: '/attributes/{scope}/{key}',
713
+ ...options,
714
+ headers: {
715
+ 'Content-Type': 'application/json',
716
+ ...options.headers
717
+ }
718
+ });
719
+ /**
720
+ * List all experiments
721
+ */
722
+ export const adminExperimentControllerFindAll = (options) => (options?.client ?? client).get({
723
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
724
+ url: '/admin/v1/experiments',
725
+ ...options
726
+ });
727
+ /**
728
+ * Create an experiment
729
+ */
730
+ export const adminExperimentControllerCreate = (options) => (options.client ?? client).post({
731
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
732
+ url: '/admin/v1/experiments',
733
+ ...options,
734
+ headers: {
735
+ 'Content-Type': 'application/json',
736
+ ...options.headers
737
+ }
738
+ });
739
+ /**
740
+ * Delete an experiment
741
+ */
742
+ export const adminExperimentControllerRemove = (options) => (options.client ?? client).delete({
743
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
744
+ url: '/admin/v1/experiments/{id}',
745
+ ...options
746
+ });
747
+ /**
748
+ * Update an experiment
749
+ */
750
+ export const adminExperimentControllerUpdate = (options) => (options.client ?? client).patch({
751
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
752
+ url: '/admin/v1/experiments/{id}',
753
+ ...options,
754
+ headers: {
755
+ 'Content-Type': 'application/json',
756
+ ...options.headers
757
+ }
758
+ });
759
+ /**
760
+ * Delete tenant email config
761
+ */
762
+ export const notificationConfigControllerDeleteEmailConfig = (options) => (options?.client ?? client).delete({
763
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
764
+ url: '/tenants/me/email-config',
765
+ ...options
766
+ });
767
+ /**
768
+ * Get tenant email config
769
+ */
770
+ export const notificationConfigControllerGetEmailConfig = (options) => (options?.client ?? client).get({
771
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
772
+ url: '/tenants/me/email-config',
773
+ ...options
774
+ });
775
+ /**
776
+ * Save tenant email config
777
+ */
778
+ export const notificationConfigControllerSaveEmailConfig = (options) => (options.client ?? client).post({
779
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
780
+ url: '/tenants/me/email-config',
781
+ ...options,
782
+ headers: {
783
+ 'Content-Type': 'application/json',
784
+ ...options.headers
785
+ }
786
+ });
787
+ /**
788
+ * Verify tenant email config
789
+ */
790
+ export const notificationConfigControllerVerifyEmailConfig = (options) => (options?.client ?? client).post({
791
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
792
+ url: '/tenants/me/email-config/verify',
793
+ ...options
794
+ });
795
+ /**
796
+ * Delete tenant push config
797
+ */
798
+ export const notificationConfigControllerDeletePushConfig = (options) => (options?.client ?? client).delete({
799
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
800
+ url: '/tenants/me/push-config',
801
+ ...options
802
+ });
803
+ /**
804
+ * Get tenant push config
805
+ */
806
+ export const notificationConfigControllerGetPushConfig = (options) => (options?.client ?? client).get({
807
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
808
+ url: '/tenants/me/push-config',
809
+ ...options
810
+ });
811
+ /**
812
+ * Save tenant push config
813
+ */
814
+ export const notificationConfigControllerSavePushConfig = (options) => (options.client ?? client).post({
815
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
816
+ url: '/tenants/me/push-config',
817
+ ...options,
818
+ headers: {
819
+ 'Content-Type': 'application/json',
820
+ ...options.headers
821
+ }
822
+ });
823
+ /**
824
+ * List all email templates
825
+ */
826
+ export const adminNotificationTemplateControllerFindAllEmailTemplates = (options) => (options?.client ?? client).get({
827
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
828
+ url: '/admin/v1/email-templates',
829
+ ...options
830
+ });
831
+ /**
832
+ * Create email template
833
+ */
834
+ export const adminNotificationTemplateControllerCreateEmailTemplate = (options) => (options.client ?? client).post({
835
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
836
+ url: '/admin/v1/email-templates',
837
+ ...options,
838
+ headers: {
839
+ 'Content-Type': 'application/json',
840
+ ...options.headers
841
+ }
842
+ });
843
+ /**
844
+ * Delete email template
845
+ */
846
+ export const adminNotificationTemplateControllerDeleteEmailTemplate = (options) => (options.client ?? client).delete({
847
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
848
+ url: '/admin/v1/email-templates/{id}',
849
+ ...options
850
+ });
851
+ /**
852
+ * Get email template by ID
853
+ */
854
+ export const adminNotificationTemplateControllerFindEmailTemplate = (options) => (options.client ?? client).get({
855
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
856
+ url: '/admin/v1/email-templates/{id}',
857
+ ...options
858
+ });
859
+ /**
860
+ * Update email template
861
+ */
862
+ export const adminNotificationTemplateControllerUpdateEmailTemplate = (options) => (options.client ?? client).patch({
863
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
864
+ url: '/admin/v1/email-templates/{id}',
865
+ ...options,
866
+ headers: {
867
+ 'Content-Type': 'application/json',
868
+ ...options.headers
869
+ }
870
+ });
871
+ /**
872
+ * List all push templates
873
+ */
874
+ export const adminNotificationTemplateControllerFindAllPushTemplates = (options) => (options?.client ?? client).get({
875
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
876
+ url: '/admin/v1/push-templates',
877
+ ...options
878
+ });
879
+ /**
880
+ * Create push template
881
+ */
882
+ export const adminNotificationTemplateControllerCreatePushTemplate = (options) => (options.client ?? client).post({
883
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
884
+ url: '/admin/v1/push-templates',
885
+ ...options,
886
+ headers: {
887
+ 'Content-Type': 'application/json',
888
+ ...options.headers
889
+ }
890
+ });
891
+ /**
892
+ * Delete push template
893
+ */
894
+ export const adminNotificationTemplateControllerDeletePushTemplate = (options) => (options.client ?? client).delete({
895
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
896
+ url: '/admin/v1/push-templates/{id}',
897
+ ...options
898
+ });
899
+ /**
900
+ * Get push template by ID
901
+ */
902
+ export const adminNotificationTemplateControllerFindPushTemplate = (options) => (options.client ?? client).get({
903
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
904
+ url: '/admin/v1/push-templates/{id}',
905
+ ...options
906
+ });
907
+ /**
908
+ * Update push template
909
+ */
910
+ export const adminNotificationTemplateControllerUpdatePushTemplate = (options) => (options.client ?? client).patch({
911
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
912
+ url: '/admin/v1/push-templates/{id}',
913
+ ...options,
914
+ headers: {
915
+ 'Content-Type': 'application/json',
916
+ ...options.headers
917
+ }
918
+ });
919
+ /**
920
+ * List all webhooks for tenant
921
+ */
922
+ export const webhookControllerList = (options) => (options?.client ?? client).get({
923
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
924
+ url: '/webhooks',
925
+ ...options
926
+ });
927
+ /**
928
+ * Register a webhook endpoint
929
+ */
930
+ export const webhookControllerCreate = (options) => (options.client ?? client).post({
931
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
932
+ url: '/webhooks',
933
+ ...options,
934
+ headers: {
935
+ 'Content-Type': 'application/json',
936
+ ...options.headers
937
+ }
938
+ });
939
+ /**
940
+ * Delete a webhook
941
+ */
942
+ export const webhookControllerDelete = (options) => (options.client ?? client).delete({
943
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
944
+ url: '/webhooks/{id}',
945
+ ...options
946
+ });
947
+ /**
948
+ * Get a webhook by ID
949
+ */
950
+ export const webhookControllerGetById = (options) => (options.client ?? client).get({
951
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
952
+ url: '/webhooks/{id}',
953
+ ...options
954
+ });
955
+ /**
956
+ * Update a webhook
957
+ */
958
+ export const webhookControllerUpdate = (options) => (options.client ?? client).put({
959
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
960
+ url: '/webhooks/{id}',
961
+ ...options,
962
+ headers: {
963
+ 'Content-Type': 'application/json',
964
+ ...options.headers
965
+ }
966
+ });
967
+ /**
968
+ * Activate a webhook
969
+ */
970
+ export const webhookControllerActivate = (options) => (options.client ?? client).put({
971
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
972
+ url: '/webhooks/{id}/activate',
973
+ ...options
974
+ });
975
+ /**
976
+ * Deactivate a webhook
977
+ */
978
+ export const webhookControllerDeactivate = (options) => (options.client ?? client).put({
979
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
980
+ url: '/webhooks/{id}/deactivate',
981
+ ...options
982
+ });
983
+ /**
984
+ * List deliveries for a webhook
985
+ */
986
+ export const webhookControllerListDeliveries = (options) => (options.client ?? client).get({
987
+ security: [{ name: 'X-API-KEY', type: 'apiKey' }],
988
+ url: '/webhooks/{id}/deliveries',
989
+ ...options
990
+ });
991
+ //# sourceMappingURL=sdk.gen.js.map