|
1 | 1 |
|
| 2 | +/** |
| 3 | + * Params of aiplacement_editor_generate_image WS. |
| 4 | + * |
| 5 | + * WS Description: Generate image for the HTML Text editor AI Placement |
| 6 | + */ |
| 7 | +type AiplacementEditorGenerateImageWSParams = { |
| 8 | + contextid: number; // The context ID. |
| 9 | + prompttext: string; // The prompt text for the AI service. |
| 10 | + aspectratio: string; // The aspect ratio of the image. |
| 11 | + quality: string; // The quality of the image. |
| 12 | + numimages?: number; // The number of images to generate. |
| 13 | + style?: string; // The style of the image. |
| 14 | +}; |
| 15 | + |
| 16 | +/** |
| 17 | + * Data returned by aiplacement_editor_generate_image WS. |
| 18 | + * |
| 19 | + * WS Description: Generate image for the HTML Text editor AI Placement |
| 20 | + */ |
| 21 | +export type AiplacementEditorGenerateImageWSResponse = { |
| 22 | + success: boolean; // Was the request successful. |
| 23 | + revisedprompt?: string; // Revised prompt generated by the AI. |
| 24 | + drafturl?: string; // Draft file URL for the image. |
| 25 | + errorcode?: number; // Error code if any. |
| 26 | + error?: string; // Error message if any. |
| 27 | +}; |
| 28 | + |
| 29 | +/** |
| 30 | + * Params of aiplacement_editor_generate_text WS. |
| 31 | + * |
| 32 | + * WS Description: Generate text for the HTML Text editor AI Placement |
| 33 | + */ |
| 34 | +type AiplacementEditorGenerateTextWSParams = { |
| 35 | + contextid: number; // The context ID. |
| 36 | + prompttext: string; // The prompt text for the AI service. |
| 37 | +}; |
| 38 | + |
| 39 | +/** |
| 40 | + * Data returned by aiplacement_editor_generate_text WS. |
| 41 | + * |
| 42 | + * WS Description: Generate text for the HTML Text editor AI Placement |
| 43 | + */ |
| 44 | +export type AiplacementEditorGenerateTextWSResponse = { |
| 45 | + success: boolean; // Was the request successful. |
| 46 | + timecreated: number; // The time the request was created. |
| 47 | + prompttext: string; // The prompt text for the AI service. |
| 48 | + generatedcontent?: string; // The text generated by AI. |
| 49 | + finishreason?: string; // The reason generation was stopped. |
| 50 | + errorcode?: number; // Error code if any. |
| 51 | + error?: string; // Error message if any. |
| 52 | +}; |
| 53 | + |
2 | 54 | /** |
3 | 55 | * Params of block_recentlyaccesseditems_get_recent_items WS. |
4 | 56 | * |
@@ -69,6 +121,42 @@ export type AddonBlockStarredcoursesGetStarredCoursesWSResponse = { |
69 | 121 | coursecategory: string; // Coursecategory. |
70 | 122 | }[]; |
71 | 123 |
|
| 124 | +/** |
| 125 | + * Params of core_ai_get_policy_status WS. |
| 126 | + * |
| 127 | + * WS Description: Get a users AI policy acceptance |
| 128 | + */ |
| 129 | +type CoreAiGetPolicyStatusWSParams = { |
| 130 | + userid: number; // The user ID. |
| 131 | +}; |
| 132 | + |
| 133 | +/** |
| 134 | + * Data returned by core_ai_get_policy_status WS. |
| 135 | + * |
| 136 | + * WS Description: Get a users AI policy acceptance |
| 137 | + */ |
| 138 | +export type CoreAiGetPolicyStatusWSResponse = { |
| 139 | + status: boolean; // True if the policy was accepted, false otherwise. |
| 140 | +}; |
| 141 | + |
| 142 | +/** |
| 143 | + * Params of core_ai_set_policy_status WS. |
| 144 | + * |
| 145 | + * WS Description: Set a users AI policy acceptance |
| 146 | + */ |
| 147 | +type CoreAiSetPolicyStatusWSParams = { |
| 148 | + contextid: number; // The context ID. |
| 149 | +}; |
| 150 | + |
| 151 | +/** |
| 152 | + * Data returned by core_ai_set_policy_status WS. |
| 153 | + * |
| 154 | + * WS Description: Set a users AI policy acceptance |
| 155 | + */ |
| 156 | +export type CoreAiSetPolicyStatusWSResponse = { |
| 157 | + success: boolean; // Was the request successful. |
| 158 | +}; |
| 159 | + |
72 | 160 | /** |
73 | 161 | * Params of core_badges_get_badge WS. |
74 | 162 | * |
@@ -6807,6 +6895,7 @@ export type CoreWebserviceGetSiteInfoWSResponse = { |
6807 | 6895 | userquota?: number; // User quota (bytes). 0 means user can ignore the quota. |
6808 | 6896 | usermaxuploadfilesize?: number; // User max upload file size (bytes). -1 means the user can ignore the upload file size. |
6809 | 6897 | userhomepage?: number; // The default home page for the user: 0 for the site home, 1 for dashboard. |
| 6898 | + userhomepageurl?: string; // The URL of default home page when userhomepage is 4 (HOMEPAGE_URL). |
6810 | 6899 | userprivateaccesskey?: string; // Private user access key for fetching files. |
6811 | 6900 | siteid?: number; // Site course ID. |
6812 | 6901 | sitecalendartype?: string; // Calendar type set in the site. |
|
0 commit comments