aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fatcat-openapi/Cargo.toml2
-rw-r--r--fatcat-openapi/README.md4
-rw-r--r--fatcat-openapi/docs/FileEntity.md1
-rw-r--r--fatcat-openapi/docs/FilesetEntity.md1
-rw-r--r--fatcat-openapi/docs/WebcaptureEntity.md1
-rw-r--r--fatcat-openapi/src/lib.rs2
-rw-r--r--fatcat-openapi/src/models.rs45
7 files changed, 52 insertions, 4 deletions
diff --git a/fatcat-openapi/Cargo.toml b/fatcat-openapi/Cargo.toml
index 5ef0211..0595501 100644
--- a/fatcat-openapi/Cargo.toml
+++ b/fatcat-openapi/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "fatcat-openapi"
-version = "0.4.0"
+version = "0.5.0"
edition = "2018"
authors = ["Bryan Newbold <bnewbold@archive.org>"]
description = "Fatcat is an editable bibliographic database. This OpenAPI code-generated crate container HTTP API models, endpoints, and other auto-generated types useful for both client and server implementations of the catalog API."
diff --git a/fatcat-openapi/README.md b/fatcat-openapi/README.md
index c8a4276..a958a22 100644
--- a/fatcat-openapi/README.md
+++ b/fatcat-openapi/README.md
@@ -15,8 +15,8 @@ To see how to make this your own, look here:
[README]((https://openapi-generator.tech))
-- API version: 0.4.0
-- Build date: 2021-10-13T17:40:53.852359-07:00[America/Los_Angeles]
+- API version: 0.5.0
+- Build date: 2021-11-17T17:39:00.363443-08:00[America/Los_Angeles]
For more information, please visit [https://fatcat.wiki](https://fatcat.wiki)
diff --git a/fatcat-openapi/docs/FileEntity.md b/fatcat-openapi/docs/FileEntity.md
index 496e797..6789fd6 100644
--- a/fatcat-openapi/docs/FileEntity.md
+++ b/fatcat-openapi/docs/FileEntity.md
@@ -15,6 +15,7 @@ Name | Type | Description | Notes
**sha256** | **String** | SHA-256 hash of data, in hex encoding | [optional] [default to None]
**urls** | [**Vec<models::FileUrl>**](file_url.md) | | [optional] [default to None]
**mimetype** | **String** | | [optional] [default to None]
+**content_scope** | **String** | | [optional] [default to None]
**release_ids** | **Vec<String>** | Set of identifier of release entities this file represents a full manifestation of. Usually a single release, but some files contain content of multiple full releases (eg, an issue of a journal). | [optional] [default to None]
**releases** | [**Vec<models::ReleaseEntity>**](release_entity.md) | Full release entities, included in GET responses when `releases` included in `expand` parameter. Ignored if included in PUT or POST requests. | [optional] [default to None]
diff --git a/fatcat-openapi/docs/FilesetEntity.md b/fatcat-openapi/docs/FilesetEntity.md
index 14ce4bf..3108cd6 100644
--- a/fatcat-openapi/docs/FilesetEntity.md
+++ b/fatcat-openapi/docs/FilesetEntity.md
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
**redirect** | **String** | base32-encoded unique identifier | [optional] [default to None]
**extra** | [**std::collections::HashMap<String, serde_json::Value>**](AnyType.md) | Free-form JSON metadata that will be stored with the other entity metadata. See guide for (unenforced) schema conventions. | [optional] [default to None]
**edit_extra** | [**std::collections::HashMap<String, serde_json::Value>**](AnyType.md) | Free-form JSON metadata that will be stored with specific entity edits (eg, creation/update/delete). | [optional] [default to None]
+**content_scope** | **String** | | [optional] [default to None]
**manifest** | [**Vec<models::FilesetFile>**](fileset_file.md) | | [optional] [default to None]
**urls** | [**Vec<models::FilesetUrl>**](fileset_url.md) | | [optional] [default to None]
**release_ids** | **Vec<String>** | Set of identifier of release entities this fileset represents a full manifestation of. Usually a single release. | [optional] [default to None]
diff --git a/fatcat-openapi/docs/WebcaptureEntity.md b/fatcat-openapi/docs/WebcaptureEntity.md
index 64558c9..018756c 100644
--- a/fatcat-openapi/docs/WebcaptureEntity.md
+++ b/fatcat-openapi/docs/WebcaptureEntity.md
@@ -13,6 +13,7 @@ Name | Type | Description | Notes
**archive_urls** | [**Vec<models::WebcaptureUrl>**](webcapture_url.md) | | [optional] [default to None]
**original_url** | **String** | Base URL of the primary resource this is a capture of | [optional] [default to None]
**timestamp** | [**chrono::DateTime::<chrono::Utc>**](DateTime.md) | Same format as CDX line timestamp (UTC, etc). Corresponds to the overall capture timestamp. Should generally be the timestamp of capture of the primary resource URL. | [optional] [default to None]
+**content_scope** | **String** | | [optional] [default to None]
**release_ids** | **Vec<String>** | Set of identifier of release entities this fileset represents a full manifestation of. Usually a single release. | [optional] [default to None]
**releases** | [**Vec<models::ReleaseEntity>**](release_entity.md) | Full release entities, included in GET responses when `releases` included in `expand` parameter. Ignored if included in PUT or POST requests. | [optional] [default to None]
diff --git a/fatcat-openapi/src/lib.rs b/fatcat-openapi/src/lib.rs
index 8dd8e15..42b1b8c 100644
--- a/fatcat-openapi/src/lib.rs
+++ b/fatcat-openapi/src/lib.rs
@@ -17,7 +17,7 @@ use swagger::{ApiError, ContextWrapper};
type ServiceError = Box<dyn Error + Send + Sync + 'static>;
pub const BASE_PATH: &'static str = "/v0";
-pub const API_VERSION: &'static str = "0.4.0";
+pub const API_VERSION: &'static str = "0.5.0";
#[derive(Debug, PartialEq)]
#[must_use]
diff --git a/fatcat-openapi/src/models.rs b/fatcat-openapi/src/models.rs
index e418053..094d8b3 100644
--- a/fatcat-openapi/src/models.rs
+++ b/fatcat-openapi/src/models.rs
@@ -3307,6 +3307,10 @@ pub struct FileEntity {
#[serde(skip_serializing_if = "Option::is_none")]
pub mimetype: Option<String>,
+ #[serde(rename = "content_scope")]
+ #[serde(skip_serializing_if = "Option::is_none")]
+ pub content_scope: Option<String>,
+
/// Set of identifier of release entities this file represents a full manifestation of. Usually a single release, but some files contain content of multiple full releases (eg, an issue of a journal).
#[serde(rename = "release_ids")]
#[serde(skip_serializing_if = "Option::is_none")]
@@ -3333,6 +3337,7 @@ impl FileEntity {
sha256: None,
urls: None,
mimetype: None,
+ content_scope: None,
release_ids: None,
releases: None,
}
@@ -3399,6 +3404,11 @@ impl std::string::ToString for FileEntity {
params.push(mimetype.to_string());
}
+ if let Some(ref content_scope) = self.content_scope {
+ params.push("content_scope".to_string());
+ params.push(content_scope.to_string());
+ }
+
if let Some(ref release_ids) = self.release_ids {
params.push("release_ids".to_string());
params.push(
@@ -3439,6 +3449,7 @@ impl std::str::FromStr for FileEntity {
pub sha256: Vec<String>,
pub urls: Vec<Vec<models::FileUrl>>,
pub mimetype: Vec<String>,
+ pub content_scope: Vec<String>,
pub release_ids: Vec<Vec<String>>,
pub releases: Vec<Vec<models::ReleaseEntity>>,
}
@@ -3506,6 +3517,9 @@ impl std::str::FromStr for FileEntity {
"mimetype" => intermediate_rep
.mimetype
.push(String::from_str(val).map_err(|x| format!("{}", x))?),
+ "content_scope" => intermediate_rep
+ .content_scope
+ .push(String::from_str(val).map_err(|x| format!("{}", x))?),
"release_ids" => {
return std::result::Result::Err(
"Parsing a container in this style is not supported in FileEntity"
@@ -3544,6 +3558,7 @@ impl std::str::FromStr for FileEntity {
sha256: intermediate_rep.sha256.into_iter().next(),
urls: intermediate_rep.urls.into_iter().next(),
mimetype: intermediate_rep.mimetype.into_iter().next(),
+ content_scope: intermediate_rep.content_scope.into_iter().next(),
release_ids: intermediate_rep.release_ids.into_iter().next(),
releases: intermediate_rep.releases.into_iter().next(),
})
@@ -3926,6 +3941,10 @@ pub struct FilesetEntity {
#[serde(skip_serializing_if = "Option::is_none")]
pub edit_extra: Option<std::collections::HashMap<String, serde_json::Value>>,
+ #[serde(rename = "content_scope")]
+ #[serde(skip_serializing_if = "Option::is_none")]
+ pub content_scope: Option<String>,
+
#[serde(rename = "manifest")]
#[serde(skip_serializing_if = "Option::is_none")]
pub manifest: Option<Vec<models::FilesetFile>>,
@@ -3954,6 +3973,7 @@ impl FilesetEntity {
redirect: None,
extra: None,
edit_extra: None,
+ content_scope: None,
manifest: None,
urls: None,
release_ids: None,
@@ -3995,6 +4015,11 @@ impl std::string::ToString for FilesetEntity {
// Skipping edit_extra in query parameter serialization
// Skipping edit_extra in query parameter serialization
+ if let Some(ref content_scope) = self.content_scope {
+ params.push("content_scope".to_string());
+ params.push(content_scope.to_string());
+ }
+
// Skipping manifest in query parameter serialization
// Skipping urls in query parameter serialization
@@ -4033,6 +4058,7 @@ impl std::str::FromStr for FilesetEntity {
pub redirect: Vec<String>,
pub extra: Vec<std::collections::HashMap<String, serde_json::Value>>,
pub edit_extra: Vec<std::collections::HashMap<String, serde_json::Value>>,
+ pub content_scope: Vec<String>,
pub manifest: Vec<Vec<models::FilesetFile>>,
pub urls: Vec<Vec<models::FilesetUrl>>,
pub release_ids: Vec<Vec<String>>,
@@ -4081,6 +4107,9 @@ impl std::str::FromStr for FilesetEntity {
.to_string(),
)
}
+ "content_scope" => intermediate_rep
+ .content_scope
+ .push(String::from_str(val).map_err(|x| format!("{}", x))?),
"manifest" => {
return std::result::Result::Err(
"Parsing a container in this style is not supported in FilesetEntity"
@@ -4125,6 +4154,7 @@ impl std::str::FromStr for FilesetEntity {
redirect: intermediate_rep.redirect.into_iter().next(),
extra: intermediate_rep.extra.into_iter().next(),
edit_extra: intermediate_rep.edit_extra.into_iter().next(),
+ content_scope: intermediate_rep.content_scope.into_iter().next(),
manifest: intermediate_rep.manifest.into_iter().next(),
urls: intermediate_rep.urls.into_iter().next(),
release_ids: intermediate_rep.release_ids.into_iter().next(),
@@ -6983,6 +7013,10 @@ pub struct WebcaptureEntity {
#[serde(skip_serializing_if = "Option::is_none")]
pub timestamp: Option<chrono::DateTime<chrono::Utc>>,
+ #[serde(rename = "content_scope")]
+ #[serde(skip_serializing_if = "Option::is_none")]
+ pub content_scope: Option<String>,
+
/// Set of identifier of release entities this fileset represents a full manifestation of. Usually a single release.
#[serde(rename = "release_ids")]
#[serde(skip_serializing_if = "Option::is_none")]
@@ -7007,6 +7041,7 @@ impl WebcaptureEntity {
archive_urls: None,
original_url: None,
timestamp: None,
+ content_scope: None,
release_ids: None,
releases: None,
}
@@ -7057,6 +7092,11 @@ impl std::string::ToString for WebcaptureEntity {
// Skipping timestamp in query parameter serialization
+ if let Some(ref content_scope) = self.content_scope {
+ params.push("content_scope".to_string());
+ params.push(content_scope.to_string());
+ }
+
if let Some(ref release_ids) = self.release_ids {
params.push("release_ids".to_string());
params.push(
@@ -7095,6 +7135,7 @@ impl std::str::FromStr for WebcaptureEntity {
pub archive_urls: Vec<Vec<models::WebcaptureUrl>>,
pub original_url: Vec<String>,
pub timestamp: Vec<chrono::DateTime<chrono::Utc>>,
+ pub content_scope: Vec<String>,
pub release_ids: Vec<Vec<String>>,
pub releases: Vec<Vec<models::ReleaseEntity>>,
}
@@ -7152,6 +7193,9 @@ impl std::str::FromStr for WebcaptureEntity {
chrono::DateTime::<chrono::Utc>::from_str(val)
.map_err(|x| format!("{}", x))?,
),
+ "content_scope" => intermediate_rep
+ .content_scope
+ .push(String::from_str(val).map_err(|x| format!("{}", x))?),
"release_ids" => return std::result::Result::Err(
"Parsing a container in this style is not supported in WebcaptureEntity"
.to_string(),
@@ -7184,6 +7228,7 @@ impl std::str::FromStr for WebcaptureEntity {
archive_urls: intermediate_rep.archive_urls.into_iter().next(),
original_url: intermediate_rep.original_url.into_iter().next(),
timestamp: intermediate_rep.timestamp.into_iter().next(),
+ content_scope: intermediate_rep.content_scope.into_iter().next(),
release_ids: intermediate_rep.release_ids.into_iter().next(),
releases: intermediate_rep.releases.into_iter().next(),
})