@iblai/iblai-api 3.35.3-core → 3.35.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.
Files changed (178) hide show
  1. package/dist/index.cjs.js +13134 -3071
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.esm.js +13128 -3072
  4. package/dist/index.esm.js.map +1 -1
  5. package/dist/index.umd.js +13134 -3071
  6. package/dist/index.umd.js.map +1 -1
  7. package/dist/types/index.d.ts +80 -1
  8. package/dist/types/models/AWSTenantLaunchRequest.d.ts +20 -0
  9. package/dist/types/models/ActivateUserFreeTrial.d.ts +11 -0
  10. package/dist/types/models/App.d.ts +10 -0
  11. package/dist/types/models/AppleSubscriptionStatusRequest.d.ts +3 -0
  12. package/dist/types/models/AppleSubscriptionStatusView.d.ts +3 -0
  13. package/dist/types/models/AppleVerifyTransactionId.d.ts +3 -0
  14. package/dist/types/models/AssociateAccountResponse.d.ts +5 -0
  15. package/dist/types/models/AssociateAppleAccount.d.ts +3 -0
  16. package/dist/types/models/AuthToken.d.ts +10 -0
  17. package/dist/types/models/BaseErrorResponse.d.ts +5 -0
  18. package/dist/types/models/BaseResponse.d.ts +5 -0
  19. package/dist/types/models/CeleryHeartbeat.d.ts +5 -0
  20. package/dist/types/models/CeleryHeartbeatFail.d.ts +5 -0
  21. package/dist/types/models/CeleryHeartbeatFailStatusEnum.d.ts +8 -0
  22. package/dist/types/models/CeleryHeartbeatStatusEnum.d.ts +8 -0
  23. package/dist/types/models/DesiredRole.d.ts +4 -0
  24. package/dist/types/models/EdxSignalReceiverRequest.d.ts +4 -0
  25. package/dist/types/models/GCPTenantLaunchRequest.d.ts +24 -0
  26. package/dist/types/models/GooglePayAccountResponse.d.ts +15 -0
  27. package/dist/types/models/GooglePayAccountResponseStatusEnum.d.ts +8 -0
  28. package/dist/types/models/GooglePayVerifyToken.d.ts +6 -0
  29. package/dist/types/models/ItemTypeEnum.d.ts +18 -0
  30. package/dist/types/models/LauncherViewPostRequest.d.ts +9 -0
  31. package/dist/types/models/ManagerAuthToken.d.ts +13 -0
  32. package/dist/types/models/MediaResource.d.ts +71 -0
  33. package/dist/types/models/MediaTypeEnum.d.ts +14 -0
  34. package/dist/types/models/ModeEnum.d.ts +10 -0
  35. package/dist/types/models/Notification.d.ts +2 -2
  36. package/dist/types/models/{StatusEnum.d.ts → NotificationStatusEnum.d.ts} +1 -1
  37. package/dist/types/models/OnboardingStatusUpdate.d.ts +7 -0
  38. package/dist/types/models/PaginatedUserAppList.d.ts +7 -0
  39. package/dist/types/models/PatchedMediaResource.d.ts +71 -0
  40. package/dist/types/models/PatchedNotification.d.ts +2 -2
  41. package/dist/types/models/Platform.d.ts +29 -0
  42. package/dist/types/models/PlatformApiKey.d.ts +30 -0
  43. package/dist/types/models/PlatformList.d.ts +29 -0
  44. package/dist/types/models/PlatformListStatusEnum.d.ts +22 -0
  45. package/dist/types/models/PlatformUpdatePostRequest.d.ts +9 -0
  46. package/dist/types/models/ReportedRole.d.ts +4 -0
  47. package/dist/types/models/Resource.d.ts +22 -0
  48. package/dist/types/models/ResourceCreateUpdate.d.ts +42 -0
  49. package/dist/types/models/Role.d.ts +7 -0
  50. package/dist/types/models/StripeCheckoutSessionRequest.d.ts +54 -0
  51. package/dist/types/models/StripeCheckoutSessionResponse.d.ts +6 -0
  52. package/dist/types/models/StripeCustomerPortalRequest.d.ts +3 -0
  53. package/dist/types/models/StripeCustomerPortalResponse.d.ts +3 -0
  54. package/dist/types/models/StripeLocalProduct.d.ts +8 -0
  55. package/dist/types/models/StripeSubscriptionRenewalRequest.d.ts +4 -0
  56. package/dist/types/models/StripeSubscriptionRenewalResponse.d.ts +3 -0
  57. package/dist/types/models/TenantLaunchError.d.ts +10 -0
  58. package/dist/types/models/TenantLaunchFailed.d.ts +15 -0
  59. package/dist/types/models/TenantLaunchRequest.d.ts +16 -0
  60. package/dist/types/models/TenantLaunchResponse.d.ts +15 -0
  61. package/dist/types/models/TokenProxyInput.d.ts +21 -0
  62. package/dist/types/models/TokenProxyOutput.d.ts +7 -0
  63. package/dist/types/models/TokenProxyOutputSerializerData.d.ts +20 -0
  64. package/dist/types/models/TokenProxyUser.d.ts +25 -0
  65. package/dist/types/models/UserApp.d.ts +27 -0
  66. package/dist/types/models/UserDeleteAPIError.d.ts +3 -0
  67. package/dist/types/models/UserDeleteAPIRequest.d.ts +3 -0
  68. package/dist/types/models/UserDeleteAPIResponse.d.ts +3 -0
  69. package/dist/types/models/UserPlatformLink.d.ts +17 -0
  70. package/dist/types/models/UserPlatformManagementListViewGetResponse.d.ts +6 -0
  71. package/dist/types/models/UserPlatformViewPostRequest.d.ts +8 -0
  72. package/dist/types/models/UserProxyBulkRequest.d.ts +3 -0
  73. package/dist/types/models/UserProxyGetResponse.d.ts +8 -0
  74. package/dist/types/models/UserProxyPostRequest.d.ts +7 -0
  75. package/dist/types/models/UserProxyPostResponse.d.ts +8 -0
  76. package/dist/types/models/UserSearchViewGetResponse.d.ts +6 -0
  77. package/dist/types/models/VerifyGCPMarketPlaceFailedResponse.d.ts +11 -0
  78. package/dist/types/models/VerifyGCPMarketPlaceRequest.d.ts +3 -0
  79. package/dist/types/models/VerifyGCPMarketPlaceResponse.d.ts +11 -0
  80. package/dist/types/models/WatchedVideosPerCourse.d.ts +8 -0
  81. package/dist/types/models/WatchedVideosPerCourseData.d.ts +18 -0
  82. package/dist/types/models/WhitelistedDomain.d.ts +4 -0
  83. package/dist/types/services/CatalogService.d.ts +6904 -0
  84. package/dist/types/services/CoreService.d.ts +442 -0
  85. package/dist/types/services/FeaturesService.d.ts +75 -0
  86. package/dist/types/services/MediaResourcesService.d.ts +112 -0
  87. package/dist/types/services/PlatformService.d.ts +314 -0
  88. package/dist/types/services/ProvidersService.d.ts +142 -0
  89. package/dist/types/services/ProvisionService.d.ts +14 -0
  90. package/dist/types/services/RolesService.d.ts +57 -0
  91. package/dist/types/services/ServiceService.d.ts +170 -0
  92. package/package.json +1 -1
  93. package/src/core/OpenAPI.ts +1 -1
  94. package/src/index.ts +80 -1
  95. package/src/models/AWSTenantLaunchRequest.ts +25 -0
  96. package/src/models/ActivateUserFreeTrial.ts +16 -0
  97. package/src/models/App.ts +15 -0
  98. package/src/models/AppleSubscriptionStatusRequest.ts +8 -0
  99. package/src/models/AppleSubscriptionStatusView.ts +8 -0
  100. package/src/models/AppleVerifyTransactionId.ts +8 -0
  101. package/src/models/AssociateAccountResponse.ts +10 -0
  102. package/src/models/AssociateAppleAccount.ts +8 -0
  103. package/src/models/AuthToken.ts +15 -0
  104. package/src/models/BaseErrorResponse.ts +10 -0
  105. package/src/models/BaseResponse.ts +10 -0
  106. package/src/models/CeleryHeartbeat.ts +10 -0
  107. package/src/models/CeleryHeartbeatFail.ts +10 -0
  108. package/src/models/CeleryHeartbeatFailStatusEnum.ts +12 -0
  109. package/src/models/CeleryHeartbeatStatusEnum.ts +12 -0
  110. package/src/models/DesiredRole.ts +9 -0
  111. package/src/models/EdxSignalReceiverRequest.ts +9 -0
  112. package/src/models/GCPTenantLaunchRequest.ts +29 -0
  113. package/src/models/GooglePayAccountResponse.ts +20 -0
  114. package/src/models/GooglePayAccountResponseStatusEnum.ts +12 -0
  115. package/src/models/GooglePayVerifyToken.ts +11 -0
  116. package/src/models/ItemTypeEnum.ts +22 -0
  117. package/src/models/LauncherViewPostRequest.ts +14 -0
  118. package/src/models/ManagerAuthToken.ts +18 -0
  119. package/src/models/MediaResource.ts +76 -0
  120. package/src/models/MediaTypeEnum.ts +18 -0
  121. package/src/models/ModeEnum.ts +14 -0
  122. package/src/models/Notification.ts +2 -2
  123. package/src/models/{StatusEnum.ts → NotificationStatusEnum.ts} +1 -1
  124. package/src/models/OnboardingStatusUpdate.ts +12 -0
  125. package/src/models/PaginatedUserAppList.ts +12 -0
  126. package/src/models/PatchedMediaResource.ts +76 -0
  127. package/src/models/PatchedNotification.ts +2 -2
  128. package/src/models/Platform.ts +34 -0
  129. package/src/models/PlatformApiKey.ts +35 -0
  130. package/src/models/PlatformList.ts +34 -0
  131. package/src/models/PlatformListStatusEnum.ts +26 -0
  132. package/src/models/PlatformUpdatePostRequest.ts +14 -0
  133. package/src/models/ReportedRole.ts +9 -0
  134. package/src/models/Resource.ts +27 -0
  135. package/src/models/ResourceCreateUpdate.ts +47 -0
  136. package/src/models/Role.ts +12 -0
  137. package/src/models/StripeCheckoutSessionRequest.ts +59 -0
  138. package/src/models/StripeCheckoutSessionResponse.ts +11 -0
  139. package/src/models/StripeCustomerPortalRequest.ts +8 -0
  140. package/src/models/StripeCustomerPortalResponse.ts +8 -0
  141. package/src/models/StripeLocalProduct.ts +13 -0
  142. package/src/models/StripeSubscriptionRenewalRequest.ts +9 -0
  143. package/src/models/StripeSubscriptionRenewalResponse.ts +8 -0
  144. package/src/models/TenantLaunchError.ts +15 -0
  145. package/src/models/TenantLaunchFailed.ts +20 -0
  146. package/src/models/TenantLaunchRequest.ts +21 -0
  147. package/src/models/TenantLaunchResponse.ts +20 -0
  148. package/src/models/TokenProxyInput.ts +26 -0
  149. package/src/models/TokenProxyOutput.ts +12 -0
  150. package/src/models/TokenProxyOutputSerializerData.ts +25 -0
  151. package/src/models/TokenProxyUser.ts +30 -0
  152. package/src/models/UserApp.ts +32 -0
  153. package/src/models/UserDeleteAPIError.ts +8 -0
  154. package/src/models/UserDeleteAPIRequest.ts +8 -0
  155. package/src/models/UserDeleteAPIResponse.ts +8 -0
  156. package/src/models/UserPlatformLink.ts +22 -0
  157. package/src/models/UserPlatformManagementListViewGetResponse.ts +11 -0
  158. package/src/models/UserPlatformViewPostRequest.ts +13 -0
  159. package/src/models/UserProxyBulkRequest.ts +8 -0
  160. package/src/models/UserProxyGetResponse.ts +13 -0
  161. package/src/models/UserProxyPostRequest.ts +12 -0
  162. package/src/models/UserProxyPostResponse.ts +13 -0
  163. package/src/models/UserSearchViewGetResponse.ts +11 -0
  164. package/src/models/VerifyGCPMarketPlaceFailedResponse.ts +16 -0
  165. package/src/models/VerifyGCPMarketPlaceRequest.ts +8 -0
  166. package/src/models/VerifyGCPMarketPlaceResponse.ts +16 -0
  167. package/src/models/WatchedVideosPerCourse.ts +13 -0
  168. package/src/models/WatchedVideosPerCourseData.ts +23 -0
  169. package/src/models/WhitelistedDomain.ts +9 -0
  170. package/src/services/CatalogService.ts +7769 -0
  171. package/src/services/CoreService.ts +792 -1
  172. package/src/services/FeaturesService.ts +126 -0
  173. package/src/services/MediaResourcesService.ts +319 -0
  174. package/src/services/PlatformService.ts +582 -0
  175. package/src/services/ProvidersService.ts +271 -0
  176. package/src/services/ProvisionService.ts +30 -0
  177. package/src/services/RolesService.ts +87 -0
  178. package/src/services/ServiceService.ts +320 -0
