@iblai/iblai-api 4.297.0-core → 4.298.0-core

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.
@@ -363,6 +363,124 @@ export class CoreService {
363
363
  mediaType: 'application/json',
364
364
  });
365
365
  }
366
+ /**
367
+ * List your LTI Mentor's
368
+ * @returns LtiMentor
369
+ * @throws ApiError
370
+ */
371
+ public static coreLti1P3ProviderLtiAgentsList({
372
+ platformKey,
373
+ mentorId,
374
+ }: {
375
+ /**
376
+ * Platform Key
377
+ */
378
+ platformKey: string,
379
+ /**
380
+ * The mentor's unique_id to filter for
381
+ */
382
+ mentorId?: string,
383
+ }): CancelablePromise<Array<LtiMentor>> {
384
+ return __request(OpenAPI, {
385
+ method: 'GET',
386
+ url: '/api/core/lti/1p3/provider/lti-agents/',
387
+ query: {
388
+ 'mentor_id': mentorId,
389
+ 'platform_key': platformKey,
390
+ },
391
+ });
392
+ }
393
+ /**
394
+ * Create a new LTI Mentor
395
+ * @returns LtiMentor
396
+ * @throws ApiError
397
+ */
398
+ public static coreLti1P3ProviderLtiAgentsCreate({
399
+ requestBody,
400
+ }: {
401
+ requestBody: LtiMentor,
402
+ }): CancelablePromise<LtiMentor> {
403
+ return __request(OpenAPI, {
404
+ method: 'POST',
405
+ url: '/api/core/lti/1p3/provider/lti-agents/',
406
+ body: requestBody,
407
+ mediaType: 'application/json',
408
+ });
409
+ }
410
+ /**
411
+ * Get details about a specific LTI Mentor
412
+ * @returns LtiMentor
413
+ * @throws ApiError
414
+ */
415
+ public static coreLti1P3ProviderLtiAgentsRetrieve({
416
+ id,
417
+ platformKey,
418
+ }: {
419
+ id: string,
420
+ /**
421
+ * Platform Key
422
+ */
423
+ platformKey: string,
424
+ }): CancelablePromise<LtiMentor> {
425
+ return __request(OpenAPI, {
426
+ method: 'GET',
427
+ url: '/api/core/lti/1p3/provider/lti-agents/{id}/',
428
+ path: {
429
+ 'id': id,
430
+ },
431
+ query: {
432
+ 'platform_key': platformKey,
433
+ },
434
+ });
435
+ }
436
+ /**
437
+ * Update an LTI Mentor
438
+ * @returns LtiMentor
439
+ * @throws ApiError
440
+ */
441
+ public static coreLti1P3ProviderLtiAgentsUpdate({
442
+ id,
443
+ requestBody,
444
+ }: {
445
+ id: string,
446
+ requestBody: LtiMentor,
447
+ }): CancelablePromise<LtiMentor> {
448
+ return __request(OpenAPI, {
449
+ method: 'PUT',
450
+ url: '/api/core/lti/1p3/provider/lti-agents/{id}/',
451
+ path: {
452
+ 'id': id,
453
+ },
454
+ body: requestBody,
455
+ mediaType: 'application/json',
456
+ });
457
+ }
458
+ /**
459
+ * Delete an LTI Mentor
460
+ * @returns void
461
+ * @throws ApiError
462
+ */
463
+ public static coreLti1P3ProviderLtiAgentsDestroy({
464
+ id,
465
+ platformKey,
466
+ }: {
467
+ id: string,
468
+ /**
469
+ * Platform Key
470
+ */
471
+ platformKey: string,
472
+ }): CancelablePromise<void> {
473
+ return __request(OpenAPI, {
474
+ method: 'DELETE',
475
+ url: '/api/core/lti/1p3/provider/lti-agents/{id}/',
476
+ path: {
477
+ 'id': id,
478
+ },
479
+ query: {
480
+ 'platform_key': platformKey,
481
+ },
482
+ });
483
+ }
366
484
  /**
367
485
  * List your LTI Provider Key's
368
486
  * @returns LtiKey
@@ -476,6 +594,9 @@ export class CoreService {
476
594
  });
477
595
  }
478
596
  /**
597
+ * @deprecated
598
+ * **Deprecated — use `/api/core/lti/1p3/provider/lti-agents/` instead.** This `mentor`-spelled path is an alias kept for backward compatibility; it is equivalent to `/api/core/lti/1p3/provider/lti-agents/` (`mentor` → `agent`) and will be removed in a future release.
599
+ *
479
600
  * List your LTI Mentor's
480
601
  * @returns LtiMentor
481
602
  * @throws ApiError
@@ -503,6 +624,9 @@ export class CoreService {
503
624
  });
504
625
  }
505
626
  /**
627
+ * @deprecated
628
+ * **Deprecated — use `/api/core/lti/1p3/provider/lti-agents/` instead.** This `mentor`-spelled path is an alias kept for backward compatibility; it is equivalent to `/api/core/lti/1p3/provider/lti-agents/` (`mentor` → `agent`) and will be removed in a future release.
629
+ *
506
630
  * Create a new LTI Mentor
507
631
  * @returns LtiMentor
508
632
  * @throws ApiError
@@ -520,6 +644,9 @@ export class CoreService {
520
644
  });
521
645
  }
522
646
  /**
647
+ * @deprecated
648
+ * **Deprecated — use `/api/core/lti/1p3/provider/lti-agents/{id}/` instead.** This `mentor`-spelled path is an alias kept for backward compatibility; it is equivalent to `/api/core/lti/1p3/provider/lti-agents/{id}/` (`mentor` → `agent`) and will be removed in a future release.
649
+ *
523
650
  * Get details about a specific LTI Mentor
524
651
  * @returns LtiMentor
525
652
  * @throws ApiError
@@ -546,6 +673,9 @@ export class CoreService {
546
673
  });
547
674
  }
548
675
  /**
676
+ * @deprecated
677
+ * **Deprecated — use `/api/core/lti/1p3/provider/lti-agents/{id}/` instead.** This `mentor`-spelled path is an alias kept for backward compatibility; it is equivalent to `/api/core/lti/1p3/provider/lti-agents/{id}/` (`mentor` → `agent`) and will be removed in a future release.
678
+ *
549
679
  * Update an LTI Mentor
550
680
  * @returns LtiMentor
551
681
  * @throws ApiError
@@ -568,6 +698,9 @@ export class CoreService {
568
698
  });
569
699
  }
570
700
  /**
701
+ * @deprecated
702
+ * **Deprecated — use `/api/core/lti/1p3/provider/lti-agents/{id}/` instead.** This `mentor`-spelled path is an alias kept for backward compatibility; it is equivalent to `/api/core/lti/1p3/provider/lti-agents/{id}/` (`mentor` → `agent`) and will be removed in a future release.
703
+ *
571
704
  * Delete an LTI Mentor
572
705
  * @returns void
573
706
  * @throws ApiError
@@ -1832,6 +1965,63 @@ export class CoreService {
1832
1965
  url: '/api/core/rbac/actions/tree/',
1833
1966
  });
1834
1967
  }
1968
+ /**
1969
+ * Get mentor access status
1970
+ * Retrieve current access information for a specific mentor, including all groups and users that have access with their respective roles.
1971
+ * @returns MentorPolicy
1972
+ * @throws ApiError
1973
+ */
1974
+ public static coreRbacAgentAccessList({
1975
+ mentorId,
1976
+ platformKey,
1977
+ }: {
1978
+ /**
1979
+ * ID of the mentor to get access information for
1980
+ */
1981
+ mentorId: number,
1982
+ /**
1983
+ * Platform key where the mentor belongs
1984
+ */
1985
+ platformKey: string,
1986
+ }): CancelablePromise<Array<MentorPolicy>> {
1987
+ return __request(OpenAPI, {
1988
+ method: 'GET',
1989
+ url: '/api/core/rbac/agent-access/',
1990
+ query: {
1991
+ 'mentor_id': mentorId,
1992
+ 'platform_key': platformKey,
1993
+ },
1994
+ errors: {
1995
+ 400: `Missing or invalid query parameters`,
1996
+ 403: `Permission denied - ShareMentor permission required`,
1997
+ 404: `Platform not found`,
1998
+ 500: `Internal server error`,
1999
+ },
2000
+ });
2001
+ }
2002
+ /**
2003
+ * Control which RbacGroups and/or Users have access to a mentor and with what Role
2004
+ * Create or update RBAC policies to manage group and user access to specific mentors. Creates role-specific policies and handles adding/removing groups and users.
2005
+ * @returns MentorPolicy
2006
+ * @throws ApiError
2007
+ */
2008
+ public static coreRbacAgentAccessCreate({
2009
+ requestBody,
2010
+ }: {
2011
+ requestBody: MentorPolicy,
2012
+ }): CancelablePromise<MentorPolicy> {
2013
+ return __request(OpenAPI, {
2014
+ method: 'POST',
2015
+ url: '/api/core/rbac/agent-access/',
2016
+ body: requestBody,
2017
+ mediaType: 'application/json',
2018
+ errors: {
2019
+ 400: `Invalid request data or validation errors`,
2020
+ 403: `Permission denied - ShareMentor permission required`,
2021
+ 404: `Platform or mentor not found`,
2022
+ },
2023
+ });
2024
+ }
1835
2025
  /**
1836
2026
  * List RBAC groups
1837
2027
  * Retrieve a list of RBAC groups. Can be filtered by platform_key, owner, name, username, or email. Use include_users to control response payload.
@@ -2050,7 +2240,10 @@ export class CoreService {
2050
2240
  });
2051
2241
  }
2052
2242
  /**
2243
+ * @deprecated
2053
2244
  * Get mentor access status
2245
+ * **Deprecated — use `/api/core/rbac/agent-access/` instead.** This `mentor`-spelled path is an alias kept for backward compatibility; it is equivalent to `/api/core/rbac/agent-access/` (`mentor` → `agent`) and will be removed in a future release.
2246
+ *
2054
2247
  * Retrieve current access information for a specific mentor, including all groups and users that have access with their respective roles.
2055
2248
  * @returns MentorPolicy
2056
2249
  * @throws ApiError
@@ -2084,7 +2277,10 @@ export class CoreService {
2084
2277
  });
2085
2278
  }
2086
2279
  /**
2280
+ * @deprecated
2087
2281
  * Control which RbacGroups and/or Users have access to a mentor and with what Role
2282
+ * **Deprecated — use `/api/core/rbac/agent-access/` instead.** This `mentor`-spelled path is an alias kept for backward compatibility; it is equivalent to `/api/core/rbac/agent-access/` (`mentor` → `agent`) and will be removed in a future release.
2283
+ *
2088
2284
  * Create or update RBAC policies to manage group and user access to specific mentors. Creates role-specific policies and handles adding/removing groups and users.
2089
2285
  * @returns MentorPolicy
2090
2286
  * @throws ApiError
@@ -2545,6 +2741,56 @@ export class CoreService {
2545
2741
  },
2546
2742
  });
2547
2743
  }
2744
+ /**
2745
+ * Set student mentor creation permission
2746
+ * Enable or disable the ability for students to create mentors on a platform
2747
+ * @returns StudentMentorCreationPermissionResponse
2748
+ * @throws ApiError
2749
+ */
2750
+ public static coreRbacStudentAgentCreationSetCreate({
2751
+ requestBody,
2752
+ }: {
2753
+ requestBody: SetStudentMentorCreationPermission,
2754
+ }): CancelablePromise<StudentMentorCreationPermissionResponse> {
2755
+ return __request(OpenAPI, {
2756
+ method: 'POST',
2757
+ url: '/api/core/rbac/student-agent-creation/set/',
2758
+ body: requestBody,
2759
+ mediaType: 'application/json',
2760
+ errors: {
2761
+ 400: `Invalid request data`,
2762
+ 403: `Permission denied - Tenant Admin access required`,
2763
+ 404: `Platform, students group, or mentor creators policy not found`,
2764
+ },
2765
+ });
2766
+ }
2767
+ /**
2768
+ * Get student mentor creation permission status
2769
+ * Check whether students are currently allowed to create mentors on a platform
2770
+ * @returns StudentMentorCreationPermissionResponse
2771
+ * @throws ApiError
2772
+ */
2773
+ public static coreRbacStudentAgentCreationStatusRetrieve({
2774
+ platformKey,
2775
+ }: {
2776
+ /**
2777
+ * The platform key to check
2778
+ */
2779
+ platformKey: string,
2780
+ }): CancelablePromise<StudentMentorCreationPermissionResponse> {
2781
+ return __request(OpenAPI, {
2782
+ method: 'GET',
2783
+ url: '/api/core/rbac/student-agent-creation/status/',
2784
+ query: {
2785
+ 'platform_key': platformKey,
2786
+ },
2787
+ errors: {
2788
+ 400: `Missing platform_key parameter`,
2789
+ 403: `Permission denied - Tenant Admin access required`,
2790
+ 404: `Platform not found`,
2791
+ },
2792
+ });
2793
+ }
2548
2794
  /**
2549
2795
  * Set student LLM access permissions
2550
2796
  * Configure which LLM resources students can access on a platform by replacing the LLM Users policy resources
@@ -2596,7 +2842,10 @@ export class CoreService {
2596
2842
  });
2597
2843
  }
2598
2844
  /**
2845
+ * @deprecated
2599
2846
  * Set student mentor creation permission
2847
+ * **Deprecated — use `/api/core/rbac/student-agent-creation/set/` instead.** This `mentor`-spelled path is an alias kept for backward compatibility; it is equivalent to `/api/core/rbac/student-agent-creation/set/` (`mentor` → `agent`) and will be removed in a future release.
2848
+ *
2600
2849
  * Enable or disable the ability for students to create mentors on a platform
2601
2850
  * @returns StudentMentorCreationPermissionResponse
2602
2851
  * @throws ApiError
@@ -2619,7 +2868,10 @@ export class CoreService {
2619
2868
  });
2620
2869
  }
2621
2870
  /**
2871
+ * @deprecated
2622
2872
  * Get student mentor creation permission status
2873
+ * **Deprecated — use `/api/core/rbac/student-agent-creation/status/` instead.** This `mentor`-spelled path is an alias kept for backward compatibility; it is equivalent to `/api/core/rbac/student-agent-creation/status/` (`mentor` → `agent`) and will be removed in a future release.
2874
+ *
2623
2875
  * Check whether students are currently allowed to create mentors on a platform
2624
2876
  * @returns StudentMentorCreationPermissionResponse
2625
2877
  * @throws ApiError