@easyedu/js-lsm-api 1.140.0 → 1.141.0

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 (139) hide show
  1. package/.openapi-generator/FILES +30 -0
  2. package/README.md +28 -2
  3. package/dist/apis/DispatchApi.d.ts +18 -0
  4. package/dist/apis/DispatchApi.js +43 -0
  5. package/dist/apis/LRSApi.d.ts +152 -0
  6. package/dist/apis/LRSApi.js +369 -0
  7. package/dist/apis/PlayerApi.d.ts +71 -0
  8. package/dist/apis/PlayerApi.js +177 -0
  9. package/dist/apis/index.d.ts +1 -0
  10. package/dist/apis/index.js +1 -0
  11. package/dist/esm/apis/DispatchApi.d.ts +18 -0
  12. package/dist/esm/apis/DispatchApi.js +43 -0
  13. package/dist/esm/apis/LRSApi.d.ts +152 -0
  14. package/dist/esm/apis/LRSApi.js +365 -0
  15. package/dist/esm/apis/PlayerApi.d.ts +71 -0
  16. package/dist/esm/apis/PlayerApi.js +177 -0
  17. package/dist/esm/apis/index.d.ts +1 -0
  18. package/dist/esm/apis/index.js +1 -0
  19. package/dist/esm/models/Cmi5Launch.d.ts +52 -0
  20. package/dist/esm/models/Cmi5Launch.js +58 -0
  21. package/dist/esm/models/DeleteLrsUserRecordsResponse.d.ts +38 -0
  22. package/dist/esm/models/DeleteLrsUserRecordsResponse.js +47 -0
  23. package/dist/esm/models/GetCourseExport.d.ts +2 -1
  24. package/dist/esm/models/GetCourseExport.js +2 -1
  25. package/dist/esm/models/GetLrsCredentials.d.ts +46 -0
  26. package/dist/esm/models/GetLrsCredentials.js +53 -0
  27. package/dist/esm/models/GetLrsStatementList.d.ts +57 -0
  28. package/dist/esm/models/GetLrsStatementList.js +60 -0
  29. package/dist/esm/models/GetResourceSessionActivity.d.ts +2 -1
  30. package/dist/esm/models/GetResourceSessionActivity.js +2 -1
  31. package/dist/esm/models/H5pState.d.ts +34 -0
  32. package/dist/esm/models/H5pState.js +43 -0
  33. package/dist/esm/models/H5pStatementResult.d.ts +44 -0
  34. package/dist/esm/models/H5pStatementResult.js +49 -0
  35. package/dist/esm/models/HostedScormAccessPolicy.d.ts +1 -1
  36. package/dist/esm/models/LrsCredential.d.ts +74 -0
  37. package/dist/esm/models/LrsCredential.js +67 -0
  38. package/dist/esm/models/LrsScope.d.ts +38 -0
  39. package/dist/esm/models/LrsScope.js +47 -0
  40. package/dist/esm/models/LrsStatement.d.ts +112 -0
  41. package/dist/esm/models/LrsStatement.js +81 -0
  42. package/dist/esm/models/PostCourseExport.d.ts +2 -1
  43. package/dist/esm/models/PostCourseExport.js +2 -1
  44. package/dist/esm/models/PostDispatchCmi5Launch.d.ts +64 -0
  45. package/dist/esm/models/PostDispatchCmi5Launch.js +63 -0
  46. package/dist/esm/models/PostH5pStatement.d.ts +40 -0
  47. package/dist/esm/models/PostH5pStatement.js +47 -0
  48. package/dist/esm/models/PostLrsCredential.d.ts +38 -0
  49. package/dist/esm/models/PostLrsCredential.js +47 -0
  50. package/dist/esm/models/PostLrsCredentialResponse.d.ts +45 -0
  51. package/dist/esm/models/PostLrsCredentialResponse.js +52 -0
  52. package/dist/esm/models/PutLrsCredential.d.ts +38 -0
  53. package/dist/esm/models/PutLrsCredential.js +43 -0
  54. package/dist/esm/models/ResourceType.d.ts +2 -0
  55. package/dist/esm/models/ResourceType.js +3 -1
  56. package/dist/esm/models/index.d.ts +14 -0
  57. package/dist/esm/models/index.js +14 -0
  58. package/dist/models/Cmi5Launch.d.ts +52 -0
  59. package/dist/models/Cmi5Launch.js +66 -0
  60. package/dist/models/DeleteLrsUserRecordsResponse.d.ts +38 -0
  61. package/dist/models/DeleteLrsUserRecordsResponse.js +54 -0
  62. package/dist/models/GetCourseExport.d.ts +2 -1
  63. package/dist/models/GetCourseExport.js +2 -1
  64. package/dist/models/GetLrsCredentials.d.ts +46 -0
  65. package/dist/models/GetLrsCredentials.js +60 -0
  66. package/dist/models/GetLrsStatementList.d.ts +57 -0
  67. package/dist/models/GetLrsStatementList.js +67 -0
  68. package/dist/models/GetResourceSessionActivity.d.ts +2 -1
  69. package/dist/models/GetResourceSessionActivity.js +2 -1
  70. package/dist/models/H5pState.d.ts +34 -0
  71. package/dist/models/H5pState.js +50 -0
  72. package/dist/models/H5pStatementResult.d.ts +44 -0
  73. package/dist/models/H5pStatementResult.js +56 -0
  74. package/dist/models/HostedScormAccessPolicy.d.ts +1 -1
  75. package/dist/models/LrsCredential.d.ts +74 -0
  76. package/dist/models/LrsCredential.js +74 -0
  77. package/dist/models/LrsScope.d.ts +38 -0
  78. package/dist/models/LrsScope.js +54 -0
  79. package/dist/models/LrsStatement.d.ts +112 -0
  80. package/dist/models/LrsStatement.js +88 -0
  81. package/dist/models/PostCourseExport.d.ts +2 -1
  82. package/dist/models/PostCourseExport.js +2 -1
  83. package/dist/models/PostDispatchCmi5Launch.d.ts +64 -0
  84. package/dist/models/PostDispatchCmi5Launch.js +70 -0
  85. package/dist/models/PostH5pStatement.d.ts +40 -0
  86. package/dist/models/PostH5pStatement.js +54 -0
  87. package/dist/models/PostLrsCredential.d.ts +38 -0
  88. package/dist/models/PostLrsCredential.js +54 -0
  89. package/dist/models/PostLrsCredentialResponse.d.ts +45 -0
  90. package/dist/models/PostLrsCredentialResponse.js +59 -0
  91. package/dist/models/PutLrsCredential.d.ts +38 -0
  92. package/dist/models/PutLrsCredential.js +50 -0
  93. package/dist/models/ResourceType.d.ts +2 -0
  94. package/dist/models/ResourceType.js +3 -1
  95. package/dist/models/index.d.ts +14 -0
  96. package/dist/models/index.js +14 -0
  97. package/docs/Cmi5Launch.md +39 -0
  98. package/docs/ContentLibraryApi.md +2 -2
  99. package/docs/DeleteLrsUserRecordsResponse.md +37 -0
  100. package/docs/DispatchApi.md +73 -0
  101. package/docs/GetLrsCredentials.md +38 -0
  102. package/docs/GetLrsStatementList.md +42 -0
  103. package/docs/H5pState.md +35 -0
  104. package/docs/H5pStatementResult.md +39 -0
  105. package/docs/LRSApi.md +531 -0
  106. package/docs/LrsCredential.md +49 -0
  107. package/docs/LrsScope.md +37 -0
  108. package/docs/LrsStatement.md +61 -0
  109. package/docs/PlayerApi.md +286 -1
  110. package/docs/PostDispatchCmi5Launch.md +45 -0
  111. package/docs/PostH5pStatement.md +37 -0
  112. package/docs/PostLrsCredential.md +36 -0
  113. package/docs/PostLrsCredentialResponse.md +39 -0
  114. package/docs/PutLrsCredential.md +36 -0
  115. package/package.json +1 -1
  116. package/src/apis/DispatchApi.ts +58 -0
  117. package/src/apis/LRSApi.ts +486 -0
  118. package/src/apis/PlayerApi.ts +250 -0
  119. package/src/apis/index.ts +1 -0
  120. package/src/models/Cmi5Launch.ts +95 -0
  121. package/src/models/DeleteLrsUserRecordsResponse.ts +75 -0
  122. package/src/models/GetCourseExport.ts +3 -2
  123. package/src/models/GetLrsCredentials.ts +99 -0
  124. package/src/models/GetLrsStatementList.ts +110 -0
  125. package/src/models/GetResourceSessionActivity.ts +3 -2
  126. package/src/models/H5pState.ts +66 -0
  127. package/src/models/H5pStatementResult.ts +83 -0
  128. package/src/models/HostedScormAccessPolicy.ts +1 -1
  129. package/src/models/LrsCredential.ts +127 -0
  130. package/src/models/LrsScope.ts +75 -0
  131. package/src/models/LrsStatement.ts +176 -0
  132. package/src/models/PostCourseExport.ts +3 -2
  133. package/src/models/PostDispatchCmi5Launch.ts +111 -0
  134. package/src/models/PostH5pStatement.ts +75 -0
  135. package/src/models/PostLrsCredential.ts +75 -0
  136. package/src/models/PostLrsCredentialResponse.ts +92 -0
  137. package/src/models/PutLrsCredential.ts +73 -0
  138. package/src/models/ResourceType.ts +3 -1
  139. package/src/models/index.ts +14 -0
