@devvit/protos 0.11.20-next-2025-07-28-22-27-23-0f9ecc6ab.0 → 0.11.20-next-2025-07-29-04-29-31-36003bf76.0

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.
@@ -52,44 +52,6 @@ export function clientToJSON(object) {
52
52
  return -1;
53
53
  }
54
54
  }
55
- /** Inline height of post. */
56
- export var Height;
57
- (function (Height) {
58
- Height[Height["HEIGHT_UNSPECIFIED"] = 0] = "HEIGHT_UNSPECIFIED";
59
- Height[Height["REGULAR"] = 1] = "REGULAR";
60
- Height[Height["TALL"] = 2] = "TALL";
61
- Height[Height["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
62
- })(Height || (Height = {}));
63
- export function heightFromJSON(object) {
64
- switch (object) {
65
- case 0:
66
- case "HEIGHT_UNSPECIFIED":
67
- return Height.HEIGHT_UNSPECIFIED;
68
- case 1:
69
- case "REGULAR":
70
- return Height.REGULAR;
71
- case 2:
72
- case "TALL":
73
- return Height.TALL;
74
- case -1:
75
- case "UNRECOGNIZED":
76
- default:
77
- return Height.UNRECOGNIZED;
78
- }
79
- }
80
- export function heightToJSON(object) {
81
- switch (object) {
82
- case Height.HEIGHT_UNSPECIFIED:
83
- return 0;
84
- case Height.REGULAR:
85
- return 1;
86
- case Height.TALL:
87
- return 2;
88
- case Height.UNRECOGNIZED:
89
- default:
90
- return -1;
91
- }
92
- }
93
55
  function createBaseBridgeContext() {
94
56
  return {
95
57
  postData: undefined,
@@ -578,14 +540,11 @@ export const WebViewContext = {
578
540
  };
579
541
  messageTypeRegistry.set(WebViewContext.$type, WebViewContext);
580
542
  function createBaseDevvitPostData() {
581
- return { splash: undefined, developerData: undefined };
543
+ return { developerData: undefined };
582
544
  }
583
545
  export const DevvitPostData = {
584
546
  $type: "devvit.ui.effects.web_view.v1alpha.DevvitPostData",
585
547
  encode(message, writer = _m0.Writer.create()) {
586
- if (message.splash !== undefined) {
587
- SplashPostData.encode(message.splash, writer.uint32(26).fork()).ldelim();
588
- }
589
548
  if (message.developerData !== undefined) {
590
549
  Struct.encode(Struct.wrap(message.developerData), writer.uint32(18).fork()).ldelim();
591
550
  }
@@ -598,12 +557,6 @@ export const DevvitPostData = {
598
557
  while (reader.pos < end) {
599
558
  const tag = reader.uint32();
600
559
  switch (tag >>> 3) {
601
- case 3:
602
- if (tag !== 26) {
603
- break;
604
- }
605
- message.splash = SplashPostData.decode(reader, reader.uint32());
606
- continue;
607
560
  case 2:
608
561
  if (tag !== 18) {
609
562
  break;
@@ -619,16 +572,10 @@ export const DevvitPostData = {
619
572
  return message;
620
573
  },
621
574
  fromJSON(object) {
622
- return {
623
- splash: isSet(object.splash) ? SplashPostData.fromJSON(object.splash) : undefined,
624
- developerData: isObject(object.developerData) ? object.developerData : undefined,
625
- };
575
+ return { developerData: isObject(object.developerData) ? object.developerData : undefined };
626
576
  },
627
577
  toJSON(message) {
628
578
  const obj = {};
629
- if (message.splash !== undefined) {
630
- obj.splash = SplashPostData.toJSON(message.splash);
631
- }
632
579
  if (message.developerData !== undefined) {
633
580
  obj.developerData = message.developerData;
634
581
  }
@@ -639,9 +586,6 @@ export const DevvitPostData = {
639
586
  },
640
587
  fromPartial(object) {
641
588
  const message = createBaseDevvitPostData();
642
- message.splash = (object.splash !== undefined && object.splash !== null)
643
- ? SplashPostData.fromPartial(object.splash)
644
- : undefined;
645
589
  message.developerData = object.developerData ?? undefined;
646
590
  return message;
647
591
  },
@@ -816,167 +760,6 @@ export const ShareParam_ParamsEntry = {
816
760
  },
817
761
  };
818
762
  messageTypeRegistry.set(ShareParam_ParamsEntry.$type, ShareParam_ParamsEntry);
819
- function createBaseSplashPostData() {
820
- return {
821
- appDisplayName: undefined,
822
- appIconUri: undefined,
823
- backgroundUri: undefined,
824
- buttonLabel: undefined,
825
- description: undefined,
826
- entryUri: undefined,
827
- title: undefined,
828
- height: undefined,
829
- };
830
- }
831
- export const SplashPostData = {
832
- $type: "devvit.ui.effects.web_view.v1alpha.SplashPostData",
833
- encode(message, writer = _m0.Writer.create()) {
834
- if (message.appDisplayName !== undefined) {
835
- writer.uint32(10).string(message.appDisplayName);
836
- }
837
- if (message.appIconUri !== undefined) {
838
- writer.uint32(18).string(message.appIconUri);
839
- }
840
- if (message.backgroundUri !== undefined) {
841
- writer.uint32(26).string(message.backgroundUri);
842
- }
843
- if (message.buttonLabel !== undefined) {
844
- writer.uint32(34).string(message.buttonLabel);
845
- }
846
- if (message.description !== undefined) {
847
- writer.uint32(42).string(message.description);
848
- }
849
- if (message.entryUri !== undefined) {
850
- writer.uint32(50).string(message.entryUri);
851
- }
852
- if (message.title !== undefined) {
853
- writer.uint32(58).string(message.title);
854
- }
855
- if (message.height !== undefined) {
856
- writer.uint32(64).int32(message.height);
857
- }
858
- return writer;
859
- },
860
- decode(input, length) {
861
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
862
- let end = length === undefined ? reader.len : reader.pos + length;
863
- const message = createBaseSplashPostData();
864
- while (reader.pos < end) {
865
- const tag = reader.uint32();
866
- switch (tag >>> 3) {
867
- case 1:
868
- if (tag !== 10) {
869
- break;
870
- }
871
- message.appDisplayName = reader.string();
872
- continue;
873
- case 2:
874
- if (tag !== 18) {
875
- break;
876
- }
877
- message.appIconUri = reader.string();
878
- continue;
879
- case 3:
880
- if (tag !== 26) {
881
- break;
882
- }
883
- message.backgroundUri = reader.string();
884
- continue;
885
- case 4:
886
- if (tag !== 34) {
887
- break;
888
- }
889
- message.buttonLabel = reader.string();
890
- continue;
891
- case 5:
892
- if (tag !== 42) {
893
- break;
894
- }
895
- message.description = reader.string();
896
- continue;
897
- case 6:
898
- if (tag !== 50) {
899
- break;
900
- }
901
- message.entryUri = reader.string();
902
- continue;
903
- case 7:
904
- if (tag !== 58) {
905
- break;
906
- }
907
- message.title = reader.string();
908
- continue;
909
- case 8:
910
- if (tag !== 64) {
911
- break;
912
- }
913
- message.height = reader.int32();
914
- continue;
915
- }
916
- if ((tag & 7) === 4 || tag === 0) {
917
- break;
918
- }
919
- reader.skipType(tag & 7);
920
- }
921
- return message;
922
- },
923
- fromJSON(object) {
924
- return {
925
- appDisplayName: isSet(object.appDisplayName) ? globalThis.String(object.appDisplayName) : undefined,
926
- appIconUri: isSet(object.appIconUri) ? globalThis.String(object.appIconUri) : undefined,
927
- backgroundUri: isSet(object.backgroundUri) ? globalThis.String(object.backgroundUri) : undefined,
928
- buttonLabel: isSet(object.buttonLabel) ? globalThis.String(object.buttonLabel) : undefined,
929
- description: isSet(object.description) ? globalThis.String(object.description) : undefined,
930
- entryUri: isSet(object.entryUri) ? globalThis.String(object.entryUri) : undefined,
931
- title: isSet(object.title) ? globalThis.String(object.title) : undefined,
932
- height: isSet(object.height) ? heightFromJSON(object.height) : undefined,
933
- };
934
- },
935
- toJSON(message) {
936
- const obj = {};
937
- if (message.appDisplayName !== undefined) {
938
- obj.appDisplayName = message.appDisplayName;
939
- }
940
- if (message.appIconUri !== undefined) {
941
- obj.appIconUri = message.appIconUri;
942
- }
943
- if (message.backgroundUri !== undefined) {
944
- obj.backgroundUri = message.backgroundUri;
945
- }
946
- if (message.buttonLabel !== undefined) {
947
- obj.buttonLabel = message.buttonLabel;
948
- }
949
- if (message.description !== undefined) {
950
- obj.description = message.description;
951
- }
952
- if (message.entryUri !== undefined) {
953
- obj.entryUri = message.entryUri;
954
- }
955
- if (message.title !== undefined) {
956
- obj.title = message.title;
957
- }
958
- if (message.height !== undefined) {
959
- obj.height = heightToJSON(message.height);
960
- }
961
- return obj;
962
- },
963
- create(base) {
964
- return SplashPostData.fromPartial(base ?? {});
965
- },
966
- fromPartial(object) {
967
- const message = createBaseSplashPostData();
968
- message.appDisplayName = object.appDisplayName ?? undefined;
969
- message.appIconUri = object.appIconUri ?? undefined;
970
- message.backgroundUri = object.backgroundUri ?? undefined;
971
- message.buttonLabel = object.buttonLabel ?? undefined;
972
- message.description = object.description ?? undefined;
973
- message.entryUri = object.entryUri ?? undefined;
974
- message.title = object.title ?? undefined;
975
- message.height = object.height ?? undefined;
976
- return message;
977
- },
978
- };
979
- messageTypeRegistry.set(SplashPostData.$type, SplashPostData);
980
763
  function isObject(value) {
981
764
  return typeof value === "object" && value !== null;
982
765
  }