@iblai/iblai-api 4.14.5-loadtest-ai → 4.14.5-loadtest2-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.
@@ -0,0 +1,15 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ /**
6
+ * Serializer for rating average overtime data.
7
+ */
8
+ export type RatingAverageRecord = {
9
+ date: string;
10
+ /**
11
+ * Average rating value for this time period
12
+ */
13
+ value: number;
14
+ };
15
+
@@ -0,0 +1,10 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ import type { RatingAverageRecord } from './RatingAverageRecord';
6
+ export type RatingsOvertime = {
7
+ metric: string;
8
+ points: Array<RatingAverageRecord>;
9
+ };
10
+
@@ -0,0 +1,9 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ export type SessionChartPoint = {
6
+ date: string;
7
+ value: number;
8
+ };
9
+
@@ -0,0 +1,10 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ import type { SessionChartPoint } from './SessionChartPoint';
6
+ export type SessionsChart = {
7
+ metric: string;
8
+ points: Array<SessionChartPoint>;
9
+ };
10
+
@@ -0,0 +1,13 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ export type TopicDetail = {
6
+ topic_id: number;
7
+ name: string;
8
+ messages: number;
9
+ conversations: number;
10
+ average_rating?: string;
11
+ rating_count?: number;
12
+ };
13
+
@@ -0,0 +1,10 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ import type { TopicDetail } from './TopicDetail';
6
+ export type TopicDetails = {
7
+ results: Array<TopicDetail>;
8
+ pagination: Record<string, any>;
9
+ };
10
+
@@ -0,0 +1,23 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ import type { TopicsOverviewMetric } from './TopicsOverviewMetric';
6
+ /**
7
+ * Dashboard KPI overview for topics.
8
+ */
9
+ export type TopicsOverview = {
10
+ /**
11
+ * Topic metrics including all-time, monthly counts and percentage change
12
+ */
13
+ topics: TopicsOverviewMetric;
14
+ /**
15
+ * Conversation metrics including all-time, monthly counts and percentage change
16
+ */
17
+ conversations: TopicsOverviewMetric;
18
+ /**
19
+ * Message metrics including all-time, monthly counts and percentage change
20
+ */
21
+ messages: TopicsOverviewMetric;
22
+ };
23
+
@@ -0,0 +1,26 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ /**
6
+ * Serializer for individual topic overview metrics.
7
+ */
8
+ export type TopicsOverviewMetric = {
9
+ /**
10
+ * Total count since the beginning of time
11
+ */
12
+ all_time_total: number;
13
+ /**
14
+ * Count for current month
15
+ */
16
+ this_month: number;
17
+ /**
18
+ * Count for previous month
19
+ */
20
+ last_month: number;
21
+ /**
22
+ * Percentage change from last month to this month
23
+ */
24
+ percentage_change: number;
25
+ };
26
+
@@ -58,7 +58,9 @@ import type { PerLearnerTimeSpentInCourseTree } from '../models/PerLearnerTimeSp
58
58
  import type { PerlearnerUserList } from '../models/PerlearnerUserList';
59
59
  import type { PieChartData } from '../models/PieChartData';
60
60
  import type { RatingRecord } from '../models/RatingRecord';
61
+ import type { RatingsOvertime } from '../models/RatingsOvertime';
61
62
  import type { SentimentSummary } from '../models/SentimentSummary';
63
+ import type { SessionsChart } from '../models/SessionsChart';
62
64
  import type { StudentChatMessage } from '../models/StudentChatMessage';
63
65
  import type { TenantMentorTraces } from '../models/TenantMentorTraces';
64
66
  import type { TimeDetail } from '../models/TimeDetail';
@@ -67,7 +69,9 @@ import type { TimeSpentPerCourse } from '../models/TimeSpentPerCourse';
67
69
  import type { TimeSpentPerUserResponse } from '../models/TimeSpentPerUserResponse';
68
70
  import type { TimeSpentUpdateRequest } from '../models/TimeSpentUpdateRequest';
69
71
  import type { TimeSpentUpdateResponse } from '../models/TimeSpentUpdateResponse';
72
+ import type { TopicDetails } from '../models/TopicDetails';
70
73
  import type { TopicRecord } from '../models/TopicRecord';
