@dcl/protocol 1.0.0-16572701298.commit-25e60c0 → 1.0.0-16721006271.commit-e03db90

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.
@@ -783,15 +783,47 @@ export interface KickPlayerFromCommunityVoiceChatResponse_Ok {
783
783
  message: string;
784
784
  }
785
785
 
786
+ /** End community voice chat (moderator/owner only) */
787
+ export interface EndCommunityVoiceChatPayload {
788
+ communityId: string;
789
+ }
790
+
791
+ export interface EndCommunityVoiceChatResponse {
792
+ response?:
793
+ | { $case: "ok"; ok: EndCommunityVoiceChatResponse_Ok }
794
+ | { $case: "invalidRequest"; invalidRequest: InvalidRequest }
795
+ | { $case: "forbiddenError"; forbiddenError: ForbiddenError }
796
+ | { $case: "notFoundError"; notFoundError: NotFoundError }
797
+ | { $case: "internalServerError"; internalServerError: InternalServerError }
798
+ | undefined;
799
+ }
800
+
801
+ export interface EndCommunityVoiceChatResponse_Ok {
802
+ message: string;
803
+ }
804
+
786
805
  /** Community voice chat updates/events - 'started' and 'ended' status */
787
806
  export interface CommunityVoiceChatUpdate {
788
807
  communityId: string;
789
- voiceChatId: string;
790
808
  createdAt: number;
791
809
  /** 'started' or 'ended' */
792
810
  status: CommunityVoiceChatStatus;
793
811
  /** Only present when status is 'ended' */
794
- endedAt?: number | undefined;
812
+ endedAt?:
813
+ | number
814
+ | undefined;
815
+ /** Positions/coordinates associated with the community (world: false) */
816
+ positions: string[];
817
+ /** Whether the receiving user is a member of the community */
818
+ isMember: boolean;
819
+ /** Name of the community */
820
+ communityName: string;
821
+ /** Image/picture of the community */
822
+ communityImage?:
823
+ | string
824
+ | undefined;
825
+ /** World names associated with the community (world: true) */
826
+ worlds: string[];
795
827
  }
796
828
 
797
829
  function createBaseUser(): User {
@@ -8928,8 +8960,326 @@ export namespace KickPlayerFromCommunityVoiceChatResponse_Ok {
8928
8960
  }
8929
8961
  }
8930
8962
 
