@devvit/protos 0.12.8-next-2026-01-07-17-06-41-07961705a.0 → 0.12.8-next-2026-01-07-20-49-57-618c4074c.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.
- package/json/devvit/plugin/notifications/gamesdrawerbadge_msg.d.ts +8 -8
- package/json/devvit/plugin/notifications/gamesdrawerbadge_msg.d.ts.map +1 -1
- package/package.json +4 -4
- package/schema/devvit/plugin/notifications/gamesdrawerbadge_msg.proto +7 -7
- package/schema/devvit/plugin/notifications/notifications_internal_svc.proto +2 -2
- package/schema/snootobuf.lock +0 -0
- package/schema/snootobuf.redditapi.lock +0 -0
- package/types/devvit/plugin/notifications/gamesdrawerbadge_msg.d.ts +32 -32
- package/types/devvit/plugin/notifications/gamesdrawerbadge_msg.d.ts.map +1 -1
- package/types/devvit/plugin/notifications/gamesdrawerbadge_msg.js +32 -30
- package/types/devvit/plugin/notifications/notifications_internal_svc.d.ts +23 -23
- package/types/devvit/plugin/notifications/notifications_internal_svc.d.ts.map +1 -1
- package/types/devvit/plugin/notifications/notifications_internal_svc.js +11 -11
- package/types/devvit/plugin/notifications/notifications_internal_svc.twirp-client.d.ts +4 -4
- package/types/devvit/plugin/notifications/notifications_internal_svc.twirp-client.d.ts.map +1 -1
- package/types/devvit/plugin/notifications/notifications_internal_svc.twirp-client.js +11 -11
- package/types/devvit/plugin/notifications/notifications_internal_svc.twirp.d.ts +3 -3
- package/types/devvit/plugin/notifications/notifications_internal_svc.twirp.d.ts.map +1 -1
- package/types/devvit/plugin/notifications/notifications_internal_svc.twirp.js +22 -19
|
@@ -36,19 +36,19 @@ export type GetGamesDrawerBadgeStatusResponse = {
|
|
|
36
36
|
/** The fullname of a post (e.g., "t3_abc123") */
|
|
37
37
|
post?: string | undefined;
|
|
38
38
|
};
|
|
39
|
-
/** Request to get the games drawer badge status for a specific app by
|
|
40
|
-
export type
|
|
41
|
-
/** The
|
|
42
|
-
|
|
39
|
+
/** Request to get the games drawer badge status for a specific app by installation ID */
|
|
40
|
+
export type GetGamesDrawerBadgeStatusForInstallationsRequest = {
|
|
41
|
+
/** The installation IDs to inspect */
|
|
42
|
+
installationIds: string[];
|
|
43
43
|
};
|
|
44
|
-
/** Response from getting the status of an active games drawer badge for an
|
|
45
|
-
export type
|
|
46
|
-
/** Map of
|
|
44
|
+
/** Response from getting the status of an active games drawer badge for an installation */
|
|
45
|
+
export type GetGamesDrawerBadgeStatusForInstallationsResponse = {
|
|
46
|
+
/** Map of installation ID to badge status */
|
|
47
47
|
statuses: {
|
|
48
48
|
[key: string]: GetGamesDrawerBadgeStatusResponse;
|
|
49
49
|
};
|
|
50
50
|
};
|
|
51
|
-
export type
|
|
51
|
+
export type GetGamesDrawerBadgeStatusForInstallationsResponse_StatusesEntry = {
|
|
52
52
|
key: string;
|
|
53
53
|
value?: GetGamesDrawerBadgeStatusResponse | undefined;
|
|
54
54
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gamesdrawerbadge_msg.d.ts","sourceRoot":"","sources":["../../../../../src/json/devvit/plugin/notifications/gamesdrawerbadge_msg.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,2FAA2F;AAC3F,MAAM,MAAM,2BAA2B,GAAG;IACxC,iDAAiD;IACjD,IAAI,EAAE,MAAM,CAAC;IACb,uCAAuC;IACvC,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAChC,CAAA;AAED,iDAAiD;AACjD,MAAM,MAAM,4BAA4B,GAAG;IACzC,0DAA0D;IAC1D,OAAO,EAAE,OAAO,CAAC;IACjB,wEAAwE;IACxE,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC9B,CAAA;AAED,wDAAwD;AACxD,MAAM,MAAM,8BAA8B,GAAG,EAC5C,CAAA;AAED,0DAA0D;AAC1D,MAAM,MAAM,+BAA+B,GAAG;IAC5C,yEAAyE;IACzE,OAAO,EAAE,OAAO,CAAC;CAClB,CAAA;AAED,yEAAyE;AACzE,MAAM,MAAM,gCAAgC,GAAG,EAC9C,CAAA;AAED,kFAAkF;AAClF,MAAM,MAAM,iCAAiC,GAAG;IAC9C,6DAA6D;IAC7D,cAAc,EAAE,OAAO,CAAC;IACxB,mEAAmE;IACnE,SAAS,CAAC,EACN,MAAM,GACN,SAAS,CAAC;IACd,iDAAiD;IACjD,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC3B,CAAA;AAED,
|
|
1
|
+
{"version":3,"file":"gamesdrawerbadge_msg.d.ts","sourceRoot":"","sources":["../../../../../src/json/devvit/plugin/notifications/gamesdrawerbadge_msg.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,2FAA2F;AAC3F,MAAM,MAAM,2BAA2B,GAAG;IACxC,iDAAiD;IACjD,IAAI,EAAE,MAAM,CAAC;IACb,uCAAuC;IACvC,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAChC,CAAA;AAED,iDAAiD;AACjD,MAAM,MAAM,4BAA4B,GAAG;IACzC,0DAA0D;IAC1D,OAAO,EAAE,OAAO,CAAC;IACjB,wEAAwE;IACxE,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC9B,CAAA;AAED,wDAAwD;AACxD,MAAM,MAAM,8BAA8B,GAAG,EAC5C,CAAA;AAED,0DAA0D;AAC1D,MAAM,MAAM,+BAA+B,GAAG;IAC5C,yEAAyE;IACzE,OAAO,EAAE,OAAO,CAAC;CAClB,CAAA;AAED,yEAAyE;AACzE,MAAM,MAAM,gCAAgC,GAAG,EAC9C,CAAA;AAED,kFAAkF;AAClF,MAAM,MAAM,iCAAiC,GAAG;IAC9C,6DAA6D;IAC7D,cAAc,EAAE,OAAO,CAAC;IACxB,mEAAmE;IACnE,SAAS,CAAC,EACN,MAAM,GACN,SAAS,CAAC;IACd,iDAAiD;IACjD,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC3B,CAAA;AAED,yFAAyF;AACzF,MAAM,MAAM,gDAAgD,GAAG;IAC7D,sCAAsC;IACtC,eAAe,EAAE,MAAM,EAAE,CAAC;CAC3B,CAAA;AAED,2FAA2F;AAC3F,MAAM,MAAM,iDAAiD,GAAG;IAC9D,6CAA6C;IAC7C,QAAQ,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,iCAAiC,CAAA;KAAE,CAAC;CAChE,CAAA;AAED,MAAM,MAAM,+DAA+D,GAAG;IAC5E,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,iCAAiC,GAAG,SAAS,CAAC;CACvD,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devvit/protos",
|
|
3
|
-
"version": "0.12.8-next-2026-01-07-
|
|
3
|
+
"version": "0.12.8-next-2026-01-07-20-49-57-618c4074c.0",
|
|
4
4
|
"license": "BSD-3-Clause",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -65,8 +65,8 @@
|
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
67
|
"@ampproject/filesize": "4.3.0",
|
|
68
|
-
"@devvit/repo-tools": "0.12.8-next-2026-01-07-
|
|
69
|
-
"@devvit/tsconfig": "0.12.8-next-2026-01-07-
|
|
68
|
+
"@devvit/repo-tools": "0.12.8-next-2026-01-07-20-49-57-618c4074c.0",
|
|
69
|
+
"@devvit/tsconfig": "0.12.8-next-2026-01-07-20-49-57-618c4074c.0",
|
|
70
70
|
"@protobuf-ts/plugin": "2.9.3",
|
|
71
71
|
"chokidar-cli": "3.0.0",
|
|
72
72
|
"esbuild": "0.25.9",
|
|
@@ -96,5 +96,5 @@
|
|
|
96
96
|
]
|
|
97
97
|
}
|
|
98
98
|
},
|
|
99
|
-
"gitHead": "
|
|
99
|
+
"gitHead": "87e3457b058a4a9828180aaca9e714121b6e007f"
|
|
100
100
|
}
|
|
@@ -49,14 +49,14 @@ message GetGamesDrawerBadgeStatusResponse {
|
|
|
49
49
|
optional string post = 3;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
// Request to get the games drawer badge status for a specific app by
|
|
53
|
-
message
|
|
54
|
-
// The
|
|
55
|
-
repeated string
|
|
52
|
+
// Request to get the games drawer badge status for a specific app by installation ID
|
|
53
|
+
message GetGamesDrawerBadgeStatusForInstallationsRequest {
|
|
54
|
+
// The installation IDs to inspect
|
|
55
|
+
repeated string installation_ids = 1;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
// Response from getting the status of an active games drawer badge for an
|
|
59
|
-
message
|
|
60
|
-
// Map of
|
|
58
|
+
// Response from getting the status of an active games drawer badge for an installation
|
|
59
|
+
message GetGamesDrawerBadgeStatusForInstallationsResponse {
|
|
60
|
+
// Map of installation ID to badge status
|
|
61
61
|
map<string, GetGamesDrawerBadgeStatusResponse> statuses = 1;
|
|
62
62
|
}
|
|
@@ -8,6 +8,6 @@ option go_package = "github.snooguts.net/reddit/reddit-devplatform-monorepo/go-c
|
|
|
8
8
|
option java_package = "com.reddit.devvit.plugin.notifications";
|
|
9
9
|
|
|
10
10
|
service NotificationsInternal {
|
|
11
|
-
// Get the status of games drawer badges for
|
|
12
|
-
rpc
|
|
11
|
+
// Get the status of games drawer badges for installations specified by ID
|
|
12
|
+
rpc GetGamesDrawerBadgeStatusForInstallations(GetGamesDrawerBadgeStatusForInstallationsRequest) returns (GetGamesDrawerBadgeStatusForInstallationsResponse);
|
|
13
13
|
}
|
package/schema/snootobuf.lock
CHANGED
|
Binary file
|
|
Binary file
|
|
@@ -39,19 +39,19 @@ export interface GetGamesDrawerBadgeStatusResponse {
|
|
|
39
39
|
/** The fullname of a post (e.g., "t3_abc123") */
|
|
40
40
|
post?: string | undefined;
|
|
41
41
|
}
|
|
42
|
-
/** Request to get the games drawer badge status for a specific app by
|
|
43
|
-
export interface
|
|
44
|
-
/** The
|
|
45
|
-
|
|
42
|
+
/** Request to get the games drawer badge status for a specific app by installation ID */
|
|
43
|
+
export interface GetGamesDrawerBadgeStatusForInstallationsRequest {
|
|
44
|
+
/** The installation IDs to inspect */
|
|
45
|
+
installationIds: string[];
|
|
46
46
|
}
|
|
47
|
-
/** Response from getting the status of an active games drawer badge for an
|
|
48
|
-
export interface
|
|
49
|
-
/** Map of
|
|
47
|
+
/** Response from getting the status of an active games drawer badge for an installation */
|
|
48
|
+
export interface GetGamesDrawerBadgeStatusForInstallationsResponse {
|
|
49
|
+
/** Map of installation ID to badge status */
|
|
50
50
|
statuses: {
|
|
51
51
|
[key: string]: GetGamesDrawerBadgeStatusResponse;
|
|
52
52
|
};
|
|
53
53
|
}
|
|
54
|
-
export interface
|
|
54
|
+
export interface GetGamesDrawerBadgeStatusForInstallationsResponse_StatusesEntry {
|
|
55
55
|
key: string;
|
|
56
56
|
value?: GetGamesDrawerBadgeStatusResponse | undefined;
|
|
57
57
|
}
|
|
@@ -109,32 +109,32 @@ export declare const GetGamesDrawerBadgeStatusResponse: {
|
|
|
109
109
|
create(base?: DeepPartial<GetGamesDrawerBadgeStatusResponse>): GetGamesDrawerBadgeStatusResponse;
|
|
110
110
|
fromPartial(object: DeepPartial<GetGamesDrawerBadgeStatusResponse>): GetGamesDrawerBadgeStatusResponse;
|
|
111
111
|
};
|
|
112
|
-
export declare const
|
|
113
|
-
$type: "devvit.plugin.notifications.
|
|
114
|
-
encode(message:
|
|
115
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
116
|
-
fromJSON(object: any):
|
|
117
|
-
toJSON(message:
|
|
118
|
-
create(base?: DeepPartial<
|
|
119
|
-
fromPartial(object: DeepPartial<
|
|
112
|
+
export declare const GetGamesDrawerBadgeStatusForInstallationsRequest: {
|
|
113
|
+
$type: "devvit.plugin.notifications.GetGamesDrawerBadgeStatusForInstallationsRequest";
|
|
114
|
+
encode(message: GetGamesDrawerBadgeStatusForInstallationsRequest, writer?: _m0.Writer): _m0.Writer;
|
|
115
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GetGamesDrawerBadgeStatusForInstallationsRequest;
|
|
116
|
+
fromJSON(object: any): GetGamesDrawerBadgeStatusForInstallationsRequest;
|
|
117
|
+
toJSON(message: GetGamesDrawerBadgeStatusForInstallationsRequest): unknown;
|
|
118
|
+
create(base?: DeepPartial<GetGamesDrawerBadgeStatusForInstallationsRequest>): GetGamesDrawerBadgeStatusForInstallationsRequest;
|
|
119
|
+
fromPartial(object: DeepPartial<GetGamesDrawerBadgeStatusForInstallationsRequest>): GetGamesDrawerBadgeStatusForInstallationsRequest;
|
|
120
120
|
};
|
|
121
|
-
export declare const
|
|
122
|
-
$type: "devvit.plugin.notifications.
|
|
123
|
-
encode(message:
|
|
124
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
125
|
-
fromJSON(object: any):
|
|
126
|
-
toJSON(message:
|
|
127
|
-
create(base?: DeepPartial<
|
|
128
|
-
fromPartial(object: DeepPartial<
|
|
121
|
+
export declare const GetGamesDrawerBadgeStatusForInstallationsResponse: {
|
|
122
|
+
$type: "devvit.plugin.notifications.GetGamesDrawerBadgeStatusForInstallationsResponse";
|
|
123
|
+
encode(message: GetGamesDrawerBadgeStatusForInstallationsResponse, writer?: _m0.Writer): _m0.Writer;
|
|
124
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GetGamesDrawerBadgeStatusForInstallationsResponse;
|
|
125
|
+
fromJSON(object: any): GetGamesDrawerBadgeStatusForInstallationsResponse;
|
|
126
|
+
toJSON(message: GetGamesDrawerBadgeStatusForInstallationsResponse): unknown;
|
|
127
|
+
create(base?: DeepPartial<GetGamesDrawerBadgeStatusForInstallationsResponse>): GetGamesDrawerBadgeStatusForInstallationsResponse;
|
|
128
|
+
fromPartial(object: DeepPartial<GetGamesDrawerBadgeStatusForInstallationsResponse>): GetGamesDrawerBadgeStatusForInstallationsResponse;
|
|
129
129
|
};
|
|
130
|
-
export declare const
|
|
131
|
-
$type: "devvit.plugin.notifications.
|
|
132
|
-
encode(message:
|
|
133
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
134
|
-
fromJSON(object: any):
|
|
135
|
-
toJSON(message:
|
|
136
|
-
create(base?: DeepPartial<
|
|
137
|
-
fromPartial(object: DeepPartial<
|
|
130
|
+
export declare const GetGamesDrawerBadgeStatusForInstallationsResponse_StatusesEntry: {
|
|
131
|
+
$type: "devvit.plugin.notifications.GetGamesDrawerBadgeStatusForInstallationsResponse.StatusesEntry";
|
|
132
|
+
encode(message: GetGamesDrawerBadgeStatusForInstallationsResponse_StatusesEntry, writer?: _m0.Writer): _m0.Writer;
|
|
133
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GetGamesDrawerBadgeStatusForInstallationsResponse_StatusesEntry;
|
|
134
|
+
fromJSON(object: any): GetGamesDrawerBadgeStatusForInstallationsResponse_StatusesEntry;
|
|
135
|
+
toJSON(message: GetGamesDrawerBadgeStatusForInstallationsResponse_StatusesEntry): unknown;
|
|
136
|
+
create(base?: DeepPartial<GetGamesDrawerBadgeStatusForInstallationsResponse_StatusesEntry>): GetGamesDrawerBadgeStatusForInstallationsResponse_StatusesEntry;
|
|
137
|
+
fromPartial(object: DeepPartial<GetGamesDrawerBadgeStatusForInstallationsResponse_StatusesEntry>): GetGamesDrawerBadgeStatusForInstallationsResponse_StatusesEntry;
|
|
138
138
|
};
|
|
139
139
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
140
140
|
type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gamesdrawerbadge_msg.d.ts","sourceRoot":"","sources":["../../../../../src/types/devvit/plugin/notifications/gamesdrawerbadge_msg.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,GAAG,MAAM,uBAAuB,CAAC;AAIxC,2FAA2F;AAC3F,MAAM,WAAW,2BAA2B;IAC1C,iDAAiD;IACjD,IAAI,EAAE,MAAM,CAAC;IACb,uCAAuC;IACvC,SAAS,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;CAC9B;AAED,iDAAiD;AACjD,MAAM,WAAW,4BAA4B;IAC3C,0DAA0D;IAC1D,OAAO,EAAE,OAAO,CAAC;IACjB,wEAAwE;IACxE,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC9B;AAED,wDAAwD;AACxD,MAAM,WAAW,8BAA8B;CAC9C;AAED,0DAA0D;AAC1D,MAAM,WAAW,+BAA+B;IAC9C,yEAAyE;IACzE,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,yEAAyE;AACzE,MAAM,WAAW,gCAAgC;CAChD;AAED,kFAAkF;AAClF,MAAM,WAAW,iCAAiC;IAChD,6DAA6D;IAC7D,cAAc,EAAE,OAAO,CAAC;IACxB,mEAAmE;IACnE,SAAS,CAAC,EACN,IAAI,GACJ,SAAS,CAAC;IACd,iDAAiD;IACjD,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC3B;AAED,
|
|
1
|
+
{"version":3,"file":"gamesdrawerbadge_msg.d.ts","sourceRoot":"","sources":["../../../../../src/types/devvit/plugin/notifications/gamesdrawerbadge_msg.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,GAAG,MAAM,uBAAuB,CAAC;AAIxC,2FAA2F;AAC3F,MAAM,WAAW,2BAA2B;IAC1C,iDAAiD;IACjD,IAAI,EAAE,MAAM,CAAC;IACb,uCAAuC;IACvC,SAAS,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;CAC9B;AAED,iDAAiD;AACjD,MAAM,WAAW,4BAA4B;IAC3C,0DAA0D;IAC1D,OAAO,EAAE,OAAO,CAAC;IACjB,wEAAwE;IACxE,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC9B;AAED,wDAAwD;AACxD,MAAM,WAAW,8BAA8B;CAC9C;AAED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Q,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"}
|
|
@@ -356,13 +356,13 @@ export const GetGamesDrawerBadgeStatusResponse = {
|
|
|
356
356
|
},
|
|
357
357
|
};
|
|
358
358
|
messageTypeRegistry.set(GetGamesDrawerBadgeStatusResponse.$type, GetGamesDrawerBadgeStatusResponse);
|
|
359
|
-
function
|
|
360
|
-
return {
|
|
359
|
+
function createBaseGetGamesDrawerBadgeStatusForInstallationsRequest() {
|
|
360
|
+
return { installationIds: [] };
|
|
361
361
|
}
|
|
362
|
-
export const
|
|
363
|
-
$type: "devvit.plugin.notifications.
|
|
362
|
+
export const GetGamesDrawerBadgeStatusForInstallationsRequest = {
|
|
363
|
+
$type: "devvit.plugin.notifications.GetGamesDrawerBadgeStatusForInstallationsRequest",
|
|
364
364
|
encode(message, writer = _m0.Writer.create()) {
|
|
365
|
-
for (const v of message.
|
|
365
|
+
for (const v of message.installationIds) {
|
|
366
366
|
writer.uint32(10).string(v);
|
|
367
367
|
}
|
|
368
368
|
return writer;
|
|
@@ -370,7 +370,7 @@ export const GetGamesDrawerBadgeStatusForAppsRequest = {
|
|
|
370
370
|
decode(input, length) {
|
|
371
371
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
372
372
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
373
|
-
const message =
|
|
373
|
+
const message = createBaseGetGamesDrawerBadgeStatusForInstallationsRequest();
|
|
374
374
|
while (reader.pos < end) {
|
|
375
375
|
const tag = reader.uint32();
|
|
376
376
|
switch (tag >>> 3) {
|
|
@@ -378,7 +378,7 @@ export const GetGamesDrawerBadgeStatusForAppsRequest = {
|
|
|
378
378
|
if (tag !== 10) {
|
|
379
379
|
break;
|
|
380
380
|
}
|
|
381
|
-
message.
|
|
381
|
+
message.installationIds.push(reader.string());
|
|
382
382
|
continue;
|
|
383
383
|
}
|
|
384
384
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -390,41 +390,43 @@ export const GetGamesDrawerBadgeStatusForAppsRequest = {
|
|
|
390
390
|
},
|
|
391
391
|
fromJSON(object) {
|
|
392
392
|
return {
|
|
393
|
-
|
|
393
|
+
installationIds: globalThis.Array.isArray(object?.installationIds)
|
|
394
|
+
? object.installationIds.map((e) => globalThis.String(e))
|
|
395
|
+
: [],
|
|
394
396
|
};
|
|
395
397
|
},
|
|
396
398
|
toJSON(message) {
|
|
397
399
|
const obj = {};
|
|
398
|
-
if (message.
|
|
399
|
-
obj.
|
|
400
|
+
if (message.installationIds?.length) {
|
|
401
|
+
obj.installationIds = message.installationIds;
|
|
400
402
|
}
|
|
401
403
|
return obj;
|
|
402
404
|
},
|
|
403
405
|
create(base) {
|
|
404
|
-
return
|
|
406
|
+
return GetGamesDrawerBadgeStatusForInstallationsRequest.fromPartial(base ?? {});
|
|
405
407
|
},
|
|
406
408
|
fromPartial(object) {
|
|
407
|
-
const message =
|
|
408
|
-
message.
|
|
409
|
+
const message = createBaseGetGamesDrawerBadgeStatusForInstallationsRequest();
|
|
410
|
+
message.installationIds = object.installationIds?.map((e) => e) || [];
|
|
409
411
|
return message;
|
|
410
412
|
},
|
|
411
413
|
};
|
|
412
|
-
messageTypeRegistry.set(
|
|
413
|
-
function
|
|
414
|
+
messageTypeRegistry.set(GetGamesDrawerBadgeStatusForInstallationsRequest.$type, GetGamesDrawerBadgeStatusForInstallationsRequest);
|
|
415
|
+
function createBaseGetGamesDrawerBadgeStatusForInstallationsResponse() {
|
|
414
416
|
return { statuses: {} };
|
|
415
417
|
}
|
|
416
|
-
export const
|
|
417
|
-
$type: "devvit.plugin.notifications.
|
|
418
|
+
export const GetGamesDrawerBadgeStatusForInstallationsResponse = {
|
|
419
|
+
$type: "devvit.plugin.notifications.GetGamesDrawerBadgeStatusForInstallationsResponse",
|
|
418
420
|
encode(message, writer = _m0.Writer.create()) {
|
|
419
421
|
Object.entries(message.statuses).forEach(([key, value]) => {
|
|
420
|
-
|
|
422
|
+
GetGamesDrawerBadgeStatusForInstallationsResponse_StatusesEntry.encode({ key: key, value }, writer.uint32(10).fork()).ldelim();
|
|
421
423
|
});
|
|
422
424
|
return writer;
|
|
423
425
|
},
|
|
424
426
|
decode(input, length) {
|
|
425
427
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
426
428
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
427
|
-
const message =
|
|
429
|
+
const message = createBaseGetGamesDrawerBadgeStatusForInstallationsResponse();
|
|
428
430
|
while (reader.pos < end) {
|
|
429
431
|
const tag = reader.uint32();
|
|
430
432
|
switch (tag >>> 3) {
|
|
@@ -432,7 +434,7 @@ export const GetGamesDrawerBadgeStatusForAppsResponse = {
|
|
|
432
434
|
if (tag !== 10) {
|
|
433
435
|
break;
|
|
434
436
|
}
|
|
435
|
-
const entry1 =
|
|
437
|
+
const entry1 = GetGamesDrawerBadgeStatusForInstallationsResponse_StatusesEntry.decode(reader, reader.uint32());
|
|
436
438
|
if (entry1.value !== undefined) {
|
|
437
439
|
message.statuses[entry1.key] = entry1.value;
|
|
438
440
|
}
|
|
@@ -469,10 +471,10 @@ export const GetGamesDrawerBadgeStatusForAppsResponse = {
|
|
|
469
471
|
return obj;
|
|
470
472
|
},
|
|
471
473
|
create(base) {
|
|
472
|
-
return
|
|
474
|
+
return GetGamesDrawerBadgeStatusForInstallationsResponse.fromPartial(base ?? {});
|
|
473
475
|
},
|
|
474
476
|
fromPartial(object) {
|
|
475
|
-
const message =
|
|
477
|
+
const message = createBaseGetGamesDrawerBadgeStatusForInstallationsResponse();
|
|
476
478
|
message.statuses = Object.entries(object.statuses ?? {}).reduce((acc, [key, value]) => {
|
|
477
479
|
if (value !== undefined) {
|
|
478
480
|
acc[key] = GetGamesDrawerBadgeStatusResponse.fromPartial(value);
|
|
@@ -482,12 +484,12 @@ export const GetGamesDrawerBadgeStatusForAppsResponse = {
|
|
|
482
484
|
return message;
|
|
483
485
|
},
|
|
484
486
|
};
|
|
485
|
-
messageTypeRegistry.set(
|
|
486
|
-
function
|
|
487
|
+
messageTypeRegistry.set(GetGamesDrawerBadgeStatusForInstallationsResponse.$type, GetGamesDrawerBadgeStatusForInstallationsResponse);
|
|
488
|
+
function createBaseGetGamesDrawerBadgeStatusForInstallationsResponse_StatusesEntry() {
|
|
487
489
|
return { key: "", value: undefined };
|
|
488
490
|
}
|
|
489
|
-
export const
|
|
490
|
-
$type: "devvit.plugin.notifications.
|
|
491
|
+
export const GetGamesDrawerBadgeStatusForInstallationsResponse_StatusesEntry = {
|
|
492
|
+
$type: "devvit.plugin.notifications.GetGamesDrawerBadgeStatusForInstallationsResponse.StatusesEntry",
|
|
491
493
|
encode(message, writer = _m0.Writer.create()) {
|
|
492
494
|
if (message.key !== "") {
|
|
493
495
|
writer.uint32(10).string(message.key);
|
|
@@ -500,7 +502,7 @@ export const GetGamesDrawerBadgeStatusForAppsResponse_StatusesEntry = {
|
|
|
500
502
|
decode(input, length) {
|
|
501
503
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
502
504
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
503
|
-
const message =
|
|
505
|
+
const message = createBaseGetGamesDrawerBadgeStatusForInstallationsResponse_StatusesEntry();
|
|
504
506
|
while (reader.pos < end) {
|
|
505
507
|
const tag = reader.uint32();
|
|
506
508
|
switch (tag >>> 3) {
|
|
@@ -541,10 +543,10 @@ export const GetGamesDrawerBadgeStatusForAppsResponse_StatusesEntry = {
|
|
|
541
543
|
return obj;
|
|
542
544
|
},
|
|
543
545
|
create(base) {
|
|
544
|
-
return
|
|
546
|
+
return GetGamesDrawerBadgeStatusForInstallationsResponse_StatusesEntry.fromPartial(base ?? {});
|
|
545
547
|
},
|
|
546
548
|
fromPartial(object) {
|
|
547
|
-
const message =
|
|
549
|
+
const message = createBaseGetGamesDrawerBadgeStatusForInstallationsResponse_StatusesEntry();
|
|
548
550
|
message.key = object.key ?? "";
|
|
549
551
|
message.value = (object.value !== undefined && object.value !== null)
|
|
550
552
|
? GetGamesDrawerBadgeStatusResponse.fromPartial(object.value)
|
|
@@ -552,7 +554,7 @@ export const GetGamesDrawerBadgeStatusForAppsResponse_StatusesEntry = {
|
|
|
552
554
|
return message;
|
|
553
555
|
},
|
|
554
556
|
};
|
|
555
|
-
messageTypeRegistry.set(
|
|
557
|
+
messageTypeRegistry.set(GetGamesDrawerBadgeStatusForInstallationsResponse_StatusesEntry.$type, GetGamesDrawerBadgeStatusForInstallationsResponse_StatusesEntry);
|
|
556
558
|
function toTimestamp(date) {
|
|
557
559
|
const seconds = Math.trunc(date.getTime() / 1000);
|
|
558
560
|
const nanos = (date.getTime() % 1000) * 1000000;
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import _m0 from "protobufjs/minimal.js";
|
|
8
8
|
import { Metadata } from "../../../../lib/Types.js";
|
|
9
|
-
import {
|
|
9
|
+
import { GetGamesDrawerBadgeStatusForInstallationsRequest, GetGamesDrawerBadgeStatusForInstallationsResponse } from "./gamesdrawerbadge_msg.js";
|
|
10
10
|
export interface NotificationsInternal {
|
|
11
|
-
/** Get the status of games drawer badges for
|
|
12
|
-
|
|
11
|
+
/** Get the status of games drawer badges for installations specified by ID */
|
|
12
|
+
GetGamesDrawerBadgeStatusForInstallations(request: GetGamesDrawerBadgeStatusForInstallationsRequest, metadata?: Metadata): Promise<GetGamesDrawerBadgeStatusForInstallationsResponse>;
|
|
13
13
|
}
|
|
14
14
|
export declare const NotificationsInternalServiceName = "devvit.plugin.notifications.NotificationsInternal";
|
|
15
15
|
export declare class NotificationsInternalClientImpl implements NotificationsInternal {
|
|
@@ -18,36 +18,36 @@ export declare class NotificationsInternalClientImpl implements NotificationsInt
|
|
|
18
18
|
constructor(rpc: Rpc, opts?: {
|
|
19
19
|
service?: string;
|
|
20
20
|
});
|
|
21
|
-
|
|
21
|
+
GetGamesDrawerBadgeStatusForInstallations(request: GetGamesDrawerBadgeStatusForInstallationsRequest, metadata?: Metadata): Promise<GetGamesDrawerBadgeStatusForInstallationsResponse>;
|
|
22
22
|
}
|
|
23
23
|
export type NotificationsInternalDefinition = typeof NotificationsInternalDefinition;
|
|
24
24
|
export declare const NotificationsInternalDefinition: {
|
|
25
25
|
readonly name: "NotificationsInternal";
|
|
26
26
|
readonly fullName: "devvit.plugin.notifications.NotificationsInternal";
|
|
27
27
|
readonly methods: {
|
|
28
|
-
/** Get the status of games drawer badges for
|
|
29
|
-
readonly
|
|
30
|
-
readonly name: "
|
|
28
|
+
/** Get the status of games drawer badges for installations specified by ID */
|
|
29
|
+
readonly getGamesDrawerBadgeStatusForInstallations: {
|
|
30
|
+
readonly name: "GetGamesDrawerBadgeStatusForInstallations";
|
|
31
31
|
readonly requestType: {
|
|
32
|
-
$type: "devvit.plugin.notifications.
|
|
33
|
-
encode(message:
|
|
34
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
35
|
-
fromJSON(object: any):
|
|
36
|
-
toJSON(message:
|
|
32
|
+
$type: "devvit.plugin.notifications.GetGamesDrawerBadgeStatusForInstallationsRequest";
|
|
33
|
+
encode(message: GetGamesDrawerBadgeStatusForInstallationsRequest, writer?: _m0.Writer): _m0.Writer;
|
|
34
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GetGamesDrawerBadgeStatusForInstallationsRequest;
|
|
35
|
+
fromJSON(object: any): GetGamesDrawerBadgeStatusForInstallationsRequest;
|
|
36
|
+
toJSON(message: GetGamesDrawerBadgeStatusForInstallationsRequest): unknown;
|
|
37
37
|
create(base?: {
|
|
38
|
-
|
|
39
|
-
}):
|
|
38
|
+
installationIds?: string[];
|
|
39
|
+
}): GetGamesDrawerBadgeStatusForInstallationsRequest;
|
|
40
40
|
fromPartial(object: {
|
|
41
|
-
|
|
42
|
-
}):
|
|
41
|
+
installationIds?: string[];
|
|
42
|
+
}): GetGamesDrawerBadgeStatusForInstallationsRequest;
|
|
43
43
|
};
|
|
44
44
|
readonly requestStream: false;
|
|
45
45
|
readonly responseType: {
|
|
46
|
-
$type: "devvit.plugin.notifications.
|
|
47
|
-
encode(message:
|
|
48
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
49
|
-
fromJSON(object: any):
|
|
50
|
-
toJSON(message:
|
|
46
|
+
$type: "devvit.plugin.notifications.GetGamesDrawerBadgeStatusForInstallationsResponse";
|
|
47
|
+
encode(message: GetGamesDrawerBadgeStatusForInstallationsResponse, writer?: _m0.Writer): _m0.Writer;
|
|
48
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GetGamesDrawerBadgeStatusForInstallationsResponse;
|
|
49
|
+
fromJSON(object: any): GetGamesDrawerBadgeStatusForInstallationsResponse;
|
|
50
|
+
toJSON(message: GetGamesDrawerBadgeStatusForInstallationsResponse): unknown;
|
|
51
51
|
create(base?: {
|
|
52
52
|
statuses?: {
|
|
53
53
|
[x: string]: {
|
|
@@ -56,7 +56,7 @@ export declare const NotificationsInternalDefinition: {
|
|
|
56
56
|
post?: string | undefined | undefined;
|
|
57
57
|
} | undefined;
|
|
58
58
|
};
|
|
59
|
-
}):
|
|
59
|
+
}): GetGamesDrawerBadgeStatusForInstallationsResponse;
|
|
60
60
|
fromPartial(object: {
|
|
61
61
|
statuses?: {
|
|
62
62
|
[x: string]: {
|
|
@@ -65,7 +65,7 @@ export declare const NotificationsInternalDefinition: {
|
|
|
65
65
|
post?: string | undefined | undefined;
|
|
66
66
|
} | undefined;
|
|
67
67
|
};
|
|
68
|
-
}):
|
|
68
|
+
}): GetGamesDrawerBadgeStatusForInstallationsResponse;
|
|
69
69
|
};
|
|
70
70
|
readonly responseStream: false;
|
|
71
71
|
readonly options: {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notifications_internal_svc.d.ts","sourceRoot":"","sources":["../../../../../src/types/devvit/plugin/notifications/notifications_internal_svc.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,GAAG,MAAM,uBAAuB,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACpD,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"notifications_internal_svc.d.ts","sourceRoot":"","sources":["../../../../../src/types/devvit/plugin/notifications/notifications_internal_svc.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,GAAG,MAAM,uBAAuB,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACpD,OAAO,EACL,gDAAgD,EAChD,iDAAiD,EAClD,MAAM,2BAA2B,CAAC;AAEnC,MAAM,WAAW,qBAAqB;IACpC,8EAA8E;IAC9E,yCAAyC,CACvC,OAAO,EAAE,gDAAgD,EACzD,QAAQ,CAAC,EAAE,QAAQ,GAClB,OAAO,CAAC,iDAAiD,CAAC,CAAC;CAC/D;AAED,eAAO,MAAM,gCAAgC,sDAAsD,CAAC;AACpG,qBAAa,+BAAgC,YAAW,qBAAqB;IAC3E,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAM;IAC1B,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAS;gBACrB,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE;IAKjD,yCAAyC,CACvC,OAAO,EAAE,gDAAgD,EACzD,QAAQ,CAAC,EAAE,QAAQ,GAClB,OAAO,CAAC,iDAAiD,CAAC;CAK9D;AAED,MAAM,MAAM,+BAA+B,GAAG,OAAO,+BAA+B,CAAC;AACrF,eAAO,MAAM,+BAA+B;;;;QAIxC,8EAA8E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAUxE,CAAC;AAEX,UAAU,GAAG;IACX,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;CACtG"}
|
|
@@ -6,30 +6,30 @@
|
|
|
6
6
|
*/
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
import _m0 from "protobufjs/minimal.js";
|
|
9
|
-
import {
|
|
9
|
+
import { GetGamesDrawerBadgeStatusForInstallationsRequest, GetGamesDrawerBadgeStatusForInstallationsResponse, } from "./gamesdrawerbadge_msg.js";
|
|
10
10
|
export const NotificationsInternalServiceName = "devvit.plugin.notifications.NotificationsInternal";
|
|
11
11
|
export class NotificationsInternalClientImpl {
|
|
12
12
|
constructor(rpc, opts) {
|
|
13
13
|
this.service = opts?.service || NotificationsInternalServiceName;
|
|
14
14
|
this.rpc = rpc;
|
|
15
|
-
this.
|
|
15
|
+
this.GetGamesDrawerBadgeStatusForInstallations = this.GetGamesDrawerBadgeStatusForInstallations.bind(this);
|
|
16
16
|
}
|
|
17
|
-
|
|
18
|
-
const data =
|
|
19
|
-
const promise = this.rpc.request(this.service, "
|
|
20
|
-
return promise.then((data) =>
|
|
17
|
+
GetGamesDrawerBadgeStatusForInstallations(request, metadata) {
|
|
18
|
+
const data = GetGamesDrawerBadgeStatusForInstallationsRequest.encode(request).finish();
|
|
19
|
+
const promise = this.rpc.request(this.service, "GetGamesDrawerBadgeStatusForInstallations", data, metadata);
|
|
20
|
+
return promise.then((data) => GetGamesDrawerBadgeStatusForInstallationsResponse.decode(_m0.Reader.create(data)));
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
export const NotificationsInternalDefinition = {
|
|
24
24
|
name: "NotificationsInternal",
|
|
25
25
|
fullName: "devvit.plugin.notifications.NotificationsInternal",
|
|
26
26
|
methods: {
|
|
27
|
-
/** Get the status of games drawer badges for
|
|
28
|
-
|
|
29
|
-
name: "
|
|
30
|
-
requestType:
|
|
27
|
+
/** Get the status of games drawer badges for installations specified by ID */
|
|
28
|
+
getGamesDrawerBadgeStatusForInstallations: {
|
|
29
|
+
name: "GetGamesDrawerBadgeStatusForInstallations",
|
|
30
|
+
requestType: GetGamesDrawerBadgeStatusForInstallationsRequest,
|
|
31
31
|
requestStream: false,
|
|
32
|
-
responseType:
|
|
32
|
+
responseType: GetGamesDrawerBadgeStatusForInstallationsResponse,
|
|
33
33
|
responseStream: false,
|
|
34
34
|
options: {},
|
|
35
35
|
},
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { GetGamesDrawerBadgeStatusForInstallationsRequest, GetGamesDrawerBadgeStatusForInstallationsResponse } from './gamesdrawerbadge_msg.js';
|
|
2
2
|
interface Rpc {
|
|
3
3
|
request(service: string, method: string, contentType: 'application/json' | 'application/protobuf', data: object | Uint8Array): Promise<object | Uint8Array>;
|
|
4
4
|
}
|
|
5
5
|
export interface NotificationsInternalClient {
|
|
6
|
-
|
|
6
|
+
GetGamesDrawerBadgeStatusForInstallations(request: GetGamesDrawerBadgeStatusForInstallationsRequest): Promise<GetGamesDrawerBadgeStatusForInstallationsResponse>;
|
|
7
7
|
}
|
|
8
8
|
export declare class NotificationsInternalClientJSON implements NotificationsInternalClient {
|
|
9
9
|
private readonly rpc;
|
|
10
10
|
constructor(rpc: Rpc);
|
|
11
|
-
|
|
11
|
+
GetGamesDrawerBadgeStatusForInstallations(request: GetGamesDrawerBadgeStatusForInstallationsRequest): Promise<GetGamesDrawerBadgeStatusForInstallationsResponse>;
|
|
12
12
|
}
|
|
13
13
|
export declare class NotificationsInternalClientProtobuf implements NotificationsInternalClient {
|
|
14
14
|
private readonly rpc;
|
|
15
15
|
constructor(rpc: Rpc);
|
|
16
|
-
|
|
16
|
+
GetGamesDrawerBadgeStatusForInstallations(request: GetGamesDrawerBadgeStatusForInstallationsRequest): Promise<GetGamesDrawerBadgeStatusForInstallationsResponse>;
|
|
17
17
|
}
|
|
18
18
|
export {};
|
|
19
19
|
//# sourceMappingURL=notifications_internal_svc.twirp-client.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notifications_internal_svc.twirp-client.d.ts","sourceRoot":"","sources":["../../../../../src/types/devvit/plugin/notifications/notifications_internal_svc.twirp-client.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"notifications_internal_svc.twirp-client.d.ts","sourceRoot":"","sources":["../../../../../src/types/devvit/plugin/notifications/notifications_internal_svc.twirp-client.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gDAAgD,EAChD,iDAAiD,EAClD,MAAM,2BAA2B,CAAC;AAMnC,UAAU,GAAG;IACX,OAAO,CACL,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,kBAAkB,GAAG,sBAAsB,EACxD,IAAI,EAAE,MAAM,GAAG,UAAU,GACxB,OAAO,CAAC,MAAM,GAAG,UAAU,CAAC,CAAC;CACjC;AAED,MAAM,WAAW,2BAA2B;IAC1C,yCAAyC,CACvC,OAAO,EAAE,gDAAgD,GACxD,OAAO,CAAC,iDAAiD,CAAC,CAAC;CAC/D;AAED,qBAAa,+BACX,YAAW,2BAA2B;IAEtC,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAM;gBACd,GAAG,EAAE,GAAG;IAIpB,yCAAyC,CACvC,OAAO,EAAE,gDAAgD,GACxD,OAAO,CAAC,iDAAiD,CAAC;CAa9D;AAED,qBAAa,mCACX,YAAW,2BAA2B;IAEtC,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAM;gBACd,GAAG,EAAE,GAAG;IAIpB,yCAAyC,CACvC,OAAO,EAAE,gDAAgD,GACxD,OAAO,CAAC,iDAAiD,CAAC;CAe9D"}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { GetGamesDrawerBadgeStatusForInstallationsRequest, GetGamesDrawerBadgeStatusForInstallationsResponse, } from './gamesdrawerbadge_msg.js';
|
|
2
2
|
export class NotificationsInternalClientJSON {
|
|
3
3
|
constructor(rpc) {
|
|
4
4
|
this.rpc = rpc;
|
|
5
|
-
this.
|
|
5
|
+
this.GetGamesDrawerBadgeStatusForInstallations.bind(this);
|
|
6
6
|
}
|
|
7
|
-
|
|
8
|
-
const data =
|
|
9
|
-
const promise = this.rpc.request('devvit.plugin.notifications.NotificationsInternal', '
|
|
10
|
-
return promise.then((data) =>
|
|
7
|
+
GetGamesDrawerBadgeStatusForInstallations(request) {
|
|
8
|
+
const data = GetGamesDrawerBadgeStatusForInstallationsRequest.toJSON(request);
|
|
9
|
+
const promise = this.rpc.request('devvit.plugin.notifications.NotificationsInternal', 'GetGamesDrawerBadgeStatusForInstallations', 'application/json', data);
|
|
10
|
+
return promise.then((data) => GetGamesDrawerBadgeStatusForInstallationsResponse.fromJSON(data));
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
export class NotificationsInternalClientProtobuf {
|
|
14
14
|
constructor(rpc) {
|
|
15
15
|
this.rpc = rpc;
|
|
16
|
-
this.
|
|
16
|
+
this.GetGamesDrawerBadgeStatusForInstallations.bind(this);
|
|
17
17
|
}
|
|
18
|
-
|
|
19
|
-
const data =
|
|
20
|
-
const promise = this.rpc.request('devvit.plugin.notifications.NotificationsInternal', '
|
|
21
|
-
return promise.then((data) =>
|
|
18
|
+
GetGamesDrawerBadgeStatusForInstallations(request) {
|
|
19
|
+
const data = GetGamesDrawerBadgeStatusForInstallationsRequest.encode(request).finish();
|
|
20
|
+
const promise = this.rpc.request('devvit.plugin.notifications.NotificationsInternal', 'GetGamesDrawerBadgeStatusForInstallations', 'application/protobuf', data);
|
|
21
|
+
return promise.then((data) => GetGamesDrawerBadgeStatusForInstallationsResponse.decode(data));
|
|
22
22
|
}
|
|
23
23
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { TwirpContext, TwirpServer } from 'twirp-ts';
|
|
2
|
-
import {
|
|
2
|
+
import { GetGamesDrawerBadgeStatusForInstallationsRequest, GetGamesDrawerBadgeStatusForInstallationsResponse } from './gamesdrawerbadge_msg.js';
|
|
3
3
|
export interface NotificationsInternalTwirp<T extends TwirpContext = TwirpContext> {
|
|
4
|
-
|
|
4
|
+
GetGamesDrawerBadgeStatusForInstallations(ctx: T, request: GetGamesDrawerBadgeStatusForInstallationsRequest): Promise<GetGamesDrawerBadgeStatusForInstallationsResponse>;
|
|
5
5
|
}
|
|
6
6
|
export declare enum NotificationsInternalMethod {
|
|
7
|
-
|
|
7
|
+
GetGamesDrawerBadgeStatusForInstallations = "GetGamesDrawerBadgeStatusForInstallations"
|
|
8
8
|
}
|
|
9
9
|
export declare const NotificationsInternalMethodList: NotificationsInternalMethod[];
|
|
10
10
|
export declare function createNotificationsInternalServer<T extends TwirpContext = TwirpContext>(service: NotificationsInternalTwirp<T>): TwirpServer<NotificationsInternalTwirp<TwirpContext<import("http").IncomingMessage, import("http").ServerResponse<import("http").IncomingMessage>>>, T>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notifications_internal_svc.twirp.d.ts","sourceRoot":"","sources":["../../../../../src/types/devvit/plugin/notifications/notifications_internal_svc.twirp.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,WAAW,EAOZ,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"notifications_internal_svc.twirp.d.ts","sourceRoot":"","sources":["../../../../../src/types/devvit/plugin/notifications/notifications_internal_svc.twirp.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,WAAW,EAOZ,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,gDAAgD,EAChD,iDAAiD,EAClD,MAAM,2BAA2B,CAAC;AAMnC,MAAM,WAAW,0BAA0B,CACzC,CAAC,SAAS,YAAY,GAAG,YAAY;IAErC,yCAAyC,CACvC,GAAG,EAAE,CAAC,EACN,OAAO,EAAE,gDAAgD,GACxD,OAAO,CAAC,iDAAiD,CAAC,CAAC;CAC/D;AAED,oBAAY,2BAA2B;IACrC,yCAAyC,8CAA8C;CACxF;AAED,eAAO,MAAM,+BAA+B,+BAE3C,CAAC;AAEF,wBAAgB,iCAAiC,CAC/C,CAAC,SAAS,YAAY,GAAG,YAAY,EACrC,OAAO,EAAE,0BAA0B,CAAC,CAAC,CAAC,2JAQvC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { TwirpServer, TwirpError, TwirpErrorCode, TwirpContentType, chainInterceptors, } from 'twirp-ts';
|
|
2
|
-
import {
|
|
2
|
+
import { GetGamesDrawerBadgeStatusForInstallationsRequest, GetGamesDrawerBadgeStatusForInstallationsResponse, } from './gamesdrawerbadge_msg.js';
|
|
3
3
|
export var NotificationsInternalMethod;
|
|
4
4
|
(function (NotificationsInternalMethod) {
|
|
5
|
-
NotificationsInternalMethod["
|
|
5
|
+
NotificationsInternalMethod["GetGamesDrawerBadgeStatusForInstallations"] = "GetGamesDrawerBadgeStatusForInstallations";
|
|
6
6
|
})(NotificationsInternalMethod || (NotificationsInternalMethod = {}));
|
|
7
7
|
export const NotificationsInternalMethodList = [
|
|
8
|
-
NotificationsInternalMethod.
|
|
8
|
+
NotificationsInternalMethod.GetGamesDrawerBadgeStatusForInstallations,
|
|
9
9
|
];
|
|
10
10
|
export function createNotificationsInternalServer(service) {
|
|
11
11
|
return new TwirpServer({
|
|
@@ -18,11 +18,14 @@ export function createNotificationsInternalServer(service) {
|
|
|
18
18
|
}
|
|
19
19
|
function matchNotificationsInternalRoute(method, events) {
|
|
20
20
|
switch (method) {
|
|
21
|
-
case '
|
|
21
|
+
case 'GetGamesDrawerBadgeStatusForInstallations':
|
|
22
22
|
return async (ctx, service, data, interceptors) => {
|
|
23
|
-
ctx = {
|
|
23
|
+
ctx = {
|
|
24
|
+
...ctx,
|
|
25
|
+
methodName: 'GetGamesDrawerBadgeStatusForInstallations',
|
|
26
|
+
};
|
|
24
27
|
await events.onMatch(ctx);
|
|
25
|
-
return
|
|
28
|
+
return handleNotificationsInternalGetGamesDrawerBadgeStatusForInstallationsRequest(ctx, service, data, interceptors);
|
|
26
29
|
};
|
|
27
30
|
default:
|
|
28
31
|
events.onNotFound();
|
|
@@ -30,23 +33,23 @@ function matchNotificationsInternalRoute(method, events) {
|
|
|
30
33
|
throw new TwirpError(TwirpErrorCode.BadRoute, msg);
|
|
31
34
|
}
|
|
32
35
|
}
|
|
33
|
-
function
|
|
36
|
+
function handleNotificationsInternalGetGamesDrawerBadgeStatusForInstallationsRequest(ctx, service, data, interceptors) {
|
|
34
37
|
switch (ctx.contentType) {
|
|
35
38
|
case TwirpContentType.JSON:
|
|
36
|
-
return
|
|
39
|
+
return handleNotificationsInternalGetGamesDrawerBadgeStatusForInstallationsJSON(ctx, service, data, interceptors);
|
|
37
40
|
case TwirpContentType.Protobuf:
|
|
38
|
-
return
|
|
41
|
+
return handleNotificationsInternalGetGamesDrawerBadgeStatusForInstallationsProtobuf(ctx, service, data, interceptors);
|
|
39
42
|
default:
|
|
40
43
|
const msg = 'unexpected Content-Type';
|
|
41
44
|
throw new TwirpError(TwirpErrorCode.BadRoute, msg);
|
|
42
45
|
}
|
|
43
46
|
}
|
|
44
|
-
async function
|
|
47
|
+
async function handleNotificationsInternalGetGamesDrawerBadgeStatusForInstallationsJSON(ctx, service, data, interceptors) {
|
|
45
48
|
let request;
|
|
46
49
|
let response;
|
|
47
50
|
try {
|
|
48
51
|
const body = JSON.parse(data.toString() || '{}');
|
|
49
|
-
request =
|
|
52
|
+
request = GetGamesDrawerBadgeStatusForInstallationsRequest.fromJSON(body);
|
|
50
53
|
}
|
|
51
54
|
catch (e) {
|
|
52
55
|
if (e instanceof Error) {
|
|
@@ -57,19 +60,19 @@ async function handleNotificationsInternalGetGamesDrawerBadgeStatusForAppsJSON(c
|
|
|
57
60
|
if (interceptors && interceptors.length > 0) {
|
|
58
61
|
const interceptor = chainInterceptors(...interceptors);
|
|
59
62
|
response = await interceptor(ctx, request, (ctx, inputReq) => {
|
|
60
|
-
return service.
|
|
63
|
+
return service.GetGamesDrawerBadgeStatusForInstallations(ctx, inputReq);
|
|
61
64
|
});
|
|
62
65
|
}
|
|
63
66
|
else {
|
|
64
|
-
response = await service.
|
|
67
|
+
response = await service.GetGamesDrawerBadgeStatusForInstallations(ctx, request);
|
|
65
68
|
}
|
|
66
|
-
return JSON.stringify(
|
|
69
|
+
return JSON.stringify(GetGamesDrawerBadgeStatusForInstallationsResponse.toJSON(response));
|
|
67
70
|
}
|
|
68
|
-
async function
|
|
71
|
+
async function handleNotificationsInternalGetGamesDrawerBadgeStatusForInstallationsProtobuf(ctx, service, data, interceptors) {
|
|
69
72
|
let request;
|
|
70
73
|
let response;
|
|
71
74
|
try {
|
|
72
|
-
request =
|
|
75
|
+
request = GetGamesDrawerBadgeStatusForInstallationsRequest.decode(data);
|
|
73
76
|
}
|
|
74
77
|
catch (e) {
|
|
75
78
|
if (e instanceof Error) {
|
|
@@ -80,11 +83,11 @@ async function handleNotificationsInternalGetGamesDrawerBadgeStatusForAppsProtob
|
|
|
80
83
|
if (interceptors && interceptors.length > 0) {
|
|
81
84
|
const interceptor = chainInterceptors(...interceptors);
|
|
82
85
|
response = await interceptor(ctx, request, (ctx, inputReq) => {
|
|
83
|
-
return service.
|
|
86
|
+
return service.GetGamesDrawerBadgeStatusForInstallations(ctx, inputReq);
|
|
84
87
|
});
|
|
85
88
|
}
|
|
86
89
|
else {
|
|
87
|
-
response = await service.
|
|
90
|
+
response = await service.GetGamesDrawerBadgeStatusForInstallations(ctx, request);
|
|
88
91
|
}
|
|
89
|
-
return Buffer.from(
|
|
92
|
+
return Buffer.from(GetGamesDrawerBadgeStatusForInstallationsResponse.encode(response).finish());
|
|
90
93
|
}
|