cilantro-sdk 0.0.12 → 0.0.14

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 (127) hide show
  1. package/README.md +114 -0
  2. package/dist/admin.cjs +40 -1
  3. package/dist/admin.cjs.map +2 -2
  4. package/dist/admin.mjs +40 -1
  5. package/dist/admin.mjs.map +2 -2
  6. package/dist/api/admin/admin.d.ts +11 -1
  7. package/dist/api/admin/admin.d.ts.map +1 -1
  8. package/dist/api/auth/auth.d.ts +9 -1
  9. package/dist/api/auth/auth.d.ts.map +1 -1
  10. package/dist/api/health/health.d.ts +7 -0
  11. package/dist/api/health/health.d.ts.map +1 -1
  12. package/dist/api/platforms/platforms.d.ts +23 -1
  13. package/dist/api/platforms/platforms.d.ts.map +1 -1
  14. package/dist/api/public/public.d.ts +17 -0
  15. package/dist/api/public/public.d.ts.map +1 -0
  16. package/dist/api/subscriptions/subscriptions.d.ts +32 -0
  17. package/dist/api/subscriptions/subscriptions.d.ts.map +1 -0
  18. package/dist/api/users/users.d.ts +3 -1
  19. package/dist/api/users/users.d.ts.map +1 -1
  20. package/dist/auth.cjs +51 -1
  21. package/dist/auth.cjs.map +2 -2
  22. package/dist/auth.mjs +51 -1
  23. package/dist/auth.mjs.map +2 -2
  24. package/dist/helpers.cjs +803 -32
  25. package/dist/helpers.cjs.map +4 -4
  26. package/dist/helpers.mjs +799 -28
  27. package/dist/helpers.mjs.map +4 -4
  28. package/dist/index.cjs +1349 -44
  29. package/dist/index.cjs.map +4 -4
  30. package/dist/index.d.ts +2 -0
  31. package/dist/index.d.ts.map +1 -1
  32. package/dist/index.mjs +1334 -40
  33. package/dist/index.mjs.map +4 -4
  34. package/dist/models/adminControllerGetPlatformActivityTimelineParams.d.ts +14 -0
  35. package/dist/models/adminControllerGetPlatformActivityTimelineParams.d.ts.map +1 -0
  36. package/dist/models/adminControllerGetPlatformGrowthTrendsParams.d.ts +15 -0
  37. package/dist/models/adminControllerGetPlatformGrowthTrendsParams.d.ts.map +1 -0
  38. package/dist/models/adminControllerGetPlatformGrowthTrendsPeriod.d.ts +14 -0
  39. package/dist/models/adminControllerGetPlatformGrowthTrendsPeriod.d.ts.map +1 -0
  40. package/dist/models/adminControllerGetTopPlatformsMetric.d.ts +14 -0
  41. package/dist/models/adminControllerGetTopPlatformsMetric.d.ts.map +1 -0
  42. package/dist/models/adminControllerGetTopPlatformsParams.d.ts +19 -0
  43. package/dist/models/adminControllerGetTopPlatformsParams.d.ts.map +1 -0
  44. package/dist/models/cancelSubscriptionDto.d.ts +17 -0
  45. package/dist/models/cancelSubscriptionDto.d.ts.map +1 -0
  46. package/dist/models/cancelSubscriptionDtoMetadata.d.ts +14 -0
  47. package/dist/models/cancelSubscriptionDtoMetadata.d.ts.map +1 -0
  48. package/dist/models/changePasswordDto.d.ts +17 -0
  49. package/dist/models/changePasswordDto.d.ts.map +1 -0
  50. package/dist/models/confirmPaymentDto.d.ts +14 -0
  51. package/dist/models/confirmPaymentDto.d.ts.map +1 -0
  52. package/dist/models/createPlatformDto.d.ts +7 -0
  53. package/dist/models/createPlatformDto.d.ts.map +1 -1
  54. package/dist/models/createPlatformDtoBillingCycle.d.ts +16 -0
  55. package/dist/models/createPlatformDtoBillingCycle.d.ts.map +1 -0
  56. package/dist/models/createSubscriptionDto.d.ts +24 -0
  57. package/dist/models/createSubscriptionDto.d.ts.map +1 -0
  58. package/dist/models/createSubscriptionDtoBillingCycle.d.ts +16 -0
  59. package/dist/models/createSubscriptionDtoBillingCycle.d.ts.map +1 -0
  60. package/dist/models/createSubscriptionDtoMetadata.d.ts +14 -0
  61. package/dist/models/createSubscriptionDtoMetadata.d.ts.map +1 -0
  62. package/dist/models/downgradeSubscriptionDto.d.ts +17 -0
  63. package/dist/models/downgradeSubscriptionDto.d.ts.map +1 -0
  64. package/dist/models/downgradeSubscriptionDtoMetadata.d.ts +14 -0
  65. package/dist/models/downgradeSubscriptionDtoMetadata.d.ts.map +1 -0
  66. package/dist/models/healthControllerGetHealth200.d.ts +19 -0
  67. package/dist/models/healthControllerGetHealth200.d.ts.map +1 -0
  68. package/dist/models/healthControllerGetHealth200Checks.d.ts +16 -0
  69. package/dist/models/healthControllerGetHealth200Checks.d.ts.map +1 -0
  70. package/dist/models/healthControllerGetHealth200ChecksDatabase.d.ts +16 -0
  71. package/dist/models/healthControllerGetHealth200ChecksDatabase.d.ts.map +1 -0
  72. package/dist/models/healthControllerGetHealth200ChecksDatabaseStatus.d.ts +13 -0
  73. package/dist/models/healthControllerGetHealth200ChecksDatabaseStatus.d.ts.map +1 -0
  74. package/dist/models/healthControllerGetHealth200ChecksRedis.d.ts +16 -0
  75. package/dist/models/healthControllerGetHealth200ChecksRedis.d.ts.map +1 -0
  76. package/dist/models/healthControllerGetHealth200ChecksRedisStatus.d.ts +13 -0
  77. package/dist/models/healthControllerGetHealth200ChecksRedisStatus.d.ts.map +1 -0
  78. package/dist/models/healthControllerGetHealth200ChecksSolanaRpc.d.ts +16 -0
  79. package/dist/models/healthControllerGetHealth200ChecksSolanaRpc.d.ts.map +1 -0
  80. package/dist/models/healthControllerGetHealth200ChecksSolanaRpcStatus.d.ts +13 -0
  81. package/dist/models/healthControllerGetHealth200ChecksSolanaRpcStatus.d.ts.map +1 -0
  82. package/dist/models/healthControllerGetHealth200Status.d.ts +17 -0
  83. package/dist/models/healthControllerGetHealth200Status.d.ts.map +1 -0
  84. package/dist/models/index.d.ts +34 -0
  85. package/dist/models/index.d.ts.map +1 -1
  86. package/dist/models/linkPaymentDto.d.ts +14 -0
  87. package/dist/models/linkPaymentDto.d.ts.map +1 -0
  88. package/dist/models/passwordResetConfirmDto.d.ts +17 -0
  89. package/dist/models/passwordResetConfirmDto.d.ts.map +1 -0
  90. package/dist/models/passwordResetRequestDto.d.ts +12 -0
  91. package/dist/models/passwordResetRequestDto.d.ts.map +1 -0
  92. package/dist/models/renewSubscriptionDto.d.ts +15 -0
  93. package/dist/models/renewSubscriptionDto.d.ts.map +1 -0
  94. package/dist/models/renewSubscriptionDtoMetadata.d.ts +14 -0
  95. package/dist/models/renewSubscriptionDtoMetadata.d.ts.map +1 -0
  96. package/dist/models/subscriptionControllerFindAllParams.d.ts +31 -0
  97. package/dist/models/subscriptionControllerFindAllParams.d.ts.map +1 -0
  98. package/dist/models/subscriptionControllerFindAllStatus.d.ts +16 -0
  99. package/dist/models/subscriptionControllerFindAllStatus.d.ts.map +1 -0
  100. package/dist/models/upgradeSubscriptionDto.d.ts +17 -0
  101. package/dist/models/upgradeSubscriptionDto.d.ts.map +1 -0
  102. package/dist/models/upgradeSubscriptionDtoMetadata.d.ts +14 -0
  103. package/dist/models/upgradeSubscriptionDtoMetadata.d.ts.map +1 -0
  104. package/dist/models/verifyEmailDto.d.ts +12 -0
  105. package/dist/models/verifyEmailDto.d.ts.map +1 -0
  106. package/dist/plans.cjs +198 -0
  107. package/dist/plans.cjs.map +7 -0
  108. package/dist/plans.d.ts +12 -0
  109. package/dist/plans.d.ts.map +1 -0
  110. package/dist/plans.mjs +156 -0
  111. package/dist/plans.mjs.map +7 -0
  112. package/dist/platform.cjs +119 -1
  113. package/dist/platform.cjs.map +2 -2
  114. package/dist/platform.mjs +119 -1
  115. package/dist/platform.mjs.map +2 -2
  116. package/dist/signers/signerHelpers.d.ts.map +1 -1
  117. package/dist/subscriptions.cjs +232 -0
  118. package/dist/subscriptions.cjs.map +7 -0
  119. package/dist/subscriptions.d.ts +15 -0
  120. package/dist/subscriptions.d.ts.map +1 -0
  121. package/dist/subscriptions.mjs +187 -0
  122. package/dist/subscriptions.mjs.map +7 -0
  123. package/dist/user.cjs +17 -1
  124. package/dist/user.cjs.map +2 -2
  125. package/dist/user.mjs +17 -1
  126. package/dist/user.mjs.map +2 -2
  127. package/package.json +22 -1
package/README.md CHANGED
@@ -229,6 +229,8 @@ The SDK is organized into modules for better code organization:
229
229
  - **Wallet** (`cilantro-sdk/wallet`) - Wallet and blockchain operations
230
230
  - **Admin** (`cilantro-sdk/admin`) - Administrative operations
231
231
  - **Auth** (`cilantro-sdk/auth`) - Universal authentication
232
+ - **Subscriptions** (`cilantro-sdk/subscriptions`) - Subscription management operations
233
+ - **Plans** (`cilantro-sdk/plans`) - Subscription plan management operations
232
234
  - **Utils** (`cilantro-sdk/utils`) - Utility functions
233
235
  - **Helpers** (`cilantro-sdk/helpers`) - Device key management and signer helpers
234
236
 
@@ -255,9 +257,121 @@ The SDK is organized into modules for better code organization:
255
257
  - `login` - Login and get JWT token
256
258
  - `loginAndSetAuth` - Login and automatically set authentication
257
259
 
260
+ **Subscriptions Module:**
261
+ - Basic: `create`, `findAll`, `findOne`, `getPlatformSubscription`
262
+ - Management: `upgrade`, `downgrade`, `cancel`, `renew`
263
+ - History: `getHistory` - Get subscription audit trail
264
+
265
+ **Plans Module:**
266
+ - Basic: `findAll`, `findOne`, `update`, `remove`
267
+ - Assignment: `assignToPlatform`, `assignToUser`
268
+
269
+ **Subscriptions Module:**
270
+ - Basic: `create`, `findAll`, `findOne`, `getPlatformSubscription`
271
+ - Management: `upgrade`, `downgrade`, `cancel`, `renew`
272
+ - History: `getHistory` - Get subscription audit trail
273
+
274
+ **Plans Module:**
275
+ - Basic: `findAll`, `findOne`, `update`, `remove`
276
+ - Assignment: `assignToPlatform`, `assignToUser`
277
+
258
278
  **Helpers Module:**
259
279
  - Device key management, signer helpers, validation, and storage adapters (see above)
260
280
 
281
+ ## Examples
282
+
283
+ ### Subscriptions Module
284
+
285
+ ```typescript
286
+ import { configure } from 'cilantro-sdk';
287
+ import { subscriptions } from 'cilantro-sdk';
288
+
289
+ // Configure SDK
290
+ configure({ apiKey: 'your-api-key' });
291
+
292
+ // Create a new subscription
293
+ const newSubscription = await subscriptions.create({
294
+ platformId: 'platform-id',
295
+ planId: 'plan-id',
296
+ billingCycle: 'monthly',
297
+ trialDays: 7
298
+ });
299
+
300
+ // Get all subscriptions with filters
301
+ const allSubscriptions = await subscriptions.findAll({
302
+ status: 'active',
303
+ platformId: 'platform-id'
304
+ });
305
+
306
+ // Get subscription by ID
307
+ const subscription = await subscriptions.findOne('subscription-id');
308
+
309
+ // Get platform's active subscription
310
+ const platformSubscription = await subscriptions.getPlatformSubscription('platform-id');
311
+
312
+ // Upgrade subscription
313
+ await subscriptions.upgrade('subscription-id', {
314
+ newPlanId: 'premium-plan-id',
315
+ effectiveDate: '2024-01-01T00:00:00Z'
316
+ });
317
+
318
+ // Downgrade subscription
319
+ await subscriptions.downgrade('subscription-id', {
320
+ newPlanId: 'basic-plan-id'
321
+ });
322
+
323
+ // Cancel subscription
324
+ await subscriptions.cancel('subscription-id', {
325
+ cancelAtPeriodEnd: true
326
+ });
327
+
328
+ // Renew subscription
329
+ await subscriptions.renew('subscription-id', {
330
+ extendByDays: 30
331
+ });
332
+
333
+ // Get subscription history
334
+ const history = await subscriptions.getHistory('subscription-id');
335
+ ```
336
+
337
+ ### Plans Module
338
+
339
+ ```typescript
340
+ import { configure } from 'cilantro-sdk';
341
+ import { plans } from 'cilantro-sdk';
342
+
343
+ // Configure SDK
344
+ configure({ apiKey: 'your-api-key' });
345
+
346
+ // Get all plans
347
+ const allPlans = await plans.findAll();
348
+
349
+ // Get plan by ID
350
+ const plan = await plans.findOne('plan-id');
351
+
352
+ // Update plan
353
+ await plans.update('plan-id', {
354
+ planName: 'Updated Plan Name',
355
+ description: 'New description',
356
+ isActive: true
357
+ });
358
+
359
+ // Remove (deactivate) a plan
360
+ await plans.remove('plan-id');
361
+
362
+ // Assign plan to platform
363
+ await plans.assignToPlatform('plan-id', 'platform-id', {
364
+ startDate: '2024-01-01T00:00:00Z',
365
+ billingCycle: 'monthly'
366
+ });
367
+
368
+ // Assign plan to user
369
+ await plans.assignToUser('plan-id', 'user-id', {
370
+ startDate: '2024-01-01T00:00:00Z',
371
+ billingCycle: 'monthly'
372
+ });
373
+ ```
374
+
261
375
  ## Error Handling
262
376
 
263
377
  The SDK provides custom error classes for better error handling:
package/dist/admin.cjs CHANGED
@@ -282,6 +282,40 @@ var getAdmin = () => {
282
282
  options
283
283
  );
284
284
  };
285
+ const adminControllerGetPlatformAnalytics = (options) => {
286
+ return customInstance(
287
+ { url: `/admin/analytics/platforms`, method: "GET" },
288
+ options
289
+ );
290
+ };
291
+ const adminControllerGetPlatformUsageMetrics = (options) => {
292
+ return customInstance(
293
+ { url: `/admin/analytics/platforms/usage`, method: "GET" },
294
+ options
295
+ );
296
+ };
297
+ const adminControllerGetPlatformGrowthTrends = (params, options) => {
298
+ return customInstance(
299
+ { url: `/admin/analytics/platforms/growth`, method: "GET", params },
300
+ options
301
+ );
302
+ };
303
+ const adminControllerGetTopPlatforms = (params, options) => {
304
+ return customInstance(
305
+ { url: `/admin/analytics/platforms/top`, method: "GET", params },
306
+ options
307
+ );
308
+ };
309
+ const adminControllerGetPlatformActivityTimeline = (id, params, options) => {
310
+ return customInstance(
311
+ {
312
+ url: `/admin/analytics/platforms/${id}/activity`,
313
+ method: "GET",
314
+ params
315
+ },
316
+ options
317
+ );
318
+ };
285
319
  return {
286
320
  adminControllerCreate: adminControllerCreate2,
287
321
  adminControllerFindAll: adminControllerFindAll2,
@@ -307,7 +341,12 @@ var getAdmin = () => {
307
341
  adminControllerRegenerateApiKey: adminControllerRegenerateApiKey2,
308
342
  adminControllerGetPlatformsWithUsers: adminControllerGetPlatformsWithUsers2,
309
343
  adminControllerGetUsersWithWallets: adminControllerGetUsersWithWallets2,
310
- adminControllerGetWalletAssets: adminControllerGetWalletAssets2
344
+ adminControllerGetWalletAssets: adminControllerGetWalletAssets2,
345
+ adminControllerGetPlatformAnalytics,
346
+ adminControllerGetPlatformUsageMetrics,
347
+ adminControllerGetPlatformGrowthTrends,
348
+ adminControllerGetTopPlatforms,
349
+ adminControllerGetPlatformActivityTimeline
311
350
  };
312
351
  };