74
+ import type { TopicsOverview } from '../models/TopicsOverview';
71
75
  import type { TopicStatisticsResponse } from '../models/TopicStatisticsResponse';
72
76
  import type { TopicSummaryView } from '../models/TopicSummaryView';
73
77
  import type { Trace } from '../models/Trace';
@@ -7072,6 +7076,159 @@ export class AiAnalyticsService {
7072
7076
  mediaType: 'application/json',
7073
7077
  });
7074
7078
  }
7079
+ /**
7080
+ * @returns RatingsOvertime
7081
+ * @throws ApiError
7082
+ */
7083
+ public static analyticsRatingsRetrieve({
7084
+ dateFilter = 'today',
7085
+ endDate,
7086
+ granularity = 'hour',
7087
+ mentorUniqueId,
7088
+ metric = 'ratings',
7089
+ platformKey,
7090
+ startDate,
7091
+ }: {
7092
+ /**
7093
+ * * `today` - Today only
7094
+ * * `7d` - Last 7 days
7095
+ * * `30d` - Last 30 days
7096
+ * * `90d` - Last 90 days
7097
+ * * `all_time` - All time
7098
+ * * `custom` - Custom date range
7099
+ */
7100
+ dateFilter?: 'today' | '7d' | '30d' | '90d' | 'all_time' | 'custom',
7101
+ endDate?: string,
7102
+ /**
7103
+ * * `day` - day
7104
+ * * `hour` - hour
7105
+ * * `week` - week
7106
+ * * `month` - month
7107
+ */
7108
+ granularity?: 'day' | 'hour' | 'week' | 'month',
7109
+ mentorUniqueId?: string,
7110
+ /**
7111
+ * * `ratings` - Ratings over time
7112
+ */
7113
+ metric?: 'ratings',
7114
+ platformKey?: string,
7115
+ startDate?: string,
7116
+ }): CancelablePromise<RatingsOvertime> {
7117
+ return __request(OpenAPI, {
7118
+ method: 'GET',
7119
+ url: '/api/analytics/ratings/',
7120
+ query: {
7121
+ 'date_filter': dateFilter,
7122
+ 'end_date': endDate,
7123
+ 'granularity': granularity,
7124
+ 'mentor_unique_id': mentorUniqueId,
7125
+ 'metric': metric,
7126
+ 'platform_key': platformKey,
7127
+ 'start_date': startDate,
7128
+ },
7129
+ });
7130
+ }
7131
+ /**
7132
+ * @returns SessionsChart
7133
+ * @throws ApiError
7134
+ */
7135
+ public static analyticsSessionsRetrieve({
7136
+ dateFilter = 'today',
7137
+ endDate,
7138
+ granularity = 'hour',
7139
+ mentorUniqueId,
7140
+ metric = 'sessions',
7141
+ platformKey,
7142
+ startDate,
7143
+ }: {
7144
+ /**
7145
+ * * `today` - Today only
7146
+ * * `7d` - Last 7 days
7147
+ * * `30d` - Last 30 days
7148
+ * * `90d` - Last 90 days
7149
+ * * `all_time` - All time
7150
+ * * `custom` - Custom date range
7151
+ */
7152
+ dateFilter?: 'today' | '7d' | '30d' | '90d' | 'all_time' | 'custom',
7153
+ endDate?: string,
7154
+ /**
7155
+ * * `day` - day
7156
+ * * `hour` - hour
7157
+ * * `week` - week
7158
+ * * `month` - month
7159
+ */
7160
+ granularity?: 'day' | 'hour' | 'week' | 'month',
7161
+ mentorUniqueId?: string,
7162
+ /**
7163
+ * * `sessions` - Sessions over time
7164
+ */
7165
+ metric?: 'sessions',
7166
+ platformKey?: string,
7167
+ startDate?: string,
7168
+ }): CancelablePromise<SessionsChart> {
7169
+ return __request(OpenAPI, {
7170
+ method: 'GET',
7171
+ url: '/api/analytics/sessions/',
7172
+ query: {
7173
+ 'date_filter': dateFilter,
7174
+ 'end_date': endDate,
7175
+ 'granularity': granularity,
7176
+ 'mentor_unique_id': mentorUniqueId,
7177
+ 'metric': metric,
7178
+ 'platform_key': platformKey,
7179
+ 'start_date': startDate,
7180
+ },
7181
+ });
7182
+ }
7183
+ /**
7184
+ * @returns TopicDetails
7185
+ * @throws ApiError
7186
+ */
7187
+ public static analyticsSessionsDetailsRetrieve({
7188
+ dateFilter = 'today',
7189
+ endDate,
7190
+ limit = 50,
7191
+ mentorUniqueId,
7192
+ page = 1,
7193
+ platformKey,
7194
+ search,
7195
+ startDate,
7196
+ }: {
7197
+ /**
7198
+ * * `today` - Today only
7199
+ * * `7d` - Last 7 days
7200
+ * * `30d` - Last 30 days
7201
+ * * `90d` - Last 90 days
7202
+ * * `all_time` - All time
7203
+ * * `custom` - Custom date range
7204
+ */
7205
+ dateFilter?: 'today' | '7d' | '30d' | '90d' | 'all_time' | 'custom',
7206
+ endDate?: string,
7207
+ limit?: number,
7208
+ mentorUniqueId?: string,
7209
+ page?: number,
7210
+ platformKey?: string,
7211
+ /**
7212
+ * Search by topic name
7213
+ */
7214
+ search?: string,
7215
+ startDate?: string,
7216
+ }): CancelablePromise<TopicDetails> {
7217
+ return __request(OpenAPI, {
7218
+ method: 'GET',
7219
+ url: '/api/analytics/sessions/details/',
7220
+ query: {
7221
+ 'date_filter': dateFilter,
7222
+ 'end_date': endDate,
7223
+ 'limit': limit,
7224
+ 'mentor_unique_id': mentorUniqueId,
7225
+ 'page': page,
7226
+ 'platform_key': platformKey,
7227
+ 'search': search,
7228
+ 'start_date': startDate,
7229
+ },
7230
+ });
7231
+ }
7075
7232
  /**
7076
7233
  *
7077
7234
  * Time Analytics API - User activity patterns by time of day and day of week.
@@ -7100,23 +7257,28 @@ export class AiAnalyticsService {
7100
7257
  public static analyticsTimeRetrieve({
7101
7258
  dateFilter = 'today',
7102
7259
  endDate,
7260
+ granularity = 'hour',
7103
7261
  mentorUniqueId,
7104
7262
  platformKey,
7105
7263
  startDate,
7106
7264
  }: {
7107
7265
  /**
7108
7266
  * * `today` - Today only
7109
- * * `yesterday` - Yesterday only
7110
7267
  * * `7d` - Last 7 days
7111
7268
  * * `30d` - Last 30 days
7112
7269
  * * `90d` - Last 90 days
7270
+ * * `all_time` - All time
7113
7271
  * * `custom` - Custom date range
7114
7272
  */
