mirror of
https://codeberg.org/fediverse/fep.git
synced 2026-08-05 11:46:04 +00:00
FEP-0837: Update proposal (#620)
- Added `attributedTo` to Agreement. - Changed "URL" to "URI". - Added context for FEP-888d. - Updated references. - Added `type` and updated `discussionsTo`. Reviewed-on: https://codeberg.org/fediverse/fep/pulls/620 Co-authored-by: silverpill <silverpill@firemail.cc> Co-committed-by: silverpill <silverpill@firemail.cc>
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"@context": {
|
||||
"om2": "http://www.ontology-of-units-of-measure.org/resource/om-2/",
|
||||
"vf": "https://w3id.org/valueflows/ont/vf#",
|
||||
"Agreement": "vf:Agreement",
|
||||
"Commitment": "vf:Commitment",
|
||||
"Intent": "vf:Intent",
|
||||
"Proposal": "vf:Proposal",
|
||||
"action": "vf:action",
|
||||
"availableQuantity": "vf:availableQuantity",
|
||||
"hasUnit": "om2:hasUnit",
|
||||
"hasNumericalValue": "om2:hasNumericalValue",
|
||||
"purpose": "vf:purpose",
|
||||
"publishes": "vf:publishes",
|
||||
"reciprocal": "vf:reciprocal",
|
||||
"resourceConformsTo": "vf:resourceConformsTo",
|
||||
"resourceQuantity": "vf:resourceQuantity",
|
||||
"satisfies": "vf:satisfies",
|
||||
"stipulates": "vf:stipulates",
|
||||
"stipulatesReciprocal": "vf:stipulatesReciprocal",
|
||||
"unitBased": "vf:unitBased"
|
||||
}
|
||||
}
|
||||
@@ -1,10 +1,11 @@
|
||||
---
|
||||
slug: "0837"
|
||||
authors: silverpill <@silverpill@mitra.social>
|
||||
type: implementation
|
||||
status: DRAFT
|
||||
dateReceived: 2023-08-17
|
||||
trackingIssue: https://codeberg.org/fediverse/fep/issues/147
|
||||
discussionsTo: https://codeberg.org/fediverse/fep/issues/147
|
||||
discussionsTo: https://socialhub.activitypub.rocks/t/fep-0837-federated-marketplace/3501
|
||||
---
|
||||
# FEP-0837: Federated Marketplace
|
||||
|
||||
@@ -60,7 +61,7 @@ The representation of a proposal is a JSON document with the following propertie
|
||||
|
||||
The representation of an intent is a JSON document with the following properties:
|
||||
|
||||
- `id` (REQUIRED): the unique global identifier of the intent. Implementations SHOULD use URL fragments to identify intents associated with a given proposal. The RECOMMENDED fragment identifiers for primary and reciprocal intents are `primary` and `reciprocal`.
|
||||
- `id` (REQUIRED): the unique global identifier of the intent. Implementations SHOULD use URI fragments to identify intents associated with a given proposal. The RECOMMENDED fragment identifiers for primary and reciprocal intents are `primary` and `reciprocal`.
|
||||
- `type` (REQUIRED): the type of the object MUST be `Intent`.
|
||||
- `action` (REQUIRED): the type of economic transaction. The value of this property SHOULD be either `deliverService` or `transfer`.
|
||||
- `resourceConformsTo` (RECOMMENDED): the type of an economic resource. Could be any URI.
|
||||
@@ -221,7 +222,7 @@ The representation of an agreement is a JSON document with the following propert
|
||||
|
||||
**Commitments** are promised economic transactions. The representation of a commitment is a JSON document with the following properties:
|
||||
|
||||
- `id` (OPTIONAL): the unique global identifier of the commitment. This property is REQUIRED for commitments in finalized agreements. Implementations SHOULD use URL fragments to identify commitments associated with a given agreement. The RECOMMENDED fragment identifiers for commitments satisfying primary and reciprocal intents of the proposal are `primary` and `reciprocal`.
|
||||
- `id` (OPTIONAL): the unique global identifier of the commitment. This property is REQUIRED for commitments in finalized agreements. Implementations SHOULD use URI fragments to identify commitments associated with a given agreement. The RECOMMENDED fragment identifiers for commitments satisfying primary and reciprocal intents of the proposal are `primary` and `reciprocal`.
|
||||
- `type` (REQUIRED): the type of the object MUST be `Commitment`.
|
||||
- `satisfies` (REQUIRED): the reference to an intent.
|
||||
- `resourceQuantity` (REQUIRED): the amount and unit of the economic resource.
|
||||
@@ -309,6 +310,7 @@ Example:
|
||||
"result": {
|
||||
"type": "Agreement",
|
||||
"id": "https://market.example/agreements/edc374aa-e580-4a58-9404-f3e8bf8556b2",
|
||||
"attributedTo": "https://market.example/users/alice",
|
||||
"stiplulates": {
|
||||
"id": "https://market.example/agreements/edc374aa-e580-4a58-9404-f3e8bf8556b2#primary",
|
||||
"type": "Commitment",
|
||||
@@ -386,7 +388,7 @@ Example:
|
||||
|
||||
## References
|
||||
|
||||
- Christine Lemmer Webber, Jessica Tallon, [ActivityPub][ActivityPub], 2018
|
||||
- Christine Lemmer-Webber, Jessica Tallon, Erin Shepherd, Amy Guy, Evan Prodromou, [ActivityPub], 2018
|
||||
- Lynn Foster, elf Pavlik, Bob Haugen, [Valueflows][Valueflows], 2023
|
||||
- Lynn Foster, [FEP-d767: Extend ActivityPub with Valueflows][FEP-d767], 2023
|
||||
- S. Bradner, [Key words for use in RFCs to Indicate Requirement Levels][RFC-2119], 1997
|
||||
|
||||
Reference in New Issue
Block a user