@devvit/protos 0.11.1-next-2024-10-18-112fd9460.0 → 0.11.1-next-2024-10-18-af9e73134.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/package.json +4 -4
- package/schema/devvit/gql/subreddit_manifest.proto +89 -0
- package/schema/devvit/gql/subreddit_metadata.proto +11 -0
- package/schema/snootobuf.devenv.lock +1720 -63
- package/schema/snootobuf.lock +1720 -63
- package/schema/snootobuf.redditapi.lock +1719 -63
- package/schema/snootobuf.ts.lock +1720 -63
- package/types/devvit/gql/subreddit_manifest.d.ts +148 -0
- package/types/devvit/gql/subreddit_manifest.d.ts.map +1 -0
- package/types/devvit/gql/subreddit_manifest.js +702 -0
- package/types/devvit/gql/subreddit_metadata.d.ts +3 -0
- package/types/devvit/gql/subreddit_metadata.d.ts.map +1 -1
@@ -0,0 +1,148 @@
|
|
1
|
+
/**
|
2
|
+
* #subreddit_manifest.ts
|
3
|
+
*
|
4
|
+
* @packageDocumentation
|
5
|
+
*/
|
6
|
+
import _m0 from "protobufjs/minimal.js";
|
7
|
+
export declare enum DevvitContextType {
|
8
|
+
POST = 0,
|
9
|
+
COMMENT = 1,
|
10
|
+
SUBREDDIT = 2,
|
11
|
+
UNRECOGNIZED = -1
|
12
|
+
}
|
13
|
+
export declare function devvitContextTypeFromJSON(object: any): DevvitContextType;
|
14
|
+
export declare function devvitContextTypeToJSON(object: DevvitContextType): number;
|
15
|
+
export declare enum DevvitUserType {
|
16
|
+
MODERATOR = 0,
|
17
|
+
MEMBER = 1,
|
18
|
+
LOGGED_OUT = 2,
|
19
|
+
UNRECOGNIZED = -1
|
20
|
+
}
|
21
|
+
export declare function devvitUserTypeFromJSON(object: any): DevvitUserType;
|
22
|
+
export declare function devvitUserTypeToJSON(object: DevvitUserType): number;
|
23
|
+
export declare enum DevvitAppVisibility {
|
24
|
+
PUBLIC = 0,
|
25
|
+
PRIVATE = 1,
|
26
|
+
UNLISTED = 2,
|
27
|
+
UNRECOGNIZED = -1
|
28
|
+
}
|
29
|
+
export declare function devvitAppVisibilityFromJSON(object: any): DevvitAppVisibility;
|
30
|
+
export declare function devvitAppVisibilityToJSON(object: DevvitAppVisibility): number;
|
31
|
+
/** Type returned by GraphQL when requesting a Subreddit with the `devvit` field */
|
32
|
+
export interface DevvitSubredditManifest {
|
33
|
+
/** List of all context actions available in the Subreddit */
|
34
|
+
contextActions: DevvitContextActions[];
|
35
|
+
/** List of all app installations in the Subreddit */
|
36
|
+
installations: DevvitInstallation[];
|
37
|
+
}
|
38
|
+
export interface DevvitContextActions {
|
39
|
+
actions: DevvitContextAction[];
|
40
|
+
/** Installation hostname these context actions correspond to, e.g. '7c65897c-d3d1-4070-9db3-25402e093d37.sf-local-app.main.devvit-gateway.reddit.com' */
|
41
|
+
hostname: string;
|
42
|
+
}
|
43
|
+
export interface DevvitContextAction {
|
44
|
+
/** Which contexts this action should be displayed in */
|
45
|
+
contextTypes: DevvitContextType[];
|
46
|
+
/** Short, user-facing secondary text to describe what this action is going to do */
|
47
|
+
description: string;
|
48
|
+
id: string;
|
49
|
+
/** Whether this action should be displayed for only app-created posts */
|
50
|
+
isOnlyForAppCreatedPosts: boolean;
|
51
|
+
/** User-visible name for the action */
|
52
|
+
name: string;
|
53
|
+
/** What kind of user can see this action */
|
54
|
+
userTypes: DevvitUserType[];
|
55
|
+
}
|
56
|
+
export interface DevvitInstallation {
|
57
|
+
/** Application config */
|
58
|
+
app?: DevvitApp | undefined;
|
59
|
+
/** Hostname to invoke this application at, e.g. '7c65897c-d3d1-4070-9db3-25402e093d37.sf-local-app.main.devvit-gateway.reddit.com' */
|
60
|
+
hostname: string;
|
61
|
+
/** Installation unique identifier as a UUID */
|
62
|
+
id: string;
|
63
|
+
/** Version of @devvit/public-api this app was built against, e.g. '0.10.24' or '0.11.0-next-2024-08-28-c7054fdb3.0' */
|
64
|
+
publicApiVersion: string;
|
65
|
+
}
|
66
|
+
export interface DevvitApp {
|
67
|
+
/** App unique identifier as a UUID */
|
68
|
+
id: string;
|
69
|
+
/** Human readable name for the app, e.g. 'My Devvit App' */
|
70
|
+
name: string;
|
71
|
+
/** Redditor who created this app. */
|
72
|
+
owner?: Redditor | undefined;
|
73
|
+
/** App slug, e.g. 'my-devvit-app' */
|
74
|
+
slug: string;
|
75
|
+
/** Developer-provided app version, e.g. '1.0.0' */
|
76
|
+
version: string;
|
77
|
+
/** Visibility of the app */
|
78
|
+
visibility: DevvitAppVisibility;
|
79
|
+
}
|
80
|
+
/**
|
81
|
+
* Reddit user type from GraphQL. This has more fields in GraphQL, but
|
82
|
+
* this represents the ones we're populating from the GQL/Devvit integration.
|
83
|
+
*/
|
84
|
+
export interface Redditor {
|
85
|
+
/** t2_* userid */
|
86
|
+
id: string;
|
87
|
+
displayName: string;
|
88
|
+
}
|
89
|
+
export declare const DevvitSubredditManifest: {
|
90
|
+
$type: "devvit.gql.DevvitSubredditManifest";
|
91
|
+
encode(message: DevvitSubredditManifest, writer?: _m0.Writer): _m0.Writer;
|
92
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): DevvitSubredditManifest;
|
93
|
+
fromJSON(object: any): DevvitSubredditManifest;
|
94
|
+
toJSON(message: DevvitSubredditManifest): unknown;
|
95
|
+
create(base?: DeepPartial<DevvitSubredditManifest>): DevvitSubredditManifest;
|
96
|
+
fromPartial(object: DeepPartial<DevvitSubredditManifest>): DevvitSubredditManifest;
|
97
|
+
};
|
98
|
+
export declare const DevvitContextActions: {
|
99
|
+
$type: "devvit.gql.DevvitContextActions";
|
100
|
+
encode(message: DevvitContextActions, writer?: _m0.Writer): _m0.Writer;
|
101
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): DevvitContextActions;
|
102
|
+
fromJSON(object: any): DevvitContextActions;
|
103
|
+
toJSON(message: DevvitContextActions): unknown;
|
104
|
+
create(base?: DeepPartial<DevvitContextActions>): DevvitContextActions;
|
105
|
+
fromPartial(object: DeepPartial<DevvitContextActions>): DevvitContextActions;
|
106
|
+
};
|
107
|
+
export declare const DevvitContextAction: {
|
108
|
+
$type: "devvit.gql.DevvitContextAction";
|
109
|
+
encode(message: DevvitContextAction, writer?: _m0.Writer): _m0.Writer;
|
110
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): DevvitContextAction;
|
111
|
+
fromJSON(object: any): DevvitContextAction;
|
112
|
+
toJSON(message: DevvitContextAction): unknown;
|
113
|
+
create(base?: DeepPartial<DevvitContextAction>): DevvitContextAction;
|
114
|
+
fromPartial(object: DeepPartial<DevvitContextAction>): DevvitContextAction;
|
115
|
+
};
|
116
|
+
export declare const DevvitInstallation: {
|
117
|
+
$type: "devvit.gql.DevvitInstallation";
|
118
|
+
encode(message: DevvitInstallation, writer?: _m0.Writer): _m0.Writer;
|
119
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): DevvitInstallation;
|
120
|
+
fromJSON(object: any): DevvitInstallation;
|
121
|
+
toJSON(message: DevvitInstallation): unknown;
|
122
|
+
create(base?: DeepPartial<DevvitInstallation>): DevvitInstallation;
|
123
|
+
fromPartial(object: DeepPartial<DevvitInstallation>): DevvitInstallation;
|
124
|
+
};
|
125
|
+
export declare const DevvitApp: {
|
126
|
+
$type: "devvit.gql.DevvitApp";
|
127
|
+
encode(message: DevvitApp, writer?: _m0.Writer): _m0.Writer;
|
128
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): DevvitApp;
|
129
|
+
fromJSON(object: any): DevvitApp;
|
130
|
+
toJSON(message: DevvitApp): unknown;
|
131
|
+
create(base?: DeepPartial<DevvitApp>): DevvitApp;
|
132
|
+
fromPartial(object: DeepPartial<DevvitApp>): DevvitApp;
|
133
|
+
};
|
134
|
+
export declare const Redditor: {
|
135
|
+
$type: "devvit.gql.Redditor";
|
136
|
+
encode(message: Redditor, writer?: _m0.Writer): _m0.Writer;
|
137
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Redditor;
|
138
|
+
fromJSON(object: any): Redditor;
|
139
|
+
toJSON(message: Redditor): unknown;
|
140
|
+
create(base?: DeepPartial<Redditor>): Redditor;
|
141
|
+
fromPartial(object: DeepPartial<Redditor>): Redditor;
|
142
|
+
};
|
143
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
144
|
+
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 {} ? {
|
145
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
146
|
+
} : Partial<T>;
|
147
|
+
export {};
|
148
|
+
//# sourceMappingURL=subreddit_manifest.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"subreddit_manifest.d.ts","sourceRoot":"","sources":["../../../../src/types/devvit/gql/subreddit_manifest.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,GAAG,MAAM,uBAAuB,CAAC;AAGxC,oBAAY,iBAAiB;IAC3B,IAAI,IAAI;IACR,OAAO,IAAI;IACX,SAAS,IAAI;IACb,YAAY,KAAK;CAClB;AAED,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,GAAG,GAAG,iBAAiB,CAgBxE;AAED,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,iBAAiB,GAAG,MAAM,CAYzE;AAED,oBAAY,cAAc;IACxB,SAAS,IAAI;IACb,MAAM,IAAI;IACV,UAAU,IAAI;IACd,YAAY,KAAK;CAClB;AAED,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,GAAG,GAAG,cAAc,CAgBlE;AAED,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,cAAc,GAAG,MAAM,CAYnE;AAED,oBAAY,mBAAmB;IAC7B,MAAM,IAAI;IACV,OAAO,IAAI;IACX,QAAQ,IAAI;IACZ,YAAY,KAAK;CAClB;AAED,wBAAgB,2BAA2B,CAAC,MAAM,EAAE,GAAG,GAAG,mBAAmB,CAgB5E;AAED,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,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