7115
- dateFilter?: 'today' | 'yesterday' | '7d' | '30d' | '90d' | 'custom',
7273
+ dateFilter?: 'today' | '7d' | '30d' | '90d' | 'all_time' | 'custom',
7116
7274
  endDate?: string,
7117
7275
  /**
7118
- * Filter by specific mentor unique ID
7276
+ * * `day` - day
7277
+ * * `hour` - hour
7278
+ * * `week` - week
7279
+ * * `month` - month
7119
7280
  */
7281
+ granularity?: 'day' | 'hour' | 'week' | 'month',
7120
7282
  mentorUniqueId?: string,
7121
7283
  platformKey?: string,
7122
7284
  startDate?: string,
@@ -7127,6 +7289,7 @@ export class AiAnalyticsService {
7127
7289
  query: {
7128
7290
  'date_filter': dateFilter,
7129
7291
  'end_date': endDate,
7292
+ 'granularity': granularity,
7130
7293
  'mentor_unique_id': mentorUniqueId,
7131
7294
  'platform_key': platformKey,
7132
7295
  'start_date': startDate,
@@ -7215,6 +7378,110 @@ export class AiAnalyticsService {
7215
7378
  },
7216
7379
  });
7217
7380
  }
7381
+ /**
7382
+ * @returns TopicsOverview
7383
+ * @throws ApiError
7384
+ */
7385
+ public static analyticsTopicsRetrieve({
7386
+ dateFilter = 'today',
7387
+ endDate,
7388
+ granularity = 'hour',
7389
+ mentorUniqueId,
7390
+ metric = 'overview',
7391
+ platformKey,
7392
+ startDate,
7393
+ }: {
7394
+ /**
7395
+ * * `today` - Today only
7396
+ * * `7d` - Last 7 days
7397
+ * * `30d` - Last 30 days
7398
+ * * `90d` - Last 90 days
7399
+ * * `all_time` - All time
7400
+ * * `custom` - Custom date range
7401
+ */
7402
+ dateFilter?: 'today' | '7d' | '30d' | '90d' | 'all_time' | 'custom',
7403
+ endDate?: string,
7404
+ /**
7405
+ * * `day` - day
7406
+ * * `hour` - hour
7407
+ * * `week` - week
7408
+ * * `month` - month
7409
+ */
7410
+ granularity?: 'day' | 'hour' | 'week' | 'month',
7411
+ mentorUniqueId?: string,
7412
+ /**
7413
+ * * `overview` - Overall topic metrics
7414
+ * * `sessions` - Sessions over time
7415
+ * * `ratings` - Ratings over time
7416
+ * * `highlighted` - Highlighted topics
7417
+ */
7418
+ metric?: 'overview' | 'sessions' | 'ratings' | 'highlighted',
7419
+ platformKey?: string,
7420
+ startDate?: string,
7421
+ }): CancelablePromise<TopicsOverview> {
7422
+ return __request(OpenAPI, {
7423
+ method: 'GET',
7424
+ url: '/api/analytics/topics/',
7425
+ query: {
7426
+ 'date_filter': dateFilter,
7427
+ 'end_date': endDate,
7428
+ 'granularity': granularity,
7429
+ 'mentor_unique_id': mentorUniqueId,
7430
+ 'metric': metric,
7431
+ 'platform_key': platformKey,
7432
+ 'start_date': startDate,
7433
+ },
7434
+ });
7435
+ }
7436
+ /**
7437
+ * @returns TopicDetails
7438
+ * @throws ApiError
7439
+ */
7440
+ public static analyticsTopicsDetailsRetrieve({
7441
+ dateFilter = 'today',
7442
+ endDate,
7443
+ limit = 50,
7444
+ mentorUniqueId,
7445
+ page = 1,
7446
+ platformKey,
7447
+ search,
7448
+ startDate,
7449
+ }: {
7450
+ /**
7451
+ * * `today` - Today only
7452
+ * * `7d` - Last 7 days
7453
+ * * `30d` - Last 30 days
7454
+ * * `90d` - Last 90 days
7455
+ * * `all_time` - All time
7456
+ * * `custom` - Custom date range
7457
+ */
7458
+ dateFilter?: 'today' | '7d' | '30d' | '90d' | 'all_time' | 'custom',
7459
+ endDate?: string,
7460
+ limit?: number,
7461
+ mentorUniqueId?: string,
7462
+ page?: number,
7463
+ platformKey?: string,
7464
+ /**
7465
+ * Search by topic name
7466
+ */
7467
+ search?: string,
7468
+ startDate?: string,
7469
+ }): CancelablePromise<TopicDetails> {
7470
+ return __request(OpenAPI, {
7471
+ method: 'GET',
7472
+ url: '/api/analytics/topics/details/',
7473
+ query: {
7474
+ 'date_filter': dateFilter,
7475
+ 'end_date': endDate,
7476
+ 'limit': limit,
7477
+ 'mentor_unique_id': mentorUniqueId,
7478
+ 'page': page,
7479
+ 'platform_key': platformKey,
7480
+ 'search': search,
7481
+ 'start_date': startDate,
7482
+ },
7483
+ });
7484
+ }
7218
7485
  /**
7219
7486
  *
7220
7487
  * User Analytics API - Comprehensive user activity metrics and trends.
@@ -7261,20 +7528,18 @@ export class AiAnalyticsService {
7261
7528
  * * `7d` - Last 7 days
7262
7529
  * * `30d` - Last 30 days
7263
7530
  * * `90d` - Last 90 days
7531
+ * * `all_time` - All time
7264
7532
  * * `custom` - Custom date range
7265
7533
  */
