types.ts 740 B

12345678910111213141516171819202122232425262728293031323334
  1. export type MemberJson = {
  2. memberId: string
  3. rootAccount: string
  4. controllerAccount: string
  5. handle: string
  6. about?: string
  7. avatarUri?: string
  8. registeredAtTime: number
  9. }
  10. export type StorageSystemJson = {
  11. id: string
  12. blacklist: string[]
  13. storageBucketsPerBagLimit: number
  14. distributionBucketsPerBagLimit: number
  15. uploadingBlocked: boolean
  16. dataObjectFeePerMb: number | string
  17. storageBucketMaxObjectsCountLimit: number | string
  18. storageBucketMaxObjectsSizeLimit: number | string
  19. }
  20. export type WorkerJson = {
  21. workerId: string
  22. metadata?: string
  23. createdAt: number
  24. }
  25. export type WorkingGroupJson = {
  26. workers: WorkerJson[]
  27. }
  28. export type WorkingGroupsJson = {
  29. [group in 'GATEWAY' | 'STORAGE']?: WorkingGroupJson
  30. }