@@ -0,0 +1,271 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ import type { AppleSubscriptionStatusRequest } from '../models/AppleSubscriptionStatusRequest';
6
+ import type { AppleSubscriptionStatusView } from '../models/AppleSubscriptionStatusView';
7
+ import type { AppleVerifyTransactionId } from '../models/AppleVerifyTransactionId';
8
+ import type { AssociateAccountResponse } from '../models/AssociateAccountResponse';
9
+ import type { AssociateAppleAccount } from '../models/AssociateAppleAccount';
10
+ import type { AWSTenantLaunchRequest } from '../models/AWSTenantLaunchRequest';
11
+ import type { BaseResponse } from '../models/BaseResponse';
12
+ import type { GCPTenantLaunchRequest } from '../models/GCPTenantLaunchRequest';
13
+ import type { GooglePayAccountResponse } from '../models/GooglePayAccountResponse';
14
+ import type { GooglePayVerifyToken } from '../models/GooglePayVerifyToken';
15
+ import type { TenantLaunchResponse } from '../models/TenantLaunchResponse';
16
+ import type { VerifyGCPMarketPlaceRequest } from '../models/VerifyGCPMarketPlaceRequest';
17
+ import type { VerifyGCPMarketPlaceResponse } from '../models/VerifyGCPMarketPlaceResponse';
18
+ import type { CancelablePromise } from '../core/CancelablePromise';
19
+ import { OpenAPI } from '../core/OpenAPI';
20
+ import { request as __request } from '../core/request';
21
+ export class ProvidersService {
22
+ /**
23
+ * Associate an Apple account with a user known user
24
+ * @param requestBody
25
+ * @returns AssociateAccountResponse
26
+ * @throws ApiError
27
+ */
28
+ public static providersAppleAssociateAccountCreate(
29
+ requestBody: AssociateAppleAccount,
30
+ ): CancelablePromise<AssociateAccountResponse> {
31
+ return __request(OpenAPI, {
32
+ method: 'POST',
33
+ url: '/api/providers/apple/associate-account/',
34
+ body: requestBody,
35
+ mediaType: 'application/json',
36
+ });
37
+ }
38
+ /**
39
+ * View to handle apple webhooks
40
+ * @returns any No response body
41
+ * @throws ApiError
42
+ */
43
+ public static providersAppleHookCreate(): CancelablePromise<any> {
44
+ return __request(OpenAPI, {
45
+ method: 'POST',
46
+ url: '/api/providers/apple/hook/',
47
+ });
48
+ }
49
+ /**
50
+ * Returns information about a user subscription status
51
+ * @param requestBody
52
+ * @returns AppleSubscriptionStatusView
53
+ * @throws ApiError
54
+ */
55
+ public static providersAppleSubscriptionStatusCreate(
56
+ requestBody?: AppleSubscriptionStatusRequest,
57
+ ): CancelablePromise<AppleSubscriptionStatusView> {
58
+ return __request(OpenAPI, {
59
+ method: 'POST',
60
+ url: '/api/providers/apple/subscription-status/',
61
+ body: requestBody,
62
+ mediaType: 'application/json',
63
+ });
64
+ }
65
+ /**
66
+ * Checks if a provided transaction_id is valid
67
+ * @param requestBody
68
+ * @returns BaseResponse
69
+ * @throws ApiError
70
+ */
71
+ public static providersAppleValidateTransactionIdCreate(
72
+ requestBody: AppleVerifyTransactionId,
73
+ ): CancelablePromise<BaseResponse> {
74
+ return __request(OpenAPI, {
75
+ method: 'POST',
76
+ url: '/api/providers/apple/validate-transaction-id/',
77
+ body: requestBody,
78
+ mediaType: 'application/json',
79
+ });
80
+ }
81
+ /**
82
+ * Serves a view that redirects to the AWS marketplace create organization page
83
+ *
84
+ * Set CREATE_ORGANIZATION_URL in GlobalConfigurationFetcher to the
85
+ * URL of the AWS marketplace create organization page
86
+ * @returns any No response body
87
+ * @throws ApiError
88
+ */
89
+ public static providersAwsCreateOrganizationCreate(): CancelablePromise<any> {
90
+ return __request(OpenAPI, {
91
+ method: 'POST',
92
+ url: '/api/providers/aws/create-organization/',
93
+ });
94
+ }
95
+ /**
96
+ * API endpoint to get domain setup status
97
+ * @returns any No response body
98
+ * @throws ApiError
99
+ */
100
+ public static providersAwsDomainStatusRetrieve(): CancelablePromise<any> {
101
+ return __request(OpenAPI, {
102
+ method: 'GET',
103
+ url: '/api/providers/aws/domain-status/',
104
+ });
105
+ }
106
+ /**
107
+ * Proxy to the Platform launch API
108
+ *
109
+ * We cannot expose launching a tenant to an authorized user hence the need for the API
110
+ *
111
+ * The API validates the x_amzn_marketplace_token and then proxies the request to the Platform Launch API
112
+ * @param requestBody
113
+ * @returns TenantLaunchResponse
114
+ * @throws ApiError
115
+ */
116
+ public static providersAwsLaunchTenantCreate(
117
+ requestBody: AWSTenantLaunchRequest,
118
+ ): CancelablePromise<TenantLaunchResponse> {
119
+ return __request(OpenAPI, {
120
+ method: 'POST',
121
+ url: '/api/providers/aws/launch-tenant/',
122
+ body: requestBody,
123
+ mediaType: 'application/json',
124
+ });
125
+ }
126
+ /**
127
+ * API endpoint to get/update CNAME records for domain setup
128
+ * @returns any No response body
129
+ * @throws ApiError
130
+ */
131
+ public static providersAwsSyncDomainRecordsRetrieve(): CancelablePromise<any> {
132
+ return __request(OpenAPI, {
133
+ method: 'GET',
134
+ url: '/api/providers/aws/sync-domain-records/',
135
+ });
136
+ }
137
+ /**
138
+ * API endpoint to get/update CNAME records for domain setup
139
+ * @returns any No response body
140
+ * @throws ApiError
141
+ */
142
+ public static providersAwsSyncDomainRecordsCreate(): CancelablePromise<any> {
143
+ return __request(OpenAPI, {
144
+ method: 'POST',
145
+ url: '/api/providers/aws/sync-domain-records/',
146
+ });
147
+ }
148
+ /**
149
+ * Serves a view that redirects to the GCP marketplace create organization page
150
+ *
151
+ * Set CREATE_ORGANIZATION_URL in GlobalConfigurationFetcher to the URL of the GCP marketplace create organization
152
+ * page
153
+ * @returns any No response body
154
+ * @throws ApiError
155
+ */
156
+ public static providersGcpCreateOrganizationCreate(): CancelablePromise<any> {
157
+ return __request(OpenAPI, {
158
+ method: 'POST',
159
+ url: '/api/providers/gcp/create-organization/',
160
+ });
161
+ }
162
+ /**
163
+ * Serves a view that redirects to the GCP marketplace create organization page
164
+ *
165
+ * Set CREATE_ORGANIZATION_URL in GlobalConfigurationFetcher to the URL of the GCP marketplace create organization
166
+ * page
167
+ * @param productId
168
+ * @returns any No response body
169
+ * @throws ApiError
170
+ */
171
+ public static providersGcpCreateOrganizationCreate2(
172
+ productId: string,
173
+ ): CancelablePromise<any> {
174
+ return __request(OpenAPI, {
175
+ method: 'POST',
176
+ url: '/api/providers/gcp/create-organization/{product_id}/',
177
+ path: {
178
+ 'product_id': productId,
179
+ },
180
+ });
181
+ }
182
+ /**
183
+ * @returns any No response body
184
+ * @throws ApiError
185
+ */
186
+ public static providersGcpHookCreate(): CancelablePromise<any> {
187
+ return __request(OpenAPI, {
188
+ method: 'POST',
189
+ url: '/api/providers/gcp/hook/',
190
+ });
191
+ }
192
+ /**
193
+ * Proxy to the Platform launch API
194
+ *
195
+ * We cannot expose launching a tenant to an authorized user hence the need for the API
196
+ *
197
+ * The API validates the x_gcp_marketplace_token and then proxies the request to the Platform Launc API
198
+ * @param requestBody
199
+ * @returns TenantLaunchResponse
200
+ * @throws ApiError
201
+ */
202
+ public static providersGcpLaunchTenantCreate(
203
+ requestBody: GCPTenantLaunchRequest,
204
+ ): CancelablePromise<TenantLaunchResponse> {
205
+ return __request(OpenAPI, {
206
+ method: 'POST',
207
+ url: '/api/providers/gcp/launch-tenant/',
208
+ body: requestBody,
209
+ mediaType: 'application/json',
210
+ });
211
+ }
212
+ /**
213
+ * @param requestBody
214
+ * @returns VerifyGCPMarketPlaceResponse
215
+ * @throws ApiError
216
+ */
217
+ public static providersGcpValidateSignupTokenCreate(
218
+ requestBody: VerifyGCPMarketPlaceRequest,
219
+ ): CancelablePromise<VerifyGCPMarketPlaceResponse> {
220
+ return __request(OpenAPI, {
221
+ method: 'POST',
222
+ url: '/api/providers/gcp/validate-signup-token/',
223
+ body: requestBody,
224
+ mediaType: 'application/json',
225
+ });
226
+ }
227
+ /**
228
+ * Google Allows us to pass an obfuscated account id to be sent to during a subscription purchase
229
+ * @param bundleId
230
+ * @returns GooglePayAccountResponse
231
+ * @throws ApiError
232
+ */
233
+ public static providersGooglePayGetAccountRetrieve(
234
+ bundleId: string,
235
+ ): CancelablePromise<GooglePayAccountResponse> {
236
+ return __request(OpenAPI, {
237
+ method: 'GET',
238
+ url: '/api/providers/google-pay/get-account/{bundle_id}',
239
+ path: {
240
+ 'bundle_id': bundleId,
241
+ },
242
+ });
243
+ }
244
+ /**
245
+ * View to handle Google Pay webhooks
246
+ * @returns any No response body
247
+ * @throws ApiError
248
+ */
249
+ public static providersGooglePayHookCreate(): CancelablePromise<any> {
250
+ return __request(OpenAPI, {
251
+ method: 'POST',
252
+ url: '/api/providers/google-pay/hook/',
253
+ });
254
+ }
255
+ /**
256
+ * Associate a Google Pay account with a known user
257
+ * @param requestBody
258
+ * @returns BaseResponse
259
+ * @throws ApiError
260
+ */
261
+ public static providersGooglePayValidateTransactionIdCreate(
262
+ requestBody: GooglePayVerifyToken,
263
+ ): CancelablePromise<BaseResponse> {
264
+ return __request(OpenAPI, {
265
+ method: 'POST',
266
+ url: '/api/providers/google-pay/validate-transaction-id/',
267
+ body: requestBody,
268
+ mediaType: 'application/json',
269
+ });
270
+ }
271
+ }
@@ -0,0 +1,30 @@
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 ProvisionService {
9
+ /**
10
+ * POST
11
+ * Update platform provisioning config
12
+ *
13
+ * request body:
14
+ * {"config_name": "demo_config}
15
+ * @param configName
16
+ * @returns any No response body
17
+ * @throws ApiError
18
+ */
19
+ public static provisionCreate(
20
+ configName: string,
21
+ ): CancelablePromise<any> {
22
+ return __request(OpenAPI, {
23
+ method: 'POST',
24
+ url: '/api/provision/{config_name}/',
25
+ path: {
26
+ 'config_name': configName,
27
+ },
28
+ });
29
+ }
30
+ }
@@ -0,0 +1,87 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ import type { DesiredRole } from '../models/DesiredRole';
6
+ import type { ReportedRole } from '../models/ReportedRole';
7
+ import type { CancelablePromise } from '../core/CancelablePromise';
8
+ import { OpenAPI } from '../core/OpenAPI';
9
+ import { request as __request } from '../core/request';
10
+ export class RolesService {
11
+ /**
12
+ * Retrieve a user's desired role information.
13
+ *
14
+ * This endpoint returns the role and skills that a user has indicated
15
+ * they want to develop or acquire. This represents the user's career
16
+ * goals and learning objectives.
17
+ *
18
+ * Path Parameters:
19
+ * org (str): The platform/organization identifier
20
+ * username (str): The username of the user to retrieve role information for
21
+ *
22
+ * Returns:
23
+ * The user's desired role information including:
24
+ * - Target role title
25
+ * - Skills needed for the role
26
+ * - Current progress toward skill acquisition
27
+ *
28
+ * Error Responses:
29
+ * 400 Bad Request: If the user doesn't exist in the platform or has no desired role
30
+ * 404 Not Found: If the specified platform doesn't exist
31
+ * @param org
32
+ * @param username
33
+ * @returns DesiredRole
34
+ * @throws ApiError
35
+ */
36
+ public static rolesPlatformOrgsRolesUsersDesiredRolesRetrieve(
37
+ org: string,
38
+ username: string,
39
+ ): CancelablePromise<DesiredRole> {
40
+ return __request(OpenAPI, {
41
+ method: 'GET',
42
+ url: '/api/roles/platform/orgs/{org}/roles/users/{username}/desired-roles/',
43
+ path: {
44
+ 'org': org,
45
+ 'username': username,
46
+ },
47
+ });
48
+ }
49
+ /**
50
+ * Retrieve a user's reported role information.
51
+ *
52
+ * This endpoint returns the role and skills that a user has reported
53
+ * having in their profile. This represents the user's current skills
54
+ * and professional role.
55
+ *
56
+ * Path Parameters:
57
+ * org (str): The platform/organization identifier
58
+ * username (str): The username of the user to retrieve role information for
59
+ *
60
+ * Returns:
61
+ * The user's reported role information including:
62
+ * - Role title
63
+ * - Skills associated with the role
64
+ * - Experience level
65
+ *
66
+ * Error Responses:
67
+ * 400 Bad Request: If the user doesn't exist in the platform or has no reported role
68
+ * 404 Not Found: If the specified platform doesn't exist
69
+ * @param org
70
+ * @param username
71
+ * @returns ReportedRole
72
+ * @throws ApiError
73
+ */
74
+ public static rolesPlatformOrgsRolesUsersReportedRolesRetrieve(
75
+ org: string,
76
+ username: string,
77
+ ): CancelablePromise<ReportedRole> {
78
+ return __request(OpenAPI, {
79
+ method: 'GET',
80
+ url: '/api/roles/platform/orgs/{org}/roles/users/{username}/reported-roles/',
81
+ path: {
82
+ 'org': org,
83
+ 'username': username,
84
+ },
85
+ });
86
+ }
87
+ }