@iblai/iblai-api 4.118.3-core → 4.118.4-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.
package/dist/index.umd.js CHANGED
@@ -114,7 +114,7 @@
114
114
 
115
115
  const OpenAPI = {
116
116
  BASE: 'https://base.manager.iblai.app',
117
- VERSION: '4.118.3-core',
117
+ VERSION: '4.118.4-core',
118
118
  WITH_CREDENTIALS: false,
119
119
  CREDENTIALS: 'include',
120
120
  TOKEN: undefined,
@@ -15396,14 +15396,14 @@
15396
15396
  */
15397
15397
  static credentialsOrgsUsersRetrieve({
15398
15398
  platformKey,
15399
- username
15399
+ userId
15400
15400
  }) {
15401
15401
  return request(OpenAPI, {
15402
15402
  method: 'GET',
15403
- url: '/api/credentials/orgs/{platform_key}/users/{username}/',
15403
+ url: '/api/credentials/orgs/{platform_key}/users/{user_id}/',
15404
15404
  path: {
15405
15405
  'platform_key': platformKey,
15406
- 'username': username
15406
+ 'user_id': userId
15407
15407
  }
15408
15408
  });
15409
15409
  }
@@ -15489,15 +15489,15 @@
15489
15489
  */
15490
15490
  static credentialsOrgsUsersCreate({
15491
15491
  platformKey,
15492
- username,
15492
+ userId,
15493
15493
  requestBody
15494
15494
  }) {
15495
15495
  return request(OpenAPI, {
15496
15496
  method: 'POST',
15497
- url: '/api/credentials/orgs/{platform_key}/users/{username}/',
15497
+ url: '/api/credentials/orgs/{platform_key}/users/{user_id}/',
15498
15498
  path: {
15499
15499
  'platform_key': platformKey,
15500
- 'username': username
15500
+ 'user_id': userId
15501
15501
  },
15502
15502
  body: requestBody,
15503
15503
  mediaType: 'application/json'
@@ -15546,33 +15546,36 @@
15546
15546
  * "result": {credential object}
15547
15547
  * }
15548
15548
  *
15549
- * DELETE: No content (204)
15550
- *
15551
- * Error Responses:
15552
- * 400 Bad Request: If the request data is invalid
15553
- * 401 Unauthorized: If the user is not authenticated
15554
- * 403 Forbidden: If the user does not have permission to access this resource
15555
- * 404 Not Found: If the credential doesn't exist
15556
- * 500 Internal Server Error: If an unexpected error occurs
15557
- *
15558
- * Access Control:
15559
- * - Requires CredentialAssignmentPermission
15560
- * - Users can only manage credentials they have permission to access
15561
- * @returns Credential
15562
- * @throws ApiError
15563
- */
15549
+ * DELETE: A JSON response indicating success:
15550
+ * {
15551
+ * "status": {"success": true, "description": "Deleted"}
15552
+ * }
15553
+ *
15554
+ * Error Responses:
15555
+ * 400 Bad Request: If the request data is invalid
15556
+ * 401 Unauthorized: If the user is not authenticated
15557
+ * 403 Forbidden: If the user does not have permission to access this resource
15558
+ * 404 Not Found: If the credential doesn't exist
15559
+ * 500 Internal Server Error: If an unexpected error occurs
15560
+ *
15561
+ * Access Control:
15562
+ * - Requires CredentialAssignmentPermission
15563
+ * - Users can only manage credentials they have permission to access
15564
+ * @returns Credential
15565
+ * @throws ApiError
15566
+ */
15564
15567
  static credentialsOrgsUsersRetrieve2({
15565
15568
  entityId,
15566
15569
  platformKey,
15567
- username
15570
+ userId
15568
15571
  }) {
15569
15572
  return request(OpenAPI, {
15570
15573
  method: 'GET',
15571
- url: '/api/credentials/orgs/{platform_key}/users/{username}/{entity_id}',
15574
+ url: '/api/credentials/orgs/{platform_key}/users/{user_id}/{entity_id}',
15572
15575
  path: {
15573
15576
  'entity_id': entityId,
15574
15577
  'platform_key': platformKey,
15575
- 'username': username
15578
+ 'user_id': userId
15576
15579
  }
15577
15580
  });
15578
15581
  }
@@ -15619,34 +15622,37 @@
15619
15622
  * "result": {credential object}
15620
15623
  * }
15621
15624
  *
15622
- * DELETE: No content (204)
15623
- *
15624
- * Error Responses:
15625
- * 400 Bad Request: If the request data is invalid
15626
- * 401 Unauthorized: If the user is not authenticated
15627
- * 403 Forbidden: If the user does not have permission to access this resource
15628
- * 404 Not Found: If the credential doesn't exist
15629
- * 500 Internal Server Error: If an unexpected error occurs
15630
- *
15631
- * Access Control:
15632
- * - Requires CredentialAssignmentPermission
15633
- * - Users can only manage credentials they have permission to access
15634
- * @returns Credential
15635
- * @throws ApiError
15636
- */
15625
+ * DELETE: A JSON response indicating success:
15626
+ * {
15627
+ * "status": {"success": true, "description": "Deleted"}
15628
+ * }
15629
+ *
15630
+ * Error Responses:
15631
+ * 400 Bad Request: If the request data is invalid
15632
+ * 401 Unauthorized: If the user is not authenticated
15633
+ * 403 Forbidden: If the user does not have permission to access this resource
15634
+ * 404 Not Found: If the credential doesn't exist
15635
+ * 500 Internal Server Error: If an unexpected error occurs
15636
+ *
15637
+ * Access Control:
15638
+ * - Requires CredentialAssignmentPermission
15639
+ * - Users can only manage credentials they have permission to access
15640
+ * @returns Credential
15641
+ * @throws ApiError
15642
+ */
15637
15643
  static credentialsOrgsUsersUpdate({
15638
15644
  entityId,
15639
15645
  platformKey,
15640
- username,
15646
+ userId,
15641
15647
  requestBody
15642
15648
  }) {
15643
15649
  return request(OpenAPI, {
15644
15650
  method: 'PUT',
15645
- url: '/api/credentials/orgs/{platform_key}/users/{username}/{entity_id}',
15651
+ url: '/api/credentials/orgs/{platform_key}/users/{user_id}/{entity_id}',
15646
15652
  path: {
15647
15653
  'entity_id': entityId,
15648
15654
  'platform_key': platformKey,
15649
- 'username': username
15655
+ 'user_id': userId
15650
15656
  },
15651
15657
  body: requestBody,
15652
15658
  mediaType: 'application/json'
@@ -15695,212 +15701,110 @@
15695
15701
  * "result": {credential object}
15696
15702
  * }
15697
15703
  *
15698
- * DELETE: No content (204)
15699
- *
15700
- * Error Responses:
15701
- * 400 Bad Request: If the request data is invalid
15702
- * 401 Unauthorized: If the user is not authenticated
15703
- * 403 Forbidden: If the user does not have permission to access this resource
15704
- * 404 Not Found: If the credential doesn't exist
15705
- * 500 Internal Server Error: If an unexpected error occurs
15706
- *
15707
- * Access Control:
15708
- * - Requires CredentialAssignmentPermission
15709
- * - Users can only manage credentials they have permission to access
15710
- * @returns void
15711
- * @throws ApiError
15712
- */
15704
+ * DELETE: A JSON response indicating success:
15705
+ * {
15706
+ * "status": {"success": true, "description": "Deleted"}
15707
+ * }
15708
+ *
15709
+ * Error Responses:
15710
+ * 400 Bad Request: If the request data is invalid
15711
+ * 401 Unauthorized: If the user is not authenticated
15712
+ * 403 Forbidden: If the user does not have permission to access this resource
15713
+ * 404 Not Found: If the credential doesn't exist
15714
+ * 500 Internal Server Error: If an unexpected error occurs
15715
+ *
15716
+ * Access Control:
15717
+ * - Requires CredentialAssignmentPermission
15718
+ * - Users can only manage credentials they have permission to access
15719
+ * @returns void
15720
+ * @throws ApiError
15721
+ */
15713
15722
  static credentialsOrgsUsersDestroy({
15714
15723
  entityId,
15715
15724
  platformKey,
15716
- username
15725
+ userId
15717
15726
  }) {
15718
15727
  return request(OpenAPI, {
15719
15728
  method: 'DELETE',
15720
- url: '/api/credentials/orgs/{platform_key}/users/{username}/{entity_id}',
15729
+ url: '/api/credentials/orgs/{platform_key}/users/{user_id}/{entity_id}',
15721
15730
  path: {
15722
15731
  'entity_id': entityId,
15723
15732
  'platform_key': platformKey,
15724
- 'username': username
15733
+ 'user_id': userId
15725
15734
  }
15726
15735
  });
15727
15736
  }
15728
15737
  /**
15729
- * Endpoint to issue and retrieve credential assertions for a specific credential.
15730
- *
15731
- * This endpoint allows issuing new credential assertions and retrieving existing
15732
- * assertions for a specific credential.
15733
- *
15734
- * Path Parameters:
15735
- * org (str): The organization/tenant identifier
15736
- * user_id (str): The user ID making the request
15737
- * entity_id (str): The credential entity ID
15738
- *
15739
- * Methods:
15740
- * POST: Issue a new credential assertion
15741
- * GET: Retrieve assertions for a specific credential
15742
- *
15743
- * POST Request Body:
15744
- * A JSON object containing recipient information and any additional metadata
15745
- * required for issuing the credential.
15746
- *
15747
- * Returns:
15748
- * POST: A JSON response containing the created assertion using the AssertionSerializer format
15749
- * GET: A paginated list of assertions using the AssertionSerializer format
15750
- *
15751
- * Error Responses:
15752
- * 400 Bad Request: If the request data is invalid
15753
- * 401 Unauthorized: If the user is not authenticated
15754
- * 403 Forbidden: If the user does not have permission to access this resource
15755
- * 404 Not Found: If the credential doesn't exist
15756
- * 500 Internal Server Error: If an unexpected error occurs
15757
15738
  * @returns PaginatedAssertionsResponse
15758
15739
  * @throws ApiError
15759
15740
  */
15760
15741
  static credentialsOrgsUsersAssertionsRetrieve3({
15761
15742
  entityId,
15762
15743
  platformKey,
15763
- username
15744
+ userId
15764
15745
  }) {
15765
15746
  return request(OpenAPI, {
15766
15747
  method: 'GET',
15767
- url: '/api/credentials/orgs/{platform_key}/users/{username}/{entity_id}/assertions/',
15748
+ url: '/api/credentials/orgs/{platform_key}/users/{user_id}/{entity_id}/assertions/',
15768
15749
  path: {
15769
15750
  'entity_id': entityId,
15770
15751
  'platform_key': platformKey,
15771
- 'username': username
15752
+ 'user_id': userId
15772
15753
  }
15773
15754
  });
15774
15755
  }
15775
15756
  /**
15776
- * Endpoint to issue and retrieve credential assertions for a specific credential.
15777
- *
15778
- * This endpoint allows issuing new credential assertions and retrieving existing
15779
- * assertions for a specific credential.
15780
- *
15781
- * Path Parameters:
15782
- * org (str): The organization/tenant identifier
15783
- * user_id (str): The user ID making the request
15784
- * entity_id (str): The credential entity ID
15785
- *
15786
- * Methods:
15787
- * POST: Issue a new credential assertion
15788
- * GET: Retrieve assertions for a specific credential
15789
- *
15790
- * POST Request Body:
15791
- * A JSON object containing recipient information and any additional metadata
15792
- * required for issuing the credential.
15793
- *
15794
- * Returns:
15795
- * POST: A JSON response containing the created assertion using the AssertionSerializer format
15796
- * GET: A paginated list of assertions using the AssertionSerializer format
15797
- *
15798
- * Error Responses:
15799
- * 400 Bad Request: If the request data is invalid
15800
- * 401 Unauthorized: If the user is not authenticated
15801
- * 403 Forbidden: If the user does not have permission to access this resource
15802
- * 404 Not Found: If the credential doesn't exist
15803
- * 500 Internal Server Error: If an unexpected error occurs
15804
15757
  * @returns Assertion
15805
15758
  * @throws ApiError
15806
15759
  */
15807
15760
  static credentialsOrgsUsersAssertionsCreate({
15808
15761
  entityId,
15809
15762
  platformKey,
15810
- username,
15763
+ userId,
15811
15764
  requestBody
15812
15765
  }) {
15813
15766
  return request(OpenAPI, {
15814
15767
  method: 'POST',
15815
- url: '/api/credentials/orgs/{platform_key}/users/{username}/{entity_id}/assertions/',
15768
+ url: '/api/credentials/orgs/{platform_key}/users/{user_id}/{entity_id}/assertions/',
15816
15769
  path: {
15817
15770
  'entity_id': entityId,
15818
15771
  'platform_key': platformKey,
15819
- 'username': username
15772
+ 'user_id': userId
15820
15773
  },
15821
15774
  body: requestBody,
15822
15775
  mediaType: 'application/json'
15823
15776
  });
15824
15777
  }
15825
15778
  /**
15826
- * Endpoint to issue credential assertions in bulk for a specific credential.
15827
- *
15828
- * This endpoint allows issuing credential assertions to multiple users at once.
15829
- *
15830
- * Path Parameters:
15831
- * org (str): The organization/tenant identifier
15832
- * user_id (str): The user ID making the request
15833
- * entity_id (str): The credential entity ID
15834
- *
15835
- * POST Request Body:
15836
- * A JSON object containing:
15837
- * - users (list): List of usernames to issue the credential to
15838
- * - Additional metadata required for issuing the credential
15839
- *
15840
- * Returns:
15841
- * A JSON response containing:
15842
- * {
15843
- * "skipped": ["username1", "username3"], // Users that were skipped (e.g., already have the credential)
15844
- * "issued": ["username2", "username4"] // Users that were successfully issued the credential
15845
- * }
15846
- *
15847
- * Error Responses:
15848
- * 400 Bad Request: If the request data is invalid or missing required fields
15849
- * 401 Unauthorized: If the user is not authenticated
15850
- * 403 Forbidden: If the user does not have permission to access this resource
15851
- * 404 Not Found: If the credential doesn't exist
15852
- * 500 Internal Server Error: If an unexpected error occurs
15853
- * @returns BulkCreateAssertion
15854
- * @throws ApiError
15855
- */
15779
+ * @returns BulkCreateAssertion
15780
+ * @throws ApiError
15781
+ */
15856
15782
  static credentialsOrgsUsersAssertionsBulkCreate({
15857
15783
  entityId,
15858
15784
  platformKey,
15859
- username,
15785
+ userId,
15860
15786
  requestBody
15861
15787
  }) {
15862
15788
  return request(OpenAPI, {
15863
15789
  method: 'POST',
15864
- url: '/api/credentials/orgs/{platform_key}/users/{username}/{entity_id}/assertions/bulk/',
15790
+ url: '/api/credentials/orgs/{platform_key}/users/{user_id}/{entity_id}/assertions/bulk/',
15865
15791
  path: {
15866
15792
  'entity_id': entityId,
15867
15793
  'platform_key': platformKey,
15868
- 'username': username
15794
+ 'user_id': userId
15869
15795
  },
15870
15796
  body: requestBody,
15871
15797
  mediaType: 'application/json'
15872
15798
  });
15873
15799
  }
15874
15800
  /**
15875
- * Endpoint to retrieve all credential assertions for a user within an organization.
15876
- *
15877
- * This endpoint provides access to all credential assertions (issued credentials)
15878
- * for a specific user within an organization, with support for filtering.
15879
- *
15880
- * Path Parameters:
15881
- * org (str): The organization/tenant identifier
15882
- * user_id (str): The user ID to retrieve assertions for
15883
- *
15884
- * Query Parameters:
15885
- * course (str, optional): Filter by course ID
15886
- * include_revoked (bool, optional): Include revoked assertions (default: false)
15887
- * include_expired (bool, optional): Include expired assertions (default: false)
15888
- * exclude_main_tenant_assertions (bool, optional): Exclude assertions from the main tenant (default: false)
15889
- *
15890
- * Returns:
15891
- * A paginated response using the AssertionSerializer format
15892
- *
15893
- * Error Responses:
15894
- * 401 Unauthorized: If the user is not authenticated
15895
- * 403 Forbidden: If the user does not have permission to access this resource
15896
- * 404 Not Found: If the user or organization doesn't exist
15897
- * 500 Internal Server Error: If an unexpected error occurs
15801
+ * A GET View that validates QueryParams and returns results to a serializer
15898
15802
  * @returns PaginatedAssertionsResponse
15899
15803
  * @throws ApiError
15900
15804
  */
15901
15805
  static credentialsOrgsUsersAssertionsRetrieve({
15902
15806
  platformKey,
15903
- username,
15807
+ userId,
15904
15808
  course,
15905
15809
  excludeMainTenantAssertions,
15906
15810
  includeExpired,
@@ -15910,10 +15814,10 @@
15910
15814
  }) {
15911
15815
  return request(OpenAPI, {
15912
15816
  method: 'GET',
15913
- url: '/api/credentials/orgs/{platform_key}/users/{username}/assertions/',
15817
+ url: '/api/credentials/orgs/{platform_key}/users/{user_id}/assertions/',
15914
15818
  path: {
15915
15819
  'platform_key': platformKey,
15916
- 'username': username
15820
+ 'user_id': userId
15917
15821
  },
15918
15822
  query: {
15919
15823
  'course': course,
@@ -15932,7 +15836,7 @@
15932
15836
  */
15933
15837
  static credentialsOrgsUsersAssertionsOverTimeRetrieve({
15934
15838
  platformKey,
15935
- username,
15839
+ userId,
15936
15840
  departmentId,
15937
15841
  endDate,
15938
15842
  format = 'json',
@@ -15941,10 +15845,10 @@
15941
15845
  }) {
15942
15846
  return request(OpenAPI, {
15943
15847
  method: 'GET',
15944
- url: '/api/credentials/orgs/{platform_key}/users/{username}/assertions-over-time/',
15848
+ url: '/api/credentials/orgs/{platform_key}/users/{user_id}/assertions-over-time/',
15945
15849
  path: {
15946
15850
  'platform_key': platformKey,
15947
- 'username': username
15851
+ 'user_id': userId
15948
15852
  },
15949
15853
  query: {
15950
15854
  'department_id': departmentId,
@@ -15956,99 +15860,41 @@
15956
15860
  });
15957
15861
  }
15958
15862
  /**
15959
- * Endpoint to retrieve and update a specific credential assertion.
15960
- *
15961
- * This endpoint allows retrieving details of a specific credential assertion
15962
- * and updating its status (e.g., revoking it).
15963
- *
15964
- * Path Parameters:
15965
- * org (str): The organization/tenant identifier
15966
- * user_id (str): The user ID making the request
15967
- * entity_id (str): The assertion entity ID
15968
- *
15969
- * Methods:
15970
- * GET: Retrieve assertion details
15971
- * PUT: Update assertion status (e.g., revoke)
15972
- *
15973
- * PUT Request Body:
15974
- * A JSON object containing:
15975
- * - revoked (bool): Set to true to revoke the assertion
15976
- * - revocationReason (str): Reason for revocation (required when revoking)
15977
- *
15978
- * Returns:
15979
- * GET: A JSON response containing the assertion details using the AssertionSerializer format
15980
- * PUT: A JSON response containing the updated assertion using the AssertionSerializer format
15981
- *
15982
- * Error Responses:
15983
- * 400 Bad Request: If the request data is invalid
15984
- * 401 Unauthorized: If the user is not authenticated
15985
- * 403 Forbidden: If the user does not have permission to access this resource
15986
- * 404 Not Found: If the assertion doesn't exist
15987
- * 500 Internal Server Error: If an unexpected error occurs
15988
15863
  * @returns Assertion
15989
15864
  * @throws ApiError
15990
15865
  */
15991
15866
  static credentialsOrgsUsersAssertionsRetrieve2({
15992
15867
  entityId,
15993
15868
  platformKey,
15994
- username
15869
+ userId
15995
15870
  }) {
15996
15871
  return request(OpenAPI, {
15997
15872
  method: 'GET',
15998
- url: '/api/credentials/orgs/{platform_key}/users/{username}/assertions/{entity_id}',
15873
+ url: '/api/credentials/orgs/{platform_key}/users/{user_id}/assertions/{entity_id}',
15999
15874
  path: {
16000
15875
  'entity_id': entityId,
16001
15876
  'platform_key': platformKey,
16002
- 'username': username
15877
+ 'user_id': userId
16003
15878
  }
16004
15879
  });
16005
15880
  }
16006
15881
  /**
16007
- * Endpoint to retrieve and update a specific credential assertion.
16008
- *
16009
- * This endpoint allows retrieving details of a specific credential assertion
16010
- * and updating its status (e.g., revoking it).
16011
- *
16012
- * Path Parameters:
16013
- * org (str): The organization/tenant identifier
16014
- * user_id (str): The user ID making the request
16015
- * entity_id (str): The assertion entity ID
16016
- *
16017
- * Methods:
16018
- * GET: Retrieve assertion details
16019
- * PUT: Update assertion status (e.g., revoke)
16020
- *
16021
- * PUT Request Body:
16022
- * A JSON object containing:
16023
- * - revoked (bool): Set to true to revoke the assertion
16024
- * - revocationReason (str): Reason for revocation (required when revoking)
16025
- *
16026
- * Returns:
16027
- * GET: A JSON response containing the assertion details using the AssertionSerializer format
16028
- * PUT: A JSON response containing the updated assertion using the AssertionSerializer format
16029
- *
16030
- * Error Responses:
16031
- * 400 Bad Request: If the request data is invalid
16032
- * 401 Unauthorized: If the user is not authenticated
16033
- * 403 Forbidden: If the user does not have permission to access this resource
16034
- * 404 Not Found: If the assertion doesn't exist
16035
- * 500 Internal Server Error: If an unexpected error occurs
16036
15882
  * @returns Assertion
16037
15883
  * @throws ApiError
16038
15884
  */
16039
15885
  static credentialsOrgsUsersAssertionsUpdate({
16040
15886
  entityId,
16041
15887
  platformKey,
16042
- username,
15888
+ userId,
16043
15889
  requestBody
16044
15890
  }) {
16045
15891
  return request(OpenAPI, {
16046
15892
  method: 'PUT',
16047
- url: '/api/credentials/orgs/{platform_key}/users/{username}/assertions/{entity_id}',
15893
+ url: '/api/credentials/orgs/{platform_key}/users/{user_id}/assertions/{entity_id}',
16048
15894
  path: {
16049
15895
  'entity_id': entityId,
16050
15896
  'platform_key': platformKey,
16051
- 'username': username
15897
+ 'user_id': userId
16052
15898
  },
16053
15899
  body: requestBody,
16054
15900
  mediaType: 'application/json'
@@ -16063,15 +15909,15 @@
16063
15909
  static credentialsOrgsUsersAssignmentsDestroy({
16064
15910
  assignmentId,
16065
15911
  platformKey,
16066
- username
15912
+ userId
16067
15913
  }) {
16068
15914
  return request(OpenAPI, {
16069
15915
  method: 'DELETE',
16070
- url: '/api/credentials/orgs/{platform_key}/users/{username}/assignments/{assignment_id}',
15916
+ url: '/api/credentials/orgs/{platform_key}/users/{user_id}/assignments/{assignment_id}',
16071
15917
  path: {
16072
15918
  'assignment_id': assignmentId,
16073
15919
  'platform_key': platformKey,
16074
- 'username': username
15920
+ 'user_id': userId
16075
15921
  }
16076
15922
  });
16077
15923
  }
@@ -16082,14 +15928,14 @@
16082
15928
  */
16083
15929
  static credentialsOrgsUsersAssignmentsGroupsRetrieve({
16084
15930
  platformKey,
16085
- username
15931
+ userId
16086
15932
  }) {
16087
15933
  return request(OpenAPI, {
16088
15934
  method: 'GET',
16089
- url: '/api/credentials/orgs/{platform_key}/users/{username}/assignments/groups/',
15935
+ url: '/api/credentials/orgs/{platform_key}/users/{user_id}/assignments/groups/',
16090
15936
  path: {
16091
15937
  'platform_key': platformKey,
16092
- 'username': username
15938
+ 'user_id': userId
16093
15939
  }
16094
15940
  });
16095
15941
  }
@@ -16100,14 +15946,14 @@
16100
15946
  */
16101
15947
  static credentialsOrgsUsersAssignmentsGroupsCreate({
16102
15948
  platformKey,
16103
- username
15949
+ userId
16104
15950
  }) {
16105
15951
  return request(OpenAPI, {
16106
15952
  method: 'POST',
16107
- url: '/api/credentials/orgs/{platform_key}/users/{username}/assignments/groups/',
15953
+ url: '/api/credentials/orgs/{platform_key}/users/{user_id}/assignments/groups/',
16108
15954
  path: {
16109
15955
  'platform_key': platformKey,
16110
- 'username': username
15956
+ 'user_id': userId
16111
15957
  }
16112
15958
  });
16113
15959
  }
@@ -16121,14 +15967,14 @@
16121
15967
  */
16122
15968
  static credentialsOrgsUsersAssignmentsUsersRetrieve({
16123
15969
  platformKey,
16124
- username
15970
+ userId
16125
15971
  }) {
16126
15972
  return request(OpenAPI, {
16127
15973
  method: 'GET',
16128
- url: '/api/credentials/orgs/{platform_key}/users/{username}/assignments/users/',
15974
+ url: '/api/credentials/orgs/{platform_key}/users/{user_id}/assignments/users/',
16129
15975
  path: {
16130
15976
  'platform_key': platformKey,
16131
- 'username': username
15977
+ 'user_id': userId
16132
15978
  }
16133
15979
  });
16134
15980
  }
@@ -16139,14 +15985,14 @@
16139
15985
  */
16140
15986
  static credentialsOrgsUsersAssignmentsUsersCreate({
16141
15987
  platformKey,
16142
- username
15988
+ userId
16143
15989
  }) {
16144
15990
  return request(OpenAPI, {
16145
15991
  method: 'POST',
16146
- url: '/api/credentials/orgs/{platform_key}/users/{username}/assignments/users/',
15992
+ url: '/api/credentials/orgs/{platform_key}/users/{user_id}/assignments/users/',
16147
15993
  path: {
16148
15994
  'platform_key': platformKey,
16149
- 'username': username
15995
+ 'user_id': userId
16150
15996
  }
16151
15997
  });
16152
15998
  }
@@ -16157,7 +16003,7 @@
16157
16003
  */
16158
16004
  static credentialsOrgsUsersCourseAssertionsOverTimeRetrieve({
16159
16005
  platformKey,
16160
- username,
16006
+ userId,
16161
16007
  departmentId,
16162
16008
  endDate,
16163
16009
  format = 'json',
@@ -16166,10 +16012,10 @@
16166
16012
  }) {
16167
16013
  return request(OpenAPI, {
16168
16014
  method: 'GET',
16169
- url: '/api/credentials/orgs/{platform_key}/users/{username}/course-assertions-over-time/',
16015
+ url: '/api/credentials/orgs/{platform_key}/users/{user_id}/course-assertions-over-time/',
16170
16016
  path: {
16171
16017
  'platform_key': platformKey,
16172
- 'username': username
16018
+ 'user_id': userId
16173
16019
  },
16174
16020
  query: {
16175
16021
  'department_id': departmentId,
@@ -16181,42 +16027,21 @@
16181
16027
  });
16182
16028
  }
16183
16029
  /**
16184
- * Endpoint to retrieve the credentials of a given tenant grouped by course.
16185
- *
16186
- * This endpoint provides access to credential data grouped by course for a specific
16187
- * organization/tenant, with support for pagination and filtering.
16188
- *
16189
- * Path Parameters:
16190
- * org (str): The organization/tenant identifier
16191
- *
16192
- * Query Parameters:
16193
- * limit (int, optional): Number of results per page (default: 10)
16194
- * offset (int, optional): Starting position for pagination
16195
- * search (str, optional): Search term e.g course_id
16196
- *
16197
- * Returns:
16198
- * A paginated response using the CourseCredentialSerializer format.
16199
- *
16200
- * Error Responses:
16201
- * 401 Unauthorized: If the user is not authenticated
16202
- * 403 Forbidden: If the user does not have permission to access this data
16203
- * 404 Not Found: If the organization doesn't exist
16204
- * 500 Internal Server Error: If an unexpected error occurs
16205
16030
  * @returns any No response body
16206
16031
  * @throws ApiError
16207
16032
  */
16208
16033
  static credentialsOrgsUsersCourseCredentialsList({
16209
16034
  platformKey,
16210
- username,
16035
+ userId,
16211
16036
  page,
16212
16037
  pageSize
16213
16038
  }) {
16214
16039
  return request(OpenAPI, {
16215
16040
  method: 'GET',
16216
- url: '/api/credentials/orgs/{platform_key}/users/{username}/course-credentials/',
16041
+ url: '/api/credentials/orgs/{platform_key}/users/{user_id}/course-credentials/',
16217
16042
  path: {
16218
16043
  'platform_key': platformKey,
16219
- 'username': username
16044
+ 'user_id': userId
16220
16045
  },
16221
16046
  query: {
16222
16047
  'page': page,
@@ -16231,7 +16056,7 @@
16231
16056
  */
16232
16057
  static credentialsOrgsUsersCredentialsOverTimeRetrieve({
16233
16058
  platformKey,
16234
- username,
16059
+ userId,
16235
16060
  departmentId,
16236
16061
  endDate,
16237
16062
  format = 'json',
@@ -16240,10 +16065,10 @@
16240
16065
  }) {
16241
16066
  return request(OpenAPI, {
16242
16067
  method: 'GET',
16243
- url: '/api/credentials/orgs/{platform_key}/users/{username}/credentials-over-time/',
16068
+ url: '/api/credentials/orgs/{platform_key}/users/{user_id}/credentials-over-time/',
16244
16069
  path: {
16245
16070
  'platform_key': platformKey,
16246
- 'username': username
16071
+ 'user_id': userId
16247
16072
  },
16248
16073
  query: {
16249
16074
  'department_id': departmentId,
@@ -16269,14 +16094,14 @@
16269
16094
  */
16270
16095
  static credentialsOrgsUsersExternalMappingRetrieve({
16271
16096
  platformKey,
16272
- username
16097
+ userId
16273
16098
  }) {
16274
16099
  return request(OpenAPI, {
16275
16100
  method: 'GET',
16276
- url: '/api/credentials/orgs/{platform_key}/users/{username}/external-mapping/',
16101
+ url: '/api/credentials/orgs/{platform_key}/users/{user_id}/external-mapping/',
16277
16102
  path: {
16278
16103
  'platform_key': platformKey,
16279
- 'username': username
16104
+ 'user_id': userId
16280
16105
  }
16281
16106
  });
16282
16107
  }
@@ -16302,12 +16127,1046 @@
16302
16127
  */
16303
16128
  static credentialsOrgsUsersExternalMappingCreate({
16304
16129
  platformKey,
16305
- username,
16130
+ userId,
16306
16131
  requestBody
16307
16132
  }) {
16308
16133
  return request(OpenAPI, {
16309
16134
  method: 'POST',
16310
- url: '/api/credentials/orgs/{platform_key}/users/{username}/external-mapping/',
16135
+ url: '/api/credentials/orgs/{platform_key}/users/{user_id}/external-mapping/',
16136
+ path: {
16137
+ 'platform_key': platformKey,
16138
+ 'user_id': userId
16139
+ },
16140
+ body: requestBody,
16141
+ mediaType: 'application/json'
16142
+ });
16143
+ }
16144
+ /**
16145
+ * Delete an external credential mapping.
16146
+ *
16147
+ * Request Body:
16148
+ * {
16149
+ * "credential_id": "credential-entity-id", // Required
16150
+ * "provider_name": "accredible" // Required
16151
+ * }
16152
+ *
16153
+ * Returns:
16154
+ * A JSON response confirming deletion
16155
+ * @returns void
16156
+ * @throws ApiError
16157
+ */
16158
+ static credentialsOrgsUsersExternalMappingDestroy({
16159
+ platformKey,
16160
+ userId
16161
+ }) {
16162
+ return request(OpenAPI, {
16163
+ method: 'DELETE',
16164
+ url: '/api/credentials/orgs/{platform_key}/users/{user_id}/external-mapping/',
16165
+ path: {
16166
+ 'platform_key': platformKey,
16167
+ 'user_id': userId
16168
+ }
16169
+ });
16170
+ }
16171
+ /**
16172
+ * @returns UploadedImage
16173
+ * @throws ApiError
16174
+ */
16175
+ static credentialsOrgsUsersImagesRetrieve({
16176
+ platformKey,
16177
+ userId
16178
+ }) {
16179
+ return request(OpenAPI, {
16180
+ method: 'GET',
16181
+ url: '/api/credentials/orgs/{platform_key}/users/{user_id}/images/',
16182
+ path: {
16183
+ 'platform_key': platformKey,
16184
+ 'user_id': userId
16185
+ }
16186
+ });
16187
+ }
16188
+ /**
16189
+ * @returns UploadedImage
16190
+ * @throws ApiError
16191
+ */
16192
+ static credentialsOrgsUsersImagesCreate({
16193
+ platformKey,
16194
+ userId,
16195
+ requestBody
16196
+ }) {
16197
+ return request(OpenAPI, {
16198
+ method: 'POST',
16199
+ url: '/api/credentials/orgs/{platform_key}/users/{user_id}/images/',
16200
+ path: {
16201
+ 'platform_key': platformKey,
16202
+ 'user_id': userId
16203
+ },
16204
+ body: requestBody,
16205
+ mediaType: 'application/json'
16206
+ });
16207
+ }
16208
+ /**
16209
+ * A GET View that validates QueryParams and returns results to a serializer
16210
+ * @returns Issuer
16211
+ * @throws ApiError
16212
+ */
16213
+ static credentialsOrgsUsersIssuersRetrieve({
16214
+ platformKey,
16215
+ q,
16216
+ userId
16217
+ }) {
16218
+ return request(OpenAPI, {
16219
+ method: 'GET',
16220
+ url: '/api/credentials/orgs/{platform_key}/users/{user_id}/issuers/',
16221
+ path: {
16222
+ 'platform_key': platformKey,
16223
+ 'user_id': userId
16224
+ },
16225
+ query: {
16226
+ 'q': q
16227
+ }
16228
+ });
16229
+ }
16230
+ /**
16231
+ * A GET View that validates QueryParams and returns results to a serializer
16232
+ * @returns Issuer
16233
+ * @throws ApiError
16234
+ */
16235
+ static credentialsOrgsUsersIssuersCreate({
16236
+ platformKey,
16237
+ q,
16238
+ userId,
16239
+ requestBody
16240
+ }) {
16241
+ return request(OpenAPI, {
16242
+ method: 'POST',
16243
+ url: '/api/credentials/orgs/{platform_key}/users/{user_id}/issuers/',
16244
+ path: {
16245
+ 'platform_key': platformKey,
16246
+ 'user_id': userId
16247
+ },
16248
+ query: {
16249
+ 'q': q
16250
+ },
16251
+ body: requestBody,
16252
+ mediaType: 'application/json'
16253
+ });
16254
+ }
16255
+ /**
16256
+ * @returns Issuer
16257
+ * @throws ApiError
16258
+ */
16259
+ static credentialsOrgsUsersIssuersRetrieve2({
16260
+ entityId,
16261
+ platformKey,
16262
+ userId
16263
+ }) {
16264
+ return request(OpenAPI, {
16265
+ method: 'GET',
16266
+ url: '/api/credentials/orgs/{platform_key}/users/{user_id}/issuers/{entity_id}',
16267
+ path: {
16268
+ 'entity_id': entityId,
16269
+ 'platform_key': platformKey,
16270
+ 'user_id': userId
16271
+ }
16272
+ });
16273
+ }
16274
+ /**
16275
+ * @returns Issuer
16276
+ * @throws ApiError
16277
+ */
16278
+ static credentialsOrgsUsersIssuersUpdate({
16279
+ entityId,
16280
+ platformKey,
16281
+ userId,
16282
+ requestBody
16283
+ }) {
16284
+ return request(OpenAPI, {
16285
+ method: 'PUT',
16286
+ url: '/api/credentials/orgs/{platform_key}/users/{user_id}/issuers/{entity_id}',
16287
+ path: {
16288
+ 'entity_id': entityId,
16289
+ 'platform_key': platformKey,
16290
+ 'user_id': userId
16291
+ },
16292
+ body: requestBody,
16293
+ mediaType: 'application/json'
16294
+ });
16295
+ }
16296
+ /**
16297
+ * @returns void
16298
+ * @throws ApiError
16299
+ */
16300
+ static credentialsOrgsUsersIssuersDestroy({
16301
+ entityId,
16302
+ platformKey,
16303
+ userId
16304
+ }) {
16305
+ return request(OpenAPI, {
16306
+ method: 'DELETE',
16307
+ url: '/api/credentials/orgs/{platform_key}/users/{user_id}/issuers/{entity_id}',
16308
+ path: {
16309
+ 'entity_id': entityId,
16310
+ 'platform_key': platformKey,
16311
+ 'user_id': userId
16312
+ }
16313
+ });
16314
+ }
16315
+ /**
16316
+ * @returns IssuerAuthority
16317
+ * @throws ApiError
16318
+ */
16319
+ static credentialsOrgsUsersIssuersAuthorityCreate({
16320
+ platformKey,
16321
+ userId,
16322
+ requestBody
16323
+ }) {
16324
+ return request(OpenAPI, {
16325
+ method: 'POST',
16326
+ url: '/api/credentials/orgs/{platform_key}/users/{user_id}/issuers/authority/',
16327
+ path: {
16328
+ 'platform_key': platformKey,
16329
+ 'user_id': userId
16330
+ },
16331
+ body: requestBody,
16332
+ mediaType: 'application/json'
16333
+ });
16334
+ }
16335
+ /**
16336
+ * Retrieve provider configurations for the platform.
16337
+ *
16338
+ * Query Parameters:
16339
+ * provider_name (str, optional): Filter to a specific provider
16340
+ * page (int, optional): Page number
16341
+ * page_size (int, optional): Items per page
16342
+ *
16343
+ * Returns all configurations for the platform if the user is an admin.
16344
+ * @returns CredentialProviderConfig
16345
+ * @throws ApiError
16346
+ */
16347
+ static credentialsOrgsUsersProviderConfigRetrieve({
16348
+ platformKey,
16349
+ userId
16350
+ }) {
16351
+ return request(OpenAPI, {
16352
+ method: 'GET',
16353
+ url: '/api/credentials/orgs/{platform_key}/users/{user_id}/provider-config/',
16354
+ path: {
16355
+ 'platform_key': platformKey,
16356
+ 'user_id': userId
16357
+ }
16358
+ });
16359
+ }
16360
+ /**
16361
+ * Create or update a provider configuration.
16362
+ *
16363
+ * If a configuration doesn't exist for the platform and provider, it will be created.
16364
+ * If it exists, it will be updated.
16365
+ *
16366
+ * Request Body:
16367
+ * {
16368
+ * "provider_name": "accredible", // Required
16369
+ * "config": {...}, // Optional
16370
+ * "enabled": true // Optional
16371
+ * }
16372
+ *
16373
+ * Returns:
16374
+ * - 201 Created: When creating a new configuration
16375
+ * - 200 OK: When updating an existing configuration
16376
+ * @returns CredentialProviderConfig
16377
+ * @throws ApiError
16378
+ */
16379
+ static credentialsOrgsUsersProviderConfigCreate({
16380
+ platformKey,
16381
+ userId,
16382
+ requestBody
16383
+ }) {
16384
+ return request(OpenAPI, {
16385
+ method: 'POST',
16386
+ url: '/api/credentials/orgs/{platform_key}/users/{user_id}/provider-config/',
16387
+ path: {
16388
+ 'platform_key': platformKey,
16389
+ 'user_id': userId
16390
+ },
16391
+ body: requestBody,
16392
+ mediaType: 'application/json'
16393
+ });
16394
+ }
16395
+ /**
16396
+ * Deactivate a provider configuration (sets enabled=False).
16397
+ *
16398
+ * Request Body:
16399
+ * {
16400
+ * "provider_name": "accredible" // Required
16401
+ * }
16402
+ * @returns void
16403
+ * @throws ApiError
16404
+ */
16405
+ static credentialsOrgsUsersProviderConfigDestroy({
16406
+ platformKey,
16407
+ userId
16408
+ }) {
16409
+ return request(OpenAPI, {
16410
+ method: 'DELETE',
16411
+ url: '/api/credentials/orgs/{platform_key}/users/{user_id}/provider-config/',
16412
+ path: {
16413
+ 'platform_key': platformKey,
16414
+ 'user_id': userId
16415
+ }
16416
+ });
16417
+ }
16418
+ /**
16419
+ * Get all credentials for a platform with search and pagination support.
16420
+ *
16421
+ * Query Parameters:
16422
+ * - platform_org: Platform org ID (takes precedence over URL org)
16423
+ * - page: Page number (default: 1)
16424
+ * - page_size: Items per page (default: 10, max: 100)
16425
+ * - search: Search term to filter credentials
16426
+ * - course: Course ID to filter credentials
16427
+ * - program: Program ID to filter credentials
16428
+ * @returns Credential
16429
+ * @throws ApiError
16430
+ */
16431
+ static credentialsOrgsUsersRetrieve3({
16432
+ platformKey,
16433
+ username
16434
+ }) {
16435
+ return request(OpenAPI, {
16436
+ method: 'GET',
16437
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/',
16438
+ path: {
16439
+ 'platform_key': platformKey,
16440
+ 'username': username
16441
+ }
16442
+ });
16443
+ }
16444
+ /**
16445
+ * API View for managing credentials across a platform.
16446
+ *
16447
+ * This endpoint allows creating and retrieving credentials for a specific organization/tenant,
16448
+ * with support for filtering, searching, and pagination.
16449
+ *
16450
+ * Path Parameters:
16451
+ * org (str): The organization/tenant identifier
16452
+ * user_id (str): The user ID making the request
16453
+ *
16454
+ * Query Parameters:
16455
+ * # Platform identification
16456
+ * platform_org (str, optional): Alternative platform identifier (takes precedence over URL org)
16457
+ *
16458
+ * # Pagination
16459
+ * page (int, optional): Page number (default: 1)
16460
+ * page_size (int, optional): Items per page (default: 10, max: 100)
16461
+ *
16462
+ * # Filtering and search
16463
+ * search (str, optional): Search term to filter credentials by name or description
16464
+ * course (str, optional): Course ID to filter credentials associated with a specific course
16465
+ * program (str, optional): Program ID to filter credentials associated with a specific program
16466
+ *
16467
+ * Methods:
16468
+ * GET: Retrieve credentials with filtering and pagination
16469
+ * POST: Create a new credential
16470
+ *
16471
+ * POST Request Body:
16472
+ * A JSON object containing credential details:
16473
+ * - name (str): Credential name
16474
+ * - description (str, optional): Credential description
16475
+ * - issuer (str): Issuer entity ID
16476
+ * - credential_type (str, optional): Type of credential
16477
+ * - html_template (str, optional): HTML template for credential rendering
16478
+ * - css_template (str, optional): CSS template for credential styling
16479
+ * - icon_image (str, optional): URL to credential icon
16480
+ * - background_image (str, optional): URL to credential background
16481
+ * - thumbnail_image (str, optional): URL to credential thumbnail
16482
+ * - criteria_url (str, optional): URL to credential criteria
16483
+ * - criteria_text (str, optional): Text description of credential criteria
16484
+ * - issuing_signal (str, optional): Signal that triggers credential issuance
16485
+ *
16486
+ * Returns:
16487
+ * GET: A JSON response containing:
16488
+ * {
16489
+ * "status": {"success": true, "description": "Ok"},
16490
+ * "result": {
16491
+ * "next": "URL to next page",
16492
+ * "previous": "URL to previous page",
16493
+ * "count": 42,
16494
+ * "data": [
16495
+ * {credential object},
16496
+ * {credential object},
16497
+ * ...
16498
+ * ],
16499
+ * "num_pages": 5,
16500
+ * "page_number": 1,
16501
+ * "max_page_size": 100
16502
+ * }
16503
+ * }
16504
+ *
16505
+ * POST: A JSON response containing:
16506
+ * {
16507
+ * "status": {"success": true, "description": "Created"},
16508
+ * "result": {credential object}
16509
+ * }
16510
+ *
16511
+ * Error Responses:
16512
+ * 400 Bad Request: If the request data is invalid
16513
+ * 401 Unauthorized: If the user is not authenticated
16514
+ * 403 Forbidden: If the user does not have permission to access this resource
16515
+ * 404 Not Found: If the platform doesn't exist
16516
+ * 500 Internal Server Error: If an unexpected error occurs
16517
+ *
16518
+ * Access Control:
16519
+ * - Requires CredentialAssignmentPermission
16520
+ * - Only public credentials are returned by default
16521
+ * @returns Credential
16522
+ * @throws ApiError
16523
+ */
16524
+ static credentialsOrgsUsersCreate2({
16525
+ platformKey,
16526
+ username,
16527
+ requestBody
16528
+ }) {
16529
+ return request(OpenAPI, {
16530
+ method: 'POST',
16531
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/',
16532
+ path: {
16533
+ 'platform_key': platformKey,
16534
+ 'username': username
16535
+ },
16536
+ body: requestBody,
16537
+ mediaType: 'application/json'
16538
+ });
16539
+ }
16540
+ /**
16541
+ * API View for managing individual credentials.
16542
+ *
16543
+ * This endpoint allows retrieving, updating, and deleting specific credentials
16544
+ * identified by their entity_id.
16545
+ *
16546
+ * Path Parameters:
16547
+ * org (str): The organization/tenant identifier
16548
+ * user_id (str): The user ID making the request
16549
+ * entity_id (str): The credential entity ID
16550
+ *
16551
+ * Methods:
16552
+ * GET: Retrieve a specific credential
16553
+ * PUT: Update a specific credential
16554
+ * DELETE: Delete a specific credential
16555
+ *
16556
+ * PUT Request Body:
16557
+ * A JSON object containing credential details to update:
16558
+ * - name (str, optional): Credential name
16559
+ * - description (str, optional): Credential description
16560
+ * - credential_type (str, optional): Type of credential
16561
+ * - html_template (str, optional): HTML template for credential rendering
16562
+ * - css_template (str, optional): CSS template for credential styling
16563
+ * - icon_image (str, optional): URL to credential icon
16564
+ * - background_image (str, optional): URL to credential background
16565
+ * - thumbnail_image (str, optional): URL to credential thumbnail
16566
+ * - criteria_url (str, optional): URL to credential criteria
16567
+ * - criteria_text (str, optional): Text description of credential criteria
16568
+ * - issuing_signal (str, optional): Signal that triggers credential issuance
16569
+ *
16570
+ * Returns:
16571
+ * GET: A JSON response containing:
16572
+ * {
16573
+ * "status": {"success": true, "description": "Ok"},
16574
+ * "result": {credential object}
16575
+ * }
16576
+ *
16577
+ * PUT: A JSON response containing:
16578
+ * {
16579
+ * "status": {"success": true, "description": "Updated"},
16580
+ * "result": {credential object}
16581
+ * }
16582
+ *
16583
+ * DELETE: A JSON response indicating success:
16584
+ * {
16585
+ * "status": {"success": true, "description": "Deleted"}
16586
+ * }
16587
+ *
16588
+ * Error Responses:
16589
+ * 400 Bad Request: If the request data is invalid
16590
+ * 401 Unauthorized: If the user is not authenticated
16591
+ * 403 Forbidden: If the user does not have permission to access this resource
16592
+ * 404 Not Found: If the credential doesn't exist
16593
+ * 500 Internal Server Error: If an unexpected error occurs
16594
+ *
16595
+ * Access Control:
16596
+ * - Requires CredentialAssignmentPermission
16597
+ * - Users can only manage credentials they have permission to access
16598
+ * @returns Credential
16599
+ * @throws ApiError
16600
+ */
16601
+ static credentialsOrgsUsersRetrieve4({
16602
+ entityId,
16603
+ platformKey,
16604
+ username
16605
+ }) {
16606
+ return request(OpenAPI, {
16607
+ method: 'GET',
16608
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/{entity_id}',
16609
+ path: {
16610
+ 'entity_id': entityId,
16611
+ 'platform_key': platformKey,
16612
+ 'username': username
16613
+ }
16614
+ });
16615
+ }
16616
+ /**
16617
+ * API View for managing individual credentials.
16618
+ *
16619
+ * This endpoint allows retrieving, updating, and deleting specific credentials
16620
+ * identified by their entity_id.
16621
+ *
16622
+ * Path Parameters:
16623
+ * org (str): The organization/tenant identifier
16624
+ * user_id (str): The user ID making the request
16625
+ * entity_id (str): The credential entity ID
16626
+ *
16627
+ * Methods:
16628
+ * GET: Retrieve a specific credential
16629
+ * PUT: Update a specific credential
16630
+ * DELETE: Delete a specific credential
16631
+ *
16632
+ * PUT Request Body:
16633
+ * A JSON object containing credential details to update:
16634
+ * - name (str, optional): Credential name
16635
+ * - description (str, optional): Credential description
16636
+ * - credential_type (str, optional): Type of credential
16637
+ * - html_template (str, optional): HTML template for credential rendering
16638
+ * - css_template (str, optional): CSS template for credential styling
16639
+ * - icon_image (str, optional): URL to credential icon
16640
+ * - background_image (str, optional): URL to credential background
16641
+ * - thumbnail_image (str, optional): URL to credential thumbnail
16642
+ * - criteria_url (str, optional): URL to credential criteria
16643
+ * - criteria_text (str, optional): Text description of credential criteria
16644
+ * - issuing_signal (str, optional): Signal that triggers credential issuance
16645
+ *
16646
+ * Returns:
16647
+ * GET: A JSON response containing:
16648
+ * {
16649
+ * "status": {"success": true, "description": "Ok"},
16650
+ * "result": {credential object}
16651
+ * }
16652
+ *
16653
+ * PUT: A JSON response containing:
16654
+ * {
16655
+ * "status": {"success": true, "description": "Updated"},
16656
+ * "result": {credential object}
16657
+ * }
16658
+ *
16659
+ * DELETE: A JSON response indicating success:
16660
+ * {
16661
+ * "status": {"success": true, "description": "Deleted"}
16662
+ * }
16663
+ *
16664
+ * Error Responses:
16665
+ * 400 Bad Request: If the request data is invalid
16666
+ * 401 Unauthorized: If the user is not authenticated
16667
+ * 403 Forbidden: If the user does not have permission to access this resource
16668
+ * 404 Not Found: If the credential doesn't exist
16669
+ * 500 Internal Server Error: If an unexpected error occurs
16670
+ *
16671
+ * Access Control:
16672
+ * - Requires CredentialAssignmentPermission
16673
+ * - Users can only manage credentials they have permission to access
16674
+ * @returns Credential
16675
+ * @throws ApiError
16676
+ */
16677
+ static credentialsOrgsUsersUpdate2({
16678
+ entityId,
16679
+ platformKey,
16680
+ username,
16681
+ requestBody
16682
+ }) {
16683
+ return request(OpenAPI, {
16684
+ method: 'PUT',
16685
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/{entity_id}',
16686
+ path: {
16687
+ 'entity_id': entityId,
16688
+ 'platform_key': platformKey,
16689
+ 'username': username
16690
+ },
16691
+ body: requestBody,
16692
+ mediaType: 'application/json'
16693
+ });
16694
+ }
16695
+ /**
16696
+ * API View for managing individual credentials.
16697
+ *
16698
+ * This endpoint allows retrieving, updating, and deleting specific credentials
16699
+ * identified by their entity_id.
16700
+ *
16701
+ * Path Parameters:
16702
+ * org (str): The organization/tenant identifier
16703
+ * user_id (str): The user ID making the request
16704
+ * entity_id (str): The credential entity ID
16705
+ *
16706
+ * Methods:
16707
+ * GET: Retrieve a specific credential
16708
+ * PUT: Update a specific credential
16709
+ * DELETE: Delete a specific credential
16710
+ *
16711
+ * PUT Request Body:
16712
+ * A JSON object containing credential details to update:
16713
+ * - name (str, optional): Credential name
16714
+ * - description (str, optional): Credential description
16715
+ * - credential_type (str, optional): Type of credential
16716
+ * - html_template (str, optional): HTML template for credential rendering
16717
+ * - css_template (str, optional): CSS template for credential styling
16718
+ * - icon_image (str, optional): URL to credential icon
16719
+ * - background_image (str, optional): URL to credential background
16720
+ * - thumbnail_image (str, optional): URL to credential thumbnail
16721
+ * - criteria_url (str, optional): URL to credential criteria
16722
+ * - criteria_text (str, optional): Text description of credential criteria
16723
+ * - issuing_signal (str, optional): Signal that triggers credential issuance
16724
+ *
16725
+ * Returns:
16726
+ * GET: A JSON response containing:
16727
+ * {
16728
+ * "status": {"success": true, "description": "Ok"},
16729
+ * "result": {credential object}
16730
+ * }
16731
+ *
16732
+ * PUT: A JSON response containing:
16733
+ * {
16734
+ * "status": {"success": true, "description": "Updated"},
16735
+ * "result": {credential object}
16736
+ * }
16737
+ *
16738
+ * DELETE: A JSON response indicating success:
16739
+ * {
16740
+ * "status": {"success": true, "description": "Deleted"}
16741
+ * }
16742
+ *
16743
+ * Error Responses:
16744
+ * 400 Bad Request: If the request data is invalid
16745
+ * 401 Unauthorized: If the user is not authenticated
16746
+ * 403 Forbidden: If the user does not have permission to access this resource
16747
+ * 404 Not Found: If the credential doesn't exist
16748
+ * 500 Internal Server Error: If an unexpected error occurs
16749
+ *
16750
+ * Access Control:
16751
+ * - Requires CredentialAssignmentPermission
16752
+ * - Users can only manage credentials they have permission to access
16753
+ * @returns void
16754
+ * @throws ApiError
16755
+ */
16756
+ static credentialsOrgsUsersDestroy2({
16757
+ entityId,
16758
+ platformKey,
16759
+ username
16760
+ }) {
16761
+ return request(OpenAPI, {
16762
+ method: 'DELETE',
16763
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/{entity_id}',
16764
+ path: {
16765
+ 'entity_id': entityId,
16766
+ 'platform_key': platformKey,
16767
+ 'username': username
16768
+ }
16769
+ });
16770
+ }
16771
+ /**
16772
+ * @returns PaginatedAssertionsResponse
16773
+ * @throws ApiError
16774
+ */
16775
+ static credentialsOrgsUsersAssertionsRetrieve6({
16776
+ entityId,
16777
+ platformKey,
16778
+ username
16779
+ }) {
16780
+ return request(OpenAPI, {
16781
+ method: 'GET',
16782
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/{entity_id}/assertions/',
16783
+ path: {
16784
+ 'entity_id': entityId,
16785
+ 'platform_key': platformKey,
16786
+ 'username': username
16787
+ }
16788
+ });
16789
+ }
16790
+ /**
16791
+ * @returns Assertion
16792
+ * @throws ApiError
16793
+ */
16794
+ static credentialsOrgsUsersAssertionsCreate2({
16795
+ entityId,
16796
+ platformKey,
16797
+ username,
16798
+ requestBody
16799
+ }) {
16800
+ return request(OpenAPI, {
16801
+ method: 'POST',
16802
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/{entity_id}/assertions/',
16803
+ path: {
16804
+ 'entity_id': entityId,
16805
+ 'platform_key': platformKey,
16806
+ 'username': username
16807
+ },
16808
+ body: requestBody,
16809
+ mediaType: 'application/json'
16810
+ });
16811
+ }
16812
+ /**
16813
+ * @returns BulkCreateAssertion
16814
+ * @throws ApiError
16815
+ */
16816
+ static credentialsOrgsUsersAssertionsBulkCreate2({
16817
+ entityId,
16818
+ platformKey,
16819
+ username,
16820
+ requestBody
16821
+ }) {
16822
+ return request(OpenAPI, {
16823
+ method: 'POST',
16824
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/{entity_id}/assertions/bulk/',
16825
+ path: {
16826
+ 'entity_id': entityId,
16827
+ 'platform_key': platformKey,
16828
+ 'username': username
16829
+ },
16830
+ body: requestBody,
16831
+ mediaType: 'application/json'
16832
+ });
16833
+ }
16834
+ /**
16835
+ * A GET View that validates QueryParams and returns results to a serializer
16836
+ * @returns PaginatedAssertionsResponse
16837
+ * @throws ApiError
16838
+ */
16839
+ static credentialsOrgsUsersAssertionsRetrieve4({
16840
+ platformKey,
16841
+ username,
16842
+ course,
16843
+ excludeMainTenantAssertions,
16844
+ includeExpired,
16845
+ includeRevoked,
16846
+ page,
16847
+ pageSize
16848
+ }) {
16849
+ return request(OpenAPI, {
16850
+ method: 'GET',
16851
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/assertions/',
16852
+ path: {
16853
+ 'platform_key': platformKey,
16854
+ 'username': username
16855
+ },
16856
+ query: {
16857
+ 'course': course,
16858
+ 'exclude_main_tenant_assertions': excludeMainTenantAssertions,
16859
+ 'include_expired': includeExpired,
16860
+ 'include_revoked': includeRevoked,
16861
+ 'page': page,
16862
+ 'page_size': pageSize
16863
+ }
16864
+ });
16865
+ }
16866
+ /**
16867
+ * Get all credentials of a given tenant
16868
+ * @returns OvertimeWithChangeInfo
16869
+ * @throws ApiError
16870
+ */
16871
+ static credentialsOrgsUsersAssertionsOverTimeRetrieve2({
16872
+ platformKey,
16873
+ username,
16874
+ departmentId,
16875
+ endDate,
16876
+ format = 'json',
16877
+ includeMainPlatform = true,
16878
+ startDate
16879
+ }) {
16880
+ return request(OpenAPI, {
16881
+ method: 'GET',
16882
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/assertions-over-time/',
16883
+ path: {
16884
+ 'platform_key': platformKey,
16885
+ 'username': username
16886
+ },
16887
+ query: {
16888
+ 'department_id': departmentId,
16889
+ 'end_date': endDate,
16890
+ 'format': format,
16891
+ 'include_main_platform': includeMainPlatform,
16892
+ 'start_date': startDate
16893
+ }
16894
+ });
16895
+ }
16896
+ /**
16897
+ * @returns Assertion
16898
+ * @throws ApiError
16899
+ */
16900
+ static credentialsOrgsUsersAssertionsRetrieve5({
16901
+ entityId,
16902
+ platformKey,
16903
+ username
16904
+ }) {
16905
+ return request(OpenAPI, {
16906
+ method: 'GET',
16907
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/assertions/{entity_id}',
16908
+ path: {
16909
+ 'entity_id': entityId,
16910
+ 'platform_key': platformKey,
16911
+ 'username': username
16912
+ }
16913
+ });
16914
+ }
16915
+ /**
16916
+ * @returns Assertion
16917
+ * @throws ApiError
16918
+ */
16919
+ static credentialsOrgsUsersAssertionsUpdate2({
16920
+ entityId,
16921
+ platformKey,
16922
+ username,
16923
+ requestBody
16924
+ }) {
16925
+ return request(OpenAPI, {
16926
+ method: 'PUT',
16927
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/assertions/{entity_id}',
16928
+ path: {
16929
+ 'entity_id': entityId,
16930
+ 'platform_key': platformKey,
16931
+ 'username': username
16932
+ },
16933
+ body: requestBody,
16934
+ mediaType: 'application/json'
16935
+ });
16936
+ }
16937
+ /**
16938
+ * Delete a credential assignment using its entity_id.
16939
+ * Only platform admins and department admins can delete assignments.
16940
+ * @returns void
16941
+ * @throws ApiError
16942
+ */
16943
+ static credentialsOrgsUsersAssignmentsDestroy2({
16944
+ assignmentId,
16945
+ platformKey,
16946
+ username
16947
+ }) {
16948
+ return request(OpenAPI, {
16949
+ method: 'DELETE',
16950
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/assignments/{assignment_id}',
16951
+ path: {
16952
+ 'assignment_id': assignmentId,
16953
+ 'platform_key': platformKey,
16954
+ 'username': username
16955
+ }
16956
+ });
16957
+ }
16958
+ /**
16959
+ * Get group assignments with department-aware filtering
16960
+ * @returns any No response body
16961
+ * @throws ApiError
16962
+ */
16963
+ static credentialsOrgsUsersAssignmentsGroupsRetrieve2({
16964
+ platformKey,
16965
+ username
16966
+ }) {
16967
+ return request(OpenAPI, {
16968
+ method: 'GET',
16969
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/assignments/groups/',
16970
+ path: {
16971
+ 'platform_key': platformKey,
16972
+ 'username': username
16973
+ }
16974
+ });
16975
+ }
16976
+ /**
16977
+ * Create group assignment with department access validation
16978
+ * @returns any No response body
16979
+ * @throws ApiError
16980
+ */
16981
+ static credentialsOrgsUsersAssignmentsGroupsCreate2({
16982
+ platformKey,
16983
+ username
16984
+ }) {
16985
+ return request(OpenAPI, {
16986
+ method: 'POST',
16987
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/assignments/groups/',
16988
+ path: {
16989
+ 'platform_key': platformKey,
16990
+ 'username': username
16991
+ }
16992
+ });
16993
+ }
16994
+ /**
16995
+ * Get assignments and their corresponding assertions based on user role:
16996
+ * - Regular users: get only their own assignments
16997
+ * - Platform admins: get assignments for all users in their platform
16998
+ * - Department admins: get assignments for users in their department groups
16999
+ * @returns any No response body
17000
+ * @throws ApiError
17001
+ */
17002
+ static credentialsOrgsUsersAssignmentsUsersRetrieve2({
17003
+ platformKey,
17004
+ username
17005
+ }) {
17006
+ return request(OpenAPI, {
17007
+ method: 'GET',
17008
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/assignments/users/',
17009
+ path: {
17010
+ 'platform_key': platformKey,
17011
+ 'username': username
17012
+ }
17013
+ });
17014
+ }
17015
+ /**
17016
+ * Create assignments with department access validation
17017
+ * @returns any No response body
17018
+ * @throws ApiError
17019
+ */
17020
+ static credentialsOrgsUsersAssignmentsUsersCreate2({
17021
+ platformKey,
17022
+ username
17023
+ }) {
17024
+ return request(OpenAPI, {
17025
+ method: 'POST',
17026
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/assignments/users/',
17027
+ path: {
17028
+ 'platform_key': platformKey,
17029
+ 'username': username
17030
+ }
17031
+ });
17032
+ }
17033
+ /**
17034
+ * Get all credentials of a given tenant
17035
+ * @returns OverTime
17036
+ * @throws ApiError
17037
+ */
17038
+ static credentialsOrgsUsersCourseAssertionsOverTimeRetrieve2({
17039
+ platformKey,
17040
+ username,
17041
+ departmentId,
17042
+ endDate,
17043
+ format = 'json',
17044
+ includeMainPlatform = true,
17045
+ startDate
17046
+ }) {
17047
+ return request(OpenAPI, {
17048
+ method: 'GET',
17049
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/course-assertions-over-time/',
17050
+ path: {
17051
+ 'platform_key': platformKey,
17052
+ 'username': username
17053
+ },
17054
+ query: {
17055
+ 'department_id': departmentId,
17056
+ 'end_date': endDate,
17057
+ 'format': format,
17058
+ 'include_main_platform': includeMainPlatform,
17059
+ 'start_date': startDate
17060
+ }
17061
+ });
17062
+ }
17063
+ /**
17064
+ * @returns any No response body
17065
+ * @throws ApiError
17066
+ */
17067
+ static credentialsOrgsUsersCourseCredentialsList2({
17068
+ platformKey,
17069
+ username,
17070
+ page,
17071
+ pageSize
17072
+ }) {
17073
+ return request(OpenAPI, {
17074
+ method: 'GET',
17075
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/course-credentials/',
17076
+ path: {
17077
+ 'platform_key': platformKey,
17078
+ 'username': username
17079
+ },
17080
+ query: {
17081
+ 'page': page,
17082
+ 'page_size': pageSize
17083
+ }
17084
+ });
17085
+ }
17086
+ /**
17087
+ * Get all credentials of a given tenant
17088
+ * @returns OverTime
17089
+ * @throws ApiError
17090
+ */
17091
+ static credentialsOrgsUsersCredentialsOverTimeRetrieve2({
17092
+ platformKey,
17093
+ username,
17094
+ departmentId,
17095
+ endDate,
17096
+ format = 'json',
17097
+ includeMainPlatform = true,
17098
+ startDate
17099
+ }) {
17100
+ return request(OpenAPI, {
17101
+ method: 'GET',
17102
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/credentials-over-time/',
17103
+ path: {
17104
+ 'platform_key': platformKey,
17105
+ 'username': username
17106
+ },
17107
+ query: {
17108
+ 'department_id': departmentId,
17109
+ 'end_date': endDate,
17110
+ 'format': format,
17111
+ 'include_main_platform': includeMainPlatform,
17112
+ 'start_date': startDate
17113
+ }
17114
+ });
17115
+ }
17116
+ /**
17117
+ * Retrieve external credential mappings for the platform.
17118
+ *
17119
+ * Query Parameters:
17120
+ * credential_id (str, optional): Filter by credential entity_id
17121
+ * provider_name (str, optional): Filter by provider name
17122
+ * page (int, optional): Page number
17123
+ * page_size (int, optional): Items per page
17124
+ *
17125
+ * Returns all mappings for the platform if the user is an admin.
17126
+ * @returns ExternalCredentialMapping
17127
+ * @throws ApiError
17128
+ */
17129
+ static credentialsOrgsUsersExternalMappingRetrieve2({
17130
+ platformKey,
17131
+ username
17132
+ }) {
17133
+ return request(OpenAPI, {
17134
+ method: 'GET',
17135
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/external-mapping/',
17136
+ path: {
17137
+ 'platform_key': platformKey,
17138
+ 'username': username
17139
+ }
17140
+ });
17141
+ }
17142
+ /**
17143
+ * Create or update an external credential mapping.
17144
+ *
17145
+ * If a mapping doesn't exist for the credential + platform + provider combination,
17146
+ * it will be created. If it exists, it will be updated.
17147
+ *
17148
+ * Request Body:
17149
+ * {
17150
+ * "credential_id": "credential-entity-id", // Required
17151
+ * "provider_name": "accredible", // Required
17152
+ * "external_template_id": "123456", // Optional
17153
+ * "metadata": {} // Optional
17154
+ * }
17155
+ *
17156
+ * Returns:
17157
+ * - 201 Created: When creating a new mapping
17158
+ * - 200 OK: When updating an existing mapping
17159
+ * @returns ExternalCredentialMapping
17160
+ * @throws ApiError
17161
+ */
17162
+ static credentialsOrgsUsersExternalMappingCreate2({
17163
+ platformKey,
17164
+ username,
17165
+ requestBody
17166
+ }) {
17167
+ return request(OpenAPI, {
17168
+ method: 'POST',
17169
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/external-mapping/',
16311
17170
  path: {
16312
17171
  'platform_key': platformKey,
16313
17172
  'username': username
@@ -16330,7 +17189,7 @@
16330
17189
  * @returns void
16331
17190
  * @throws ApiError
16332
17191
  */
16333
- static credentialsOrgsUsersExternalMappingDestroy({
17192
+ static credentialsOrgsUsersExternalMappingDestroy2({
16334
17193
  platformKey,
16335
17194
  username
16336
17195
  }) {
@@ -16344,63 +17203,10 @@
16344
17203
  });
16345
17204
  }
16346
17205
  /**
16347
- * API View for managing uploaded images for credentials.
16348
- *
16349
- * This endpoint allows uploading new images and retrieving existing images
16350
- * for use with credentials (icons, backgrounds, thumbnails, etc.).
16351
- *
16352
- * Path Parameters:
16353
- * org (str): The organization/tenant identifier
16354
- * user_id (str): The user ID making the request
16355
- *
16356
- * Query Parameters:
16357
- * query (str, required for GET): Search term to filter images by name
16358
- *
16359
- * Methods:
16360
- * GET: Retrieve images matching a search query
16361
- * POST: Upload a new image
16362
- *
16363
- * POST Request Body:
16364
- * Multipart form data containing:
16365
- * - image (file, required): The image file to upload
16366
- * - name (str, optional): A descriptive name for the image
16367
- *
16368
- * Returns:
16369
- * GET: A JSON array of image objects:
16370
- * [
16371
- * {
16372
- * "id": 123,
16373
- * "name": "Logo",
16374
- * "image": "https://example.com/media/uploaded_images/logo.png"
16375
- * },
16376
- * {
16377
- * "id": 124,
16378
- * "name": "Background",
16379
- * "image": "https://example.com/media/uploaded_images/background.jpg"
16380
- * },
16381
- * ...
16382
- * ]
16383
- *
16384
- * POST: A JSON object containing the uploaded image details:
16385
- * {
16386
- * "id": 125,
16387
- * "name": "Certificate Icon",
16388
- * "image": "https://example.com/media/uploaded_images/certificate-icon.png"
16389
- * }
16390
- *
16391
- * Error Responses:
16392
- * 400 Bad Request: If the request data is invalid or missing required parameters
16393
- * 401 Unauthorized: If the user is not authenticated
16394
- * 403 Forbidden: If the user does not have permission to access this resource
16395
- * 500 Internal Server Error: If an unexpected error occurs
16396
- *
16397
- * Access Control:
16398
- * - Requires IsAdminUserOrStudentDRFMixin
16399
- * - Only authenticated users with appropriate permissions can upload and retrieve images
16400
- * @returns UploadedImage
16401
- * @throws ApiError
16402
- */
16403
- static credentialsOrgsUsersImagesRetrieve({
17206
+ * @returns UploadedImage
17207
+ * @throws ApiError
17208
+ */
17209
+ static credentialsOrgsUsersImagesRetrieve2({
16404
17210
  platformKey,
16405
17211
  username
16406
17212
  }) {
@@ -16414,63 +17220,10 @@
16414
17220
  });
16415
17221
  }
16416
17222
  /**
16417
- * API View for managing uploaded images for credentials.
16418
- *
16419
- * This endpoint allows uploading new images and retrieving existing images
16420
- * for use with credentials (icons, backgrounds, thumbnails, etc.).
16421
- *
16422
- * Path Parameters:
16423
- * org (str): The organization/tenant identifier
16424
- * user_id (str): The user ID making the request
16425
- *
16426
- * Query Parameters:
16427
- * query (str, required for GET): Search term to filter images by name
16428
- *
16429
- * Methods:
16430
- * GET: Retrieve images matching a search query
16431
- * POST: Upload a new image
16432
- *
16433
- * POST Request Body:
16434
- * Multipart form data containing:
16435
- * - image (file, required): The image file to upload
16436
- * - name (str, optional): A descriptive name for the image
16437
- *
16438
- * Returns:
16439
- * GET: A JSON array of image objects:
16440
- * [
16441
- * {
16442
- * "id": 123,
16443
- * "name": "Logo",
16444
- * "image": "https://example.com/media/uploaded_images/logo.png"
16445
- * },
16446
- * {
16447
- * "id": 124,
16448
- * "name": "Background",
16449
- * "image": "https://example.com/media/uploaded_images/background.jpg"
16450
- * },
16451
- * ...
16452
- * ]
16453
- *
16454
- * POST: A JSON object containing the uploaded image details:
16455
- * {
16456
- * "id": 125,
16457
- * "name": "Certificate Icon",
16458
- * "image": "https://example.com/media/uploaded_images/certificate-icon.png"
16459
- * }
16460
- *
16461
- * Error Responses:
16462
- * 400 Bad Request: If the request data is invalid or missing required parameters
16463
- * 401 Unauthorized: If the user is not authenticated
16464
- * 403 Forbidden: If the user does not have permission to access this resource
16465
- * 500 Internal Server Error: If an unexpected error occurs
16466
- *
16467
- * Access Control:
16468
- * - Requires IsAdminUserOrStudentDRFMixin
16469
- * - Only authenticated users with appropriate permissions can upload and retrieve images
16470
- * @returns UploadedImage
16471
- * @throws ApiError
16472
- */
16473
- static credentialsOrgsUsersImagesCreate({
17223
+ * @returns UploadedImage
17224
+ * @throws ApiError
17225
+ */
17226
+ static credentialsOrgsUsersImagesCreate2({
16474
17227
  platformKey,
16475
17228
  username,
16476
17229
  requestBody
@@ -16487,71 +17240,11 @@
16487
17240
  });
16488
17241
  }
16489
17242
  /**
16490
- * API View for managing credential issuers.
16491
- *
16492
- * This endpoint allows creating and retrieving issuers for a specific organization/tenant,
16493
- * with support for filtering and pagination.
16494
- *
16495
- * Path Parameters:
16496
- * org (str): The organization/tenant identifier
16497
- * user_id (str): The user ID making the request
16498
- *
16499
- * Query Parameters:
16500
- * q (str, optional): Search term to filter issuers by name
16501
- * limit (int, optional): Number of results per page (default: 50)
16502
- * offset (int, optional): Starting position for pagination
16503
- *
16504
- * Methods:
16505
- * GET: Retrieve issuers with filtering and pagination
16506
- * POST: Create a new issuer
16507
- *
16508
- * POST Request Body:
16509
- * A JSON object containing issuer details:
16510
- * - name (str): Issuer name
16511
- * - iconImage (str, optional): URL to issuer icon
16512
- * - email (str, optional): Contact email for the issuer
16513
- * - url (str, optional): Website URL for the issuer
16514
- * - allowed_template_tags (array, optional): List of allowed template tags
16515
- *
16516
- * Returns:
16517
- * GET: A JSON response containing:
16518
- * {
16519
- * "status": {"success": true, "description": "Ok"},
16520
- * "result": {
16521
- * "next": "URL to next page",
16522
- * "previous": "URL to previous page",
16523
- * "count": 10,
16524
- * "data": [
16525
- * {issuer object},
16526
- * {issuer object},
16527
- * ...
16528
- * ],
16529
- * "num_pages": 1,
16530
- * "page_number": 1,
16531
- * "max_page_size": 1000
16532
- * }
16533
- * }
16534
- *
16535
- * POST: A JSON response containing:
16536
- * {
16537
- * "status": {"success": true, "description": "Created"},
16538
- * "result": {issuer object}
16539
- * }
16540
- *
16541
- * Error Responses:
16542
- * 400 Bad Request: If the request data is invalid
16543
- * 401 Unauthorized: If the user is not authenticated
16544
- * 403 Forbidden: If the user does not have permission to access this resource
16545
- * 404 Not Found: If the platform doesn't exist
16546
- * 500 Internal Server Error: If an unexpected error occurs
16547
- *
16548
- * Access Control:
16549
- * - Requires IsAdminUserOrStudentDRFMixin
16550
- * - Only authenticated users with appropriate permissions can manage issuers
16551
- * @returns Issuer
16552
- * @throws ApiError
16553
- */
16554
- static credentialsOrgsUsersIssuersRetrieve({
17243
+ * A GET View that validates QueryParams and returns results to a serializer
17244
+ * @returns Issuer
17245
+ * @throws ApiError
17246
+ */
17247
+ static credentialsOrgsUsersIssuersRetrieve3({
16555
17248
  platformKey,
16556
17249
  q,
16557
17250
  username
@@ -16569,71 +17262,11 @@
16569
17262
  });
16570
17263
  }
16571
17264
  /**
16572
- * API View for managing credential issuers.
16573
- *
16574
- * This endpoint allows creating and retrieving issuers for a specific organization/tenant,
16575
- * with support for filtering and pagination.
16576
- *
16577
- * Path Parameters:
16578
- * org (str): The organization/tenant identifier
16579
- * user_id (str): The user ID making the request
16580
- *
16581
- * Query Parameters:
16582
- * q (str, optional): Search term to filter issuers by name
16583
- * limit (int, optional): Number of results per page (default: 50)
16584
- * offset (int, optional): Starting position for pagination
16585
- *
16586
- * Methods:
16587
- * GET: Retrieve issuers with filtering and pagination
16588
- * POST: Create a new issuer
16589
- *
16590
- * POST Request Body:
16591
- * A JSON object containing issuer details:
16592
- * - name (str): Issuer name
16593
- * - iconImage (str, optional): URL to issuer icon
16594
- * - email (str, optional): Contact email for the issuer
16595
- * - url (str, optional): Website URL for the issuer
16596
- * - allowed_template_tags (array, optional): List of allowed template tags
16597
- *
16598
- * Returns:
16599
- * GET: A JSON response containing:
16600
- * {
16601
- * "status": {"success": true, "description": "Ok"},
16602
- * "result": {
16603
- * "next": "URL to next page",
16604
- * "previous": "URL to previous page",
16605
- * "count": 10,
16606
- * "data": [
16607
- * {issuer object},
16608
- * {issuer object},
16609
- * ...
16610
- * ],
16611
- * "num_pages": 1,
16612
- * "page_number": 1,
16613
- * "max_page_size": 1000
16614
- * }
16615
- * }
16616
- *
16617
- * POST: A JSON response containing:
16618
- * {
16619
- * "status": {"success": true, "description": "Created"},
16620
- * "result": {issuer object}
16621
- * }
16622
- *
16623
- * Error Responses:
16624
- * 400 Bad Request: If the request data is invalid
16625
- * 401 Unauthorized: If the user is not authenticated
16626
- * 403 Forbidden: If the user does not have permission to access this resource
16627
- * 404 Not Found: If the platform doesn't exist
16628
- * 500 Internal Server Error: If an unexpected error occurs
16629
- *
16630
- * Access Control:
16631
- * - Requires IsAdminUserOrStudentDRFMixin
16632
- * - Only authenticated users with appropriate permissions can manage issuers
16633
- * @returns Issuer
16634
- * @throws ApiError
16635
- */
16636
- static credentialsOrgsUsersIssuersCreate({
17265
+ * A GET View that validates QueryParams and returns results to a serializer
17266
+ * @returns Issuer
17267
+ * @throws ApiError
17268
+ */
17269
+ static credentialsOrgsUsersIssuersCreate2({
16637
17270
  platformKey,
16638
17271
  q,
16639
17272
  username,
@@ -16654,75 +17287,10 @@
16654
17287
  });
16655
17288
  }
16656
17289
  /**
16657
- * API View for managing individual issuers.
16658
- *
16659
- * This endpoint allows retrieving, updating, and deleting specific issuers
16660
- * identified by their entity_id or org identifier.
16661
- *
16662
- * Path Parameters:
16663
- * org (str): The organization/tenant identifier
16664
- * user_id (str): The user ID making the request
16665
- * entity_id (str): The issuer entity ID or org identifier
16666
- *
16667
- * Methods:
16668
- * GET: Retrieve a specific issuer
16669
- * PUT: Update a specific issuer
16670
- * DELETE: Delete a specific issuer
16671
- *
16672
- * PUT Request Body:
16673
- * A JSON object containing issuer details to update:
16674
- * - name (str, optional): Issuer name
16675
- * - iconImage (str, optional): URL to issuer icon
16676
- * - email (str, optional): Contact email for the issuer
16677
- * - url (str, optional): Website URL for the issuer
16678
- * - allowed_template_tags (array, optional): List of allowed template tags
16679
- *
16680
- * Returns:
16681
- * GET: A JSON response containing the issuer details:
16682
- * [
16683
- * {
16684
- * "name": "Example University",
16685
- * "org": "example-university",
16686
- * "entityId": "abc123",
16687
- * "signatories": [...],
16688
- * "url": "https://example.com",
16689
- * "iconImage": "https://example.com/logo.png",
16690
- * "allowed_template_tags": [...]
16691
- * }
16692
- * ]
16693
- *
16694
- * PUT: A JSON response containing the updated issuer details:
16695
- * [
16696
- * {
16697
- * "name": "Example University",
16698
- * "org": "example-university",
16699
- * "entityId": "abc123",
16700
- * "signatories": [...],
16701
- * "url": "https://example.com",
16702
- * "iconImage": "https://example.com/new-logo.png",
16703
- * "allowed_template_tags": [...]
16704
- * }
16705
- * ]
16706
- *
16707
- * DELETE: A JSON response indicating success:
16708
- * {
16709
- * "status": {"success": true, "description": "Deleted"}
16710
- * }
16711
- *
16712
- * Error Responses:
16713
- * 400 Bad Request: If the request data is invalid
16714
- * 401 Unauthorized: If the user is not authenticated
16715
- * 403 Forbidden: If the user does not have permission to access this resource
16716
- * 404 Not Found: If the issuer doesn't exist
16717
- * 500 Internal Server Error: If an unexpected error occurs
16718
- *
16719
- * Access Control:
16720
- * - Requires IsAdminUserOrStudentDRFMixin
16721
- * - Only authenticated users with appropriate permissions can manage issuers
16722
- * @returns Issuer
16723
- * @throws ApiError
16724
- */
16725
- static credentialsOrgsUsersIssuersRetrieve2({
17290
+ * @returns Issuer
17291
+ * @throws ApiError
17292
+ */
17293
+ static credentialsOrgsUsersIssuersRetrieve4({
16726
17294
  entityId,
16727
17295
  platformKey,
16728
17296
  username
@@ -16738,75 +17306,10 @@
16738
17306
  });
16739
17307
  }
16740
17308
  /**
16741
- * API View for managing individual issuers.
16742
- *
16743
- * This endpoint allows retrieving, updating, and deleting specific issuers
16744
- * identified by their entity_id or org identifier.
16745
- *
16746
- * Path Parameters:
16747
- * org (str): The organization/tenant identifier
16748
- * user_id (str): The user ID making the request
16749
- * entity_id (str): The issuer entity ID or org identifier
16750
- *
16751
- * Methods:
16752
- * GET: Retrieve a specific issuer
16753
- * PUT: Update a specific issuer
16754
- * DELETE: Delete a specific issuer
16755
- *
16756
- * PUT Request Body:
16757
- * A JSON object containing issuer details to update:
16758
- * - name (str, optional): Issuer name
16759
- * - iconImage (str, optional): URL to issuer icon
16760
- * - email (str, optional): Contact email for the issuer
16761
- * - url (str, optional): Website URL for the issuer
16762
- * - allowed_template_tags (array, optional): List of allowed template tags
16763
- *
16764
- * Returns:
16765
- * GET: A JSON response containing the issuer details:
16766
- * [
16767
- * {
16768
- * "name": "Example University",
16769
- * "org": "example-university",
16770
- * "entityId": "abc123",
16771
- * "signatories": [...],
16772
- * "url": "https://example.com",
16773
- * "iconImage": "https://example.com/logo.png",
16774
- * "allowed_template_tags": [...]
16775
- * }
16776
- * ]
16777
- *
16778
- * PUT: A JSON response containing the updated issuer details:
16779
- * [
16780
- * {
16781
- * "name": "Example University",
16782
- * "org": "example-university",
16783
- * "entityId": "abc123",
16784
- * "signatories": [...],
16785
- * "url": "https://example.com",
16786
- * "iconImage": "https://example.com/new-logo.png",
16787
- * "allowed_template_tags": [...]
16788
- * }
16789
- * ]
16790
- *
16791
- * DELETE: A JSON response indicating success:
16792
- * {
16793
- * "status": {"success": true, "description": "Deleted"}
16794
- * }
16795
- *
16796
- * Error Responses:
16797
- * 400 Bad Request: If the request data is invalid
16798
- * 401 Unauthorized: If the user is not authenticated
16799
- * 403 Forbidden: If the user does not have permission to access this resource
16800
- * 404 Not Found: If the issuer doesn't exist
16801
- * 500 Internal Server Error: If an unexpected error occurs
16802
- *
16803
- * Access Control:
16804
- * - Requires IsAdminUserOrStudentDRFMixin
16805
- * - Only authenticated users with appropriate permissions can manage issuers
16806
- * @returns Issuer
16807
- * @throws ApiError
16808
- */
16809
- static credentialsOrgsUsersIssuersUpdate({
17309
+ * @returns Issuer
17310
+ * @throws ApiError
17311
+ */
17312
+ static credentialsOrgsUsersIssuersUpdate2({
16810
17313
  entityId,
16811
17314
  platformKey,
16812
17315
  username,
@@ -16825,75 +17328,10 @@
16825
17328
  });
16826
17329
  }
16827
17330
  /**
16828
- * API View for managing individual issuers.
16829
- *
16830
- * This endpoint allows retrieving, updating, and deleting specific issuers
16831
- * identified by their entity_id or org identifier.
16832
- *
16833
- * Path Parameters:
16834
- * org (str): The organization/tenant identifier
16835
- * user_id (str): The user ID making the request
16836
- * entity_id (str): The issuer entity ID or org identifier
16837
- *
16838
- * Methods:
16839
- * GET: Retrieve a specific issuer
16840
- * PUT: Update a specific issuer
16841
- * DELETE: Delete a specific issuer
16842
- *
16843
- * PUT Request Body:
16844
- * A JSON object containing issuer details to update:
16845
- * - name (str, optional): Issuer name
16846
- * - iconImage (str, optional): URL to issuer icon
16847
- * - email (str, optional): Contact email for the issuer
16848
- * - url (str, optional): Website URL for the issuer
16849
- * - allowed_template_tags (array, optional): List of allowed template tags
16850
- *
16851
- * Returns:
16852
- * GET: A JSON response containing the issuer details:
16853
- * [
16854
- * {
16855
- * "name": "Example University",
16856
- * "org": "example-university",
16857
- * "entityId": "abc123",
16858
- * "signatories": [...],
16859
- * "url": "https://example.com",
16860
- * "iconImage": "https://example.com/logo.png",
16861
- * "allowed_template_tags": [...]
16862
- * }
16863
- * ]
16864
- *
16865
- * PUT: A JSON response containing the updated issuer details:
16866
- * [
16867
- * {
16868
- * "name": "Example University",
16869
- * "org": "example-university",
16870
- * "entityId": "abc123",
16871
- * "signatories": [...],
16872
- * "url": "https://example.com",
16873
- * "iconImage": "https://example.com/new-logo.png",
16874
- * "allowed_template_tags": [...]
16875
- * }
16876
- * ]
16877
- *
16878
- * DELETE: A JSON response indicating success:
16879
- * {
16880
- * "status": {"success": true, "description": "Deleted"}
16881
- * }
16882
- *
16883
- * Error Responses:
16884
- * 400 Bad Request: If the request data is invalid
16885
- * 401 Unauthorized: If the user is not authenticated
16886
- * 403 Forbidden: If the user does not have permission to access this resource
16887
- * 404 Not Found: If the issuer doesn't exist
16888
- * 500 Internal Server Error: If an unexpected error occurs
16889
- *
16890
- * Access Control:
16891
- * - Requires IsAdminUserOrStudentDRFMixin
16892
- * - Only authenticated users with appropriate permissions can manage issuers
16893
- * @returns void
16894
- * @throws ApiError
16895
- */
16896
- static credentialsOrgsUsersIssuersDestroy({
17331
+ * @returns void
17332
+ * @throws ApiError
17333
+ */
17334
+ static credentialsOrgsUsersIssuersDestroy2({
16897
17335
  entityId,
16898
17336
  platformKey,
16899
17337
  username
@@ -16909,51 +17347,10 @@
16909
17347
  });
16910
17348
  }
16911
17349
  /**
16912
- * API View for managing issuer authorities (signatories).
16913
- *
16914
- * This endpoint allows creating authorities/signatories that can be associated
16915
- * with issuers or specific credentials.
16916
- *
16917
- * Path Parameters:
16918
- * org (str): The organization/tenant identifier
16919
- * user_id (str): The user ID making the request
16920
- *
16921
- * Methods:
16922
- * POST: Create a new issuer authority
16923
- *
16924
- * POST Request Body:
16925
- * A JSON object containing authority details:
16926
- * - name (str, required): Name of the signatory
16927
- * - title (str, required): Title of the signatory
16928
- * - signature (str, required): URL to the signature image
16929
- * - org (str, optional): Organization identifier to associate with an issuer
16930
- * - entityId (str, optional): Issuer entity ID to associate with
16931
- * - credential (str, optional): Credential entity ID to associate with
16932
- *
16933
- * Returns:
16934
- * POST: A JSON response containing the created authority:
16935
- * {
16936
- * "data": {
16937
- * "name": "John Smith",
16938
- * "title": "President",
16939
- * "signature": "https://example.com/signatures/john-smith.png"
16940
- * }
16941
- * }
16942
- *
16943
- * Error Responses:
16944
- * 400 Bad Request: If the request data is invalid or missing required fields
16945
- * 401 Unauthorized: If the user is not authenticated
16946
- * 403 Forbidden: If the user does not have permission to access this resource
16947
- * 404 Not Found: If the issuer or credential doesn't exist
16948
- * 500 Internal Server Error: If an unexpected error occurs
16949
- *
16950
- * Access Control:
16951
- * - Requires IsAdminUserOrStudentDRFMixin
16952
- * - Only authenticated users with appropriate permissions can manage authorities
16953
- * @returns IssuerAuthority
16954
- * @throws ApiError
16955
- */
16956
- static credentialsOrgsUsersIssuersAuthorityCreate({
17350
+ * @returns IssuerAuthority
17351
+ * @throws ApiError
17352
+ */
17353
+ static credentialsOrgsUsersIssuersAuthorityCreate2({
16957
17354
  platformKey,
16958
17355
  username,
16959
17356
  requestBody
@@ -16981,7 +17378,7 @@
16981
17378
  * @returns CredentialProviderConfig
16982
17379
  * @throws ApiError
16983
17380
  */
16984
- static credentialsOrgsUsersProviderConfigRetrieve({
17381
+ static credentialsOrgsUsersProviderConfigRetrieve2({
16985
17382
  platformKey,
16986
17383
  username
16987
17384
  }) {
@@ -17013,7 +17410,7 @@
17013
17410
  * @returns CredentialProviderConfig
17014
17411
  * @throws ApiError
17015
17412
  */
17016
- static credentialsOrgsUsersProviderConfigCreate({
17413
+ static credentialsOrgsUsersProviderConfigCreate2({
17017
17414
  platformKey,
17018
17415
  username,
17019
17416
  requestBody
@@ -17039,7 +17436,7 @@
17039
17436
  * @returns void
17040
17437
  * @throws ApiError
17041
17438
  */
17042
- static credentialsOrgsUsersProviderConfigDestroy({
17439
+ static credentialsOrgsUsersProviderConfigDestroy2({
17043
17440
  platformKey,
17044
17441
  username
17045
17442
  }) {