@iblai/iblai-api 4.295.0-core → 4.296.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.
- package/dist/index.cjs.js +96 -19
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +97 -20
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +96 -19
- package/dist/index.umd.js.map +1 -1
- package/dist/types/index.d.ts +10 -1
- package/dist/types/models/PaginatedPlatformApiKeyList.d.ts +7 -0
- package/dist/types/models/PatchedPlatformApiKey.d.ts +54 -0
- package/dist/types/models/PlatformApiKey.d.ts +25 -1
- package/dist/types/models/PlatformApiKeyModeEnum.d.ts +8 -0
- package/dist/types/models/PlatformApiTokenFieldPermissions.d.ts +12 -0
- package/dist/types/models/PlatformApiToken_groups_to_add_Permission.d.ts +3 -0
- package/dist/types/models/PlatformApiToken_groups_to_remove_Permission.d.ts +3 -0
- package/dist/types/models/PlatformApiToken_mode_Permission.d.ts +3 -0
- package/dist/types/models/PlatformApiToken_policies_to_add_Permission.d.ts +3 -0
- package/dist/types/models/PlatformApiToken_policies_to_remove_Permission.d.ts +3 -0
- package/dist/types/models/StripeCheckoutSessionRequest.d.ts +2 -2
- package/dist/types/models/{ModeEnum.d.ts → StripeCheckoutSessionRequestModeEnum.d.ts} +1 -1
- package/dist/types/services/CoreService.d.ts +50 -3
- package/package.json +1 -1
- package/sdk_schema.yml +302 -16
- package/src/core/OpenAPI.ts +1 -1
- package/src/index.ts +10 -1
- package/src/models/PaginatedPlatformApiKeyList.ts +12 -0
- package/src/models/PatchedPlatformApiKey.ts +59 -0
- package/src/models/PlatformApiKey.ts +25 -1
- package/src/models/PlatformApiKeyModeEnum.ts +12 -0
- package/src/models/PlatformApiTokenFieldPermissions.ts +17 -0
- package/src/models/PlatformApiToken_groups_to_add_Permission.ts +8 -0
- package/src/models/PlatformApiToken_groups_to_remove_Permission.ts +8 -0
- package/src/models/PlatformApiToken_mode_Permission.ts +8 -0
- package/src/models/PlatformApiToken_policies_to_add_Permission.ts +8 -0
- package/src/models/PlatformApiToken_policies_to_remove_Permission.ts +8 -0
- package/src/models/StripeCheckoutSessionRequest.ts +2 -2
- package/src/models/{ModeEnum.ts → StripeCheckoutSessionRequestModeEnum.ts} +1 -1
- package/src/services/CoreService.ts +94 -2
|
@@ -15,6 +15,7 @@ import type { LtiKey } from '../models/LtiKey';
|
|
|
15
15
|
import type { LtiMentor } from '../models/LtiMentor';
|
|
16
16
|
import type { LtiTool } from '../models/LtiTool';
|
|
17
17
|
import type { MentorPolicy } from '../models/MentorPolicy';
|
|
18
|
+
import type { PaginatedPlatformApiKeyList } from '../models/PaginatedPlatformApiKeyList';
|
|
18
19
|
import type { PaginatedRbacGroupList } from '../models/PaginatedRbacGroupList';
|
|
19
20
|
import type { PaginatedRbacPolicyList } from '../models/PaginatedRbacPolicyList';
|
|
20
21
|
import type { PaginatedRbacRoleList } from '../models/PaginatedRbacRoleList';
|
|
@@ -23,6 +24,7 @@ import type { PaginatedWatchedGroupListList } from '../models/PaginatedWatchedGr
|
|
|
23
24
|
import type { PaginatedWatchedUserReadList } from '../models/PaginatedWatchedUserReadList';
|
|
24
25
|
import type { PaginatedWatcherReadList } from '../models/PaginatedWatcherReadList';
|
|
25
26
|
import type { PatchedDemographicsFieldDefinitionWrite } from '../models/PatchedDemographicsFieldDefinitionWrite';
|
|
27
|
+
import type { PatchedPlatformApiKey } from '../models/PatchedPlatformApiKey';
|
|
26
28
|
import type { PatchedPlatformPublicImageAsset } from '../models/PatchedPlatformPublicImageAsset';
|
|
27
29
|
import type { PatchedPlatformPublicMetadata } from '../models/PatchedPlatformPublicMetadata';
|
|
28
30
|
import type { PatchedRbacGroup } from '../models/PatchedRbacGroup';
|
|
@@ -34,6 +36,7 @@ import type { PatchedWatchedGroupUpdate } from '../models/PatchedWatchedGroupUpd
|
|
|
34
36
|
import type { PatchedWatcherUpdate } from '../models/PatchedWatcherUpdate';
|
|
35
37
|
import type { PermissionCheckRequest } from '../models/PermissionCheckRequest';
|
|
36
38
|
import type { PlatformApiKey } from '../models/PlatformApiKey';
|
|
39
|
+
import type { PlatformApiTokenFieldPermissions } from '../models/PlatformApiTokenFieldPermissions';
|
|
37
40
|
import type { PlatformConfigurationList } from '../models/PlatformConfigurationList';
|
|
38
41
|
import type { PlatformConfigurationSet } from '../models/PlatformConfigurationSet';
|
|
39
42
|
import type { PlatformConfigurationSetResponse } from '../models/PlatformConfigurationSetResponse';
|
|
@@ -1059,21 +1062,33 @@ export class CoreService {
|
|
|
1059
1062
|
}
|
|
1060
1063
|
/**
|
|
1061
1064
|
* List Platform API Key's belonging to the target platform
|
|
1062
|
-
* @returns
|
|
1065
|
+
* @returns PaginatedPlatformApiKeyList
|
|
1063
1066
|
* @throws ApiError
|
|
1064
1067
|
*/
|
|
1065
1068
|
public static corePlatformApiTokensList({
|
|
1066
1069
|
platformKey,
|
|
1070
|
+
page,
|
|
1071
|
+
pageSize,
|
|
1067
1072
|
}: {
|
|
1068
1073
|
/**
|
|
1069
1074
|
* Platform key of target platform
|
|
1070
1075
|
*/
|
|
1071
1076
|
platformKey: string,
|
|
1072
|
-
|
|
1077
|
+
/**
|
|
1078
|
+
* A page number within the paginated result set.
|
|
1079
|
+
*/
|
|
1080
|
+
page?: number,
|
|
1081
|
+
/**
|
|
1082
|
+
* Number of results to return per page.
|
|
1083
|
+
*/
|
|
1084
|
+
pageSize?: number,
|
|
1085
|
+
}): CancelablePromise<PaginatedPlatformApiKeyList> {
|
|
1073
1086
|
return __request(OpenAPI, {
|
|
1074
1087
|
method: 'GET',
|
|
1075
1088
|
url: '/api/core/platform/api-tokens/',
|
|
1076
1089
|
query: {
|
|
1090
|
+
'page': page,
|
|
1091
|
+
'page_size': pageSize,
|
|
1077
1092
|
'platform_key': platformKey,
|
|
1078
1093
|
},
|
|
1079
1094
|
});
|
|
@@ -1095,6 +1110,62 @@ export class CoreService {
|
|
|
1095
1110
|
mediaType: 'application/json',
|
|
1096
1111
|
});
|
|
1097
1112
|
}
|
|
1113
|
+
/**
|
|
1114
|
+
* Retrieve a single Platform Api Key by name, including the policies and groups currently associated with it
|
|
1115
|
+
* @returns PlatformApiKey
|
|
1116
|
+
* @throws ApiError
|
|
1117
|
+
*/
|
|
1118
|
+
public static corePlatformApiTokensRetrieve({
|
|
1119
|
+
name,
|
|
1120
|
+
platformKey,
|
|
1121
|
+
}: {
|
|
1122
|
+
name: string,
|
|
1123
|
+
/**
|
|
1124
|
+
* Platform key of target platform
|
|
1125
|
+
*/
|
|
1126
|
+
platformKey: string,
|
|
1127
|
+
}): CancelablePromise<PlatformApiKey> {
|
|
1128
|
+
return __request(OpenAPI, {
|
|
1129
|
+
method: 'GET',
|
|
1130
|
+
url: '/api/core/platform/api-tokens/{name}',
|
|
1131
|
+
path: {
|
|
1132
|
+
'name': name,
|
|
1133
|
+
},
|
|
1134
|
+
query: {
|
|
1135
|
+
'platform_key': platformKey,
|
|
1136
|
+
},
|
|
1137
|
+
});
|
|
1138
|
+
}
|
|
1139
|
+
/**
|
|
1140
|
+
* Update a Platform Api Key's mode and associated policies/groups in the target platform
|
|
1141
|
+
* @returns PlatformApiKey
|
|
1142
|
+
* @throws ApiError
|
|
1143
|
+
*/
|
|
1144
|
+
public static corePlatformApiTokensPartialUpdate({
|
|
1145
|
+
name,
|
|
1146
|
+
platformKey,
|
|
1147
|
+
requestBody,
|
|
1148
|
+
}: {
|
|
1149
|
+
name: string,
|
|
1150
|
+
/**
|
|
1151
|
+
* Platform key of target platform
|
|
1152
|
+
*/
|
|
1153
|
+
platformKey: string,
|
|
1154
|
+
requestBody?: PatchedPlatformApiKey,
|
|
1155
|
+
}): CancelablePromise<PlatformApiKey> {
|
|
1156
|
+
return __request(OpenAPI, {
|
|
1157
|
+
method: 'PATCH',
|
|
1158
|
+
url: '/api/core/platform/api-tokens/{name}',
|
|
1159
|
+
path: {
|
|
1160
|
+
'name': name,
|
|
1161
|
+
},
|
|
1162
|
+
query: {
|
|
1163
|
+
'platform_key': platformKey,
|
|
1164
|
+
},
|
|
1165
|
+
body: requestBody,
|
|
1166
|
+
mediaType: 'application/json',
|
|
1167
|
+
});
|
|
1168
|
+
}
|
|
1098
1169
|
/**
|
|
1099
1170
|
* Delete Platform Api Key by name in the target platform
|
|
1100
1171
|
* @returns void
|
|
@@ -1121,6 +1192,27 @@ export class CoreService {
|
|
|
1121
1192
|
},
|
|
1122
1193
|
});
|
|
1123
1194
|
}
|
|
1195
|
+
/**
|
|
1196
|
+
* Per-field write permissions for the create form, as {field: {"write": bool}}. Gated on create access like the create endpoint.
|
|
1197
|
+
* @returns PlatformApiTokenFieldPermissions
|
|
1198
|
+
* @throws ApiError
|
|
1199
|
+
*/
|
|
1200
|
+
public static corePlatformApiTokensFieldPermissionsRetrieve({
|
|
1201
|
+
platformKey,
|
|
1202
|
+
}: {
|
|
1203
|
+
/**
|
|
1204
|
+
* Platform key of target platform
|
|
1205
|
+
*/
|
|
1206
|
+
platformKey: string,
|
|
1207
|
+
}): CancelablePromise<PlatformApiTokenFieldPermissions> {
|
|
1208
|
+
return __request(OpenAPI, {
|
|
1209
|
+
method: 'GET',
|
|
1210
|
+
url: '/api/core/platform/api-tokens/field-permissions/',
|
|
1211
|
+
query: {
|
|
1212
|
+
'platform_key': platformKey,
|
|
1213
|
+
},
|
|
1214
|
+
});
|
|
1215
|
+
}
|
|
1124
1216
|
/**
|
|
1125
1217
|
* GET /site
|
|
1126
1218
|
* Get site settings.
|