@iblai/iblai-api 4.238.0-ai → 4.239.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 (39) hide show
  1. package/dist/index.cjs.js +260 -327
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.esm.js +260 -327
  4. package/dist/index.esm.js.map +1 -1
  5. package/dist/index.umd.js +260 -327
  6. package/dist/index.umd.js.map +1 -1
  7. package/dist/types/index.d.ts +0 -4
  8. package/dist/types/models/AgentSkill.d.ts +1 -0
  9. package/dist/types/models/ClawMentorConfig.d.ts +3 -1
  10. package/dist/types/models/MentorSettings.d.ts +1 -1
  11. package/dist/types/models/MentorSettingsRequest.d.ts +1 -0
  12. package/dist/types/models/MentorSkillAssignment.d.ts +5 -2
  13. package/dist/types/models/PatchedAgentSkill.d.ts +1 -0
  14. package/dist/types/models/PatchedClawMentorConfig.d.ts +3 -1
  15. package/dist/types/models/PatchedMentorSettings.d.ts +1 -1
  16. package/dist/types/models/PatchedMentorSkillAssignment.d.ts +5 -2
  17. package/dist/types/services/AiMentorService.d.ts +185 -255
  18. package/package.json +1 -1
  19. package/sdk_schema.yml +454 -700
  20. package/src/core/OpenAPI.ts +1 -1
  21. package/src/index.ts +0 -4
  22. package/src/models/AgentSkill.ts +1 -0
  23. package/src/models/ClawMentorConfig.ts +3 -1
  24. package/src/models/MentorSettings.ts +1 -1
  25. package/src/models/MentorSettingsRequest.ts +1 -0
  26. package/src/models/MentorSkillAssignment.ts +5 -2
  27. package/src/models/PatchedAgentSkill.ts +1 -0
  28. package/src/models/PatchedClawMentorConfig.ts +3 -1
  29. package/src/models/PatchedMentorSettings.ts +1 -1
  30. package/src/models/PatchedMentorSkillAssignment.ts +5 -2
  31. package/src/services/AiMentorService.ts +321 -458
  32. package/dist/types/models/AgentConfig.d.ts +0 -46
  33. package/dist/types/models/PaginatedAgentConfigList.d.ts +0 -7
  34. package/dist/types/models/PaginatedClawMentorConfigList.d.ts +0 -7
  35. package/dist/types/models/PatchedAgentConfig.d.ts +0 -46
  36. package/src/models/AgentConfig.ts +0 -51
  37. package/src/models/PaginatedAgentConfigList.ts +0 -12
  38. package/src/models/PaginatedClawMentorConfigList.ts +0 -12
  39. package/src/models/PatchedAgentConfig.ts +0 -51
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.238.0-ai-plus',
113
+ VERSION: '4.239.0-ai-plus',
114
114
  WITH_CREDENTIALS: false,
115
115
  CREDENTIALS: 'include',
116
116
  TOKEN: undefined,
@@ -13795,7 +13795,7 @@ class AiMentorService {
13795
13795
  /**
13796
13796
  * Public health endpoint for external monitoring (Pingdom, uptime checks).
13797
13797
  *
13798
- * Returns 200 if all non-inactive Claw servers are healthy,
13798
+ * Returns 200 if all non-inactive Claw instances are healthy,
13799
13799
  * 500 if any are in error state. Pure DB read, no external calls.
13800
13800
  * @returns any No response body
13801
13801
  * @throws ApiError
@@ -13809,8 +13809,8 @@ class AiMentorService {
13809
13809
  /**
13810
13810
  * Detailed health dashboard for DM admins.
13811
13811
  *
13812
- * Returns health status for all Claw servers across all orgs,
13813
- * including server details and enabled mentor counts.
13812
+ * Returns health status for all Claw instances across all orgs,
13813
+ * including instance details and enabled mentor counts.
13814
13814
  * @returns any No response body
13815
13815
  * @throws ApiError
13816
13816
  */
@@ -13831,125 +13831,6 @@ class AiMentorService {
13831
13831
  url: '/api/ai-mentor/langfuse/health/'
13832
13832
  });
13833
13833
  }
