@dcl/protocol 1.0.0-16804049039.commit-862b555 → 1.0.0-16829025986.commit-d35499a

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 (108) hide show
  1. package/out-js/decentraland/common/texture.gen.d.ts +18 -0
  2. package/out-js/decentraland/common/texture.gen.js +104 -4
  3. package/out-js/decentraland/common/texture.gen.js.map +1 -1
  4. package/out-js/decentraland/kernel/apis/restricted_actions.gen.d.ts +50 -0
  5. package/out-js/decentraland/kernel/apis/restricted_actions.gen.js +175 -1
  6. package/out-js/decentraland/kernel/apis/restricted_actions.gen.js.map +1 -1
  7. package/out-js/decentraland/kernel/comms/rfc4/comms.gen.d.ts +1 -9
  8. package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js +11 -49
  9. package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js.map +1 -1
  10. package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.d.ts +2 -0
  11. package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.js +19 -2
  12. package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.js.map +1 -1
  13. package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.d.ts +41 -0
  14. package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js +241 -3
  15. package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js.map +1 -1
  16. package/out-js/decentraland/sdk/components/avatar_shape.gen.d.ts +2 -2
  17. package/out-js/decentraland/sdk/components/avatar_shape.gen.js +13 -8
  18. package/out-js/decentraland/sdk/components/avatar_shape.gen.js.map +1 -1
  19. package/out-js/decentraland/sdk/components/camera_mode_area.gen.d.ts +35 -1
  20. package/out-js/decentraland/sdk/components/camera_mode_area.gen.js +172 -3
  21. package/out-js/decentraland/sdk/components/camera_mode_area.gen.js.map +1 -1
  22. package/out-js/decentraland/sdk/components/common/input_action.gen.d.ts +3 -0
  23. package/out-js/decentraland/sdk/components/common/input_action.gen.js +18 -0
  24. package/out-js/decentraland/sdk/components/common/input_action.gen.js.map +1 -1
  25. package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.d.ts +19 -0
  26. package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js +90 -3
  27. package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js.map +1 -1
  28. package/out-js/decentraland/sdk/components/gltf_node.gen.d.ts +66 -0
  29. package/out-js/decentraland/sdk/components/gltf_node.gen.js +69 -0
  30. package/out-js/decentraland/sdk/components/gltf_node.gen.js.map +1 -0
  31. package/out-js/decentraland/sdk/components/gltf_node_state.gen.d.ts +43 -0
  32. package/out-js/decentraland/sdk/components/gltf_node_state.gen.js +122 -0
  33. package/out-js/decentraland/sdk/components/gltf_node_state.gen.js.map +1 -0
  34. package/out-js/decentraland/sdk/components/material.gen.d.ts +20 -0
  35. package/out-js/decentraland/sdk/components/material.gen.js +86 -2
  36. package/out-js/decentraland/sdk/components/material.gen.js.map +1 -1
  37. package/out-js/decentraland/sdk/components/mesh_collider.gen.d.ts +18 -0
  38. package/out-js/decentraland/sdk/components/mesh_collider.gen.js +90 -4
  39. package/out-js/decentraland/sdk/components/mesh_collider.gen.js.map +1 -1
  40. package/out-js/decentraland/sdk/components/mesh_renderer.gen.d.ts +19 -3
  41. package/out-js/decentraland/sdk/components/mesh_renderer.gen.js +90 -4
  42. package/out-js/decentraland/sdk/components/mesh_renderer.gen.js.map +1 -1
  43. package/out-js/decentraland/sdk/components/ui_text.gen.d.ts +4 -0
  44. package/out-js/decentraland/sdk/components/ui_text.gen.js +30 -1
  45. package/out-js/decentraland/sdk/components/ui_text.gen.js.map +1 -1
  46. package/out-js/decentraland/sdk/components/ui_transform.gen.d.ts +33 -0
  47. package/out-js/decentraland/sdk/components/ui_transform.gen.js +176 -3
  48. package/out-js/decentraland/sdk/components/ui_transform.gen.js.map +1 -1
  49. package/out-js/decentraland/social_service/v2/social_service_v2.gen.d.ts +32 -1305
  50. package/out-js/decentraland/social_service/v2/social_service_v2.gen.js +148 -6717
  51. package/out-js/decentraland/social_service/v2/social_service_v2.gen.js.map +1 -1
  52. package/out-ts/decentraland/common/texture.gen.ts +119 -4
  53. package/out-ts/decentraland/kernel/apis/restricted_actions.gen.ts +187 -0
  54. package/out-ts/decentraland/kernel/comms/rfc4/comms.gen.ts +10 -59
  55. package/out-ts/decentraland/sdk/components/avatar_equipped_data.gen.ts +20 -1
  56. package/out-ts/decentraland/sdk/components/avatar_modifier_area.gen.ts +292 -1
  57. package/out-ts/decentraland/sdk/components/avatar_shape.gen.ts +14 -10
  58. package/out-ts/decentraland/sdk/components/camera_mode_area.gen.ts +218 -2
  59. package/out-ts/decentraland/sdk/components/common/input_action.gen.ts +18 -0
  60. package/out-ts/decentraland/sdk/components/gltf_container_loading_state.gen.ts +108 -2
  61. package/out-ts/decentraland/sdk/components/gltf_node.gen.ts +116 -0
  62. package/out-ts/decentraland/sdk/components/gltf_node_state.gen.ts +139 -0
  63. package/out-ts/decentraland/sdk/components/material.gen.ts +102 -1
  64. package/out-ts/decentraland/sdk/components/mesh_collider.gen.ts +99 -0
  65. package/out-ts/decentraland/sdk/components/mesh_renderer.gen.ts +100 -3
  66. package/out-ts/decentraland/sdk/components/ui_text.gen.ts +40 -1
  67. package/out-ts/decentraland/sdk/components/ui_transform.gen.ts +193 -0
  68. package/out-ts/decentraland/social_service/v2/social_service_v2.gen.ts +1019 -8579
  69. package/package.json +7 -4
  70. package/proto/decentraland/common/texture.proto +8 -1
  71. package/proto/decentraland/kernel/apis/restricted_actions.proto +16 -0
  72. package/proto/decentraland/kernel/comms/rfc4/comms.proto +3 -8
  73. package/proto/decentraland/sdk/components/avatar_equipped_data.proto +2 -1
  74. package/proto/decentraland/sdk/components/avatar_modifier_area.proto +21 -0
  75. package/proto/decentraland/sdk/components/avatar_shape.proto +1 -2
  76. package/proto/decentraland/sdk/components/camera_layer.proto +30 -0
  77. package/proto/decentraland/sdk/components/camera_layers.proto +11 -0
  78. package/proto/decentraland/sdk/components/camera_mode_area.proto +22 -3
  79. package/proto/decentraland/sdk/components/common/input_action.proto +3 -0
  80. package/proto/decentraland/sdk/components/global_light.proto +22 -0
  81. package/proto/decentraland/sdk/components/gltf_container_loading_state.proto +13 -0
  82. package/proto/decentraland/sdk/components/gltf_node.proto +42 -0
  83. package/proto/decentraland/sdk/components/gltf_node_state.proto +20 -0
  84. package/proto/decentraland/sdk/components/light_source.proto +1 -1
  85. package/proto/decentraland/sdk/components/material.proto +13 -1
  86. package/proto/decentraland/sdk/components/mesh_collider.proto +8 -1
  87. package/proto/decentraland/sdk/components/mesh_renderer.proto +8 -3
  88. package/proto/decentraland/sdk/components/primary_pointer_info.proto +5 -0
  89. package/proto/decentraland/sdk/components/texture_camera.proto +46 -0
  90. package/proto/decentraland/sdk/components/ui_canvas.proto +16 -0
  91. package/proto/decentraland/sdk/components/ui_scroll_result.proto +12 -0
  92. package/proto/decentraland/sdk/components/ui_text.proto +3 -0
  93. package/proto/decentraland/sdk/components/ui_transform.proto +20 -0
  94. package/proto/decentraland/sdk/components/virtual_camera.proto +0 -2
  95. package/proto/decentraland/social_service/v2/social_service_v2.proto +11 -538
  96. package/public/sdk-components.proto +2 -1
  97. package/out-js/decentraland/sdk/components/gltf_node_modifiers.gen.d.ts +0 -57
  98. package/out-js/decentraland/sdk/components/gltf_node_modifiers.gen.js +0 -164
  99. package/out-js/decentraland/sdk/components/gltf_node_modifiers.gen.js.map +0 -1
  100. package/out-js/decentraland/social_service/errors.gen.d.ts +0 -96
  101. package/out-js/decentraland/social_service/errors.gen.js +0 -405
  102. package/out-js/decentraland/social_service/errors.gen.js.map +0 -1
  103. package/out-ts/decentraland/sdk/components/gltf_node_modifiers.gen.ts +0 -204
  104. package/out-ts/decentraland/social_service/errors.gen.ts +0 -442
  105. package/proto/decentraland/sdk/components/gltf_node_modifiers.proto +0 -25
  106. package/proto/decentraland/sdk/components/skybox_time.proto +0 -20
  107. package/proto/decentraland/social_service/errors.proto +0 -30
  108. package/proto/decentraland/social_service/v3/social_service_v3.proto +0 -51
