@metatrongg/sdk 0.8.0-dev.65a4da4 → 0.8.0-dev.6be671d
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/LICENSE +1 -0
- package/dist/browser/index.d.ts +1269 -231
- package/dist/browser/index.js +1 -1
- package/dist/contracts/index.d.ts +12386 -4277
- package/dist/contracts/index.js +1 -1
- package/dist/index.js +1 -1
- package/dist/node/index.d.ts +1365 -272
- package/dist/node/index.js +1 -1
- package/dist/react/index.d.ts +4 -4
- package/dist/react/index.js +1 -1
- package/dist/webhook/express.d.ts +3 -3
- package/dist/webhook/express.js +1 -1
- package/dist/webhook/fastify.d.ts +2 -2
- package/dist/webhook/fastify.js +1 -1
- package/dist/webhook/hono.d.ts +3 -3
- package/dist/webhook/hono.js +1 -1
- package/dist/webhook/index.js +1 -1
- package/package.json +114 -113
package/dist/node/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as z from "zod";
|
|
|
2
2
|
|
|
3
3
|
//#region src/core/dedup.d.ts
|
|
4
4
|
type InflightDedup = {
|
|
5
|
-
readonly run: <T>(key: string,
|
|
5
|
+
readonly run: <T>(key: string, function_: () => Promise<T>) => Promise<T>;
|
|
6
6
|
};
|
|
7
7
|
declare function createInflightDedup(): InflightDedup;
|
|
8
8
|
//#endregion
|
|
@@ -89,8 +89,8 @@ type TransportContext = {
|
|
|
89
89
|
readonly rateLimiter?: RateLimiter | undefined;
|
|
90
90
|
readonly dedupe?: InflightDedup | undefined;
|
|
91
91
|
};
|
|
92
|
-
declare function sendJson<T>(
|
|
93
|
-
declare function send(
|
|
92
|
+
declare function sendJson<T>(context: TransportContext, options: RequestOptions): Promise<T>;
|
|
93
|
+
declare function send(context: TransportContext, options: RequestOptions): Promise<Response>;
|
|
94
94
|
declare function parseJson<T>(response: Response): Promise<T>;
|
|
95
95
|
//#endregion
|
|
96
96
|
//#region src/generated/types.gen.d.ts
|
|
@@ -114,7 +114,7 @@ type Username = string;
|
|
|
114
114
|
type DisplayName = string | null;
|
|
115
115
|
type Bio = string | null;
|
|
116
116
|
type WebsiteUrl = string | null;
|
|
117
|
-
type BannerVariant = "yellow" | "green" | "blue" | "white" | "black";
|
|
117
|
+
type BannerVariant = "yellow" | "green" | "blue" | "white" | "black" | "red";
|
|
118
118
|
type AdminRole = "super-admin" | "admin" | "read-only" | null;
|
|
119
119
|
type PresenceStatusMode = "auto" | "online" | "offline";
|
|
120
120
|
type PlatformEnvironment = "development" | "production";
|
|
@@ -129,7 +129,7 @@ type OauthAuthorizationServerMetadata = {
|
|
|
129
129
|
grant_types_supported: Array<"authorization_code" | "refresh_token" | "client_credentials">;
|
|
130
130
|
code_challenge_methods_supported: Array<"S256">;
|
|
131
131
|
token_endpoint_auth_methods_supported: Array<"client_secret_basic" | "client_secret_post" | "none">;
|
|
132
|
-
scopes_supported: Array<"openid" | "profile" | "payments:charge" | "inventory:read" | "developer:read" | "developer:apps" | "developer:pages">;
|
|
132
|
+
scopes_supported: Array<"openid" | "profile" | "payments:charge" | "inventory:read" | "social:read" | "developer:read" | "developer:apps" | "developer:pages">;
|
|
133
133
|
};
|
|
134
134
|
type OauthClientRegistrationResponse = {
|
|
135
135
|
client_id: string;
|
|
@@ -169,7 +169,9 @@ type OauthErrorResponse = {
|
|
|
169
169
|
type OauthUserInfoResponse = {
|
|
170
170
|
sub: string;
|
|
171
171
|
name: string | null;
|
|
172
|
+
preferred_username: string | null;
|
|
172
173
|
picture: string | null;
|
|
174
|
+
wallet_address: string | null;
|
|
173
175
|
};
|
|
174
176
|
type OauthPaymentChargeResponse = ({
|
|
175
177
|
status: "completed";
|
|
@@ -288,7 +290,16 @@ type OauthPaymentIntentContext = {
|
|
|
288
290
|
studioXHandle: string | null;
|
|
289
291
|
};
|
|
290
292
|
} | null;
|
|
293
|
+
environment: "development" | "production";
|
|
294
|
+
onramp?: {
|
|
295
|
+
kind: "bridge";
|
|
296
|
+
from: PaymentNetwork;
|
|
297
|
+
to: PaymentNetwork;
|
|
298
|
+
} | {
|
|
299
|
+
kind: "insufficient";
|
|
300
|
+
};
|
|
291
301
|
};
|
|
302
|
+
type PaymentNetwork = "ethereum" | "base" | "solana";
|
|
292
303
|
type OauthPaymentIntentSignResponse = {
|
|
293
304
|
chain: string;
|
|
294
305
|
chainId: number;
|
|
@@ -318,6 +329,13 @@ type OauthPaymentIntentCompleteSigned = {
|
|
|
318
329
|
type OauthPaymentIntentCompleteOffline = {
|
|
319
330
|
method: "offline";
|
|
320
331
|
};
|
|
332
|
+
type OauthPaymentIntentSolanaPrepareResponse = {
|
|
333
|
+
transaction: string;
|
|
334
|
+
payer: string;
|
|
335
|
+
};
|
|
336
|
+
type OauthPaymentIntentSolanaCompleteRequest = {
|
|
337
|
+
signedTransaction: string;
|
|
338
|
+
};
|
|
321
339
|
type ListAppPaymentAuthorizationsResponse = {
|
|
322
340
|
authorizations: Array<AppPaymentAuthorizationItem>;
|
|
323
341
|
};
|
|
@@ -376,9 +394,16 @@ type PublicAppPage = {
|
|
|
376
394
|
chapters: AppPageChapters;
|
|
377
395
|
links: AppPageLinks;
|
|
378
396
|
studio: PublicAppPageStudio;
|
|
397
|
+
platforms: AppPagePlatforms;
|
|
398
|
+
gameType: AppPageGameType;
|
|
399
|
+
ageRating: AppPageAgeRating;
|
|
400
|
+
languages: AppPageLanguages;
|
|
401
|
+
releaseStatus: AppPageReleaseStatus;
|
|
402
|
+
paymentsMode: AppPagePaymentsMode;
|
|
379
403
|
oauthScopes: Array<string>;
|
|
380
404
|
chains: Array<string>;
|
|
381
405
|
publishedAt: string;
|
|
406
|
+
updatedAt: string;
|
|
382
407
|
};
|
|
383
408
|
type AppPageCategories = Array<"adventure" | "battle_royale" | "board" | "cards" | "casino" | "casual" | "fighting" | "idle" | "mmo" | "moba" | "platformer" | "prediction" | "puzzle" | "racing" | "rhythm" | "roguelike" | "rpg" | "rts" | "sandbox" | "shooter" | "simulation" | "sports" | "strategy" | "survival" | "tools" | "tower_defense" | "visual_novel" | "other">;
|
|
384
409
|
type AppPageTagline = string;
|
|
@@ -401,12 +426,132 @@ type AppPageLink = {
|
|
|
401
426
|
order: number;
|
|
402
427
|
};
|
|
403
428
|
type PublicAppPageStudio = {
|
|
429
|
+
ownerUserId: string | null;
|
|
404
430
|
name: string | null;
|
|
405
431
|
logoUrl: string | null;
|
|
406
432
|
websiteUrl: string | null;
|
|
407
433
|
xHandle: string | null;
|
|
408
434
|
githubUrl: string | null;
|
|
409
435
|
};
|
|
436
|
+
type AppPagePlatforms = Array<"web" | "ios" | "android" | "pc" | "playstation" | "xbox" | "switch">;
|
|
437
|
+
type AppPageGameType = "single_player" | "multiplayer" | "both" | null;
|
|
438
|
+
type AppPageAgeRating = "everyone" | "13_plus" | "16_plus" | "18_plus" | null;
|
|
439
|
+
type AppPageLanguages = Array<"en" | "es" | "fr" | "de" | "pt" | "it" | "ru" | "ja" | "ko" | "zh" | "hi" | "ar" | "tr" | "vi" | "id" | "th" | "pl" | "nl">;
|
|
440
|
+
type AppPageReleaseStatus = "live" | "open_beta" | "coming_soon";
|
|
441
|
+
type AppPagePaymentsMode = "tron" | "onchain" | "both" | null;
|
|
442
|
+
type PublicBipPage = {
|
|
443
|
+
appId: string;
|
|
444
|
+
slug: AppPageSlug;
|
|
445
|
+
appName: string;
|
|
446
|
+
appLogoUrl: string | null;
|
|
447
|
+
categories: AppPageCategories;
|
|
448
|
+
tagline: AppPageTagline;
|
|
449
|
+
bannerUrl: string | null;
|
|
450
|
+
discordUrl: string | null;
|
|
451
|
+
twitterUrl: string | null;
|
|
452
|
+
redditUrl: string | null;
|
|
453
|
+
telegramUrl: string | null;
|
|
454
|
+
gallery: AppPageGallery;
|
|
455
|
+
chapters: AppPageChapters;
|
|
456
|
+
links: AppPageLinks;
|
|
457
|
+
studio: PublicAppPageStudio;
|
|
458
|
+
platforms: AppPagePlatforms;
|
|
459
|
+
gameType: AppPageGameType;
|
|
460
|
+
ageRating: AppPageAgeRating;
|
|
461
|
+
languages: AppPageLanguages;
|
|
462
|
+
releaseStatus: AppPageReleaseStatus;
|
|
463
|
+
publishedAt: string;
|
|
464
|
+
updatedAt: string;
|
|
465
|
+
};
|
|
466
|
+
type BipUpdateListResponse = {
|
|
467
|
+
updates: Array<BipUpdate>;
|
|
468
|
+
total: number;
|
|
469
|
+
hasMore: boolean;
|
|
470
|
+
};
|
|
471
|
+
type BipUpdate = {
|
|
472
|
+
id: string;
|
|
473
|
+
appId: string;
|
|
474
|
+
body: BipUpdateBody;
|
|
475
|
+
attachments: BipUpdateAttachments;
|
|
476
|
+
reactions: BipUpdateReactionCounts;
|
|
477
|
+
commentCount: number;
|
|
478
|
+
createdAt: string;
|
|
479
|
+
updatedAt: string;
|
|
480
|
+
};
|
|
481
|
+
type BipUpdateBody = string;
|
|
482
|
+
type BipUpdateAttachments = Array<BipUpdateAttachment>;
|
|
483
|
+
type BipUpdateAttachment = {
|
|
484
|
+
url: string;
|
|
485
|
+
kind: "image" | "video";
|
|
486
|
+
order: number;
|
|
487
|
+
};
|
|
488
|
+
type BipUpdateReactionCounts = {
|
|
489
|
+
up: number;
|
|
490
|
+
down: number;
|
|
491
|
+
};
|
|
492
|
+
type BipUpdateCommentListResponse = {
|
|
493
|
+
comments: Array<BipUpdateComment>;
|
|
494
|
+
total: number;
|
|
495
|
+
hasMore: boolean;
|
|
496
|
+
};
|
|
497
|
+
type BipUpdateComment = {
|
|
498
|
+
id: string;
|
|
499
|
+
body: BipUpdateCommentBody;
|
|
500
|
+
author: ReviewAuthor;
|
|
501
|
+
createdAt: string;
|
|
502
|
+
};
|
|
503
|
+
type BipUpdateCommentBody = string;
|
|
504
|
+
type ReviewAuthor = {
|
|
505
|
+
userId: string;
|
|
506
|
+
handle: string | null;
|
|
507
|
+
name: string | null;
|
|
508
|
+
avatarUrl: string | null;
|
|
509
|
+
};
|
|
510
|
+
type BipInterestCountResponse = {
|
|
511
|
+
interestCount: number;
|
|
512
|
+
};
|
|
513
|
+
type BipEngagementResponse = {
|
|
514
|
+
interested: boolean;
|
|
515
|
+
subscribed: boolean;
|
|
516
|
+
interestCount: number;
|
|
517
|
+
};
|
|
518
|
+
type MyBipUpdateReactionsResponse = {
|
|
519
|
+
reactions: Array<MyBipUpdateReaction>;
|
|
520
|
+
};
|
|
521
|
+
type MyBipUpdateReaction = {
|
|
522
|
+
updateId: string;
|
|
523
|
+
vote: "up" | "down";
|
|
524
|
+
};
|
|
525
|
+
type SetBipUpdateReactionResponse = {
|
|
526
|
+
reactions: BipUpdateReactionCounts;
|
|
527
|
+
vote: BipUpdateVote;
|
|
528
|
+
};
|
|
529
|
+
type BipUpdateVote = "up" | "down" | null;
|
|
530
|
+
type SetBipUpdateReactionRequest = {
|
|
531
|
+
vote: BipUpdateVote;
|
|
532
|
+
};
|
|
533
|
+
type CreateBipUpdateCommentResponse = {
|
|
534
|
+
comment: BipUpdateComment;
|
|
535
|
+
commentCount: number;
|
|
536
|
+
};
|
|
537
|
+
type DeleteBipUpdateCommentResponse = {
|
|
538
|
+
commentCount: number;
|
|
539
|
+
};
|
|
540
|
+
type CreateBipUpdateRequest = {
|
|
541
|
+
body: BipUpdateBody;
|
|
542
|
+
attachments?: BipUpdateAttachments;
|
|
543
|
+
};
|
|
544
|
+
type UpdateBipUpdateRequest = {
|
|
545
|
+
body?: BipUpdateBody;
|
|
546
|
+
attachments?: BipUpdateAttachments;
|
|
547
|
+
};
|
|
548
|
+
type DeleteBipUpdateResponse = {
|
|
549
|
+
deleted: true;
|
|
550
|
+
};
|
|
551
|
+
type BipUpdateMediaUploadResponse = {
|
|
552
|
+
url: string;
|
|
553
|
+
kind: "image" | "video";
|
|
554
|
+
};
|
|
410
555
|
type ReviewListResponse = {
|
|
411
556
|
aggregate: ReviewAggregate;
|
|
412
557
|
reviews: Array<Review>;
|
|
@@ -414,38 +559,43 @@ type ReviewListResponse = {
|
|
|
414
559
|
hasMore: boolean;
|
|
415
560
|
};
|
|
416
561
|
type ReviewAggregate = {
|
|
417
|
-
average: number | null;
|
|
418
562
|
count: number;
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
1: number;
|
|
423
|
-
2: number;
|
|
424
|
-
3: number;
|
|
425
|
-
4: number;
|
|
426
|
-
5: number;
|
|
563
|
+
recommendedCount: number;
|
|
564
|
+
recommendedPct: number | null;
|
|
565
|
+
summaryLabel: ReviewSummaryLabel;
|
|
427
566
|
};
|
|
567
|
+
type ReviewSummaryLabel = "overwhelmingly_positive" | "very_positive" | "positive" | "mostly_positive" | "mixed" | "mostly_negative" | "negative" | "overwhelmingly_negative" | null;
|
|
428
568
|
type Review = {
|
|
429
569
|
id: string;
|
|
430
|
-
|
|
570
|
+
recommended: ReviewRecommended;
|
|
431
571
|
body: ReviewBody;
|
|
572
|
+
reactions: ReviewReactionCounts;
|
|
573
|
+
tippedCents: number;
|
|
574
|
+
commentCount: number;
|
|
432
575
|
author: ReviewAuthor;
|
|
576
|
+
authorStats: ReviewerStats;
|
|
433
577
|
developerReply: ReviewReply;
|
|
434
578
|
createdAt: string;
|
|
435
579
|
updatedAt: string;
|
|
436
580
|
};
|
|
437
|
-
type
|
|
581
|
+
type ReviewRecommended = boolean;
|
|
438
582
|
type ReviewBody = string;
|
|
439
|
-
type
|
|
440
|
-
|
|
441
|
-
|
|
583
|
+
type ReviewReactionCounts = {
|
|
584
|
+
helpful: number;
|
|
585
|
+
unhelpful: number;
|
|
586
|
+
funny: number;
|
|
587
|
+
};
|
|
588
|
+
type ReviewerStats = {
|
|
589
|
+
playtimeSecondsThisGame: number;
|
|
590
|
+
gamesPlayed: number;
|
|
591
|
+
reviewsWritten: number;
|
|
442
592
|
};
|
|
443
593
|
type ReviewReply = {
|
|
444
594
|
body: ReviewReplyBody;
|
|
445
595
|
repliedAt: string;
|
|
446
596
|
} | null;
|
|
447
597
|
type ReviewReplyBody = string;
|
|
448
|
-
type ReviewSort = "newest" | "oldest" | "
|
|
598
|
+
type ReviewSort = "newest" | "oldest" | "helpful";
|
|
449
599
|
type MyReviewResponse = {
|
|
450
600
|
eligible: boolean;
|
|
451
601
|
eligibleVia: ReviewEligibilityReason;
|
|
@@ -455,15 +605,67 @@ type MyReviewResponse = {
|
|
|
455
605
|
type ReviewEligibilityReason = "payment" | "reward" | null;
|
|
456
606
|
type OwnReview = {
|
|
457
607
|
id: string;
|
|
458
|
-
|
|
608
|
+
recommended: ReviewRecommended;
|
|
459
609
|
body: ReviewBody;
|
|
460
610
|
createdAt: string;
|
|
461
611
|
updatedAt: string;
|
|
462
612
|
} | null;
|
|
463
613
|
type UpsertReviewRequest = {
|
|
464
|
-
|
|
614
|
+
recommended: ReviewRecommended;
|
|
465
615
|
body: ReviewBody;
|
|
466
616
|
};
|
|
617
|
+
type MyReviewReactionsResponse = {
|
|
618
|
+
reactions: Array<MyReviewReaction>;
|
|
619
|
+
};
|
|
620
|
+
type MyReviewReaction = {
|
|
621
|
+
reviewId: string;
|
|
622
|
+
vote: ReviewVote;
|
|
623
|
+
funny: boolean;
|
|
624
|
+
};
|
|
625
|
+
type ReviewVote = "helpful" | "unhelpful" | null;
|
|
626
|
+
type SetReviewReactionResponse = {
|
|
627
|
+
reactions: ReviewReactionCounts;
|
|
628
|
+
vote: ReviewVote;
|
|
629
|
+
funny: boolean;
|
|
630
|
+
};
|
|
631
|
+
type SetReviewReactionRequest = {
|
|
632
|
+
vote: ReviewVote;
|
|
633
|
+
funny: boolean;
|
|
634
|
+
};
|
|
635
|
+
type TipReviewResponse = {
|
|
636
|
+
status: "completed";
|
|
637
|
+
amountCents: number;
|
|
638
|
+
balanceCents: number;
|
|
639
|
+
tippedCents: number;
|
|
640
|
+
};
|
|
641
|
+
type TipReviewRequest = {
|
|
642
|
+
amountCents: number;
|
|
643
|
+
note?: string;
|
|
644
|
+
challengeId?: string;
|
|
645
|
+
signature?: string;
|
|
646
|
+
};
|
|
647
|
+
type ReviewCommentListResponse = {
|
|
648
|
+
comments: Array<ReviewComment>;
|
|
649
|
+
total: number;
|
|
650
|
+
hasMore: boolean;
|
|
651
|
+
};
|
|
652
|
+
type ReviewComment = {
|
|
653
|
+
id: string;
|
|
654
|
+
body: ReviewCommentBody;
|
|
655
|
+
author: ReviewAuthor;
|
|
656
|
+
createdAt: string;
|
|
657
|
+
};
|
|
658
|
+
type ReviewCommentBody = string;
|
|
659
|
+
type CreateReviewCommentResponse = {
|
|
660
|
+
comment: ReviewComment;
|
|
661
|
+
commentCount: number;
|
|
662
|
+
};
|
|
663
|
+
type CreateReviewCommentRequest = {
|
|
664
|
+
body: ReviewCommentBody;
|
|
665
|
+
};
|
|
666
|
+
type DeleteReviewCommentResponse = {
|
|
667
|
+
commentCount: number;
|
|
668
|
+
};
|
|
467
669
|
type ReviewReplyResponse = {
|
|
468
670
|
developerReply: ReviewReply;
|
|
469
671
|
};
|
|
@@ -568,8 +770,16 @@ type ActivityRow = ({
|
|
|
568
770
|
} & ActivityRowTronPot) | ({
|
|
569
771
|
kind: "tron_cashout";
|
|
570
772
|
} & ActivityRowTronCashout) | ({
|
|
773
|
+
kind: "tron_transfer";
|
|
774
|
+
} & ActivityRowTronTransfer) | ({
|
|
571
775
|
kind: "referral_earning";
|
|
572
|
-
} & ActivityRowReferralEarning)
|
|
776
|
+
} & ActivityRowReferralEarning) | ({
|
|
777
|
+
kind: "nft_charge";
|
|
778
|
+
} & ActivityRowNftCharge) | ({
|
|
779
|
+
kind: "solana_stake";
|
|
780
|
+
} & ActivityRowSolanaStake) | ({
|
|
781
|
+
kind: "solana_pot_leg";
|
|
782
|
+
} & ActivityRowSolanaPotLeg);
|
|
573
783
|
type ActivityRowPayment = {
|
|
574
784
|
kind: "payment";
|
|
575
785
|
groupId: string | null;
|
|
@@ -815,6 +1025,8 @@ type ActivityRowTronPot = {
|
|
|
815
1025
|
role: "incoming" | "outgoing";
|
|
816
1026
|
leg: "stake" | "payout" | "dev_cut" | "purchase" | "referral";
|
|
817
1027
|
amountCents: number;
|
|
1028
|
+
usdCents: number;
|
|
1029
|
+
status: "settled";
|
|
818
1030
|
app: {
|
|
819
1031
|
id: string;
|
|
820
1032
|
name: string;
|
|
@@ -822,8 +1034,16 @@ type ActivityRowTronPot = {
|
|
|
822
1034
|
slug: string | null;
|
|
823
1035
|
bannerUrl: string | null;
|
|
824
1036
|
} | null;
|
|
1037
|
+
involvedUsers?: Array<ActivityTronInvolvedUser> | null;
|
|
825
1038
|
metadata?: PaymentMetadata | null;
|
|
826
1039
|
};
|
|
1040
|
+
type ActivityTronInvolvedUser = {
|
|
1041
|
+
userId: string;
|
|
1042
|
+
handle: string | null;
|
|
1043
|
+
displayName: string | null;
|
|
1044
|
+
role: "stake" | "payout" | "dev_cut" | "purchase" | "referral";
|
|
1045
|
+
amountCents: number;
|
|
1046
|
+
};
|
|
827
1047
|
type ActivityRowTronCashout = {
|
|
828
1048
|
kind: "tron_cashout";
|
|
829
1049
|
groupId: string | null;
|
|
@@ -841,6 +1061,20 @@ type ActivityRowTronCashout = {
|
|
|
841
1061
|
rejectionReason: string | null;
|
|
842
1062
|
settledAt: string | null;
|
|
843
1063
|
};
|
|
1064
|
+
type ActivityRowTronTransfer = {
|
|
1065
|
+
kind: "tron_transfer";
|
|
1066
|
+
groupId: string | null;
|
|
1067
|
+
id: string;
|
|
1068
|
+
occurredAt: string;
|
|
1069
|
+
role: "incoming" | "outgoing";
|
|
1070
|
+
amountCents: number;
|
|
1071
|
+
usdCents: number;
|
|
1072
|
+
status: "settled";
|
|
1073
|
+
counterpartyUserId: string | null;
|
|
1074
|
+
counterpartyHandle: string | null;
|
|
1075
|
+
counterpartyDisplayName: string | null;
|
|
1076
|
+
note: string | null;
|
|
1077
|
+
};
|
|
844
1078
|
type ActivityRowReferralEarning = {
|
|
845
1079
|
kind: "referral_earning";
|
|
846
1080
|
groupId: string | null;
|
|
@@ -857,6 +1091,72 @@ type ActivityRowReferralEarning = {
|
|
|
857
1091
|
logIndex: number;
|
|
858
1092
|
usdCents: number | null;
|
|
859
1093
|
};
|
|
1094
|
+
type ActivityRowNftCharge = {
|
|
1095
|
+
kind: "nft_charge";
|
|
1096
|
+
groupId: string | null;
|
|
1097
|
+
id: string;
|
|
1098
|
+
occurredAt: string;
|
|
1099
|
+
role: "outgoing";
|
|
1100
|
+
chargeKind: "registration" | "mint" | "transfer_gas";
|
|
1101
|
+
amountCents: number;
|
|
1102
|
+
usdCents: number;
|
|
1103
|
+
status: "settled";
|
|
1104
|
+
collectionAddress: string | null;
|
|
1105
|
+
tokenId: string | null;
|
|
1106
|
+
counterpartyUserId: string | null;
|
|
1107
|
+
counterpartyHandle: string | null;
|
|
1108
|
+
counterpartyDisplayName: string | null;
|
|
1109
|
+
};
|
|
1110
|
+
type ActivityRowSolanaStake = {
|
|
1111
|
+
kind: "solana_stake";
|
|
1112
|
+
groupId: string | null;
|
|
1113
|
+
id: string;
|
|
1114
|
+
chain: string;
|
|
1115
|
+
occurredAt: string;
|
|
1116
|
+
role: "outgoing" | "incoming";
|
|
1117
|
+
amount: string;
|
|
1118
|
+
token: string;
|
|
1119
|
+
potId: string | null;
|
|
1120
|
+
usdCents: number;
|
|
1121
|
+
status: "completed";
|
|
1122
|
+
txHash: string | null;
|
|
1123
|
+
app: {
|
|
1124
|
+
id: string;
|
|
1125
|
+
name: string;
|
|
1126
|
+
logoUrl: string | null;
|
|
1127
|
+
slug: string | null;
|
|
1128
|
+
bannerUrl: string | null;
|
|
1129
|
+
} | null;
|
|
1130
|
+
stakerUserId?: string | null;
|
|
1131
|
+
stakerHandle?: string | null;
|
|
1132
|
+
stakerDisplayName?: string | null;
|
|
1133
|
+
metadata?: PaymentMetadata | null;
|
|
1134
|
+
};
|
|
1135
|
+
type ActivityRowSolanaPotLeg = {
|
|
1136
|
+
kind: "solana_pot_leg";
|
|
1137
|
+
groupId: string | null;
|
|
1138
|
+
id: string;
|
|
1139
|
+
chain: string;
|
|
1140
|
+
occurredAt: string;
|
|
1141
|
+
role: "outgoing" | "incoming";
|
|
1142
|
+
beneficiary: string;
|
|
1143
|
+
potId: string | null;
|
|
1144
|
+
amount: string;
|
|
1145
|
+
token: string;
|
|
1146
|
+
usdCents: number | null;
|
|
1147
|
+
status: "settled";
|
|
1148
|
+
app: {
|
|
1149
|
+
id: string;
|
|
1150
|
+
name: string;
|
|
1151
|
+
logoUrl: string | null;
|
|
1152
|
+
slug: string | null;
|
|
1153
|
+
bannerUrl: string | null;
|
|
1154
|
+
} | null;
|
|
1155
|
+
txHash: string | null;
|
|
1156
|
+
recipientUserId?: string | null;
|
|
1157
|
+
recipientHandle?: string | null;
|
|
1158
|
+
recipientDisplayName?: string | null;
|
|
1159
|
+
};
|
|
860
1160
|
type OutstandingResponse = {
|
|
861
1161
|
rows: Array<OutstandingByToken>;
|
|
862
1162
|
};
|
|
@@ -906,7 +1206,7 @@ type TronLedgerResponse = {
|
|
|
906
1206
|
};
|
|
907
1207
|
type TronLedgerEntry = {
|
|
908
1208
|
id: string;
|
|
909
|
-
kind: "deposit" | "pot_stake" | "pot_payout" | "dev_earning" | "cashout_hold" | "cashout_release" | "dispute_freeze" | "dispute_unfreeze" | "hosted_billing" | "store_purchase" | "referral_earning";
|
|
1209
|
+
kind: "deposit" | "pot_stake" | "pot_payout" | "dev_earning" | "cashout_hold" | "cashout_release" | "dispute_freeze" | "dispute_unfreeze" | "hosted_billing" | "store_purchase" | "referral_earning" | "peer_transfer" | "nft_registration" | "nft_mint" | "nft_gas";
|
|
910
1210
|
amountCents: number;
|
|
911
1211
|
currency: string;
|
|
912
1212
|
createdAt: string;
|
|
@@ -921,6 +1221,45 @@ type TronDepositResponse = {
|
|
|
921
1221
|
type TronDepositRequest = {
|
|
922
1222
|
amountCents: number;
|
|
923
1223
|
};
|
|
1224
|
+
type TronTransferResponse = {
|
|
1225
|
+
status: "completed";
|
|
1226
|
+
amountCents: number;
|
|
1227
|
+
balanceCents: number;
|
|
1228
|
+
recipient: {
|
|
1229
|
+
userId: string;
|
|
1230
|
+
handle: string | null;
|
|
1231
|
+
displayName: string | null;
|
|
1232
|
+
};
|
|
1233
|
+
};
|
|
1234
|
+
type TronTransferRequest = {
|
|
1235
|
+
recipientUserId: string;
|
|
1236
|
+
amountCents: number;
|
|
1237
|
+
note?: string;
|
|
1238
|
+
challengeId?: string;
|
|
1239
|
+
signature?: string;
|
|
1240
|
+
threadId?: string;
|
|
1241
|
+
};
|
|
1242
|
+
type TronSecuritySetting = {
|
|
1243
|
+
requireSignature: boolean;
|
|
1244
|
+
};
|
|
1245
|
+
type TronTransferChallengeResponse = ({
|
|
1246
|
+
required: false;
|
|
1247
|
+
} & TronTransferChallengeNotRequired) | ({
|
|
1248
|
+
required: true;
|
|
1249
|
+
} & TronTransferChallengeRequired);
|
|
1250
|
+
type TronTransferChallengeNotRequired = {
|
|
1251
|
+
required: false;
|
|
1252
|
+
};
|
|
1253
|
+
type TronTransferChallengeRequired = {
|
|
1254
|
+
required: true;
|
|
1255
|
+
challengeId: string;
|
|
1256
|
+
message: string;
|
|
1257
|
+
expiresAt: string;
|
|
1258
|
+
};
|
|
1259
|
+
type TronTransferChallengeRequest = {
|
|
1260
|
+
recipientUserId: string;
|
|
1261
|
+
amountCents: number;
|
|
1262
|
+
};
|
|
924
1263
|
type TronGameBalanceResponse = {
|
|
925
1264
|
balanceCents: number;
|
|
926
1265
|
rakeBps: number;
|
|
@@ -1053,12 +1392,15 @@ type WalletListResponse = {
|
|
|
1053
1392
|
wallets: Array<WalletItem>;
|
|
1054
1393
|
};
|
|
1055
1394
|
type WalletChainList = Array<{
|
|
1056
|
-
id: "ethereum-mainnet" | "base-mainnet" | "ethereum-sepolia";
|
|
1395
|
+
id: "ethereum-mainnet" | "base-mainnet" | "ethereum-sepolia" | "base-sepolia" | "solana-mainnet" | "solana-devnet";
|
|
1057
1396
|
displayName: string;
|
|
1058
|
-
|
|
1397
|
+
family: "evm" | "solana";
|
|
1398
|
+
nativeSymbol: string;
|
|
1399
|
+
chainId?: number;
|
|
1059
1400
|
}>;
|
|
1060
1401
|
type WalletItem = {
|
|
1061
|
-
address: string;
|
|
1402
|
+
address: string | string;
|
|
1403
|
+
family: "evm" | "solana";
|
|
1062
1404
|
label: WalletLabel;
|
|
1063
1405
|
kind: "personal" | "app";
|
|
1064
1406
|
app: WalletAppLink;
|
|
@@ -1075,6 +1417,9 @@ type WalletBalances = {
|
|
|
1075
1417
|
"ethereum-mainnet"?: WalletChainBalance;
|
|
1076
1418
|
"base-mainnet"?: WalletChainBalance;
|
|
1077
1419
|
"ethereum-sepolia"?: WalletChainBalance;
|
|
1420
|
+
"base-sepolia"?: WalletChainBalance;
|
|
1421
|
+
"solana-mainnet"?: WalletChainBalance;
|
|
1422
|
+
"solana-devnet"?: WalletChainBalance;
|
|
1078
1423
|
};
|
|
1079
1424
|
type WalletChainBalance = {
|
|
1080
1425
|
native: string;
|
|
@@ -1084,12 +1429,14 @@ type WalletDelegationStatus = {
|
|
|
1084
1429
|
mode: WalletDelegationMode;
|
|
1085
1430
|
caps: WalletDelegationCaps;
|
|
1086
1431
|
policyId: string | null;
|
|
1432
|
+
slippageBps: DelegationSlippageBps;
|
|
1087
1433
|
};
|
|
1088
1434
|
type WalletDelegationMode = "infinite" | "custom" | "scoped" | null;
|
|
1089
1435
|
type WalletDelegationCaps = {
|
|
1090
1436
|
native: string;
|
|
1091
1437
|
usdc: string;
|
|
1092
1438
|
} | null;
|
|
1439
|
+
type DelegationSlippageBps = number | null;
|
|
1093
1440
|
type WalletLabelUpdateResponse = {
|
|
1094
1441
|
address: string;
|
|
1095
1442
|
label: WalletLabel;
|
|
@@ -1163,6 +1510,7 @@ type ThreadLastMessagePreview = {
|
|
|
1163
1510
|
url: string;
|
|
1164
1511
|
count: number;
|
|
1165
1512
|
} | null;
|
|
1513
|
+
transaction?: MessageTransactionTronTransfer | MessageTransactionNftTransfer | null;
|
|
1166
1514
|
sentAt: string;
|
|
1167
1515
|
} | null;
|
|
1168
1516
|
type MessageEnvelope = {
|
|
@@ -1174,6 +1522,20 @@ type MessageEnvelope = {
|
|
|
1174
1522
|
iv: string;
|
|
1175
1523
|
ct: string;
|
|
1176
1524
|
} | null;
|
|
1525
|
+
type MessageTransactionTronTransfer = {
|
|
1526
|
+
kind: "tron_transfer";
|
|
1527
|
+
amountCents: number;
|
|
1528
|
+
recipientUserId: string;
|
|
1529
|
+
};
|
|
1530
|
+
type MessageTransactionNftTransfer = {
|
|
1531
|
+
kind: "nft_transfer";
|
|
1532
|
+
recipientUserId: string;
|
|
1533
|
+
collectionAddress: string;
|
|
1534
|
+
tokenId: string;
|
|
1535
|
+
amount: string;
|
|
1536
|
+
itemName: string | null;
|
|
1537
|
+
imageAssetId?: string | null;
|
|
1538
|
+
};
|
|
1177
1539
|
type GroupThreadSummary = {
|
|
1178
1540
|
kind: "group";
|
|
1179
1541
|
id: string;
|
|
@@ -1220,6 +1582,7 @@ type MessageItem = {
|
|
|
1220
1582
|
id: string;
|
|
1221
1583
|
threadId: string;
|
|
1222
1584
|
senderUserId: string;
|
|
1585
|
+
transaction?: MessageTransactionTronTransfer | MessageTransactionNftTransfer | null;
|
|
1223
1586
|
body: string;
|
|
1224
1587
|
envelope?: MessageEnvelope;
|
|
1225
1588
|
sentAt: string;
|
|
@@ -1388,47 +1751,322 @@ type PlaytimeAppEntry = {
|
|
|
1388
1751
|
sessionCount: number;
|
|
1389
1752
|
totalDurationSeconds: number;
|
|
1390
1753
|
};
|
|
1391
|
-
type PlaytimeTimeseries = {
|
|
1392
|
-
from: string;
|
|
1393
|
-
to: string;
|
|
1394
|
-
buckets: Array<PlaytimeTimeseriesBucket>;
|
|
1754
|
+
type PlaytimeTimeseries = {
|
|
1755
|
+
from: string;
|
|
1756
|
+
to: string;
|
|
1757
|
+
buckets: Array<PlaytimeTimeseriesBucket>;
|
|
1758
|
+
};
|
|
1759
|
+
type PlaytimeTimeseriesBucket = {
|
|
1760
|
+
date: string;
|
|
1761
|
+
appId: PlaySessionAppId;
|
|
1762
|
+
sessionCount: number;
|
|
1763
|
+
totalDurationSeconds: number;
|
|
1764
|
+
};
|
|
1765
|
+
type InventoryListResponse = {
|
|
1766
|
+
items: Array<InventoryHolding>;
|
|
1767
|
+
};
|
|
1768
|
+
type InventoryHolding = {
|
|
1769
|
+
collectionId: string;
|
|
1770
|
+
collectionAddress: string;
|
|
1771
|
+
chain: string;
|
|
1772
|
+
kind: "erc721" | "erc1155";
|
|
1773
|
+
tokenId: string;
|
|
1774
|
+
amount: string;
|
|
1775
|
+
name: string | null;
|
|
1776
|
+
description: string | null;
|
|
1777
|
+
imageAssetId: string | null;
|
|
1778
|
+
bannerAssetId: string | null;
|
|
1779
|
+
devMetadata: {
|
|
1780
|
+
[key: string]: unknown;
|
|
1781
|
+
};
|
|
1782
|
+
appId: string | null;
|
|
1783
|
+
appName: string | null;
|
|
1784
|
+
appLogoUrl: string | null;
|
|
1785
|
+
};
|
|
1786
|
+
type InventoryPendingPermitListResponse = {
|
|
1787
|
+
permits: Array<InventoryPendingPermit>;
|
|
1788
|
+
};
|
|
1789
|
+
type InventoryPendingPermit = {
|
|
1790
|
+
id: string;
|
|
1791
|
+
appId: string;
|
|
1792
|
+
itemId: string;
|
|
1793
|
+
amount: string;
|
|
1794
|
+
priceCents: number | null;
|
|
1795
|
+
gasSponsored: boolean;
|
|
1796
|
+
environment: "development" | "production";
|
|
1797
|
+
createdAt: string;
|
|
1798
|
+
tokenId: string;
|
|
1799
|
+
name: string | null;
|
|
1800
|
+
description: string | null;
|
|
1801
|
+
imageAssetId: string | null;
|
|
1802
|
+
chain: string;
|
|
1803
|
+
collectionAddress: string;
|
|
1804
|
+
kind: "erc721" | "erc1155";
|
|
1805
|
+
};
|
|
1806
|
+
type InventoryPermitRedeemResult = {
|
|
1807
|
+
mint: MintRequestResult;
|
|
1808
|
+
charge: {
|
|
1809
|
+
currency: "tron";
|
|
1810
|
+
gasCents: number;
|
|
1811
|
+
priceCents: number;
|
|
1812
|
+
totalCents: number;
|
|
1813
|
+
gasPaidBy: "user" | "developer";
|
|
1814
|
+
};
|
|
1815
|
+
};
|
|
1816
|
+
type MintRequestResult = {
|
|
1817
|
+
mintRequestId: string;
|
|
1818
|
+
txHash: string;
|
|
1819
|
+
status: "submitted" | "completed";
|
|
1820
|
+
mintedTokenId: string | null;
|
|
1821
|
+
};
|
|
1822
|
+
type MintRequestInput = {
|
|
1823
|
+
collectionAddress: string;
|
|
1824
|
+
chain: string;
|
|
1825
|
+
toWallet?: string;
|
|
1826
|
+
toUserId?: string;
|
|
1827
|
+
tokenId?: string;
|
|
1828
|
+
amount?: string;
|
|
1829
|
+
};
|
|
1830
|
+
type InventoryCollectionListResponse = {
|
|
1831
|
+
collections: Array<InventoryCollectionSummary>;
|
|
1832
|
+
};
|
|
1833
|
+
type InventoryCollectionSummary = {
|
|
1834
|
+
id: string;
|
|
1835
|
+
chain: string;
|
|
1836
|
+
collectionAddress: string;
|
|
1837
|
+
kind: "erc721" | "erc1155";
|
|
1838
|
+
name: string | null;
|
|
1839
|
+
environment: "development" | "production";
|
|
1840
|
+
};
|
|
1841
|
+
type InventoryRegistrationQuote = {
|
|
1842
|
+
itemCount: number;
|
|
1843
|
+
baselineUsdCents: number;
|
|
1844
|
+
gasUsdCents: number;
|
|
1845
|
+
tron: {
|
|
1846
|
+
baselineCents: number;
|
|
1847
|
+
gasCents: number;
|
|
1848
|
+
totalCents: number;
|
|
1849
|
+
};
|
|
1850
|
+
eth: {
|
|
1851
|
+
baselineWei: string;
|
|
1852
|
+
gasWei: string;
|
|
1853
|
+
totalWei: string;
|
|
1854
|
+
};
|
|
1855
|
+
};
|
|
1856
|
+
type InventoryItemRegistrationInput = {
|
|
1857
|
+
collectionAddress: string;
|
|
1858
|
+
chain: string;
|
|
1859
|
+
items: Array<InventoryItemRegistrationSpec>;
|
|
1860
|
+
};
|
|
1861
|
+
type InventoryItemRegistrationSpec = {
|
|
1862
|
+
name?: string | null;
|
|
1863
|
+
description?: string | null;
|
|
1864
|
+
devMetadata?: {
|
|
1865
|
+
[key: string]: unknown;
|
|
1866
|
+
};
|
|
1867
|
+
supplyType?: InventorySupplyType;
|
|
1868
|
+
maxSupply?: string | null;
|
|
1869
|
+
active?: boolean;
|
|
1870
|
+
};
|
|
1871
|
+
type InventorySupplyType = "capped" | "flexible" | "unlimited";
|
|
1872
|
+
type InventoryItemRegistrationResult = {
|
|
1873
|
+
items: Array<InventoryItemRecord>;
|
|
1874
|
+
charge: {
|
|
1875
|
+
currency: "tron";
|
|
1876
|
+
amountCents: number;
|
|
1877
|
+
baselineCents: number;
|
|
1878
|
+
gasCents: number;
|
|
1879
|
+
addItemTxHash: string;
|
|
1880
|
+
};
|
|
1881
|
+
};
|
|
1882
|
+
type InventoryItemRecord = {
|
|
1883
|
+
id: string;
|
|
1884
|
+
collectionId: string;
|
|
1885
|
+
collectionAddress: string;
|
|
1886
|
+
chain: string;
|
|
1887
|
+
kind: "erc721" | "erc1155";
|
|
1888
|
+
tokenId: string;
|
|
1889
|
+
name: string | null;
|
|
1890
|
+
description: string | null;
|
|
1891
|
+
imageAssetId: string | null;
|
|
1892
|
+
bannerAssetId: string | null;
|
|
1893
|
+
devMetadata: {
|
|
1894
|
+
[key: string]: unknown;
|
|
1895
|
+
};
|
|
1896
|
+
supplyType: InventorySupplyType | null;
|
|
1897
|
+
maxSupply: string | null;
|
|
1898
|
+
active: boolean;
|
|
1899
|
+
};
|
|
1900
|
+
type InventoryItemListResponse = {
|
|
1901
|
+
items: Array<InventoryItemRecord>;
|
|
1902
|
+
};
|
|
1903
|
+
type InventoryMintPermitRecord = {
|
|
1904
|
+
id: string;
|
|
1905
|
+
appId: string;
|
|
1906
|
+
itemId: string;
|
|
1907
|
+
userId: string;
|
|
1908
|
+
amount: string;
|
|
1909
|
+
priceCents: number | null;
|
|
1910
|
+
gasSponsored: boolean;
|
|
1911
|
+
status: "pending" | "redeemed" | "revoked";
|
|
1912
|
+
createdAt: string;
|
|
1913
|
+
};
|
|
1914
|
+
type InventoryMintPermitCreateInput = {
|
|
1915
|
+
toUserId: string;
|
|
1916
|
+
amount?: string;
|
|
1917
|
+
priceCents?: number | null;
|
|
1918
|
+
gasSponsored?: boolean;
|
|
1919
|
+
};
|
|
1920
|
+
type InventoryItemHoldersResponse = {
|
|
1921
|
+
stats: InventoryItemStats;
|
|
1922
|
+
holders: Array<InventoryItemHolder>;
|
|
1923
|
+
};
|
|
1924
|
+
type InventoryItemStats = {
|
|
1925
|
+
holderCount: number;
|
|
1926
|
+
walletCount: number;
|
|
1927
|
+
totalHeld: string;
|
|
1928
|
+
};
|
|
1929
|
+
type InventoryItemHolder = {
|
|
1930
|
+
walletAddress: string;
|
|
1931
|
+
userId: string | null;
|
|
1932
|
+
amount: string;
|
|
1933
|
+
};
|
|
1934
|
+
type InventoryVaultPermitRecord = {
|
|
1935
|
+
id: string;
|
|
1936
|
+
appId: string;
|
|
1937
|
+
itemId: string;
|
|
1938
|
+
userId: string;
|
|
1939
|
+
direction: "vault_in" | "withdraw";
|
|
1940
|
+
lockKind: "vault" | "burn" | null;
|
|
1941
|
+
amount: string;
|
|
1942
|
+
gasSponsored: boolean;
|
|
1943
|
+
status: "pending" | "redeemed" | "revoked";
|
|
1944
|
+
custodyId: string | null;
|
|
1945
|
+
createdAt: string;
|
|
1946
|
+
};
|
|
1947
|
+
type InventoryVaultPermitCreateInput = {
|
|
1948
|
+
toUserId: string;
|
|
1949
|
+
lockKind: "vault" | "burn";
|
|
1950
|
+
amount?: string;
|
|
1951
|
+
gasSponsored?: boolean;
|
|
1952
|
+
};
|
|
1953
|
+
type InventoryWithdrawPermitCreateInput = {
|
|
1954
|
+
custodyId: string;
|
|
1955
|
+
};
|
|
1956
|
+
type InventoryPendingVaultPermitListResponse = {
|
|
1957
|
+
permits: Array<InventoryPendingVaultPermit>;
|
|
1958
|
+
};
|
|
1959
|
+
type InventoryPendingVaultPermit = {
|
|
1960
|
+
id: string;
|
|
1961
|
+
appId: string;
|
|
1962
|
+
itemId: string;
|
|
1963
|
+
direction: "vault_in" | "withdraw";
|
|
1964
|
+
lockKind: "vault" | "burn" | null;
|
|
1965
|
+
amount: string;
|
|
1966
|
+
gasSponsored: boolean;
|
|
1967
|
+
environment: "development" | "production";
|
|
1968
|
+
custodyId: string | null;
|
|
1969
|
+
createdAt: string;
|
|
1970
|
+
tokenId: string;
|
|
1971
|
+
name: string | null;
|
|
1972
|
+
description: string | null;
|
|
1973
|
+
imageAssetId: string | null;
|
|
1974
|
+
chain: string;
|
|
1975
|
+
collectionAddress: string;
|
|
1976
|
+
kind: "erc721" | "erc1155";
|
|
1977
|
+
};
|
|
1978
|
+
type InventorySignedVaultPermit = {
|
|
1979
|
+
permitId: string;
|
|
1980
|
+
direction: "vault_in" | "withdraw";
|
|
1981
|
+
vault: string;
|
|
1982
|
+
collection: string;
|
|
1983
|
+
user: string;
|
|
1984
|
+
tokenId: string;
|
|
1985
|
+
amount: string;
|
|
1986
|
+
lockKind: "vault" | "burn" | null;
|
|
1987
|
+
destination: string | null;
|
|
1988
|
+
deadline: number;
|
|
1989
|
+
signature: string;
|
|
1990
|
+
};
|
|
1991
|
+
type InventoryRelayedVaultQuoteResponse = {
|
|
1992
|
+
direction: "vault_in" | "withdraw";
|
|
1993
|
+
collection: string;
|
|
1994
|
+
vault: string;
|
|
1995
|
+
chainId: number;
|
|
1996
|
+
user: string;
|
|
1997
|
+
tokenId: string;
|
|
1998
|
+
amount: string;
|
|
1999
|
+
nonce: string | null;
|
|
2000
|
+
deadline: number;
|
|
2001
|
+
feeCents: number;
|
|
2002
|
+
gasWei: string;
|
|
2003
|
+
gasPaidBy: "developer" | "user";
|
|
2004
|
+
requiresUserSignature: boolean;
|
|
2005
|
+
};
|
|
2006
|
+
type InventoryRelayedVaultSubmitResponse = {
|
|
2007
|
+
ok: boolean;
|
|
2008
|
+
txHash: string;
|
|
2009
|
+
chargedCents: number;
|
|
2010
|
+
gasPaidBy: "developer" | "user";
|
|
2011
|
+
};
|
|
2012
|
+
type InventoryRelayedVaultSubmitRequest = {
|
|
2013
|
+
userSignature?: string;
|
|
2014
|
+
deadline?: number;
|
|
2015
|
+
};
|
|
2016
|
+
type InventoryNftTransferQuoteResponse = {
|
|
2017
|
+
collection: string;
|
|
2018
|
+
chainId: number;
|
|
2019
|
+
from: string;
|
|
2020
|
+
to: string;
|
|
2021
|
+
tokenId: string;
|
|
2022
|
+
amount: string;
|
|
2023
|
+
nonce: string;
|
|
2024
|
+
deadline: number;
|
|
2025
|
+
feeCents: number;
|
|
2026
|
+
gasWei: string;
|
|
2027
|
+
selfPayAvailable: boolean;
|
|
2028
|
+
};
|
|
2029
|
+
type InventoryNftTransferQuoteRequest = {
|
|
2030
|
+
toUserId: string;
|
|
2031
|
+
collection: string;
|
|
2032
|
+
tokenId: string;
|
|
2033
|
+
amount?: string;
|
|
2034
|
+
};
|
|
2035
|
+
type InventoryNftTransferResponse = {
|
|
2036
|
+
ok: boolean;
|
|
2037
|
+
txHash: string;
|
|
2038
|
+
chargedCents: number;
|
|
1395
2039
|
};
|
|
1396
|
-
type
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
2040
|
+
type InventoryNftTransferRequest = {
|
|
2041
|
+
toUserId: string;
|
|
2042
|
+
collection: string;
|
|
2043
|
+
tokenId: string;
|
|
2044
|
+
amount?: string;
|
|
2045
|
+
deadline: number;
|
|
2046
|
+
userSignature: string;
|
|
2047
|
+
threadId?: string;
|
|
1401
2048
|
};
|
|
1402
|
-
type
|
|
1403
|
-
|
|
2049
|
+
type InventoryVaultCustodyListResponse = {
|
|
2050
|
+
custody: Array<InventoryVaultCustody>;
|
|
1404
2051
|
};
|
|
1405
|
-
type
|
|
2052
|
+
type InventoryVaultCustody = {
|
|
2053
|
+
id: string;
|
|
1406
2054
|
collectionId: string;
|
|
1407
2055
|
collectionAddress: string;
|
|
1408
2056
|
chain: string;
|
|
1409
2057
|
kind: "erc721" | "erc1155";
|
|
1410
2058
|
tokenId: string;
|
|
1411
2059
|
amount: string;
|
|
2060
|
+
lockKind: "vault" | "burn";
|
|
2061
|
+
vaultAddress: string;
|
|
2062
|
+
createdAt: string;
|
|
1412
2063
|
name: string | null;
|
|
2064
|
+
description: string | null;
|
|
1413
2065
|
imageAssetId: string | null;
|
|
1414
|
-
bannerAssetId: string | null;
|
|
1415
|
-
devMetadata: {
|
|
1416
|
-
[key: string]: unknown;
|
|
1417
|
-
};
|
|
1418
2066
|
};
|
|
1419
|
-
type
|
|
1420
|
-
|
|
2067
|
+
type InventoryVaultForceWithdrawResponse = {
|
|
2068
|
+
ok: boolean;
|
|
1421
2069
|
txHash: string;
|
|
1422
|
-
status: "submitted" | "completed";
|
|
1423
|
-
mintedTokenId: string | null;
|
|
1424
|
-
};
|
|
1425
|
-
type MintRequestInput = {
|
|
1426
|
-
collectionAddress: string;
|
|
1427
|
-
chain: string;
|
|
1428
|
-
toWallet?: string;
|
|
1429
|
-
toUserId?: string;
|
|
1430
|
-
tokenId?: string;
|
|
1431
|
-
amount?: string;
|
|
1432
2070
|
};
|
|
1433
2071
|
type NotificationListResponse = {
|
|
1434
2072
|
notifications: Array<NotificationItem>;
|
|
@@ -1458,6 +2096,18 @@ type NotificationItem = {
|
|
|
1458
2096
|
payload: AppPageRejectedNotificationPayload;
|
|
1459
2097
|
read: boolean;
|
|
1460
2098
|
createdAt: string;
|
|
2099
|
+
} | {
|
|
2100
|
+
id: string;
|
|
2101
|
+
kind: "bip_update_published";
|
|
2102
|
+
payload: BipUpdatePublishedNotificationPayload;
|
|
2103
|
+
read: boolean;
|
|
2104
|
+
createdAt: string;
|
|
2105
|
+
} | {
|
|
2106
|
+
id: string;
|
|
2107
|
+
kind: "bip_now_playable";
|
|
2108
|
+
payload: BipNowPlayableNotificationPayload;
|
|
2109
|
+
read: boolean;
|
|
2110
|
+
createdAt: string;
|
|
1461
2111
|
} | {
|
|
1462
2112
|
id: string;
|
|
1463
2113
|
kind: "app_participant_invite";
|
|
@@ -1488,14 +2138,25 @@ type FriendAcceptedNotificationPayload = {
|
|
|
1488
2138
|
type AppPageApprovedNotificationPayload = {
|
|
1489
2139
|
appId: string;
|
|
1490
2140
|
appName: string;
|
|
1491
|
-
scope: "publish" | "changes";
|
|
2141
|
+
scope: "publish" | "changes" | "bip_publish";
|
|
1492
2142
|
};
|
|
1493
2143
|
type AppPageRejectedNotificationPayload = {
|
|
1494
2144
|
appId: string;
|
|
1495
2145
|
appName: string;
|
|
1496
|
-
scope: "publish" | "changes";
|
|
2146
|
+
scope: "publish" | "changes" | "bip_publish";
|
|
1497
2147
|
notes: string;
|
|
1498
2148
|
};
|
|
2149
|
+
type BipUpdatePublishedNotificationPayload = {
|
|
2150
|
+
appId: string;
|
|
2151
|
+
appName: string;
|
|
2152
|
+
appSlug: string | null;
|
|
2153
|
+
updateId: string;
|
|
2154
|
+
};
|
|
2155
|
+
type BipNowPlayableNotificationPayload = {
|
|
2156
|
+
appId: string;
|
|
2157
|
+
appName: string;
|
|
2158
|
+
appSlug: string | null;
|
|
2159
|
+
};
|
|
1499
2160
|
type AppParticipantInviteNotificationPayload = {
|
|
1500
2161
|
appId: string;
|
|
1501
2162
|
appName: string;
|
|
@@ -1525,6 +2186,9 @@ type FriendListItem = {
|
|
|
1525
2186
|
onlineStatus: OnlineStatus;
|
|
1526
2187
|
};
|
|
1527
2188
|
type OnlineStatus = "online" | "offline";
|
|
2189
|
+
type AppFriendListResponse = {
|
|
2190
|
+
friends: Array<ThreadParticipant>;
|
|
2191
|
+
};
|
|
1528
2192
|
type FriendRequestDecision = {
|
|
1529
2193
|
decision: "accept" | "reject";
|
|
1530
2194
|
};
|
|
@@ -1597,7 +2261,7 @@ type ProfileRecentReview = {
|
|
|
1597
2261
|
appId: string;
|
|
1598
2262
|
appName: string;
|
|
1599
2263
|
appLogoUrl: string | null;
|
|
1600
|
-
|
|
2264
|
+
recommended: boolean;
|
|
1601
2265
|
body: string;
|
|
1602
2266
|
createdAt: string;
|
|
1603
2267
|
};
|
|
@@ -1654,17 +2318,20 @@ type CreateDeveloperAppChain = {
|
|
|
1654
2318
|
};
|
|
1655
2319
|
type UpdateDeveloperApp = {
|
|
1656
2320
|
name?: DeveloperAppName;
|
|
2321
|
+
slug?: AppPageSlug | null;
|
|
1657
2322
|
logoUrl?: string | null;
|
|
1658
2323
|
testAccess?: "private" | "public";
|
|
1659
2324
|
redirectUris?: Array<string>;
|
|
1660
2325
|
embedOrigins?: Array<EmbedOrigin>;
|
|
1661
2326
|
acceptedCurrencies?: AcceptedCurrencies;
|
|
2327
|
+
acceptedNetworks?: AcceptedNetworks;
|
|
1662
2328
|
paymentStatusWebhookUrl?: string | null;
|
|
1663
2329
|
paymentStatusWebhookUrlTest?: string | null;
|
|
1664
2330
|
};
|
|
1665
2331
|
type EmbedOrigin = string;
|
|
1666
2332
|
type AcceptedCurrencies = Array<PlatformCurrency>;
|
|
1667
2333
|
type PlatformCurrency = "eth" | "tron";
|
|
2334
|
+
type AcceptedNetworks = Array<PaymentNetwork> | null;
|
|
1668
2335
|
type DeveloperLogoUploadResponse = {
|
|
1669
2336
|
logoUrl: string | null;
|
|
1670
2337
|
};
|
|
@@ -1727,7 +2394,7 @@ type DeveloperAppWalletsResponse = {
|
|
|
1727
2394
|
};
|
|
1728
2395
|
type DeveloperAppWalletItem = {
|
|
1729
2396
|
chain: string;
|
|
1730
|
-
address: string;
|
|
2397
|
+
address: string | string;
|
|
1731
2398
|
custody: "server" | null;
|
|
1732
2399
|
walletId: string | null;
|
|
1733
2400
|
autoSweepEnabled: boolean;
|
|
@@ -1748,7 +2415,7 @@ type DeveloperAppProvisionWalletResponse = {
|
|
|
1748
2415
|
chain: string;
|
|
1749
2416
|
custody: "server";
|
|
1750
2417
|
walletId: string;
|
|
1751
|
-
address: string;
|
|
2418
|
+
address: string | string;
|
|
1752
2419
|
};
|
|
1753
2420
|
type DeveloperAppWithdrawResponse = {
|
|
1754
2421
|
appId: string;
|
|
@@ -1902,6 +2569,7 @@ type DeveloperProductionRequestPayload = {
|
|
|
1902
2569
|
type DeveloperAppItem = {
|
|
1903
2570
|
id: string;
|
|
1904
2571
|
name: DeveloperAppName;
|
|
2572
|
+
slug: AppPageSlug | null;
|
|
1905
2573
|
logoUrl: string | null;
|
|
1906
2574
|
environment: "development" | "production";
|
|
1907
2575
|
productionApprovedAt: string | null;
|
|
@@ -1910,6 +2578,7 @@ type DeveloperAppItem = {
|
|
|
1910
2578
|
redirectUris: Array<string>;
|
|
1911
2579
|
embedOrigins: Array<EmbedOrigin>;
|
|
1912
2580
|
acceptedCurrencies: AcceptedCurrencies;
|
|
2581
|
+
acceptedNetworks: AcceptedNetworks;
|
|
1913
2582
|
payoutAddresses: Array<DeveloperAppPayoutAddressItem>;
|
|
1914
2583
|
keys: Array<DeveloperAppKeyItem>;
|
|
1915
2584
|
pendingProductionRequestId: string | null;
|
|
@@ -1953,15 +2622,29 @@ type AppPageDraft = {
|
|
|
1953
2622
|
gallery: AppPageGallery;
|
|
1954
2623
|
chapters: AppPageChapters;
|
|
1955
2624
|
links: AppPageLinks;
|
|
2625
|
+
platforms: AppPagePlatforms;
|
|
2626
|
+
gameType: AppPageGameType;
|
|
2627
|
+
ageRating: AppPageAgeRating;
|
|
2628
|
+
languages: AppPageLanguages;
|
|
2629
|
+
releaseStatus: AppPageReleaseStatus;
|
|
1956
2630
|
firstPublishedAt: string | null;
|
|
1957
2631
|
reviewedAt: string | null;
|
|
1958
2632
|
reviewNotes: string | null;
|
|
1959
2633
|
hiddenAt: string | null;
|
|
1960
2634
|
hiddenReasonPublic: string | null;
|
|
1961
2635
|
pendingReview: boolean;
|
|
2636
|
+
bip: AppPageBipState;
|
|
2637
|
+
};
|
|
2638
|
+
type AppPageBipState = {
|
|
2639
|
+
enabled: boolean;
|
|
2640
|
+
status: "draft" | "pending_review" | "published" | "hidden";
|
|
2641
|
+
firstPublishedAt: string | null;
|
|
2642
|
+
reviewedAt: string | null;
|
|
2643
|
+
reviewNotes: string | null;
|
|
2644
|
+
hiddenAt: string | null;
|
|
2645
|
+
hiddenReasonPublic: string | null;
|
|
1962
2646
|
};
|
|
1963
2647
|
type UpdateAppPage = {
|
|
1964
|
-
slug?: AppPageSlug | null;
|
|
1965
2648
|
categories?: AppPageCategories;
|
|
1966
2649
|
tagline?: AppPageTagline | null;
|
|
1967
2650
|
bannerUrl?: string | null;
|
|
@@ -1975,10 +2658,18 @@ type UpdateAppPage = {
|
|
|
1975
2658
|
gallery?: AppPageGallery;
|
|
1976
2659
|
chapters?: AppPageChapters;
|
|
1977
2660
|
links?: AppPageLinks;
|
|
2661
|
+
platforms?: AppPagePlatforms;
|
|
2662
|
+
gameType?: AppPageGameType;
|
|
2663
|
+
ageRating?: AppPageAgeRating;
|
|
2664
|
+
languages?: AppPageLanguages;
|
|
2665
|
+
releaseStatus?: AppPageReleaseStatus;
|
|
1978
2666
|
};
|
|
1979
2667
|
type AppPageGalleryUploadResponse = {
|
|
1980
2668
|
url: string;
|
|
1981
2669
|
};
|
|
2670
|
+
type AppPageBipToggle = {
|
|
2671
|
+
enabled: boolean;
|
|
2672
|
+
};
|
|
1982
2673
|
type AdminActivePlayersResponse = {
|
|
1983
2674
|
players: Array<AdminActivePlayer>;
|
|
1984
2675
|
total: number;
|
|
@@ -2117,6 +2808,11 @@ type AdminAppPageItem = {
|
|
|
2117
2808
|
hiddenAt: string | null;
|
|
2118
2809
|
hiddenReasonInternal: string | null;
|
|
2119
2810
|
pendingChangesSubmittedAt: string | null;
|
|
2811
|
+
bipEnabled: boolean;
|
|
2812
|
+
bipStatus: "draft" | "pending_review" | "published" | "hidden";
|
|
2813
|
+
bipFirstPublishedAt: string | null;
|
|
2814
|
+
bipHiddenAt: string | null;
|
|
2815
|
+
openReportCount: number;
|
|
2120
2816
|
};
|
|
2121
2817
|
type AdminAppPageStatusResponse = {
|
|
2122
2818
|
status: "draft" | "pending_review" | "published" | "hidden";
|
|
@@ -2142,6 +2838,25 @@ type AdminAppPageDiffField = {
|
|
|
2142
2838
|
from: string;
|
|
2143
2839
|
to: string;
|
|
2144
2840
|
};
|
|
2841
|
+
type AdminAppPageBipStatusResponse = {
|
|
2842
|
+
bipStatus: "draft" | "pending_review" | "published" | "hidden";
|
|
2843
|
+
};
|
|
2844
|
+
type AdminAppContentReportListResponse = {
|
|
2845
|
+
reports: Array<AdminAppContentReportItem>;
|
|
2846
|
+
total: number;
|
|
2847
|
+
hasMore: boolean;
|
|
2848
|
+
};
|
|
2849
|
+
type AdminAppContentReportItem = {
|
|
2850
|
+
id: string;
|
|
2851
|
+
category: AppContentReportCategory;
|
|
2852
|
+
details: string | null;
|
|
2853
|
+
status: AppContentReportStatus;
|
|
2854
|
+
acknowledgedAt: string | null;
|
|
2855
|
+
createdAt: string;
|
|
2856
|
+
appId: string;
|
|
2857
|
+
appName: string;
|
|
2858
|
+
appSlug: string | null;
|
|
2859
|
+
};
|
|
2145
2860
|
type PlatformFeesResponse = {
|
|
2146
2861
|
purchaseFeeBps: number;
|
|
2147
2862
|
stakeFeeBps: number;
|
|
@@ -2322,6 +3037,13 @@ type AppealResolveRequest = {
|
|
|
2322
3037
|
decision: "refund" | "dismiss";
|
|
2323
3038
|
notes?: string;
|
|
2324
3039
|
};
|
|
3040
|
+
type PaymentRatesResponse = {
|
|
3041
|
+
asOf: string;
|
|
3042
|
+
ethUsd: number | null;
|
|
3043
|
+
solUsd: number | null;
|
|
3044
|
+
solLamportsPerCent: number | null;
|
|
3045
|
+
tronUsdPerToken: number;
|
|
3046
|
+
};
|
|
2325
3047
|
type AppealFileResponse = {
|
|
2326
3048
|
appealId: string;
|
|
2327
3049
|
paymentId: string;
|
|
@@ -2370,7 +3092,7 @@ type OauthPaymentPayoutRequest = {
|
|
|
2370
3092
|
metadata?: PaymentMetadata;
|
|
2371
3093
|
};
|
|
2372
3094
|
type OauthPaymentDistributeResponse = {
|
|
2373
|
-
distributionId
|
|
3095
|
+
distributionId?: string;
|
|
2374
3096
|
txHash: string;
|
|
2375
3097
|
blockNumber: string;
|
|
2376
3098
|
potId: string;
|
|
@@ -2444,229 +3166,262 @@ type PostMeDeveloperAppsByAppIdPageThumbnailVideoResponses = {
|
|
|
2444
3166
|
type PostMeDeveloperAppsByAppIdPageThumbnailVideoResponse = PostMeDeveloperAppsByAppIdPageThumbnailVideoResponses[keyof PostMeDeveloperAppsByAppIdPageThumbnailVideoResponses];
|
|
2445
3167
|
//#endregion
|
|
2446
3168
|
//#region src/account/avatar.d.ts
|
|
2447
|
-
declare function uploadAvatar(
|
|
3169
|
+
declare function uploadAvatar(context: TransportContext, input: {
|
|
2448
3170
|
readonly bearer: string;
|
|
2449
3171
|
readonly file: Blob | ArrayBufferView | ArrayBuffer;
|
|
2450
3172
|
readonly filename: string;
|
|
2451
3173
|
readonly contentType: string;
|
|
2452
3174
|
}): Promise<AuthUser>;
|
|
2453
|
-
declare function deleteAvatar(
|
|
3175
|
+
declare function deleteAvatar(context: TransportContext, input: {
|
|
2454
3176
|
readonly bearer: string;
|
|
2455
3177
|
}): Promise<AuthUser>;
|
|
2456
3178
|
//#endregion
|
|
2457
3179
|
//#region src/account/giphy.d.ts
|
|
2458
|
-
declare function searchGiphy(
|
|
3180
|
+
declare function searchGiphy(context: TransportContext, input: {
|
|
2459
3181
|
readonly bearer: string;
|
|
2460
3182
|
readonly q: string;
|
|
2461
3183
|
}): Promise<GiphySearchResponse>;
|
|
2462
3184
|
//#endregion
|
|
2463
3185
|
//#region src/account/payment-authorizations.d.ts
|
|
2464
|
-
declare function listPaymentAuthorizations(
|
|
3186
|
+
declare function listPaymentAuthorizations(context: TransportContext, input: {
|
|
2465
3187
|
readonly bearer: string;
|
|
2466
3188
|
}): Promise<ListAppPaymentAuthorizationsResponse>;
|
|
2467
|
-
declare function updatePaymentAuthorization(
|
|
3189
|
+
declare function updatePaymentAuthorization(context: TransportContext, input: {
|
|
2468
3190
|
readonly bearer: string;
|
|
2469
3191
|
readonly consentId: string;
|
|
2470
3192
|
readonly body: UpdateAppPaymentAuthorization;
|
|
2471
3193
|
}): Promise<void>;
|
|
2472
|
-
declare function revokePaymentAuthorization(
|
|
3194
|
+
declare function revokePaymentAuthorization(context: TransportContext, input: {
|
|
2473
3195
|
readonly bearer: string;
|
|
2474
3196
|
readonly consentId: string;
|
|
2475
3197
|
}): Promise<void>;
|
|
2476
3198
|
//#endregion
|
|
2477
3199
|
//#region src/account/presence-heartbeat.d.ts
|
|
2478
|
-
declare function sendPresenceHeartbeat(
|
|
3200
|
+
declare function sendPresenceHeartbeat(context: TransportContext, input: {
|
|
2479
3201
|
readonly bearer: string;
|
|
2480
3202
|
}): Promise<WebPresenceHeartbeatAck>;
|
|
2481
3203
|
//#endregion
|
|
2482
3204
|
//#region src/account/profile.d.ts
|
|
2483
|
-
declare function updateProfile(
|
|
3205
|
+
declare function updateProfile(context: TransportContext, input: {
|
|
2484
3206
|
readonly bearer: string;
|
|
2485
3207
|
readonly body: ProfileUpdate;
|
|
2486
3208
|
}): Promise<AuthUser>;
|
|
2487
3209
|
//#endregion
|
|
2488
3210
|
//#region src/admin/active-players.d.ts
|
|
2489
|
-
declare function listActivePlayers(
|
|
3211
|
+
declare function listActivePlayers(context: TransportContext, input: {
|
|
2490
3212
|
readonly bearer: string;
|
|
2491
3213
|
}): Promise<AdminActivePlayersResponse>;
|
|
2492
3214
|
//#endregion
|
|
2493
3215
|
//#region src/admin/app-pages.d.ts
|
|
2494
|
-
declare function listAppPages(
|
|
3216
|
+
declare function listAppPages(context: TransportContext, input: {
|
|
2495
3217
|
readonly bearer: string;
|
|
2496
|
-
readonly status?: "draft" | "pending_review" | "published" | "hidden" | "all" | "pending_changes";
|
|
3218
|
+
readonly status?: "draft" | "pending_review" | "published" | "hidden" | "all" | "pending_changes" | "bip_pending_review";
|
|
2497
3219
|
}): Promise<AdminAppPageListResponse>;
|
|
2498
|
-
declare function getAppPageChanges(
|
|
3220
|
+
declare function getAppPageChanges(context: TransportContext, input: {
|
|
2499
3221
|
readonly bearer: string;
|
|
2500
3222
|
readonly appId: string;
|
|
2501
3223
|
}): Promise<AdminAppPageDiffResponse>;
|
|
2502
|
-
declare function reviewAppPageChanges(
|
|
3224
|
+
declare function reviewAppPageChanges(context: TransportContext, input: {
|
|
2503
3225
|
readonly bearer: string;
|
|
2504
3226
|
readonly appId: string;
|
|
2505
3227
|
readonly body: ReviewAppPage;
|
|
2506
3228
|
}): Promise<AdminAppPageStatusResponse>;
|
|
2507
|
-
declare function hideAppPage(
|
|
3229
|
+
declare function hideAppPage(context: TransportContext, input: {
|
|
2508
3230
|
readonly bearer: string;
|
|
2509
3231
|
readonly appId: string;
|
|
2510
3232
|
readonly body: HideAppPage;
|
|
2511
3233
|
}): Promise<AdminAppPageStatusResponse>;
|
|
2512
|
-
declare function unhideAppPage(
|
|
3234
|
+
declare function unhideAppPage(context: TransportContext, input: {
|
|
2513
3235
|
readonly bearer: string;
|
|
2514
3236
|
readonly appId: string;
|
|
2515
3237
|
}): Promise<AdminAppPageStatusResponse>;
|
|
2516
|
-
declare function reviewAppPage(
|
|
3238
|
+
declare function reviewAppPage(context: TransportContext, input: {
|
|
2517
3239
|
readonly bearer: string;
|
|
2518
3240
|
readonly appId: string;
|
|
2519
3241
|
readonly body: ReviewAppPage;
|
|
2520
3242
|
}): Promise<AdminAppPageStatusResponse>;
|
|
3243
|
+
declare function reviewAppPageBip(context: TransportContext, input: {
|
|
3244
|
+
readonly bearer: string;
|
|
3245
|
+
readonly appId: string;
|
|
3246
|
+
readonly body: ReviewAppPage;
|
|
3247
|
+
}): Promise<AdminAppPageBipStatusResponse>;
|
|
3248
|
+
declare function hideAppPageBip(context: TransportContext, input: {
|
|
3249
|
+
readonly bearer: string;
|
|
3250
|
+
readonly appId: string;
|
|
3251
|
+
readonly body: HideAppPage;
|
|
3252
|
+
}): Promise<AdminAppPageBipStatusResponse>;
|
|
3253
|
+
declare function unhideAppPageBip(context: TransportContext, input: {
|
|
3254
|
+
readonly bearer: string;
|
|
3255
|
+
readonly appId: string;
|
|
3256
|
+
}): Promise<AdminAppPageBipStatusResponse>;
|
|
2521
3257
|
//#endregion
|
|
2522
3258
|
//#region src/admin/appeals.d.ts
|
|
2523
|
-
declare function listAppealQueue(
|
|
3259
|
+
declare function listAppealQueue(context: TransportContext, input: {
|
|
2524
3260
|
readonly bearer: string;
|
|
2525
3261
|
readonly statuses?: readonly AppealStatusRow["status"][];
|
|
2526
3262
|
readonly chain?: string;
|
|
2527
3263
|
readonly cursorFiledAt?: string;
|
|
2528
3264
|
readonly limit?: number;
|
|
2529
3265
|
}): Promise<ListAppealsResponse>;
|
|
2530
|
-
declare function getAdminAppealRoom(
|
|
3266
|
+
declare function getAdminAppealRoom(context: TransportContext, input: {
|
|
2531
3267
|
readonly bearer: string;
|
|
2532
3268
|
readonly appealId: string;
|
|
2533
3269
|
}): Promise<AppealRoomView>;
|
|
2534
|
-
declare function postAdminAppealRoomMessage(
|
|
3270
|
+
declare function postAdminAppealRoomMessage(context: TransportContext, input: {
|
|
2535
3271
|
readonly bearer: string;
|
|
2536
3272
|
readonly appealId: string;
|
|
2537
3273
|
readonly body: AppealRoomPostRequest;
|
|
2538
3274
|
}): Promise<AppealRoomPostResponse>;
|
|
2539
|
-
declare function uploadAdminAppealRoomAttachment(
|
|
3275
|
+
declare function uploadAdminAppealRoomAttachment(context: TransportContext, input: {
|
|
2540
3276
|
readonly bearer: string;
|
|
2541
3277
|
readonly appealId: string;
|
|
2542
3278
|
readonly file: Blob | ArrayBufferView | ArrayBuffer;
|
|
2543
3279
|
readonly filename: string;
|
|
2544
3280
|
readonly contentType: string;
|
|
2545
3281
|
}): Promise<UploadAttachmentResponse>;
|
|
2546
|
-
declare function resolveAppeal(
|
|
3282
|
+
declare function resolveAppeal(context: TransportContext, input: {
|
|
2547
3283
|
readonly bearer: string;
|
|
2548
3284
|
readonly appealId: string;
|
|
2549
3285
|
readonly body: AppealResolveRequest;
|
|
2550
3286
|
}): Promise<AppealResolveSignedResponse>;
|
|
2551
3287
|
//#endregion
|
|
3288
|
+
//#region src/admin/content-reports.d.ts
|
|
3289
|
+
declare function listAdminContentReports(context: TransportContext, input: {
|
|
3290
|
+
readonly bearer: string;
|
|
3291
|
+
readonly status?: "open" | "acknowledged" | "dismissed" | "all";
|
|
3292
|
+
readonly limit?: number;
|
|
3293
|
+
readonly offset?: number;
|
|
3294
|
+
}): Promise<AdminAppContentReportListResponse>;
|
|
3295
|
+
declare function triageAdminContentReport(context: TransportContext, input: {
|
|
3296
|
+
readonly bearer: string;
|
|
3297
|
+
readonly reportId: string;
|
|
3298
|
+
readonly status: "acknowledged" | "dismissed";
|
|
3299
|
+
}): Promise<AppContentReport>;
|
|
3300
|
+
//#endregion
|
|
2552
3301
|
//#region src/admin/developers.d.ts
|
|
2553
|
-
declare function listDeveloperRequests(
|
|
3302
|
+
declare function listDeveloperRequests(context: TransportContext, input: {
|
|
2554
3303
|
readonly bearer: string;
|
|
2555
3304
|
readonly status?: "pending" | "approved" | "rejected" | "cancelled";
|
|
2556
3305
|
readonly kind?: "role" | "production";
|
|
2557
3306
|
}): Promise<ListDeveloperRequestsResponse>;
|
|
2558
|
-
declare function reviewDeveloperRequest(
|
|
3307
|
+
declare function reviewDeveloperRequest(context: TransportContext, input: {
|
|
2559
3308
|
readonly bearer: string;
|
|
2560
3309
|
readonly id: string;
|
|
2561
3310
|
readonly body: ReviewDeveloperRequest;
|
|
2562
3311
|
}): Promise<ReviewDeveloperRequestResponse>;
|
|
2563
|
-
declare function listDevelopers(
|
|
3312
|
+
declare function listDevelopers(context: TransportContext, input: {
|
|
2564
3313
|
readonly bearer: string;
|
|
2565
3314
|
}): Promise<AdminDeveloperListResponse>;
|
|
2566
3315
|
//#endregion
|
|
3316
|
+
//#region src/admin/inventory-vault.d.ts
|
|
3317
|
+
declare function forceWithdrawVaultCustody(context: TransportContext, input: {
|
|
3318
|
+
readonly bearer: string;
|
|
3319
|
+
readonly custodyId: string;
|
|
3320
|
+
}): Promise<InventoryVaultForceWithdrawResponse>;
|
|
3321
|
+
//#endregion
|
|
2567
3322
|
//#region src/admin/payments.d.ts
|
|
2568
|
-
declare function getPlatformFees(
|
|
3323
|
+
declare function getPlatformFees(context: TransportContext, input: {
|
|
2569
3324
|
readonly bearer: string;
|
|
2570
3325
|
}): Promise<PlatformFeesResponse>;
|
|
2571
|
-
declare function updatePlatformFees(
|
|
3326
|
+
declare function updatePlatformFees(context: TransportContext, input: {
|
|
2572
3327
|
readonly bearer: string;
|
|
2573
3328
|
readonly body: UpdatePlatformFeesRequest;
|
|
2574
3329
|
}): Promise<UpdatePlatformFeesResponse>;
|
|
2575
|
-
declare function getAppFeeConfig(
|
|
3330
|
+
declare function getAppFeeConfig(context: TransportContext, input: {
|
|
2576
3331
|
readonly bearer: string;
|
|
2577
3332
|
readonly appId: string;
|
|
2578
3333
|
}): Promise<AppFeeConfigResponse>;
|
|
2579
|
-
declare function updateAppFeeConfig(
|
|
3334
|
+
declare function updateAppFeeConfig(context: TransportContext, input: {
|
|
2580
3335
|
readonly bearer: string;
|
|
2581
3336
|
readonly appId: string;
|
|
2582
3337
|
readonly body: UpdateAppFeeConfigRequest;
|
|
2583
3338
|
}): Promise<AppFeeConfigResponse>;
|
|
2584
|
-
declare function setProcessorWhitelist(
|
|
3339
|
+
declare function setProcessorWhitelist(context: TransportContext, input: {
|
|
2585
3340
|
readonly bearer: string;
|
|
2586
3341
|
readonly body: SetProcessorWhitelistRequest;
|
|
2587
3342
|
}): Promise<CalldataEnvelope>;
|
|
2588
|
-
declare function rotateProcessorTreasury(
|
|
3343
|
+
declare function rotateProcessorTreasury(context: TransportContext, input: {
|
|
2589
3344
|
readonly bearer: string;
|
|
2590
3345
|
readonly processorId: string;
|
|
2591
3346
|
readonly body: RotateProcessorTreasuryRequest;
|
|
2592
3347
|
}): Promise<CalldataEnvelope>;
|
|
2593
|
-
declare function setVaultOperator(
|
|
3348
|
+
declare function setVaultOperator(context: TransportContext, input: {
|
|
2594
3349
|
readonly bearer: string;
|
|
2595
3350
|
readonly vaultAddress: string;
|
|
2596
3351
|
readonly body: SetOperatorRequest;
|
|
2597
3352
|
}): Promise<CalldataEnvelope>;
|
|
2598
|
-
declare function setVaultPause(
|
|
3353
|
+
declare function setVaultPause(context: TransportContext, input: {
|
|
2599
3354
|
readonly bearer: string;
|
|
2600
3355
|
readonly vaultAddress: string;
|
|
2601
3356
|
readonly body: PauseRequest;
|
|
2602
3357
|
}): Promise<CalldataEnvelope>;
|
|
2603
|
-
declare function setVaultWithdrawLockDefault(
|
|
3358
|
+
declare function setVaultWithdrawLockDefault(context: TransportContext, input: {
|
|
2604
3359
|
readonly bearer: string;
|
|
2605
3360
|
readonly vaultAddress: string;
|
|
2606
3361
|
readonly body: SetDefaultWithdrawLockRequest;
|
|
2607
3362
|
}): Promise<CalldataEnvelope>;
|
|
2608
|
-
declare function setVaultWithdrawLockOverride(
|
|
3363
|
+
declare function setVaultWithdrawLockOverride(context: TransportContext, input: {
|
|
2609
3364
|
readonly bearer: string;
|
|
2610
3365
|
readonly vaultAddress: string;
|
|
2611
3366
|
readonly body: SetWithdrawLockOverrideRequest;
|
|
2612
3367
|
}): Promise<CalldataEnvelope>;
|
|
2613
|
-
declare function addAppealBlacklist(
|
|
3368
|
+
declare function addAppealBlacklist(context: TransportContext, input: {
|
|
2614
3369
|
readonly bearer: string;
|
|
2615
3370
|
readonly body: AppealBlacklistAddRequest;
|
|
2616
3371
|
}): Promise<AppealBlacklistEntry>;
|
|
2617
|
-
declare function removeAppealBlacklist(
|
|
3372
|
+
declare function removeAppealBlacklist(context: TransportContext, input: {
|
|
2618
3373
|
readonly bearer: string;
|
|
2619
3374
|
readonly body: AppealBlacklistRemoveRequest;
|
|
2620
3375
|
}): Promise<AppealBlacklistRemoveResponse>;
|
|
2621
|
-
declare function listAppealBlacklist(
|
|
3376
|
+
declare function listAppealBlacklist(context: TransportContext, input: {
|
|
2622
3377
|
readonly bearer: string;
|
|
2623
3378
|
readonly chain?: string;
|
|
2624
3379
|
}): Promise<AppealBlacklistListResponse>;
|
|
2625
3380
|
//#endregion
|
|
2626
3381
|
//#region src/admin/tron-cashouts.d.ts
|
|
2627
|
-
declare function listTronCashoutQueue(
|
|
3382
|
+
declare function listTronCashoutQueue(context: TransportContext, input: {
|
|
2628
3383
|
readonly bearer: string;
|
|
2629
3384
|
readonly status?: AdminTronCashoutItem["status"];
|
|
2630
3385
|
}): Promise<AdminTronCashoutListResponse>;
|
|
2631
|
-
declare function approveTronCashout(
|
|
3386
|
+
declare function approveTronCashout(context: TransportContext, input: {
|
|
2632
3387
|
readonly bearer: string;
|
|
2633
3388
|
readonly id: string;
|
|
2634
3389
|
}): Promise<AdminTronCashoutItem>;
|
|
2635
|
-
declare function rejectTronCashout(
|
|
3390
|
+
declare function rejectTronCashout(context: TransportContext, input: {
|
|
2636
3391
|
readonly bearer: string;
|
|
2637
3392
|
readonly id: string;
|
|
2638
3393
|
readonly body: AdminTronCashoutRejectRequest;
|
|
2639
3394
|
}): Promise<AdminTronCashoutItem>;
|
|
2640
3395
|
//#endregion
|
|
2641
3396
|
//#region src/admin/users.d.ts
|
|
2642
|
-
declare function listAdmins(
|
|
3397
|
+
declare function listAdmins(context: TransportContext, input: {
|
|
2643
3398
|
readonly bearer: string;
|
|
2644
3399
|
}): Promise<ListAdminsResponse>;
|
|
2645
|
-
declare function addAdmin(
|
|
3400
|
+
declare function addAdmin(context: TransportContext, input: {
|
|
2646
3401
|
readonly bearer: string;
|
|
2647
3402
|
readonly body: AddAdminRequest;
|
|
2648
3403
|
}): Promise<AdminMutationResponse>;
|
|
2649
|
-
declare function updateAdminRole(
|
|
3404
|
+
declare function updateAdminRole(context: TransportContext, input: {
|
|
2650
3405
|
readonly bearer: string;
|
|
2651
3406
|
readonly id: string;
|
|
2652
3407
|
readonly body: UpdateAdminRoleRequest;
|
|
2653
3408
|
}): Promise<AdminRoleChangeResponse>;
|
|
2654
|
-
declare function removeAdmin(
|
|
3409
|
+
declare function removeAdmin(context: TransportContext, input: {
|
|
2655
3410
|
readonly bearer: string;
|
|
2656
3411
|
readonly id: string;
|
|
2657
3412
|
}): Promise<AdminMutationResponse>;
|
|
2658
|
-
declare function listUsers(
|
|
3413
|
+
declare function listUsers(context: TransportContext, input: {
|
|
2659
3414
|
readonly bearer: string;
|
|
2660
3415
|
readonly search?: string;
|
|
2661
3416
|
readonly offset?: number;
|
|
2662
3417
|
readonly limit?: number;
|
|
2663
3418
|
}): Promise<AdminUserListResponse>;
|
|
2664
|
-
declare function updateUserBan(
|
|
3419
|
+
declare function updateUserBan(context: TransportContext, input: {
|
|
2665
3420
|
readonly bearer: string;
|
|
2666
3421
|
readonly id: string;
|
|
2667
3422
|
readonly body: AdminUserBanRequest;
|
|
2668
3423
|
}): Promise<AdminUserBanResponse>;
|
|
2669
|
-
declare function listAudit(
|
|
3424
|
+
declare function listAudit(context: TransportContext, input: {
|
|
2670
3425
|
readonly bearer: string;
|
|
2671
3426
|
readonly action?: string;
|
|
2672
3427
|
readonly actorId?: string;
|
|
@@ -2677,20 +3432,116 @@ declare function listAudit(ctx: TransportContext, input: {
|
|
|
2677
3432
|
}): Promise<AdminAuditListResponse>;
|
|
2678
3433
|
//#endregion
|
|
2679
3434
|
//#region src/catalog/app-page.d.ts
|
|
2680
|
-
declare function getAppPage(
|
|
3435
|
+
declare function getAppPage(context: TransportContext, input: {
|
|
2681
3436
|
readonly bearer?: string;
|
|
2682
3437
|
readonly slug: string;
|
|
2683
3438
|
}): Promise<PublicAppPage>;
|
|
2684
3439
|
//#endregion
|
|
3440
|
+
//#region src/catalog/bip-updates.d.ts
|
|
3441
|
+
declare function listBipUpdates(context: TransportContext, input: {
|
|
3442
|
+
readonly bearer?: string;
|
|
3443
|
+
readonly slug: string;
|
|
3444
|
+
readonly limit?: number;
|
|
3445
|
+
readonly offset?: number;
|
|
3446
|
+
}): Promise<BipUpdateListResponse>;
|
|
3447
|
+
declare function listBipUpdateComments(context: TransportContext, input: {
|
|
3448
|
+
readonly bearer?: string;
|
|
3449
|
+
readonly slug: string;
|
|
3450
|
+
readonly updateId: string;
|
|
3451
|
+
readonly limit?: number;
|
|
3452
|
+
readonly offset?: number;
|
|
3453
|
+
}): Promise<BipUpdateCommentListResponse>;
|
|
3454
|
+
declare function getMyBipUpdateReactions(context: TransportContext, input: {
|
|
3455
|
+
readonly bearer: string;
|
|
3456
|
+
readonly slug: string;
|
|
3457
|
+
}): Promise<MyBipUpdateReactionsResponse>;
|
|
3458
|
+
declare function setBipUpdateReaction(context: TransportContext, input: {
|
|
3459
|
+
readonly bearer: string;
|
|
3460
|
+
readonly slug: string;
|
|
3461
|
+
readonly updateId: string;
|
|
3462
|
+
readonly body: SetBipUpdateReactionRequest;
|
|
3463
|
+
}): Promise<SetBipUpdateReactionResponse>;
|
|
3464
|
+
declare function commentOnBipUpdate(context: TransportContext, input: {
|
|
3465
|
+
readonly bearer: string;
|
|
3466
|
+
readonly slug: string;
|
|
3467
|
+
readonly updateId: string;
|
|
3468
|
+
readonly body: string;
|
|
3469
|
+
}): Promise<CreateBipUpdateCommentResponse>;
|
|
3470
|
+
declare function deleteBipUpdateComment(context: TransportContext, input: {
|
|
3471
|
+
readonly bearer: string;
|
|
3472
|
+
readonly slug: string;
|
|
3473
|
+
readonly commentId: string;
|
|
3474
|
+
}): Promise<DeleteBipUpdateCommentResponse>;
|
|
3475
|
+
declare function listDeveloperBipUpdates(context: TransportContext, input: {
|
|
3476
|
+
readonly bearer: string;
|
|
3477
|
+
readonly appId: string;
|
|
3478
|
+
readonly limit?: number;
|
|
3479
|
+
readonly offset?: number;
|
|
3480
|
+
}): Promise<BipUpdateListResponse>;
|
|
3481
|
+
declare function createBipUpdate(context: TransportContext, input: {
|
|
3482
|
+
readonly bearer: string;
|
|
3483
|
+
readonly appId: string;
|
|
3484
|
+
readonly body: CreateBipUpdateRequest;
|
|
3485
|
+
}): Promise<BipUpdate>;
|
|
3486
|
+
declare function updateBipUpdate(context: TransportContext, input: {
|
|
3487
|
+
readonly bearer: string;
|
|
3488
|
+
readonly appId: string;
|
|
3489
|
+
readonly updateId: string;
|
|
3490
|
+
readonly body: UpdateBipUpdateRequest;
|
|
3491
|
+
}): Promise<BipUpdate>;
|
|
3492
|
+
declare function deleteBipUpdate(context: TransportContext, input: {
|
|
3493
|
+
readonly bearer: string;
|
|
3494
|
+
readonly appId: string;
|
|
3495
|
+
readonly updateId: string;
|
|
3496
|
+
}): Promise<DeleteBipUpdateResponse>;
|
|
3497
|
+
declare function uploadBipUpdateMedia(context: TransportContext, input: {
|
|
3498
|
+
readonly bearer: string;
|
|
3499
|
+
readonly appId: string;
|
|
3500
|
+
readonly file: Blob;
|
|
3501
|
+
readonly filename: string;
|
|
3502
|
+
readonly contentType: string;
|
|
3503
|
+
}): Promise<BipUpdateMediaUploadResponse>;
|
|
3504
|
+
declare function getBipInterestCount(context: TransportContext, input: {
|
|
3505
|
+
readonly bearer?: string;
|
|
3506
|
+
readonly slug: string;
|
|
3507
|
+
}): Promise<BipInterestCountResponse>;
|
|
3508
|
+
declare function getMyBipEngagement(context: TransportContext, input: {
|
|
3509
|
+
readonly bearer: string;
|
|
3510
|
+
readonly slug: string;
|
|
3511
|
+
}): Promise<BipEngagementResponse>;
|
|
3512
|
+
declare function registerBipInterest(context: TransportContext, input: {
|
|
3513
|
+
readonly bearer: string;
|
|
3514
|
+
readonly slug: string;
|
|
3515
|
+
readonly interested: boolean;
|
|
3516
|
+
}): Promise<BipEngagementResponse>;
|
|
3517
|
+
declare function subscribeBipUpdates(context: TransportContext, input: {
|
|
3518
|
+
readonly bearer: string;
|
|
3519
|
+
readonly slug: string;
|
|
3520
|
+
readonly subscribed: boolean;
|
|
3521
|
+
}): Promise<BipEngagementResponse>;
|
|
3522
|
+
//#endregion
|
|
3523
|
+
//#region src/catalog/build-in-public.d.ts
|
|
3524
|
+
declare function getBipDirectory(context: TransportContext, input: {
|
|
3525
|
+
readonly bearer?: string;
|
|
3526
|
+
readonly genre?: string;
|
|
3527
|
+
readonly q?: string;
|
|
3528
|
+
readonly before?: string;
|
|
3529
|
+
readonly limit?: number;
|
|
3530
|
+
}): Promise<LibraryListResponse>;
|
|
3531
|
+
declare function getBipPage(context: TransportContext, input: {
|
|
3532
|
+
readonly bearer?: string;
|
|
3533
|
+
readonly slug: string;
|
|
3534
|
+
}): Promise<PublicBipPage>;
|
|
3535
|
+
//#endregion
|
|
2685
3536
|
//#region src/catalog/content-reports.d.ts
|
|
2686
|
-
declare function submitAppContentReport(
|
|
3537
|
+
declare function submitAppContentReport(context: TransportContext, input: {
|
|
2687
3538
|
readonly appId: string;
|
|
2688
3539
|
readonly bearer: string;
|
|
2689
3540
|
readonly report: SubmitAppContentReportRequest;
|
|
2690
3541
|
}): Promise<SubmitAppContentReportResponse>;
|
|
2691
3542
|
//#endregion
|
|
2692
3543
|
//#region src/catalog/library.d.ts
|
|
2693
|
-
declare function getLibrary(
|
|
3544
|
+
declare function getLibrary(context: TransportContext, input: {
|
|
2694
3545
|
readonly bearer?: string;
|
|
2695
3546
|
readonly genre?: string;
|
|
2696
3547
|
readonly q?: string;
|
|
@@ -2699,40 +3550,75 @@ declare function getLibrary(ctx: TransportContext, input: {
|
|
|
2699
3550
|
}): Promise<LibraryListResponse>;
|
|
2700
3551
|
//#endregion
|
|
2701
3552
|
//#region src/catalog/reviews.d.ts
|
|
2702
|
-
declare function listGameReviews(
|
|
3553
|
+
declare function listGameReviews(context: TransportContext, input: {
|
|
2703
3554
|
readonly slug: string;
|
|
2704
3555
|
readonly bearer?: string;
|
|
2705
3556
|
readonly sort?: ReviewSort;
|
|
2706
3557
|
readonly limit?: number;
|
|
2707
3558
|
readonly offset?: number;
|
|
2708
3559
|
}): Promise<ReviewListResponse>;
|
|
2709
|
-
declare function listDeveloperAppReviews(
|
|
3560
|
+
declare function listDeveloperAppReviews(context: TransportContext, input: {
|
|
2710
3561
|
readonly appId: string;
|
|
2711
3562
|
readonly bearer: string;
|
|
2712
3563
|
readonly sort?: ReviewSort;
|
|
2713
3564
|
readonly limit?: number;
|
|
2714
3565
|
readonly offset?: number;
|
|
2715
3566
|
}): Promise<ReviewListResponse>;
|
|
2716
|
-
declare function getMyGameReview(
|
|
3567
|
+
declare function getMyGameReview(context: TransportContext, input: {
|
|
2717
3568
|
readonly slug: string;
|
|
2718
3569
|
readonly bearer: string;
|
|
2719
3570
|
}): Promise<MyReviewResponse>;
|
|
2720
|
-
declare function upsertMyGameReview(
|
|
3571
|
+
declare function upsertMyGameReview(context: TransportContext, input: {
|
|
2721
3572
|
readonly slug: string;
|
|
2722
3573
|
readonly bearer: string;
|
|
2723
3574
|
readonly review: UpsertReviewRequest;
|
|
2724
3575
|
}): Promise<MyReviewResponse>;
|
|
2725
|
-
declare function deleteMyGameReview(
|
|
3576
|
+
declare function deleteMyGameReview(context: TransportContext, input: {
|
|
2726
3577
|
readonly slug: string;
|
|
2727
3578
|
readonly bearer: string;
|
|
2728
3579
|
}): Promise<MyReviewResponse>;
|
|
2729
|
-
declare function
|
|
3580
|
+
declare function getMyGameReviewReactions(context: TransportContext, input: {
|
|
3581
|
+
readonly slug: string;
|
|
3582
|
+
readonly bearer: string;
|
|
3583
|
+
}): Promise<MyReviewReactionsResponse>;
|
|
3584
|
+
declare function setMyGameReviewReaction(context: TransportContext, input: {
|
|
3585
|
+
readonly slug: string;
|
|
3586
|
+
readonly reviewId: string;
|
|
3587
|
+
readonly bearer: string;
|
|
3588
|
+
readonly reaction: SetReviewReactionRequest;
|
|
3589
|
+
}): Promise<SetReviewReactionResponse>;
|
|
3590
|
+
declare function tipGameReview(context: TransportContext, input: {
|
|
3591
|
+
readonly slug: string;
|
|
3592
|
+
readonly reviewId: string;
|
|
3593
|
+
readonly bearer: string;
|
|
3594
|
+
readonly tip: TipReviewRequest;
|
|
3595
|
+
readonly idempotencyKey?: string;
|
|
3596
|
+
}): Promise<TipReviewResponse>;
|
|
3597
|
+
declare function listGameReviewComments(context: TransportContext, input: {
|
|
3598
|
+
readonly slug: string;
|
|
3599
|
+
readonly reviewId: string;
|
|
3600
|
+
readonly bearer?: string;
|
|
3601
|
+
readonly limit?: number;
|
|
3602
|
+
readonly offset?: number;
|
|
3603
|
+
}): Promise<ReviewCommentListResponse>;
|
|
3604
|
+
declare function commentOnGameReview(context: TransportContext, input: {
|
|
3605
|
+
readonly slug: string;
|
|
3606
|
+
readonly reviewId: string;
|
|
3607
|
+
readonly bearer: string;
|
|
3608
|
+
readonly comment: CreateReviewCommentRequest;
|
|
3609
|
+
}): Promise<CreateReviewCommentResponse>;
|
|
3610
|
+
declare function deleteGameReviewComment(context: TransportContext, input: {
|
|
3611
|
+
readonly slug: string;
|
|
3612
|
+
readonly commentId: string;
|
|
3613
|
+
readonly bearer: string;
|
|
3614
|
+
}): Promise<DeleteReviewCommentResponse>;
|
|
3615
|
+
declare function replyToGameReview(context: TransportContext, input: {
|
|
2730
3616
|
readonly appId: string;
|
|
2731
3617
|
readonly reviewId: string;
|
|
2732
3618
|
readonly bearer: string;
|
|
2733
3619
|
readonly reply: UpsertReviewReplyRequest;
|
|
2734
3620
|
}): Promise<ReviewReplyResponse>;
|
|
2735
|
-
declare function deleteGameReviewReply(
|
|
3621
|
+
declare function deleteGameReviewReply(context: TransportContext, input: {
|
|
2736
3622
|
readonly appId: string;
|
|
2737
3623
|
readonly reviewId: string;
|
|
2738
3624
|
readonly bearer: string;
|
|
@@ -2782,7 +3668,7 @@ declare function createConsoleLogger(prefix?: string): Logger;
|
|
|
2782
3668
|
declare function createInMemoryTokenStore(): TokenStore;
|
|
2783
3669
|
//#endregion
|
|
2784
3670
|
//#region src/dashboard/activity.d.ts
|
|
2785
|
-
declare function getActivity(
|
|
3671
|
+
declare function getActivity(context: TransportContext, input: {
|
|
2786
3672
|
readonly bearer: string;
|
|
2787
3673
|
readonly kind?: string;
|
|
2788
3674
|
readonly direction?: "outgoing" | "incoming";
|
|
@@ -2793,77 +3679,80 @@ declare function getActivity(ctx: TransportContext, input: {
|
|
|
2793
3679
|
readonly before?: string;
|
|
2794
3680
|
readonly includeInactive?: boolean;
|
|
2795
3681
|
}): Promise<ActivityResponse>;
|
|
2796
|
-
declare function getActivityGroup(
|
|
3682
|
+
declare function getActivityGroup(context: TransportContext, input: {
|
|
2797
3683
|
readonly bearer: string;
|
|
2798
3684
|
readonly groupId: string;
|
|
2799
3685
|
}): Promise<ActivityResponse>;
|
|
2800
3686
|
//#endregion
|
|
2801
3687
|
//#region src/dashboard/chains.d.ts
|
|
2802
|
-
declare function getPaymentChains(
|
|
3688
|
+
declare function getPaymentChains(context: TransportContext, input: {
|
|
2803
3689
|
readonly bearer: string;
|
|
2804
3690
|
}): Promise<PaymentChainsResponse>;
|
|
2805
3691
|
//#endregion
|
|
2806
3692
|
//#region src/dashboard/outstanding.d.ts
|
|
2807
|
-
declare function getOutstanding(
|
|
3693
|
+
declare function getOutstanding(context: TransportContext, input: {
|
|
2808
3694
|
readonly bearer: string;
|
|
2809
3695
|
readonly chain?: string;
|
|
2810
3696
|
}): Promise<OutstandingResponse>;
|
|
2811
3697
|
//#endregion
|
|
2812
3698
|
//#region src/dashboard/payment-history.d.ts
|
|
2813
|
-
declare function getPaymentHistory(
|
|
3699
|
+
declare function getPaymentHistory(context: TransportContext, input: {
|
|
2814
3700
|
readonly bearer: string;
|
|
2815
3701
|
readonly status?: "pending" | "completed" | "expired" | "all";
|
|
2816
3702
|
readonly limit?: number;
|
|
2817
3703
|
readonly before?: string;
|
|
2818
3704
|
}): Promise<PaymentHistoryResponse>;
|
|
2819
3705
|
//#endregion
|
|
3706
|
+
//#region src/dashboard/rates.d.ts
|
|
3707
|
+
declare function getPaymentRates(context: TransportContext): Promise<PaymentRatesResponse>;
|
|
3708
|
+
//#endregion
|
|
2820
3709
|
//#region src/developer/api-keys.d.ts
|
|
2821
|
-
declare function createDeveloperApiKey(
|
|
3710
|
+
declare function createDeveloperApiKey(context: TransportContext, input: {
|
|
2822
3711
|
readonly bearer: string;
|
|
2823
3712
|
readonly body: CreateDeveloperApiKey;
|
|
2824
3713
|
}): Promise<CreateDeveloperApiKeyResponse>;
|
|
2825
|
-
declare function listDeveloperApiKeys(
|
|
3714
|
+
declare function listDeveloperApiKeys(context: TransportContext, input: {
|
|
2826
3715
|
readonly bearer: string;
|
|
2827
3716
|
}): Promise<DeveloperApiKeysResponse>;
|
|
2828
|
-
declare function revokeDeveloperApiKey(
|
|
3717
|
+
declare function revokeDeveloperApiKey(context: TransportContext, input: {
|
|
2829
3718
|
readonly bearer: string;
|
|
2830
3719
|
readonly id: string;
|
|
2831
3720
|
}): Promise<DeveloperOkResponse>;
|
|
2832
3721
|
//#endregion
|
|
2833
3722
|
//#region src/developer/apps.d.ts
|
|
2834
|
-
declare function createDeveloperApp(
|
|
3723
|
+
declare function createDeveloperApp(context: TransportContext, input: {
|
|
2835
3724
|
readonly bearer: string;
|
|
2836
3725
|
readonly body: CreateDeveloperApp;
|
|
2837
3726
|
}): Promise<DeveloperAppIdResponse>;
|
|
2838
|
-
declare function updateDeveloperApp(
|
|
3727
|
+
declare function updateDeveloperApp(context: TransportContext, input: {
|
|
2839
3728
|
readonly bearer: string;
|
|
2840
3729
|
readonly id: string;
|
|
2841
3730
|
readonly body: UpdateDeveloperApp;
|
|
2842
3731
|
}): Promise<DeveloperAppIdResponse>;
|
|
2843
|
-
declare function deleteDeveloperApp(
|
|
3732
|
+
declare function deleteDeveloperApp(context: TransportContext, input: {
|
|
2844
3733
|
readonly bearer: string;
|
|
2845
3734
|
readonly id: string;
|
|
2846
3735
|
}): Promise<DeveloperAppIdResponse>;
|
|
2847
|
-
declare function uploadDeveloperAppLogo(
|
|
3736
|
+
declare function uploadDeveloperAppLogo(context: TransportContext, input: {
|
|
2848
3737
|
readonly bearer: string;
|
|
2849
3738
|
readonly id: string;
|
|
2850
3739
|
readonly file: Blob | ArrayBufferView | ArrayBuffer;
|
|
2851
3740
|
readonly filename: string;
|
|
2852
3741
|
readonly contentType: string;
|
|
2853
3742
|
}): Promise<DeveloperLogoUploadResponse>;
|
|
2854
|
-
declare function deleteDeveloperAppLogo(
|
|
3743
|
+
declare function deleteDeveloperAppLogo(context: TransportContext, input: {
|
|
2855
3744
|
readonly bearer: string;
|
|
2856
3745
|
readonly id: string;
|
|
2857
3746
|
}): Promise<DeveloperLogoUploadResponse>;
|
|
2858
|
-
declare function getDeveloperAppBalances(
|
|
3747
|
+
declare function getDeveloperAppBalances(context: TransportContext, input: {
|
|
2859
3748
|
readonly bearer: string;
|
|
2860
3749
|
readonly id: string;
|
|
2861
3750
|
}): Promise<DeveloperAppBalancesResponse>;
|
|
2862
|
-
declare function getDeveloperAppTronBalance(
|
|
3751
|
+
declare function getDeveloperAppTronBalance(context: TransportContext, input: {
|
|
2863
3752
|
readonly bearer: string;
|
|
2864
3753
|
readonly id: string;
|
|
2865
3754
|
}): Promise<DeveloperAppTronBalanceResponse>;
|
|
2866
|
-
declare function getDeveloperAppActivity(
|
|
3755
|
+
declare function getDeveloperAppActivity(context: TransportContext, input: {
|
|
2867
3756
|
readonly bearer: string;
|
|
2868
3757
|
readonly id: string;
|
|
2869
3758
|
readonly kind?: string;
|
|
@@ -2874,203 +3763,263 @@ declare function getDeveloperAppActivity(ctx: TransportContext, input: {
|
|
|
2874
3763
|
readonly cursor?: string;
|
|
2875
3764
|
readonly before?: string;
|
|
2876
3765
|
}): Promise<ActivityResponse>;
|
|
2877
|
-
declare function getDeveloperAppEarnings(
|
|
3766
|
+
declare function getDeveloperAppEarnings(context: TransportContext, input: {
|
|
2878
3767
|
readonly bearer: string;
|
|
2879
3768
|
readonly id: string;
|
|
2880
3769
|
readonly range?: string;
|
|
2881
3770
|
readonly chain?: string;
|
|
2882
3771
|
}): Promise<DeveloperAppEarningsResponse>;
|
|
2883
|
-
declare function getDeveloperAppPlaytime(
|
|
3772
|
+
declare function getDeveloperAppPlaytime(context: TransportContext, input: {
|
|
2884
3773
|
readonly bearer: string;
|
|
2885
3774
|
readonly id: string;
|
|
2886
3775
|
readonly range?: string;
|
|
2887
3776
|
}): Promise<DeveloperAppPlaytimeResponse>;
|
|
2888
|
-
declare function getDeveloperAppOverview(
|
|
3777
|
+
declare function getDeveloperAppOverview(context: TransportContext, input: {
|
|
2889
3778
|
readonly bearer: string;
|
|
2890
3779
|
readonly id: string;
|
|
2891
3780
|
}): Promise<DeveloperAppOverviewResponse>;
|
|
2892
|
-
declare function getDeveloperAppWallets(
|
|
3781
|
+
declare function getDeveloperAppWallets(context: TransportContext, input: {
|
|
2893
3782
|
readonly bearer: string;
|
|
2894
3783
|
readonly id: string;
|
|
2895
3784
|
}): Promise<DeveloperAppWalletsResponse>;
|
|
2896
|
-
declare function updateDeveloperAppAutoSweep(
|
|
3785
|
+
declare function updateDeveloperAppAutoSweep(context: TransportContext, input: {
|
|
2897
3786
|
readonly bearer: string;
|
|
2898
3787
|
readonly id: string;
|
|
2899
3788
|
readonly chain: string;
|
|
2900
3789
|
readonly body: DeveloperAppAutoSweepRequest;
|
|
2901
3790
|
}): Promise<DeveloperAppAutoSweepResponse>;
|
|
2902
|
-
declare function provisionDeveloperAppWallet(
|
|
3791
|
+
declare function provisionDeveloperAppWallet(context: TransportContext, input: {
|
|
2903
3792
|
readonly bearer: string;
|
|
2904
3793
|
readonly id: string;
|
|
2905
3794
|
readonly chain: string;
|
|
2906
3795
|
}): Promise<DeveloperAppProvisionWalletResponse>;
|
|
2907
|
-
declare function withdrawDeveloperAppWallet(
|
|
3796
|
+
declare function withdrawDeveloperAppWallet(context: TransportContext, input: {
|
|
2908
3797
|
readonly bearer: string;
|
|
2909
3798
|
readonly id: string;
|
|
2910
3799
|
readonly chain: string;
|
|
2911
3800
|
readonly token?: string;
|
|
2912
3801
|
}): Promise<DeveloperAppWithdrawResponse>;
|
|
2913
|
-
declare function consolidateDeveloperAppWallet(
|
|
3802
|
+
declare function consolidateDeveloperAppWallet(context: TransportContext, input: {
|
|
2914
3803
|
readonly bearer: string;
|
|
2915
3804
|
readonly id: string;
|
|
2916
3805
|
readonly chain: string;
|
|
2917
3806
|
}): Promise<DeveloperAppConsolidateResponse>;
|
|
2918
|
-
declare function rotateDeveloperAppKey(
|
|
3807
|
+
declare function rotateDeveloperAppKey(context: TransportContext, input: {
|
|
2919
3808
|
readonly bearer: string;
|
|
2920
3809
|
readonly id: string;
|
|
2921
3810
|
readonly env: "development" | "production";
|
|
2922
3811
|
}): Promise<RegenerateDeveloperAppKeyResponse>;
|
|
2923
|
-
declare function requestDeveloperAppProduction(
|
|
3812
|
+
declare function requestDeveloperAppProduction(context: TransportContext, input: {
|
|
2924
3813
|
readonly bearer: string;
|
|
2925
3814
|
readonly id: string;
|
|
2926
3815
|
readonly body: CreateDeveloperProductionRequest;
|
|
2927
3816
|
}): Promise<CreateDeveloperProductionRequestResponse>;
|
|
2928
|
-
declare function rotateDeveloperAppPaymentWebhookSecret(
|
|
3817
|
+
declare function rotateDeveloperAppPaymentWebhookSecret(context: TransportContext, input: {
|
|
2929
3818
|
readonly bearer: string;
|
|
2930
3819
|
readonly id: string;
|
|
2931
3820
|
}): Promise<RegenerateDeveloperAppWebhookSecretResponse>;
|
|
2932
|
-
declare function getDeveloperPaymentAppeals(
|
|
3821
|
+
declare function getDeveloperPaymentAppeals(context: TransportContext, input: {
|
|
2933
3822
|
readonly bearer: string;
|
|
2934
3823
|
readonly chain?: string;
|
|
2935
3824
|
}): Promise<DevAppealsResponse>;
|
|
2936
|
-
declare function getDeveloperPaymentPendingDeposits(
|
|
3825
|
+
declare function getDeveloperPaymentPendingDeposits(context: TransportContext, input: {
|
|
2937
3826
|
readonly bearer: string;
|
|
2938
3827
|
readonly chain?: string;
|
|
2939
3828
|
}): Promise<DevPendingDepositsResponse>;
|
|
2940
|
-
declare function getDeveloperTronBalanceSummary(
|
|
3829
|
+
declare function getDeveloperTronBalanceSummary(context: TransportContext, input: {
|
|
2941
3830
|
readonly bearer: string;
|
|
2942
3831
|
}): Promise<DeveloperTronBalanceSummaryResponse>;
|
|
2943
|
-
declare function listDeveloperAppContentReports(
|
|
3832
|
+
declare function listDeveloperAppContentReports(context: TransportContext, input: {
|
|
2944
3833
|
readonly bearer: string;
|
|
2945
3834
|
readonly id: string;
|
|
2946
3835
|
readonly status?: AppContentReportStatus;
|
|
2947
3836
|
readonly limit?: number;
|
|
2948
3837
|
readonly offset?: number;
|
|
2949
3838
|
}): Promise<AppContentReportListResponse>;
|
|
2950
|
-
declare function updateDeveloperAppContentReportStatus(
|
|
3839
|
+
declare function updateDeveloperAppContentReportStatus(context: TransportContext, input: {
|
|
2951
3840
|
readonly bearer: string;
|
|
2952
3841
|
readonly id: string;
|
|
2953
3842
|
readonly reportId: string;
|
|
2954
3843
|
readonly status: "acknowledged" | "dismissed";
|
|
2955
3844
|
}): Promise<AppContentReport>;
|
|
2956
3845
|
//#endregion
|
|
3846
|
+
//#region src/developer/inventory.d.ts
|
|
3847
|
+
declare function quoteDeveloperAppInventoryRegistration(context: TransportContext, input: {
|
|
3848
|
+
readonly bearer: string;
|
|
3849
|
+
readonly appId: string;
|
|
3850
|
+
readonly registration: InventoryItemRegistrationInput;
|
|
3851
|
+
}): Promise<InventoryRegistrationQuote>;
|
|
3852
|
+
declare function registerDeveloperAppInventoryItem(context: TransportContext, input: {
|
|
3853
|
+
readonly bearer: string;
|
|
3854
|
+
readonly appId: string;
|
|
3855
|
+
readonly registration: InventoryItemRegistrationInput;
|
|
3856
|
+
}): Promise<InventoryItemRegistrationResult>;
|
|
3857
|
+
declare function listDeveloperAppInventoryCollections(context: TransportContext, input: {
|
|
3858
|
+
readonly bearer: string;
|
|
3859
|
+
readonly appId: string;
|
|
3860
|
+
}): Promise<InventoryCollectionListResponse>;
|
|
3861
|
+
declare function listDeveloperAppInventoryItems(context: TransportContext, input: {
|
|
3862
|
+
readonly bearer: string;
|
|
3863
|
+
readonly appId: string;
|
|
3864
|
+
}): Promise<InventoryItemListResponse>;
|
|
3865
|
+
declare function createDeveloperAppMintPermit(context: TransportContext, input: {
|
|
3866
|
+
readonly bearer: string;
|
|
3867
|
+
readonly appId: string;
|
|
3868
|
+
readonly itemId: string;
|
|
3869
|
+
readonly grant: InventoryMintPermitCreateInput;
|
|
3870
|
+
}): Promise<InventoryMintPermitRecord>;
|
|
3871
|
+
declare function getDeveloperAppInventoryItemHolders(context: TransportContext, input: {
|
|
3872
|
+
readonly bearer: string;
|
|
3873
|
+
readonly appId: string;
|
|
3874
|
+
readonly itemId: string;
|
|
3875
|
+
}): Promise<InventoryItemHoldersResponse>;
|
|
3876
|
+
declare function uploadDeveloperAppInventoryItemImage(context: TransportContext, input: {
|
|
3877
|
+
readonly bearer: string;
|
|
3878
|
+
readonly appId: string;
|
|
3879
|
+
readonly itemId: string;
|
|
3880
|
+
readonly file: Blob | ArrayBufferView | ArrayBuffer;
|
|
3881
|
+
readonly filename: string;
|
|
3882
|
+
readonly contentType: string;
|
|
3883
|
+
}): Promise<InventoryItemRecord>;
|
|
3884
|
+
declare function uploadDeveloperAppInventoryItemBanner(context: TransportContext, input: {
|
|
3885
|
+
readonly bearer: string;
|
|
3886
|
+
readonly appId: string;
|
|
3887
|
+
readonly itemId: string;
|
|
3888
|
+
readonly file: Blob | ArrayBufferView | ArrayBuffer;
|
|
3889
|
+
readonly filename: string;
|
|
3890
|
+
readonly contentType: string;
|
|
3891
|
+
}): Promise<InventoryItemRecord>;
|
|
3892
|
+
//#endregion
|
|
2957
3893
|
//#region src/developer/pages.d.ts
|
|
2958
|
-
declare function getDeveloperAppPage(
|
|
3894
|
+
declare function getDeveloperAppPage(context: TransportContext, input: {
|
|
2959
3895
|
readonly bearer: string;
|
|
2960
3896
|
readonly appId: string;
|
|
2961
3897
|
}): Promise<AppPageDraft>;
|
|
2962
|
-
declare function updateAppPage(
|
|
3898
|
+
declare function updateAppPage(context: TransportContext, input: {
|
|
2963
3899
|
readonly bearer: string;
|
|
2964
3900
|
readonly appId: string;
|
|
2965
3901
|
readonly body: UpdateAppPage;
|
|
2966
3902
|
}): Promise<AppPageDraft>;
|
|
2967
|
-
declare function uploadAppPageBanner(
|
|
3903
|
+
declare function uploadAppPageBanner(context: TransportContext, input: {
|
|
2968
3904
|
readonly bearer: string;
|
|
2969
3905
|
readonly appId: string;
|
|
2970
3906
|
readonly file: Blob | ArrayBufferView | ArrayBuffer;
|
|
2971
3907
|
readonly filename: string;
|
|
2972
3908
|
readonly contentType: string;
|
|
2973
3909
|
}): Promise<PostMeDeveloperAppsByAppIdPageBannerResponse>;
|
|
2974
|
-
declare function deleteAppPageBanner(
|
|
3910
|
+
declare function deleteAppPageBanner(context: TransportContext, input: {
|
|
2975
3911
|
readonly bearer: string;
|
|
2976
3912
|
readonly appId: string;
|
|
2977
3913
|
}): Promise<void>;
|
|
2978
|
-
declare function uploadAppPageThumbnail(
|
|
3914
|
+
declare function uploadAppPageThumbnail(context: TransportContext, input: {
|
|
2979
3915
|
readonly bearer: string;
|
|
2980
3916
|
readonly appId: string;
|
|
2981
3917
|
readonly file: Blob | ArrayBufferView | ArrayBuffer;
|
|
2982
3918
|
readonly filename: string;
|
|
2983
3919
|
readonly contentType: string;
|
|
2984
3920
|
}): Promise<PostMeDeveloperAppsByAppIdPageThumbnailResponse>;
|
|
2985
|
-
declare function deleteAppPageThumbnail(
|
|
3921
|
+
declare function deleteAppPageThumbnail(context: TransportContext, input: {
|
|
2986
3922
|
readonly bearer: string;
|
|
2987
3923
|
readonly appId: string;
|
|
2988
3924
|
}): Promise<void>;
|
|
2989
|
-
declare function uploadAppPageThumbnailVideo(
|
|
3925
|
+
declare function uploadAppPageThumbnailVideo(context: TransportContext, input: {
|
|
2990
3926
|
readonly bearer: string;
|
|
2991
3927
|
readonly appId: string;
|
|
2992
3928
|
readonly file: Blob | ArrayBufferView | ArrayBuffer;
|
|
2993
3929
|
readonly filename: string;
|
|
2994
3930
|
readonly contentType: string;
|
|
2995
3931
|
}): Promise<PostMeDeveloperAppsByAppIdPageThumbnailVideoResponse>;
|
|
2996
|
-
declare function deleteAppPageThumbnailVideo(
|
|
3932
|
+
declare function deleteAppPageThumbnailVideo(context: TransportContext, input: {
|
|
2997
3933
|
readonly bearer: string;
|
|
2998
3934
|
readonly appId: string;
|
|
2999
3935
|
}): Promise<void>;
|
|
3000
|
-
declare function uploadAppPageGallery(
|
|
3936
|
+
declare function uploadAppPageGallery(context: TransportContext, input: {
|
|
3001
3937
|
readonly bearer: string;
|
|
3002
3938
|
readonly appId: string;
|
|
3003
3939
|
readonly file: Blob | ArrayBufferView | ArrayBuffer;
|
|
3004
3940
|
readonly filename: string;
|
|
3005
3941
|
readonly contentType: string;
|
|
3006
3942
|
}): Promise<AppPageGalleryUploadResponse>;
|
|
3007
|
-
declare function submitAppPageForReview(
|
|
3943
|
+
declare function submitAppPageForReview(context: TransportContext, input: {
|
|
3944
|
+
readonly bearer: string;
|
|
3945
|
+
readonly appId: string;
|
|
3946
|
+
}): Promise<AppPageDraft>;
|
|
3947
|
+
declare function unpublishAppPage(context: TransportContext, input: {
|
|
3948
|
+
readonly bearer: string;
|
|
3949
|
+
readonly appId: string;
|
|
3950
|
+
}): Promise<AppPageDraft>;
|
|
3951
|
+
declare function setAppPageBip(context: TransportContext, input: {
|
|
3952
|
+
readonly bearer: string;
|
|
3953
|
+
readonly appId: string;
|
|
3954
|
+
readonly body: AppPageBipToggle;
|
|
3955
|
+
}): Promise<AppPageDraft>;
|
|
3956
|
+
declare function submitAppPageBipForReview(context: TransportContext, input: {
|
|
3008
3957
|
readonly bearer: string;
|
|
3009
3958
|
readonly appId: string;
|
|
3010
3959
|
}): Promise<AppPageDraft>;
|
|
3011
|
-
declare function
|
|
3960
|
+
declare function unpublishAppPageBip(context: TransportContext, input: {
|
|
3012
3961
|
readonly bearer: string;
|
|
3013
3962
|
readonly appId: string;
|
|
3014
3963
|
}): Promise<AppPageDraft>;
|
|
3015
3964
|
//#endregion
|
|
3016
3965
|
//#region src/developer/participants.d.ts
|
|
3017
|
-
declare function listDeveloperAppParticipants(
|
|
3966
|
+
declare function listDeveloperAppParticipants(context: TransportContext, input: {
|
|
3018
3967
|
readonly bearer: string;
|
|
3019
3968
|
readonly id: string;
|
|
3020
3969
|
}): Promise<DeveloperAppParticipantsResponse>;
|
|
3021
|
-
declare function inviteDeveloperAppParticipant(
|
|
3970
|
+
declare function inviteDeveloperAppParticipant(context: TransportContext, input: {
|
|
3022
3971
|
readonly bearer: string;
|
|
3023
3972
|
readonly id: string;
|
|
3024
3973
|
readonly body: InviteDeveloperAppParticipant;
|
|
3025
3974
|
}): Promise<DeveloperAppParticipantsResponse>;
|
|
3026
|
-
declare function revokeDeveloperAppParticipant(
|
|
3975
|
+
declare function revokeDeveloperAppParticipant(context: TransportContext, input: {
|
|
3027
3976
|
readonly bearer: string;
|
|
3028
3977
|
readonly id: string;
|
|
3029
3978
|
readonly userId: string;
|
|
3030
3979
|
}): Promise<DeveloperOkResponse>;
|
|
3031
|
-
declare function listDeveloperInvites(
|
|
3980
|
+
declare function listDeveloperInvites(context: TransportContext, input: {
|
|
3032
3981
|
readonly bearer: string;
|
|
3033
3982
|
}): Promise<DeveloperInvitesResponse>;
|
|
3034
|
-
declare function acceptDeveloperInvite(
|
|
3983
|
+
declare function acceptDeveloperInvite(context: TransportContext, input: {
|
|
3035
3984
|
readonly bearer: string;
|
|
3036
3985
|
readonly appId: string;
|
|
3037
3986
|
}): Promise<DeveloperOkResponse>;
|
|
3038
|
-
declare function declineDeveloperInvite(
|
|
3987
|
+
declare function declineDeveloperInvite(context: TransportContext, input: {
|
|
3039
3988
|
readonly bearer: string;
|
|
3040
3989
|
readonly appId: string;
|
|
3041
3990
|
}): Promise<DeveloperOkResponse>;
|
|
3042
3991
|
//#endregion
|
|
3043
3992
|
//#region src/developer/profile.d.ts
|
|
3044
|
-
declare function getDeveloperStatus(
|
|
3993
|
+
declare function getDeveloperStatus(context: TransportContext, input: {
|
|
3045
3994
|
readonly bearer: string;
|
|
3046
3995
|
}): Promise<DeveloperMeStatus>;
|
|
3047
|
-
declare function updateDeveloperProfile(
|
|
3996
|
+
declare function updateDeveloperProfile(context: TransportContext, input: {
|
|
3048
3997
|
readonly bearer: string;
|
|
3049
3998
|
readonly body: UpdateDeveloperProfile;
|
|
3050
3999
|
}): Promise<DeveloperOkResponse>;
|
|
3051
|
-
declare function uploadDeveloperProfileLogo(
|
|
4000
|
+
declare function uploadDeveloperProfileLogo(context: TransportContext, input: {
|
|
3052
4001
|
readonly bearer: string;
|
|
3053
4002
|
readonly file: Blob | ArrayBufferView | ArrayBuffer;
|
|
3054
4003
|
readonly filename: string;
|
|
3055
4004
|
readonly contentType: string;
|
|
3056
4005
|
}): Promise<DeveloperLogoUploadResponse>;
|
|
3057
|
-
declare function deleteDeveloperProfileLogo(
|
|
4006
|
+
declare function deleteDeveloperProfileLogo(context: TransportContext, input: {
|
|
3058
4007
|
readonly bearer: string;
|
|
3059
4008
|
}): Promise<DeveloperLogoUploadResponse>;
|
|
3060
|
-
declare function submitDeveloperRequest(
|
|
4009
|
+
declare function submitDeveloperRequest(context: TransportContext, input: {
|
|
3061
4010
|
readonly bearer: string;
|
|
3062
4011
|
readonly body: CreateDeveloperRoleRequest;
|
|
3063
4012
|
}): Promise<DeveloperOkResponse>;
|
|
3064
|
-
declare function uploadDeveloperRequestLogo(
|
|
4013
|
+
declare function uploadDeveloperRequestLogo(context: TransportContext, input: {
|
|
3065
4014
|
readonly bearer: string;
|
|
3066
4015
|
readonly file: Blob | ArrayBufferView | ArrayBuffer;
|
|
3067
4016
|
readonly filename: string;
|
|
3068
4017
|
readonly contentType: string;
|
|
3069
4018
|
}): Promise<DeveloperLogoUploadResponse>;
|
|
3070
|
-
declare function deleteDeveloperRequestLogo(
|
|
4019
|
+
declare function deleteDeveloperRequestLogo(context: TransportContext, input: {
|
|
3071
4020
|
readonly bearer: string;
|
|
3072
4021
|
}): Promise<DeveloperLogoUploadResponse>;
|
|
3073
|
-
declare function uploadMultipart(
|
|
4022
|
+
declare function uploadMultipart(context: TransportContext, input: {
|
|
3074
4023
|
readonly path: string;
|
|
3075
4024
|
readonly bearer: string;
|
|
3076
4025
|
readonly file: Blob | ArrayBufferView | ArrayBuffer;
|
|
@@ -3078,6 +4027,68 @@ declare function uploadMultipart(ctx: TransportContext, input: {
|
|
|
3078
4027
|
readonly contentType: string;
|
|
3079
4028
|
}): Promise<unknown>;
|
|
3080
4029
|
//#endregion
|
|
4030
|
+
//#region src/developer/vault.d.ts
|
|
4031
|
+
declare function createDeveloperVaultPermit(context: TransportContext, input: {
|
|
4032
|
+
readonly bearer: string;
|
|
4033
|
+
readonly appId: string;
|
|
4034
|
+
readonly itemId: string;
|
|
4035
|
+
readonly grant: InventoryVaultPermitCreateInput;
|
|
4036
|
+
}): Promise<InventoryVaultPermitRecord>;
|
|
4037
|
+
declare function createDeveloperWithdrawPermit(context: TransportContext, input: {
|
|
4038
|
+
readonly bearer: string;
|
|
4039
|
+
readonly appId: string;
|
|
4040
|
+
readonly itemId: string;
|
|
4041
|
+
readonly grant: InventoryWithdrawPermitCreateInput;
|
|
4042
|
+
}): Promise<InventoryVaultPermitRecord>;
|
|
4043
|
+
//#endregion
|
|
4044
|
+
//#region src/events/inventory-socket.d.ts
|
|
4045
|
+
declare const inventoryUpdateEventSchema: z.ZodObject<{
|
|
4046
|
+
event: z.ZodLiteral<"inventory.updated">;
|
|
4047
|
+
deliveredAt: z.ZodString;
|
|
4048
|
+
environment: z.ZodEnum<{
|
|
4049
|
+
development: "development";
|
|
4050
|
+
production: "production";
|
|
4051
|
+
}>;
|
|
4052
|
+
subject: z.ZodString;
|
|
4053
|
+
collectionId: z.ZodString;
|
|
4054
|
+
collectionAddress: z.ZodString;
|
|
4055
|
+
chain: z.ZodString;
|
|
4056
|
+
kind: z.ZodEnum<{
|
|
4057
|
+
erc721: "erc721";
|
|
4058
|
+
erc1155: "erc1155";
|
|
4059
|
+
}>;
|
|
4060
|
+
tokenId: z.ZodString;
|
|
4061
|
+
direction: z.ZodEnum<{
|
|
4062
|
+
credit: "credit";
|
|
4063
|
+
debit: "debit";
|
|
4064
|
+
}>;
|
|
4065
|
+
amount: z.ZodString;
|
|
4066
|
+
balance: z.ZodString;
|
|
4067
|
+
}, z.core.$strip>;
|
|
4068
|
+
type InventoryUpdateEvent = z.infer<typeof inventoryUpdateEventSchema>;
|
|
4069
|
+
type OauthInventoryEventsSubscriberLifecycle = {
|
|
4070
|
+
onOpen?: () => void;
|
|
4071
|
+
onSubscribed?: (appId: string) => void;
|
|
4072
|
+
onMessage: (body: InventoryUpdateEvent) => void | Promise<void>;
|
|
4073
|
+
onClose?: (error: TronWsCloseError) => void;
|
|
4074
|
+
onError?: (error: Error) => void;
|
|
4075
|
+
};
|
|
4076
|
+
type OauthInventoryEventsSubscriberOptions = {
|
|
4077
|
+
readonly issuer: string;
|
|
4078
|
+
readonly clientId: string;
|
|
4079
|
+
readonly clientSecret: string;
|
|
4080
|
+
readonly logger?: Logger;
|
|
4081
|
+
readonly lifecycle: OauthInventoryEventsSubscriberLifecycle;
|
|
4082
|
+
readonly initialBackoffMs?: number;
|
|
4083
|
+
readonly maxBackoffMs?: number;
|
|
4084
|
+
readonly shouldReconnect?: (error: TronWsCloseError) => boolean;
|
|
4085
|
+
readonly WebSocketImpl?: typeof globalThis.WebSocket;
|
|
4086
|
+
};
|
|
4087
|
+
type OauthInventoryEventsSubscriber = {
|
|
4088
|
+
readonly stop: () => void;
|
|
4089
|
+
};
|
|
4090
|
+
declare function startOauthInventoryEventsSubscriber(options: OauthInventoryEventsSubscriberOptions): OauthInventoryEventsSubscriber;
|
|
4091
|
+
//#endregion
|
|
3081
4092
|
//#region src/webhook/verify.d.ts
|
|
3082
4093
|
declare const oauthPaymentWebhookBodySchema: z.ZodObject<{
|
|
3083
4094
|
event: z.ZodEnum<{
|
|
@@ -3152,6 +4163,7 @@ type OauthPaymentEventsSubscriberOptions = {
|
|
|
3152
4163
|
readonly maxBackoffMs?: number;
|
|
3153
4164
|
readonly shouldReconnect?: (error: TronWsCloseError) => boolean;
|
|
3154
4165
|
readonly WebSocketImpl?: typeof globalThis.WebSocket;
|
|
4166
|
+
readonly disableEventAck?: boolean;
|
|
3155
4167
|
};
|
|
3156
4168
|
type OauthPaymentEventsSubscriber = {
|
|
3157
4169
|
readonly stop: () => void;
|
|
@@ -3159,81 +4171,124 @@ type OauthPaymentEventsSubscriber = {
|
|
|
3159
4171
|
declare function startOauthPaymentEventsSubscriber(options: OauthPaymentEventsSubscriberOptions): OauthPaymentEventsSubscriber;
|
|
3160
4172
|
//#endregion
|
|
3161
4173
|
//#region src/inventory/list.d.ts
|
|
3162
|
-
declare function listInventory(
|
|
4174
|
+
declare function listInventory(context: TransportContext, input: {
|
|
3163
4175
|
readonly bearer: string;
|
|
3164
4176
|
}): Promise<InventoryListResponse>;
|
|
3165
|
-
declare function listInventoryForApp(
|
|
4177
|
+
declare function listInventoryForApp(context: TransportContext, input: {
|
|
3166
4178
|
readonly bearer: string;
|
|
3167
4179
|
}): Promise<InventoryListResponse>;
|
|
3168
4180
|
//#endregion
|
|
4181
|
+
//#region src/inventory/nft-transfer.d.ts
|
|
4182
|
+
declare function quoteNftTransfer(context: TransportContext, input: {
|
|
4183
|
+
readonly bearer: string;
|
|
4184
|
+
readonly body: InventoryNftTransferQuoteRequest;
|
|
4185
|
+
}): Promise<InventoryNftTransferQuoteResponse>;
|
|
4186
|
+
declare function executeNftTransfer(context: TransportContext, input: {
|
|
4187
|
+
readonly bearer: string;
|
|
4188
|
+
readonly body: InventoryNftTransferRequest;
|
|
4189
|
+
}): Promise<InventoryNftTransferResponse>;
|
|
4190
|
+
//#endregion
|
|
4191
|
+
//#region src/inventory/permits.d.ts
|
|
4192
|
+
declare function listInventoryMintPermits(context: TransportContext, input: {
|
|
4193
|
+
readonly bearer: string;
|
|
4194
|
+
}): Promise<InventoryPendingPermitListResponse>;
|
|
4195
|
+
declare function redeemInventoryMintPermit(context: TransportContext, input: {
|
|
4196
|
+
readonly bearer: string;
|
|
4197
|
+
readonly permitId: string;
|
|
4198
|
+
}): Promise<InventoryPermitRedeemResult>;
|
|
4199
|
+
//#endregion
|
|
3169
4200
|
//#region src/inventory/request-mint.d.ts
|
|
3170
|
-
declare function requestMint(
|
|
4201
|
+
declare function requestMint(context: TransportContext, input: {
|
|
3171
4202
|
readonly appBearer: string;
|
|
3172
4203
|
readonly body: MintRequestInput;
|
|
3173
4204
|
}): Promise<MintRequestResult>;
|
|
3174
4205
|
//#endregion
|
|
4206
|
+
//#region src/inventory/vault.d.ts
|
|
4207
|
+
declare function listInventoryVaultPermits(context: TransportContext, input: {
|
|
4208
|
+
readonly bearer: string;
|
|
4209
|
+
}): Promise<InventoryPendingVaultPermitListResponse>;
|
|
4210
|
+
declare function signInventoryVaultPermit(context: TransportContext, input: {
|
|
4211
|
+
readonly bearer: string;
|
|
4212
|
+
readonly permitId: string;
|
|
4213
|
+
}): Promise<InventorySignedVaultPermit>;
|
|
4214
|
+
declare function quoteRelayedVaultPermit(context: TransportContext, input: {
|
|
4215
|
+
readonly bearer: string;
|
|
4216
|
+
readonly permitId: string;
|
|
4217
|
+
}): Promise<InventoryRelayedVaultQuoteResponse>;
|
|
4218
|
+
declare function submitRelayedVaultPermit(context: TransportContext, input: {
|
|
4219
|
+
readonly bearer: string;
|
|
4220
|
+
readonly permitId: string;
|
|
4221
|
+
readonly body: InventoryRelayedVaultSubmitRequest;
|
|
4222
|
+
}): Promise<InventoryRelayedVaultSubmitResponse>;
|
|
4223
|
+
declare function listInventoryVaulted(context: TransportContext, input: {
|
|
4224
|
+
readonly bearer: string;
|
|
4225
|
+
}): Promise<InventoryVaultCustodyListResponse>;
|
|
4226
|
+
declare function listOauthInventoryVaulted(context: TransportContext, input: {
|
|
4227
|
+
readonly bearer: string;
|
|
4228
|
+
}): Promise<InventoryVaultCustodyListResponse>;
|
|
4229
|
+
//#endregion
|
|
3175
4230
|
//#region src/messaging/dm-key-backup.d.ts
|
|
3176
|
-
declare function getDmKeyBackupStatus(
|
|
4231
|
+
declare function getDmKeyBackupStatus(context: TransportContext, input: {
|
|
3177
4232
|
readonly bearer: string;
|
|
3178
4233
|
}): Promise<DmKeyBackupStatusResponse>;
|
|
3179
|
-
declare function setupDmKeyBackup(
|
|
4234
|
+
declare function setupDmKeyBackup(context: TransportContext, input: {
|
|
3180
4235
|
readonly bearer: string;
|
|
3181
4236
|
readonly body: DmKeyBackupSetupBody;
|
|
3182
4237
|
}): Promise<DmKeyBackupOkResponse>;
|
|
3183
|
-
declare function unlockDmKeyBackup(
|
|
4238
|
+
declare function unlockDmKeyBackup(context: TransportContext, input: {
|
|
3184
4239
|
readonly bearer: string;
|
|
3185
4240
|
readonly body: DmKeyBackupUnlockBody;
|
|
3186
4241
|
}): Promise<DmKeyBackupUnlockResponse>;
|
|
3187
4242
|
//#endregion
|
|
3188
4243
|
//#region src/messaging/dm-keys.d.ts
|
|
3189
|
-
declare function publishDmKey(
|
|
4244
|
+
declare function publishDmKey(context: TransportContext, input: {
|
|
3190
4245
|
readonly bearer: string;
|
|
3191
4246
|
readonly body: PublishDmKeyBody;
|
|
3192
4247
|
}): Promise<DmKeyResponse>;
|
|
3193
|
-
declare function getMyDmKey(
|
|
4248
|
+
declare function getMyDmKey(context: TransportContext, input: {
|
|
3194
4249
|
readonly bearer: string;
|
|
3195
4250
|
}): Promise<DmKeyResponse | null>;
|
|
3196
|
-
declare function getThreadDmKey(
|
|
4251
|
+
declare function getThreadDmKey(context: TransportContext, input: {
|
|
3197
4252
|
readonly bearer: string;
|
|
3198
4253
|
readonly threadId: string;
|
|
3199
4254
|
}): Promise<DmKeyResponse>;
|
|
3200
|
-
declare function batchThreadDmKeys(
|
|
4255
|
+
declare function batchThreadDmKeys(context: TransportContext, input: {
|
|
3201
4256
|
readonly bearer: string;
|
|
3202
4257
|
readonly threadIds: readonly string[];
|
|
3203
4258
|
}): Promise<BatchThreadDmKeysResponse>;
|
|
3204
4259
|
//#endregion
|
|
3205
4260
|
//#region src/messaging/logo.d.ts
|
|
3206
|
-
declare function uploadThreadLogo(
|
|
4261
|
+
declare function uploadThreadLogo(context: TransportContext, input: {
|
|
3207
4262
|
readonly bearer: string;
|
|
3208
4263
|
readonly threadId: string;
|
|
3209
4264
|
readonly file: Blob | ArrayBufferView | ArrayBuffer;
|
|
3210
4265
|
readonly filename: string;
|
|
3211
4266
|
readonly contentType: string;
|
|
3212
4267
|
}): Promise<GroupThreadMutationResponse>;
|
|
3213
|
-
declare function deleteThreadLogo(
|
|
4268
|
+
declare function deleteThreadLogo(context: TransportContext, input: {
|
|
3214
4269
|
readonly bearer: string;
|
|
3215
4270
|
readonly threadId: string;
|
|
3216
4271
|
}): Promise<GroupThreadMutationResponse>;
|
|
3217
4272
|
//#endregion
|
|
3218
4273
|
//#region src/messaging/messages.d.ts
|
|
3219
|
-
declare function deleteMessage(
|
|
4274
|
+
declare function deleteMessage(context: TransportContext, input: {
|
|
3220
4275
|
readonly bearer: string;
|
|
3221
4276
|
readonly threadId: string;
|
|
3222
4277
|
readonly messageId: string;
|
|
3223
4278
|
}): Promise<MessagingOkResponse>;
|
|
3224
|
-
declare function editMessage(
|
|
4279
|
+
declare function editMessage(context: TransportContext, input: {
|
|
3225
4280
|
readonly bearer: string;
|
|
3226
4281
|
readonly threadId: string;
|
|
3227
4282
|
readonly messageId: string;
|
|
3228
4283
|
readonly body: EditMessageBody;
|
|
3229
4284
|
}): Promise<MessageItem>;
|
|
3230
|
-
declare function addReaction(
|
|
4285
|
+
declare function addReaction(context: TransportContext, input: {
|
|
3231
4286
|
readonly bearer: string;
|
|
3232
4287
|
readonly threadId: string;
|
|
3233
4288
|
readonly messageId: string;
|
|
3234
4289
|
readonly emoji: ReactionEmoji;
|
|
3235
4290
|
}): Promise<ReactionMutationResponse>;
|
|
3236
|
-
declare function removeReaction(
|
|
4291
|
+
declare function removeReaction(context: TransportContext, input: {
|
|
3237
4292
|
readonly bearer: string;
|
|
3238
4293
|
readonly threadId: string;
|
|
3239
4294
|
readonly messageId: string;
|
|
@@ -3241,12 +4296,12 @@ declare function removeReaction(ctx: TransportContext, input: {
|
|
|
3241
4296
|
}): Promise<ReactionMutationResponse>;
|
|
3242
4297
|
//#endregion
|
|
3243
4298
|
//#region src/messaging/participants.d.ts
|
|
3244
|
-
declare function removeParticipant(
|
|
4299
|
+
declare function removeParticipant(context: TransportContext, input: {
|
|
3245
4300
|
readonly bearer: string;
|
|
3246
4301
|
readonly threadId: string;
|
|
3247
4302
|
readonly userId: string;
|
|
3248
4303
|
}): Promise<GroupThreadMutationResponse>;
|
|
3249
|
-
declare function updateParticipantRole(
|
|
4304
|
+
declare function updateParticipantRole(context: TransportContext, input: {
|
|
3250
4305
|
readonly bearer: string;
|
|
3251
4306
|
readonly threadId: string;
|
|
3252
4307
|
readonly userId: string;
|
|
@@ -3254,33 +4309,33 @@ declare function updateParticipantRole(ctx: TransportContext, input: {
|
|
|
3254
4309
|
}): Promise<GroupThreadMutationResponse>;
|
|
3255
4310
|
//#endregion
|
|
3256
4311
|
//#region src/messaging/threads.d.ts
|
|
3257
|
-
declare function deleteThread(
|
|
4312
|
+
declare function deleteThread(context: TransportContext, input: {
|
|
3258
4313
|
readonly bearer: string;
|
|
3259
4314
|
readonly threadId: string;
|
|
3260
4315
|
}): Promise<MessagingOkResponse>;
|
|
3261
|
-
declare function updateThreadSettings(
|
|
4316
|
+
declare function updateThreadSettings(context: TransportContext, input: {
|
|
3262
4317
|
readonly bearer: string;
|
|
3263
4318
|
readonly threadId: string;
|
|
3264
4319
|
readonly body: UpdateThreadSettingsBody;
|
|
3265
4320
|
}): Promise<GroupThreadMutationResponse>;
|
|
3266
|
-
declare function hideThread(
|
|
4321
|
+
declare function hideThread(context: TransportContext, input: {
|
|
3267
4322
|
readonly bearer: string;
|
|
3268
4323
|
readonly threadId: string;
|
|
3269
4324
|
}): Promise<MessagingOkResponse>;
|
|
3270
|
-
declare function inviteParticipants(
|
|
4325
|
+
declare function inviteParticipants(context: TransportContext, input: {
|
|
3271
4326
|
readonly bearer: string;
|
|
3272
4327
|
readonly threadId: string;
|
|
3273
4328
|
readonly body: InviteParticipantsBody;
|
|
3274
4329
|
}): Promise<GroupThreadMutationResponse>;
|
|
3275
|
-
declare function leaveThread(
|
|
4330
|
+
declare function leaveThread(context: TransportContext, input: {
|
|
3276
4331
|
readonly bearer: string;
|
|
3277
4332
|
readonly threadId: string;
|
|
3278
4333
|
}): Promise<MessagingOkResponse>;
|
|
3279
|
-
declare function pinThread(
|
|
4334
|
+
declare function pinThread(context: TransportContext, input: {
|
|
3280
4335
|
readonly bearer: string;
|
|
3281
4336
|
readonly threadId: string;
|
|
3282
4337
|
}): Promise<PinThreadResponse>;
|
|
3283
|
-
declare function unpinThread(
|
|
4338
|
+
declare function unpinThread(context: TransportContext, input: {
|
|
3284
4339
|
readonly bearer: string;
|
|
3285
4340
|
readonly threadId: string;
|
|
3286
4341
|
}): Promise<MessagingOkResponse>;
|
|
@@ -3313,7 +4368,7 @@ type AuthorizeUrl = {
|
|
|
3313
4368
|
declare function buildAuthorizeUrl(input: BuildAuthorizeUrlInput): Promise<AuthorizeUrl>;
|
|
3314
4369
|
//#endregion
|
|
3315
4370
|
//#region src/oauth/client-credentials.d.ts
|
|
3316
|
-
declare function mintClientCredentialsToken(
|
|
4371
|
+
declare function mintClientCredentialsToken(context: TransportContext, input: {
|
|
3317
4372
|
readonly clientId: string;
|
|
3318
4373
|
readonly clientSecret: string;
|
|
3319
4374
|
readonly scope?: readonly OauthScope[] | undefined;
|
|
@@ -3330,7 +4385,7 @@ declare function createAppTokenCache(options: {
|
|
|
3330
4385
|
}): AppTokenCache;
|
|
3331
4386
|
//#endregion
|
|
3332
4387
|
//#region src/oauth/discovery.d.ts
|
|
3333
|
-
declare function fetchAuthorizationServerMetadata(
|
|
4388
|
+
declare function fetchAuthorizationServerMetadata(context: TransportContext): Promise<OauthAuthorizationServerMetadata>;
|
|
3334
4389
|
declare function defaultEndpoints(issuer: string): {
|
|
3335
4390
|
authorize: string;
|
|
3336
4391
|
token: string;
|
|
@@ -3339,10 +4394,10 @@ declare function defaultEndpoints(issuer: string): {
|
|
|
3339
4394
|
};
|
|
3340
4395
|
//#endregion
|
|
3341
4396
|
//#region src/oauth/registration.d.ts
|
|
3342
|
-
declare function registerOauthClient(
|
|
4397
|
+
declare function registerOauthClient(context: TransportContext, input: OauthClientRegistrationRequest): Promise<OauthClientRegistrationResponse>;
|
|
3343
4398
|
//#endregion
|
|
3344
4399
|
//#region src/oauth/revoke.d.ts
|
|
3345
|
-
declare function revokeToken(
|
|
4400
|
+
declare function revokeToken(context: TransportContext, input: {
|
|
3346
4401
|
readonly token: string;
|
|
3347
4402
|
readonly tokenTypeHint?: "access_token" | "refresh_token" | undefined;
|
|
3348
4403
|
readonly clientId: string;
|
|
@@ -3350,14 +4405,14 @@ declare function revokeToken(ctx: TransportContext, input: {
|
|
|
3350
4405
|
}): Promise<void>;
|
|
3351
4406
|
//#endregion
|
|
3352
4407
|
//#region src/oauth/token.d.ts
|
|
3353
|
-
declare function exchangeAuthorizationCode(
|
|
4408
|
+
declare function exchangeAuthorizationCode(context: TransportContext, input: {
|
|
3354
4409
|
readonly code: string;
|
|
3355
4410
|
readonly redirectUri: string;
|
|
3356
4411
|
readonly codeVerifier: string;
|
|
3357
4412
|
readonly clientId: string;
|
|
3358
4413
|
readonly clientSecret?: string | undefined;
|
|
3359
4414
|
}): Promise<OauthTokenResponse>;
|
|
3360
|
-
declare function refreshAccessToken(
|
|
4415
|
+
declare function refreshAccessToken(context: TransportContext, input: {
|
|
3361
4416
|
readonly refreshToken: string;
|
|
3362
4417
|
readonly clientId: string;
|
|
3363
4418
|
readonly clientSecret?: string | undefined;
|
|
@@ -3366,31 +4421,31 @@ declare function refreshAccessToken(ctx: TransportContext, input: {
|
|
|
3366
4421
|
declare function toTokenSet(now: number, response: OauthTokenResponse): TokenSet;
|
|
3367
4422
|
//#endregion
|
|
3368
4423
|
//#region src/oauth/userinfo.d.ts
|
|
3369
|
-
declare function fetchUserInfo(
|
|
4424
|
+
declare function fetchUserInfo(context: TransportContext, input: {
|
|
3370
4425
|
readonly bearer: string;
|
|
3371
4426
|
}): Promise<OauthUserInfoResponse>;
|
|
3372
4427
|
//#endregion
|
|
3373
4428
|
//#region src/payments/appeal.d.ts
|
|
3374
|
-
declare function fileAppeal(
|
|
4429
|
+
declare function fileAppeal(context: TransportContext, input: {
|
|
3375
4430
|
readonly bearer: string;
|
|
3376
4431
|
readonly body: AppealFileRequest;
|
|
3377
4432
|
}): Promise<AppealFileResponse>;
|
|
3378
|
-
declare function fileAppealPotLeg(
|
|
4433
|
+
declare function fileAppealPotLeg(context: TransportContext, input: {
|
|
3379
4434
|
readonly bearer: string;
|
|
3380
4435
|
readonly body: AppealPotLegFileRequest;
|
|
3381
4436
|
}): Promise<AppealFileResponse>;
|
|
3382
4437
|
//#endregion
|
|
3383
4438
|
//#region src/payments/appeal-room.d.ts
|
|
3384
|
-
declare function getAppealRoom(
|
|
4439
|
+
declare function getAppealRoom(context: TransportContext, input: {
|
|
3385
4440
|
readonly bearer: string;
|
|
3386
4441
|
readonly appealId: string;
|
|
3387
4442
|
}): Promise<AppealRoomView>;
|
|
3388
|
-
declare function postAppealRoomMessage(
|
|
4443
|
+
declare function postAppealRoomMessage(context: TransportContext, input: {
|
|
3389
4444
|
readonly bearer: string;
|
|
3390
4445
|
readonly appealId: string;
|
|
3391
4446
|
readonly body: AppealRoomPostRequest;
|
|
3392
4447
|
}): Promise<AppealRoomPostResponse>;
|
|
3393
|
-
declare function uploadAppealRoomAttachment(
|
|
4448
|
+
declare function uploadAppealRoomAttachment(context: TransportContext, input: {
|
|
3394
4449
|
readonly bearer: string;
|
|
3395
4450
|
readonly appealId: string;
|
|
3396
4451
|
readonly file: Blob | ArrayBufferView | ArrayBuffer;
|
|
@@ -3399,7 +4454,7 @@ declare function uploadAppealRoomAttachment(ctx: TransportContext, input: {
|
|
|
3399
4454
|
}): Promise<UploadAttachmentResponse>;
|
|
3400
4455
|
//#endregion
|
|
3401
4456
|
//#region src/payments/cancel-pot.d.ts
|
|
3402
|
-
declare function cancelPot(
|
|
4457
|
+
declare function cancelPot(context: TransportContext, input: {
|
|
3403
4458
|
readonly appBearer: string;
|
|
3404
4459
|
readonly body: OauthPaymentCancelPotRequest;
|
|
3405
4460
|
}): Promise<OauthPaymentCancelPotResponse>;
|
|
@@ -3408,112 +4463,137 @@ declare function cancelPot(ctx: TransportContext, input: {
|
|
|
3408
4463
|
type ChargeResult = OauthPaymentChargeResponse | ({
|
|
3409
4464
|
status: "monthly_limit_exceeded";
|
|
3410
4465
|
} & Omit<OauthPaymentChargeLimitExceeded, "error">);
|
|
3411
|
-
declare function charge(
|
|
4466
|
+
declare function charge(context: TransportContext, input: {
|
|
3412
4467
|
readonly bearer: string;
|
|
3413
4468
|
readonly body: OauthPaymentChargeRequest;
|
|
3414
4469
|
readonly idempotencyKey?: string;
|
|
3415
4470
|
}): Promise<ChargeResult>;
|
|
3416
4471
|
//#endregion
|
|
3417
4472
|
//#region src/payments/distribute.d.ts
|
|
3418
|
-
declare function distributePot(
|
|
4473
|
+
declare function distributePot(context: TransportContext, input: {
|
|
3419
4474
|
readonly appBearer: string;
|
|
3420
4475
|
readonly body: OauthPaymentDistributeRequest;
|
|
3421
4476
|
}): Promise<OauthPaymentDistributeResponse>;
|
|
3422
4477
|
//#endregion
|
|
3423
4478
|
//#region src/payments/intent.d.ts
|
|
3424
|
-
declare function getPaymentIntent(
|
|
4479
|
+
declare function getPaymentIntent(context: TransportContext, input: {
|
|
3425
4480
|
readonly bearer: string;
|
|
3426
4481
|
readonly intentId: string;
|
|
3427
4482
|
}): Promise<OauthPaymentIntentContext>;
|
|
3428
|
-
declare function signPaymentIntent(
|
|
4483
|
+
declare function signPaymentIntent(context: TransportContext, input: {
|
|
3429
4484
|
readonly bearer: string;
|
|
3430
4485
|
readonly intentId: string;
|
|
3431
4486
|
}): Promise<OauthPaymentIntentSignResponse>;
|
|
3432
|
-
declare function completePaymentIntent(
|
|
4487
|
+
declare function completePaymentIntent(context: TransportContext, input: {
|
|
3433
4488
|
readonly bearer: string;
|
|
3434
4489
|
readonly intentId: string;
|
|
3435
4490
|
readonly body: OauthPaymentIntentComplete;
|
|
3436
4491
|
}): Promise<OauthPaymentIntentResolveResponse>;
|
|
3437
|
-
declare function denyPaymentIntent(
|
|
4492
|
+
declare function denyPaymentIntent(context: TransportContext, input: {
|
|
4493
|
+
readonly bearer: string;
|
|
4494
|
+
readonly intentId: string;
|
|
4495
|
+
}): Promise<OauthPaymentIntentResolveResponse>;
|
|
4496
|
+
declare function preparePaymentIntentSolana(context: TransportContext, input: {
|
|
4497
|
+
readonly bearer: string;
|
|
4498
|
+
readonly intentId: string;
|
|
4499
|
+
}): Promise<OauthPaymentIntentSolanaPrepareResponse>;
|
|
4500
|
+
declare function completePaymentIntentSolana(context: TransportContext, input: {
|
|
3438
4501
|
readonly bearer: string;
|
|
3439
4502
|
readonly intentId: string;
|
|
4503
|
+
readonly body: OauthPaymentIntentSolanaCompleteRequest;
|
|
3440
4504
|
}): Promise<OauthPaymentIntentResolveResponse>;
|
|
3441
4505
|
//#endregion
|
|
3442
4506
|
//#region src/payments/limits.d.ts
|
|
3443
|
-
declare function getPaymentLimits(
|
|
4507
|
+
declare function getPaymentLimits(context: TransportContext, input: {
|
|
3444
4508
|
readonly bearer: string;
|
|
3445
4509
|
}): Promise<OauthPaymentLimitsResponse>;
|
|
3446
4510
|
//#endregion
|
|
3447
4511
|
//#region src/payments/moonpay.d.ts
|
|
3448
|
-
declare function getMoonpayAvailability(
|
|
4512
|
+
declare function getMoonpayAvailability(context: TransportContext, input: {
|
|
3449
4513
|
readonly bearer: string;
|
|
3450
4514
|
}): Promise<MoonpayAvailabilityResponse>;
|
|
3451
|
-
declare function mintMoonpayBuyUrl(
|
|
4515
|
+
declare function mintMoonpayBuyUrl(context: TransportContext, input: {
|
|
3452
4516
|
readonly bearer: string;
|
|
3453
4517
|
readonly body: MoonpayBuyUrlRequest;
|
|
3454
4518
|
}): Promise<MoonpayBuyUrlResponse>;
|
|
3455
|
-
declare function mintMoonpaySellUrl(
|
|
4519
|
+
declare function mintMoonpaySellUrl(context: TransportContext, input: {
|
|
3456
4520
|
readonly bearer: string;
|
|
3457
4521
|
readonly body: MoonpaySellUrlRequest;
|
|
3458
4522
|
}): Promise<MoonpaySellUrlResponse>;
|
|
3459
4523
|
//#endregion
|
|
3460
4524
|
//#region src/payments/payout.d.ts
|
|
3461
|
-
declare function requestPayout(
|
|
4525
|
+
declare function requestPayout(context: TransportContext, input: {
|
|
3462
4526
|
readonly appBearer: string;
|
|
3463
4527
|
readonly body: OauthPaymentPayoutRequest;
|
|
3464
4528
|
}): Promise<OauthPaymentPayoutResponse>;
|
|
3465
4529
|
//#endregion
|
|
3466
4530
|
//#region src/payments/price.d.ts
|
|
3467
|
-
declare function getPaymentPrice(
|
|
4531
|
+
declare function getPaymentPrice(context: TransportContext, input: {
|
|
3468
4532
|
readonly bearer: string;
|
|
3469
4533
|
} & GetOauthPaymentsPriceData["query"]): Promise<OauthPaymentPriceResponse>;
|
|
3470
4534
|
//#endregion
|
|
3471
4535
|
//#region src/payments/status.d.ts
|
|
3472
|
-
declare function getIntentStatus(
|
|
4536
|
+
declare function getIntentStatus(context: TransportContext, input: {
|
|
3473
4537
|
readonly bearer: string;
|
|
3474
4538
|
readonly intentId: string;
|
|
3475
4539
|
}): Promise<OauthPaymentIntentStatus>;
|
|
3476
4540
|
//#endregion
|
|
3477
4541
|
//#region src/payments/tron.d.ts
|
|
3478
|
-
declare function getTronBalance(
|
|
4542
|
+
declare function getTronBalance(context: TransportContext, input: {
|
|
3479
4543
|
readonly bearer: string;
|
|
3480
4544
|
}): Promise<TronBalanceResponse>;
|
|
3481
|
-
declare function listTronLedger(
|
|
4545
|
+
declare function listTronLedger(context: TransportContext, input: {
|
|
3482
4546
|
readonly bearer: string;
|
|
3483
4547
|
readonly before?: string;
|
|
3484
4548
|
}): Promise<TronLedgerResponse>;
|
|
3485
|
-
declare function createTronDeposit(
|
|
4549
|
+
declare function createTronDeposit(context: TransportContext, input: {
|
|
3486
4550
|
readonly bearer: string;
|
|
3487
4551
|
readonly body: TronDepositRequest;
|
|
3488
4552
|
}): Promise<TronDepositResponse>;
|
|
3489
|
-
declare function
|
|
4553
|
+
declare function createTronTransfer(context: TransportContext, input: {
|
|
4554
|
+
readonly bearer: string;
|
|
4555
|
+
readonly body: TronTransferRequest;
|
|
4556
|
+
readonly idempotencyKey?: string;
|
|
4557
|
+
}): Promise<TronTransferResponse>;
|
|
4558
|
+
declare function getTronSecurity(context: TransportContext, input: {
|
|
4559
|
+
readonly bearer: string;
|
|
4560
|
+
}): Promise<TronSecuritySetting>;
|
|
4561
|
+
declare function setTronSecurity(context: TransportContext, input: {
|
|
4562
|
+
readonly bearer: string;
|
|
4563
|
+
readonly setting: TronSecuritySetting;
|
|
4564
|
+
}): Promise<TronSecuritySetting>;
|
|
4565
|
+
declare function createTronTransferChallenge(context: TransportContext, input: {
|
|
4566
|
+
readonly bearer: string;
|
|
4567
|
+
readonly body: TronTransferChallengeRequest;
|
|
4568
|
+
}): Promise<TronTransferChallengeResponse>;
|
|
4569
|
+
declare function createTronConnectOnboarding(context: TransportContext, input: {
|
|
3490
4570
|
readonly bearer: string;
|
|
3491
4571
|
}): Promise<TronConnectOnboardingResponse>;
|
|
3492
|
-
declare function createTronCashout(
|
|
4572
|
+
declare function createTronCashout(context: TransportContext, input: {
|
|
3493
4573
|
readonly bearer: string;
|
|
3494
4574
|
readonly body: TronCashoutCreateRequest;
|
|
3495
4575
|
}): Promise<TronCashoutItem>;
|
|
3496
|
-
declare function listTronCashouts(
|
|
4576
|
+
declare function listTronCashouts(context: TransportContext, input: {
|
|
3497
4577
|
readonly bearer: string;
|
|
3498
4578
|
}): Promise<TronCashoutListResponse>;
|
|
3499
4579
|
//#endregion
|
|
3500
4580
|
//#region src/payments/tron-game.d.ts
|
|
3501
|
-
declare function chargeTronPot(
|
|
4581
|
+
declare function chargeTronPot(context: TransportContext, input: {
|
|
3502
4582
|
readonly bearer: string;
|
|
3503
4583
|
readonly idempotencyKey: string;
|
|
3504
4584
|
readonly body: TronChargeRequest;
|
|
3505
4585
|
}): Promise<TronChargeResponse>;
|
|
3506
|
-
declare function chargeTronDirect(
|
|
4586
|
+
declare function chargeTronDirect(context: TransportContext, input: {
|
|
3507
4587
|
readonly bearer: string;
|
|
3508
4588
|
readonly idempotencyKey: string;
|
|
3509
4589
|
readonly body: TronDirectChargeRequest;
|
|
3510
4590
|
}): Promise<TronDirectChargeResponse>;
|
|
3511
|
-
declare function distributeTronPot(
|
|
4591
|
+
declare function distributeTronPot(context: TransportContext, input: {
|
|
3512
4592
|
readonly bearer: string;
|
|
3513
4593
|
readonly idempotencyKey: string;
|
|
3514
4594
|
readonly body: TronDistributeRequest;
|
|
3515
4595
|
}): Promise<TronDistributeResponse>;
|
|
3516
|
-
declare function getTronGameBalance(
|
|
4596
|
+
declare function getTronGameBalance(context: TransportContext, input: {
|
|
3517
4597
|
readonly bearer: string;
|
|
3518
4598
|
}): Promise<TronGameBalanceResponse>;
|
|
3519
4599
|
//#endregion
|
|
@@ -3526,7 +4606,7 @@ type MountPresenceWidgetOptions = {
|
|
|
3526
4606
|
readonly container?: HTMLElement;
|
|
3527
4607
|
readonly onPlaySessionId?: (playSessionId: string | null) => void;
|
|
3528
4608
|
readonly onStatus?: (status: PresenceStatus) => void;
|
|
3529
|
-
readonly onAuthChange?: (
|
|
4609
|
+
readonly onAuthChange?: (isAuthenticated: boolean) => void;
|
|
3530
4610
|
readonly styleIframe?: (iframe: HTMLIFrameElement) => void;
|
|
3531
4611
|
readonly onPresentationChange?: (mode: "chip" | "overlay") => void;
|
|
3532
4612
|
readonly background?: string;
|
|
@@ -3549,46 +4629,46 @@ type ConfirmResponse = {
|
|
|
3549
4629
|
type StatusResponse = {
|
|
3550
4630
|
readonly status: PlaySessionGameStatus;
|
|
3551
4631
|
};
|
|
3552
|
-
declare function confirmPlaySession(
|
|
4632
|
+
declare function confirmPlaySession(context: TransportContext, input: {
|
|
3553
4633
|
readonly credentials: GameHalfCredentials;
|
|
3554
4634
|
readonly playSessionId: string;
|
|
3555
4635
|
readonly userId: string;
|
|
3556
4636
|
}): Promise<ConfirmResponse>;
|
|
3557
|
-
declare function heartbeatPlaySession(
|
|
4637
|
+
declare function heartbeatPlaySession(context: TransportContext, input: {
|
|
3558
4638
|
readonly credentials: GameHalfCredentials;
|
|
3559
4639
|
readonly playSessionId: string;
|
|
3560
4640
|
}): Promise<StatusResponse>;
|
|
3561
|
-
declare function endPlaySession(
|
|
4641
|
+
declare function endPlaySession(context: TransportContext, input: {
|
|
3562
4642
|
readonly credentials: GameHalfCredentials;
|
|
3563
4643
|
readonly playSessionId: string;
|
|
3564
4644
|
}): Promise<StatusResponse>;
|
|
3565
4645
|
//#endregion
|
|
3566
4646
|
//#region src/reads/messaging.d.ts
|
|
3567
|
-
declare function listThreads(
|
|
4647
|
+
declare function listThreads(context: TransportContext, input: {
|
|
3568
4648
|
readonly bearer: string;
|
|
3569
4649
|
readonly limit?: number;
|
|
3570
4650
|
readonly cursor?: string;
|
|
3571
4651
|
}): Promise<ThreadListResponse>;
|
|
3572
|
-
declare function createDirectThread(
|
|
4652
|
+
declare function createDirectThread(context: TransportContext, input: {
|
|
3573
4653
|
readonly bearer: string;
|
|
3574
4654
|
readonly body: CreateDirectThreadBody;
|
|
3575
4655
|
}): Promise<ThreadSummary>;
|
|
3576
|
-
declare function listThreadMessages(
|
|
4656
|
+
declare function listThreadMessages(context: TransportContext, input: {
|
|
3577
4657
|
readonly bearer: string;
|
|
3578
4658
|
readonly threadId: string;
|
|
3579
4659
|
readonly limit?: number;
|
|
3580
4660
|
readonly cursor?: string;
|
|
3581
4661
|
}): Promise<MessagesPageResponse>;
|
|
3582
|
-
declare function sendMessage(
|
|
4662
|
+
declare function sendMessage(context: TransportContext, input: {
|
|
3583
4663
|
readonly bearer: string;
|
|
3584
4664
|
readonly threadId: string;
|
|
3585
4665
|
readonly body: SendMessageBody;
|
|
3586
4666
|
}): Promise<void>;
|
|
3587
|
-
declare function markThreadRead(
|
|
4667
|
+
declare function markThreadRead(context: TransportContext, input: {
|
|
3588
4668
|
readonly bearer: string;
|
|
3589
4669
|
readonly threadId: string;
|
|
3590
4670
|
}): Promise<void>;
|
|
3591
|
-
declare function uploadAttachment(
|
|
4671
|
+
declare function uploadAttachment(context: TransportContext, input: {
|
|
3592
4672
|
readonly bearer: string;
|
|
3593
4673
|
readonly threadId: string;
|
|
3594
4674
|
readonly file: Blob | ArrayBufferView | ArrayBuffer;
|
|
@@ -3597,116 +4677,123 @@ declare function uploadAttachment(ctx: TransportContext, input: {
|
|
|
3597
4677
|
}): Promise<UploadAttachmentResponse>;
|
|
3598
4678
|
//#endregion
|
|
3599
4679
|
//#region src/reads/notifications.d.ts
|
|
3600
|
-
declare function listNotifications(
|
|
4680
|
+
declare function listNotifications(context: TransportContext, input: {
|
|
3601
4681
|
readonly bearer: string;
|
|
3602
4682
|
readonly limit?: number;
|
|
3603
4683
|
readonly cursor?: string;
|
|
3604
4684
|
}): Promise<NotificationListResponse>;
|
|
3605
|
-
declare function updateNotification(
|
|
4685
|
+
declare function updateNotification(context: TransportContext, input: {
|
|
3606
4686
|
readonly bearer: string;
|
|
3607
4687
|
readonly notificationId: string;
|
|
3608
4688
|
readonly body: NotificationUpdate;
|
|
3609
4689
|
}): Promise<void>;
|
|
3610
|
-
declare function markAllNotificationsRead(
|
|
4690
|
+
declare function markAllNotificationsRead(context: TransportContext, input: {
|
|
3611
4691
|
readonly bearer: string;
|
|
3612
4692
|
}): Promise<void>;
|
|
3613
4693
|
//#endregion
|
|
3614
4694
|
//#region src/reads/playtime.d.ts
|
|
3615
|
-
declare function getPlaytime(
|
|
4695
|
+
declare function getPlaytime(context: TransportContext, input: {
|
|
3616
4696
|
readonly bearer: string;
|
|
3617
4697
|
}): Promise<PlaytimeOverview>;
|
|
3618
|
-
declare function getPlaytimeTimeseries(
|
|
4698
|
+
declare function getPlaytimeTimeseries(context: TransportContext, input: {
|
|
3619
4699
|
readonly bearer: string;
|
|
3620
4700
|
readonly days?: number;
|
|
3621
4701
|
}): Promise<PlaytimeTimeseries>;
|
|
3622
4702
|
//#endregion
|
|
3623
4703
|
//#region src/reads/profile.d.ts
|
|
3624
|
-
declare function getPublicProfile(
|
|
4704
|
+
declare function getPublicProfile(context: TransportContext, input: {
|
|
3625
4705
|
readonly bearer?: string;
|
|
3626
4706
|
readonly handle: string;
|
|
3627
4707
|
}): Promise<PublicProfile>;
|
|
3628
|
-
declare function searchUsers(
|
|
4708
|
+
declare function searchUsers(context: TransportContext, input: {
|
|
3629
4709
|
readonly bearer: string;
|
|
3630
4710
|
readonly q: string;
|
|
3631
4711
|
readonly limit?: number;
|
|
3632
4712
|
}): Promise<UserSearchResponse>;
|
|
3633
4713
|
//#endregion
|
|
3634
4714
|
//#region src/reads/referral.d.ts
|
|
3635
|
-
declare function getReferral(
|
|
4715
|
+
declare function getReferral(context: TransportContext, input: {
|
|
3636
4716
|
readonly bearer: string;
|
|
3637
4717
|
}): Promise<ReferralOverview>;
|
|
3638
|
-
declare function createReferralCode(
|
|
4718
|
+
declare function createReferralCode(context: TransportContext, input: {
|
|
3639
4719
|
readonly bearer: string;
|
|
3640
4720
|
readonly regenerate?: boolean;
|
|
3641
4721
|
}): Promise<ReferralCodeResponse>;
|
|
3642
|
-
declare function previewReferral(
|
|
4722
|
+
declare function previewReferral(context: TransportContext, input: {
|
|
3643
4723
|
readonly bearer: string;
|
|
3644
4724
|
readonly code: string;
|
|
3645
4725
|
}): Promise<ReferralPreviewResponse>;
|
|
3646
|
-
declare function bindReferral(
|
|
4726
|
+
declare function bindReferral(context: TransportContext, input: {
|
|
3647
4727
|
readonly bearer: string;
|
|
3648
4728
|
} & ReferralBindRequest): Promise<ReferralBindResponse>;
|
|
3649
4729
|
//#endregion
|
|
3650
4730
|
//#region src/reads/social-graph.d.ts
|
|
3651
|
-
declare function followUser(
|
|
4731
|
+
declare function followUser(context: TransportContext, input: {
|
|
4732
|
+
readonly bearer: string;
|
|
4733
|
+
readonly userId: string;
|
|
4734
|
+
}): Promise<void>;
|
|
4735
|
+
declare function unfollowUser(context: TransportContext, input: {
|
|
3652
4736
|
readonly bearer: string;
|
|
3653
4737
|
readonly userId: string;
|
|
3654
4738
|
}): Promise<void>;
|
|
3655
|
-
declare function
|
|
4739
|
+
declare function sendFriendRequest(context: TransportContext, input: {
|
|
3656
4740
|
readonly bearer: string;
|
|
3657
4741
|
readonly userId: string;
|
|
3658
4742
|
}): Promise<void>;
|
|
3659
|
-
declare function
|
|
4743
|
+
declare function removeFriend(context: TransportContext, input: {
|
|
3660
4744
|
readonly bearer: string;
|
|
3661
4745
|
readonly userId: string;
|
|
3662
4746
|
}): Promise<void>;
|
|
3663
|
-
declare function decideFriendRequest(
|
|
4747
|
+
declare function decideFriendRequest(context: TransportContext, input: {
|
|
3664
4748
|
readonly bearer: string;
|
|
3665
4749
|
readonly requestId: string;
|
|
3666
4750
|
readonly decision: FriendRequestDecision["decision"];
|
|
3667
4751
|
}): Promise<void>;
|
|
3668
|
-
declare function cancelFriendRequest(
|
|
4752
|
+
declare function cancelFriendRequest(context: TransportContext, input: {
|
|
3669
4753
|
readonly bearer: string;
|
|
3670
4754
|
readonly requestId: string;
|
|
3671
4755
|
}): Promise<void>;
|
|
3672
|
-
declare function listFriends(
|
|
4756
|
+
declare function listFriends(context: TransportContext, input: {
|
|
3673
4757
|
readonly bearer: string;
|
|
3674
4758
|
}): Promise<FriendListResponse>;
|
|
4759
|
+
declare function listFriendsForApp(context: TransportContext, input: {
|
|
4760
|
+
readonly bearer: string;
|
|
4761
|
+
}): Promise<AppFriendListResponse>;
|
|
3675
4762
|
//#endregion
|
|
3676
4763
|
//#region src/reads/socials.d.ts
|
|
3677
|
-
declare function listSocials(
|
|
4764
|
+
declare function listSocials(context: TransportContext, input: {
|
|
3678
4765
|
readonly bearer: string;
|
|
3679
4766
|
}): Promise<SocialListResponse>;
|
|
3680
4767
|
//#endregion
|
|
3681
4768
|
//#region src/reads/wallets.d.ts
|
|
3682
|
-
declare function listWallets(
|
|
4769
|
+
declare function listWallets(context: TransportContext, input: {
|
|
3683
4770
|
readonly bearer: string;
|
|
3684
4771
|
}): Promise<WalletListResponse>;
|
|
3685
4772
|
//#endregion
|
|
3686
4773
|
//#region src/wallets-mgmt/delegation.d.ts
|
|
3687
|
-
declare function getDelegation(
|
|
4774
|
+
declare function getDelegation(context: TransportContext, input: {
|
|
3688
4775
|
readonly bearer: string;
|
|
3689
4776
|
readonly address: string;
|
|
3690
4777
|
}): Promise<WalletDelegationStatus>;
|
|
3691
|
-
declare function createDelegation(
|
|
4778
|
+
declare function createDelegation(context: TransportContext, input: {
|
|
3692
4779
|
readonly bearer: string;
|
|
3693
4780
|
readonly address: string;
|
|
3694
4781
|
readonly body: CreateWalletDelegation;
|
|
3695
4782
|
}): Promise<CreateWalletDelegationResponse>;
|
|
3696
|
-
declare function deleteDelegation(
|
|
4783
|
+
declare function deleteDelegation(context: TransportContext, input: {
|
|
3697
4784
|
readonly bearer: string;
|
|
3698
4785
|
readonly address: string;
|
|
3699
4786
|
}): Promise<DeleteWalletDelegationResponse>;
|
|
3700
4787
|
//#endregion
|
|
3701
4788
|
//#region src/wallets-mgmt/label.d.ts
|
|
3702
|
-
declare function updateWalletLabel(
|
|
4789
|
+
declare function updateWalletLabel(context: TransportContext, input: {
|
|
3703
4790
|
readonly bearer: string;
|
|
3704
4791
|
readonly address: string;
|
|
3705
4792
|
readonly body: WalletLabelUpdate;
|
|
3706
4793
|
}): Promise<WalletLabelUpdateResponse>;
|
|
3707
4794
|
//#endregion
|
|
3708
4795
|
//#region src/wallets-mgmt/list.d.ts
|
|
3709
|
-
declare function listWalletManager(
|
|
4796
|
+
declare function listWalletManager(context: TransportContext, input: {
|
|
3710
4797
|
readonly bearer: string;
|
|
3711
4798
|
}): Promise<WalletListResponse>;
|
|
3712
4799
|
//#endregion
|
|
@@ -3798,6 +4885,7 @@ declare class TronNodeClient {
|
|
|
3798
4885
|
};
|
|
3799
4886
|
};
|
|
3800
4887
|
subscribeOauthPaymentEvents(lifecycle: OauthPaymentEventsSubscriberLifecycle): OauthPaymentEventsSubscriber;
|
|
4888
|
+
subscribeOauthInventoryEvents(lifecycle: OauthInventoryEventsSubscriberLifecycle): OauthInventoryEventsSubscriber;
|
|
3801
4889
|
get users(): {
|
|
3802
4890
|
get: (input: {
|
|
3803
4891
|
bearer?: string;
|
|
@@ -3898,6 +4986,11 @@ declare class TronNodeClient {
|
|
|
3898
4986
|
body: MintRequestInput;
|
|
3899
4987
|
}) => Promise<MintRequestResult>;
|
|
3900
4988
|
};
|
|
4989
|
+
get friends(): {
|
|
4990
|
+
list: (input: {
|
|
4991
|
+
bearer: string;
|
|
4992
|
+
}) => Promise<AppFriendListResponse>;
|
|
4993
|
+
};
|
|
3901
4994
|
get socials(): {
|
|
3902
4995
|
list: (input: {
|
|
3903
4996
|
bearer: string;
|
|
@@ -3919,4 +5012,4 @@ declare class TronNodeClient {
|
|
|
3919
5012
|
};
|
|
3920
5013
|
}
|
|
3921
5014
|
//#endregion
|
|
3922
|
-
export { AppTokenCache, AuthorizeUrl, type BrowserClientConfig, BuildAuthorizeUrlInput, ChargeResult, type FetchLike, GameHalfCredentials, HttpsGuardOptions, InflightDedup, type Logger, MountPresenceWidgetOptions, NOOP_RATE_LIMITER, type NodeClientConfig, OauthErrorCode, OauthPaymentEventsSubscriber, OauthPaymentEventsSubscriberLifecycle, OauthPaymentEventsSubscriberOptions, OauthPaymentWebhookBody, type OauthScope, PkcePair, PlaySessionGameStatus, PresenceStatus, PresenceWidgetHandle, RateLimitOptions, RateLimiter, RequestOptions, SERVER_RATE_LIMIT_MAX_MUTATING, SERVER_RATE_LIMIT_MAX_READ, SERVER_RATE_LIMIT_WINDOW_MS, type SdkBaseConfig, TRON_WS_CLOSE_CODES, type TokenSet, type TokenStore, TransportContext, TronError, TronNodeClient, TronOauthError, TronWsCloseCode, TronWsCloseError, VerifyWebhookFailure, VerifyWebhookInput, VerifyWebhookResult, VerifyWebhookSuccess, WEBHOOK_SIGNATURE_HEADER, WEBHOOK_TIMESTAMP_HEADER, acceptDeveloperInvite, addAdmin, addAppealBlacklist, addReaction, approveTronCashout, assertSecureIssuer, batchThreadDmKeys, bindReferral, buildAuthorizeUrl, cancelFriendRequest, cancelPot, charge, chargeTronDirect, chargeTronPot, completePaymentIntent, confirmPlaySession, consolidateDeveloperAppWallet, createAppTokenCache, createConsoleLogger, createDelegation, createDeveloperApiKey, createDeveloperApp, createDirectThread, createInMemoryTokenStore, createInflightDedup, createNoopLogger, createRateLimiter, createReferralCode, createTronCashout, createTronConnectOnboarding, createTronDeposit, decideFriendRequest, declineDeveloperInvite, defaultEndpoints, deleteAppPageBanner, deleteAppPageThumbnail, deleteAppPageThumbnailVideo, deleteAvatar, deleteDelegation, deleteDeveloperApp, deleteDeveloperAppLogo, deleteDeveloperProfileLogo, deleteDeveloperRequestLogo, deleteGameReviewReply, deleteMessage, deleteMyGameReview, deleteThread, deleteThreadLogo, denyPaymentIntent, distributePot, distributeTronPot, editMessage, endPlaySession, exchangeAuthorizationCode, fetchAuthorizationServerMetadata, fetchUserInfo, fileAppeal, fileAppealPotLeg, followUser, generatePkce, generateState, getActivity, getActivityGroup, getAdminAppealRoom, getAppFeeConfig, getAppPage, getAppPageChanges, getAppealRoom, getDelegation, getDeveloperAppActivity, getDeveloperAppBalances, getDeveloperAppEarnings, getDeveloperAppOverview, getDeveloperAppPage, getDeveloperAppPlaytime, getDeveloperAppTronBalance, getDeveloperAppWallets, getDeveloperPaymentAppeals, getDeveloperPaymentPendingDeposits, getDeveloperStatus, getDeveloperTronBalanceSummary, getDmKeyBackupStatus, getIntentStatus, getLibrary, getMoonpayAvailability, getMyDmKey, getMyGameReview, getOutstanding, getPaymentChains, getPaymentHistory, getPaymentIntent, getPaymentLimits, getPaymentPrice, getPlatformFees, getPlaytime, getPlaytimeTimeseries, getPublicProfile, getReferral, getThreadDmKey, getTronBalance, getTronGameBalance, heartbeatPlaySession, hideAppPage, hideThread, inviteDeveloperAppParticipant, inviteParticipants, leaveThread, listActivePlayers, listAdmins, listAppPages, listAppealBlacklist, listAppealQueue, listAudit, listDeveloperApiKeys, listDeveloperAppContentReports, listDeveloperAppParticipants, listDeveloperAppReviews, listDeveloperInvites, listDeveloperRequests, listDevelopers, listFriends, listGameReviews, listInventory, listInventoryForApp, listNotifications, listPaymentAuthorizations, listSocials, listThreadMessages, listThreads, listTronCashoutQueue, listTronCashouts, listTronLedger, listUsers, listWalletManager, listWallets, markAllNotificationsRead, markThreadRead, mintClientCredentialsToken, mintMoonpayBuyUrl, mintMoonpaySellUrl, mountPresenceWidget, oauthPaymentWebhookBodySchema, parseJson, pinThread, postAdminAppealRoomMessage, postAppealRoomMessage, previewReferral, provisionDeveloperAppWallet, publishDmKey, refreshAccessToken, registerOauthClient, rejectTronCashout, removeAdmin, removeAppealBlacklist, removeParticipant, removeReaction, replyToGameReview, requestDeveloperAppProduction, requestMint, requestPayout, resolveAppeal, reviewAppPage, reviewAppPageChanges, reviewDeveloperRequest, revokeDeveloperApiKey, revokeDeveloperAppParticipant, revokePaymentAuthorization, revokeToken, rotateDeveloperAppKey, rotateDeveloperAppPaymentWebhookSecret, rotateProcessorTreasury, searchGiphy, searchUsers, send, sendFriendRequest, sendJson, sendMessage, sendPresenceHeartbeat, setProcessorWhitelist, setVaultOperator, setVaultPause, setVaultWithdrawLockDefault, setVaultWithdrawLockOverride, setupDmKeyBackup, sha256Base64Url, signPaymentIntent, startOauthPaymentEventsSubscriber, submitAppContentReport, submitAppPageForReview, submitDeveloperRequest, toTokenSet, unfollowUser, unhideAppPage, unlockDmKeyBackup, unpinThread, unpublishAppPage, updateAdminRole, updateAppFeeConfig, updateAppPage, updateDeveloperApp, updateDeveloperAppAutoSweep, updateDeveloperAppContentReportStatus, updateDeveloperProfile, updateNotification, updateParticipantRole, updatePaymentAuthorization, updatePlatformFees, updateProfile, updateThreadSettings, updateUserBan, updateWalletLabel, uploadAdminAppealRoomAttachment, uploadAppPageBanner, uploadAppPageGallery, uploadAppPageThumbnail, uploadAppPageThumbnailVideo, uploadAppealRoomAttachment, uploadAttachment, uploadAvatar, uploadDeveloperAppLogo, uploadDeveloperProfileLogo, uploadDeveloperRequestLogo, uploadMultipart, uploadThreadLogo, upsertMyGameReview, verifyWebhook, withdrawDeveloperAppWallet };
|
|
5015
|
+
export { AppTokenCache, AuthorizeUrl, type BrowserClientConfig, BuildAuthorizeUrlInput, ChargeResult, type FetchLike, GameHalfCredentials, HttpsGuardOptions, InflightDedup, InventoryUpdateEvent, type Logger, MountPresenceWidgetOptions, NOOP_RATE_LIMITER, type NodeClientConfig, OauthErrorCode, OauthInventoryEventsSubscriber, OauthInventoryEventsSubscriberLifecycle, OauthInventoryEventsSubscriberOptions, OauthPaymentEventsSubscriber, OauthPaymentEventsSubscriberLifecycle, OauthPaymentEventsSubscriberOptions, OauthPaymentWebhookBody, type OauthScope, PkcePair, PlaySessionGameStatus, PresenceStatus, PresenceWidgetHandle, RateLimitOptions, RateLimiter, RequestOptions, SERVER_RATE_LIMIT_MAX_MUTATING, SERVER_RATE_LIMIT_MAX_READ, SERVER_RATE_LIMIT_WINDOW_MS, type SdkBaseConfig, TRON_WS_CLOSE_CODES, type TokenSet, type TokenStore, TransportContext, TronError, TronNodeClient, TronOauthError, TronWsCloseCode, TronWsCloseError, VerifyWebhookFailure, VerifyWebhookInput, VerifyWebhookResult, VerifyWebhookSuccess, WEBHOOK_SIGNATURE_HEADER, WEBHOOK_TIMESTAMP_HEADER, acceptDeveloperInvite, addAdmin, addAppealBlacklist, addReaction, approveTronCashout, assertSecureIssuer, batchThreadDmKeys, bindReferral, buildAuthorizeUrl, cancelFriendRequest, cancelPot, charge, chargeTronDirect, chargeTronPot, commentOnBipUpdate, commentOnGameReview, completePaymentIntent, completePaymentIntentSolana, confirmPlaySession, consolidateDeveloperAppWallet, createAppTokenCache, createBipUpdate, createConsoleLogger, createDelegation, createDeveloperApiKey, createDeveloperApp, createDeveloperAppMintPermit, createDeveloperVaultPermit, createDeveloperWithdrawPermit, createDirectThread, createInMemoryTokenStore, createInflightDedup, createNoopLogger, createRateLimiter, createReferralCode, createTronCashout, createTronConnectOnboarding, createTronDeposit, createTronTransfer, createTronTransferChallenge, decideFriendRequest, declineDeveloperInvite, defaultEndpoints, deleteAppPageBanner, deleteAppPageThumbnail, deleteAppPageThumbnailVideo, deleteAvatar, deleteBipUpdate, deleteBipUpdateComment, deleteDelegation, deleteDeveloperApp, deleteDeveloperAppLogo, deleteDeveloperProfileLogo, deleteDeveloperRequestLogo, deleteGameReviewComment, deleteGameReviewReply, deleteMessage, deleteMyGameReview, deleteThread, deleteThreadLogo, denyPaymentIntent, distributePot, distributeTronPot, editMessage, endPlaySession, exchangeAuthorizationCode, executeNftTransfer, fetchAuthorizationServerMetadata, fetchUserInfo, fileAppeal, fileAppealPotLeg, followUser, forceWithdrawVaultCustody, generatePkce, generateState, getActivity, getActivityGroup, getAdminAppealRoom, getAppFeeConfig, getAppPage, getAppPageChanges, getAppealRoom, getBipDirectory, getBipInterestCount, getBipPage, getDelegation, getDeveloperAppActivity, getDeveloperAppBalances, getDeveloperAppEarnings, getDeveloperAppInventoryItemHolders, getDeveloperAppOverview, getDeveloperAppPage, getDeveloperAppPlaytime, getDeveloperAppTronBalance, getDeveloperAppWallets, getDeveloperPaymentAppeals, getDeveloperPaymentPendingDeposits, getDeveloperStatus, getDeveloperTronBalanceSummary, getDmKeyBackupStatus, getIntentStatus, getLibrary, getMoonpayAvailability, getMyBipEngagement, getMyBipUpdateReactions, getMyDmKey, getMyGameReview, getMyGameReviewReactions, getOutstanding, getPaymentChains, getPaymentHistory, getPaymentIntent, getPaymentLimits, getPaymentPrice, getPaymentRates, getPlatformFees, getPlaytime, getPlaytimeTimeseries, getPublicProfile, getReferral, getThreadDmKey, getTronBalance, getTronGameBalance, getTronSecurity, heartbeatPlaySession, hideAppPage, hideAppPageBip, hideThread, inventoryUpdateEventSchema, inviteDeveloperAppParticipant, inviteParticipants, leaveThread, listActivePlayers, listAdminContentReports, listAdmins, listAppPages, listAppealBlacklist, listAppealQueue, listAudit, listBipUpdateComments, listBipUpdates, listDeveloperApiKeys, listDeveloperAppContentReports, listDeveloperAppInventoryCollections, listDeveloperAppInventoryItems, listDeveloperAppParticipants, listDeveloperAppReviews, listDeveloperBipUpdates, listDeveloperInvites, listDeveloperRequests, listDevelopers, listFriends, listFriendsForApp, listGameReviewComments, listGameReviews, listInventory, listInventoryForApp, listInventoryMintPermits, listInventoryVaultPermits, listInventoryVaulted, listNotifications, listOauthInventoryVaulted, listPaymentAuthorizations, listSocials, listThreadMessages, listThreads, listTronCashoutQueue, listTronCashouts, listTronLedger, listUsers, listWalletManager, listWallets, markAllNotificationsRead, markThreadRead, mintClientCredentialsToken, mintMoonpayBuyUrl, mintMoonpaySellUrl, mountPresenceWidget, oauthPaymentWebhookBodySchema, parseJson, pinThread, postAdminAppealRoomMessage, postAppealRoomMessage, preparePaymentIntentSolana, previewReferral, provisionDeveloperAppWallet, publishDmKey, quoteDeveloperAppInventoryRegistration, quoteNftTransfer, quoteRelayedVaultPermit, redeemInventoryMintPermit, refreshAccessToken, registerBipInterest, registerDeveloperAppInventoryItem, registerOauthClient, rejectTronCashout, removeAdmin, removeAppealBlacklist, removeFriend, removeParticipant, removeReaction, replyToGameReview, requestDeveloperAppProduction, requestMint, requestPayout, resolveAppeal, reviewAppPage, reviewAppPageBip, reviewAppPageChanges, reviewDeveloperRequest, revokeDeveloperApiKey, revokeDeveloperAppParticipant, revokePaymentAuthorization, revokeToken, rotateDeveloperAppKey, rotateDeveloperAppPaymentWebhookSecret, rotateProcessorTreasury, searchGiphy, searchUsers, send, sendFriendRequest, sendJson, sendMessage, sendPresenceHeartbeat, setAppPageBip, setBipUpdateReaction, setMyGameReviewReaction, setProcessorWhitelist, setTronSecurity, setVaultOperator, setVaultPause, setVaultWithdrawLockDefault, setVaultWithdrawLockOverride, setupDmKeyBackup, sha256Base64Url, signInventoryVaultPermit, signPaymentIntent, startOauthInventoryEventsSubscriber, startOauthPaymentEventsSubscriber, submitAppContentReport, submitAppPageBipForReview, submitAppPageForReview, submitDeveloperRequest, submitRelayedVaultPermit, subscribeBipUpdates, tipGameReview, toTokenSet, triageAdminContentReport, unfollowUser, unhideAppPage, unhideAppPageBip, unlockDmKeyBackup, unpinThread, unpublishAppPage, unpublishAppPageBip, updateAdminRole, updateAppFeeConfig, updateAppPage, updateBipUpdate, updateDeveloperApp, updateDeveloperAppAutoSweep, updateDeveloperAppContentReportStatus, updateDeveloperProfile, updateNotification, updateParticipantRole, updatePaymentAuthorization, updatePlatformFees, updateProfile, updateThreadSettings, updateUserBan, updateWalletLabel, uploadAdminAppealRoomAttachment, uploadAppPageBanner, uploadAppPageGallery, uploadAppPageThumbnail, uploadAppPageThumbnailVideo, uploadAppealRoomAttachment, uploadAttachment, uploadAvatar, uploadBipUpdateMedia, uploadDeveloperAppInventoryItemBanner, uploadDeveloperAppInventoryItemImage, uploadDeveloperAppLogo, uploadDeveloperProfileLogo, uploadDeveloperRequestLogo, uploadMultipart, uploadThreadLogo, upsertMyGameReview, verifyWebhook, withdrawDeveloperAppWallet };
|