@iblai/iblai-api 4.443.0-core → 4.444.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 +299 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +298 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +299 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/types/index.d.ts +2 -0
- package/dist/types/services/V1LmsService.d.ts +88 -0
- package/dist/types/services/V1StudioService.d.ts +88 -0
- package/package.json +1 -1
- package/sdk_schema.yml +443 -1
- package/src/core/OpenAPI.ts +1 -1
- package/src/index.ts +2 -0
- package/src/services/V1LmsService.ts +204 -0
- package/src/services/V1StudioService.ts +204 -0
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
6
|
+
import { OpenAPI } from '../core/OpenAPI';
|
|
7
|
+
import { request as __request } from '../core/request';
|
|
8
|
+
export class V1LmsService {
|
|
9
|
+
/**
|
|
10
|
+
* Call edX as a user
|
|
11
|
+
* Forwards the request to the LMS (`/v1/lms/...`) or Studio (`/v1/studio/...`) at `edx_path`, authenticated with an edX JWT minted for the acting user: the caller, or for a service account the `iblai-user` member of the `iblai-org` platform. Paths are governed by EdxProxyRule, and any org, course/usage/library key or user the request names must belong to that platform.
|
|
12
|
+
* @returns any edX's response, passed through.
|
|
13
|
+
* @throws ApiError
|
|
14
|
+
*/
|
|
15
|
+
public static v1LmsRetrieve({
|
|
16
|
+
edxPath,
|
|
17
|
+
iblaiOrg,
|
|
18
|
+
iblaiUser,
|
|
19
|
+
}: {
|
|
20
|
+
edxPath: string,
|
|
21
|
+
/**
|
|
22
|
+
* Platform key. Required for service accounts. Other callers are scoped to their token's platform and get 403 if this names another.
|
|
23
|
+
*/
|
|
24
|
+
iblaiOrg?: string,
|
|
25
|
+
/**
|
|
26
|
+
* Username to call edX as. Required for service accounts. Other callers always act as themselves and get 403 if this names another user.
|
|
27
|
+
*/
|
|
28
|
+
iblaiUser?: string,
|
|
29
|
+
}): CancelablePromise<any> {
|
|
30
|
+
return __request(OpenAPI, {
|
|
31
|
+
method: 'GET',
|
|
32
|
+
url: '/v1/lms/{edx_path}',
|
|
33
|
+
path: {
|
|
34
|
+
'edx_path': edxPath,
|
|
35
|
+
},
|
|
36
|
+
headers: {
|
|
37
|
+
'iblai-org': iblaiOrg,
|
|
38
|
+
'iblai-user': iblaiUser,
|
|
39
|
+
},
|
|
40
|
+
errors: {
|
|
41
|
+
400: `A service account omitted a header.`,
|
|
42
|
+
403: `Path not allowed, the request names another platform or a user who is not an active member of it (including inside an uploaded text file), iblai-org / iblai-user does not match the token, the caller is not an active member of the platform, or the caller is a platform API key.`,
|
|
43
|
+
404: `Service account: platform or platform member not found.`,
|
|
44
|
+
502: `edX unreachable or no JWT issued.`,
|
|
45
|
+
},
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Call edX as a user
|
|
50
|
+
* Forwards the request to the LMS (`/v1/lms/...`) or Studio (`/v1/studio/...`) at `edx_path`, authenticated with an edX JWT minted for the acting user: the caller, or for a service account the `iblai-user` member of the `iblai-org` platform. Paths are governed by EdxProxyRule, and any org, course/usage/library key or user the request names must belong to that platform.
|
|
51
|
+
* @returns any edX's response, passed through.
|
|
52
|
+
* @throws ApiError
|
|
53
|
+
*/
|
|
54
|
+
public static v1LmsCreate({
|
|
55
|
+
edxPath,
|
|
56
|
+
iblaiOrg,
|
|
57
|
+
iblaiUser,
|
|
58
|
+
}: {
|
|
59
|
+
edxPath: string,
|
|
60
|
+
/**
|
|
61
|
+
* Platform key. Required for service accounts. Other callers are scoped to their token's platform and get 403 if this names another.
|
|
62
|
+
*/
|
|
63
|
+
iblaiOrg?: string,
|
|
64
|
+
/**
|
|
65
|
+
* Username to call edX as. Required for service accounts. Other callers always act as themselves and get 403 if this names another user.
|
|
66
|
+
*/
|
|
67
|
+
iblaiUser?: string,
|
|
68
|
+
}): CancelablePromise<any> {
|
|
69
|
+
return __request(OpenAPI, {
|
|
70
|
+
method: 'POST',
|
|
71
|
+
url: '/v1/lms/{edx_path}',
|
|
72
|
+
path: {
|
|
73
|
+
'edx_path': edxPath,
|
|
74
|
+
},
|
|
75
|
+
headers: {
|
|
76
|
+
'iblai-org': iblaiOrg,
|
|
77
|
+
'iblai-user': iblaiUser,
|
|
78
|
+
},
|
|
79
|
+
errors: {
|
|
80
|
+
400: `A service account omitted a header.`,
|
|
81
|
+
403: `Path not allowed, the request names another platform or a user who is not an active member of it (including inside an uploaded text file), iblai-org / iblai-user does not match the token, the caller is not an active member of the platform, or the caller is a platform API key.`,
|
|
82
|
+
404: `Service account: platform or platform member not found.`,
|
|
83
|
+
502: `edX unreachable or no JWT issued.`,
|
|
84
|
+
},
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Call edX as a user
|
|
89
|
+
* Forwards the request to the LMS (`/v1/lms/...`) or Studio (`/v1/studio/...`) at `edx_path`, authenticated with an edX JWT minted for the acting user: the caller, or for a service account the `iblai-user` member of the `iblai-org` platform. Paths are governed by EdxProxyRule, and any org, course/usage/library key or user the request names must belong to that platform.
|
|
90
|
+
* @returns any edX's response, passed through.
|
|
91
|
+
* @throws ApiError
|
|
92
|
+
*/
|
|
93
|
+
public static v1LmsUpdate({
|
|
94
|
+
edxPath,
|
|
95
|
+
iblaiOrg,
|
|
96
|
+
iblaiUser,
|
|
97
|
+
}: {
|
|
98
|
+
edxPath: string,
|
|
99
|
+
/**
|
|
100
|
+
* Platform key. Required for service accounts. Other callers are scoped to their token's platform and get 403 if this names another.
|
|
101
|
+
*/
|
|
102
|
+
iblaiOrg?: string,
|
|
103
|
+
/**
|
|
104
|
+
* Username to call edX as. Required for service accounts. Other callers always act as themselves and get 403 if this names another user.
|
|
105
|
+
*/
|
|
106
|
+
iblaiUser?: string,
|
|
107
|
+
}): CancelablePromise<any> {
|
|
108
|
+
return __request(OpenAPI, {
|
|
109
|
+
method: 'PUT',
|
|
110
|
+
url: '/v1/lms/{edx_path}',
|
|
111
|
+
path: {
|
|
112
|
+
'edx_path': edxPath,
|
|
113
|
+
},
|
|
114
|
+
headers: {
|
|
115
|
+
'iblai-org': iblaiOrg,
|
|
116
|
+
'iblai-user': iblaiUser,
|
|
117
|
+
},
|
|
118
|
+
errors: {
|
|
119
|
+
400: `A service account omitted a header.`,
|
|
120
|
+
403: `Path not allowed, the request names another platform or a user who is not an active member of it (including inside an uploaded text file), iblai-org / iblai-user does not match the token, the caller is not an active member of the platform, or the caller is a platform API key.`,
|
|
121
|
+
404: `Service account: platform or platform member not found.`,
|
|
122
|
+
502: `edX unreachable or no JWT issued.`,
|
|
123
|
+
},
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* Call edX as a user
|
|
128
|
+
* Forwards the request to the LMS (`/v1/lms/...`) or Studio (`/v1/studio/...`) at `edx_path`, authenticated with an edX JWT minted for the acting user: the caller, or for a service account the `iblai-user` member of the `iblai-org` platform. Paths are governed by EdxProxyRule, and any org, course/usage/library key or user the request names must belong to that platform.
|
|
129
|
+
* @returns any edX's response, passed through.
|
|
130
|
+
* @throws ApiError
|
|
131
|
+
*/
|
|
132
|
+
public static v1LmsPartialUpdate({
|
|
133
|
+
edxPath,
|
|
134
|
+
iblaiOrg,
|
|
135
|
+
iblaiUser,
|
|
136
|
+
}: {
|
|
137
|
+
edxPath: string,
|
|
138
|
+
/**
|
|
139
|
+
* Platform key. Required for service accounts. Other callers are scoped to their token's platform and get 403 if this names another.
|
|
140
|
+
*/
|
|
141
|
+
iblaiOrg?: string,
|
|
142
|
+
/**
|
|
143
|
+
* Username to call edX as. Required for service accounts. Other callers always act as themselves and get 403 if this names another user.
|
|
144
|
+
*/
|
|
145
|
+
iblaiUser?: string,
|
|
146
|
+
}): CancelablePromise<any> {
|
|
147
|
+
return __request(OpenAPI, {
|
|
148
|
+
method: 'PATCH',
|
|
149
|
+
url: '/v1/lms/{edx_path}',
|
|
150
|
+
path: {
|
|
151
|
+
'edx_path': edxPath,
|
|
152
|
+
},
|
|
153
|
+
headers: {
|
|
154
|
+
'iblai-org': iblaiOrg,
|
|
155
|
+
'iblai-user': iblaiUser,
|
|
156
|
+
},
|
|
157
|
+
errors: {
|
|
158
|
+
400: `A service account omitted a header.`,
|
|
159
|
+
403: `Path not allowed, the request names another platform or a user who is not an active member of it (including inside an uploaded text file), iblai-org / iblai-user does not match the token, the caller is not an active member of the platform, or the caller is a platform API key.`,
|
|
160
|
+
404: `Service account: platform or platform member not found.`,
|
|
161
|
+
502: `edX unreachable or no JWT issued.`,
|
|
162
|
+
},
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* Call edX as a user
|
|
167
|
+
* Forwards the request to the LMS (`/v1/lms/...`) or Studio (`/v1/studio/...`) at `edx_path`, authenticated with an edX JWT minted for the acting user: the caller, or for a service account the `iblai-user` member of the `iblai-org` platform. Paths are governed by EdxProxyRule, and any org, course/usage/library key or user the request names must belong to that platform.
|
|
168
|
+
* @returns any edX's response, passed through.
|
|
169
|
+
* @throws ApiError
|
|
170
|
+
*/
|
|
171
|
+
public static v1LmsDestroy({
|
|
172
|
+
edxPath,
|
|
173
|
+
iblaiOrg,
|
|
174
|
+
iblaiUser,
|
|
175
|
+
}: {
|
|
176
|
+
edxPath: string,
|
|
177
|
+
/**
|
|
178
|
+
* Platform key. Required for service accounts. Other callers are scoped to their token's platform and get 403 if this names another.
|
|
179
|
+
*/
|
|
180
|
+
iblaiOrg?: string,
|
|
181
|
+
/**
|
|
182
|
+
* Username to call edX as. Required for service accounts. Other callers always act as themselves and get 403 if this names another user.
|
|
183
|
+
*/
|
|
184
|
+
iblaiUser?: string,
|
|
185
|
+
}): CancelablePromise<any> {
|
|
186
|
+
return __request(OpenAPI, {
|
|
187
|
+
method: 'DELETE',
|
|
188
|
+
url: '/v1/lms/{edx_path}',
|
|
189
|
+
path: {
|
|
190
|
+
'edx_path': edxPath,
|
|
191
|
+
},
|
|
192
|
+
headers: {
|
|
193
|
+
'iblai-org': iblaiOrg,
|
|
194
|
+
'iblai-user': iblaiUser,
|
|
195
|
+
},
|
|
196
|
+
errors: {
|
|
197
|
+
400: `A service account omitted a header.`,
|
|
198
|
+
403: `Path not allowed, the request names another platform or a user who is not an active member of it (including inside an uploaded text file), iblai-org / iblai-user does not match the token, the caller is not an active member of the platform, or the caller is a platform API key.`,
|
|
199
|
+
404: `Service account: platform or platform member not found.`,
|
|
200
|
+
502: `edX unreachable or no JWT issued.`,
|
|
201
|
+
},
|
|
202
|
+
});
|
|
203
|
+
}
|
|
204
|
+
}
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
6
|
+
import { OpenAPI } from '../core/OpenAPI';
|
|
7
|
+
import { request as __request } from '../core/request';
|
|
8
|
+
export class V1StudioService {
|
|
9
|
+
/**
|
|
10
|
+
* Call edX as a user
|
|
11
|
+
* Forwards the request to the LMS (`/v1/lms/...`) or Studio (`/v1/studio/...`) at `edx_path`, authenticated with an edX JWT minted for the acting user: the caller, or for a service account the `iblai-user` member of the `iblai-org` platform. Paths are governed by EdxProxyRule, and any org, course/usage/library key or user the request names must belong to that platform.
|
|
12
|
+
* @returns any edX's response, passed through.
|
|
13
|
+
* @throws ApiError
|
|
14
|
+
*/
|
|
15
|
+
public static v1StudioRetrieve({
|
|
16
|
+
edxPath,
|
|
17
|
+
iblaiOrg,
|
|
18
|
+
iblaiUser,
|
|
19
|
+
}: {
|
|
20
|
+
edxPath: string,
|
|
21
|
+
/**
|
|
22
|
+
* Platform key. Required for service accounts. Other callers are scoped to their token's platform and get 403 if this names another.
|
|
23
|
+
*/
|
|
24
|
+
iblaiOrg?: string,
|
|
25
|
+
/**
|
|
26
|
+
* Username to call edX as. Required for service accounts. Other callers always act as themselves and get 403 if this names another user.
|
|
27
|
+
*/
|
|
28
|
+
iblaiUser?: string,
|
|
29
|
+
}): CancelablePromise<any> {
|
|
30
|
+
return __request(OpenAPI, {
|
|
31
|
+
method: 'GET',
|
|
32
|
+
url: '/v1/studio/{edx_path}',
|
|
33
|
+
path: {
|
|
34
|
+
'edx_path': edxPath,
|
|
35
|
+
},
|
|
36
|
+
headers: {
|
|
37
|
+
'iblai-org': iblaiOrg,
|
|
38
|
+
'iblai-user': iblaiUser,
|
|
39
|
+
},
|
|
40
|
+
errors: {
|
|
41
|
+
400: `A service account omitted a header.`,
|
|
42
|
+
403: `Path not allowed, the request names another platform or a user who is not an active member of it (including inside an uploaded text file), iblai-org / iblai-user does not match the token, the caller is not an active member of the platform, or the caller is a platform API key.`,
|
|
43
|
+
404: `Service account: platform or platform member not found.`,
|
|
44
|
+
502: `edX unreachable or no JWT issued.`,
|
|
45
|
+
},
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Call edX as a user
|
|
50
|
+
* Forwards the request to the LMS (`/v1/lms/...`) or Studio (`/v1/studio/...`) at `edx_path`, authenticated with an edX JWT minted for the acting user: the caller, or for a service account the `iblai-user` member of the `iblai-org` platform. Paths are governed by EdxProxyRule, and any org, course/usage/library key or user the request names must belong to that platform.
|
|
51
|
+
* @returns any edX's response, passed through.
|
|
52
|
+
* @throws ApiError
|
|
53
|
+
*/
|
|
54
|
+
public static v1StudioCreate({
|
|
55
|
+
edxPath,
|
|
56
|
+
iblaiOrg,
|
|
57
|
+
iblaiUser,
|
|
58
|
+
}: {
|
|
59
|
+
edxPath: string,
|
|
60
|
+
/**
|
|
61
|
+
* Platform key. Required for service accounts. Other callers are scoped to their token's platform and get 403 if this names another.
|
|
62
|
+
*/
|
|
63
|
+
iblaiOrg?: string,
|
|
64
|
+
/**
|
|
65
|
+
* Username to call edX as. Required for service accounts. Other callers always act as themselves and get 403 if this names another user.
|
|
66
|
+
*/
|
|
67
|
+
iblaiUser?: string,
|
|
68
|
+
}): CancelablePromise<any> {
|
|
69
|
+
return __request(OpenAPI, {
|
|
70
|
+
method: 'POST',
|
|
71
|
+
url: '/v1/studio/{edx_path}',
|
|
72
|
+
path: {
|
|
73
|
+
'edx_path': edxPath,
|
|
74
|
+
},
|
|
75
|
+
headers: {
|
|
76
|
+
'iblai-org': iblaiOrg,
|
|
77
|
+
'iblai-user': iblaiUser,
|
|
78
|
+
},
|
|
79
|
+
errors: {
|
|
80
|
+
400: `A service account omitted a header.`,
|
|
81
|
+
403: `Path not allowed, the request names another platform or a user who is not an active member of it (including inside an uploaded text file), iblai-org / iblai-user does not match the token, the caller is not an active member of the platform, or the caller is a platform API key.`,
|
|
82
|
+
404: `Service account: platform or platform member not found.`,
|
|
83
|
+
502: `edX unreachable or no JWT issued.`,
|
|
84
|
+
},
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Call edX as a user
|
|
89
|
+
* Forwards the request to the LMS (`/v1/lms/...`) or Studio (`/v1/studio/...`) at `edx_path`, authenticated with an edX JWT minted for the acting user: the caller, or for a service account the `iblai-user` member of the `iblai-org` platform. Paths are governed by EdxProxyRule, and any org, course/usage/library key or user the request names must belong to that platform.
|
|
90
|
+
* @returns any edX's response, passed through.
|
|
91
|
+
* @throws ApiError
|
|
92
|
+
*/
|
|
93
|
+
public static v1StudioUpdate({
|
|
94
|
+
edxPath,
|
|
95
|
+
iblaiOrg,
|
|
96
|
+
iblaiUser,
|
|
97
|
+
}: {
|
|
98
|
+
edxPath: string,
|
|
99
|
+
/**
|
|
100
|
+
* Platform key. Required for service accounts. Other callers are scoped to their token's platform and get 403 if this names another.
|
|
101
|
+
*/
|
|
102
|
+
iblaiOrg?: string,
|
|
103
|
+
/**
|
|
104
|
+
* Username to call edX as. Required for service accounts. Other callers always act as themselves and get 403 if this names another user.
|
|
105
|
+
*/
|
|
106
|
+
iblaiUser?: string,
|
|
107
|
+
}): CancelablePromise<any> {
|
|
108
|
+
return __request(OpenAPI, {
|
|
109
|
+
method: 'PUT',
|
|
110
|
+
url: '/v1/studio/{edx_path}',
|
|
111
|
+
path: {
|
|
112
|
+
'edx_path': edxPath,
|
|
113
|
+
},
|
|
114
|
+
headers: {
|
|
115
|
+
'iblai-org': iblaiOrg,
|
|
116
|
+
'iblai-user': iblaiUser,
|
|
117
|
+
},
|
|
118
|
+
errors: {
|
|
119
|
+
400: `A service account omitted a header.`,
|
|
120
|
+
403: `Path not allowed, the request names another platform or a user who is not an active member of it (including inside an uploaded text file), iblai-org / iblai-user does not match the token, the caller is not an active member of the platform, or the caller is a platform API key.`,
|
|
121
|
+
404: `Service account: platform or platform member not found.`,
|
|
122
|
+
502: `edX unreachable or no JWT issued.`,
|
|
123
|
+
},
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* Call edX as a user
|
|
128
|
+
* Forwards the request to the LMS (`/v1/lms/...`) or Studio (`/v1/studio/...`) at `edx_path`, authenticated with an edX JWT minted for the acting user: the caller, or for a service account the `iblai-user` member of the `iblai-org` platform. Paths are governed by EdxProxyRule, and any org, course/usage/library key or user the request names must belong to that platform.
|
|
129
|
+
* @returns any edX's response, passed through.
|
|
130
|
+
* @throws ApiError
|
|
131
|
+
*/
|
|
132
|
+
public static v1StudioPartialUpdate({
|
|
133
|
+
edxPath,
|
|
134
|
+
iblaiOrg,
|
|
135
|
+
iblaiUser,
|
|
136
|
+
}: {
|
|
137
|
+
edxPath: string,
|
|
138
|
+
/**
|
|
139
|
+
* Platform key. Required for service accounts. Other callers are scoped to their token's platform and get 403 if this names another.
|
|
140
|
+
*/
|
|
141
|
+
iblaiOrg?: string,
|
|
142
|
+
/**
|
|
143
|
+
* Username to call edX as. Required for service accounts. Other callers always act as themselves and get 403 if this names another user.
|
|
144
|
+
*/
|
|
145
|
+
iblaiUser?: string,
|
|
146
|
+
}): CancelablePromise<any> {
|
|
147
|
+
return __request(OpenAPI, {
|
|
148
|
+
method: 'PATCH',
|
|
149
|
+
url: '/v1/studio/{edx_path}',
|
|
150
|
+
path: {
|
|
151
|
+
'edx_path': edxPath,
|
|
152
|
+
},
|
|
153
|
+
headers: {
|
|
154
|
+
'iblai-org': iblaiOrg,
|
|
155
|
+
'iblai-user': iblaiUser,
|
|
156
|
+
},
|
|
157
|
+
errors: {
|
|
158
|
+
400: `A service account omitted a header.`,
|
|
159
|
+
403: `Path not allowed, the request names another platform or a user who is not an active member of it (including inside an uploaded text file), iblai-org / iblai-user does not match the token, the caller is not an active member of the platform, or the caller is a platform API key.`,
|
|
160
|
+
404: `Service account: platform or platform member not found.`,
|
|
161
|
+
502: `edX unreachable or no JWT issued.`,
|
|
162
|
+
},
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* Call edX as a user
|
|
167
|
+
* Forwards the request to the LMS (`/v1/lms/...`) or Studio (`/v1/studio/...`) at `edx_path`, authenticated with an edX JWT minted for the acting user: the caller, or for a service account the `iblai-user` member of the `iblai-org` platform. Paths are governed by EdxProxyRule, and any org, course/usage/library key or user the request names must belong to that platform.
|
|
168
|
+
* @returns any edX's response, passed through.
|
|
169
|
+
* @throws ApiError
|
|
170
|
+
*/
|
|
171
|
+
public static v1StudioDestroy({
|
|
172
|
+
edxPath,
|
|
173
|
+
iblaiOrg,
|
|
174
|
+
iblaiUser,
|
|
175
|
+
}: {
|
|
176
|
+
edxPath: string,
|
|
177
|
+
/**
|
|
178
|
+
* Platform key. Required for service accounts. Other callers are scoped to their token's platform and get 403 if this names another.
|
|
179
|
+
*/
|
|
180
|
+
iblaiOrg?: string,
|
|
181
|
+
/**
|
|
182
|
+
* Username to call edX as. Required for service accounts. Other callers always act as themselves and get 403 if this names another user.
|
|
183
|
+
*/
|
|
184
|
+
iblaiUser?: string,
|
|
185
|
+
}): CancelablePromise<any> {
|
|
186
|
+
return __request(OpenAPI, {
|
|
187
|
+
method: 'DELETE',
|
|
188
|
+
url: '/v1/studio/{edx_path}',
|
|
189
|
+
path: {
|
|
190
|
+
'edx_path': edxPath,
|
|
191
|
+
},
|
|
192
|
+
headers: {
|
|
193
|
+
'iblai-org': iblaiOrg,
|
|
194
|
+
'iblai-user': iblaiUser,
|
|
195
|
+
},
|
|
196
|
+
errors: {
|
|
197
|
+
400: `A service account omitted a header.`,
|
|
198
|
+
403: `Path not allowed, the request names another platform or a user who is not an active member of it (including inside an uploaded text file), iblai-org / iblai-user does not match the token, the caller is not an active member of the platform, or the caller is a platform API key.`,
|
|
199
|
+
404: `Service account: platform or platform member not found.`,
|
|
200
|
+
502: `edX unreachable or no JWT issued.`,
|
|
201
|
+
},
|
|
202
|
+
});
|
|
203
|
+
}
|
|
204
|
+
}
|