7266
- dateFilter?: 'today' | '7d' | '30d' | '90d' | 'custom',
7534
+ dateFilter?: 'today' | '7d' | '30d' | '90d' | 'all_time' | 'custom',
7267
7535
  endDate?: string,
7268
7536
  /**
7269
- * * `hour` - hour
7270
7537
  * * `day` - day
7538
+ * * `hour` - hour
7271
7539
  * * `week` - week
7272
7540
  * * `month` - month
7273
7541
  */
7274
- granularity?: 'hour' | 'day' | 'week' | 'month',
7275
- /**
7276
- * Filter by specific mentor unique ID
7277
- */
7542
+ granularity?: 'day' | 'hour' | 'week' | 'month',
7278
7543
  mentorUniqueId?: string,
7279
7544
  platformKey?: string,
7280
7545
  startDate?: string,
@@ -7352,9 +7617,6 @@ export class AiAnalyticsService {
7352
7617
  dateFilter?: 'today' | '7d' | '30d' | '90d' | 'all_time' | 'custom',
7353
7618
  endDate?: string,
7354
7619
  limit?: number,
7355
- /**
7356
- * Filter by specific mentor unique ID
7357
- */
7358
7620
  mentorUniqueId?: string,
7359
7621
  page?: number,
7360
7622
  platformKey?: string,
@@ -462,23 +462,28 @@ export class AnalyticsService {
462
462
  public static analyticsTimeRetrieve({
463
463
  dateFilter = 'today',
464
464
  endDate,
465
+ granularity = 'hour',
465
466
  mentorUniqueId,
466
467
  platformKey,
467
468
  startDate,
468
469
  }: {
469
470
  /**
470
471
  * * `today` - Today only
471
- * * `yesterday` - Yesterday only
472
472
  * * `7d` - Last 7 days
473
473
  * * `30d` - Last 30 days
474
474
  * * `90d` - Last 90 days
475
+ * * `all_time` - All time
475
476
  * * `custom` - Custom date range
476
477
  */
477
- dateFilter?: 'today' | 'yesterday' | '7d' | '30d' | '90d' | 'custom',
478
+ dateFilter?: 'today' | '7d' | '30d' | '90d' | 'all_time' | 'custom',
478
479
  endDate?: string,
479
480
  /**
480
- * Filter by specific mentor unique ID
481
+ * * `day` - day
482
+ * * `hour` - hour
483
+ * * `week` - week
484
+ * * `month` - month
481
485
  */
486
+ granularity?: 'day' | 'hour' | 'week' | 'month',
482
487
  mentorUniqueId?: string,
483
488
  platformKey?: string,
484
489
  startDate?: string,
@@ -489,6 +494,7 @@ export class AnalyticsService {
489
494
  query: {
490
495
  'date_filter': dateFilter,
491
496
  'end_date': endDate,
497
+ 'granularity': granularity,
492
498
  'mentor_unique_id': mentorUniqueId,
493
499
  'platform_key': platformKey,
494
500
  'start_date': startDate,
@@ -546,20 +552,18 @@ export class AnalyticsService {
546
552
  * * `7d` - Last 7 days
547
553
  * * `30d` - Last 30 days
548
554
  * * `90d` - Last 90 days
555
+ * * `all_time` - All time
549
556
  * * `custom` - Custom date range
550
557
  */
551
- dateFilter?: 'today' | '7d' | '30d' | '90d' | 'custom',
558
+ dateFilter?: 'today' | '7d' | '30d' | '90d' | 'all_time' | 'custom',
552
559
  endDate?: string,
553
560
  /**
554
- * * `hour` - hour
555
561
  * * `day` - day
562
+ * * `hour` - hour
556
563
  * * `week` - week
557
564
  * * `month` - month
558
565
  */
559
- granularity?: 'hour' | 'day' | 'week' | 'month',
560
- /**
561
- * Filter by specific mentor unique ID
562
- */
566
+ granularity?: 'day' | 'hour' | 'week' | 'month',
563
567
  mentorUniqueId?: string,
564
568
  platformKey?: string,
565
569
  startDate?: string,
@@ -637,9 +641,6 @@ export class AnalyticsService {
637
641
  dateFilter?: 'today' | '7d' | '30d' | '90d' | 'all_time' | 'custom',
638
642
  endDate?: string,
639
643
  limit?: number,
640
- /**
641
- * Filter by specific mentor unique ID
642
- */
643
644
  mentorUniqueId?: string,
644
645
  page?: number,
645
646
  platformKey?: string,