@snapshot-labs/snapshot.js 0.11.33 → 0.11.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +17 -0
- package/dist/schemas/index.d.ts +17 -0
- package/dist/sign/types.d.ts +3 -0
- package/dist/snapshot.cjs.js +24 -1
- package/dist/snapshot.esm.js +24 -1
- package/dist/snapshot.min.js +1 -1
- package/package.json +1 -1
- package/src/schemas/statement.json +17 -0
- package/src/sign/hashedTypes.json +1 -0
- package/src/sign/types.ts +7 -1
package/dist/index.d.ts
CHANGED
|
@@ -593,6 +593,23 @@ declare const _default: {
|
|
|
593
593
|
title: string;
|
|
594
594
|
maxLength: number;
|
|
595
595
|
};
|
|
596
|
+
discourse: {
|
|
597
|
+
type: string;
|
|
598
|
+
title: string;
|
|
599
|
+
pattern: string;
|
|
600
|
+
maxLength: number;
|
|
601
|
+
minLength: number;
|
|
602
|
+
};
|
|
603
|
+
network: {
|
|
604
|
+
type: string;
|
|
605
|
+
title: string;
|
|
606
|
+
pattern: string;
|
|
607
|
+
maxLength: number;
|
|
608
|
+
};
|
|
609
|
+
status: {
|
|
610
|
+
enum: string[];
|
|
611
|
+
title: string;
|
|
612
|
+
};
|
|
596
613
|
};
|
|
597
614
|
required: string[];
|
|
598
615
|
additionalProperties: boolean;
|
package/dist/schemas/index.d.ts
CHANGED
|
@@ -589,6 +589,23 @@ declare const _default: {
|
|
|
589
589
|
title: string;
|
|
590
590
|
maxLength: number;
|
|
591
591
|
};
|
|
592
|
+
discourse: {
|
|
593
|
+
type: string;
|
|
594
|
+
title: string;
|
|
595
|
+
pattern: string;
|
|
596
|
+
maxLength: number;
|
|
597
|
+
minLength: number;
|
|
598
|
+
};
|
|
599
|
+
network: {
|
|
600
|
+
type: string;
|
|
601
|
+
title: string;
|
|
602
|
+
pattern: string;
|
|
603
|
+
maxLength: number;
|
|
604
|
+
};
|
|
605
|
+
status: {
|
|
606
|
+
enum: string[];
|
|
607
|
+
title: string;
|
|
608
|
+
};
|
|
592
609
|
};
|
|
593
610
|
required: string[];
|
|
594
611
|
additionalProperties: boolean;
|
package/dist/sign/types.d.ts
CHANGED
package/dist/snapshot.cjs.js
CHANGED
|
@@ -300,7 +300,10 @@ var statementTypes = {
|
|
|
300
300
|
{ name: 'timestamp', type: 'uint64' },
|
|
301
301
|
{ name: 'space', type: 'string' },
|
|
302
302
|
{ name: 'about', type: 'string' },
|
|
303
|
-
{ name: 'statement', type: 'string' }
|
|
303
|
+
{ name: 'statement', type: 'string' },
|
|
304
|
+
{ name: 'discourse', type: 'string' },
|
|
305
|
+
{ name: 'status', type: 'string' },
|
|
306
|
+
{ name: 'network', type: 'string' }
|
|
304
307
|
]
|
|
305
308
|
};
|
|
306
309
|
var aliasTypes = {
|
|
@@ -1321,6 +1324,26 @@ var definitions$5 = {
|
|
|
1321
1324
|
format: "long",
|
|
1322
1325
|
title: "Statement",
|
|
1323
1326
|
maxLength: 10000
|
|
1327
|
+
},
|
|
1328
|
+
discourse: {
|
|
1329
|
+
type: "string",
|
|
1330
|
+
title: "discourse",
|
|
1331
|
+
pattern: "^[A-Za-z0-9-_.]*$",
|
|
1332
|
+
maxLength: 30,
|
|
1333
|
+
minLength: 3
|
|
1334
|
+
},
|
|
1335
|
+
network: {
|
|
1336
|
+
type: "string",
|
|
1337
|
+
title: "network",
|
|
1338
|
+
pattern: "^[a-z0-9-]*$",
|
|
1339
|
+
maxLength: 24
|
|
1340
|
+
},
|
|
1341
|
+
status: {
|
|
1342
|
+
"enum": [
|
|
1343
|
+
"active",
|
|
1344
|
+
"inactive"
|
|
1345
|
+
],
|
|
1346
|
+
title: "status"
|
|
1324
1347
|
}
|
|
1325
1348
|
},
|
|
1326
1349
|
required: [
|
package/dist/snapshot.esm.js
CHANGED
|
@@ -290,7 +290,10 @@ var statementTypes = {
|
|
|
290
290
|
{ name: 'timestamp', type: 'uint64' },
|
|
291
291
|
{ name: 'space', type: 'string' },
|
|
292
292
|
{ name: 'about', type: 'string' },
|
|
293
|
-
{ name: 'statement', type: 'string' }
|
|
293
|
+
{ name: 'statement', type: 'string' },
|
|
294
|
+
{ name: 'discourse', type: 'string' },
|
|
295
|
+
{ name: 'status', type: 'string' },
|
|
296
|
+
{ name: 'network', type: 'string' }
|
|
294
297
|
]
|
|
295
298
|
};
|
|
296
299
|
var aliasTypes = {
|
|
@@ -1311,6 +1314,26 @@ var definitions$5 = {
|
|
|
1311
1314
|
format: "long",
|
|
1312
1315
|
title: "Statement",
|
|
1313
1316
|
maxLength: 10000
|
|
1317
|
+
},
|
|
1318
|
+
discourse: {
|
|
1319
|
+
type: "string",
|
|
1320
|
+
title: "discourse",
|
|
1321
|
+
pattern: "^[A-Za-z0-9-_.]*$",
|
|
1322
|
+
maxLength: 30,
|
|
1323
|
+
minLength: 3
|
|
1324
|
+
},
|
|
1325
|
+
network: {
|
|
1326
|
+
type: "string",
|
|
1327
|
+
title: "network",
|
|
1328
|
+
pattern: "^[a-z0-9-]*$",
|
|
1329
|
+
maxLength: 24
|
|
1330
|
+
},
|
|
1331
|
+
status: {
|
|
1332
|
+
"enum": [
|
|
1333
|
+
"active",
|
|
1334
|
+
"inactive"
|
|
1335
|
+
],
|
|
1336
|
+
title: "status"
|
|
1314
1337
|
}
|
|
1315
1338
|
},
|
|
1316
1339
|
required: [
|