@dcl/schemas 2.2.1 → 2.2.2-20211125184919.commit-9ab7a5a

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.
Files changed (140) hide show
  1. package/dist/dapps/bid.js +16 -16
  2. package/dist/dapps/bid.js.map +1 -1
  3. package/dist/dapps/body-shape.js +2 -2
  4. package/dist/dapps/body-shape.js.map +1 -1
  5. package/dist/dapps/chain-id.js +2 -2
  6. package/dist/dapps/chain-id.js.map +1 -1
  7. package/dist/dapps/chain-name.js +2 -2
  8. package/dist/dapps/chain-name.js.map +1 -1
  9. package/dist/dapps/collection.js +13 -13
  10. package/dist/dapps/collection.js.map +1 -1
  11. package/dist/dapps/contract.js +5 -5
  12. package/dist/dapps/contract.js.map +1 -1
  13. package/dist/dapps/item.d.ts.map +1 -1
  14. package/dist/dapps/item.js +19 -19
  15. package/dist/dapps/item.js.map +1 -1
  16. package/dist/dapps/listing-status.js +2 -2
  17. package/dist/dapps/listing-status.js.map +1 -1
  18. package/dist/dapps/meta-transactions.d.ts.map +1 -1
  19. package/dist/dapps/meta-transactions.js +4 -4
  20. package/dist/dapps/meta-transactions.js.map +1 -1
  21. package/dist/dapps/mint.js +14 -14
  22. package/dist/dapps/mint.js.map +1 -1
  23. package/dist/dapps/network.js +2 -2
  24. package/dist/dapps/network.js.map +1 -1
  25. package/dist/dapps/nft-category.js +2 -2
  26. package/dist/dapps/nft-category.js.map +1 -1
  27. package/dist/dapps/nft.js +44 -44
  28. package/dist/dapps/nft.js.map +1 -1
  29. package/dist/dapps/order.js +13 -13
  30. package/dist/dapps/order.js.map +1 -1
  31. package/dist/dapps/rarity.js +5 -5
  32. package/dist/dapps/rarity.js.map +1 -1
  33. package/dist/dapps/sale-type.js +2 -2
  34. package/dist/dapps/sale-type.js.map +1 -1
  35. package/dist/dapps/sale.js +13 -13
  36. package/dist/dapps/sale.js.map +1 -1
  37. package/dist/dapps/store.d.ts +20 -0
  38. package/dist/dapps/store.d.ts.map +1 -0
  39. package/dist/dapps/store.js +57 -0
  40. package/dist/dapps/store.js.map +1 -0
  41. package/dist/dapps/wearable-category.js +2 -2
  42. package/dist/dapps/wearable-category.js.map +1 -1
  43. package/dist/dapps/wearable-gender.js +2 -2
  44. package/dist/dapps/wearable-gender.js.map +1 -1
  45. package/dist/dapps/world.d.ts +1 -1
  46. package/dist/dapps/world.d.ts.map +1 -1
  47. package/dist/dapps/world.js +23 -23
  48. package/dist/dapps/world.js.map +1 -1
  49. package/dist/index.d.ts +3 -0
  50. package/dist/index.d.ts.map +1 -1
  51. package/dist/index.js +17 -1
  52. package/dist/index.js.map +1 -1
  53. package/dist/misc/index.d.ts +1 -1
  54. package/dist/misc/index.d.ts.map +1 -1
  55. package/dist/misc/index.js +4 -4
  56. package/dist/misc/index.js.map +1 -1
  57. package/dist/platform/profile/avatar.d.ts +2 -2
  58. package/dist/platform/profile/avatar.d.ts.map +1 -1
  59. package/dist/platform/profile/avatar.js +13 -6
  60. package/dist/platform/profile/avatar.js.map +1 -1
  61. package/dist/platform/profile/profile.d.ts +2 -2
  62. package/dist/platform/profile/profile.d.ts.map +1 -1
  63. package/dist/platform/profile/profile.js +1 -1
  64. package/dist/platform/profile/profile.js.map +1 -1
  65. package/dist/platform/scene/feature-toggles.d.ts +1 -1
  66. package/dist/platform/scene/feature-toggles.d.ts.map +1 -1
  67. package/dist/platform/scene/feature-toggles.js +3 -3
  68. package/dist/platform/scene/feature-toggles.js.map +1 -1
  69. package/dist/platform/scene/scene-parcels.d.ts +1 -1
  70. package/dist/platform/scene/scene-parcels.d.ts.map +1 -1
  71. package/dist/platform/scene/scene-parcels.js +12 -11
  72. package/dist/platform/scene/scene-parcels.js.map +1 -1
  73. package/dist/platform/scene/scene.d.ts +5 -5
  74. package/dist/platform/scene/scene.d.ts.map +1 -1
  75. package/dist/platform/scene/scene.js +40 -40
  76. package/dist/platform/scene/scene.js.map +1 -1
  77. package/dist/platform/scene/source.d.ts +2 -2
  78. package/dist/platform/scene/source.d.ts.map +1 -1
  79. package/dist/platform/scene/source.js +22 -22
  80. package/dist/platform/scene/source.js.map +1 -1
  81. package/dist/platform/scene/spawn-point.d.ts +1 -1
  82. package/dist/platform/scene/spawn-point.d.ts.map +1 -1
  83. package/dist/platform/scene/spawn-point.js +32 -35
  84. package/dist/platform/scene/spawn-point.js.map +1 -1
  85. package/dist/platform/wearables/i18n.d.ts.map +1 -1
  86. package/dist/platform/wearables/i18n.js +4 -4
  87. package/dist/platform/wearables/i18n.js.map +1 -1
  88. package/dist/platform/wearables/locale.d.ts.map +1 -1
  89. package/dist/platform/wearables/locale.js +2 -2
  90. package/dist/platform/wearables/locale.js.map +1 -1
  91. package/dist/platform/wearables/metrics.d.ts.map +1 -1
  92. package/dist/platform/wearables/metrics.js +16 -9
  93. package/dist/platform/wearables/metrics.js.map +1 -1
  94. package/dist/platform/wearables/representation.d.ts.map +1 -1
  95. package/dist/platform/wearables/representation.js +10 -4
  96. package/dist/platform/wearables/representation.js.map +1 -1
  97. package/dist/platform/wearables/wearable-body-shape.d.ts.map +1 -1
  98. package/dist/platform/wearables/wearable-body-shape.js +2 -2
  99. package/dist/platform/wearables/wearable-body-shape.js.map +1 -1
  100. package/dist/platform/wearables/wearable.d.ts.map +1 -1
  101. package/dist/platform/wearables/wearable.js +7 -7
  102. package/dist/platform/wearables/wearable.js.map +1 -1
  103. package/dist/schemas.d.ts +117 -3
  104. package/dist/sdk/index.d.ts +3 -0
  105. package/dist/sdk/index.d.ts.map +1 -0
  106. package/dist/sdk/index.js +15 -0
  107. package/dist/sdk/index.js.map +1 -0
  108. package/dist/sdk/project/asset-json.d.ts +22 -0
  109. package/dist/sdk/project/asset-json.d.ts.map +1 -0
  110. package/dist/sdk/project/asset-json.js +45 -0
  111. package/dist/sdk/project/asset-json.js.map +1 -0
  112. package/dist/sdk/project/asset-wearable-gender.d.ts +11 -0
  113. package/dist/sdk/project/asset-wearable-gender.d.ts.map +1 -0
  114. package/dist/sdk/project/asset-wearable-gender.js +18 -0
  115. package/dist/sdk/project/asset-wearable-gender.js.map +1 -0
  116. package/dist/sdk/project/index.d.ts +3 -0
  117. package/dist/sdk/project/index.d.ts.map +1 -0
  118. package/dist/sdk/project/index.js +15 -0
  119. package/dist/sdk/project/index.js.map +1 -0
  120. package/dist/sdk/project/type.d.ts +11 -0
  121. package/dist/sdk/project/type.d.ts.map +1 -0
  122. package/dist/sdk/project/type.js +20 -0
  123. package/dist/sdk/project/type.js.map +1 -0
  124. package/dist/sdk/ws/index.d.ts +9 -0
  125. package/dist/sdk/ws/index.d.ts.map +1 -0
  126. package/dist/sdk/ws/index.js +15 -0
  127. package/dist/sdk/ws/index.js.map +1 -0
  128. package/dist/sdk/ws/scene-update.d.ts +17 -0
  129. package/dist/sdk/ws/scene-update.d.ts.map +1 -0
  130. package/dist/sdk/ws/scene-update.js +35 -0
  131. package/dist/sdk/ws/scene-update.js.map +1 -0
  132. package/dist/sdk/ws/update.d.ts +13 -0
  133. package/dist/sdk/ws/update.d.ts.map +1 -0
  134. package/dist/sdk/ws/update.js +22 -0
  135. package/dist/sdk/ws/update.js.map +1 -0
  136. package/dist/tsdoc-metadata.json +1 -1
  137. package/dist/validation.d.ts +2 -2
  138. package/dist/validation.d.ts.map +1 -1
  139. package/dist/validation.js.map +1 -1
  140. package/package.json +8 -5
