@dcl/schemas 2.2.1-20211117160633.commit-6479aa8 → 2.2.2-20211125150359.commit-1d0a8ae
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/dapps/bid.js +16 -16
- package/dist/dapps/bid.js.map +1 -1
- package/dist/dapps/body-shape.js +2 -2
- package/dist/dapps/body-shape.js.map +1 -1
- package/dist/dapps/chain-id.js +2 -2
- package/dist/dapps/chain-id.js.map +1 -1
- package/dist/dapps/chain-name.js +2 -2
- package/dist/dapps/chain-name.js.map +1 -1
- package/dist/dapps/collection.js +13 -13
- package/dist/dapps/collection.js.map +1 -1
- package/dist/dapps/contract.js +5 -5
- package/dist/dapps/contract.js.map +1 -1
- package/dist/dapps/item.d.ts.map +1 -1
- package/dist/dapps/item.js +19 -19
- package/dist/dapps/item.js.map +1 -1
- package/dist/dapps/listing-status.js +2 -2
- package/dist/dapps/listing-status.js.map +1 -1
- package/dist/dapps/meta-transactions.d.ts.map +1 -1
- package/dist/dapps/meta-transactions.js +4 -4
- package/dist/dapps/meta-transactions.js.map +1 -1
- package/dist/dapps/mint.js +14 -14
- package/dist/dapps/mint.js.map +1 -1
- package/dist/dapps/network.js +2 -2
- package/dist/dapps/network.js.map +1 -1
- package/dist/dapps/nft-category.js +2 -2
- package/dist/dapps/nft-category.js.map +1 -1
- package/dist/dapps/nft.js +44 -44
- package/dist/dapps/nft.js.map +1 -1
- package/dist/dapps/order.js +13 -13
- package/dist/dapps/order.js.map +1 -1
- package/dist/dapps/rarity.js +5 -5
- package/dist/dapps/rarity.js.map +1 -1
- package/dist/dapps/sale-type.js +2 -2
- package/dist/dapps/sale-type.js.map +1 -1
- package/dist/dapps/sale.js +13 -13
- package/dist/dapps/sale.js.map +1 -1
- package/dist/dapps/wearable-category.js +2 -2
- package/dist/dapps/wearable-category.js.map +1 -1
- package/dist/dapps/wearable-gender.js +2 -2
- package/dist/dapps/wearable-gender.js.map +1 -1
- package/dist/dapps/world.d.ts +1 -1
- package/dist/dapps/world.d.ts.map +1 -1
- package/dist/dapps/world.js +23 -23
- package/dist/dapps/world.js.map +1 -1
- package/dist/index.d.ts +4 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +15 -1
- package/dist/index.js.map +1 -1
- package/dist/misc/index.d.ts +1 -1
- package/dist/misc/index.d.ts.map +1 -1
- package/dist/misc/index.js +4 -4
- package/dist/misc/index.js.map +1 -1
- package/dist/platform/profile/avatar.d.ts +2 -2
- package/dist/platform/profile/avatar.d.ts.map +1 -1
- package/dist/platform/profile/avatar.js +13 -6
- package/dist/platform/profile/avatar.js.map +1 -1
- package/dist/platform/profile/profile.d.ts +2 -2
- package/dist/platform/profile/profile.d.ts.map +1 -1
- package/dist/platform/profile/profile.js +1 -1
- package/dist/platform/profile/profile.js.map +1 -1
- package/dist/platform/scene/feature-toggles.d.ts +1 -1
- package/dist/platform/scene/feature-toggles.d.ts.map +1 -1
- package/dist/platform/scene/feature-toggles.js +3 -3
- package/dist/platform/scene/feature-toggles.js.map +1 -1
- package/dist/platform/scene/scene-parcels.d.ts +1 -1
- package/dist/platform/scene/scene-parcels.d.ts.map +1 -1
- package/dist/platform/scene/scene-parcels.js +12 -11
- package/dist/platform/scene/scene-parcels.js.map +1 -1
- package/dist/platform/scene/scene.d.ts +5 -5
- package/dist/platform/scene/scene.d.ts.map +1 -1
- package/dist/platform/scene/scene.js +40 -40
- package/dist/platform/scene/scene.js.map +1 -1
- package/dist/platform/scene/source.d.ts +2 -2
- package/dist/platform/scene/source.d.ts.map +1 -1
- package/dist/platform/scene/source.js +22 -22
- package/dist/platform/scene/source.js.map +1 -1
- package/dist/platform/scene/spawn-point.d.ts +1 -1
- package/dist/platform/scene/spawn-point.d.ts.map +1 -1
- package/dist/platform/scene/spawn-point.js +32 -35
- package/dist/platform/scene/spawn-point.js.map +1 -1
- package/dist/platform/wearables/i18n.d.ts.map +1 -1
- package/dist/platform/wearables/i18n.js +4 -4
- package/dist/platform/wearables/i18n.js.map +1 -1
- package/dist/platform/wearables/locale.d.ts.map +1 -1
- package/dist/platform/wearables/locale.js +2 -2
- package/dist/platform/wearables/locale.js.map +1 -1
- package/dist/platform/wearables/metrics.d.ts.map +1 -1
- package/dist/platform/wearables/metrics.js +16 -9
- package/dist/platform/wearables/metrics.js.map +1 -1
- package/dist/platform/wearables/representation.d.ts.map +1 -1
- package/dist/platform/wearables/representation.js +10 -4
- package/dist/platform/wearables/representation.js.map +1 -1
- package/dist/platform/wearables/wearable-body-shape.d.ts.map +1 -1
- package/dist/platform/wearables/wearable-body-shape.js +2 -2
- package/dist/platform/wearables/wearable-body-shape.js.map +1 -1
- package/dist/platform/wearables/wearable.d.ts.map +1 -1
- package/dist/platform/wearables/wearable.js +7 -7
- package/dist/platform/wearables/wearable.js.map +1 -1
- package/dist/schemas.d.ts +97 -3
- package/dist/sdk/index.d.ts +3 -0
- package/dist/sdk/index.d.ts.map +1 -0
- package/dist/sdk/index.js +15 -0
- package/dist/sdk/index.js.map +1 -0
- package/dist/sdk/project/asset-json.d.ts +22 -0
- package/dist/sdk/project/asset-json.d.ts.map +1 -0
- package/dist/sdk/project/asset-json.js +45 -0
- package/dist/sdk/project/asset-json.js.map +1 -0
- package/dist/sdk/project/asset-wearable-gender.d.ts +11 -0
- package/dist/sdk/project/asset-wearable-gender.d.ts.map +1 -0
- package/dist/sdk/project/asset-wearable-gender.js +18 -0
- package/dist/sdk/project/asset-wearable-gender.js.map +1 -0
- package/dist/sdk/project/index.d.ts +3 -0
- package/dist/sdk/project/index.d.ts.map +1 -0
- package/dist/sdk/project/index.js +15 -0
- package/dist/sdk/project/index.js.map +1 -0
- package/dist/sdk/project/type.d.ts +11 -0
- package/dist/sdk/project/type.d.ts.map +1 -0
- package/dist/sdk/project/type.js +20 -0
- package/dist/sdk/project/type.js.map +1 -0
- package/dist/sdk/ws/index.d.ts +9 -0
- package/dist/sdk/ws/index.d.ts.map +1 -0
- package/dist/sdk/ws/index.js +15 -0
- package/dist/sdk/ws/index.js.map +1 -0
- package/dist/sdk/ws/scene-update.d.ts +17 -0
- package/dist/sdk/ws/scene-update.d.ts.map +1 -0
- package/dist/sdk/ws/scene-update.js +35 -0
- package/dist/sdk/ws/scene-update.js.map +1 -0
- package/dist/sdk/ws/update.d.ts +13 -0
- package/dist/sdk/ws/update.d.ts.map +1 -0
- package/dist/sdk/ws/update.js +22 -0
- package/dist/sdk/ws/update.js.map +1 -0
- package/dist/tsdoc-metadata.json +1 -1
- package/dist/validation.d.ts +2 -2
- package/dist/validation.d.ts.map +1 -1
- package/dist/validation.js.map +1 -1
- package/package.json +6 -3
|
@@ -6,63 +6,60 @@ const validation_1 = require("../../validation");
|
|
|
6
6
|
var SpawnPoint;
|
|
7
7
|
(function (SpawnPoint) {
|
|
8
8
|
SpawnPoint.schema = {
|
|
9
|
-
type:
|
|
9
|
+
type: 'object',
|
|
10
10
|
properties: {
|
|
11
11
|
name: {
|
|
12
|
-
type:
|
|
13
|
-
nullable: true
|
|
12
|
+
type: 'string',
|
|
13
|
+
nullable: true
|
|
14
14
|
},
|
|
15
15
|
position: {
|
|
16
|
-
type:
|
|
17
|
-
oneOf: [
|
|
18
|
-
{ $ref: "#single-position" },
|
|
19
|
-
{ $ref: "#multi-position" }
|
|
20
|
-
],
|
|
16
|
+
type: 'object',
|
|
17
|
+
oneOf: [{ $ref: '#single-position' }, { $ref: '#multi-position' }],
|
|
21
18
|
required: ['x', 'y', 'z']
|
|
22
19
|
},
|
|
23
20
|
default: {
|
|
24
|
-
type:
|
|
25
|
-
nullable: true
|
|
21
|
+
type: 'boolean',
|
|
22
|
+
nullable: true
|
|
26
23
|
},
|
|
27
24
|
cameraTarget: {
|
|
28
|
-
type:
|
|
25
|
+
type: 'object',
|
|
29
26
|
properties: {
|
|
30
|
-
x: { type:
|
|
31
|
-
y: { type:
|
|
32
|
-
z: { type:
|
|
27
|
+
x: { type: 'number' },
|
|
28
|
+
y: { type: 'number' },
|
|
29
|
+
z: { type: 'number' }
|
|
33
30
|
},
|
|
34
31
|
additionalProperties: false,
|
|
35
|
-
required: [
|
|
36
|
-
nullable: true
|
|
37
|
-
}
|
|
32
|
+
required: ['x', 'y', 'z'],
|
|
33
|
+
nullable: true
|
|
34
|
+
}
|
|
38
35
|
},
|
|
39
36
|
additionalProperties: false,
|
|
40
|
-
required: [
|
|
37
|
+
required: ['position'],
|
|
41
38
|
definitions: {
|
|
42
|
-
|
|
43
|
-
$id:
|
|
44
|
-
type:
|
|
39
|
+
'single-position': {
|
|
40
|
+
$id: '#single-position',
|
|
41
|
+
type: 'object',
|
|
45
42
|
properties: {
|
|
46
|
-
x: { type:
|
|
47
|
-
y: { type:
|
|
48
|
-
z: { type:
|
|
43
|
+
x: { type: 'number' },
|
|
44
|
+
y: { type: 'number' },
|
|
45
|
+
z: { type: 'number' }
|
|
49
46
|
},
|
|
50
47
|
additionalProperties: false,
|
|
51
|
-
required: [
|
|
48
|
+
required: ['x', 'y', 'z']
|
|
52
49
|
},
|
|
53
|
-
|
|
54
|
-
$id:
|
|
55
|
-
type:
|
|
50
|
+
'multi-position': {
|
|
51
|
+
$id: '#multi-position',
|
|
52
|
+
type: 'object',
|
|
56
53
|
properties: {
|
|
57
|
-
x: { type:
|
|
58
|
-
y: { type:
|
|
59
|
-
z: { type:
|
|
54
|
+
x: { type: 'array', items: { type: 'number' }, minItems: 1 },
|
|
55
|
+
y: { type: 'array', items: { type: 'number' }, minItems: 1 },
|
|
56
|
+
z: { type: 'array', items: { type: 'number' }, minItems: 1 }
|
|
60
57
|
},
|
|
61
58
|
additionalProperties: false,
|
|
62
|
-
required: [
|
|
63
|
-
}
|
|
64
|
-
}
|
|
59
|
+
required: ['x', 'y', 'z']
|
|
60
|
+
}
|
|
61
|
+
}
|
|
65
62
|
};
|
|
66
|
-
SpawnPoint.validate = validation_1.generateValidator(SpawnPoint.schema);
|
|
63
|
+
SpawnPoint.validate = (0, validation_1.generateValidator)(SpawnPoint.schema);
|
|
67
64
|
})(SpawnPoint = exports.SpawnPoint || (exports.SpawnPoint = {}));
|
|
68
65
|
//# sourceMappingURL=spawn-point.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spawn-point.js","sourceRoot":"","sources":["../../../src/platform/scene/spawn-point.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"spawn-point.js","sourceRoot":"","sources":["../../../src/platform/scene/spawn-point.ts"],"names":[],"mappings":";;;AAAA,iDAIyB;AAqBzB,aAAa;AACb,IAAiB,UAAU,CA2D1B;AA3DD,WAAiB,UAAU;IACZ,iBAAM,GAA2B;QAC5C,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;aACf;YACD,QAAQ,EAAE;gBACR,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,EAAE,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC;gBAClE,QAAQ,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;aAC1B;YACD,OAAO,EAAE;gBACP,IAAI,EAAE,SAAS;gBACf,QAAQ,EAAE,IAAI;aACf;YACD,YAAY,EAAE;gBACZ,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,CAAC,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;oBACrB,CAAC,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;oBACrB,CAAC,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;iBACtB;gBACD,oBAAoB,EAAE,KAAK;gBAC3B,QAAQ,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;gBACzB,QAAQ,EAAE,IAAI;aACf;SACF;QACD,oBAAoB,EAAE,KAAK;QAC3B,QAAQ,EAAE,CAAC,UAAU,CAAC;QACtB,WAAW,EAAE;YACX,iBAAiB,EAAE;gBACjB,GAAG,EAAE,kBAAkB;gBACvB,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,CAAC,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;oBACrB,CAAC,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;oBACrB,CAAC,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;iBACtB;gBACD,oBAAoB,EAAE,KAAK;gBAC3B,QAAQ,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;aAC1B;YACD,gBAAgB,EAAE;gBAChB,GAAG,EAAE,iBAAiB;gBACtB,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,CAAC,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,QAAQ,EAAE,CAAC,EAAE;oBAC5D,CAAC,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,QAAQ,EAAE,CAAC,EAAE;oBAC5D,CAAC,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,QAAQ,EAAE,CAAC,EAAE;iBAC7D;gBACD,oBAAoB,EAAE,KAAK;gBAC3B,QAAQ,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;aAC1B;SACF;KACF,CAAA;IAEY,mBAAQ,GACnB,IAAA,8BAAiB,EAAC,WAAA,MAAM,CAAC,CAAA;AAC7B,CAAC,EA3DgB,UAAU,GAAV,kBAAU,KAAV,kBAAU,QA2D1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../../src/platform/wearables/i18n.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../../src/platform/wearables/i18n.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,UAAU,EACV,gBAAgB,EACjB,MAAM,kBAAkB,CAAA;AACzB,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAEjC,aAAa;AACb,oBAAY,IAAI,GAAG;IACjB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;CACb,CAAA;AAED,aAAa;AACb,yBAAiB,IAAI,CAAC;IACb,MAAM,MAAM,EAAE,UAAU,CAAC,IAAI,CAUnC,CAAA;IAEM,MAAM,QAAQ,EAAE,gBAAgB,CAAC,IAAI,CAA6B,CAAA;CAC1E"}
|
|
@@ -11,12 +11,12 @@ var I18N;
|
|
|
11
11
|
properties: {
|
|
12
12
|
code: locale_1.Locale.schema,
|
|
13
13
|
text: {
|
|
14
|
-
type: 'string'
|
|
15
|
-
}
|
|
14
|
+
type: 'string'
|
|
15
|
+
}
|
|
16
16
|
},
|
|
17
17
|
additionalProperties: false,
|
|
18
|
-
required: ['code', 'text']
|
|
18
|
+
required: ['code', 'text']
|
|
19
19
|
};
|
|
20
|
-
I18N.validate = validation_1.generateValidator(I18N.schema);
|
|
20
|
+
I18N.validate = (0, validation_1.generateValidator)(I18N.schema);
|
|
21
21
|
})(I18N = exports.I18N || (exports.I18N = {}));
|
|
22
22
|
//# sourceMappingURL=i18n.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i18n.js","sourceRoot":"","sources":["../../../src/platform/wearables/i18n.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"i18n.js","sourceRoot":"","sources":["../../../src/platform/wearables/i18n.ts"],"names":[],"mappings":";;;AAAA,iDAIyB;AACzB,qCAAiC;AAQjC,aAAa;AACb,IAAiB,IAAI,CAcpB;AAdD,WAAiB,IAAI;IACN,WAAM,GAAqB;QACtC,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,IAAI,EAAE,eAAM,CAAC,MAAM;YACnB,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;aACf;SACF;QACD,oBAAoB,EAAE,KAAK;QAC3B,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;KAC3B,CAAA;IAEY,aAAQ,GAA2B,IAAA,8BAAiB,EAAC,KAAA,MAAM,CAAC,CAAA;AAC3E,CAAC,EAdgB,IAAI,GAAJ,YAAI,KAAJ,YAAI,QAcpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"locale.d.ts","sourceRoot":"","sources":["../../../src/platform/wearables/locale.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"locale.d.ts","sourceRoot":"","sources":["../../../src/platform/wearables/locale.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,UAAU,EACV,gBAAgB,EACjB,MAAM,kBAAkB,CAAA;AAEzB,aAAa;AACb,oBAAY,MAAM;IAChB,EAAE,OAAO;IACT,EAAE,OAAO;CACV;AAED,aAAa;AACb,yBAAiB,MAAM,CAAC;IACf,MAAM,MAAM,EAAE,UAAU,CAAC,MAAM,CAGrC,CAAA;IAEM,MAAM,QAAQ,EAAE,gBAAgB,CAAC,MAAM,CAA6B,CAAA;CAC5E"}
|
|
@@ -12,8 +12,8 @@ var Locale;
|
|
|
12
12
|
(function (Locale) {
|
|
13
13
|
Locale.schema = {
|
|
14
14
|
type: 'string',
|
|
15
|
-
enum: Object.values(Locale)
|
|
15
|
+
enum: Object.values(Locale)
|
|
16
16
|
};
|
|
17
|
-
Locale.validate = validation_1.generateValidator(Locale.schema);
|
|
17
|
+
Locale.validate = (0, validation_1.generateValidator)(Locale.schema);
|
|
18
18
|
})(Locale = exports.Locale || (exports.Locale = {}));
|
|
19
19
|
//# sourceMappingURL=locale.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"locale.js","sourceRoot":"","sources":["../../../src/platform/wearables/locale.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"locale.js","sourceRoot":"","sources":["../../../src/platform/wearables/locale.ts"],"names":[],"mappings":";;;AAAA,iDAIyB;AAEzB,aAAa;AACb,IAAY,MAGX;AAHD,WAAY,MAAM;IAChB,mBAAS,CAAA;IACT,mBAAS,CAAA;AACX,CAAC,EAHW,MAAM,GAAN,cAAM,KAAN,cAAM,QAGjB;AAED,aAAa;AACb,WAAiB,MAAM;IACR,aAAM,GAAuB;QACxC,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC;KAC5B,CAAA;IAEY,eAAQ,GAA6B,IAAA,8BAAiB,EAAC,OAAA,MAAM,CAAC,CAAA;AAC7E,CAAC,EAPgB,MAAM,GAAN,cAAM,KAAN,cAAM,QAOtB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metrics.d.ts","sourceRoot":"","sources":["../../../src/platform/wearables/metrics.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"metrics.d.ts","sourceRoot":"","sources":["../../../src/platform/wearables/metrics.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,UAAU,EACV,gBAAgB,EACjB,MAAM,kBAAkB,CAAA;AAEzB,aAAa;AACb,oBAAY,OAAO,GAAG;IACpB,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;CACjB,CAAA;AAED,aAAa;AACb,yBAAiB,OAAO,CAAC;IAChB,MAAM,MAAM,EAAE,UAAU,CAAC,OAAO,CA+BtC,CAAA;IAEM,MAAM,QAAQ,EAAE,gBAAgB,CAAC,OAAO,CAA6B,CAAA;CAC7E"}
|
|
@@ -9,27 +9,34 @@ var Metrics;
|
|
|
9
9
|
type: 'object',
|
|
10
10
|
properties: {
|
|
11
11
|
triangles: {
|
|
12
|
-
type: 'number'
|
|
12
|
+
type: 'number'
|
|
13
13
|
},
|
|
14
14
|
materials: {
|
|
15
|
-
type: 'number'
|
|
15
|
+
type: 'number'
|
|
16
16
|
},
|
|
17
17
|
textures: {
|
|
18
|
-
type: 'number'
|
|
18
|
+
type: 'number'
|
|
19
19
|
},
|
|
20
20
|
meshes: {
|
|
21
|
-
type: 'number'
|
|
21
|
+
type: 'number'
|
|
22
22
|
},
|
|
23
23
|
bodies: {
|
|
24
|
-
type: 'number'
|
|
24
|
+
type: 'number'
|
|
25
25
|
},
|
|
26
26
|
entities: {
|
|
27
|
-
type: 'number'
|
|
28
|
-
}
|
|
27
|
+
type: 'number'
|
|
28
|
+
}
|
|
29
29
|
},
|
|
30
30
|
additionalProperties: false,
|
|
31
|
-
required: [
|
|
31
|
+
required: [
|
|
32
|
+
'triangles',
|
|
33
|
+
'materials',
|
|
34
|
+
'textures',
|
|
35
|
+
'meshes',
|
|
36
|
+
'bodies',
|
|
37
|
+
'entities'
|
|
38
|
+
]
|
|
32
39
|
};
|
|
33
|
-
Metrics.validate = validation_1.generateValidator(Metrics.schema);
|
|
40
|
+
Metrics.validate = (0, validation_1.generateValidator)(Metrics.schema);
|
|
34
41
|
})(Metrics = exports.Metrics || (exports.Metrics = {}));
|
|
35
42
|
//# sourceMappingURL=metrics.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metrics.js","sourceRoot":"","sources":["../../../src/platform/wearables/metrics.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"metrics.js","sourceRoot":"","sources":["../../../src/platform/wearables/metrics.ts"],"names":[],"mappings":";;;AAAA,iDAIyB;AAYzB,aAAa;AACb,IAAiB,OAAO,CAmCvB;AAnCD,WAAiB,OAAO;IACT,cAAM,GAAwB;QACzC,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;aACf;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;aACf;YACD,QAAQ,EAAE;gBACR,IAAI,EAAE,QAAQ;aACf;YACD,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;aACf;YACD,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;aACf;YACD,QAAQ,EAAE;gBACR,IAAI,EAAE,QAAQ;aACf;SACF;QACD,oBAAoB,EAAE,KAAK;QAC3B,QAAQ,EAAE;YACR,WAAW;YACX,WAAW;YACX,UAAU;YACV,QAAQ;YACR,QAAQ;YACR,UAAU;SACX;KACF,CAAA;IAEY,gBAAQ,GAA8B,IAAA,8BAAiB,EAAC,QAAA,MAAM,CAAC,CAAA;AAC9E,CAAC,EAnCgB,OAAO,GAAP,eAAO,KAAP,eAAO,QAmCvB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"representation.d.ts","sourceRoot":"","sources":["../../../src/platform/wearables/representation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAA;AAChE,OAAO,
|
|
1
|
+
{"version":3,"file":"representation.d.ts","sourceRoot":"","sources":["../../../src/platform/wearables/representation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAA;AAChE,OAAO,EAEL,UAAU,EACV,gBAAgB,EACjB,MAAM,kBAAkB,CAAA;AACzB,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAA;AAEzD,aAAa;AACb,oBAAY,sBAAsB,GAAG;IACnC,UAAU,EAAE,iBAAiB,EAAE,CAAA;IAC/B,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,EAAE,CAAA;IAClB,aAAa,EAAE,gBAAgB,EAAE,CAAA;IACjC,gBAAgB,EAAE,gBAAgB,EAAE,CAAA;CACrC,CAAA;AAED,aAAa;AACb,yBAAiB,sBAAsB,CAAC;IAC/B,MAAM,MAAM,EAAE,UAAU,CAAC,sBAAsB,CAsCrD,CAAA;IAIM,MAAM,QAAQ,EAAE,gBAAgB,CAAC,sBAAsB,CAIH,CAAA;CAC5D"}
|
|
@@ -18,12 +18,12 @@ var WearableRepresentation;
|
|
|
18
18
|
},
|
|
19
19
|
mainFile: {
|
|
20
20
|
type: 'string',
|
|
21
|
-
minLength: 1
|
|
21
|
+
minLength: 1
|
|
22
22
|
},
|
|
23
23
|
contents: {
|
|
24
24
|
type: 'array',
|
|
25
25
|
items: {
|
|
26
|
-
type: 'string'
|
|
26
|
+
type: 'string'
|
|
27
27
|
},
|
|
28
28
|
minItems: 1,
|
|
29
29
|
uniqueItems: true
|
|
@@ -38,9 +38,15 @@ var WearableRepresentation;
|
|
|
38
38
|
}
|
|
39
39
|
},
|
|
40
40
|
additionalProperties: false,
|
|
41
|
-
required: [
|
|
41
|
+
required: [
|
|
42
|
+
'bodyShapes',
|
|
43
|
+
'mainFile',
|
|
44
|
+
'contents',
|
|
45
|
+
'overrideHides',
|
|
46
|
+
'overrideReplaces'
|
|
47
|
+
]
|
|
42
48
|
};
|
|
43
|
-
const schemaValidator = validation_1.generateValidator(WearableRepresentation.schema);
|
|
49
|
+
const schemaValidator = (0, validation_1.generateValidator)(WearableRepresentation.schema);
|
|
44
50
|
WearableRepresentation.validate = (representation) => schemaValidator(representation) &&
|
|
45
51
|
representation.contents.includes(representation.mainFile);
|
|
46
52
|
})(WearableRepresentation = exports.WearableRepresentation || (exports.WearableRepresentation = {}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"representation.js","sourceRoot":"","sources":["../../../src/platform/wearables/representation.ts"],"names":[],"mappings":";;;AAAA,qEAAgE;AAChE,
|
|
1
|
+
{"version":3,"file":"representation.js","sourceRoot":"","sources":["../../../src/platform/wearables/representation.ts"],"names":[],"mappings":";;;AAAA,qEAAgE;AAChE,iDAIyB;AACzB,+DAAyD;AAWzD,aAAa;AACb,IAAiB,sBAAsB,CAgDtC;AAhDD,WAAiB,sBAAsB;IACxB,6BAAM,GAAuC;QACxD,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,UAAU,EAAE;gBACV,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,uCAAiB,CAAC,MAAM;gBAC/B,QAAQ,EAAE,CAAC;gBACX,WAAW,EAAE,IAAI;aAClB;YACD,QAAQ,EAAE;gBACR,IAAI,EAAE,QAAQ;gBACd,SAAS,EAAE,CAAC;aACb;YACD,QAAQ,EAAE;gBACR,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE;oBACL,IAAI,EAAE,QAAQ;iBACf;gBACD,QAAQ,EAAE,CAAC;gBACX,WAAW,EAAE,IAAI;aAClB;YACD,aAAa,EAAE;gBACb,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,oCAAgB,CAAC,MAAM;aAC/B;YACD,gBAAgB,EAAE;gBAChB,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,oCAAgB,CAAC,MAAM;aAC/B;SACF;QACD,oBAAoB,EAAE,KAAK;QAC3B,QAAQ,EAAE;YACR,YAAY;YACZ,UAAU;YACV,UAAU;YACV,eAAe;YACf,kBAAkB;SACnB;KACF,CAAA;IAED,MAAM,eAAe,GACnB,IAAA,8BAAiB,EAAC,uBAAA,MAAM,CAAC,CAAA;IACd,+BAAQ,GAA6C,CAChE,cAAmB,EACuB,EAAE,CAC5C,eAAe,CAAC,cAAc,CAAC;QAC/B,cAAc,CAAC,QAAQ,CAAC,QAAQ,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAA;AAC7D,CAAC,EAhDgB,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAgDtC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wearable-body-shape.d.ts","sourceRoot":"","sources":["../../../src/platform/wearables/wearable-body-shape.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"wearable-body-shape.d.ts","sourceRoot":"","sources":["../../../src/platform/wearables/wearable-body-shape.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,UAAU,EACV,gBAAgB,EACjB,MAAM,kBAAkB,CAAA;AAEzB,aAAa;AACb,oBAAY,iBAAiB;IAC3B,IAAI,qDAAqD;IACzD,MAAM,uDAAuD;CAC9D;AAED,aAAa;AACb,yBAAiB,iBAAiB,CAAC;IAC1B,MAAM,MAAM,EAAE,UAAU,CAAC,iBAAiB,CAGhD,CAAA;IAEM,MAAM,QAAQ,EAAE,gBAAgB,CAAC,iBAAiB,CAC9B,CAAA;CAC5B"}
|
|
@@ -12,8 +12,8 @@ var WearableBodyShape;
|
|
|
12
12
|
(function (WearableBodyShape) {
|
|
13
13
|
WearableBodyShape.schema = {
|
|
14
14
|
type: 'string',
|
|
15
|
-
enum: Object.values(WearableBodyShape)
|
|
15
|
+
enum: Object.values(WearableBodyShape)
|
|
16
16
|
};
|
|
17
|
-
WearableBodyShape.validate = validation_1.generateValidator(WearableBodyShape.schema);
|
|
17
|
+
WearableBodyShape.validate = (0, validation_1.generateValidator)(WearableBodyShape.schema);
|
|
18
18
|
})(WearableBodyShape = exports.WearableBodyShape || (exports.WearableBodyShape = {}));
|
|
19
19
|
//# sourceMappingURL=wearable-body-shape.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wearable-body-shape.js","sourceRoot":"","sources":["../../../src/platform/wearables/wearable-body-shape.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"wearable-body-shape.js","sourceRoot":"","sources":["../../../src/platform/wearables/wearable-body-shape.ts"],"names":[],"mappings":";;;AAAA,iDAIyB;AAEzB,aAAa;AACb,IAAY,iBAGX;AAHD,WAAY,iBAAiB;IAC3B,8EAAyD,CAAA;IACzD,kFAA6D,CAAA;AAC/D,CAAC,EAHW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAG5B;AAED,aAAa;AACb,WAAiB,iBAAiB;IACnB,wBAAM,GAAkC;QACnD,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,iBAAiB,CAAC;KACvC,CAAA;IAEY,0BAAQ,GACnB,IAAA,8BAAiB,EAAC,kBAAA,MAAM,CAAC,CAAA;AAC7B,CAAC,EARgB,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAQjC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wearable.d.ts","sourceRoot":"","sources":["../../../src/platform/wearables/wearable.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"wearable.d.ts","sourceRoot":"","sources":["../../../src/platform/wearables/wearable.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,UAAU,EACV,gBAAgB,EACjB,MAAM,kBAAkB,CAAA;AACzB,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAC3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAA;AAChE,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAC7B,OAAO,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAA;AACzD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAEnC,aAAa;AACb,oBAAY,QAAQ,GAAG;IACrB,EAAE,EAAE,MAAM,CAAA;IACV,YAAY,EAAE,IAAI,EAAE,CAAA;IACpB,iBAAiB,EAAE,MAAM,CAAA;IACzB,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,IAAI,EAAE,CAAA;IACb,IAAI,EAAE;QACJ,QAAQ,EAAE,gBAAgB,EAAE,CAAA;QAC5B,KAAK,EAAE,gBAAgB,EAAE,CAAA;QACzB,IAAI,EAAE,MAAM,EAAE,CAAA;QACd,eAAe,EAAE,sBAAsB,EAAE,CAAA;QACzC,QAAQ,EAAE,gBAAgB,CAAA;KAC3B,CAAA;IACD,SAAS,EAAE,MAAM,CAAA;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAA;AAED,aAAa;AACb,yBAAiB,QAAQ,CAAC;IACjB,MAAM,MAAM,EAAE,UAAU,CAAC,QAAQ,CAsEvC,CAAA;IAGM,MAAM,QAAQ,EAAE,gBAAgB,CAAC,QAAQ,CAKL,CAAA;CAQ5C"}
|
|
@@ -14,7 +14,7 @@ var Wearable;
|
|
|
14
14
|
type: 'object',
|
|
15
15
|
properties: {
|
|
16
16
|
id: {
|
|
17
|
-
type: 'string'
|
|
17
|
+
type: 'string'
|
|
18
18
|
},
|
|
19
19
|
descriptions: {
|
|
20
20
|
type: 'array',
|
|
@@ -22,7 +22,7 @@ var Wearable;
|
|
|
22
22
|
minItems: 1
|
|
23
23
|
},
|
|
24
24
|
collectionAddress: {
|
|
25
|
-
type: 'string'
|
|
25
|
+
type: 'string'
|
|
26
26
|
},
|
|
27
27
|
rarity: rarity_1.Rarity.schema,
|
|
28
28
|
names: {
|
|
@@ -59,10 +59,10 @@ var Wearable;
|
|
|
59
59
|
required: ['replaces', 'hides', 'tags', 'representations', 'category']
|
|
60
60
|
},
|
|
61
61
|
thumbnail: {
|
|
62
|
-
type: 'string'
|
|
62
|
+
type: 'string'
|
|
63
63
|
},
|
|
64
64
|
image: {
|
|
65
|
-
type: 'string'
|
|
65
|
+
type: 'string'
|
|
66
66
|
},
|
|
67
67
|
metrics: {
|
|
68
68
|
...metrics_1.Metrics.schema,
|
|
@@ -78,10 +78,10 @@ var Wearable;
|
|
|
78
78
|
'names',
|
|
79
79
|
'data',
|
|
80
80
|
'thumbnail',
|
|
81
|
-
'image'
|
|
82
|
-
]
|
|
81
|
+
'image'
|
|
82
|
+
]
|
|
83
83
|
};
|
|
84
|
-
const schemaValidator = validation_1.generateValidator(Wearable.schema);
|
|
84
|
+
const schemaValidator = (0, validation_1.generateValidator)(Wearable.schema);
|
|
85
85
|
Wearable.validate = (wearable) => schemaValidator(wearable) &&
|
|
86
86
|
validateDuplicatedLocales(wearable.descriptions) &&
|
|
87
87
|
validateDuplicatedLocales(wearable.names);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wearable.js","sourceRoot":"","sources":["../../../src/platform/wearables/wearable.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"wearable.js","sourceRoot":"","sources":["../../../src/platform/wearables/wearable.ts"],"names":[],"mappings":";;;AAAA,iDAIyB;AACzB,+CAA2C;AAC3C,qEAAgE;AAChE,iCAA6B;AAC7B,qDAAyD;AACzD,uCAAmC;AAqBnC,aAAa;AACb,IAAiB,QAAQ,CAuFxB;AAvFD,WAAiB,QAAQ;IACV,eAAM,GAAyB;QAC1C,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,EAAE,EAAE;gBACF,IAAI,EAAE,QAAQ;aACf;YACD,YAAY,EAAE;gBACZ,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,WAAI,CAAC,MAAM;gBAClB,QAAQ,EAAE,CAAC;aACZ;YACD,iBAAiB,EAAE;gBACjB,IAAI,EAAE,QAAQ;aACf;YACD,MAAM,EAAE,eAAM,CAAC,MAAM;YACrB,KAAK,EAAE;gBACL,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,WAAI,CAAC,MAAM;gBAClB,QAAQ,EAAE,CAAC;aACZ;YACD,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,QAAQ,EAAE;wBACR,IAAI,EAAE,OAAO;wBACb,KAAK,EAAE,oCAAgB,CAAC,MAAM;qBAC/B;oBACD,KAAK,EAAE;wBACL,IAAI,EAAE,OAAO;wBACb,KAAK,EAAE,oCAAgB,CAAC,MAAM;qBAC/B;oBACD,IAAI,EAAE;wBACJ,IAAI,EAAE,OAAO;wBACb,KAAK,EAAE;4BACL,IAAI,EAAE,QAAQ;4BACd,SAAS,EAAE,CAAC;yBACb;qBACF;oBACD,eAAe,EAAE;wBACf,IAAI,EAAE,OAAO;wBACb,KAAK,EAAE,uCAAsB,CAAC,MAAM;wBACpC,QAAQ,EAAE,CAAC;qBACZ;oBACD,QAAQ,EAAE,oCAAgB,CAAC,MAAM;iBAClC;gBACD,oBAAoB,EAAE,KAAK;gBAC3B,QAAQ,EAAE,CAAC,UAAU,EAAE,OAAO,EAAE,MAAM,EAAE,iBAAiB,EAAE,UAAU,CAAC;aACvE;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;aACf;YACD,KAAK,EAAE;gBACL,IAAI,EAAE,QAAQ;aACf;YACD,OAAO,EAAE;gBACP,GAAG,iBAAO,CAAC,MAAM;gBACjB,QAAQ,EAAE,IAAI;aACf;SACF;QACD,oBAAoB,EAAE,KAAK;QAC3B,QAAQ,EAAE;YACR,IAAI;YACJ,cAAc;YACd,mBAAmB;YACnB,QAAQ;YACR,OAAO;YACP,MAAM;YACN,WAAW;YACX,OAAO;SACR;KACF,CAAA;IAED,MAAM,eAAe,GAA+B,IAAA,8BAAiB,EAAC,SAAA,MAAM,CAAC,CAAA;IAChE,iBAAQ,GAA+B,CAClD,QAAa,EACS,EAAE,CACxB,eAAe,CAAC,QAAQ,CAAC;QACzB,yBAAyB,CAAC,QAAQ,CAAC,YAAY,CAAC;QAChD,yBAAyB,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAA;IAE3C,iEAAiE;IACjE,MAAM,yBAAyB,GAAG,CAAC,KAAa,EAAE,EAAE,CAClD,KAAK,CAAC,KAAK,CACT,CAAC,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,EAAE,CAClB,KAAK,CAAC,SAAS,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,KAAK,KAAK,CAC1D,CAAA;AACL,CAAC,EAvFgB,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAuFxB"}
|
package/dist/schemas.d.ts
CHANGED
|
@@ -10,8 +10,42 @@ export declare type AbstractTypedSchema<T> = {
|
|
|
10
10
|
schema: JSONSchema<T>;
|
|
11
11
|
validate: ValidateFunction<T>;
|
|
12
12
|
};
|
|
13
|
+
|
|
14
|
+
/** @internal */
|
|
15
|
+
declare type Actions = typeof SCENE_UPDATE | typeof UPDATE;
|
|
16
|
+
|
|
13
17
|
export { Ajv }
|
|
14
18
|
|
|
19
|
+
/** @alpha */
|
|
20
|
+
declare type AssetJson = {
|
|
21
|
+
id: string;
|
|
22
|
+
assetType: string;
|
|
23
|
+
name: string;
|
|
24
|
+
description: string;
|
|
25
|
+
thumbnail: string;
|
|
26
|
+
model: string;
|
|
27
|
+
category: WearableCategory;
|
|
28
|
+
rarity: Rarity;
|
|
29
|
+
bodyShape: AssetWearableGender;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
/** @alpha */
|
|
33
|
+
declare namespace AssetJson {
|
|
34
|
+
const schema: JSONSchema<AssetJson>;
|
|
35
|
+
const validate: ValidateFunction<AssetJson>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
declare enum AssetWearableGender {
|
|
39
|
+
MALE = "male",
|
|
40
|
+
FEMALE = "female",
|
|
41
|
+
BOTH = "both"
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
declare namespace AssetWearableGender {
|
|
45
|
+
const schema: JSONSchema<AssetWearableGender>;
|
|
46
|
+
const validate: ValidateFunction<AssetWearableGender>;
|
|
47
|
+
}
|
|
48
|
+
|
|
15
49
|
/**
|
|
16
50
|
* Avatar represents a profile avatar
|
|
17
51
|
* @alpha
|
|
@@ -259,7 +293,7 @@ export declare namespace EthAddress {
|
|
|
259
293
|
}
|
|
260
294
|
|
|
261
295
|
/** @alpha */
|
|
262
|
-
export declare type FeatureToggles = Record<string,
|
|
296
|
+
export declare type FeatureToggles = Record<string, 'enabled' | 'disabled'>;
|
|
263
297
|
|
|
264
298
|
/** @alpha */
|
|
265
299
|
export declare namespace FeatureToggles {
|
|
@@ -412,6 +446,9 @@ export declare namespace Locale {
|
|
|
412
446
|
const validate: ValidateFunction<Locale>;
|
|
413
447
|
}
|
|
414
448
|
|
|
449
|
+
/** @internal */
|
|
450
|
+
declare type Messages = SceneUpdate | Update;
|
|
451
|
+
|
|
415
452
|
/**
|
|
416
453
|
* Meta-transaction to be relayed
|
|
417
454
|
* @alpha
|
|
@@ -655,6 +692,17 @@ export declare namespace Profile {
|
|
|
655
692
|
const validate: ValidateFunction<Profile>;
|
|
656
693
|
}
|
|
657
694
|
|
|
695
|
+
declare enum ProjectType {
|
|
696
|
+
SCENE = "scene",
|
|
697
|
+
SMART_ITEM = "smart-item",
|
|
698
|
+
PORTABLE_EXPERIENCE = "portable-experience"
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
declare namespace ProjectType {
|
|
702
|
+
const schema: JSONSchema<ProjectType>;
|
|
703
|
+
const validate: ValidateFunction<ProjectType>;
|
|
704
|
+
}
|
|
705
|
+
|
|
658
706
|
export declare enum Rarity {
|
|
659
707
|
UNIQUE = "unique",
|
|
660
708
|
MYTHIC = "mythic",
|
|
@@ -757,6 +805,9 @@ export declare namespace Scene {
|
|
|
757
805
|
const validate: ValidateFunction<Scene>;
|
|
758
806
|
}
|
|
759
807
|
|
|
808
|
+
/** @internal */
|
|
809
|
+
declare const SCENE_UPDATE = "SCENE_UPDATE";
|
|
810
|
+
|
|
760
811
|
/** @alpha */
|
|
761
812
|
export declare type SceneParcels = {
|
|
762
813
|
base: string;
|
|
@@ -770,6 +821,35 @@ export declare namespace SceneParcels {
|
|
|
770
821
|
const validate: ValidateFunction<SceneParcels>;
|
|
771
822
|
}
|
|
772
823
|
|
|
824
|
+
/** @internal */
|
|
825
|
+
declare type SceneUpdate = {
|
|
826
|
+
type: typeof SCENE_UPDATE;
|
|
827
|
+
payload: {
|
|
828
|
+
sceneId: string;
|
|
829
|
+
sceneType: string;
|
|
830
|
+
};
|
|
831
|
+
};
|
|
832
|
+
|
|
833
|
+
/** @internal */
|
|
834
|
+
declare namespace SceneUpdate {
|
|
835
|
+
const schema: JSONSchema<SceneUpdate>;
|
|
836
|
+
const validate: ValidateFunction<SceneUpdate>;
|
|
837
|
+
}
|
|
838
|
+
|
|
839
|
+
declare namespace sdk {
|
|
840
|
+
export {
|
|
841
|
+
Actions,
|
|
842
|
+
Messages,
|
|
843
|
+
SCENE_UPDATE,
|
|
844
|
+
SceneUpdate,
|
|
845
|
+
UPDATE,
|
|
846
|
+
Update,
|
|
847
|
+
ProjectType,
|
|
848
|
+
AssetJson
|
|
849
|
+
}
|
|
850
|
+
}
|
|
851
|
+
export { sdk }
|
|
852
|
+
|
|
773
853
|
declare type SinglePosition = {
|
|
774
854
|
x: number;
|
|
775
855
|
y: number;
|
|
@@ -805,7 +885,7 @@ export declare type Source = {
|
|
|
805
885
|
x: number;
|
|
806
886
|
y: number;
|
|
807
887
|
};
|
|
808
|
-
rotation?:
|
|
888
|
+
rotation?: 'north' | 'east' | 'south' | 'west';
|
|
809
889
|
layout?: {
|
|
810
890
|
rows: number;
|
|
811
891
|
cols: number;
|
|
@@ -833,6 +913,20 @@ export declare namespace SpawnPoint {
|
|
|
833
913
|
const validate: ValidateFunction<SpawnPoint>;
|
|
834
914
|
}
|
|
835
915
|
|
|
916
|
+
/** @internal @deprecated */
|
|
917
|
+
declare const UPDATE = "update";
|
|
918
|
+
|
|
919
|
+
/** @internal @deprecated */
|
|
920
|
+
declare type Update = {
|
|
921
|
+
type: typeof UPDATE;
|
|
922
|
+
};
|
|
923
|
+
|
|
924
|
+
/** @internal @deprecated */
|
|
925
|
+
declare namespace Update {
|
|
926
|
+
const schema: JSONSchema<Update>;
|
|
927
|
+
const validate: ValidateFunction<Update>;
|
|
928
|
+
}
|
|
929
|
+
|
|
836
930
|
/**
|
|
837
931
|
* This type is a subset of AJV's ValidateFunction, it exists to make
|
|
838
932
|
* .d.ts bundles smaller and to not expose all of AJV context to the
|
|
@@ -848,7 +942,7 @@ export declare interface ValidateFunction<T = unknown> {
|
|
|
848
942
|
* Validates a type with a schema in a functional way.
|
|
849
943
|
* @public
|
|
850
944
|
*/
|
|
851
|
-
export declare function validateType<T>(theType: Pick<AbstractTypedSchema<T>,
|
|
945
|
+
export declare function validateType<T>(theType: Pick<AbstractTypedSchema<T>, 'validate'>, value: T): boolean;
|
|
852
946
|
|
|
853
947
|
/**
|
|
854
948
|
* World Range
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sdk/index.ts"],"names":[],"mappings":"AAAA,cAAc,MAAM,CAAA;AACpB,cAAc,WAAW,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
__exportStar(require("./ws"), exports);
|
|
14
|
+
__exportStar(require("./project"), exports);
|
|
15
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/sdk/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uCAAoB;AACpB,4CAAyB"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { WearableCategory } from './../../dapps/wearable-category';
|
|
2
|
+
import { JSONSchema, ValidateFunction } from '../../validation';
|
|
3
|
+
import { Rarity } from './../../dapps/rarity';
|
|
4
|
+
import { AssetWearableGender } from './asset-wearable-gender';
|
|
5
|
+
/** @alpha */
|
|
6
|
+
export declare type AssetJson = {
|
|
7
|
+
id: string;
|
|
8
|
+
assetType: string;
|
|
9
|
+
name: string;
|
|
10
|
+
description: string;
|
|
11
|
+
thumbnail: string;
|
|
12
|
+
model: string;
|
|
13
|
+
category: WearableCategory;
|
|
14
|
+
rarity: Rarity;
|
|
15
|
+
bodyShape: AssetWearableGender;
|
|
16
|
+
};
|
|
17
|
+
/** @alpha */
|
|
18
|
+
export declare namespace AssetJson {
|
|
19
|
+
const schema: JSONSchema<AssetJson>;
|
|
20
|
+
const validate: ValidateFunction<AssetJson>;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=asset-json.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"asset-json.d.ts","sourceRoot":"","sources":["../../../src/sdk/project/asset-json.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAA;AAClE,OAAO,EAEL,UAAU,EACV,gBAAgB,EACjB,MAAM,kBAAkB,CAAA;AACzB,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAA;AAC7C,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AAE7D,aAAa;AACb,oBAAY,SAAS,GAAG;IACtB,EAAE,EAAE,MAAM,CAAA;IACV,SAAS,EAAE,MAAM,CAAA;IAEjB,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,CAAA;IAEnB,SAAS,EAAE,MAAM,CAAA;IACjB,KAAK,EAAE,MAAM,CAAA;IAEb,QAAQ,EAAE,gBAAgB,CAAA;IAC1B,MAAM,EAAE,MAAM,CAAA;IACd,SAAS,EAAE,mBAAmB,CAAA;CAC/B,CAAA;AAED,aAAa;AACb,yBAAiB,SAAS,CAAC;IAClB,MAAM,MAAM,EAAE,UAAU,CAAC,SAAS,CA+BxC,CAAA;IAEM,MAAM,QAAQ,EAAE,gBAAgB,CAAC,SAAS,CAA6B,CAAA;CAC/E"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AssetJson = void 0;
|
|
4
|
+
const type_1 = require("./../project/type");
|
|
5
|
+
const wearable_category_1 = require("./../../dapps/wearable-category");
|
|
6
|
+
const validation_1 = require("../../validation");
|
|
7
|
+
const rarity_1 = require("./../../dapps/rarity");
|
|
8
|
+
const asset_wearable_gender_1 = require("./asset-wearable-gender");
|
|
9
|
+
/** @alpha */
|
|
10
|
+
var AssetJson;
|
|
11
|
+
(function (AssetJson) {
|
|
12
|
+
AssetJson.schema = {
|
|
13
|
+
type: 'object',
|
|
14
|
+
properties: {
|
|
15
|
+
id: {
|
|
16
|
+
description: 'The ID that you will replace in your collection. Also this ID is used for develop purpose, to identify in the kernel.',
|
|
17
|
+
type: 'string'
|
|
18
|
+
},
|
|
19
|
+
assetType: type_1.ProjectType.schema,
|
|
20
|
+
name: {
|
|
21
|
+
description: '',
|
|
22
|
+
type: 'string'
|
|
23
|
+
},
|
|
24
|
+
description: {
|
|
25
|
+
description: 'A short text that describes the wearable.`',
|
|
26
|
+
type: 'string'
|
|
27
|
+
},
|
|
28
|
+
thumbnail: {
|
|
29
|
+
description: 'A preview image of your item.',
|
|
30
|
+
type: 'string'
|
|
31
|
+
},
|
|
32
|
+
model: {
|
|
33
|
+
description: 'The main file that should be loaded as wearable.',
|
|
34
|
+
type: 'string'
|
|
35
|
+
},
|
|
36
|
+
category: wearable_category_1.WearableCategory.schema,
|
|
37
|
+
rarity: rarity_1.Rarity.schema,
|
|
38
|
+
bodyShape: asset_wearable_gender_1.AssetWearableGender.schema
|
|
39
|
+
},
|
|
40
|
+
additionalProperties: false,
|
|
41
|
+
required: ['category', 'rarity', 'bodyShape', 'thumbnail', 'model']
|
|
42
|
+
};
|
|
43
|
+
AssetJson.validate = (0, validation_1.generateValidator)(AssetJson.schema);
|
|
44
|
+
})(AssetJson = exports.AssetJson || (exports.AssetJson = {}));
|
|
45
|
+
//# sourceMappingURL=asset-json.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"asset-json.js","sourceRoot":"","sources":["../../../src/sdk/project/asset-json.ts"],"names":[],"mappings":";;;AAAA,4CAA+C;AAC/C,uEAAkE;AAClE,iDAIyB;AACzB,iDAA6C;AAC7C,mEAA6D;AAkB7D,aAAa;AACb,IAAiB,SAAS,CAmCzB;AAnCD,WAAiB,SAAS;IACX,gBAAM,GAA0B;QAC3C,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,EAAE,EAAE;gBACF,WAAW,EACT,uHAAuH;gBACzH,IAAI,EAAE,QAAQ;aACf;YACD,SAAS,EAAE,kBAAW,CAAC,MAAM;YAC7B,IAAI,EAAE;gBACJ,WAAW,EAAE,EAAE;gBACf,IAAI,EAAE,QAAQ;aACf;YACD,WAAW,EAAE;gBACX,WAAW,EAAE,4CAA4C;gBACzD,IAAI,EAAE,QAAQ;aACf;YACD,SAAS,EAAE;gBACT,WAAW,EAAE,+BAA+B;gBAC5C,IAAI,EAAE,QAAQ;aACf;YACD,KAAK,EAAE;gBACL,WAAW,EAAE,kDAAkD;gBAC/D,IAAI,EAAE,QAAQ;aACf;YACD,QAAQ,EAAE,oCAAgB,CAAC,MAAM;YACjC,MAAM,EAAE,eAAM,CAAC,MAAM;YACrB,SAAS,EAAE,2CAAmB,CAAC,MAAM;SACtC;QACD,oBAAoB,EAAE,KAAK;QAC3B,QAAQ,EAAE,CAAC,UAAU,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE,OAAO,CAAC;KACpE,CAAA;IAEY,kBAAQ,GAAgC,IAAA,8BAAiB,EAAC,UAAA,MAAM,CAAC,CAAA;AAChF,CAAC,EAnCgB,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAmCzB"}
|