Skip to content

Commit a940577

Browse files
committed
feat(client): Update to API specification v2.6
1 parent dc06782 commit a940577

File tree

214 files changed

+13593
-5590
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

214 files changed

+13593
-5590
lines changed

.swagger-codegen/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.2.3-SNAPSHOT
1+
2.4.0-SNAPSHOT

CHANGELOG.md

Lines changed: 37 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,47 @@
11
# Changelog
22

3-
## 0.5.0
3+
## 0.6.0 (API v2.6.0)
4+
5+
* feat(collections): Add new Collections API endpoints
6+
* `POST /collections`: Create new collection
7+
* `GET /collections`: List collections
8+
* `GET /collections/{collection}`: Get collection details
9+
* `PUT /collections/{collection}`: Update collection details
10+
* `DELETE /collections/{collection}`: Delete collection
11+
* `POST /collections/{collection}/untrash`: Untrash collection
12+
* `GET /collections/{collection}/scores`: List scores contained in a collection
13+
* `PUT /collections/{collection}/scores/{score}`: Add a score to a collection
14+
* `DELETE /collections/{collection}/scores/{score}`: Remove a score from a collection
15+
* feat(collections): Add new OAuth2 scopes for new features:
16+
* `collections.readonly`: Allow read-only access to a user's collections.
17+
* `collections.add_scores`: Allow to add scores to a user's collections.
18+
* `collections`: Full, permissive scope to access all of a user's collections.
19+
* feat(score): Added new method to untrash a score (`POST /v2/scores/{score}/untrash`)
20+
* feat(score): `DELETE /v2/scores/{score}` can now be used without admin rights. This new behavior will unshare the score from the current account.
21+
* feat(score): `POST /scores/{score}/fork` now accepts a collection identifier to copy a score to a specific collection.
22+
* feat(comments): Comments can now be filtered by type with the new query string `type` (`document` or `inline`).
23+
* update(openapi): Some schema definitions have been renamed, they are now used for Scores and Collections
24+
* `ScoreRights` -> `ResourceRights`
25+
* `ScoreCollaborator` -> `ResourceCollaborator`
26+
* `ScoreCollaboratorCreation` -> `ResourceCollaboratorCreation`
27+
* existing _score sharing key_ -> `ResourceSharingKey`
28+
* **DEPRECATED**: `GET /scores/{score}/revisions/{revision}/{format}` no longer support part indexes for single/set of parts exports, but our own part UUIDs.
29+
* **DEPRECATED** on 2019-01-01: `GET /users/{user}/scores` will no longer list private and shared scores, but only public scores of a Flat account.
30+
31+
### API v2.5.0 to v2.5.2
32+
33+
* feat(scores): Add video & audio tracks support for scores: `/v2/scores/{score}/tracks`.
34+
* fix(user): Add missing escape in `pattern` (`UserCreation.username`).
35+
* fix(score): missing ScoreRights.aclRead type
36+
37+
## 0.5.0 (API v2.4.0)
438

539
* feat(scores): New metadata and update of `PUT /v2/scores/{score}`:
640
* Added metadata in API `subtitle`, `lyricist`, `composer`, `description`, `tags`, `creationType`, `license`, `licenseText`, `durationTime`, `numberMeasures`, `mainTempoQpm`, `publicationDate`.
741
* `PUT /v2/scores/{score}`: Remove `title` property, this one can be updated by saving a new revision of the score data.
842
* `PUT /v2/scores/{score}`: New settable properties: `description`, `tags`, `creationType`, `license`.
943

10-
## 0.4.0
44+
## 0.4.0 (API v2.3.0)
1145

1246
* feat(user): Add profile theme and instruments played.
1347
* feat(edu): Add new cursor-based pagination for `GET /v2/organizations/users` and `GET /v2/organizations/invitations`.
@@ -19,7 +53,7 @@
1953
* feat(edu): Return Canvas LMS Instance domain in classes details
2054
* feat(edu): Return Clever.com section information in classes details
2155

22-
## 0.3.0
56+
## 0.3.0 (API v2.2.0)
2357

2458
* feat(edu): Public release of the first education APIs:
2559
* `/v2/classes`: Classes management

README.md

