@@ -18,6 +18,11 @@ const reaction = descriptorForAnnouncementType(AnnouncementType.Reaction).parque
18
18
const reply = descriptorForAnnouncementType ( AnnouncementType . Reply ) . parquetSchema ;
19
19
const tombstone = descriptorForAnnouncementType ( AnnouncementType . Tombstone ) . parquetSchema ;
20
20
const update = descriptorForAnnouncementType ( AnnouncementType . Update ) . parquetSchema ;
21
+ const userAttributeSet = descriptorForAnnouncementType ( AnnouncementType . Update ) . parquetSchema ;
22
+ const dsnpContentAttributeSet = descriptorForAnnouncementType ( AnnouncementType . DSNPContentAttributeSet ) . parquetSchema ;
23
+ const externalContentAttributeSet = descriptorForAnnouncementType (
24
+ AnnouncementType . ExternalContentAttributeSet ,
25
+ ) . parquetSchema ;
21
26
22
27
const profile = descriptorForUserDataType ( UserDataType . ProfileResources ) . avroSchema ;
23
28
const publicKey = descriptorForUserDataType ( UserDataType . KeyAgreementPublicKeys ) . avroSchema ;
@@ -69,7 +74,15 @@ type AvroDeploy = {
69
74
70
75
export type Deploy = ParquetDeploy | AvroDeploy ;
71
76
72
- export type ParquetSchemaName = "broadcast" | "reaction" | "reply" | "tombstone" | "update" ;
77
+ export type ParquetSchemaName =
78
+ | "broadcast"
79
+ | "reaction"
80
+ | "reply"
81
+ | "tombstone"
82
+ | "update"
83
+ | "user-attribute-set"
84
+ | "dsnp-content-attribute-set"
85
+ | "ext-content-attribute-set" ;
73
86
export type AvroSchemaName =
74
87
| "public-key-key-agreement"
75
88
| "public-key-assertion-method"
@@ -194,6 +207,36 @@ export const schemas = new Map<SchemaName, Deploy>([
194
207
dsnpVersion : "1.3" ,
195
208
} ,
196
209
] ,
210
+ [
211
+ "user-attribute-set" ,
212
+ {
213
+ model : userAttributeSet ,
214
+ modelType : "Parquet" ,
215
+ payloadLocation : "IPFS" ,
216
+ settings : [ ] ,
217
+ dsnpVersion : "1.3" ,
218
+ } ,
219
+ ] ,
220
+ [
221
+ "dsnp-content-attribute-set" ,
222
+ {
223
+ model : dsnpContentAttributeSet ,
224
+ modelType : "Parquet" ,
225
+ payloadLocation : "IPFS" ,
226
+ settings : [ ] ,
227
+ dsnpVersion : "1.3" ,
228
+ } ,
229
+ ] ,
230
+ [
231
+ "ext-content-attribute-set" ,
232
+ {
233
+ model : externalContentAttributeSet ,
234
+ modelType : "Parquet" ,
235
+ payloadLocation : "IPFS" ,
236
+ settings : [ ] ,
237
+ dsnpVersion : "1.3" ,
238
+ } ,
239
+ ] ,
197
240
] ) ;
198
241
199
242
export const getSchema = ( name : SchemaName ) : Deploy | null => {
@@ -219,6 +262,9 @@ chainMapping[GENESIS_HASH_TESTNET_PASEO] = {
219
262
"private-connections" : { "1.2" : 10 } ,
220
263
"public-key-assertion-method" : { "1.3" : 11 } ,
221
264
"profile-resources" : { "1.3" : 570 } ,
265
+ "user-attribute-set" : { "1.3" : 579 } ,
266
+ "dsnp-content-attribute-set" : { "1.3" : 580 } ,
267
+ "ext-content-attribute-set" : { "1.3" : 581 } ,
222
268
} ;
223
269
chainMapping [ GENESIS_HASH_MAINNET ] = {
224
270
tombstone : { "1.2" : 1 } ,
@@ -232,6 +278,9 @@ chainMapping[GENESIS_HASH_MAINNET] = {
232
278
"private-connections" : { "1.2" : 10 } ,
233
279
// "public-key-assertion-method": { "1.3": TBD },
234
280
// "profile-resources": { "1.3": TBD },
281
+ // "user-attribute-set": { "1.3": TBD },
282
+ // "dsnp-content-attribute-set": { "1.3": TBD },
283
+ // "ext-content-attribute-set": { "1.3": TBD },
235
284
} ;
236
285
/*
237
286
* Schemas in "default" deployments (e.g. to a clean local node) are
0 commit comments