313
352
 
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../src/admin.ts", "../src/api-client.ts", "../src/config.ts", "../src/api/admin/admin.ts"],
4
- "sourcesContent": ["/**\r\n * Admin module - Simplified exports for admin-related API functions\r\n */\r\n\r\nimport { getAdmin } from './api/admin/admin';\r\n\r\nconst {\r\n adminControllerCreate,\r\n adminControllerFindAll,\r\n adminControllerGetCurrentAdmin,\r\n adminControllerGetAllApiKeys,\r\n adminControllerGetplatformApiKey,\r\n adminControllerFindOne,\r\n adminControllerUpdate,\r\n adminControllerRemove,\r\n adminControllerToggleActive,\r\n adminControllerFindAllPlatforms,\r\n adminControllerFindOnePlatform,\r\n adminControllerUpdatePlatform,\r\n adminControllerRemovePlatform,\r\n adminControllerFindAllUsers,\r\n adminControllerFindOneUser,\r\n adminControllerFindAllWallets,\r\n adminControllerFindWalletsByUserId,\r\n adminControllerFindOneWallet,\r\n adminControllerGetOverviewAnalytics,\r\n adminControllerGetWalletAnalytics,\r\n adminControllerGetRecentActivity,\r\n adminControllerRegenerateApiKey,\r\n adminControllerGetPlatformsWithUsers,\r\n adminControllerGetUsersWithWallets,\r\n adminControllerGetWalletAssets,\r\n} = getAdmin();\r\n\r\n// Export admin functions with simplified names\r\nexport const create = adminControllerCreate;\r\nexport const findAll = adminControllerFindAll;\r\nexport const getCurrentAdmin = adminControllerGetCurrentAdmin;\r\nexport const getAllApiKeys = adminControllerGetAllApiKeys;\r\nexport const getPlatformApiKey = adminControllerGetplatformApiKey;\r\nexport const findOne = adminControllerFindOne;\r\nexport const update = adminControllerUpdate;\r\nexport const remove = adminControllerRemove;\r\nexport const toggleActive = adminControllerToggleActive;\r\nexport const findAllPlatforms = adminControllerFindAllPlatforms;\r\nexport const findOnePlatform = adminControllerFindOnePlatform;\r\nexport const updatePlatform = adminControllerUpdatePlatform;\r\nexport const removePlatform = adminControllerRemovePlatform;\r\nexport const findAllUsers = adminControllerFindAllUsers;\r\nexport const findOneUser = adminControllerFindOneUser;\r\nexport const findAllWallets = adminControllerFindAllWallets;\r\nexport const findWalletsByUserId = adminControllerFindWalletsByUserId;\r\nexport const findOneWallet = adminControllerFindOneWallet;\r\nexport const getOverviewAnalytics = adminControllerGetOverviewAnalytics;\r\nexport const getWalletAnalytics = adminControllerGetWalletAnalytics;\r\nexport const getRecentActivity = adminControllerGetRecentActivity;\r\nexport const regenerateApiKey = adminControllerRegenerateApiKey;\r\nexport const getPlatformsWithUsers = adminControllerGetPlatformsWithUsers;\r\nexport const getUsersWithWallets = adminControllerGetUsersWithWallets;\r\nexport const getWalletAssets = adminControllerGetWalletAssets;\r\n\r\n// Export types\r\nexport type {\r\n AdminControllerCreateResult,\r\n AdminControllerFindAllResult,\r\n AdminControllerGetCurrentAdminResult,\r\n AdminControllerGetAllApiKeysResult,\r\n AdminControllerGetplatformApiKeyResult,\r\n AdminControllerFindOneResult,\r\n AdminControllerUpdateResult,\r\n AdminControllerRemoveResult,\r\n AdminControllerToggleActiveResult,\r\n AdminControllerFindAllPlatformsResult,\r\n AdminControllerFindOnePlatformResult,\r\n AdminControllerUpdatePlatformResult,\r\n AdminControllerRemovePlatformResult,\r\n AdminControllerFindAllUsersResult,\r\n AdminControllerFindOneUserResult,\r\n AdminControllerFindAllWalletsResult,\r\n AdminControllerFindWalletsByUserIdResult,\r\n AdminControllerFindOneWalletResult,\r\n AdminControllerGetOverviewAnalyticsResult,\r\n AdminControllerGetWalletAnalyticsResult,\r\n AdminControllerGetRecentActivityResult,\r\n AdminControllerRegenerateApiKeyResult,\r\n AdminControllerGetPlatformsWithUsersResult,\r\n AdminControllerGetUsersWithWalletsResult,\r\n AdminControllerGetWalletAssetsResult,\r\n} from './api/admin/admin';\r\n\r\nexport type {\r\n CreateAdminDto,\r\n UpdateAdminDto,\r\n AdminControllerFindAllParams,\r\n AdminControllerFindAllPlatformsParams,\r\n AdminControllerGetPlatformsWithUsersParams,\r\n AdminControllerGetUsersWithWalletsParams,\r\n AdminControllerGetWalletAssetsParams,\r\n UpdatePlatformDto,\r\n} from './models';\r\n\r\n", "/**\r\n * Custom API client instance for Cilantro Smart SDK\r\n * Handles authentication (JWT tokens and API keys) automatically\r\n * @internal\r\n */\r\n\r\nimport axios, { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios';\r\nimport { getConfig } from './config';\r\n\r\n// Create axios instance with dynamic baseURL\r\nconst axiosInstance: AxiosInstance = axios.create();\r\n\r\n// Request interceptor to add authentication headers and dynamic baseURL\r\naxiosInstance.interceptors.request.use(\r\n (config) => {\r\n const sdkConfig = getConfig();\r\n \r\n // Set baseURL dynamically from config\r\n config.baseURL = sdkConfig.baseURL || 'https://api.cilantro.gg';\r\n \r\n // Add JWT token if available\r\n if (sdkConfig.jwt) {\r\n config.headers.Authorization = `Bearer ${sdkConfig.jwt}`;\r\n }\r\n \r\n // Add API key if available (for platform/user authentication)\r\n if (sdkConfig.apiKey) {\r\n config.headers['X-API-Key'] = sdkConfig.apiKey;\r\n }\r\n \r\n return config;\r\n },\r\n (error) => {\r\n return Promise.reject(error);\r\n }\r\n);\r\n\r\n/**\r\n * Custom instance wrapper for orval\r\n * @internal\r\n */\r\nexport const customInstance = <T>(\r\n config: AxiosRequestConfig,\r\n options?: AxiosRequestConfig,\r\n): Promise<T> => {\r\n const source = axios.CancelToken.source();\r\n const promise = axiosInstance({\r\n ...config,\r\n ...options,\r\n cancelToken: source.token,\r\n }).then(({ data }: AxiosResponse<T>) => data);\r\n\r\n // @ts-ignore\r\n promise.cancel = () => {\r\n source.cancel('Query was cancelled');\r\n };\r\n\r\n return promise;\r\n};\r\n\r\nexport default customInstance;\r\n", "/**\r\n * SDK Configuration Management\r\n * Centralized configuration for authentication and API settings\r\n */\r\n\r\n/**\r\n * SDK Configuration interface\r\n */\r\nexport interface SDKConfig {\r\n /** JWT token for authentication */\r\n jwt?: string;\r\n /** API key for authentication (alternative to JWT) */\r\n apiKey?: string;\r\n /** Base URL for the API (defaults to https://api.cilantro.gg) */\r\n baseURL?: string;\r\n}\r\n\r\n/**\r\n * Internal configuration state\r\n * Uses global variable to share state across bundled modules\r\n */\r\nconst GLOBAL_CONFIG_KEY = '__CILANTRO_SDK_CONFIG__';\r\n\r\n// Extend global types\r\ndeclare global {\r\n var __CILANTRO_SDK_CONFIG__: SDKConfig | undefined;\r\n}\r\n\r\n// Get or create global config\r\nfunction getGlobalConfig(): SDKConfig {\r\n const defaultConfig: SDKConfig = {\r\n baseURL: process.env.CILANTRO_API_URL || 'https://api.cilantro.gg',\r\n };\r\n \r\n if (typeof global !== 'undefined') {\r\n if (!global.__CILANTRO_SDK_CONFIG__) {\r\n global.__CILANTRO_SDK_CONFIG__ = defaultConfig;\r\n }\r\n return global.__CILANTRO_SDK_CONFIG__;\r\n } else if (typeof (globalThis as any).window !== 'undefined') {\r\n const win = (globalThis as any).window;\r\n if (!win[GLOBAL_CONFIG_KEY]) {\r\n win[GLOBAL_CONFIG_KEY] = defaultConfig;\r\n }\r\n return win[GLOBAL_CONFIG_KEY];\r\n }\r\n \r\n // Fallback for environments without global/window\r\n return defaultConfig;\r\n}\r\n\r\nlet currentConfig: SDKConfig = getGlobalConfig();\r\n\r\n/**\r\n * Configure the SDK with authentication credentials and settings\r\n * \r\n * @param config - Configuration options\r\n * @example\r\n * ```typescript\r\n * import { configure } from 'cilantro-smart-sdk';\r\n * \r\n * // Configure with API key\r\n * configure({ \r\n * apiKey: 'your-api-key',\r\n * baseURL: 'https://api.cilantro.gg' \r\n * });\r\n * \r\n * // Configure with JWT token\r\n * configure({ \r\n * jwt: 'your-jwt-token' \r\n * });\r\n * ```\r\n */\r\nexport function configure(config: SDKConfig): void {\r\n currentConfig = {\r\n ...currentConfig,\r\n ...config,\r\n };\r\n // Also update global config\r\n if (typeof global !== 'undefined') {\r\n global.__CILANTRO_SDK_CONFIG__ = currentConfig;\r\n } else if (typeof (globalThis as any).window !== 'undefined') {\r\n ((globalThis as any).window as any)[GLOBAL_CONFIG_KEY] = currentConfig;\r\n }\r\n}\r\n\r\n/**\r\n * Set or update authentication credentials\r\n * \r\n * @param auth - Authentication credentials (JWT and/or API key)\r\n * @example\r\n * ```typescript\r\n * import { setAuth } from 'cilantro-smart-sdk';\r\n * import { login } from 'cilantro-smart-sdk/auth';\r\n * \r\n * const result = await login({ \r\n * usernameOrEmail: 'user@example.com',\r\n * password: 'password123' \r\n * });\r\n * \r\n * setAuth({ jwt: result.data.jwt });\r\n * ```\r\n */\r\nexport function setAuth(auth: { jwt?: string; apiKey?: string }): void {\r\n // Refresh from global first\r\n currentConfig = getGlobalConfig();\r\n \r\n if (auth.jwt !== undefined) {\r\n currentConfig.jwt = auth.jwt;\r\n }\r\n if (auth.apiKey !== undefined) {\r\n currentConfig.apiKey = auth.apiKey;\r\n }\r\n \r\n // Update global config\r\n if (typeof global !== 'undefined') {\r\n global.__CILANTRO_SDK_CONFIG__ = currentConfig;\r\n } else if (typeof (globalThis as any).window !== 'undefined') {\r\n ((globalThis as any).window as any)[GLOBAL_CONFIG_KEY] = currentConfig;\r\n }\r\n}\r\n\r\n/**\r\n * Clear all authentication credentials\r\n * \r\n * @example\r\n * ```typescript\r\n * import { clearAuth } from 'cilantro-smart-sdk';\r\n * \r\n * clearAuth();\r\n * ```\r\n */\r\nexport function clearAuth(): void {\r\n currentConfig = getGlobalConfig();\r\n currentConfig.jwt = undefined;\r\n currentConfig.apiKey = undefined;\r\n \r\n // Update global config\r\n if (typeof global !== 'undefined') {\r\n global.__CILANTRO_SDK_CONFIG__ = currentConfig;\r\n } else if (typeof (globalThis as any).window !== 'undefined') {\r\n ((globalThis as any).window as any)[GLOBAL_CONFIG_KEY] = currentConfig;\r\n }\r\n}\r\n\r\n/**\r\n * Get current SDK configuration (internal use only)\r\n * @internal\r\n */\r\nexport function getConfig(): Readonly<SDKConfig> {\r\n // Always get fresh from global to ensure we have the latest config\r\n currentConfig = getGlobalConfig();\r\n return currentConfig;\r\n}\r\n", "/**\n * Generated by orval v7.17.0 \uD83C\uDF7A\n * Do not edit manually.\n * GUAC Smart API v2\n * API documentation for GUAC Smart API v2 - A Solana wallet management system\n * OpenAPI spec version: 2.0\n */\nimport type {\n AdminControllerFindAllParams,\n AdminControllerFindAllPlatformsParams,\n AdminControllerGetPlatformsWithUsersParams,\n AdminControllerGetUsersWithWalletsParams,\n AdminControllerGetWalletAssetsParams,\n CreateAdminDto,\n UpdateAdminDto,\n UpdatePlatformDto,\n} from \"../../models\";\n\nimport { customInstance } from \"../../api-client\";\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\nexport const getAdmin = () => {\n /**\n * Create a new administrator account. No prior authentication required for initial admin creation.\n * @summary Register a new admin\n */\n const adminControllerCreate = (\n createAdminDto: CreateAdminDto,\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n {\n url: `/admin`,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\" },\n data: createAdminDto,\n },\n options,\n );\n };\n /**\n * Retrieve a paginated list of all administrators. Requires admin JWT token.\n * @summary Get all admins\n */\n const adminControllerFindAll = (\n params?: AdminControllerFindAllParams,\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin`, method: \"GET\", params },\n options,\n );\n };\n /**\n * Retrieve the authenticated admin's profile information. Requires admin JWT token.\n * @summary Get current admin profile\n */\n const adminControllerGetCurrentAdmin = (\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>({ url: `/admin/me`, method: \"GET\" }, options);\n };\n /**\n * Retrieve API keys for all platforms. Sensitive operation for key management. Requires admin JWT token.\n * @summary Get all platform API keys\n */\n const adminControllerGetAllApiKeys = (\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin/api-keys`, method: \"GET\" },\n options,\n );\n };\n /**\n * Retrieve the API key for a specific platform. Requires admin JWT token.\n * @summary Get specific platform API key\n */\n const adminControllerGetplatformApiKey = (\n platformId: string,\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin/api-keys/${platformId}`, method: \"GET\" },\n options,\n );\n };\n /**\n * Retrieve detailed information about a specific administrator. Requires admin JWT token.\n * @summary Get admin by ID\n */\n const adminControllerFindOne = (\n id: string,\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin/${id}`, method: \"GET\" },\n options,\n );\n };\n /**\n * Update administrator information such as username, email, or password. Requires admin JWT token.\n * @summary Update admin\n */\n const adminControllerUpdate = (\n id: string,\n updateAdminDto: UpdateAdminDto,\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n {\n url: `/admin/${id}`,\n method: \"PATCH\",\n headers: { \"Content-Type\": \"application/json\" },\n data: updateAdminDto,\n },\n options,\n );\n };\n /**\n * Permanently delete an administrator account. Cannot delete the last admin. Requires admin JWT token.\n * @summary Delete admin\n */\n const adminControllerRemove = (\n id: string,\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin/${id}`, method: \"DELETE\" },\n options,\n );\n };\n /**\n * Enable or disable an administrator account. Disabled admins cannot login. Requires admin JWT token.\n * @summary Toggle admin active status\n */\n const adminControllerToggleActive = (\n id: string,\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin/${id}/toggle-active`, method: \"PATCH\" },\n options,\n );\n };\n /**\n * Retrieve a paginated list of all platforms in the system. Requires admin JWT token.\n * @summary View all platforms\n */\n const adminControllerFindAllPlatforms = (\n params?: AdminControllerFindAllPlatformsParams,\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin/platforms/all`, method: \"GET\", params },\n options,\n );\n };\n /**\n * Retrieve detailed information about a specific platform including users and wallets count. Requires admin JWT token.\n * @summary View platform details\n */\n const adminControllerFindOnePlatform = (\n id: string,\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin/platforms/${id}`, method: \"GET\" },\n options,\n );\n };\n /**\n * Update platform information such as name, email, or settings. Requires admin JWT token.\n * @summary Update platform\n */\n const adminControllerUpdatePlatform = (\n id: string,\n updatePlatformDto: UpdatePlatformDto,\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n {\n url: `/admin/platforms/${id}`,\n method: \"PATCH\",\n headers: { \"Content-Type\": \"application/json\" },\n data: updatePlatformDto,\n },\n options,\n );\n };\n /**\n * Permanently delete a platform and all associated users, wallets, and data. This action cannot be undone. Requires admin JWT token.\n * @summary Delete platform\n */\n const adminControllerRemovePlatform = (\n id: string,\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin/platforms/${id}`, method: \"DELETE\" },\n options,\n );\n };\n /**\n * Retrieve all users in the system across all platforms. Admin has read-only access to user data. Requires admin JWT token.\n * @summary View all users (read-only)\n */\n const adminControllerFindAllUsers = (\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin/users/all`, method: \"GET\" },\n options,\n );\n };\n /**\n * Retrieve detailed information about a specific user including their wallets. Requires admin JWT token.\n * @summary View user details\n */\n const adminControllerFindOneUser = (\n id: string,\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin/users/${id}`, method: \"GET\" },\n options,\n );\n };\n /**\n * Retrieve all wallets in the system across all users and platforms. Admin has read-only access to wallet data. Requires admin JWT token.\n * @summary View all wallets (read-only)\n */\n const adminControllerFindAllWallets = (\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin/wallets/all`, method: \"GET\" },\n options,\n );\n };\n /**\n * Retrieve all wallets belonging to a specific user. Requires admin JWT token.\n * @summary View all wallets for a specific user (read-only)\n */\n const adminControllerFindWalletsByUserId = (\n userId: string,\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin/wallets/user/${userId}`, method: \"GET\" },\n options,\n );\n };\n /**\n * Retrieve detailed information about a specific wallet including balance and assets. Requires admin JWT token.\n * @summary View wallet details (read-only)\n */\n const adminControllerFindOneWallet = (\n id: string,\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin/wallets/${id}`, method: \"GET\" },\n options,\n );\n };\n /**\n * Retrieve high-level analytics including total platforms, users, wallets, and transaction volume. Requires admin JWT token.\n * @summary Get dashboard overview analytics\n */\n const adminControllerGetOverviewAnalytics = (\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin/analytics/overview`, method: \"GET\" },\n options,\n );\n };\n /**\n * Retrieve wallet-specific analytics including total balances, asset distribution, and activity metrics. Requires admin JWT token.\n * @summary Get wallet analytics and statistics\n */\n const adminControllerGetWalletAnalytics = (\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin/analytics/wallets`, method: \"GET\" },\n options,\n );\n };\n /**\n * Retrieve recent activity feed including new registrations, transactions, and system events. Requires admin JWT token.\n * @summary Get recent activity across all entities\n */\n const adminControllerGetRecentActivity = (\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin/analytics/recent-activity`, method: \"GET\" },\n options,\n );\n };\n /**\n * Generate a new API key for a platform, invalidating the old one. The platform will need to update their integration. Requires admin JWT token.\n * @summary Regenerate platform API key\n */\n const adminControllerRegenerateApiKey = (\n platformId: string,\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin/api-keys/${platformId}/regenerate`, method: \"POST\" },\n options,\n );\n };\n /**\n * Retrieve a paginated list of platforms with aggregated user counts for each. Useful for platform comparison. Requires admin JWT token.\n * @summary Get platforms with their user counts\n */\n const adminControllerGetPlatformsWithUsers = (\n params?: AdminControllerGetPlatformsWithUsersParams,\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin/data/platforms-with-users`, method: \"GET\", params },\n options,\n );\n };\n /**\n * Retrieve a paginated list of users with aggregated wallet counts and total balances. Useful for user analytics. Requires admin JWT token.\n * @summary Get users with their wallet counts and balances\n */\n const adminControllerGetUsersWithWallets = (\n params?: AdminControllerGetUsersWithWalletsParams,\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin/data/users-with-wallets`, method: \"GET\", params },\n options,\n );\n };\n /**\n * Retrieve a paginated list of all wallet assets with optional filtering by asset type (NFT, SPL_TOKEN, SOL). Requires admin JWT token.\n * @summary Get all wallet assets with filtering\n */\n const adminControllerGetWalletAssets = (\n params?: AdminControllerGetWalletAssetsParams,\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin/data/wallet-assets`, method: \"GET\", params },\n options,\n );\n };\n return {\n adminControllerCreate,\n adminControllerFindAll,\n adminControllerGetCurrentAdmin,\n adminControllerGetAllApiKeys,\n adminControllerGetplatformApiKey,\n adminControllerFindOne,\n adminControllerUpdate,\n adminControllerRemove,\n adminControllerToggleActive,\n adminControllerFindAllPlatforms,\n adminControllerFindOnePlatform,\n adminControllerUpdatePlatform,\n adminControllerRemovePlatform,\n adminControllerFindAllUsers,\n adminControllerFindOneUser,\n adminControllerFindAllWallets,\n adminControllerFindWalletsByUserId,\n adminControllerFindOneWallet,\n adminControllerGetOverviewAnalytics,\n adminControllerGetWalletAnalytics,\n adminControllerGetRecentActivity,\n adminControllerRegenerateApiKey,\n adminControllerGetPlatformsWithUsers,\n adminControllerGetUsersWithWallets,\n adminControllerGetWalletAssets,\n };\n};\nexport type AdminControllerCreateResult = NonNullable<\n Awaited<ReturnType<ReturnType<typeof getAdmin>[\"adminControllerCreate\"]>>\n>;\nexport type AdminControllerFindAllResult = NonNullable<\n Awaited<ReturnType<ReturnType<typeof getAdmin>[\"adminControllerFindAll\"]>>\n>;\nexport type AdminControllerGetCurrentAdminResult = NonNullable<\n Awaited<\n ReturnType<ReturnType<typeof getAdmin>[\"adminControllerGetCurrentAdmin\"]>\n >\n>;\nexport type AdminControllerGetAllApiKeysResult = NonNullable<\n Awaited<\n ReturnType<ReturnType<typeof getAdmin>[\"adminControllerGetAllApiKeys\"]>\n >\n>;\nexport type AdminControllerGetplatformApiKeyResult = NonNullable<\n Awaited<\n ReturnType<ReturnType<typeof getAdmin>[\"adminControllerGetplatformApiKey\"]>\n >\n>;\nexport type AdminControllerFindOneResult = NonNullable<\n Awaited<ReturnType<ReturnType<typeof getAdmin>[\"adminControllerFindOne\"]>>\n>;\nexport type AdminControllerUpdateResult = NonNullable<\n Awaited<ReturnType<ReturnType<typeof getAdmin>[\"adminControllerUpdate\"]>>\n>;\nexport type AdminControllerRemoveResult = NonNullable<\n Awaited<ReturnType<ReturnType<typeof getAdmin>[\"adminControllerRemove\"]>>\n>;\nexport type AdminControllerToggleActiveResult = NonNullable<\n Awaited<\n ReturnType<ReturnType<typeof getAdmin>[\"adminControllerToggleActive\"]>\n >\n>;\nexport type AdminControllerFindAllPlatformsResult = NonNullable<\n Awaited<\n ReturnType<ReturnType<typeof getAdmin>[\"adminControllerFindAllPlatforms\"]>\n >\n>;\nexport type AdminControllerFindOnePlatformResult = NonNullable<\n Awaited<\n ReturnType<ReturnType<typeof getAdmin>[\"adminControllerFindOnePlatform\"]>\n >\n>;\nexport type AdminControllerUpdatePlatformResult = NonNullable<\n Awaited<\n ReturnType<ReturnType<typeof getAdmin>[\"adminControllerUpdatePlatform\"]>\n >\n>;\nexport type AdminControllerRemovePlatformResult = NonNullable<\n Awaited<\n ReturnType<ReturnType<typeof getAdmin>[\"adminControllerRemovePlatform\"]>\n >\n>;\nexport type AdminControllerFindAllUsersResult = NonNullable<\n Awaited<\n ReturnType<ReturnType<typeof getAdmin>[\"adminControllerFindAllUsers\"]>\n >\n>;\nexport type AdminControllerFindOneUserResult = NonNullable<\n Awaited<ReturnType<ReturnType<typeof getAdmin>[\"adminControllerFindOneUser\"]>>\n>;\nexport type AdminControllerFindAllWalletsResult = NonNullable<\n Awaited<\n ReturnType<ReturnType<typeof getAdmin>[\"adminControllerFindAllWallets\"]>\n >\n>;\nexport type AdminControllerFindWalletsByUserIdResult = NonNullable<\n Awaited<\n ReturnType<\n ReturnType<typeof getAdmin>[\"adminControllerFindWalletsByUserId\"]\n >\n >\n>;\nexport type AdminControllerFindOneWalletResult = NonNullable<\n Awaited<\n ReturnType<ReturnType<typeof getAdmin>[\"adminControllerFindOneWallet\"]>\n >\n>;\nexport type AdminControllerGetOverviewAnalyticsResult = NonNullable<\n Awaited<\n ReturnType<\n ReturnType<typeof getAdmin>[\"adminControllerGetOverviewAnalytics\"]\n >\n >\n>;\nexport type AdminControllerGetWalletAnalyticsResult = NonNullable<\n Awaited<\n ReturnType<ReturnType<typeof getAdmin>[\"adminControllerGetWalletAnalytics\"]>\n >\n>;\nexport type AdminControllerGetRecentActivityResult = NonNullable<\n Awaited<\n ReturnType<ReturnType<typeof getAdmin>[\"adminControllerGetRecentActivity\"]>\n >\n>;\nexport type AdminControllerRegenerateApiKeyResult = NonNullable<\n Awaited<\n ReturnType<ReturnType<typeof getAdmin>[\"adminControllerRegenerateApiKey\"]>\n >\n>;\nexport type AdminControllerGetPlatformsWithUsersResult = NonNullable<\n Awaited<\n ReturnType<\n ReturnType<typeof getAdmin>[\"adminControllerGetPlatformsWithUsers\"]\n >\n >\n>;\nexport type AdminControllerGetUsersWithWalletsResult = NonNullable<\n Awaited<\n ReturnType<\n ReturnType<typeof getAdmin>[\"adminControllerGetUsersWithWallets\"]\n >\n >\n>;\nexport type AdminControllerGetWalletAssetsResult = NonNullable<\n Awaited<\n ReturnType<ReturnType<typeof getAdmin>[\"adminControllerGetWalletAssets\"]>\n >\n>;\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACMA,mBAAwE;;;ACexE,IAAM,oBAAoB;AAQ1B,SAAS,kBAA6B;AACpC,QAAM,gBAA2B;AAAA,IAC/B,SAAS,QA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,IACA,+BAAAC;AAAA,IACA,+BAAAC;AAAA,IACA,6BAAAC;AAAA,IACA,4BAAAC;AAAA,IACA,+BAAAC;AAAA,IACA,oCAAAC;AAAA,IACA,8BAAAC;AAAA,IACA,qCAAAC;AAAA,IACA,mCAAAC;AAAA,IACA,kCAAAC;AAAA,IACA,iCAAAC;AAAA,IACA,sCAAAC;AAAA,IACA,oCAAAC;AAAA,IACA,gCAAAC;AAAA,EACF;AACF;;;AHxXA,IAAM;AAAA,EACJ;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,IAAI,SAAS;AAGN,IAAM,SAAS;AACf,IAAM,UAAU;AAChB,IAAM,kBAAkB;AACxB,IAAM,gBAAgB;AACtB,IAAM,oBAAoB;AAC1B,IAAM,UAAU;AAChB,IAAM,SAAS;AACf,IAAM,SAAS;AACf,IAAM,eAAe;AACrB,IAAM,mBAAmB;AACzB,IAAM,kBAAkB;AACxB,IAAM,iBAAiB;AACvB,IAAM,iBAAiB;AACvB,IAAM,eAAe;AACrB,IAAM,cAAc;AACpB,IAAM,iBAAiB;AACvB,IAAM,sBAAsB;AAC5B,IAAM,gBAAgB;AACtB,IAAM,uBAAuB;AAC7B,IAAM,qBAAqB;AAC3B,IAAM,oBAAoB;AAC1B,IAAM,mBAAmB;AACzB,IAAM,wBAAwB;AAC9B,IAAM,sBAAsB;AAC5B,IAAM,kBAAkB;",
4
+ "sourcesContent": ["/**\r\n * Admin module - Simplified exports for admin-related API functions\r\n */\r\n\r\nimport { getAdmin } from './api/admin/admin';\r\n\r\nconst {\r\n adminControllerCreate,\r\n adminControllerFindAll,\r\n adminControllerGetCurrentAdmin,\r\n adminControllerGetAllApiKeys,\r\n adminControllerGetplatformApiKey,\r\n adminControllerFindOne,\r\n adminControllerUpdate,\r\n adminControllerRemove,\r\n adminControllerToggleActive,\r\n adminControllerFindAllPlatforms,\r\n adminControllerFindOnePlatform,\r\n adminControllerUpdatePlatform,\r\n adminControllerRemovePlatform,\r\n adminControllerFindAllUsers,\r\n adminControllerFindOneUser,\r\n adminControllerFindAllWallets,\r\n adminControllerFindWalletsByUserId,\r\n adminControllerFindOneWallet,\r\n adminControllerGetOverviewAnalytics,\r\n adminControllerGetWalletAnalytics,\r\n adminControllerGetRecentActivity,\r\n adminControllerRegenerateApiKey,\r\n adminControllerGetPlatformsWithUsers,\r\n adminControllerGetUsersWithWallets,\r\n adminControllerGetWalletAssets,\r\n} = getAdmin();\r\n\r\n// Export admin functions with simplified names\r\nexport const create = adminControllerCreate;\r\nexport const findAll = adminControllerFindAll;\r\nexport const getCurrentAdmin = adminControllerGetCurrentAdmin;\r\nexport const getAllApiKeys = adminControllerGetAllApiKeys;\r\nexport const getPlatformApiKey = adminControllerGetplatformApiKey;\r\nexport const findOne = adminControllerFindOne;\r\nexport const update = adminControllerUpdate;\r\nexport const remove = adminControllerRemove;\r\nexport const toggleActive = adminControllerToggleActive;\r\nexport const findAllPlatforms = adminControllerFindAllPlatforms;\r\nexport const findOnePlatform = adminControllerFindOnePlatform;\r\nexport const updatePlatform = adminControllerUpdatePlatform;\r\nexport const removePlatform = adminControllerRemovePlatform;\r\nexport const findAllUsers = adminControllerFindAllUsers;\r\nexport const findOneUser = adminControllerFindOneUser;\r\nexport const findAllWallets = adminControllerFindAllWallets;\r\nexport const findWalletsByUserId = adminControllerFindWalletsByUserId;\r\nexport const findOneWallet = adminControllerFindOneWallet;\r\nexport const getOverviewAnalytics = adminControllerGetOverviewAnalytics;\r\nexport const getWalletAnalytics = adminControllerGetWalletAnalytics;\r\nexport const getRecentActivity = adminControllerGetRecentActivity;\r\nexport const regenerateApiKey = adminControllerRegenerateApiKey;\r\nexport const getPlatformsWithUsers = adminControllerGetPlatformsWithUsers;\r\nexport const getUsersWithWallets = adminControllerGetUsersWithWallets;\r\nexport const getWalletAssets = adminControllerGetWalletAssets;\r\n\r\n// Export types\r\nexport type {\r\n AdminControllerCreateResult,\r\n AdminControllerFindAllResult,\r\n AdminControllerGetCurrentAdminResult,\r\n AdminControllerGetAllApiKeysResult,\r\n AdminControllerGetplatformApiKeyResult,\r\n AdminControllerFindOneResult,\r\n AdminControllerUpdateResult,\r\n AdminControllerRemoveResult,\r\n AdminControllerToggleActiveResult,\r\n AdminControllerFindAllPlatformsResult,\r\n AdminControllerFindOnePlatformResult,\r\n AdminControllerUpdatePlatformResult,\r\n AdminControllerRemovePlatformResult,\r\n AdminControllerFindAllUsersResult,\r\n AdminControllerFindOneUserResult,\r\n AdminControllerFindAllWalletsResult,\r\n AdminControllerFindWalletsByUserIdResult,\r\n AdminControllerFindOneWalletResult,\r\n AdminControllerGetOverviewAnalyticsResult,\r\n AdminControllerGetWalletAnalyticsResult,\r\n AdminControllerGetRecentActivityResult,\r\n AdminControllerRegenerateApiKeyResult,\r\n AdminControllerGetPlatformsWithUsersResult,\r\n AdminControllerGetUsersWithWalletsResult,\r\n AdminControllerGetWalletAssetsResult,\r\n} from './api/admin/admin';\r\n\r\nexport type {\r\n CreateAdminDto,\r\n UpdateAdminDto,\r\n AdminControllerFindAllParams,\r\n AdminControllerFindAllPlatformsParams,\r\n AdminControllerGetPlatformsWithUsersParams,\r\n AdminControllerGetUsersWithWalletsParams,\r\n AdminControllerGetWalletAssetsParams,\r\n UpdatePlatformDto,\r\n} from './models';\r\n\r\n", "/**\r\n * Custom API client instance for Cilantro Smart SDK\r\n * Handles authentication (JWT tokens and API keys) automatically\r\n * @internal\r\n */\r\n\r\nimport axios, { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios';\r\nimport { getConfig } from './config';\r\n\r\n// Create axios instance with dynamic baseURL\r\nconst axiosInstance: AxiosInstance = axios.create();\r\n\r\n// Request interceptor to add authentication headers and dynamic baseURL\r\naxiosInstance.interceptors.request.use(\r\n (config) => {\r\n const sdkConfig = getConfig();\r\n \r\n // Set baseURL dynamically from config\r\n config.baseURL = sdkConfig.baseURL || 'https://api.cilantro.gg';\r\n \r\n // Add JWT token if available\r\n if (sdkConfig.jwt) {\r\n config.headers.Authorization = `Bearer ${sdkConfig.jwt}`;\r\n }\r\n \r\n // Add API key if available (for platform/user authentication)\r\n if (sdkConfig.apiKey) {\r\n config.headers['X-API-Key'] = sdkConfig.apiKey;\r\n }\r\n \r\n return config;\r\n },\r\n (error) => {\r\n return Promise.reject(error);\r\n }\r\n);\r\n\r\n/**\r\n * Custom instance wrapper for orval\r\n * @internal\r\n */\r\nexport const customInstance = <T>(\r\n config: AxiosRequestConfig,\r\n options?: AxiosRequestConfig,\r\n): Promise<T> => {\r\n const source = axios.CancelToken.source();\r\n const promise = axiosInstance({\r\n ...config,\r\n ...options,\r\n cancelToken: source.token,\r\n }).then(({ data }: AxiosResponse<T>) => data);\r\n\r\n // @ts-ignore\r\n promise.cancel = () => {\r\n source.cancel('Query was cancelled');\r\n };\r\n\r\n return promise;\r\n};\r\n\r\nexport default customInstance;\r\n", "/**\r\n * SDK Configuration Management\r\n * Centralized configuration for authentication and API settings\r\n */\r\n\r\n/**\r\n * SDK Configuration interface\r\n */\r\nexport interface SDKConfig {\r\n /** JWT token for authentication */\r\n jwt?: string;\r\n /** API key for authentication (alternative to JWT) */\r\n apiKey?: string;\r\n /** Base URL for the API (defaults to https://api.cilantro.gg) */\r\n baseURL?: string;\r\n}\r\n\r\n/**\r\n * Internal configuration state\r\n * Uses global variable to share state across bundled modules\r\n */\r\nconst GLOBAL_CONFIG_KEY = '__CILANTRO_SDK_CONFIG__';\r\n\r\n// Extend global types\r\ndeclare global {\r\n var __CILANTRO_SDK_CONFIG__: SDKConfig | undefined;\r\n}\r\n\r\n// Get or create global config\r\nfunction getGlobalConfig(): SDKConfig {\r\n const defaultConfig: SDKConfig = {\r\n baseURL: process.env.CILANTRO_API_URL || 'https://api.cilantro.gg',\r\n };\r\n \r\n if (typeof global !== 'undefined') {\r\n if (!global.__CILANTRO_SDK_CONFIG__) {\r\n global.__CILANTRO_SDK_CONFIG__ = defaultConfig;\r\n }\r\n return global.__CILANTRO_SDK_CONFIG__;\r\n } else if (typeof (globalThis as any).window !== 'undefined') {\r\n const win = (globalThis as any).window;\r\n if (!win[GLOBAL_CONFIG_KEY]) {\r\n win[GLOBAL_CONFIG_KEY] = defaultConfig;\r\n }\r\n return win[GLOBAL_CONFIG_KEY];\r\n }\r\n \r\n // Fallback for environments without global/window\r\n return defaultConfig;\r\n}\r\n\r\nlet currentConfig: SDKConfig = getGlobalConfig();\r\n\r\n/**\r\n * Configure the SDK with authentication credentials and settings\r\n * \r\n * @param config - Configuration options\r\n * @example\r\n * ```typescript\r\n * import { configure } from 'cilantro-smart-sdk';\r\n * \r\n * // Configure with API key\r\n * configure({ \r\n * apiKey: 'your-api-key',\r\n * baseURL: 'https://api.cilantro.gg' \r\n * });\r\n * \r\n * // Configure with JWT token\r\n * configure({ \r\n * jwt: 'your-jwt-token' \r\n * });\r\n * ```\r\n */\r\nexport function configure(config: SDKConfig): void {\r\n currentConfig = {\r\n ...currentConfig,\r\n ...config,\r\n };\r\n // Also update global config\r\n if (typeof global !== 'undefined') {\r\n global.__CILANTRO_SDK_CONFIG__ = currentConfig;\r\n } else if (typeof (globalThis as any).window !== 'undefined') {\r\n ((globalThis as any).window as any)[GLOBAL_CONFIG_KEY] = currentConfig;\r\n }\r\n}\r\n\r\n/**\r\n * Set or update authentication credentials\r\n * \r\n * @param auth - Authentication credentials (JWT and/or API key)\r\n * @example\r\n * ```typescript\r\n * import { setAuth } from 'cilantro-smart-sdk';\r\n * import { login } from 'cilantro-smart-sdk/auth';\r\n * \r\n * const result = await login({ \r\n * usernameOrEmail: 'user@example.com',\r\n * password: 'password123' \r\n * });\r\n * \r\n * setAuth({ jwt: result.data.jwt });\r\n * ```\r\n */\r\nexport function setAuth(auth: { jwt?: string; apiKey?: string }): void {\r\n // Refresh from global first\r\n currentConfig = getGlobalConfig();\r\n \r\n if (auth.jwt !== undefined) {\r\n currentConfig.jwt = auth.jwt;\r\n }\r\n if (auth.apiKey !== undefined) {\r\n currentConfig.apiKey = auth.apiKey;\r\n }\r\n \r\n // Update global config\r\n if (typeof global !== 'undefined') {\r\n global.__CILANTRO_SDK_CONFIG__ = currentConfig;\r\n } else if (typeof (globalThis as any).window !== 'undefined') {\r\n ((globalThis as any).window as any)[GLOBAL_CONFIG_KEY] = currentConfig;\r\n }\r\n}\r\n\r\n/**\r\n * Clear all authentication credentials\r\n * \r\n * @example\r\n * ```typescript\r\n * import { clearAuth } from 'cilantro-smart-sdk';\r\n * \r\n * clearAuth();\r\n * ```\r\n */\r\nexport function clearAuth(): void {\r\n currentConfig = getGlobalConfig();\r\n currentConfig.jwt = undefined;\r\n currentConfig.apiKey = undefined;\r\n \r\n // Update global config\r\n if (typeof global !== 'undefined') {\r\n global.__CILANTRO_SDK_CONFIG__ = currentConfig;\r\n } else if (typeof (globalThis as any).window !== 'undefined') {\r\n ((globalThis as any).window as any)[GLOBAL_CONFIG_KEY] = currentConfig;\r\n }\r\n}\r\n\r\n/**\r\n * Get current SDK configuration (internal use only)\r\n * @internal\r\n */\r\nexport function getConfig(): Readonly<SDKConfig> {\r\n // Always get fresh from global to ensure we have the latest config\r\n currentConfig = getGlobalConfig();\r\n return currentConfig;\r\n}\r\n", "/**\n * Generated by orval v7.17.0 \uD83C\uDF7A\n * Do not edit manually.\n * GUAC Smart API v2\n * API documentation for GUAC Smart API v2 - A Solana wallet management system\n * OpenAPI spec version: 2.0\n */\nimport type {\n AdminControllerFindAllParams,\n AdminControllerFindAllPlatformsParams,\n AdminControllerGetPlatformActivityTimelineParams,\n AdminControllerGetPlatformGrowthTrendsParams,\n AdminControllerGetPlatformsWithUsersParams,\n AdminControllerGetTopPlatformsParams,\n AdminControllerGetUsersWithWalletsParams,\n AdminControllerGetWalletAssetsParams,\n CreateAdminDto,\n UpdateAdminDto,\n UpdatePlatformDto,\n} from \"../../models\";\n\nimport { customInstance } from \"../../api-client\";\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\nexport const getAdmin = () => {\n /**\n * Create a new administrator account. No prior authentication required for initial admin creation.\n * @summary Register a new admin\n */\n const adminControllerCreate = (\n createAdminDto: CreateAdminDto,\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n {\n url: `/admin`,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\" },\n data: createAdminDto,\n },\n options,\n );\n };\n /**\n * Retrieve a paginated list of all administrators. Requires admin JWT token.\n * @summary Get all admins\n */\n const adminControllerFindAll = (\n params?: AdminControllerFindAllParams,\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin`, method: \"GET\", params },\n options,\n );\n };\n /**\n * Retrieve the authenticated admin's profile information. Requires admin JWT token.\n * @summary Get current admin profile\n */\n const adminControllerGetCurrentAdmin = (\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>({ url: `/admin/me`, method: \"GET\" }, options);\n };\n /**\n * Retrieve API keys for all platforms. Sensitive operation for key management. Requires admin JWT token.\n * @summary Get all platform API keys\n */\n const adminControllerGetAllApiKeys = (\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin/api-keys`, method: \"GET\" },\n options,\n );\n };\n /**\n * Retrieve the API key for a specific platform. Requires admin JWT token.\n * @summary Get specific platform API key\n */\n const adminControllerGetplatformApiKey = (\n platformId: string,\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin/api-keys/${platformId}`, method: \"GET\" },\n options,\n );\n };\n /**\n * Retrieve detailed information about a specific administrator. Requires admin JWT token.\n * @summary Get admin by ID\n */\n const adminControllerFindOne = (\n id: string,\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin/${id}`, method: \"GET\" },\n options,\n );\n };\n /**\n * Update administrator information such as username, email, or password. Requires admin JWT token.\n * @summary Update admin\n */\n const adminControllerUpdate = (\n id: string,\n updateAdminDto: UpdateAdminDto,\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n {\n url: `/admin/${id}`,\n method: \"PATCH\",\n headers: { \"Content-Type\": \"application/json\" },\n data: updateAdminDto,\n },\n options,\n );\n };\n /**\n * Permanently delete an administrator account. Cannot delete the last admin. Requires admin JWT token.\n * @summary Delete admin\n */\n const adminControllerRemove = (\n id: string,\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin/${id}`, method: \"DELETE\" },\n options,\n );\n };\n /**\n * Enable or disable an administrator account. Disabled admins cannot login. Requires admin JWT token.\n * @summary Toggle admin active status\n */\n const adminControllerToggleActive = (\n id: string,\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin/${id}/toggle-active`, method: \"PATCH\" },\n options,\n );\n };\n /**\n * Retrieve a paginated list of all platforms in the system. Requires admin JWT token.\n * @summary View all platforms\n */\n const adminControllerFindAllPlatforms = (\n params?: AdminControllerFindAllPlatformsParams,\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin/platforms/all`, method: \"GET\", params },\n options,\n );\n };\n /**\n * Retrieve detailed information about a specific platform including users and wallets count. Requires admin JWT token.\n * @summary View platform details\n */\n const adminControllerFindOnePlatform = (\n id: string,\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin/platforms/${id}`, method: \"GET\" },\n options,\n );\n };\n /**\n * Update platform information such as name, email, or settings. Requires admin JWT token.\n * @summary Update platform\n */\n const adminControllerUpdatePlatform = (\n id: string,\n updatePlatformDto: UpdatePlatformDto,\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n {\n url: `/admin/platforms/${id}`,\n method: \"PATCH\",\n headers: { \"Content-Type\": \"application/json\" },\n data: updatePlatformDto,\n },\n options,\n );\n };\n /**\n * Permanently delete a platform and all associated users, wallets, and data. This action cannot be undone. Requires admin JWT token.\n * @summary Delete platform\n */\n const adminControllerRemovePlatform = (\n id: string,\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin/platforms/${id}`, method: \"DELETE\" },\n options,\n );\n };\n /**\n * Retrieve all users in the system across all platforms. Admin has read-only access to user data. Requires admin JWT token.\n * @summary View all users (read-only)\n */\n const adminControllerFindAllUsers = (\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin/users/all`, method: \"GET\" },\n options,\n );\n };\n /**\n * Retrieve detailed information about a specific user including their wallets. Requires admin JWT token.\n * @summary View user details\n */\n const adminControllerFindOneUser = (\n id: string,\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin/users/${id}`, method: \"GET\" },\n options,\n );\n };\n /**\n * Retrieve all wallets in the system across all users and platforms. Admin has read-only access to wallet data. Requires admin JWT token.\n * @summary View all wallets (read-only)\n */\n const adminControllerFindAllWallets = (\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin/wallets/all`, method: \"GET\" },\n options,\n );\n };\n /**\n * Retrieve all wallets belonging to a specific user. Requires admin JWT token.\n * @summary View all wallets for a specific user (read-only)\n */\n const adminControllerFindWalletsByUserId = (\n userId: string,\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin/wallets/user/${userId}`, method: \"GET\" },\n options,\n );\n };\n /**\n * Retrieve detailed information about a specific wallet including balance and assets. Requires admin JWT token.\n * @summary View wallet details (read-only)\n */\n const adminControllerFindOneWallet = (\n id: string,\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin/wallets/${id}`, method: \"GET\" },\n options,\n );\n };\n /**\n * Retrieve high-level analytics including total platforms, users, wallets, and transaction volume. Requires admin JWT token.\n * @summary Get dashboard overview analytics\n */\n const adminControllerGetOverviewAnalytics = (\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin/analytics/overview`, method: \"GET\" },\n options,\n );\n };\n /**\n * Retrieve wallet-specific analytics including total balances, asset distribution, and activity metrics. Requires admin JWT token.\n * @summary Get wallet analytics and statistics\n */\n const adminControllerGetWalletAnalytics = (\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin/analytics/wallets`, method: \"GET\" },\n options,\n );\n };\n /**\n * Retrieve recent activity feed including new registrations, transactions, and system events. Requires admin JWT token.\n * @summary Get recent activity across all entities\n */\n const adminControllerGetRecentActivity = (\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin/analytics/recent-activity`, method: \"GET\" },\n options,\n );\n };\n /**\n * Generate a new API key for a platform, invalidating the old one. The platform will need to update their integration. Requires admin JWT token.\n * @summary Regenerate platform API key\n */\n const adminControllerRegenerateApiKey = (\n platformId: string,\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin/api-keys/${platformId}/regenerate`, method: \"POST\" },\n options,\n );\n };\n /**\n * Retrieve a paginated list of platforms with aggregated user counts for each. Useful for platform comparison. Requires admin JWT token.\n * @summary Get platforms with their user counts\n */\n const adminControllerGetPlatformsWithUsers = (\n params?: AdminControllerGetPlatformsWithUsersParams,\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin/data/platforms-with-users`, method: \"GET\", params },\n options,\n );\n };\n /**\n * Retrieve a paginated list of users with aggregated wallet counts and total balances. Useful for user analytics. Requires admin JWT token.\n * @summary Get users with their wallet counts and balances\n */\n const adminControllerGetUsersWithWallets = (\n params?: AdminControllerGetUsersWithWalletsParams,\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin/data/users-with-wallets`, method: \"GET\", params },\n options,\n );\n };\n /**\n * Retrieve a paginated list of all wallet assets with optional filtering by asset type (NFT, SPL_TOKEN, SOL). Requires admin JWT token.\n * @summary Get all wallet assets with filtering\n */\n const adminControllerGetWalletAssets = (\n params?: AdminControllerGetWalletAssetsParams,\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin/data/wallet-assets`, method: \"GET\", params },\n options,\n );\n };\n /**\n * Retrieve overall platform metrics including total platforms, active platforms, user counts, and averages. Requires admin JWT token.\n * @summary Get platform analytics overview\n */\n const adminControllerGetPlatformAnalytics = (\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin/analytics/platforms`, method: \"GET\" },\n options,\n );\n };\n /**\n * Retrieve usage metrics per platform including transaction counts, wallet counts, and user counts. Requires admin JWT token.\n * @summary Get platform usage metrics\n */\n const adminControllerGetPlatformUsageMetrics = (\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin/analytics/platforms/usage`, method: \"GET\" },\n options,\n );\n };\n /**\n * Retrieve growth trends showing new platform registrations over time (daily, weekly, or monthly). Requires admin JWT token.\n * @summary Get platform growth trends\n */\n const adminControllerGetPlatformGrowthTrends = (\n params?: AdminControllerGetPlatformGrowthTrendsParams,\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin/analytics/platforms/growth`, method: \"GET\", params },\n options,\n );\n };\n /**\n * Retrieve top platforms ranked by users, wallets, or transactions. Requires admin JWT token.\n * @summary Get top platforms\n */\n const adminControllerGetTopPlatforms = (\n params?: AdminControllerGetTopPlatformsParams,\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin/analytics/platforms/top`, method: \"GET\", params },\n options,\n );\n };\n /**\n * Retrieve activity timeline for a specific platform including users, wallets, and transactions. Requires admin JWT token.\n * @summary Get platform activity timeline\n */\n const adminControllerGetPlatformActivityTimeline = (\n id: string,\n params?: AdminControllerGetPlatformActivityTimelineParams,\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n {\n url: `/admin/analytics/platforms/${id}/activity`,\n method: \"GET\",\n params,\n },\n options,\n );\n };\n return {\n adminControllerCreate,\n adminControllerFindAll,\n adminControllerGetCurrentAdmin,\n adminControllerGetAllApiKeys,\n adminControllerGetplatformApiKey,\n adminControllerFindOne,\n adminControllerUpdate,\n adminControllerRemove,\n adminControllerToggleActive,\n adminControllerFindAllPlatforms,\n adminControllerFindOnePlatform,\n adminControllerUpdatePlatform,\n adminControllerRemovePlatform,\n adminControllerFindAllUsers,\n adminControllerFindOneUser,\n adminControllerFindAllWallets,\n adminControllerFindWalletsByUserId,\n adminControllerFindOneWallet,\n adminControllerGetOverviewAnalytics,\n adminControllerGetWalletAnalytics,\n adminControllerGetRecentActivity,\n adminControllerRegenerateApiKey,\n adminControllerGetPlatformsWithUsers,\n adminControllerGetUsersWithWallets,\n adminControllerGetWalletAssets,\n adminControllerGetPlatformAnalytics,\n adminControllerGetPlatformUsageMetrics,\n adminControllerGetPlatformGrowthTrends,\n adminControllerGetTopPlatforms,\n adminControllerGetPlatformActivityTimeline,\n };\n};\nexport type AdminControllerCreateResult = NonNullable<\n Awaited<ReturnType<ReturnType<typeof getAdmin>[\"adminControllerCreate\"]>>\n>;\nexport type AdminControllerFindAllResult = NonNullable<\n Awaited<ReturnType<ReturnType<typeof getAdmin>[\"adminControllerFindAll\"]>>\n>;\nexport type AdminControllerGetCurrentAdminResult = NonNullable<\n Awaited<\n ReturnType<ReturnType<typeof getAdmin>[\"adminControllerGetCurrentAdmin\"]>\n >\n>;\nexport type AdminControllerGetAllApiKeysResult = NonNullable<\n Awaited<\n ReturnType<ReturnType<typeof getAdmin>[\"adminControllerGetAllApiKeys\"]>\n >\n>;\nexport type AdminControllerGetplatformApiKeyResult = NonNullable<\n Awaited<\n ReturnType<ReturnType<typeof getAdmin>[\"adminControllerGetplatformApiKey\"]>\n >\n>;\nexport type AdminControllerFindOneResult = NonNullable<\n Awaited<ReturnType<ReturnType<typeof getAdmin>[\"adminControllerFindOne\"]>>\n>;\nexport type AdminControllerUpdateResult = NonNullable<\n Awaited<ReturnType<ReturnType<typeof getAdmin>[\"adminControllerUpdate\"]>>\n>;\nexport type AdminControllerRemoveResult = NonNullable<\n Awaited<ReturnType<ReturnType<typeof getAdmin>[\"adminControllerRemove\"]>>\n>;\nexport type AdminControllerToggleActiveResult = NonNullable<\n Awaited<\n ReturnType<ReturnType<typeof getAdmin>[\"adminControllerToggleActive\"]>\n >\n>;\nexport type AdminControllerFindAllPlatformsResult = NonNullable<\n Awaited<\n ReturnType<ReturnType<typeof getAdmin>[\"adminControllerFindAllPlatforms\"]>\n >\n>;\nexport type AdminControllerFindOnePlatformResult = NonNullable<\n Awaited<\n ReturnType<ReturnType<typeof getAdmin>[\"adminControllerFindOnePlatform\"]>\n >\n>;\nexport type AdminControllerUpdatePlatformResult = NonNullable<\n Awaited<\n ReturnType<ReturnType<typeof getAdmin>[\"adminControllerUpdatePlatform\"]>\n >\n>;\nexport type AdminControllerRemovePlatformResult = NonNullable<\n Awaited<\n ReturnType<ReturnType<typeof getAdmin>[\"adminControllerRemovePlatform\"]>\n >\n>;\nexport type AdminControllerFindAllUsersResult = NonNullable<\n Awaited<\n ReturnType<ReturnType<typeof getAdmin>[\"adminControllerFindAllUsers\"]>\n >\n>;\nexport type AdminControllerFindOneUserResult = NonNullable<\n Awaited<ReturnType<ReturnType<typeof getAdmin>[\"adminControllerFindOneUser\"]>>\n>;\nexport type AdminControllerFindAllWalletsResult = NonNullable<\n Awaited<\n ReturnType<ReturnType<typeof getAdmin>[\"adminControllerFindAllWallets\"]>\n >\n>;\nexport type AdminControllerFindWalletsByUserIdResult = NonNullable<\n Awaited<\n ReturnType<\n ReturnType<typeof getAdmin>[\"adminControllerFindWalletsByUserId\"]\n >\n >\n>;\nexport type AdminControllerFindOneWalletResult = NonNullable<\n Awaited<\n ReturnType<ReturnType<typeof getAdmin>[\"adminControllerFindOneWallet\"]>\n >\n>;\nexport type AdminControllerGetOverviewAnalyticsResult = NonNullable<\n Awaited<\n ReturnType<\n ReturnType<typeof getAdmin>[\"adminControllerGetOverviewAnalytics\"]\n >\n >\n>;\nexport type AdminControllerGetWalletAnalyticsResult = NonNullable<\n Awaited<\n ReturnType<ReturnType<typeof getAdmin>[\"adminControllerGetWalletAnalytics\"]>\n >\n>;\nexport type AdminControllerGetRecentActivityResult = NonNullable<\n Awaited<\n ReturnType<ReturnType<typeof getAdmin>[\"adminControllerGetRecentActivity\"]>\n >\n>;\nexport type AdminControllerRegenerateApiKeyResult = NonNullable<\n Awaited<\n ReturnType<ReturnType<typeof getAdmin>[\"adminControllerRegenerateApiKey\"]>\n >\n>;\nexport type AdminControllerGetPlatformsWithUsersResult = NonNullable<\n Awaited<\n ReturnType<\n ReturnType<typeof getAdmin>[\"adminControllerGetPlatformsWithUsers\"]\n >\n >\n>;\nexport type AdminControllerGetUsersWithWalletsResult = NonNullable<\n Awaited<\n ReturnType<\n ReturnType<typeof getAdmin>[\"adminControllerGetUsersWithWallets\"]\n >\n >\n>;\nexport type AdminControllerGetWalletAssetsResult = NonNullable<\n Awaited<\n ReturnType<ReturnType<typeof getAdmin>[\"adminControllerGetWalletAssets\"]>\n >\n>;\nexport type AdminControllerGetPlatformAnalyticsResult = NonNullable<\n Awaited<\n ReturnType<\n ReturnType<typeof getAdmin>[\"adminControllerGetPlatformAnalytics\"]\n >\n >\n>;\nexport type AdminControllerGetPlatformUsageMetricsResult = NonNullable<\n Awaited<\n ReturnType<\n ReturnType<typeof getAdmin>[\"adminControllerGetPlatformUsageMetrics\"]\n >\n >\n>;\nexport type AdminControllerGetPlatformGrowthTrendsResult = NonNullable<\n Awaited<\n ReturnType<\n ReturnType<typeof getAdmin>[\"adminControllerGetPlatformGrowthTrends\"]\n >\n >\n>;\nexport type AdminControllerGetTopPlatformsResult = NonNullable<\n Awaited<\n ReturnType<ReturnType<typeof getAdmin>[\"adminControllerGetTopPlatforms\"]>\n >\n>;\nexport type AdminControllerGetPlatformActivityTimelineResult = NonNullable<\n Awaited<\n ReturnType<\n ReturnType<typeof getAdmin>[\"adminControllerGetPlatformActivityTimeline\"]\n >\n >\n>;\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACMA,mBAAwE;;;ACexE,IAAM,oBAAoB;AAQ1B,SAAS,kBAA6B;AACpC,QAAM,gBAA2B;AAAA,IAC/B,SAAS,QAAQ,IAAI,oBAAoB;AAAA,EAC3C;AAEA,MAAI,OAAO,WAAW,aAAa;AACjC,QAAI,CAAC,OAAO,yBAAyB;AACnC,aAAO,0BAA0B;AAAA,IACnC;AACA,WAAO,OAAO;AAAA,EAChB,WAAW,OAAQ,WAAmB,WAAW,aAAa;AAC5D,UAAM,MAAO,WAAmB;AAChC,QAAI,CAAC,IAAI,iBAAiB,GAAG;AAC3B,UAAI,iBAAiB,IAAI;AAAA,IAC3B;AACA,WAAO,IAAI,iBAAiB;AAAA,EAC9B;AAGA,SAAO;AACT;AAEA,IAAI,gBAA2B,gBAAgB;AAkGxC,SAAS,YAAiC;AAE/C,kBAAgB,gBAAgB;AAChC,SAAO;AACT;;;AD/IA,IAAM,gBAA+B,aAAAA,QAAM,OAAO;AAGlD,cAAc,aAAa,QAAQ;AAAA,EACjC,CAAC,WAAW;AACV,UAAM,YAAY,UAAU;AAG5B,WAAO,UAAU,UAAU,WAAW;AAGtC,QAAI,UAAU,KAAK;AACjB,aAAO,QAAQ,gBAAgB,UAAU,UAAU,GAAG;AAAA,IAC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;AAAA,IACA,+BAAAC;AAAA,IACA,+BAAAC;AAAA,IACA,6BAAAC;AAAA,IACA,4BAAAC;AAAA,IACA,+BAAAC;AAAA,IACA,oCAAAC;AAAA,IACA,8BAAAC;AAAA,IACA,qCAAAC;AAAA,IACA,mCAAAC;AAAA,IACA,kCAAAC;AAAA,IACA,iCAAAC;AAAA,IACA,sCAAAC;AAAA,IACA,oCAAAC;AAAA,IACA,gCAAAC;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AACF;;;AHpcA,IAAM;AAAA,EACJ;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,IAAI,SAAS;AAGN,IAAM,SAAS;AACf,IAAM,UAAU;AAChB,IAAM,kBAAkB;AACxB,IAAM,gBAAgB;AACtB,IAAM,oBAAoB;AAC1B,IAAM,UAAU;AAChB,IAAM,SAAS;AACf,IAAM,SAAS;AACf,IAAM,eAAe;AACrB,IAAM,mBAAmB;AACzB,IAAM,kBAAkB;AACxB,IAAM,iBAAiB;AACvB,IAAM,iBAAiB;AACvB,IAAM,eAAe;AACrB,IAAM,cAAc;AACpB,IAAM,iBAAiB;AACvB,IAAM,sBAAsB;AAC5B,IAAM,gBAAgB;AACtB,IAAM,uBAAuB;AAC7B,IAAM,qBAAqB;AAC3B,IAAM,oBAAoB;AAC1B,IAAM,mBAAmB;AACzB,IAAM,wBAAwB;AAC9B,IAAM,sBAAsB;AAC5B,IAAM,kBAAkB;",
6
6
  "names": ["axios", "adminControllerCreate", "adminControllerFindAll", "adminControllerGetCurrentAdmin", "adminControllerGetAllApiKeys", "adminControllerGetplatformApiKey", "adminControllerFindOne", "adminControllerUpdate", "adminControllerRemove", "adminControllerToggleActive", "adminControllerFindAllPlatforms", "adminControllerFindOnePlatform", "adminControllerUpdatePlatform", "adminControllerRemovePlatform", "adminControllerFindAllUsers", "adminControllerFindOneUser", "adminControllerFindAllWallets", "adminControllerFindWalletsByUserId", "adminControllerFindOneWallet", "adminControllerGetOverviewAnalytics", "adminControllerGetWalletAnalytics", "adminControllerGetRecentActivity", "adminControllerRegenerateApiKey", "adminControllerGetPlatformsWithUsers", "adminControllerGetUsersWithWallets", "adminControllerGetWalletAssets"]
7
7
  }
package/dist/admin.mjs CHANGED
@@ -222,6 +222,40 @@ var getAdmin = () => {
222
222
  options
223
223
  );
224
224
  };