Lines changed: 41 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,15 @@ Class | Method | HTTP request | Description
102102
*FlatApi.ClassApi* | [**listClasses**](docs/ClassApi.md#listClasses) | **GET** /classes | List the classes available for the current user
103103
*FlatApi.ClassApi* | [**unarchiveClass**](docs/ClassApi.md#unarchiveClass) | **DELETE** /classes/{class}/archive | Unarchive the class
104104
*FlatApi.ClassApi* | [**updateClass**](docs/ClassApi.md#updateClass) | **PUT** /classes/{class} | Update the class
105+
*FlatApi.CollectionApi* | [**addScoreToCollection**](docs/CollectionApi.md#addScoreToCollection) | **PUT** /collections/{collection}/scores/{score} | Add a score to the collection
106+
*FlatApi.CollectionApi* | [**createCollection**](docs/CollectionApi.md#createCollection) | **POST** /collections | Create a new collection
107+
*FlatApi.CollectionApi* | [**deleteCollection**](docs/CollectionApi.md#deleteCollection) | **DELETE** /collections/{collection} | Delete the collection
108+
*FlatApi.CollectionApi* | [**deleteScoreFromCollection**](docs/CollectionApi.md#deleteScoreFromCollection) | **DELETE** /collections/{collection}/scores/{score} | Delete a score from the collection
109+
*FlatApi.CollectionApi* | [**editCollection**](docs/CollectionApi.md#editCollection) | **PUT** /collections/{collection} | Update a collection's metadata
110+
*FlatApi.CollectionApi* | [**getCollection**](docs/CollectionApi.md#getCollection) | **GET** /collections/{collection} | Get collection details
111+
*FlatApi.CollectionApi* | [**listCollectionScores**](docs/CollectionApi.md#listCollectionScores) | **GET** /collections/{collection}/scores | List the scores contained in a collection
112+
*FlatApi.CollectionApi* | [**listCollections**](docs/CollectionApi.md#listCollections) | **GET** /collections | List the collections
113+
*FlatApi.CollectionApi* | [**untrashCollection**](docs/CollectionApi.md#untrashCollection) | **POST** /collections/{collection}/untrash | Untrash a collection
105114
*FlatApi.GroupApi* | [**getGroupDetails**](docs/GroupApi.md#getGroupDetails) | **GET** /groups/{group} | Get group information
106115
*FlatApi.GroupApi* | [**getGroupScores**](docs/GroupApi.md#getGroupScores) | **GET** /groups/{group}/scores | List group's scores
107116
*FlatApi.GroupApi* | [**listGroupUsers**](docs/GroupApi.md#listGroupUsers) | **GET** /groups/{group}/users | List group's users
@@ -116,10 +125,12 @@ Class | Method | HTTP request | Description
116125
*FlatApi.OrganizationApi* | [**revokeLtiCredentials**](docs/OrganizationApi.md#revokeLtiCredentials) | **DELETE** /organizations/lti/credentials/{credentials} | Revoke LTI 1.x credentials
117126
*FlatApi.OrganizationApi* | [**updateOrganizationUser**](docs/OrganizationApi.md#updateOrganizationUser) | **PUT** /organizations/users/{user} | Update account information
118127
*FlatApi.ScoreApi* | [**addScoreCollaborator**](docs/ScoreApi.md#addScoreCollaborator) | **POST** /scores/{score}/collaborators | Add a new collaborator
128+
*FlatApi.ScoreApi* | [**addScoreTrack**](docs/ScoreApi.md#addScoreTrack) | **POST** /scores/{score}/tracks | Add a new video or audio track to the score
119129
*FlatApi.ScoreApi* | [**createScore**](docs/ScoreApi.md#createScore) | **POST** /scores | Create a new score
120130
*FlatApi.ScoreApi* | [**createScoreRevision**](docs/ScoreApi.md#createScoreRevision) | **POST** /scores/{score}/revisions | Create a new revision
121131
*FlatApi.ScoreApi* | [**deleteScore**](docs/ScoreApi.md#deleteScore) | **DELETE** /scores/{score} | Delete a score
122132
*FlatApi.ScoreApi* | [**deleteScoreComment**](docs/ScoreApi.md#deleteScoreComment) | **DELETE** /scores/{score}/comments/{comment} | Delete a comment
133+
*FlatApi.ScoreApi* | [**deleteScoreTrack**](docs/ScoreApi.md#deleteScoreTrack) | **DELETE** /scores/{score}/tracks/{track} | Remove an audio or video track linked to the score
123134
*FlatApi.ScoreApi* | [**editScore**](docs/ScoreApi.md#editScore) | **PUT** /scores/{score} | Edit a score's metadata
124135
*FlatApi.ScoreApi* | [**forkScore**](docs/ScoreApi.md#forkScore) | **POST** /scores/{score}/fork | Fork a score
125136
*FlatApi.ScoreApi* | [**gerUserLikes**](docs/ScoreApi.md#gerUserLikes) | **GET** /users/{user}/likes | List liked scores
@@ -132,12 +143,16 @@ Class | Method | HTTP request | Description
132143
*FlatApi.ScoreApi* | [**getScoreRevisionData**](docs/ScoreApi.md#getScoreRevisionData) | **GET** /scores/{score}/revisions/{revision}/{format} | Get a score revision data
133144
*FlatApi.ScoreApi* | [**getScoreRevisions**](docs/ScoreApi.md#getScoreRevisions) | **GET** /scores/{score}/revisions | List the revisions
134145
*FlatApi.ScoreApi* | [**getScoreSubmissions**](docs/ScoreApi.md#getScoreSubmissions) | **GET** /scores/{score}/submissions | List submissions related to the score
146+
*FlatApi.ScoreApi* | [**getScoreTrack**](docs/ScoreApi.md#getScoreTrack) | **GET** /scores/{score}/tracks/{track} | Retrieve the details of an audio or video track linked to a score
135147
*FlatApi.ScoreApi* | [**getUserScores**](docs/ScoreApi.md#getUserScores) | **GET** /users/{user}/scores | List user's scores
148+
*FlatApi.ScoreApi* | [**listScoreTracks**](docs/ScoreApi.md#listScoreTracks) | **GET** /scores/{score}/tracks | List the audio or video tracks linked to a score
136149
*FlatApi.ScoreApi* | [**markScoreCommentResolved**](docs/ScoreApi.md#markScoreCommentResolved) | **PUT** /scores/{score}/comments/{comment}/resolved | Mark the comment as resolved
137150
*FlatApi.ScoreApi* | [**markScoreCommentUnresolved**](docs/ScoreApi.md#markScoreCommentUnresolved) | **DELETE** /scores/{score}/comments/{comment}/resolved | Mark the comment as unresolved
138151
*FlatApi.ScoreApi* | [**postScoreComment**](docs/ScoreApi.md#postScoreComment) | **POST** /scores/{score}/comments | Post a new comment
139152
*FlatApi.ScoreApi* | [**removeScoreCollaborator**](docs/ScoreApi.md#removeScoreCollaborator) | **DELETE** /scores/{score}/collaborators/{collaborator} | Delete a collaborator
153+
*FlatApi.ScoreApi* | [**untrashScore**](docs/ScoreApi.md#untrashScore) | **POST** /scores/{score}/untrash | Untrash a score
140154
*FlatApi.ScoreApi* | [**updateScoreComment**](docs/ScoreApi.md#updateScoreComment) | **PUT** /scores/{score}/comments/{comment} | Update an existing comment
155+
*FlatApi.ScoreApi* | [**updateScoreTrack**](docs/ScoreApi.md#updateScoreTrack) | **PUT** /scores/{score}/tracks/{track} | Update an audio or video track linked to a score
141156
*FlatApi.UserApi* | [**gerUserLikes**](docs/UserApi.md#gerUserLikes) | **GET** /users/{user}/likes | List liked scores
142157
*FlatApi.UserApi* | [**getUser**](docs/UserApi.md#getUser) | **GET** /users/{user} | Get a public user profile
143158
*FlatApi.UserApi* | [**getUserScores**](docs/UserApi.md#getUserScores) | **GET** /users/{user}/scores | List user's scores
@@ -161,6 +176,13 @@ Class | Method | HTTP request | Description
161176
- [FlatApi.ClassRoles](docs/ClassRoles.md)
162177
- [FlatApi.ClassState](docs/ClassState.md)
163178
- [FlatApi.ClassUpdate](docs/ClassUpdate.md)
179+
- [FlatApi.Collection](docs/Collection.md)
180+
- [FlatApi.CollectionCapabilities](docs/CollectionCapabilities.md)
181+
- [FlatApi.CollectionCreation](docs/CollectionCreation.md)
182+
- [FlatApi.CollectionModification](docs/CollectionModification.md)
183+
- [FlatApi.CollectionPrivacy](docs/CollectionPrivacy.md)
184+
- [FlatApi.CollectionTitle](docs/CollectionTitle.md)
185+
- [FlatApi.CollectionType](docs/CollectionType.md)
164186
- [FlatApi.FlatErrorResponse](docs/FlatErrorResponse.md)
165187
- [FlatApi.FlatLocales](docs/FlatLocales.md)
166188
- [FlatApi.GoogleClassroomCoursework](docs/GoogleClassroomCoursework.md)
@@ -178,8 +200,9 @@ Class | Method | HTTP request | Description
178200
- [FlatApi.OrganizationInvitation](docs/OrganizationInvitation.md)
179201
- [FlatApi.OrganizationInvitationCreation](docs/OrganizationInvitationCreation.md)
180202
- [FlatApi.OrganizationRoles](docs/OrganizationRoles.md)
181-
- [FlatApi.ScoreCollaborator](docs/ScoreCollaborator.md)
182-
- [FlatApi.ScoreCollaboratorCreation](docs/ScoreCollaboratorCreation.md)
203+
- [FlatApi.ResourceCollaboratorCreation](docs/ResourceCollaboratorCreation.md)
204+
- [FlatApi.ResourceRights](docs/ResourceRights.md)
205+
- [FlatApi.ResourceSharingKey](docs/ResourceSharingKey.md)
183206
- [FlatApi.ScoreComment](docs/ScoreComment.md)
184207
- [FlatApi.ScoreCommentContext](docs/ScoreCommentContext.md)
185208
- [FlatApi.ScoreCommentCreation](docs/ScoreCommentCreation.md)
@@ -197,15 +220,21 @@ Class | Method | HTTP request | Description
197220
- [FlatApi.ScoreRevision](docs/ScoreRevision.md)
198221
- [FlatApi.ScoreRevisionCreation](docs/ScoreRevisionCreation.md)
199222
- [FlatApi.ScoreRevisionStatistics](docs/ScoreRevisionStatistics.md)
200-
- [FlatApi.ScoreRights](docs/ScoreRights.md)
201223
- [FlatApi.ScoreSource](docs/ScoreSource.md)
202224
- [FlatApi.ScoreSummary](docs/ScoreSummary.md)
225+
- [FlatApi.ScoreTrack](docs/ScoreTrack.md)
226+
- [FlatApi.ScoreTrackCreation](docs/ScoreTrackCreation.md)
227+
- [FlatApi.ScoreTrackPoint](docs/ScoreTrackPoint.md)
228+
- [FlatApi.ScoreTrackState](docs/ScoreTrackState.md)
229+
- [FlatApi.ScoreTrackType](docs/ScoreTrackType.md)
230+
- [FlatApi.ScoreTrackUpdate](docs/ScoreTrackUpdate.md)
203231
- [FlatApi.ScoreViewsCounts](docs/ScoreViewsCounts.md)
204232
- [FlatApi.UserAdminUpdate](docs/UserAdminUpdate.md)
205233
- [FlatApi.UserBasics](docs/UserBasics.md)
206234
- [FlatApi.UserCreation](docs/UserCreation.md)
207235
- [FlatApi.UserDetailsAdminLicense](docs/UserDetailsAdminLicense.md)
208236
- [FlatApi.UserInstruments](docs/UserInstruments.md)
237+
- [FlatApi.ResourceCollaborator](docs/ResourceCollaborator.md)
209238
- [FlatApi.ScoreDetails](docs/ScoreDetails.md)
210239
- [FlatApi.UserPublicSummary](docs/UserPublicSummary.md)
211240
- [FlatApi.UserDetailsAdmin](docs/UserDetailsAdmin.md)
@@ -221,12 +250,15 @@ Class | Method | HTTP request | Description
221250
- **Type**: OAuth
222251
- **Flow**: accessCode
223252
- **Authorization URL**: https://flat.io/auth/oauth
224-
- **Scopes**:
225-
- account.public_profile: Provides access to the basic person's public profile. Education profiles may be anonymized with this scope, you can request the scope `education_profile` to access to the a basic education account profile.
226-
- account.education_profile: Provides access to the basic person's education profile and public organization information.
227-
- scores.readonly: Allows read-only access to all a user's scores. You won't need this scope to read public scores.
228-
- scores.social: Allow to post comments and like scores
229-
- scores: Full, permissive scope to access all of a user's scores.
253+
- **Scopes**:
254+
- account.public_profile: Provides access to the basic person's public profile. Education profiles may be anonymized with this scope, you can request the scope `education_profile` to access to the a basic education account profile.
255+
- account.education_profile: Provides access to the basic person's education profile and public organization information.
256+
- scores.readonly: Allows read-only access to all a user's scores. You won't need this scope to read public scores.
257+
- scores.social: Allow to post comments and like scores
258+
- scores: Full, permissive scope to access all of a user's scores.
259+
- collections.readonly: Allow read-only access to a user's collections.
260+
- collections.add_scores: Allow to add scores to a user's collections.
261+
- collections: Full, permissive scope to access all of a user's collections.
230262
- edu.classes: Full, permissive scope to manage the classes.
231263
- edu.classes.readonly: Read-only access to the classes.
232264
- edu.assignments: Read-write access to the assignments and submissions.

0 commit comments

Comments
 (0)