@dcl/protocol 1.0.0-22917704966.commit-8d5910d → 1.0.0-23295977779.commit-76299d9

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 (118) hide show
  1. package/out-js/decentraland/common/texture.gen.d.ts +0 -18
  2. package/out-js/decentraland/common/texture.gen.js +4 -104
  3. package/out-js/decentraland/common/texture.gen.js.map +1 -1
  4. package/out-js/decentraland/kernel/apis/restricted_actions.gen.d.ts +0 -109
  5. package/out-js/decentraland/kernel/apis/restricted_actions.gen.js +1 -383
  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 +19 -0
  8. package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js +146 -11
  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 +0 -2
  11. package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.js +2 -19
  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 +0 -41
  14. package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js +3 -241
  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 +0 -2
  17. package/out-js/decentraland/sdk/components/avatar_shape.gen.js +1 -19
  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 +1 -35
  20. package/out-js/decentraland/sdk/components/camera_mode_area.gen.js +3 -172
  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 +0 -4
  23. package/out-js/decentraland/sdk/components/common/input_action.gen.js +0 -24
  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 +0 -19
  26. package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js +3 -90
  27. package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js.map +1 -1
  28. package/out-js/decentraland/sdk/components/material.gen.d.ts +0 -20
  29. package/out-js/decentraland/sdk/components/material.gen.js +2 -86
  30. package/out-js/decentraland/sdk/components/material.gen.js.map +1 -1
  31. package/out-js/decentraland/sdk/components/mesh_collider.gen.d.ts +0 -18
  32. package/out-js/decentraland/sdk/components/mesh_collider.gen.js +4 -90
  33. package/out-js/decentraland/sdk/components/mesh_collider.gen.js.map +1 -1
  34. package/out-js/decentraland/sdk/components/mesh_renderer.gen.d.ts +3 -19
  35. package/out-js/decentraland/sdk/components/mesh_renderer.gen.js +4 -90
  36. package/out-js/decentraland/sdk/components/mesh_renderer.gen.js.map +1 -1
  37. package/out-js/decentraland/sdk/components/raycast.gen.d.ts +0 -13
  38. package/out-js/decentraland/sdk/components/raycast.gen.js +2 -64
  39. package/out-js/decentraland/sdk/components/raycast.gen.js.map +1 -1
  40. package/out-js/decentraland/sdk/components/ui_text.gen.d.ts +0 -4
  41. package/out-js/decentraland/sdk/components/ui_text.gen.js +1 -30
  42. package/out-js/decentraland/sdk/components/ui_text.gen.js.map +1 -1
  43. package/out-js/decentraland/sdk/components/ui_transform.gen.d.ts +0 -33
  44. package/out-js/decentraland/sdk/components/ui_transform.gen.js +3 -176
  45. package/out-js/decentraland/sdk/components/ui_transform.gen.js.map +1 -1
  46. package/out-js/decentraland/social_service/v2/social_service_v2.gen.d.ts +9 -0
  47. package/out-js/decentraland/social_service/v2/social_service_v2.gen.js +76 -7
  48. package/out-js/decentraland/social_service/v2/social_service_v2.gen.js.map +1 -1
  49. package/out-ts/decentraland/common/texture.gen.ts +4 -119
  50. package/out-ts/decentraland/kernel/apis/restricted_actions.gen.ts +0 -410
  51. package/out-ts/decentraland/kernel/comms/rfc4/comms.gen.ts +153 -1
  52. package/out-ts/decentraland/sdk/components/avatar_equipped_data.gen.ts +1 -20
  53. package/out-ts/decentraland/sdk/components/avatar_modifier_area.gen.ts +1 -292
  54. package/out-ts/decentraland/sdk/components/avatar_shape.gen.ts +1 -23
  55. package/out-ts/decentraland/sdk/components/camera_mode_area.gen.ts +2 -218
  56. package/out-ts/decentraland/sdk/components/common/input_action.gen.ts +0 -24
  57. package/out-ts/decentraland/sdk/components/gltf_container_loading_state.gen.ts +2 -108
  58. package/out-ts/decentraland/sdk/components/material.gen.ts +1 -102
  59. package/out-ts/decentraland/sdk/components/mesh_collider.gen.ts +0 -99
  60. package/out-ts/decentraland/sdk/components/mesh_renderer.gen.ts +3 -100
  61. package/out-ts/decentraland/sdk/components/raycast.gen.ts +1 -73
  62. package/out-ts/decentraland/sdk/components/ui_text.gen.ts +1 -40
  63. package/out-ts/decentraland/sdk/components/ui_transform.gen.ts +0 -193
  64. package/out-ts/decentraland/social_service/v2/social_service_v2.gen.ts +75 -2
  65. package/package.json +3 -6
  66. package/proto/decentraland/common/texture.proto +1 -8
  67. package/proto/decentraland/kernel/apis/restricted_actions.proto +1 -39
  68. package/proto/decentraland/kernel/comms/rfc4/comms.proto +15 -1
  69. package/proto/decentraland/sdk/components/avatar_equipped_data.proto +1 -2
  70. package/proto/decentraland/sdk/components/avatar_modifier_area.proto +0 -21
  71. package/proto/decentraland/sdk/components/avatar_shape.proto +0 -1
  72. package/proto/decentraland/sdk/components/camera_mode_area.proto +3 -22
  73. package/proto/decentraland/sdk/components/common/input_action.proto +0 -4
  74. package/proto/decentraland/sdk/components/gltf_container_loading_state.proto +0 -13
  75. package/proto/decentraland/sdk/components/material.proto +1 -13
  76. package/proto/decentraland/sdk/components/mesh_collider.proto +0 -7
  77. package/proto/decentraland/sdk/components/mesh_renderer.proto +3 -8
  78. package/proto/decentraland/sdk/components/primary_pointer_info.proto +0 -5
  79. package/proto/decentraland/sdk/components/raycast.proto +0 -13
  80. package/proto/decentraland/sdk/components/ui_text.proto +0 -3
  81. package/proto/decentraland/sdk/components/ui_transform.proto +0 -20
  82. package/proto/decentraland/social_service/v2/social_service_v2.proto +7 -0
  83. package/public/sdk-components.proto +0 -4
  84. package/out-js/decentraland/sdk/components/avatar_locomotion_settings.gen.d.ts +0 -45
  85. package/out-js/decentraland/sdk/components/avatar_locomotion_settings.gen.js +0 -138
  86. package/out-js/decentraland/sdk/components/avatar_locomotion_settings.gen.js.map +0 -1
  87. package/out-js/decentraland/sdk/components/avatar_movement.gen.d.ts +0 -36
  88. package/out-js/decentraland/sdk/components/avatar_movement.gen.js +0 -113
  89. package/out-js/decentraland/sdk/components/avatar_movement.gen.js.map +0 -1
  90. package/out-js/decentraland/sdk/components/avatar_movement_info.gen.d.ts +0 -48
  91. package/out-js/decentraland/sdk/components/avatar_movement_info.gen.js +0 -207
  92. package/out-js/decentraland/sdk/components/avatar_movement_info.gen.js.map +0 -1
  93. package/out-js/decentraland/sdk/components/gltf_node.gen.d.ts +0 -66
  94. package/out-js/decentraland/sdk/components/gltf_node.gen.js +0 -69
  95. package/out-js/decentraland/sdk/components/gltf_node.gen.js.map +0 -1
  96. package/out-js/decentraland/sdk/components/gltf_node_state.gen.d.ts +0 -43
  97. package/out-js/decentraland/sdk/components/gltf_node_state.gen.js +0 -122
  98. package/out-js/decentraland/sdk/components/gltf_node_state.gen.js.map +0 -1
  99. package/out-js/decentraland/sdk/components/input_modifier.gen.d.ts +0 -52
  100. package/out-js/decentraland/sdk/components/input_modifier.gen.js +0 -233
  101. package/out-js/decentraland/sdk/components/input_modifier.gen.js.map +0 -1
  102. package/out-ts/decentraland/sdk/components/avatar_locomotion_settings.gen.ts +0 -183
  103. package/out-ts/decentraland/sdk/components/avatar_movement.gen.ts +0 -136
  104. package/out-ts/decentraland/sdk/components/avatar_movement_info.gen.ts +0 -249
  105. package/out-ts/decentraland/sdk/components/gltf_node.gen.ts +0 -116
  106. package/out-ts/decentraland/sdk/components/gltf_node_state.gen.ts +0 -139
  107. package/out-ts/decentraland/sdk/components/input_modifier.gen.ts +0 -265
  108. package/proto/decentraland/sdk/components/avatar_locomotion_settings.proto +0 -18
  109. package/proto/decentraland/sdk/components/avatar_movement.proto +0 -46
  110. package/proto/decentraland/sdk/components/avatar_movement_info.proto +0 -22
  111. package/proto/decentraland/sdk/components/camera_layer.proto +0 -30
  112. package/proto/decentraland/sdk/components/camera_layers.proto +0 -11
  113. package/proto/decentraland/sdk/components/global_light.proto +0 -22
  114. package/proto/decentraland/sdk/components/gltf_node.proto +0 -42
  115. package/proto/decentraland/sdk/components/gltf_node_state.proto +0 -20
  116. package/proto/decentraland/sdk/components/texture_camera.proto +0 -46
  117. package/proto/decentraland/sdk/components/ui_canvas.proto +0 -16
  118. package/proto/decentraland/sdk/components/ui_scroll_result.proto +0 -12