@@ -0,0 +1,64 @@
1
+ /**
2
+ * LMS API
3
+ * LMS API
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * The cmi5 launch a client's LMS handed to the launcher page of a cmi5 course export, with the LRS credentials the launcher obtained from the client's fetch URL.
14
+ * @export
15
+ * @interface PostDispatchCmi5Launch
16
+ */
17
+ export interface PostDispatchCmi5Launch {
18
+ /**
19
+ * The exported package the launch is for.
20
+ * @type {string}
21
+ * @memberof PostDispatchCmi5Launch
22
+ */
23
+ dispatchId: string;
24
+ /**
25
+ * The client LRS endpoint from the launch URL.
26
+ * @type {string}
27
+ * @memberof PostDispatchCmi5Launch
28
+ */
29
+ endpoint: string;
30
+ /**
31
+ * The auth-token returned by the client's fetch URL. It is used once, to confirm the launch with the client LRS when the export restricts which LRS may launch it, and is not stored.
32
+ * @type {string}
33
+ * @memberof PostDispatchCmi5Launch
34
+ */
35
+ authToken: string;
36
+ /**
37
+ * The learner, as the Agent from the launch URL.
38
+ * @type {{ [key: string]: any; }}
39
+ * @memberof PostDispatchCmi5Launch
40
+ */
41
+ actor: {
42
+ [key: string]: any;
43
+ };
44
+ /**
45
+ *
46
+ * @type {string}
47
+ * @memberof PostDispatchCmi5Launch
48
+ */
49
+ registration: string;
50
+ /**
51
+ *
52
+ * @type {string}
53
+ * @memberof PostDispatchCmi5Launch
54
+ */
55
+ activityId: string;
56
+ }
57
+ /**
58
+ * Check if a given object implements the PostDispatchCmi5Launch interface.
59
+ */
60
+ export declare function instanceOfPostDispatchCmi5Launch(value: object): value is PostDispatchCmi5Launch;
61
+ export declare function PostDispatchCmi5LaunchFromJSON(json: any): PostDispatchCmi5Launch;
62
+ export declare function PostDispatchCmi5LaunchFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostDispatchCmi5Launch;
63
+ export declare function PostDispatchCmi5LaunchToJSON(json: any): PostDispatchCmi5Launch;
64
+ export declare function PostDispatchCmi5LaunchToJSONTyped(value?: PostDispatchCmi5Launch | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,63 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * LMS API
5
+ * LMS API
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the PostDispatchCmi5Launch interface.
16
+ */
17
+ export function instanceOfPostDispatchCmi5Launch(value) {
18
+ if (!('dispatchId' in value) || value['dispatchId'] === undefined)
19
+ return false;
20
+ if (!('endpoint' in value) || value['endpoint'] === undefined)
21
+ return false;
22
+ if (!('authToken' in value) || value['authToken'] === undefined)
23
+ return false;
24
+ if (!('actor' in value) || value['actor'] === undefined)
25
+ return false;
26
+ if (!('registration' in value) || value['registration'] === undefined)
27
+ return false;
28
+ if (!('activityId' in value) || value['activityId'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ export function PostDispatchCmi5LaunchFromJSON(json) {
33
+ return PostDispatchCmi5LaunchFromJSONTyped(json, false);
34
+ }
35
+ export function PostDispatchCmi5LaunchFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'dispatchId': json['dispatch_id'],
41
+ 'endpoint': json['endpoint'],
42
+ 'authToken': json['auth_token'],
43
+ 'actor': json['actor'],
44
+ 'registration': json['registration'],
45
+ 'activityId': json['activity_id'],
46
+ };
47
+ }
48
+ export function PostDispatchCmi5LaunchToJSON(json) {
49
+ return PostDispatchCmi5LaunchToJSONTyped(json, false);
50
+ }
51
+ export function PostDispatchCmi5LaunchToJSONTyped(value, ignoreDiscriminator = false) {
52
+ if (value == null) {
53
+ return value;
54
+ }
55
+ return {
56
+ 'dispatch_id': value['dispatchId'],
57
+ 'endpoint': value['endpoint'],
58
+ 'auth_token': value['authToken'],
59
+ 'actor': value['actor'],
60
+ 'registration': value['registration'],
61
+ 'activity_id': value['activityId'],
62
+ };
63
+ }
@@ -0,0 +1,40 @@
1
+ /**
2
+ * LMS API
3
+ * LMS API
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * An xAPI statement emitted by H5P content in the learner's browser.
14
+ * @export
15
+ * @interface PostH5pStatement
16
+ */
17
+ export interface PostH5pStatement {
18
+ /**
19
+ * Client-generated id that makes a retried request idempotent. It becomes the statement id.
20
+ * @type {string}
21
+ * @memberof PostH5pStatement
22
+ */
23
+ eventId: string;
24
+ /**
25
+ * The statement as H5P produced it. The server replaces the actor with the session's learner, the object id with the resource's activity id, and adds the session as the registration.
26
+ * @type {{ [key: string]: any; }}
27
+ * @memberof PostH5pStatement
28
+ */
29
+ statement: {
30
+ [key: string]: any;
31
+ };
32
+ }
33
+ /**
34
+ * Check if a given object implements the PostH5pStatement interface.
35
+ */
36
+ export declare function instanceOfPostH5pStatement(value: object): value is PostH5pStatement;
37
+ export declare function PostH5pStatementFromJSON(json: any): PostH5pStatement;
38
+ export declare function PostH5pStatementFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostH5pStatement;
39
+ export declare function PostH5pStatementToJSON(json: any): PostH5pStatement;
40
+ export declare function PostH5pStatementToJSONTyped(value?: PostH5pStatement | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,47 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * LMS API
5
+ * LMS API
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the PostH5pStatement interface.
16
+ */
17
+ export function instanceOfPostH5pStatement(value) {
18
+ if (!('eventId' in value) || value['eventId'] === undefined)
19
+ return false;
20
+ if (!('statement' in value) || value['statement'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function PostH5pStatementFromJSON(json) {
25
+ return PostH5pStatementFromJSONTyped(json, false);
26
+ }
27
+ export function PostH5pStatementFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'eventId': json['event_id'],
33
+ 'statement': json['statement'],
34
+ };
35
+ }
36
+ export function PostH5pStatementToJSON(json) {
37
+ return PostH5pStatementToJSONTyped(json, false);
38
+ }
39
+ export function PostH5pStatementToJSONTyped(value, ignoreDiscriminator = false) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'event_id': value['eventId'],
45
+ 'statement': value['statement'],
46
+ };
47
+ }
@@ -0,0 +1,38 @@
1
+ /**
2
+ * LMS API
3
+ * LMS API
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface PostLrsCredential
16
+ */
17
+ export interface PostLrsCredential {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof PostLrsCredential
22
+ */
23
+ name: string;
24
+ /**
25
+ *
26
+ * @type {Set<string>}
27
+ * @memberof PostLrsCredential
28
+ */
29
+ scopes: Set<string>;
30
+ }
31
+ /**
32
+ * Check if a given object implements the PostLrsCredential interface.
33
+ */
34
+ export declare function instanceOfPostLrsCredential(value: object): value is PostLrsCredential;
35
+ export declare function PostLrsCredentialFromJSON(json: any): PostLrsCredential;
36
+ export declare function PostLrsCredentialFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostLrsCredential;
37
+ export declare function PostLrsCredentialToJSON(json: any): PostLrsCredential;
38
+ export declare function PostLrsCredentialToJSONTyped(value?: PostLrsCredential | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,47 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * LMS API
5
+ * LMS API
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the PostLrsCredential interface.
16
+ */
17
+ export function instanceOfPostLrsCredential(value) {
18
+ if (!('name' in value) || value['name'] === undefined)
19
+ return false;
20
+ if (!('scopes' in value) || value['scopes'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function PostLrsCredentialFromJSON(json) {
25
+ return PostLrsCredentialFromJSONTyped(json, false);
26
+ }
27
+ export function PostLrsCredentialFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'name': json['name'],
33
+ 'scopes': new Set(json['scopes']),
34
+ };
35
+ }
36
+ export function PostLrsCredentialToJSON(json) {
37
+ return PostLrsCredentialToJSONTyped(json, false);
38
+ }
39
+ export function PostLrsCredentialToJSONTyped(value, ignoreDiscriminator = false) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'name': value['name'],
45
+ 'scopes': Array.from(value['scopes']),
46
+ };
47
+ }
@@ -0,0 +1,45 @@
1
+ /**
2
+ * LMS API
3
+ * LMS API
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { LrsCredential } from './LrsCredential';
13
+ /**
14
+ * A newly created LRS credential. The secret is returned only once.
15
+ * @export
16
+ * @interface PostLrsCredentialResponse
17
+ */
18
+ export interface PostLrsCredentialResponse {
19
+ /**
20
+ *
21
+ * @type {LrsCredential}
22
+ * @memberof PostLrsCredentialResponse
23
+ */
24
+ credential: LrsCredential;
25
+ /**
26
+ * The HTTP Basic password. Shown once and stored only as a hash.
27
+ * @type {string}
28
+ * @memberof PostLrsCredentialResponse
29
+ */
30
+ secret: string;
31
+ /**
32
+ * The xAPI endpoint external systems should be configured with.
33
+ * @type {string}
34
+ * @memberof PostLrsCredentialResponse
35
+ */
36
+ endpoint: string;
37
+ }
38
+ /**
39
+ * Check if a given object implements the PostLrsCredentialResponse interface.
40
+ */
41
+ export declare function instanceOfPostLrsCredentialResponse(value: object): value is PostLrsCredentialResponse;
42
+ export declare function PostLrsCredentialResponseFromJSON(json: any): PostLrsCredentialResponse;
43
+ export declare function PostLrsCredentialResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostLrsCredentialResponse;
44
+ export declare function PostLrsCredentialResponseToJSON(json: any): PostLrsCredentialResponse;
45
+ export declare function PostLrsCredentialResponseToJSONTyped(value?: PostLrsCredentialResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,52 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * LMS API
5
+ * LMS API
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { LrsCredentialFromJSON, LrsCredentialToJSON, } from './LrsCredential';
15
+ /**
16
+ * Check if a given object implements the PostLrsCredentialResponse interface.
17
+ */
18
+ export function instanceOfPostLrsCredentialResponse(value) {
19
+ if (!('credential' in value) || value['credential'] === undefined)
20
+ return false;
21
+ if (!('secret' in value) || value['secret'] === undefined)
22
+ return false;
23
+ if (!('endpoint' in value) || value['endpoint'] === undefined)
24
+ return false;
25
+ return true;
26
+ }
27
+ export function PostLrsCredentialResponseFromJSON(json) {
28
+ return PostLrsCredentialResponseFromJSONTyped(json, false);
29
+ }
30
+ export function PostLrsCredentialResponseFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'credential': LrsCredentialFromJSON(json['credential']),
36
+ 'secret': json['secret'],
37
+ 'endpoint': json['endpoint'],
38
+ };
39
+ }
40
+ export function PostLrsCredentialResponseToJSON(json) {
41
+ return PostLrsCredentialResponseToJSONTyped(json, false);
42
+ }
43
+ export function PostLrsCredentialResponseToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'credential': LrsCredentialToJSON(value['credential']),
49
+ 'secret': value['secret'],
50
+ 'endpoint': value['endpoint'],
51
+ };
52
+ }
@@ -0,0 +1,38 @@
1
+ /**
2
+ * LMS API
3
+ * LMS API
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface PutLrsCredential
16
+ */
17
+ export interface PutLrsCredential {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof PutLrsCredential
22
+ */
23
+ name?: string;
24
+ /**
25
+ *
26
+ * @type {Set<string>}
27
+ * @memberof PutLrsCredential
28
+ */
29
+ scopes?: Set<string>;
30
+ }
31
+ /**
32
+ * Check if a given object implements the PutLrsCredential interface.
33
+ */
34
+ export declare function instanceOfPutLrsCredential(value: object): value is PutLrsCredential;
35
+ export declare function PutLrsCredentialFromJSON(json: any): PutLrsCredential;
36
+ export declare function PutLrsCredentialFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutLrsCredential;
37
+ export declare function PutLrsCredentialToJSON(json: any): PutLrsCredential;
38
+ export declare function PutLrsCredentialToJSONTyped(value?: PutLrsCredential | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,43 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * LMS API
5
+ * LMS API
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the PutLrsCredential interface.
16
+ */
17
+ export function instanceOfPutLrsCredential(value) {
18
+ return true;
19
+ }
20
+ export function PutLrsCredentialFromJSON(json) {
21
+ return PutLrsCredentialFromJSONTyped(json, false);
22
+ }
23
+ export function PutLrsCredentialFromJSONTyped(json, ignoreDiscriminator) {
24
+ if (json == null) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'name': json['name'] == null ? undefined : json['name'],
29
+ 'scopes': json['scopes'] == null ? undefined : new Set(json['scopes']),
30
+ };
31
+ }
32
+ export function PutLrsCredentialToJSON(json) {
33
+ return PutLrsCredentialToJSONTyped(json, false);
34
+ }
35
+ export function PutLrsCredentialToJSONTyped(value, ignoreDiscriminator = false) {
36
+ if (value == null) {
37
+ return value;
38
+ }
39
+ return {
40
+ 'name': value['name'],
41
+ 'scopes': value['scopes'] == null ? undefined : Array.from(value['scopes']),
42
+ };
43
+ }
@@ -23,6 +23,8 @@ export declare const ResourceType: {
23
23
  readonly File: "file";
24
24
  readonly Link: "link";
25
25
  readonly RichText: "rich_text";
26
+ readonly Cmi5: "cmi5";
27
+ readonly H5p: "h5p";
26
28
  };
