diff --git a/changes/changelog.d/nodeinfo-usage.doc b/changes/changelog.d/nodeinfo-usage.doc new file mode 100644 index 000000000..8b26cfd1e --- /dev/null +++ b/changes/changelog.d/nodeinfo-usage.doc @@ -0,0 +1 @@ +Updated nodeinfo spec to include usage statistics. diff --git a/docs/specs/nodeinfo21/index.md b/docs/specs/nodeinfo21/index.md index 69797822a..4927170ca 100644 --- a/docs/specs/nodeinfo21/index.md +++ b/docs/specs/nodeinfo21/index.md @@ -37,15 +37,9 @@ The NodeInfo endpoint must contain all mandatory elements listed in the specific `longDescription` (String) : A longer description of the pod -`rules` (String) -: A collection of rules users of the pod must abide by - `contactEmail` (Email address) : The email address of the pod administrator -`terms` (String) -: The terms of use associated with the pod - `nodeName`(String) : The name of the pod @@ -140,16 +134,19 @@ Example response: "activeMonth": 0 }, "localPosts": 0, - "localComments": 0 + "localComments": 0, + "listenings": 0, + "downloads": 0, + "favorites": { + "tracks": 0 + } }, "metadata": { "actorId": "string", "private": true, "shortDescription": "string", "longDescription": "string", - "rules": "string", "contactEmail": "user@example.com", - "terms": "string", "nodeName": "string", "banner": "string", "defaultUploadQuota": 0, diff --git a/docs/specs/nodeinfo21/schema.yml b/docs/specs/nodeinfo21/schema.yml index f59d1d337..0210a2593 100644 --- a/docs/specs/nodeinfo21/schema.yml +++ b/docs/specs/nodeinfo21/schema.yml @@ -444,6 +444,18 @@ components: localComments: type: integer minimum: 0 + listenings: + type: integer + minimum: 0 + downloads: + type: integer + minimum: 0 + favorites: + type: object + properties: + tracks: + type: integer + minimum: 0 metadata: type: object properties: @@ -456,13 +468,9 @@ components: type: string longDescription: type: string - rules: - type: string contactEmail: type: string format: email - terms: - type: string nodeName: type: string banner: