@iblai/iblai-api 4.201.1-ai → 4.202.0-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.
Files changed (66) hide show
  1. package/dist/index.cjs.js +927 -386
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.esm.js +904 -363
  4. package/dist/index.esm.js.map +1 -1
  5. package/dist/index.umd.js +927 -386
  6. package/dist/index.umd.js.map +1 -1
  7. package/dist/types/index.d.ts +24 -10
  8. package/dist/types/models/AgentConfig.d.ts +46 -0
  9. package/dist/types/models/AgentSkill.d.ts +19 -0
  10. package/dist/types/models/AgentSkillResource.d.ts +17 -0
  11. package/dist/types/models/ClawInstance.d.ts +41 -0
  12. package/dist/types/models/{OpenClawServerStatusEnum.d.ts → ClawInstanceStatusEnum.d.ts} +1 -1
  13. package/dist/types/models/{OpenClawMentorConfig.d.ts → ClawMentorConfig.d.ts} +5 -1
  14. package/dist/types/models/{OpenClawModelProvider.d.ts → ClawModelProvider.d.ts} +3 -3
  15. package/dist/types/models/FileTypeEnum.d.ts +10 -0
  16. package/dist/types/models/MentorSkillAssignment.d.ts +9 -0
  17. package/dist/types/models/PaginatedAgentConfigList.d.ts +7 -0
  18. package/dist/types/models/PaginatedAgentSkillList.d.ts +7 -0
  19. package/dist/types/models/PaginatedAgentSkillResourceList.d.ts +7 -0
  20. package/dist/types/models/PaginatedClawInstanceList.d.ts +7 -0
  21. package/dist/types/models/PaginatedClawMentorConfigList.d.ts +7 -0
  22. package/dist/types/models/PaginatedClawModelProviderList.d.ts +7 -0
  23. package/dist/types/models/PaginatedMentorSkillAssignmentList.d.ts +7 -0
  24. package/dist/types/models/PatchedAgentConfig.d.ts +46 -0
  25. package/dist/types/models/PatchedAgentSkill.d.ts +19 -0
  26. package/dist/types/models/PatchedAgentSkillResource.d.ts +17 -0
  27. package/dist/types/models/PatchedClawInstance.d.ts +41 -0
  28. package/dist/types/models/{PatchedOpenClawMentorConfig.d.ts → PatchedClawMentorConfig.d.ts} +5 -1
  29. package/dist/types/models/{PatchedOpenClawModelProvider.d.ts → PatchedClawModelProvider.d.ts} +3 -3
  30. package/dist/types/models/PatchedMentorSkillAssignment.d.ts +9 -0
  31. package/dist/types/models/ProvisionModeEnum.d.ts +8 -0
  32. package/dist/types/services/AiMentorService.d.ts +654 -314
  33. package/package.json +1 -1
  34. package/sdk_schema.yml +2633 -1272
  35. package/src/core/OpenAPI.ts +1 -1
  36. package/src/index.ts +24 -10
  37. package/src/models/AgentConfig.ts +51 -0
  38. package/src/models/AgentSkill.ts +24 -0
  39. package/src/models/AgentSkillResource.ts +22 -0
  40. package/src/models/{OpenClawServer.ts → ClawInstance.ts} +16 -11
  41. package/src/models/{OpenClawServerStatusEnum.ts → ClawInstanceStatusEnum.ts} +1 -1
  42. package/src/models/{OpenClawMentorConfig.ts → ClawMentorConfig.ts} +5 -1
  43. package/src/models/{OpenClawModelProvider.ts → ClawModelProvider.ts} +3 -3
  44. package/src/models/FileTypeEnum.ts +14 -0
  45. package/src/models/MentorSkillAssignment.ts +14 -0
  46. package/src/models/{PaginatedOpenClawServerList.ts → PaginatedAgentConfigList.ts} +3 -3
  47. package/src/models/{PaginatedOpenClawMentorConfigList.ts → PaginatedAgentSkillList.ts} +3 -3
  48. package/src/models/{PaginatedOpenClawModelProviderList.ts → PaginatedAgentSkillResourceList.ts} +3 -3
  49. package/src/models/PaginatedClawInstanceList.ts +12 -0
  50. package/src/models/PaginatedClawMentorConfigList.ts +12 -0
  51. package/src/models/PaginatedClawModelProviderList.ts +12 -0
  52. package/src/models/PaginatedMentorSkillAssignmentList.ts +12 -0
  53. package/src/models/PatchedAgentConfig.ts +51 -0
  54. package/src/models/PatchedAgentSkill.ts +24 -0
  55. package/src/models/PatchedAgentSkillResource.ts +22 -0
  56. package/src/models/{PatchedOpenClawServer.ts → PatchedClawInstance.ts} +16 -11
  57. package/src/models/{PatchedOpenClawMentorConfig.ts → PatchedClawMentorConfig.ts} +5 -1
  58. package/src/models/{PatchedOpenClawModelProvider.ts → PatchedClawModelProvider.ts} +3 -3
  59. package/src/models/PatchedMentorSkillAssignment.ts +14 -0
  60. package/src/models/ProvisionModeEnum.ts +12 -0
  61. package/src/services/AiMentorService.ts +1209 -508
  62. package/dist/types/models/OpenClawServer.d.ts +0 -36
  63. package/dist/types/models/PaginatedOpenClawMentorConfigList.d.ts +0 -7
  64. package/dist/types/models/PaginatedOpenClawModelProviderList.d.ts +0 -7
  65. package/dist/types/models/PaginatedOpenClawServerList.d.ts +0 -7
  66. package/dist/types/models/PatchedOpenClawServer.d.ts +0 -36
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.201.1-ai-plus',
113
+ VERSION: '4.202.0-ai-plus',
114
114
  WITH_CREDENTIALS: false,
115
115
  CREDENTIALS: 'include',
116
116
  TOKEN: undefined,
@@ -285,6 +285,22 @@ exports.ChatPrivacyModeEnum = void 0;
285
285
  ChatPrivacyModeEnum["DISABLED"] = "disabled";
286
286
  })(exports.ChatPrivacyModeEnum || (exports.ChatPrivacyModeEnum = {}));
287
287
 
288
+ /* generated using openapi-typescript-codegen -- do not edit */
289
+ /* istanbul ignore file */
290
+ /* tslint:disable */
291
+ /* eslint-disable */
292
+ /**
293
+ * * `active` - Active
294
+ * * `inactive` - Inactive
295
+ * * `error` - Error
296
+ */
297
+ exports.ClawInstanceStatusEnum = void 0;
298
+ (function (ClawInstanceStatusEnum) {
299
+ ClawInstanceStatusEnum["ACTIVE"] = "active";
300
+ ClawInstanceStatusEnum["INACTIVE"] = "inactive";
301
+ ClawInstanceStatusEnum["ERROR"] = "error";
302
+ })(exports.ClawInstanceStatusEnum || (exports.ClawInstanceStatusEnum = {}));
303
+
288
304
  /* generated using openapi-typescript-codegen -- do not edit */
289
305
  /* istanbul ignore file */
290
306
  /* tslint:disable */
@@ -421,6 +437,22 @@ exports.EntityTypeEnum = void 0;
421
437
  EntityTypeEnum["GLOBAL"] = "global";
422
438
  })(exports.EntityTypeEnum || (exports.EntityTypeEnum = {}));
423
439
 
440
+ /* generated using openapi-typescript-codegen -- do not edit */
441
+ /* istanbul ignore file */
442
+ /* tslint:disable */
443
+ /* eslint-disable */
444
+ /**
445
+ * * `script` - Script
446
+ * * `reference` - Reference
447
+ * * `asset` - Asset
448
+ */
449
+ exports.FileTypeEnum = void 0;
450
+ (function (FileTypeEnum) {
451
+ FileTypeEnum["SCRIPT"] = "script";
452
+ FileTypeEnum["REFERENCE"] = "reference";
453
+ FileTypeEnum["ASSET"] = "asset";
454
+ })(exports.FileTypeEnum || (exports.FileTypeEnum = {}));
455
+
424
456
  /* generated using openapi-typescript-codegen -- do not edit */
425
457
  /* istanbul ignore file */
426
458
  /* tslint:disable */
@@ -753,22 +785,6 @@ exports.NotificationSourceTypeEnum = void 0;
753
785
  NotificationSourceTypeEnum["USERGROUP"] = "usergroup";
754
786
  })(exports.NotificationSourceTypeEnum || (exports.NotificationSourceTypeEnum = {}));
755
787
 
756
- /* generated using openapi-typescript-codegen -- do not edit */
757
- /* istanbul ignore file */
758
- /* tslint:disable */
759
- /* eslint-disable */
760
- /**
761
- * * `active` - Active
762
- * * `inactive` - Inactive
763
- * * `error` - Error
764
- */
765
- exports.OpenClawServerStatusEnum = void 0;
766
- (function (OpenClawServerStatusEnum) {
767
- OpenClawServerStatusEnum["ACTIVE"] = "active";
768
- OpenClawServerStatusEnum["INACTIVE"] = "inactive";
769
- OpenClawServerStatusEnum["ERROR"] = "error";
770
- })(exports.OpenClawServerStatusEnum || (exports.OpenClawServerStatusEnum = {}));
771
-
772
788
  /* generated using openapi-typescript-codegen -- do not edit */
773
789
  /* istanbul ignore file */
774
790
  /* tslint:disable */
@@ -951,6 +967,20 @@ exports.Provider63aEnum = void 0;
951
967
  Provider63aEnum["OPENAI"] = "openai";