@@ -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,iDAAkF;AAClF,+CAA2C;AAC3C,qEAAgE;AAChE,iCAA6B;AAC7B,qDAAyD;AACzD,uCAAmC;AAqBnC,aAAa;AACb,IAAiB,QAAQ,CAkFxB;AAlFD,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,8BAAiB,CAAC,SAAA,MAAM,CAAC,CAAC;IACjE,iBAAQ,GAA+B,CAAC,QAAa,EAAwB,EAAE,CAC1F,eAAe,CAAC,QAAQ,CAAC;QACzB,yBAAyB,CAAC,QAAQ,CAAC,YAAY,CAAC;QAChD,yBAAyB,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IAE5C,iEAAiE;IACjE,MAAM,yBAAyB,GAAG,CAAC,KAAa,EAAE,EAAE,CAClD,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,KAAK,KAAK,CAAC,CAAC;AAC9F,CAAC,EAlFgB,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAkFxB"}
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, "enabled" | "disabled">;
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?: "north" | "east" | "south" | "west";
888
+ rotation?: 'north' | 'east' | 'south' | 'west';
809
889
  layout?: {
810
890
  rows: number;
811
891
  cols: number;
@@ -833,6 +913,40 @@ export declare namespace SpawnPoint {
833
913
  const validate: ValidateFunction<SpawnPoint>;
834
914
  }
835
915
 
916
+ export declare type Store = {
917
+ id: string;
918
+ owner: string;
919
+ description: string;
920
+ links: {
921
+ name: string;
922
+ url: string;
923
+ }[];
924
+ images: {
925
+ name: string;
926
+ file: string;
927
+ }[];
928
+ version: number;
929
+ };
930
+
931
+ export declare namespace Store {
932
+ const schema: JSONSchema<Store>;
933
+ const validate: ValidateFunction<Store>;
934
+ }
935
+
936
+ /** @internal @deprecated */
937
+ declare const UPDATE = "update";
938
+
939
+ /** @internal @deprecated */
940
+ declare type Update = {
941
+ type: typeof UPDATE;
942
+ };
943
+
944
+ /** @internal @deprecated */
945
+ declare namespace Update {
946
+ const schema: JSONSchema<Update>;
947
+ const validate: ValidateFunction<Update>;
948
+ }
949
+
836
950
  /**
837
951
  * This type is a subset of AJV's ValidateFunction, it exists to make
838
952
  * .d.ts bundles smaller and to not expose all of AJV context to the
@@ -848,7 +962,7 @@ export declare interface ValidateFunction<T = unknown> {
848
962
  * Validates a type with a schema in a functional way.
849
963
  * @public
850
964
  */
851
- export declare function validateType<T>(theType: Pick<AbstractTypedSchema<T>, "validate">, value: T): boolean;
965
+ export declare function validateType<T>(theType: Pick<AbstractTypedSchema<T>, 'validate'>, value: T): boolean;
852
966
 
853
967
  /**
854
968
  * World Range
@@ -0,0 +1,3 @@
1
+ export * from './ws';
2
+ export * from './project';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -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"}
@@ -0,0 +1,11 @@
1
+ import { JSONSchema, ValidateFunction } from '../../validation';
2
+ export declare enum AssetWearableGender {
3
+ MALE = "male",
4
+ FEMALE = "female",
5
+ BOTH = "both"
6
+ }
7
+ export declare namespace AssetWearableGender {
8
+ const schema: JSONSchema<AssetWearableGender>;
9
+ const validate: ValidateFunction<AssetWearableGender>;
10
+ }
11
+ //# sourceMappingURL=asset-wearable-gender.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"asset-wearable-gender.d.ts","sourceRoot":"","sources":["../../../src/sdk/project/asset-wearable-gender.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,UAAU,EACV,gBAAgB,EACjB,MAAM,kBAAkB,CAAA;AAEzB,oBAAY,mBAAmB;IAC7B,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,IAAI,SAAS;CACd;AAED,yBAAiB,mBAAmB,CAAC;IAC5B,MAAM,MAAM,EAAE,UAAU,CAAC,mBAAmB,CAGlD,CAAA;IAEM,MAAM,QAAQ,EAAE,gBAAgB,CAAC,mBAAmB,CAChC,CAAA;CAC5B"}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AssetWearableGender = void 0;
4
+ const validation_1 = require("../../validation");
5
+ var AssetWearableGender;
6
+ (function (AssetWearableGender) {
7
+ AssetWearableGender["MALE"] = "male";
8
+ AssetWearableGender["FEMALE"] = "female";
9
+ AssetWearableGender["BOTH"] = "both";
10
+ })(AssetWearableGender = exports.AssetWearableGender || (exports.AssetWearableGender = {}));
11
+ (function (AssetWearableGender) {
12
+ AssetWearableGender.schema = {
13
+ type: 'string',
14
+ enum: Object.values(AssetWearableGender)
15
+ };
16
+ AssetWearableGender.validate = (0, validation_1.generateValidator)(AssetWearableGender.schema);
17
+ })(AssetWearableGender = exports.AssetWearableGender || (exports.AssetWearableGender = {}));
18
+ //# sourceMappingURL=asset-wearable-gender.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"asset-wearable-gender.js","sourceRoot":"","sources":["../../../src/sdk/project/asset-wearable-gender.ts"],"names":[],"mappings":";;;AAAA,iDAIyB;AAEzB,IAAY,mBAIX;AAJD,WAAY,mBAAmB;IAC7B,oCAAa,CAAA;IACb,wCAAiB,CAAA;IACjB,oCAAa,CAAA;AACf,CAAC,EAJW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAI9B;AAED,WAAiB,mBAAmB;IACrB,0BAAM,GAAoC;QACrD,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,mBAAmB,CAAC;KACzC,CAAA;IAEY,4BAAQ,GACnB,IAAA,8BAAiB,EAAC,oBAAA,MAAM,CAAC,CAAA;AAC7B,CAAC,EARgB,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAQnC"}
@@ -0,0 +1,3 @@
1
+ export * from './type';
2
+ export * from './asset-json';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/project/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAA;AACtB,cAAc,cAAc,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("./type"), exports);
14
+ __exportStar(require("./asset-json"), exports);
15
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/sdk/project/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAAsB;AACtB,+CAA4B"}
@@ -0,0 +1,11 @@
1
+ import { JSONSchema, ValidateFunction } from '../../validation';
2
+ export declare enum ProjectType {
3
+ SCENE = "scene",
4
+ SMART_ITEM = "smart-item",
5
+ PORTABLE_EXPERIENCE = "portable-experience"
6
+ }
7
+ export declare namespace ProjectType {
8
+ const schema: JSONSchema<ProjectType>;
9
+ const validate: ValidateFunction<ProjectType>;
10
+ }
11
+ //# sourceMappingURL=type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/sdk/project/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,UAAU,EACV,gBAAgB,EACjB,MAAM,kBAAkB,CAAA;AAGzB,oBAAY,WAAW;IACrB,KAAK,UAAU;IACf,UAAU,eAAe;IACzB,mBAAmB,wBAAwB;CAC5C;AAGD,yBAAiB,WAAW,CAAC;IACpB,MAAM,MAAM,EAAE,UAAU,CAAC,WAAW,CAG1C,CAAA;IAEM,MAAM,QAAQ,EAAE,gBAAgB,CAAC,WAAW,CACxB,CAAA;CAC5B"}
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ProjectType = void 0;
4
+ const validation_1 = require("../../validation");
5
+ /* @internal */
6
+ var ProjectType;
7
+ (function (ProjectType) {
8
+ ProjectType["SCENE"] = "scene";
9
+ ProjectType["SMART_ITEM"] = "smart-item";
10
+ ProjectType["PORTABLE_EXPERIENCE"] = "portable-experience";
11
+ })(ProjectType = exports.ProjectType || (exports.ProjectType = {}));
12
+ /* @internal */
13
+ (function (ProjectType) {
14
+ ProjectType.schema = {
15
+ type: 'string',
16
+ enum: [ProjectType]
17
+ };
18
+ ProjectType.validate = (0, validation_1.generateValidator)(ProjectType.schema);
19
+ })(ProjectType = exports.ProjectType || (exports.ProjectType = {}));
20
+ //# sourceMappingURL=type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.js","sourceRoot":"","sources":["../../../src/sdk/project/type.ts"],"names":[],"mappings":";;;AAAA,iDAIyB;AAEzB,eAAe;AACf,IAAY,WAIX;AAJD,WAAY,WAAW;IACrB,8BAAe,CAAA;IACf,wCAAyB,CAAA;IACzB,0DAA2C,CAAA;AAC7C,CAAC,EAJW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAItB;AAED,eAAe;AACf,WAAiB,WAAW;IACb,kBAAM,GAA4B;QAC7C,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,CAAC,WAAW,CAAC;KACpB,CAAA;IAEY,oBAAQ,GACnB,IAAA,8BAAiB,EAAC,YAAA,MAAM,CAAC,CAAA;AAC7B,CAAC,EARgB,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAQ3B"}
@@ -0,0 +1,9 @@
1
+ import { SCENE_UPDATE, SceneUpdate } from './scene-update';
2
+ import { UPDATE, Update } from './update';
3
+ export * from './scene-update';
4
+ export * from './update';
5
+ /** @internal */
6
+ export declare type Actions = typeof SCENE_UPDATE | typeof UPDATE;
7
+ /** @internal */
8
+ export declare type Messages = SceneUpdate | Update;
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/ws/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAC1D,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAEzC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,UAAU,CAAA;AAExB,gBAAgB;AAChB,oBAAY,OAAO,GAAG,OAAO,YAAY,GAAG,OAAO,MAAM,CAAA;AAEzD,gBAAgB;AAChB,oBAAY,QAAQ,GAAG,WAAW,GAAG,MAAM,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("./scene-update"), exports);
14
+ __exportStar(require("./update"), exports);
15
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/sdk/ws/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAGA,iDAA8B;AAC9B,2CAAwB"}
@@ -0,0 +1,17 @@
1
+ import { JSONSchema, ValidateFunction } from '../../validation';
2
+ /** @internal */
3
+ export declare const SCENE_UPDATE = "SCENE_UPDATE";
4
+ /** @internal */
5
+ export declare type SceneUpdate = {
6
+ type: typeof SCENE_UPDATE;
7
+ payload: {
8
+ sceneId: string;
9
+ sceneType: string;
10
+ };
11
+ };
12
+ /** @internal */
13
+ export declare namespace SceneUpdate {
14
+ const schema: JSONSchema<SceneUpdate>;
15
+ const validate: ValidateFunction<SceneUpdate>;
16
+ }
17
+ //# sourceMappingURL=scene-update.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scene-update.d.ts","sourceRoot":"","sources":["../../../src/sdk/ws/scene-update.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,UAAU,EACV,gBAAgB,EACjB,MAAM,kBAAkB,CAAA;AAEzB,gBAAgB;AAChB,eAAO,MAAM,YAAY,iBAAiB,CAAA;AAE1C,gBAAgB;AAChB,oBAAY,WAAW,GAAG;IACxB,IAAI,EAAE,OAAO,YAAY,CAAA;IACzB,OAAO,EAAE;QACP,OAAO,EAAE,MAAM,CAAA;QACf,SAAS,EAAE,MAAM,CAAA;KAClB,CAAA;CACF,CAAA;AAED,gBAAgB;AAChB,yBAAiB,WAAW,CAAC;IACpB,MAAM,MAAM,EAAE,UAAU,CAAC,WAAW,CAsB1C,CAAA;IAEM,MAAM,QAAQ,EAAE,gBAAgB,CAAC,WAAW,CACxB,CAAA;CAC5B"}
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SceneUpdate = exports.SCENE_UPDATE = void 0;
4
+ const validation_1 = require("../../validation");
5
+ /** @internal */
6
+ exports.SCENE_UPDATE = 'SCENE_UPDATE';
7
+ /** @internal */
8
+ var SceneUpdate;
9
+ (function (SceneUpdate) {
10
+ SceneUpdate.schema = {
11
+ type: 'object',
12
+ properties: {
13
+ type: {
14
+ type: 'string',
15
+ enum: [exports.SCENE_UPDATE]
16
+ },
17
+ payload: {
18
+ type: 'object',
19
+ properties: {
20
+ sceneId: {
21
+ type: 'string'
22
+ },
23
+ sceneType: {
24
+ type: 'string'
25
+ }
26
+ },
27
+ additionalProperties: false,
28
+ required: ['sceneId', 'sceneType']
29
+ }
30
+ },
31
+ required: ['payload', 'type']
32
+ };
33
+ SceneUpdate.validate = (0, validation_1.generateValidator)(SceneUpdate.schema);
34
+ })(SceneUpdate = exports.SceneUpdate || (exports.SceneUpdate = {}));
35
+ //# sourceMappingURL=scene-update.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scene-update.js","sourceRoot":"","sources":["../../../src/sdk/ws/scene-update.ts"],"names":[],"mappings":";;;AAAA,iDAIyB;AAEzB,gBAAgB;AACH,QAAA,YAAY,GAAG,cAAc,CAAA;AAW1C,gBAAgB;AAChB,IAAiB,WAAW,CA2B3B;AA3BD,WAAiB,WAAW;IACb,kBAAM,GAA4B;QAC7C,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,CAAC,oBAAY,CAAC;aACrB;YACD,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,OAAO,EAAE;wBACP,IAAI,EAAE,QAAQ;qBACf;oBACD,SAAS,EAAE;wBACT,IAAI,EAAE,QAAQ;qBACf;iBACF;gBACD,oBAAoB,EAAE,KAAK;gBAC3B,QAAQ,EAAE,CAAC,SAAS,EAAE,WAAW,CAAC;aACnC;SACF;QACD,QAAQ,EAAE,CAAC,SAAS,EAAE,MAAM,CAAC;KAC9B,CAAA;IAEY,oBAAQ,GACnB,IAAA,8BAAiB,EAAC,YAAA,MAAM,CAAC,CAAA;AAC7B,CAAC,EA3BgB,WAAW,GAAX,mBAAW,KAAX,mBAAW,QA2B3B"}
@@ -0,0 +1,13 @@
1
+ import { JSONSchema, ValidateFunction } from '../../validation';
2
+ /** @internal @deprecated */
3
+ export declare const UPDATE = "update";
4
+ /** @internal @deprecated */
5
+ export declare type Update = {
6
+ type: typeof UPDATE;
7
+ };
8
+ /** @internal @deprecated */
9
+ export declare namespace Update {
10
+ const schema: JSONSchema<Update>;
11
+ const validate: ValidateFunction<Update>;
12
+ }
13
+ //# sourceMappingURL=update.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../src/sdk/ws/update.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,UAAU,EACV,gBAAgB,EACjB,MAAM,kBAAkB,CAAA;AAEzB,4BAA4B;AAC5B,eAAO,MAAM,MAAM,WAAW,CAAA;AAE9B,4BAA4B;AAC5B,oBAAY,MAAM,GAAG;IACnB,IAAI,EAAE,OAAO,MAAM,CAAA;CACpB,CAAA;AAED,4BAA4B;AAC5B,yBAAiB,MAAM,CAAC;IACf,MAAM,MAAM,EAAE,UAAU,CAAC,MAAM,CASrC,CAAA;IAEM,MAAM,QAAQ,EAAE,gBAAgB,CAAC,MAAM,CAA6B,CAAA;CAC5E"}
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Update = exports.UPDATE = void 0;
4
+ const validation_1 = require("../../validation");
5
+ /** @internal @deprecated */
6
+ exports.UPDATE = 'update';
7
+ /** @internal @deprecated */
8
+ var Update;
9
+ (function (Update) {
10
+ Update.schema = {
11
+ type: 'object',
12
+ properties: {
13
+ type: {
14
+ type: 'string',
15
+ enum: [exports.UPDATE]
16
+ }
17
+ },
18
+ required: ['type']
19
+ };
20
+ Update.validate = (0, validation_1.generateValidator)(Update.schema);
21
+ })(Update = exports.Update || (exports.Update = {}));
22
+ //# sourceMappingURL=update.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update.js","sourceRoot":"","sources":["../../../src/sdk/ws/update.ts"],"names":[],"mappings":";;;AAAA,iDAIyB;AAEzB,4BAA4B;AACf,QAAA,MAAM,GAAG,QAAQ,CAAA;AAO9B,4BAA4B;AAC5B,IAAiB,MAAM,CAatB;AAbD,WAAiB,MAAM;IACR,aAAM,GAAuB;QACxC,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,CAAC,cAAM,CAAC;aACf;SACF;QACD,QAAQ,EAAE,CAAC,MAAM,CAAC;KACnB,CAAA;IAEY,eAAQ,GAA6B,IAAA,8BAAiB,EAAC,OAAA,MAAM,CAAC,CAAA;AAC7E,CAAC,EAbgB,MAAM,GAAN,cAAM,KAAN,cAAM,QAatB"}
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.13.1"
8
+ "packageVersion": "7.18.19"
9
9
  }
