@devvit/protos 0.11.0-next-2024-07-09-09c743af9.0 → 0.11.0-next-2024-07-09-907b3322a.0
Sign up to get free protection for your applications and to get access to all the features.
- package/meta.min.json +46 -38
- package/package.json +6 -6
- package/protos.min.js +2 -2
- package/protos.min.js.map +4 -4
- package/schema/devvit/dev_portal/app_publish_request/app_publish_request.proto +79 -0
- package/schema/devvit/dev_portal/app_publish_request/note/app_publish_request_note.proto +24 -0
- package/schema/devvit/dev_portal/app_publish_request/review/app_publish_request_review.proto +30 -0
- package/schema/devvit/dev_portal/dev_portal.proto +19 -2
- package/schema/devvit/plugin/buildpack/buildpack_common.proto +12 -0
- package/schema/devvit/runtime/bundle.proto +2 -1
- package/types/devvit/dev_portal/app_publish_request/app_publish_request.d.ts +141 -0
- package/types/devvit/dev_portal/app_publish_request/app_publish_request.d.ts.map +1 -0
- package/types/devvit/dev_portal/app_publish_request/app_publish_request.js +804 -0
- package/types/devvit/dev_portal/app_publish_request/note/app_publish_request_note.d.ts +55 -0
- package/types/devvit/dev_portal/app_publish_request/note/app_publish_request_note.d.ts.map +1 -0
- package/types/devvit/dev_portal/app_publish_request/note/app_publish_request_note.js +284 -0
- package/types/devvit/dev_portal/app_publish_request/review/app_publish_request_review.d.ts +63 -0
- package/types/devvit/dev_portal/app_publish_request/review/app_publish_request_review.d.ts.map +1 -0
- package/types/devvit/dev_portal/app_publish_request/review/app_publish_request_review.js +321 -0
- package/types/devvit/dev_portal/dev_portal.d.ts +714 -0
- package/types/devvit/dev_portal/dev_portal.d.ts.map +1 -1
- package/types/devvit/dev_portal/dev_portal.js +156 -0
- package/types/devvit/dev_portal/dev_portal.twirp-client.d.ts +46 -0
- package/types/devvit/dev_portal/dev_portal.twirp-client.d.ts.map +1 -1
- package/types/devvit/dev_portal/dev_portal.twirp-client.js +133 -0
- package/types/devvit/dev_portal/dev_portal.twirp.d.ts +29 -0
- package/types/devvit/dev_portal/dev_portal.twirp.d.ts.map +1 -1
- package/types/devvit/dev_portal/dev_portal.twirp.js +685 -0
- package/types/devvit/gateway/resolvers.d.ts +6 -0
- package/types/devvit/gateway/resolvers.d.ts.map +1 -1
- package/types/devvit/plugin/buildpack/buildpack.d.ts +60 -0
- package/types/devvit/plugin/buildpack/buildpack.d.ts.map +1 -1
- package/types/devvit/plugin/buildpack/buildpack_common.d.ts +34 -0
- package/types/devvit/plugin/buildpack/buildpack_common.d.ts.map +1 -1
- package/types/devvit/plugin/buildpack/buildpack_common.js +161 -0
- package/types/devvit/plugin/linker/linker.d.ts +30 -0
- package/types/devvit/plugin/linker/linker.d.ts.map +1 -1
- package/types/devvit/plugin/linker/resolver.d.ts +30 -0
- package/types/devvit/plugin/linker/resolver.d.ts.map +1 -1
- package/types/devvit/runtime/actor/bootstrap.d.ts +6 -0
- package/types/devvit/runtime/actor/bootstrap.d.ts.map +1 -1
- package/types/devvit/runtime/actor/runtime.d.ts +6 -0
- package/types/devvit/runtime/actor/runtime.d.ts.map +1 -1
- package/types/devvit/runtime/actor/supervisor.d.ts +6 -0
- package/types/devvit/runtime/actor/supervisor.d.ts.map +1 -1
- package/types/devvit/runtime/bundle.d.ts +17 -0
- package/types/devvit/runtime/bundle.d.ts.map +1 -1
- package/types/devvit/runtime/bundle.js +102 -0
- package/types/devvit/service/bundle_service.d.ts +12 -0
- package/types/devvit/service/bundle_service.d.ts.map +1 -1
@@ -149,6 +149,10 @@ export interface LinkedBundle {
|
|
149
149
|
webviewAssets: {
|
150
150
|
[key: string]: string;
|
151
151
|
};
|
152
|
+
/** This map is used to resolve a sku to a UUID used by the Payment platform to identify the product */
|
153
|
+
products: {
|
154
|
+
[key: string]: string;
|
155
|
+
};
|
152
156
|
}
|
153
157
|
export interface LinkedBundle_AssetsEntry {
|
154
158
|
key: string;
|
@@ -158,6 +162,10 @@ export interface LinkedBundle_WebviewAssetsEntry {
|
|
158
162
|
key: string;
|
159
163
|
value: string;
|
160
164
|
}
|
165
|
+
export interface LinkedBundle_ProductsEntry {
|
166
|
+
key: string;
|
167
|
+
value: string;
|
168
|
+
}
|
161
169
|
/** Detail about the tooling used to construct a LinkedBundle. */
|
162
170
|
export interface BuildInfo {
|
163
171
|
/** When the LinkedBundle was built. */
|
@@ -250,6 +258,15 @@ export declare const LinkedBundle_WebviewAssetsEntry: {
|
|
250
258
|
create(base?: DeepPartial<LinkedBundle_WebviewAssetsEntry>): LinkedBundle_WebviewAssetsEntry;
|
251
259
|
fromPartial(object: DeepPartial<LinkedBundle_WebviewAssetsEntry>): LinkedBundle_WebviewAssetsEntry;
|
252
260
|
};
|
261
|
+
export declare const LinkedBundle_ProductsEntry: {
|
262
|
+
$type: "devvit.runtime.LinkedBundle.ProductsEntry";
|
263
|
+
encode(message: LinkedBundle_ProductsEntry, writer?: _m0.Writer): _m0.Writer;
|
264
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): LinkedBundle_ProductsEntry;
|
265
|
+
fromJSON(object: any): LinkedBundle_ProductsEntry;
|
266
|
+
toJSON(message: LinkedBundle_ProductsEntry): unknown;
|
267
|
+
create(base?: DeepPartial<LinkedBundle_ProductsEntry>): LinkedBundle_ProductsEntry;
|
268
|
+
fromPartial(object: DeepPartial<LinkedBundle_ProductsEntry>): LinkedBundle_ProductsEntry;
|
269
|
+
};
|
253
270
|
export declare const BuildInfo: {
|
254
271
|
$type: "devvit.runtime.BuildInfo";
|
255
272
|
encode(message: BuildInfo, writer?: _m0.Writer): _m0.Writer;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"bundle.d.ts","sourceRoot":"","sources":["../../../../src/types/devvit/runtime/bundle.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,GAAG,MAAM,uBAAuB,CAAC;AAIxC,OAAO,EAAE,6BAA6B,EAAE,MAAM,mBAAmB,CAAC;AAElE,6BAA6B;AAC7B,oBAAY,0BAA0B;IACpC,qDAAqD;IACrD,OAAO,IAAI;IACX,2CAA2C;IAC3C,EAAE,IAAI;IACN;;;OAGG;IACH,MAAM,IAAI;IACV,YAAY,KAAK;CA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S,CAAC;IACd;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,SAAS,CAAC,EACN,MAAM,GACN,SAAS,CAAC;IACd;;;OAGG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,6BAA6B,EAAE,CAAC;IAC1C;;;;OAIG;IACH,IAAI,EAAE,YAAY,EAAE,CAAC;IACrB;;;OAGG;IACH,SAAS,CAAC,EACN,SAAS,GACT,SAAS,CAAC;IACd;;;;;OAKG;IACH,SAAS,CAAC,EACN,MAAM,GACN,SAAS,CAAC;IACd;;;;OAIG;IACH,MAAM,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IAClC;;;OAGG;IACH,aAAa,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;
|
1
|
+
{"version":3,"file":"bundle.d.ts","sourceRoot":"","sources":["../../../../src/types/devvit/runtime/bundle.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,GAAG,MAAM,uBAAuB,CAAC;AAIxC,OAAO,EAAE,6BAA6B,EAAE,MAAM,mBAAmB,CAAC;AAElE,6BAA6B;AAC7B,oBAAY,0BAA0B;IACpC,qDAAqD;IACrD,OAAO,IAAI;IACX,2CAA2C;IAC3C,EAAE,IAAI;IACN;;;OAGG;IACH,MAAM,IAAI;IACV,YAAY,KAAK;CAClB;AAED,wBAAgB,kCAAkC,CAAC,MAAM,EAAE,GAAG,GAAG,0BAA0B,CAgB1F;AAED,wBAAgB,gCAAgC,CAAC,MAAM,EAAE,0BAA0B,GAAG,MAAM,CAY3F;AAED;;;GAGG;AACH,MAAM,WAAW,SAAS;IACxB;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IACb,yDAAyD;IACzD,KAAK,EAAE,MAAM,CAAC;IACd,sDAAsD;IACtD,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,sDAAsD;AACtD,MAA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CAAC,GAAG,SAAS;CAcvD,CAAC;AAQF,eAAO,MAAM,2BAA2B;;oBAGtB,2BAA2B,WAAU,IAAI,MAAM,GAAyB,IAAI,MAAM;kBAUpF,IAAI,MAAM,GAAG,UAAU,WAAW,MAAM,GAAG,2BAA2B;qBA8BnE,GAAG,GAAG,2BAA2B;oBAOlC,2BAA2B,GAAG,OAAO;kBAWvC,YAAY,2BAA2B,CAAC,GAAG,2BAA2B;wBAGhE,YAAY,2BAA2B,CAAC,GAAG,2BAA2B;CAM3F,CAAC;AAIF,KAAK,OAAO,GAAG,IAAI,GAAG,QAAQ,GAAG,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;AAEpF,KAAK,WAAW,CAAC,CAAC,IAAI,CAAC,SAAS,OAAO,GAAG,CAAC,GACvC,CAAC,SAAS,UAAU,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,GAAG,UAAU,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,GACtE,CAAC,SAAS,aAAa,CAAC,MAAM,CAAC,CAAC,GAAG,aAAa,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,GAChE,CAAC,SAAS,EAAE,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAAE,GACrD,OAAO,CAAC,CAAC,CAAC,CAAC"}
|
@@ -515,6 +515,7 @@ function createBaseLinkedBundle() {
|
|
515
515
|
assetsUrl: undefined,
|
516
516
|
assets: {},
|
517
517
|
webviewAssets: {},
|
518
|
+
products: {},
|
518
519
|
};
|
519
520
|
}
|
520
521
|
export const LinkedBundle = {
|
@@ -550,6 +551,9 @@ export const LinkedBundle = {
|
|
550
551
|
Object.entries(message.webviewAssets).forEach(([key, value]) => {
|
551
552
|
LinkedBundle_WebviewAssetsEntry.encode({ key: key, value }, writer.uint32(74).fork()).ldelim();
|
552
553
|
});
|
554
|
+
Object.entries(message.products).forEach(([key, value]) => {
|
555
|
+
LinkedBundle_ProductsEntry.encode({ key: key, value }, writer.uint32(90).fork()).ldelim();
|
556
|
+
});
|
553
557
|
return writer;
|
554
558
|
},
|
555
559
|
decode(input, length) {
|
@@ -625,6 +629,15 @@ export const LinkedBundle = {
|
|
625
629
|
message.webviewAssets[entry9.key] = entry9.value;
|
626
630
|
}
|
627
631
|
continue;
|
632
|
+
case 11:
|
633
|
+
if (tag !== 90) {
|
634
|
+
break;
|
635
|
+
}
|
636
|
+
const entry11 = LinkedBundle_ProductsEntry.decode(reader, reader.uint32());
|
637
|
+
if (entry11.value !== undefined) {
|
638
|
+
message.products[entry11.key] = entry11.value;
|
639
|
+
}
|
640
|
+
continue;
|
628
641
|
}
|
629
642
|
if ((tag & 7) === 4 || tag === 0) {
|
630
643
|
break;
|
@@ -657,6 +670,12 @@ export const LinkedBundle = {
|
|
657
670
|
return acc;
|
658
671
|
}, {})
|
659
672
|
: {},
|
673
|
+
products: isObject(object.products)
|
674
|
+
? Object.entries(object.products).reduce((acc, [key, value]) => {
|
675
|
+
acc[key] = String(value);
|
676
|
+
return acc;
|
677
|
+
}, {})
|
678
|
+
: {},
|
660
679
|
};
|
661
680
|
},
|
662
681
|
toJSON(message) {
|
@@ -703,6 +722,15 @@ export const LinkedBundle = {
|
|
703
722
|
});
|
704
723
|
}
|
705
724
|
}
|
725
|
+
if (message.products) {
|
726
|
+
const entries = Object.entries(message.products);
|
727
|
+
if (entries.length > 0) {
|
728
|
+
obj.products = {};
|
729
|
+
entries.forEach(([k, v]) => {
|
730
|
+
obj.products[k] = v;
|
731
|
+
});
|
732
|
+
}
|
733
|
+
}
|
706
734
|
return obj;
|
707
735
|
},
|
708
736
|
create(base) {
|
@@ -734,6 +762,12 @@ export const LinkedBundle = {
|
|
734
762
|
}
|
735
763
|
return acc;
|
736
764
|
}, {});
|
765
|
+
message.products = Object.entries(object.products ?? {}).reduce((acc, [key, value]) => {
|
766
|
+
if (value !== undefined) {
|
767
|
+
acc[key] = globalThis.String(value);
|
768
|
+
}
|
769
|
+
return acc;
|
770
|
+
}, {});
|
737
771
|
return message;
|
738
772
|
},
|
739
773
|
};
|
@@ -874,6 +908,74 @@ export const LinkedBundle_WebviewAssetsEntry = {
|
|
874
908
|
},
|
875
909
|
};
|
876
910
|
messageTypeRegistry.set(LinkedBundle_WebviewAssetsEntry.$type, LinkedBundle_WebviewAssetsEntry);
|
911
|
+
function createBaseLinkedBundle_ProductsEntry() {
|
912
|
+
return { key: "", value: "" };
|
913
|
+
}
|
914
|
+
export const LinkedBundle_ProductsEntry = {
|
915
|
+
$type: "devvit.runtime.LinkedBundle.ProductsEntry",
|
916
|
+
encode(message, writer = _m0.Writer.create()) {
|
917
|
+
if (message.key !== "") {
|
918
|
+
writer.uint32(10).string(message.key);
|
919
|
+
}
|
920
|
+
if (message.value !== "") {
|
921
|
+
writer.uint32(18).string(message.value);
|
922
|
+
}
|
923
|
+
return writer;
|
924
|
+
},
|
925
|
+
decode(input, length) {
|
926
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
927
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
928
|
+
const message = createBaseLinkedBundle_ProductsEntry();
|
929
|
+
while (reader.pos < end) {
|
930
|
+
const tag = reader.uint32();
|
931
|
+
switch (tag >>> 3) {
|
932
|
+
case 1:
|
933
|
+
if (tag !== 10) {
|
934
|
+
break;
|
935
|
+
}
|
936
|
+
message.key = reader.string();
|
937
|
+
continue;
|
938
|
+
case 2:
|
939
|
+
if (tag !== 18) {
|
940
|
+
break;
|
941
|
+
}
|
942
|
+
message.value = reader.string();
|
943
|
+
continue;
|
944
|
+
}
|
945
|
+
if ((tag & 7) === 4 || tag === 0) {
|
946
|
+
break;
|
947
|
+
}
|
948
|
+
reader.skipType(tag & 7);
|
949
|
+
}
|
950
|
+
return message;
|
951
|
+
},
|
952
|
+
fromJSON(object) {
|
953
|
+
return {
|
954
|
+
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
955
|
+
value: isSet(object.value) ? globalThis.String(object.value) : "",
|
956
|
+
};
|
957
|
+
},
|
958
|
+
toJSON(message) {
|
959
|
+
const obj = {};
|
960
|
+
if (message.key !== "") {
|
961
|
+
obj.key = message.key;
|
962
|
+
}
|
963
|
+
if (message.value !== "") {
|
964
|
+
obj.value = message.value;
|
965
|
+
}
|
966
|
+
return obj;
|
967
|
+
},
|
968
|
+
create(base) {
|
969
|
+
return LinkedBundle_ProductsEntry.fromPartial(base ?? {});
|
970
|
+
},
|
971
|
+
fromPartial(object) {
|
972
|
+
const message = createBaseLinkedBundle_ProductsEntry();
|
973
|
+
message.key = object.key ?? "";
|
974
|
+
message.value = object.value ?? "";
|
975
|
+
return message;
|
976
|
+
},
|
977
|
+
};
|
978
|
+
messageTypeRegistry.set(LinkedBundle_ProductsEntry.$type, LinkedBundle_ProductsEntry);
|
877
979
|
function createBaseBuildInfo() {
|
878
980
|
return { created: undefined, dependencies: {} };
|
879
981
|
}
|
@@ -87,6 +87,9 @@ export declare const BundleServiceDefinition: {
|
|
87
87
|
webviewAssets?: {
|
88
88
|
[x: string]: string | undefined;
|
89
89
|
};
|
90
|
+
products?: {
|
91
|
+
[x: string]: string | undefined;
|
92
|
+
};
|
90
93
|
} | undefined): LinkedBundle;
|
91
94
|
fromPartial(object: {
|
92
95
|
actor?: {
|
@@ -124,6 +127,9 @@ export declare const BundleServiceDefinition: {
|
|
124
127
|
webviewAssets?: {
|
125
128
|
[x: string]: string | undefined;
|
126
129
|
};
|
130
|
+
products?: {
|
131
|
+
[x: string]: string | undefined;
|
132
|
+
};
|
127
133
|
}): LinkedBundle;
|
128
134
|
};
|
129
135
|
readonly requestStream: false;
|
@@ -194,6 +200,9 @@ export declare const BundleServiceDefinition: {
|
|
194
200
|
webviewAssets?: {
|
195
201
|
[x: string]: string | undefined;
|
196
202
|
};
|
203
|
+
products?: {
|
204
|
+
[x: string]: string | undefined;
|
205
|
+
};
|
197
206
|
} | undefined): LinkedBundle;
|
198
207
|
fromPartial(object: {
|
199
208
|
actor?: {
|
@@ -231,6 +240,9 @@ export declare const BundleServiceDefinition: {
|
|
231
240
|
webviewAssets?: {
|
232
241
|
[x: string]: string | undefined;
|
233
242
|
};
|
243
|
+
products?: {
|
244
|
+
[x: string]: string | undefined;
|
245
|
+
};
|
234
246
|
}): LinkedBundle;
|
235
247
|
};
|
236
248
|
readonly responseStream: false;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"bundle_service.d.ts","sourceRoot":"","sources":["../../../../src/types/devvit/service/bundle_service.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,GAAG,MAAM,uBAAuB,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,KAAK,EAAE,MAAM,gCAAgC,CAAC;AAEvD,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEpD,qCAAqC;AACrC,MAAM,WAAW,aAAa;IAC5B,iFAAiF;IACjF,QAAQ,EAAE,MAAM,CAAC;CAClB;AAMD,eAAO,MAAM,aAAa;;oBAGR,aAAa,WAAU,IAAI,MAAM,GAAyB,IAAI,MAAM;kBAOtE,IAAI,MAAM,GAAG,UAAU,WAAW,MAAM,GAAG,aAAa;qBAuBrD,GAAG,GAAG,aAAa;oBAIpB,aAAa,GAAG,OAAO;kBAQzB,YAAY,aAAa,CAAC,GAAG,aAAa;wBAGpC,YAAY,aAAa,CAAC,GAAG,aAAa;CAK/D,CAAC;AAIF,MAAM,WAAW,aAAa;IAC5B,yCAAyC;IACzC,MAAM,CAAC,OAAO,EAAE,YAAY,EAAE,QAAQ,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC;IACnE,6CAA6C;IAC7C,KAAK,CAAC,OAAO,EAAE,aAAa,EAAE,QAAQ,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;CAC3E;AAED,eAAO,MA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