@devvit/public-api 0.11.10-next-2025-03-12-091503ed8.0 → 0.11.10
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/apis/reddit/models/Comment.d.ts.map +1 -1
- package/apis/reddit/models/Comment.js +0 -3
- package/apis/reddit/models/Post.d.ts.map +1 -1
- package/apis/reddit/models/Post.js +0 -7
- package/devvit/internals/blocks/handler/useState.d.ts.map +1 -1
- package/devvit/internals/blocks/handler/useState.js +1 -1
- package/devvit/internals/blocks/handler/useWebView.d.ts.map +1 -1
- package/devvit/internals/blocks/handler/useWebView.js +4 -14
- package/meta.json +14 -43
- package/meta.min.json +11 -40
- package/package.json +6 -6
- package/public-api.d.ts +1 -73
- package/public-api.iife.js +13 -184
- package/public-api.min.js +6 -6
- package/public-api.min.js.map +4 -4
- package/types/hooks.d.ts +0 -2
- package/types/hooks.d.ts.map +1 -1
- package/apis/reddit/common.d.ts +0 -7
- package/apis/reddit/common.d.ts.map +0 -1
- package/apis/reddit/common.js +0 -5
package/public-api.d.ts
CHANGED
|
@@ -39,7 +39,6 @@ import _m0 from 'protobufjs/minimal.js';
|
|
|
39
39
|
import { Observable } from 'rxjs';
|
|
40
40
|
import { OrderResultStatus as OrderResultStatus_2 } from '../../../../../payments.js';
|
|
41
41
|
import { RealtimeSubscriptionStatus as RealtimeSubscriptionStatus_2 } from '../../../../../index.js';
|
|
42
|
-
import { RunAs as RunAs_2 } from '../common/common_msg.js';
|
|
43
42
|
import { SetCustomPostPreviewRequest_BodyType as SetCustomPostPreviewRequest_BodyType_2 } from './linksandcomments_msg.js';
|
|
44
43
|
import { SubredditRating as SubredditRating_2 } from '../../../reddit/v2alpha/subredditv2.js';
|
|
45
44
|
import { SubredditType as SubredditType_3 } from '../../../reddit/v2alpha/subredditv2.js';
|
|
@@ -3426,8 +3425,6 @@ declare interface CommentRequest {
|
|
|
3426
3425
|
* @example "t3_abc123"
|
|
3427
3426
|
*/
|
|
3428
3427
|
thingId: string;
|
|
3429
|
-
/** Indicates who the Comment should be created as */
|
|
3430
|
-
runAs: RunAs;
|
|
3431
3428
|
}
|
|
3432
3429
|
|
|
3433
3430
|
declare const CommentRequest: {
|
|
@@ -13705,13 +13702,11 @@ declare const LinksAndCommentsDefinition: {
|
|
|
13705
13702
|
richtextJson?: string | undefined;
|
|
13706
13703
|
text?: string;
|
|
13707
13704
|
thingId?: string;
|
|
13708
|
-
runAs?: RunAs_2;
|
|
13709
13705
|
} | undefined): CommentRequest;
|
|
13710
13706
|
fromPartial(object: {
|
|
13711
13707
|
richtextJson?: string | undefined;
|
|
13712
13708
|
text?: string;
|
|
13713
13709
|
thingId?: string;
|
|
13714
|
-
runAs?: RunAs_2;
|
|
13715
13710
|
}): CommentRequest;
|
|
13716
13711
|
};
|
|
13717
13712
|
readonly requestStream: false;
|
|
@@ -14097,13 +14092,11 @@ declare const LinksAndCommentsDefinition: {
|
|
|
14097
14092
|
richtextJson?: string | undefined;
|
|
14098
14093
|
text?: string;
|
|
14099
14094
|
thingId?: string;
|
|
14100
|
-
runAs?: RunAs_2;
|
|
14101
14095
|
} | undefined): CommentRequest;
|
|
14102
14096
|
fromPartial(object: {
|
|
14103
14097
|
richtextJson?: string | undefined;
|
|
14104
14098
|
text?: string;
|
|
14105
14099
|
thingId?: string;
|
|
14106
|
-
runAs?: RunAs_2;
|
|
14107
14100
|
}): CommentRequest;
|
|
14108
14101
|
};
|
|
14109
14102
|
readonly requestStream: false;
|
|
@@ -15336,13 +15329,7 @@ declare const LinksAndCommentsDefinition: {
|
|
|
15336
15329
|
encode(message: ReportRequest, writer?: _m0.Writer): _m0.Writer;
|
|
15337
15330
|
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): ReportRequest;
|
|
15338
15331
|
fromJSON(object: any): ReportRequest;
|
|
15339
|
-
toJSON(message: ReportRequest): unknown;
|
|
15340
|
-
* Toggle Contest Mode for a Post's comments
|
|
15341
|
-
*
|
|
15342
|
-
* Contest Mode randomizes the sort order and hides the vote score for comments
|
|
15343
|
-
*
|
|
15344
|
-
* @see {@link https://www.reddit.com/dev/api#POST_api_set_contest_mode}
|
|
15345
|
-
*/
|
|
15332
|
+
toJSON(message: ReportRequest): unknown;
|
|
15346
15333
|
create(base?: {
|
|
15347
15334
|
additionalInfo?: string | undefined;
|
|
15348
15335
|
customText?: string | undefined;
|
|
@@ -16148,11 +16135,6 @@ declare const LinksAndCommentsDefinition: {
|
|
|
16148
16135
|
crosspostFullname?: string | undefined;
|
|
16149
16136
|
richtextFallback?: string | undefined;
|
|
16150
16137
|
imageUrls?: any[] | undefined;
|
|
16151
|
-
runAs?: RunAs_2;
|
|
16152
|
-
userGeneratedContent?: {
|
|
16153
|
-
text?: string;
|
|
16154
|
-
imageUrls?: string[];
|
|
16155
|
-
} | undefined;
|
|
16156
16138
|
} | undefined): SubmitRequest;
|
|
16157
16139
|
fromPartial(object: {
|
|
16158
16140
|
collectionId?: string | undefined;
|
|
@@ -16171,11 +16153,6 @@ declare const LinksAndCommentsDefinition: {
|
|
|
16171
16153
|
crosspostFullname?: string | undefined;
|
|
16172
16154
|
richtextFallback?: string | undefined;
|
|
16173
16155
|
imageUrls?: any[] | undefined;
|
|
16174
|
-
runAs?: RunAs_2;
|
|
16175
|
-
userGeneratedContent?: {
|
|
16176
|
-
text?: string;
|
|
16177
|
-
imageUrls?: string[];
|
|
16178
|
-
} | undefined;
|
|
16179
16156
|
}): SubmitRequest;
|
|
16180
16157
|
};
|
|
16181
16158
|
readonly requestStream: false;
|
|
@@ -16243,11 +16220,6 @@ declare const LinksAndCommentsDefinition: {
|
|
|
16243
16220
|
crosspostFullname?: string | undefined;
|
|
16244
16221
|
richtextFallback?: string | undefined;
|
|
16245
16222
|
imageUrls?: any[] | undefined;
|
|
16246
|
-
runAs?: RunAs_2;
|
|
16247
|
-
userGeneratedContent?: {
|
|
16248
|
-
text?: string;
|
|
16249
|
-
imageUrls?: string[];
|
|
16250
|
-
} | undefined;
|
|
16251
16223
|
} | undefined): SubmitRequest;
|
|
16252
16224
|
fromPartial(object: {
|
|
16253
16225
|
collectionId?: string | undefined;
|
|
@@ -16266,11 +16238,6 @@ declare const LinksAndCommentsDefinition: {
|
|
|
16266
16238
|
crosspostFullname?: string | undefined;
|
|
16267
16239
|
richtextFallback?: string | undefined;
|
|
16268
16240
|
imageUrls?: any[] | undefined;
|
|
16269
|
-
runAs?: RunAs_2;
|
|
16270
|
-
userGeneratedContent?: {
|
|
16271
|
-
text?: string;
|
|
16272
|
-
imageUrls?: string[];
|
|
16273
|
-
} | undefined;
|
|
16274
16241
|
}): SubmitRequest;
|
|
16275
16242
|
};
|
|
16276
16243
|
readonly requestStream: false;
|
|
@@ -36496,11 +36463,8 @@ declare namespace protos {
|
|
|
36496
36463
|
Modlog,
|
|
36497
36464
|
ModlogServiceName,
|
|
36498
36465
|
ModlogClientImpl,
|
|
36499
|
-
runAsFromJSON,
|
|
36500
|
-
runAsToJSON,
|
|
36501
36466
|
apiClientConfig_BodyTypeFromJSON,
|
|
36502
36467
|
apiClientConfig_BodyTypeToJSON,
|
|
36503
|
-
RunAs,
|
|
36504
36468
|
Listing_2 as Listing,
|
|
36505
36469
|
Listing_ListingData,
|
|
36506
36470
|
WrappedRedditObject,
|
|
@@ -36518,7 +36482,6 @@ declare namespace protos {
|
|
|
36518
36482
|
WrappedUserObject,
|
|
36519
36483
|
ApiClientConfig,
|
|
36520
36484
|
ApiClientConfig_BodyType,
|
|
36521
|
-
UserGeneratedContent,
|
|
36522
36485
|
ClearFlairTemplatesRequest,
|
|
36523
36486
|
DeleteFlairRequest,
|
|
36524
36487
|
DeleteFlairTemplateRequest,
|
|
@@ -41511,17 +41474,6 @@ declare interface Rpc_9 {
|
|
|
41511
41474
|
request(service: string, method: string, data: Uint8Array, metadata?: Metadata): Promise<Uint8Array>;
|
|
41512
41475
|
}
|
|
41513
41476
|
|
|
41514
|
-
/** Indicates who the request should be made on behalf of. Currently, only 'APP' or 'USER' types are supported. */
|
|
41515
|
-
declare enum RunAs {
|
|
41516
|
-
APP = 0,
|
|
41517
|
-
USER = 1,
|
|
41518
|
-
UNRECOGNIZED = -1
|
|
41519
|
-
}
|
|
41520
|
-
|
|
41521
|
-
declare function runAsFromJSON(object: any): RunAs;
|
|
41522
|
-
|
|
41523
|
-
declare function runAsToJSON(object: RunAs): number;
|
|
41524
|
-
|
|
41525
41477
|
/**
|
|
41526
41478
|
* Schedule a new job to run at a specific time or on a cron schedule
|
|
41527
41479
|
* @param job The job to schedule
|
|
@@ -43045,10 +42997,6 @@ declare interface SubmitRequest {
|
|
|
43045
42997
|
richtextFallback?: string | undefined;
|
|
43046
42998
|
/** If `kind` is "image" this must be set to the images URLs */
|
|
43047
42999
|
imageUrls?: Array<any> | undefined;
|
|
43048
|
-
/** Indicates who the Post should be submited as */
|
|
43049
|
-
runAs: RunAs;
|
|
43050
|
-
/** The UserGeneratedContent attached to the Post */
|
|
43051
|
-
userGeneratedContent?: UserGeneratedContent | undefined;
|
|
43052
43000
|
}
|
|
43053
43001
|
|
|
43054
43002
|
declare const SubmitRequest: {
|
|
@@ -51437,24 +51385,6 @@ declare const UserFlairV2: {
|
|
|
51437
51385
|
fromPartial(object: DeepPartial_19<UserFlairV2>): UserFlairV2;
|
|
51438
51386
|
};
|
|
51439
51387
|
|
|
51440
|
-
/** Represents data on the user's content submission */
|
|
51441
|
-
declare interface UserGeneratedContent {
|
|
51442
|
-
/** The text body of the content */
|
|
51443
|
-
text: string;
|
|
51444
|
-
/** The imageUrls attached to the content, if any */
|
|
51445
|
-
imageUrls: string[];
|
|
51446
|
-
}
|
|
51447
|
-
|
|
51448
|
-
declare const UserGeneratedContent: {
|
|
51449
|
-
$type: "devvit.plugin.redditapi.common.UserGeneratedContent";
|
|
51450
|
-
encode(message: UserGeneratedContent, writer?: _m0.Writer): _m0.Writer;
|
|
51451
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): UserGeneratedContent;
|
|
51452
|
-
fromJSON(object: any): UserGeneratedContent;
|
|
51453
|
-
toJSON(message: UserGeneratedContent): unknown;
|
|
51454
|
-
create(base?: DeepPartial_9<UserGeneratedContent>): UserGeneratedContent;
|
|
51455
|
-
fromPartial(object: DeepPartial_9<UserGeneratedContent>): UserGeneratedContent;
|
|
51456
|
-
};
|
|
51457
|
-
|
|
51458
51388
|
declare type UserLink = {
|
|
51459
51389
|
e: typeof USER_LINK_ELEMENT;
|
|
51460
51390
|
t: string;
|
|
@@ -53377,8 +53307,6 @@ export declare type UseWebViewResult<To extends JSONValue = JSONValue> = {
|
|
|
53377
53307
|
postMessage(message: To): void;
|
|
53378
53308
|
/** Initiate a request for the web view to open */
|
|
53379
53309
|
mount(): void;
|
|
53380
|
-
/** Initiate a request for the web view to be closed */
|
|
53381
|
-
unmount(): void;
|
|
53382
53310
|
};
|
|
53383
53311
|
|
|
53384
53312
|
export declare type ValidatedBooleanField = Prettify<ValidatedFormField<BooleanField, boolean>>;
|