@@ -1 +0,0 @@
1
- {"version":3,"file":"errors.gen.js","sourceRoot":"","sources":["../../../out-ts/decentraland/social_service/errors.gen.ts"],"names":[],"mappings":";;;;;;AAAA,oBAAoB;AACpB,iEAAqC;AAExB,QAAA,eAAe,GAAG,6BAA6B,CAAC;AA8B7D,SAAS,iCAAiC;IACxC,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC;AAChC,CAAC;AAED,IAAiB,uBAAuB,CAoDvC;AApDD,WAAiB,uBAAuB;IACtC,SAAgB,MAAM,CAAC,OAAgC,EAAE,SAAqB,iBAAG,CAAC,MAAM,CAAC,MAAM,EAAE;QAC/F,IAAI,OAAO,CAAC,OAAO,KAAK,SAAS,EAAE,CAAC;YAClC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QAC5C,CAAC;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;IALe,8BAAM,SAKrB,CAAA;IAED,SAAgB,MAAM,CAAC,KAA8B,EAAE,MAAe;QACpE,MAAM,MAAM,GAAG,KAAK,YAAY,iBAAG,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,iBAAG,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QAC9E,IAAI,GAAG,GAAG,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,GAAG,MAAM,CAAC;QAClE,MAAM,OAAO,GAAG,iCAAiC,EAAE,CAAC;QACpD,OAAO,MAAM,CAAC,GAAG,GAAG,GAAG,EAAE,CAAC;YACxB,MAAM,GAAG,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC;YAC5B,QAAQ,GAAG,KAAK,CAAC,EAAE,CAAC;gBAClB,KAAK,CAAC;oBACJ,IAAI,GAAG,KAAK,EAAE,EAAE,CAAC;wBACf,MAAM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CAAA;AACH,CAAC,EAlDgB,aAAa,6BAAb,aAAa,QAkD7B;AAcD,SAAS,KAAK,CAAC,KAAU;IACvB,OAAO,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,CAAC;AAC/C,CAAC"}
@@ -1,204 +0,0 @@
1
- /* eslint-disable */
2
- import _m0 from "protobufjs/minimal";
3
- import { PBMaterial } from "./material.gen";
4
-
5
- export const protobufPackage = "decentraland.sdk.components";
6
-
7
- /**
8
- * GltfNodeModifiers component is to be used attached to entities that have the GltfContainer component.
9
- *
10
- * This allows to override either the Material or the Casting Shadows behaviour of the target GLTF Node.
11
- *
12
- * * If the 'path' of the first modifier in the collection is an empty string: the configuration will
13
- * affect all of the GLTF Nodes (as a global modifier).
14
- * * Otherwise, for the modifiers whose 'path' is found in the GLTF hierarchy, the modifier will affect only
15
- * the target Nodes.
16
- */
17
- export interface PBGltfNodeModifiers {
18
- modifiers: PBGltfNodeModifiers_GltfNodeModifier[];
19
- }
20
-
21
- export interface PBGltfNodeModifiers_GltfNodeModifier {
22
- /** The GLTF hierarchy path of the target Node to be affected */
23
- path: string;
24
- /** The casting shadows enabled override */
25
- castShadows?:
26
- | boolean
27
- | undefined;
28
- /** The Material that will be overridden on the target Node */
29
- material?: PBMaterial | undefined;
30
- }
31
-
32
- function createBasePBGltfNodeModifiers(): PBGltfNodeModifiers {
33
- return { modifiers: [] };
34
- }
35
-
36
- export namespace PBGltfNodeModifiers {
37
- export function encode(message: PBGltfNodeModifiers, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
38
- for (const v of message.modifiers) {
39
- PBGltfNodeModifiers_GltfNodeModifier.encode(v!, writer.uint32(10).fork()).ldelim();
40
- }
41
- return writer;
42
- }
43
-
44
- export function decode(input: _m0.Reader | Uint8Array, length?: number): PBGltfNodeModifiers {
45
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
46
- let end = length === undefined ? reader.len : reader.pos + length;
47
- const message = createBasePBGltfNodeModifiers();
48
- while (reader.pos < end) {
49
- const tag = reader.uint32();
50
- switch (tag >>> 3) {
51
- case 1:
52
- if (tag !== 10) {
53
- break;
54
- }
55
-
56
- message.modifiers.push(PBGltfNodeModifiers_GltfNodeModifier.decode(reader, reader.uint32()));
57
- continue;
58
- }
59
- if ((tag & 7) === 4 || tag === 0) {
60
- break;
61
- }
62
- reader.skipType(tag & 7);
63
- }
64
- return message;
65
- }
66
-
67
- export function fromJSON(object: any): PBGltfNodeModifiers {
68
- return {
69
- modifiers: Array.isArray(object?.modifiers)
70
- ? object.modifiers.map((e: any) => PBGltfNodeModifiers_GltfNodeModifier.fromJSON(e))
71
- : [],
72
- };
73
- }
74
-
75
- export function toJSON(message: PBGltfNodeModifiers): unknown {
76
- const obj: any = {};
77
- if (message.modifiers) {
78
- obj.modifiers = message.modifiers.map((e) => e ? PBGltfNodeModifiers_GltfNodeModifier.toJSON(e) : undefined);
79
- } else {
80
- obj.modifiers = [];
81
- }
82
- return obj;
83
- }
84
-
85
- export function create<I extends Exact<DeepPartial<PBGltfNodeModifiers>, I>>(base?: I): PBGltfNodeModifiers {
86
- return PBGltfNodeModifiers.fromPartial(base ?? {});
87
- }
88
-
89
- export function fromPartial<I extends Exact<DeepPartial<PBGltfNodeModifiers>, I>>(object: I): PBGltfNodeModifiers {
90
- const message = createBasePBGltfNodeModifiers();
91
- message.modifiers = object.modifiers?.map((e) => PBGltfNodeModifiers_GltfNodeModifier.fromPartial(e)) || [];
92
- return message;
93
- }
94
- }
95
-
96
- function createBasePBGltfNodeModifiers_GltfNodeModifier(): PBGltfNodeModifiers_GltfNodeModifier {
97
- return { path: "", castShadows: undefined, material: undefined };
98
- }
99
-
100
- export namespace PBGltfNodeModifiers_GltfNodeModifier {
101
- export function encode(
102
- message: PBGltfNodeModifiers_GltfNodeModifier,
103
- writer: _m0.Writer = _m0.Writer.create(),
104
- ): _m0.Writer {
105
- if (message.path !== "") {
106
- writer.uint32(10).string(message.path);
107
- }
108
- if (message.castShadows !== undefined) {
109
- writer.uint32(16).bool(message.castShadows);
110
- }
111
- if (message.material !== undefined) {
112
- PBMaterial.encode(message.material, writer.uint32(26).fork()).ldelim();
113
- }
114
- return writer;
115
- }
116
-
117
- export function decode(input: _m0.Reader | Uint8Array, length?: number): PBGltfNodeModifiers_GltfNodeModifier {
118
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
119
- let end = length === undefined ? reader.len : reader.pos + length;
120
- const message = createBasePBGltfNodeModifiers_GltfNodeModifier();
121
- while (reader.pos < end) {
122
- const tag = reader.uint32();
123
- switch (tag >>> 3) {
124
- case 1:
125
- if (tag !== 10) {
126
- break;
127
- }
128
-
129
- message.path = reader.string();
130
- continue;
131
- case 2:
132
- if (tag !== 16) {
133
- break;
134
- }
135
-
136
- message.castShadows = reader.bool();
137
- continue;
138
- case 3:
139
- if (tag !== 26) {
140
- break;
141
- }
142
-
143
- message.material = PBMaterial.decode(reader, reader.uint32());
144
- continue;
145
- }
146
- if ((tag & 7) === 4 || tag === 0) {
147
- break;
148
- }
149
- reader.skipType(tag & 7);
150
- }
151
- return message;
152
- }
153
-
154
- export function fromJSON(object: any): PBGltfNodeModifiers_GltfNodeModifier {
155
- return {
156
- path: isSet(object.path) ? String(object.path) : "",
157
- castShadows: isSet(object.castShadows) ? Boolean(object.castShadows) : undefined,
158
- material: isSet(object.material) ? PBMaterial.fromJSON(object.material) : undefined,
159
- };
160
- }
161
-
162
- export function toJSON(message: PBGltfNodeModifiers_GltfNodeModifier): unknown {
163
- const obj: any = {};
164
- message.path !== undefined && (obj.path = message.path);
165
- message.castShadows !== undefined && (obj.castShadows = message.castShadows);
166
- message.material !== undefined &&
167
- (obj.material = message.material ? PBMaterial.toJSON(message.material) : undefined);
168
- return obj;
169
- }
170
-
171
- export function create<I extends Exact<DeepPartial<PBGltfNodeModifiers_GltfNodeModifier>, I>>(
172
- base?: I,
173
- ): PBGltfNodeModifiers_GltfNodeModifier {
174
- return PBGltfNodeModifiers_GltfNodeModifier.fromPartial(base ?? {});
175
- }
176
-
177
- export function fromPartial<I extends Exact<DeepPartial<PBGltfNodeModifiers_GltfNodeModifier>, I>>(
178
- object: I,
179
- ): PBGltfNodeModifiers_GltfNodeModifier {
180
- const message = createBasePBGltfNodeModifiers_GltfNodeModifier();
181
- message.path = object.path ?? "";
182
- message.castShadows = object.castShadows ?? undefined;
183
- message.material = (object.material !== undefined && object.material !== null)
184
- ? PBMaterial.fromPartial(object.material)
185
- : undefined;
186
- return message;
187
- }
188
- }
189
-
190
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
191
-
192
- export type DeepPartial<T> = T extends Builtin ? T
193
- : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
194
- : T extends { $case: string } ? { [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]> } & { $case: T["$case"] }
195
- : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
196
- : Partial<T>;
197
-
198
- type KeysOfUnion<T> = T extends T ? keyof T : never;
199
- export type Exact<P, I extends P> = P extends Builtin ? P
200
- : P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
201
-
202
- function isSet(value: any): boolean {
203
- return value !== null && value !== undefined;
204
- }
@@ -1,442 +0,0 @@
1
- /* eslint-disable */
2
- import _m0 from "protobufjs/minimal";
3
-
4
- export const protobufPackage = "decentraland.social_service";
5
-
6
- export interface InvalidFriendshipAction {
7
- message?: string | undefined;
8
- }
9
-
10
- export interface InternalServerError {
11
- message?: string | undefined;
12
- }
13
-
14
- export interface InvalidRequest {
15
- message?: string | undefined;
16
- }
17
-
18
- export interface ProfileNotFound {
19
- message?: string | undefined;
20
- }
21
-
22
- export interface ConflictingError {
23
- message?: string | undefined;
24
- }
25
-
26
- export interface ForbiddenError {
27
- message?: string | undefined;
28
- }
29
-
30
- export interface NotFoundError {
31
- message?: string | undefined;
32
- }
33
-
34
- function createBaseInvalidFriendshipAction(): InvalidFriendshipAction {
35
- return { message: undefined };
36
- }
37
-
38
- export namespace InvalidFriendshipAction {
39
- export function encode(message: InvalidFriendshipAction, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
40
- if (message.message !== undefined) {
41
- writer.uint32(10).string(message.message);
42
- }
43
- return writer;
44
- }
45
-
46
- export function decode(input: _m0.Reader | Uint8Array, length?: number): InvalidFriendshipAction {
47
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
48
- let end = length === undefined ? reader.len : reader.pos + length;
49
- const message = createBaseInvalidFriendshipAction();
50
- while (reader.pos < end) {
51
- const tag = reader.uint32();
52
- switch (tag >>> 3) {
53
- case 1:
54
- if (tag !== 10) {
55
- break;
56
- }
57
-
58
- message.message = reader.string();
59
- continue;
60
- }
61
- if ((tag & 7) === 4 || tag === 0) {
62
- break;
63
- }
64
- reader.skipType(tag & 7);
65
- }
66
- return message;
67
- }
68
-
69
- export function fromJSON(object: any): InvalidFriendshipAction {
70
- return { message: isSet(object.message) ? String(object.message) : undefined };
71
- }
72
-
73
- export function toJSON(message: InvalidFriendshipAction): unknown {
74
- const obj: any = {};
75
- message.message !== undefined && (obj.message = message.message);
76
- return obj;
77
- }
78
-
79
- export function create<I extends Exact<DeepPartial<InvalidFriendshipAction>, I>>(base?: I): InvalidFriendshipAction {
80
- return InvalidFriendshipAction.fromPartial(base ?? {});
81
- }
82
-
83
- export function fromPartial<I extends Exact<DeepPartial<InvalidFriendshipAction>, I>>(
84
- object: I,
85
- ): InvalidFriendshipAction {
86
- const message = createBaseInvalidFriendshipAction();
87
- message.message = object.message ?? undefined;
88
- return message;
89
- }
90
- }
91
-
92
- function createBaseInternalServerError(): InternalServerError {
93
- return { message: undefined };
94
- }
95
-
96
- export namespace InternalServerError {
97
- export function encode(message: InternalServerError, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
98
- if (message.message !== undefined) {
99
- writer.uint32(10).string(message.message);
100
- }
101
- return writer;
102
- }
103
-
104
- export function decode(input: _m0.Reader | Uint8Array, length?: number): InternalServerError {
105
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
106
- let end = length === undefined ? reader.len : reader.pos + length;
107
- const message = createBaseInternalServerError();
108
- while (reader.pos < end) {
109
- const tag = reader.uint32();
110
- switch (tag >>> 3) {
111
- case 1:
112
- if (tag !== 10) {
113
- break;
114
- }
115
-
116
- message.message = reader.string();
117
- continue;
118
- }
119
- if ((tag & 7) === 4 || tag === 0) {
120
- break;
121
- }
122
- reader.skipType(tag & 7);
123
- }
124
- return message;
125
- }
126
-
127
- export function fromJSON(object: any): InternalServerError {
128
- return { message: isSet(object.message) ? String(object.message) : undefined };
129
- }
130
-
131
- export function toJSON(message: InternalServerError): unknown {
132
- const obj: any = {};
133
- message.message !== undefined && (obj.message = message.message);
134
- return obj;
135
- }
136
-
137
- export function create<I extends Exact<DeepPartial<InternalServerError>, I>>(base?: I): InternalServerError {
138
- return InternalServerError.fromPartial(base ?? {});
139
- }
140
-
141
- export function fromPartial<I extends Exact<DeepPartial<InternalServerError>, I>>(object: I): InternalServerError {
142
- const message = createBaseInternalServerError();
143
- message.message = object.message ?? undefined;
144
- return message;
145
- }
146
- }
147
-
148
- function createBaseInvalidRequest(): InvalidRequest {
149
- return { message: undefined };
150
- }
151
-
152
- export namespace InvalidRequest {
153
- export function encode(message: InvalidRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
154
- if (message.message !== undefined) {
155
- writer.uint32(10).string(message.message);
156
- }
157
- return writer;
158
- }
159
-
160
- export function decode(input: _m0.Reader | Uint8Array, length?: number): InvalidRequest {
161
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
162
- let end = length === undefined ? reader.len : reader.pos + length;
163
- const message = createBaseInvalidRequest();
164
- while (reader.pos < end) {
165
- const tag = reader.uint32();
166
- switch (tag >>> 3) {
167
- case 1:
168
- if (tag !== 10) {
169
- break;
170
- }
171
-
172
- message.message = reader.string();
173
- continue;
174
- }
175
- if ((tag & 7) === 4 || tag === 0) {
176
- break;
177
- }
178
- reader.skipType(tag & 7);
179
- }
180
- return message;
181
- }
182
-
183
- export function fromJSON(object: any): InvalidRequest {
184
- return { message: isSet(object.message) ? String(object.message) : undefined };
185
- }
186
-
187
- export function toJSON(message: InvalidRequest): unknown {
188
- const obj: any = {};
189
- message.message !== undefined && (obj.message = message.message);
190
- return obj;
191
- }
192
-
193
- export function create<I extends Exact<DeepPartial<InvalidRequest>, I>>(base?: I): InvalidRequest {
194
- return InvalidRequest.fromPartial(base ?? {});
195
- }
196
-
197
- export function fromPartial<I extends Exact<DeepPartial<InvalidRequest>, I>>(object: I): InvalidRequest {
198
- const message = createBaseInvalidRequest();
199
- message.message = object.message ?? undefined;
200
- return message;
201
- }
202
- }
203
-
204
- function createBaseProfileNotFound(): ProfileNotFound {
205
- return { message: undefined };
206
- }
207
-
208
- export namespace ProfileNotFound {
209
- export function encode(message: ProfileNotFound, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
210
- if (message.message !== undefined) {
211
- writer.uint32(10).string(message.message);
212
- }
213
- return writer;
214
- }
215
-
216
- export function decode(input: _m0.Reader | Uint8Array, length?: number): ProfileNotFound {
217
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
218
- let end = length === undefined ? reader.len : reader.pos + length;
219
- const message = createBaseProfileNotFound();
220
- while (reader.pos < end) {
221
- const tag = reader.uint32();
222
- switch (tag >>> 3) {
223
- case 1:
224
- if (tag !== 10) {
225
- break;
226
- }
227
-
228
- message.message = reader.string();
229
- continue;
230
- }
231
- if ((tag & 7) === 4 || tag === 0) {
232
- break;
233
- }
234
- reader.skipType(tag & 7);
235
- }
236
- return message;
237
- }
238
-
239
- export function fromJSON(object: any): ProfileNotFound {
240
- return { message: isSet(object.message) ? String(object.message) : undefined };
241
- }
242
-
243
- export function toJSON(message: ProfileNotFound): unknown {
244
- const obj: any = {};
245
- message.message !== undefined && (obj.message = message.message);
246
- return obj;
247
- }
248
-
249
- export function create<I extends Exact<DeepPartial<ProfileNotFound>, I>>(base?: I): ProfileNotFound {
250
- return ProfileNotFound.fromPartial(base ?? {});
251
- }
252
-
253
- export function fromPartial<I extends Exact<DeepPartial<ProfileNotFound>, I>>(object: I): ProfileNotFound {
254
- const message = createBaseProfileNotFound();
255
- message.message = object.message ?? undefined;
256
- return message;
257
- }
258
- }
259
-
260
- function createBaseConflictingError(): ConflictingError {
261
- return { message: undefined };
262
- }
263
-
264
- export namespace ConflictingError {
265
- export function encode(message: ConflictingError, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
266
- if (message.message !== undefined) {
267
- writer.uint32(10).string(message.message);
268
- }
269
- return writer;
270
- }
271
-
272
- export function decode(input: _m0.Reader | Uint8Array, length?: number): ConflictingError {
273
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
274
- let end = length === undefined ? reader.len : reader.pos + length;
275
- const message = createBaseConflictingError();
276
- while (reader.pos < end) {
277
- const tag = reader.uint32();
278
- switch (tag >>> 3) {
279
- case 1:
280
- if (tag !== 10) {
281
- break;
282
- }
283
-
284
- message.message = reader.string();
285
- continue;
286
- }
287
- if ((tag & 7) === 4 || tag === 0) {
288
- break;
289
- }
290
- reader.skipType(tag & 7);
291
- }
292
- return message;
293
- }
294
-
295
- export function fromJSON(object: any): ConflictingError {
296
- return { message: isSet(object.message) ? String(object.message) : undefined };
297
- }
298
-
299
- export function toJSON(message: ConflictingError): unknown {
300
- const obj: any = {};
301
- message.message !== undefined && (obj.message = message.message);
302
- return obj;
303
- }
304
-
305
- export function create<I extends Exact<DeepPartial<ConflictingError>, I>>(base?: I): ConflictingError {
306
- return ConflictingError.fromPartial(base ?? {});
307
- }
308
-
309
- export function fromPartial<I extends Exact<DeepPartial<ConflictingError>, I>>(object: I): ConflictingError {
310
- const message = createBaseConflictingError();
311
- message.message = object.message ?? undefined;
312
- return message;
313
- }
314
- }
315
-
316
- function createBaseForbiddenError(): ForbiddenError {
317
- return { message: undefined };
318
- }
319
-
320
- export namespace ForbiddenError {
321
- export function encode(message: ForbiddenError, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
322
- if (message.message !== undefined) {
323
- writer.uint32(10).string(message.message);
324
- }
325
- return writer;
326
- }
327
-
328
- export function decode(input: _m0.Reader | Uint8Array, length?: number): ForbiddenError {
329
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
330
- let end = length === undefined ? reader.len : reader.pos + length;
331
- const message = createBaseForbiddenError();
332
- while (reader.pos < end) {
333
- const tag = reader.uint32();
334
- switch (tag >>> 3) {
335
- case 1:
336
- if (tag !== 10) {
337
- break;
338
- }
339
-
340
- message.message = reader.string();
341
- continue;
342
- }
343
- if ((tag & 7) === 4 || tag === 0) {
344
- break;
345
- }
346
- reader.skipType(tag & 7);
347
- }
348
- return message;
349
- }
350
-
351
- export function fromJSON(object: any): ForbiddenError {
352
- return { message: isSet(object.message) ? String(object.message) : undefined };
353
- }
354
-
355
- export function toJSON(message: ForbiddenError): unknown {
356
- const obj: any = {};
357
- message.message !== undefined && (obj.message = message.message);
358
- return obj;
359
- }
360
-
361
- export function create<I extends Exact<DeepPartial<ForbiddenError>, I>>(base?: I): ForbiddenError {
362
- return ForbiddenError.fromPartial(base ?? {});
363
- }
364
-
365
- export function fromPartial<I extends Exact<DeepPartial<ForbiddenError>, I>>(object: I): ForbiddenError {
366
- const message = createBaseForbiddenError();
367
- message.message = object.message ?? undefined;
368
- return message;
369
- }
370
- }
371
-
372
- function createBaseNotFoundError(): NotFoundError {
373
- return { message: undefined };
374
- }
375
-
376
- export namespace NotFoundError {
377
- export function encode(message: NotFoundError, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
378
- if (message.message !== undefined) {
379
- writer.uint32(10).string(message.message);
380
- }
381
- return writer;
382
- }
383
-
384
- export function decode(input: _m0.Reader | Uint8Array, length?: number): NotFoundError {
385
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
386
- let end = length === undefined ? reader.len : reader.pos + length;
387
- const message = createBaseNotFoundError();
388
- while (reader.pos < end) {
389
- const tag = reader.uint32();
390
- switch (tag >>> 3) {
391
- case 1:
392
- if (tag !== 10) {
393
- break;
394
- }
395
-
396
- message.message = reader.string();
397
- continue;
398
- }
399
- if ((tag & 7) === 4 || tag === 0) {
400
- break;
401
- }
402
- reader.skipType(tag & 7);
403
- }
404
- return message;
405
- }
406
-
407
- export function fromJSON(object: any): NotFoundError {
408
- return { message: isSet(object.message) ? String(object.message) : undefined };
409
- }
410
-
411
- export function toJSON(message: NotFoundError): unknown {
412
- const obj: any = {};
413
- message.message !== undefined && (obj.message = message.message);
414
- return obj;
415
- }
416
-
417
- export function create<I extends Exact<DeepPartial<NotFoundError>, I>>(base?: I): NotFoundError {
418
- return NotFoundError.fromPartial(base ?? {});
419
- }
420
-
421
- export function fromPartial<I extends Exact<DeepPartial<NotFoundError>, I>>(object: I): NotFoundError {
422
- const message = createBaseNotFoundError();
423
- message.message = object.message ?? undefined;
424
- return message;
425
- }
426
- }
427
-
428
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
429
-
430
- export type DeepPartial<T> = T extends Builtin ? T
431
- : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
432
- : T extends { $case: string } ? { [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]> } & { $case: T["$case"] }
433
- : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
434
- : Partial<T>;
435
-
436
- type KeysOfUnion<T> = T extends T ? keyof T : never;
437
- export type Exact<P, I extends P> = P extends Builtin ? P
438
- : P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
439
-
440
- function isSet(value: any): boolean {
441
- return value !== null && value !== undefined;
442
- }
@@ -1,25 +0,0 @@
1
- syntax = "proto3";
2
-
3
- package decentraland.sdk.components;
4
-
5
- import "decentraland/sdk/components/common/id.proto";
6
- import "decentraland/sdk/components/material.proto";
7
-
8
- option (common.ecs_component_id) = 1099;
9
-
10
- // GltfNodeModifiers component is to be used attached to entities that have the GltfContainer component.
11
- //
12
- // This allows to override either the Material or the Casting Shadows behaviour of the target GLTF Node.
13
- //
14
- // * If the 'path' of the first modifier in the collection is an empty string: the configuration will
15
- // affect all of the GLTF Nodes (as a global modifier).
16
- // * Otherwise, for the modifiers whose 'path' is found in the GLTF hierarchy, the modifier will affect only
17
- // the target Nodes.
18
- message PBGltfNodeModifiers {
19
- message GltfNodeModifier {
20
- string path = 1; // The GLTF hierarchy path of the target Node to be affected
21
- optional bool cast_shadows = 2; // The casting shadows enabled override
22
- optional PBMaterial material = 3; // The Material that will be overridden on the target Node
23
- }
24
- repeated GltfNodeModifier modifiers = 1;
25
- }