@dcl/protocol 1.0.0-3175139283.commit-c671437 → 1.0.0-3199494715.commit-f3c7422
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -0
- package/bff/authentication-service.proto +3 -0
- package/bff/comms-director-service.proto +33 -0
- package/bff/comms-service.proto +2 -26
- package/bff/http-endpoints.proto +10 -11
- package/bff/topics-service.proto +35 -0
- package/bff-services.proto +16 -0
- package/{kernel/apis/common → common}/ContentMapping.proto +1 -0
- package/common/Entity.proto +13 -0
- package/common/Vectors.proto +19 -0
- package/ecs/components/Animator.proto +1 -1
- package/ecs/components/AudioSource.proto +1 -1
- package/ecs/components/AudioStream.proto +1 -1
- package/ecs/components/AvatarAttach.proto +1 -1
- package/ecs/components/AvatarModifierArea.proto +2 -2
- package/ecs/components/AvatarShape.proto +2 -2
- package/ecs/components/Billboard.proto +1 -1
- package/ecs/components/BoxShape.proto +1 -1
- package/ecs/components/CameraMode.proto +2 -2
- package/ecs/components/CameraModeArea.proto +3 -3
- package/ecs/components/CylinderShape.proto +1 -1
- package/ecs/components/GltfContainer.proto +1 -1
- package/ecs/components/Material.proto +2 -2
- package/ecs/components/MeshCollider.proto +1 -1
- package/ecs/components/MeshRenderer.proto +1 -1
- package/ecs/components/NFTShape.proto +2 -2
- package/ecs/components/OnPointerDown.proto +2 -2
- package/ecs/components/OnPointerDownResult.proto +3 -3
- package/ecs/components/OnPointerUp.proto +2 -2
- package/ecs/components/OnPointerUpResult.proto +3 -3
- package/ecs/components/PlaneShape.proto +1 -1
- package/ecs/components/PointerEvents.proto +2 -2
- package/ecs/components/PointerEventsResult.proto +4 -4
- package/ecs/components/PointerLock.proto +1 -1
- package/ecs/components/README.md +1 -1
- package/ecs/components/Raycast.proto +2 -2
- package/ecs/components/RaycastResult.proto +2 -2
- package/ecs/components/SphereShape.proto +1 -1
- package/ecs/components/TextShape.proto +2 -2
- package/ecs/components/UiStyles.proto +2 -2
- package/ecs/components/UiText.proto +2 -2
- package/ecs/components/UiTransform.proto +1 -1
- package/ecs/components/VisibilityComponent.proto +1 -1
- package/ecs/components/common/ActionButton.proto +1 -1
- package/kernel/apis/EnvironmentAPI.proto +1 -1
- package/kernel/apis/ParcelIdentity.proto +1 -1
- package/kernel/apis/Players.proto +1 -1
- package/kernel/apis/UserIdentity.proto +1 -1
- package/kernel/apis/{common → common-sdk}/UserData.proto +0 -0
- package/kernel/comms/comms-rfc-4.proto +1 -0
- package/kernel/comms/v3/archipelago.proto +0 -4
- package/out-ts/bff/authentication-service.gen.ts +278 -0
- package/out-ts/bff/comms-director-service.gen.ts +225 -0
- package/out-ts/bff/comms-service.gen.ts +193 -0
- package/out-ts/bff/http-endpoints.gen.ts +662 -0
- package/out-ts/bff/topics-service.gen.ts +404 -0
- package/out-ts/bff-services.gen.ts +3 -0
- package/out-ts/common/ContentMapping.gen.ts +79 -0
- package/out-ts/common/Vectors.gen.ts +225 -0
- package/out-ts/google/api/annotations.gen.ts +3 -0
- package/out-ts/google/api/http.gen.ts +286 -0
- package/out-ts/google/protobuf/descriptor.gen.ts +2860 -0
- package/out-ts/google/protobuf/empty.gen.ts +66 -0
- package/out-ts/kernel/apis/CommunicationsController.gen.ts +128 -0
- package/out-ts/kernel/apis/DevTools.gen.ts +140 -0
- package/out-ts/kernel/apis/EngineAPI.gen.ts +2128 -0
- package/out-ts/kernel/apis/EnvironmentAPI.gen.ts +1050 -0
- package/out-ts/kernel/apis/EthereumController.gen.ts +806 -0
- package/out-ts/kernel/apis/ExperimentalAPI.gen.ts +278 -0
- package/out-ts/kernel/apis/ParcelIdentity.gen.ts +516 -0
- package/out-ts/kernel/apis/Permissions.gen.ts +332 -0
- package/out-ts/kernel/apis/Players.gen.ts +344 -0
- package/out-ts/kernel/apis/PortableExperiences.gen.ts +520 -0
- package/out-ts/kernel/apis/RestrictedActions.gen.ts +320 -0
- package/out-ts/kernel/apis/SceneStateStorageController.gen.ts +1331 -0
- package/out-ts/kernel/apis/SignedFetch.gen.ts +428 -0
- package/out-ts/kernel/apis/SocialController.gen.ts +195 -0
- package/out-ts/kernel/apis/UserActionModule.gen.ts +128 -0
- package/out-ts/kernel/apis/UserIdentity.gen.ts +230 -0
- package/out-ts/kernel/apis/common-sdk/UserData.gen.ts +298 -0
- package/out-ts/sdk-apis.gen.ts +3 -0
- package/package.json +16 -5
- package/sdk-apis.proto +22 -0
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import _m0 from "protobufjs/minimal";
|
|
3
|
+
import {
|
|
4
|
+
PeerTopicSubscriptionResultElem,
|
|
5
|
+
PublishToTopicRequest,
|
|
6
|
+
PublishToTopicResult,
|
|
7
|
+
SubscriptionRequest,
|
|
8
|
+
SystemTopicSubscriptionResultElem,
|
|
9
|
+
} from "./topics-service.gen";
|
|
10
|
+
|
|
11
|
+
export const protobufPackage = "decentraland.bff";
|
|
12
|
+
|
|
13
|
+
export interface Subscription {
|
|
14
|
+
subscriptionId: number;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface UnsubscriptionResult {
|
|
18
|
+
ok: boolean;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
function createBaseSubscription(): Subscription {
|
|
22
|
+
return { subscriptionId: 0 };
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export const Subscription = {
|
|
26
|
+
encode(message: Subscription, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
27
|
+
if (message.subscriptionId !== 0) {
|
|
28
|
+
writer.uint32(8).uint32(message.subscriptionId);
|
|
29
|
+
}
|
|
30
|
+
return writer;
|
|
31
|
+
},
|
|
32
|
+
|
|
33
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Subscription {
|
|
34
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
35
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
36
|
+
const message = createBaseSubscription();
|
|
37
|
+
while (reader.pos < end) {
|
|
38
|
+
const tag = reader.uint32();
|
|
39
|
+
switch (tag >>> 3) {
|
|
40
|
+
case 1:
|
|
41
|
+
message.subscriptionId = reader.uint32();
|
|
42
|
+
break;
|
|
43
|
+
default:
|
|
44
|
+
reader.skipType(tag & 7);
|
|
45
|
+
break;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
return message;
|
|
49
|
+
},
|
|
50
|
+
|
|
51
|
+
fromJSON(object: any): Subscription {
|
|
52
|
+
return { subscriptionId: isSet(object.subscriptionId) ? Number(object.subscriptionId) : 0 };
|
|
53
|
+
},
|
|
54
|
+
|
|
55
|
+
toJSON(message: Subscription): unknown {
|
|
56
|
+
const obj: any = {};
|
|
57
|
+
message.subscriptionId !== undefined && (obj.subscriptionId = Math.round(message.subscriptionId));
|
|
58
|
+
return obj;
|
|
59
|
+
},
|
|
60
|
+
|
|
61
|
+
fromPartial<I extends Exact<DeepPartial<Subscription>, I>>(object: I): Subscription {
|
|
62
|
+
const message = createBaseSubscription();
|
|
63
|
+
message.subscriptionId = object.subscriptionId ?? 0;
|
|
64
|
+
return message;
|
|
65
|
+
},
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
function createBaseUnsubscriptionResult(): UnsubscriptionResult {
|
|
69
|
+
return { ok: false };
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export const UnsubscriptionResult = {
|
|
73
|
+
encode(message: UnsubscriptionResult, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
74
|
+
if (message.ok === true) {
|
|
75
|
+
writer.uint32(8).bool(message.ok);
|
|
76
|
+
}
|
|
77
|
+
return writer;
|
|
78
|
+
},
|
|
79
|
+
|
|
80
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): UnsubscriptionResult {
|
|
81
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
82
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
83
|
+
const message = createBaseUnsubscriptionResult();
|
|
84
|
+
while (reader.pos < end) {
|
|
85
|
+
const tag = reader.uint32();
|
|
86
|
+
switch (tag >>> 3) {
|
|
87
|
+
case 1:
|
|
88
|
+
message.ok = reader.bool();
|
|
89
|
+
break;
|
|
90
|
+
default:
|
|
91
|
+
reader.skipType(tag & 7);
|
|
92
|
+
break;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
return message;
|
|
96
|
+
},
|
|
97
|
+
|
|
98
|
+
fromJSON(object: any): UnsubscriptionResult {
|
|
99
|
+
return { ok: isSet(object.ok) ? Boolean(object.ok) : false };
|
|
100
|
+
},
|
|
101
|
+
|
|
102
|
+
toJSON(message: UnsubscriptionResult): unknown {
|
|
103
|
+
const obj: any = {};
|
|
104
|
+
message.ok !== undefined && (obj.ok = message.ok);
|
|
105
|
+
return obj;
|
|
106
|
+
},
|
|
107
|
+
|
|
108
|
+
fromPartial<I extends Exact<DeepPartial<UnsubscriptionResult>, I>>(object: I): UnsubscriptionResult {
|
|
109
|
+
const message = createBaseUnsubscriptionResult();
|
|
110
|
+
message.ok = object.ok ?? false;
|
|
111
|
+
return message;
|
|
112
|
+
},
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
export type CommsServiceDefinition = typeof CommsServiceDefinition;
|
|
116
|
+
export const CommsServiceDefinition = {
|
|
117
|
+
name: "CommsService",
|
|
118
|
+
fullName: "decentraland.bff.CommsService",
|
|
119
|
+
methods: {
|
|
120
|
+
subscribeToPeerMessages: {
|
|
121
|
+
name: "SubscribeToPeerMessages",
|
|
122
|
+
requestType: SubscriptionRequest,
|
|
123
|
+
requestStream: false,
|
|
124
|
+
responseType: Subscription,
|
|
125
|
+
responseStream: false,
|
|
126
|
+
options: {},
|
|
127
|
+
},
|
|
128
|
+
getPeerMessages: {
|
|
129
|
+
name: "GetPeerMessages",
|
|
130
|
+
requestType: Subscription,
|
|
131
|
+
requestStream: false,
|
|
132
|
+
responseType: PeerTopicSubscriptionResultElem,
|
|
133
|
+
responseStream: true,
|
|
134
|
+
options: {},
|
|
135
|
+
},
|
|
136
|
+
unsubscribeToPeerMessages: {
|
|
137
|
+
name: "UnsubscribeToPeerMessages",
|
|
138
|
+
requestType: Subscription,
|
|
139
|
+
requestStream: false,
|
|
140
|
+
responseType: UnsubscriptionResult,
|
|
141
|
+
responseStream: false,
|
|
142
|
+
options: {},
|
|
143
|
+
},
|
|
144
|
+
subscribeToSystemMessages: {
|
|
145
|
+
name: "SubscribeToSystemMessages",
|
|
146
|
+
requestType: SubscriptionRequest,
|
|
147
|
+
requestStream: false,
|
|
148
|
+
responseType: Subscription,
|
|
149
|
+
responseStream: false,
|
|
150
|
+
options: {},
|
|
151
|
+
},
|
|
152
|
+
getSystemMessages: {
|
|
153
|
+
name: "GetSystemMessages",
|
|
154
|
+
requestType: Subscription,
|
|
155
|
+
requestStream: false,
|
|
156
|
+
responseType: SystemTopicSubscriptionResultElem,
|
|
157
|
+
responseStream: true,
|
|
158
|
+
options: {},
|
|
159
|
+
},
|
|
160
|
+
unsubscribeToSystemMessages: {
|
|
161
|
+
name: "UnsubscribeToSystemMessages",
|
|
162
|
+
requestType: Subscription,
|
|
163
|
+
requestStream: false,
|
|
164
|
+
responseType: UnsubscriptionResult,
|
|
165
|
+
responseStream: false,
|
|
166
|
+
options: {},
|
|
167
|
+
},
|
|
168
|
+
/** send a peer message to a topic */
|
|
169
|
+
publishToTopic: {
|
|
170
|
+
name: "PublishToTopic",
|
|
171
|
+
requestType: PublishToTopicRequest,
|
|
172
|
+
requestStream: false,
|
|
173
|
+
responseType: PublishToTopicResult,
|
|
174
|
+
responseStream: false,
|
|
175
|
+
options: {},
|
|
176
|
+
},
|
|
177
|
+
},
|
|
178
|
+
} as const;
|
|
179
|
+
|
|
180
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
181
|
+
|
|
182
|
+
export type DeepPartial<T> = T extends Builtin ? T
|
|
183
|
+
: T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
184
|
+
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
185
|
+
: Partial<T>;
|
|
186
|
+
|
|
187
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
188
|
+
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
189
|
+
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
190
|
+
|
|
191
|
+
function isSet(value: any): boolean {
|
|
192
|
+
return value !== null && value !== undefined;
|
|
193
|
+
}
|