952
968
  })(exports.Provider63aEnum || (exports.Provider63aEnum = {}));
953
969
 
970
+ /* generated using openapi-typescript-codegen -- do not edit */
971
+ /* istanbul ignore file */
972
+ /* tslint:disable */
973
+ /* eslint-disable */
974
+ /**
975
+ * * `managed` - Managed
976
+ * * `self_hosted` - Self-hosted
977
+ */
978
+ exports.ProvisionModeEnum = void 0;
979
+ (function (ProvisionModeEnum) {
980
+ ProvisionModeEnum["MANAGED"] = "managed";
981
+ ProvisionModeEnum["SELF_HOSTED"] = "self_hosted";
982
+ })(exports.ProvisionModeEnum || (exports.ProvisionModeEnum = {}));
983
+
954
984
  /* generated using openapi-typescript-codegen -- do not edit */
955
985
  /* istanbul ignore file */
956
986
  /* tslint:disable */
@@ -13724,286 +13754,286 @@ class AiMentorService {
13724
13754
  });
13725
13755
  }
13726
13756
  /**
13727
- * List all triggers for an organization.
13728
- *
13729
- * Args:
13730
- * request: The HTTP request.
13731
- * org: The organization/tenant identifier.
13732
- *
13733
- * Returns:
13734
- * Response: A list of trigger slugs for the organization.
13735
- *
13736
- * Raises:
13737
- * BadRequest: If the request is invalid.
13738
- * @returns any List of trigger slugs
13757
+ * Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
13758
+ * @returns PaginatedAgentConfigList
13739
13759
  * @throws ApiError
13740
13760
  */
