@iblai/iblai-api 4.57.2-ai → 4.57.3-ai

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -110,7 +110,7 @@ class CancelablePromise {
110
110
 
111
111
  const OpenAPI = {
112
112
  BASE: 'https://base.manager.iblai.app',
113
- VERSION: '4.57.2-ai-plus',
113
+ VERSION: '4.57.3-ai-plus',
114
114
  WITH_CREDENTIALS: false,
115
115
  CREDENTIALS: 'include',
116
116
  TOKEN: undefined,
@@ -6366,23 +6366,23 @@ class AiAnalyticsService {
6366
6366
  *
6367
6367
  * **Basic Weekly Costs:**
6368
6368
  * ```
6369
- * GET /api/v2/analytics/financial/?metric=weekly_costs&comparison_days=10
6369
+ * GET /api/analytics/financial/?metric=weekly_costs&comparison_days=10
6370
6370
  * ```
6371
6371
  *
6372
6372
  * **Platform & Mentor Filtered:**
6373
6373
  * ```
6374
6374
  * # Get total costs for a specific platform and mentor
6375
- * GET /api/v2/analytics/financial/?metric=total_costs&platform_key=web-app&mentor_unique_id=mentor-123&comparison_days=14
6375
+ * GET /api/analytics/financial/?metric=total_costs&platform_key=web-app&mentor_unique_id=mentor-123&comparison_days=14
6376
6376
  * ```
6377
6377
  *
6378
6378
  * **Monthly Costs by Provider:**
6379
6379
  * ```
6380
- * GET /api/v2/analytics/financial/?metric=monthly_costs&provider=openai&granularity=month&comparison_days=30
6380
+ * GET /api/analytics/financial/?metric=monthly_costs&provider=openai&granularity=month&comparison_days=30
6381
6381
  * ```
6382
6382
  *
6383
6383
  * **Daily Costs for Specific User:**
6384
6384
  * ```
6385
- * GET /api/v2/analytics/financial/?metric=total_costs&username=user-456&granularity=day&start_date=2025-01-15&end_date=2025-01-21&comparison_days=7
6385
+ * GET /api/analytics/financial/?metric=total_costs&username=user-456&granularity=day&start_date=2025-01-15&end_date=2025-01-21&comparison_days=7
6386
6386
  * ```
6387
6387
  *
6388
6388
  *
@@ -6508,9 +6508,9 @@ class AiAnalyticsService {
6508
6508
  * "total_pages": 1,
6509
6509
  * "total_records": 3,
6510
6510
  * "rows": [
6511
- * {"provider": "openai", "total_cost": 2.5},
6512
- * {"provider": "anthropic", "total_cost": 1.0},
6513
- * {"provider": "azure", "total_cost": 0.5}
6511
+ * {"provider": "openai", "total_cost": "2.50000"},
6512
+ * {"provider": "anthropic", "total_cost": "1.00000"},
6513
+ * {"provider": "azure", "total_cost": "0.50000"}
6514
6514
  * ],
6515
6515
  * "metrics": [
6516
6516
  * {
@@ -6519,7 +6519,7 @@ class AiAnalyticsService {
6519
6519
  * "description": "Cost for this entity in period"
6520
6520
  * }
6521
6521
  * ],
6522
- * "total_cost": 4.0 // optional grand-total when available
6522
+ * "total_cost": "4.00000" // optional grand-total when available
6523
6523
  * }
6524
6524
  * ``
6525
6525
  * @returns FinanceDetailsResponse
@@ -23774,23 +23774,23 @@ class AnalyticsService {
23774
23774
  *
23775
23775
  * **Basic Weekly Costs:**
23776
23776
  * ```
23777
- * GET /api/v2/analytics/financial/?metric=weekly_costs&comparison_days=10
23777
+ * GET /api/analytics/financial/?metric=weekly_costs&comparison_days=10
23778
23778
  * ```
23779
23779
  *
23780
23780
  * **Platform & Mentor Filtered:**
23781
23781
  * ```
23782
23782
  * # Get total costs for a specific platform and mentor
23783
- * GET /api/v2/analytics/financial/?metric=total_costs&platform_key=web-app&mentor_unique_id=mentor-123&comparison_days=14
23783
+ * GET /api/analytics/financial/?metric=total_costs&platform_key=web-app&mentor_unique_id=mentor-123&comparison_days=14
23784
23784
  * ```
23785
23785
  *
23786
23786
  * **Monthly Costs by Provider:**
23787
23787
  * ```
23788
- * GET /api/v2/analytics/financial/?metric=monthly_costs&provider=openai&granularity=month&comparison_days=30
23788
+ * GET /api/analytics/financial/?metric=monthly_costs&provider=openai&granularity=month&comparison_days=30
23789
23789
  * ```
23790
23790
  *
23791
23791
  * **Daily Costs for Specific User:**
23792
23792
  * ```
23793
- * GET /api/v2/analytics/financial/?metric=total_costs&username=user-456&granularity=day&start_date=2025-01-15&end_date=2025-01-21&comparison_days=7
23793
+ * GET /api/analytics/financial/?metric=total_costs&username=user-456&granularity=day&start_date=2025-01-15&end_date=2025-01-21&comparison_days=7
23794
23794
  * ```
23795
23795
  *
23796
23796
  *
@@ -23916,9 +23916,9 @@ class AnalyticsService {
23916
23916
  * "total_pages": 1,
23917
23917
  * "total_records": 3,
23918
23918
  * "rows": [
23919
- * {"provider": "openai", "total_cost": 2.5},
23920
- * {"provider": "anthropic", "total_cost": 1.0},
23921
- * {"provider": "azure", "total_cost": 0.5}
23919
+ * {"provider": "openai", "total_cost": "2.50000"},
23920
+ * {"provider": "anthropic", "total_cost": "1.00000"},
23921
+ * {"provider": "azure", "total_cost": "0.50000"}
23922
23922
  * ],
23923
23923
  * "metrics": [
23924
23924
  * {
@@ -23927,7 +23927,7 @@ class AnalyticsService {
23927
23927
  * "description": "Cost for this entity in period"
23928
23928
  * }
23929
23929
  * ],
23930
- * "total_cost": 4.0 // optional grand-total when available
23930
+ * "total_cost": "4.00000" // optional grand-total when available
23931
23931
  * }
23932
23932
  * ``
23933
23933
  * @returns FinanceDetailsResponse
package/dist/index.esm.js CHANGED
@@ -108,7 +108,7 @@ class CancelablePromise {
108
108
 
109
109
  const OpenAPI = {
110
110
  BASE: 'https://base.manager.iblai.app',
111
- VERSION: '4.57.2-ai-plus',
111
+ VERSION: '4.57.3-ai-plus',
112
112
  WITH_CREDENTIALS: false,
113
113
  CREDENTIALS: 'include',
114
114
  TOKEN: undefined,
@@ -6364,23 +6364,23 @@ class AiAnalyticsService {
6364
6364
  *
6365
6365
  * **Basic Weekly Costs:**
6366
6366
  * ```
6367
- * GET /api/v2/analytics/financial/?metric=weekly_costs&comparison_days=10
6367
+ * GET /api/analytics/financial/?metric=weekly_costs&comparison_days=10
6368
6368
  * ```
6369
6369
  *
6370
6370
  * **Platform & Mentor Filtered:**
6371
6371
  * ```
6372
6372
  * # Get total costs for a specific platform and mentor
6373
- * GET /api/v2/analytics/financial/?metric=total_costs&platform_key=web-app&mentor_unique_id=mentor-123&comparison_days=14
6373
+ * GET /api/analytics/financial/?metric=total_costs&platform_key=web-app&mentor_unique_id=mentor-123&comparison_days=14
6374
6374
  * ```
6375
6375
  *
6376
6376
  * **Monthly Costs by Provider:**
6377
6377
  * ```
6378
- * GET /api/v2/analytics/financial/?metric=monthly_costs&provider=openai&granularity=month&comparison_days=30
6378
+ * GET /api/analytics/financial/?metric=monthly_costs&provider=openai&granularity=month&comparison_days=30
6379
6379
  * ```
6380
6380
  *
6381
6381
  * **Daily Costs for Specific User:**
6382
6382
  * ```
6383
- * GET /api/v2/analytics/financial/?metric=total_costs&username=user-456&granularity=day&start_date=2025-01-15&end_date=2025-01-21&comparison_days=7
6383
+ * GET /api/analytics/financial/?metric=total_costs&username=user-456&granularity=day&start_date=2025-01-15&end_date=2025-01-21&comparison_days=7
6384
6384
  * ```
6385
6385
  *
6386
6386
  *
@@ -6506,9 +6506,9 @@ class AiAnalyticsService {
6506
6506
  * "total_pages": 1,
6507
6507
  * "total_records": 3,
6508
6508
  * "rows": [
6509
- * {"provider": "openai", "total_cost": 2.5},
6510
- * {"provider": "anthropic", "total_cost": 1.0},
6511
- * {"provider": "azure", "total_cost": 0.5}
6509
+ * {"provider": "openai", "total_cost": "2.50000"},
6510
+ * {"provider": "anthropic", "total_cost": "1.00000"},
6511
+ * {"provider": "azure", "total_cost": "0.50000"}
6512
6512
  * ],
6513
6513
  * "metrics": [
6514
6514
  * {
@@ -6517,7 +6517,7 @@ class AiAnalyticsService {
6517
6517
  * "description": "Cost for this entity in period"
6518
6518
  * }
6519
6519
  * ],
6520
- * "total_cost": 4.0 // optional grand-total when available
6520
+ * "total_cost": "4.00000" // optional grand-total when available
6521
6521
  * }
6522
6522
  * ``
6523
6523
  * @returns FinanceDetailsResponse
@@ -23772,23 +23772,23 @@ class AnalyticsService {
23772
23772
  *
23773
23773
  * **Basic Weekly Costs:**
23774
23774
  * ```
23775
- * GET /api/v2/analytics/financial/?metric=weekly_costs&comparison_days=10
23775
+ * GET /api/analytics/financial/?metric=weekly_costs&comparison_days=10
23776
23776
  * ```
23777
23777
  *
23778
23778
  * **Platform & Mentor Filtered:**
23779
23779
  * ```
23780
23780
  * # Get total costs for a specific platform and mentor
23781
- * GET /api/v2/analytics/financial/?metric=total_costs&platform_key=web-app&mentor_unique_id=mentor-123&comparison_days=14
23781
+ * GET /api/analytics/financial/?metric=total_costs&platform_key=web-app&mentor_unique_id=mentor-123&comparison_days=14
23782
23782
  * ```
23783
23783
  *
23784
23784
  * **Monthly Costs by Provider:**
23785
23785
  * ```
23786
- * GET /api/v2/analytics/financial/?metric=monthly_costs&provider=openai&granularity=month&comparison_days=30
23786
+ * GET /api/analytics/financial/?metric=monthly_costs&provider=openai&granularity=month&comparison_days=30
23787
23787
  * ```
23788
23788
  *
23789
23789
  * **Daily Costs for Specific User:**
23790
23790
  * ```
23791
- * GET /api/v2/analytics/financial/?metric=total_costs&username=user-456&granularity=day&start_date=2025-01-15&end_date=2025-01-21&comparison_days=7
23791
+ * GET /api/analytics/financial/?metric=total_costs&username=user-456&granularity=day&start_date=2025-01-15&end_date=2025-01-21&comparison_days=7
23792
23792
  * ```
23793
23793
  *
23794
23794
  *
@@ -23914,9 +23914,9 @@ class AnalyticsService {
23914
23914
  * "total_pages": 1,
23915
23915
  * "total_records": 3,
23916
23916
  * "rows": [
23917
- * {"provider": "openai", "total_cost": 2.5},
23918
- * {"provider": "anthropic", "total_cost": 1.0},
23919
- * {"provider": "azure", "total_cost": 0.5}
23917
+ * {"provider": "openai", "total_cost": "2.50000"},
23918
+ * {"provider": "anthropic", "total_cost": "1.00000"},
23919
+ * {"provider": "azure", "total_cost": "0.50000"}
23920
23920
  * ],
23921
23921
  * "metrics": [
23922
23922
  * {
@@ -23925,7 +23925,7 @@ class AnalyticsService {
23925
23925
  * "description": "Cost for this entity in period"
23926
23926
  * }
23927
23927
  * ],
23928
- * "total_cost": 4.0 // optional grand-total when available
23928
+ * "total_cost": "4.00000" // optional grand-total when available
23929
23929
  * }
23930
23930
  * ``
23931
23931
  * @returns FinanceDetailsResponse
package/dist/index.umd.js CHANGED
@@ -114,7 +114,7 @@
114
114
 
115
115
  const OpenAPI = {
116
116
  BASE: 'https://base.manager.iblai.app',
117
- VERSION: '4.57.2-ai-plus',
117
+ VERSION: '4.57.3-ai-plus',
118
118
  WITH_CREDENTIALS: false,
119
119
  CREDENTIALS: 'include',
120
120
  TOKEN: undefined,
@@ -6370,23 +6370,23 @@
6370
6370
  *
6371
6371
  * **Basic Weekly Costs:**
6372
6372
  * ```
6373
- * GET /api/v2/analytics/financial/?metric=weekly_costs&comparison_days=10
6373
+ * GET /api/analytics/financial/?metric=weekly_costs&comparison_days=10
6374
6374
  * ```
6375
6375
  *
6376
6376
  * **Platform & Mentor Filtered:**
6377
6377
  * ```
6378
6378
  * # Get total costs for a specific platform and mentor
6379
- * GET /api/v2/analytics/financial/?metric=total_costs&platform_key=web-app&mentor_unique_id=mentor-123&comparison_days=14
6379
+ * GET /api/analytics/financial/?metric=total_costs&platform_key=web-app&mentor_unique_id=mentor-123&comparison_days=14
6380
6380
  * ```
6381
6381
  *
6382
6382
  * **Monthly Costs by Provider:**
6383
6383
  * ```
6384
- * GET /api/v2/analytics/financial/?metric=monthly_costs&provider=openai&granularity=month&comparison_days=30
6384
+ * GET /api/analytics/financial/?metric=monthly_costs&provider=openai&granularity=month&comparison_days=30
6385
6385
  * ```
6386
6386
  *
6387
6387
  * **Daily Costs for Specific User:**
6388
6388
  * ```
6389
- * GET /api/v2/analytics/financial/?metric=total_costs&username=user-456&granularity=day&start_date=2025-01-15&end_date=2025-01-21&comparison_days=7
6389
+ * GET /api/analytics/financial/?metric=total_costs&username=user-456&granularity=day&start_date=2025-01-15&end_date=2025-01-21&comparison_days=7
6390
6390
  * ```
6391
6391
  *
6392
6392
  *
@@ -6512,9 +6512,9 @@
6512
6512
  * "total_pages": 1,
6513
6513
  * "total_records": 3,
6514
6514
  * "rows": [
6515
- * {"provider": "openai", "total_cost": 2.5},
6516
- * {"provider": "anthropic", "total_cost": 1.0},
6517
- * {"provider": "azure", "total_cost": 0.5}
6515
+ * {"provider": "openai", "total_cost": "2.50000"},
6516
+ * {"provider": "anthropic", "total_cost": "1.00000"},
6517
+ * {"provider": "azure", "total_cost": "0.50000"}
6518
6518
  * ],
6519
6519
  * "metrics": [
6520
6520
  * {
@@ -6523,7 +6523,7 @@
6523
6523
  * "description": "Cost for this entity in period"
6524
6524
  * }
6525
6525
  * ],
6526
- * "total_cost": 4.0 // optional grand-total when available
6526
+ * "total_cost": "4.00000" // optional grand-total when available
6527
6527
  * }
6528
6528
  * ``
6529
6529
  * @returns FinanceDetailsResponse
@@ -23778,23 +23778,23 @@
23778
23778
  *
23779
23779
  * **Basic Weekly Costs:**
23780
23780
  * ```
23781
- * GET /api/v2/analytics/financial/?metric=weekly_costs&comparison_days=10
23781
+ * GET /api/analytics/financial/?metric=weekly_costs&comparison_days=10
23782
23782
  * ```
23783
23783
  *
23784
23784
  * **Platform & Mentor Filtered:**
23785
23785
  * ```
23786
23786
  * # Get total costs for a specific platform and mentor
23787
- * GET /api/v2/analytics/financial/?metric=total_costs&platform_key=web-app&mentor_unique_id=mentor-123&comparison_days=14
23787
+ * GET /api/analytics/financial/?metric=total_costs&platform_key=web-app&mentor_unique_id=mentor-123&comparison_days=14
23788
23788
  * ```
23789
23789
  *
23790
23790
  * **Monthly Costs by Provider:**
23791
23791
  * ```
23792
- * GET /api/v2/analytics/financial/?metric=monthly_costs&provider=openai&granularity=month&comparison_days=30
23792
+ * GET /api/analytics/financial/?metric=monthly_costs&provider=openai&granularity=month&comparison_days=30
23793
23793
  * ```
23794
23794
  *
23795
23795
  * **Daily Costs for Specific User:**
23796
23796
  * ```
23797
- * GET /api/v2/analytics/financial/?metric=total_costs&username=user-456&granularity=day&start_date=2025-01-15&end_date=2025-01-21&comparison_days=7
23797
+ * GET /api/analytics/financial/?metric=total_costs&username=user-456&granularity=day&start_date=2025-01-15&end_date=2025-01-21&comparison_days=7
23798
23798
  * ```
23799
23799
  *
23800
23800
  *
@@ -23920,9 +23920,9 @@
23920
23920
  * "total_pages": 1,
23921
23921
  * "total_records": 3,
23922
23922
  * "rows": [
23923
- * {"provider": "openai", "total_cost": 2.5},
23924
- * {"provider": "anthropic", "total_cost": 1.0},
23925
- * {"provider": "azure", "total_cost": 0.5}
23923
+ * {"provider": "openai", "total_cost": "2.50000"},
23924
+ * {"provider": "anthropic", "total_cost": "1.00000"},
23925
+ * {"provider": "azure", "total_cost": "0.50000"}
23926
23926
  * ],
23927
23927
  * "metrics": [
23928
23928
  * {
@@ -23931,7 +23931,7 @@
23931
23931
  * "description": "Cost for this entity in period"
23932
23932
  * }
23933
23933
  * ],
23934
- * "total_cost": 4.0 // optional grand-total when available
23934
+ * "total_cost": "4.00000" // optional grand-total when available
23935
23935
  * }
23936
23936
  * ``
23937
23937
  * @returns FinanceDetailsResponse
@@ -17,7 +17,7 @@ export type BaseFinanceResponse = {
17
17
  /**
18
18
  * Primary metric value (cost in USD)
19
19
  */
20
- value: number;
20
+ value: string;
21
21
  /**
22
22
  * Percentage change vs comparison period (null if no comparison)
23
23
  */
@@ -9,7 +9,7 @@ export type ComparisonInfo = {
9
9
  /**
10
10
  * Cost value for comparison period
11
11
  */
12
- previous_period_value?: number;
12
+ previous_period_value?: string;
13
13
  /**
14
14
  * Start date of comparison period
15
15
  */
@@ -25,5 +25,5 @@ export type ComparisonInfo = {
25
25
  /**
26
26
  * Cost value for current period
27
27
  */
28
- recent_period_value?: number;
28
+ recent_period_value?: string;
29
29
  };
@@ -7,7 +7,7 @@ export type FinanceDetailsResponse = {
7
7
  limit: number;
8
8
  total_pages: number;
9
9
  total_records: number;
10
- rows: Array<Record<string, any>>;
11
- total_cost?: number;
10
+ rows?: any;
11
+ total_cost?: string;
12
12
  metrics?: Array<MetricInfo>;
13
13
  };
@@ -9,5 +9,5 @@ export type OvertimeData = {
9
9
  /**
10
10
  * Cost value for this time period
11
11
  */
12
- value: number;
12
+ value: string;
13
13
  };
@@ -4166,23 +4166,23 @@ export declare class AiAnalyticsService {
4166
4166
  *
4167
4167
  * **Basic Weekly Costs:**
4168
4168
  * ```
4169
- * GET /api/v2/analytics/financial/?metric=weekly_costs&comparison_days=10
4169
+ * GET /api/analytics/financial/?metric=weekly_costs&comparison_days=10
4170
4170
  * ```
4171
4171
  *
4172
4172
  * **Platform & Mentor Filtered:**
4173
4173
  * ```
4174
4174
  * # Get total costs for a specific platform and mentor
4175
- * GET /api/v2/analytics/financial/?metric=total_costs&platform_key=web-app&mentor_unique_id=mentor-123&comparison_days=14
4175
+ * GET /api/analytics/financial/?metric=total_costs&platform_key=web-app&mentor_unique_id=mentor-123&comparison_days=14
4176
4176
  * ```
4177
4177
  *
4178
4178
  * **Monthly Costs by Provider:**
4179
4179
  * ```
4180
- * GET /api/v2/analytics/financial/?metric=monthly_costs&provider=openai&granularity=month&comparison_days=30
4180
+ * GET /api/analytics/financial/?metric=monthly_costs&provider=openai&granularity=month&comparison_days=30
4181
4181
  * ```
4182
4182
  *
4183
4183
  * **Daily Costs for Specific User:**
4184
4184
  * ```
4185
- * GET /api/v2/analytics/financial/?metric=total_costs&username=user-456&granularity=day&start_date=2025-01-15&end_date=2025-01-21&comparison_days=7
4185
+ * GET /api/analytics/financial/?metric=total_costs&username=user-456&granularity=day&start_date=2025-01-15&end_date=2025-01-21&comparison_days=7
4186
4186
  * ```
4187
4187
  *
4188
4188
  *
@@ -4333,9 +4333,9 @@ export declare class AiAnalyticsService {
4333
4333
  * "total_pages": 1,
4334
4334
  * "total_records": 3,
4335
4335
  * "rows": [
4336
- * {"provider": "openai", "total_cost": 2.5},
4337
- * {"provider": "anthropic", "total_cost": 1.0},
4338
- * {"provider": "azure", "total_cost": 0.5}
4336
+ * {"provider": "openai", "total_cost": "2.50000"},
4337
+ * {"provider": "anthropic", "total_cost": "1.00000"},
4338
+ * {"provider": "azure", "total_cost": "0.50000"}
4339
4339
  * ],
4340
4340
  * "metrics": [
4341
4341
  * {
@@ -4344,7 +4344,7 @@ export declare class AiAnalyticsService {
4344
4344
  * "description": "Cost for this entity in period"
4345
4345
  * }
4346
4346
  * ],
4347
- * "total_cost": 4.0 // optional grand-total when available
4347
+ * "total_cost": "4.00000" // optional grand-total when available
4348
4348
  * }
4349
4349
  * ``
4350
4350
  * @returns FinanceDetailsResponse
@@ -156,23 +156,23 @@ export declare class AnalyticsService {
156
156
  *
157
157
  * **Basic Weekly Costs:**
158
158
  * ```
159
- * GET /api/v2/analytics/financial/?metric=weekly_costs&comparison_days=10
159
+ * GET /api/analytics/financial/?metric=weekly_costs&comparison_days=10
160
160
  * ```
161
161
  *
162
162
  * **Platform & Mentor Filtered:**
163
163
  * ```
164
164
  * # Get total costs for a specific platform and mentor
165
- * GET /api/v2/analytics/financial/?metric=total_costs&platform_key=web-app&mentor_unique_id=mentor-123&comparison_days=14
165
+ * GET /api/analytics/financial/?metric=total_costs&platform_key=web-app&mentor_unique_id=mentor-123&comparison_days=14
166
166
  * ```
167
167
  *
168
168
  * **Monthly Costs by Provider:**
169
169
  * ```
170
- * GET /api/v2/analytics/financial/?metric=monthly_costs&provider=openai&granularity=month&comparison_days=30
170
+ * GET /api/analytics/financial/?metric=monthly_costs&provider=openai&granularity=month&comparison_days=30
171
171
  * ```
172
172
  *
173
173
  * **Daily Costs for Specific User:**
174
174
  * ```
175
- * GET /api/v2/analytics/financial/?metric=total_costs&username=user-456&granularity=day&start_date=2025-01-15&end_date=2025-01-21&comparison_days=7
175
+ * GET /api/analytics/financial/?metric=total_costs&username=user-456&granularity=day&start_date=2025-01-15&end_date=2025-01-21&comparison_days=7
176
176
  * ```
177
177
  *
178
178
  *
@@ -323,9 +323,9 @@ export declare class AnalyticsService {
323
323
  * "total_pages": 1,
324
324
  * "total_records": 3,
325
325
  * "rows": [
326
- * {"provider": "openai", "total_cost": 2.5},
327
- * {"provider": "anthropic", "total_cost": 1.0},
328
- * {"provider": "azure", "total_cost": 0.5}
326
+ * {"provider": "openai", "total_cost": "2.50000"},
327
+ * {"provider": "anthropic", "total_cost": "1.00000"},
328
+ * {"provider": "azure", "total_cost": "0.50000"}
329
329
  * ],
330
330
  * "metrics": [
331
331
  * {
@@ -334,7 +334,7 @@ export declare class AnalyticsService {
334
334
  * "description": "Cost for this entity in period"
335
335
  * }
336
336
  * ],
337
- * "total_cost": 4.0 // optional grand-total when available
337
+ * "total_cost": "4.00000" // optional grand-total when available
338
338
  * }
339
339
  * ``
340
340
  * @returns FinanceDetailsResponse
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iblai/iblai-api",
3
- "version": "4.57.2-ai",
3
+ "version": "4.57.3-ai",
4
4
  "main": "dist/index.cjs.js",
5
5
  "module": "dist/index.esm.js",
6
6
  "type": "module",
package/sdk_schema.yml CHANGED
@@ -1,7 +1,7 @@
1
1
  openapi: 3.0.3
2
2
  info:
3
3
  title: ibl-data-manager
4
- version: 4.57.2-ai-plus
4
+ version: 4.57.3-ai-plus
5
5
  description: API for iblai
6
6
  paths:
7
7
  /api/ai-account/connected-services/callback/:
@@ -32344,23 +32344,23 @@ paths:
32344
32344
 
32345
32345
  **Basic Weekly Costs:**
32346
32346
  ```
32347
- GET /api/v2/analytics/financial/?metric=weekly_costs&comparison_days=10
32347
+ GET /api/analytics/financial/?metric=weekly_costs&comparison_days=10
32348
32348
  ```
32349
32349
 
32350
32350
  **Platform & Mentor Filtered:**
32351
32351
  ```
32352
32352
  # Get total costs for a specific platform and mentor
32353
- GET /api/v2/analytics/financial/?metric=total_costs&platform_key=web-app&mentor_unique_id=mentor-123&comparison_days=14
32353
+ GET /api/analytics/financial/?metric=total_costs&platform_key=web-app&mentor_unique_id=mentor-123&comparison_days=14
32354
32354
  ```
32355
32355
 
32356
32356
  **Monthly Costs by Provider:**
32357
32357
  ```
32358
- GET /api/v2/analytics/financial/?metric=monthly_costs&provider=openai&granularity=month&comparison_days=30
32358
+ GET /api/analytics/financial/?metric=monthly_costs&provider=openai&granularity=month&comparison_days=30
32359
32359
  ```
32360
32360
 
32361
32361
  **Daily Costs for Specific User:**
32362
32362
  ```
32363
- GET /api/v2/analytics/financial/?metric=total_costs&username=user-456&granularity=day&start_date=2025-01-15&end_date=2025-01-21&comparison_days=7
32363
+ GET /api/analytics/financial/?metric=total_costs&username=user-456&granularity=day&start_date=2025-01-15&end_date=2025-01-21&comparison_days=7
32364
32364
  ```
32365
32365
 
32366
32366
 
@@ -32538,19 +32538,19 @@ paths:
32538
32538
  end_date: '2025-01-31'
32539
32539
  granularity: day
32540
32540
  comparison_days: 10
32541
- value: 45.789
32541
+ value: 45.78900
32542
32542
  percentage_change: 15.2
32543
32543
  overtime:
32544
32544
  - date: '2025-01-01'
32545
- value: 1.23
32545
+ value: 1.23000
32546
32546
  - date: '2025-01-02'
32547
- value: 1.45
32547
+ value: 1.45000
32548
32548
  - date: '2025-01-03'
32549
- value: 1.67
32549
+ value: 1.67000
32550
32550
  - date: '2025-01-04'
32551
- value: 1.34
32551
+ value: 1.34000
32552
32552
  - date: '2025-01-05'
32553
- value: 1.89
32553
+ value: 1.89000
32554
32554
  period_info:
32555
32555
  start_date: '2025-01-01'
32556
32556
  end_date: '2025-01-31'
@@ -32558,11 +32558,11 @@ paths:
32558
32558
  range_type: custom
32559
32559
  comparison_info:
32560
32560
  previous_period_count: 10
32561
- previous_period_value: 39.654
32561
+ previous_period_value: 39.65400
32562
32562
  comparison_start: '2024-12-22'
32563
32563
  comparison_end: '2024-12-31'
32564
32564
  comparison_days: 10
32565
- recent_period_value: 45.789
32565
+ recent_period_value: 45.78900
32566
32566
  summary: Total Costs Response
32567
32567
  description: Response for total_costs metric.
32568
32568
  WeeklyCostsResponse:
@@ -32571,17 +32571,17 @@ paths:
32571
32571
  filters:
32572
32572
  granularity: week
32573
32573
  comparison_days: 10
32574
- value: 12.47
32574
+ value: 12.47000
32575
32575
  percentage_change: 8.5
32576
32576
  overtime:
32577
32577
  - date: '2025-01-06'
32578
- value: 2.89
32578
+ value: 2.89000
32579
32579
  - date: '2025-01-13'
32580
- value: 3.12
32580
+ value: 3.12000
32581
32581
  - date: '2025-01-20'
32582
- value: 3.46
32582
+ value: 3.46000
32583
32583
  - date: '2025-01-27'
32584
- value: 3.0
32584
+ value: 3.00000
32585
32585
  period_info:
32586
32586
  start_date: '2025-01-01'
32587
32587
  end_date: '2025-01-31'
@@ -32589,11 +32589,11 @@ paths:
32589
32589
  range_type: default
32590
32590
  comparison_info:
32591
32591
  previous_period_count: 10
32592
- previous_period_value: 11.5
32592
+ previous_period_value: 11.50000
32593
32593
  comparison_start: '2024-12-22'
32594
32594
  comparison_end: '2024-12-31'
32595
32595
  comparison_days: 10
32596
- recent_period_value: 12.47
32596
+ recent_period_value: 12.47000
32597
32597
  summary: Weekly Costs Response
32598
32598
  description: Response for weekly_costs metric.
32599
32599
  MonthlyCostsResponse:
@@ -32603,15 +32603,15 @@ paths:
32603
32603
  granularity: month
32604
32604
  comparison_days: 30
32605
32605
  provider: openai
32606
- value: 156.23
32606
+ value: 156.23000
32607
32607
  percentage_change: -5.2
32608
32608
  overtime:
32609
32609
  - date: '2025-01-01'
32610
- value: 45.67
32610
+ value: 45.67000
32611
32611
  - date: '2025-02-01'
32612
- value: 52.34
32612
+ value: 52.34000
32613
32613
  - date: '2025-03-01'
32614
- value: 58.22
32614
+ value: 58.22000
32615
32615
  period_info:
32616
32616
  start_date: '2025-01-01'
32617
32617
  end_date: '2025-03-31'
@@ -32619,11 +32619,11 @@ paths:
32619
32619
  range_type: custom
32620
32620
  comparison_info:
32621
32621
  previous_period_count: 30
32622
- previous_period_value: 164.78
32622
+ previous_period_value: 164.78000
32623
32623
  comparison_start: '2024-12-01'
32624
32624
  comparison_end: '2024-12-31'
32625
32625
  comparison_days: 30
32626
- recent_period_value: 156.23
32626
+ recent_period_value: 156.23000
32627
32627
  summary: Monthly Costs Response
32628
32628
  description: Response for monthly_costs metric.
32629
32629
  description: Successful financial metrics response with period-based cost
@@ -32695,9 +32695,9 @@ paths:
32695
32695
  "total_pages": 1,
32696
32696
  "total_records": 3,
32697
32697
  "rows": [
32698
- {"provider": "openai", "total_cost": 2.5},
32699
- {"provider": "anthropic", "total_cost": 1.0},
32700
- {"provider": "azure", "total_cost": 0.5}
32698
+ {"provider": "openai", "total_cost": "2.50000"},
32699
+ {"provider": "anthropic", "total_cost": "1.00000"},
32700
+ {"provider": "azure", "total_cost": "0.50000"}
32701
32701
  ],
32702
32702
  "metrics": [
32703
32703
  {
@@ -32706,7 +32706,7 @@ paths:
32706
32706
  "description": "Cost for this entity in period"
32707
32707
  }
32708
32708
  ],
32709
- "total_cost": 4.0 // optional grand-total when available
32709
+ "total_cost": "4.00000" // optional grand-total when available
32710
32710
  }
32711
32711
  ``
32712
32712
  parameters:
@@ -66144,8 +66144,9 @@ components:
66144
66144
  - $ref: '#/components/schemas/FinanceFilters'
66145
66145
  description: Applied filters for this query
66146
66146
  value:
66147
- type: number
66148
- format: double
66147
+ type: string
66148
+ format: decimal
66149
+ pattern: ^-?\d{0,15}(?:\.\d{0,5})?$
66149
66150
  description: Primary metric value (cost in USD)
66150
66151
  percentage_change:
66151
66152
  type: number
@@ -66894,8 +66895,9 @@ components:
66894
66895
  type: integer
66895
66896
  description: Number of days in comparison period
66896
66897
  previous_period_value:
66897
- type: number
66898
- format: double
66898
+ type: string
66899
+ format: decimal
66900
+ pattern: ^-?\d{0,15}(?:\.\d{0,5})?$
66899
66901
  description: Cost value for comparison period
66900
66902
  comparison_start:
66901
66903
  type: string
@@ -66907,8 +66909,9 @@ components:
66907
66909
  type: integer
66908
66910
  description: Number of comparison days
66909
66911
  recent_period_value:
66910
- type: number
66911
- format: double
66912
+ type: string
66913
+ format: decimal
66914
+ pattern: ^-?\d{0,15}(?:\.\d{0,5})?$
66912
66915
  description: Cost value for current period
66913
66916
  ComponentBlock:
66914
66917
  type: object
@@ -70363,14 +70366,11 @@ components:
70363
70366
  type: integer
70364
70367
  total_records:
70365
70368
  type: integer
70366
- rows:
70367
- type: array
70368
- items:
70369
- type: object
70370
- additionalProperties: {}
70369
+ rows: {}
70371
70370
  total_cost:
70372
- type: number
70373
- format: double
70371
+ type: string
70372
+ format: decimal
70373
+ pattern: ^-?\d{0,15}(?:\.\d{0,5})?$
70374
70374
  metrics:
70375
70375
  type: array
70376
70376
  items:
@@ -70378,7 +70378,6 @@ components:
70378
70378
  required:
70379
70379
  - limit
70380
70380
  - page
70381
- - rows
70382
70381
  - total_pages
70383
70382
  - total_records
70384
70383
  FinanceFilters:
@@ -74475,8 +74474,9 @@ components:
74475
74474
  type: string
74476
74475
  description: Date in YYYY-MM-DD format
74477
74476
  value:
74478
- type: number
74479
- format: double
74477
+ type: string
74478
+ format: decimal
74479
+ pattern: ^-?\d{0,15}(?:\.\d{0,5})?$
74480
74480
  description: Cost value for this time period
74481
74481
  required:
74482
74482
  - date
@@ -21,7 +21,7 @@ export type OpenAPIConfig = {
21
21
 
22
22
  export const OpenAPI: OpenAPIConfig = {
23
23
  BASE: 'https://base.manager.iblai.app',
24
- VERSION: '4.57.2-ai-plus',
24
+ VERSION: '4.57.3-ai-plus',
25
25
  WITH_CREDENTIALS: false,
26
26
  CREDENTIALS: 'include',
27
27
  TOKEN: undefined,
@@ -21,7 +21,7 @@ export type BaseFinanceResponse = {
21
21
  /**
22
22
  * Primary metric value (cost in USD)
23
23
  */
24
- value: number;
24
+ value: string;
25
25
  /**
26
26
  * Percentage change vs comparison period (null if no comparison)
27
27
  */
@@ -13,7 +13,7 @@ export type ComparisonInfo = {
13
13
  /**
14
14
  * Cost value for comparison period
15
15
  */
16
- previous_period_value?: number;
16
+ previous_period_value?: string;
17
17
  /**
18
18
  * Start date of comparison period
19
19
  */
@@ -29,6 +29,6 @@ export type ComparisonInfo = {
29
29
  /**
30
30
  * Cost value for current period
31
31
  */
32
- recent_period_value?: number;
32
+ recent_period_value?: string;
33
33
  };
34
34
 
@@ -11,8 +11,8 @@ export type FinanceDetailsResponse = {
11
11
  limit: number;
12
12
  total_pages: number;
13
13
  total_records: number;
14
- rows: Array<Record<string, any>>;
15
- total_cost?: number;
14
+ rows?: any;
15
+ total_cost?: string;
16
16
  metrics?: Array<MetricInfo>;
17
17
  };
18
18
 
@@ -13,6 +13,6 @@ export type OvertimeData = {
13
13
  /**
14
14
  * Cost value for this time period
15
15
  */
16
- value: number;
16
+ value: string;
17
17
  };
18
18
 
@@ -6872,23 +6872,23 @@ export class AiAnalyticsService {
6872
6872
  *
6873
6873
  * **Basic Weekly Costs:**
6874
6874
  * ```
6875
- * GET /api/v2/analytics/financial/?metric=weekly_costs&comparison_days=10
6875
+ * GET /api/analytics/financial/?metric=weekly_costs&comparison_days=10
6876
6876
  * ```
6877
6877
  *
6878
6878
  * **Platform & Mentor Filtered:**
6879
6879
  * ```
6880
6880
  * # Get total costs for a specific platform and mentor
6881
- * GET /api/v2/analytics/financial/?metric=total_costs&platform_key=web-app&mentor_unique_id=mentor-123&comparison_days=14
6881
+ * GET /api/analytics/financial/?metric=total_costs&platform_key=web-app&mentor_unique_id=mentor-123&comparison_days=14
6882
6882
  * ```
6883
6883
  *
6884
6884
  * **Monthly Costs by Provider:**
6885
6885
  * ```
6886
- * GET /api/v2/analytics/financial/?metric=monthly_costs&provider=openai&granularity=month&comparison_days=30
6886
+ * GET /api/analytics/financial/?metric=monthly_costs&provider=openai&granularity=month&comparison_days=30
6887
6887
  * ```
6888
6888
  *
6889
6889
  * **Daily Costs for Specific User:**
6890
6890
  * ```
6891
- * GET /api/v2/analytics/financial/?metric=total_costs&username=user-456&granularity=day&start_date=2025-01-15&end_date=2025-01-21&comparison_days=7
6891
+ * GET /api/analytics/financial/?metric=total_costs&username=user-456&granularity=day&start_date=2025-01-15&end_date=2025-01-21&comparison_days=7
6892
6892
  * ```
6893
6893
  *
6894
6894
  *
@@ -7078,9 +7078,9 @@ export class AiAnalyticsService {
7078
7078
  * "total_pages": 1,
7079
7079
  * "total_records": 3,
7080
7080
  * "rows": [
7081
- * {"provider": "openai", "total_cost": 2.5},
7082
- * {"provider": "anthropic", "total_cost": 1.0},
7083
- * {"provider": "azure", "total_cost": 0.5}
7081
+ * {"provider": "openai", "total_cost": "2.50000"},
7082
+ * {"provider": "anthropic", "total_cost": "1.00000"},
7083
+ * {"provider": "azure", "total_cost": "0.50000"}
7084
7084
  * ],
7085
7085
  * "metrics": [
7086
7086
  * {
@@ -7089,7 +7089,7 @@ export class AiAnalyticsService {
7089
7089
  * "description": "Cost for this entity in period"
7090
7090
  * }
7091
7091
  * ],
7092
- * "total_cost": 4.0 // optional grand-total when available
7092
+ * "total_cost": "4.00000" // optional grand-total when available
7093
7093
  * }
7094
7094
  * ``
7095
7095
  * @returns FinanceDetailsResponse
@@ -222,23 +222,23 @@ export class AnalyticsService {
222
222
  *
223
223
  * **Basic Weekly Costs:**
224
224
  * ```
225
- * GET /api/v2/analytics/financial/?metric=weekly_costs&comparison_days=10
225
+ * GET /api/analytics/financial/?metric=weekly_costs&comparison_days=10
226
226
  * ```
227
227
  *
228
228
  * **Platform & Mentor Filtered:**
229
229
  * ```
230
230
  * # Get total costs for a specific platform and mentor
231
- * GET /api/v2/analytics/financial/?metric=total_costs&platform_key=web-app&mentor_unique_id=mentor-123&comparison_days=14
231
+ * GET /api/analytics/financial/?metric=total_costs&platform_key=web-app&mentor_unique_id=mentor-123&comparison_days=14
232
232
  * ```
233
233
  *
234
234
  * **Monthly Costs by Provider:**
235
235
  * ```
236
- * GET /api/v2/analytics/financial/?metric=monthly_costs&provider=openai&granularity=month&comparison_days=30
236
+ * GET /api/analytics/financial/?metric=monthly_costs&provider=openai&granularity=month&comparison_days=30
237
237
  * ```
238
238
  *
239
239
  * **Daily Costs for Specific User:**
240
240
  * ```
241
- * GET /api/v2/analytics/financial/?metric=total_costs&username=user-456&granularity=day&start_date=2025-01-15&end_date=2025-01-21&comparison_days=7
241
+ * GET /api/analytics/financial/?metric=total_costs&username=user-456&granularity=day&start_date=2025-01-15&end_date=2025-01-21&comparison_days=7
242
242
  * ```
243
243
  *
244
244
  *
@@ -428,9 +428,9 @@ export class AnalyticsService {
428
428
  * "total_pages": 1,
429
429
  * "total_records": 3,
430
430
  * "rows": [
431
- * {"provider": "openai", "total_cost": 2.5},
432
- * {"provider": "anthropic", "total_cost": 1.0},
433
- * {"provider": "azure", "total_cost": 0.5}
431
+ * {"provider": "openai", "total_cost": "2.50000"},
432
+ * {"provider": "anthropic", "total_cost": "1.00000"},
433
+ * {"provider": "azure", "total_cost": "0.50000"}
434
434
  * ],
435
435
  * "metrics": [
436
436
  * {
@@ -439,7 +439,7 @@ export class AnalyticsService {
439
439
  * "description": "Cost for this entity in period"
440
440
  * }
441
441
  * ],
442
- * "total_cost": 4.0 // optional grand-total when available
442
+ * "total_cost": "4.00000" // optional grand-total when available
443
443
  * }
444
444
  * ``
445
445
  * @returns FinanceDetailsResponse