@devvit/protos 0.10.18-next-2024-03-29-98c9b9021.0 → 0.10.18-next-2024-04-01-e36fddbd8.0
Sign up to get free protection for your applications and to get access to all the features.
- package/index.d.ts +2 -2
- package/index.js +2 -2
- package/package.json +3 -3
- package/schema/devvit/data/api/v1alpha/delivery.proto +6 -0
- package/schema/devvit/data/api/v1alpha/filter.proto +2 -0
- package/types/devvit/data/api/v1alpha/filter.d.ts +4 -1
- package/types/devvit/data/api/v1alpha/filter.d.ts.map +1 -1
- package/types/devvit/data/api/v1alpha/filter.js +11 -2
package/index.d.ts
CHANGED
@@ -138,10 +138,10 @@ export * from './types/devvit/plugin/redditapi/users/users_svc.js';
|
|
138
138
|
export * from './types/devvit/plugin/redditapi/users/users_msg.js';
|
139
139
|
export * from './types/devvit/plugin/redditapi/subreddits/subreddits_svc.js';
|
140
140
|
export * from './types/devvit/plugin/redditapi/subreddits/subreddits_msg.js';
|
141
|
-
export * from './types/devvit/plugin/redditapi/privatemessages/privatemessages_svc.js';
|
142
|
-
export * from './types/devvit/plugin/redditapi/privatemessages/privatemessages_msg.js';
|
143
141
|
export * from './types/devvit/plugin/redditapi/postcollections/postcollections_svc.js';
|
144
142
|
export * from './types/devvit/plugin/redditapi/postcollections/postcollections_msg.js';
|
143
|
+
export * from './types/devvit/plugin/redditapi/privatemessages/privatemessages_svc.js';
|
144
|
+
export * from './types/devvit/plugin/redditapi/privatemessages/privatemessages_msg.js';
|
145
145
|
export * from './types/devvit/plugin/redditapi/newmodmail/newmodmail_svc.js';
|
146
146
|
export * from './types/devvit/plugin/redditapi/newmodmail/newmodmail_msg.js';
|
147
147
|
export * from './types/devvit/plugin/redditapi/modnote/modnote_svc.js';
|
package/index.js
CHANGED
@@ -139,10 +139,10 @@ export * from './types/devvit/plugin/redditapi/users/users_svc.js';
|
|
139
139
|
export * from './types/devvit/plugin/redditapi/users/users_msg.js';
|
140
140
|
export * from './types/devvit/plugin/redditapi/subreddits/subreddits_svc.js';
|
141
141
|
export * from './types/devvit/plugin/redditapi/subreddits/subreddits_msg.js';
|
142
|
-
export * from './types/devvit/plugin/redditapi/privatemessages/privatemessages_svc.js';
|
143
|
-
export * from './types/devvit/plugin/redditapi/privatemessages/privatemessages_msg.js';
|
144
142
|
export * from './types/devvit/plugin/redditapi/postcollections/postcollections_svc.js';
|
145
143
|
export * from './types/devvit/plugin/redditapi/postcollections/postcollections_msg.js';
|
144
|
+
export * from './types/devvit/plugin/redditapi/privatemessages/privatemessages_svc.js';
|
145
|
+
export * from './types/devvit/plugin/redditapi/privatemessages/privatemessages_msg.js';
|
146
146
|
export * from './types/devvit/plugin/redditapi/newmodmail/newmodmail_svc.js';
|
147
147
|
export * from './types/devvit/plugin/redditapi/newmodmail/newmodmail_msg.js';
|
148
148
|
export * from './types/devvit/plugin/redditapi/modnote/modnote_svc.js';
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@devvit/protos",
|
3
|
-
"version": "0.10.18-next-2024-
|
3
|
+
"version": "0.10.18-next-2024-04-01-e36fddbd8.0",
|
4
4
|
"license": "BSD-3-Clause",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -42,7 +42,7 @@
|
|
42
42
|
"devDependencies": {
|
43
43
|
"@devvit/eslint-config": "0.10.17",
|
44
44
|
"@devvit/repo-tools": "0.10.17",
|
45
|
-
"@devvit/tsconfig": "0.10.18-next-2024-
|
45
|
+
"@devvit/tsconfig": "0.10.18-next-2024-04-01-e36fddbd8.0",
|
46
46
|
"eslint": "8.9.0",
|
47
47
|
"glob": "10.3.10",
|
48
48
|
"ts-proto-kmx-2": "1.129.4",
|
@@ -53,5 +53,5 @@
|
|
53
53
|
"publishConfig": {
|
54
54
|
"directory": "dist"
|
55
55
|
},
|
56
|
-
"gitHead": "
|
56
|
+
"gitHead": "bcaf4e513dc3b0135ffdb5ef3d83ff015cfd7503"
|
57
57
|
}
|
@@ -595,6 +595,12 @@ message SubredditFirehose {
|
|
595
595
|
(openapi.field_example) = "true"
|
596
596
|
];
|
597
597
|
|
598
|
+
// Do not send
|
599
|
+
devvit.reddit.v2alpha.SubredditType type = 9 [
|
600
|
+
(devvit.options.trigger_evt_path) = "subreddit.type",
|
601
|
+
(google.api.field_behavior) = INPUT_ONLY
|
602
|
+
];
|
603
|
+
|
598
604
|
// removed fields
|
599
605
|
reserved 4;
|
600
606
|
reserved "trending_score";
|
@@ -5,13 +5,14 @@
|
|
5
5
|
*/
|
6
6
|
import _m0 from 'protobufjs/minimal.js';
|
7
7
|
import { FirehoseEvent } from '../../../options/options.js';
|
8
|
-
import { SubredditRating } from '../../../reddit/v2alpha/subredditv2.js';
|
8
|
+
import { SubredditRating, SubredditType } from '../../../reddit/v2alpha/subredditv2.js';
|
9
9
|
export interface FirehoseFilterData {
|
10
10
|
event: FirehoseEvent;
|
11
11
|
subredditId: string;
|
12
12
|
subredditRating: SubredditRating;
|
13
13
|
post?: FirehoseFilterData_PostFilterData;
|
14
14
|
comment?: FirehoseFilterData_CommentFilterData;
|
15
|
+
subredditType: SubredditType;
|
15
16
|
}
|
16
17
|
/** The approval status for a post or comment */
|
17
18
|
export declare enum FirehoseFilterData_ApprovalStatus {
|
@@ -136,6 +137,7 @@ export declare const FirehoseFilterData: {
|
|
136
137
|
sexuallyExplicit?: boolean | undefined;
|
137
138
|
mediaIds?: string[] | undefined;
|
138
139
|
} | undefined;
|
140
|
+
subredditType?: SubredditType | undefined;
|
139
141
|
} & {
|
140
142
|
event?: FirehoseEvent | undefined;
|
141
143
|
subredditId?: string | undefined;
|
@@ -266,6 +268,7 @@ export declare const FirehoseFilterData: {
|
|
266
268
|
sexuallyExplicit?: boolean | undefined;
|
267
269
|
mediaIds?: (string[] & string[] & { [K_13 in Exclude<keyof I["comment"]["mediaIds"], "$type" | keyof string[]>]: never; }) | undefined;
|
268
270
|
} & { [K_14 in Exclude<keyof I["comment"], "$type" | keyof FirehoseFilterData_CommentFilterData>]: never; }) | undefined;
|
271
|
+
subredditType?: SubredditType | undefined;
|
269
272
|
} & { [K_15 in Exclude<keyof I, "$type" | keyof FirehoseFilterData>]: never; }>(object: I): FirehoseFilterData;
|
270
273
|
};
|
271
274
|
export declare const FirehoseFilterData_SafetyTag: {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"filter.d.ts","sourceRoot":"","sources":["../../../../../../src/types/devvit/data/api/v1alpha/filter.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,GAAG,MAAM,uBAAuB,CAAC;AAExC,OAAO,EAAE,aAAa,EAA8C,MAAM,6BAA6B,CAAC;AACxG,OAAO,
|
1
|
+
{"version":3,"file":"filter.d.ts","sourceRoot":"","sources":["../../../../../../src/types/devvit/data/api/v1alpha/filter.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,GAAG,MAAM,uBAAuB,CAAC;AAExC,OAAO,EAAE,aAAa,EAA8C,MAAM,6BAA6B,CAAC;AACxG,OAAO,EACL,eAAe,EAGf,aAAa,EAGd,MAAM,wCAAwC,CAAC;AAEhD,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,aAAa,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,eAAe,CAAC;IACjC,IAAI,CAAC,EAAE,iCAAiC,CAAC;IACzC,OAAO,CAAC,EAAE,oCAAoC,CAAC;IAC/C,aAAa,EAAE,aAAa,CAAC;CAC9B;AAED,gDAAgD;AAChD,oBAAY,iCAAiC;IAC3C,uBAAuB,IAAI;IAC3B,YAAY,IAAI;IAChB,WAAW,IAAI;IACf,WAAW,IAAI;IACf,cAAc,IAAI;IAClB,aAAa,IAAI;IACjB,aAAa,IAAI;IACjB,cAAc,IAAI;IAClB,cAAc,IAAI;IAClB,YAAY,KAAK;CAClB;AAED,wBAAgB,yCAAyC,CAAC,MAAM,EAAE,GAAG,GAAG,iCAAiC,CAkCxG;AAED,wBAAgB,uCAAuC,CAAC,MAAM,EAAE,iCAAiC,GAAG,MAAM,CAwBzG;AAED,M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EventFromJSON, firehoseEventToJSON } from '../../../options/options.js';
|
10
|
-
import { subredditRatingFromJSON, subredditRatingToJSON } from '../../../reddit/v2alpha/subredditv2.js';
|
10
|
+
import { subredditRatingFromJSON, subredditRatingToJSON, subredditTypeFromJSON, subredditTypeToJSON, } from '../../../reddit/v2alpha/subredditv2.js';
|
11
11
|
/** The approval status for a post or comment */
|
12
12
|
export var FirehoseFilterData_ApprovalStatus;
|
13
13
|
(function (FirehoseFilterData_ApprovalStatus) {
|
@@ -83,7 +83,7 @@ export function firehoseFilterData_ApprovalStatusToJSON(object) {
|
|
83
83
|
}
|
84
84
|
}
|
85
85
|
function createBaseFirehoseFilterData() {
|
86
|
-
return { event: 0, subredditId: "", subredditRating: 0, post: undefined, comment: undefined };
|
86
|
+
return { event: 0, subredditId: "", subredditRating: 0, post: undefined, comment: undefined, subredditType: 0 };
|
87
87
|
}
|
88
88
|
export const FirehoseFilterData = {
|
89
89
|
$type: "devvit.data.api.v1alpha.FirehoseFilterData",
|
@@ -103,6 +103,9 @@ export const FirehoseFilterData = {
|
|
103
103
|
if (message.comment !== undefined) {
|
104
104
|
FirehoseFilterData_CommentFilterData.encode(message.comment, writer.uint32(42).fork()).ldelim();
|
105
105
|
}
|
106
|
+
if (message.subredditType !== 0) {
|
107
|
+
writer.uint32(48).int32(message.subredditType);
|
108
|
+
}
|
106
109
|
return writer;
|
107
110
|
},
|
108
111
|
decode(input, length) {
|
@@ -127,6 +130,9 @@ export const FirehoseFilterData = {
|
|
127
130
|
case 5:
|
128
131
|
message.comment = FirehoseFilterData_CommentFilterData.decode(reader, reader.uint32());
|
129
132
|
break;
|
133
|
+
case 6:
|
134
|
+
message.subredditType = reader.int32();
|
135
|
+
break;
|
130
136
|
default:
|
131
137
|
reader.skipType(tag & 7);
|
132
138
|
break;
|
@@ -141,6 +147,7 @@ export const FirehoseFilterData = {
|
|
141
147
|
subredditRating: isSet(object.subredditRating) ? subredditRatingFromJSON(object.subredditRating) : 0,
|
142
148
|
post: isSet(object.post) ? FirehoseFilterData_PostFilterData.fromJSON(object.post) : undefined,
|
143
149
|
comment: isSet(object.comment) ? FirehoseFilterData_CommentFilterData.fromJSON(object.comment) : undefined,
|
150
|
+
subredditType: isSet(object.subredditType) ? subredditTypeFromJSON(object.subredditType) : 0,
|
144
151
|
};
|
145
152
|
},
|
146
153
|
toJSON(message) {
|
@@ -152,6 +159,7 @@ export const FirehoseFilterData = {
|
|
152
159
|
(obj.post = message.post ? FirehoseFilterData_PostFilterData.toJSON(message.post) : undefined);
|
153
160
|
message.comment !== undefined &&
|
154
161
|
(obj.comment = message.comment ? FirehoseFilterData_CommentFilterData.toJSON(message.comment) : undefined);
|
162
|
+
message.subredditType !== undefined && (obj.subredditType = subredditTypeToJSON(message.subredditType));
|
155
163
|
return obj;
|
156
164
|
},
|
157
165
|
fromPartial(object) {
|
@@ -165,6 +173,7 @@ export const FirehoseFilterData = {
|
|
165
173
|
message.comment = (object.comment !== undefined && object.comment !== null)
|
166
174
|
? FirehoseFilterData_CommentFilterData.fromPartial(object.comment)
|
167
175
|
: undefined;
|
176
|
+
message.subredditType = object.subredditType ?? 0;
|
168
177
|
return message;
|
169
178
|
},
|
170
179
|
};
|