@metatrongg/sdk 0.8.0-dev.1703dbe → 0.8.0-dev.1ef20e5
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/dist/browser/index.d.ts +232 -199
- package/dist/browser/index.js +1 -1
- package/dist/contracts/index.d.ts +633 -18
- package/dist/contracts/index.js +1 -1
- package/dist/index.js +1 -1
- package/dist/node/index.d.ts +244 -211
- 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 +10 -10
package/dist/browser/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
|
|
@@ -334,9 +334,16 @@ type PublicAppPage = {
|
|
|
334
334
|
chapters: AppPageChapters;
|
|
335
335
|
links: AppPageLinks;
|
|
336
336
|
studio: PublicAppPageStudio;
|
|
337
|
+
platforms: AppPagePlatforms;
|
|
338
|
+
gameType: AppPageGameType;
|
|
339
|
+
ageRating: AppPageAgeRating;
|
|
340
|
+
languages: AppPageLanguages;
|
|
341
|
+
releaseStatus: AppPageReleaseStatus;
|
|
342
|
+
paymentsMode: AppPagePaymentsMode;
|
|
337
343
|
oauthScopes: Array<string>;
|
|
338
344
|
chains: Array<string>;
|
|
339
345
|
publishedAt: string;
|
|
346
|
+
updatedAt: string;
|
|
340
347
|
};
|
|
341
348
|
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">;
|
|
342
349
|
type AppPageTagline = string;
|
|
@@ -365,6 +372,12 @@ type PublicAppPageStudio = {
|
|
|
365
372
|
xHandle: string | null;
|
|
366
373
|
githubUrl: string | null;
|
|
367
374
|
};
|
|
375
|
+
type AppPagePlatforms = Array<"web" | "ios" | "android" | "pc" | "playstation" | "xbox" | "switch">;
|
|
376
|
+
type AppPageGameType = "single_player" | "multiplayer" | "both" | null;
|
|
377
|
+
type AppPageAgeRating = "everyone" | "13_plus" | "16_plus" | "18_plus" | null;
|
|
378
|
+
type AppPageLanguages = Array<"en" | "es" | "fr" | "de" | "pt" | "it" | "ru" | "ja" | "ko" | "zh" | "hi" | "ar" | "tr" | "vi" | "id" | "th" | "pl" | "nl">;
|
|
379
|
+
type AppPageReleaseStatus = "live" | "open_beta" | "coming_soon";
|
|
380
|
+
type AppPagePaymentsMode = "tron" | "onchain" | "both" | null;
|
|
368
381
|
type ReviewListResponse = {
|
|
369
382
|
aggregate: ReviewAggregate;
|
|
370
383
|
reviews: Array<Review>;
|
|
@@ -773,6 +786,8 @@ type ActivityRowTronPot = {
|
|
|
773
786
|
role: "incoming" | "outgoing";
|
|
774
787
|
leg: "stake" | "payout" | "dev_cut" | "purchase" | "referral";
|
|
775
788
|
amountCents: number;
|
|
789
|
+
usdCents: number;
|
|
790
|
+
status: "settled";
|
|
776
791
|
app: {
|
|
777
792
|
id: string;
|
|
778
793
|
name: string;
|
|
@@ -780,8 +795,16 @@ type ActivityRowTronPot = {
|
|
|
780
795
|
slug: string | null;
|
|
781
796
|
bannerUrl: string | null;
|
|
782
797
|
} | null;
|
|
798
|
+
involvedUsers?: Array<ActivityTronInvolvedUser> | null;
|
|
783
799
|
metadata?: PaymentMetadata | null;
|
|
784
800
|
};
|
|
801
|
+
type ActivityTronInvolvedUser = {
|
|
802
|
+
userId: string;
|
|
803
|
+
handle: string | null;
|
|
804
|
+
displayName: string | null;
|
|
805
|
+
role: "stake" | "payout" | "dev_cut" | "purchase" | "referral";
|
|
806
|
+
amountCents: number;
|
|
807
|
+
};
|
|
785
808
|
type ActivityRowTronCashout = {
|
|
786
809
|
kind: "tron_cashout";
|
|
787
810
|
groupId: string | null;
|
|
@@ -1856,6 +1879,11 @@ type AppPageDraft = {
|
|
|
1856
1879
|
gallery: AppPageGallery;
|
|
1857
1880
|
chapters: AppPageChapters;
|
|
1858
1881
|
links: AppPageLinks;
|
|
1882
|
+
platforms: AppPagePlatforms;
|
|
1883
|
+
gameType: AppPageGameType;
|
|
1884
|
+
ageRating: AppPageAgeRating;
|
|
1885
|
+
languages: AppPageLanguages;
|
|
1886
|
+
releaseStatus: AppPageReleaseStatus;
|
|
1859
1887
|
firstPublishedAt: string | null;
|
|
1860
1888
|
reviewedAt: string | null;
|
|
1861
1889
|
reviewNotes: string | null;
|
|
@@ -1878,6 +1906,11 @@ type UpdateAppPage = {
|
|
|
1878
1906
|
gallery?: AppPageGallery;
|
|
1879
1907
|
chapters?: AppPageChapters;
|
|
1880
1908
|
links?: AppPageLinks;
|
|
1909
|
+
platforms?: AppPagePlatforms;
|
|
1910
|
+
gameType?: AppPageGameType;
|
|
1911
|
+
ageRating?: AppPageAgeRating;
|
|
1912
|
+
languages?: AppPageLanguages;
|
|
1913
|
+
releaseStatus?: AppPageReleaseStatus;
|
|
1881
1914
|
};
|
|
1882
1915
|
type AppPageGalleryUploadResponse = {
|
|
1883
1916
|
url: string;
|
|
@@ -2285,229 +2318,229 @@ type PostMeDeveloperAppsByAppIdPageThumbnailVideoResponses = {
|
|
|
2285
2318
|
type PostMeDeveloperAppsByAppIdPageThumbnailVideoResponse = PostMeDeveloperAppsByAppIdPageThumbnailVideoResponses[keyof PostMeDeveloperAppsByAppIdPageThumbnailVideoResponses];
|
|
2286
2319
|
//#endregion
|
|
2287
2320
|
//#region src/account/avatar.d.ts
|
|
2288
|
-
declare function uploadAvatar(
|
|
2321
|
+
declare function uploadAvatar(context: TransportContext, input: {
|
|
2289
2322
|
readonly bearer: string;
|
|
2290
2323
|
readonly file: Blob | ArrayBufferView | ArrayBuffer;
|
|
2291
2324
|
readonly filename: string;
|
|
2292
2325
|
readonly contentType: string;
|
|
2293
2326
|
}): Promise<AuthUser>;
|
|
2294
|
-
declare function deleteAvatar(
|
|
2327
|
+
declare function deleteAvatar(context: TransportContext, input: {
|
|
2295
2328
|
readonly bearer: string;
|
|
2296
2329
|
}): Promise<AuthUser>;
|
|
2297
2330
|
//#endregion
|
|
2298
2331
|
//#region src/account/giphy.d.ts
|
|
2299
|
-
declare function searchGiphy(
|
|
2332
|
+
declare function searchGiphy(context: TransportContext, input: {
|
|
2300
2333
|
readonly bearer: string;
|
|
2301
2334
|
readonly q: string;
|
|
2302
2335
|
}): Promise<GiphySearchResponse>;
|
|
2303
2336
|
//#endregion
|
|
2304
2337
|
//#region src/account/payment-authorizations.d.ts
|
|
2305
|
-
declare function listPaymentAuthorizations(
|
|
2338
|
+
declare function listPaymentAuthorizations(context: TransportContext, input: {
|
|
2306
2339
|
readonly bearer: string;
|
|
2307
2340
|
}): Promise<ListAppPaymentAuthorizationsResponse>;
|
|
2308
|
-
declare function updatePaymentAuthorization(
|
|
2341
|
+
declare function updatePaymentAuthorization(context: TransportContext, input: {
|
|
2309
2342
|
readonly bearer: string;
|
|
2310
2343
|
readonly consentId: string;
|
|
2311
2344
|
readonly body: UpdateAppPaymentAuthorization;
|
|
2312
2345
|
}): Promise<void>;
|
|
2313
|
-
declare function revokePaymentAuthorization(
|
|
2346
|
+
declare function revokePaymentAuthorization(context: TransportContext, input: {
|
|
2314
2347
|
readonly bearer: string;
|
|
2315
2348
|
readonly consentId: string;
|
|
2316
2349
|
}): Promise<void>;
|
|
2317
2350
|
//#endregion
|
|
2318
2351
|
//#region src/account/presence-heartbeat.d.ts
|
|
2319
|
-
declare function sendPresenceHeartbeat(
|
|
2352
|
+
declare function sendPresenceHeartbeat(context: TransportContext, input: {
|
|
2320
2353
|
readonly bearer: string;
|
|
2321
2354
|
}): Promise<WebPresenceHeartbeatAck>;
|
|
2322
2355
|
//#endregion
|
|
2323
2356
|
//#region src/account/profile.d.ts
|
|
2324
|
-
declare function updateProfile(
|
|
2357
|
+
declare function updateProfile(context: TransportContext, input: {
|
|
2325
2358
|
readonly bearer: string;
|
|
2326
2359
|
readonly body: ProfileUpdate;
|
|
2327
2360
|
}): Promise<AuthUser>;
|
|
2328
2361
|
//#endregion
|
|
2329
2362
|
//#region src/admin/active-players.d.ts
|
|
2330
|
-
declare function listActivePlayers(
|
|
2363
|
+
declare function listActivePlayers(context: TransportContext, input: {
|
|
2331
2364
|
readonly bearer: string;
|
|
2332
2365
|
}): Promise<AdminActivePlayersResponse>;
|
|
2333
2366
|
//#endregion
|
|
2334
2367
|
//#region src/admin/app-pages.d.ts
|
|
2335
|
-
declare function listAppPages(
|
|
2368
|
+
declare function listAppPages(context: TransportContext, input: {
|
|
2336
2369
|
readonly bearer: string;
|
|
2337
2370
|
readonly status?: "draft" | "pending_review" | "published" | "hidden" | "all" | "pending_changes";
|
|
2338
2371
|
}): Promise<AdminAppPageListResponse>;
|
|
2339
|
-
declare function getAppPageChanges(
|
|
2372
|
+
declare function getAppPageChanges(context: TransportContext, input: {
|
|
2340
2373
|
readonly bearer: string;
|
|
2341
2374
|
readonly appId: string;
|
|
2342
2375
|
}): Promise<AdminAppPageDiffResponse>;
|
|
2343
|
-
declare function reviewAppPageChanges(
|
|
2376
|
+
declare function reviewAppPageChanges(context: TransportContext, input: {
|
|
2344
2377
|
readonly bearer: string;
|
|
2345
2378
|
readonly appId: string;
|
|
2346
2379
|
readonly body: ReviewAppPage;
|
|
2347
2380
|
}): Promise<AdminAppPageStatusResponse>;
|
|
2348
|
-
declare function hideAppPage(
|
|
2381
|
+
declare function hideAppPage(context: TransportContext, input: {
|
|
2349
2382
|
readonly bearer: string;
|
|
2350
2383
|
readonly appId: string;
|
|
2351
2384
|
readonly body: HideAppPage;
|
|
2352
2385
|
}): Promise<AdminAppPageStatusResponse>;
|
|
2353
|
-
declare function unhideAppPage(
|
|
2386
|
+
declare function unhideAppPage(context: TransportContext, input: {
|
|
2354
2387
|
readonly bearer: string;
|
|
2355
2388
|
readonly appId: string;
|
|
2356
2389
|
}): Promise<AdminAppPageStatusResponse>;
|
|
2357
|
-
declare function reviewAppPage(
|
|
2390
|
+
declare function reviewAppPage(context: TransportContext, input: {
|
|
2358
2391
|
readonly bearer: string;
|
|
2359
2392
|
readonly appId: string;
|
|
2360
2393
|
readonly body: ReviewAppPage;
|
|
2361
2394
|
}): Promise<AdminAppPageStatusResponse>;
|
|
2362
2395
|
//#endregion
|
|
2363
2396
|
//#region src/admin/appeals.d.ts
|
|
2364
|
-
declare function listAppealQueue(
|
|
2397
|
+
declare function listAppealQueue(context: TransportContext, input: {
|
|
2365
2398
|
readonly bearer: string;
|
|
2366
2399
|
readonly statuses?: readonly AppealStatusRow["status"][];
|
|
2367
2400
|
readonly chain?: string;
|
|
2368
2401
|
readonly cursorFiledAt?: string;
|
|
2369
2402
|
readonly limit?: number;
|
|
2370
2403
|
}): Promise<ListAppealsResponse>;
|
|
2371
|
-
declare function getAdminAppealRoom(
|
|
2404
|
+
declare function getAdminAppealRoom(context: TransportContext, input: {
|
|
2372
2405
|
readonly bearer: string;
|
|
2373
2406
|
readonly appealId: string;
|
|
2374
2407
|
}): Promise<AppealRoomView>;
|
|
2375
|
-
declare function postAdminAppealRoomMessage(
|
|
2408
|
+
declare function postAdminAppealRoomMessage(context: TransportContext, input: {
|
|
2376
2409
|
readonly bearer: string;
|
|
2377
2410
|
readonly appealId: string;
|
|
2378
2411
|
readonly body: AppealRoomPostRequest;
|
|
2379
2412
|
}): Promise<AppealRoomPostResponse>;
|
|
2380
|
-
declare function uploadAdminAppealRoomAttachment(
|
|
2413
|
+
declare function uploadAdminAppealRoomAttachment(context: TransportContext, input: {
|
|
2381
2414
|
readonly bearer: string;
|
|
2382
2415
|
readonly appealId: string;
|
|
2383
2416
|
readonly file: Blob | ArrayBufferView | ArrayBuffer;
|
|
2384
2417
|
readonly filename: string;
|
|
2385
2418
|
readonly contentType: string;
|
|
2386
2419
|
}): Promise<UploadAttachmentResponse>;
|
|
2387
|
-
declare function resolveAppeal(
|
|
2420
|
+
declare function resolveAppeal(context: TransportContext, input: {
|
|
2388
2421
|
readonly bearer: string;
|
|
2389
2422
|
readonly appealId: string;
|
|
2390
2423
|
readonly body: AppealResolveRequest;
|
|
2391
2424
|
}): Promise<AppealResolveSignedResponse>;
|
|
2392
2425
|
//#endregion
|
|
2393
2426
|
//#region src/admin/developers.d.ts
|
|
2394
|
-
declare function listDeveloperRequests(
|
|
2427
|
+
declare function listDeveloperRequests(context: TransportContext, input: {
|
|
2395
2428
|
readonly bearer: string;
|
|
2396
2429
|
readonly status?: "pending" | "approved" | "rejected" | "cancelled";
|
|
2397
2430
|
readonly kind?: "role" | "production";
|
|
2398
2431
|
}): Promise<ListDeveloperRequestsResponse>;
|
|
2399
|
-
declare function reviewDeveloperRequest(
|
|
2432
|
+
declare function reviewDeveloperRequest(context: TransportContext, input: {
|
|
2400
2433
|
readonly bearer: string;
|
|
2401
2434
|
readonly id: string;
|
|
2402
2435
|
readonly body: ReviewDeveloperRequest;
|
|
2403
2436
|
}): Promise<ReviewDeveloperRequestResponse>;
|
|
2404
|
-
declare function listDevelopers(
|
|
2437
|
+
declare function listDevelopers(context: TransportContext, input: {
|
|
2405
2438
|
readonly bearer: string;
|
|
2406
2439
|
}): Promise<AdminDeveloperListResponse>;
|
|
2407
2440
|
//#endregion
|
|
2408
2441
|
//#region src/admin/payments.d.ts
|
|
2409
|
-
declare function getPlatformFees(
|
|
2442
|
+
declare function getPlatformFees(context: TransportContext, input: {
|
|
2410
2443
|
readonly bearer: string;
|
|
2411
2444
|
}): Promise<PlatformFeesResponse>;
|
|
2412
|
-
declare function updatePlatformFees(
|
|
2445
|
+
declare function updatePlatformFees(context: TransportContext, input: {
|
|
2413
2446
|
readonly bearer: string;
|
|
2414
2447
|
readonly body: UpdatePlatformFeesRequest;
|
|
2415
2448
|
}): Promise<UpdatePlatformFeesResponse>;
|
|
2416
|
-
declare function getAppFeeConfig(
|
|
2449
|
+
declare function getAppFeeConfig(context: TransportContext, input: {
|
|
2417
2450
|
readonly bearer: string;
|
|
2418
2451
|
readonly appId: string;
|
|
2419
2452
|
}): Promise<AppFeeConfigResponse>;
|
|
2420
|
-
declare function updateAppFeeConfig(
|
|
2453
|
+
declare function updateAppFeeConfig(context: TransportContext, input: {
|
|
2421
2454
|
readonly bearer: string;
|
|
2422
2455
|
readonly appId: string;
|
|
2423
2456
|
readonly body: UpdateAppFeeConfigRequest;
|
|
2424
2457
|
}): Promise<AppFeeConfigResponse>;
|
|
2425
|
-
declare function setProcessorWhitelist(
|
|
2458
|
+
declare function setProcessorWhitelist(context: TransportContext, input: {
|
|
2426
2459
|
readonly bearer: string;
|
|
2427
2460
|
readonly body: SetProcessorWhitelistRequest;
|
|
2428
2461
|
}): Promise<CalldataEnvelope>;
|
|
2429
|
-
declare function rotateProcessorTreasury(
|
|
2462
|
+
declare function rotateProcessorTreasury(context: TransportContext, input: {
|
|
2430
2463
|
readonly bearer: string;
|
|
2431
2464
|
readonly processorId: string;
|
|
2432
2465
|
readonly body: RotateProcessorTreasuryRequest;
|
|
2433
2466
|
}): Promise<CalldataEnvelope>;
|
|
2434
|
-
declare function setVaultOperator(
|
|
2467
|
+
declare function setVaultOperator(context: TransportContext, input: {
|
|
2435
2468
|
readonly bearer: string;
|
|
2436
2469
|
readonly vaultAddress: string;
|
|
2437
2470
|
readonly body: SetOperatorRequest;
|
|
2438
2471
|
}): Promise<CalldataEnvelope>;
|
|
2439
|
-
declare function setVaultPause(
|
|
2472
|
+
declare function setVaultPause(context: TransportContext, input: {
|
|
2440
2473
|
readonly bearer: string;
|
|
2441
2474
|
readonly vaultAddress: string;
|
|
2442
2475
|
readonly body: PauseRequest;
|
|
2443
2476
|
}): Promise<CalldataEnvelope>;
|
|
2444
|
-
declare function setVaultWithdrawLockDefault(
|
|
2477
|
+
declare function setVaultWithdrawLockDefault(context: TransportContext, input: {
|
|
2445
2478
|
readonly bearer: string;
|
|
2446
2479
|
readonly vaultAddress: string;
|
|
2447
2480
|
readonly body: SetDefaultWithdrawLockRequest;
|
|
2448
2481
|
}): Promise<CalldataEnvelope>;
|
|
2449
|
-
declare function setVaultWithdrawLockOverride(
|
|
2482
|
+
declare function setVaultWithdrawLockOverride(context: TransportContext, input: {
|
|
2450
2483
|
readonly bearer: string;
|
|
2451
2484
|
readonly vaultAddress: string;
|
|
2452
2485
|
readonly body: SetWithdrawLockOverrideRequest;
|
|
2453
2486
|
}): Promise<CalldataEnvelope>;
|
|
2454
|
-
declare function addAppealBlacklist(
|
|
2487
|
+
declare function addAppealBlacklist(context: TransportContext, input: {
|
|
2455
2488
|
readonly bearer: string;
|
|
2456
2489
|
readonly body: AppealBlacklistAddRequest;
|
|
2457
2490
|
}): Promise<AppealBlacklistEntry>;
|
|
2458
|
-
declare function removeAppealBlacklist(
|
|
2491
|
+
declare function removeAppealBlacklist(context: TransportContext, input: {
|
|
2459
2492
|
readonly bearer: string;
|
|
2460
2493
|
readonly body: AppealBlacklistRemoveRequest;
|
|
2461
2494
|
}): Promise<AppealBlacklistRemoveResponse>;
|
|
2462
|
-
declare function listAppealBlacklist(
|
|
2495
|
+
declare function listAppealBlacklist(context: TransportContext, input: {
|
|
2463
2496
|
readonly bearer: string;
|
|
2464
2497
|
readonly chain?: string;
|
|
2465
2498
|
}): Promise<AppealBlacklistListResponse>;
|
|
2466
2499
|
//#endregion
|
|
2467
2500
|
//#region src/admin/tron-cashouts.d.ts
|
|
2468
|
-
declare function listTronCashoutQueue(
|
|
2501
|
+
declare function listTronCashoutQueue(context: TransportContext, input: {
|
|
2469
2502
|
readonly bearer: string;
|
|
2470
2503
|
readonly status?: AdminTronCashoutItem["status"];
|
|
2471
2504
|
}): Promise<AdminTronCashoutListResponse>;
|
|
2472
|
-
declare function approveTronCashout(
|
|
2505
|
+
declare function approveTronCashout(context: TransportContext, input: {
|
|
2473
2506
|
readonly bearer: string;
|
|
2474
2507
|
readonly id: string;
|
|
2475
2508
|
}): Promise<AdminTronCashoutItem>;
|
|
2476
|
-
declare function rejectTronCashout(
|
|
2509
|
+
declare function rejectTronCashout(context: TransportContext, input: {
|
|
2477
2510
|
readonly bearer: string;
|
|
2478
2511
|
readonly id: string;
|
|
2479
2512
|
readonly body: AdminTronCashoutRejectRequest;
|
|
2480
2513
|
}): Promise<AdminTronCashoutItem>;
|
|
2481
2514
|
//#endregion
|
|
2482
2515
|
//#region src/admin/users.d.ts
|
|
2483
|
-
declare function listAdmins(
|
|
2516
|
+
declare function listAdmins(context: TransportContext, input: {
|
|
2484
2517
|
readonly bearer: string;
|
|
2485
2518
|
}): Promise<ListAdminsResponse>;
|
|
2486
|
-
declare function addAdmin(
|
|
2519
|
+
declare function addAdmin(context: TransportContext, input: {
|
|
2487
2520
|
readonly bearer: string;
|
|
2488
2521
|
readonly body: AddAdminRequest;
|
|
2489
2522
|
}): Promise<AdminMutationResponse>;
|
|
2490
|
-
declare function updateAdminRole(
|
|
2523
|
+
declare function updateAdminRole(context: TransportContext, input: {
|
|
2491
2524
|
readonly bearer: string;
|
|
2492
2525
|
readonly id: string;
|
|
2493
2526
|
readonly body: UpdateAdminRoleRequest;
|
|
2494
2527
|
}): Promise<AdminRoleChangeResponse>;
|
|
2495
|
-
declare function removeAdmin(
|
|
2528
|
+
declare function removeAdmin(context: TransportContext, input: {
|
|
2496
2529
|
readonly bearer: string;
|
|
2497
2530
|
readonly id: string;
|
|
2498
2531
|
}): Promise<AdminMutationResponse>;
|
|
2499
|
-
declare function listUsers(
|
|
2532
|
+
declare function listUsers(context: TransportContext, input: {
|
|
2500
2533
|
readonly bearer: string;
|
|
2501
2534
|
readonly search?: string;
|
|
2502
2535
|
readonly offset?: number;
|
|
2503
2536
|
readonly limit?: number;
|
|
2504
2537
|
}): Promise<AdminUserListResponse>;
|
|
2505
|
-
declare function updateUserBan(
|
|
2538
|
+
declare function updateUserBan(context: TransportContext, input: {
|
|
2506
2539
|
readonly bearer: string;
|
|
2507
2540
|
readonly id: string;
|
|
2508
2541
|
readonly body: AdminUserBanRequest;
|
|
2509
2542
|
}): Promise<AdminUserBanResponse>;
|
|
2510
|
-
declare function listAudit(
|
|
2543
|
+
declare function listAudit(context: TransportContext, input: {
|
|
2511
2544
|
readonly bearer: string;
|
|
2512
2545
|
readonly action?: string;
|
|
2513
2546
|
readonly actorId?: string;
|
|
@@ -2518,20 +2551,20 @@ declare function listAudit(ctx: TransportContext, input: {
|
|
|
2518
2551
|
}): Promise<AdminAuditListResponse>;
|
|
2519
2552
|
//#endregion
|
|
2520
2553
|
//#region src/catalog/app-page.d.ts
|
|
2521
|
-
declare function getAppPage(
|
|
2554
|
+
declare function getAppPage(context: TransportContext, input: {
|
|
2522
2555
|
readonly bearer?: string;
|
|
2523
2556
|
readonly slug: string;
|
|
2524
2557
|
}): Promise<PublicAppPage>;
|
|
2525
2558
|
//#endregion
|
|
2526
2559
|
//#region src/catalog/content-reports.d.ts
|
|
2527
|
-
declare function submitAppContentReport(
|
|
2560
|
+
declare function submitAppContentReport(context: TransportContext, input: {
|
|
2528
2561
|
readonly appId: string;
|
|
2529
2562
|
readonly bearer: string;
|
|
2530
2563
|
readonly report: SubmitAppContentReportRequest;
|
|
2531
2564
|
}): Promise<SubmitAppContentReportResponse>;
|
|
2532
2565
|
//#endregion
|
|
2533
2566
|
//#region src/catalog/library.d.ts
|
|
2534
|
-
declare function getLibrary(
|
|
2567
|
+
declare function getLibrary(context: TransportContext, input: {
|
|
2535
2568
|
readonly bearer?: string;
|
|
2536
2569
|
readonly genre?: string;
|
|
2537
2570
|
readonly q?: string;
|
|
@@ -2540,40 +2573,40 @@ declare function getLibrary(ctx: TransportContext, input: {
|
|
|
2540
2573
|
}): Promise<LibraryListResponse>;
|
|
2541
2574
|
//#endregion
|
|
2542
2575
|
//#region src/catalog/reviews.d.ts
|
|
2543
|
-
declare function listGameReviews(
|
|
2576
|
+
declare function listGameReviews(context: TransportContext, input: {
|
|
2544
2577
|
readonly slug: string;
|
|
2545
2578
|
readonly bearer?: string;
|
|
2546
2579
|
readonly sort?: ReviewSort;
|
|
2547
2580
|
readonly limit?: number;
|
|
2548
2581
|
readonly offset?: number;
|
|
2549
2582
|
}): Promise<ReviewListResponse>;
|
|
2550
|
-
declare function listDeveloperAppReviews(
|
|
2583
|
+
declare function listDeveloperAppReviews(context: TransportContext, input: {
|
|
2551
2584
|
readonly appId: string;
|
|
2552
2585
|
readonly bearer: string;
|
|
2553
2586
|
readonly sort?: ReviewSort;
|
|
2554
2587
|
readonly limit?: number;
|
|
2555
2588
|
readonly offset?: number;
|
|
2556
2589
|
}): Promise<ReviewListResponse>;
|
|
2557
|
-
declare function getMyGameReview(
|
|
2590
|
+
declare function getMyGameReview(context: TransportContext, input: {
|
|
2558
2591
|
readonly slug: string;
|
|
2559
2592
|
readonly bearer: string;
|
|
2560
2593
|
}): Promise<MyReviewResponse>;
|
|
2561
|
-
declare function upsertMyGameReview(
|
|
2594
|
+
declare function upsertMyGameReview(context: TransportContext, input: {
|
|
2562
2595
|
readonly slug: string;
|
|
2563
2596
|
readonly bearer: string;
|
|
2564
2597
|
readonly review: UpsertReviewRequest;
|
|
2565
2598
|
}): Promise<MyReviewResponse>;
|
|
2566
|
-
declare function deleteMyGameReview(
|
|
2599
|
+
declare function deleteMyGameReview(context: TransportContext, input: {
|
|
2567
2600
|
readonly slug: string;
|
|
2568
2601
|
readonly bearer: string;
|
|
2569
2602
|
}): Promise<MyReviewResponse>;
|
|
2570
|
-
declare function replyToGameReview(
|
|
2603
|
+
declare function replyToGameReview(context: TransportContext, input: {
|
|
2571
2604
|
readonly appId: string;
|
|
2572
2605
|
readonly reviewId: string;
|
|
2573
2606
|
readonly bearer: string;
|
|
2574
2607
|
readonly reply: UpsertReviewReplyRequest;
|
|
2575
2608
|
}): Promise<ReviewReplyResponse>;
|
|
2576
|
-
declare function deleteGameReviewReply(
|
|
2609
|
+
declare function deleteGameReviewReply(context: TransportContext, input: {
|
|
2577
2610
|
readonly appId: string;
|
|
2578
2611
|
readonly reviewId: string;
|
|
2579
2612
|
readonly bearer: string;
|
|
@@ -2617,7 +2650,7 @@ declare function createConsoleLogger(prefix?: string): Logger;
|
|
|
2617
2650
|
declare function createInMemoryTokenStore(): TokenStore;
|
|
2618
2651
|
//#endregion
|
|
2619
2652
|
//#region src/dashboard/activity.d.ts
|
|
2620
|
-
declare function getActivity(
|
|
2653
|
+
declare function getActivity(context: TransportContext, input: {
|
|
2621
2654
|
readonly bearer: string;
|
|
2622
2655
|
readonly kind?: string;
|
|
2623
2656
|
readonly direction?: "outgoing" | "incoming";
|
|
@@ -2628,24 +2661,24 @@ declare function getActivity(ctx: TransportContext, input: {
|
|
|
2628
2661
|
readonly before?: string;
|
|
2629
2662
|
readonly includeInactive?: boolean;
|
|
2630
2663
|
}): Promise<ActivityResponse>;
|
|
2631
|
-
declare function getActivityGroup(
|
|
2664
|
+
declare function getActivityGroup(context: TransportContext, input: {
|
|
2632
2665
|
readonly bearer: string;
|
|
2633
2666
|
readonly groupId: string;
|
|
2634
2667
|
}): Promise<ActivityResponse>;
|
|
2635
2668
|
//#endregion
|
|
2636
2669
|
//#region src/dashboard/chains.d.ts
|
|
2637
|
-
declare function getPaymentChains(
|
|
2670
|
+
declare function getPaymentChains(context: TransportContext, input: {
|
|
2638
2671
|
readonly bearer: string;
|
|
2639
2672
|
}): Promise<PaymentChainsResponse>;
|
|
2640
2673
|
//#endregion
|
|
2641
2674
|
//#region src/dashboard/outstanding.d.ts
|
|
2642
|
-
declare function getOutstanding(
|
|
2675
|
+
declare function getOutstanding(context: TransportContext, input: {
|
|
2643
2676
|
readonly bearer: string;
|
|
2644
2677
|
readonly chain?: string;
|
|
2645
2678
|
}): Promise<OutstandingResponse>;
|
|
2646
2679
|
//#endregion
|
|
2647
2680
|
//#region src/dashboard/payment-history.d.ts
|
|
2648
|
-
declare function getPaymentHistory(
|
|
2681
|
+
declare function getPaymentHistory(context: TransportContext, input: {
|
|
2649
2682
|
readonly bearer: string;
|
|
2650
2683
|
readonly status?: "pending" | "completed" | "expired" | "all";
|
|
2651
2684
|
readonly limit?: number;
|
|
@@ -2653,52 +2686,52 @@ declare function getPaymentHistory(ctx: TransportContext, input: {
|
|
|
2653
2686
|
}): Promise<PaymentHistoryResponse>;
|
|
2654
2687
|
//#endregion
|
|
2655
2688
|
//#region src/developer/api-keys.d.ts
|
|
2656
|
-
declare function createDeveloperApiKey(
|
|
2689
|
+
declare function createDeveloperApiKey(context: TransportContext, input: {
|
|
2657
2690
|
readonly bearer: string;
|
|
2658
2691
|
readonly body: CreateDeveloperApiKey;
|
|
2659
2692
|
}): Promise<CreateDeveloperApiKeyResponse>;
|
|
2660
|
-
declare function listDeveloperApiKeys(
|
|
2693
|
+
declare function listDeveloperApiKeys(context: TransportContext, input: {
|
|
2661
2694
|
readonly bearer: string;
|
|
2662
2695
|
}): Promise<DeveloperApiKeysResponse>;
|
|
2663
|
-
declare function revokeDeveloperApiKey(
|
|
2696
|
+
declare function revokeDeveloperApiKey(context: TransportContext, input: {
|
|
2664
2697
|
readonly bearer: string;
|
|
2665
2698
|
readonly id: string;
|
|
2666
2699
|
}): Promise<DeveloperOkResponse>;
|
|
2667
2700
|
//#endregion
|
|
2668
2701
|
//#region src/developer/apps.d.ts
|
|
2669
|
-
declare function createDeveloperApp(
|
|
2702
|
+
declare function createDeveloperApp(context: TransportContext, input: {
|
|
2670
2703
|
readonly bearer: string;
|
|
2671
2704
|
readonly body: CreateDeveloperApp;
|
|
2672
2705
|
}): Promise<DeveloperAppIdResponse>;
|
|
2673
|
-
declare function updateDeveloperApp(
|
|
2706
|
+
declare function updateDeveloperApp(context: TransportContext, input: {
|
|
2674
2707
|
readonly bearer: string;
|
|
2675
2708
|
readonly id: string;
|
|
2676
2709
|
readonly body: UpdateDeveloperApp;
|
|
2677
2710
|
}): Promise<DeveloperAppIdResponse>;
|
|
2678
|
-
declare function deleteDeveloperApp(
|
|
2711
|
+
declare function deleteDeveloperApp(context: TransportContext, input: {
|
|
2679
2712
|
readonly bearer: string;
|
|
2680
2713
|
readonly id: string;
|
|
2681
2714
|
}): Promise<DeveloperAppIdResponse>;
|
|
2682
|
-
declare function uploadDeveloperAppLogo(
|
|
2715
|
+
declare function uploadDeveloperAppLogo(context: TransportContext, input: {
|
|
2683
2716
|
readonly bearer: string;
|
|
2684
2717
|
readonly id: string;
|
|
2685
2718
|
readonly file: Blob | ArrayBufferView | ArrayBuffer;
|
|
2686
2719
|
readonly filename: string;
|
|
2687
2720
|
readonly contentType: string;
|
|
2688
2721
|
}): Promise<DeveloperLogoUploadResponse>;
|
|
2689
|
-
declare function deleteDeveloperAppLogo(
|
|
2722
|
+
declare function deleteDeveloperAppLogo(context: TransportContext, input: {
|
|
2690
2723
|
readonly bearer: string;
|
|
2691
2724
|
readonly id: string;
|
|
2692
2725
|
}): Promise<DeveloperLogoUploadResponse>;
|
|
2693
|
-
declare function getDeveloperAppBalances(
|
|
2726
|
+
declare function getDeveloperAppBalances(context: TransportContext, input: {
|
|
2694
2727
|
readonly bearer: string;
|
|
2695
2728
|
readonly id: string;
|
|
2696
2729
|
}): Promise<DeveloperAppBalancesResponse>;
|
|
2697
|
-
declare function getDeveloperAppTronBalance(
|
|
2730
|
+
declare function getDeveloperAppTronBalance(context: TransportContext, input: {
|
|
2698
2731
|
readonly bearer: string;
|
|
2699
2732
|
readonly id: string;
|
|
2700
2733
|
}): Promise<DeveloperAppTronBalanceResponse>;
|
|
2701
|
-
declare function getDeveloperAppActivity(
|
|
2734
|
+
declare function getDeveloperAppActivity(context: TransportContext, input: {
|
|
2702
2735
|
readonly bearer: string;
|
|
2703
2736
|
readonly id: string;
|
|
2704
2737
|
readonly kind?: string;
|
|
@@ -2709,80 +2742,80 @@ declare function getDeveloperAppActivity(ctx: TransportContext, input: {
|
|
|
2709
2742
|
readonly cursor?: string;
|
|
2710
2743
|
readonly before?: string;
|
|
2711
2744
|
}): Promise<ActivityResponse>;
|
|
2712
|
-
declare function getDeveloperAppEarnings(
|
|
2745
|
+
declare function getDeveloperAppEarnings(context: TransportContext, input: {
|
|
2713
2746
|
readonly bearer: string;
|
|
2714
2747
|
readonly id: string;
|
|
2715
2748
|
readonly range?: string;
|
|
2716
2749
|
readonly chain?: string;
|
|
2717
2750
|
}): Promise<DeveloperAppEarningsResponse>;
|
|
2718
|
-
declare function getDeveloperAppPlaytime(
|
|
2751
|
+
declare function getDeveloperAppPlaytime(context: TransportContext, input: {
|
|
2719
2752
|
readonly bearer: string;
|
|
2720
2753
|
readonly id: string;
|
|
2721
2754
|
readonly range?: string;
|
|
2722
2755
|
}): Promise<DeveloperAppPlaytimeResponse>;
|
|
2723
|
-
declare function getDeveloperAppOverview(
|
|
2756
|
+
declare function getDeveloperAppOverview(context: TransportContext, input: {
|
|
2724
2757
|
readonly bearer: string;
|
|
2725
2758
|
readonly id: string;
|
|
2726
2759
|
}): Promise<DeveloperAppOverviewResponse>;
|
|
2727
|
-
declare function getDeveloperAppWallets(
|
|
2760
|
+
declare function getDeveloperAppWallets(context: TransportContext, input: {
|
|
2728
2761
|
readonly bearer: string;
|
|
2729
2762
|
readonly id: string;
|
|
2730
2763
|
}): Promise<DeveloperAppWalletsResponse>;
|
|
2731
|
-
declare function updateDeveloperAppAutoSweep(
|
|
2764
|
+
declare function updateDeveloperAppAutoSweep(context: TransportContext, input: {
|
|
2732
2765
|
readonly bearer: string;
|
|
2733
2766
|
readonly id: string;
|
|
2734
2767
|
readonly chain: string;
|
|
2735
2768
|
readonly body: DeveloperAppAutoSweepRequest;
|
|
2736
2769
|
}): Promise<DeveloperAppAutoSweepResponse>;
|
|
2737
|
-
declare function provisionDeveloperAppWallet(
|
|
2770
|
+
declare function provisionDeveloperAppWallet(context: TransportContext, input: {
|
|
2738
2771
|
readonly bearer: string;
|
|
2739
2772
|
readonly id: string;
|
|
2740
2773
|
readonly chain: string;
|
|
2741
2774
|
}): Promise<DeveloperAppProvisionWalletResponse>;
|
|
2742
|
-
declare function withdrawDeveloperAppWallet(
|
|
2775
|
+
declare function withdrawDeveloperAppWallet(context: TransportContext, input: {
|
|
2743
2776
|
readonly bearer: string;
|
|
2744
2777
|
readonly id: string;
|
|
2745
2778
|
readonly chain: string;
|
|
2746
2779
|
readonly token?: string;
|
|
2747
2780
|
}): Promise<DeveloperAppWithdrawResponse>;
|
|
2748
|
-
declare function consolidateDeveloperAppWallet(
|
|
2781
|
+
declare function consolidateDeveloperAppWallet(context: TransportContext, input: {
|
|
2749
2782
|
readonly bearer: string;
|
|
2750
2783
|
readonly id: string;
|
|
2751
2784
|
readonly chain: string;
|
|
2752
2785
|
}): Promise<DeveloperAppConsolidateResponse>;
|
|
2753
|
-
declare function rotateDeveloperAppKey(
|
|
2786
|
+
declare function rotateDeveloperAppKey(context: TransportContext, input: {
|
|
2754
2787
|
readonly bearer: string;
|
|
2755
2788
|
readonly id: string;
|
|
2756
2789
|
readonly env: "development" | "production";
|
|
2757
2790
|
}): Promise<RegenerateDeveloperAppKeyResponse>;
|
|
2758
|
-
declare function requestDeveloperAppProduction(
|
|
2791
|
+
declare function requestDeveloperAppProduction(context: TransportContext, input: {
|
|
2759
2792
|
readonly bearer: string;
|
|
2760
2793
|
readonly id: string;
|
|
2761
2794
|
readonly body: CreateDeveloperProductionRequest;
|
|
2762
2795
|
}): Promise<CreateDeveloperProductionRequestResponse>;
|
|
2763
|
-
declare function rotateDeveloperAppPaymentWebhookSecret(
|
|
2796
|
+
declare function rotateDeveloperAppPaymentWebhookSecret(context: TransportContext, input: {
|
|
2764
2797
|
readonly bearer: string;
|
|
2765
2798
|
readonly id: string;
|
|
2766
2799
|
}): Promise<RegenerateDeveloperAppWebhookSecretResponse>;
|
|
2767
|
-
declare function getDeveloperPaymentAppeals(
|
|
2800
|
+
declare function getDeveloperPaymentAppeals(context: TransportContext, input: {
|
|
2768
2801
|
readonly bearer: string;
|
|
2769
2802
|
readonly chain?: string;
|
|
2770
2803
|
}): Promise<DevAppealsResponse>;
|
|
2771
|
-
declare function getDeveloperPaymentPendingDeposits(
|
|
2804
|
+
declare function getDeveloperPaymentPendingDeposits(context: TransportContext, input: {
|
|
2772
2805
|
readonly bearer: string;
|
|
2773
2806
|
readonly chain?: string;
|
|
2774
2807
|
}): Promise<DevPendingDepositsResponse>;
|
|
2775
|
-
declare function getDeveloperTronBalanceSummary(
|
|
2808
|
+
declare function getDeveloperTronBalanceSummary(context: TransportContext, input: {
|
|
2776
2809
|
readonly bearer: string;
|
|
2777
2810
|
}): Promise<DeveloperTronBalanceSummaryResponse>;
|
|
2778
|
-
declare function listDeveloperAppContentReports(
|
|
2811
|
+
declare function listDeveloperAppContentReports(context: TransportContext, input: {
|
|
2779
2812
|
readonly bearer: string;
|
|
2780
2813
|
readonly id: string;
|
|
2781
2814
|
readonly status?: AppContentReportStatus;
|
|
2782
2815
|
readonly limit?: number;
|
|
2783
2816
|
readonly offset?: number;
|
|
2784
2817
|
}): Promise<AppContentReportListResponse>;
|
|
2785
|
-
declare function updateDeveloperAppContentReportStatus(
|
|
2818
|
+
declare function updateDeveloperAppContentReportStatus(context: TransportContext, input: {
|
|
2786
2819
|
readonly bearer: string;
|
|
2787
2820
|
readonly id: string;
|
|
2788
2821
|
readonly reportId: string;
|
|
@@ -2790,122 +2823,122 @@ declare function updateDeveloperAppContentReportStatus(ctx: TransportContext, in
|
|
|
2790
2823
|
}): Promise<AppContentReport>;
|
|
2791
2824
|
//#endregion
|
|
2792
2825
|
//#region src/developer/pages.d.ts
|
|
2793
|
-
declare function getDeveloperAppPage(
|
|
2826
|
+
declare function getDeveloperAppPage(context: TransportContext, input: {
|
|
2794
2827
|
readonly bearer: string;
|
|
2795
2828
|
readonly appId: string;
|
|
2796
2829
|
}): Promise<AppPageDraft>;
|
|
2797
|
-
declare function updateAppPage(
|
|
2830
|
+
declare function updateAppPage(context: TransportContext, input: {
|
|
2798
2831
|
readonly bearer: string;
|
|
2799
2832
|
readonly appId: string;
|
|
2800
2833
|
readonly body: UpdateAppPage;
|
|
2801
2834
|
}): Promise<AppPageDraft>;
|
|
2802
|
-
declare function uploadAppPageBanner(
|
|
2835
|
+
declare function uploadAppPageBanner(context: TransportContext, input: {
|
|
2803
2836
|
readonly bearer: string;
|
|
2804
2837
|
readonly appId: string;
|
|
2805
2838
|
readonly file: Blob | ArrayBufferView | ArrayBuffer;
|
|
2806
2839
|
readonly filename: string;
|
|
2807
2840
|
readonly contentType: string;
|
|
2808
2841
|
}): Promise<PostMeDeveloperAppsByAppIdPageBannerResponse>;
|
|
2809
|
-
declare function deleteAppPageBanner(
|
|
2842
|
+
declare function deleteAppPageBanner(context: TransportContext, input: {
|
|
2810
2843
|
readonly bearer: string;
|
|
2811
2844
|
readonly appId: string;
|
|
2812
2845
|
}): Promise<void>;
|
|
2813
|
-
declare function uploadAppPageThumbnail(
|
|
2846
|
+
declare function uploadAppPageThumbnail(context: TransportContext, input: {
|
|
2814
2847
|
readonly bearer: string;
|
|
2815
2848
|
readonly appId: string;
|
|
2816
2849
|
readonly file: Blob | ArrayBufferView | ArrayBuffer;
|
|
2817
2850
|
readonly filename: string;
|
|
2818
2851
|
readonly contentType: string;
|
|
2819
2852
|
}): Promise<PostMeDeveloperAppsByAppIdPageThumbnailResponse>;
|
|
2820
|
-
declare function deleteAppPageThumbnail(
|
|
2853
|
+
declare function deleteAppPageThumbnail(context: TransportContext, input: {
|
|
2821
2854
|
readonly bearer: string;
|
|
2822
2855
|
readonly appId: string;
|
|
2823
2856
|
}): Promise<void>;
|
|
2824
|
-
declare function uploadAppPageThumbnailVideo(
|
|
2857
|
+
declare function uploadAppPageThumbnailVideo(context: TransportContext, input: {
|
|
2825
2858
|
readonly bearer: string;
|
|
2826
2859
|
readonly appId: string;
|
|
2827
2860
|
readonly file: Blob | ArrayBufferView | ArrayBuffer;
|
|
2828
2861
|
readonly filename: string;
|
|
2829
2862
|
readonly contentType: string;
|
|
2830
2863
|
}): Promise<PostMeDeveloperAppsByAppIdPageThumbnailVideoResponse>;
|
|
2831
|
-
declare function deleteAppPageThumbnailVideo(
|
|
2864
|
+
declare function deleteAppPageThumbnailVideo(context: TransportContext, input: {
|
|
2832
2865
|
readonly bearer: string;
|
|
2833
2866
|
readonly appId: string;
|
|
2834
2867
|
}): Promise<void>;
|
|
2835
|
-
declare function uploadAppPageGallery(
|
|
2868
|
+
declare function uploadAppPageGallery(context: TransportContext, input: {
|
|
2836
2869
|
readonly bearer: string;
|
|
2837
2870
|
readonly appId: string;
|
|
2838
2871
|
readonly file: Blob | ArrayBufferView | ArrayBuffer;
|
|
2839
2872
|
readonly filename: string;
|
|
2840
2873
|
readonly contentType: string;
|
|
2841
2874
|
}): Promise<AppPageGalleryUploadResponse>;
|
|
2842
|
-
declare function submitAppPageForReview(
|
|
2875
|
+
declare function submitAppPageForReview(context: TransportContext, input: {
|
|
2843
2876
|
readonly bearer: string;
|
|
2844
2877
|
readonly appId: string;
|
|
2845
2878
|
}): Promise<AppPageDraft>;
|
|
2846
|
-
declare function unpublishAppPage(
|
|
2879
|
+
declare function unpublishAppPage(context: TransportContext, input: {
|
|
2847
2880
|
readonly bearer: string;
|
|
2848
2881
|
readonly appId: string;
|
|
2849
2882
|
}): Promise<AppPageDraft>;
|
|
2850
2883
|
//#endregion
|
|
2851
2884
|
//#region src/developer/participants.d.ts
|
|
2852
|
-
declare function listDeveloperAppParticipants(
|
|
2885
|
+
declare function listDeveloperAppParticipants(context: TransportContext, input: {
|
|
2853
2886
|
readonly bearer: string;
|
|
2854
2887
|
readonly id: string;
|
|
2855
2888
|
}): Promise<DeveloperAppParticipantsResponse>;
|
|
2856
|
-
declare function inviteDeveloperAppParticipant(
|
|
2889
|
+
declare function inviteDeveloperAppParticipant(context: TransportContext, input: {
|
|
2857
2890
|
readonly bearer: string;
|
|
2858
2891
|
readonly id: string;
|
|
2859
2892
|
readonly body: InviteDeveloperAppParticipant;
|
|
2860
2893
|
}): Promise<DeveloperAppParticipantsResponse>;
|
|
2861
|
-
declare function revokeDeveloperAppParticipant(
|
|
2894
|
+
declare function revokeDeveloperAppParticipant(context: TransportContext, input: {
|
|
2862
2895
|
readonly bearer: string;
|
|
2863
2896
|
readonly id: string;
|
|
2864
2897
|
readonly userId: string;
|
|
2865
2898
|
}): Promise<DeveloperOkResponse>;
|
|
2866
|
-
declare function listDeveloperInvites(
|
|
2899
|
+
declare function listDeveloperInvites(context: TransportContext, input: {
|
|
2867
2900
|
readonly bearer: string;
|
|
2868
2901
|
}): Promise<DeveloperInvitesResponse>;
|
|
2869
|
-
declare function acceptDeveloperInvite(
|
|
2902
|
+
declare function acceptDeveloperInvite(context: TransportContext, input: {
|
|
2870
2903
|
readonly bearer: string;
|
|
2871
2904
|
readonly appId: string;
|
|
2872
2905
|
}): Promise<DeveloperOkResponse>;
|
|
2873
|
-
declare function declineDeveloperInvite(
|
|
2906
|
+
declare function declineDeveloperInvite(context: TransportContext, input: {
|
|
2874
2907
|
readonly bearer: string;
|
|
2875
2908
|
readonly appId: string;
|
|
2876
2909
|
}): Promise<DeveloperOkResponse>;
|
|
2877
2910
|
//#endregion
|
|
2878
2911
|
//#region src/developer/profile.d.ts
|
|
2879
|
-
declare function getDeveloperStatus(
|
|
2912
|
+
declare function getDeveloperStatus(context: TransportContext, input: {
|
|
2880
2913
|
readonly bearer: string;
|
|
2881
2914
|
}): Promise<DeveloperMeStatus>;
|
|
2882
|
-
declare function updateDeveloperProfile(
|
|
2915
|
+
declare function updateDeveloperProfile(context: TransportContext, input: {
|
|
2883
2916
|
readonly bearer: string;
|
|
2884
2917
|
readonly body: UpdateDeveloperProfile;
|
|
2885
2918
|
}): Promise<DeveloperOkResponse>;
|
|
2886
|
-
declare function uploadDeveloperProfileLogo(
|
|
2919
|
+
declare function uploadDeveloperProfileLogo(context: TransportContext, input: {
|
|
2887
2920
|
readonly bearer: string;
|
|
2888
2921
|
readonly file: Blob | ArrayBufferView | ArrayBuffer;
|
|
2889
2922
|
readonly filename: string;
|
|
2890
2923
|
readonly contentType: string;
|
|
2891
2924
|
}): Promise<DeveloperLogoUploadResponse>;
|
|
2892
|
-
declare function deleteDeveloperProfileLogo(
|
|
2925
|
+
declare function deleteDeveloperProfileLogo(context: TransportContext, input: {
|
|
2893
2926
|
readonly bearer: string;
|
|
2894
2927
|
}): Promise<DeveloperLogoUploadResponse>;
|
|
2895
|
-
declare function submitDeveloperRequest(
|
|
2928
|
+
declare function submitDeveloperRequest(context: TransportContext, input: {
|
|
2896
2929
|
readonly bearer: string;
|
|
2897
2930
|
readonly body: CreateDeveloperRoleRequest;
|
|
2898
2931
|
}): Promise<DeveloperOkResponse>;
|
|
2899
|
-
declare function uploadDeveloperRequestLogo(
|
|
2932
|
+
declare function uploadDeveloperRequestLogo(context: TransportContext, input: {
|
|
2900
2933
|
readonly bearer: string;
|
|
2901
2934
|
readonly file: Blob | ArrayBufferView | ArrayBuffer;
|
|
2902
2935
|
readonly filename: string;
|
|
2903
2936
|
readonly contentType: string;
|
|
2904
2937
|
}): Promise<DeveloperLogoUploadResponse>;
|
|
2905
|
-
declare function deleteDeveloperRequestLogo(
|
|
2938
|
+
declare function deleteDeveloperRequestLogo(context: TransportContext, input: {
|
|
2906
2939
|
readonly bearer: string;
|
|
2907
2940
|
}): Promise<DeveloperLogoUploadResponse>;
|
|
2908
|
-
declare function uploadMultipart(
|
|
2941
|
+
declare function uploadMultipart(context: TransportContext, input: {
|
|
2909
2942
|
readonly path: string;
|
|
2910
2943
|
readonly bearer: string;
|
|
2911
2944
|
readonly file: Blob | ArrayBufferView | ArrayBuffer;
|
|
@@ -2914,81 +2947,81 @@ declare function uploadMultipart(ctx: TransportContext, input: {
|
|
|
2914
2947
|
}): Promise<unknown>;
|
|
2915
2948
|
//#endregion
|
|
2916
2949
|
//#region src/inventory/list.d.ts
|
|
2917
|
-
declare function listInventory(
|
|
2950
|
+
declare function listInventory(context: TransportContext, input: {
|
|
2918
2951
|
readonly bearer: string;
|
|
2919
2952
|
}): Promise<InventoryListResponse>;
|
|
2920
|
-
declare function listInventoryForApp(
|
|
2953
|
+
declare function listInventoryForApp(context: TransportContext, input: {
|
|
2921
2954
|
readonly bearer: string;
|
|
2922
2955
|
}): Promise<InventoryListResponse>;
|
|
2923
2956
|
//#endregion
|
|
2924
2957
|
//#region src/inventory/request-mint.d.ts
|
|
2925
|
-
declare function requestMint(
|
|
2958
|
+
declare function requestMint(context: TransportContext, input: {
|
|
2926
2959
|
readonly appBearer: string;
|
|
2927
2960
|
readonly body: MintRequestInput;
|
|
2928
2961
|
}): Promise<MintRequestResult>;
|
|
2929
2962
|
//#endregion
|
|
2930
2963
|
//#region src/messaging/dm-key-backup.d.ts
|
|
2931
|
-
declare function getDmKeyBackupStatus(
|
|
2964
|
+
declare function getDmKeyBackupStatus(context: TransportContext, input: {
|
|
2932
2965
|
readonly bearer: string;
|
|
2933
2966
|
}): Promise<DmKeyBackupStatusResponse>;
|
|
2934
|
-
declare function setupDmKeyBackup(
|
|
2967
|
+
declare function setupDmKeyBackup(context: TransportContext, input: {
|
|
2935
2968
|
readonly bearer: string;
|
|
2936
2969
|
readonly body: DmKeyBackupSetupBody;
|
|
2937
2970
|
}): Promise<DmKeyBackupOkResponse>;
|
|
2938
|
-
declare function unlockDmKeyBackup(
|
|
2971
|
+
declare function unlockDmKeyBackup(context: TransportContext, input: {
|
|
2939
2972
|
readonly bearer: string;
|
|
2940
2973
|
readonly body: DmKeyBackupUnlockBody;
|
|
2941
2974
|
}): Promise<DmKeyBackupUnlockResponse>;
|
|
2942
2975
|
//#endregion
|
|
2943
2976
|
//#region src/messaging/dm-keys.d.ts
|
|
2944
|
-
declare function publishDmKey(
|
|
2977
|
+
declare function publishDmKey(context: TransportContext, input: {
|
|
2945
2978
|
readonly bearer: string;
|
|
2946
2979
|
readonly body: PublishDmKeyBody;
|
|
2947
2980
|
}): Promise<DmKeyResponse>;
|
|
2948
|
-
declare function getMyDmKey(
|
|
2981
|
+
declare function getMyDmKey(context: TransportContext, input: {
|
|
2949
2982
|
readonly bearer: string;
|
|
2950
2983
|
}): Promise<DmKeyResponse | null>;
|
|
2951
|
-
declare function getThreadDmKey(
|
|
2984
|
+
declare function getThreadDmKey(context: TransportContext, input: {
|
|
2952
2985
|
readonly bearer: string;
|
|
2953
2986
|
readonly threadId: string;
|
|
2954
2987
|
}): Promise<DmKeyResponse>;
|
|
2955
|
-
declare function batchThreadDmKeys(
|
|
2988
|
+
declare function batchThreadDmKeys(context: TransportContext, input: {
|
|
2956
2989
|
readonly bearer: string;
|
|
2957
2990
|
readonly threadIds: readonly string[];
|
|
2958
2991
|
}): Promise<BatchThreadDmKeysResponse>;
|
|
2959
2992
|
//#endregion
|
|
2960
2993
|
//#region src/messaging/logo.d.ts
|
|
2961
|
-
declare function uploadThreadLogo(
|
|
2994
|
+
declare function uploadThreadLogo(context: TransportContext, input: {
|
|
2962
2995
|
readonly bearer: string;
|
|
2963
2996
|
readonly threadId: string;
|
|
2964
2997
|
readonly file: Blob | ArrayBufferView | ArrayBuffer;
|
|
2965
2998
|
readonly filename: string;
|
|
2966
2999
|
readonly contentType: string;
|
|
2967
3000
|
}): Promise<GroupThreadMutationResponse>;
|
|
2968
|
-
declare function deleteThreadLogo(
|
|
3001
|
+
declare function deleteThreadLogo(context: TransportContext, input: {
|
|
2969
3002
|
readonly bearer: string;
|
|
2970
3003
|
readonly threadId: string;
|
|
2971
3004
|
}): Promise<GroupThreadMutationResponse>;
|
|
2972
3005
|
//#endregion
|
|
2973
3006
|
//#region src/messaging/messages.d.ts
|
|
2974
|
-
declare function deleteMessage(
|
|
3007
|
+
declare function deleteMessage(context: TransportContext, input: {
|
|
2975
3008
|
readonly bearer: string;
|
|
2976
3009
|
readonly threadId: string;
|
|
2977
3010
|
readonly messageId: string;
|
|
2978
3011
|
}): Promise<MessagingOkResponse>;
|
|
2979
|
-
declare function editMessage(
|
|
3012
|
+
declare function editMessage(context: TransportContext, input: {
|
|
2980
3013
|
readonly bearer: string;
|
|
2981
3014
|
readonly threadId: string;
|
|
2982
3015
|
readonly messageId: string;
|
|
2983
3016
|
readonly body: EditMessageBody;
|
|
2984
3017
|
}): Promise<MessageItem>;
|
|
2985
|
-
declare function addReaction(
|
|
3018
|
+
declare function addReaction(context: TransportContext, input: {
|
|
2986
3019
|
readonly bearer: string;
|
|
2987
3020
|
readonly threadId: string;
|
|
2988
3021
|
readonly messageId: string;
|
|
2989
3022
|
readonly emoji: ReactionEmoji;
|
|
2990
3023
|
}): Promise<ReactionMutationResponse>;
|
|
2991
|
-
declare function removeReaction(
|
|
3024
|
+
declare function removeReaction(context: TransportContext, input: {
|
|
2992
3025
|
readonly bearer: string;
|
|
2993
3026
|
readonly threadId: string;
|
|
2994
3027
|
readonly messageId: string;
|
|
@@ -2996,12 +3029,12 @@ declare function removeReaction(ctx: TransportContext, input: {
|
|
|
2996
3029
|
}): Promise<ReactionMutationResponse>;
|
|
2997
3030
|
//#endregion
|
|
2998
3031
|
//#region src/messaging/participants.d.ts
|
|
2999
|
-
declare function removeParticipant(
|
|
3032
|
+
declare function removeParticipant(context: TransportContext, input: {
|
|
3000
3033
|
readonly bearer: string;
|
|
3001
3034
|
readonly threadId: string;
|
|
3002
3035
|
readonly userId: string;
|
|
3003
3036
|
}): Promise<GroupThreadMutationResponse>;
|
|
3004
|
-
declare function updateParticipantRole(
|
|
3037
|
+
declare function updateParticipantRole(context: TransportContext, input: {
|
|
3005
3038
|
readonly bearer: string;
|
|
3006
3039
|
readonly threadId: string;
|
|
3007
3040
|
readonly userId: string;
|
|
@@ -3009,33 +3042,33 @@ declare function updateParticipantRole(ctx: TransportContext, input: {
|
|
|
3009
3042
|
}): Promise<GroupThreadMutationResponse>;
|
|
3010
3043
|
//#endregion
|
|
3011
3044
|
//#region src/messaging/threads.d.ts
|
|
3012
|
-
declare function deleteThread(
|
|
3045
|
+
declare function deleteThread(context: TransportContext, input: {
|
|
3013
3046
|
readonly bearer: string;
|
|
3014
3047
|
readonly threadId: string;
|
|
3015
3048
|
}): Promise<MessagingOkResponse>;
|
|
3016
|
-
declare function updateThreadSettings(
|
|
3049
|
+
declare function updateThreadSettings(context: TransportContext, input: {
|
|
3017
3050
|
readonly bearer: string;
|
|
3018
3051
|
readonly threadId: string;
|
|
3019
3052
|
readonly body: UpdateThreadSettingsBody;
|
|
3020
3053
|
}): Promise<GroupThreadMutationResponse>;
|
|
3021
|
-
declare function hideThread(
|
|
3054
|
+
declare function hideThread(context: TransportContext, input: {
|
|
3022
3055
|
readonly bearer: string;
|
|
3023
3056
|
readonly threadId: string;
|
|
3024
3057
|
}): Promise<MessagingOkResponse>;
|
|
3025
|
-
declare function inviteParticipants(
|
|
3058
|
+
declare function inviteParticipants(context: TransportContext, input: {
|
|
3026
3059
|
readonly bearer: string;
|
|
3027
3060
|
readonly threadId: string;
|
|
3028
3061
|
readonly body: InviteParticipantsBody;
|
|
3029
3062
|
}): Promise<GroupThreadMutationResponse>;
|
|
3030
|
-
declare function leaveThread(
|
|
3063
|
+
declare function leaveThread(context: TransportContext, input: {
|
|
3031
3064
|
readonly bearer: string;
|
|
3032
3065
|
readonly threadId: string;
|
|
3033
3066
|
}): Promise<MessagingOkResponse>;
|
|
3034
|
-
declare function pinThread(
|
|
3067
|
+
declare function pinThread(context: TransportContext, input: {
|
|
3035
3068
|
readonly bearer: string;
|
|
3036
3069
|
readonly threadId: string;
|
|
3037
3070
|
}): Promise<PinThreadResponse>;
|
|
3038
|
-
declare function unpinThread(
|
|
3071
|
+
declare function unpinThread(context: TransportContext, input: {
|
|
3039
3072
|
readonly bearer: string;
|
|
3040
3073
|
readonly threadId: string;
|
|
3041
3074
|
}): Promise<MessagingOkResponse>;
|
|
@@ -3068,7 +3101,7 @@ type AuthorizeUrl = {
|
|
|
3068
3101
|
declare function buildAuthorizeUrl(input: BuildAuthorizeUrlInput): Promise<AuthorizeUrl>;
|
|
3069
3102
|
//#endregion
|
|
3070
3103
|
//#region src/oauth/discovery.d.ts
|
|
3071
|
-
declare function fetchAuthorizationServerMetadata(
|
|
3104
|
+
declare function fetchAuthorizationServerMetadata(context: TransportContext): Promise<OauthAuthorizationServerMetadata>;
|
|
3072
3105
|
declare function defaultEndpoints(issuer: string): {
|
|
3073
3106
|
authorize: string;
|
|
3074
3107
|
token: string;
|
|
@@ -3077,7 +3110,7 @@ declare function defaultEndpoints(issuer: string): {
|
|
|
3077
3110
|
};
|
|
3078
3111
|
//#endregion
|
|
3079
3112
|
//#region src/oauth/revoke.d.ts
|
|
3080
|
-
declare function revokeToken(
|
|
3113
|
+
declare function revokeToken(context: TransportContext, input: {
|
|
3081
3114
|
readonly token: string;
|
|
3082
3115
|
readonly tokenTypeHint?: "access_token" | "refresh_token" | undefined;
|
|
3083
3116
|
readonly clientId: string;
|
|
@@ -3085,14 +3118,14 @@ declare function revokeToken(ctx: TransportContext, input: {
|
|
|
3085
3118
|
}): Promise<void>;
|
|
3086
3119
|
//#endregion
|
|
3087
3120
|
//#region src/oauth/token.d.ts
|
|
3088
|
-
declare function exchangeAuthorizationCode(
|
|
3121
|
+
declare function exchangeAuthorizationCode(context: TransportContext, input: {
|
|
3089
3122
|
readonly code: string;
|
|
3090
3123
|
readonly redirectUri: string;
|
|
3091
3124
|
readonly codeVerifier: string;
|
|
3092
3125
|
readonly clientId: string;
|
|
3093
3126
|
readonly clientSecret?: string | undefined;
|
|
3094
3127
|
}): Promise<OauthTokenResponse>;
|
|
3095
|
-
declare function refreshAccessToken(
|
|
3128
|
+
declare function refreshAccessToken(context: TransportContext, input: {
|
|
3096
3129
|
readonly refreshToken: string;
|
|
3097
3130
|
readonly clientId: string;
|
|
3098
3131
|
readonly clientSecret?: string | undefined;
|
|
@@ -3101,31 +3134,31 @@ declare function refreshAccessToken(ctx: TransportContext, input: {
|
|
|
3101
3134
|
declare function toTokenSet(now: number, response: OauthTokenResponse): TokenSet;
|
|
3102
3135
|
//#endregion
|
|
3103
3136
|
//#region src/oauth/userinfo.d.ts
|
|
3104
|
-
declare function fetchUserInfo(
|
|
3137
|
+
declare function fetchUserInfo(context: TransportContext, input: {
|
|
3105
3138
|
readonly bearer: string;
|
|
3106
3139
|
}): Promise<OauthUserInfoResponse>;
|
|
3107
3140
|
//#endregion
|
|
3108
3141
|
//#region src/payments/appeal.d.ts
|
|
3109
|
-
declare function fileAppeal(
|
|
3142
|
+
declare function fileAppeal(context: TransportContext, input: {
|
|
3110
3143
|
readonly bearer: string;
|
|
3111
3144
|
readonly body: AppealFileRequest;
|
|
3112
3145
|
}): Promise<AppealFileResponse>;
|
|
3113
|
-
declare function fileAppealPotLeg(
|
|
3146
|
+
declare function fileAppealPotLeg(context: TransportContext, input: {
|
|
3114
3147
|
readonly bearer: string;
|
|
3115
3148
|
readonly body: AppealPotLegFileRequest;
|
|
3116
3149
|
}): Promise<AppealFileResponse>;
|
|
3117
3150
|
//#endregion
|
|
3118
3151
|
//#region src/payments/appeal-room.d.ts
|
|
3119
|
-
declare function getAppealRoom(
|
|
3152
|
+
declare function getAppealRoom(context: TransportContext, input: {
|
|
3120
3153
|
readonly bearer: string;
|
|
3121
3154
|
readonly appealId: string;
|
|
3122
3155
|
}): Promise<AppealRoomView>;
|
|
3123
|
-
declare function postAppealRoomMessage(
|
|
3156
|
+
declare function postAppealRoomMessage(context: TransportContext, input: {
|
|
3124
3157
|
readonly bearer: string;
|
|
3125
3158
|
readonly appealId: string;
|
|
3126
3159
|
readonly body: AppealRoomPostRequest;
|
|
3127
3160
|
}): Promise<AppealRoomPostResponse>;
|
|
3128
|
-
declare function uploadAppealRoomAttachment(
|
|
3161
|
+
declare function uploadAppealRoomAttachment(context: TransportContext, input: {
|
|
3129
3162
|
readonly bearer: string;
|
|
3130
3163
|
readonly appealId: string;
|
|
3131
3164
|
readonly file: Blob | ArrayBufferView | ArrayBuffer;
|
|
@@ -3137,80 +3170,80 @@ declare function uploadAppealRoomAttachment(ctx: TransportContext, input: {
|
|
|
3137
3170
|
type ChargeResult = OauthPaymentChargeResponse | ({
|
|
3138
3171
|
status: "monthly_limit_exceeded";
|
|
3139
3172
|
} & Omit<OauthPaymentChargeLimitExceeded, "error">);
|
|
3140
|
-
declare function charge(
|
|
3173
|
+
declare function charge(context: TransportContext, input: {
|
|
3141
3174
|
readonly bearer: string;
|
|
3142
3175
|
readonly body: OauthPaymentChargeRequest;
|
|
3143
3176
|
readonly idempotencyKey?: string;
|
|
3144
3177
|
}): Promise<ChargeResult>;
|
|
3145
3178
|
//#endregion
|
|
3146
3179
|
//#region src/payments/intent.d.ts
|
|
3147
|
-
declare function getPaymentIntent(
|
|
3180
|
+
declare function getPaymentIntent(context: TransportContext, input: {
|
|
3148
3181
|
readonly bearer: string;
|
|
3149
3182
|
readonly intentId: string;
|
|
3150
3183
|
}): Promise<OauthPaymentIntentContext>;
|
|
3151
|
-
declare function signPaymentIntent(
|
|
3184
|
+
declare function signPaymentIntent(context: TransportContext, input: {
|
|
3152
3185
|
readonly bearer: string;
|
|
3153
3186
|
readonly intentId: string;
|
|
3154
3187
|
}): Promise<OauthPaymentIntentSignResponse>;
|
|
3155
|
-
declare function completePaymentIntent(
|
|
3188
|
+
declare function completePaymentIntent(context: TransportContext, input: {
|
|
3156
3189
|
readonly bearer: string;
|
|
3157
3190
|
readonly intentId: string;
|
|
3158
3191
|
readonly body: OauthPaymentIntentComplete;
|
|
3159
3192
|
}): Promise<OauthPaymentIntentResolveResponse>;
|
|
3160
|
-
declare function denyPaymentIntent(
|
|
3193
|
+
declare function denyPaymentIntent(context: TransportContext, input: {
|
|
3161
3194
|
readonly bearer: string;
|
|
3162
3195
|
readonly intentId: string;
|
|
3163
3196
|
}): Promise<OauthPaymentIntentResolveResponse>;
|
|
3164
3197
|
//#endregion
|
|
3165
3198
|
//#region src/payments/limits.d.ts
|
|
3166
|
-
declare function getPaymentLimits(
|
|
3199
|
+
declare function getPaymentLimits(context: TransportContext, input: {
|
|
3167
3200
|
readonly bearer: string;
|
|
3168
3201
|
}): Promise<OauthPaymentLimitsResponse>;
|
|
3169
3202
|
//#endregion
|
|
3170
3203
|
//#region src/payments/moonpay.d.ts
|
|
3171
|
-
declare function getMoonpayAvailability(
|
|
3204
|
+
declare function getMoonpayAvailability(context: TransportContext, input: {
|
|
3172
3205
|
readonly bearer: string;
|
|
3173
3206
|
}): Promise<MoonpayAvailabilityResponse>;
|
|
3174
|
-
declare function mintMoonpayBuyUrl(
|
|
3207
|
+
declare function mintMoonpayBuyUrl(context: TransportContext, input: {
|
|
3175
3208
|
readonly bearer: string;
|
|
3176
3209
|
readonly body: MoonpayBuyUrlRequest;
|
|
3177
3210
|
}): Promise<MoonpayBuyUrlResponse>;
|
|
3178
|
-
declare function mintMoonpaySellUrl(
|
|
3211
|
+
declare function mintMoonpaySellUrl(context: TransportContext, input: {
|
|
3179
3212
|
readonly bearer: string;
|
|
3180
3213
|
readonly body: MoonpaySellUrlRequest;
|
|
3181
3214
|
}): Promise<MoonpaySellUrlResponse>;
|
|
3182
3215
|
//#endregion
|
|
3183
3216
|
//#region src/payments/price.d.ts
|
|
3184
|
-
declare function getPaymentPrice(
|
|
3217
|
+
declare function getPaymentPrice(context: TransportContext, input: {
|
|
3185
3218
|
readonly bearer: string;
|
|
3186
3219
|
} & GetOauthPaymentsPriceData["query"]): Promise<OauthPaymentPriceResponse>;
|
|
3187
3220
|
//#endregion
|
|
3188
3221
|
//#region src/payments/status.d.ts
|
|
3189
|
-
declare function getIntentStatus(
|
|
3222
|
+
declare function getIntentStatus(context: TransportContext, input: {
|
|
3190
3223
|
readonly bearer: string;
|
|
3191
3224
|
readonly intentId: string;
|
|
3192
3225
|
}): Promise<OauthPaymentIntentStatus>;
|
|
3193
3226
|
//#endregion
|
|
3194
3227
|
//#region src/payments/tron.d.ts
|
|
3195
|
-
declare function getTronBalance(
|
|
3228
|
+
declare function getTronBalance(context: TransportContext, input: {
|
|
3196
3229
|
readonly bearer: string;
|
|
3197
3230
|
}): Promise<TronBalanceResponse>;
|
|
3198
|
-
declare function listTronLedger(
|
|
3231
|
+
declare function listTronLedger(context: TransportContext, input: {
|
|
3199
3232
|
readonly bearer: string;
|
|
3200
3233
|
readonly before?: string;
|
|
3201
3234
|
}): Promise<TronLedgerResponse>;
|
|
3202
|
-
declare function createTronDeposit(
|
|
3235
|
+
declare function createTronDeposit(context: TransportContext, input: {
|
|
3203
3236
|
readonly bearer: string;
|
|
3204
3237
|
readonly body: TronDepositRequest;
|
|
3205
3238
|
}): Promise<TronDepositResponse>;
|
|
3206
|
-
declare function createTronConnectOnboarding(
|
|
3239
|
+
declare function createTronConnectOnboarding(context: TransportContext, input: {
|
|
3207
3240
|
readonly bearer: string;
|
|
3208
3241
|
}): Promise<TronConnectOnboardingResponse>;
|
|
3209
|
-
declare function createTronCashout(
|
|
3242
|
+
declare function createTronCashout(context: TransportContext, input: {
|
|
3210
3243
|
readonly bearer: string;
|
|
3211
3244
|
readonly body: TronCashoutCreateRequest;
|
|
3212
3245
|
}): Promise<TronCashoutItem>;
|
|
3213
|
-
declare function listTronCashouts(
|
|
3246
|
+
declare function listTronCashouts(context: TransportContext, input: {
|
|
3214
3247
|
readonly bearer: string;
|
|
3215
3248
|
}): Promise<TronCashoutListResponse>;
|
|
3216
3249
|
//#endregion
|
|
@@ -3223,7 +3256,7 @@ type MountPresenceWidgetOptions = {
|
|
|
3223
3256
|
readonly container?: HTMLElement;
|
|
3224
3257
|
readonly onPlaySessionId?: (playSessionId: string | null) => void;
|
|
3225
3258
|
readonly onStatus?: (status: PresenceStatus) => void;
|
|
3226
|
-
readonly onAuthChange?: (
|
|
3259
|
+
readonly onAuthChange?: (isAuthenticated: boolean) => void;
|
|
3227
3260
|
readonly styleIframe?: (iframe: HTMLIFrameElement) => void;
|
|
3228
3261
|
readonly onPresentationChange?: (mode: "chip" | "overlay") => void;
|
|
3229
3262
|
readonly background?: string;
|
|
@@ -3234,40 +3267,40 @@ type PresenceWidgetHandle = {
|
|
|
3234
3267
|
declare function mountPresenceWidget(options: MountPresenceWidgetOptions): PresenceWidgetHandle;
|
|
3235
3268
|
//#endregion
|
|
3236
3269
|
//#region src/reads/dashboard.d.ts
|
|
3237
|
-
declare function getMeStats(
|
|
3270
|
+
declare function getMeStats(context: TransportContext, input: {
|
|
3238
3271
|
readonly bearer: string;
|
|
3239
3272
|
}): Promise<MeStats>;
|
|
3240
|
-
declare function getEarningsTimeseries(
|
|
3273
|
+
declare function getEarningsTimeseries(context: TransportContext, input: {
|
|
3241
3274
|
readonly bearer: string;
|
|
3242
3275
|
readonly days?: number;
|
|
3243
3276
|
}): Promise<EarningsTimeseries>;
|
|
3244
3277
|
//#endregion
|
|
3245
3278
|
//#region src/reads/messaging.d.ts
|
|
3246
|
-
declare function listThreads(
|
|
3279
|
+
declare function listThreads(context: TransportContext, input: {
|
|
3247
3280
|
readonly bearer: string;
|
|
3248
3281
|
readonly limit?: number;
|
|
3249
3282
|
readonly cursor?: string;
|
|
3250
3283
|
}): Promise<ThreadListResponse>;
|
|
3251
|
-
declare function createDirectThread(
|
|
3284
|
+
declare function createDirectThread(context: TransportContext, input: {
|
|
3252
3285
|
readonly bearer: string;
|
|
3253
3286
|
readonly body: CreateDirectThreadBody;
|
|
3254
3287
|
}): Promise<ThreadSummary>;
|
|
3255
|
-
declare function listThreadMessages(
|
|
3288
|
+
declare function listThreadMessages(context: TransportContext, input: {
|
|
3256
3289
|
readonly bearer: string;
|
|
3257
3290
|
readonly threadId: string;
|
|
3258
3291
|
readonly limit?: number;
|
|
3259
3292
|
readonly cursor?: string;
|
|
3260
3293
|
}): Promise<MessagesPageResponse>;
|
|
3261
|
-
declare function sendMessage(
|
|
3294
|
+
declare function sendMessage(context: TransportContext, input: {
|
|
3262
3295
|
readonly bearer: string;
|
|
3263
3296
|
readonly threadId: string;
|
|
3264
3297
|
readonly body: SendMessageBody;
|
|
3265
3298
|
}): Promise<void>;
|
|
3266
|
-
declare function markThreadRead(
|
|
3299
|
+
declare function markThreadRead(context: TransportContext, input: {
|
|
3267
3300
|
readonly bearer: string;
|
|
3268
3301
|
readonly threadId: string;
|
|
3269
3302
|
}): Promise<void>;
|
|
3270
|
-
declare function uploadAttachment(
|
|
3303
|
+
declare function uploadAttachment(context: TransportContext, input: {
|
|
3271
3304
|
readonly bearer: string;
|
|
3272
3305
|
readonly threadId: string;
|
|
3273
3306
|
readonly file: Blob | ArrayBufferView | ArrayBuffer;
|
|
@@ -3276,116 +3309,116 @@ declare function uploadAttachment(ctx: TransportContext, input: {
|
|
|
3276
3309
|
}): Promise<UploadAttachmentResponse>;
|
|
3277
3310
|
//#endregion
|
|
3278
3311
|
//#region src/reads/notifications.d.ts
|
|
3279
|
-
declare function listNotifications(
|
|
3312
|
+
declare function listNotifications(context: TransportContext, input: {
|
|
3280
3313
|
readonly bearer: string;
|
|
3281
3314
|
readonly limit?: number;
|
|
3282
3315
|
readonly cursor?: string;
|
|
3283
3316
|
}): Promise<NotificationListResponse>;
|
|
3284
|
-
declare function updateNotification(
|
|
3317
|
+
declare function updateNotification(context: TransportContext, input: {
|
|
3285
3318
|
readonly bearer: string;
|
|
3286
3319
|
readonly notificationId: string;
|
|
3287
3320
|
readonly body: NotificationUpdate;
|
|
3288
3321
|
}): Promise<void>;
|
|
3289
|
-
declare function markAllNotificationsRead(
|
|
3322
|
+
declare function markAllNotificationsRead(context: TransportContext, input: {
|
|
3290
3323
|
readonly bearer: string;
|
|
3291
3324
|
}): Promise<void>;
|
|
3292
3325
|
//#endregion
|
|
3293
3326
|
//#region src/reads/playtime.d.ts
|
|
3294
|
-
declare function getPlaytime(
|
|
3327
|
+
declare function getPlaytime(context: TransportContext, input: {
|
|
3295
3328
|
readonly bearer: string;
|
|
3296
3329
|
}): Promise<PlaytimeOverview>;
|
|
3297
|
-
declare function getPlaytimeTimeseries(
|
|
3330
|
+
declare function getPlaytimeTimeseries(context: TransportContext, input: {
|
|
3298
3331
|
readonly bearer: string;
|
|
3299
3332
|
readonly days?: number;
|
|
3300
3333
|
}): Promise<PlaytimeTimeseries>;
|
|
3301
3334
|
//#endregion
|
|
3302
3335
|
//#region src/reads/profile.d.ts
|
|
3303
|
-
declare function getPublicProfile(
|
|
3336
|
+
declare function getPublicProfile(context: TransportContext, input: {
|
|
3304
3337
|
readonly bearer?: string;
|
|
3305
3338
|
readonly handle: string;
|
|
3306
3339
|
}): Promise<PublicProfile>;
|
|
3307
|
-
declare function searchUsers(
|
|
3340
|
+
declare function searchUsers(context: TransportContext, input: {
|
|
3308
3341
|
readonly bearer: string;
|
|
3309
3342
|
readonly q: string;
|
|
3310
3343
|
readonly limit?: number;
|
|
3311
3344
|
}): Promise<UserSearchResponse>;
|
|
3312
3345
|
//#endregion
|
|
3313
3346
|
//#region src/reads/referral.d.ts
|
|
3314
|
-
declare function getReferral(
|
|
3347
|
+
declare function getReferral(context: TransportContext, input: {
|
|
3315
3348
|
readonly bearer: string;
|
|
3316
3349
|
}): Promise<ReferralOverview>;
|
|
3317
|
-
declare function createReferralCode(
|
|
3350
|
+
declare function createReferralCode(context: TransportContext, input: {
|
|
3318
3351
|
readonly bearer: string;
|
|
3319
3352
|
readonly regenerate?: boolean;
|
|
3320
3353
|
}): Promise<ReferralCodeResponse>;
|
|
3321
|
-
declare function previewReferral(
|
|
3354
|
+
declare function previewReferral(context: TransportContext, input: {
|
|
3322
3355
|
readonly bearer: string;
|
|
3323
3356
|
readonly code: string;
|
|
3324
3357
|
}): Promise<ReferralPreviewResponse>;
|
|
3325
|
-
declare function bindReferral(
|
|
3358
|
+
declare function bindReferral(context: TransportContext, input: {
|
|
3326
3359
|
readonly bearer: string;
|
|
3327
3360
|
} & ReferralBindRequest): Promise<ReferralBindResponse>;
|
|
3328
3361
|
//#endregion
|
|
3329
3362
|
//#region src/reads/social-graph.d.ts
|
|
3330
|
-
declare function followUser(
|
|
3363
|
+
declare function followUser(context: TransportContext, input: {
|
|
3331
3364
|
readonly bearer: string;
|
|
3332
3365
|
readonly userId: string;
|
|
3333
3366
|
}): Promise<void>;
|
|
3334
|
-
declare function unfollowUser(
|
|
3367
|
+
declare function unfollowUser(context: TransportContext, input: {
|
|
3335
3368
|
readonly bearer: string;
|
|
3336
3369
|
readonly userId: string;
|
|
3337
3370
|
}): Promise<void>;
|
|
3338
|
-
declare function sendFriendRequest(
|
|
3371
|
+
declare function sendFriendRequest(context: TransportContext, input: {
|
|
3339
3372
|
readonly bearer: string;
|
|
3340
3373
|
readonly userId: string;
|
|
3341
3374
|
}): Promise<void>;
|
|
3342
|
-
declare function decideFriendRequest(
|
|
3375
|
+
declare function decideFriendRequest(context: TransportContext, input: {
|
|
3343
3376
|
readonly bearer: string;
|
|
3344
3377
|
readonly requestId: string;
|
|
3345
3378
|
readonly decision: FriendRequestDecision["decision"];
|
|
3346
3379
|
}): Promise<void>;
|
|
3347
|
-
declare function cancelFriendRequest(
|
|
3380
|
+
declare function cancelFriendRequest(context: TransportContext, input: {
|
|
3348
3381
|
readonly bearer: string;
|
|
3349
3382
|
readonly requestId: string;
|
|
3350
3383
|
}): Promise<void>;
|
|
3351
|
-
declare function listFriends(
|
|
3384
|
+
declare function listFriends(context: TransportContext, input: {
|
|
3352
3385
|
readonly bearer: string;
|
|
3353
3386
|
}): Promise<FriendListResponse>;
|
|
3354
3387
|
//#endregion
|
|
3355
3388
|
//#region src/reads/socials.d.ts
|
|
3356
|
-
declare function listSocials(
|
|
3389
|
+
declare function listSocials(context: TransportContext, input: {
|
|
3357
3390
|
readonly bearer: string;
|
|
3358
3391
|
}): Promise<SocialListResponse>;
|
|
3359
3392
|
//#endregion
|
|
3360
3393
|
//#region src/reads/wallets.d.ts
|
|
3361
|
-
declare function listWallets(
|
|
3394
|
+
declare function listWallets(context: TransportContext, input: {
|
|
3362
3395
|
readonly bearer: string;
|
|
3363
3396
|
}): Promise<WalletListResponse>;
|
|
3364
3397
|
//#endregion
|
|
3365
3398
|
//#region src/wallets-mgmt/delegation.d.ts
|
|
3366
|
-
declare function getDelegation(
|
|
3399
|
+
declare function getDelegation(context: TransportContext, input: {
|
|
3367
3400
|
readonly bearer: string;
|
|
3368
3401
|
readonly address: string;
|
|
3369
3402
|
}): Promise<WalletDelegationStatus>;
|
|
3370
|
-
declare function createDelegation(
|
|
3403
|
+
declare function createDelegation(context: TransportContext, input: {
|
|
3371
3404
|
readonly bearer: string;
|
|
3372
3405
|
readonly address: string;
|
|
3373
3406
|
readonly body: CreateWalletDelegation;
|
|
3374
3407
|
}): Promise<CreateWalletDelegationResponse>;
|
|
3375
|
-
declare function deleteDelegation(
|
|
3408
|
+
declare function deleteDelegation(context: TransportContext, input: {
|
|
3376
3409
|
readonly bearer: string;
|
|
3377
3410
|
readonly address: string;
|
|
3378
3411
|
}): Promise<DeleteWalletDelegationResponse>;
|
|
3379
3412
|
//#endregion
|
|
3380
3413
|
//#region src/wallets-mgmt/label.d.ts
|
|
3381
|
-
declare function updateWalletLabel(
|
|
3414
|
+
declare function updateWalletLabel(context: TransportContext, input: {
|
|
3382
3415
|
readonly bearer: string;
|
|
3383
3416
|
readonly address: string;
|
|
3384
3417
|
readonly body: WalletLabelUpdate;
|
|
3385
3418
|
}): Promise<WalletLabelUpdateResponse>;
|
|
3386
3419
|
//#endregion
|
|
3387
3420
|
//#region src/wallets-mgmt/list.d.ts
|
|
3388
|
-
declare function listWalletManager(
|
|
3421
|
+
declare function listWalletManager(context: TransportContext, input: {
|
|
3389
3422
|
readonly bearer: string;
|
|
3390
3423
|
}): Promise<WalletListResponse>;
|
|
3391
3424
|
//#endregion
|