@iblai/iblai-api 4.6.2-dev1-ai-plus → 4.6.2-dev2-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 +696 -1667
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +696 -1666
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +696 -1667
- package/dist/index.umd.js.map +1 -1
- package/dist/types/index.d.ts +8 -39
- package/dist/types/models/BaseFinanceResponse.d.ts +37 -0
- package/dist/types/models/ComparisonInfo.d.ts +29 -0
- package/dist/types/models/FinanceDetailsResponse.d.ts +13 -0
- package/dist/types/models/FinanceFilters.d.ts +15 -0
- package/dist/types/models/MetricInfo.d.ts +5 -0
- package/dist/types/models/OvertimeData.d.ts +13 -0
- package/dist/types/models/PeriodInfo.d.ts +21 -0
- package/dist/types/services/AiAnalyticsService.d.ts +230 -0
- package/dist/types/services/AnalyticsService.d.ts +233 -0
- package/package.json +1 -1
- package/src/core/OpenAPI.ts +1 -1
- package/src/index.ts +8 -39
- package/src/models/BaseFinanceResponse.ts +42 -0
- package/src/models/ComparisonInfo.ts +34 -0
- package/src/models/FinanceDetailsResponse.ts +18 -0
- package/src/models/FinanceFilters.ts +20 -0
- package/src/models/{WebexWebhook.ts → MetricInfo.ts} +4 -3
- package/src/models/OvertimeData.ts +18 -0
- package/src/models/PeriodInfo.ts +26 -0
- package/src/services/AiAnalyticsService.ts +5305 -5000
- package/src/services/AnalyticsService.ts +314 -0
- package/dist/types/models/Bot.d.ts +0 -15
- package/dist/types/models/BotCommand.d.ts +0 -6
- package/dist/types/models/BotCreate.d.ts +0 -12
- package/dist/types/models/DataSet.d.ts +0 -21
- package/dist/types/models/DataSetCreate.d.ts +0 -12
- package/dist/types/models/DataSetStatusEnum.d.ts +0 -12
- package/dist/types/models/DiscordConfig.d.ts +0 -7
- package/dist/types/models/DiscordUserConfig.d.ts +0 -10
- package/dist/types/models/DiscordWebhook.d.ts +0 -6
- package/dist/types/models/PaginatedDataSetList.d.ts +0 -7
- package/dist/types/models/PaginatedTrainingList.d.ts +0 -7
- package/dist/types/models/PatchedBotCommand.d.ts +0 -6
- package/dist/types/models/PatchedBotCreate.d.ts +0 -12
- package/dist/types/models/PatchedDataSet.d.ts +0 -21
- package/dist/types/models/PatchedDiscordConfig.d.ts +0 -7
- package/dist/types/models/PatchedDiscordUserConfig.d.ts +0 -10
- package/dist/types/models/PatchedSlackConfig.d.ts +0 -8
- package/dist/types/models/PatchedSlackUserConfig.d.ts +0 -17
- package/dist/types/models/PatchedTeamsConfig.d.ts +0 -7
- package/dist/types/models/PatchedTrainingCreate.d.ts +0 -31
- package/dist/types/models/PatchedWebexConfig.d.ts +0 -10
- package/dist/types/models/PatchedWhatsappConfig.d.ts +0 -11
- package/dist/types/models/PatchedWhatsappUserConfig.d.ts +0 -10
- package/dist/types/models/Provider05cEnum.d.ts +0 -14
- package/dist/types/models/Provider63aEnum.d.ts +0 -6
- package/dist/types/models/SlackConfig.d.ts +0 -8
- package/dist/types/models/SlackUserConfig.d.ts +0 -17
- package/dist/types/models/SlackWebhook.d.ts +0 -6
- package/dist/types/models/TeamsConfig.d.ts +0 -7
- package/dist/types/models/TeamsWebhook.d.ts +0 -17
- package/dist/types/models/Training.d.ts +0 -41
- package/dist/types/models/TrainingCreate.d.ts +0 -31
- package/dist/types/models/WebexConfig.d.ts +0 -10
- package/dist/types/models/WebexWebhook.d.ts +0 -4
- package/dist/types/models/WhatAppWebHook.d.ts +0 -3
- package/dist/types/models/WhatsappConfig.d.ts +0 -11
- package/dist/types/models/WhatsappUserConfig.d.ts +0 -10
- package/dist/types/services/AiBotService.d.ts +0 -642
- package/dist/types/services/AiFinetuningService.d.ts +0 -232
- package/src/models/Bot.ts +0 -20
- package/src/models/BotCommand.ts +0 -11
- package/src/models/BotCreate.ts +0 -17
- package/src/models/DataSet.ts +0 -26
- package/src/models/DataSetCreate.ts +0 -17
- package/src/models/DataSetStatusEnum.ts +0 -16
- package/src/models/DiscordConfig.ts +0 -12
- package/src/models/DiscordUserConfig.ts +0 -15
- package/src/models/DiscordWebhook.ts +0 -11
- package/src/models/PaginatedDataSetList.ts +0 -12
- package/src/models/PaginatedTrainingList.ts +0 -12
- package/src/models/PatchedBotCommand.ts +0 -11
- package/src/models/PatchedBotCreate.ts +0 -17
- package/src/models/PatchedDataSet.ts +0 -26
- package/src/models/PatchedDiscordConfig.ts +0 -12
- package/src/models/PatchedDiscordUserConfig.ts +0 -15
- package/src/models/PatchedSlackConfig.ts +0 -13
- package/src/models/PatchedSlackUserConfig.ts +0 -22
- package/src/models/PatchedTeamsConfig.ts +0 -12
- package/src/models/PatchedTrainingCreate.ts +0 -36
- package/src/models/PatchedWebexConfig.ts +0 -15
- package/src/models/PatchedWhatsappConfig.ts +0 -16
- package/src/models/PatchedWhatsappUserConfig.ts +0 -15
- package/src/models/Provider05cEnum.ts +0 -18
- package/src/models/Provider63aEnum.ts +0 -10
- package/src/models/SlackConfig.ts +0 -13
- package/src/models/SlackUserConfig.ts +0 -22
- package/src/models/SlackWebhook.ts +0 -11
- package/src/models/TeamsConfig.ts +0 -12
- package/src/models/TeamsWebhook.ts +0 -22
- package/src/models/Training.ts +0 -46
- package/src/models/TrainingCreate.ts +0 -36
- package/src/models/WebexConfig.ts +0 -15
- package/src/models/WhatAppWebHook.ts +0 -8
- package/src/models/WhatsappConfig.ts +0 -16
- package/src/models/WhatsappUserConfig.ts +0 -15
- package/src/services/AiBotService.ts +0 -1330
- package/src/services/AiFinetuningService.ts +0 -472
|
@@ -0,0 +1,314 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { BaseFinanceResponse } from '../models/BaseFinanceResponse';
|
|
6
|
+
import type { FinanceDetailsResponse } from '../models/FinanceDetailsResponse';
|
|
7
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
8
|
+
import { OpenAPI } from '../core/OpenAPI';
|
|
9
|
+
import { request as __request } from '../core/request';
|
|
10
|
+
export class AnalyticsService {
|
|
11
|
+
/**
|
|
12
|
+
* Financial Analytics API - Get comprehensive cost metrics with comparison analysis.
|
|
13
|
+
*
|
|
14
|
+
* This endpoint provides period-based cost analysis (not cumulative) with support for:
|
|
15
|
+
* - Multiple time granularities and metrics
|
|
16
|
+
* - Cross-dimensional filtering
|
|
17
|
+
* - Percentage change vs comparison periods
|
|
18
|
+
* - Forward-filled time series
|
|
19
|
+
*
|
|
20
|
+
* **Examples:**
|
|
21
|
+
*
|
|
22
|
+
* **Basic Weekly Costs:**
|
|
23
|
+
* ```
|
|
24
|
+
* GET /api/v2/analytics/financial/?metric=weekly_costs&comparison_days=10
|
|
25
|
+
* ```
|
|
26
|
+
*
|
|
27
|
+
* **Platform & Mentor Filtered:**
|
|
28
|
+
* ```
|
|
29
|
+
* # Get total costs for a specific platform and mentor
|
|
30
|
+
* GET /api/v2/analytics/financial/?metric=total_costs&platform_key=web-app&mentor_unique_id=mentor-123&comparison_days=14
|
|
31
|
+
* ```
|
|
32
|
+
*
|
|
33
|
+
* **Monthly Costs by Provider:**
|
|
34
|
+
* ```
|
|
35
|
+
* GET /api/v2/analytics/financial/?metric=monthly_costs&provider=openai&granularity=month&comparison_days=30
|
|
36
|
+
* ```
|
|
37
|
+
*
|
|
38
|
+
* **Daily Costs for Specific User:**
|
|
39
|
+
* ```
|
|
40
|
+
* 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
|
|
41
|
+
* ```
|
|
42
|
+
*
|
|
43
|
+
*
|
|
44
|
+
* **Response Structure:**
|
|
45
|
+
* ```json
|
|
46
|
+
* {
|
|
47
|
+
* "metric": "weekly_costs",
|
|
48
|
+
* "value": 12.47,
|
|
49
|
+
* "percentage_change": 8.5,
|
|
50
|
+
* "overtime": [
|
|
51
|
+
* {"date": "2025-01-06", "value": 2.89},
|
|
52
|
+
* {"date": "2025-01-13", "value": 3.12}
|
|
53
|
+
* ],
|
|
54
|
+
* "period_info": {
|
|
55
|
+
* "start_date": "2025-01-01",
|
|
56
|
+
* "end_date": "2025-01-31",
|
|
57
|
+
* "period_days": 31
|
|
58
|
+
* },
|
|
59
|
+
* "comparison_info": {
|
|
60
|
+
* "previous_period_value": 11.50,
|
|
61
|
+
* ...
|
|
62
|
+
* }
|
|
63
|
+
* }
|
|
64
|
+
* ```
|
|
65
|
+
* @returns BaseFinanceResponse Successful financial metrics response with period-based cost data
|
|
66
|
+
* @throws ApiError
|
|
67
|
+
*/
|
|
68
|
+
public static analyticsFinancialRetrieve({
|
|
69
|
+
metric,
|
|
70
|
+
allTime = false,
|
|
71
|
+
comparisonDays,
|
|
72
|
+
endDate,
|
|
73
|
+
fillMethod = 'zero',
|
|
74
|
+
granularity = 'day',
|
|
75
|
+
llmModel,
|
|
76
|
+
mentorUniqueId,
|
|
77
|
+
platformKey,
|
|
78
|
+
provider,
|
|
79
|
+
showOvertime = true,
|
|
80
|
+
startDate,
|
|
81
|
+
username,
|
|
82
|
+
}: {
|
|
83
|
+
/**
|
|
84
|
+
* Type of financial metric to retrieve
|
|
85
|
+
*
|
|
86
|
+
* * `total_costs` - Total costs for selected timeframe
|
|
87
|
+
* * `weekly_costs` - Costs for current/selected week
|
|
88
|
+
* * `monthly_costs` - Costs for current/selected month
|
|
89
|
+
*/
|
|
90
|
+
metric: 'total_costs' | 'weekly_costs' | 'monthly_costs',
|
|
91
|
+
/**
|
|
92
|
+
* calculate from platform inception (ignores date filters)
|
|
93
|
+
*/
|
|
94
|
+
allTime?: boolean,
|
|
95
|
+
/**
|
|
96
|
+
* Number of days for comparison period to calculate percentage change (e.g., 10 for 10-day comparison)
|
|
97
|
+
*/
|
|
98
|
+
comparisonDays?: number,
|
|
99
|
+
/**
|
|
100
|
+
* End date for analysis (YYYY-MM-DD). Defaults to today.
|
|
101
|
+
*/
|
|
102
|
+
endDate?: string,
|
|
103
|
+
/**
|
|
104
|
+
* Method for filling missing time periods in overtime data
|
|
105
|
+
*
|
|
106
|
+
* * `zero` - Fill missing periods with zero
|
|
107
|
+
* * `previous` - Fill missing periods with previous value
|
|
108
|
+
*/
|
|
109
|
+
fillMethod?: 'zero' | 'previous',
|
|
110
|
+
/**
|
|
111
|
+
* Time granularity for overtime series data
|
|
112
|
+
*
|
|
113
|
+
* * `day` - Daily data points
|
|
114
|
+
* * `week` - Weekly data points
|
|
115
|
+
* * `month` - Monthly data points
|
|
116
|
+
*/
|
|
117
|
+
granularity?: 'day' | 'week' | 'month',
|
|
118
|
+
/**
|
|
119
|
+
* Filter by specific LLM model (e.g., gpt-4o, claude-3-5-sonnet)
|
|
120
|
+
*/
|
|
121
|
+
llmModel?: string,
|
|
122
|
+
/**
|
|
123
|
+
* Filter by specific mentor ID
|
|
124
|
+
*/
|
|
125
|
+
mentorUniqueId?: string,
|
|
126
|
+
/**
|
|
127
|
+
* Filter by specific platform key
|
|
128
|
+
*/
|
|
129
|
+
platformKey?: string,
|
|
130
|
+
/**
|
|
131
|
+
* Filter by AI provider
|
|
132
|
+
*
|
|
133
|
+
* * `openai` - OpenAI
|
|
134
|
+
* * `anthropic` - Anthropic
|
|
135
|
+
* * `azure` - Azure
|
|
136
|
+
* * `google` - Google
|
|
137
|
+
* * `meta` - Meta
|
|
138
|
+
* * `other` - Other
|
|
139
|
+
*/
|
|
140
|
+
provider?: 'openai' | 'anthropic' | 'azure' | 'google' | 'meta' | 'other',
|
|
141
|
+
/**
|
|
142
|
+
* Whether to include overtime series data in response
|
|
143
|
+
*/
|
|
144
|
+
showOvertime?: boolean,
|
|
145
|
+
/**
|
|
146
|
+
* Start date for analysis (YYYY-MM-DD). Defaults to 30 days ago.
|
|
147
|
+
*/
|
|
148
|
+
startDate?: string,
|
|
149
|
+
/**
|
|
150
|
+
* Filter by specific username - returns costs for this user only
|
|
151
|
+
*/
|
|
152
|
+
username?: string,
|
|
153
|
+
}): CancelablePromise<BaseFinanceResponse> {
|
|
154
|
+
return __request(OpenAPI, {
|
|
155
|
+
method: 'GET',
|
|
156
|
+
url: '/api/analytics/financial/',
|
|
157
|
+
query: {
|
|
158
|
+
'all_time': allTime,
|
|
159
|
+
'comparison_days': comparisonDays,
|
|
160
|
+
'end_date': endDate,
|
|
161
|
+
'fill_method': fillMethod,
|
|
162
|
+
'granularity': granularity,
|
|
163
|
+
'llm_model': llmModel,
|
|
164
|
+
'mentor_unique_id': mentorUniqueId,
|
|
165
|
+
'metric': metric,
|
|
166
|
+
'platform_key': platformKey,
|
|
167
|
+
'provider': provider,
|
|
168
|
+
'show_overtime': showOvertime,
|
|
169
|
+
'start_date': startDate,
|
|
170
|
+
'username': username,
|
|
171
|
+
},
|
|
172
|
+
errors: {
|
|
173
|
+
400: `Bad Request - Invalid query parameters`,
|
|
174
|
+
403: `Forbidden - Insufficient permissions`,
|
|
175
|
+
500: `Internal Server Error`,
|
|
176
|
+
},
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* Financial Details Analytics API – paginated cost tables with flexible grouping.
|
|
181
|
+
*
|
|
182
|
+
* This endpoint returns tabular cost metrics aggregated by the dimension
|
|
183
|
+
* specified via the `group_by` query parameter. One or more KPI columns
|
|
184
|
+
* can be requested through the comma-separated `metrics` list while
|
|
185
|
+
* typical filters (date range, provider, platform_key, user, etc.) narrow the
|
|
186
|
+
* dataset. Results are paginated with `page` / `limit`.
|
|
187
|
+
*
|
|
188
|
+
* **Required query parameters**
|
|
189
|
+
* - group_by – provider | llm_model | username | user_id | date | session_id
|
|
190
|
+
* - metrics – csv list of KPI names, e.g. total_cost, sessions, cost_per_session
|
|
191
|
+
*
|
|
192
|
+
* **Shared optional filters**
|
|
193
|
+
* - start_date, end_date – ISO yyyy-mm-dd (ignored when all_time=true)
|
|
194
|
+
* - platform_key – tenant isolation
|
|
195
|
+
* - mentor_unique_id – filter to one mentor
|
|
196
|
+
* - username / user_id – filter to a learner
|
|
197
|
+
* - provider / llm_model – filter to LLM provider / model
|
|
198
|
+
* - all_time – true → lifetime totals
|
|
199
|
+
* - page (default 1), limit (default 50)
|
|
200
|
+
*
|
|
201
|
+
* **Examples**
|
|
202
|
+
* --------
|
|
203
|
+
* 1. Cost by provider for the last week
|
|
204
|
+
* ```
|
|
205
|
+
* GET /api/v2/analytics/financial/details?
|
|
206
|
+
* group_by=provider&
|
|
207
|
+
* metrics=total_cost&
|
|
208
|
+
* start_date=2025-01-01&
|
|
209
|
+
* end_date=2025-01-07&
|
|
210
|
+
* page=1&limit=10
|
|
211
|
+
* ```
|
|
212
|
+
*
|
|
213
|
+
* 2. Lifetime cost per user with extra KPIs
|
|
214
|
+
* ```
|
|
215
|
+
* GET /api/v2/analytics/financial/details?
|
|
216
|
+
* group_by=username&
|
|
217
|
+
* metrics=total_cost,sessions,cost_per_session&
|
|
218
|
+
* all_time=true&page=1&limit=50
|
|
219
|
+
* ```
|
|
220
|
+
* 3. Cost by LLM model with tenant filter
|
|
221
|
+
* ```
|
|
222
|
+
* GET /api/v2/analytics/financial/details?
|
|
223
|
+
* group_by=llm_model&
|
|
224
|
+
* metrics=total_cost&
|
|
225
|
+
* platform_key=web-app&
|
|
226
|
+
* start_date=2025-01-01&end_date=2025-01-31
|
|
227
|
+
* ```
|
|
228
|
+
* Response structure
|
|
229
|
+
* -------------------
|
|
230
|
+
* ```
|
|
231
|
+
* {
|
|
232
|
+
* "page": 1,
|
|
233
|
+
* "limit": 10,
|
|
234
|
+
* "total_pages": 1,
|
|
235
|
+
* "total_records": 3,
|
|
236
|
+
* "rows": [
|
|
237
|
+
* {"provider": "openai", "total_cost": 2.5},
|
|
238
|
+
* {"provider": "anthropic", "total_cost": 1.0},
|
|
239
|
+
* {"provider": "azure", "total_cost": 0.5}
|
|
240
|
+
* ],
|
|
241
|
+
* "metrics": [
|
|
242
|
+
* {
|
|
243
|
+
* "name": "total_cost",
|
|
244
|
+
* "unit": "$",
|
|
245
|
+
* "description": "Cost for this entity in period"
|
|
246
|
+
* }
|
|
247
|
+
* ],
|
|
248
|
+
* "total_cost": 4.0 // optional grand-total when available
|
|
249
|
+
* }
|
|
250
|
+
* ``
|
|
251
|
+
* @returns FinanceDetailsResponse
|
|
252
|
+
* @throws ApiError
|
|
253
|
+
*/
|
|
254
|
+
public static analyticsFinancialDetailsRetrieve({
|
|
255
|
+
groupBy,
|
|
256
|
+
allTime = false,
|
|
257
|
+
endDate,
|
|
258
|
+
limit = 50,
|
|
259
|
+
llmModel,
|
|
260
|
+
mentorUniqueId,
|
|
261
|
+
metrics = 'total_cost',
|
|
262
|
+
page = 1,
|
|
263
|
+
platformKey,
|
|
264
|
+
provider,
|
|
265
|
+
startDate,
|
|
266
|
+
username,
|
|
267
|
+
}: {
|
|
268
|
+
/**
|
|
269
|
+
* Dimension to group by
|
|
270
|
+
*
|
|
271
|
+
* * `provider` - Group by provider
|
|
272
|
+
* * `llm_model` - Group by LLM model
|
|
273
|
+
* * `username` - Group by username
|
|
274
|
+
*/
|
|
275
|
+
groupBy: 'provider' | 'llm_model' | 'username',
|
|
276
|
+
allTime?: boolean,
|
|
277
|
+
endDate?: string,
|
|
278
|
+
limit?: number,
|
|
279
|
+
llmModel?: string,
|
|
280
|
+
mentorUniqueId?: string,
|
|
281
|
+
/**
|
|
282
|
+
* Comma-separated list of metrics (e.g. total_cost,sessions, last_active)
|
|
283
|
+
*/
|
|
284
|
+
metrics?: string,
|
|
285
|
+
page?: number,
|
|
286
|
+
platformKey?: string,
|
|
287
|
+
provider?: string,
|
|
288
|
+
startDate?: string,
|
|
289
|
+
username?: string,
|
|
290
|
+
}): CancelablePromise<FinanceDetailsResponse> {
|
|
291
|
+
return __request(OpenAPI, {
|
|
292
|
+
method: 'GET',
|
|
293
|
+
url: '/api/analytics/financial/details/',
|
|
294
|
+
query: {
|
|
295
|
+
'all_time': allTime,
|
|
296
|
+
'end_date': endDate,
|
|
297
|
+
'group_by': groupBy,
|
|
298
|
+
'limit': limit,
|
|
299
|
+
'llm_model': llmModel,
|
|
300
|
+
'mentor_unique_id': mentorUniqueId,
|
|
301
|
+
'metrics': metrics,
|
|
302
|
+
'page': page,
|
|
303
|
+
'platform_key': platformKey,
|
|
304
|
+
'provider': provider,
|
|
305
|
+
'start_date': startDate,
|
|
306
|
+
'username': username,
|
|
307
|
+
},
|
|
308
|
+
errors: {
|
|
309
|
+
400: `Bad Request – invalid query params`,
|
|
310
|
+
500: `Internal Server Error`,
|
|
311
|
+
},
|
|
312
|
+
});
|
|
313
|
+
}
|
|
314
|
+
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { Provider05cEnum } from './Provider05cEnum';
|
|
2
|
-
export type Bot = {
|
|
3
|
-
readonly id: number;
|
|
4
|
-
readonly platform: number;
|
|
5
|
-
readonly tenant: string;
|
|
6
|
-
name: string;
|
|
7
|
-
provider: Provider05cEnum;
|
|
8
|
-
readonly is_configured: boolean;
|
|
9
|
-
slack_config: number;
|
|
10
|
-
readonly discord_config: number;
|
|
11
|
-
readonly webex_config: number;
|
|
12
|
-
readonly whatsapp_config: number;
|
|
13
|
-
readonly teams_config: number;
|
|
14
|
-
readonly webhook_url: string;
|
|
15
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { Provider05cEnum } from './Provider05cEnum';
|
|
2
|
-
export type BotCreate = {
|
|
3
|
-
readonly id: number;
|
|
4
|
-
name: string;
|
|
5
|
-
provider: Provider05cEnum;
|
|
6
|
-
readonly is_configured: boolean;
|
|
7
|
-
readonly webhook_url: string;
|
|
8
|
-
readonly discord_config: number;
|
|
9
|
-
readonly webex_config: number;
|
|
10
|
-
readonly whatsapp_config: number;
|
|
11
|
-
readonly teams_config: number;
|
|
12
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { DataSetStatusEnum } from './DataSetStatusEnum';
|
|
2
|
-
export type DataSet = {
|
|
3
|
-
readonly id: string;
|
|
4
|
-
readonly platform: Record<string, (string | number)> | null;
|
|
5
|
-
name: string;
|
|
6
|
-
/**
|
|
7
|
-
* (if any) Special instructions for generating the dataset. This could be requirements on tone, language, style, etc.
|
|
8
|
-
*/
|
|
9
|
-
prompt?: string;
|
|
10
|
-
source_url?: string;
|
|
11
|
-
source_file?: string;
|
|
12
|
-
status?: DataSetStatusEnum;
|
|
13
|
-
num_data_points?: number;
|
|
14
|
-
train_split?: number;
|
|
15
|
-
train_file?: string;
|
|
16
|
-
test_file?: string;
|
|
17
|
-
retry_attempts?: number;
|
|
18
|
-
error_log?: string;
|
|
19
|
-
readonly date_created: string;
|
|
20
|
-
readonly last_modified: string;
|
|
21
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export type DataSetCreate = {
|
|
2
|
-
readonly id: string;
|
|
3
|
-
name: string;
|
|
4
|
-
source_url?: string;
|
|
5
|
-
source_file?: string;
|
|
6
|
-
num_data_points?: number;
|
|
7
|
-
train_split?: number;
|
|
8
|
-
/**
|
|
9
|
-
* (if any) Special instructions for generating the dataset. This could be requirements on tone, language, style, etc.
|
|
10
|
-
*/
|
|
11
|
-
prompt?: string;
|
|
12
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* * `pending` - Pending
|
|
3
|
-
* * `processing` - Processing
|
|
4
|
-
* * `completed` - Completed
|
|
5
|
-
* * `failed` - Failed
|
|
6
|
-
*/
|
|
7
|
-
export declare enum DataSetStatusEnum {
|
|
8
|
-
PENDING = "pending",
|
|
9
|
-
PROCESSING = "processing",
|
|
10
|
-
COMPLETED = "completed",
|
|
11
|
-
FAILED = "failed"
|
|
12
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { Provider05cEnum } from './Provider05cEnum';
|
|
2
|
-
export type PatchedBotCreate = {
|
|
3
|
-
readonly id?: number;
|
|
4
|
-
name?: string;
|
|
5
|
-
provider?: Provider05cEnum;
|
|
6
|
-
readonly is_configured?: boolean;
|
|
7
|
-
readonly webhook_url?: string;
|
|
8
|
-
readonly discord_config?: number;
|
|
9
|
-
readonly webex_config?: number;
|
|
10
|
-
readonly whatsapp_config?: number;
|
|
11
|
-
readonly teams_config?: number;
|
|
12
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { DataSetStatusEnum } from './DataSetStatusEnum';
|
|
2
|
-
export type PatchedDataSet = {
|
|
3
|
-
readonly id?: string;
|
|
4
|
-
readonly platform?: Record<string, (string | number)> | null;
|
|
5
|
-
name?: string;
|
|
6
|
-
/**
|
|
7
|
-
* (if any) Special instructions for generating the dataset. This could be requirements on tone, language, style, etc.
|
|
8
|
-
*/
|
|
9
|
-
prompt?: string;
|
|
10
|
-
source_url?: string;
|
|
11
|
-
source_file?: string;
|
|
12
|
-
status?: DataSetStatusEnum;
|
|
13
|
-
num_data_points?: number;
|
|
14
|
-
train_split?: number;
|
|
15
|
-
train_file?: string;
|
|
16
|
-
test_file?: string;
|
|
17
|
-
retry_attempts?: number;
|
|
18
|
-
error_log?: string;
|
|
19
|
-
readonly date_created?: string;
|
|
20
|
-
readonly last_modified?: string;
|
|
21
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export type PatchedSlackUserConfig = {
|
|
2
|
-
readonly id?: number;
|
|
3
|
-
/**
|
|
4
|
-
* edX user ID
|
|
5
|
-
*/
|
|
6
|
-
readonly user?: number;
|
|
7
|
-
/**
|
|
8
|
-
* Team Domain in the stated slack workspace. This is also the workspace name.
|
|
9
|
-
*/
|
|
10
|
-
slack_team_domain?: string;
|
|
11
|
-
/**
|
|
12
|
-
* Username in the stated slack workspace
|
|
13
|
-
*/
|
|
14
|
-
slack_username?: string;
|
|
15
|
-
readonly date_created?: string;
|
|
16
|
-
readonly last_modified?: string;
|
|
17
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import type { Provider63aEnum } from './Provider63aEnum';
|
|
2
|
-
export type PatchedTrainingCreate = {
|
|
3
|
-
readonly id?: string;
|
|
4
|
-
project_name?: string;
|
|
5
|
-
dataset?: string;
|
|
6
|
-
base_model_name?: string;
|
|
7
|
-
provider?: Provider63aEnum;
|
|
8
|
-
text_column?: string;
|
|
9
|
-
learning_rate?: number;
|
|
10
|
-
batch_size?: number;
|
|
11
|
-
num_epochs?: number;
|
|
12
|
-
block_size?: number;
|
|
13
|
-
warmup_ratio?: number;
|
|
14
|
-
lora_r?: number;
|
|
15
|
-
lora_alpha?: number;
|
|
16
|
-
lora_dropout?: number;
|
|
17
|
-
weight_decay?: number;
|
|
18
|
-
gradient_accumulation?: number;
|
|
19
|
-
use_peft?: boolean;
|
|
20
|
-
use_fp16?: boolean;
|
|
21
|
-
use_int4?: boolean;
|
|
22
|
-
push_to_hub?: boolean;
|
|
23
|
-
repo_id?: string;
|
|
24
|
-
preprocess_dataset?: boolean;
|
|
25
|
-
prompt_column?: string;
|
|
26
|
-
prompt_prefix?: string;
|
|
27
|
-
prompt_suffix?: string;
|
|
28
|
-
response_prefix?: string;
|
|
29
|
-
readonly date_created?: string;
|
|
30
|
-
readonly last_modified?: string;
|
|
31
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export type PatchedWhatsappConfig = {
|
|
2
|
-
readonly id?: number;
|
|
3
|
-
readonly bot?: number;
|
|
4
|
-
phone_number_id?: string;
|
|
5
|
-
application_secret?: string;
|
|
6
|
-
webhook_verification_token?: string;
|
|
7
|
-
/**
|
|
8
|
-
* Access token to the bot. This can also be a temporary access token.
|
|
9
|
-
*/
|
|
10
|
-
access_token?: string;
|
|
11
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* * `webex` - Webex
|
|
3
|
-
* * `slack` - Slack
|
|
4
|
-
* * `whatsapp` - Whatsapp
|
|
5
|
-
* * `discord` - Discord
|
|
6
|
-
* * `teams` - Teams
|
|
7
|
-
*/
|
|
8
|
-
export declare enum Provider05cEnum {
|
|
9
|
-
WEBEX = "webex",
|
|
10
|
-
SLACK = "slack",
|
|
11
|
-
WHATSAPP = "whatsapp",
|
|
12
|
-
DISCORD = "discord",
|
|
13
|
-
TEAMS = "teams"
|
|
14
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export type SlackUserConfig = {
|
|
2
|
-
readonly id: number;
|
|
3
|
-
/**
|
|
4
|
-
* edX user ID
|
|
5
|
-
*/
|
|
6
|
-
readonly user: number;
|
|
7
|
-
/**
|
|
8
|
-
* Team Domain in the stated slack workspace. This is also the workspace name.
|
|
9
|
-
*/
|
|
10
|
-
slack_team_domain: string;
|
|
11
|
-
/**
|
|
12
|
-
* Username in the stated slack workspace
|
|
13
|
-
*/
|
|
14
|
-
slack_username: string;
|
|
15
|
-
readonly date_created: string;
|
|
16
|
-
readonly last_modified: string;
|
|
17
|
-
};
|