225
+ const adminControllerGetPlatformAnalytics = (options) => {
226
+ return customInstance(
227
+ { url: `/admin/analytics/platforms`, method: "GET" },
228
+ options
229
+ );
230
+ };
231
+ const adminControllerGetPlatformUsageMetrics = (options) => {
232
+ return customInstance(
233
+ { url: `/admin/analytics/platforms/usage`, method: "GET" },
234
+ options
235
+ );
236
+ };
237
+ const adminControllerGetPlatformGrowthTrends = (params, options) => {
238
+ return customInstance(
239
+ { url: `/admin/analytics/platforms/growth`, method: "GET", params },
240
+ options
241
+ );
242
+ };
243
+ const adminControllerGetTopPlatforms = (params, options) => {
244
+ return customInstance(
245
+ { url: `/admin/analytics/platforms/top`, method: "GET", params },
246
+ options
247
+ );
248
+ };
249
+ const adminControllerGetPlatformActivityTimeline = (id, params, options) => {
250
+ return customInstance(
251
+ {
252
+ url: `/admin/analytics/platforms/${id}/activity`,
253
+ method: "GET",
254
+ params
255
+ },
256
+ options
257
+ );
258
+ };
225
259
  return {
226
260
  adminControllerCreate: adminControllerCreate2,
227
261
  adminControllerFindAll: adminControllerFindAll2,
@@ -247,7 +281,12 @@ var getAdmin = () => {
247
281
  adminControllerRegenerateApiKey: adminControllerRegenerateApiKey2,
248
282
  adminControllerGetPlatformsWithUsers: adminControllerGetPlatformsWithUsers2,
249
283
  adminControllerGetUsersWithWallets: adminControllerGetUsersWithWallets2,
250
- adminControllerGetWalletAssets: adminControllerGetWalletAssets2
284
+ adminControllerGetWalletAssets: adminControllerGetWalletAssets2,
285
+ adminControllerGetPlatformAnalytics,
286
+ adminControllerGetPlatformUsageMetrics,
287
+ adminControllerGetPlatformGrowthTrends,
288
+ adminControllerGetTopPlatforms,
289
+ adminControllerGetPlatformActivityTimeline
251
290
  };
252
291
  };