8963
+ function createBaseEndCommunityVoiceChatPayload(): EndCommunityVoiceChatPayload {
8964
+ return { communityId: "" };
8965
+ }
8966
+
8967
+ export namespace EndCommunityVoiceChatPayload {
8968
+ export function encode(message: EndCommunityVoiceChatPayload, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
8969
+ if (message.communityId !== "") {
8970
+ writer.uint32(10).string(message.communityId);
8971
+ }
8972
+ return writer;
8973
+ }
8974
+
8975
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): EndCommunityVoiceChatPayload {
8976
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
8977
+ let end = length === undefined ? reader.len : reader.pos + length;
8978
+ const message = createBaseEndCommunityVoiceChatPayload();
8979
+ while (reader.pos < end) {
8980
+ const tag = reader.uint32();
8981
+ switch (tag >>> 3) {
8982
+ case 1:
8983
+ if (tag !== 10) {
8984
+ break;
8985
+ }
8986
+
8987
+ message.communityId = reader.string();
8988
+ continue;
8989
+ }
8990
+ if ((tag & 7) === 4 || tag === 0) {
8991
+ break;
8992
+ }
8993
+ reader.skipType(tag & 7);
8994
+ }
8995
+ return message;
8996
+ }
8997
+
8998
+ export function fromJSON(object: any): EndCommunityVoiceChatPayload {
8999
+ return { communityId: isSet(object.communityId) ? String(object.communityId) : "" };
9000
+ }
9001
+
9002
+ export function toJSON(message: EndCommunityVoiceChatPayload): unknown {
9003
+ const obj: any = {};
9004
+ message.communityId !== undefined && (obj.communityId = message.communityId);
9005
+ return obj;
9006
+ }
9007
+
9008
+ export function create<I extends Exact<DeepPartial<EndCommunityVoiceChatPayload>, I>>(
9009
+ base?: I,
9010
+ ): EndCommunityVoiceChatPayload {
9011
+ return EndCommunityVoiceChatPayload.fromPartial(base ?? {});
9012
+ }
9013
+
9014
+ export function fromPartial<I extends Exact<DeepPartial<EndCommunityVoiceChatPayload>, I>>(
9015
+ object: I,
9016
+ ): EndCommunityVoiceChatPayload {
9017
+ const message = createBaseEndCommunityVoiceChatPayload();
9018
+ message.communityId = object.communityId ?? "";
9019
+ return message;
9020
+ }
9021
+ }
9022
+
9023
+ function createBaseEndCommunityVoiceChatResponse(): EndCommunityVoiceChatResponse {
9024
+ return { response: undefined };
9025
+ }
9026
+
9027
+ export namespace EndCommunityVoiceChatResponse {
9028
+ export function encode(message: EndCommunityVoiceChatResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
9029
+ switch (message.response?.$case) {
9030
+ case "ok":
9031
+ EndCommunityVoiceChatResponse_Ok.encode(message.response.ok, writer.uint32(10).fork()).ldelim();
9032
+ break;
9033
+ case "invalidRequest":
9034
+ InvalidRequest.encode(message.response.invalidRequest, writer.uint32(18).fork()).ldelim();
9035
+ break;
9036
+ case "forbiddenError":
9037
+ ForbiddenError.encode(message.response.forbiddenError, writer.uint32(26).fork()).ldelim();
9038
+ break;
9039
+ case "notFoundError":
9040
+ NotFoundError.encode(message.response.notFoundError, writer.uint32(34).fork()).ldelim();
9041
+ break;
9042
+ case "internalServerError":
9043
+ InternalServerError.encode(message.response.internalServerError, writer.uint32(42).fork()).ldelim();
9044
+ break;
9045
+ }
9046
+ return writer;
9047
+ }
9048
+
9049
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): EndCommunityVoiceChatResponse {
9050
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
9051
+ let end = length === undefined ? reader.len : reader.pos + length;
9052
+ const message = createBaseEndCommunityVoiceChatResponse();
9053
+ while (reader.pos < end) {
9054
+ const tag = reader.uint32();
9055
+ switch (tag >>> 3) {
9056
+ case 1:
9057
+ if (tag !== 10) {
9058
+ break;
9059
+ }
9060
+
9061
+ message.response = { $case: "ok", ok: EndCommunityVoiceChatResponse_Ok.decode(reader, reader.uint32()) };
9062
+ continue;
9063
+ case 2:
9064
+ if (tag !== 18) {
9065
+ break;
9066
+ }
9067
+
9068
+ message.response = {
9069
+ $case: "invalidRequest",
9070
+ invalidRequest: InvalidRequest.decode(reader, reader.uint32()),
9071
+ };
9072
+ continue;
9073
+ case 3:
9074
+ if (tag !== 26) {
9075
+ break;
9076
+ }
9077
+
9078
+ message.response = {
9079
+ $case: "forbiddenError",
9080
+ forbiddenError: ForbiddenError.decode(reader, reader.uint32()),
9081
+ };
9082
+ continue;
9083
+ case 4:
9084
+ if (tag !== 34) {
9085
+ break;
9086
+ }
9087
+
9088
+ message.response = { $case: "notFoundError", notFoundError: NotFoundError.decode(reader, reader.uint32()) };
9089
+ continue;
9090
+ case 5:
9091
+ if (tag !== 42) {
9092
+ break;
9093
+ }
9094
+
9095
+ message.response = {
9096
+ $case: "internalServerError",
9097
+ internalServerError: InternalServerError.decode(reader, reader.uint32()),
9098
+ };
9099
+ continue;
9100
+ }
9101
+ if ((tag & 7) === 4 || tag === 0) {
9102
+ break;
9103
+ }
9104
+ reader.skipType(tag & 7);
9105
+ }
9106
+ return message;
9107
+ }
9108
+
9109
+ export function fromJSON(object: any): EndCommunityVoiceChatResponse {
9110
+ return {
9111
+ response: isSet(object.ok)
9112
+ ? { $case: "ok", ok: EndCommunityVoiceChatResponse_Ok.fromJSON(object.ok) }
9113
+ : isSet(object.invalidRequest)
9114
+ ? { $case: "invalidRequest", invalidRequest: InvalidRequest.fromJSON(object.invalidRequest) }
9115
+ : isSet(object.forbiddenError)
9116
+ ? { $case: "forbiddenError", forbiddenError: ForbiddenError.fromJSON(object.forbiddenError) }
9117
+ : isSet(object.notFoundError)
9118
+ ? { $case: "notFoundError", notFoundError: NotFoundError.fromJSON(object.notFoundError) }
9119
+ : isSet(object.internalServerError)
9120
+ ? {
9121
+ $case: "internalServerError",
9122
+ internalServerError: InternalServerError.fromJSON(object.internalServerError),
9123
+ }
9124
+ : undefined,
9125
+ };
9126
+ }
9127
+
9128
+ export function toJSON(message: EndCommunityVoiceChatResponse): unknown {
9129
+ const obj: any = {};
9130
+ message.response?.$case === "ok" &&
9131
+ (obj.ok = message.response?.ok ? EndCommunityVoiceChatResponse_Ok.toJSON(message.response?.ok) : undefined);
9132
+ message.response?.$case === "invalidRequest" &&
9133
+ (obj.invalidRequest = message.response?.invalidRequest
9134
+ ? InvalidRequest.toJSON(message.response?.invalidRequest)
9135
+ : undefined);
9136
+ message.response?.$case === "forbiddenError" &&
9137
+ (obj.forbiddenError = message.response?.forbiddenError
9138
+ ? ForbiddenError.toJSON(message.response?.forbiddenError)
9139
+ : undefined);
9140
+ message.response?.$case === "notFoundError" &&
9141
+ (obj.notFoundError = message.response?.notFoundError
9142
+ ? NotFoundError.toJSON(message.response?.notFoundError)
9143
+ : undefined);
9144
+ message.response?.$case === "internalServerError" &&
9145
+ (obj.internalServerError = message.response?.internalServerError
9146
+ ? InternalServerError.toJSON(message.response?.internalServerError)
9147
+ : undefined);
9148
+ return obj;
9149
+ }
9150
+
9151
+ export function create<I extends Exact<DeepPartial<EndCommunityVoiceChatResponse>, I>>(
9152
+ base?: I,
9153
+ ): EndCommunityVoiceChatResponse {
9154
+ return EndCommunityVoiceChatResponse.fromPartial(base ?? {});
9155
+ }
9156
+
9157
+ export function fromPartial<I extends Exact<DeepPartial<EndCommunityVoiceChatResponse>, I>>(
9158
+ object: I,
9159
+ ): EndCommunityVoiceChatResponse {
9160
+ const message = createBaseEndCommunityVoiceChatResponse();
9161
+ if (object.response?.$case === "ok" && object.response?.ok !== undefined && object.response?.ok !== null) {
9162
+ message.response = { $case: "ok", ok: EndCommunityVoiceChatResponse_Ok.fromPartial(object.response.ok) };
9163
+ }
9164
+ if (
9165
+ object.response?.$case === "invalidRequest" &&
9166
+ object.response?.invalidRequest !== undefined &&
9167
+ object.response?.invalidRequest !== null
9168
+ ) {
9169
+ message.response = {
9170
+ $case: "invalidRequest",
9171
+ invalidRequest: InvalidRequest.fromPartial(object.response.invalidRequest),
9172
+ };
9173
+ }
9174
+ if (
9175
+ object.response?.$case === "forbiddenError" &&
9176
+ object.response?.forbiddenError !== undefined &&
9177
+ object.response?.forbiddenError !== null
9178
+ ) {
9179
+ message.response = {
9180
+ $case: "forbiddenError",
9181
+ forbiddenError: ForbiddenError.fromPartial(object.response.forbiddenError),
9182
+ };
9183
+ }
9184
+ if (
9185
+ object.response?.$case === "notFoundError" &&
9186
+ object.response?.notFoundError !== undefined &&
9187
+ object.response?.notFoundError !== null
9188
+ ) {
9189
+ message.response = {
9190
+ $case: "notFoundError",
9191
+ notFoundError: NotFoundError.fromPartial(object.response.notFoundError),
9192
+ };
9193
+ }
9194
+ if (
9195
+ object.response?.$case === "internalServerError" &&
9196
+ object.response?.internalServerError !== undefined &&
9197
+ object.response?.internalServerError !== null
9198
+ ) {
9199
+ message.response = {
9200
+ $case: "internalServerError",
9201
+ internalServerError: InternalServerError.fromPartial(object.response.internalServerError),
9202
+ };
9203
+ }
9204
+ return message;
9205
+ }
9206
+ }
9207
+
9208
+ function createBaseEndCommunityVoiceChatResponse_Ok(): EndCommunityVoiceChatResponse_Ok {
9209
+ return { message: "" };
9210
+ }
9211
+
9212
+ export namespace EndCommunityVoiceChatResponse_Ok {
9213
+ export function encode(
9214
+ message: EndCommunityVoiceChatResponse_Ok,
9215
+ writer: _m0.Writer = _m0.Writer.create(),
9216
+ ): _m0.Writer {
9217
+ if (message.message !== "") {
9218
+ writer.uint32(10).string(message.message);
9219
+ }
9220
+ return writer;
9221
+ }
9222
+
9223
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): EndCommunityVoiceChatResponse_Ok {
9224
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
9225
+ let end = length === undefined ? reader.len : reader.pos + length;
9226
+ const message = createBaseEndCommunityVoiceChatResponse_Ok();
9227
+ while (reader.pos < end) {
9228
+ const tag = reader.uint32();
9229
+ switch (tag >>> 3) {
9230
+ case 1:
9231
+ if (tag !== 10) {
9232
+ break;
9233
+ }
9234
+
9235
+ message.message = reader.string();
9236
+ continue;
9237
+ }
9238
+ if ((tag & 7) === 4 || tag === 0) {
9239
+ break;
9240
+ }
9241
+ reader.skipType(tag & 7);
9242
+ }
9243
+ return message;
9244
+ }
9245
+
9246
+ export function fromJSON(object: any): EndCommunityVoiceChatResponse_Ok {
9247
+ return { message: isSet(object.message) ? String(object.message) : "" };
9248
+ }
9249
+
9250
+ export function toJSON(message: EndCommunityVoiceChatResponse_Ok): unknown {
9251
+ const obj: any = {};
9252
+ message.message !== undefined && (obj.message = message.message);
9253
+ return obj;
9254
+ }
9255
+
9256
+ export function create<I extends Exact<DeepPartial<EndCommunityVoiceChatResponse_Ok>, I>>(
9257
+ base?: I,
9258
+ ): EndCommunityVoiceChatResponse_Ok {
9259
+ return EndCommunityVoiceChatResponse_Ok.fromPartial(base ?? {});
9260
+ }
9261
+
9262
+ export function fromPartial<I extends Exact<DeepPartial<EndCommunityVoiceChatResponse_Ok>, I>>(
9263
+ object: I,
9264
+ ): EndCommunityVoiceChatResponse_Ok {
9265
+ const message = createBaseEndCommunityVoiceChatResponse_Ok();
9266
+ message.message = object.message ?? "";
9267
+ return message;
9268
+ }
9269
+ }
9270
+
8931
9271
  function createBaseCommunityVoiceChatUpdate(): CommunityVoiceChatUpdate {
8932
- return { communityId: "", voiceChatId: "", createdAt: 0, status: 0, endedAt: undefined };
9272
+ return {
9273
+ communityId: "",
9274
+ createdAt: 0,
9275
+ status: 0,
9276
+ endedAt: undefined,
9277
+ positions: [],
9278
+ isMember: false,
9279
+ communityName: "",
9280
+ communityImage: undefined,
9281
+ worlds: [],
9282
+ };
8933
9283
  }
