@devvit/protos 0.11.17-next-2025-06-02-02cef9c33.0 → 0.11.17-next-2025-06-02-7fe0d2be6.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/gateway/playtest_subreddit/playtest_subreddit.proto +24 -0
- package/schema/snootobuf.devenv.lock +334 -1
- package/schema/snootobuf.lock +336 -1
- package/schema/snootobuf.redditapi.lock +332 -1
- package/schema/snootobuf.ts.lock +335 -1
- package/types/devvit/gateway/playtest_subreddit/playtest_subreddit.d.ts +91 -0
- package/types/devvit/gateway/playtest_subreddit/playtest_subreddit.d.ts.map +1 -0
- package/types/devvit/gateway/playtest_subreddit/playtest_subreddit.js +175 -0
- package/types/devvit/gateway/playtest_subreddit/playtest_subreddit.twirp-client.d.ts +19 -0
- package/types/devvit/gateway/playtest_subreddit/playtest_subreddit.twirp-client.d.ts.map +1 -0
- package/types/devvit/gateway/playtest_subreddit/playtest_subreddit.twirp-client.js +23 -0
- package/types/devvit/gateway/playtest_subreddit/playtest_subreddit.twirp.d.ts +11 -0
- package/types/devvit/gateway/playtest_subreddit/playtest_subreddit.twirp.d.ts.map +1 -0
- package/types/devvit/gateway/playtest_subreddit/playtest_subreddit.twirp.js +90 -0
package/schema/snootobuf.ts.lock
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
## Code generated by protoc, converted to text by Snootobuf. DO NOT EDIT.
|
2
|
-
## checksum:
|
2
|
+
## checksum: f13fc771966cd09b61aa2a5a371b88b6581ca163a659cc1dfb38e80039f80091
|
3
3
|
|
4
4
|
file: {
|
5
5
|
message_type: {
|
@@ -137381,6 +137381,337 @@ file: {
|
|
137381
137381
|
}
|
137382
137382
|
syntax: "proto3"
|
137383
137383
|
}
|
137384
|
+
file: {
|
137385
|
+
message_type: {
|
137386
|
+
field: {
|
137387
|
+
json_name: "appName"
|
137388
|
+
label: LABEL_OPTIONAL
|
137389
|
+
name: "app_name"
|
137390
|
+
number: 1
|
137391
|
+
type: TYPE_STRING
|
137392
|
+
}
|
137393
|
+
field: {
|
137394
|
+
json_name: "devUserId"
|
137395
|
+
label: LABEL_OPTIONAL
|
137396
|
+
name: "dev_user_id"
|
137397
|
+
number: 2
|
137398
|
+
type: TYPE_STRING
|
137399
|
+
}
|
137400
|
+
name: "CreatePlaytestSubredditRequest"
|
137401
|
+
}
|
137402
|
+
message_type: {
|
137403
|
+
field: {
|
137404
|
+
json_name: "subredditId"
|
137405
|
+
label: LABEL_OPTIONAL
|
137406
|
+
name: "subreddit_id"
|
137407
|
+
number: 1
|
137408
|
+
type: TYPE_STRING
|
137409
|
+
}
|
137410
|
+
field: {
|
137411
|
+
json_name: "subredditName"
|
137412
|
+
label: LABEL_OPTIONAL
|
137413
|
+
name: "subreddit_name"
|
137414
|
+
number: 2
|
137415
|
+
type: TYPE_STRING
|
137416
|
+
}
|
137417
|
+
name: "CreatePlaytestSubredditResponse"
|
137418
|
+
}
|
137419
|
+
name: "devvit/gateway/playtest_subreddit/playtest_subreddit.proto"
|
137420
|
+
options: {
|
137421
|
+
go_package: "github.snooguts.net/reddit/reddit-devplatform-monorepo/go-common/generated/protos/types/devvit/gateway/playtestsubreddit"
|
137422
|
+
}
|
137423
|
+
package: "devvit.gateway.playtest_subreddit"
|
137424
|
+
service: {
|
137425
|
+
method: {
|
137426
|
+
input_type: ".devvit.gateway.playtest_subreddit.CreatePlaytestSubredditRequest"
|
137427
|
+
name: "CreatePlaytestSubreddit"
|
137428
|
+
output_type: ".devvit.gateway.playtest_subreddit.CreatePlaytestSubredditResponse"
|
137429
|
+
}
|
137430
|
+
name: "PlaytestSubreddit"
|
137431
|
+
}
|
137432
|
+
source_code_info: {
|
137433
|
+
location: {
|
137434
|
+
span: 0
|
137435
|
+
span: 0
|
137436
|
+
span: 1
|
137437
|
+
span: 23
|
137438
|
+
}
|
137439
|
+
location: {
|
137440
|
+
path: 12
|
137441
|
+
span: 0
|
137442
|
+
span: 0
|
137443
|
+
span: 18
|
137444
|
+
}
|
137445
|
+
location: {
|
137446
|
+
path: 2
|
137447
|
+
span: 0
|
137448
|
+
span: 2
|
137449
|
+
span: 42
|
137450
|
+
}
|
137451
|
+
location: {
|
137452
|
+
path: 8
|
137453
|
+
span: 0
|
137454
|
+
span: 143
|
137455
|
+
span: 4
|
137456
|
+
}
|
137457
|
+
location: {
|
137458
|
+
path: 11
|
137459
|
+
path: 8
|
137460
|
+
span: 0
|
137461
|
+
span: 143
|
137462
|
+
span: 4
|
137463
|
+
}
|
137464
|
+
location: {
|
137465
|
+
path: 0
|
137466
|
+
path: 6
|
137467
|
+
span: 0
|
137468
|
+
span: 1
|
137469
|
+
span: 6
|
137470
|
+
span: 9
|
137471
|
+
}
|
137472
|
+
location: {
|
137473
|
+
path: 0
|
137474
|
+
path: 1
|
137475
|
+
path: 6
|
137476
|
+
span: 25
|
137477
|
+
span: 6
|
137478
|
+
span: 8
|
137479
|
+
}
|
137480
|
+
location: {
|
137481
|
+
leading_comments: " Create a playtest subreddit for an app\n"
|
137482
|
+
path: 0
|
137483
|
+
path: 0
|
137484
|
+
path: 2
|
137485
|
+
path: 6
|
137486
|
+
span: 104
|
137487
|
+
span: 2
|
137488
|
+
span: 8
|
137489
|
+
}
|
137490
|
+
location: {
|
137491
|
+
path: 0
|
137492
|
+
path: 0
|
137493
|
+
path: 1
|
137494
|
+
path: 2
|
137495
|
+
path: 6
|
137496
|
+
span: 29
|
137497
|
+
span: 6
|
137498
|
+
span: 8
|
137499
|
+
}
|
137500
|
+
location: {
|
137501
|
+
path: 0
|
137502
|
+
path: 0
|
137503
|
+
path: 2
|
137504
|
+
path: 2
|
137505
|
+
path: 6
|
137506
|
+
span: 30
|
137507
|
+
span: 60
|
137508
|
+
span: 8
|
137509
|
+
}
|
137510
|
+
location: {
|
137511
|
+
path: 0
|
137512
|
+
path: 0
|
137513
|
+
path: 2
|
137514
|
+
path: 3
|
137515
|
+
path: 6
|
137516
|
+
span: 102
|
137517
|
+
span: 71
|
137518
|
+
span: 8
|
137519
|
+
}
|
137520
|
+
location: {
|
137521
|
+
path: 0
|
137522
|
+
path: 4
|
137523
|
+
span: 0
|
137524
|
+
span: 1
|
137525
|
+
span: 11
|
137526
|
+
span: 16
|
137527
|
+
}
|
137528
|
+
location: {
|
137529
|
+
path: 0
|
137530
|
+
path: 1
|
137531
|
+
path: 4
|
137532
|
+
span: 11
|
137533
|
+
span: 38
|
137534
|
+
span: 8
|
137535
|
+
}
|
137536
|
+
location: {
|
137537
|
+
leading_comments: " Name of the app for which to create the playtest subreddit\n"
|
137538
|
+
path: 0
|
137539
|
+
path: 0
|
137540
|
+
path: 2
|
137541
|
+
path: 4
|
137542
|
+
span: 13
|
137543
|
+
span: 2
|
137544
|
+
span: 22
|
137545
|
+
}
|
137546
|
+
location: {
|
137547
|
+
path: 0
|
137548
|
+
path: 0
|
137549
|
+
path: 2
|
137550
|
+
path: 4
|
137551
|
+
path: 5
|
137552
|
+
span: 13
|
137553
|
+
span: 2
|
137554
|
+
span: 8
|
137555
|
+
}
|
137556
|
+
location: {
|
137557
|
+
path: 0
|
137558
|
+
path: 0
|
137559
|
+
path: 1
|
137560
|
+
path: 2
|
137561
|
+
path: 4
|
137562
|
+
span: 13
|
137563
|
+
span: 17
|
137564
|
+
span: 9
|
137565
|
+
}
|
137566
|
+
location: {
|
137567
|
+
path: 0
|
137568
|
+
path: 0
|
137569
|
+
path: 2
|
137570
|
+
path: 3
|
137571
|
+
path: 4
|
137572
|
+
span: 13
|
137573
|
+
span: 20
|
137574
|
+
span: 21
|
137575
|
+
}
|
137576
|
+
location: {
|
137577
|
+
leading_comments: " T2 of the developer's reddit account to add them as a moderator\n"
|
137578
|
+
path: 0
|
137579
|
+
path: 1
|
137580
|
+
path: 2
|
137581
|
+
path: 4
|
137582
|
+
span: 15
|
137583
|
+
span: 2
|
137584
|
+
span: 25
|
137585
|
+
}
|
137586
|
+
location: {
|
137587
|
+
path: 0
|
137588
|
+
path: 1
|
137589
|
+
path: 2
|
137590
|
+
path: 4
|
137591
|
+
path: 5
|
137592
|
+
span: 15
|
137593
|
+
span: 2
|
137594
|
+
span: 8
|
137595
|
+
}
|
137596
|
+
location: {
|
137597
|
+
path: 0
|
137598
|
+
path: 1
|
137599
|
+
path: 1
|
137600
|
+
path: 2
|
137601
|
+
path: 4
|
137602
|
+
span: 15
|
137603
|
+
span: 20
|
137604
|
+
span: 9
|
137605
|
+
}
|
137606
|
+
location: {
|
137607
|
+
path: 0
|
137608
|
+
path: 1
|
137609
|
+
path: 2
|
137610
|
+
path: 3
|
137611
|
+
path: 4
|
137612
|
+
span: 15
|
137613
|
+
span: 23
|
137614
|
+
span: 24
|
137615
|
+
}
|
137616
|
+
location: {
|
137617
|
+
path: 1
|
137618
|
+
path: 4
|
137619
|
+
span: 0
|
137620
|
+
span: 1
|
137621
|
+
span: 18
|
137622
|
+
span: 23
|
137623
|
+
}
|
137624
|
+
location: {
|
137625
|
+
path: 1
|
137626
|
+
path: 1
|
137627
|
+
path: 4
|
137628
|
+
span: 18
|
137629
|
+
span: 39
|
137630
|
+
span: 8
|
137631
|
+
}
|
137632
|
+
location: {
|
137633
|
+
leading_comments: " ID of the subreddit created\n"
|
137634
|
+
path: 0
|
137635
|
+
path: 1
|
137636
|
+
path: 2
|
137637
|
+
path: 4
|
137638
|
+
span: 2
|
137639
|
+
span: 20
|
137640
|
+
span: 26
|
137641
|
+
}
|
137642
|
+
location: {
|
137643
|
+
path: 0
|
137644
|
+
path: 1
|
137645
|
+
path: 2
|
137646
|
+
path: 4
|
137647
|
+
path: 5
|
137648
|
+
span: 2
|
137649
|
+
span: 20
|
137650
|
+
span: 8
|
137651
|
+
}
|
137652
|
+
location: {
|
137653
|
+
path: 0
|
137654
|
+
path: 1
|
137655
|
+
path: 1
|
137656
|
+
path: 2
|
137657
|
+
path: 4
|
137658
|
+
span: 20
|
137659
|
+
span: 21
|
137660
|
+
span: 9
|
137661
|
+
}
|
137662
|
+
location: {
|
137663
|
+
path: 0
|
137664
|
+
path: 1
|
137665
|
+
path: 2
|
137666
|
+
path: 3
|
137667
|
+
path: 4
|
137668
|
+
span: 20
|
137669
|
+
span: 24
|
137670
|
+
span: 25
|
137671
|
+
}
|
137672
|
+
location: {
|
137673
|
+
leading_comments: " Name of the subreddit created\n"
|
137674
|
+
path: 1
|
137675
|
+
path: 1
|
137676
|
+
path: 2
|
137677
|
+
path: 4
|
137678
|
+
span: 2
|
137679
|
+
span: 22
|
137680
|
+
span: 28
|
137681
|
+
}
|
137682
|
+
location: {
|
137683
|
+
path: 1
|
137684
|
+
path: 1
|
137685
|
+
path: 2
|
137686
|
+
path: 4
|
137687
|
+
path: 5
|
137688
|
+
span: 2
|
137689
|
+
span: 22
|
137690
|
+
span: 8
|
137691
|
+
}
|
137692
|
+
location: {
|
137693
|
+
path: 1
|
137694
|
+
path: 1
|
137695
|
+
path: 1
|
137696
|
+
path: 2
|
137697
|
+
path: 4
|
137698
|
+
span: 22
|
137699
|
+
span: 23
|
137700
|
+
span: 9
|
137701
|
+
}
|
137702
|
+
location: {
|
137703
|
+
path: 1
|
137704
|
+
path: 1
|
137705
|
+
path: 2
|
137706
|
+
path: 3
|
137707
|
+
path: 4
|
137708
|
+
span: 22
|
137709
|
+
span: 26
|
137710
|
+
span: 27
|
137711
|
+
}
|
137712
|
+
}
|
137713
|
+
syntax: "proto3"
|
137714
|
+
}
|
137384
137715
|
file: {
|
137385
137716
|
dependency: "devvit/actor/reddit/context_action.proto"
|
137386
137717
|
dependency: "devvit/runtime/bundle.proto"
|
@@ -301394,6 +301725,9 @@ file: {
|
|
301394
301725
|
destination_file: "../src/types/devvit/gateway/custom_post_snapshot.ts"
|
301395
301726
|
destination_file: "../src/types/devvit/gateway/custom_post_snapshot.twirp-client.ts"
|
301396
301727
|
destination_file: "../src/types/devvit/gateway/custom_post_snapshot.twirp.ts"
|
301728
|
+
destination_file: "../src/types/devvit/gateway/playtest_subreddit/playtest_subreddit.ts"
|
301729
|
+
destination_file: "../src/types/devvit/gateway/playtest_subreddit/playtest_subreddit.twirp-client.ts"
|
301730
|
+
destination_file: "../src/types/devvit/gateway/playtest_subreddit/playtest_subreddit.twirp.ts"
|
301397
301731
|
destination_file: "../src/types/devvit/gateway/resolvers.ts"
|
301398
301732
|
destination_file: "../src/types/devvit/gateway/resolvers.twirp-client.ts"
|
301399
301733
|
destination_file: "../src/types/devvit/gateway/resolvers.twirp.ts"
|
@@ -0,0 +1,91 @@
|
|
1
|
+
/**
|
2
|
+
* #playtest_subreddit.ts
|
3
|
+
*
|
4
|
+
* @packageDocumentation
|
5
|
+
*/
|
6
|
+
import _m0 from "protobufjs/minimal.js";
|
7
|
+
import { Metadata } from "../../../../lib/Types.js";
|
8
|
+
export interface CreatePlaytestSubredditRequest {
|
9
|
+
/** Name of the app for which to create the playtest subreddit */
|
10
|
+
appName: string;
|
11
|
+
/** T2 of the developer's reddit account to add them as a moderator */
|
12
|
+
devUserId: string;
|
13
|
+
}
|
14
|
+
export interface CreatePlaytestSubredditResponse {
|
15
|
+
/** ID of the subreddit created */
|
16
|
+
subredditId: string;
|
17
|
+
/** Name of the subreddit created */
|
18
|
+
subredditName: string;
|
19
|
+
}
|
20
|
+
export declare const CreatePlaytestSubredditRequest: {
|
21
|
+
$type: "devvit.gateway.playtest_subreddit.CreatePlaytestSubredditRequest";
|
22
|
+
encode(message: CreatePlaytestSubredditRequest, writer?: _m0.Writer): _m0.Writer;
|
23
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): CreatePlaytestSubredditRequest;
|
24
|
+
fromJSON(object: any): CreatePlaytestSubredditRequest;
|
25
|
+
toJSON(message: CreatePlaytestSubredditRequest): unknown;
|
26
|
+
create(base?: DeepPartial<CreatePlaytestSubredditRequest>): CreatePlaytestSubredditRequest;
|
27
|
+
fromPartial(object: DeepPartial<CreatePlaytestSubredditRequest>): CreatePlaytestSubredditRequest;
|
28
|
+
};
|
29
|
+
export declare const CreatePlaytestSubredditResponse: {
|
30
|
+
$type: "devvit.gateway.playtest_subreddit.CreatePlaytestSubredditResponse";
|
31
|
+
encode(message: CreatePlaytestSubredditResponse, writer?: _m0.Writer): _m0.Writer;
|
32
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): CreatePlaytestSubredditResponse;
|
33
|
+
fromJSON(object: any): CreatePlaytestSubredditResponse;
|
34
|
+
toJSON(message: CreatePlaytestSubredditResponse): unknown;
|
35
|
+
create(base?: DeepPartial<CreatePlaytestSubredditResponse>): CreatePlaytestSubredditResponse;
|
36
|
+
fromPartial(object: DeepPartial<CreatePlaytestSubredditResponse>): CreatePlaytestSubredditResponse;
|
37
|
+
};
|
38
|
+
export interface PlaytestSubreddit {
|
39
|
+
/** Create a playtest subreddit for an app */
|
40
|
+
CreatePlaytestSubreddit(request: CreatePlaytestSubredditRequest, metadata?: Metadata): Promise<CreatePlaytestSubredditResponse>;
|
41
|
+
}
|
42
|
+
export declare const PlaytestSubredditServiceName = "devvit.gateway.playtest_subreddit.PlaytestSubreddit";
|
43
|
+
export declare class PlaytestSubredditClientImpl implements PlaytestSubreddit {
|
44
|
+
private readonly rpc;
|
45
|
+
private readonly service;
|
46
|
+
constructor(rpc: Rpc, opts?: {
|
47
|
+
service?: string;
|
48
|
+
});
|
49
|
+
CreatePlaytestSubreddit(request: CreatePlaytestSubredditRequest, metadata?: Metadata): Promise<CreatePlaytestSubredditResponse>;
|
50
|
+
}
|
51
|
+
export type PlaytestSubredditDefinition = typeof PlaytestSubredditDefinition;
|
52
|
+
export declare const PlaytestSubredditDefinition: {
|
53
|
+
readonly name: "PlaytestSubreddit";
|
54
|
+
readonly fullName: "devvit.gateway.playtest_subreddit.PlaytestSubreddit";
|
55
|
+
readonly methods: {
|
56
|
+
/** Create a playtest subreddit for an app */
|
57
|
+
readonly createPlaytestSubreddit: {
|
58
|
+
readonly name: "CreatePlaytestSubreddit";
|
59
|
+
readonly requestType: {
|
60
|
+
$type: "devvit.gateway.playtest_subreddit.CreatePlaytestSubredditRequest";
|
61
|
+
encode(message: CreatePlaytestSubredditRequest, writer?: _m0.Writer): _m0.Writer;
|
62
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): CreatePlaytestSubredditRequest;
|
63
|
+
fromJSON(object: any): CreatePlaytestSubredditRequest;
|
64
|
+
toJSON(message: CreatePlaytestSubredditRequest): unknown;
|
65
|
+
create(base?: DeepPartial<CreatePlaytestSubredditRequest>): CreatePlaytestSubredditRequest;
|
66
|
+
fromPartial(object: DeepPartial<CreatePlaytestSubredditRequest>): CreatePlaytestSubredditRequest;
|
67
|
+
};
|
68
|
+
readonly requestStream: false;
|
69
|
+
readonly responseType: {
|
70
|
+
$type: "devvit.gateway.playtest_subreddit.CreatePlaytestSubredditResponse";
|
71
|
+
encode(message: CreatePlaytestSubredditResponse, writer?: _m0.Writer): _m0.Writer;
|
72
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): CreatePlaytestSubredditResponse;
|
73
|
+
fromJSON(object: any): CreatePlaytestSubredditResponse;
|
74
|
+
toJSON(message: CreatePlaytestSubredditResponse): unknown;
|
75
|
+
create(base?: DeepPartial<CreatePlaytestSubredditResponse>): CreatePlaytestSubredditResponse;
|
76
|
+
fromPartial(object: DeepPartial<CreatePlaytestSubredditResponse>): CreatePlaytestSubredditResponse;
|
77
|
+
};
|
78
|
+
readonly responseStream: false;
|
79
|
+
readonly options: {};
|
80
|
+
};
|
81
|
+
};
|
82
|
+
};
|
83
|
+
interface Rpc {
|
84
|
+
request(service: string, method: string, data: Uint8Array, metadata?: Metadata): Promise<Uint8Array>;
|
85
|
+
}
|
86
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
87
|
+
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 {} ? {
|
88
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
89
|
+
} : Partial<T>;
|
90
|
+
export {};
|
91
|
+
//# sourceMappingURL=playtest_subreddit.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"playtest_subreddit.d.ts","sourceRoot":"","sources":["../../../../../src/types/devvit/gateway/playtest_subreddit/playtest_subreddit.ts"],"names":[],"mappings":"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"}
|
@@ -0,0 +1,175 @@
|
|
1
|
+
/**
|
2
|
+
* #playtest_subreddit.ts
|
3
|
+
*
|
4
|
+
* @packageDocumentation
|
5
|
+
*/
|
6
|
+
/* eslint-disable */
|
7
|
+
import _m0 from "protobufjs/minimal.js";
|
8
|
+
import { messageTypeRegistry } from "../../../typeRegistry.js";
|
9
|
+
function createBaseCreatePlaytestSubredditRequest() {
|
10
|
+
return { appName: "", devUserId: "" };
|
11
|
+
}
|
12
|
+
export const CreatePlaytestSubredditRequest = {
|
13
|
+
$type: "devvit.gateway.playtest_subreddit.CreatePlaytestSubredditRequest",
|
14
|
+
encode(message, writer = _m0.Writer.create()) {
|
15
|
+
if (message.appName !== "") {
|
16
|
+
writer.uint32(10).string(message.appName);
|
17
|
+
}
|
18
|
+
if (message.devUserId !== "") {
|
19
|
+
writer.uint32(18).string(message.devUserId);
|
20
|
+
}
|
21
|
+
return writer;
|
22
|
+
},
|
23
|
+
decode(input, length) {
|
24
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
25
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
26
|
+
const message = createBaseCreatePlaytestSubredditRequest();
|
27
|
+
while (reader.pos < end) {
|
28
|
+
const tag = reader.uint32();
|
29
|
+
switch (tag >>> 3) {
|
30
|
+
case 1:
|
31
|
+
if (tag !== 10) {
|
32
|
+
break;
|
33
|
+
}
|
34
|
+
message.appName = reader.string();
|
35
|
+
continue;
|
36
|
+
case 2:
|
37
|
+
if (tag !== 18) {
|
38
|
+
break;
|
39
|
+
}
|
40
|
+
message.devUserId = reader.string();
|
41
|
+
continue;
|
42
|
+
}
|
43
|
+
if ((tag & 7) === 4 || tag === 0) {
|
44
|
+
break;
|
45
|
+
}
|
46
|
+
reader.skipType(tag & 7);
|
47
|
+
}
|
48
|
+
return message;
|
49
|
+
},
|
50
|
+
fromJSON(object) {
|
51
|
+
return {
|
52
|
+
appName: isSet(object.appName) ? globalThis.String(object.appName) : "",
|
53
|
+
devUserId: isSet(object.devUserId) ? globalThis.String(object.devUserId) : "",
|
54
|
+
};
|
55
|
+
},
|
56
|
+
toJSON(message) {
|
57
|
+
const obj = {};
|
58
|
+
if (message.appName !== "") {
|
59
|
+
obj.appName = message.appName;
|
60
|
+
}
|
61
|
+
if (message.devUserId !== "") {
|
62
|
+
obj.devUserId = message.devUserId;
|
63
|
+
}
|
64
|
+
return obj;
|
65
|
+
},
|
66
|
+
create(base) {
|
67
|
+
return CreatePlaytestSubredditRequest.fromPartial(base ?? {});
|
68
|
+
},
|
69
|
+
fromPartial(object) {
|
70
|
+
const message = createBaseCreatePlaytestSubredditRequest();
|
71
|
+
message.appName = object.appName ?? "";
|
72
|
+
message.devUserId = object.devUserId ?? "";
|
73
|
+
return message;
|
74
|
+
},
|
75
|
+
};
|
76
|
+
messageTypeRegistry.set(CreatePlaytestSubredditRequest.$type, CreatePlaytestSubredditRequest);
|
77
|
+
function createBaseCreatePlaytestSubredditResponse() {
|
78
|
+
return { subredditId: "", subredditName: "" };
|
79
|
+
}
|
80
|
+
export const CreatePlaytestSubredditResponse = {
|
81
|
+
$type: "devvit.gateway.playtest_subreddit.CreatePlaytestSubredditResponse",
|
82
|
+
encode(message, writer = _m0.Writer.create()) {
|
83
|
+
if (message.subredditId !== "") {
|
84
|
+
writer.uint32(10).string(message.subredditId);
|
85
|
+
}
|
86
|
+
if (message.subredditName !== "") {
|
87
|
+
writer.uint32(18).string(message.subredditName);
|
88
|
+
}
|
89
|
+
return writer;
|
90
|
+
},
|
91
|
+
decode(input, length) {
|
92
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
93
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
94
|
+
const message = createBaseCreatePlaytestSubredditResponse();
|
95
|
+
while (reader.pos < end) {
|
96
|
+
const tag = reader.uint32();
|
97
|
+
switch (tag >>> 3) {
|
98
|
+
case 1:
|
99
|
+
if (tag !== 10) {
|
100
|
+
break;
|
101
|
+
}
|
102
|
+
message.subredditId = reader.string();
|
103
|
+
continue;
|
104
|
+
case 2:
|
105
|
+
if (tag !== 18) {
|
106
|
+
break;
|
107
|
+
}
|
108
|
+
message.subredditName = reader.string();
|
109
|
+
continue;
|
110
|
+
}
|
111
|
+
if ((tag & 7) === 4 || tag === 0) {
|
112
|
+
break;
|
113
|
+
}
|
114
|
+
reader.skipType(tag & 7);
|
115
|
+
}
|
116
|
+
return message;
|
117
|
+
},
|
118
|
+
fromJSON(object) {
|
119
|
+
return {
|
120
|
+
subredditId: isSet(object.subredditId) ? globalThis.String(object.subredditId) : "",
|
121
|
+
subredditName: isSet(object.subredditName) ? globalThis.String(object.subredditName) : "",
|
122
|
+
};
|
123
|
+
},
|
124
|
+
toJSON(message) {
|
125
|
+
const obj = {};
|
126
|
+
if (message.subredditId !== "") {
|
127
|
+
obj.subredditId = message.subredditId;
|
128
|
+
}
|
129
|
+
if (message.subredditName !== "") {
|
130
|
+
obj.subredditName = message.subredditName;
|
131
|
+
}
|
132
|
+
return obj;
|
133
|
+
},
|
134
|
+
create(base) {
|
135
|
+
return CreatePlaytestSubredditResponse.fromPartial(base ?? {});
|
136
|
+
},
|
137
|
+
fromPartial(object) {
|
138
|
+
const message = createBaseCreatePlaytestSubredditResponse();
|
139
|
+
message.subredditId = object.subredditId ?? "";
|
140
|
+
message.subredditName = object.subredditName ?? "";
|
141
|
+
return message;
|
142
|
+
},
|
143
|
+
};
|
144
|
+
messageTypeRegistry.set(CreatePlaytestSubredditResponse.$type, CreatePlaytestSubredditResponse);
|
145
|
+
export const PlaytestSubredditServiceName = "devvit.gateway.playtest_subreddit.PlaytestSubreddit";
|
146
|
+
export class PlaytestSubredditClientImpl {
|
147
|
+
constructor(rpc, opts) {
|
148
|
+
this.service = opts?.service || PlaytestSubredditServiceName;
|
149
|
+
this.rpc = rpc;
|
150
|
+
this.CreatePlaytestSubreddit = this.CreatePlaytestSubreddit.bind(this);
|
151
|
+
}
|
152
|
+
CreatePlaytestSubreddit(request, metadata) {
|
153
|
+
const data = CreatePlaytestSubredditRequest.encode(request).finish();
|
154
|
+
const promise = this.rpc.request(this.service, "CreatePlaytestSubreddit", data, metadata);
|
155
|
+
return promise.then((data) => CreatePlaytestSubredditResponse.decode(_m0.Reader.create(data)));
|
156
|
+
}
|
157
|
+
}
|
158
|
+
export const PlaytestSubredditDefinition = {
|
159
|
+
name: "PlaytestSubreddit",
|
160
|
+
fullName: "devvit.gateway.playtest_subreddit.PlaytestSubreddit",
|
161
|
+
methods: {
|
162
|
+
/** Create a playtest subreddit for an app */
|
163
|
+
createPlaytestSubreddit: {
|
164
|
+
name: "CreatePlaytestSubreddit",
|
165
|
+
requestType: CreatePlaytestSubredditRequest,
|
166
|
+
requestStream: false,
|
167
|
+
responseType: CreatePlaytestSubredditResponse,
|
168
|
+
responseStream: false,
|
169
|
+
options: {},
|
170
|
+
},
|
171
|
+
},
|
172
|
+
};
|
173
|
+
function isSet(value) {
|
174
|
+
return value !== null && value !== undefined;
|
175
|
+
}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import { CreatePlaytestSubredditRequest, CreatePlaytestSubredditResponse } from './playtest_subreddit.js';
|
2
|
+
interface Rpc {
|
3
|
+
request(service: string, method: string, contentType: 'application/json' | 'application/protobuf', data: object | Uint8Array): Promise<object | Uint8Array>;
|
4
|
+
}
|
5
|
+
export interface PlaytestSubredditClient {
|
6
|
+
CreatePlaytestSubreddit(request: CreatePlaytestSubredditRequest): Promise<CreatePlaytestSubredditResponse>;
|
7
|
+
}
|
8
|
+
export declare class PlaytestSubredditClientJSON implements PlaytestSubredditClient {
|
9
|
+
private readonly rpc;
|
10
|
+
constructor(rpc: Rpc);
|
11
|
+
CreatePlaytestSubreddit(request: CreatePlaytestSubredditRequest): Promise<CreatePlaytestSubredditResponse>;
|
12
|
+
}
|
13
|
+
export declare class PlaytestSubredditClientProtobuf implements PlaytestSubredditClient {
|
14
|
+
private readonly rpc;
|
15
|
+
constructor(rpc: Rpc);
|
16
|
+
CreatePlaytestSubreddit(request: CreatePlaytestSubredditRequest): Promise<CreatePlaytestSubredditResponse>;
|
17
|
+
}
|
18
|
+
export {};
|
19
|
+
//# sourceMappingURL=playtest_subreddit.twirp-client.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"playtest_subreddit.twirp-client.d.ts","sourceRoot":"","sources":["../../../../../src/types/devvit/gateway/playtest_subreddit/playtest_subreddit.twirp-client.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,8BAA8B,EAC9B,+BAA+B,EAChC,MAAM,yBAAyB,CAAC;AAMjC,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,uBAAuB;IACtC,uBAAuB,CACrB,OAAO,EAAE,8BAA8B,GACtC,OAAO,CAAC,+BAA+B,CAAC,CAAC;CAC7C;AAED,qBAAa,2BAA4B,YAAW,uBAAuB;IACzE,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAM;gBACd,GAAG,EAAE,GAAG;IAIpB,uBAAuB,CACrB,OAAO,EAAE,8BAA8B,GACtC,OAAO,CAAC,+BAA+B,CAAC;CAY5C;AAED,qBAAa,+BACX,YAAW,uBAAuB;IAElC,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAM;gBACd,GAAG,EAAE,GAAG;IAIpB,uBAAuB,CACrB,OAAO,EAAE,8BAA8B,GACtC,OAAO,CAAC,+BAA+B,CAAC;CAY5C"}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import { CreatePlaytestSubredditRequest, CreatePlaytestSubredditResponse, } from './playtest_subreddit.js';
|
2
|
+
export class PlaytestSubredditClientJSON {
|
3
|
+
constructor(rpc) {
|
4
|
+
this.rpc = rpc;
|
5
|
+
this.CreatePlaytestSubreddit.bind(this);
|
6
|
+
}
|
7
|
+
CreatePlaytestSubreddit(request) {
|
8
|
+
const data = CreatePlaytestSubredditRequest.toJSON(request);
|
9
|
+
const promise = this.rpc.request('devvit.gateway.playtest_subreddit.PlaytestSubreddit', 'CreatePlaytestSubreddit', 'application/json', data);
|
10
|
+
return promise.then((data) => CreatePlaytestSubredditResponse.fromJSON(data));
|
11
|
+
}
|
12
|
+
}
|
13
|
+
export class PlaytestSubredditClientProtobuf {
|
14
|
+
constructor(rpc) {
|
15
|
+
this.rpc = rpc;
|
16
|
+
this.CreatePlaytestSubreddit.bind(this);
|
17
|
+
}
|
18
|
+
CreatePlaytestSubreddit(request) {
|
19
|
+
const data = CreatePlaytestSubredditRequest.encode(request).finish();
|
20
|
+
const promise = this.rpc.request('devvit.gateway.playtest_subreddit.PlaytestSubreddit', 'CreatePlaytestSubreddit', 'application/protobuf', data);
|
21
|
+
return promise.then((data) => CreatePlaytestSubredditResponse.decode(data));
|
22
|
+
}
|
23
|
+
}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { TwirpContext, TwirpServer } from 'twirp-ts';
|
2
|
+
import { CreatePlaytestSubredditRequest, CreatePlaytestSubredditResponse } from './playtest_subreddit.js';
|
3
|
+
export interface PlaytestSubredditTwirp<T extends TwirpContext = TwirpContext> {
|
4
|
+
CreatePlaytestSubreddit(ctx: T, request: CreatePlaytestSubredditRequest): Promise<CreatePlaytestSubredditResponse>;
|
5
|
+
}
|
6
|
+
export declare enum PlaytestSubredditMethod {
|
7
|
+
CreatePlaytestSubreddit = "CreatePlaytestSubreddit"
|
8
|
+
}
|
9
|
+
export declare const PlaytestSubredditMethodList: PlaytestSubredditMethod[];
|
10
|
+
export declare function createPlaytestSubredditServer<T extends TwirpContext = TwirpContext>(service: PlaytestSubredditTwirp<T>): TwirpServer<PlaytestSubredditTwirp<TwirpContext<import("http").IncomingMessage, import("http").ServerResponse<import("http").IncomingMessage>>>, T>;
|
11
|
+
//# sourceMappingURL=playtest_subreddit.twirp.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"playtest_subreddit.twirp.d.ts","sourceRoot":"","sources":["../../../../../src/types/devvit/gateway/playtest_subreddit/playtest_subreddit.twirp.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,WAAW,EAOZ,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,8BAA8B,EAC9B,+BAA+B,EAChC,MAAM,yBAAyB,CAAC;AAMjC,MAAM,WAAW,sBAAsB,CAAC,CAAC,SAAS,YAAY,GAAG,YAAY;IAC3E,uBAAuB,CACrB,GAAG,EAAE,CAAC,EACN,OAAO,EAAE,8BAA8B,GACtC,OAAO,CAAC,+BAA+B,CAAC,CAAC;CAC7C;AAED,oBAAY,uBAAuB;IACjC,uBAAuB,4BAA4B;CACpD;AAED,eAAO,MAAM,2BAA2B,2BAEvC,CAAC;AAEF,wBAAgB,6BAA6B,CAC3C,CAAC,SAAS,YAAY,GAAG,YAAY,EACrC,OAAO,EAAE,sBAAsB,CAAC,CAAC,CAAC,uJAQnC"}
|