@@ -1,36 +0,0 @@
1
- import _m0 from "protobufjs/minimal";
2
- import { Vector3 } from "../../common/vectors.gen";
3
- export declare const protobufPackage = "decentraland.sdk.components";
4
- export interface PBAvatarMovement {
5
- velocity: Vector3 | undefined;
6
- /** 0-360, we don't allow pitch/roll */
7
- orientation: number;
8
- groundDirection?: Vector3 | undefined;
9
- /** set for one frame when a walk_target ends: true = reached target, false = failed; absent = in progress or no walk */
10
- walkSuccess?: boolean | undefined;
11
- }
12
- export declare namespace PBAvatarMovement {
13
- function encode(message: PBAvatarMovement, writer?: _m0.Writer): _m0.Writer;
14
- function decode(input: _m0.Reader | Uint8Array, length?: number): PBAvatarMovement;
15
- function fromJSON(object: any): PBAvatarMovement;
16
- function toJSON(message: PBAvatarMovement): unknown;
17
- function create<I extends Exact<DeepPartial<PBAvatarMovement>, I>>(base?: I): PBAvatarMovement;
18
- function fromPartial<I extends Exact<DeepPartial<PBAvatarMovement>, I>>(object: I): PBAvatarMovement;
19
- }
20
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
21
- export type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {
22
- $case: string;
23
- } ? {
24
- [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
25
- } & {
26
- $case: T["$case"];
27
- } : T extends {} ? {
28
- [K in keyof T]?: DeepPartial<T[K]>;
29
- } : Partial<T>;
30
- type KeysOfUnion<T> = T extends T ? keyof T : never;
31
- export type Exact<P, I extends P> = P extends Builtin ? P : P & {
32
- [K in keyof P]: Exact<P[K], I[K]>;
33
- } & {
34
- [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
35
- };
36
- export {};
@@ -1,113 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.PBAvatarMovement = exports.protobufPackage = void 0;
7
- /* eslint-disable */
8
- const minimal_1 = __importDefault(require("protobufjs/minimal"));
9
- const vectors_gen_1 = require("../../common/vectors.gen");
10
- exports.protobufPackage = "decentraland.sdk.components";
11
- function createBasePBAvatarMovement() {
12
- return { velocity: undefined, orientation: 0, groundDirection: undefined, walkSuccess: undefined };
13
- }
14
- var PBAvatarMovement;
15
- (function (PBAvatarMovement) {
16
- function encode(message, writer = minimal_1.default.Writer.create()) {
17
- if (message.velocity !== undefined) {
18
- vectors_gen_1.Vector3.encode(message.velocity, writer.uint32(10).fork()).ldelim();
19
- }
20
- if (message.orientation !== 0) {
21
- writer.uint32(21).float(message.orientation);
22
- }
23
- if (message.groundDirection !== undefined) {
24
- vectors_gen_1.Vector3.encode(message.groundDirection, writer.uint32(26).fork()).ldelim();
25
- }
26
- if (message.walkSuccess !== undefined) {
27
- writer.uint32(32).bool(message.walkSuccess);
28
- }
29
- return writer;
30
- }
31
- PBAvatarMovement.encode = encode;
32
- function decode(input, length) {
33
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
34
- let end = length === undefined ? reader.len : reader.pos + length;
35
- const message = createBasePBAvatarMovement();
36
- while (reader.pos < end) {
37
- const tag = reader.uint32();
38
- switch (tag >>> 3) {
39
- case 1:
40
- if (tag !== 10) {
41
- break;
42
- }
43
- message.velocity = vectors_gen_1.Vector3.decode(reader, reader.uint32());
44
- continue;
45
- case 2:
46
- if (tag !== 21) {
47
- break;
48
- }
49
- message.orientation = reader.float();
50
- continue;
51
- case 3:
52
- if (tag !== 26) {
53
- break;
54
- }
55
- message.groundDirection = vectors_gen_1.Vector3.decode(reader, reader.uint32());
56
- continue;
57
- case 4:
58
- if (tag !== 32) {
59
- break;
60
- }
61
- message.walkSuccess = reader.bool();
62
- continue;
63
- }
64
- if ((tag & 7) === 4 || tag === 0) {
65
- break;
66
- }
67
- reader.skipType(tag & 7);
68
- }
69
- return message;
70
- }
71
- PBAvatarMovement.decode = decode;
72
- function fromJSON(object) {
73
- return {
74
- velocity: isSet(object.velocity) ? vectors_gen_1.Vector3.fromJSON(object.velocity) : undefined,
75
- orientation: isSet(object.orientation) ? Number(object.orientation) : 0,
76
- groundDirection: isSet(object.groundDirection) ? vectors_gen_1.Vector3.fromJSON(object.groundDirection) : undefined,
77
- walkSuccess: isSet(object.walkSuccess) ? Boolean(object.walkSuccess) : undefined,
78
- };
79
- }
80
- PBAvatarMovement.fromJSON = fromJSON;
81
- function toJSON(message) {
82
- const obj = {};
83
- message.velocity !== undefined && (obj.velocity = message.velocity ? vectors_gen_1.Vector3.toJSON(message.velocity) : undefined);
84
- message.orientation !== undefined && (obj.orientation = message.orientation);
85
- message.groundDirection !== undefined &&
86
- (obj.groundDirection = message.groundDirection ? vectors_gen_1.Vector3.toJSON(message.groundDirection) : undefined);
87
- message.walkSuccess !== undefined && (obj.walkSuccess = message.walkSuccess);
88
- return obj;
89
- }
90
- PBAvatarMovement.toJSON = toJSON;
91
- function create(base) {
92
- return PBAvatarMovement.fromPartial(base !== null && base !== void 0 ? base : {});
93
- }
94
- PBAvatarMovement.create = create;
95
- function fromPartial(object) {
96
- var _a, _b;
97
- const message = createBasePBAvatarMovement();
98
- message.velocity = (object.velocity !== undefined && object.velocity !== null)
99
- ? vectors_gen_1.Vector3.fromPartial(object.velocity)
100
- : undefined;
101
- message.orientation = (_a = object.orientation) !== null && _a !== void 0 ? _a : 0;
102
- message.groundDirection = (object.groundDirection !== undefined && object.groundDirection !== null)
103
- ? vectors_gen_1.Vector3.fromPartial(object.groundDirection)
104
- : undefined;
105
- message.walkSuccess = (_b = object.walkSuccess) !== null && _b !== void 0 ? _b : undefined;
106
- return message;
107
- }
108
- PBAvatarMovement.fromPartial = fromPartial;
109
- })(PBAvatarMovement || (exports.PBAvatarMovement = PBAvatarMovement = {}));
110
- function isSet(value) {
111
- return value !== null && value !== undefined;
112
- }
113
- //# sourceMappingURL=avatar_movement.gen.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"avatar_movement.gen.js","sourceRoot":"","sources":["../../../../out-ts/decentraland/sdk/components/avatar_movement.gen.ts"],"names":[],"mappings":";;;;;;AAAA,oBAAoB;AACpB,iEAAqC;AACrC,0DAAmD;AAEtC,QAAA,eAAe,GAAG,6BAA6B,CAAC;AAe7D,SAAS,0BAA0B;IACjC,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,WAAW,EAAE,CAAC,EAAE,eAAe,EAAE,SAAS,EAAE,WAAW,EAAE,SAAS,EAAE,CAAC;AACrG,CAAC;AAED,IAAiB,gBAAgB,CAgGhC;AAhGD,WAAiB,gBAAgB;IAC/B,SAAgB,MAAM,CAAC,OAAyB,EAAE,SAAqB,iBAAG,CAAC,MAAM,CAAC,MAAM,EAAE;QACxF,IAAI,OAAO,CAAC,QAAQ,KAAK,SAAS,EAAE,CAAC;YACnC,qBAAO,CAAC,MAAM,CAAC,OAAO,CAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC;QACtE,CAAC;QACD,IAAI,OAA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,EAAE,CAAC;QAC7C,OAAO,CAAC,QAAQ,GAAG,CAAC,MAAM,CAAC,QAAQ,KAAK,SAAS,IAAI,MAAM,CAAC,QAAQ,KAAK,IAAI,CAAC;YAC5E,CAAC,CAAC,qBAAO,CAAC,WAAW,CAAC,MAAM,CAAC,QAAQ,CAAC;YACtC,CAAC,CAAC,SAAS,CAAC;QACd,OAAO,CAAC,WAAW,GAAG,MAAA,MAAM,CAAC,WAAW,mCAAI,CAAC,CAAC;QAC9C,OAAO,CAAC,eAAe,GAAG,CAAC,MAAM,CAAC,eAAe,KAAK,SAAS,IAAI,MAAM,CAAC,eAAe,KAAK,IAAI,CAAC;YACjG,CAAC,CAAC,qBAAO,CAAC,WAAW,CAAC,MAAM,CAAC,eAAe,CAAC;YAC7C,CAAC,CAAC,SAAS,CAAC;QACd,OAAO,CAAC,WAAW,GAAG,MAAA,MAAM,CAAC,WAAW,mCAAI,SAAS,CAAC;QACtD,OAAO,OAAO,CAAC;IACjB,CAAC;IAXe,4BAAW,cAW1B,CAAA;AACH,CAAC,EAhGgB,gBAAgB,gCAAhB,gBAAgB,QAgGhC;AAcD,SAAS,KAAK,CAAC,KAAU;IACvB,OAAO,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,CAAC;AAC/C,CAAC"}
@@ -1,48 +0,0 @@
1
- import _m0 from "protobufjs/minimal";
2
- import { Vector3 } from "../../common/vectors.gen";
3
- import { PBAvatarLocomotionSettings } from "./avatar_locomotion_settings.gen";
4
- import { PBInputModifier } from "./input_modifier.gen";
5
- export declare const protobufPackage = "decentraland.sdk.components";
6
- export interface PBAvatarMovementInfo {
7
- /** the length of time the current step velocity will apply for */
8
- stepTime: number;
9
- /** the length of time the previous step velocity applied for */
10
- previousStepTime: number;
11
- /** the velocity requested for the previous frame */
12
- requestedVelocity: Vector3 | undefined;
13
- /** the resulting velocity taking collisions into account */
14
- actualVelocity: Vector3 | undefined;
15
- /** the velocity imparted by movement of the "ground" platform or pushing from other moving colliders */
16
- externalVelocity: Vector3 | undefined;
17
- activeAvatarLocomotionSettings: PBAvatarLocomotionSettings | undefined;
18
- activeInputModifier: PBInputModifier | undefined;
19
- /** if set, the movement scene should walk the player to this scene-relative position */
20
- walkTarget?: Vector3 | undefined;
21
- /** stop distance for walk_target; considered reached when within this distance */
22
- walkThreshold?: number | undefined;
23
- }
24
- export declare namespace PBAvatarMovementInfo {
25
- function encode(message: PBAvatarMovementInfo, writer?: _m0.Writer): _m0.Writer;
26
- function decode(input: _m0.Reader | Uint8Array, length?: number): PBAvatarMovementInfo;
27
- function fromJSON(object: any): PBAvatarMovementInfo;
28
- function toJSON(message: PBAvatarMovementInfo): unknown;
29
- function create<I extends Exact<DeepPartial<PBAvatarMovementInfo>, I>>(base?: I): PBAvatarMovementInfo;
30
- function fromPartial<I extends Exact<DeepPartial<PBAvatarMovementInfo>, I>>(object: I): PBAvatarMovementInfo;
31
- }
32
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
33
- export type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {
34
- $case: string;
35
- } ? {
36
- [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
37
- } & {
38
- $case: T["$case"];
39
- } : T extends {} ? {
40
- [K in keyof T]?: DeepPartial<T[K]>;
41
- } : Partial<T>;
42
- type KeysOfUnion<T> = T extends T ? keyof T : never;
43
- export type Exact<P, I extends P> = P extends Builtin ? P : P & {
44
- [K in keyof P]: Exact<P[K], I[K]>;
45
- } & {
46
- [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
47
- };
48
- export {};
@@ -1,207 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.PBAvatarMovementInfo = exports.protobufPackage = void 0;
7
- /* eslint-disable */
8
- const minimal_1 = __importDefault(require("protobufjs/minimal"));
9
- const vectors_gen_1 = require("../../common/vectors.gen");
10
- const avatar_locomotion_settings_gen_1 = require("./avatar_locomotion_settings.gen");
11
- const input_modifier_gen_1 = require("./input_modifier.gen");
12
- exports.protobufPackage = "decentraland.sdk.components";
13
- function createBasePBAvatarMovementInfo() {
14
- return {
15
- stepTime: 0,
16
- previousStepTime: 0,
17
- requestedVelocity: undefined,
18
- actualVelocity: undefined,
19
- externalVelocity: undefined,
20
- activeAvatarLocomotionSettings: undefined,
21
- activeInputModifier: undefined,
22
- walkTarget: undefined,
23
- walkThreshold: undefined,
24
- };
25
- }
26
- var PBAvatarMovementInfo;
27
- (function (PBAvatarMovementInfo) {
28
- function encode(message, writer = minimal_1.default.Writer.create()) {
29
- if (message.stepTime !== 0) {
30
- writer.uint32(13).float(message.stepTime);
31
- }
32
- if (message.previousStepTime !== 0) {
33
- writer.uint32(21).float(message.previousStepTime);
34
- }
35
- if (message.requestedVelocity !== undefined) {
36
- vectors_gen_1.Vector3.encode(message.requestedVelocity, writer.uint32(26).fork()).ldelim();
37
- }
38
- if (message.actualVelocity !== undefined) {
39
- vectors_gen_1.Vector3.encode(message.actualVelocity, writer.uint32(34).fork()).ldelim();
40
- }
41
- if (message.externalVelocity !== undefined) {
42
- vectors_gen_1.Vector3.encode(message.externalVelocity, writer.uint32(42).fork()).ldelim();
43
- }
44
- if (message.activeAvatarLocomotionSettings !== undefined) {
45
- avatar_locomotion_settings_gen_1.PBAvatarLocomotionSettings.encode(message.activeAvatarLocomotionSettings, writer.uint32(50).fork()).ldelim();
46
- }
47
- if (message.activeInputModifier !== undefined) {
48
- input_modifier_gen_1.PBInputModifier.encode(message.activeInputModifier, writer.uint32(58).fork()).ldelim();
49
- }
50
- if (message.walkTarget !== undefined) {
51
- vectors_gen_1.Vector3.encode(message.walkTarget, writer.uint32(66).fork()).ldelim();
52
- }
53
- if (message.walkThreshold !== undefined) {
54
- writer.uint32(77).float(message.walkThreshold);
55
- }
56
- return writer;
57
- }
58
- PBAvatarMovementInfo.encode = encode;
59
- function decode(input, length) {
60
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
61
- let end = length === undefined ? reader.len : reader.pos + length;
62
- const message = createBasePBAvatarMovementInfo();
63
- while (reader.pos < end) {
64
- const tag = reader.uint32();
65
- switch (tag >>> 3) {
66
- case 1:
67
- if (tag !== 13) {
68
- break;
69
- }
70
- message.stepTime = reader.float();
71
- continue;
72
- case 2:
73
- if (tag !== 21) {
74
- break;
75
- }
76
- message.previousStepTime = reader.float();
77
- continue;
78
- case 3:
79
- if (tag !== 26) {
80
- break;
81
- }
82
- message.requestedVelocity = vectors_gen_1.Vector3.decode(reader, reader.uint32());
83
- continue;
84
- case 4:
85
- if (tag !== 34) {
86
- break;
87
- }
88
- message.actualVelocity = vectors_gen_1.Vector3.decode(reader, reader.uint32());
89
- continue;
90
- case 5:
91
- if (tag !== 42) {
92
- break;
93
- }
94
- message.externalVelocity = vectors_gen_1.Vector3.decode(reader, reader.uint32());
95
- continue;
96
- case 6:
97
- if (tag !== 50) {
98
- break;
99
- }
100
- message.activeAvatarLocomotionSettings = avatar_locomotion_settings_gen_1.PBAvatarLocomotionSettings.decode(reader, reader.uint32());
101
- continue;
102
- case 7:
103
- if (tag !== 58) {
104
- break;
105
- }
106
- message.activeInputModifier = input_modifier_gen_1.PBInputModifier.decode(reader, reader.uint32());
107
- continue;
108
- case 8:
109
- if (tag !== 66) {
110
- break;
111
- }
112
- message.walkTarget = vectors_gen_1.Vector3.decode(reader, reader.uint32());
113
- continue;
114
- case 9:
115
- if (tag !== 77) {
116
- break;
117
- }
118
- message.walkThreshold = reader.float();
119
- continue;
120
- }
121
- if ((tag & 7) === 4 || tag === 0) {
122
- break;
123
- }
124
- reader.skipType(tag & 7);
125
- }
126
- return message;
127
- }
128
- PBAvatarMovementInfo.decode = decode;
129
- function fromJSON(object) {
130
- return {
131
- stepTime: isSet(object.stepTime) ? Number(object.stepTime) : 0,
132
- previousStepTime: isSet(object.previousStepTime) ? Number(object.previousStepTime) : 0,
133
- requestedVelocity: isSet(object.requestedVelocity) ? vectors_gen_1.Vector3.fromJSON(object.requestedVelocity) : undefined,
134
- actualVelocity: isSet(object.actualVelocity) ? vectors_gen_1.Vector3.fromJSON(object.actualVelocity) : undefined,
135
- externalVelocity: isSet(object.externalVelocity) ? vectors_gen_1.Vector3.fromJSON(object.externalVelocity) : undefined,
136
- activeAvatarLocomotionSettings: isSet(object.activeAvatarLocomotionSettings)
137
- ? avatar_locomotion_settings_gen_1.PBAvatarLocomotionSettings.fromJSON(object.activeAvatarLocomotionSettings)
138
- : undefined,
139
- activeInputModifier: isSet(object.activeInputModifier)
140
- ? input_modifier_gen_1.PBInputModifier.fromJSON(object.activeInputModifier)
141
- : undefined,
142
- walkTarget: isSet(object.walkTarget) ? vectors_gen_1.Vector3.fromJSON(object.walkTarget) : undefined,
143
- walkThreshold: isSet(object.walkThreshold) ? Number(object.walkThreshold) : undefined,
144
- };
145
- }
146
- PBAvatarMovementInfo.fromJSON = fromJSON;
147
- function toJSON(message) {
148
- const obj = {};
149
- message.stepTime !== undefined && (obj.stepTime = message.stepTime);
150
- message.previousStepTime !== undefined && (obj.previousStepTime = message.previousStepTime);
151
- message.requestedVelocity !== undefined &&
152
- (obj.requestedVelocity = message.requestedVelocity ? vectors_gen_1.Vector3.toJSON(message.requestedVelocity) : undefined);
153
- message.actualVelocity !== undefined &&
154
- (obj.actualVelocity = message.actualVelocity ? vectors_gen_1.Vector3.toJSON(message.actualVelocity) : undefined);
155
- message.externalVelocity !== undefined &&
156
- (obj.externalVelocity = message.externalVelocity ? vectors_gen_1.Vector3.toJSON(message.externalVelocity) : undefined);
157
- message.activeAvatarLocomotionSettings !== undefined &&
158
- (obj.activeAvatarLocomotionSettings = message.activeAvatarLocomotionSettings
159
- ? avatar_locomotion_settings_gen_1.PBAvatarLocomotionSettings.toJSON(message.activeAvatarLocomotionSettings)
160
- : undefined);
161
- message.activeInputModifier !== undefined &&
162
- (obj.activeInputModifier = message.activeInputModifier
163
- ? input_modifier_gen_1.PBInputModifier.toJSON(message.activeInputModifier)
164
- : undefined);
165
- message.walkTarget !== undefined &&
166
- (obj.walkTarget = message.walkTarget ? vectors_gen_1.Vector3.toJSON(message.walkTarget) : undefined);
167
- message.walkThreshold !== undefined && (obj.walkThreshold = message.walkThreshold);
168
- return obj;
169
- }
170
- PBAvatarMovementInfo.toJSON = toJSON;
171
- function create(base) {
172
- return PBAvatarMovementInfo.fromPartial(base !== null && base !== void 0 ? base : {});
173
- }
174
- PBAvatarMovementInfo.create = create;
175
- function fromPartial(object) {
176
- var _a, _b, _c;
177
- const message = createBasePBAvatarMovementInfo();
178
- message.stepTime = (_a = object.stepTime) !== null && _a !== void 0 ? _a : 0;
179
- message.previousStepTime = (_b = object.previousStepTime) !== null && _b !== void 0 ? _b : 0;
180
- message.requestedVelocity = (object.requestedVelocity !== undefined && object.requestedVelocity !== null)
181
- ? vectors_gen_1.Vector3.fromPartial(object.requestedVelocity)
182
- : undefined;
183
- message.actualVelocity = (object.actualVelocity !== undefined && object.actualVelocity !== null)
184
- ? vectors_gen_1.Vector3.fromPartial(object.actualVelocity)
185
- : undefined;
186
- message.externalVelocity = (object.externalVelocity !== undefined && object.externalVelocity !== null)
187
- ? vectors_gen_1.Vector3.fromPartial(object.externalVelocity)
188
- : undefined;
189
- message.activeAvatarLocomotionSettings =
190
- (object.activeAvatarLocomotionSettings !== undefined && object.activeAvatarLocomotionSettings !== null)
191
- ? avatar_locomotion_settings_gen_1.PBAvatarLocomotionSettings.fromPartial(object.activeAvatarLocomotionSettings)
192
- : undefined;
193
- message.activeInputModifier = (object.activeInputModifier !== undefined && object.activeInputModifier !== null)
194
- ? input_modifier_gen_1.PBInputModifier.fromPartial(object.activeInputModifier)
195
- : undefined;
196
- message.walkTarget = (object.walkTarget !== undefined && object.walkTarget !== null)
197
- ? vectors_gen_1.Vector3.fromPartial(object.walkTarget)
198
- : undefined;
199
- message.walkThreshold = (_c = object.walkThreshold) !== null && _c !== void 0 ? _c : undefined;
200
- return message;
201
- }
202
- PBAvatarMovementInfo.fromPartial = fromPartial;
203
- })(PBAvatarMovementInfo || (exports.PBAvatarMovementInfo = PBAvatarMovementInfo = {}));
204
- function isSet(value) {
205
- return value !== null && value !== undefined;
206
- }
207
- //# sourceMappingURL=avatar_movement_info.gen.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"avatar_movement_info.gen.js","sourceRoot":"","sources":["../../../../out-ts/decentraland/sdk/components/avatar_movement_info.gen.ts"],"names":[],"mappings":";;;;;;AAAA,oBAAoB;AACpB,iEAAqC;AACrC,0DAAmD;AACnD,qFAA8E;AAC9E,6DAAuD;AAE1C,QAAA,eAAe,GAAG,6BAA6B,CAAC;AA6B7D,SAAS,8BAA8B;IACrC,OAAO;QACL,QAAQ,EAAE,CAAC;QACX,gBAAgB,EAAE,CAAC;QACnB,iBAAiB,EAAE,SAAS;QAC5B,cAAc,EAAE,SAAS;QACzB,gBAAgB,EAAE,SAAS;QAC3B,8BAA8B,EAAE,SAAS;QACzC,mBAAmB,EAAE,SAAS;QAC9B,UAAU,EAAE,SAAS;QACrB,aAAa,EAAE,SAAS;KACzB,CAAC;AACJ,CAAC;AAED,IAAiB,oBAAoB,CAuLpC;AAvLD,WAAiB,oBAAoB;IACnC,SAAgB,MAAM,CAAC,OAA6B,EAAE,SAAqB,iBAAG,CAAC,MAAM,CAAC,MAAM,EAAE;QAC5F,IAAI,OAAO,CAAC,QAAQ,KAAK,CAAC,EAAE,CAAC;YAC3B,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;QAC5C,CAAC;QACD,IAAI,OAAO,CAAC,gBAAgB,KAAK,CAAC,EAAE,CAAC;YACnC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC;Q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UAAU,KAAK,IAAI,CAAC;YAClF,CAAC,CAAC,qBAAO,CAAC,WAAW,CAAC,MAAM,CAAC,UAAU,CAAC;YACxC,CAAC,CAAC,SAAS,CAAC;QACd,OAAO,CAAC,aAAa,GAAG,MAAA,MAAM,CAAC,aAAa,mCAAI,SAAS,CAAC;QAC1D,OAAO,OAAO,CAAC;IACjB,CAAC;IAzBe,gCAAW,cAyB1B,CAAA;AACH,CAAC,EAvLgB,oBAAoB,oCAApB,oBAAoB,QAuLpC;AAcD,SAAS,KAAK,CAAC,KAAU;IACvB,OAAO,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,CAAC;AAC/C,CAAC"}
@@ -1,66 +0,0 @@
1
- import _m0 from "protobufjs/minimal";
2
- export declare const protobufPackage = "decentraland.sdk.components";
3
- /**
4
- * a GltfNode links a scene entity with a node from within a gltf, allowing the scene to inspect it or modify it.
5
- * This component must be added to a direct child of an entity with a PBGltfContainer component, or
6
- * to a direct child of another entity with a GltfNode component, and the referenced gltf node must be a descendent of the gltf node
7
- * in the parent.
8
- * The name must match the path of one of the nodes within the Gltf. These are available on the GltfContainerLoadingState component.
9
- *
10
- * The renderer will attach a PBGltfNodeState to the entity describing the state. Once the state is `GNS_READY`,
11
- * - the `Transform` will be updated to match the position of the node within the gltf (relative to the gltf root, or the parent node),
12
- * - a `MeshRenderer` with a GltfMesh mesh type will be added (if the gltf node has a mesh).
13
- * - a `MeshCollider` with a GltfMesh mesh type will be added (if the gltf node has a collider).
14
- * - a `Material` component including a GltfMaterial reference will be added (if the gltf node has a material).
15
- *
16
- * After creation, if an animation moves the node, the `Transform` will be updated.
17
- *
18
- * From the scene, you can modify various components to alter the gltf node:
19
- * - modifying the `Transform` position/rotation/scale will move the node. The position is interpreted relative to the gltf root (or parent node),
20
- * regardless of any intermediate gltf node hierarchy.
21
- * If an animation is playing, the animation takes priority and the scene entity's position will be updated to match the animation.
22
- * - `Visibility` can be added to hide or show the node and it's children in the gltf hierarchy.
23
- * - `MeshRenderer` can be added/modified/removed to create/modify/remove a mesh on the node.
24
- * - `MeshCollider` can be added/modified/removed to create/modify/remove a collider on the node.
25
- * - `Material` can be added or modified to change the material properties. If the gltf node has a material, the original material will be
26
- * used as a base, and any gltf features (e.g. occlusion maps) from the gtlf spec that the renderer supports but that are not exposed in the
27
- * PBMaterial will be maintained.
28
- *
29
- * The scene can add additional entities as children to the gltf node, but structural modifications of the gltf are not possible:
30
- * - changing the scene hierarchy will not change the gltf node hierarchy. Moving the entity out of the gltf will sever the link and
31
- * change the state to `GNS_FAILED`.
32
- * - deleting the scene entity will not delete the gltf node.
33
- *
34
- * Removing the GltfNode will revert any changes to the original gltf. If the GltfNode component is removed and the mesh/collider/material
35
- * are not removed, this will result in a duplication of these components as the previously-linked entity will retain it's components and
36
- * the gltf node will also be displayed.
37
- */
38
- export interface PBGltfNode {
39
- /** the path of the target node in the Gltf. */
40
- path: string;
41
- }
42
- export declare namespace PBGltfNode {
43
- function encode(message: PBGltfNode, writer?: _m0.Writer): _m0.Writer;
44
- function decode(input: _m0.Reader | Uint8Array, length?: number): PBGltfNode;
45
- function fromJSON(object: any): PBGltfNode;
46
- function toJSON(message: PBGltfNode): unknown;
47
- function create<I extends Exact<DeepPartial<PBGltfNode>, I>>(base?: I): PBGltfNode;
48
- function fromPartial<I extends Exact<DeepPartial<PBGltfNode>, I>>(object: I): PBGltfNode;
49
- }
50
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
51
- export type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {
52
- $case: string;
53
- } ? {
54
- [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
55
- } & {
56
- $case: T["$case"];
57
- } : T extends {} ? {
58
- [K in keyof T]?: DeepPartial<T[K]>;
59
- } : Partial<T>;
60
- type KeysOfUnion<T> = T extends T ? keyof T : never;
61
- export type Exact<P, I extends P> = P extends Builtin ? P : P & {
62
- [K in keyof P]: Exact<P[K], I[K]>;
63
- } & {
64
- [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
65
- };
66
- export {};
@@ -1,69 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.PBGltfNode = exports.protobufPackage = void 0;
7
- /* eslint-disable */
8
- const minimal_1 = __importDefault(require("protobufjs/minimal"));
9
- exports.protobufPackage = "decentraland.sdk.components";
10
- function createBasePBGltfNode() {
11
- return { path: "" };
12
- }
13
- var PBGltfNode;
14
- (function (PBGltfNode) {
15
- function encode(message, writer = minimal_1.default.Writer.create()) {
16
- if (message.path !== "") {
17
- writer.uint32(10).string(message.path);
18
- }
19
- return writer;
20
- }
21
- PBGltfNode.encode = encode;
22
- function decode(input, length) {
23
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
24
- let end = length === undefined ? reader.len : reader.pos + length;
25
- const message = createBasePBGltfNode();
26
- while (reader.pos < end) {
27
- const tag = reader.uint32();
28
- switch (tag >>> 3) {
29
- case 1:
30
- if (tag !== 10) {
31
- break;
32
- }
33
- message.path = reader.string();
34
- continue;
35
- }
36
- if ((tag & 7) === 4 || tag === 0) {
37
- break;
38
- }
39
- reader.skipType(tag & 7);
40
- }
41
- return message;
42
- }
43
- PBGltfNode.decode = decode;
44
- function fromJSON(object) {
45
- return { path: isSet(object.path) ? String(object.path) : "" };
46
- }
47
- PBGltfNode.fromJSON = fromJSON;
48
- function toJSON(message) {
49
- const obj = {};
50
- message.path !== undefined && (obj.path = message.path);
51
- return obj;
52
- }
53
- PBGltfNode.toJSON = toJSON;
54
- function create(base) {
55
- return PBGltfNode.fromPartial(base !== null && base !== void 0 ? base : {});
56
- }
57
- PBGltfNode.create = create;
58
- function fromPartial(object) {
59
- var _a;
60
- const message = createBasePBGltfNode();
61
- message.path = (_a = object.path) !== null && _a !== void 0 ? _a : "";
62
- return message;
63
- }
64
- PBGltfNode.fromPartial = fromPartial;
65
- })(PBGltfNode || (exports.PBGltfNode = PBGltfNode = {}));
66
- function isSet(value) {
67
- return value !== null && value !== undefined;
68
- }
69
- //# sourceMappingURL=gltf_node.gen.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"gltf_node.gen.js","sourceRoot":"","sources":["../../../../out-ts/decentraland/sdk/components/gltf_node.gen.ts"],"names":[],"mappings":";;;;;;AAAA,oBAAoB;AACpB,iEAAqC;AAExB,QAAA,eAAe,GAAG,6BAA6B,CAAC;AA0C7D,SAAS,oBAAoB;IAC3B,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC;AACtB,CAAC;AAED,IAAiB,UAAU,CAkD1B;AAlDD,WAAiB,UAAU;IACzB,SAAgB,MAAM,CAAC,OAAmB,EAAE,SAAqB,iBAAG,CAAC,MAAM,CAAC,MAAM,EAAE;QAClF,IAAI,OAAO,CAAC,IAAI,KAAK,EAAE,EAAE,CAAC;YACxB,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QACzC,CAAC;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;IALe,iBAAM,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,oBAAoB,EAAE,CAAC;QACvC,OAAO,MAAM,CAAC,GAAG,GAAG,GAAG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C;QACvC,OAAO,CAAC,IAAI,GAAG,MAAA,MAAM,CAAC,IAAI,mCAAI,EAAE,CAAC;QACjC,OAAO,OAAO,CAAC;IACjB,CAAC;IAJe,sBAAW,cAI1B,CAAA;AACH,CAAC,EAlDgB,UAAU,0BAAV,UAAU,QAkD1B;AAcD,SAAS,KAAK,CAAC,KAAU;IACvB,OAAO,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,CAAC;AAC/C,CAAC"}
@@ -1,43 +0,0 @@
1
- import _m0 from "protobufjs/minimal";
2
- export declare const protobufPackage = "decentraland.sdk.components";
3
- export declare enum GltfNodeStateValue {
4
- GNSV_PENDING = 0,
5
- GNSV_FAILED = 1,
6
- GNSV_READY = 2,
7
- UNRECOGNIZED = -1
8
- }
9
- export declare function gltfNodeStateValueFromJSON(object: any): GltfNodeStateValue;
10
- export declare function gltfNodeStateValueToJSON(object: GltfNodeStateValue): string;
11
- /**
12
- * The state of a linked gltf node.
13
- * If the state is GNSV_FAILED, the renderer may describe the failure in the error string.
14
- */
15
- export interface PBGltfNodeState {
16
- state: GltfNodeStateValue;
17
- error?: string | undefined;
18
- }
19
- export declare namespace PBGltfNodeState {
20
- function encode(message: PBGltfNodeState, writer?: _m0.Writer): _m0.Writer;
21
- function decode(input: _m0.Reader | Uint8Array, length?: number): PBGltfNodeState;
22
- function fromJSON(object: any): PBGltfNodeState;
23
- function toJSON(message: PBGltfNodeState): unknown;
24
- function create<I extends Exact<DeepPartial<PBGltfNodeState>, I>>(base?: I): PBGltfNodeState;
25
- function fromPartial<I extends Exact<DeepPartial<PBGltfNodeState>, I>>(object: I): PBGltfNodeState;
26
- }
27
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
28
- export type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {
29
- $case: string;
30
- } ? {
31
- [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
32
- } & {
33
- $case: T["$case"];
34
- } : T extends {} ? {
35
- [K in keyof T]?: DeepPartial<T[K]>;
36
- } : Partial<T>;
37
- type KeysOfUnion<T> = T extends T ? keyof T : never;
38
- export type Exact<P, I extends P> = P extends Builtin ? P : P & {
39
- [K in keyof P]: Exact<P[K], I[K]>;
40
- } & {
41
- [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
42
- };
43
- export {};