10
10
  ]
11
11
  }
@@ -1,4 +1,4 @@
1
- import Ajv, { ErrorObject, JSONSchemaType } from "ajv";
1
+ import Ajv, { ErrorObject, JSONSchemaType } from 'ajv';
2
2
  export { Ajv };
3
3
  /**
4
4
  * This type is a subset of AJV's ValidateFunction, it exists to make
@@ -32,5 +32,5 @@ export declare function generateValidator<T>(schema: JSONSchema<T>): ValidateFun
32
32
  * Validates a type with a schema in a functional way.
33
33
  * @public
34
34
  */
35
- export declare function validateType<T>(theType: Pick<AbstractTypedSchema<T>, "validate">, value: T): boolean;
35
+ export declare function validateType<T>(theType: Pick<AbstractTypedSchema<T>, 'validate'>, value: T): boolean;
36
36
  //# sourceMappingURL=validation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../src/validation.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,KAAK,CAAA;AACtD,OAAO,EAAE,GAAG,EAAE,CAAA;AAEd;;;;;GAKG;AACH,MAAM,WAAW,gBAAgB,CAAC,CAAC,GAAG,OAAO;IAC3C,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,GAAG,GAAG,IAAI,IAAI,CAAC,CAAA;IAChD,MAAM,CAAC,EAAE,IAAI,GAAG,WAAW,EAAE,CAAA;CAC9B;AAED;;;GAGG;AACH,oBAAY,UAAU,CAAC,CAAC,IAAI,cAAc,CAAC,CAAC,CAAC,CAAA;AAE7C;;;GAGG;AACH,oBAAY,mBAAmB,CAAC,CAAC,IAAI;IACnC,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,CAAA;IACrB,QAAQ,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAA;CAC9B,CAAA;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG,gBAAgB,CAAC,CAAC,CAAC,CAG/E;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,mBAAmB,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,EAAE,KAAK,EAAE,CAAC,WAE1F"}
