summaryrefslogtreecommitdiffstats
path: root/rust/fatcat-api-spec/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'rust/fatcat-api-spec/src/lib.rs')
-rw-r--r--rust/fatcat-api-spec/src/lib.rs166
1 files changed, 78 insertions, 88 deletions
diff --git a/rust/fatcat-api-spec/src/lib.rs b/rust/fatcat-api-spec/src/lib.rs
index 16b40999..c6126c9c 100644
--- a/rust/fatcat-api-spec/src/lib.rs
+++ b/rust/fatcat-api-spec/src/lib.rs
@@ -40,6 +40,8 @@ pub enum CreateContainerResponse {
BadRequest(models::ErrorResponse),
/// Not Authorized
NotAuthorized { body: models::ErrorResponse, www_authenticate: String },
+ /// Forbidden
+ Forbidden(models::ErrorResponse),
/// Not Found
NotFound(models::ErrorResponse),
/// Generic Error
@@ -54,6 +56,8 @@ pub enum CreateContainerBatchResponse {
BadRequest(models::ErrorResponse),
/// Not Authorized
NotAuthorized { body: models::ErrorResponse, www_authenticate: String },
+ /// Forbidden
+ Forbidden(models::ErrorResponse),
/// Not Found
NotFound(models::ErrorResponse),
/// Generic Error
@@ -68,6 +72,8 @@ pub enum DeleteContainerResponse {
BadRequest(models::ErrorResponse),
/// Not Authorized
NotAuthorized { body: models::ErrorResponse, www_authenticate: String },
+ /// Forbidden
+ Forbidden(models::ErrorResponse),
/// Not Found
NotFound(models::ErrorResponse),
/// Generic Error
@@ -82,6 +88,8 @@ pub enum DeleteContainerEditResponse {
BadRequest(models::ErrorResponse),
/// Not Authorized
NotAuthorized { body: models::ErrorResponse, www_authenticate: String },
+ /// Forbidden
+ Forbidden(models::ErrorResponse),
/// Not Found
NotFound(models::ErrorResponse),
/// Generic Error
@@ -94,8 +102,6 @@ pub enum GetContainerResponse {
FoundEntity(models::ContainerEntity),
/// Bad Request
BadRequest(models::ErrorResponse),
- /// Not Authorized
- NotAuthorized { body: models::ErrorResponse, www_authenticate: String },
/// Not Found
NotFound(models::ErrorResponse),
/// Generic Error
@@ -108,8 +114,6 @@ pub enum GetContainerEditResponse {
FoundEdit(models::EntityEdit),
/// Bad Request
BadRequest(models::ErrorResponse),
- /// Not Authorized
- NotAuthorized { body: models::ErrorResponse, www_authenticate: String },
/// Not Found
NotFound(models::ErrorResponse),
/// Generic Error
@@ -122,8 +126,6 @@ pub enum GetContainerHistoryResponse {
FoundEntityHistory(Vec<models::EntityHistoryEntry>),
/// Bad Request
BadRequest(models::ErrorResponse),
- /// Not Authorized
- NotAuthorized { body: models::ErrorResponse, www_authenticate: String },
/// Not Found
NotFound(models::ErrorResponse),
/// Generic Error
@@ -136,8 +138,6 @@ pub enum GetContainerRedirectsResponse {
FoundEntityRedirects(Vec<String>),
/// Bad Request
BadRequest(models::ErrorResponse),
- /// Not Authorized
- NotAuthorized { body: models::ErrorResponse, www_authenticate: String },
/// Not Found
NotFound(models::ErrorResponse),
/// Generic Error
@@ -150,8 +150,6 @@ pub enum GetContainerRevisionResponse {
FoundEntityRevision(models::ContainerEntity),
/// Bad Request
BadRequest(models::ErrorResponse),
- /// Not Authorized
- NotAuthorized { body: models::ErrorResponse, www_authenticate: String },
/// Not Found
NotFound(models::ErrorResponse),
/// Generic Error
@@ -164,8 +162,6 @@ pub enum LookupContainerResponse {
FoundEntity(models::ContainerEntity),
/// Bad Request
BadRequest(models::ErrorResponse),
- /// Not Authorized
- NotAuthorized { body: models::ErrorResponse, www_authenticate: String },
/// Not Found
NotFound(models::ErrorResponse),
/// Generic Error
@@ -180,6 +176,8 @@ pub enum UpdateContainerResponse {
BadRequest(models::ErrorResponse),
/// Not Authorized
NotAuthorized { body: models::ErrorResponse, www_authenticate: String },
+ /// Forbidden
+ Forbidden(models::ErrorResponse),
/// Not Found
NotFound(models::ErrorResponse),
/// Generic Error
@@ -194,6 +192,8 @@ pub enum CreateCreatorResponse {
BadRequest(models::ErrorResponse),
/// Not Authorized
NotAuthorized { body: models::ErrorResponse, www_authenticate: String },
+ /// Forbidden
+ Forbidden(models::ErrorResponse),
/// Not Found
NotFound(models::ErrorResponse),
/// Generic Error
@@ -208,6 +208,8 @@ pub enum CreateCreatorBatchResponse {
BadRequest(models::ErrorResponse),
/// Not Authorized
NotAuthorized { body: models::ErrorResponse, www_authenticate: String },
+ /// Forbidden
+ Forbidden(models::ErrorResponse),
/// Not Found
NotFound(models::ErrorResponse),
/// Generic Error
@@ -222,6 +224,8 @@ pub enum DeleteCreatorResponse {
BadRequest(models::ErrorResponse),
/// Not Authorized
NotAuthorized { body: models::ErrorResponse, www_authenticate: String },
+ /// Forbidden
+ Forbidden(models::ErrorResponse),
/// Not Found
NotFound(models::ErrorResponse),
/// Generic Error
@@ -236,6 +240,8 @@ pub enum DeleteCreatorEditResponse {
BadRequest(models::ErrorResponse),
/// Not Authorized
NotAuthorized { body: models::ErrorResponse, www_authenticate: String },
+ /// Forbidden
+ Forbidden(models::ErrorResponse),
/// Not Found
NotFound(models::ErrorResponse),
/// Generic Error
@@ -248,8 +254,6 @@ pub enum GetCreatorResponse {
FoundEntity(models::CreatorEntity),
/// Bad Request
BadRequest(models::ErrorResponse),
- /// Not Authorized
- NotAuthorized { body: models::ErrorResponse, www_authenticate: String },
/// Not Found
NotFound(models::ErrorResponse),
/// Generic Error
@@ -262,8 +266,6 @@ pub enum GetCreatorEditResponse {
FoundEdit(models::EntityEdit),
/// Bad Request
BadRequest(models::ErrorResponse),
- /// Not Authorized
- NotAuthorized { body: models::ErrorResponse, www_authenticate: String },
/// Not Found
NotFound(models::ErrorResponse),
/// Generic Error
@@ -276,8 +278,6 @@ pub enum GetCreatorHistoryResponse {
FoundEntityHistory(Vec<models::EntityHistoryEntry>),
/// Bad Request
BadRequest(models::ErrorResponse),
- /// Not Authorized
- NotAuthorized { body: models::ErrorResponse, www_authenticate: String },
/// Not Found
NotFound(models::ErrorResponse),
/// Generic Error
@@ -290,8 +290,6 @@ pub enum GetCreatorRedirectsResponse {
FoundEntityRedirects(Vec<String>),
/// Bad Request
BadRequest(models::ErrorResponse),
- /// Not Authorized
- NotAuthorized { body: models::ErrorResponse, www_authenticate: String },
/// Not Found
NotFound(models::ErrorResponse),
/// Generic Error
@@ -304,8 +302,6 @@ pub enum GetCreatorReleasesResponse {
Found(Vec<models::ReleaseEntity>),
/// Bad Request
BadRequest(models::ErrorResponse),
- /// Not Authorized
- NotAuthorized { body: models::ErrorResponse, www_authenticate: String },
/// Not Found
NotFound(models::ErrorResponse),
/// Generic Error
@@ -318,8 +314,6 @@ pub enum GetCreatorRevisionResponse {
FoundEntityRevision(models::CreatorEntity),
/// Bad Request
BadRequest(models::ErrorResponse),
- /// Not Authorized
- NotAuthorized { body: models::ErrorResponse, www_authenticate: String },
/// Not Found
NotFound(models::ErrorResponse),
/// Generic Error
@@ -332,8 +326,6 @@ pub enum LookupCreatorResponse {
FoundEntity(models::CreatorEntity),
/// Bad Request
BadRequest(models::ErrorResponse),
- /// Not Authorized
- NotAuthorized { body: models::ErrorResponse, www_authenticate: String },
/// Not Found
NotFound(models::ErrorResponse),
/// Generic Error
@@ -348,6 +340,8 @@ pub enum UpdateCreatorResponse {
BadRequest(models::ErrorResponse),
/// Not Authorized
NotAuthorized { body: models::ErrorResponse, www_authenticate: String },
+ /// Forbidden
+ Forbidden(models::ErrorResponse),
/// Not Found
NotFound(models::ErrorResponse),
/// Generic Error
@@ -384,6 +378,10 @@ pub enum AcceptEditgroupResponse {
MergedSuccessfully(models::Success),
/// Bad Request
BadRequest(models::ErrorResponse),
+ /// Not Authorized
+ NotAuthorized { body: models::ErrorResponse, www_authenticate: String },
+ /// Forbidden
+ Forbidden(models::ErrorResponse),
/// Not Found
NotFound(models::ErrorResponse),
/// Edit Conflict
@@ -398,6 +396,10 @@ pub enum CreateEditgroupResponse {
SuccessfullyCreated(models::Editgroup),
/// Bad Request
BadRequest(models::ErrorResponse),
+ /// Not Authorized
+ NotAuthorized { body: models::ErrorResponse, www_authenticate: String },
+ /// Forbidden
+ Forbidden(models::ErrorResponse),
/// Generic Error
GenericError(models::ErrorResponse),
}
@@ -440,6 +442,8 @@ pub enum CreateFileResponse {
BadRequest(models::ErrorResponse),
/// Not Authorized
NotAuthorized { body: models::ErrorResponse, www_authenticate: String },
+ /// Forbidden
+ Forbidden(models::ErrorResponse),
/// Not Found
NotFound(models::ErrorResponse),
/// Generic Error
@@ -454,6 +458,8 @@ pub enum CreateFileBatchResponse {
BadRequest(models::ErrorResponse),
/// Not Authorized
NotAuthorized { body: models::ErrorResponse, www_authenticate: String },
+ /// Forbidden
+ Forbidden(models::ErrorResponse),
/// Not Found
NotFound(models::ErrorResponse),
/// Generic Error
@@ -468,6 +474,8 @@ pub enum DeleteFileResponse {
BadRequest(models::ErrorResponse),
/// Not Authorized
NotAuthorized { body: models::ErrorResponse, www_authenticate: String },
+ /// Forbidden
+ Forbidden(models::ErrorResponse),
/// Not Found
NotFound(models::ErrorResponse),
/// Generic Error
@@ -482,6 +490,8 @@ pub enum DeleteFileEditResponse {
BadRequest(models::ErrorResponse),
/// Not Authorized
NotAuthorized { body: models::ErrorResponse, www_authenticate: String },
+ /// Forbidden
+ Forbidden(models::ErrorResponse),
/// Not Found
NotFound(models::ErrorResponse),
/// Generic Error
@@ -494,8 +504,6 @@ pub enum GetFileResponse {
FoundEntity(models::FileEntity),
/// Bad Request
BadRequest(models::ErrorResponse),
- /// Not Authorized
- NotAuthorized { body: models::ErrorResponse, www_authenticate: String },
/// Not Found
NotFound(models::ErrorResponse),
/// Generic Error
@@ -508,8 +516,6 @@ pub enum GetFileEditResponse {
FoundEdit(models::EntityEdit),
/// Bad Request
BadRequest(models::ErrorResponse),
- /// Not Authorized
- NotAuthorized { body: models::ErrorResponse, www_authenticate: String },
/// Not Found
NotFound(models::ErrorResponse),
/// Generic Error
@@ -522,8 +528,6 @@ pub enum GetFileHistoryResponse {
FoundEntityHistory(Vec<models::EntityHistoryEntry>),
/// Bad Request
BadRequest(models::ErrorResponse),
- /// Not Authorized
- NotAuthorized { body: models::ErrorResponse, www_authenticate: String },
/// Not Found
NotFound(models::ErrorResponse),
/// Generic Error
@@ -536,8 +540,6 @@ pub enum GetFileRedirectsResponse {
FoundEntityRedirects(Vec<String>),
/// Bad Request
BadRequest(models::ErrorResponse),
- /// Not Authorized
- NotAuthorized { body: models::ErrorResponse, www_authenticate: String },
/// Not Found
NotFound(models::ErrorResponse),
/// Generic Error
@@ -550,8 +552,6 @@ pub enum GetFileRevisionResponse {
FoundEntityRevision(models::FileEntity),
/// Bad Request
BadRequest(models::ErrorResponse),
- /// Not Authorized
- NotAuthorized { body: models::ErrorResponse, www_authenticate: String },
/// Not Found
NotFound(models::ErrorResponse),
/// Generic Error
@@ -564,8 +564,6 @@ pub enum LookupFileResponse {
FoundEntity(models::FileEntity),
/// Bad Request
BadRequest(models::ErrorResponse),
- /// Not Authorized
- NotAuthorized { body: models::ErrorResponse, www_authenticate: String },
/// Not Found
NotFound(models::ErrorResponse),
/// Generic Error
@@ -580,6 +578,8 @@ pub enum UpdateFileResponse {
BadRequest(models::ErrorResponse),
/// Not Authorized
NotAuthorized { body: models::ErrorResponse, www_authenticate: String },
+ /// Forbidden
+ Forbidden(models::ErrorResponse),
/// Not Found
NotFound(models::ErrorResponse),
/// Generic Error
@@ -594,6 +594,8 @@ pub enum CreateFilesetResponse {
BadRequest(models::ErrorResponse),
/// Not Authorized
NotAuthorized { body: models::ErrorResponse, www_authenticate: String },
+ /// Forbidden
+ Forbidden(models::ErrorResponse),
/// Not Found
NotFound(models::ErrorResponse),
/// Generic Error
@@ -608,6 +610,8 @@ pub enum CreateFilesetBatchResponse {
BadRequest(models::ErrorResponse),
/// Not Authorized
NotAuthorized { body: models::ErrorResponse, www_authenticate: String },
+ /// Forbidden
+ Forbidden(models::ErrorResponse),
/// Not Found
NotFound(models::ErrorResponse),
/// Generic Error
@@ -622,6 +626,8 @@ pub enum DeleteFilesetResponse {
BadRequest(models::ErrorResponse),
/// Not Authorized
NotAuthorized { body: models::ErrorResponse, www_authenticate: String },
+ /// Forbidden
+ Forbidden(models::ErrorResponse),
/// Not Found
NotFound(models::ErrorResponse),
/// Generic Error
@@ -636,6 +642,8 @@ pub enum DeleteFilesetEditResponse {
BadRequest(models::ErrorResponse),
/// Not Authorized
NotAuthorized { body: models::ErrorResponse, www_authenticate: String },
+ /// Forbidden
+ Forbidden(models::ErrorResponse),
/// Not Found
NotFound(models::ErrorResponse),
/// Generic Error
@@ -648,8 +656,6 @@ pub enum GetFilesetResponse {
FoundEntity(models::FilesetEntity),
/// Bad Request
BadRequest(models::ErrorResponse),
- /// Not Authorized
- NotAuthorized { body: models::ErrorResponse, www_authenticate: String },
/// Not Found
NotFound(models::ErrorResponse),
/// Generic Error
@@ -662,8 +668,6 @@ pub enum GetFilesetEditResponse {
FoundEdit(models::EntityEdit),
/// Bad Request
BadRequest(models::ErrorResponse),
- /// Not Authorized
- NotAuthorized { body: models::ErrorResponse, www_authenticate: String },
/// Not Found
NotFound(models::ErrorResponse),
/// Generic Error
@@ -676,8 +680,6 @@ pub enum GetFilesetHistoryResponse {
FoundEntityHistory(Vec<models::EntityHistoryEntry>),
/// Bad Request
BadRequest(models::ErrorResponse),
- /// Not Authorized
- NotAuthorized { body: models::ErrorResponse, www_authenticate: String },
/// Not Found
NotFound(models::ErrorResponse),
/// Generic Error
@@ -690,8 +692,6 @@ pub enum GetFilesetRedirectsResponse {
FoundEntityRedirects(Vec<String>),
/// Bad Request
BadRequest(models::ErrorResponse),
- /// Not Authorized
- NotAuthorized { body: models::ErrorResponse, www_authenticate: String },
/// Not Found
NotFound(models::ErrorResponse),
/// Generic Error
@@ -704,8 +704,6 @@ pub enum GetFilesetRevisionResponse {
FoundEntityRevision(models::FilesetEntity),
/// Bad Request
BadRequest(models::ErrorResponse),
- /// Not Authorized
- NotAuthorized { body: models::ErrorResponse, www_authenticate: String },
/// Not Found
NotFound(models::ErrorResponse),
/// Generic Error
@@ -720,6 +718,8 @@ pub enum UpdateFilesetResponse {
BadRequest(models::ErrorResponse),
/// Not Authorized
NotAuthorized { body: models::ErrorResponse, www_authenticate: String },
+ /// Forbidden
+ Forbidden(models::ErrorResponse),
/// Not Found
NotFound(models::ErrorResponse),
/// Generic Error
@@ -734,6 +734,8 @@ pub enum CreateReleaseResponse {
BadRequest(models::ErrorResponse),
/// Not Authorized
NotAuthorized { body: models::ErrorResponse, www_authenticate: String },
+ /// Forbidden
+ Forbidden(models::ErrorResponse),
/// Not Found
NotFound(models::ErrorResponse),
/// Generic Error
@@ -748,6 +750,8 @@ pub enum CreateReleaseBatchResponse {
BadRequest(models::ErrorResponse),
/// Not Authorized
NotAuthorized { body: models::ErrorResponse, www_authenticate: String },
+ /// Forbidden
+ Forbidden(models::ErrorResponse),
/// Not Found
NotFound(models::ErrorResponse),
/// Generic Error
@@ -762,6 +766,8 @@ pub enum CreateWorkResponse {
BadRequest(models::ErrorResponse),
/// Not Authorized
NotAuthorized { body: models::ErrorResponse, www_authenticate: String },
+ /// Forbidden
+ Forbidden(models::ErrorResponse),
/// Not Found
NotFound(models::ErrorResponse),
/// Generic Error
@@ -776,6 +782,8 @@ pub enum DeleteReleaseResponse {
BadRequest(models::ErrorResponse),
/// Not Authorized
NotAuthorized { body: models::ErrorResponse, www_authenticate: String },
+ /// Forbidden
+ Forbidden(models::ErrorResponse),
/// Not Found
NotFound(models::ErrorResponse),
/// Generic Error
@@ -790,6 +798,8 @@ pub enum DeleteReleaseEditResponse {
BadRequest(models::ErrorResponse),
/// Not Authorized
NotAuthorized { body: models::ErrorResponse, www_authenticate: String },
+ /// Forbidden
+ Forbidden(models::ErrorResponse),
/// Not Found
NotFound(models::ErrorResponse),
/// Generic Error
@@ -802,8 +812,6 @@ pub enum GetReleaseResponse {
FoundEntity(models::ReleaseEntity),
/// Bad Request
BadRequest(models::ErrorResponse),
- /// Not Authorized
- NotAuthorized { body: models::ErrorResponse, www_authenticate: String },
/// Not Found
NotFound(models::ErrorResponse),
/// Generic Error
@@ -816,8 +824,6 @@ pub enum GetReleaseEditResponse {
FoundEdit(models::EntityEdit),
/// Bad Request
BadRequest(models::ErrorResponse),
- /// Not Authorized
- NotAuthorized { body: models::ErrorResponse, www_authenticate: String },
/// Not Found
NotFound(models::ErrorResponse),
/// Generic Error
@@ -830,8 +836,6 @@ pub enum GetReleaseFilesResponse {
Found(Vec<models::FileEntity>),
/// Bad Request
BadRequest(models::ErrorResponse),
- /// Not Authorized
- NotAuthorized { body: models::ErrorResponse, www_authenticate: String },
/// Not Found
NotFound(models::ErrorResponse),
/// Generic Error
@@ -844,8 +848,6 @@ pub enum GetReleaseFilesetsResponse {
Found(Vec<models::FilesetEntity>),
/// Bad Request
BadRequest(models::ErrorResponse),
- /// Not Authorized
- NotAuthorized { body: models::ErrorResponse, www_authenticate: String },
/// Not Found
NotFound(models::ErrorResponse),
/// Generic Error
@@ -858,8 +860,6 @@ pub enum GetReleaseHistoryResponse {
FoundEntityHistory(Vec<models::EntityHistoryEntry>),
/// Bad Request
BadRequest(models::ErrorResponse),
- /// Not Authorized
- NotAuthorized { body: models::ErrorResponse, www_authenticate: String },
/// Not Found
NotFound(models::ErrorResponse),
/// Generic Error
@@ -872,8 +872,6 @@ pub enum GetReleaseRedirectsResponse {
FoundEntityRedirects(Vec<String>),
/// Bad Request
BadRequest(models::ErrorResponse),
- /// Not Authorized
- NotAuthorized { body: models::ErrorResponse, www_authenticate: String },
/// Not Found
NotFound(models::ErrorResponse),
/// Generic Error
@@ -886,8 +884,6 @@ pub enum GetReleaseRevisionResponse {
FoundEntityRevision(models::ReleaseEntity),
/// Bad Request
BadRequest(models::ErrorResponse),
- /// Not Authorized
- NotAuthorized { body: models::ErrorResponse, www_authenticate: String },
/// Not Found
NotFound(models::ErrorResponse),
/// Generic Error
@@ -900,8 +896,6 @@ pub enum GetReleaseWebcapturesResponse {
Found(Vec<models::WebcaptureEntity>),
/// Bad Request
BadRequest(models::ErrorResponse),
- /// Not Authorized
- NotAuthorized { body: models::ErrorResponse, www_authenticate: String },
/// Not Found
NotFound(models::ErrorResponse),
/// Generic Error
@@ -914,8 +908,6 @@ pub enum LookupReleaseResponse {
FoundEntity(models::ReleaseEntity),
/// Bad Request
BadRequest(models::ErrorResponse),
- /// Not Authorized
- NotAuthorized { body: models::ErrorResponse, www_authenticate: String },
/// Not Found
NotFound(models::ErrorResponse),
/// Generic Error
@@ -930,6 +922,8 @@ pub enum UpdateReleaseResponse {
BadRequest(models::ErrorResponse),
/// Not Authorized
NotAuthorized { body: models::ErrorResponse, www_authenticate: String },
+ /// Forbidden
+ Forbidden(models::ErrorResponse),
/// Not Found
NotFound(models::ErrorResponse),
/// Generic Error
@@ -944,6 +938,8 @@ pub enum CreateWebcaptureResponse {
BadRequest(models::ErrorResponse),
/// Not Authorized
NotAuthorized { body: models::ErrorResponse, www_authenticate: String },
+ /// Forbidden
+ Forbidden(models::ErrorResponse),
/// Not Found
NotFound(models::ErrorResponse),
/// Generic Error
@@ -958,6 +954,8 @@ pub enum CreateWebcaptureBatchResponse {
BadRequest(models::ErrorResponse),
/// Not Authorized
NotAuthorized { body: models::ErrorResponse, www_authenticate: String },
+ /// Forbidden
+ Forbidden(models::ErrorResponse),
/// Not Found
NotFound(models::ErrorResponse),
/// Generic Error
@@ -972,6 +970,8 @@ pub enum DeleteWebcaptureResponse {
BadRequest(models::ErrorResponse),
/// Not Authorized
NotAuthorized { body: models::ErrorResponse, www_authenticate: String },
+ /// Forbidden
+ Forbidden(models::ErrorResponse),
/// Not Found
NotFound(models::ErrorResponse),
/// Generic Error
@@ -986,6 +986,8 @@ pub enum DeleteWebcaptureEditResponse {
BadRequest(models::ErrorResponse),
/// Not Authorized
NotAuthorized { body: models::ErrorResponse, www_authenticate: String },
+ /// Forbidden
+ Forbidden(models::ErrorResponse),
/// Not Found
NotFound(models::ErrorResponse),
/// Generic Error
@@ -998,8 +1000,6 @@ pub enum GetWebcaptureResponse {
FoundEntity(models::WebcaptureEntity),
/// Bad Request
BadRequest(models::ErrorResponse),
- /// Not Authorized
- NotAuthorized { body: models::ErrorResponse, www_authenticate: String },
/// Not Found
NotFound(models::ErrorResponse),
/// Generic Error
@@ -1012,8 +1012,6 @@ pub enum GetWebcaptureEditResponse {
FoundEdit(models::EntityEdit),
/// Bad Request
BadRequest(models::ErrorResponse),
- /// Not Authorized
- NotAuthorized { body: models::ErrorResponse, www_authenticate: String },
/// Not Found
NotFound(models::ErrorResponse),
/// Generic Error
@@ -1026,8 +1024,6 @@ pub enum GetWebcaptureHistoryResponse {
FoundEntityHistory(Vec<models::EntityHistoryEntry>),
/// Bad Request
BadRequest(models::ErrorResponse),
- /// Not Authorized
- NotAuthorized { body: models::ErrorResponse, www_authenticate: String },
/// Not Found
NotFound(models::ErrorResponse),
/// Generic Error
@@ -1040,8 +1036,6 @@ pub enum GetWebcaptureRedirectsResponse {
FoundEntityRedirects(Vec<String>),
/// Bad Request
BadRequest(models::ErrorResponse),
- /// Not Authorized
- NotAuthorized { body: models::ErrorResponse, www_authenticate: String },
/// Not Found
NotFound(models::ErrorResponse),
/// Generic Error
@@ -1054,8 +1048,6 @@ pub enum GetWebcaptureRevisionResponse {
FoundEntityRevision(models::WebcaptureEntity),
/// Bad Request
BadRequest(models::ErrorResponse),
- /// Not Authorized
- NotAuthorized { body: models::ErrorResponse, www_authenticate: String },
/// Not Found
NotFound(models::ErrorResponse),
/// Generic Error
@@ -1070,6 +1062,8 @@ pub enum UpdateWebcaptureResponse {
BadRequest(models::ErrorResponse),
/// Not Authorized
NotAuthorized { body: models::ErrorResponse, www_authenticate: String },
+ /// Forbidden
+ Forbidden(models::ErrorResponse),
/// Not Found
NotFound(models::ErrorResponse),
/// Generic Error
@@ -1084,6 +1078,8 @@ pub enum CreateWorkBatchResponse {
BadRequest(models::ErrorResponse),
/// Not Authorized
NotAuthorized { body: models::ErrorResponse, www_authenticate: String },
+ /// Forbidden
+ Forbidden(models::ErrorResponse),
/// Not Found
NotFound(models::ErrorResponse),
/// Generic Error
@@ -1098,6 +1094,8 @@ pub enum DeleteWorkResponse {
BadRequest(models::ErrorResponse),
/// Not Authorized
NotAuthorized { body: models::ErrorResponse, www_authenticate: String },
+ /// Forbidden
+ Forbidden(models::ErrorResponse),
/// Not Found
NotFound(models::ErrorResponse),
/// Generic Error
@@ -1112,6 +1110,8 @@ pub enum DeleteWorkEditResponse {
BadRequest(models::ErrorResponse),
/// Not Authorized
NotAuthorized { body: models::ErrorResponse, www_authenticate: String },
+ /// Forbidden
+ Forbidden(models::ErrorResponse),
/// Not Found
NotFound(models::ErrorResponse),
/// Generic Error
@@ -1124,8 +1124,6 @@ pub enum GetWorkResponse {
FoundEntity(models::WorkEntity),
/// Bad Request
BadRequest(models::ErrorResponse),
- /// Not Authorized
- NotAuthorized { body: models::ErrorResponse, www_authenticate: String },
/// Not Found
NotFound(models::ErrorResponse),
/// Generic Error
@@ -1138,8 +1136,6 @@ pub enum GetWorkEditResponse {
FoundEdit(models::EntityEdit),
/// Bad Request
BadRequest(models::ErrorResponse),
- /// Not Authorized
- NotAuthorized { body: models::ErrorResponse, www_authenticate: String },
/// Not Found
NotFound(models::ErrorResponse),
/// Generic Error
@@ -1152,8 +1148,6 @@ pub enum GetWorkHistoryResponse {
FoundEntityHistory(Vec<models::EntityHistoryEntry>),
/// Bad Request
BadRequest(models::ErrorResponse),
- /// Not Authorized
- NotAuthorized { body: models::ErrorResponse, www_authenticate: String },
/// Not Found
NotFound(models::ErrorResponse),
/// Generic Error
@@ -1166,8 +1160,6 @@ pub enum GetWorkRedirectsResponse {
FoundEntityRedirects(Vec<String>),
/// Bad Request
BadRequest(models::ErrorResponse),
- /// Not Authorized
- NotAuthorized { body: models::ErrorResponse, www_authenticate: String },
/// Not Found
NotFound(models::ErrorResponse),
/// Generic Error
@@ -1180,8 +1172,6 @@ pub enum GetWorkReleasesResponse {
Found(Vec<models::ReleaseEntity>),
/// Bad Request
BadRequest(models::ErrorResponse),
- /// Not Authorized
- NotAuthorized { body: models::ErrorResponse, www_authenticate: String },
/// Not Found
NotFound(models::ErrorResponse),
/// Generic Error
@@ -1194,8 +1184,6 @@ pub enum GetWorkRevisionResponse {
FoundEntityRevision(models::WorkEntity),
/// Bad Request
BadRequest(models::ErrorResponse),
- /// Not Authorized
- NotAuthorized { body: models::ErrorResponse, www_authenticate: String },
/// Not Found
NotFound(models::ErrorResponse),
/// Generic Error
@@ -1210,6 +1198,8 @@ pub enum UpdateWorkResponse {
BadRequest(models::ErrorResponse),
/// Not Authorized
NotAuthorized { body: models::ErrorResponse, www_authenticate: String },
+ /// Forbidden
+ Forbidden(models::ErrorResponse),
/// Not Found
NotFound(models::ErrorResponse),
/// Generic Error