@iblai/iblai-api 4.7.3-ai → 4.7.3-ai-plus

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 (88) hide show
  1. package/dist/index.cjs.js +1394 -1
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.esm.js +1393 -2
  4. package/dist/index.esm.js.map +1 -1
  5. package/dist/index.umd.js +1394 -1
  6. package/dist/index.umd.js.map +1 -1
  7. package/dist/types/index.d.ts +39 -0
  8. package/dist/types/models/Bot.d.ts +15 -0
  9. package/dist/types/models/BotCommand.d.ts +6 -0
  10. package/dist/types/models/BotCreate.d.ts +12 -0
  11. package/dist/types/models/DataSet.d.ts +21 -0
  12. package/dist/types/models/DataSetCreate.d.ts +12 -0
  13. package/dist/types/models/DataSetStatusEnum.d.ts +12 -0
  14. package/dist/types/models/DiscordConfig.d.ts +7 -0
  15. package/dist/types/models/DiscordUserConfig.d.ts +10 -0
  16. package/dist/types/models/DiscordWebhook.d.ts +6 -0
  17. package/dist/types/models/PaginatedDataSetList.d.ts +7 -0
  18. package/dist/types/models/PaginatedTrainingList.d.ts +7 -0
  19. package/dist/types/models/PatchedBotCommand.d.ts +6 -0
  20. package/dist/types/models/PatchedBotCreate.d.ts +12 -0
  21. package/dist/types/models/PatchedDataSet.d.ts +21 -0
  22. package/dist/types/models/PatchedDiscordConfig.d.ts +7 -0
  23. package/dist/types/models/PatchedDiscordUserConfig.d.ts +10 -0
  24. package/dist/types/models/PatchedSlackConfig.d.ts +8 -0
  25. package/dist/types/models/PatchedSlackUserConfig.d.ts +17 -0
  26. package/dist/types/models/PatchedTeamsConfig.d.ts +7 -0
  27. package/dist/types/models/PatchedTrainingCreate.d.ts +31 -0
  28. package/dist/types/models/PatchedWebexConfig.d.ts +10 -0
  29. package/dist/types/models/PatchedWhatsappConfig.d.ts +11 -0
  30. package/dist/types/models/PatchedWhatsappUserConfig.d.ts +10 -0
  31. package/dist/types/models/Provider05cEnum.d.ts +14 -0
  32. package/dist/types/models/Provider63aEnum.d.ts +6 -0
  33. package/dist/types/models/SlackConfig.d.ts +8 -0
  34. package/dist/types/models/SlackUserConfig.d.ts +17 -0
  35. package/dist/types/models/SlackWebhook.d.ts +6 -0
  36. package/dist/types/models/TeamsConfig.d.ts +7 -0
  37. package/dist/types/models/TeamsWebhook.d.ts +17 -0
  38. package/dist/types/models/Training.d.ts +41 -0
  39. package/dist/types/models/TrainingCreate.d.ts +31 -0
  40. package/dist/types/models/WebexConfig.d.ts +10 -0
  41. package/dist/types/models/WebexWebhook.d.ts +4 -0
  42. package/dist/types/models/WhatAppWebHook.d.ts +3 -0
  43. package/dist/types/models/WhatsappConfig.d.ts +11 -0
  44. package/dist/types/models/WhatsappUserConfig.d.ts +10 -0
  45. package/dist/types/services/AiBotService.d.ts +642 -0
  46. package/dist/types/services/AiFinetuningService.d.ts +232 -0
  47. package/package.json +1 -1
  48. package/src/core/OpenAPI.ts +1 -1
  49. package/src/index.ts +39 -0
  50. package/src/models/Bot.ts +20 -0
  51. package/src/models/BotCommand.ts +11 -0
  52. package/src/models/BotCreate.ts +17 -0
  53. package/src/models/DataSet.ts +26 -0
  54. package/src/models/DataSetCreate.ts +17 -0
  55. package/src/models/DataSetStatusEnum.ts +16 -0
  56. package/src/models/DiscordConfig.ts +12 -0
  57. package/src/models/DiscordUserConfig.ts +15 -0
  58. package/src/models/DiscordWebhook.ts +11 -0
  59. package/src/models/PaginatedDataSetList.ts +12 -0
  60. package/src/models/PaginatedTrainingList.ts +12 -0
  61. package/src/models/PatchedBotCommand.ts +11 -0
  62. package/src/models/PatchedBotCreate.ts +17 -0
  63. package/src/models/PatchedDataSet.ts +26 -0
  64. package/src/models/PatchedDiscordConfig.ts +12 -0
  65. package/src/models/PatchedDiscordUserConfig.ts +15 -0
  66. package/src/models/PatchedSlackConfig.ts +13 -0
  67. package/src/models/PatchedSlackUserConfig.ts +22 -0
  68. package/src/models/PatchedTeamsConfig.ts +12 -0
  69. package/src/models/PatchedTrainingCreate.ts +36 -0
  70. package/src/models/PatchedWebexConfig.ts +15 -0
  71. package/src/models/PatchedWhatsappConfig.ts +16 -0
  72. package/src/models/PatchedWhatsappUserConfig.ts +15 -0
  73. package/src/models/Provider05cEnum.ts +18 -0
  74. package/src/models/Provider63aEnum.ts +10 -0
  75. package/src/models/SlackConfig.ts +13 -0
  76. package/src/models/SlackUserConfig.ts +22 -0
  77. package/src/models/SlackWebhook.ts +11 -0
  78. package/src/models/TeamsConfig.ts +12 -0
  79. package/src/models/TeamsWebhook.ts +22 -0
  80. package/src/models/Training.ts +46 -0
  81. package/src/models/TrainingCreate.ts +36 -0
  82. package/src/models/WebexConfig.ts +15 -0
  83. package/src/models/WebexWebhook.ts +9 -0
  84. package/src/models/WhatAppWebHook.ts +8 -0
  85. package/src/models/WhatsappConfig.ts +16 -0
  86. package/src/models/WhatsappUserConfig.ts +15 -0
  87. package/src/services/AiBotService.ts +1330 -0
  88. package/src/services/AiFinetuningService.ts +472 -0
