diff --git a/113.md b/113.md index 85186a3..30bd60a 100644 --- a/113.md +++ b/113.md @@ -16,10 +16,10 @@ Activities MUST include a `t` tag with an activity type (defined in Appendix A). ### Activity File Activities MAY include an `r` tag, which will include a URL to the location where an activity file can be found. ### Metadata -`t` - The activity type -`r` - location of activity file (OPTIONAL) -`title` - The title of the activity -`recorded_at` - The unix timestamp (in seconds) when the activity was recorded +`t` - The activity type +`r` - location of activity file (OPTIONAL) +`title` - The title of the activity +`recorded_at` - The unix timestamp (in seconds) when the activity was recorded `encrypted` - An indication that this event is encrypted (OPTIONAL) ```json @@ -27,14 +27,14 @@ Activities MAY include an `r` tag, which will include a URL to the location wher "kind": 30100, "content": "", "tags": [ - ['title', 'Title of Activity'], - ['t', ''] - ['d', 'UUID generated by client'], - ['r', 'url to download activity file'], - ['published_at', ''], - ['updated_at', ''], - ['recorded_at', ''] - ['encrypted'] // Optional, activity file is encrypted + ["title", "Title of Activity"], + ["t", ""] + ["d", "UUID generated by client"], + ["r", "url to download activity file"], + ["published_at", ""], + ["updated_at", ""], + ["recorded_at", ""] + ["encrypted"] // Optional, activity file is encrypted ], } ``` @@ -45,11 +45,11 @@ Users will likely want a summary of a specific event (e.g. milage, time, pace, e This NIP does not attempt to describe all the different summaries that users could want, as this list will be ever evolving. Rather this event type should facilitate clients to retrieve relevant summaries for a user. #### Summary Metadata -`r` - An ID that this summary pertains to. It could be an activity ID or a user pubkey -`t` - A summary MUST include a type which clients can specifically look for. These types must be lowercase with no spaces. e.g. `sports-lib-summary` -`g` - Optional geohash of a summary -`encrypted` - Optional, if summary is encrypted. -`content` - stringified payload of the summary - the structure of which is defined by the type. +`r` - An ID that this summary pertains to. It could be an activity ID or a user pubkey +`t` - A summary MUST include a type which clients can specifically look for. These types must be lowercase with no spaces. e.g. `sports-lib-summary` +`g` - Optional geohash of a summary +`encrypted` - Optional, if summary is encrypted. +`content` - stringified payload of the summary - the structure of which is defined by the type. `unit` - Optional, defines the unit types that are present in a summary. Either `imperial | metric`. ```json @@ -57,14 +57,14 @@ This NIP does not attempt to describe all the different summaries that users cou kind: 30101, content: "JSON.stringify(summary)", tags: [ - ['d', 'UUID generated by client'], - ['r', ''], - ['t', 'general-summary'], - ['g', 'OPTIONAL geohash'], - ['unit', 'OPTIONAL imperial | metric'], - ['published_at', ''], - ['updated_at', ''] - ['encrypted'] // Optional, summary content is encrypted + ["d", "UUID generated by client"], + ["r", ""], + ["t", "general-summary"], + ["g", "OPTIONAL geohash"], + ["unit", "OPTIONAL imperial | metric"], + ["published_at", ""], + ["updated_at", ""] + ["encrypted"] // Optional, summary content is encrypted ], } ``` @@ -90,6 +90,7 @@ Examples: If a user wishes to encrypt a summary or activity, they should use the [NIP-44](NIP-44.md) encryption schema to encrypt the content being uploaded. i.e. if an activity is `encrypted` and it includes a link to an activity file to download, that activity file is encrypted via NIP-44. ## Appendix A - Activity Types +``` run trail-run hike @@ -136,4 +137,5 @@ weight-training windsurf wheelchair workout -yoga \ No newline at end of file +yoga +``` \ No newline at end of file