27
29
  export type ResourceType = typeof ResourceType[keyof typeof ResourceType];
28
30
  export declare function instanceOfResourceType(value: any): boolean;
@@ -24,7 +24,9 @@ export const ResourceType = {
24
24
  Powerpoint: 'powerpoint',
25
25
  File: 'file',
26
26
  Link: 'link',
27
- RichText: 'rich_text'
27
+ RichText: 'rich_text',
28
+ Cmi5: 'cmi5',
29
+ H5p: 'h5p'
28
30
  };
29
31
  export function instanceOfResourceType(value) {
30
32
  for (const key in ResourceType) {
@@ -32,6 +32,7 @@ export * from './ChatQuotaExceeded';
32
32
  export * from './ChatTurnUsage';
33
33
  export * from './ChatUsageTotals';
34
34
  export * from './ChatUserIdentity';
35
+ export * from './Cmi5Launch';
35
36
  export * from './ContentLaunchMode';
36
37
  export * from './ContentLibraryTag';
37
38
  export * from './ContentLibraryTagItem';
@@ -41,6 +42,7 @@ export * from './CourseProgressionMode';
41
42
  export * from './CourseShare';
42
43
  export * from './CourseShareAcceptError';
43
44
  export * from './CustomWebhookIntegration';
45
+ export * from './DeleteLrsUserRecordsResponse';
44
46
  export * from './DispatchTokenResponse';
45
47
  export * from './EffectiveCertificateConfig';
46
48
  export * from './EmailTemplateDefinition';
@@ -113,6 +115,8 @@ export * from './GetLibraryQuizSession';
113
115
  export * from './GetLibraryQuizSessionList';
114
116
  export * from './GetLibraryQuizUsage';
115
117
  export * from './GetLibraryQuizVersion';
118
+ export * from './GetLrsCredentials';
119
+ export * from './GetLrsStatementList';
116
120
  export * from './GetPermission';
117
121
  export * from './GetPortal';
118
122
  export * from './GetPortalFaviconUpload';
@@ -183,6 +187,8 @@ export * from './GetZapierMe';
183
187
  export * from './GetZapierSetup';
184
188
  export * from './GetZapierShopifyCourseMappings';
185
189
  export * from './GetZapierUsers';
190
+ export * from './H5pState';
191
+ export * from './H5pStatementResult';
186
192
  export * from './HostedScormAccessPolicy';
187
193
  export * from './HostedScormOutlineEntry';
188
194
  export * from './HostedScormRollupPolicy';
@@ -209,6 +215,9 @@ export * from './LoginRes';
209
215
  export * from './LoginResAuthData';
210
216
  export * from './LoginResUserData';
211
217
  export * from './LoginResUserDataSelectedPortal';
218
+ export * from './LrsCredential';
219
+ export * from './LrsScope';
220
+ export * from './LrsStatement';
212
221
  export * from './Paginated';
213
222
  export * from './PortalBrandColorsV1';
214
223
  export * from './PortalBrandThemeV1';
@@ -251,6 +260,7 @@ export * from './PostCourseVersionSectionDuplicate';
251
260
  export * from './PostCustomWebhookIntegration';
252
261
  export * from './PostDemoRequest';
253
262
  export * from './PostDemoRequestResponse';
263
+ export * from './PostDispatchCmi5Launch';
254
264
  export * from './PostDispatchItemLaunch';
255
265
  export * from './PostDispatchItemLaunchResponse';
256
266
  export * from './PostDispatchLaunch';
@@ -261,11 +271,14 @@ export * from './PostEmailAssetComplete';
261
271
  export * from './PostEmailAssetUpload';
262
272
  export * from './PostEmailTemplatePreview';
263
273
  export * from './PostEmailTemplateTestSend';
274
+ export * from './PostH5pStatement';
264
275
  export * from './PostLearnerExperiencePreview';
265
276
  export * from './PostLibraryQuiz';
266
277
  export * from './PostLibraryQuizSession';
267
278
  export * from './PostLibraryQuizVersion';
268
279
  export * from './PostLogin';
280
+ export * from './PostLrsCredential';
281
+ export * from './PostLrsCredentialResponse';
269
282
  export * from './PostMessage';
270
283
  export * from './PostMessageResponse';
271
284
  export * from './PostOfferCatalog';
@@ -340,6 +353,7 @@ export * from './PutLibraryQuizSessionGrade';
340
353
  export * from './PutLibraryQuizSessionOverride';
341
354
  export * from './PutLibraryQuizSessionQuestionFlag';
342
355
  export * from './PutLibraryQuizVersion';
356
+ export * from './PutLrsCredential';
343
357
  export * from './PutPortalBranding';
344
358
  export * from './PutPortalCertificateTemplate';
345
359
  export * from './PutPortalSublicense';
@@ -34,6 +34,7 @@ export * from './ChatQuotaExceeded';
34
34
  export * from './ChatTurnUsage';
35
35
  export * from './ChatUsageTotals';
36
36
  export * from './ChatUserIdentity';
37
+ export * from './Cmi5Launch';
37
38
  export * from './ContentLaunchMode';
38
39
  export * from './ContentLibraryTag';
39
40
  export * from './ContentLibraryTagItem';
@@ -43,6 +44,7 @@ export * from './CourseProgressionMode';
43
44
  export * from './CourseShare';
44
45
  export * from './CourseShareAcceptError';
45
46
  export * from './CustomWebhookIntegration';
47
+ export * from './DeleteLrsUserRecordsResponse';
46
48
  export * from './DispatchTokenResponse';
47
49
  export * from './EffectiveCertificateConfig';
48
50
  export * from './EmailTemplateDefinition';
@@ -115,6 +117,8 @@ export * from './GetLibraryQuizSession';
115
117
  export * from './GetLibraryQuizSessionList';
116
118
  export * from './GetLibraryQuizUsage';
117
119
  export * from './GetLibraryQuizVersion';
120
+ export * from './GetLrsCredentials';
121
+ export * from './GetLrsStatementList';
118
122
  export * from './GetPermission';
119
123
  export * from './GetPortal';
120
124
  export * from './GetPortalFaviconUpload';
@@ -185,6 +189,8 @@ export * from './GetZapierMe';
185
189
  export * from './GetZapierSetup';
186
190
  export * from './GetZapierShopifyCourseMappings';
187
191
  export * from './GetZapierUsers';
192
+ export * from './H5pState';
193
+ export * from './H5pStatementResult';
188
194
  export * from './HostedScormAccessPolicy';
189
195
  export * from './HostedScormOutlineEntry';
190
196
  export * from './HostedScormRollupPolicy';
@@ -211,6 +217,9 @@ export * from './LoginRes';
211
217
  export * from './LoginResAuthData';
212
218
  export * from './LoginResUserData';
213
219
  export * from './LoginResUserDataSelectedPortal';
220
+ export * from './LrsCredential';
221
+ export * from './LrsScope';
222
+ export * from './LrsStatement';
214
223
  export * from './Paginated';
215
224
  export * from './PortalBrandColorsV1';
216
225
  export * from './PortalBrandThemeV1';
@@ -253,6 +262,7 @@ export * from './PostCourseVersionSectionDuplicate';
253
262
  export * from './PostCustomWebhookIntegration';
254
263
  export * from './PostDemoRequest';
255
264
  export * from './PostDemoRequestResponse';
265
+ export * from './PostDispatchCmi5Launch';
256
266
  export * from './PostDispatchItemLaunch';
257
267
  export * from './PostDispatchItemLaunchResponse';
258
268
  export * from './PostDispatchLaunch';
@@ -263,11 +273,14 @@ export * from './PostEmailAssetComplete';
263
273
  export * from './PostEmailAssetUpload';
264
274
  export * from './PostEmailTemplatePreview';
265
275
  export * from './PostEmailTemplateTestSend';
276
+ export * from './PostH5pStatement';
266
277
  export * from './PostLearnerExperiencePreview';
267
278
  export * from './PostLibraryQuiz';
268
279
  export * from './PostLibraryQuizSession';
269
280
  export * from './PostLibraryQuizVersion';
270
281
  export * from './PostLogin';
282
+ export * from './PostLrsCredential';
283
+ export * from './PostLrsCredentialResponse';
271
284
  export * from './PostMessage';
272
285
  export * from './PostMessageResponse';
273
286
  export * from './PostOfferCatalog';
@@ -342,6 +355,7 @@ export * from './PutLibraryQuizSessionGrade';
342
355
  export * from './PutLibraryQuizSessionOverride';
343
356
  export * from './PutLibraryQuizSessionQuestionFlag';
344
357
  export * from './PutLibraryQuizVersion';
358
+ export * from './PutLrsCredential';
345
359
  export * from './PutPortalBranding';
346
360
  export * from './PutPortalCertificateTemplate';
347
361
  export * from './PutPortalSublicense';