@@ -0,0 +1,8 @@
1
+ export type SlackConfig = {
2
+ readonly id: number;
3
+ bot: number;
4
+ client_id: string;
5
+ client_secret: string;
6
+ app_token: string;
7
+ verification_token: string;
8
+ };
@@ -0,0 +1,17 @@
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
+ };
@@ -0,0 +1,6 @@
1
+ export type SlackWebhook = {
2
+ type: string;
3
+ event: Record<string, any>;
4
+ command: string;
5
+ response_url: string;
6
+ };
@@ -0,0 +1,7 @@
1
+ export type TeamsConfig = {
2
+ readonly id: number;
3
+ readonly bot: number;
4
+ client_id: string;
5
+ client_secret: string;
6
+ verification_token?: string;
7
+ };
@@ -0,0 +1,17 @@
1
+ export type TeamsWebhook = {
2
+ id?: string | null;
3
+ type?: string | null;
4
+ channelData?: Record<string, any> | null;
5
+ entities?: Array<any> | null;
6
+ text?: string | null;
7
+ locale?: string | null;
8
+ textFormat?: string | null;
9
+ recipient?: Record<string, any> | null;
10
+ conversation?: Record<string, any> | null;
11
+ from_?: Record<string, any> | null;
12
+ channelId?: string | null;
13
+ serviceUrl?: string | null;
14
+ localTimezone?: string | null;
15
+ localTimestamp?: string | null;
16
+ timestamp?: string | null;
17
+ };
@@ -0,0 +1,41 @@
1
+ import type { DataSet } from './DataSet';
2
+ import type { Provider63aEnum } from './Provider63aEnum';
3
+ import type { TrainingStatusEnum } from './TrainingStatusEnum';
4
+ export type Training = {
5
+ id?: string;
6
+ dataset: DataSet;
7
+ project_name: string;
8
+ metadata?: any;
9
+ status?: TrainingStatusEnum;
10
+ retry_attempts?: number;
11
+ fine_tuned_model?: string;
12
+ provider?: Provider63aEnum;
13
+ base_model_name: string;
14
+ text_column?: string;
15
+ learning_rate?: number;
16
+ batch_size?: number;
17
+ num_epochs?: number;
18
+ block_size?: number;
19
+ warmup_ratio?: number;
20
+ lora_r?: number;
21
+ lora_alpha?: number;
22
+ lora_dropout?: number;
23
+ weight_decay?: number;
24
+ gradient_accumulation?: number;
25
+ use_peft?: boolean;
26
+ use_fp16?: boolean;
27
+ use_int4?: boolean;
28
+ push_to_hub?: boolean;
29
+ repo_id?: string;
30
+ preprocess_dataset?: boolean;
31
+ prompt_column?: string;
32
+ response_column?: string;
33
+ prompt_prefix?: string;
34
+ prompt_suffix?: string;
35
+ response_prefix?: string;
36
+ response_suffix?: string;
37
+ error_log?: string;
38
+ readonly date_created: string;
39
+ readonly last_modified: string;
40
+ platform: number;
41
+ };
@@ -0,0 +1,31 @@
1
+ import type { Provider63aEnum } from './Provider63aEnum';
2
+ export type TrainingCreate = {
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
+ };
@@ -0,0 +1,10 @@
1
+ export type WebexConfig = {
2
+ readonly id: number;
3
+ readonly bot: number;
4
+ /**
5
+ * Bot id from webex
6
+ */
7
+ webex_bot_id: string;
8
+ bot_access_token: string;
9
+ bot_username: string;
10
+ };
@@ -0,0 +1,4 @@
1
+ export type WebexWebhook = {
2
+ data: Record<string, any>;
3
+ resource: string;
4
+ };
@@ -0,0 +1,3 @@
1
+ export type WhatAppWebHook = {
2
+ entry: Array<Record<string, any>>;
3
+ };
@@ -0,0 +1,11 @@
1
+ export type WhatsappConfig = {
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
+ };
@@ -0,0 +1,10 @@
1
+ export type WhatsappUserConfig = {
2
+ readonly id: number;
3
+ /**
4
+ * edX user ID
5
+ */
6
+ readonly user: number;
7
+ phone_number: string;
8
+ readonly date_created: string;
9
+ readonly last_modified: string;
10
+ };