diff --git a/90.md b/90.md index 73401071..3cf162dc 100644 --- a/90.md +++ b/90.md @@ -1,19 +1,19 @@ NIP-90 ====== -Service Providers ------------------ +Data Vending Machines +--------------------- `draft` `optional` -This NIP defines listings for service providers. +This NIP defines listings for service providers, AKA "Data Vending Machines". ## Flows A flow is an independently-defined specification for how users ineract with a given service. The flow may be identified using any one of the following: -- A `NSP-XX` number, referring to a specification contained in this document, e.g. `["n", "NSP-01"]`. -- A url pointing to a web page containing a flow specification, e.g. `["n", "https://example.com/my-nsp"]`. +- A `DVM-XX` number, referring to a specification contained in this document, e.g. `["n", "DVM-01"]`. +- A url pointing to a web page containing a flow specification, e.g. `["n", "https://example.com/my-dvm"]`. - A nostr event address pointing to any event which contains a flow specification, e.g. `["n", "::"]`. Flow specifications MAY describe ANY flow, but SHOULD use nostr events as the primary means of communication between parties. Nostr events SHOULD specify the address of the `kind 31999` service announcement event when relevant, rather than the serivce provider's pubkey. Events SHOULD be posted to the recipient's inbox relays unless specified otherwise. @@ -46,6 +46,8 @@ Service Providers MAY use a `kind 31999` service announcement event to advertise Flows MAY define additional tags that should be included on service announcement events. +Note that in the past DVMs were announced using kind `31990` application handler events, as defined in [NIP-89](./89.md). Publishing and consuming these events for DVMs is not recommended, but MAY be supported for backwards compatibility. + ## Heartbeat Events Service providers MAY publish kind `1999` heartbeat events to indicate service availability. Heartbeat events MUST include an `expiration` tag. The event's `content` MAY include human-readable information about the service's current status. @@ -65,7 +67,7 @@ Service providers MAY publish kind `1999` heartbeat events to indicate service a ## Flow Specifications -### NSP-01 - Content Discovery +### DVM-01 - Content Discovery User publishes a `kind 5300` request for recommended content, including the following tags: