@devvit/protos 0.11.20-next-2025-07-28-21-36-29-20e2ce157.0 → 0.11.20-next-2025-07-28-22-02-50-edc5e65be.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,6 +52,44 @@ 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
+ }
55
93
  function createBaseBridgeContext() {
56
94
  return {
57
95
  postData: undefined,
@@ -540,11 +578,14 @@ export const WebViewContext = {
540
578
  };
541
579
  messageTypeRegistry.set(WebViewContext.$type, WebViewContext);
542
580
  function createBaseDevvitPostData() {
543
- return { developerData: undefined };
581
+ return { splash: undefined, developerData: undefined };
544
582
  }
545
583
  export const DevvitPostData = {
546
584
  $type: "devvit.ui.effects.web_view.v1alpha.DevvitPostData",
547
585
  encode(message, writer = _m0.Writer.create()) {
586
+ if (message.splash !== undefined) {
587
+ SplashPostData.encode(message.splash, writer.uint32(26).fork()).ldelim();
588
+ }
548
589
  if (message.developerData !== undefined) {
549
590
  Struct.encode(Struct.wrap(message.developerData), writer.uint32(18).fork()).ldelim();
550
591
  }
@@ -557,6 +598,12 @@ export const DevvitPostData = {
557
598
  while (reader.pos < end) {
558
599
  const tag = reader.uint32();
559
600
  switch (tag >>> 3) {
601
+ case 3:
602
+ if (tag !== 26) {
603
+ break;
604
+ }
605
+ message.splash = SplashPostData.decode(reader, reader.uint32());
606
+ continue;
560
607
  case 2:
561
608
  if (tag !== 18) {
562
609
  break;
@@ -572,10 +619,16 @@ export const DevvitPostData = {
572
619
  return message;
573
620
  },
574
621
  fromJSON(object) {
575
- return { developerData: isObject(object.developerData) ? object.developerData : undefined };
622
+ return {
623
+ splash: isSet(object.splash) ? SplashPostData.fromJSON(object.splash) : undefined,
624
+ developerData: isObject(object.developerData) ? object.developerData : undefined,
625
+ };
576
626
  },
577
627
  toJSON(message) {
578
628
  const obj = {};
629
+ if (message.splash !== undefined) {
630
+ obj.splash = SplashPostData.toJSON(message.splash);
631
+ }
579
632
  if (message.developerData !== undefined) {
580
633
  obj.developerData = message.developerData;
581
634
  }
@@ -586,6 +639,9 @@ export const DevvitPostData = {
586
639
  },
587
640
  fromPartial(object) {
588
641
  const message = createBaseDevvitPostData();
642
+ message.splash = (object.splash !== undefined && object.splash !== null)
643
+ ? SplashPostData.fromPartial(object.splash)
644
+ : undefined;
589
645
  message.developerData = object.developerData ?? undefined;
590
646
  return message;
591
647
  },
@@ -760,6 +816,167 @@ export const ShareParam_ParamsEntry = {
760
816
  },
761
817
  };
762
818
  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);
763
980
  function isObject(value) {
764
981
  return typeof value === "object" && value !== null;
765
982
  }