253
292
 
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../src/api-client.ts", "../src/config.ts", "../src/api/admin/admin.ts", "../src/admin.ts"],
4
- "sourcesContent": ["/**\r\n * Custom API client instance for Cilantro Smart SDK\r\n * Handles authentication (JWT tokens and API keys) automatically\r\n * @internal\r\n */\r\n\r\nimport axios, { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios';\r\nimport { getConfig } from './config';\r\n\r\n// Create axios instance with dynamic baseURL\r\nconst axiosInstance: AxiosInstance = axios.create();\r\n\r\n// Request interceptor to add authentication headers and dynamic baseURL\r\naxiosInstance.interceptors.request.use(\r\n (config) => {\r\n const sdkConfig = getConfig();\r\n \r\n // Set baseURL dynamically from config\r\n config.baseURL = sdkConfig.baseURL || 'https://api.cilantro.gg';\r\n \r\n // Add JWT token if available\r\n if (sdkConfig.jwt) {\r\n config.headers.Authorization = `Bearer ${sdkConfig.jwt}`;\r\n }\r\n \r\n // Add API key if available (for platform/user authentication)\r\n if (sdkConfig.apiKey) {\r\n config.headers['X-API-Key'] = sdkConfig.apiKey;\r\n }\r\n \r\n return config;\r\n },\r\n (error) => {\r\n return Promise.reject(error);\r\n }\r\n);\r\n\r\n/**\r\n * Custom instance wrapper for orval\r\n * @internal\r\n */\r\nexport const customInstance = <T>(\r\n config: AxiosRequestConfig,\r\n options?: AxiosRequestConfig,\r\n): Promise<T> => {\r\n const source = axios.CancelToken.source();\r\n const promise = axiosInstance({\r\n ...config,\r\n ...options,\r\n cancelToken: source.token,\r\n }).then(({ data }: AxiosResponse<T>) => data);\r\n\r\n // @ts-ignore\r\n promise.cancel = () => {\r\n source.cancel('Query was cancelled');\r\n };\r\n\r\n return promise;\r\n};\r\n\r\nexport default customInstance;\r\n", "/**\r\n * SDK Configuration Management\r\n * Centralized configuration for authentication and API settings\r\n */\r\n\r\n/**\r\n * SDK Configuration interface\r\n */\r\nexport interface SDKConfig {\r\n /** JWT token for authentication */\r\n jwt?: string;\r\n /** API key for authentication (alternative to JWT) */\r\n apiKey?: string;\r\n /** Base URL for the API (defaults to https://api.cilantro.gg) */\r\n baseURL?: string;\r\n}\r\n\r\n/**\r\n * Internal configuration state\r\n * Uses global variable to share state across bundled modules\r\n */\r\nconst GLOBAL_CONFIG_KEY = '__CILANTRO_SDK_CONFIG__';\r\n\r\n// Extend global types\r\ndeclare global {\r\n var __CILANTRO_SDK_CONFIG__: SDKConfig | undefined;\r\n}\r\n\r\n// Get or create global config\r\nfunction getGlobalConfig(): SDKConfig {\r\n const defaultConfig: SDKConfig = {\r\n baseURL: process.env.CILANTRO_API_URL || 'https://api.cilantro.gg',\r\n };\r\n \r\n if (typeof global !== 'undefined') {\r\n if (!global.__CILANTRO_SDK_CONFIG__) {\r\n global.__CILANTRO_SDK_CONFIG__ = defaultConfig;\r\n }\r\n return global.__CILANTRO_SDK_CONFIG__;\r\n } else if (typeof (globalThis as any).window !== 'undefined') {\r\n const win = (globalThis as any).window;\r\n if (!win[GLOBAL_CONFIG_KEY]) {\r\n win[GLOBAL_CONFIG_KEY] = defaultConfig;\r\n }\r\n return win[GLOBAL_CONFIG_KEY];\r\n }\r\n \r\n // Fallback for environments without global/window\r\n return defaultConfig;\r\n}\r\n\r\nlet currentConfig: SDKConfig = getGlobalConfig();\r\n\r\n/**\r\n * Configure the SDK with authentication credentials and settings\r\n * \r\n * @param config - Configuration options\r\n * @example\r\n * ```typescript\r\n * import { configure } from 'cilantro-smart-sdk';\r\n * \r\n * // Configure with API key\r\n * configure({ \r\n * apiKey: 'your-api-key',\r\n * baseURL: 'https://api.cilantro.gg' \r\n * });\r\n * \r\n * // Configure with JWT token\r\n * configure({ \r\n * jwt: 'your-jwt-token' \r\n * });\r\n * ```\r\n */\r\nexport function configure(config: SDKConfig): void {\r\n currentConfig = {\r\n ...currentConfig,\r\n ...config,\r\n };\r\n // Also update global config\r\n if (typeof global !== 'undefined') {\r\n global.__CILANTRO_SDK_CONFIG__ = currentConfig;\r\n } else if (typeof (globalThis as any).window !== 'undefined') {\r\n ((globalThis as any).window as any)[GLOBAL_CONFIG_KEY] = currentConfig;\r\n }\r\n}\r\n\r\n/**\r\n * Set or update authentication credentials\r\n * \r\n * @param auth - Authentication credentials (JWT and/or API key)\r\n * @example\r\n * ```typescript\r\n * import { setAuth } from 'cilantro-smart-sdk';\r\n * import { login } from 'cilantro-smart-sdk/auth';\r\n * \r\n * const result = await login({ \r\n * usernameOrEmail: 'user@example.com',\r\n * password: 'password123' \r\n * });\r\n * \r\n * setAuth({ jwt: result.data.jwt });\r\n * ```\r\n */\r\nexport function setAuth(auth: { jwt?: string; apiKey?: string }): void {\r\n // Refresh from global first\r\n currentConfig = getGlobalConfig();\r\n \r\n if (auth.jwt !== undefined) {\r\n currentConfig.jwt = auth.jwt;\r\n }\r\n if (auth.apiKey !== undefined) {\r\n currentConfig.apiKey = auth.apiKey;\r\n }\r\n \r\n // Update global config\r\n if (typeof global !== 'undefined') {\r\n global.__CILANTRO_SDK_CONFIG__ = currentConfig;\r\n } else if (typeof (globalThis as any).window !== 'undefined') {\r\n ((globalThis as any).window as any)[GLOBAL_CONFIG_KEY] = currentConfig;\r\n }\r\n}\r\n\r\n/**\r\n * Clear all authentication credentials\r\n * \r\n * @example\r\n * ```typescript\r\n * import { clearAuth } from 'cilantro-smart-sdk';\r\n * \r\n * clearAuth();\r\n * ```\r\n */\r\nexport function clearAuth(): void {\r\n currentConfig = getGlobalConfig();\r\n currentConfig.jwt = undefined;\r\n currentConfig.apiKey = undefined;\r\n \r\n // Update global config\r\n if (typeof global !== 'undefined') {\r\n global.__CILANTRO_SDK_CONFIG__ = currentConfig;\r\n } else if (typeof (globalThis as any).window !== 'undefined') {\r\n ((globalThis as any).window as any)[GLOBAL_CONFIG_KEY] = currentConfig;\r\n }\r\n}\r\n\r\n/**\r\n * Get current SDK configuration (internal use only)\r\n * @internal\r\n */\r\nexport function getConfig(): Readonly<SDKConfig> {\r\n // Always get fresh from global to ensure we have the latest config\r\n currentConfig = getGlobalConfig();\r\n return currentConfig;\r\n}\r\n", "/**\n * Generated by orval v7.17.0 \uD83C\uDF7A\n * Do not edit manually.\n * GUAC Smart API v2\n * API documentation for GUAC Smart API v2 - A Solana wallet management system\n * OpenAPI spec version: 2.0\n */\nimport type {\n AdminControllerFindAllParams,\n AdminControllerFindAllPlatformsParams,\n AdminControllerGetPlatformsWithUsersParams,\n AdminControllerGetUsersWithWalletsParams,\n AdminControllerGetWalletAssetsParams,\n CreateAdminDto,\n UpdateAdminDto,\n UpdatePlatformDto,\n} from \"../../models\";\n\nimport { customInstance } from \"../../api-client\";\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\nexport const getAdmin = () => {\n /**\n * Create a new administrator account. No prior authentication required for initial admin creation.\n * @summary Register a new admin\n */\n const adminControllerCreate = (\n createAdminDto: CreateAdminDto,\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n {\n url: `/admin`,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\" },\n data: createAdminDto,\n },\n options,\n );\n };\n /**\n * Retrieve a paginated list of all administrators. Requires admin JWT token.\n * @summary Get all admins\n */\n const adminControllerFindAll = (\n params?: AdminControllerFindAllParams,\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin`, method: \"GET\", params },\n options,\n );\n };\n /**\n * Retrieve the authenticated admin's profile information. Requires admin JWT token.\n * @summary Get current admin profile\n */\n const adminControllerGetCurrentAdmin = (\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>({ url: `/admin/me`, method: \"GET\" }, options);\n };\n /**\n * Retrieve API keys for all platforms. Sensitive operation for key management. Requires admin JWT token.\n * @summary Get all platform API keys\n */\n const adminControllerGetAllApiKeys = (\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin/api-keys`, method: \"GET\" },\n options,\n );\n };\n /**\n * Retrieve the API key for a specific platform. Requires admin JWT token.\n * @summary Get specific platform API key\n */\n const adminControllerGetplatformApiKey = (\n platformId: string,\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin/api-keys/${platformId}`, method: \"GET\" },\n options,\n );\n };\n /**\n * Retrieve detailed information about a specific administrator. Requires admin JWT token.\n * @summary Get admin by ID\n */\n const adminControllerFindOne = (\n id: string,\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin/${id}`, method: \"GET\" },\n options,\n );\n };\n /**\n * Update administrator information such as username, email, or password. Requires admin JWT token.\n * @summary Update admin\n */\n const adminControllerUpdate = (\n id: string,\n updateAdminDto: UpdateAdminDto,\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n {\n url: `/admin/${id}`,\n method: \"PATCH\",\n headers: { \"Content-Type\": \"application/json\" },\n data: updateAdminDto,\n },\n options,\n );\n };\n /**\n * Permanently delete an administrator account. Cannot delete the last admin. Requires admin JWT token.\n * @summary Delete admin\n */\n const adminControllerRemove = (\n id: string,\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin/${id}`, method: \"DELETE\" },\n options,\n );\n };\n /**\n * Enable or disable an administrator account. Disabled admins cannot login. Requires admin JWT token.\n * @summary Toggle admin active status\n */\n const adminControllerToggleActive = (\n id: string,\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin/${id}/toggle-active`, method: \"PATCH\" },\n options,\n );\n };\n /**\n * Retrieve a paginated list of all platforms in the system. Requires admin JWT token.\n * @summary View all platforms\n */\n const adminControllerFindAllPlatforms = (\n params?: AdminControllerFindAllPlatformsParams,\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin/platforms/all`, method: \"GET\", params },\n options,\n );\n };\n /**\n * Retrieve detailed information about a specific platform including users and wallets count. Requires admin JWT token.\n * @summary View platform details\n */\n const adminControllerFindOnePlatform = (\n id: string,\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin/platforms/${id}`, method: \"GET\" },\n options,\n );\n };\n /**\n * Update platform information such as name, email, or settings. Requires admin JWT token.\n * @summary Update platform\n */\n const adminControllerUpdatePlatform = (\n id: string,\n updatePlatformDto: UpdatePlatformDto,\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n {\n url: `/admin/platforms/${id}`,\n method: \"PATCH\",\n headers: { \"Content-Type\": \"application/json\" },\n data: updatePlatformDto,\n },\n options,\n );\n };\n /**\n * Permanently delete a platform and all associated users, wallets, and data. This action cannot be undone. Requires admin JWT token.\n * @summary Delete platform\n */\n const adminControllerRemovePlatform = (\n id: string,\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin/platforms/${id}`, method: \"DELETE\" },\n options,\n );\n };\n /**\n * Retrieve all users in the system across all platforms. Admin has read-only access to user data. Requires admin JWT token.\n * @summary View all users (read-only)\n */\n const adminControllerFindAllUsers = (\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin/users/all`, method: \"GET\" },\n options,\n );\n };\n /**\n * Retrieve detailed information about a specific user including their wallets. Requires admin JWT token.\n * @summary View user details\n */\n const adminControllerFindOneUser = (\n id: string,\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin/users/${id}`, method: \"GET\" },\n options,\n );\n };\n /**\n * Retrieve all wallets in the system across all users and platforms. Admin has read-only access to wallet data. Requires admin JWT token.\n * @summary View all wallets (read-only)\n */\n const adminControllerFindAllWallets = (\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin/wallets/all`, method: \"GET\" },\n options,\n );\n };\n /**\n * Retrieve all wallets belonging to a specific user. Requires admin JWT token.\n * @summary View all wallets for a specific user (read-only)\n */\n const adminControllerFindWalletsByUserId = (\n userId: string,\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin/wallets/user/${userId}`, method: \"GET\" },\n options,\n );\n };\n /**\n * Retrieve detailed information about a specific wallet including balance and assets. Requires admin JWT token.\n * @summary View wallet details (read-only)\n */\n const adminControllerFindOneWallet = (\n id: string,\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin/wallets/${id}`, method: \"GET\" },\n options,\n );\n };\n /**\n * Retrieve high-level analytics including total platforms, users, wallets, and transaction volume. Requires admin JWT token.\n * @summary Get dashboard overview analytics\n */\n const adminControllerGetOverviewAnalytics = (\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin/analytics/overview`, method: \"GET\" },\n options,\n );\n };\n /**\n * Retrieve wallet-specific analytics including total balances, asset distribution, and activity metrics. Requires admin JWT token.\n * @summary Get wallet analytics and statistics\n */\n const adminControllerGetWalletAnalytics = (\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin/analytics/wallets`, method: \"GET\" },\n options,\n );\n };\n /**\n * Retrieve recent activity feed including new registrations, transactions, and system events. Requires admin JWT token.\n * @summary Get recent activity across all entities\n */\n const adminControllerGetRecentActivity = (\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin/analytics/recent-activity`, method: \"GET\" },\n options,\n );\n };\n /**\n * Generate a new API key for a platform, invalidating the old one. The platform will need to update their integration. Requires admin JWT token.\n * @summary Regenerate platform API key\n */\n const adminControllerRegenerateApiKey = (\n platformId: string,\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin/api-keys/${platformId}/regenerate`, method: \"POST\" },\n options,\n );\n };\n /**\n * Retrieve a paginated list of platforms with aggregated user counts for each. Useful for platform comparison. Requires admin JWT token.\n * @summary Get platforms with their user counts\n */\n const adminControllerGetPlatformsWithUsers = (\n params?: AdminControllerGetPlatformsWithUsersParams,\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin/data/platforms-with-users`, method: \"GET\", params },\n options,\n );\n };\n /**\n * Retrieve a paginated list of users with aggregated wallet counts and total balances. Useful for user analytics. Requires admin JWT token.\n * @summary Get users with their wallet counts and balances\n */\n const adminControllerGetUsersWithWallets = (\n params?: AdminControllerGetUsersWithWalletsParams,\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin/data/users-with-wallets`, method: \"GET\", params },\n options,\n );\n };\n /**\n * Retrieve a paginated list of all wallet assets with optional filtering by asset type (NFT, SPL_TOKEN, SOL). Requires admin JWT token.\n * @summary Get all wallet assets with filtering\n */\n const adminControllerGetWalletAssets = (\n params?: AdminControllerGetWalletAssetsParams,\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin/data/wallet-assets`, method: \"GET\", params },\n options,\n );\n };\n return {\n adminControllerCreate,\n adminControllerFindAll,\n adminControllerGetCurrentAdmin,\n adminControllerGetAllApiKeys,\n adminControllerGetplatformApiKey,\n adminControllerFindOne,\n adminControllerUpdate,\n adminControllerRemove,\n adminControllerToggleActive,\n adminControllerFindAllPlatforms,\n adminControllerFindOnePlatform,\n adminControllerUpdatePlatform,\n adminControllerRemovePlatform,\n adminControllerFindAllUsers,\n adminControllerFindOneUser,\n adminControllerFindAllWallets,\n adminControllerFindWalletsByUserId,\n adminControllerFindOneWallet,\n adminControllerGetOverviewAnalytics,\n adminControllerGetWalletAnalytics,\n adminControllerGetRecentActivity,\n adminControllerRegenerateApiKey,\n adminControllerGetPlatformsWithUsers,\n adminControllerGetUsersWithWallets,\n adminControllerGetWalletAssets,\n };\n};\nexport type AdminControllerCreateResult = NonNullable<\n Awaited<ReturnType<ReturnType<typeof getAdmin>[\"adminControllerCreate\"]>>\n>;\nexport type AdminControllerFindAllResult = NonNullable<\n Awaited<ReturnType<ReturnType<typeof getAdmin>[\"adminControllerFindAll\"]>>\n>;\nexport type AdminControllerGetCurrentAdminResult = NonNullable<\n Awaited<\n ReturnType<ReturnType<typeof getAdmin>[\"adminControllerGetCurrentAdmin\"]>\n >\n>;\nexport type AdminControllerGetAllApiKeysResult = NonNullable<\n Awaited<\n ReturnType<ReturnType<typeof getAdmin>[\"adminControllerGetAllApiKeys\"]>\n >\n>;\nexport type AdminControllerGetplatformApiKeyResult = NonNullable<\n Awaited<\n ReturnType<ReturnType<typeof getAdmin>[\"adminControllerGetplatformApiKey\"]>\n >\n>;\nexport type AdminControllerFindOneResult = NonNullable<\n Awaited<ReturnType<ReturnType<typeof getAdmin>[\"adminControllerFindOne\"]>>\n>;\nexport type AdminControllerUpdateResult = NonNullable<\n Awaited<ReturnType<ReturnType<typeof getAdmin>[\"adminControllerUpdate\"]>>\n>;\nexport type AdminControllerRemoveResult = NonNullable<\n Awaited<ReturnType<ReturnType<typeof getAdmin>[\"adminControllerRemove\"]>>\n>;\nexport type AdminControllerToggleActiveResult = NonNullable<\n Awaited<\n ReturnType<ReturnType<typeof getAdmin>[\"adminControllerToggleActive\"]>\n >\n>;\nexport type AdminControllerFindAllPlatformsResult = NonNullable<\n Awaited<\n ReturnType<ReturnType<typeof getAdmin>[\"adminControllerFindAllPlatforms\"]>\n >\n>;\nexport type AdminControllerFindOnePlatformResult = NonNullable<\n Awaited<\n ReturnType<ReturnType<typeof getAdmin>[\"adminControllerFindOnePlatform\"]>\n >\n>;\nexport type AdminControllerUpdatePlatformResult = NonNullable<\n Awaited<\n ReturnType<ReturnType<typeof getAdmin>[\"adminControllerUpdatePlatform\"]>\n >\n>;\nexport type AdminControllerRemovePlatformResult = NonNullable<\n Awaited<\n ReturnType<ReturnType<typeof getAdmin>[\"adminControllerRemovePlatform\"]>\n >\n>;\nexport type AdminControllerFindAllUsersResult = NonNullable<\n Awaited<\n ReturnType<ReturnType<typeof getAdmin>[\"adminControllerFindAllUsers\"]>\n >\n>;\nexport type AdminControllerFindOneUserResult = NonNullable<\n Awaited<ReturnType<ReturnType<typeof getAdmin>[\"adminControllerFindOneUser\"]>>\n>;\nexport type AdminControllerFindAllWalletsResult = NonNullable<\n Awaited<\n ReturnType<ReturnType<typeof getAdmin>[\"adminControllerFindAllWallets\"]>\n >\n>;\nexport type AdminControllerFindWalletsByUserIdResult = NonNullable<\n Awaited<\n ReturnType<\n ReturnType<typeof getAdmin>[\"adminControllerFindWalletsByUserId\"]\n >\n >\n>;\nexport type AdminControllerFindOneWalletResult = NonNullable<\n Awaited<\n ReturnType<ReturnType<typeof getAdmin>[\"adminControllerFindOneWallet\"]>\n >\n>;\nexport type AdminControllerGetOverviewAnalyticsResult = NonNullable<\n Awaited<\n ReturnType<\n ReturnType<typeof getAdmin>[\"adminControllerGetOverviewAnalytics\"]\n >\n >\n>;\nexport type AdminControllerGetWalletAnalyticsResult = NonNullable<\n Awaited<\n ReturnType<ReturnType<typeof getAdmin>[\"adminControllerGetWalletAnalytics\"]>\n >\n>;\nexport type AdminControllerGetRecentActivityResult = NonNullable<\n Awaited<\n ReturnType<ReturnType<typeof getAdmin>[\"adminControllerGetRecentActivity\"]>\n >\n>;\nexport type AdminControllerRegenerateApiKeyResult = NonNullable<\n Awaited<\n ReturnType<ReturnType<typeof getAdmin>[\"adminControllerRegenerateApiKey\"]>\n >\n>;\nexport type AdminControllerGetPlatformsWithUsersResult = NonNullable<\n Awaited<\n ReturnType<\n ReturnType<typeof getAdmin>[\"adminControllerGetPlatformsWithUsers\"]\n >\n >\n>;\nexport type AdminControllerGetUsersWithWalletsResult = NonNullable<\n Awaited<\n ReturnType<\n ReturnType<typeof getAdmin>[\"adminControllerGetUsersWithWallets\"]\n >\n >\n>;\nexport type AdminControllerGetWalletAssetsResult = NonNullable<\n Awaited<\n ReturnType<ReturnType<typeof getAdmin>[\"adminControllerGetWalletAssets\"]>\n >\n>;\n", "/**\r\n * Admin module - Simplified exports for admin-related API functions\r\n */\r\n\r\nimport { getAdmin } from './api/admin/admin';\r\n\r\nconst {\r\n adminControllerCreate,\r\n adminControllerFindAll,\r\n adminControllerGetCurrentAdmin,\r\n adminControllerGetAllApiKeys,\r\n adminControllerGetplatformApiKey,\r\n adminControllerFindOne,\r\n adminControllerUpdate,\r\n adminControllerRemove,\r\n adminControllerToggleActive,\r\n adminControllerFindAllPlatforms,\r\n adminControllerFindOnePlatform,\r\n adminControllerUpdatePlatform,\r\n adminControllerRemovePlatform,\r\n adminControllerFindAllUsers,\r\n adminControllerFindOneUser,\r\n adminControllerFindAllWallets,\r\n adminControllerFindWalletsByUserId,\r\n adminControllerFindOneWallet,\r\n adminControllerGetOverviewAnalytics,\r\n adminControllerGetWalletAnalytics,\r\n adminControllerGetRecentActivity,\r\n adminControllerRegenerateApiKey,\r\n adminControllerGetPlatformsWithUsers,\r\n adminControllerGetUsersWithWallets,\r\n adminControllerGetWalletAssets,\r\n} = getAdmin();\r\n\r\n// Export admin functions with simplified names\r\nexport const create = adminControllerCreate;\r\nexport const findAll = adminControllerFindAll;\r\nexport const getCurrentAdmin = adminControllerGetCurrentAdmin;\r\nexport const getAllApiKeys = adminControllerGetAllApiKeys;\r\nexport const getPlatformApiKey = adminControllerGetplatformApiKey;\r\nexport const findOne = adminControllerFindOne;\r\nexport const update = adminControllerUpdate;\r\nexport const remove = adminControllerRemove;\r\nexport const toggleActive = adminControllerToggleActive;\r\nexport const findAllPlatforms = adminControllerFindAllPlatforms;\r\nexport const findOnePlatform = adminControllerFindOnePlatform;\r\nexport const updatePlatform = adminControllerUpdatePlatform;\r\nexport const removePlatform = adminControllerRemovePlatform;\r\nexport const findAllUsers = adminControllerFindAllUsers;\r\nexport const findOneUser = adminControllerFindOneUser;\r\nexport const findAllWallets = adminControllerFindAllWallets;\r\nexport const findWalletsByUserId = adminControllerFindWalletsByUserId;\r\nexport const findOneWallet = adminControllerFindOneWallet;\r\nexport const getOverviewAnalytics = adminControllerGetOverviewAnalytics;\r\nexport const getWalletAnalytics = adminControllerGetWalletAnalytics;\r\nexport const getRecentActivity = adminControllerGetRecentActivity;\r\nexport const regenerateApiKey = adminControllerRegenerateApiKey;\r\nexport const getPlatformsWithUsers = adminControllerGetPlatformsWithUsers;\r\nexport const getUsersWithWallets = adminControllerGetUsersWithWallets;\r\nexport const getWalletAssets = adminControllerGetWalletAssets;\r\n\r\n// Export types\r\nexport type {\r\n AdminControllerCreateResult,\r\n AdminControllerFindAllResult,\r\n AdminControllerGetCurrentAdminResult,\r\n AdminControllerGetAllApiKeysResult,\r\n AdminControllerGetplatformApiKeyResult,\r\n AdminControllerFindOneResult,\r\n AdminControllerUpdateResult,\r\n AdminControllerRemoveResult,\r\n AdminControllerToggleActiveResult,\r\n AdminControllerFindAllPlatformsResult,\r\n AdminControllerFindOnePlatformResult,\r\n AdminControllerUpdatePlatformResult,\r\n AdminControllerRemovePlatformResult,\r\n AdminControllerFindAllUsersResult,\r\n AdminControllerFindOneUserResult,\r\n AdminControllerFindAllWalletsResult,\r\n AdminControllerFindWalletsByUserIdResult,\r\n AdminControllerFindOneWalletResult,\r\n AdminControllerGetOverviewAnalyticsResult,\r\n AdminControllerGetWalletAnalyticsResult,\r\n AdminControllerGetRecentActivityResult,\r\n AdminControllerRegenerateApiKeyResult,\r\n AdminControllerGetPlatformsWithUsersResult,\r\n AdminControllerGetUsersWithWalletsResult,\r\n AdminControllerGetWalletAssetsResult,\r\n} from './api/admin/admin';\r\n\r\nexport type {\r\n CreateAdminDto,\r\n UpdateAdminDto,\r\n AdminControllerFindAllParams,\r\n AdminControllerFindAllPlatformsParams,\r\n AdminControllerGetPlatformsWithUsersParams,\r\n AdminControllerGetUsersWithWalletsParams,\r\n AdminControllerGetWalletAssetsParams,\r\n UpdatePlatformDto,\r\n} from './models';\r\n\r\n"],
5
- "mappings": ";AAMA,OAAO,WAAiE;;;ACexE,IAAM,oBAAoB;AAQ1B,SAAS,kBAA6B;AACpC,QAAM,gBAA2B;AAAA,IAC/B,SAAS,QAAQ,IAAI,oBAAoB;AAAA,EAC3C;AAEA,MAAI,OAAO,WAAW,aAAa;AACjC,QAAI,CAAC,OAAO,yBAAyB;AACnC,aAAO,0BAA0B;AAAA,IACnC;AACA,WAAO,OAAO;AAAA,EAChB,WAAW,OAAQ,WAAmB,WAAW,aAAa;AAC5D,UAAM,MAAO,WAAmB;AAChC,QAAI,CAAC,IAAI,iBAAiB,GAAG;AAC3B,UAAI,iBAAiB,IAAI;AAAA,IAC3B;AACA,WAAO,IAAI,iBAAiB;AAAA,EAC9B;AAGA,SAAO;AACT;AAEA,IAAI,gBAA2B,gBAAgB;AAkGxC,SAAS,YAAiC;AAE/C,kBAAgB,gBAAgB;AAChC,SAAO;AACT;;;AD/IA,IAAM,gBAA+B,MAAM,OAAO;AAGlD,cAAc,aAAa,QAAQ;AAAA,EACjC,CAAC,WAAW;AACV,UAAM,YAAY,UAAU;AAG5B,WAAO,UAAU,UAAU,WAAW;AAGtC,QAAI,UAAU,KAAK;AACjB,aAAO,QAAQ,gBAAgB,UAAU,UAAU,GAAG;AAAA,IACxD;AAGA,QAAI,UAAU,QAAQ;AACpB,aAAO,QAAQ,WAAW,IAAI,UAAU;AAAA,IAC1C;AAEA,WAAO;AAAA,EACT;AAAA,EACA,CAAC,UAAU;AACT,WAAO,QAAQ,OAAO,KAAK;AAAA,EAC7B;AACF;AAMO,IAAM,iBAAiB,CAC5B,QACA,YACe;AACf,QAAM,SAAS,MAAM,YAAY,OAAO;AACxC,QAAM,UAAU,cAAc;AAAA,IAC5B,GAAG;AAAA,IACH,GAAG;AAAA,IACH,aAAa,OAAO;AAAA,EACtB,C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AACzB,IAAM,wBAAwB;AAC9B,IAAM,sBAAsB;AAC5B,IAAM,kBAAkB;",
4
+ "sourcesContent": ["/**\r\n * Custom API client instance for Cilantro Smart SDK\r\n * Handles authentication (JWT tokens and API keys) automatically\r\n * @internal\r\n */\r\n\r\nimport axios, { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios';\r\nimport { getConfig } from './config';\r\n\r\n// Create axios instance with dynamic baseURL\r\nconst axiosInstance: AxiosInstance = axios.create();\r\n\r\n// Request interceptor to add authentication headers and dynamic baseURL\r\naxiosInstance.interceptors.request.use(\r\n (config) => {\r\n const sdkConfig = getConfig();\r\n \r\n // Set baseURL dynamically from config\r\n config.baseURL = sdkConfig.baseURL || 'https://api.cilantro.gg';\r\n \r\n // Add JWT token if available\r\n if (sdkConfig.jwt) {\r\n config.headers.Authorization = `Bearer ${sdkConfig.jwt}`;\r\n }\r\n \r\n // Add API key if available (for platform/user authentication)\r\n if (sdkConfig.apiKey) {\r\n config.headers['X-API-Key'] = sdkConfig.apiKey;\r\n }\r\n \r\n return config;\r\n },\r\n (error) => {\r\n return Promise.reject(error);\r\n }\r\n);\r\n\r\n/**\r\n * Custom instance wrapper for orval\r\n * @internal\r\n */\r\nexport const customInstance = <T>(\r\n config: AxiosRequestConfig,\r\n options?: AxiosRequestConfig,\r\n): Promise<T> => {\r\n const source = axios.CancelToken.source();\r\n const promise = axiosInstance({\r\n ...config,\r\n ...options,\r\n cancelToken: source.token,\r\n }).then(({ data }: AxiosResponse<T>) => data);\r\n\r\n // @ts-ignore\r\n promise.cancel = () => {\r\n source.cancel('Query was cancelled');\r\n };\r\n\r\n return promise;\r\n};\r\n\r\nexport default customInstance;\r\n", "/**\r\n * SDK Configuration Management\r\n * Centralized configuration for authentication and API settings\r\n */\r\n\r\n/**\r\n * SDK Configuration interface\r\n */\r\nexport interface SDKConfig {\r\n /** JWT token for authentication */\r\n jwt?: string;\r\n /** API key for authentication (alternative to JWT) */\r\n apiKey?: string;\r\n /** Base URL for the API (defaults to https://api.cilantro.gg) */\r\n baseURL?: string;\r\n}\r\n\r\n/**\r\n * Internal configuration state\r\n * Uses global variable to share state across bundled modules\r\n */\r\nconst GLOBAL_CONFIG_KEY = '__CILANTRO_SDK_CONFIG__';\r\n\r\n// Extend global types\r\ndeclare global {\r\n var __CILANTRO_SDK_CONFIG__: SDKConfig | undefined;\r\n}\r\n\r\n// Get or create global config\r\nfunction getGlobalConfig(): SDKConfig {\r\n const defaultConfig: SDKConfig = {\r\n baseURL: process.env.CILANTRO_API_URL || 'https://api.cilantro.gg',\r\n };\r\n \r\n if (typeof global !== 'undefined') {\r\n if (!global.__CILANTRO_SDK_CONFIG__) {\r\n global.__CILANTRO_SDK_CONFIG__ = defaultConfig;\r\n }\r\n return global.__CILANTRO_SDK_CONFIG__;\r\n } else if (typeof (globalThis as any).window !== 'undefined') {\r\n const win = (globalThis as any).window;\r\n if (!win[GLOBAL_CONFIG_KEY]) {\r\n win[GLOBAL_CONFIG_KEY] = defaultConfig;\r\n }\r\n return win[GLOBAL_CONFIG_KEY];\r\n }\r\n \r\n // Fallback for environments without global/window\r\n return defaultConfig;\r\n}\r\n\r\nlet currentConfig: SDKConfig = getGlobalConfig();\r\n\r\n/**\r\n * Configure the SDK with authentication credentials and settings\r\n * \r\n * @param config - Configuration options\r\n * @example\r\n * ```typescript\r\n * import { configure } from 'cilantro-smart-sdk';\r\n * \r\n * // Configure with API key\r\n * configure({ \r\n * apiKey: 'your-api-key',\r\n * baseURL: 'https://api.cilantro.gg' \r\n * });\r\n * \r\n * // Configure with JWT token\r\n * configure({ \r\n * jwt: 'your-jwt-token' \r\n * });\r\n * ```\r\n */\r\nexport function configure(config: SDKConfig): void {\r\n currentConfig = {\r\n ...currentConfig,\r\n ...config,\r\n };\r\n // Also update global config\r\n if (typeof global !== 'undefined') {\r\n global.__CILANTRO_SDK_CONFIG__ = currentConfig;\r\n } else if (typeof (globalThis as any).window !== 'undefined') {\r\n ((globalThis as any).window as any)[GLOBAL_CONFIG_KEY] = currentConfig;\r\n }\r\n}\r\n\r\n/**\r\n * Set or update authentication credentials\r\n * \r\n * @param auth - Authentication credentials (JWT and/or API key)\r\n * @example\r\n * ```typescript\r\n * import { setAuth } from 'cilantro-smart-sdk';\r\n * import { login } from 'cilantro-smart-sdk/auth';\r\n * \r\n * const result = await login({ \r\n * usernameOrEmail: 'user@example.com',\r\n * password: 'password123' \r\n * });\r\n * \r\n * setAuth({ jwt: result.data.jwt });\r\n * ```\r\n */\r\nexport function setAuth(auth: { jwt?: string; apiKey?: string }): void {\r\n // Refresh from global first\r\n currentConfig = getGlobalConfig();\r\n \r\n if (auth.jwt !== undefined) {\r\n currentConfig.jwt = auth.jwt;\r\n }\r\n if (auth.apiKey !== undefined) {\r\n currentConfig.apiKey = auth.apiKey;\r\n }\r\n \r\n // Update global config\r\n if (typeof global !== 'undefined') {\r\n global.__CILANTRO_SDK_CONFIG__ = currentConfig;\r\n } else if (typeof (globalThis as any).window !== 'undefined') {\r\n ((globalThis as any).window as any)[GLOBAL_CONFIG_KEY] = currentConfig;\r\n }\r\n}\r\n\r\n/**\r\n * Clear all authentication credentials\r\n * \r\n * @example\r\n * ```typescript\r\n * import { clearAuth } from 'cilantro-smart-sdk';\r\n * \r\n * clearAuth();\r\n * ```\r\n */\r\nexport function clearAuth(): void {\r\n currentConfig = getGlobalConfig();\r\n currentConfig.jwt = undefined;\r\n currentConfig.apiKey = undefined;\r\n \r\n // Update global config\r\n if (typeof global !== 'undefined') {\r\n global.__CILANTRO_SDK_CONFIG__ = currentConfig;\r\n } else if (typeof (globalThis as any).window !== 'undefined') {\r\n ((globalThis as any).window as any)[GLOBAL_CONFIG_KEY] = currentConfig;\r\n }\r\n}\r\n\r\n/**\r\n * Get current SDK configuration (internal use only)\r\n * @internal\r\n */\r\nexport function getConfig(): Readonly<SDKConfig> {\r\n // Always get fresh from global to ensure we have the latest config\r\n currentConfig = getGlobalConfig();\r\n return currentConfig;\r\n}\r\n", "/**\n * Generated by orval v7.17.0 \uD83C\uDF7A\n * Do not edit manually.\n * GUAC Smart API v2\n * API documentation for GUAC Smart API v2 - A Solana wallet management system\n * OpenAPI spec version: 2.0\n */\nimport type {\n AdminControllerFindAllParams,\n AdminControllerFindAllPlatformsParams,\n AdminControllerGetPlatformActivityTimelineParams,\n AdminControllerGetPlatformGrowthTrendsParams,\n AdminControllerGetPlatformsWithUsersParams,\n AdminControllerGetTopPlatformsParams,\n AdminControllerGetUsersWithWalletsParams,\n AdminControllerGetWalletAssetsParams,\n CreateAdminDto,\n UpdateAdminDto,\n UpdatePlatformDto,\n} from \"../../models\";\n\nimport { customInstance } from \"../../api-client\";\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\nexport const getAdmin = () => {\n /**\n * Create a new administrator account. No prior authentication required for initial admin creation.\n * @summary Register a new admin\n */\n const adminControllerCreate = (\n createAdminDto: CreateAdminDto,\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n {\n url: `/admin`,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\" },\n data: createAdminDto,\n },\n options,\n );\n };\n /**\n * Retrieve a paginated list of all administrators. Requires admin JWT token.\n * @summary Get all admins\n */\n const adminControllerFindAll = (\n params?: AdminControllerFindAllParams,\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin`, method: \"GET\", params },\n options,\n );\n };\n /**\n * Retrieve the authenticated admin's profile information. Requires admin JWT token.\n * @summary Get current admin profile\n */\n const adminControllerGetCurrentAdmin = (\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>({ url: `/admin/me`, method: \"GET\" }, options);\n };\n /**\n * Retrieve API keys for all platforms. Sensitive operation for key management. Requires admin JWT token.\n * @summary Get all platform API keys\n */\n const adminControllerGetAllApiKeys = (\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin/api-keys`, method: \"GET\" },\n options,\n );\n };\n /**\n * Retrieve the API key for a specific platform. Requires admin JWT token.\n * @summary Get specific platform API key\n */\n const adminControllerGetplatformApiKey = (\n platformId: string,\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin/api-keys/${platformId}`, method: \"GET\" },\n options,\n );\n };\n /**\n * Retrieve detailed information about a specific administrator. Requires admin JWT token.\n * @summary Get admin by ID\n */\n const adminControllerFindOne = (\n id: string,\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin/${id}`, method: \"GET\" },\n options,\n );\n };\n /**\n * Update administrator information such as username, email, or password. Requires admin JWT token.\n * @summary Update admin\n */\n const adminControllerUpdate = (\n id: string,\n updateAdminDto: UpdateAdminDto,\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n {\n url: `/admin/${id}`,\n method: \"PATCH\",\n headers: { \"Content-Type\": \"application/json\" },\n data: updateAdminDto,\n },\n options,\n );\n };\n /**\n * Permanently delete an administrator account. Cannot delete the last admin. Requires admin JWT token.\n * @summary Delete admin\n */\n const adminControllerRemove = (\n id: string,\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin/${id}`, method: \"DELETE\" },\n options,\n );\n };\n /**\n * Enable or disable an administrator account. Disabled admins cannot login. Requires admin JWT token.\n * @summary Toggle admin active status\n */\n const adminControllerToggleActive = (\n id: string,\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin/${id}/toggle-active`, method: \"PATCH\" },\n options,\n );\n };\n /**\n * Retrieve a paginated list of all platforms in the system. Requires admin JWT token.\n * @summary View all platforms\n */\n const adminControllerFindAllPlatforms = (\n params?: AdminControllerFindAllPlatformsParams,\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin/platforms/all`, method: \"GET\", params },\n options,\n );\n };\n /**\n * Retrieve detailed information about a specific platform including users and wallets count. Requires admin JWT token.\n * @summary View platform details\n */\n const adminControllerFindOnePlatform = (\n id: string,\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin/platforms/${id}`, method: \"GET\" },\n options,\n );\n };\n /**\n * Update platform information such as name, email, or settings. Requires admin JWT token.\n * @summary Update platform\n */\n const adminControllerUpdatePlatform = (\n id: string,\n updatePlatformDto: UpdatePlatformDto,\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n {\n url: `/admin/platforms/${id}`,\n method: \"PATCH\",\n headers: { \"Content-Type\": \"application/json\" },\n data: updatePlatformDto,\n },\n options,\n );\n };\n /**\n * Permanently delete a platform and all associated users, wallets, and data. This action cannot be undone. Requires admin JWT token.\n * @summary Delete platform\n */\n const adminControllerRemovePlatform = (\n id: string,\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin/platforms/${id}`, method: \"DELETE\" },\n options,\n );\n };\n /**\n * Retrieve all users in the system across all platforms. Admin has read-only access to user data. Requires admin JWT token.\n * @summary View all users (read-only)\n */\n const adminControllerFindAllUsers = (\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin/users/all`, method: \"GET\" },\n options,\n );\n };\n /**\n * Retrieve detailed information about a specific user including their wallets. Requires admin JWT token.\n * @summary View user details\n */\n const adminControllerFindOneUser = (\n id: string,\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin/users/${id}`, method: \"GET\" },\n options,\n );\n };\n /**\n * Retrieve all wallets in the system across all users and platforms. Admin has read-only access to wallet data. Requires admin JWT token.\n * @summary View all wallets (read-only)\n */\n const adminControllerFindAllWallets = (\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin/wallets/all`, method: \"GET\" },\n options,\n );\n };\n /**\n * Retrieve all wallets belonging to a specific user. Requires admin JWT token.\n * @summary View all wallets for a specific user (read-only)\n */\n const adminControllerFindWalletsByUserId = (\n userId: string,\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin/wallets/user/${userId}`, method: \"GET\" },\n options,\n );\n };\n /**\n * Retrieve detailed information about a specific wallet including balance and assets. Requires admin JWT token.\n * @summary View wallet details (read-only)\n */\n const adminControllerFindOneWallet = (\n id: string,\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin/wallets/${id}`, method: \"GET\" },\n options,\n );\n };\n /**\n * Retrieve high-level analytics including total platforms, users, wallets, and transaction volume. Requires admin JWT token.\n * @summary Get dashboard overview analytics\n */\n const adminControllerGetOverviewAnalytics = (\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin/analytics/overview`, method: \"GET\" },\n options,\n );\n };\n /**\n * Retrieve wallet-specific analytics including total balances, asset distribution, and activity metrics. Requires admin JWT token.\n * @summary Get wallet analytics and statistics\n */\n const adminControllerGetWalletAnalytics = (\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin/analytics/wallets`, method: \"GET\" },\n options,\n );\n };\n /**\n * Retrieve recent activity feed including new registrations, transactions, and system events. Requires admin JWT token.\n * @summary Get recent activity across all entities\n */\n const adminControllerGetRecentActivity = (\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin/analytics/recent-activity`, method: \"GET\" },\n options,\n );\n };\n /**\n * Generate a new API key for a platform, invalidating the old one. The platform will need to update their integration. Requires admin JWT token.\n * @summary Regenerate platform API key\n */\n const adminControllerRegenerateApiKey = (\n platformId: string,\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin/api-keys/${platformId}/regenerate`, method: \"POST\" },\n options,\n );\n };\n /**\n * Retrieve a paginated list of platforms with aggregated user counts for each. Useful for platform comparison. Requires admin JWT token.\n * @summary Get platforms with their user counts\n */\n const adminControllerGetPlatformsWithUsers = (\n params?: AdminControllerGetPlatformsWithUsersParams,\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin/data/platforms-with-users`, method: \"GET\", params },\n options,\n );\n };\n /**\n * Retrieve a paginated list of users with aggregated wallet counts and total balances. Useful for user analytics. Requires admin JWT token.\n * @summary Get users with their wallet counts and balances\n */\n const adminControllerGetUsersWithWallets = (\n params?: AdminControllerGetUsersWithWalletsParams,\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin/data/users-with-wallets`, method: \"GET\", params },\n options,\n );\n };\n /**\n * Retrieve a paginated list of all wallet assets with optional filtering by asset type (NFT, SPL_TOKEN, SOL). Requires admin JWT token.\n * @summary Get all wallet assets with filtering\n */\n const adminControllerGetWalletAssets = (\n params?: AdminControllerGetWalletAssetsParams,\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin/data/wallet-assets`, method: \"GET\", params },\n options,\n );\n };\n /**\n * Retrieve overall platform metrics including total platforms, active platforms, user counts, and averages. Requires admin JWT token.\n * @summary Get platform analytics overview\n */\n const adminControllerGetPlatformAnalytics = (\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin/analytics/platforms`, method: \"GET\" },\n options,\n );\n };\n /**\n * Retrieve usage metrics per platform including transaction counts, wallet counts, and user counts. Requires admin JWT token.\n * @summary Get platform usage metrics\n */\n const adminControllerGetPlatformUsageMetrics = (\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin/analytics/platforms/usage`, method: \"GET\" },\n options,\n );\n };\n /**\n * Retrieve growth trends showing new platform registrations over time (daily, weekly, or monthly). Requires admin JWT token.\n * @summary Get platform growth trends\n */\n const adminControllerGetPlatformGrowthTrends = (\n params?: AdminControllerGetPlatformGrowthTrendsParams,\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin/analytics/platforms/growth`, method: \"GET\", params },\n options,\n );\n };\n /**\n * Retrieve top platforms ranked by users, wallets, or transactions. Requires admin JWT token.\n * @summary Get top platforms\n */\n const adminControllerGetTopPlatforms = (\n params?: AdminControllerGetTopPlatformsParams,\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n { url: `/admin/analytics/platforms/top`, method: \"GET\", params },\n options,\n );\n };\n /**\n * Retrieve activity timeline for a specific platform including users, wallets, and transactions. Requires admin JWT token.\n * @summary Get platform activity timeline\n */\n const adminControllerGetPlatformActivityTimeline = (\n id: string,\n params?: AdminControllerGetPlatformActivityTimelineParams,\n options?: SecondParameter<typeof customInstance<void>>,\n ) => {\n return customInstance<void>(\n {\n url: `/admin/analytics/platforms/${id}/activity`,\n method: \"GET\",\n params,\n },\n options,\n );\n };\n return {\n adminControllerCreate,\n adminControllerFindAll,\n adminControllerGetCurrentAdmin,\n adminControllerGetAllApiKeys,\n adminControllerGetplatformApiKey,\n adminControllerFindOne,\n adminControllerUpdate,\n adminControllerRemove,\n adminControllerToggleActive,\n adminControllerFindAllPlatforms,\n adminControllerFindOnePlatform,\n adminControllerUpdatePlatform,\n adminControllerRemovePlatform,\n adminControllerFindAllUsers,\n adminControllerFindOneUser,\n adminControllerFindAllWallets,\n adminControllerFindWalletsByUserId,\n adminControllerFindOneWallet,\n adminControllerGetOverviewAnalytics,\n adminControllerGetWalletAnalytics,\n adminControllerGetRecentActivity,\n adminControllerRegenerateApiKey,\n adminControllerGetPlatformsWithUsers,\n adminControllerGetUsersWithWallets,\n adminControllerGetWalletAssets,\n adminControllerGetPlatformAnalytics,\n adminControllerGetPlatformUsageMetrics,\n adminControllerGetPlatformGrowthTrends,\n adminControllerGetTopPlatforms,\n adminControllerGetPlatformActivityTimeline,\n };\n};\nexport type AdminControllerCreateResult = NonNullable<\n Awaited<ReturnType<ReturnType<typeof getAdmin>[\"adminControllerCreate\"]>>\n>;\nexport type AdminControllerFindAllResult = NonNullable<\n Awaited<ReturnType<ReturnType<typeof getAdmin>[\"adminControllerFindAll\"]>>\n>;\nexport type AdminControllerGetCurrentAdminResult = NonNullable<\n Awaited<\n ReturnType<ReturnType<typeof getAdmin>[\"adminControllerGetCurrentAdmin\"]>\n >\n>;\nexport type AdminControllerGetAllApiKeysResult = NonNullable<\n Awaited<\n ReturnType<ReturnType<typeof getAdmin>[\"adminControllerGetAllApiKeys\"]>\n >\n>;\nexport type AdminControllerGetplatformApiKeyResult = NonNullable<\n Awaited<\n ReturnType<ReturnType<typeof getAdmin>[\"adminControllerGetplatformApiKey\"]>\n >\n>;\nexport type AdminControllerFindOneResult = NonNullable<\n Awaited<ReturnType<ReturnType<typeof getAdmin>[\"adminControllerFindOne\"]>>\n>;\nexport type AdminControllerUpdateResult = NonNullable<\n Awaited<ReturnType<ReturnType<typeof getAdmin>[\"adminControllerUpdate\"]>>\n>;\nexport type AdminControllerRemoveResult = NonNullable<\n Awaited<ReturnType<ReturnType<typeof getAdmin>[\"adminControllerRemove\"]>>\n>;\nexport type AdminControllerToggleActiveResult = NonNullable<\n Awaited<\n ReturnType<ReturnType<typeof getAdmin>[\"adminControllerToggleActive\"]>\n >\n>;\nexport type AdminControllerFindAllPlatformsResult = NonNullable<\n Awaited<\n ReturnType<ReturnType<typeof getAdmin>[\"adminControllerFindAllPlatforms\"]>\n >\n>;\nexport type AdminControllerFindOnePlatformResult = NonNullable<\n Awaited<\n ReturnType<ReturnType<typeof getAdmin>[\"adminControllerFindOnePlatform\"]>\n >\n>;\nexport type AdminControllerUpdatePlatformResult = NonNullable<\n Awaited<\n ReturnType<ReturnType<typeof getAdmin>[\"adminControllerUpdatePlatform\"]>\n >\n>;\nexport type AdminControllerRemovePlatformResult = NonNullable<\n Awaited<\n ReturnType<ReturnType<typeof getAdmin>[\"adminControllerRemovePlatform\"]>\n >\n>;\nexport type AdminControllerFindAllUsersResult = NonNullable<\n Awaited<\n ReturnType<ReturnType<typeof getAdmin>[\"adminControllerFindAllUsers\"]>\n >\n>;\nexport type AdminControllerFindOneUserResult = NonNullable<\n Awaited<ReturnType<ReturnType<typeof getAdmin>[\"adminControllerFindOneUser\"]>>\n>;\nexport type AdminControllerFindAllWalletsResult = NonNullable<\n Awaited<\n ReturnType<ReturnType<typeof getAdmin>[\"adminControllerFindAllWallets\"]>\n >\n>;\nexport type AdminControllerFindWalletsByUserIdResult = NonNullable<\n Awaited<\n ReturnType<\n ReturnType<typeof getAdmin>[\"adminControllerFindWalletsByUserId\"]\n >\n >\n>;\nexport type AdminControllerFindOneWalletResult = NonNullable<\n Awaited<\n ReturnType<ReturnType<typeof getAdmin>[\"adminControllerFindOneWallet\"]>\n >\n>;\nexport type AdminControllerGetOverviewAnalyticsResult = NonNullable<\n Awaited<\n ReturnType<\n ReturnType<typeof getAdmin>[\"adminControllerGetOverviewAnalytics\"]\n >\n >\n>;\nexport type AdminControllerGetWalletAnalyticsResult = NonNullable<\n Awaited<\n ReturnType<ReturnType<typeof getAdmin>[\"adminControllerGetWalletAnalytics\"]>\n >\n>;\nexport type AdminControllerGetRecentActivityResult = NonNullable<\n Awaited<\n ReturnType<ReturnType<typeof getAdmin>[\"adminControllerGetRecentActivity\"]>\n >\n>;\nexport type AdminControllerRegenerateApiKeyResult = NonNullable<\n Awaited<\n ReturnType<ReturnType<typeof getAdmin>[\"adminControllerRegenerateApiKey\"]>\n >\n>;\nexport type AdminControllerGetPlatformsWithUsersResult = NonNullable<\n Awaited<\n ReturnType<\n ReturnType<typeof getAdmin>[\"adminControllerGetPlatformsWithUsers\"]\n >\n >\n>;\nexport type AdminControllerGetUsersWithWalletsResult = NonNullable<\n Awaited<\n ReturnType<\n ReturnType<typeof getAdmin>[\"adminControllerGetUsersWithWallets\"]\n >\n >\n>;\nexport type AdminControllerGetWalletAssetsResult = NonNullable<\n Awaited<\n ReturnType<ReturnType<typeof getAdmin>[\"adminControllerGetWalletAssets\"]>\n >\n>;\nexport type AdminControllerGetPlatformAnalyticsResult = NonNullable<\n Awaited<\n ReturnType<\n ReturnType<typeof getAdmin>[\"adminControllerGetPlatformAnalytics\"]\n >\n >\n>;\nexport type AdminControllerGetPlatformUsageMetricsResult = NonNullable<\n Awaited<\n ReturnType<\n ReturnType<typeof getAdmin>[\"adminControllerGetPlatformUsageMetrics\"]\n >\n >\n>;\nexport type AdminControllerGetPlatformGrowthTrendsResult = NonNullable<\n Awaited<\n ReturnType<\n ReturnType<typeof getAdmin>[\"adminControllerGetPlatformGrowthTrends\"]\n >\n >\n>;\nexport type AdminControllerGetTopPlatformsResult = NonNullable<\n Awaited<\n ReturnType<ReturnType<typeof getAdmin>[\"adminControllerGetTopPlatforms\"]>\n >\n>;\nexport type AdminControllerGetPlatformActivityTimelineResult = NonNullable<\n Awaited<\n ReturnType<\n ReturnType<typeof getAdmin>[\"adminControllerGetPlatformActivityTimeline\"]\n >\n >\n>;\n", "/**\r\n * Admin module - Simplified exports for admin-related API functions\r\n */\r\n\r\nimport { getAdmin } from './api/admin/admin';\r\n\r\nconst {\r\n adminControllerCreate,\r\n adminControllerFindAll,\r\n adminControllerGetCurrentAdmin,\r\n adminControllerGetAllApiKeys,\r\n adminControllerGetplatformApiKey,\r\n adminControllerFindOne,\r\n adminControllerUpdate,\r\n adminControllerRemove,\r\n adminControllerToggleActive,\r\n adminControllerFindAllPlatforms,\r\n adminControllerFindOnePlatform,\r\n adminControllerUpdatePlatform,\r\n adminControllerRemovePlatform,\r\n adminControllerFindAllUsers,\r\n adminControllerFindOneUser,\r\n adminControllerFindAllWallets,\r\n adminControllerFindWalletsByUserId,\r\n adminControllerFindOneWallet,\r\n adminControllerGetOverviewAnalytics,\r\n adminControllerGetWalletAnalytics,\r\n adminControllerGetRecentActivity,\r\n adminControllerRegenerateApiKey,\r\n adminControllerGetPlatformsWithUsers,\r\n adminControllerGetUsersWithWallets,\r\n adminControllerGetWalletAssets,\r\n} = getAdmin();\r\n\r\n// Export admin functions with simplified names\r\nexport const create = adminControllerCreate;\r\nexport const findAll = adminControllerFindAll;\r\nexport const getCurrentAdmin = adminControllerGetCurrentAdmin;\r\nexport const getAllApiKeys = adminControllerGetAllApiKeys;\r\nexport const getPlatformApiKey = adminControllerGetplatformApiKey;\r\nexport const findOne = adminControllerFindOne;\r\nexport const update = adminControllerUpdate;\r\nexport const remove = adminControllerRemove;\r\nexport const toggleActive = adminControllerToggleActive;\r\nexport const findAllPlatforms = adminControllerFindAllPlatforms;\r\nexport const findOnePlatform = adminControllerFindOnePlatform;\r\nexport const updatePlatform = adminControllerUpdatePlatform;\r\nexport const removePlatform = adminControllerRemovePlatform;\r\nexport const findAllUsers = adminControllerFindAllUsers;\r\nexport const findOneUser = adminControllerFindOneUser;\r\nexport const findAllWallets = adminControllerFindAllWallets;\r\nexport const findWalletsByUserId = adminControllerFindWalletsByUserId;\r\nexport const findOneWallet = adminControllerFindOneWallet;\r\nexport const getOverviewAnalytics = adminControllerGetOverviewAnalytics;\r\nexport const getWalletAnalytics = adminControllerGetWalletAnalytics;\r\nexport const getRecentActivity = adminControllerGetRecentActivity;\r\nexport const regenerateApiKey = adminControllerRegenerateApiKey;\r\nexport const getPlatformsWithUsers = adminControllerGetPlatformsWithUsers;\r\nexport const getUsersWithWallets = adminControllerGetUsersWithWallets;\r\nexport const getWalletAssets = adminControllerGetWalletAssets;\r\n\r\n// Export types\r\nexport type {\r\n AdminControllerCreateResult,\r\n AdminControllerFindAllResult,\r\n AdminControllerGetCurrentAdminResult,\r\n AdminControllerGetAllApiKeysResult,\r\n AdminControllerGetplatformApiKeyResult,\r\n AdminControllerFindOneResult,\r\n AdminControllerUpdateResult,\r\n AdminControllerRemoveResult,\r\n AdminControllerToggleActiveResult,\r\n AdminControllerFindAllPlatformsResult,\r\n AdminControllerFindOnePlatformResult,\r\n AdminControllerUpdatePlatformResult,\r\n AdminControllerRemovePlatformResult,\r\n AdminControllerFindAllUsersResult,\r\n AdminControllerFindOneUserResult,\r\n AdminControllerFindAllWalletsResult,\r\n AdminControllerFindWalletsByUserIdResult,\r\n AdminControllerFindOneWalletResult,\r\n AdminControllerGetOverviewAnalyticsResult,\r\n AdminControllerGetWalletAnalyticsResult,\r\n AdminControllerGetRecentActivityResult,\r\n AdminControllerRegenerateApiKeyResult,\r\n AdminControllerGetPlatformsWithUsersResult,\r\n AdminControllerGetUsersWithWalletsResult,\r\n AdminControllerGetWalletAssetsResult,\r\n} from './api/admin/admin';\r\n\r\nexport type {\r\n CreateAdminDto,\r\n UpdateAdminDto,\r\n AdminControllerFindAllParams,\r\n AdminControllerFindAllPlatformsParams,\r\n AdminControllerGetPlatformsWithUsersParams,\r\n AdminControllerGetUsersWithWalletsParams,\r\n AdminControllerGetWalletAssetsParams,\r\n UpdatePlatformDto,\r\n} from './models';\r\n\r\n"],
5
+ "mappings": ";AAMA,OAAO,WAAiE;;;ACexE,IAAM,oBAAoB;AAQ1B,SAAS,kBAA6B;AACpC,QAAM,gBAA2B;AAAA,IAC/B,SAAS,QAAQ,IAAI,oBAAoB;AAAA,EAC3C;AAEA,MAAI,OAAO,WAAW,aAAa;AACjC,QAAI,CAAC,OAAO,yBAAyB;AACnC,aAAO,0BAA0B;AAAA,IACnC;AACA,WAAO,OAAO;AAAA,EAChB,WAAW,OAAQ,WAAmB,WAAW,aAAa;AAC5D,UAAM,MAAO,WAAmB;AAChC,QAAI,CAAC,IAAI,iBAAiB,GAAG;AAC3B,UAAI,iBAAiB,IAAI;AAAA,IAC3B;AACA,WAAO,IAAI,iBAAiB;AAAA,EAC9B;AAGA,SAAO;AACT;AAEA,IAAI,gBAA2B,gBAAgB;AAkGxC,SAAS,YAAiC;AAE/C,kBAAgB,gBAAgB;AAChC,SAAO;AACT;;;AD/IA,IAAM,gBAA+B,MAAM,OAAO;AAGlD,cAAc,aAAa,QAAQ;AAAA,EACjC,CAAC,WAAW;AACV,UAAM,YAAY,UAAU;AAG5B,WAAO,UAAU,UAAU,WAAW;AAGtC,QAAI,UAAU,KAAK;AACjB,aAAO,QAAQ,gBAAgB,UAAU,UAAU,GAAG;AAAA,IAC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IACA,+BAAAC;AAAA,IACA,+BAAAC;AAAA,IACA,6BAAAC;AAAA,IACA,4BAAAC;AAAA,IACA,+BAAAC;AAAA,IACA,oCAAAC;AAAA,IACA,8BAAAC;AAAA,IACA,qCAAAC;AAAA,IACA,mCAAAC;AAAA,IACA,kCAAAC;AAAA,IACA,iCAAAC;AAAA,IACA,sCAAAC;AAAA,IACA,oCAAAC;AAAA,IACA,gCAAAC;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AACF;;;ACpcA,IAAM;AAAA,EACJ;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,IAAI,SAAS;AAGN,IAAM,SAAS;AACf,IAAM,UAAU;AAChB,IAAM,kBAAkB;AACxB,IAAM,gBAAgB;AACtB,IAAM,oBAAoB;AAC1B,IAAM,UAAU;AAChB,IAAM,SAAS;AACf,IAAM,SAAS;AACf,IAAM,eAAe;AACrB,IAAM,mBAAmB;AACzB,IAAM,kBAAkB;AACxB,IAAM,iBAAiB;AACvB,IAAM,iBAAiB;AACvB,IAAM,eAAe;AACrB,IAAM,cAAc;AACpB,IAAM,iBAAiB;AACvB,IAAM,sBAAsB;AAC5B,IAAM,gBAAgB;AACtB,IAAM,uBAAuB;AAC7B,IAAM,qBAAqB;AAC3B,IAAM,oBAAoB;AAC1B,IAAM,mBAAmB;AACzB,IAAM,wBAAwB;AAC9B,IAAM,sBAAsB;AAC5B,IAAM,kBAAkB;",
6
6
  "names": ["adminControllerCreate", "adminControllerFindAll", "adminControllerGetCurrentAdmin", "adminControllerGetAllApiKeys", "adminControllerGetplatformApiKey", "adminControllerFindOne", "adminControllerUpdate", "adminControllerRemove", "adminControllerToggleActive", "adminControllerFindAllPlatforms", "adminControllerFindOnePlatform", "adminControllerUpdatePlatform", "adminControllerRemovePlatform", "adminControllerFindAllUsers", "adminControllerFindOneUser", "adminControllerFindAllWallets", "adminControllerFindWalletsByUserId", "adminControllerFindOneWallet", "adminControllerGetOverviewAnalytics", "adminControllerGetWalletAnalytics", "adminControllerGetRecentActivity", "adminControllerRegenerateApiKey", "adminControllerGetPlatformsWithUsers", "adminControllerGetUsersWithWallets", "adminControllerGetWalletAssets"]
7
7
  }