8934
9284
 
8935
9285
  export namespace CommunityVoiceChatUpdate {
@@ -8937,17 +9287,29 @@ export namespace CommunityVoiceChatUpdate {
8937
9287
  if (message.communityId !== "") {
8938
9288
  writer.uint32(10).string(message.communityId);
8939
9289
  }
8940
- if (message.voiceChatId !== "") {
8941
- writer.uint32(18).string(message.voiceChatId);
8942
- }
8943
9290
  if (message.createdAt !== 0) {
8944
- writer.uint32(24).int64(message.createdAt);
9291
+ writer.uint32(16).int64(message.createdAt);
8945
9292
  }
8946
9293
  if (message.status !== 0) {
8947
- writer.uint32(32).int32(message.status);
9294
+ writer.uint32(24).int32(message.status);
8948
9295
  }
8949
9296
  if (message.endedAt !== undefined) {
8950
- writer.uint32(40).int64(message.endedAt);
9297
+ writer.uint32(32).int64(message.endedAt);
9298
+ }
9299
+ for (const v of message.positions) {
9300
+ writer.uint32(42).string(v!);
9301
+ }
9302
+ if (message.isMember === true) {
9303
+ writer.uint32(48).bool(message.isMember);
9304
+ }
9305
+ if (message.communityName !== "") {
9306
+ writer.uint32(58).string(message.communityName);
9307
+ }
9308
+ if (message.communityImage !== undefined) {
9309
+ writer.uint32(66).string(message.communityImage);
9310
+ }
9311
+ for (const v of message.worlds) {
9312
+ writer.uint32(74).string(v!);
8951
9313
  }
8952
9314
  return writer;
8953
9315
  }
@@ -8967,32 +9329,60 @@ export namespace CommunityVoiceChatUpdate {
8967
9329
  message.communityId = reader.string();
8968
9330
  continue;
8969
9331
  case 2:
8970
- if (tag !== 18) {
9332
+ if (tag !== 16) {
8971
9333
  break;
8972
9334
  }
8973
9335
 
8974
- message.voiceChatId = reader.string();
9336
+ message.createdAt = longToNumber(reader.int64() as Long);
8975
9337
  continue;
8976
9338
  case 3:
8977
9339
  if (tag !== 24) {
8978
9340
  break;
8979
9341
  }
8980
9342
 
8981
- message.createdAt = longToNumber(reader.int64() as Long);
9343
+ message.status = reader.int32() as any;
8982
9344
  continue;
8983
9345
  case 4:
8984
9346
  if (tag !== 32) {
8985
9347
  break;
8986
9348
  }
8987
9349
 
8988
- message.status = reader.int32() as any;
9350
+ message.endedAt = longToNumber(reader.int64() as Long);
8989
9351
  continue;
8990
9352
  case 5:
8991
- if (tag !== 40) {
9353
+ if (tag !== 42) {
8992
9354
  break;
8993
9355
  }
8994
9356
 
8995
- message.endedAt = longToNumber(reader.int64() as Long);
9357
+ message.positions.push(reader.string());
9358
+ continue;
9359
+ case 6:
9360
+ if (tag !== 48) {
9361
+ break;
9362
+ }
9363
+
9364
+ message.isMember = reader.bool();
9365
+ continue;
9366
+ case 7:
9367
+ if (tag !== 58) {
9368
+ break;
9369
+ }
9370
+
9371
+ message.communityName = reader.string();
9372
+ continue;
9373
+ case 8:
9374
+ if (tag !== 66) {
9375
+ break;
9376
+ }
9377
+
9378
+ message.communityImage = reader.string();
9379
+ continue;
9380
+ case 9:
9381
+ if (tag !== 74) {
9382
+ break;
9383
+ }
9384
+
9385
+ message.worlds.push(reader.string());
8996
9386
  continue;
8997
9387
  }
8998
9388
  if ((tag & 7) === 4 || tag === 0) {
@@ -9006,20 +9396,36 @@ export namespace CommunityVoiceChatUpdate {
9006
9396
  export function fromJSON(object: any): CommunityVoiceChatUpdate {
9007
9397
  return {
9008
9398
  communityId: isSet(object.communityId) ? String(object.communityId) : "",
9009
- voiceChatId: isSet(object.voiceChatId) ? String(object.voiceChatId) : "",
9010
9399
  createdAt: isSet(object.createdAt) ? Number(object.createdAt) : 0,
9011
9400
  status: isSet(object.status) ? communityVoiceChatStatusFromJSON(object.status) : 0,
9012
9401
  endedAt: isSet(object.endedAt) ? Number(object.endedAt) : undefined,
9402
+ positions: Array.isArray(object?.positions) ? object.positions.map((e: any) => String(e)) : [],
9403
+ isMember: isSet(object.isMember) ? Boolean(object.isMember) : false,
9404
+ communityName: isSet(object.communityName) ? String(object.communityName) : "",
9405
+ communityImage: isSet(object.communityImage) ? String(object.communityImage) : undefined,
9406
+ worlds: Array.isArray(object?.worlds) ? object.worlds.map((e: any) => String(e)) : [],
9013
9407
  };
9014
9408
  }
9015
9409
 
9016
9410
  export function toJSON(message: CommunityVoiceChatUpdate): unknown {
9017
9411
  const obj: any = {};
9018
9412
  message.communityId !== undefined && (obj.communityId = message.communityId);
9019
- message.voiceChatId !== undefined && (obj.voiceChatId = message.voiceChatId);
9020
9413
  message.createdAt !== undefined && (obj.createdAt = Math.round(message.createdAt));
9021
9414
  message.status !== undefined && (obj.status = communityVoiceChatStatusToJSON(message.status));
9022
9415
  message.endedAt !== undefined && (obj.endedAt = Math.round(message.endedAt));
9416
+ if (message.positions) {
9417
+ obj.positions = message.positions.map((e) => e);
9418
+ } else {
9419
+ obj.positions = [];
9420
+ }
9421
+ message.isMember !== undefined && (obj.isMember = message.isMember);
9422
+ message.communityName !== undefined && (obj.communityName = message.communityName);
9423
+ message.communityImage !== undefined && (obj.communityImage = message.communityImage);
9424
+ if (message.worlds) {
9425
+ obj.worlds = message.worlds.map((e) => e);
9426
+ } else {
9427
+ obj.worlds = [];
9428
+ }
9023
9429
  return obj;
9024
9430
  }
9025
9431
 
@@ -9034,10 +9440,14 @@ export namespace CommunityVoiceChatUpdate {
9034
9440
  ): CommunityVoiceChatUpdate {
9035
9441
  const message = createBaseCommunityVoiceChatUpdate();
9036
9442
  message.communityId = object.communityId ?? "";
9037
- message.voiceChatId = object.voiceChatId ?? "";
9038
9443
  message.createdAt = object.createdAt ?? 0;
9039
9444
  message.status = object.status ?? 0;
9040
9445
  message.endedAt = object.endedAt ?? undefined;
9446
+ message.positions = object.positions?.map((e) => e) || [];
9447
+ message.isMember = object.isMember ?? false;
9448
+ message.communityName = object.communityName ?? "";
9449
+ message.communityImage = object.communityImage ?? undefined;
9450
+ message.worlds = object.worlds?.map((e) => e) || [];
9041
9451
  return message;
9042
9452
  }
9043
9453
  }
@@ -9303,6 +9713,15 @@ export const SocialServiceDefinition = {
9303
9713
  responseStream: false,
9304
9714
  options: {},
9305
9715
  },
9716
+ /** End community voice chat (moderator/owner only) */
9717
+ endCommunityVoiceChat: {
9718
+ name: "EndCommunityVoiceChat",
9719
+ requestType: EndCommunityVoiceChatPayload,
9720
+ requestStream: false,
9721
+ responseType: EndCommunityVoiceChatResponse,
9722
+ responseStream: false,
9723
+ options: {},
9724
+ },
9306
9725
  /** Subscribe to community voice chat updates (only 'started' events) */
9307
9726
  subscribeToCommunityVoiceChatUpdates: {
9308
9727
  name: "SubscribeToCommunityVoiceChatUpdates",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcl/protocol",
3
- "version": "1.0.0-16572701298.commit-25e60c0",
3
+ "version": "1.0.0-16721006271.commit-e03db90",
4
4
  "description": "",
5
5
  "repository": "decentraland/protocol.git",
6
6
  "homepage": "https://github.com/decentraland/protocol#readme",
@@ -30,5 +30,5 @@
30
30
  "out-js",
31
31
  "public"
32
32
  ],
33
- "commit": "25e60c0fbd7c2197ac4a718ba8576a6dbf3a35d0"
33
+ "commit": "e03db907636e587c59a2034a48aaf55f2ae3bf8e"
34
34
  }
@@ -531,18 +531,41 @@ message KickPlayerFromCommunityVoiceChatResponse {
531
531
  }
532
532
  }
533
533
 
534
+ // End community voice chat (moderator/owner only)
535
+ message EndCommunityVoiceChatPayload {
536
+ string community_id = 1;
537
+ }
538
+
539
+ message EndCommunityVoiceChatResponse {
540
+ message Ok {
541
+ string message = 1;
542
+ }
543
+
544
+ oneof response {
545
+ Ok ok = 1;
546
+ InvalidRequest invalid_request = 2;
547
+ ForbiddenError forbidden_error = 3;
548
+ NotFoundError not_found_error = 4;
549
+ InternalServerError internal_server_error = 5;
550
+ }
551
+ }
552
+
534
553
  enum CommunityVoiceChatStatus {
535
554
  COMMUNITY_VOICE_CHAT_STARTED = 0;
536
555
  COMMUNITY_VOICE_CHAT_ENDED = 1;
537
556
  }
538
557
 
539
- // Community voice chat updates/events - 'started' and 'ended' status
558
+ // Community voice chat updates/events - 'started' and 'ended' status
540
559
  message CommunityVoiceChatUpdate {
541
560
  string community_id = 1;
542
- string voice_chat_id = 2;
543
- int64 created_at = 3;
544
- CommunityVoiceChatStatus status = 4; // 'started' or 'ended'
545
- optional int64 ended_at = 5; // Only present when status is 'ended'
561
+ int64 created_at = 2;
562
+ CommunityVoiceChatStatus status = 3; // 'started' or 'ended'
563
+ optional int64 ended_at = 4; // Only present when status is 'ended'
564
+ repeated string positions = 5; // Positions/coordinates associated with the community (world: false)
565
+ bool is_member = 6; // Whether the receiving user is a member of the community
566
+ string community_name = 7; // Name of the community
567
+ optional string community_image = 8; // Image/picture of the community
568
+ repeated string worlds = 9; // World names associated with the community (world: true)
546
569
  }
547
570
 
548
571
  service SocialService {
@@ -632,6 +655,9 @@ service SocialService {
632
655
  // Kick player from community voice chat (moderator only)
633
656
  rpc KickPlayerFromCommunityVoiceChat(KickPlayerFromCommunityVoiceChatPayload) returns (KickPlayerFromCommunityVoiceChatResponse) {}
634
657
 
658
+ // End community voice chat (moderator/owner only)
659
+ rpc EndCommunityVoiceChat(EndCommunityVoiceChatPayload) returns (EndCommunityVoiceChatResponse) {}
660
+
635
661
  // Subscribe to community voice chat updates (only 'started' events)
636
662
  rpc SubscribeToCommunityVoiceChatUpdates(google.protobuf.Empty) returns (stream CommunityVoiceChatUpdate) {}
637
663
  }