13834
- /**
13835
- * Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
13836
- * @returns PaginatedAgentConfigList
13837
- * @throws ApiError
13838
- */
13839
- static aiMentorOrgsAgentConfigsList({
13840
- org,
13841
- limit,
13842
- offset
13843
- }) {
13844
- return request(OpenAPI, {
13845
- method: 'GET',
13846
- url: '/api/ai-mentor/orgs/{org}/agent-configs/',
13847
- path: {
13848
- 'org': org
13849
- },
13850
- query: {
13851
- 'limit': limit,
13852
- 'offset': offset
13853
- }
13854
- });
13855
- }
13856
- /**
13857
- * Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
13858
- * @returns AgentConfig
13859
- * @throws ApiError
13860
- */
13861
- static aiMentorOrgsAgentConfigsCreate({
13862
- org,
13863
- requestBody
13864
- }) {
13865
- return request(OpenAPI, {
13866
- method: 'POST',
13867
- url: '/api/ai-mentor/orgs/{org}/agent-configs/',
13868
- path: {
13869
- 'org': org
13870
- },
13871
- body: requestBody,
13872
- mediaType: 'application/json'
13873
- });
13874
- }
13875
- /**
13876
- * Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
13877
- * @returns AgentConfig
13878
- * @throws ApiError
13879
- */
13880
- static aiMentorOrgsAgentConfigsRetrieve({
13881
- id,
13882
- org
13883
- }) {
13884
- return request(OpenAPI, {
13885
- method: 'GET',
13886
- url: '/api/ai-mentor/orgs/{org}/agent-configs/{id}/',
13887
- path: {
13888
- 'id': id,
13889
- 'org': org
13890
- }
13891
- });
13892
- }
13893
- /**
13894
- * Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
13895
- * @returns AgentConfig
13896
- * @throws ApiError
13897
- */
13898
- static aiMentorOrgsAgentConfigsUpdate({
13899
- id,
13900
- org,
13901
- requestBody
13902
- }) {
13903
- return request(OpenAPI, {
13904
- method: 'PUT',
13905
- url: '/api/ai-mentor/orgs/{org}/agent-configs/{id}/',
13906
- path: {
13907
- 'id': id,
13908
- 'org': org
13909
- },
13910
- body: requestBody,
13911
- mediaType: 'application/json'
13912
- });
13913
- }
13914
- /**
13915
- * Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
13916
- * @returns AgentConfig
13917
- * @throws ApiError
13918
- */
13919
- static aiMentorOrgsAgentConfigsPartialUpdate({
13920
- id,
13921
- org,
13922
- requestBody
13923
- }) {
13924
- return request(OpenAPI, {
13925
- method: 'PATCH',
13926
- url: '/api/ai-mentor/orgs/{org}/agent-configs/{id}/',
13927
- path: {
13928
- 'id': id,
13929
- 'org': org
13930
- },
13931
- body: requestBody,
13932
- mediaType: 'application/json'
13933
- });
13934
- }
13935
- /**
13936
- * Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
13937
- * @returns void
13938
- * @throws ApiError
13939
- */
13940
- static aiMentorOrgsAgentConfigsDestroy({
13941
- id,
13942
- org
13943
- }) {
13944
- return request(OpenAPI, {
13945
- method: 'DELETE',
13946
- url: '/api/ai-mentor/orgs/{org}/agent-configs/{id}/',
13947
- path: {
13948
- 'id': id,
13949
- 'org': org
13950
- }
13951
- });
13952
- }
13953
13834
  /**
13954
13835
  * Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
13955
13836
  * @returns PaginatedAgentSkillResourceList
@@ -14349,7 +14230,7 @@ class AiMentorService {
14349
14230
  });
14350
14231
  }
14351
14232
  /**
14352
- * Queue a health check against the Claw server.
14233
+ * Queue a health check against the Claw instance.
14353
14234
  *
14354
14235
  * Offloaded to Celery because the real health check uses a WebSocket
14355
14236
  * handshake + RPC, which blocks gevent workers (sockets are not
@@ -14460,40 +14341,42 @@ class AiMentorService {
14460
14341
  }
14461
14342
  /**
14462
14343
  * Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
14463
- * @returns PaginatedClawMentorConfigList
14344
+ * @returns PaginatedClawModelProviderList
14464
14345
  * @throws ApiError
14465
14346
  */