1
+ {"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../src/validation.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,KAAK,CAAA;AACtD,OAAO,EAAE,GAAG,EAAE,CAAA;AAEd;;;;;GAKG;AACH,MAAM,WAAW,gBAAgB,CAAC,CAAC,GAAG,OAAO;IAC3C,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,GAAG,GAAG,IAAI,IAAI,CAAC,CAAA;IAChD,MAAM,CAAC,EAAE,IAAI,GAAG,WAAW,EAAE,CAAA;CAC9B;AAED;;;GAGG;AACH,oBAAY,UAAU,CAAC,CAAC,IAAI,cAAc,CAAC,CAAC,CAAC,CAAA;AAE7C;;;GAGG;AACH,oBAAY,mBAAmB,CAAC,CAAC,IAAI;IACnC,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,CAAA;IACrB,QAAQ,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAA;CAC9B,CAAA;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,EACjC,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,GACpB,gBAAgB,CAAC,CAAC,CAAC,CAGrB;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAC5B,OAAO,EAAE,IAAI,CAAC,mBAAmB,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,EACjD,KAAK,EAAE,CAAC,WAGT"}
@@ -1 +1 @@
1
- {"version":3,"file":"validation.js","sourceRoot":"","sources":["../src/validation.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAsD;AAC7C,cADF,aAAG,CACE;AA4BZ;;;GAGG;AACH,SAAgB,iBAAiB,CAAI,MAAqB;IACxD,MAAM,GAAG,GAAG,IAAI,aAAG,EAAE,CAAA;IACrB,OAAO,GAAG,CAAC,OAAO,CAAI,MAAM,CAAC,CAAA;AAC/B,CAAC;AAHD,8CAGC;AAED;;;GAGG;AACH,SAAgB,YAAY,CAAI,OAAiD,EAAE,KAAQ;IACzF,OAAO,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAA;AAChC,CAAC;AAFD,oCAEC"}
1
+ {"version":3,"file":"validation.js","sourceRoot":"","sources":["../src/validation.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAsD;AAC7C,cADF,aAAG,CACE;AA4BZ;;;GAGG;AACH,SAAgB,iBAAiB,CAC/B,MAAqB;IAErB,MAAM,GAAG,GAAG,IAAI,aAAG,EAAE,CAAA;IACrB,OAAO,GAAG,CAAC,OAAO,CAAI,MAAM,CAAC,CAAA;AAC/B,CAAC;AALD,8CAKC;AAED;;;GAGG;AACH,SAAgB,YAAY,CAC1B,OAAiD,EACjD,KAAQ;IAER,OAAO,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAA;AAChC,CAAC;AALD,oCAKC"}