@blocklet/meta 1.8.33 → 1.8.35
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/lib/channel.d.ts +27 -0
- package/lib/channel.js +32 -32
- package/lib/constants.d.ts +2 -0
- package/lib/constants.js +6 -3
- package/lib/did.d.ts +10 -0
- package/lib/did.js +18 -24
- package/lib/engine.d.ts +7 -0
- package/lib/engine.js +21 -25
- package/lib/entry.d.ts +3 -0
- package/lib/entry.js +51 -64
- package/lib/extension.d.ts +10 -0
- package/lib/extension.js +78 -77
- package/lib/file.d.ts +21 -0
- package/lib/file.js +44 -39
- package/lib/fix.d.ts +33 -0
- package/lib/fix.js +218 -208
- package/lib/get-component-process-id.d.ts +5 -0
- package/lib/get-component-process-id.js +13 -14
- package/lib/has-reserved-key.d.ts +3 -0
- package/lib/has-reserved-key.js +10 -9
- package/lib/index.d.ts +82 -0
- package/lib/index.js +51 -34
- package/lib/info.d.ts +13 -0
- package/lib/info.js +58 -60
- package/lib/name.d.ts +5 -0
- package/lib/name.js +14 -7
- package/lib/nft-templates.d.ts +86 -0
- package/lib/nft-templates.js +47 -42
- package/lib/parse-navigation.d.ts +3 -0
- package/lib/parse-navigation.js +168 -209
- package/lib/parse.d.ts +22 -0
- package/lib/parse.js +71 -82
- package/lib/payment/index.d.ts +254 -0
- package/lib/payment/index.js +13 -6
- package/lib/payment/v1.d.ts +185 -0
- package/lib/payment/v1.js +80 -81
- package/lib/payment/v2.d.ts +242 -0
- package/lib/payment/v2.js +453 -531
- package/lib/schema.d.ts +50 -0
- package/lib/schema.js +405 -397
- package/lib/service-configs/auth.json +61 -61
- package/lib/service.d.ts +26 -0
- package/lib/service.js +69 -85
- package/lib/types/index.d.ts +1 -0
- package/lib/types/index.js +18 -0
- package/lib/types/schema.d.ts +241 -0
- package/lib/types/schema.js +3 -0
- package/lib/util-meta.d.ts +42 -0
- package/lib/util-meta.js +138 -158
- package/lib/util.d.ts +185 -0
- package/lib/util.js +359 -414
- package/lib/validate.d.ts +10 -0
- package/lib/validate.js +28 -34
- package/lib/verify-multi-sig.d.ts +3 -0
- package/lib/verify-multi-sig.js +94 -101
- package/lib/wallet.d.ts +9 -0
- package/lib/wallet.js +17 -27
- package/package.json +41 -18
package/lib/schema.d.ts
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import JOI from 'joi';
|
|
2
|
+
declare const titleSchema: JOI.StringSchema<string>;
|
|
3
|
+
declare const descriptionSchema: JOI.StringSchema<string>;
|
|
4
|
+
declare const logoSchema: JOI.StringSchema<string>;
|
|
5
|
+
declare const mountPointSchema: JOI.StringSchema<string>;
|
|
6
|
+
declare const blockletNameSchema: JOI.StringSchema<string>;
|
|
7
|
+
declare const environmentSchema: JOI.ObjectSchema<any>;
|
|
8
|
+
declare const scriptsSchema: JOI.ObjectSchema<any>;
|
|
9
|
+
declare const serviceSchema: JOI.ObjectSchema<any>;
|
|
10
|
+
declare const endpointSchema: JOI.ObjectSchema<any>;
|
|
11
|
+
declare const interfaceSchema: JOI.ObjectSchema<any>;
|
|
12
|
+
declare const engineSchema: JOI.ObjectSchema<any>;
|
|
13
|
+
declare const personSchema: JOI.ObjectSchema<any>;
|
|
14
|
+
declare const distSchema: JOI.ObjectSchema<any>;
|
|
15
|
+
declare const statsSchema: JOI.ObjectSchema<any>;
|
|
16
|
+
declare const componentSchema: JOI.ObjectSchema<any>;
|
|
17
|
+
declare const signatureSchema: JOI.ObjectSchema<any>;
|
|
18
|
+
declare const navigationItemSchema: JOI.ObjectSchema<any>;
|
|
19
|
+
declare const navigationSchema: JOI.ArraySchema<any[]>;
|
|
20
|
+
declare const themeSchema: JOI.ObjectSchema<any>;
|
|
21
|
+
declare const blockletMetaSchema: JOI.ObjectSchema<any>;
|
|
22
|
+
declare const createBlockletSchema: (baseDir: string, { ensureMain, ensureFiles, ensureDist, ...schemaOptions }?: {
|
|
23
|
+
ensureMain?: boolean;
|
|
24
|
+
ensureFiles?: boolean;
|
|
25
|
+
ensureDist?: boolean;
|
|
26
|
+
}) => JOI.ObjectSchema;
|
|
27
|
+
export { blockletMetaSchema, blockletNameSchema, componentSchema, createBlockletSchema, descriptionSchema, distSchema, endpointSchema, engineSchema, environmentSchema, interfaceSchema, logoSchema, mountPointSchema, navigationItemSchema, navigationSchema, personSchema, scriptsSchema, serviceSchema, signatureSchema, themeSchema, titleSchema, statsSchema, };
|
|
28
|
+
declare const _default: {
|
|
29
|
+
blockletNameSchema: JOI.StringSchema<string>;
|
|
30
|
+
componentSchema: JOI.ObjectSchema<any>;
|
|
31
|
+
endpointSchema: JOI.ObjectSchema<any>;
|
|
32
|
+
serviceSchema: JOI.ObjectSchema<any>;
|
|
33
|
+
createBlockletSchema: (baseDir: string, { ensureMain, ensureFiles, ensureDist, ...schemaOptions }?: {
|
|
34
|
+
ensureMain?: boolean;
|
|
35
|
+
ensureFiles?: boolean;
|
|
36
|
+
ensureDist?: boolean;
|
|
37
|
+
}) => JOI.ObjectSchema<any>;
|
|
38
|
+
interfaceSchema: JOI.ObjectSchema<any>;
|
|
39
|
+
environmentSchema: JOI.ObjectSchema<any>;
|
|
40
|
+
scriptsSchema: JOI.ObjectSchema<any>;
|
|
41
|
+
personSchema: JOI.ObjectSchema<any>;
|
|
42
|
+
distSchema: JOI.ObjectSchema<any>;
|
|
43
|
+
titleSchema: JOI.StringSchema<string>;
|
|
44
|
+
descriptionSchema: JOI.StringSchema<string>;
|
|
45
|
+
logoSchema: JOI.StringSchema<string>;
|
|
46
|
+
navigationSchema: JOI.ArraySchema<any[]>;
|
|
47
|
+
themeSchema: JOI.ObjectSchema<any>;
|
|
48
|
+
mountPointSchema: JOI.StringSchema<string>;
|
|
49
|
+
};
|
|
50
|
+
export default _default;
|