14466
- static aiMentorOrgsClawMentorConfigsList({
14347
+ static aiMentorOrgsClawModelProvidersList({
14467
14348
  org,
14468
14349
  enabled,
14469
14350
  limit,
14470
- offset
14351
+ offset,
14352
+ server
14471
14353
  }) {
14472
14354
  return request(OpenAPI, {
14473
14355
  method: 'GET',
14474
- url: '/api/ai-mentor/orgs/{org}/claw/mentor-configs/',
14356
+ url: '/api/ai-mentor/orgs/{org}/claw/model-providers/',
14475
14357
  path: {
14476
14358
  'org': org
14477
14359
  },
14478
14360
  query: {
14479
14361
  'enabled': enabled,
14480
14362
  'limit': limit,
14481
- 'offset': offset
14363
+ 'offset': offset,
14364
+ 'server': server
14482
14365
  }
14483
14366
  });
14484
14367
  }
14485
14368
  /**
14486
14369
  * Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
14487
- * @returns ClawMentorConfig
14370
+ * @returns ClawModelProvider
14488
14371
  * @throws ApiError
14489
14372
  */
14490
- static aiMentorOrgsClawMentorConfigsCreate({
14373
+ static aiMentorOrgsClawModelProvidersCreate({
14491
14374
  org,
14492
14375
  requestBody
14493
14376
  }) {
14494
14377
  return request(OpenAPI, {
14495
14378
  method: 'POST',
14496
- url: '/api/ai-mentor/orgs/{org}/claw/mentor-configs/',
14379
+ url: '/api/ai-mentor/orgs/{org}/claw/model-providers/',
14497
14380
  path: {
14498
14381
  'org': org
14499
14382
  },
@@ -14503,16 +14386,16 @@ class AiMentorService {
14503
14386
  }
14504
14387
  /**
14505
14388
  * Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
14506
- * @returns ClawMentorConfig
14389
+ * @returns ClawModelProvider
14507
14390
  * @throws ApiError
14508
14391
  */
14509
- static aiMentorOrgsClawMentorConfigsRetrieve({
14392
+ static aiMentorOrgsClawModelProvidersRetrieve({
14510
14393
  id,
14511
14394
  org
14512
14395
  }) {
14513
14396
  return request(OpenAPI, {
14514
14397
  method: 'GET',
14515
- url: '/api/ai-mentor/orgs/{org}/claw/mentor-configs/{id}/',
14398
+ url: '/api/ai-mentor/orgs/{org}/claw/model-providers/{id}/',
14516
14399
  path: {
14517
14400
  'id': id,
14518
14401
  'org': org
@@ -14521,17 +14404,17 @@ class AiMentorService {
14521
14404
  }
14522
14405
  /**
14523
14406
  * Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
14524
- * @returns ClawMentorConfig
14407
+ * @returns ClawModelProvider
14525
14408
  * @throws ApiError
14526
14409
  */
14527
- static aiMentorOrgsClawMentorConfigsUpdate({
14410
+ static aiMentorOrgsClawModelProvidersUpdate({
14528
14411
  id,
14529
14412
  org,
14530
14413
  requestBody
14531
14414
  }) {
14532
14415
  return request(OpenAPI, {
14533
14416
  method: 'PUT',
14534
- url: '/api/ai-mentor/orgs/{org}/claw/mentor-configs/{id}/',
14417
+ url: '/api/ai-mentor/orgs/{org}/claw/model-providers/{id}/',
14535
14418
  path: {
14536
14419
  'id': id,
14537
14420
  'org': org
@@ -14542,17 +14425,17 @@ class AiMentorService {
14542
14425
  }
14543
14426
  /**
14544
14427
  * Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
14545
- * @returns ClawMentorConfig
14428
+ * @returns ClawModelProvider
14546
14429
  * @throws ApiError
14547
14430
  */
14548
- static aiMentorOrgsClawMentorConfigsPartialUpdate({
14431
+ static aiMentorOrgsClawModelProvidersPartialUpdate({
14549
14432
  id,
14550
14433
  org,
14551
14434
  requestBody
14552
14435
  }) {
14553
14436
  return request(OpenAPI, {
14554
14437
  method: 'PATCH',
14555
- url: '/api/ai-mentor/orgs/{org}/claw/mentor-configs/{id}/',
14438
+ url: '/api/ai-mentor/orgs/{org}/claw/model-providers/{id}/',
14556
14439
  path: {
14557
14440
  'id': id,
14558
14441
  'org': org
@@ -14566,13 +14449,13 @@ class AiMentorService {
14566
14449
  * @returns void
14567
14450
  * @throws ApiError
14568
14451
  */
14569
- static aiMentorOrgsClawMentorConfigsDestroy({
14452
+ static aiMentorOrgsClawModelProvidersDestroy({
14570
14453
  id,
14571
14454
  org
14572
14455
  }) {
14573
14456
  return request(OpenAPI, {
14574
14457
  method: 'DELETE',
14575
- url: '/api/ai-mentor/orgs/{org}/claw/mentor-configs/{id}/',
14458
+ url: '/api/ai-mentor/orgs/{org}/claw/model-providers/{id}/',
14576
14459
  path: {
14577
14460
  'id': id,
14578
14461
  'org': org
@@ -14580,190 +14463,193 @@ class AiMentorService {
14580
14463
  });
14581
14464
  }
14582
14465
  /**
14583
- * Push agent_config to the Claw worker.
14584
- * @returns ClawMentorConfig
14466
+ * List all active memory categories for a mentor.
14467
+ * @returns any No response body
14585
14468
  * @throws ApiError
14586
14469
  */
14587
- static aiMentorOrgsClawMentorConfigsPushConfigCreate({
14588
- id,
14589
- org,
14590
- requestBody
14470
+ static aiMentorOrgsMentorsMemoryCategoriesRetrieve({
14471
+ mentorId,
14472
+ org
14591
14473
  }) {
14592
14474
  return request(OpenAPI, {
14593
- method: 'POST',
14594
- url: '/api/ai-mentor/orgs/{org}/claw/mentor-configs/{id}/push-config/',
14475
+ method: 'GET',
14476
+ url: '/api/ai-mentor/orgs/{org}/mentors/{mentor_id}/memory-categories/',
14595
14477
  path: {
14596
- 'id': id,
14478
+ 'mentor_id': mentorId,
14597
14479
  'org': org
14598
- },
14599
- body: requestBody,
14600
- mediaType: 'application/json'
14480
+ }
14601
14481
  });
14602
14482
  }
14603
14483
  /**
14604
- * Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
14605
- * @returns PaginatedClawModelProviderList
14484
+ * Create a new memory category.
14485
+ * @returns any No response body
14606
14486
  * @throws ApiError
14607
14487
  */
14608
- static aiMentorOrgsClawModelProvidersList({
14609
- org,
14610
- enabled,
14611
- limit,
14612
- offset,
14613
- server
14488
+ static aiMentorOrgsMentorsMemoryCategoriesCreate({
14489
+ mentorId,
14490
+ org
14614
14491
  }) {
14615
14492
  return request(OpenAPI, {
14616
- method: 'GET',
14617
- url: '/api/ai-mentor/orgs/{org}/claw/model-providers/',
14493
+ method: 'POST',
14494
+ url: '/api/ai-mentor/orgs/{org}/mentors/{mentor_id}/memory-categories/',
14618
14495
  path: {
14496
+ 'mentor_id': mentorId,
14619
14497
  'org': org
14620
- },
14621
- query: {
14622
- 'enabled': enabled,
14623
- 'limit': limit,
14624
- 'offset': offset,
14625
- 'server': server
14626
14498
  }
14627
14499
  });
14628
14500
  }
14629
14501
  /**
14630
- * Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
14631
- * @returns ClawModelProvider
14502
+ * Update a memory category.
14503
+ * @returns any No response body
14632
14504
  * @throws ApiError
14633
14505
  */
14634
- static aiMentorOrgsClawModelProvidersCreate({
14635
- org,
14636
- requestBody
14506
+ static aiMentorOrgsMentorsMemoryCategoriesPartialUpdate({
14507
+ categoryId,
14508
+ mentorId,
14509
+ org
14637
14510
  }) {
14638
14511
  return request(OpenAPI, {
14639
- method: 'POST',
14640
- url: '/api/ai-mentor/orgs/{org}/claw/model-providers/',
14512
+ method: 'PATCH',
14513
+ url: '/api/ai-mentor/orgs/{org}/mentors/{mentor_id}/memory-categories/{category_id}/',
14641
14514
  path: {
14515
+ 'category_id': categoryId,
14516
+ 'mentor_id': mentorId,
14642
14517
  'org': org
14643
- },
14644
- body: requestBody,
14645
- mediaType: 'application/json'
14518
+ }
14646
14519
  });
14647
14520
  }
14648
14521
  /**
14649
- * Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
14650
- * @returns ClawModelProvider
14522
+ * Deactivate a memory category.
14523
+ * @returns void
14651
14524
  * @throws ApiError
14652
14525
  */
14653
- static aiMentorOrgsClawModelProvidersRetrieve({
14654
- id,
14526
+ static aiMentorOrgsMentorsMemoryCategoriesDestroy({
14527
+ categoryId,
14528
+ mentorId,
14655
14529
  org
14656
14530
  }) {
14657
14531
  return request(OpenAPI, {
14658
- method: 'GET',
14659
- url: '/api/ai-mentor/orgs/{org}/claw/model-providers/{id}/',
14532
+ method: 'DELETE',
14533
+ url: '/api/ai-mentor/orgs/{org}/mentors/{mentor_id}/memory-categories/{category_id}/',
14660
14534
  path: {
14661
- 'id': id,
14535
+ 'category_id': categoryId,
14536
+ 'mentor_id': mentorId,
14662
14537
  'org': org
14663
14538
  }
14664
14539
  });
14665
14540
  }
14666
14541
  /**
14667
- * Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
14668
- * @returns ClawModelProvider
14542
+ * Singular AgentConfig nested under a mentor. GET + PATCH only.
14543
+ *
14544
+ * AgentConfig is auto-created by ClawMentorConfig.save(); if a mentor has
14545
+ * never had a ClawMentorConfig, PATCH will create the AgentConfig on first
14546
+ * write via get_or_create. DELETE is not supported (the row would be
14547
+ * immediately recreated by a subsequent ClawMentorConfig.save).
14548
+ * @returns any No response body
14669
14549
  * @throws ApiError
14670
14550
  */
14671
- static aiMentorOrgsClawModelProvidersUpdate({
14672
- id,
14673
- org,
14674
- requestBody
14551
+ static aiMentorOrgsMentorsAgentConfigRetrieve({
14552
+ mentorUniqueId,
14553
+ org
14675
14554
  }) {
14676
14555
  return request(OpenAPI, {
14677
- method: 'PUT',
14678
- url: '/api/ai-mentor/orgs/{org}/claw/model-providers/{id}/',
14556
+ method: 'GET',
14557
+ url: '/api/ai-mentor/orgs/{org}/mentors/{mentor_unique_id}/agent-config/',
14679
14558
  path: {
14680
- 'id': id,
14559
+ 'mentor_unique_id': mentorUniqueId,
14681
14560
  'org': org
14682
- },
14683
- body: requestBody,
14684
- mediaType: 'application/json'
14561
+ }
14685
14562
  });
14686
14563
  }
14687
14564
  /**
14688
- * Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
14689
- * @returns ClawModelProvider
14565
+ * Singular AgentConfig nested under a mentor. GET + PATCH only.
14566
+ *
14567
+ * AgentConfig is auto-created by ClawMentorConfig.save(); if a mentor has
14568
+ * never had a ClawMentorConfig, PATCH will create the AgentConfig on first
14569
+ * write via get_or_create. DELETE is not supported (the row would be
14570
+ * immediately recreated by a subsequent ClawMentorConfig.save).
14571
+ * @returns any No response body
14690
14572
  * @throws ApiError
14691
14573
  */
14692
- static aiMentorOrgsClawModelProvidersPartialUpdate({
14693
- id,
14694
- org,
14695
- requestBody
14574
+ static aiMentorOrgsMentorsAgentConfigPartialUpdate({
14575
+ mentorUniqueId,
14576
+ org
14696
14577
  }) {
14697
14578
  return request(OpenAPI, {
14698
14579
  method: 'PATCH',
14699
- url: '/api/ai-mentor/orgs/{org}/claw/model-providers/{id}/',
14580
+ url: '/api/ai-mentor/orgs/{org}/mentors/{mentor_unique_id}/agent-config/',
14700
14581
  path: {
14701
- 'id': id,
14582
+ 'mentor_unique_id': mentorUniqueId,
14702
14583
  'org': org
14703
- },
14704
- body: requestBody,
14705
- mediaType: 'application/json'
14584
+ }
14706
14585
  });
14707
14586
  }
14708
14587
  /**
14709
- * Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
14710
- * @returns void
14588
+ * Singular ClawMentorConfig nested under a mentor.
14589
+ *
14590
+ * Supports GET/POST/PATCH/DELETE plus the push-config/ custom action.
14591
+ * POST creates the (one and only) ClawMentorConfig for this mentor — the
14592
+ * OneToOne(Mentor) constraint means a duplicate POST returns 400.
14593
+ * @returns ClawMentorConfig
14711
14594
  * @throws ApiError
14712
14595
  */
14713
- static aiMentorOrgsClawModelProvidersDestroy({
14714
- id,
14596
+ static aiMentorOrgsMentorsClawConfigRetrieve({
14597
+ mentorUniqueId,
14715
14598
  org
14716
14599
  }) {
14717
14600
  return request(OpenAPI, {
14718
- method: 'DELETE',
14719
- url: '/api/ai-mentor/orgs/{org}/claw/model-providers/{id}/',
14601
+ method: 'GET',
14602
+ url: '/api/ai-mentor/orgs/{org}/mentors/{mentor_unique_id}/claw-config/',
14720
14603
  path: {
14721
- 'id': id,
14604
+ 'mentor_unique_id': mentorUniqueId,
14722
14605
  'org': org
14723
14606
  }
14724
14607
  });
14725
14608
  }
14726
14609
  /**
14727
- * Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
14728
- * @returns PaginatedMentorSkillAssignmentList
14610
+ * Singular ClawMentorConfig nested under a mentor.
14611
+ *
14612
+ * Supports GET/POST/PATCH/DELETE plus the push-config/ custom action.
14613
+ * POST creates the (one and only) ClawMentorConfig for this mentor — the
14614
+ * OneToOne(Mentor) constraint means a duplicate POST returns 400.
14615
+ * @returns ClawMentorConfig
14729
14616
  * @throws ApiError
14730
14617
  */
14731
- static aiMentorOrgsMentorSkillAssignmentsList({
14618
+ static aiMentorOrgsMentorsClawConfigCreate({
14619
+ mentorUniqueId,
14732
14620
  org,
14733
- enabled,
14734
- limit,
14735
- mentor,
14736
- offset,
14737
- skill
14621
+ requestBody
14738
14622
  }) {
14739
14623
  return request(OpenAPI, {
14740
- method: 'GET',
14741
- url: '/api/ai-mentor/orgs/{org}/mentor-skill-assignments/',
14624
+ method: 'POST',
14625
+ url: '/api/ai-mentor/orgs/{org}/mentors/{mentor_unique_id}/claw-config/',
14742
14626
  path: {
14627
+ 'mentor_unique_id': mentorUniqueId,
14743
14628
  'org': org
14744
14629
  },
14745
- query: {
14746
- 'enabled': enabled,
14747
- 'limit': limit,
14748
- 'mentor': mentor,
14749
- 'offset': offset,
14750
- 'skill': skill
14751
- }
14630
+ body: requestBody,
14631
+ mediaType: 'application/json'
14752
14632
  });
14753
14633
  }
14754
14634
  /**
14755
- * Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
14756
- * @returns MentorSkillAssignment
14635
+ * Singular ClawMentorConfig nested under a mentor.
14636
+ *
14637
+ * Supports GET/POST/PATCH/DELETE plus the push-config/ custom action.
14638
+ * POST creates the (one and only) ClawMentorConfig for this mentor — the
14639
+ * OneToOne(Mentor) constraint means a duplicate POST returns 400.
14640
+ * @returns ClawMentorConfig
14757
14641
  * @throws ApiError
14758
14642
  */
14759
- static aiMentorOrgsMentorSkillAssignmentsCreate({
14643
+ static aiMentorOrgsMentorsClawConfigUpdate({
14644
+ mentorUniqueId,
14760
14645
  org,
14761
14646
  requestBody
14762
14647
  }) {
14763
14648
  return request(OpenAPI, {
14764
- method: 'POST',
14765
- url: '/api/ai-mentor/orgs/{org}/mentor-skill-assignments/',
14649
+ method: 'PUT',
14650
+ url: '/api/ai-mentor/orgs/{org}/mentors/{mentor_unique_id}/claw-config/',
14766
14651
  path: {
14652
+ 'mentor_unique_id': mentorUniqueId,
14767
14653
  'org': org
14768
14654
  },
14769
14655
  body: requestBody,
@@ -14771,59 +14657,67 @@ class AiMentorService {
14771
14657
  });
14772
14658
  }
14773
14659
  /**
14774
- * Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
14775
- * @returns MentorSkillAssignment
14660
+ * Singular ClawMentorConfig nested under a mentor.
14661
+ *
14662
+ * Supports GET/POST/PATCH/DELETE plus the push-config/ custom action.
14663
+ * POST creates the (one and only) ClawMentorConfig for this mentor — the
14664
+ * OneToOne(Mentor) constraint means a duplicate POST returns 400.
14665
+ * @returns ClawMentorConfig
14776
14666
  * @throws ApiError
14777
14667
  */
14778
- static aiMentorOrgsMentorSkillAssignmentsRetrieve({
14779
- id,
14780
- org
14668
+ static aiMentorOrgsMentorsClawConfigPartialUpdate({
14669
+ mentorUniqueId,
14670
+ org,
14671
+ requestBody
14781
14672
  }) {
14782
14673
  return request(OpenAPI, {
14783
- method: 'GET',
14784
- url: '/api/ai-mentor/orgs/{org}/mentor-skill-assignments/{id}/',
14674
+ method: 'PATCH',
14675
+ url: '/api/ai-mentor/orgs/{org}/mentors/{mentor_unique_id}/claw-config/',
14785
14676
  path: {
14786
- 'id': id,
14677
+ 'mentor_unique_id': mentorUniqueId,
14787
14678
  'org': org
14788
- }
14679
+ },
14680
+ body: requestBody,
14681
+ mediaType: 'application/json'
14789
14682
  });
14790
14683
  }
14791
14684
  /**
14792
- * Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
14793
- * @returns MentorSkillAssignment
14685
+ * Singular ClawMentorConfig nested under a mentor.
14686
+ *
14687
+ * Supports GET/POST/PATCH/DELETE plus the push-config/ custom action.
14688
+ * POST creates the (one and only) ClawMentorConfig for this mentor — the
14689
+ * OneToOne(Mentor) constraint means a duplicate POST returns 400.
14690
+ * @returns void
14794
14691
  * @throws ApiError
14795
14692
  */
14796
- static aiMentorOrgsMentorSkillAssignmentsUpdate({
14797
- id,
14798
- org,
14799
- requestBody
14693
+ static aiMentorOrgsMentorsClawConfigDestroy({
14694
+ mentorUniqueId,
14695
+ org
14800
14696
  }) {
14801
14697
  return request(OpenAPI, {
14802
- method: 'PUT',
14803
- url: '/api/ai-mentor/orgs/{org}/mentor-skill-assignments/{id}/',
14698
+ method: 'DELETE',
14699
+ url: '/api/ai-mentor/orgs/{org}/mentors/{mentor_unique_id}/claw-config/',
14804
14700
  path: {
14805
- 'id': id,
14701
+ 'mentor_unique_id': mentorUniqueId,
14806
14702
  'org': org
14807
- },
14808
- body: requestBody,
14809
- mediaType: 'application/json'
14703
+ }
14810
14704
  });
14811
14705
  }
14812
14706
  /**
14813
- * Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
14814
- * @returns MentorSkillAssignment
14707
+ * Push agent_config to the Claw worker. RBAC enforced in initial().
14708
+ * @returns ClawMentorConfig
14815
14709
  * @throws ApiError
14816
14710
  */
14817
- static aiMentorOrgsMentorSkillAssignmentsPartialUpdate({
14818
- id,
14711
+ static aiMentorOrgsMentorsClawConfigPushConfigCreate({
14712
+ mentorUniqueId,
14819
14713
  org,
14820
14714
  requestBody
14821
14715
  }) {
14822
14716
  return request(OpenAPI, {
14823
- method: 'PATCH',
14824
- url: '/api/ai-mentor/orgs/{org}/mentor-skill-assignments/{id}/',
14717
+ method: 'POST',
14718
+ url: '/api/ai-mentor/orgs/{org}/mentors/{mentor_unique_id}/claw-config/push-config/',
14825
14719
  path: {
14826
- 'id': id,
14720
+ 'mentor_unique_id': mentorUniqueId,
14827
14721
  'org': org
14828
14722
  },
14829
14723
  body: requestBody,
@@ -14831,128 +14725,167 @@ class AiMentorService {
14831
14725
  });
14832
14726
  }
14833
14727
  /**
14834
- * Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
14835
- * @returns void
14728
+ * Grant LTI Mentor Access
14729
+ * Grants a user Student type access to a mentor that is lti accessible.
14730
+ *
14731
+ * Creates or updates an RBAC policy named LTI-{mentor.unique_id} with the global Student role,
14732
+ * granting the specified user access to the mentor. Validates that the mentor has LTI access
14733
+ * enabled and that the user belongs to the specified platform.
14734
+ * @returns any Policy created and user granted access
14836
14735
  * @throws ApiError
14837
14736
  */
14838
- static aiMentorOrgsMentorSkillAssignmentsDestroy({
14839
- id,
14840
- org
14737
+ static aiMentorOrgsMentorsLtiGrantMentorAccessCreate({
14738
+ mentorUniqueId,
14739
+ org,
14740
+ requestBody
14841
14741
  }) {
14842
14742
  return request(OpenAPI, {
14843
- method: 'DELETE',
14844
- url: '/api/ai-mentor/orgs/{org}/mentor-skill-assignments/{id}/',
14743
+ method: 'POST',
14744
+ url: '/api/ai-mentor/orgs/{org}/mentors/{mentor_unique_id}/lti/grant-mentor-access/',
14845
14745
  path: {
14846
- 'id': id,
14746
+ 'mentor_unique_id': mentorUniqueId,
14847
14747
  'org': org
14748
+ },
14749
+ body: requestBody,
14750
+ mediaType: 'application/json',
14751
+ errors: {
14752
+ 400: `Invalid request data`,
14753
+ 403: `Mentor is not LTI accessible`,
14754
+ 404: `Mentor, platform, or user not found`,
14755
+ 500: `Global Student role not found`
14848
14756
  }
14849
14757
  });
14850
14758
  }
14851
14759
  /**
14852
- * List all active memory categories for a mentor.
14853
- * @returns any No response body
14760
+ * Skill assignments nested under a mentor. Full CRUD.
14761
+ * @returns PaginatedMentorSkillAssignmentList
14854
14762
  * @throws ApiError
14855
14763
  */
14856
- static aiMentorOrgsMentorsMemoryCategoriesRetrieve({
14857
- mentorId,
14858
- org
14764
+ static aiMentorOrgsMentorsSkillsList({
14765
+ mentorUniqueId,
14766
+ org,
14767
+ enabled,
14768
+ limit,
14769
+ offset
14859
14770
  }) {
14860
14771
  return request(OpenAPI, {
14861
14772
  method: 'GET',
14862
- url: '/api/ai-mentor/orgs/{org}/mentors/{mentor_id}/memory-categories/',
14773
+ url: '/api/ai-mentor/orgs/{org}/mentors/{mentor_unique_id}/skills/',
14863
14774
  path: {
14864
- 'mentor_id': mentorId,
14775
+ 'mentor_unique_id': mentorUniqueId,
14865
14776
  'org': org
14777
+ },
14778
+ query: {
14779
+ 'enabled': enabled,
14780
+ 'limit': limit,
14781
+ 'offset': offset
14866
14782
  }
14867
14783
  });
14868
14784
  }
14869
14785
  /**
14870
- * Create a new memory category.
14871
- * @returns any No response body
14786
+ * Skill assignments nested under a mentor. Full CRUD.
14787
+ * @returns MentorSkillAssignment
14872
14788
  * @throws ApiError
14873
14789
  */
14874
- static aiMentorOrgsMentorsMemoryCategoriesCreate({
14875
- mentorId,
14876
- org
14790
+ static aiMentorOrgsMentorsSkillsCreate({
14791
+ mentorUniqueId,
14792
+ org,
14793
+ requestBody
14877
14794
  }) {
14878
14795
  return request(OpenAPI, {
14879
14796
  method: 'POST',
14880
- url: '/api/ai-mentor/orgs/{org}/mentors/{mentor_id}/memory-categories/',
14797
+ url: '/api/ai-mentor/orgs/{org}/mentors/{mentor_unique_id}/skills/',
14881
14798
  path: {
14882
- 'mentor_id': mentorId,
14799
+ 'mentor_unique_id': mentorUniqueId,
14883
14800
  'org': org
14884
- }
14801
+ },
14802
+ body: requestBody,
14803
+ mediaType: 'application/json'
14885
14804
  });
14886
14805
  }
14887
14806
  /**
14888
- * Update a memory category.
14889
- * @returns any No response body
14807
+ * Skill assignments nested under a mentor. Full CRUD.
14808
+ * @returns MentorSkillAssignment
14890
14809
  * @throws ApiError
14891
14810
  */
14892
- static aiMentorOrgsMentorsMemoryCategoriesPartialUpdate({
14893
- categoryId,
14894
- mentorId,
14811
+ static aiMentorOrgsMentorsSkillsRetrieve({
14812
+ assignmentPk,
14813
+ mentorUniqueId,
14895
14814
  org
14896
14815
  }) {
14897
14816
  return request(OpenAPI, {
14898
- method: 'PATCH',
14899
- url: '/api/ai-mentor/orgs/{org}/mentors/{mentor_id}/memory-categories/{category_id}/',
14817
+ method: 'GET',
14818
+ url: '/api/ai-mentor/orgs/{org}/mentors/{mentor_unique_id}/skills/{assignment_pk}/',
14900
14819
  path: {
14901
- 'category_id': categoryId,
14902
- 'mentor_id': mentorId,
14820
+ 'assignment_pk': assignmentPk,
14821
+ 'mentor_unique_id': mentorUniqueId,
14903
14822
  'org': org
14904
14823
  }
14905
14824
  });
14906
14825
  }
14907
14826
  /**
14908
- * Deactivate a memory category.
14909
- * @returns void
14827
+ * Skill assignments nested under a mentor. Full CRUD.
14828
+ * @returns MentorSkillAssignment
14910
14829
  * @throws ApiError
14911
14830
  */
14912
- static aiMentorOrgsMentorsMemoryCategoriesDestroy({
14913
- categoryId,
14914
- mentorId,
14915
- org
14831
+ static aiMentorOrgsMentorsSkillsUpdate({
14832
+ assignmentPk,
14833
+ mentorUniqueId,
14834
+ org,
14835
+ requestBody
14916
14836
  }) {
14917
14837
  return request(OpenAPI, {
14918
- method: 'DELETE',
14919
- url: '/api/ai-mentor/orgs/{org}/mentors/{mentor_id}/memory-categories/{category_id}/',
14838
+ method: 'PUT',
14839
+ url: '/api/ai-mentor/orgs/{org}/mentors/{mentor_unique_id}/skills/{assignment_pk}/',
14920
14840
  path: {
14921
- 'category_id': categoryId,
14922
- 'mentor_id': mentorId,
14841
+ 'assignment_pk': assignmentPk,
14842
+ 'mentor_unique_id': mentorUniqueId,
14923
14843
  'org': org
14924
- }
14844
+ },
14845
+ body: requestBody,
14846
+ mediaType: 'application/json'
14925
14847
  });
14926
14848
  }
14927
14849
  /**
14928
- * Grant LTI Mentor Access
14929
- * Grants a user Student type access to a mentor that is lti accessible.
14930
- *
14931
- * Creates or updates an RBAC policy named LTI-{mentor.unique_id} with the global Student role,
14932
- * granting the specified user access to the mentor. Validates that the mentor has LTI access
14933
- * enabled and that the user belongs to the specified platform.
14934
- * @returns any Policy created and user granted access
14850
+ * Skill assignments nested under a mentor. Full CRUD.
14851
+ * @returns MentorSkillAssignment
14935
14852
  * @throws ApiError
14936
14853
  */
14937
- static aiMentorOrgsMentorsLtiGrantMentorAccessCreate({
14854
+ static aiMentorOrgsMentorsSkillsPartialUpdate({
14855
+ assignmentPk,
14938
14856
  mentorUniqueId,
14939
14857
  org,
14940
14858
  requestBody
14941
14859
  }) {
14942
14860
  return request(OpenAPI, {
14943
- method: 'POST',
14944
- url: '/api/ai-mentor/orgs/{org}/mentors/{mentor_unique_id}/lti/grant-mentor-access/',
14861
+ method: 'PATCH',
14862
+ url: '/api/ai-mentor/orgs/{org}/mentors/{mentor_unique_id}/skills/{assignment_pk}/',
14945
14863
  path: {
14864
+ 'assignment_pk': assignmentPk,
14946
14865
  'mentor_unique_id': mentorUniqueId,
14947
14866
  'org': org
14948
14867
  },
14949
14868
  body: requestBody,
14950
- mediaType: 'application/json',
14951
- errors: {
14952
- 400: `Invalid request data`,
14953
- 403: `Mentor is not LTI accessible`,
14954
- 404: `Mentor, platform, or user not found`,
14955
- 500: `Global Student role not found`
14869
+ mediaType: 'application/json'
14870
+ });
14871
+ }
14872
+ /**
14873
+ * Skill assignments nested under a mentor. Full CRUD.
14874
+ * @returns void
14875
+ * @throws ApiError
14876
+ */
14877
+ static aiMentorOrgsMentorsSkillsDestroy({
14878
+ assignmentPk,
14879
+ mentorUniqueId,
14880
+ org
14881
+ }) {
14882
+ return request(OpenAPI, {
14883
+ method: 'DELETE',
14884
+ url: '/api/ai-mentor/orgs/{org}/mentors/{mentor_unique_id}/skills/{assignment_pk}/',
14885
+ path: {
14886
+ 'assignment_pk': assignmentPk,
14887
+ 'mentor_unique_id': mentorUniqueId,
14888
+ 'org': org
14956
14889
  }
14957
14890
  });
14958
14891
  }