13741
- static aiMentorOrgsAllTriggersRetrieve({
13742
- org
13761
+ static aiMentorOrgsAgentConfigsList({
13762
+ org,
13763
+ limit,
13764
+ offset
13743
13765
  }) {
13744
13766
  return request(OpenAPI, {
13745
13767
  method: 'GET',
13746
- url: '/api/ai-mentor/orgs/{org}/all-triggers/',
13768
+ url: '/api/ai-mentor/orgs/{org}/agent-configs/',
13747
13769
  path: {
13748
13770
  'org': org
13749
13771
  },
13750
- errors: {
13751
- 400: `Invalid request`
13772
+ query: {
13773
+ 'limit': limit,
13774
+ 'offset': offset
13752
13775
  }
13753
13776
  });
13754
13777
  }
13755
13778
  /**
13756
- * List all active memory categories for a mentor.
13757
- * @returns any No response body
13779
+ * Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
13780
+ * @returns AgentConfig
13758
13781
  * @throws ApiError
13759
13782
  */
13760
- static aiMentorOrgsMentorsMemoryCategoriesRetrieve({
13761
- mentorId,
13783
+ static aiMentorOrgsAgentConfigsCreate({
13784
+ org,
13785
+ requestBody
13786
+ }) {
13787
+ return request(OpenAPI, {
13788
+ method: 'POST',
13789
+ url: '/api/ai-mentor/orgs/{org}/agent-configs/',
13790
+ path: {
13791
+ 'org': org
13792
+ },
13793
+ body: requestBody,
13794
+ mediaType: 'application/json'
13795
+ });
13796
+ }
13797
+ /**
13798
+ * Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
13799
+ * @returns AgentConfig
13800
+ * @throws ApiError
13801
+ */
13802
+ static aiMentorOrgsAgentConfigsRetrieve({
13803
+ id,
13762
13804
  org
13763
13805
  }) {
13764
13806
  return request(OpenAPI, {
13765
13807
  method: 'GET',
13766
- url: '/api/ai-mentor/orgs/{org}/mentors/{mentor_id}/memory-categories/',
13808
+ url: '/api/ai-mentor/orgs/{org}/agent-configs/{id}/',
13767
13809
  path: {
13768
- 'mentor_id': mentorId,
13810
+ 'id': id,
13769
13811
  'org': org
13770
13812
  }
13771
13813
  });
13772
13814
  }
13773
13815
  /**
13774
- * Create a new memory category.
13775
- * @returns any No response body
13816
+ * Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
13817
+ * @returns AgentConfig
13776
13818
  * @throws ApiError
13777
13819
  */
13778
- static aiMentorOrgsMentorsMemoryCategoriesCreate({
13779
- mentorId,
13780
- org
13820
+ static aiMentorOrgsAgentConfigsUpdate({
13821
+ id,
13822
+ org,
13823
+ requestBody
13781
13824
  }) {
13782
13825
  return request(OpenAPI, {
13783
- method: 'POST',
13784
- url: '/api/ai-mentor/orgs/{org}/mentors/{mentor_id}/memory-categories/',
13826
+ method: 'PUT',
13827
+ url: '/api/ai-mentor/orgs/{org}/agent-configs/{id}/',
13785
13828
  path: {
13786
- 'mentor_id': mentorId,
13829
+ 'id': id,
13787
13830
  'org': org
13788
- }
13831
+ },
13832
+ body: requestBody,
13833
+ mediaType: 'application/json'
13789
13834
  });
13790
13835
  }
13791
13836
  /**
13792
- * Update a memory category.
13793
- * @returns any No response body
13837
+ * Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
13838
+ * @returns AgentConfig
13794
13839
  * @throws ApiError
13795
13840
  */
13796
- static aiMentorOrgsMentorsMemoryCategoriesPartialUpdate({
13797
- categoryId,
13798
- mentorId,
13799
- org
13841
+ static aiMentorOrgsAgentConfigsPartialUpdate({
13842
+ id,
13843
+ org,
13844
+ requestBody
13800
13845
  }) {
13801
13846
  return request(OpenAPI, {
13802
13847
  method: 'PATCH',
13803
- url: '/api/ai-mentor/orgs/{org}/mentors/{mentor_id}/memory-categories/{category_id}/',
13848
+ url: '/api/ai-mentor/orgs/{org}/agent-configs/{id}/',
13804
13849
  path: {
13805
- 'category_id': categoryId,
13806
- 'mentor_id': mentorId,
13850
+ 'id': id,
13807
13851
  'org': org
13808
- }
13852
+ },
13853
+ body: requestBody,
13854
+ mediaType: 'application/json'
13809
13855
  });
13810
13856
  }
13811
13857
  /**
13812
- * Deactivate a memory category.
13858
+ * Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
13813
13859
  * @returns void
13814
13860
  * @throws ApiError
13815
13861
  */
13816
- static aiMentorOrgsMentorsMemoryCategoriesDestroy({
13817
- categoryId,
13818
- mentorId,
13862
+ static aiMentorOrgsAgentConfigsDestroy({
13863
+ id,
13819
13864
  org
13820
13865
  }) {
13821
13866
  return request(OpenAPI, {
13822
13867
  method: 'DELETE',
13823
- url: '/api/ai-mentor/orgs/{org}/mentors/{mentor_id}/memory-categories/{category_id}/',
13868
+ url: '/api/ai-mentor/orgs/{org}/agent-configs/{id}/',
13824
13869
  path: {
13825
- 'category_id': categoryId,
13826
- 'mentor_id': mentorId,
13870
+ 'id': id,
13827
13871
  'org': org
13828
13872
  }
13829
13873
  });
13830
13874
  }
13831
13875
  /**
13832
- * Grant LTI Mentor Access
13833
- * Grants a user Student type access to a mentor that is lti accessible.
13834
- *
13835
- * Creates or updates an RBAC policy named LTI-{mentor.unique_id} with the global Student role,
13836
- * granting the specified user access to the mentor. Validates that the mentor has LTI access
13837
- * enabled and that the user belongs to the specified platform.
13838
- * @returns any Policy created and user granted access
13876
+ * Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
13877
+ * @returns PaginatedAgentSkillResourceList
13839
13878
  * @throws ApiError
13840
13879
  */
13841
- static aiMentorOrgsMentorsLtiGrantMentorAccessCreate({
13842
- mentorUniqueId,
13880
+ static aiMentorOrgsAgentSkillResourcesList({
13843
13881
  org,
13844
- requestBody
13882
+ fileType,
13883
+ limit,
13884
+ offset,
13885
+ skill
13845
13886
  }) {
13846
13887
  return request(OpenAPI, {
13847
- method: 'POST',
13848
- url: '/api/ai-mentor/orgs/{org}/mentors/{mentor_unique_id}/lti/grant-mentor-access/',
13888
+ method: 'GET',
13889
+ url: '/api/ai-mentor/orgs/{org}/agent-skill-resources/',
13849
13890
  path: {
13850
- 'mentor_unique_id': mentorUniqueId,
13851
13891
  'org': org
13852
13892
  },
13853
- body: requestBody,
13854
- mediaType: 'application/json',
13855
- errors: {
13856
- 400: `Invalid request data`,
13857
- 403: `Mentor is not LTI accessible`,
13858
- 404: `Mentor, platform, or user not found`,
13859
- 500: `Global Student role not found`
13893
+ query: {
13894
+ 'file_type': fileType,
13895
+ 'limit': limit,
13896
+ 'offset': offset,
13897
+ 'skill': skill
13860
13898
  }
13861
13899
  });
13862
13900
  }
13863
13901
  /**
13864
- * Retrieve a list of emails in a mentor's inbox.
13865
- *
13866
- * The list can be filtered using the 'search' query parameter to search
13867
- * for specific terms in the email content or subject.
13868
- *
13869
- * Args:
13870
- * mentor: The unique identifier of the mentor.
13871
- *
13872
- * Returns:
13873
- * Response: A paginated list of emails in the mentor's inbox.
13874
- *
13875
- * Raises:
13876
- * NotFound: If the specified mentor does not exist.
13877
- * @returns PaginatedEmailPromptListList
13902
+ * Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
13903
+ * @returns AgentSkillResource
13878
13904
  * @throws ApiError
13879
13905
  */
13880
- static aiMentorOrgsMentorsEmailInboxList({
13881
- mentor,
13906
+ static aiMentorOrgsAgentSkillResourcesCreate({
13882
13907
  org,
13883
- page,
13884
- pageSize,
13885
- search
13908
+ requestBody
13886
13909
  }) {
13887
13910
  return request(OpenAPI, {
13888
- method: 'GET',
13889
- url: '/api/ai-mentor/orgs/{org}/mentors/{mentor}/email-inbox/',
13911
+ method: 'POST',
13912
+ url: '/api/ai-mentor/orgs/{org}/agent-skill-resources/',
13890
13913
  path: {
13891
- 'mentor': mentor,
13892
13914
  'org': org
13893
13915
  },
13894
- query: {
13895
- 'page': page,
13896
- 'page_size': pageSize,
13897
- 'search': search
13898
- },
13899
- errors: {
13900
- 404: `Mentor not found`
13901
- }
13916
+ body: requestBody,
13917
+ mediaType: 'application/json'
13902
13918
  });
13903
13919
  }
13904
13920
  /**
13905
- * Retrieve a summary of a mentor's email inbox.
13906
- *
13907
- * Args:
13908
- * request: The HTTP request.
13909
- * mentor: The unique identifier of the mentor.
13910
- *
13911
- * Returns:
13912
- * Response: A summary of the mentor's email inbox statistics.
13913
- *
13914
- * Raises:
13915
- * NotFound: If the specified mentor does not exist.
13916
- * @returns EmailPromptSummary
13921
+ * Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
13922
+ * @returns AgentSkillResource
13917
13923
  * @throws ApiError
13918
13924
  */
13919
- static aiMentorOrgsMentorsEmailInboxSummaryRetrieve({
13920
- mentor,
13925
+ static aiMentorOrgsAgentSkillResourcesRetrieve({
13926
+ id,
13921
13927
  org
13922
13928
  }) {
13923
13929
  return request(OpenAPI, {
13924
13930
  method: 'GET',
13925
- url: '/api/ai-mentor/orgs/{org}/mentors/{mentor}/email-inbox-summary/',
13931
+ url: '/api/ai-mentor/orgs/{org}/agent-skill-resources/{id}/',
13926
13932
  path: {
13927
- 'mentor': mentor,
13933
+ 'id': id,
13928
13934
  'org': org
13929
- },
13930
- errors: {
13931
- 404: `Mentor not found`
13932
13935
  }
13933
13936
  });
13934
13937
  }
13935
13938
  /**
13936
- * Retrieve details of a specific email in a mentor's inbox.
13937
- *
13938
- * Args:
13939
- * request: The HTTP request.
13940
- * email_prompt_id: The ID of the email to retrieve.
13941
- *
13942
- * Returns:
13943
- * Response: The detailed information about the email.
13944
- *
13945
- * Raises:
13946
- * NotFound: If the specified email does not exist.
13947
- * @returns EmailPromptDetail
13939
+ * Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
13940
+ * @returns AgentSkillResource
13948
13941
  * @throws ApiError
13949
13942
  */
13950
- static aiMentorOrgsMentorsEmailInboxRetrieve({
13951
- emailPromptId,
13952
- mentor,
13953
- org
13943
+ static aiMentorOrgsAgentSkillResourcesUpdate({
13944
+ id,
13945
+ org,
13946
+ requestBody
13954
13947
  }) {
13955
13948
  return request(OpenAPI, {
13956
- method: 'GET',
13957
- url: '/api/ai-mentor/orgs/{org}/mentors/{mentor}/email-inbox/{email_prompt_id}/',
13949
+ method: 'PUT',
13950
+ url: '/api/ai-mentor/orgs/{org}/agent-skill-resources/{id}/',
13958
13951
  path: {
13959
- 'email_prompt_id': emailPromptId,
13960
- 'mentor': mentor,
13952
+ 'id': id,
13961
13953
  'org': org
13962
13954
  },
13963
- errors: {
13964
- 404: `Email not found`
13965
- }
13955
+ body: requestBody,
13956
+ mediaType: 'application/json'
13966
13957
  });
13967
13958
  }
13968
13959
  /**
13969
- * API endpoint to link mentor with a course and enable guided mode.
13970
- *
13971
- * Permissions:
13972
- * - Accessible to tenant admins.
13973
- * @returns LinkCourseResponse
13960
+ * Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
13961
+ * @returns AgentSkillResource
13974
13962
  * @throws ApiError
13975
13963
  */
13976
- static aiMentorOrgsMentorsLinkCourseRetrieve({
13977
- mentor,
13978
- org
13964
+ static aiMentorOrgsAgentSkillResourcesPartialUpdate({
13965
+ id,
13966
+ org,
13967
+ requestBody
13968
+ }) {
13969
+ return request(OpenAPI, {
13970
+ method: 'PATCH',
13971
+ url: '/api/ai-mentor/orgs/{org}/agent-skill-resources/{id}/',
13972
+ path: {
13973
+ 'id': id,
13974
+ 'org': org
13975
+ },
13976
+ body: requestBody,
13977
+ mediaType: 'application/json'
13978
+ });
13979
+ }
13980
+ /**
13981
+ * Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
13982
+ * @returns void
13983
+ * @throws ApiError
13984
+ */
13985
+ static aiMentorOrgsAgentSkillResourcesDestroy({
13986
+ id,
13987
+ org
13988
+ }) {
13989
+ return request(OpenAPI, {
13990
+ method: 'DELETE',
13991
+ url: '/api/ai-mentor/orgs/{org}/agent-skill-resources/{id}/',
13992
+ path: {
13993
+ 'id': id,
13994
+ 'org': org
13995
+ }
13996
+ });
13997
+ }
13998
+ /**
13999
+ * Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
14000
+ * @returns PaginatedAgentSkillList
14001
+ * @throws ApiError
14002
+ */
14003
+ static aiMentorOrgsAgentSkillsList({
14004
+ org,
14005
+ enabled,
14006
+ limit,
14007
+ offset,
14008
+ search
13979
14009
  }) {
13980
14010
  return request(OpenAPI, {
13981
14011
  method: 'GET',
13982
- url: '/api/ai-mentor/orgs/{org}/mentors/{mentor}/link-course/',
14012
+ url: '/api/ai-mentor/orgs/{org}/agent-skills/',
13983
14013
  path: {
13984
- 'mentor': mentor,
13985
14014
  'org': org
14015
+ },
14016
+ query: {
14017
+ 'enabled': enabled,
14018
+ 'limit': limit,
14019
+ 'offset': offset,
14020
+ 'search': search
13986
14021
  }
13987
14022
  });
13988
14023
  }
13989
14024
  /**
13990
- * API endpoint to link mentor with a course and enable guided mode.
13991
- *
13992
- * Permissions:
13993
- * - Accessible to tenant admins.
13994
- * @returns LinkCourseResponse
14025
+ * Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
14026
+ * @returns AgentSkill
13995
14027
  * @throws ApiError
13996
14028
  */
13997
- static aiMentorOrgsMentorsLinkCourseCreate({
13998
- mentor,
14029
+ static aiMentorOrgsAgentSkillsCreate({
13999
14030
  org,
14000
14031
  requestBody
14001
14032
  }) {
14002
14033
  return request(OpenAPI, {
14003
14034
  method: 'POST',
14004
- url: '/api/ai-mentor/orgs/{org}/mentors/{mentor}/link-course/',
14035
+ url: '/api/ai-mentor/orgs/{org}/agent-skills/',
14005
14036
  path: {
14006
- 'mentor': mentor,
14007
14037
  'org': org
14008
14038
  },
14009
14039
  body: requestBody,
@@ -14011,173 +14041,150 @@ class AiMentorService {
14011
14041
  });
14012
14042
  }
14013
14043
  /**
14014
- * Get accessible mentors by email
14015
- * Returns a list of mentor unique IDs that a user can access via email in the specified organization.
14016
- * @returns AccessibleMentorsByEmailResponse
14044
+ * Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
14045
+ * @returns AgentSkill
14017
14046
  * @throws ApiError
14018
14047
  */
14019
- static aiMentorOrgsMentorsByEmailCreate({
14048
+ static aiMentorOrgsAgentSkillsRetrieve({
14049
+ id,
14050
+ org
14051
+ }) {
14052
+ return request(OpenAPI, {
14053
+ method: 'GET',
14054
+ url: '/api/ai-mentor/orgs/{org}/agent-skills/{id}/',
14055
+ path: {
14056
+ 'id': id,
14057
+ 'org': org
14058
+ }
14059
+ });
14060
+ }
14061
+ /**
14062
+ * Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
14063
+ * @returns AgentSkill
14064
+ * @throws ApiError
14065
+ */
14066
+ static aiMentorOrgsAgentSkillsUpdate({
14067
+ id,
14020
14068
  org,
14021
14069
  requestBody
14022
14070
  }) {
14023
14071
  return request(OpenAPI, {
14024
- method: 'POST',
14025
- url: '/api/ai-mentor/orgs/{org}/mentors/by-email/',
14072
+ method: 'PUT',
14073
+ url: '/api/ai-mentor/orgs/{org}/agent-skills/{id}/',
14026
14074
  path: {
14075
+ 'id': id,
14027
14076
  'org': org
14028
14077
  },
14029
14078
  body: requestBody,
14030
- mediaType: 'application/json',
14031
- errors: {
14032
- 400: `Invalid request parameters`,
14033
- 404: `User or platform not found`
14034
- }
14079
+ mediaType: 'application/json'
14035
14080
  });
14036
14081
  }
14037
14082
  /**
14038
- * Create or update metadata for a mentor.
14039
- *
14040
- * Args:
14041
- * request: The HTTP request containing the metadata.
14042
- * org: The organization/tenant identifier.
14043
- *
14044
- * Returns:
14045
- * Response: The created or updated mentor metadata.
14046
- *
14047
- * Raises:
14048
- * BadRequest: If the provided data is invalid.
14049
- * @returns MentorMetadata
14083
+ * Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
14084
+ * @returns AgentSkill
14050
14085
  * @throws ApiError
14051
14086
  */
14052
- static aiMentorOrgsMetadataCreate({
14087
+ static aiMentorOrgsAgentSkillsPartialUpdate({
14088
+ id,
14053
14089
  org,
14054
14090
  requestBody
14055
14091
  }) {
14056
14092
  return request(OpenAPI, {
14057
- method: 'POST',
14058
- url: '/api/ai-mentor/orgs/{org}/metadata/',
14093
+ method: 'PATCH',
14094
+ url: '/api/ai-mentor/orgs/{org}/agent-skills/{id}/',
14059
14095
  path: {
14096
+ 'id': id,
14060
14097
  'org': org
14061
14098
  },
14062
14099
  body: requestBody,
14063
- mediaType: 'application/json',
14064
- errors: {
14065
- 400: `Invalid data`
14066
- }
14100
+ mediaType: 'application/json'
14067
14101
  });
14068
14102
  }
14069
14103
  /**
14070
- * Retrieve mentor configuration for offline use.
14071
- *
14072
- * Returns the same data as the mentor settings endpoint, including
14073
- * system_prompt, LLM config, safety/moderation settings, and UI settings.
14074
- *
14075
- * Args:
14076
- * request: The HTTP request.
14077
- * org: Organization/platform key.
14078
- * mentor_unique_id: The unique ID (UUID) of the mentor.
14079
- *
14080
- * Returns:
14081
- * Response: Full mentor settings data.
14082
- * @returns MentorSettings
14104
+ * Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
14105
+ * @returns void
14083
14106
  * @throws ApiError
14084
14107
  */
14085
- static aiMentorOrgsOfflineMentorsConfigRetrieve({
14086
- mentorUniqueId,
14108
+ static aiMentorOrgsAgentSkillsDestroy({
14109
+ id,
14087
14110
  org
14088
14111
  }) {
14089
14112
  return request(OpenAPI, {
14090
- method: 'GET',
14091
- url: '/api/ai-mentor/orgs/{org}/offline/mentors/{mentor_unique_id}/config/',
14113
+ method: 'DELETE',
14114
+ url: '/api/ai-mentor/orgs/{org}/agent-skills/{id}/',
14092
14115
  path: {
14093
- 'mentor_unique_id': mentorUniqueId,
14116
+ 'id': id,
14094
14117
  'org': org
14095
- },
14096
- errors: {
14097
- 403: `Offline mode not enabled`,
14098
- 404: `Mentor not found`
14099
14118
  }
14100
14119
  });
14101
14120
  }
14102
14121
  /**
14103
- * Retrieve paginated list of documents for offline use.
14122
+ * List all triggers for an organization.
14104
14123
  *
14105
14124
  * Args:
14106
14125
  * request: The HTTP request.
14107
- * org: Organization/platform key.
14108
- * mentor_unique_id: The unique ID (UUID) of the mentor.
14109
- *
14110
- * Query Parameters:
14111
- * limit: Number of results per page (default: 100, max: 500).
14112
- * offset: Number of results to skip.
14113
- * search: Optional search filter for document_name or url.
14126
+ * org: The organization/tenant identifier.
14114
14127
  *
14115
14128
  * Returns:
14116
- * Response: Paginated list of documents with S3 URLs.
14117
- * @returns PaginatedOfflineDocumentList
14129
+ * Response: A list of trigger slugs for the organization.
14130
+ *
14131
+ * Raises:
14132
+ * BadRequest: If the request is invalid.
14133
+ * @returns any List of trigger slugs
14118
14134
  * @throws ApiError
14119
14135
  */
14120
- static aiMentorOrgsOfflineMentorsDatasetsList({
14121
- mentorUniqueId,
14122
- org,
14123
- limit,
14124
- offset,
14125
- search
14136
+ static aiMentorOrgsAllTriggersRetrieve({
14137
+ org
14126
14138
  }) {
14127
14139
  return request(OpenAPI, {
14128
14140
  method: 'GET',
14129
- url: '/api/ai-mentor/orgs/{org}/offline/mentors/{mentor_unique_id}/datasets/',
14141
+ url: '/api/ai-mentor/orgs/{org}/all-triggers/',
14130
14142
  path: {
14131
- 'mentor_unique_id': mentorUniqueId,
14132
14143
  'org': org
14133
14144
  },
14134
- query: {
14135
- 'limit': limit,
14136
- 'offset': offset,
14137
- 'search': search
14138
- },
14139
14145
  errors: {
14140
- 403: `Offline mode not enabled`,
14141
- 404: `Mentor not found`
14146
+ 400: `Invalid request`
14142
14147
  }
14143
14148
  });
14144
14149
  }
14145
14150
  /**
14146
14151
  * Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
14147
- * @returns PaginatedOpenClawMentorConfigList
14152
+ * @returns PaginatedClawInstanceList
14148
14153
  * @throws ApiError
14149
14154
  */
14150
- static aiMentorOrgsOpenclawMentorConfigsList({
14155
+ static aiMentorOrgsClawInstancesList({
14151
14156
  org,
14152
- enabled,
14153
14157
  limit,
14154
- offset
14158
+ offset,
14159
+ search,
14160
+ status
14155
14161
  }) {
14156
14162
  return request(OpenAPI, {
14157
14163
  method: 'GET',
14158
- url: '/api/ai-mentor/orgs/{org}/openclaw/mentor-configs/',
14164
+ url: '/api/ai-mentor/orgs/{org}/claw/instances/',
14159
14165
  path: {
14160
14166
  'org': org
14161
14167
  },
14162
14168
  query: {
14163
- 'enabled': enabled,
14164
14169
  'limit': limit,
14165
- 'offset': offset
14170
+ 'offset': offset,
14171
+ 'search': search,
14172
+ 'status': status
14166
14173
  }
14167
14174
  });
14168
14175
  }
14169
14176
  /**
14170
14177
  * Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
14171
- * @returns OpenClawMentorConfig
14178
+ * @returns ClawInstance
14172
14179
  * @throws ApiError
14173
14180
  */
14174
- static aiMentorOrgsOpenclawMentorConfigsCreate({
14181
+ static aiMentorOrgsClawInstancesCreate({
14175
14182
  org,
14176
14183
  requestBody
14177
14184
  }) {
14178
14185
  return request(OpenAPI, {
14179
14186
  method: 'POST',
14180
- url: '/api/ai-mentor/orgs/{org}/openclaw/mentor-configs/',
14187
+ url: '/api/ai-mentor/orgs/{org}/claw/instances/',
14181
14188
  path: {
14182
14189
  'org': org
14183
14190
  },
@@ -14187,16 +14194,16 @@ class AiMentorService {
14187
14194
  }
14188
14195
  /**
14189
14196
  * Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
14190
- * @returns OpenClawMentorConfig
14197
+ * @returns ClawInstance
14191
14198
  * @throws ApiError
14192
14199
  */
14193
- static aiMentorOrgsOpenclawMentorConfigsRetrieve({
14200
+ static aiMentorOrgsClawInstancesRetrieve({
14194
14201
  id,
14195
14202
  org
14196
14203
  }) {
14197
14204
  return request(OpenAPI, {
14198
14205
  method: 'GET',
14199
- url: '/api/ai-mentor/orgs/{org}/openclaw/mentor-configs/{id}/',
14206
+ url: '/api/ai-mentor/orgs/{org}/claw/instances/{id}/',
14200
14207
  path: {
14201
14208
  'id': id,
14202
14209
  'org': org
@@ -14205,17 +14212,17 @@ class AiMentorService {
14205
14212
  }
14206
14213
  /**
14207
14214
  * Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
14208
- * @returns OpenClawMentorConfig
14215
+ * @returns ClawInstance
14209
14216
  * @throws ApiError
14210
14217
  */
14211
- static aiMentorOrgsOpenclawMentorConfigsUpdate({
14218
+ static aiMentorOrgsClawInstancesUpdate({
14212
14219
  id,
14213
14220
  org,
14214
14221
  requestBody
14215
14222
  }) {
14216
14223
  return request(OpenAPI, {
14217
14224
  method: 'PUT',
14218
- url: '/api/ai-mentor/orgs/{org}/openclaw/mentor-configs/{id}/',
14225
+ url: '/api/ai-mentor/orgs/{org}/claw/instances/{id}/',
14219
14226
  path: {
14220
14227
  'id': id,
14221
14228
  'org': org
@@ -14226,17 +14233,17 @@ class AiMentorService {
14226
14233
  }
14227
14234
  /**
14228
14235
  * Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
14229
- * @returns OpenClawMentorConfig
14236
+ * @returns ClawInstance
14230
14237
  * @throws ApiError
14231
14238
  */
14232
- static aiMentorOrgsOpenclawMentorConfigsPartialUpdate({
14239
+ static aiMentorOrgsClawInstancesPartialUpdate({
14233
14240
  id,
14234
14241
  org,
14235
14242
  requestBody
14236
14243
  }) {
14237
14244
  return request(OpenAPI, {
14238
14245
  method: 'PATCH',
14239
- url: '/api/ai-mentor/orgs/{org}/openclaw/mentor-configs/{id}/',
14246
+ url: '/api/ai-mentor/orgs/{org}/claw/instances/{id}/',
14240
14247
  path: {
14241
14248
  'id': id,
14242
14249
  'org': org
@@ -14250,13 +14257,13 @@ class AiMentorService {
14250
14257
  * @returns void
14251
14258
  * @throws ApiError
14252
14259
  */
14253
- static aiMentorOrgsOpenclawMentorConfigsDestroy({
14260
+ static aiMentorOrgsClawInstancesDestroy({
14254
14261
  id,
14255
14262
  org
14256
14263
  }) {
14257
14264
  return request(OpenAPI, {
14258
14265
  method: 'DELETE',
14259
- url: '/api/ai-mentor/orgs/{org}/openclaw/mentor-configs/{id}/',
14266
+ url: '/api/ai-mentor/orgs/{org}/claw/instances/{id}/',
14260
14267
  path: {
14261
14268
  'id': id,
14262
14269
  'org': org
@@ -14264,18 +14271,18 @@ class AiMentorService {
14264
14271
  });
14265
14272
  }
14266
14273
  /**
14267
- * Push agent_config to the OpenClaw worker.
14268
- * @returns OpenClawMentorConfig
14274
+ * Run a health check against the Claw server and update status.
14275
+ * @returns ClawInstance
14269
14276
  * @throws ApiError
14270
14277
  */
14271
- static aiMentorOrgsOpenclawMentorConfigsPushConfigCreate({
14278
+ static aiMentorOrgsClawInstancesHealthCheckCreate({
14272
14279
  id,
14273
14280
  org,
14274
14281
  requestBody
14275
14282
  }) {
14276
14283
  return request(OpenAPI, {
14277
14284
  method: 'POST',
14278
- url: '/api/ai-mentor/orgs/{org}/openclaw/mentor-configs/{id}/push-config/',
14285
+ url: '/api/ai-mentor/orgs/{org}/claw/instances/{id}/health-check/',
14279
14286
  path: {
14280
14287
  'id': id,
14281
14288
  'org': org
@@ -14285,44 +14292,20 @@ class AiMentorService {
14285
14292
  });
14286
14293
  }
14287
14294
  /**
14288
- * Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
14289
- * @returns PaginatedOpenClawModelProviderList
14290
- * @throws ApiError
14291
- */
14292
- static aiMentorOrgsOpenclawModelProvidersList({
14293
- org,
14294
- enabled,
14295
- limit,
14296
- offset,
14297
- server
14298
- }) {
14299
- return request(OpenAPI, {
14300
- method: 'GET',
14301
- url: '/api/ai-mentor/orgs/{org}/openclaw/model-providers/',
14302
- path: {
14303
- 'org': org
14304
- },
14305
- query: {
14306
- 'enabled': enabled,
14307
- 'limit': limit,
14308
- 'offset': offset,
14309
- 'server': server
14310
- }
14311
- });
14312
- }
14313
- /**
14314
- * Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
14315
- * @returns OpenClawModelProvider
14295
+ * Push all enabled model providers to the worker.
14296
+ * @returns ClawInstance
14316
14297
  * @throws ApiError
14317
14298
  */
14318
- static aiMentorOrgsOpenclawModelProvidersCreate({
14299
+ static aiMentorOrgsClawInstancesPushProvidersCreate({
14300
+ id,
14319
14301
  org,
14320
14302
  requestBody
14321
14303
  }) {
14322
14304
  return request(OpenAPI, {
14323
14305
  method: 'POST',
14324
- url: '/api/ai-mentor/orgs/{org}/openclaw/model-providers/',
14306
+ url: '/api/ai-mentor/orgs/{org}/claw/instances/{id}/push-providers/',
14325
14307
  path: {
14308
+ 'id': id,
14326
14309
  'org': org
14327
14310
  },
14328
14311
  body: requestBody,
@@ -14330,36 +14313,18 @@ class AiMentorService {
14330
14313
  });
14331
14314
  }
14332
14315
  /**
14333
- * Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
14334
- * @returns OpenClawModelProvider
14335
- * @throws ApiError
14336
- */
14337
- static aiMentorOrgsOpenclawModelProvidersRetrieve({
14338
- id,
14339
- org
14340
- }) {
14341
- return request(OpenAPI, {
14342
- method: 'GET',
14343
- url: '/api/ai-mentor/orgs/{org}/openclaw/model-providers/{id}/',
14344
- path: {
14345
- 'id': id,
14346
- 'org': org
14347
- }
14348
- });
14349
- }
14350
- /**
14351
- * Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
14352
- * @returns OpenClawModelProvider
14316
+ * Connect to the worker and store Claw version from handshake.
14317
+ * @returns ClawInstance
14353
14318
  * @throws ApiError
14354
14319
  */
14355
- static aiMentorOrgsOpenclawModelProvidersUpdate({
14320
+ static aiMentorOrgsClawInstancesRefreshVersionCreate({
14356
14321
  id,
14357
14322
  org,
14358
14323
  requestBody
14359
14324
  }) {
14360
14325
  return request(OpenAPI, {
14361
- method: 'PUT',
14362
- url: '/api/ai-mentor/orgs/{org}/openclaw/model-providers/{id}/',
14326
+ method: 'POST',
14327
+ url: '/api/ai-mentor/orgs/{org}/claw/instances/{id}/refresh-version/',
14363
14328
  path: {
14364
14329
  'id': id,
14365
14330
  'org': org
@@ -14369,18 +14334,18 @@ class AiMentorService {
14369
14334
  });
14370
14335
  }
14371
14336
  /**
14372
- * Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
14373
- * @returns OpenClawModelProvider
14337
+ * Run security audit on the worker and store findings.
14338
+ * @returns ClawInstance
14374
14339
  * @throws ApiError
14375
14340
  */
14376
- static aiMentorOrgsOpenclawModelProvidersPartialUpdate({
14341
+ static aiMentorOrgsClawInstancesSecurityAuditCreate({
14377
14342
  id,
14378
14343
  org,
14379
14344
  requestBody
14380
14345
  }) {
14381
14346
  return request(OpenAPI, {
14382
- method: 'PATCH',
14383
- url: '/api/ai-mentor/orgs/{org}/openclaw/model-providers/{id}/',
14347
+ method: 'POST',
14348
+ url: '/api/ai-mentor/orgs/{org}/claw/instances/{id}/security-audit/',
14384
14349
  path: {
14385
14350
  'id': id,
14386
14351
  'org': org
@@ -14390,61 +14355,62 @@ class AiMentorService {
14390
14355
  });
14391
14356
  }
14392
14357
  /**
14393
- * Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
14394
- * @returns void
14358
+ * Test connectivity to the Claw instance: TLS reachability + health check.
14359
+ * @returns ClawInstance
14395
14360
  * @throws ApiError
14396
14361
  */
14397
- static aiMentorOrgsOpenclawModelProvidersDestroy({
14362
+ static aiMentorOrgsClawInstancesTestConnectivityCreate({
14398
14363
  id,
14399
- org
14364
+ org,
14365
+ requestBody
14400
14366
  }) {
14401
14367
  return request(OpenAPI, {
14402
- method: 'DELETE',
14403
- url: '/api/ai-mentor/orgs/{org}/openclaw/model-providers/{id}/',
14368
+ method: 'POST',
14369
+ url: '/api/ai-mentor/orgs/{org}/claw/instances/{id}/test-connectivity/',
14404
14370
  path: {
14405
14371
  'id': id,
14406
14372
  'org': org
14407
- }
14373
+ },
14374
+ body: requestBody,
14375
+ mediaType: 'application/json'
14408
14376
  });
14409
14377
  }
14410
14378
  /**
14411
14379
  * Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
14412
- * @returns PaginatedOpenClawServerList
14380
+ * @returns PaginatedClawMentorConfigList
14413
14381
  * @throws ApiError
14414
14382
  */
14415
- static aiMentorOrgsOpenclawServersList({
14383
+ static aiMentorOrgsClawMentorConfigsList({
14416
14384
  org,
14385
+ enabled,
14417
14386
  limit,
14418
- offset,
14419
- search,
14420
- status
14387
+ offset
14421
14388
  }) {
14422
14389
  return request(OpenAPI, {
14423
14390
  method: 'GET',
14424
- url: '/api/ai-mentor/orgs/{org}/openclaw/servers/',
14391
+ url: '/api/ai-mentor/orgs/{org}/claw/mentor-configs/',
14425
14392
  path: {
14426
14393
  'org': org
14427
14394
  },
14428
14395
  query: {
14396
+ 'enabled': enabled,
14429
14397
  'limit': limit,
14430
- 'offset': offset,
14431
- 'search': search,
14432
- 'status': status
14398
+ 'offset': offset
14433
14399
  }
14434
14400
  });
14435
14401
  }
14436
14402
  /**
14437
14403
  * Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
14438
- * @returns OpenClawServer
14404
+ * @returns ClawMentorConfig
14439
14405
  * @throws ApiError
14440
14406
  */
14441
- static aiMentorOrgsOpenclawServersCreate({
14407
+ static aiMentorOrgsClawMentorConfigsCreate({
14442
14408
  org,
14443
14409
  requestBody
14444
14410
  }) {
14445
14411
  return request(OpenAPI, {
14446
14412
  method: 'POST',
14447
- url: '/api/ai-mentor/orgs/{org}/openclaw/servers/',
14413
+ url: '/api/ai-mentor/orgs/{org}/claw/mentor-configs/',
14448
14414
  path: {
14449
14415
  'org': org
14450
14416
  },
@@ -14454,16 +14420,16 @@ class AiMentorService {
14454
14420
  }
14455
14421
  /**
14456
14422
  * Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
14457
- * @returns OpenClawServer
14423
+ * @returns ClawMentorConfig
14458
14424
  * @throws ApiError
14459
14425
  */
14460
- static aiMentorOrgsOpenclawServersRetrieve({
14426
+ static aiMentorOrgsClawMentorConfigsRetrieve({
14461
14427
  id,
14462
14428
  org
14463
14429
  }) {
14464
14430
  return request(OpenAPI, {
14465
14431
  method: 'GET',
14466
- url: '/api/ai-mentor/orgs/{org}/openclaw/servers/{id}/',
14432
+ url: '/api/ai-mentor/orgs/{org}/claw/mentor-configs/{id}/',
14467
14433
  path: {
14468
14434
  'id': id,
14469
14435
  'org': org
@@ -14472,17 +14438,17 @@ class AiMentorService {
14472
14438
  }
14473
14439
  /**
14474
14440
  * Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
14475
- * @returns OpenClawServer
14441
+ * @returns ClawMentorConfig
14476
14442
  * @throws ApiError
14477
14443
  */
14478
- static aiMentorOrgsOpenclawServersUpdate({
14444
+ static aiMentorOrgsClawMentorConfigsUpdate({
14479
14445
  id,
14480
14446
  org,
14481
14447
  requestBody
14482
14448
  }) {
14483
14449
  return request(OpenAPI, {
14484
14450
  method: 'PUT',
14485
- url: '/api/ai-mentor/orgs/{org}/openclaw/servers/{id}/',
14451
+ url: '/api/ai-mentor/orgs/{org}/claw/mentor-configs/{id}/',
14486
14452
  path: {
14487
14453
  'id': id,
14488
14454
  'org': org
@@ -14493,17 +14459,17 @@ class AiMentorService {
14493
14459
  }
14494
14460
  /**
14495
14461
  * Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
14496
- * @returns OpenClawServer
14462
+ * @returns ClawMentorConfig
14497
14463
  * @throws ApiError
14498
14464
  */
14499
- static aiMentorOrgsOpenclawServersPartialUpdate({
14465
+ static aiMentorOrgsClawMentorConfigsPartialUpdate({
14500
14466
  id,
14501
14467
  org,
14502
14468
  requestBody
14503
14469
  }) {
14504
14470
  return request(OpenAPI, {
14505
14471
  method: 'PATCH',
14506
- url: '/api/ai-mentor/orgs/{org}/openclaw/servers/{id}/',
14472
+ url: '/api/ai-mentor/orgs/{org}/claw/mentor-configs/{id}/',
14507
14473
  path: {
14508
14474
  'id': id,
14509
14475
  'org': org
@@ -14517,13 +14483,13 @@ class AiMentorService {
14517
14483
  * @returns void
14518
14484
  * @throws ApiError
14519
14485
  */
14520
- static aiMentorOrgsOpenclawServersDestroy({
14486
+ static aiMentorOrgsClawMentorConfigsDestroy({
14521
14487
  id,
14522
14488
  org
14523
14489
  }) {
14524
14490
  return request(OpenAPI, {
14525
14491
  method: 'DELETE',
14526
- url: '/api/ai-mentor/orgs/{org}/openclaw/servers/{id}/',
14492
+ url: '/api/ai-mentor/orgs/{org}/claw/mentor-configs/{id}/',
14527
14493
  path: {
14528
14494
  'id': id,
14529
14495
  'org': org
@@ -14531,18 +14497,18 @@ class AiMentorService {
14531
14497
  });
14532
14498
  }
14533
14499
  /**
14534
- * Run a health check against the OpenClaw server and update status.
14535
- * @returns OpenClawServer
14500
+ * Push agent_config to the Claw worker.
14501
+ * @returns ClawMentorConfig
14536
14502
  * @throws ApiError
14537
14503
  */
14538
- static aiMentorOrgsOpenclawServersHealthCheckCreate({
14504
+ static aiMentorOrgsClawMentorConfigsPushConfigCreate({
14539
14505
  id,
14540
14506
  org,
14541
14507
  requestBody
14542
14508
  }) {
14543
14509
  return request(OpenAPI, {
14544
14510
  method: 'POST',
14545
- url: '/api/ai-mentor/orgs/{org}/openclaw/servers/{id}/health-check/',
14511
+ url: '/api/ai-mentor/orgs/{org}/claw/mentor-configs/{id}/push-config/',
14546
14512
  path: {
14547
14513
  'id': id,
14548
14514
  'org': org
@@ -14552,18 +14518,81 @@ class AiMentorService {
14552
14518
  });
14553
14519
  }
14554
14520
  /**
14555
- * Push all enabled model providers to the worker.
14556
- * @returns OpenClawServer
14521
+ * Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
14522
+ * @returns PaginatedClawModelProviderList
14557
14523
  * @throws ApiError
14558
14524
  */
14559
- static aiMentorOrgsOpenclawServersPushProvidersCreate({
14560
- id,
14525
+ static aiMentorOrgsClawModelProvidersList({
14561
14526
  org,
14562
- requestBody
14527
+ enabled,
14528
+ limit,
14529
+ offset,
14530
+ server
14531
+ }) {
14532
+ return request(OpenAPI, {
14533
+ method: 'GET',
14534
+ url: '/api/ai-mentor/orgs/{org}/claw/model-providers/',
14535
+ path: {
14536
+ 'org': org
14537
+ },
14538
+ query: {
14539
+ 'enabled': enabled,
14540
+ 'limit': limit,
14541
+ 'offset': offset,
14542
+ 'server': server
14543
+ }
14544
+ });
14545
+ }
14546
+ /**
14547
+ * Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
14548
+ * @returns ClawModelProvider
14549
+ * @throws ApiError
14550
+ */
14551
+ static aiMentorOrgsClawModelProvidersCreate({
14552
+ org,
14553
+ requestBody
14563
14554
  }) {
14564
14555
  return request(OpenAPI, {
14565
14556
  method: 'POST',
14566
- url: '/api/ai-mentor/orgs/{org}/openclaw/servers/{id}/push-providers/',
14557
+ url: '/api/ai-mentor/orgs/{org}/claw/model-providers/',
14558
+ path: {
14559
+ 'org': org
14560
+ },
14561
+ body: requestBody,
14562
+ mediaType: 'application/json'
14563
+ });
14564
+ }
14565
+ /**
14566
+ * Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
14567
+ * @returns ClawModelProvider
14568
+ * @throws ApiError
14569
+ */
14570
+ static aiMentorOrgsClawModelProvidersRetrieve({
14571
+ id,
14572
+ org
14573
+ }) {
14574
+ return request(OpenAPI, {
14575
+ method: 'GET',
14576
+ url: '/api/ai-mentor/orgs/{org}/claw/model-providers/{id}/',
14577
+ path: {
14578
+ 'id': id,
14579
+ 'org': org
14580
+ }
14581
+ });
14582
+ }
14583
+ /**
14584
+ * Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
14585
+ * @returns ClawModelProvider
14586
+ * @throws ApiError
14587
+ */
14588
+ static aiMentorOrgsClawModelProvidersUpdate({
14589
+ id,
14590
+ org,
14591
+ requestBody
14592
+ }) {
14593
+ return request(OpenAPI, {
14594
+ method: 'PUT',
14595
+ url: '/api/ai-mentor/orgs/{org}/claw/model-providers/{id}/',
14567
14596
  path: {
14568
14597
  'id': id,
14569
14598
  'org': org
@@ -14573,18 +14602,18 @@ class AiMentorService {
14573
14602
  });
14574
14603
  }
14575
14604
  /**
14576
- * Connect to the worker and store OpenClaw version from handshake.
14577
- * @returns OpenClawServer
14605
+ * Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
14606
+ * @returns ClawModelProvider
14578
14607
  * @throws ApiError
14579
14608
  */
14580
- static aiMentorOrgsOpenclawServersRefreshVersionCreate({
14609
+ static aiMentorOrgsClawModelProvidersPartialUpdate({
14581
14610
  id,
14582
14611
  org,
14583
14612
  requestBody
14584
14613
  }) {
14585
14614
  return request(OpenAPI, {
14586
- method: 'POST',
14587
- url: '/api/ai-mentor/orgs/{org}/openclaw/servers/{id}/refresh-version/',
14615
+ method: 'PATCH',
14616
+ url: '/api/ai-mentor/orgs/{org}/claw/model-providers/{id}/',
14588
14617
  path: {
14589
14618
  'id': id,
14590
14619
  'org': org
@@ -14594,18 +14623,122 @@ class AiMentorService {
14594
14623
  });
14595
14624
  }
14596
14625
  /**
14597
- * Run security audit on the worker and store findings.
14598
- * @returns OpenClawServer
14626
+ * Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
14627
+ * @returns void
14599
14628
  * @throws ApiError
14600
14629
  */
14601
- static aiMentorOrgsOpenclawServersSecurityAuditCreate({
14630
+ static aiMentorOrgsClawModelProvidersDestroy({
14602
14631
  id,
14632
+ org
14633
+ }) {
14634
+ return request(OpenAPI, {
14635
+ method: 'DELETE',
14636
+ url: '/api/ai-mentor/orgs/{org}/claw/model-providers/{id}/',
14637
+ path: {
14638
+ 'id': id,
14639
+ 'org': org
14640
+ }
14641
+ });
14642
+ }
14643
+ /**
14644
+ * Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
14645
+ * @returns PaginatedMentorSkillAssignmentList
14646
+ * @throws ApiError
14647
+ */
14648
+ static aiMentorOrgsMentorSkillAssignmentsList({
14649
+ org,
14650
+ enabled,
14651
+ limit,
14652
+ mentor,
14653
+ offset,
14654
+ skill
14655
+ }) {
14656
+ return request(OpenAPI, {
14657
+ method: 'GET',
14658
+ url: '/api/ai-mentor/orgs/{org}/mentor-skill-assignments/',
14659
+ path: {
14660
+ 'org': org
14661
+ },
14662
+ query: {
14663
+ 'enabled': enabled,
14664
+ 'limit': limit,
14665
+ 'mentor': mentor,
14666
+ 'offset': offset,
14667
+ 'skill': skill
14668
+ }
14669
+ });
14670
+ }
14671
+ /**
14672
+ * Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
14673
+ * @returns MentorSkillAssignment
14674
+ * @throws ApiError
14675
+ */
14676
+ static aiMentorOrgsMentorSkillAssignmentsCreate({
14603
14677
  org,
14604
14678
  requestBody
14605
14679
  }) {
14606
14680
  return request(OpenAPI, {
14607
14681
  method: 'POST',
14608
- url: '/api/ai-mentor/orgs/{org}/openclaw/servers/{id}/security-audit/',
14682
+ url: '/api/ai-mentor/orgs/{org}/mentor-skill-assignments/',
14683
+ path: {
14684
+ 'org': org
14685
+ },
14686
+ body: requestBody,
14687
+ mediaType: 'application/json'
14688
+ });
14689
+ }
14690
+ /**
14691
+ * Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
14692
+ * @returns MentorSkillAssignment
14693
+ * @throws ApiError
14694
+ */
14695
+ static aiMentorOrgsMentorSkillAssignmentsRetrieve({
14696
+ id,
14697
+ org
14698
+ }) {
14699
+ return request(OpenAPI, {
14700
+ method: 'GET',
14701
+ url: '/api/ai-mentor/orgs/{org}/mentor-skill-assignments/{id}/',
14702
+ path: {
14703
+ 'id': id,
14704
+ 'org': org
14705
+ }
14706
+ });
14707
+ }
14708
+ /**
14709
+ * Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
14710
+ * @returns MentorSkillAssignment
14711
+ * @throws ApiError
14712
+ */
14713
+ static aiMentorOrgsMentorSkillAssignmentsUpdate({
14714
+ id,
14715
+ org,
14716
+ requestBody
14717
+ }) {
14718
+ return request(OpenAPI, {
14719
+ method: 'PUT',
14720
+ url: '/api/ai-mentor/orgs/{org}/mentor-skill-assignments/{id}/',
14721
+ path: {
14722
+ 'id': id,
14723
+ 'org': org
14724
+ },
14725
+ body: requestBody,
14726
+ mediaType: 'application/json'
14727
+ });
14728
+ }
14729
+ /**
14730
+ * Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
14731
+ * @returns MentorSkillAssignment
14732
+ * @throws ApiError
14733
+ */
14734
+ static aiMentorOrgsMentorSkillAssignmentsPartialUpdate({
14735
+ id,
14736
+ org,
14737
+ requestBody
14738
+ }) {
14739
+ return request(OpenAPI, {
14740
+ method: 'PATCH',
14741
+ url: '/api/ai-mentor/orgs/{org}/mentor-skill-assignments/{id}/',
14609
14742
  path: {
14610
14743
  'id': id,
14611
14744
  'org': org
@@ -14614,6 +14747,414 @@ class AiMentorService {
14614
14747
  mediaType: 'application/json'
14615
14748
  });
14616
14749
  }
14750
+ /**
14751
+ * Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
14752
+ * @returns void
14753
+ * @throws ApiError
14754
+ */
14755
+ static aiMentorOrgsMentorSkillAssignmentsDestroy({
14756
+ id,
14757
+ org
14758
+ }) {
14759
+ return request(OpenAPI, {
14760
+ method: 'DELETE',
14761
+ url: '/api/ai-mentor/orgs/{org}/mentor-skill-assignments/{id}/',
14762
+ path: {
14763
+ 'id': id,
14764
+ 'org': org
14765
+ }
14766
+ });
14767
+ }
14768
+ /**
14769
+ * List all active memory categories for a mentor.
14770
+ * @returns any No response body
14771
+ * @throws ApiError
14772
+ */
14773
+ static aiMentorOrgsMentorsMemoryCategoriesRetrieve({
14774
+ mentorId,
14775
+ org
14776
+ }) {
14777
+ return request(OpenAPI, {
14778
+ method: 'GET',
14779
+ url: '/api/ai-mentor/orgs/{org}/mentors/{mentor_id}/memory-categories/',
14780
+ path: {
14781
+ 'mentor_id': mentorId,
14782
+ 'org': org
14783
+ }
14784
+ });
14785
+ }
14786
+ /**
14787
+ * Create a new memory category.
14788
+ * @returns any No response body
14789
+ * @throws ApiError
14790
+ */
14791
+ static aiMentorOrgsMentorsMemoryCategoriesCreate({
14792
+ mentorId,
14793
+ org
14794
+ }) {
14795
+ return request(OpenAPI, {
14796
+ method: 'POST',
14797
+ url: '/api/ai-mentor/orgs/{org}/mentors/{mentor_id}/memory-categories/',
14798
+ path: {
14799
+ 'mentor_id': mentorId,
14800
+ 'org': org
14801
+ }
14802
+ });
14803
+ }
14804
+ /**
14805
+ * Update a memory category.
14806
+ * @returns any No response body
14807
+ * @throws ApiError
14808
+ */
14809
+ static aiMentorOrgsMentorsMemoryCategoriesPartialUpdate({
14810
+ categoryId,
14811
+ mentorId,
14812
+ org
14813
+ }) {
14814
+ return request(OpenAPI, {
14815
+ method: 'PATCH',
14816
+ url: '/api/ai-mentor/orgs/{org}/mentors/{mentor_id}/memory-categories/{category_id}/',
14817
+ path: {
14818
+ 'category_id': categoryId,
14819
+ 'mentor_id': mentorId,
14820
+ 'org': org
14821
+ }
14822
+ });
14823
+ }
14824
+ /**
14825
+ * Deactivate a memory category.
14826
+ * @returns void
14827
+ * @throws ApiError
14828
+ */
14829
+ static aiMentorOrgsMentorsMemoryCategoriesDestroy({
14830
+ categoryId,
14831
+ mentorId,
14832
+ org
14833
+ }) {
14834
+ return request(OpenAPI, {
14835
+ method: 'DELETE',
14836
+ url: '/api/ai-mentor/orgs/{org}/mentors/{mentor_id}/memory-categories/{category_id}/',
14837
+ path: {
14838
+ 'category_id': categoryId,
14839
+ 'mentor_id': mentorId,
14840
+ 'org': org
14841
+ }
14842
+ });
14843
+ }
14844
+ /**
14845
+ * Grant LTI Mentor Access
14846
+ * Grants a user Student type access to a mentor that is lti accessible.
14847
+ *
14848
+ * Creates or updates an RBAC policy named LTI-{mentor.unique_id} with the global Student role,
14849
+ * granting the specified user access to the mentor. Validates that the mentor has LTI access
14850
+ * enabled and that the user belongs to the specified platform.
14851
+ * @returns any Policy created and user granted access
14852
+ * @throws ApiError
14853
+ */
14854
+ static aiMentorOrgsMentorsLtiGrantMentorAccessCreate({
14855
+ mentorUniqueId,
14856
+ org,
14857
+ requestBody
14858
+ }) {
14859
+ return request(OpenAPI, {
14860
+ method: 'POST',
14861
+ url: '/api/ai-mentor/orgs/{org}/mentors/{mentor_unique_id}/lti/grant-mentor-access/',
14862
+ path: {
14863
+ 'mentor_unique_id': mentorUniqueId,
14864
+ 'org': org
14865
+ },
14866
+ body: requestBody,
14867
+ mediaType: 'application/json',
14868
+ errors: {
14869
+ 400: `Invalid request data`,
14870
+ 403: `Mentor is not LTI accessible`,
14871
+ 404: `Mentor, platform, or user not found`,
14872
+ 500: `Global Student role not found`
14873
+ }
14874
+ });
14875
+ }
14876
+ /**
14877
+ * Retrieve a list of emails in a mentor's inbox.
14878
+ *
14879
+ * The list can be filtered using the 'search' query parameter to search
14880
+ * for specific terms in the email content or subject.
14881
+ *
14882
+ * Args:
14883
+ * mentor: The unique identifier of the mentor.
14884
+ *
14885
+ * Returns:
14886
+ * Response: A paginated list of emails in the mentor's inbox.
14887
+ *
14888
+ * Raises:
14889
+ * NotFound: If the specified mentor does not exist.
14890
+ * @returns PaginatedEmailPromptListList
14891
+ * @throws ApiError
14892
+ */
14893
+ static aiMentorOrgsMentorsEmailInboxList({
14894
+ mentor,
14895
+ org,
14896
+ page,
14897
+ pageSize,
14898
+ search
14899
+ }) {
14900
+ return request(OpenAPI, {
14901
+ method: 'GET',
14902
+ url: '/api/ai-mentor/orgs/{org}/mentors/{mentor}/email-inbox/',
14903
+ path: {
14904
+ 'mentor': mentor,
14905
+ 'org': org
14906
+ },
14907
+ query: {
14908
+ 'page': page,
14909
+ 'page_size': pageSize,
14910
+ 'search': search
14911
+ },
14912
+ errors: {
14913
+ 404: `Mentor not found`
14914
+ }
14915
+ });
14916
+ }
14917
+ /**
14918
+ * Retrieve a summary of a mentor's email inbox.
14919
+ *
14920
+ * Args:
14921
+ * request: The HTTP request.
14922
+ * mentor: The unique identifier of the mentor.
14923
+ *
14924
+ * Returns:
14925
+ * Response: A summary of the mentor's email inbox statistics.
14926
+ *
14927
+ * Raises:
14928
+ * NotFound: If the specified mentor does not exist.
14929
+ * @returns EmailPromptSummary
14930
+ * @throws ApiError
14931
+ */
14932
+ static aiMentorOrgsMentorsEmailInboxSummaryRetrieve({
14933
+ mentor,
14934
+ org
14935
+ }) {
14936
+ return request(OpenAPI, {
14937
+ method: 'GET',
14938
+ url: '/api/ai-mentor/orgs/{org}/mentors/{mentor}/email-inbox-summary/',
14939
+ path: {
14940
+ 'mentor': mentor,
14941
+ 'org': org
14942
+ },
14943
+ errors: {
14944
+ 404: `Mentor not found`
14945
+ }
14946
+ });
14947
+ }
14948
+ /**
14949
+ * Retrieve details of a specific email in a mentor's inbox.
14950
+ *
14951
+ * Args:
14952
+ * request: The HTTP request.
14953
+ * email_prompt_id: The ID of the email to retrieve.
14954
+ *
14955
+ * Returns:
14956
+ * Response: The detailed information about the email.
14957
+ *
14958
+ * Raises:
14959
+ * NotFound: If the specified email does not exist.
14960
+ * @returns EmailPromptDetail
14961
+ * @throws ApiError
14962
+ */
14963
+ static aiMentorOrgsMentorsEmailInboxRetrieve({
14964
+ emailPromptId,
14965
+ mentor,
14966
+ org
14967
+ }) {
14968
+ return request(OpenAPI, {
14969
+ method: 'GET',
14970
+ url: '/api/ai-mentor/orgs/{org}/mentors/{mentor}/email-inbox/{email_prompt_id}/',
14971
+ path: {
14972
+ 'email_prompt_id': emailPromptId,
14973
+ 'mentor': mentor,
14974
+ 'org': org
14975
+ },
14976
+ errors: {
14977
+ 404: `Email not found`
14978
+ }
14979
+ });
14980
+ }
14981
+ /**
14982
+ * API endpoint to link mentor with a course and enable guided mode.
14983
+ *
14984
+ * Permissions:
14985
+ * - Accessible to tenant admins.
14986
+ * @returns LinkCourseResponse
14987
+ * @throws ApiError
14988
+ */
14989
+ static aiMentorOrgsMentorsLinkCourseRetrieve({
14990
+ mentor,
14991
+ org
14992
+ }) {
14993
+ return request(OpenAPI, {
14994
+ method: 'GET',
14995
+ url: '/api/ai-mentor/orgs/{org}/mentors/{mentor}/link-course/',
14996
+ path: {
14997
+ 'mentor': mentor,
14998
+ 'org': org
14999
+ }
15000
+ });
15001
+ }
15002
+ /**
15003
+ * API endpoint to link mentor with a course and enable guided mode.
15004
+ *
15005
+ * Permissions:
15006
+ * - Accessible to tenant admins.
15007
+ * @returns LinkCourseResponse
15008
+ * @throws ApiError
15009
+ */
15010
+ static aiMentorOrgsMentorsLinkCourseCreate({
15011
+ mentor,
15012
+ org,
15013
+ requestBody
15014
+ }) {
15015
+ return request(OpenAPI, {
15016
+ method: 'POST',
15017
+ url: '/api/ai-mentor/orgs/{org}/mentors/{mentor}/link-course/',
15018
+ path: {
15019
+ 'mentor': mentor,
15020
+ 'org': org
15021
+ },
15022
+ body: requestBody,
15023
+ mediaType: 'application/json'
15024
+ });
15025
+ }
15026
+ /**
15027
+ * Get accessible mentors by email
15028
+ * Returns a list of mentor unique IDs that a user can access via email in the specified organization.
15029
+ * @returns AccessibleMentorsByEmailResponse
15030
+ * @throws ApiError
15031
+ */
15032
+ static aiMentorOrgsMentorsByEmailCreate({
15033
+ org,
15034
+ requestBody
15035
+ }) {
15036
+ return request(OpenAPI, {
15037
+ method: 'POST',
15038
+ url: '/api/ai-mentor/orgs/{org}/mentors/by-email/',
15039
+ path: {
15040
+ 'org': org
15041
+ },
15042
+ body: requestBody,
15043
+ mediaType: 'application/json',
15044
+ errors: {
15045
+ 400: `Invalid request parameters`,
15046
+ 404: `User or platform not found`
15047
+ }
15048
+ });
15049
+ }
15050
+ /**
15051
+ * Create or update metadata for a mentor.
15052
+ *
15053
+ * Args:
15054
+ * request: The HTTP request containing the metadata.
15055
+ * org: The organization/tenant identifier.
15056
+ *
15057
+ * Returns:
15058
+ * Response: The created or updated mentor metadata.
15059
+ *
15060
+ * Raises:
15061
+ * BadRequest: If the provided data is invalid.
15062
+ * @returns MentorMetadata
15063
+ * @throws ApiError
15064
+ */
15065
+ static aiMentorOrgsMetadataCreate({
15066
+ org,
15067
+ requestBody
15068
+ }) {
15069
+ return request(OpenAPI, {
15070
+ method: 'POST',
15071
+ url: '/api/ai-mentor/orgs/{org}/metadata/',
15072
+ path: {
15073
+ 'org': org
15074
+ },
15075
+ body: requestBody,
15076
+ mediaType: 'application/json',
15077
+ errors: {
15078
+ 400: `Invalid data`
15079
+ }
15080
+ });
15081
+ }
15082
+ /**
15083
+ * Retrieve mentor configuration for offline use.
15084
+ *
15085
+ * Returns the same data as the mentor settings endpoint, including
15086
+ * system_prompt, LLM config, safety/moderation settings, and UI settings.
15087
+ *
15088
+ * Args:
15089
+ * request: The HTTP request.
15090
+ * org: Organization/platform key.
15091
+ * mentor_unique_id: The unique ID (UUID) of the mentor.
15092
+ *
15093
+ * Returns:
15094
+ * Response: Full mentor settings data.
15095
+ * @returns MentorSettings
15096
+ * @throws ApiError
15097
+ */
15098
+ static aiMentorOrgsOfflineMentorsConfigRetrieve({
15099
+ mentorUniqueId,
15100
+ org
15101
+ }) {
15102
+ return request(OpenAPI, {
15103
+ method: 'GET',
15104
+ url: '/api/ai-mentor/orgs/{org}/offline/mentors/{mentor_unique_id}/config/',
15105
+ path: {
15106
+ 'mentor_unique_id': mentorUniqueId,
15107
+ 'org': org
15108
+ },
15109
+ errors: {
15110
+ 403: `Offline mode not enabled`,
15111
+ 404: `Mentor not found`
15112
+ }
15113
+ });
15114
+ }
15115
+ /**
15116
+ * Retrieve paginated list of documents for offline use.
15117
+ *
15118
+ * Args:
15119
+ * request: The HTTP request.
15120
+ * org: Organization/platform key.
15121
+ * mentor_unique_id: The unique ID (UUID) of the mentor.
15122
+ *
15123
+ * Query Parameters:
15124
+ * limit: Number of results per page (default: 100, max: 500).
15125
+ * offset: Number of results to skip.
15126
+ * search: Optional search filter for document_name or url.
15127
+ *
15128
+ * Returns:
15129
+ * Response: Paginated list of documents with S3 URLs.
15130
+ * @returns PaginatedOfflineDocumentList
15131
+ * @throws ApiError
15132
+ */
15133
+ static aiMentorOrgsOfflineMentorsDatasetsList({
15134
+ mentorUniqueId,
15135
+ org,
15136
+ limit,
15137
+ offset,
15138
+ search
15139
+ }) {
15140
+ return request(OpenAPI, {
15141
+ method: 'GET',
15142
+ url: '/api/ai-mentor/orgs/{org}/offline/mentors/{mentor_unique_id}/datasets/',
15143
+ path: {
15144
+ 'mentor_unique_id': mentorUniqueId,
15145
+ 'org': org
15146
+ },
15147
+ query: {
15148
+ 'limit': limit,
15149
+ 'offset': offset,
15150
+ 'search': search
15151
+ },
15152
+ errors: {
15153
+ 403: `Offline mode not enabled`,
15154
+ 404: `Mentor not found`
15155
+ }
15156
+ });
15157
+ }
14617
15158
  /**
14618
15159
  * List projects
14619
15160
  * Retrieve a list of projects with optional filtering and search.