@devvit/protos 0.10.20-next-2024-05-06-a9757fbcc.0 → 0.10.20-next-2024-05-06-1d2d84ceb.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,22 +0,0 @@
1
- syntax = "proto3";
2
-
3
- package devvit.actor.gl;
4
-
5
- import "google/protobuf/empty.proto";
6
-
7
- option go_package = "github.snooguts.net/reddit/reddit-devplatform-monorepo/go-common/generated/protos/types/devvit/actor/gl";
8
- option java_outer_classname = "_GLClient";
9
- option java_package = "com.reddit.devvit.actor.gl";
10
-
11
- message ConfigMessage {
12
- int32 width = 1;
13
- int32 height = 2;
14
- }
15
- message TickMessage {}
16
- message InputMessage {}
17
-
18
- service GLClient {
19
- rpc OnConfig(ConfigMessage) returns (google.protobuf.Empty);
20
- rpc OnFrameTick(TickMessage) returns (google.protobuf.Empty);
21
- rpc OnInput(InputMessage) returns (google.protobuf.Empty);
22
- }
@@ -1,36 +0,0 @@
1
- syntax = "proto3";
2
-
3
- package devvit.plugin.gl;
4
-
5
- import "devvit/plugin/gl/methods.proto";
6
- import "devvit/plugin/gl/methodtype.proto";
7
- import "google/protobuf/empty.proto";
8
- import "google/protobuf/struct.proto";
9
-
10
- option go_package = "github.snooguts.net/reddit/reddit-devplatform-monorepo/go-common/generated/protos/types/devvit/plugin/gl";
11
- option java_outer_classname = "_GLRenderer";
12
- option java_package = "com.reddit.devvit.plugin.gl";
13
-
14
- message CommandArgument {
15
- oneof value {
16
- bool null = 1;
17
- google.protobuf.Value scalar = 2;
18
- bytes blob = 3;
19
- uint64 reference_id = 4;
20
- }
21
- }
22
-
23
- message GLCommand {
24
- GLMethod method = 1;
25
- GLMethodType type = 2;
26
- repeated CommandArgument args = 3;
27
- uint64 reference_id = 4;
28
- }
29
-
30
- message ExecuteMessage {
31
- repeated GLCommand commands = 1;
32
- }
33
-
34
- service GLRenderer {
35
- rpc Execute(ExecuteMessage) returns (google.protobuf.Empty);
36
- }
@@ -1,129 +0,0 @@
1
- //
2
- // GENERATED FILE - DO NOT EDIT
3
- // See generateGLProxy.cjs.
4
- //
5
-
6
- syntax = "proto3";
7
-
8
- package devvit.plugin.gl;
9
-
10
- option go_package = "github.snooguts.net/reddit/reddit-devplatform-monorepo/go-common/generated/protos/types/devvit/plugin/gl";
11
- option java_package = "com.reddit.devvit.plugin.gl";
12
-
13
- enum GLMethod {
14
- activeTexture = 0;
15
- attachShader = 1;
16
- bindAttribLocation = 2;
17
- bindBuffer = 3;
18
- bindFramebuffer = 4;
19
- bindRenderbuffer = 5;
20
- bindTexture = 6;
21
- blendColor = 7;
22
- blendEquation = 8;
23
- blendEquationSeparate = 9;
24
- blendFunc = 10;
25
- blendFuncSeparate = 11;
26
- bufferData = 12;
27
- bufferSubData = 13;
28
- checkFramebufferStatus = 14;
29
- clear = 15;
30
- clearColor = 16;
31
- clearDepth = 17;
32
- clearStencil = 18;
33
- colorMask = 19;
34
- compileShader = 20;
35
- copyTexImage2D = 21;
36
- copyTexSubImage2D = 22;
37
- createBuffer = 23;
38
- createFramebuffer = 24;
39
- createProgram = 25;
40
- createRenderbuffer = 26;
41
- createShader = 27;
42
- createTexture = 28;
43
- cullFace = 29;
44
- deleteBuffer = 30;
45
- deleteFramebuffer = 31;
46
- deleteProgram = 32;
47
- deleteRenderbuffer = 33;
48
- deleteShader = 34;
49
- deleteTexture = 35;
50
- depthFunc = 36;
51
- depthMask = 37;
52
- depthRange = 38;
53
- detachShader = 39;
54
- disable = 40;
55
- disableVertexAttribArray = 41;
56
- drawArrays = 42;
57
- drawElements = 43;
58
- enable = 44;
59
- enableVertexAttribArray = 45;
60
- finish = 46;
61
- flush = 47;
62
- framebufferRenderbuffer = 48;
63
- framebufferTexture2D = 49;
64
- frontFace = 50;
65
- generateMipmap = 51;
66
- getActiveAttrib = 52;
67
- getActiveUniform = 53;
68
- getAttachedShaders = 54;
69
- getAttribLocation = 55;
70
- getBufferParameter = 56;
71
- getContextAttributes = 57;
72
- getError = 58;
73
- getExtension = 59;
74
- getFramebufferAttachmentParameter = 60;
75
- getParameter = 61;
76
- getProgramInfoLog = 62;
77
- getProgramParameter = 63;
78
- getRenderbufferParameter = 64;
79
- getShaderInfoLog = 65;
80
- getShaderParameter = 66;
81
- getShaderPrecisionFormat = 67;
82
- getShaderSource = 68;
83
- getSupportedExtensions = 69;
84
- getTexParameter = 70;
85
- getUniform = 71;
86
- getUniformLocation = 72;
87
- getVertexAttrib = 73;
88
- getVertexAttribOffset = 74;
89
- hint = 75;
90
- isBuffer = 76;
91
- isContextLost = 77;
92
- isEnabled = 78;
93
- isFramebuffer = 79;
94
- isProgram = 80;
95
- isRenderbuffer = 81;
96
- isShader = 82;
97
- isTexture = 83;
98
- lineWidth = 84;
99
- linkProgram = 85;
100
- polygonOffset = 86;
101
- renderbufferStorage = 87;
102
- sampleCoverage = 88;
103
- scissor = 89;
104
- shaderSource = 90;
105
- stencilFunc = 91;
106
- stencilFuncSeparate = 92;
107
- stencilMask = 93;
108
- stencilMaskSeparate = 94;
109
- stencilOp = 95;
110
- stencilOpSeparate = 96;
111
- texParameterf = 97;
112
- texParameteri = 98;
113
- uniform1f = 99;
114
- uniform1i = 100;
115
- uniform2f = 101;
116
- uniform2i = 102;
117
- uniform3f = 103;
118
- uniform3i = 104;
119
- uniform4f = 105;
120
- uniform4i = 106;
121
- useProgram = 107;
122
- validateProgram = 108;
123
- vertexAttrib1f = 109;
124
- vertexAttrib2f = 110;
125
- vertexAttrib3f = 111;
126
- vertexAttrib4f = 112;
127
- vertexAttribPointer = 113;
128
- viewport = 114;
129
- }
@@ -1,13 +0,0 @@
1
- syntax = "proto3";
2
-
3
- package devvit.plugin.gl;
4
-
5
- option go_package = "github.snooguts.net/reddit/reddit-devplatform-monorepo/go-common/generated/protos/types/devvit/plugin/gl";
6
- option java_package = "com.reddit.devvit.plugin.gl";
7
-
8
- enum GLMethodType {
9
- ASYNC = 0;
10
- CONSTRUCTOR = 1;
11
- DESTRUCTOR = 2;
12
- SYNC = 3;
13
- }
@@ -1,147 +0,0 @@
1
- /**
2
- * #glclient.ts
3
- *
4
- * @packageDocumentation
5
- */
6
- import _m0 from 'protobufjs/minimal.js';
7
- import { Metadata } from "../../../../lib/Types.js";
8
- import { Empty } from '../../../google/protobuf/empty.js';
9
- export interface ConfigMessage {
10
- width: number;
11
- height: number;
12
- }
13
- export interface TickMessage {
14
- }
15
- export interface InputMessage {
16
- }
17
- export declare const ConfigMessage: {
18
- $type: "devvit.actor.gl.ConfigMessage";
19
- encode(message: ConfigMessage, writer?: _m0.Writer): _m0.Writer;
20
- decode(input: _m0.Reader | Uint8Array, length?: number): ConfigMessage;
21
- fromJSON(object: any): ConfigMessage;
22
- toJSON(message: ConfigMessage): unknown;
23
- create(base?: DeepPartial<ConfigMessage>): ConfigMessage;
24
- fromPartial(object: DeepPartial<ConfigMessage>): ConfigMessage;
25
- };
26
- export declare const TickMessage: {
27
- $type: "devvit.actor.gl.TickMessage";
28
- encode(_: TickMessage, writer?: _m0.Writer): _m0.Writer;
29
- decode(input: _m0.Reader | Uint8Array, length?: number): TickMessage;
30
- fromJSON(_: any): TickMessage;
31
- toJSON(_: TickMessage): unknown;
32
- create(base?: DeepPartial<TickMessage>): TickMessage;
33
- fromPartial(_: DeepPartial<TickMessage>): TickMessage;
34
- };
35
- export declare const InputMessage: {
36
- $type: "devvit.actor.gl.InputMessage";
37
- encode(_: InputMessage, writer?: _m0.Writer): _m0.Writer;
38
- decode(input: _m0.Reader | Uint8Array, length?: number): InputMessage;
39
- fromJSON(_: any): InputMessage;
40
- toJSON(_: InputMessage): unknown;
41
- create(base?: DeepPartial<InputMessage>): InputMessage;
42
- fromPartial(_: DeepPartial<InputMessage>): InputMessage;
43
- };
44
- export interface GLClient {
45
- OnConfig(request: ConfigMessage, metadata?: Metadata): Promise<Empty>;
46
- OnFrameTick(request: TickMessage, metadata?: Metadata): Promise<Empty>;
47
- OnInput(request: InputMessage, metadata?: Metadata): Promise<Empty>;
48
- }
49
- export declare const GLClientServiceName = "devvit.actor.gl.GLClient";
50
- export declare class GLClientClientImpl implements GLClient {
51
- private readonly rpc;
52
- private readonly service;
53
- constructor(rpc: Rpc, opts?: {
54
- service?: string;
55
- });
56
- OnConfig(request: ConfigMessage, metadata?: Metadata): Promise<Empty>;
57
- OnFrameTick(request: TickMessage, metadata?: Metadata): Promise<Empty>;
58
- OnInput(request: InputMessage, metadata?: Metadata): Promise<Empty>;
59
- }
60
- export type GLClientDefinition = typeof GLClientDefinition;
61
- export declare const GLClientDefinition: {
62
- readonly name: "GLClient";
63
- readonly fullName: "devvit.actor.gl.GLClient";
64
- readonly methods: {
65
- readonly onConfig: {
66
- readonly name: "OnConfig";
67
- readonly requestType: {
68
- $type: "devvit.actor.gl.ConfigMessage";
69
- encode(message: ConfigMessage, writer?: _m0.Writer): _m0.Writer;
70
- decode(input: _m0.Reader | Uint8Array, length?: number): ConfigMessage;
71
- fromJSON(object: any): ConfigMessage;
72
- toJSON(message: ConfigMessage): unknown;
73
- create(base?: DeepPartial<ConfigMessage>): ConfigMessage;
74
- fromPartial(object: DeepPartial<ConfigMessage>): ConfigMessage;
75
- };
76
- readonly requestStream: false;
77
- readonly responseType: {
78
- $type: "google.protobuf.Empty";
79
- encode(_: Empty, writer?: _m0.Writer): _m0.Writer;
80
- decode(input: _m0.Reader | Uint8Array, length?: number | undefined): Empty;
81
- fromJSON(_: any): Empty;
82
- toJSON(_: Empty): unknown;
83
- create(base?: {} | undefined): Empty;
84
- fromPartial(_: {}): Empty;
85
- };
86
- readonly responseStream: false;
87
- readonly options: {};
88
- };
89
- readonly onFrameTick: {
90
- readonly name: "OnFrameTick";
91
- readonly requestType: {
92
- $type: "devvit.actor.gl.TickMessage";
93
- encode(_: TickMessage, writer?: _m0.Writer): _m0.Writer;
94
- decode(input: _m0.Reader | Uint8Array, length?: number): TickMessage;
95
- fromJSON(_: any): TickMessage;
96
- toJSON(_: TickMessage): unknown;
97
- create(base?: DeepPartial<TickMessage>): TickMessage;
98
- fromPartial(_: DeepPartial<TickMessage>): TickMessage;
99
- };
100
- readonly requestStream: false;
101
- readonly responseType: {
102
- $type: "google.protobuf.Empty";
103
- encode(_: Empty, writer?: _m0.Writer): _m0.Writer;
104
- decode(input: _m0.Reader | Uint8Array, length?: number | undefined): Empty;
105
- fromJSON(_: any): Empty;
106
- toJSON(_: Empty): unknown;
107
- create(base?: {} | undefined): Empty;
108
- fromPartial(_: {}): Empty;
109
- };
110
- readonly responseStream: false;
111
- readonly options: {};
112
- };
113
- readonly onInput: {
114
- readonly name: "OnInput";
115
- readonly requestType: {
116
- $type: "devvit.actor.gl.InputMessage";
117
- encode(_: InputMessage, writer?: _m0.Writer): _m0.Writer;
118
- decode(input: _m0.Reader | Uint8Array, length?: number): InputMessage;
119
- fromJSON(_: any): InputMessage;
120
- toJSON(_: InputMessage): unknown;
121
- create(base?: DeepPartial<InputMessage>): InputMessage;
122
- fromPartial(_: DeepPartial<InputMessage>): InputMessage;
123
- };
124
- readonly requestStream: false;
125
- readonly responseType: {
126
- $type: "google.protobuf.Empty";
127
- encode(_: Empty, writer?: _m0.Writer): _m0.Writer;
128
- decode(input: _m0.Reader | Uint8Array, length?: number | undefined): Empty;
129
- fromJSON(_: any): Empty;
130
- toJSON(_: Empty): unknown;
131
- create(base?: {} | undefined): Empty;
132
- fromPartial(_: {}): Empty;
133
- };
134
- readonly responseStream: false;
135
- readonly options: {};
136
- };
137
- };
138
- };
139
- interface Rpc {
140
- request(service: string, method: string, data: Uint8Array, metadata?: Metadata): Promise<Uint8Array>;
141
- }
142
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
143
- 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 {} ? {
144
- [K in keyof T]?: DeepPartial<T[K]>;
145
- } : Partial<T>;
146
- export {};
147
- //# sourceMappingURL=glclient.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"glclient.d.ts","sourceRoot":"","sources":["../../../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"}
@@ -1,213 +0,0 @@
1
- /**
2
- * #glclient.ts
3
- *
4
- * @packageDocumentation
5
- */
6
- /* eslint-disable */
7
- import _m0 from 'protobufjs/minimal.js';
8
- import { Empty } from '../../../google/protobuf/empty.js';
9
- import { messageTypeRegistry } from '../../../typeRegistry.js';
10
- function createBaseConfigMessage() {
11
- return { width: 0, height: 0 };
12
- }
13
- export const ConfigMessage = {
14
- $type: "devvit.actor.gl.ConfigMessage",
15
- encode(message, writer = _m0.Writer.create()) {
16
- if (message.width !== 0) {
17
- writer.uint32(8).int32(message.width);
18
- }
19
- if (message.height !== 0) {
20
- writer.uint32(16).int32(message.height);
21
- }
22
- return writer;
23
- },
24
- decode(input, length) {
25
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
26
- let end = length === undefined ? reader.len : reader.pos + length;
27
- const message = createBaseConfigMessage();
28
- while (reader.pos < end) {
29
- const tag = reader.uint32();
30
- switch (tag >>> 3) {
31
- case 1:
32
- if (tag !== 8) {
33
- break;
34
- }
35
- message.width = reader.int32();
36
- continue;
37
- case 2:
38
- if (tag !== 16) {
39
- break;
40
- }
41
- message.height = reader.int32();
42
- continue;
43
- }
44
- if ((tag & 7) === 4 || tag === 0) {
45
- break;
46
- }
47
- reader.skipType(tag & 7);
48
- }
49
- return message;
50
- },
51
- fromJSON(object) {
52
- return {
53
- width: isSet(object.width) ? globalThis.Number(object.width) : 0,
54
- height: isSet(object.height) ? globalThis.Number(object.height) : 0,
55
- };
56
- },
57
- toJSON(message) {
58
- const obj = {};
59
- if (message.width !== 0) {
60
- obj.width = Math.round(message.width);
61
- }
62
- if (message.height !== 0) {
63
- obj.height = Math.round(message.height);
64
- }
65
- return obj;
66
- },
67
- create(base) {
68
- return ConfigMessage.fromPartial(base ?? {});
69
- },
70
- fromPartial(object) {
71
- const message = createBaseConfigMessage();
72
- message.width = object.width ?? 0;
73
- message.height = object.height ?? 0;
74
- return message;
75
- },
76
- };
77
- messageTypeRegistry.set(ConfigMessage.$type, ConfigMessage);
78
- function createBaseTickMessage() {
79
- return {};
80
- }
81
- export const TickMessage = {
82
- $type: "devvit.actor.gl.TickMessage",
83
- encode(_, writer = _m0.Writer.create()) {
84
- return writer;
85
- },
86
- decode(input, length) {
87
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
88
- let end = length === undefined ? reader.len : reader.pos + length;
89
- const message = createBaseTickMessage();
90
- while (reader.pos < end) {
91
- const tag = reader.uint32();
92
- switch (tag >>> 3) {
93
- }
94
- if ((tag & 7) === 4 || tag === 0) {
95
- break;
96
- }
97
- reader.skipType(tag & 7);
98
- }
99
- return message;
100
- },
101
- fromJSON(_) {
102
- return {};
103
- },
104
- toJSON(_) {
105
- const obj = {};
106
- return obj;
107
- },
108
- create(base) {
109
- return TickMessage.fromPartial(base ?? {});
110
- },
111
- fromPartial(_) {
112
- const message = createBaseTickMessage();
113
- return message;
114
- },
115
- };
116
- messageTypeRegistry.set(TickMessage.$type, TickMessage);
117
- function createBaseInputMessage() {
118
- return {};
119
- }
120
- export const InputMessage = {
121
- $type: "devvit.actor.gl.InputMessage",
122
- encode(_, writer = _m0.Writer.create()) {
123
- return writer;
124
- },
125
- decode(input, length) {
126
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
127
- let end = length === undefined ? reader.len : reader.pos + length;
128
- const message = createBaseInputMessage();
129
- while (reader.pos < end) {
130
- const tag = reader.uint32();
131
- switch (tag >>> 3) {
132
- }
133
- if ((tag & 7) === 4 || tag === 0) {
134
- break;
135
- }
136
- reader.skipType(tag & 7);
137
- }
138
- return message;
139
- },
140
- fromJSON(_) {
141
- return {};
142
- },
143
- toJSON(_) {
144
- const obj = {};
145
- return obj;
146
- },
147
- create(base) {
148
- return InputMessage.fromPartial(base ?? {});
149
- },
150
- fromPartial(_) {
151
- const message = createBaseInputMessage();
152
- return message;
153
- },
154
- };
155
- messageTypeRegistry.set(InputMessage.$type, InputMessage);
156
- export const GLClientServiceName = "devvit.actor.gl.GLClient";
157
- export class GLClientClientImpl {
158
- constructor(rpc, opts) {
159
- this.service = opts?.service || GLClientServiceName;
160
- this.rpc = rpc;
161
- this.OnConfig = this.OnConfig.bind(this);
162
- this.OnFrameTick = this.OnFrameTick.bind(this);
163
- this.OnInput = this.OnInput.bind(this);
164
- }
165
- OnConfig(request, metadata) {
166
- const data = ConfigMessage.encode(request).finish();
167
- const promise = this.rpc.request(this.service, "OnConfig", data, metadata);
168
- return promise.then((data) => Empty.decode(_m0.Reader.create(data)));
169
- }
170
- OnFrameTick(request, metadata) {
171
- const data = TickMessage.encode(request).finish();
172
- const promise = this.rpc.request(this.service, "OnFrameTick", data, metadata);
173
- return promise.then((data) => Empty.decode(_m0.Reader.create(data)));
174
- }
175
- OnInput(request, metadata) {
176
- const data = InputMessage.encode(request).finish();
177
- const promise = this.rpc.request(this.service, "OnInput", data, metadata);
178
- return promise.then((data) => Empty.decode(_m0.Reader.create(data)));
179
- }
180
- }
181
- export const GLClientDefinition = {
182
- name: "GLClient",
183
- fullName: "devvit.actor.gl.GLClient",
184
- methods: {
185
- onConfig: {
186
- name: "OnConfig",
187
- requestType: ConfigMessage,
188
- requestStream: false,
189
- responseType: Empty,
190
- responseStream: false,
191
- options: {},
192
- },
193
- onFrameTick: {
194
- name: "OnFrameTick",
195
- requestType: TickMessage,
196
- requestStream: false,
197
- responseType: Empty,
198
- responseStream: false,
199
- options: {},
200
- },
201
- onInput: {
202
- name: "OnInput",
203
- requestType: InputMessage,
204
- requestStream: false,
205
- responseType: Empty,
206
- responseStream: false,
207
- options: {},
208
- },
209
- },
210
- };
211
- function isSet(value) {
212
- return value !== null && value !== undefined;
213
- }
@@ -1,104 +0,0 @@
1
- /**
2
- * #glrenderer.ts
3
- *
4
- * @packageDocumentation
5
- */
6
- import _m0 from 'protobufjs/minimal.js';
7
- import { Metadata } from "../../../../lib/Types.js";
8
- import { Empty } from '../../../google/protobuf/empty.js';
9
- import { GLMethod } from './methods.js';
10
- import { GLMethodType } from './methodtype.js';
11
- export interface CommandArgument {
12
- null?: boolean | undefined;
13
- scalar?: any | undefined;
14
- blob?: Uint8Array | undefined;
15
- referenceId?: number | undefined;
16
- }
17
- export interface GLCommand {
18
- method: GLMethod;
19
- type: GLMethodType;
20
- args: CommandArgument[];
21
- referenceId: number;
22
- }
23
- export interface ExecuteMessage {
24
- commands: GLCommand[];
25
- }
26
- export declare const CommandArgument: {
27
- $type: "devvit.plugin.gl.CommandArgument";
28
- encode(message: CommandArgument, writer?: _m0.Writer): _m0.Writer;
29
- decode(input: _m0.Reader | Uint8Array, length?: number): CommandArgument;
30
- fromJSON(object: any): CommandArgument;
31
- toJSON(message: CommandArgument): unknown;
32
- create(base?: DeepPartial<CommandArgument>): CommandArgument;
33
- fromPartial(object: DeepPartial<CommandArgument>): CommandArgument;
34
- };
35
- export declare const GLCommand: {
36
- $type: "devvit.plugin.gl.GLCommand";
37
- encode(message: GLCommand, writer?: _m0.Writer): _m0.Writer;
38
- decode(input: _m0.Reader | Uint8Array, length?: number): GLCommand;
39
- fromJSON(object: any): GLCommand;
40
- toJSON(message: GLCommand): unknown;
41
- create(base?: DeepPartial<GLCommand>): GLCommand;
42
- fromPartial(object: DeepPartial<GLCommand>): GLCommand;
43
- };
44
- export declare const ExecuteMessage: {
45
- $type: "devvit.plugin.gl.ExecuteMessage";
46
- encode(message: ExecuteMessage, writer?: _m0.Writer): _m0.Writer;
47
- decode(input: _m0.Reader | Uint8Array, length?: number): ExecuteMessage;
48
- fromJSON(object: any): ExecuteMessage;
49
- toJSON(message: ExecuteMessage): unknown;
50
- create(base?: DeepPartial<ExecuteMessage>): ExecuteMessage;
51
- fromPartial(object: DeepPartial<ExecuteMessage>): ExecuteMessage;
52
- };
53
- export interface GLRenderer {
54
- Execute(request: ExecuteMessage, metadata?: Metadata): Promise<Empty>;
55
- }
56
- export declare const GLRendererServiceName = "devvit.plugin.gl.GLRenderer";
57
- export declare class GLRendererClientImpl implements GLRenderer {
58
- private readonly rpc;
59
- private readonly service;
60
- constructor(rpc: Rpc, opts?: {
61
- service?: string;
62
- });
63
- Execute(request: ExecuteMessage, metadata?: Metadata): Promise<Empty>;
64
- }
65
- export type GLRendererDefinition = typeof GLRendererDefinition;
66
- export declare const GLRendererDefinition: {
67
- readonly name: "GLRenderer";
68
- readonly fullName: "devvit.plugin.gl.GLRenderer";
69
- readonly methods: {
70
- readonly execute: {
71
- readonly name: "Execute";
72
- readonly requestType: {
73
- $type: "devvit.plugin.gl.ExecuteMessage";
74
- encode(message: ExecuteMessage, writer?: _m0.Writer): _m0.Writer;
75
- decode(input: _m0.Reader | Uint8Array, length?: number): ExecuteMessage;
76
- fromJSON(object: any): ExecuteMessage;
77
- toJSON(message: ExecuteMessage): unknown;
78
- create(base?: DeepPartial<ExecuteMessage>): ExecuteMessage;
79
- fromPartial(object: DeepPartial<ExecuteMessage>): ExecuteMessage;
80
- };
81
- readonly requestStream: false;
82
- readonly responseType: {
83
- $type: "google.protobuf.Empty";
84
- encode(_: Empty, writer?: _m0.Writer): _m0.Writer;
85
- decode(input: _m0.Reader | Uint8Array, length?: number | undefined): Empty;
86
- fromJSON(_: any): Empty;
87
- toJSON(_: Empty): unknown;
88
- create(base?: {} | undefined): Empty;
89
- fromPartial(_: {}): Empty;
90
- };
91
- readonly responseStream: false;
92
- readonly options: {};
93
- };
94
- };
95
- };
96
- interface Rpc {
97
- request(service: string, method: string, data: Uint8Array, metadata?: Metadata): Promise<Uint8Array>;
98
- }
99
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
100
- 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 {} ? {
101
- [K in keyof T]?: DeepPartial<T[K]>;
102
- } : Partial<T>;
103
- export {};
104
- //# sourceMappingURL=glrenderer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"glrenderer.d.ts","sourceRoot":"","sources":["../../../../../src/types/devvit/plugin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