Files
sonr/pkl/DWN.pkl
T

98 lines
1.1 KiB
Plaintext
Raw Normal View History

@go.Package { name = "github.com/onsonr/sonr/internal/dwn/gen" }
2024-09-18 02:22:17 -04:00
module dwngen
2024-09-18 02:22:17 -04:00
import "package://pkg.pkl-lang.org/pkl-go/pkl.golang@0.5.0#/go.pkl"
typealias JSON = String
2024-10-06 20:07:24 -04:00
class JsonField extends go.Field {
structTags {
["json"] = "%{name},omitempty"
}
}
2024-09-18 02:22:17 -04:00
class Config {
2024-10-06 20:07:24 -04:00
@JsonField
2024-09-18 02:22:17 -04:00
ipfs: IPFS
2024-10-06 20:07:24 -04:00
@JsonField
2024-09-18 02:22:17 -04:00
sonr: Sonr
2024-10-06 20:07:24 -04:00
@JsonField
2024-09-19 02:04:22 -04:00
motr: Motr
2024-10-06 20:07:24 -04:00
@JsonField
2024-09-21 21:42:51 -04:00
schema: Schema
2024-10-06 20:07:24 -04:00
@JsonField
2024-09-26 15:58:49 -04:00
proxyUrl: String
2024-09-18 02:22:17 -04:00
}
class IPFS {
2024-10-06 20:07:24 -04:00
@JsonField
2024-09-18 02:22:17 -04:00
apiUrl: String
2024-10-06 20:07:24 -04:00
@JsonField
2024-09-18 02:22:17 -04:00
gatewayUrl: String
}
2024-09-19 02:04:22 -04:00
class Motr {
2024-10-06 20:07:24 -04:00
@JsonField
2024-09-19 02:04:22 -04:00
keyshare: JSON
2024-10-06 20:07:24 -04:00
@JsonField
2024-09-19 02:04:22 -04:00
address: String
2024-10-06 20:07:24 -04:00
@JsonField
2024-09-19 02:04:22 -04:00
origin: String
}
2024-09-21 21:42:51 -04:00
class Schema {
version: Int
2024-10-06 20:07:24 -04:00
@JsonField
2024-09-21 21:42:51 -04:00
account: String
2024-10-06 20:07:24 -04:00
@JsonField
2024-09-21 21:42:51 -04:00
asset: String
2024-10-06 20:07:24 -04:00
@JsonField
2024-09-21 21:42:51 -04:00
chain: String
2024-10-06 20:07:24 -04:00
@JsonField
2024-09-21 21:42:51 -04:00
credential: String
2024-10-06 20:07:24 -04:00
@JsonField
2024-09-21 21:42:51 -04:00
jwk: String
2024-10-06 20:07:24 -04:00
@JsonField
2024-09-21 21:42:51 -04:00
grant: String
2024-10-06 20:07:24 -04:00
@JsonField
2024-09-21 21:42:51 -04:00
keyshare: String
2024-10-06 20:07:24 -04:00
@JsonField
2024-09-21 21:42:51 -04:00
profile: String
}
2024-09-18 02:22:17 -04:00
class Sonr {
2024-10-06 20:07:24 -04:00
@JsonField
2024-09-18 02:22:17 -04:00
apiUrl: String
2024-10-06 20:07:24 -04:00
@JsonField
2024-09-18 02:22:17 -04:00
grpcUrl: String
2024-10-06 20:07:24 -04:00
@JsonField
2024-09-18 02:22:17 -04:00
rpcUrl: String
2024-10-06 20:07:24 -04:00
@JsonField
2024-09-18 02:22:17 -04:00
webSocketUrl: String
2024-10-06 20:07:24 -04:00
@JsonField
2024-09-19 02:04:22 -04:00
chainId: String
2024-09-18 02:22:17 -04:00
}
2024-10-06 20:07:24 -04:00