storage.graphql 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. "The decision of the storage provider when it acts as liaison"
  2. enum LiaisonJudgement {
  3. "Content awaits for a judgment"
  4. PENDING
  5. "Content accepted"
  6. ACCEPTED
  7. }
  8. "Manages content ids, type and storage provider decision about it"
  9. type DataObject @entity {
  10. "Content owner"
  11. owner: DataObjectOwner!
  12. "Content added at"
  13. createdInBlock: Int!
  14. "Content type id"
  15. typeId: Int!
  16. "Content size in bytes"
  17. size: BigInt!
  18. "Storage provider id of the liaison"
  19. liaison: Worker # liaison is unset until storage provider accepts or rejects the content
  20. "Storage provider as liaison judgment"
  21. liaisonJudgement: LiaisonJudgement!
  22. "IPFS content id"
  23. ipfsContentId: String!
  24. "Joystream runtime content"
  25. joystreamContentId: String!
  26. }
  27. "Owner type for storage object"
  28. union DataObjectOwner =
  29. DataObjectOwnerMember
  30. | DataObjectOwnerChannel
  31. | DataObjectOwnerDao
  32. | DataObjectOwnerCouncil
  33. | DataObjectOwnerWorkingGroup
  34. "Asset owned by a member"
  35. type DataObjectOwnerMember @variant {
  36. "Related member"
  37. member: Membership!
  38. "Variant needs to have at least one property. This value is not used."
  39. dummy: Int
  40. }
  41. "Asset owned by a channel"
  42. type DataObjectOwnerChannel @variant {
  43. "Related channel"
  44. channel: Channel!
  45. "Variant needs to have at least one property. This value is not used."
  46. dummy: Int
  47. }
  48. "Asset owned by a DAO"
  49. type DataObjectOwnerDao @variant {
  50. "DAO identifier"
  51. dao: Int!
  52. }
  53. "Asset owned by the Council"
  54. type DataObjectOwnerCouncil @variant {
  55. "Variant needs to have at least one property. This value is not used."
  56. dummy: Int
  57. }
  58. "Asset owned by a WorkingGroup"
  59. type DataObjectOwnerWorkingGroup @variant {
  60. "Working group"
  61. workingGroup: WorkingGroup!
  62. }