@nadohq/mobile-client 0.65.0 → 0.67.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +202 -10
- package/dist/{MobileClient-CfVZXTcz.cjs → MobileClient-vuI5wlB_.cjs} +303 -21
- package/dist/MobileClient-vuI5wlB_.cjs.map +1 -0
- package/dist/MobileClient.cjs +1 -1
- package/dist/MobileClient.d.cts +175 -20
- package/dist/MobileClient.d.cts.map +1 -1
- package/dist/MobileClient.d.ts +175 -20
- package/dist/MobileClient.d.ts.map +1 -1
- package/dist/MobileClient.js +303 -21
- package/dist/MobileClient.js.map +1 -1
- package/dist/{MobileServerFailureError-BZVwlsMg.d.ts → MobileServerFailureError-BeCCNShj.d.cts} +2 -3
- package/dist/MobileServerFailureError-BeCCNShj.d.cts.map +1 -0
- package/dist/{MobileServerFailureError-CbtK8kD4.d.cts → MobileServerFailureError-hHv28weI.d.ts} +2 -3
- package/dist/MobileServerFailureError-hHv28weI.d.ts.map +1 -0
- package/dist/MobileUnsupportedNotificationRouteError-DpiNBvvY.d.cts +15 -0
- package/dist/MobileUnsupportedNotificationRouteError-DpiNBvvY.d.cts.map +1 -0
- package/dist/MobileUnsupportedNotificationRouteError-DpiNBvvY.d.ts +15 -0
- package/dist/MobileUnsupportedNotificationRouteError-DpiNBvvY.d.ts.map +1 -0
- package/dist/{buildSignedMobileRequest-C1v0flCR.d.cts → buildSignedMobileRequest-DcEMKU_4.d.cts} +2 -2
- package/dist/{buildSignedMobileRequest-C1v0flCR.d.cts.map → buildSignedMobileRequest-DcEMKU_4.d.cts.map} +1 -1
- package/dist/{buildSignedMobileRequest-UeeWdYGU.d.ts → buildSignedMobileRequest-DlTMvoXR.d.ts} +2 -2
- package/dist/{buildSignedMobileRequest-UeeWdYGU.d.ts.map → buildSignedMobileRequest-DlTMvoXR.d.ts.map} +1 -1
- package/dist/{canonicalize-5eeZrkzQ.d.ts → canonicalize-BOZlflI3.d.ts} +2 -2
- package/dist/canonicalize-BOZlflI3.d.ts.map +1 -0
- package/dist/{canonicalize-CBaZprTo.d.cts → canonicalize-BvCozzvJ.d.cts} +2 -2
- package/dist/canonicalize-BvCozzvJ.d.cts.map +1 -0
- package/dist/{clientTypes-_mEgzmNs.d.cts → clientTypes-KpHlCDGZ.d.cts} +341 -38
- package/dist/clientTypes-KpHlCDGZ.d.cts.map +1 -0
- package/dist/{clientTypes-C9dJufxk.d.ts → clientTypes-XRI41VdC.d.ts} +341 -38
- package/dist/clientTypes-XRI41VdC.d.ts.map +1 -0
- package/dist/dataMappers.cjs +257 -20
- package/dist/dataMappers.cjs.map +1 -1
- package/dist/dataMappers.d.cts +98 -15
- package/dist/dataMappers.d.cts.map +1 -1
- package/dist/dataMappers.d.ts +98 -15
- package/dist/dataMappers.d.ts.map +1 -1
- package/dist/dataMappers.js +242 -20
- package/dist/dataMappers.js.map +1 -1
- package/dist/{eip712MethodByType-D8jLoxDu.d.cts → eip712MethodByType-DyAmzH7b.d.cts} +2 -2
- package/dist/eip712MethodByType-DyAmzH7b.d.cts.map +1 -0
- package/dist/{eip712MethodByType-DcUh8h-l.d.ts → eip712MethodByType-qSSAF6i2.d.ts} +2 -2
- package/dist/eip712MethodByType-qSSAF6i2.d.ts.map +1 -0
- package/dist/feed-BrgkFqP3.d.cts +23 -0
- package/dist/feed-BrgkFqP3.d.cts.map +1 -0
- package/dist/feed-DcbhLoo1.d.ts +23 -0
- package/dist/feed-DcbhLoo1.d.ts.map +1 -0
- package/dist/index-BVVgDSdq.d.cts +1 -0
- package/dist/index-BVVgDSdq.d.ts +1 -0
- package/dist/index.cjs +8 -2
- package/dist/index.d.cts +14 -16
- package/dist/index.d.ts +14 -16
- package/dist/index.js +4 -3
- package/dist/{mobileErrorCodes-CmjYEIYm.d.ts → mobileErrorCodes-CdwX6QTO.d.cts} +8 -3
- package/dist/mobileErrorCodes-CdwX6QTO.d.cts.map +1 -0
- package/dist/{mobileErrorCodes-CmjYEIYm.d.cts → mobileErrorCodes-CdwX6QTO.d.ts} +8 -3
- package/dist/mobileErrorCodes-CdwX6QTO.d.ts.map +1 -0
- package/dist/{payloadHash-DhHmgRqL.d.cts → payloadHash-BgGSZock.d.cts} +2 -2
- package/dist/payloadHash-BgGSZock.d.cts.map +1 -0
- package/dist/{payloadHash-E1_8fpLW.d.ts → payloadHash-Bi6upCLQ.d.ts} +2 -2
- package/dist/payloadHash-Bi6upCLQ.d.ts.map +1 -0
- package/dist/{serverExecuteTypes-BwWGspOg.d.ts → serverExecuteTypes-DuCWe_H_.d.cts} +23 -14
- package/dist/serverExecuteTypes-DuCWe_H_.d.cts.map +1 -0
- package/dist/{serverExecuteTypes-B-OJok19.d.cts → serverExecuteTypes-usJ6HMJv.d.ts} +23 -14
- package/dist/serverExecuteTypes-usJ6HMJv.d.ts.map +1 -0
- package/dist/{serverModelTypes-CiA-dy1R.d.ts → serverModelTypes-CTHMNIQS.d.cts} +170 -13
- package/dist/serverModelTypes-CTHMNIQS.d.cts.map +1 -0
- package/dist/{serverModelTypes-CiA-dy1R.d.cts → serverModelTypes-CTHMNIQS.d.ts} +170 -13
- package/dist/serverModelTypes-CTHMNIQS.d.ts.map +1 -0
- package/dist/{serverResponseGuards-CShiXpHT.d.ts → serverResponseGuards-CzmldAad.d.cts} +2 -2
- package/dist/{serverResponseGuards-BW69PS7O.d.cts.map → serverResponseGuards-CzmldAad.d.cts.map} +1 -1
- package/dist/{serverResponseGuards-BW69PS7O.d.cts → serverResponseGuards-Dvkbjp2_.d.ts} +2 -2
- package/dist/{serverResponseGuards-CShiXpHT.d.ts.map → serverResponseGuards-Dvkbjp2_.d.ts.map} +1 -1
- package/dist/signing/buildSignedMobileRequest.d.cts +1 -1
- package/dist/signing/buildSignedMobileRequest.d.ts +1 -1
- package/dist/signing/canonicalize.cjs +53 -2
- package/dist/signing/canonicalize.cjs.map +1 -1
- package/dist/signing/canonicalize.d.cts +1 -1
- package/dist/signing/canonicalize.d.ts +1 -1
- package/dist/signing/canonicalize.js +53 -2
- package/dist/signing/canonicalize.js.map +1 -1
- package/dist/signing/eip712MethodByType.cjs +7 -0
- package/dist/signing/eip712MethodByType.cjs.map +1 -1
- package/dist/signing/eip712MethodByType.d.cts +1 -1
- package/dist/signing/eip712MethodByType.d.ts +1 -1
- package/dist/signing/eip712MethodByType.js +7 -0
- package/dist/signing/eip712MethodByType.js.map +1 -1
- package/dist/signing/index.d.cts +5 -5
- package/dist/signing/index.d.ts +5 -5
- package/dist/signing/payloadHash.cjs +1 -1
- package/dist/signing/payloadHash.d.cts +1 -1
- package/dist/signing/payloadHash.d.ts +1 -1
- package/dist/signing/payloadHash.js +1 -1
- package/dist/signing/types.d.cts +1 -1
- package/dist/signing/types.d.ts +1 -1
- package/dist/types/MobileServerFailureError.d.cts +1 -1
- package/dist/types/MobileServerFailureError.d.ts +1 -1
- package/dist/types/MobileUnsupportedNotificationRouteError.cjs +19 -0
- package/dist/types/MobileUnsupportedNotificationRouteError.cjs.map +1 -0
- package/dist/types/MobileUnsupportedNotificationRouteError.d.cts +2 -0
- package/dist/types/MobileUnsupportedNotificationRouteError.d.ts +2 -0
- package/dist/types/MobileUnsupportedNotificationRouteError.js +18 -0
- package/dist/types/MobileUnsupportedNotificationRouteError.js.map +1 -0
- package/dist/types/clientTypes.d.cts +2 -2
- package/dist/types/clientTypes.d.ts +2 -2
- package/dist/types/index.cjs +4 -0
- package/dist/types/index.d.cts +8 -9
- package/dist/types/index.d.ts +8 -9
- package/dist/types/index.js +3 -2
- package/dist/types/mobileErrorCodes.cjs +11 -1
- package/dist/types/mobileErrorCodes.cjs.map +1 -1
- package/dist/types/mobileErrorCodes.d.cts +1 -1
- package/dist/types/mobileErrorCodes.d.ts +1 -1
- package/dist/types/mobileErrorCodes.js +11 -1
- package/dist/types/mobileErrorCodes.js.map +1 -1
- package/dist/types/serverBaseTypes.d.cts +1 -1
- package/dist/types/serverBaseTypes.d.ts +1 -1
- package/dist/types/serverExecuteTypes.d.cts +2 -2
- package/dist/types/serverExecuteTypes.d.ts +2 -2
- package/dist/types/serverModelTypes.cjs +15 -0
- package/dist/types/serverModelTypes.cjs.map +1 -1
- package/dist/types/serverModelTypes.d.cts +2 -2
- package/dist/types/serverModelTypes.d.ts +2 -2
- package/dist/types/serverModelTypes.js +14 -1
- package/dist/types/serverModelTypes.js.map +1 -1
- package/dist/types/serverQueryTypes.d.cts +2 -2
- package/dist/types/serverQueryTypes.d.ts +2 -2
- package/dist/types/serverRequestTypes.d.cts +2 -2
- package/dist/types/serverRequestTypes.d.ts +2 -2
- package/dist/types-CByl_NyJ.d.ts +825 -0
- package/dist/types-CByl_NyJ.d.ts.map +1 -0
- package/dist/types-CR5iaKR4.d.cts +825 -0
- package/dist/types-CR5iaKR4.d.cts.map +1 -0
- package/dist/utils/buildMobileFeedImageMultipart.cjs +31 -0
- package/dist/utils/buildMobileFeedImageMultipart.cjs.map +1 -0
- package/dist/utils/buildMobileFeedImageMultipart.d.cts +15 -0
- package/dist/utils/buildMobileFeedImageMultipart.d.cts.map +1 -0
- package/dist/utils/buildMobileFeedImageMultipart.d.ts +15 -0
- package/dist/utils/buildMobileFeedImageMultipart.d.ts.map +1 -0
- package/dist/utils/buildMobileFeedImageMultipart.js +30 -0
- package/dist/utils/buildMobileFeedImageMultipart.js.map +1 -0
- package/dist/utils/feed.cjs +12 -0
- package/dist/utils/feed.cjs.map +1 -1
- package/dist/utils/feed.d.cts +2 -2
- package/dist/utils/feed.d.ts +2 -2
- package/dist/utils/feed.js +11 -1
- package/dist/utils/feed.js.map +1 -1
- package/dist/utils/index.cjs +3 -1
- package/dist/utils/index.d.cts +3 -3
- package/dist/utils/index.d.ts +3 -3
- package/dist/utils/index.js +2 -2
- package/dist/utils/serverResponseGuards.d.cts +1 -1
- package/dist/utils/serverResponseGuards.d.ts +1 -1
- package/package.json +3 -3
- package/src/MobileClient.ts +444 -19
- package/src/dataMappers.test.ts +511 -6
- package/src/dataMappers.ts +325 -24
- package/src/feedImages.test.ts +309 -0
- package/src/notifications.test.ts +950 -0
- package/src/signing/canonicalize.ts +72 -0
- package/src/signing/eip712MethodByType.ts +10 -0
- package/src/signing/signing.test.ts +67 -1
- package/src/signing/types.ts +55 -9
- package/src/socialFeed.test.ts +63 -2
- package/src/types/MobileUnsupportedNotificationRouteError.ts +16 -0
- package/src/types/clientTypes.ts +427 -36
- package/src/types/index.ts +1 -0
- package/src/types/mobileErrorCodes.ts +10 -0
- package/src/types/serverExecuteTypes.ts +22 -10
- package/src/types/serverModelTypes.ts +216 -11
- package/src/types/serverQueryTypes.ts +106 -9
- package/src/types/serverRequestTypes.ts +114 -17
- package/src/utils/buildMobileFeedImageMultipart.test.ts +45 -0
- package/src/utils/buildMobileFeedImageMultipart.ts +36 -0
- package/src/utils/feed.ts +16 -0
- package/dist/MobileClient-CfVZXTcz.cjs.map +0 -1
- package/dist/MobileServerFailureError-BZVwlsMg.d.ts.map +0 -1
- package/dist/MobileServerFailureError-CbtK8kD4.d.cts.map +0 -1
- package/dist/canonicalize-5eeZrkzQ.d.ts.map +0 -1
- package/dist/canonicalize-CBaZprTo.d.cts.map +0 -1
- package/dist/clientTypes-C9dJufxk.d.ts.map +0 -1
- package/dist/clientTypes-_mEgzmNs.d.cts.map +0 -1
- package/dist/eip712MethodByType-D8jLoxDu.d.cts.map +0 -1
- package/dist/eip712MethodByType-DcUh8h-l.d.ts.map +0 -1
- package/dist/feed-DTJlsg8W.d.cts +0 -14
- package/dist/feed-DTJlsg8W.d.cts.map +0 -1
- package/dist/feed-DTJlsg8W.d.ts +0 -14
- package/dist/feed-DTJlsg8W.d.ts.map +0 -1
- package/dist/mobileErrorCodes-CmjYEIYm.d.cts.map +0 -1
- package/dist/mobileErrorCodes-CmjYEIYm.d.ts.map +0 -1
- package/dist/payloadHash-DhHmgRqL.d.cts.map +0 -1
- package/dist/payloadHash-E1_8fpLW.d.ts.map +0 -1
- package/dist/serverBaseTypes-B5J1_TyC.d.cts +0 -25
- package/dist/serverBaseTypes-B5J1_TyC.d.cts.map +0 -1
- package/dist/serverBaseTypes-DnLzsdm-.d.ts +0 -25
- package/dist/serverBaseTypes-DnLzsdm-.d.ts.map +0 -1
- package/dist/serverExecuteTypes-B-OJok19.d.cts.map +0 -1
- package/dist/serverExecuteTypes-BwWGspOg.d.ts.map +0 -1
- package/dist/serverModelTypes-CiA-dy1R.d.cts.map +0 -1
- package/dist/serverModelTypes-CiA-dy1R.d.ts.map +0 -1
- package/dist/serverQueryTypes-CJcjLB7n.d.ts +0 -283
- package/dist/serverQueryTypes-CJcjLB7n.d.ts.map +0 -1
- package/dist/serverQueryTypes-V1f9yE7L.d.cts +0 -283
- package/dist/serverQueryTypes-V1f9yE7L.d.cts.map +0 -1
- package/dist/serverRequestTypes-CRlkNSu5.d.cts +0 -270
- package/dist/serverRequestTypes-CRlkNSu5.d.cts.map +0 -1
- package/dist/serverRequestTypes-DZoOhV2o.d.ts +0 -270
- package/dist/serverRequestTypes-DZoOhV2o.d.ts.map +0 -1
- package/dist/types-BiRmH5Iv.d.cts +0 -108
- package/dist/types-BiRmH5Iv.d.cts.map +0 -1
- package/dist/types-DoJuq0Ij.d.ts +0 -108
- package/dist/types-DoJuq0Ij.d.ts.map +0 -1
|
@@ -1,283 +0,0 @@
|
|
|
1
|
-
import { B as MobileServerSocialFeedItemPatch, C as MobileServerSocialFeedAuthor, Ct as MobileSocialFeedPositionResolutionReason, D as MobileServerSocialFeedCohort, F as MobileServerSocialFeedHistorySummary, Ft as MobileSocialFeedUnavailableTarget, G as MobileServerSocialFeedPositionHistoryCard, J as MobileServerSocialFeedPublishablePosition, K as MobileServerSocialFeedPositionPatch, M as MobileServerSocialFeedDrawing, N as MobileServerSocialFeedEstimatedLiquidationLine, R as MobileServerSocialFeedItem, S as MobileServerSocialFeedActionMarker, St as MobileSocialFeedPositionResolution, V as MobileServerSocialFeedMarket, X as MobileServerSocialFeedReply, Y as MobileServerSocialFeedReadSession, Z as MobileServerSocialFeedTimelineEntry, b as MobileServerProfile, l as MobileNotificationPlatform, m as MobileServerFollowListAccount, nt as MobileServerSocialFeedTradingContext, p as MobileServerFeedTrade, pt as MobileSocialFeedHistoryQuality, st as MobileSocialFeedActionResolution, u as MobileServerAvatarPreset, ut as MobileSocialFeedChartDataQuality, w as MobileServerSocialFeedCandle, x as MobileServerSocialFeedActionCandidate, y as MobileServerNotificationPreferences } from "./serverModelTypes-CiA-dy1R.cjs";
|
|
2
|
-
import { o as MobileServerPublicQueryRequestByType, s as MobileServerPublicQueryRequestType } from "./serverRequestTypes-CRlkNSu5.cjs";
|
|
3
|
-
import { n as MobileServerSuccessResponse } from "./serverBaseTypes-B5J1_TyC.cjs";
|
|
4
|
-
import { Hex } from "viem";
|
|
5
|
-
|
|
6
|
-
//#region src/types/serverQueryTypes.d.ts
|
|
7
|
-
/**
|
|
8
|
-
* Unsigned `public_query` request body: a `type` discriminant flattened with its params.
|
|
9
|
-
*/
|
|
10
|
-
type MobileServerPublicQueryRequest<T extends MobileServerPublicQueryRequestType = MobileServerPublicQueryRequestType> = { [K in MobileServerPublicQueryRequestType]: {
|
|
11
|
-
type: K;
|
|
12
|
-
} & MobileServerPublicQueryRequestByType[K] }[T];
|
|
13
|
-
/**
|
|
14
|
-
* Payload of the `username_availability` public query success response.
|
|
15
|
-
*/
|
|
16
|
-
interface MobileServerUsernameAvailabilityResponse {
|
|
17
|
-
username: string;
|
|
18
|
-
available: boolean;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Payload of the `avatar_presets` public query success response.
|
|
22
|
-
*/
|
|
23
|
-
interface MobileServerAvatarPresetsResponse {
|
|
24
|
-
/** Available presets in display order. */
|
|
25
|
-
presets: MobileServerAvatarPreset[];
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Payload of the `profiles` public query success response. One entry per requested subaccount, in the exact
|
|
29
|
-
* order they were requested, so callers can correlate positionally as well as by `subaccount`.
|
|
30
|
-
*/
|
|
31
|
-
interface MobileServerProfilesResponse {
|
|
32
|
-
profiles: MobileServerProfile[];
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Payload of the `search_profiles` public query success response. Matches come in ascending bytewise
|
|
36
|
-
* username order, an exact match first, and carry the same include-gated fields as a `profiles` entry.
|
|
37
|
-
*/
|
|
38
|
-
interface MobileServerSearchProfilesResponse {
|
|
39
|
-
profiles: MobileServerProfile[];
|
|
40
|
-
/** `null` means there are no further matches. */
|
|
41
|
-
next_cursor: string | null;
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Payload of the `followers` and `following` public query success responses. Both list directions share one
|
|
45
|
-
* shape; only the relationship that selected the rows differs.
|
|
46
|
-
*/
|
|
47
|
-
interface MobileServerFollowListResponse {
|
|
48
|
-
accounts: MobileServerFollowListAccount[];
|
|
49
|
-
/** `null` means the list is complete. */
|
|
50
|
-
next_cursor: string | null;
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* Payload of the `feed` public query success response.
|
|
54
|
-
*/
|
|
55
|
-
interface MobileServerFeedResponse {
|
|
56
|
-
trades: MobileServerFeedTrade[];
|
|
57
|
-
/**
|
|
58
|
-
* `null` when there was no additional candidate at query time; a page may contain fewer than `limit` trades
|
|
59
|
-
* (or none) with a non-null cursor because invalid enrichment rows are omitted and pagination is live
|
|
60
|
-
* rather than snapshot.
|
|
61
|
-
*/
|
|
62
|
-
next_cursor: string | null;
|
|
63
|
-
}
|
|
64
|
-
/** Fixed-window list response; an empty page can still have a next cursor. */
|
|
65
|
-
interface MobileServerSocialFeedResponse {
|
|
66
|
-
/** Reading session and its browser credential. */
|
|
67
|
-
read_session: MobileServerSocialFeedReadSession;
|
|
68
|
-
/** Visible items in server order; deduplicate by ID without local reordering. */
|
|
69
|
-
items: MobileServerSocialFeedItem[];
|
|
70
|
-
/** Opaque cursor; null only when pagination is complete. */
|
|
71
|
-
next_cursor: string | null;
|
|
72
|
-
/** New-content baseline, not a pagination or update cursor. */
|
|
73
|
-
watermark: string;
|
|
74
|
-
}
|
|
75
|
-
/** Main-feed page with its ordering version. */
|
|
76
|
-
interface MobileServerSocialFeedRankedResponse extends MobileServerSocialFeedResponse {
|
|
77
|
-
/** Current ordering contract: chronological-v1. */
|
|
78
|
-
ranking_version: string;
|
|
79
|
-
}
|
|
80
|
-
/** Top Traders page, with one shared qualification snapshot for eligibility and badges. */
|
|
81
|
-
interface MobileServerSocialFeedTopTradersResponse extends MobileServerSocialFeedRankedResponse {
|
|
82
|
-
/** Author eligibility snapshot. */
|
|
83
|
-
cohort: MobileServerSocialFeedCohort;
|
|
84
|
-
}
|
|
85
|
-
/** Item details with either a new item session or the reused authorized session. */
|
|
86
|
-
interface MobileServerSocialFeedItemResponse {
|
|
87
|
-
/** Full visible item. */
|
|
88
|
-
item: MobileServerSocialFeedItem;
|
|
89
|
-
/** Session authorized for subsequent updates. */
|
|
90
|
-
read_session: MobileServerSocialFeedReadSession;
|
|
91
|
-
}
|
|
92
|
-
/** Batched viewport updates; apply only the current viewport's latest request sequence. */
|
|
93
|
-
interface MobileServerSocialFeedUpdatesResponse {
|
|
94
|
-
/** Item deltas, independent of current-position patches. */
|
|
95
|
-
item_patches: MobileServerSocialFeedItemPatch[];
|
|
96
|
-
/** Complete mutable position facts at one version. */
|
|
97
|
-
position_patches: MobileServerSocialFeedPositionPatch[];
|
|
98
|
-
/** Previously authorized targets that can no longer be read. */
|
|
99
|
-
unavailable_targets: MobileSocialFeedUnavailableTarget[];
|
|
100
|
-
/** New-content hint; always zero for directly created item sessions. */
|
|
101
|
-
new_items_count: number;
|
|
102
|
-
/** Baseline to use for the next update call with the same viewport. */
|
|
103
|
-
update_cursor: string;
|
|
104
|
-
/** Full snapshot of applicable mutable fields; currently always true. Apply author updates even when the item version is unchanged. */
|
|
105
|
-
reset: boolean;
|
|
106
|
-
/** Echoed viewport revision. */
|
|
107
|
-
viewport_revision: number;
|
|
108
|
-
/** Echoed request sequence. */
|
|
109
|
-
request_seq: number;
|
|
110
|
-
}
|
|
111
|
-
/**
|
|
112
|
-
* Payload of the `notification_preferences` public query success response.
|
|
113
|
-
*/
|
|
114
|
-
interface MobileServerNotificationPreferencesResponse {
|
|
115
|
-
preferences: MobileServerNotificationPreferences;
|
|
116
|
-
}
|
|
117
|
-
/**
|
|
118
|
-
* Payload of the `registered_wallet` public query success response. Inlined into the envelope rather than
|
|
119
|
-
* nested under a key, matching the backend's `RegisteredWalletResponse`.
|
|
120
|
-
*/
|
|
121
|
-
interface MobileServerRegisteredWalletResponse {
|
|
122
|
-
wallet: Hex;
|
|
123
|
-
platform: MobileNotificationPlatform;
|
|
124
|
-
locale: string | null;
|
|
125
|
-
app_version: string | null;
|
|
126
|
-
token_fingerprint_prefix: string;
|
|
127
|
-
last_seen_at: number;
|
|
128
|
-
}
|
|
129
|
-
/**
|
|
130
|
-
* Success payloads for each unsigned `public_query`, keyed by request `type`. Counterpart to
|
|
131
|
-
* {@link MobileServerPublicQueryRequestByType} so a query's request params and response share one lookup,
|
|
132
|
-
* matching engine's `EngineServerQueryResponseByType`. Holds the unwrapped payload; the envelope is applied
|
|
133
|
-
* by {@link MobileServerPublicQuerySuccessResponse}.
|
|
134
|
-
*/
|
|
135
|
-
interface MobileServerPublicQueryResponseByType {
|
|
136
|
-
/** Open position candidates. */
|
|
137
|
-
self_feed_positions: MobileServerSocialFeedPositionsResponse;
|
|
138
|
-
/** Position command resolution. */
|
|
139
|
-
resolve_feed_position: MobileServerSocialFeedPositionResolutionResponse;
|
|
140
|
-
/** Trusted order action resolution. */
|
|
141
|
-
resolve_feed_action: MobileServerSocialFeedActionResolutionResponse;
|
|
142
|
-
/** Parent drawing and version. */
|
|
143
|
-
feed_chart_drawing: MobileServerSocialFeedDrawingResponse;
|
|
144
|
-
/** Comment thread page. */
|
|
145
|
-
feed_comments: MobileServerSocialFeedCommentsResponse;
|
|
146
|
-
/** Full lifecycle history. */
|
|
147
|
-
position_history: MobileServerSocialFeedPositionHistoryResponse;
|
|
148
|
-
/** Candle page and markers. */
|
|
149
|
-
position_chart: MobileServerSocialFeedPositionChartResponse;
|
|
150
|
-
/** Read-only watcher observation. */
|
|
151
|
-
position_watchers: MobileServerSocialFeedWatchersResponse;
|
|
152
|
-
/** Preset IDs and public image URLs in display order. */
|
|
153
|
-
avatar_presets: MobileServerAvatarPresetsResponse;
|
|
154
|
-
/** For You recommendations. */
|
|
155
|
-
for_you_feed: MobileServerSocialFeedRankedResponse;
|
|
156
|
-
/** Qualified authors and cohort metadata. */
|
|
157
|
-
top_traders_feed: MobileServerSocialFeedTopTradersResponse;
|
|
158
|
-
/** Public content from followed authors. */
|
|
159
|
-
friends_feed: MobileServerSocialFeedRankedResponse;
|
|
160
|
-
/** Published author content. */
|
|
161
|
-
profile_feed: MobileServerSocialFeedResponse;
|
|
162
|
-
/** Published market content. */
|
|
163
|
-
market_feed: MobileServerSocialFeedResponse;
|
|
164
|
-
/** Published position activity. */
|
|
165
|
-
position_feed: MobileServerSocialFeedResponse;
|
|
166
|
-
/** Item details and reading session. */
|
|
167
|
-
feed_item: MobileServerSocialFeedItemResponse;
|
|
168
|
-
/** Authorized viewport changes. */
|
|
169
|
-
feed_updates: MobileServerSocialFeedUpdatesResponse;
|
|
170
|
-
username_availability: MobileServerUsernameAvailabilityResponse;
|
|
171
|
-
profiles: MobileServerProfilesResponse;
|
|
172
|
-
search_profiles: MobileServerSearchProfilesResponse;
|
|
173
|
-
followers: MobileServerFollowListResponse;
|
|
174
|
-
following: MobileServerFollowListResponse;
|
|
175
|
-
feed: MobileServerFeedResponse;
|
|
176
|
-
notification_preferences: MobileServerNotificationPreferencesResponse;
|
|
177
|
-
registered_wallet: MobileServerRegisteredWalletResponse;
|
|
178
|
-
}
|
|
179
|
-
/**
|
|
180
|
-
* Full success response for an unsigned `public_query`: the {@link MobileServerSuccessResponse} envelope with
|
|
181
|
-
* the query's payload inlined alongside `status`. Derived from {@link MobileServerPublicQueryResponseByType},
|
|
182
|
-
* mirroring engine's `EngineServerQuerySuccessResponse` (inlined here instead of nested under `data`).
|
|
183
|
-
*/
|
|
184
|
-
type MobileServerPublicQuerySuccessResponse<T extends MobileServerPublicQueryRequestType = MobileServerPublicQueryRequestType> = MobileServerSuccessResponse & MobileServerPublicQueryResponseByType[T];
|
|
185
|
-
/** Selected account's current candidates. */
|
|
186
|
-
interface MobileServerSocialFeedPositionsResponse {
|
|
187
|
-
/** Position eligibility hints. */
|
|
188
|
-
positions: MobileServerSocialFeedPublishablePosition[];
|
|
189
|
-
/** Next bound cursor, or null. */
|
|
190
|
-
next_cursor: string | null;
|
|
191
|
-
/** Observation time. */
|
|
192
|
-
as_of_ms: number;
|
|
193
|
-
}
|
|
194
|
-
/** Slash-command resolution, including normal empty outcomes. */
|
|
195
|
-
interface MobileServerSocialFeedPositionResolutionResponse {
|
|
196
|
-
/** Resolution status. */
|
|
197
|
-
resolution: MobileSocialFeedPositionResolution;
|
|
198
|
-
/** Resolved market, or null. */
|
|
199
|
-
product: MobileServerSocialFeedMarket | null;
|
|
200
|
-
/** Current candidates. */
|
|
201
|
-
candidates: MobileServerSocialFeedPublishablePosition[];
|
|
202
|
-
/** Explanation for empty candidates. */
|
|
203
|
-
reason: MobileSocialFeedPositionResolutionReason | null;
|
|
204
|
-
}
|
|
205
|
-
/** Authoritative order segments, not an inferred latest trade. */
|
|
206
|
-
interface MobileServerSocialFeedActionResolutionResponse {
|
|
207
|
-
/** Requested order. */
|
|
208
|
-
order_digest: Hex;
|
|
209
|
-
/** Pending until all confirmed segments are projected. */
|
|
210
|
-
resolution: MobileSocialFeedActionResolution;
|
|
211
|
-
/** Trusted actions, empty when pending. */
|
|
212
|
-
actions: MobileServerSocialFeedActionCandidate[];
|
|
213
|
-
/** Observation time. */
|
|
214
|
-
as_of_ms: number;
|
|
215
|
-
}
|
|
216
|
-
/** Drawing read result; a readable parent without a drawing succeeds with null. */
|
|
217
|
-
interface MobileServerSocialFeedDrawingResponse {
|
|
218
|
-
/** Parent UUID. */
|
|
219
|
-
item_id: string;
|
|
220
|
-
/** Display version. */
|
|
221
|
-
item_version: string;
|
|
222
|
-
/** Parsed drawing, or null. */
|
|
223
|
-
drawing: MobileServerSocialFeedDrawing | null;
|
|
224
|
-
}
|
|
225
|
-
/** Comment thread, including bidirectional pagination around an optional anchor. */
|
|
226
|
-
interface MobileServerSocialFeedCommentsResponse {
|
|
227
|
-
/** Readable comments. */
|
|
228
|
-
comments: MobileServerSocialFeedReply[];
|
|
229
|
-
/** Total readable count. */
|
|
230
|
-
total_count: number;
|
|
231
|
-
/** Forward cursor. */
|
|
232
|
-
next_cursor: string | null;
|
|
233
|
-
/** Backward cursor. */
|
|
234
|
-
previous_cursor: string | null;
|
|
235
|
-
/** Requested anchor, or null. */
|
|
236
|
-
anchor_reply_id: string | null;
|
|
237
|
-
/** Original or new session. */
|
|
238
|
-
read_session: MobileServerSocialFeedReadSession;
|
|
239
|
-
}
|
|
240
|
-
/** Full position history with additional metrics and trusted trading hints. */
|
|
241
|
-
interface MobileServerSocialFeedPositionHistoryResponse {
|
|
242
|
-
/** Current or frozen position and history metrics. */
|
|
243
|
-
position: MobileServerSocialFeedPositionHistoryCard;
|
|
244
|
-
/** Counts across the authorized history. */
|
|
245
|
-
summary: MobileServerSocialFeedHistorySummary;
|
|
246
|
-
/** Ordered action and take entries. */
|
|
247
|
-
timeline: MobileServerSocialFeedTimelineEntry[];
|
|
248
|
-
/** Next history cursor. */
|
|
249
|
-
next_cursor: string | null;
|
|
250
|
-
/** History completeness. */
|
|
251
|
-
history_quality: MobileSocialFeedHistoryQuality;
|
|
252
|
-
/** Position-mode session. */
|
|
253
|
-
read_session: MobileServerSocialFeedReadSession;
|
|
254
|
-
/** Viewing-account state, not authentication. */
|
|
255
|
-
trading_context: MobileServerSocialFeedTradingContext;
|
|
256
|
-
}
|
|
257
|
-
/** Candles and actions, with separate estimated risk-price line. */
|
|
258
|
-
interface MobileServerSocialFeedPositionChartResponse {
|
|
259
|
-
/** Descending candle page. */
|
|
260
|
-
candles: MobileServerSocialFeedCandle[];
|
|
261
|
-
/** Action markers with explicit price bases. */
|
|
262
|
-
action_markers: MobileServerSocialFeedActionMarker[];
|
|
263
|
-
/** Estimated line, if applicable and available. */
|
|
264
|
-
estimated_liquidation_line: MobileServerSocialFeedEstimatedLiquidationLine | null;
|
|
265
|
-
/** Exclusive next-page bound. */
|
|
266
|
-
next_before_ms: number | null;
|
|
267
|
-
/** Observation time. */
|
|
268
|
-
as_of_ms: number;
|
|
269
|
-
/** Overall source quality. */
|
|
270
|
-
data_quality: MobileSocialFeedChartDataQuality;
|
|
271
|
-
}
|
|
272
|
-
/** Read-only watcher observation; account previews are self-reported. */
|
|
273
|
-
interface MobileServerSocialFeedWatchersResponse {
|
|
274
|
-
/** Distinct active browsing credentials. */
|
|
275
|
-
watcher_count: number;
|
|
276
|
-
/** Deduplicated public account previews. */
|
|
277
|
-
watcher_preview: MobileServerSocialFeedAuthor[];
|
|
278
|
-
/** Observation time. */
|
|
279
|
-
as_of_ms: number;
|
|
280
|
-
}
|
|
281
|
-
//#endregion
|
|
282
|
-
export { MobileServerSocialFeedWatchersResponse as C, MobileServerSocialFeedUpdatesResponse as S, MobileServerSocialFeedPositionResolutionResponse as _, MobileServerProfilesResponse as a, MobileServerSocialFeedResponse as b, MobileServerPublicQuerySuccessResponse as c, MobileServerSocialFeedActionResolutionResponse as d, MobileServerSocialFeedCommentsResponse as f, MobileServerSocialFeedPositionHistoryResponse as g, MobileServerSocialFeedPositionChartResponse as h, MobileServerNotificationPreferencesResponse as i, MobileServerRegisteredWalletResponse as l, MobileServerSocialFeedItemResponse as m, MobileServerFeedResponse as n, MobileServerPublicQueryRequest as o, MobileServerSocialFeedDrawingResponse as p, MobileServerFollowListResponse as r, MobileServerPublicQueryResponseByType as s, MobileServerAvatarPresetsResponse as t, MobileServerSearchProfilesResponse as u, MobileServerSocialFeedPositionsResponse as v, MobileServerUsernameAvailabilityResponse as w, MobileServerSocialFeedTopTradersResponse as x, MobileServerSocialFeedRankedResponse as y };
|
|
283
|
-
//# sourceMappingURL=serverQueryTypes-V1f9yE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arketCategory, y as MobileServerNotificationPreferences } from "./serverModelTypes-CiA-dy1R.cjs";
|
|
2
|
-
import { n as MobileSignedInner } from "./types-BiRmH5Iv.cjs";
|
|
3
|
-
import { Hex } from "viem";
|
|
4
|
-
|
|
5
|
-
//#region src/types/serverRequestTypes.d.ts
|
|
6
|
-
/**
|
|
7
|
-
* Opt-in extras for a `profiles` query. Each one costs extra rate-limit weight per profile and adds fields
|
|
8
|
-
* that are otherwise absent from the response, so the backend gates them behind an explicit request rather
|
|
9
|
-
* than always resolving the follow graph on a public route.
|
|
10
|
-
*/
|
|
11
|
-
interface MobileServerProfilesInclude {
|
|
12
|
-
/** Adds `follower_count` and `following_count` to every entry. Omitted or `false` leaves both absent. */
|
|
13
|
-
follow_counts?: boolean;
|
|
14
|
-
/**
|
|
15
|
-
* Adds `follow_summary` to every entry, relative to the `view_as` subaccount. As on every public route,
|
|
16
|
-
* `view_as` is an unauthenticated claim.
|
|
17
|
-
*/
|
|
18
|
-
follow_summary?: {
|
|
19
|
-
view_as: Hex;
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Params shared by the `followers` and `following` public queries: only the relationship that selects the
|
|
24
|
-
* rows differs between the two.
|
|
25
|
-
*/
|
|
26
|
-
interface MobileServerFollowListRequest {
|
|
27
|
-
/** The viewed Profile, i.e. the account whose Followers or Following are being listed. */
|
|
28
|
-
subaccount: Hex;
|
|
29
|
-
/**
|
|
30
|
-
* Viewer perspective the rows are resolved against. Omitted asks for no perspective, which drops
|
|
31
|
-
* `is_following` from every row and falls back to plain recency order. Like the `profiles` query's
|
|
32
|
-
* `view_as`, this is an unauthenticated claim on an unsigned route.
|
|
33
|
-
*/
|
|
34
|
-
view_as?: Hex;
|
|
35
|
-
/** Opaque keyset cursor from a prior page's `next_cursor`. Omitted requests the first page. */
|
|
36
|
-
cursor?: string;
|
|
37
|
-
/** Page size, 1–50; the backend defaults to 25 when omitted. */
|
|
38
|
-
limit?: number;
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Params of the `search_profiles` public query.
|
|
42
|
-
*/
|
|
43
|
-
interface MobileServerSearchProfilesRequest {
|
|
44
|
-
/**
|
|
45
|
-
* Username prefix, 1-20 ASCII bytes: a letter or digit first, then letters, digits, `_` or `.`. The
|
|
46
|
-
* backend lowercases letters and trims nothing.
|
|
47
|
-
*/
|
|
48
|
-
query: string;
|
|
49
|
-
/** Same opt-in extras as the `profiles` query, applied to every match on the page. */
|
|
50
|
-
include?: MobileServerProfilesInclude;
|
|
51
|
-
/** Opaque keyset cursor from a prior page's `next_cursor`. Omitted requests the first page. */
|
|
52
|
-
cursor?: string;
|
|
53
|
-
/** Page size, 1-50, or 1-25 when `include` asks for follow data; the backend defaults to 25 when omitted. */
|
|
54
|
-
limit?: number;
|
|
55
|
-
}
|
|
56
|
-
/** Common filters and pagination for social feed lists. */
|
|
57
|
-
interface MobileServerSocialFeedListParams {
|
|
58
|
-
/** OR-ed content filters; combined with other filters using AND. */
|
|
59
|
-
feed_types?: MobileSocialFeedType[];
|
|
60
|
-
/** Strict lower bound in whole dollars, 1 through Number.MAX_SAFE_INTEGER. */
|
|
61
|
-
minimum_notional?: number;
|
|
62
|
-
/** Page size, 1–50; defaults to 20. */
|
|
63
|
-
limit?: number;
|
|
64
|
-
/** Fixed 15-minute reading session; required with cursor. */
|
|
65
|
-
session_id?: string;
|
|
66
|
-
/** Opaque pagination cursor, distinct from update_cursor and watermark. */
|
|
67
|
-
cursor?: string;
|
|
68
|
-
}
|
|
69
|
-
/** List fields for main feeds and author feeds. */
|
|
70
|
-
interface MobileServerSocialFeedCategorizedParams extends MobileServerSocialFeedListParams {
|
|
71
|
-
/** Omit to read all market categories. */
|
|
72
|
-
market_category?: MobileSocialFeedMarketCategory;
|
|
73
|
-
}
|
|
74
|
-
/** Unsigned browsing context; the viewing account is not proof of wallet ownership. */
|
|
75
|
-
interface MobileServerSocialFeedReadParams {
|
|
76
|
-
/**
|
|
77
|
-
* Complete non-isolated viewing account. Profile, position, and item reads include this account's
|
|
78
|
-
* own hidden content under account_view, in addition to resolving relationship state.
|
|
79
|
-
*/
|
|
80
|
-
view_as?: Hex;
|
|
81
|
-
/** Original browsing credential when reusing a session. */
|
|
82
|
-
viewer_token?: string;
|
|
83
|
-
}
|
|
84
|
-
/**
|
|
85
|
-
* Params for each unsigned `public_query`, keyed by request `type`.
|
|
86
|
-
*/
|
|
87
|
-
interface MobileServerPublicQueryRequestByType {
|
|
88
|
-
/** Selected account's open position candidates. */
|
|
89
|
-
self_feed_positions: {
|
|
90
|
-
/** Full identity. */view_as: Hex; /** Market filter. */
|
|
91
|
-
product_id?: number; /** Bound pagination cursor. */
|
|
92
|
-
cursor?: string; /** Page size, 1-50. */
|
|
93
|
-
limit?: number;
|
|
94
|
-
};
|
|
95
|
-
/** Resolve a position command without signing. */
|
|
96
|
-
resolve_feed_position: {
|
|
97
|
-
/** Full identity. */view_as: Hex; /** Unmodified command text. */
|
|
98
|
-
input: string; /** Optional market disambiguation. */
|
|
99
|
-
product_id?: number;
|
|
100
|
-
};
|
|
101
|
-
/** Resolve an order's complete trusted lifecycle segments. */
|
|
102
|
-
resolve_feed_action: {
|
|
103
|
-
/** Order-owning identity. */view_as: Hex; /** Trading order digest. */
|
|
104
|
-
order_digest: Hex;
|
|
105
|
-
};
|
|
106
|
-
/** Read a drawing within the parent item's visibility. */
|
|
107
|
-
feed_chart_drawing: MobileServerSocialFeedReadParams & {
|
|
108
|
-
/** Parent UUID. */item_id: string; /** Original session, paired with viewer_token. */
|
|
109
|
-
session_id?: string;
|
|
110
|
-
};
|
|
111
|
-
/** Read or navigate a comment thread. */
|
|
112
|
-
feed_comments: MobileServerSocialFeedReadParams & {
|
|
113
|
-
/** Root UUID. */root_item_id: string; /** Thread cursor. */
|
|
114
|
-
cursor?: string; /** Page size, 1-50. */
|
|
115
|
-
limit?: number; /** First-page anchor, mutually exclusive with cursor. */
|
|
116
|
-
anchor_reply_id?: string; /** Original reading session. */
|
|
117
|
-
session_id?: string;
|
|
118
|
-
};
|
|
119
|
-
/** Full lifecycle history rather than published feed items alone. */
|
|
120
|
-
position_history: MobileServerSocialFeedReadParams & {
|
|
121
|
-
/** Lifecycle UUID. */position_id: string; /** Filter to published takes. */
|
|
122
|
-
takes_only?: boolean; /** History cursor. */
|
|
123
|
-
cursor?: string; /** Page size, 1-50. */
|
|
124
|
-
limit?: number; /** Original position-mode session. */
|
|
125
|
-
session_id?: string;
|
|
126
|
-
};
|
|
127
|
-
/** Market candles and independently priced action markers. */
|
|
128
|
-
position_chart: MobileServerSocialFeedReadParams & {
|
|
129
|
-
/** Lifecycle UUID. */position_id: string; /** Original session, paired with viewer_token. */
|
|
130
|
-
session_id?: string; /** Candle interval. */
|
|
131
|
-
interval: MobileSocialFeedChartInterval; /** Half-open time interval. */
|
|
132
|
-
range: MobileServerSocialFeedChartRange; /** Exclusive next-page bound. */
|
|
133
|
-
before_ms?: number; /** Page size, 1-500. */
|
|
134
|
-
limit?: number;
|
|
135
|
-
};
|
|
136
|
-
/** Watcher query; does not register presence. */
|
|
137
|
-
position_watchers: {
|
|
138
|
-
/** Lifecycle UUID. */position_id: string; /** Relationship perspective only. */
|
|
139
|
-
view_as?: Hex;
|
|
140
|
-
};
|
|
141
|
-
/** Ordered server-owned avatar catalogue. */
|
|
142
|
-
avatar_presets: Record<never, never>;
|
|
143
|
-
/** Public recommendations with optional relationship perspective. */
|
|
144
|
-
for_you_feed: MobileServerSocialFeedCategorizedParams & MobileServerSocialFeedReadParams;
|
|
145
|
-
/** Public content from qualified authors. */
|
|
146
|
-
top_traders_feed: MobileServerSocialFeedCategorizedParams & MobileServerSocialFeedReadParams;
|
|
147
|
-
/** Public content from authors followed by view_as. */
|
|
148
|
-
friends_feed: MobileServerSocialFeedCategorizedParams & MobileServerSocialFeedReadParams & {
|
|
149
|
-
/** Complete non-isolated identity subaccount; required on every request. */view_as: Hex;
|
|
150
|
-
};
|
|
151
|
-
/** Author content visible to view_as; the target is separate from the viewing account. */
|
|
152
|
-
profile_feed: MobileServerSocialFeedCategorizedParams & MobileServerSocialFeedReadParams & {
|
|
153
|
-
/** Target author identity, independent of view_as. */subaccount: Hex;
|
|
154
|
-
};
|
|
155
|
-
/** Public market content. */
|
|
156
|
-
market_feed: MobileServerSocialFeedListParams & MobileServerSocialFeedReadParams & {
|
|
157
|
-
/** Target product. */product_id: number;
|
|
158
|
-
};
|
|
159
|
-
/** Published activity in one lifecycle, including hidden content owned by view_as. */
|
|
160
|
-
position_feed: MobileServerSocialFeedListParams & MobileServerSocialFeedReadParams & {
|
|
161
|
-
/** Target position UUID. */position_id: string;
|
|
162
|
-
};
|
|
163
|
-
/** Item details visible to view_as, optionally reusing a reading session. */
|
|
164
|
-
feed_item: MobileServerSocialFeedReadParams & {
|
|
165
|
-
/** Target item UUID. */item_id: string; /** Preview size, 0-3. */
|
|
166
|
-
comment_preview_limit?: number; /** Omit to create a new reading session. */
|
|
167
|
-
session_id?: string;
|
|
168
|
-
};
|
|
169
|
-
/** Updates inherit the original public session's viewing account. */
|
|
170
|
-
feed_updates: {
|
|
171
|
-
/** Original reading session. */session_id: string; /** Previously delivered item UUIDs. */
|
|
172
|
-
visible_item_ids: string[]; /** Authorized position UUIDs. */
|
|
173
|
-
visible_position_ids: string[]; /** Baseline from the last accepted update. */
|
|
174
|
-
update_cursor?: string | null; /** Current viewport version. */
|
|
175
|
-
viewport_revision: number; /** Request sequence increasing across the entire session, including viewport changes. */
|
|
176
|
-
request_seq: number; /** Original public browsing credential. */
|
|
177
|
-
viewer_token: string; /** The viewing account cannot be changed by an update. */
|
|
178
|
-
view_as?: never;
|
|
179
|
-
};
|
|
180
|
-
username_availability: {
|
|
181
|
-
display_name: string;
|
|
182
|
-
};
|
|
183
|
-
profiles: {
|
|
184
|
-
/**
|
|
185
|
-
* 1–`MOBILE_PROFILES_MAX_BATCH_SIZE` (25) distinct subaccounts. Results come back in this exact order,
|
|
186
|
-
* one entry per request slot.
|
|
187
|
-
*/
|
|
188
|
-
subaccounts: Hex[];
|
|
189
|
-
include?: MobileServerProfilesInclude;
|
|
190
|
-
};
|
|
191
|
-
search_profiles: MobileServerSearchProfilesRequest;
|
|
192
|
-
followers: MobileServerFollowListRequest;
|
|
193
|
-
following: MobileServerFollowListRequest;
|
|
194
|
-
feed: {
|
|
195
|
-
/**
|
|
196
|
-
* Minimum notional as a whole-dollar JSON integer (NOT an x18 string), at least $1,000. Omitted or
|
|
197
|
-
* `null` means unfiltered.
|
|
198
|
-
*/
|
|
199
|
-
minimum_notional?: number; /** Page size, 1–50; the backend defaults to `MOBILE_FEED_MAX_PAGE_SIZE` (50) when omitted. */
|
|
200
|
-
limit?: number;
|
|
201
|
-
/**
|
|
202
|
-
* Opaque keyset cursor from a prior page's `next_cursor`. Bound to the exact `minimum_notional` it was
|
|
203
|
-
* issued for (including the unfiltered state) — reusing it with a different filter fails.
|
|
204
|
-
*/
|
|
205
|
-
cursor?: string;
|
|
206
|
-
};
|
|
207
|
-
notification_preferences: {
|
|
208
|
-
expo_token: string;
|
|
209
|
-
};
|
|
210
|
-
registered_wallet: {
|
|
211
|
-
expo_token: string;
|
|
212
|
-
};
|
|
213
|
-
}
|
|
214
|
-
/**
|
|
215
|
-
* Discriminant `type` values for unsigned `public_query` requests.
|
|
216
|
-
*/
|
|
217
|
-
type MobileServerPublicQueryRequestType = keyof MobileServerPublicQueryRequestByType;
|
|
218
|
-
/**
|
|
219
|
-
* Params for each unsigned `public_execute`, keyed by request `type`. No signature, sender, or nonce is sent.
|
|
220
|
-
* `record_feed_views` and `position_presence` are authorized by the original reading session (`session_id`)
|
|
221
|
-
* and browser credential (`viewer_token`), not an Expo push token.
|
|
222
|
-
* For `unregister_expo_token` and `update_preferences`, possession of an active Expo push token authorizes
|
|
223
|
-
* the notification mutation: the backend resolves the token's owning wallet and mutates its state. These
|
|
224
|
-
* notification writes use the backend's last-write-wins commit order, so callers must serialize them.
|
|
225
|
-
*/
|
|
226
|
-
interface MobileServerPublicExecuteRequestByType {
|
|
227
|
-
/** Explicit exposure report using the original browsing credential. */
|
|
228
|
-
record_feed_views: {
|
|
229
|
-
/** Original reading session. */session_id: string; /** Fully delivered interactive items. */
|
|
230
|
-
item_ids: string[]; /** Original credential. */
|
|
231
|
-
viewer_token: string;
|
|
232
|
-
};
|
|
233
|
-
/** Per-page visitor lease; no wallet signature. */
|
|
234
|
-
position_presence: {
|
|
235
|
-
/** Lifecycle UUID. */position_id: string; /** Original reading session. */
|
|
236
|
-
session_id: string; /** Page-scoped UUID. */
|
|
237
|
-
view_session_id: string; /** Lease lifecycle state. */
|
|
238
|
-
state: MobileSocialFeedPresenceState; /** Original browsing credential. */
|
|
239
|
-
viewer_token: string; /** Omission preserves the display account; null clears it. */
|
|
240
|
-
watcher_subaccount?: Hex | null;
|
|
241
|
-
};
|
|
242
|
-
unregister_expo_token: {
|
|
243
|
-
expo_token: string;
|
|
244
|
-
};
|
|
245
|
-
update_preferences: {
|
|
246
|
-
expo_token: string;
|
|
247
|
-
preferences: MobileServerNotificationPreferences;
|
|
248
|
-
};
|
|
249
|
-
}
|
|
250
|
-
/**
|
|
251
|
-
* Discriminant `type` values for unsigned `public_execute` requests.
|
|
252
|
-
*/
|
|
253
|
-
type MobileServerPublicExecuteRequestType = keyof MobileServerPublicExecuteRequestByType;
|
|
254
|
-
/**
|
|
255
|
-
* Discriminant `type` values for signed `execute` requests. Every signed route the SDK calls is a write, so
|
|
256
|
-
* this is the full set of {@link MobileSignedInner} tags. Unlike the public queries these carry no separate
|
|
257
|
-
* params map — a signed request body *is* its inner payload flattened with the envelope, so
|
|
258
|
-
* {@link MobileSignedInner} is the single source of truth for both the fields and their significant order.
|
|
259
|
-
*/
|
|
260
|
-
type MobileServerExecuteRequestType = MobileSignedInner['type'];
|
|
261
|
-
/**
|
|
262
|
-
* Wire `request_type` the backend echoes on failure envelopes, prefixed by the route that produced it:
|
|
263
|
-
* `public_query_*` for unsigned queries, `public_execute_*` for unsigned writes, and `execute_*` for signed
|
|
264
|
-
* writes (e.g. `execute_set_username`). The prefix names the route, so it never carries the `mobile:` prefix
|
|
265
|
-
* that the EIP-712 method does.
|
|
266
|
-
*/
|
|
267
|
-
type MobileServerRequestType = `public_query_${MobileServerPublicQueryRequestType}` | `public_execute_${MobileServerPublicExecuteRequestType}` | `execute_${MobileServerExecuteRequestType}`;
|
|
268
|
-
//#endregion
|
|
269
|
-
export { MobileServerPublicExecuteRequestType as a, MobileServerRequestType as c, MobileServerSocialFeedListParams as d, MobileServerSocialFeedReadParams as f, MobileServerPublicExecuteRequestByType as i, MobileServerSearchProfilesRequest as l, MobileServerFollowListRequest as n, MobileServerPublicQueryRequestByType as o, MobileServerProfilesInclude as r, MobileServerPublicQueryRequestType as s, MobileServerExecuteRequestType as t, MobileServerSocialFeedCategorizedParams as u };
|
|
270
|
-
//# sourceMappingURL=serverRequestTypes-CRlkNSu5.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"serverRequestTypes-CRlkNSu5.d.cts","names":[],"sources":["../src/types/src/types/serverRequestTypes.ts"],"mappings":";;;;;;;AAgBA;;;UAAiB,2BAAA;EAEf;EAAA,aAAA;EAKmB;;;AAAY;EAA/B,cAAA;IAAmB,OAAA,EAAS,GAAG;EAAA;AAAA;;;;;UAOhB,6BAAA;EAYf;EAVA,UAAA,EAAY,GAAA;EAUP;AAMP;;;;EAVE,OAAA,GAAU,GAAG;EAiBb;EAfA,MAAA;EAiBA;EAfA,KAAA;AAAA;AAiBK;AAIP;;AAJO,UAXU,iCAAA;EAiBkB;;;;EAZjC,KAAA;EAkBA;EAhBA,OAAA,GAAU,2BAA2B;EAkB/B;EAhBN,MAAA;EAoBe;EAlBf,KAAA;AAAA;;UAIe,gCAAA;EAgBf;EAdA,UAAA,GAAa,oBAAoB;EAce;EAZhD,gBAAA;EAgBe;EAdf,KAAA;;EAEA,UAAA;EAiBA;EAfA,MAAA;AAAA;;UAIe,uCAAA,SAAgD,gCAAgC;EAmBhF;EAjBf,e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