@nadohq/mobile-client 0.64.0 → 0.65.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 +20 -2
- package/dist/{MobileClient-aDxiM_Kf.cjs → MobileClient-CfVZXTcz.cjs} +298 -1
- package/dist/MobileClient-CfVZXTcz.cjs.map +1 -0
- package/dist/MobileClient.cjs +1 -1
- package/dist/MobileClient.d.cts +173 -7
- package/dist/MobileClient.d.cts.map +1 -1
- package/dist/MobileClient.d.ts +173 -7
- package/dist/MobileClient.d.ts.map +1 -1
- package/dist/MobileClient.js +298 -1
- package/dist/MobileClient.js.map +1 -1
- package/dist/{MobileServerFailureError-Dd3c6P_Z.d.ts → MobileServerFailureError-BZVwlsMg.d.ts} +3 -3
- package/dist/{MobileServerFailureError-Dd3c6P_Z.d.ts.map → MobileServerFailureError-BZVwlsMg.d.ts.map} +1 -1
- package/dist/{MobileServerFailureError-Bpa_WA9f.d.cts → MobileServerFailureError-CbtK8kD4.d.cts} +3 -3
- package/dist/{MobileServerFailureError-Bpa_WA9f.d.cts.map → MobileServerFailureError-CbtK8kD4.d.cts.map} +1 -1
- package/dist/MobileUnsupportedFeedItemError-BsZvW8i2.d.cts +15 -0
- package/dist/MobileUnsupportedFeedItemError-BsZvW8i2.d.cts.map +1 -0
- package/dist/MobileUnsupportedFeedItemError-BsZvW8i2.d.ts +15 -0
- package/dist/MobileUnsupportedFeedItemError-BsZvW8i2.d.ts.map +1 -0
- package/dist/{buildSignedMobileRequest-NHbMAPzd.d.cts → buildSignedMobileRequest-C1v0flCR.d.cts} +2 -2
- package/dist/{buildSignedMobileRequest-NHbMAPzd.d.cts.map → buildSignedMobileRequest-C1v0flCR.d.cts.map} +1 -1
- package/dist/{buildSignedMobileRequest-Cb1T74xV.d.ts → buildSignedMobileRequest-UeeWdYGU.d.ts} +2 -2
- package/dist/{buildSignedMobileRequest-Cb1T74xV.d.ts.map → buildSignedMobileRequest-UeeWdYGU.d.ts.map} +1 -1
- package/dist/{canonicalize-BBYGh17w.d.ts → canonicalize-5eeZrkzQ.d.ts} +2 -2
- package/dist/canonicalize-5eeZrkzQ.d.ts.map +1 -0
- package/dist/{canonicalize-BF_SiNvO.d.cts → canonicalize-CBaZprTo.d.cts} +2 -2
- package/dist/canonicalize-CBaZprTo.d.cts.map +1 -0
- package/dist/{clientTypes-BWFKo9oE.d.cts → clientTypes-C9dJufxk.d.ts} +569 -25
- package/dist/clientTypes-C9dJufxk.d.ts.map +1 -0
- package/dist/{clientTypes-DCTiUV0H.d.ts → clientTypes-_mEgzmNs.d.cts} +569 -25
- package/dist/clientTypes-_mEgzmNs.d.cts.map +1 -0
- package/dist/dataMappers.cjs +488 -9
- package/dist/dataMappers.cjs.map +1 -1
- package/dist/dataMappers.d.cts +190 -7
- package/dist/dataMappers.d.cts.map +1 -1
- package/dist/dataMappers.d.ts +190 -7
- package/dist/dataMappers.d.ts.map +1 -1
- package/dist/dataMappers.js +460 -10
- package/dist/dataMappers.js.map +1 -1
- package/dist/{eip712MethodByType-BSx11xG-.d.cts → eip712MethodByType-D8jLoxDu.d.cts} +2 -2
- package/dist/eip712MethodByType-D8jLoxDu.d.cts.map +1 -0
- package/dist/{eip712MethodByType-DkiAjCLs.d.ts → eip712MethodByType-DcUh8h-l.d.ts} +2 -2
- package/dist/eip712MethodByType-DcUh8h-l.d.ts.map +1 -0
- package/dist/index.cjs +3 -1
- package/dist/index.d.cts +16 -15
- package/dist/index.d.ts +16 -15
- package/dist/index.js +2 -1
- package/dist/{mobileErrorCodes-3LtreeZM.d.ts → mobileErrorCodes-CmjYEIYm.d.cts} +18 -4
- package/dist/mobileErrorCodes-CmjYEIYm.d.cts.map +1 -0
- package/dist/{mobileErrorCodes-3LtreeZM.d.cts → mobileErrorCodes-CmjYEIYm.d.ts} +18 -4
- package/dist/mobileErrorCodes-CmjYEIYm.d.ts.map +1 -0
- package/dist/{payloadHash-BOWGjqdb.d.cts → payloadHash-DhHmgRqL.d.cts} +2 -2
- package/dist/payloadHash-DhHmgRqL.d.cts.map +1 -0
- package/dist/{payloadHash-Bzf4CtjV.d.ts → payloadHash-E1_8fpLW.d.ts} +2 -2
- package/dist/payloadHash-E1_8fpLW.d.ts.map +1 -0
- package/dist/{serverBaseTypes-KREDe2M9.d.cts → serverBaseTypes-B5J1_TyC.d.cts} +2 -2
- package/dist/{serverBaseTypes-KREDe2M9.d.cts.map → serverBaseTypes-B5J1_TyC.d.cts.map} +1 -1
- package/dist/{serverBaseTypes-DWf3iGWy.d.ts → serverBaseTypes-DnLzsdm-.d.ts} +2 -2
- package/dist/{serverBaseTypes-DWf3iGWy.d.ts.map → serverBaseTypes-DnLzsdm-.d.ts.map} +1 -1
- package/dist/serverExecuteTypes-B-OJok19.d.cts +162 -0
- package/dist/serverExecuteTypes-B-OJok19.d.cts.map +1 -0
- package/dist/serverExecuteTypes-BwWGspOg.d.ts +162 -0
- package/dist/serverExecuteTypes-BwWGspOg.d.ts.map +1 -0
- package/dist/{serverModelTypes-DAqEyYtB.d.cts → serverModelTypes-CiA-dy1R.d.cts} +299 -24
- package/dist/serverModelTypes-CiA-dy1R.d.cts.map +1 -0
- package/dist/{serverModelTypes-DAqEyYtB.d.ts → serverModelTypes-CiA-dy1R.d.ts} +299 -24
- package/dist/serverModelTypes-CiA-dy1R.d.ts.map +1 -0
- package/dist/{serverQueryTypes-DNdMpmDr.d.cts → serverQueryTypes-CJcjLB7n.d.ts} +117 -5
- package/dist/serverQueryTypes-CJcjLB7n.d.ts.map +1 -0
- package/dist/{serverQueryTypes-BFdwq0Z2.d.ts → serverQueryTypes-V1f9yE7L.d.cts} +117 -5
- package/dist/serverQueryTypes-V1f9yE7L.d.cts.map +1 -0
- package/dist/{serverRequestTypes-CxDRFKfv.d.cts → serverRequestTypes-CRlkNSu5.d.cts} +77 -7
- package/dist/serverRequestTypes-CRlkNSu5.d.cts.map +1 -0
- package/dist/{serverRequestTypes-BNA7FCY6.d.ts → serverRequestTypes-DZoOhV2o.d.ts} +77 -7
- package/dist/serverRequestTypes-DZoOhV2o.d.ts.map +1 -0
- package/dist/{serverResponseGuards-Dkdok0Sm.d.cts → serverResponseGuards-BW69PS7O.d.cts} +2 -2
- package/dist/{serverResponseGuards-Dkdok0Sm.d.cts.map → serverResponseGuards-BW69PS7O.d.cts.map} +1 -1
- package/dist/{serverResponseGuards-BU1Xv_tG.d.ts → serverResponseGuards-CShiXpHT.d.ts} +2 -2
- package/dist/{serverResponseGuards-BU1Xv_tG.d.ts.map → serverResponseGuards-CShiXpHT.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 +37 -0
- 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 +37 -0
- package/dist/signing/canonicalize.js.map +1 -1
- package/dist/signing/eip712MethodByType.cjs +5 -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 +5 -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.d.cts +1 -1
- package/dist/signing/payloadHash.d.ts +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/MobileUnsupportedFeedItemError.cjs +19 -0
- package/dist/types/MobileUnsupportedFeedItemError.cjs.map +1 -0
- package/dist/types/MobileUnsupportedFeedItemError.d.cts +2 -0
- package/dist/types/MobileUnsupportedFeedItemError.d.ts +2 -0
- package/dist/types/MobileUnsupportedFeedItemError.js +18 -0
- package/dist/types/MobileUnsupportedFeedItemError.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 +2 -0
- package/dist/types/index.d.cts +10 -9
- package/dist/types/index.d.ts +10 -9
- package/dist/types/index.js +2 -1
- package/dist/types/mobileErrorCodes.cjs +28 -0
- 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 +28 -0
- 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.map +1 -1
- package/dist/types/serverModelTypes.d.cts +2 -2
- package/dist/types/serverModelTypes.d.ts +2 -2
- 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 +1 -1
- package/dist/types/serverRequestTypes.d.ts +1 -1
- package/dist/{types-BCr2G5gS.d.cts → types-BiRmH5Iv.d.cts} +31 -7
- package/dist/types-BiRmH5Iv.d.cts.map +1 -0
- package/dist/{types-C18k-9Vy.d.ts → types-DoJuq0Ij.d.ts} +31 -7
- package/dist/types-DoJuq0Ij.d.ts.map +1 -0
- package/dist/utils/index.d.cts +1 -1
- package/dist/utils/index.d.ts +1 -1
- 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 +409 -4
- package/src/dataMappers.test.ts +742 -0
- package/src/dataMappers.ts +671 -12
- package/src/signing/canonicalize.ts +53 -0
- package/src/signing/eip712MethodByType.ts +5 -0
- package/src/signing/signing.test.ts +347 -0
- package/src/signing/types.ts +57 -4
- package/src/types/MobileUnsupportedFeedItemError.ts +18 -0
- package/src/types/clientTypes.ts +645 -23
- package/src/types/index.ts +1 -0
- package/src/types/mobileErrorCodes.ts +28 -0
- package/src/types/serverExecuteTypes.ts +92 -3
- package/src/types/serverModelTypes.ts +376 -22
- package/src/types/serverQueryTypes.ts +138 -0
- package/src/types/serverRequestTypes.ts +115 -4
- package/dist/MobileClient-aDxiM_Kf.cjs.map +0 -1
- package/dist/canonicalize-BBYGh17w.d.ts.map +0 -1
- package/dist/canonicalize-BF_SiNvO.d.cts.map +0 -1
- package/dist/clientTypes-BWFKo9oE.d.cts.map +0 -1
- package/dist/clientTypes-DCTiUV0H.d.ts.map +0 -1
- package/dist/eip712MethodByType-BSx11xG-.d.cts.map +0 -1
- package/dist/eip712MethodByType-DkiAjCLs.d.ts.map +0 -1
- package/dist/mobileErrorCodes-3LtreeZM.d.cts.map +0 -1
- package/dist/mobileErrorCodes-3LtreeZM.d.ts.map +0 -1
- package/dist/payloadHash-BOWGjqdb.d.cts.map +0 -1
- package/dist/payloadHash-Bzf4CtjV.d.ts.map +0 -1
- package/dist/serverExecuteTypes-DVRa6ifu.d.cts +0 -89
- package/dist/serverExecuteTypes-DVRa6ifu.d.cts.map +0 -1
- package/dist/serverExecuteTypes-DlYZCp1f.d.ts +0 -89
- package/dist/serverExecuteTypes-DlYZCp1f.d.ts.map +0 -1
- package/dist/serverModelTypes-DAqEyYtB.d.cts.map +0 -1
- package/dist/serverModelTypes-DAqEyYtB.d.ts.map +0 -1
- package/dist/serverQueryTypes-BFdwq0Z2.d.ts.map +0 -1
- package/dist/serverQueryTypes-DNdMpmDr.d.cts.map +0 -1
- package/dist/serverRequestTypes-BNA7FCY6.d.ts.map +0 -1
- package/dist/serverRequestTypes-CxDRFKfv.d.cts.map +0 -1
- package/dist/types-BCr2G5gS.d.cts.map +0 -1
- package/dist/types-C18k-9Vy.d.ts.map +0 -1
|
@@ -7,11 +7,29 @@ import {
|
|
|
7
7
|
MobileServerFollowListAccount,
|
|
8
8
|
MobileServerNotificationPreferences,
|
|
9
9
|
MobileServerProfile,
|
|
10
|
+
MobileServerSocialFeedActionCandidate,
|
|
11
|
+
MobileServerSocialFeedActionMarker,
|
|
12
|
+
MobileServerSocialFeedAuthor,
|
|
13
|
+
MobileServerSocialFeedCandle,
|
|
10
14
|
MobileServerSocialFeedCohort,
|
|
15
|
+
MobileServerSocialFeedDrawing,
|
|
16
|
+
MobileServerSocialFeedEstimatedLiquidationLine,
|
|
17
|
+
MobileServerSocialFeedHistorySummary,
|
|
11
18
|
MobileServerSocialFeedItem,
|
|
12
19
|
MobileServerSocialFeedItemPatch,
|
|
20
|
+
MobileServerSocialFeedMarket,
|
|
21
|
+
MobileServerSocialFeedPositionHistoryCard,
|
|
13
22
|
MobileServerSocialFeedPositionPatch,
|
|
23
|
+
MobileServerSocialFeedPublishablePosition,
|
|
14
24
|
MobileServerSocialFeedReadSession,
|
|
25
|
+
MobileServerSocialFeedReply,
|
|
26
|
+
MobileServerSocialFeedTimelineEntry,
|
|
27
|
+
MobileServerSocialFeedTradingContext,
|
|
28
|
+
MobileSocialFeedActionResolution,
|
|
29
|
+
MobileSocialFeedChartDataQuality,
|
|
30
|
+
MobileSocialFeedHistoryQuality,
|
|
31
|
+
MobileSocialFeedPositionResolution,
|
|
32
|
+
MobileSocialFeedPositionResolutionReason,
|
|
15
33
|
MobileSocialFeedUnavailableTarget,
|
|
16
34
|
} from './serverModelTypes';
|
|
17
35
|
import {
|
|
@@ -167,6 +185,22 @@ export interface MobileServerRegisteredWalletResponse {
|
|
|
167
185
|
* by {@link MobileServerPublicQuerySuccessResponse}.
|
|
168
186
|
*/
|
|
169
187
|
export interface MobileServerPublicQueryResponseByType {
|
|
188
|
+
/** Open position candidates. */
|
|
189
|
+
self_feed_positions: MobileServerSocialFeedPositionsResponse;
|
|
190
|
+
/** Position command resolution. */
|
|
191
|
+
resolve_feed_position: MobileServerSocialFeedPositionResolutionResponse;
|
|
192
|
+
/** Trusted order action resolution. */
|
|
193
|
+
resolve_feed_action: MobileServerSocialFeedActionResolutionResponse;
|
|
194
|
+
/** Parent drawing and version. */
|
|
195
|
+
feed_chart_drawing: MobileServerSocialFeedDrawingResponse;
|
|
196
|
+
/** Comment thread page. */
|
|
197
|
+
feed_comments: MobileServerSocialFeedCommentsResponse;
|
|
198
|
+
/** Full lifecycle history. */
|
|
199
|
+
position_history: MobileServerSocialFeedPositionHistoryResponse;
|
|
200
|
+
/** Candle page and markers. */
|
|
201
|
+
position_chart: MobileServerSocialFeedPositionChartResponse;
|
|
202
|
+
/** Read-only watcher observation. */
|
|
203
|
+
position_watchers: MobileServerSocialFeedWatchersResponse;
|
|
170
204
|
/** Preset IDs and public image URLs in display order. */
|
|
171
205
|
avatar_presets: MobileServerAvatarPresetsResponse;
|
|
172
206
|
/** For You recommendations. */
|
|
@@ -204,3 +238,107 @@ export type MobileServerPublicQuerySuccessResponse<
|
|
|
204
238
|
T extends MobileServerPublicQueryRequestType =
|
|
205
239
|
MobileServerPublicQueryRequestType,
|
|
206
240
|
> = MobileServerSuccessResponse & MobileServerPublicQueryResponseByType[T];
|
|
241
|
+
|
|
242
|
+
/** Selected account's current candidates. */
|
|
243
|
+
export interface MobileServerSocialFeedPositionsResponse {
|
|
244
|
+
/** Position eligibility hints. */
|
|
245
|
+
positions: MobileServerSocialFeedPublishablePosition[];
|
|
246
|
+
/** Next bound cursor, or null. */
|
|
247
|
+
next_cursor: string | null;
|
|
248
|
+
/** Observation time. */
|
|
249
|
+
as_of_ms: number;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
/** Slash-command resolution, including normal empty outcomes. */
|
|
253
|
+
export interface MobileServerSocialFeedPositionResolutionResponse {
|
|
254
|
+
/** Resolution status. */
|
|
255
|
+
resolution: MobileSocialFeedPositionResolution;
|
|
256
|
+
/** Resolved market, or null. */
|
|
257
|
+
product: MobileServerSocialFeedMarket | null;
|
|
258
|
+
/** Current candidates. */
|
|
259
|
+
candidates: MobileServerSocialFeedPublishablePosition[];
|
|
260
|
+
/** Explanation for empty candidates. */
|
|
261
|
+
reason: MobileSocialFeedPositionResolutionReason | null;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
/** Authoritative order segments, not an inferred latest trade. */
|
|
265
|
+
export interface MobileServerSocialFeedActionResolutionResponse {
|
|
266
|
+
/** Requested order. */
|
|
267
|
+
order_digest: Hex;
|
|
268
|
+
/** Pending until all confirmed segments are projected. */
|
|
269
|
+
resolution: MobileSocialFeedActionResolution;
|
|
270
|
+
/** Trusted actions, empty when pending. */
|
|
271
|
+
actions: MobileServerSocialFeedActionCandidate[];
|
|
272
|
+
/** Observation time. */
|
|
273
|
+
as_of_ms: number;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
/** Drawing read result; a readable parent without a drawing succeeds with null. */
|
|
277
|
+
export interface MobileServerSocialFeedDrawingResponse {
|
|
278
|
+
/** Parent UUID. */
|
|
279
|
+
item_id: string;
|
|
280
|
+
/** Display version. */
|
|
281
|
+
item_version: string;
|
|
282
|
+
/** Parsed drawing, or null. */
|
|
283
|
+
drawing: MobileServerSocialFeedDrawing | null;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
/** Comment thread, including bidirectional pagination around an optional anchor. */
|
|
287
|
+
export interface MobileServerSocialFeedCommentsResponse {
|
|
288
|
+
/** Readable comments. */
|
|
289
|
+
comments: MobileServerSocialFeedReply[];
|
|
290
|
+
/** Total readable count. */
|
|
291
|
+
total_count: number;
|
|
292
|
+
/** Forward cursor. */
|
|
293
|
+
next_cursor: string | null;
|
|
294
|
+
/** Backward cursor. */
|
|
295
|
+
previous_cursor: string | null;
|
|
296
|
+
/** Requested anchor, or null. */
|
|
297
|
+
anchor_reply_id: string | null;
|
|
298
|
+
/** Original or new session. */
|
|
299
|
+
read_session: MobileServerSocialFeedReadSession;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
/** Full position history with additional metrics and trusted trading hints. */
|
|
303
|
+
export interface MobileServerSocialFeedPositionHistoryResponse {
|
|
304
|
+
/** Current or frozen position and history metrics. */
|
|
305
|
+
position: MobileServerSocialFeedPositionHistoryCard;
|
|
306
|
+
/** Counts across the authorized history. */
|
|
307
|
+
summary: MobileServerSocialFeedHistorySummary;
|
|
308
|
+
/** Ordered action and take entries. */
|
|
309
|
+
timeline: MobileServerSocialFeedTimelineEntry[];
|
|
310
|
+
/** Next history cursor. */
|
|
311
|
+
next_cursor: string | null;
|
|
312
|
+
/** History completeness. */
|
|
313
|
+
history_quality: MobileSocialFeedHistoryQuality;
|
|
314
|
+
/** Position-mode session. */
|
|
315
|
+
read_session: MobileServerSocialFeedReadSession;
|
|
316
|
+
/** Viewing-account state, not authentication. */
|
|
317
|
+
trading_context: MobileServerSocialFeedTradingContext;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
/** Candles and actions, with separate estimated risk-price line. */
|
|
321
|
+
export interface MobileServerSocialFeedPositionChartResponse {
|
|
322
|
+
/** Descending candle page. */
|
|
323
|
+
candles: MobileServerSocialFeedCandle[];
|
|
324
|
+
/** Action markers with explicit price bases. */
|
|
325
|
+
action_markers: MobileServerSocialFeedActionMarker[];
|
|
326
|
+
/** Estimated line, if applicable and available. */
|
|
327
|
+
estimated_liquidation_line: MobileServerSocialFeedEstimatedLiquidationLine | null;
|
|
328
|
+
/** Exclusive next-page bound. */
|
|
329
|
+
next_before_ms: number | null;
|
|
330
|
+
/** Observation time. */
|
|
331
|
+
as_of_ms: number;
|
|
332
|
+
/** Overall source quality. */
|
|
333
|
+
data_quality: MobileSocialFeedChartDataQuality;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
/** Read-only watcher observation; account previews are self-reported. */
|
|
337
|
+
export interface MobileServerSocialFeedWatchersResponse {
|
|
338
|
+
/** Distinct active browsing credentials. */
|
|
339
|
+
watcher_count: number;
|
|
340
|
+
/** Deduplicated public account previews. */
|
|
341
|
+
watcher_preview: MobileServerSocialFeedAuthor[];
|
|
342
|
+
/** Observation time. */
|
|
343
|
+
as_of_ms: number;
|
|
344
|
+
}
|
|
@@ -2,7 +2,10 @@ import { Hex } from 'viem';
|
|
|
2
2
|
import { MobileSignedInner } from '../signing/types';
|
|
3
3
|
import {
|
|
4
4
|
MobileServerNotificationPreferences,
|
|
5
|
+
MobileServerSocialFeedChartRange,
|
|
6
|
+
MobileSocialFeedChartInterval,
|
|
5
7
|
MobileSocialFeedMarketCategory,
|
|
8
|
+
MobileSocialFeedPresenceState,
|
|
6
9
|
MobileSocialFeedType,
|
|
7
10
|
} from './serverModelTypes';
|
|
8
11
|
|
|
@@ -92,6 +95,88 @@ export interface MobileServerSocialFeedReadParams {
|
|
|
92
95
|
* Params for each unsigned `public_query`, keyed by request `type`.
|
|
93
96
|
*/
|
|
94
97
|
export interface MobileServerPublicQueryRequestByType {
|
|
98
|
+
/** Selected account's open position candidates. */
|
|
99
|
+
self_feed_positions: {
|
|
100
|
+
/** Full identity. */
|
|
101
|
+
view_as: Hex;
|
|
102
|
+
/** Market filter. */
|
|
103
|
+
product_id?: number;
|
|
104
|
+
/** Bound pagination cursor. */
|
|
105
|
+
cursor?: string;
|
|
106
|
+
/** Page size, 1-50. */
|
|
107
|
+
limit?: number;
|
|
108
|
+
};
|
|
109
|
+
/** Resolve a position command without signing. */
|
|
110
|
+
resolve_feed_position: {
|
|
111
|
+
/** Full identity. */
|
|
112
|
+
view_as: Hex;
|
|
113
|
+
/** Unmodified command text. */
|
|
114
|
+
input: string;
|
|
115
|
+
/** Optional market disambiguation. */
|
|
116
|
+
product_id?: number;
|
|
117
|
+
};
|
|
118
|
+
/** Resolve an order's complete trusted lifecycle segments. */
|
|
119
|
+
resolve_feed_action: {
|
|
120
|
+
/** Order-owning identity. */
|
|
121
|
+
view_as: Hex;
|
|
122
|
+
/** Trading order digest. */
|
|
123
|
+
order_digest: Hex;
|
|
124
|
+
};
|
|
125
|
+
/** Read a drawing within the parent item's visibility. */
|
|
126
|
+
feed_chart_drawing: MobileServerSocialFeedReadParams & {
|
|
127
|
+
/** Parent UUID. */
|
|
128
|
+
item_id: string;
|
|
129
|
+
/** Original session, paired with viewer_token. */
|
|
130
|
+
session_id?: string;
|
|
131
|
+
};
|
|
132
|
+
/** Read or navigate a comment thread. */
|
|
133
|
+
feed_comments: MobileServerSocialFeedReadParams & {
|
|
134
|
+
/** Root UUID. */
|
|
135
|
+
root_item_id: string;
|
|
136
|
+
/** Thread cursor. */
|
|
137
|
+
cursor?: string;
|
|
138
|
+
/** Page size, 1-50. */
|
|
139
|
+
limit?: number;
|
|
140
|
+
/** First-page anchor, mutually exclusive with cursor. */
|
|
141
|
+
anchor_reply_id?: string;
|
|
142
|
+
/** Original reading session. */
|
|
143
|
+
session_id?: string;
|
|
144
|
+
};
|
|
145
|
+
/** Full lifecycle history rather than published feed items alone. */
|
|
146
|
+
position_history: MobileServerSocialFeedReadParams & {
|
|
147
|
+
/** Lifecycle UUID. */
|
|
148
|
+
position_id: string;
|
|
149
|
+
/** Filter to published takes. */
|
|
150
|
+
takes_only?: boolean;
|
|
151
|
+
/** History cursor. */
|
|
152
|
+
cursor?: string;
|
|
153
|
+
/** Page size, 1-50. */
|
|
154
|
+
limit?: number;
|
|
155
|
+
/** Original position-mode session. */
|
|
156
|
+
session_id?: string;
|
|
157
|
+
};
|
|
158
|
+
/** Market candles and independently priced action markers. */
|
|
159
|
+
position_chart: MobileServerSocialFeedReadParams & {
|
|
160
|
+
/** Lifecycle UUID. */
|
|
161
|
+
position_id: string;
|
|
162
|
+
/** Original session, paired with viewer_token. */
|
|
163
|
+
session_id?: string;
|
|
164
|
+
/** Candle interval. */
|
|
165
|
+
interval: MobileSocialFeedChartInterval;
|
|
166
|
+
/** Half-open time interval. */
|
|
167
|
+
range: MobileServerSocialFeedChartRange;
|
|
168
|
+
/** Exclusive next-page bound. */
|
|
169
|
+
before_ms?: number;
|
|
170
|
+
/** Page size, 1-500. */
|
|
171
|
+
limit?: number;
|
|
172
|
+
};
|
|
173
|
+
/** Watcher query; does not register presence. */
|
|
174
|
+
position_watchers: {
|
|
175
|
+
/** Lifecycle UUID. */
|
|
176
|
+
position_id: string;
|
|
177
|
+
/** Relationship perspective only. */
|
|
178
|
+
view_as?: Hex;
|
|
179
|
+
};
|
|
95
180
|
/** Ordered server-owned avatar catalogue. */
|
|
96
181
|
avatar_presets: Record<never, never>;
|
|
97
182
|
/** Public recommendations with optional relationship perspective. */
|
|
@@ -189,12 +274,38 @@ export type MobileServerPublicQueryRequestType =
|
|
|
189
274
|
keyof MobileServerPublicQueryRequestByType;
|
|
190
275
|
|
|
191
276
|
/**
|
|
192
|
-
* Params for each unsigned `public_execute`, keyed by request `type`.
|
|
193
|
-
*
|
|
194
|
-
*
|
|
195
|
-
*
|
|
277
|
+
* Params for each unsigned `public_execute`, keyed by request `type`. No signature, sender, or nonce is sent.
|
|
278
|
+
* `record_feed_views` and `position_presence` are authorized by the original reading session (`session_id`)
|
|
279
|
+
* and browser credential (`viewer_token`), not an Expo push token.
|
|
280
|
+
* For `unregister_expo_token` and `update_preferences`, possession of an active Expo push token authorizes
|
|
281
|
+
* the notification mutation: the backend resolves the token's owning wallet and mutates its state. These
|
|
282
|
+
* notification writes use the backend's last-write-wins commit order, so callers must serialize them.
|
|
196
283
|
*/
|
|
197
284
|
export interface MobileServerPublicExecuteRequestByType {
|
|
285
|
+
/** Explicit exposure report using the original browsing credential. */
|
|
286
|
+
record_feed_views: {
|
|
287
|
+
/** Original reading session. */
|
|
288
|
+
session_id: string;
|
|
289
|
+
/** Fully delivered interactive items. */
|
|
290
|
+
item_ids: string[];
|
|
291
|
+
/** Original credential. */
|
|
292
|
+
viewer_token: string;
|
|
293
|
+
};
|
|
294
|
+
/** Per-page visitor lease; no wallet signature. */
|
|
295
|
+
position_presence: {
|
|
296
|
+
/** Lifecycle UUID. */
|
|
297
|
+
position_id: string;
|
|
298
|
+
/** Original reading session. */
|
|
299
|
+
session_id: string;
|
|
300
|
+
/** Page-scoped UUID. */
|
|
301
|
+
view_session_id: string;
|
|
302
|
+
/** Lease lifecycle state. */
|
|
303
|
+
state: MobileSocialFeedPresenceState;
|
|
304
|
+
/** Original browsing credential. */
|
|
305
|
+
viewer_token: string;
|
|
306
|
+
/** Omission preserves the display account; null clears it. */
|
|
307
|
+
watcher_subaccount?: Hex | null;
|
|
308
|
+
};
|
|
198
309
|
unregister_expo_token: { expo_token: string };
|
|
199
310
|
update_preferences: {
|
|
200
311
|
expo_token: string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MobileClient-aDxiM_Kf.cjs","names":["mapMobileAvatarPreset","subaccountToHex","mapMobileProfilesIncludeToServer","mapMobilePublicProfile","mapMobileProfileSearchParamsToServer","mapMobileProfileSearchPage","mapMobileFollowListParamsToServer","mapMobileFollowListPage","mapMobileFeedPage","mapMobileSocialFeedListParamsToServer","mapMobileSocialFeedReadParamsToServer","mapMobileSocialFeedRankedPage","mapMobileSocialFeedTopTradersPage","mapMobileSocialFeedPage","mapMobileSocialFeedItemResponse","mapMobileSocialFeedUpdates","mapMobileNotificationPreferences","mapMobileRegisteredWallet","mapMobileNotificationPreferencesToServer","mapMobileAvatarUpload","mapMobileAvatarSelectionToServer","mapMobileFollowMutationResult","mapMobileFollowBatchResult","WalletNotProvidedError","buildSignedMobileRequest","isMobileServerFailureResponse","MobileServerFailureError","isMobileServerSuccessResponse"],"sources":["../src/MobileClient.ts"],"sourcesContent":["import {\n getNadoClientTypeHeaders,\n subaccountToHex,\n WalletClientWithAccount,\n WalletNotProvidedError,\n} from '@nadohq/shared';\nimport axios, { AxiosInstance, AxiosResponse } from 'axios';\nimport {\n mapMobileAvatarPreset,\n mapMobileAvatarSelectionToServer,\n mapMobileAvatarUpload,\n mapMobileFeedPage,\n mapMobileFollowBatchResult,\n mapMobileFollowListPage,\n mapMobileFollowListParamsToServer,\n mapMobileFollowMutationResult,\n mapMobileNotificationPreferences,\n mapMobileNotificationPreferencesToServer,\n mapMobileProfileSearchPage,\n mapMobileProfileSearchParamsToServer,\n mapMobileProfilesIncludeToServer,\n mapMobilePublicProfile,\n mapMobileRegisteredWallet,\n mapMobileSocialFeedItemResponse,\n mapMobileSocialFeedListParamsToServer,\n mapMobileSocialFeedPage,\n mapMobileSocialFeedRankedPage,\n mapMobileSocialFeedReadParamsToServer,\n mapMobileSocialFeedTopTradersPage,\n mapMobileSocialFeedUpdates,\n} from './dataMappers';\nimport {\n buildSignedMobileRequest,\n MobileSignedInner,\n MobileSignedInnerByType,\n MobileSignedInnerParams,\n MobileSignedRequest,\n} from './signing';\nimport {\n GetMobileFeedItemParams,\n GetMobileFeedParams,\n GetMobileFeedUpdatesParams,\n GetMobileFollowersParams,\n GetMobileFollowingParams,\n GetMobileForYouFeedParams,\n GetMobileFriendsFeedParams,\n GetMobileMarketFeedParams,\n GetMobileNotificationPreferencesParams,\n GetMobilePositionFeedParams,\n GetMobileProfileFeedParams,\n GetMobileProfilesParams,\n GetMobileRegisteredWalletParams,\n GetMobileTopTradersFeedParams,\n GetMobileUsernameAvailabilityParams,\n MobileAvatarPreset,\n MobileAvatarUpload,\n MobileCreateAvatarUploadParams,\n MobileFeedPage,\n MobileFollowBatchResultItem,\n MobileFollowListPage,\n MobileFollowMutationResult,\n MobileNotificationPreferences,\n MobileProfileSearchPage,\n MobilePublicProfile,\n MobileRegisteredWallet,\n MobileRegisterExpoTokenParams,\n MobileSetAvatarParams,\n MobileSetBioParams,\n MobileSetFollowBatchParams,\n MobileSetFollowParams,\n MobileSetPrivateModeParams,\n MobileSetUsernameParams,\n MobileSignedRequestParams,\n MobileSocialFeedItemResponse,\n MobileSocialFeedPage,\n MobileSocialFeedRankedPage,\n MobileSocialFeedTopTradersPage,\n MobileSocialFeedUpdates,\n MobileUnregisterExpoTokenParams,\n MobileUpdateNotificationPreferencesParams,\n MobileUsernameAvailability,\n SearchMobileProfilesParams,\n} from './types/clientTypes';\nimport { MobileServerFailureError } from './types/MobileServerFailureError';\nimport { MobileServerSuccessResponse } from './types/serverBaseTypes';\nimport {\n MobileServerExecuteResult,\n MobileServerExecuteSuccessResponse,\n MobileServerPublicExecuteRequest,\n} from './types/serverExecuteTypes';\nimport {\n MobileServerPublicQueryRequest,\n MobileServerPublicQuerySuccessResponse,\n} from './types/serverQueryTypes';\nimport {\n MobileServerExecuteRequestType,\n MobileServerPublicQueryRequestByType,\n MobileServerPublicQueryRequestType,\n} from './types/serverRequestTypes';\nimport {\n isMobileServerFailureResponse,\n isMobileServerSuccessResponse,\n} from './utils/serverResponseGuards';\n\n/**\n * Options for constructing a {@link MobileClient}.\n */\nexport interface MobileClientOpts {\n /**\n * Base URL of the mobile service API, e.g. {@link MOBILE_CLIENT_ENDPOINTS}.\n */\n url: string;\n /**\n * Wallet client used to sign requests.\n */\n walletClient?: WalletClientWithAccount;\n /**\n * If provided, this signer is used instead of `walletClient` for all signed requests.\n */\n linkedSignerWalletClient?: WalletClientWithAccount;\n /**\n * If provided, identifies the calling client, sent as a header with every request.\n */\n clientType?: string;\n}\n\n/**\n * Client for the Nado mobile service API: usernames, bios, avatars, public profile lookups, the global\n * trade feed, session-based social feeds, the follower/following graph, privacy settings, and push\n * notification device/preference management.\n */\nexport class MobileClient {\n readonly opts: MobileClientOpts;\n readonly axiosInstance: AxiosInstance;\n\n constructor(opts: MobileClientOpts) {\n this.opts = opts;\n this.axiosInstance = axios.create({\n withCredentials: true,\n // We have custom logic to validate response status and create an appropriate error\n validateStatus: () => true,\n headers: getNadoClientTypeHeaders(opts.clientType),\n });\n }\n\n /**\n * Sets the linked signer for requests\n *\n * @param linkedSignerWalletClient The linkedSigner to use for all signatures. Set to null to revert to the chain signer\n */\n public setLinkedSigner(\n linkedSignerWalletClient: WalletClientWithAccount | null,\n ) {\n this.opts.linkedSignerWalletClient = linkedSignerWalletClient ?? undefined;\n }\n\n /*\n Public queries\n */\n\n /**\n * Returns the current server-owned avatar catalogue in display order.\n *\n * @throws {MobileServerFailureError} With `SERVICE_UNAVAILABLE` when avatar storage is not configured.\n */\n async getAvatarPresets(): Promise<MobileAvatarPreset[]> {\n const body: MobileServerPublicQueryRequest<'avatar_presets'> = {\n type: 'avatar_presets',\n };\n const data = await this.publicQuery(body);\n return data.presets.map(mapMobileAvatarPreset);\n }\n\n /**\n * Checks whether a username derived from the given display name is available to claim.\n */\n async getUsernameAvailability(\n params: GetMobileUsernameAvailabilityParams,\n ): Promise<MobileUsernameAvailability> {\n const body: MobileServerPublicQueryRequest<'username_availability'> = {\n type: 'username_availability',\n display_name: params.displayName,\n };\n const data = await this.publicQuery(body);\n return { username: data.username, available: data.available };\n }\n\n /**\n * Looks up public profiles, optionally with follower totals and a follow summary. Returns one profile per\n * requested subaccount, in the requested order, so callers can correlate positionally. Every non-isolated\n * subaccount resolves, with `username` and `displayName` `null` until a username is claimed. Private Mode\n * does not hide the profile itself, only the account's activity.\n *\n * This is the only profile route, so use it for a single subaccount too. It is unsigned, which means\n * `include.followSummary.viewAs` is an unauthenticated claim.\n *\n * @throws {MobileServerFailureError} With error code `INVALID_PROFILES_REQUEST` if `subaccounts` is empty,\n * holds duplicates, or exceeds `MOBILE_PROFILES_MAX_BATCH_SIZE` (25), or `PROFILE_NOT_FOUND` if any\n * requested subaccount — or the follow summary's `viewAs` — is in the engine-created isolated namespace.\n * One isolated member fails the whole batch rather than being omitted.\n */\n async getProfiles(\n params: GetMobileProfilesParams,\n ): Promise<MobilePublicProfile[]> {\n const body: MobileServerPublicQueryRequest<'profiles'> = {\n type: 'profiles',\n subaccounts: params.subaccounts.map(subaccountToHex),\n include: params.include\n ? mapMobileProfilesIncludeToServer(params.include)\n : undefined,\n };\n const data = await this.publicQuery(body);\n return data.profiles.map(mapMobilePublicProfile);\n }\n\n /**\n * Searches claimed profiles by the start of their username, in ascending username order with an exact\n * match first. Only current claimed identities match: an unnamed profile never does, and Private Mode does\n * not hide one. Takes the same `include` as {@link MobileClient.getProfiles}, so a page can carry follower\n * totals and a follow summary without a second request; as there, `include.followSummary.viewAs` is an\n * unauthenticated claim on an unsigned route.\n *\n * Pagination is live rather than snapshot, so deduplicate matches by subaccount across pages. A cursor is\n * bound to the query alone, so `include` and `limit` may change between pages.\n *\n * @throws {MobileServerFailureError} With error code `INVALID_PROFILE_SEARCH_REQUEST` if `query` is outside\n * the username alphabet or length or `limit` is out of range (1-50, or 1-25 with an include),\n * `INVALID_PROFILE_SEARCH_CURSOR` if the cursor is malformed or was issued for a different query (discard\n * it and restart from the first page), or `PROFILE_NOT_FOUND` if `include.followSummary.viewAs` is in the\n * engine-created isolated namespace.\n */\n async searchProfiles(\n params: SearchMobileProfilesParams,\n ): Promise<MobileProfileSearchPage> {\n const body: MobileServerPublicQueryRequest<'search_profiles'> = {\n type: 'search_profiles',\n ...mapMobileProfileSearchParamsToServer(params),\n };\n const data = await this.publicQuery(body);\n return mapMobileProfileSearchPage(data);\n }\n\n /**\n * Fetches a page of the accounts that follow the given Profile.\n *\n * Ordering depends on `viewAs`. With it, accounts the Viewer already follows come first, unfamiliar\n * accounts second, and every row carries an `isFollowing`. Without it, the page is ordered by the listed\n * relationship alone and no row carries an `isFollowing`. In both cases the newest listed relationship\n * comes first within a group, with a bytes32 tie-break. The grouping is evaluated per request against the\n * live graph, so following an account from inside the list moves it between groups on the next page —\n * deduplicate by subaccount and do not re-sort locally.\n *\n * @throws {MobileServerFailureError} With error code `PROFILE_NOT_FOUND` if the viewed Profile or `viewAs`\n * is isolated, `INVALID_FOLLOW_CURSOR` if the cursor is malformed or was issued for a different `viewAs`,\n * Profile, or list direction (discard it and restart from the first page), or `INVALID_FOLLOW_LIMIT` if\n * `limit` is outside 1–50.\n */\n async getFollowers(\n params: GetMobileFollowersParams,\n ): Promise<MobileFollowListPage> {\n const body: MobileServerPublicQueryRequest<'followers'> = {\n type: 'followers',\n ...mapMobileFollowListParamsToServer(params),\n };\n const data = await this.publicQuery(body);\n return mapMobileFollowListPage(data);\n }\n\n /**\n * Fetches a page of the accounts the given Profile follows. Ordering, cursor rules, and errors match\n * {@link MobileClient.getFollowers}. When `viewAs` reads its own Following list every row is familiar, so\n * every `isFollowing` is `true`.\n */\n async getFollowing(\n params: GetMobileFollowingParams,\n ): Promise<MobileFollowListPage> {\n const body: MobileServerPublicQueryRequest<'following'> = {\n type: 'following',\n ...mapMobileFollowListParamsToServer(params),\n };\n const data = await this.publicQuery(body);\n return mapMobileFollowListPage(data);\n }\n\n /**\n * Fetches a page of the global trade feed: public perpetual trades, newest first, optionally filtered by a\n * whole-dollar minimum notional (omitted means unfiltered). Trades by subaccounts that have not claimed a\n * username are included with `null` name fields; only private accounts are filtered out. The feed is\n * best-effort rather than authoritative history, and pagination is live (not snapshot), so deduplicate pages\n * by {@link MobileFeedTrade.orderDigest}.\n *\n * @throws {MobileServerFailureError} With error code `INVALID_FEED_FILTER` if `minimumNotional` or\n * `limit` is outside its allowed domain (fix the request; do not retry unchanged), or\n * `INVALID_FEED_CURSOR` if the cursor is malformed or was issued for a different `minimumNotional`\n * (discard the cursor and restart from the first page).\n */\n async getFeed(params: GetMobileFeedParams = {}): Promise<MobileFeedPage> {\n const body: MobileServerPublicQueryRequest<'feed'> = {\n type: 'feed',\n minimum_notional: params.minimumNotional,\n limit: params.limit,\n cursor: params.cursor,\n };\n const data = await this.publicQuery(body);\n return mapMobileFeedPage(data);\n }\n\n /**\n * Fetches chronological For You recommendations with server-side author/thread constraints.\n * Always public, with optional viewAs for relationship state. Preserve the session, viewAs, filters, and limit\n * when paging, including through empty pages with a nextCursor. A 6312 error requires a refresh.\n * @param params - Filters, pagination, optional viewing account, and browser credential; no signing identity.\n * @returns A fixed-session page with its ranking version and new-content watermark.\n * @throws {MobileServerFailureError} On invalid parameters, session mismatch/expiry, or unavailable data.\n */\n async getForYouFeed(\n params: GetMobileForYouFeedParams = {},\n ): Promise<MobileSocialFeedRankedPage> {\n const body: MobileServerPublicQueryRequest<'for_you_feed'> = {\n type: 'for_you_feed',\n market_category: params.marketCategory,\n ...mapMobileSocialFeedListParamsToServer(params),\n ...mapMobileSocialFeedReadParamsToServer(params),\n };\n const data = await this.publicQuery(body);\n return mapMobileSocialFeedRankedPage(data);\n }\n\n /**\n * Fetches chronological content by qualified Top Traders, with official account PnL badges.\n * Always public; neither a wallet nor one-click trading setup is required.\n * @param params - Filters, pagination, optional viewing account, and browser credential.\n * @returns A page with its qualification cohort; an unavailable cohort fails instead of returning an empty ranking.\n * @throws {MobileServerFailureError} On request/session errors or unavailable cohort data.\n */\n async getTopTradersFeed(\n params: GetMobileTopTradersFeedParams = {},\n ): Promise<MobileSocialFeedTopTradersPage> {\n const body: MobileServerPublicQueryRequest<'top_traders_feed'> = {\n type: 'top_traders_feed',\n market_category: params.marketCategory,\n ...mapMobileSocialFeedListParamsToServer(params),\n ...mapMobileSocialFeedReadParamsToServer(params),\n };\n const data = await this.publicQuery(body);\n return mapMobileSocialFeedTopTradersPage(data);\n }\n\n /**\n * Fetches public content by authors followed by viewAs, without a signature. One-way following is sufficient.\n * @param params - Required viewing account on every request, filters, pagination, and browser credential.\n * @returns A chronological Friends page and reading session.\n * @throws {MobileServerFailureError} On invalid viewing account, session errors, or feed query failure.\n */\n async getFriendsFeed(\n params: GetMobileFriendsFeedParams,\n ): Promise<MobileSocialFeedRankedPage> {\n const body: MobileServerPublicQueryRequest<'friends_feed'> = {\n type: 'friends_feed',\n market_category: params.marketCategory,\n ...mapMobileSocialFeedListParamsToServer(params),\n view_as: subaccountToHex(params.viewAs),\n viewer_token: params.viewerToken,\n };\n const data = await this.publicQuery(body);\n return mapMobileSocialFeedRankedPage(data);\n }\n\n /**\n * Fetches an author's content visible to viewAs, including that account's own hidden content.\n * @param params - Target identity, filters, pagination, and optional public viewing account.\n * @returns An author page without main-feed ranking or cohort fields.\n * @throws {MobileServerFailureError} On invalid parameters, session errors, or inaccessible content.\n */\n async getProfileFeed(\n params: GetMobileProfileFeedParams,\n ): Promise<MobileSocialFeedPage> {\n const body: MobileServerPublicQueryRequest<'profile_feed'> = {\n type: 'profile_feed',\n subaccount: subaccountToHex(params.subaccount),\n market_category: params.marketCategory,\n ...mapMobileSocialFeedListParamsToServer(params),\n ...mapMobileSocialFeedReadParamsToServer(params),\n };\n const data = await this.publicQuery(body);\n return mapMobileSocialFeedPage(data);\n }\n\n /**\n * Fetches published content for one market.\n * @param params - Product ID, content/size filters, pagination, and public viewing account.\n * @returns A market page without main-feed ranking fields.\n * @throws {MobileServerFailureError} On an unknown market, session errors, or unavailable data.\n */\n async getMarketFeed(\n params: GetMobileMarketFeedParams,\n ): Promise<MobileSocialFeedPage> {\n const body: MobileServerPublicQueryRequest<'market_feed'> = {\n type: 'market_feed',\n product_id: params.productId,\n ...mapMobileSocialFeedListParamsToServer(params),\n ...mapMobileSocialFeedReadParamsToServer(params),\n };\n const data = await this.publicQuery(body);\n return mapMobileSocialFeedPage(data);\n }\n\n /**\n * Fetches already published content for a position lifecycle. This is not full position history\n * and includes hidden content owned by viewAs under account_view. It does not recreate suppressed activity.\n * @param params - Position UUID, filters, pagination, and public viewing account.\n * @returns A fixed-session position feed page.\n * @throws {MobileServerFailureError} On inaccessible content, session errors, or unavailable data.\n */\n async getPositionFeed(\n params: GetMobilePositionFeedParams,\n ): Promise<MobileSocialFeedPage> {\n const body: MobileServerPublicQueryRequest<'position_feed'> = {\n type: 'position_feed',\n position_id: params.positionId,\n ...mapMobileSocialFeedListParamsToServer(params),\n ...mapMobileSocialFeedReadParamsToServer(params),\n };\n const data = await this.publicQuery(body);\n return mapMobileSocialFeedPage(data);\n }\n\n /**\n * Reads one item visible to viewAs, including that account's own hidden content.\n * Creates an item session directly when sessionId is omitted.\n * @param params - Item UUID, preview limit, and optional existing session/read identity.\n * @returns The complete item and authorized reading session.\n * @throws {MobileServerFailureError} On inaccessible content or session mismatch/expiry.\n */\n async getFeedItem(\n params: GetMobileFeedItemParams,\n ): Promise<MobileSocialFeedItemResponse> {\n const body: MobileServerPublicQueryRequest<'feed_item'> = {\n type: 'feed_item',\n item_id: params.itemId,\n comment_preview_limit: params.commentPreviewLimit,\n session_id: params.sessionId,\n ...mapMobileSocialFeedReadParamsToServer(params),\n };\n const data = await this.publicQuery(body);\n return mapMobileSocialFeedItemResponse(data);\n }\n\n /**\n * Polls authorized visible items and positions without inserting or reordering list members.\n * Increment requestSeq across the entire session, including viewport changes; never reset it for a new viewport.\n * Accept only the current session and viewportRevision's latest requestSeq; discard stale patches and cursors together.\n * Updates currently always return reset=true. Apply current author details, follow state, and badges even if the item version is unchanged.\n * Null patches clear values;\n * omitted fields leave them unchanged. Stop polling off-screen and refresh on error 6312.\n * @param params - Session, visible IDs, update baseline, sequence, and matching read identity.\n * @returns Item/position patches, revoked targets, and a new-content hint.\n * @throws {MobileServerFailureError} On invalid or unauthorized targets, session expiry, or unavailable data.\n */\n async getFeedUpdates(\n params: GetMobileFeedUpdatesParams,\n ): Promise<MobileSocialFeedUpdates> {\n const body: MobileServerPublicQueryRequest<'feed_updates'> = {\n type: 'feed_updates',\n session_id: params.sessionId,\n visible_item_ids: params.visibleItemIds,\n visible_position_ids: params.visiblePositionIds,\n update_cursor: params.updateCursor,\n viewport_revision: params.viewportRevision,\n request_seq: params.requestSeq,\n viewer_token: params.viewerToken,\n };\n const data = await this.publicQuery(body);\n return mapMobileSocialFeedUpdates(data);\n }\n\n /**\n * Fetches the push notification preferences of the wallet that owns the given Expo push token. Unsigned —\n * the token identifies the wallet on its own. Falls back to the backend's defaults if the wallet has never\n * updated its preferences.\n *\n * @throws {MobileServerFailureError} With error code `INVALID_EXPO_TOKEN` if the token is malformed, or is\n * not currently registered to a wallet.\n */\n async getNotificationPreferences(\n params: GetMobileNotificationPreferencesParams,\n ): Promise<MobileNotificationPreferences> {\n const body: MobileServerPublicQueryRequest<'notification_preferences'> = {\n type: 'notification_preferences',\n expo_token: params.expoToken,\n };\n const data = await this.publicQuery(body);\n return mapMobileNotificationPreferences(data.preferences);\n }\n\n /**\n * Resolves the wallet that an Expo push token is currently registered to, along with the redacted metadata\n * of the device that registered it. Unsigned — the token identifies the wallet on its own. Use it to check\n * whether a locally held token is still active and which wallet currently owns it, since registering the\n * same token under another wallet transfers ownership.\n *\n * @throws {MobileServerFailureError} With error code `INVALID_EXPO_TOKEN` if the token is malformed, or is\n * not currently registered to a wallet — including a token that was unregistered. The backend does not\n * distinguish those cases.\n */\n async getRegisteredWallet(\n params: GetMobileRegisteredWalletParams,\n ): Promise<MobileRegisteredWallet> {\n const body: MobileServerPublicQueryRequest<'registered_wallet'> = {\n type: 'registered_wallet',\n expo_token: params.expoToken,\n };\n const data = await this.publicQuery(body);\n return mapMobileRegisteredWallet(data);\n }\n\n /*\n Public executes\n */\n\n /**\n * Unregisters an Expo push token, stopping delivery to that device. Unsigned, so it still works at logout\n * when a wallet signature may no longer be obtainable. Idempotent: unregistering an inactive or unknown\n * well-formed token succeeds.\n *\n * A registration that commits after this call re-activates the token, so stop or await any in-flight\n * {@link MobileClient.registerExpoToken} before unregistering.\n *\n * @throws {MobileServerFailureError} With error code `INVALID_EXPO_TOKEN` if the token is malformed.\n */\n async unregisterExpoToken(\n params: MobileUnregisterExpoTokenParams,\n ): Promise<MobileServerSuccessResponse> {\n const body: MobileServerPublicExecuteRequest<'unregister_expo_token'> = {\n type: 'unregister_expo_token',\n expo_token: params.expoToken,\n };\n return this.publicExecute(body);\n }\n\n /**\n * Replaces the push notification preferences of the wallet that owns the given Expo push token. Possession\n * of an active token is the credential rather than a signature, so anyone holding the token can overwrite\n * that wallet's preferences. The backend requires `schemaVersion` of 1, exactly one entry per known\n * category, and empty `scopes` on every entry.\n *\n * Writes are last-write-wins on commit order rather than ordered by a client nonce, so callers must\n * serialize their own preference writes.\n *\n * @throws {MobileServerFailureError} With error code `INVALID_PREFERENCES` if those rules are violated, or\n * `INVALID_EXPO_TOKEN` if the token is malformed or is not currently registered to a wallet.\n */\n async updateNotificationPreferences(\n params: MobileUpdateNotificationPreferencesParams,\n ): Promise<MobileServerSuccessResponse> {\n const body: MobileServerPublicExecuteRequest<'update_preferences'> = {\n type: 'update_preferences',\n expo_token: params.expoToken,\n preferences: mapMobileNotificationPreferencesToServer(params.preferences),\n };\n return this.publicExecute(body);\n }\n\n /*\n Signed executes\n */\n\n /**\n * Updates the biography, or clears it when the text is whitespace-only.\n *\n * Serialize this with {@link MobileClient.setAvatar}, {@link MobileClient.setUsername} and\n * {@link MobileClient.setPrivateMode} for the same subaccount: all share the identity update nonce.\n *\n * @throws {MobileServerFailureError} With `INVALID_BIO` for exceeding `MOBILE_BIO_MAX_LENGTH` or null\n * characters, `INVALID_IDENTITY_TARGET` for an isolated subaccount, or `STALE_IDENTITY_UPDATE` when a\n * later write has committed (re-read the profile before retrying).\n */\n async setBio(\n params: MobileSetBioParams,\n ): Promise<MobileServerSuccessResponse> {\n const signedRequest = await this.getSignedRequest('set_bio', params, {\n bio: params.bio,\n });\n return this.execute(signedRequest);\n }\n\n /**\n * Creates a short-lived upload grant. The caller uploads an image meeting {@link MobileAvatarUpload}'s requirements;\n * file access and transport remain platform-specific. This does not change the saved avatar.\n *\n * @throws {MobileServerFailureError} With `INVALID_AVATAR` for a zero or oversized upload,\n * `INVALID_IDENTITY_TARGET` for an isolated subaccount, or `SERVICE_UNAVAILABLE` when storage is unavailable.\n */\n async createAvatarUpload(\n params: MobileCreateAvatarUploadParams,\n ): Promise<MobileAvatarUpload> {\n const signedRequest = await this.getSignedRequest(\n 'create_avatar_upload',\n params,\n { content_length: params.contentLength },\n );\n const data = await this.execute(signedRequest);\n return mapMobileAvatarUpload(data);\n }\n\n /**\n * Publishes a preset/staged upload, or clears the saved avatar when avatar is null.\n * Uploaded JPEG/PNG images must be square, at most 4096 × 4096 pixels, and within\n * `MOBILE_AVATAR_MAX_UPLOAD_BYTES`. A successful PUT can still fail this publication check.\n *\n * Serialize identity writes for the same subaccount; see {@link MobileClient.setBio}.\n *\n * @throws {MobileServerFailureError} With `INVALID_AVATAR` for an invalid preset, staging key, or image,\n * `INVALID_IDENTITY_TARGET` for an isolated subaccount, `SERVICE_UNAVAILABLE` when storage is unavailable,\n * or `STALE_IDENTITY_UPDATE` when a later write has committed (re-read the profile before retrying).\n */\n async setAvatar(\n params: MobileSetAvatarParams,\n ): Promise<MobileServerSuccessResponse> {\n const signedRequest = await this.getSignedRequest('set_avatar', params, {\n avatar: mapMobileAvatarSelectionToServer(params.avatar),\n });\n return this.execute(signedRequest);\n }\n\n /**\n * Sets a subaccount's username, derived from the given display name. Upserts: the same call claims a first\n * username and renames an existing one, so callers never need to read the current identity first.\n *\n * Serialize identity writes for the same subaccount; see {@link MobileClient.setBio}.\n *\n * @throws {MobileServerFailureError} With error code `INVALID_DISPLAY_NAME` if the display name violates\n * `MOBILE_DISPLAY_NAME_PATTERN`, `USERNAME_UNAVAILABLE` if the derived username is reserved or already\n * taken by another subaccount, `INVALID_IDENTITY_TARGET` if the sender is in the engine-created isolated\n * namespace, or `STALE_IDENTITY_UPDATE` if another identity write for this subaccount committed with a\n * later nonce (re-read the identity before retrying).\n */\n async setUsername(\n params: MobileSetUsernameParams,\n ): Promise<MobileServerSuccessResponse> {\n const signedRequest = await this.getSignedRequest('set_username', params, {\n display_name: params.displayName,\n });\n return this.execute(signedRequest);\n }\n\n /**\n * Sets whether a subaccount's profile is private.\n * Serialize identity writes for the same subaccount; see {@link MobileClient.setBio}.\n */\n async setPrivateMode(\n params: MobileSetPrivateModeParams,\n ): Promise<MobileServerSuccessResponse> {\n const signedRequest = await this.getSignedRequest(\n 'set_private_mode',\n params,\n { private_mode: params.privateMode },\n );\n return this.execute(signedRequest);\n }\n\n /**\n * Registers an Expo push token for the wallet, transferring active ownership of the token if another\n * wallet had registered it. Idempotent per `(wallet, token)`.\n *\n * @throws {MobileServerFailureError} With error code `INVALID_EXPO_TOKEN` if the token is not a valid Expo\n * push token, or `INVALID_DEVICE_METADATA` if `locale` (max 35 chars) or `appVersion` (max 64 chars) is\n * too long.\n */\n async registerExpoToken(\n params: MobileRegisterExpoTokenParams,\n ): Promise<MobileServerSuccessResponse> {\n const signedRequest = await this.getSignedRequest(\n 'register_expo_token',\n params,\n {\n expo_token: params.expoToken,\n platform: params.platform,\n locale: params.locale ?? null,\n app_version: params.appVersion ?? null,\n },\n );\n return this.execute(signedRequest);\n }\n\n /**\n * Sets whether the signing subaccount follows a Profile. Both directions are idempotent: following again\n * keeps the original relationship creation time, so it does not move the account in recency order, and\n * unfollowing a relationship that does not exist succeeds with `isFollowing: false`. Unfollowing deletes\n * the relationship rather than deactivating it, so a later follow gets a new creation time and moves the\n * account to the front of recency order.\n *\n * Only `isFollowing: true` is checked against the canonical Query DB subaccount index, so unfollowing still\n * works while that index lags.\n *\n * @throws {MobileServerFailureError} With error code `INVALID_FOLLOW_TARGET` if the target is the sender or\n * either party is isolated, `FOLLOWER_NOT_ELIGIBLE` if the sender is not yet in the canonical Query DB\n * subaccount index, or `FOLLOWING_NOT_FOUND` if the target is not. Both index errors are transient for an\n * account that is being recorded, so they are retryable after catch-up — unlike `INVALID_FOLLOW_TARGET`.\n */\n async setFollow(\n params: MobileSetFollowParams,\n ): Promise<MobileFollowMutationResult> {\n const signedRequest = await this.getSignedRequest('set_follow', params, {\n subaccount: subaccountToHex(params.target),\n is_following: params.isFollowing,\n });\n const data = await this.execute(signedRequest);\n return mapMobileFollowMutationResult(data);\n }\n\n /**\n * Sets whether the signing subaccount follows each of up to `MOBILE_FOLLOW_BATCH_MAX_SIZE` (25) Profiles in\n * one signed request, which costs far less of the shared IP rate limit than one {@link MobileClient.setFollow}\n * per target. The server validates the whole list before writing and commits every target in one database\n * transaction, so the batch either fully applies or changes nothing. Each target has the same idempotent\n * semantics as `setFollow`, so resending a batch is safe.\n *\n * Targets are lowercased before signing but not deduplicated, and two spellings of one subaccount are a\n * duplicate. Longer lists must be split by the caller; each request commits on its own, so earlier chunks\n * stay applied when a later one fails.\n *\n * @returns One result per target, in request order, carrying each target's post-commit follower count.\n * @throws {MobileServerFailureError} With error code `INVALID_FOLLOW_BATCH` if `targets` is empty, holds\n * duplicates, or exceeds the maximum, or `INVALID_FOLLOW_TARGET` if any target is the sender or either party\n * is isolated. Either rejects the whole batch before any write, so do not retry it unchanged.\n */\n async setFollowBatch(\n params: MobileSetFollowBatchParams,\n ): Promise<MobileFollowBatchResultItem[]> {\n const signedRequest = await this.getSignedRequest(\n 'set_follow_batch',\n params,\n {\n subaccounts: params.targets.map(subaccountToHex),\n is_following: params.isFollowing,\n },\n );\n const data = await this.execute(signedRequest);\n return mapMobileFollowBatchResult(data);\n }\n\n /*\n Base Fns\n */\n\n // Returns the request narrowed to `type` so `execute` can infer its response from the request it is given,\n // instead of being told the type a second time at the call site.\n protected async getSignedRequest<T extends MobileSignedInner['type']>(\n type: T,\n params: MobileSignedRequestParams,\n innerParams: MobileSignedInnerParams<T>,\n ): Promise<MobileSignedRequest<MobileSignedInnerByType<T>>> {\n // Use the linked signer if provided, otherwise use the default signer provided to the client\n const walletClient =\n this.opts.linkedSignerWalletClient ?? this.opts.walletClient;\n\n if (walletClient == null) {\n throw new WalletNotProvidedError();\n }\n\n const inner = {\n type,\n ...innerParams,\n } as unknown as MobileSignedInnerByType<T>;\n return buildSignedMobileRequest({ ...params, walletClient, inner });\n }\n\n // Spelled out as an intersection rather than `MobileServerPublicQueryRequest<T>`: the latter is an indexed\n // access on a mapped type, which is not an inference site, so `T` would always widen to the full union.\n protected async publicQuery<T extends MobileServerPublicQueryRequestType>(\n body: { type: T } & MobileServerPublicQueryRequestByType[T],\n ): Promise<MobileServerPublicQuerySuccessResponse<T>> {\n const response = await this.axiosInstance.post<unknown>(\n `${this.opts.url}/public_query`,\n body,\n );\n\n this.checkResponseStatus(response);\n this.checkServerStatus(response);\n\n // checkServerStatus throws on failure responses so the cast to the success response is acceptable here\n return response.data as MobileServerPublicQuerySuccessResponse<T>;\n }\n\n protected async publicExecute(\n body: MobileServerPublicExecuteRequest,\n ): Promise<MobileServerSuccessResponse> {\n const response = await this.axiosInstance.post<MobileServerExecuteResult>(\n `${this.opts.url}/public_execute`,\n body,\n );\n\n this.checkResponseStatus(response);\n this.checkServerStatus(response);\n\n // checkServerStatus catches the failure result and throws the error, so the cast to the success response is acceptable here\n return response.data as MobileServerSuccessResponse;\n }\n\n // `T` is inferred from the body's `type` rather than declared by the caller, for the same reason\n // `publicQuery` spells its body out as an intersection: an indexed access is not an inference site.\n protected async execute<T extends MobileServerExecuteRequestType>(\n body: MobileSignedRequest & { type: T },\n ): Promise<MobileServerExecuteSuccessResponse<T>> {\n const response = await this.axiosInstance.post<MobileServerExecuteResult>(\n `${this.opts.url}/execute`,\n body,\n );\n\n this.checkResponseStatus(response);\n this.checkServerStatus(response);\n\n // checkServerStatus catches the failure result and throws the error, so the cast to the success response is acceptable here\n return response.data as MobileServerExecuteSuccessResponse<T>;\n }\n\n /**\n * Validates the HTTP status before interpreting the body. Unlike the engine, the mobile backend returns\n * failure envelopes with non-2xx statuses (e.g. 404 for `PROFILE_NOT_FOUND`), so a non-2xx response with a\n * failure envelope still throws the typed error; anything else is a transport-level error.\n */\n private checkResponseStatus(response: AxiosResponse<unknown>) {\n if (response.status >= 200 && response.status < 300) {\n return;\n }\n if (isMobileServerFailureResponse(response.data)) {\n throw new MobileServerFailureError(response.data, response.status);\n }\n throw new Error(\n `Unexpected response from mobile service: ${response.status} ${response.statusText}. Data: ${JSON.stringify(response.data)}`,\n );\n }\n\n private checkServerStatus(response: AxiosResponse<unknown>) {\n const { data } = response;\n\n if (isMobileServerFailureResponse(data)) {\n throw new MobileServerFailureError(data, response.status);\n }\n if (!isMobileServerSuccessResponse(data)) {\n throw new Error(\n `Unexpected response from mobile service: missing success envelope. Data: ${JSON.stringify(data)}`,\n );\n }\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmIA,IAAa,eAAb,MAA0B;CAIxB,YAAY,MAAwB;EAClC,KAAK,OAAO;EACZ,KAAK,gBAAgB,MAAA,QAAM,OAAO;GAChC,iBAAiB;GAEjB,sBAAsB;GACtB,UAAA,GAAA,eAAA,0BAAkC,KAAK,UAAU;EACnD,CAAC;CACH;;;;;;CAOA,gBACE,0BACA;EACA,KAAK,KAAK,2BAA2B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AAG,KAAK,KAAK,IAAI,WACjB,IACF;EAEA,KAAK,oBAAoB,QAAQ;EACjC,KAAK,kBAAkB,QAAQ;EAG/B,OAAO,SAAS;CAClB;;;;;;CAOA,oBAA4B,UAAkC;EAC5D,IAAI,SAAS,UAAU,OAAO,SAAS,SAAS,KAC9C;EAEF,IAAIC,mCAAAA,8BAA8B,SAAS,IAAI,GAC7C,MAAM,IAAIC,uCAAAA,yBAAyB,SAAS,MAAM,SAAS,MAAM;EAEnE,MAAM,IAAI,MACR,4CAA4C,SAAS,OAAO,GAAG,SAAS,WAAW,UAAU,KAAK,UAAU,SAAS,IAAI,GAC3H;CACF;CAEA,kBAA0B,UAAkC;EAC1D,MAAM,EAAE,SAAS;EAEjB,IAAID,mCAAAA,8BAA8B,IAAI,GACpC,MAAM,IAAIC,uCAAAA,yBAAyB,MAAM,SAAS,MAAM;EAE1D,IAAI,CAACC,mCAAAA,8BAA8B,IAAI,GACrC,MAAM,IAAI,MACR,4EAA4E,KAAK,UAAU,IAAI,GACjG;CAEJ;AACF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"canonicalize-BBYGh17w.d.ts","names":[],"sources":["../src/signing/src/signing/canonicalize.ts"],"mappings":";;;;;AASA;;;;;iBAAgB,uBAAA,CACd,KAAA,EAAO,iBAAA,GACN,iBAAiB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"canonicalize-BF_SiNvO.d.cts","names":[],"sources":["../src/signing/src/signing/canonicalize.ts"],"mappings":";;;;;AASA;;;;;iBAAgB,uBAAA,CACd,KAAA,EAAO,iBAAA,GACN,iBAAiB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"clientTypes-BWFKo9oE.d.cts","names":[],"sources":["../src/types/src/types/clientTypes.ts"],"mappings":";;;;;;;;AA+BA;UAAiB,kBAAA;;EAEf,EAAA;EAES;EAAT,SAAS;AAAA;;;;KAMC,qBAAA;EASN,kCANA,IAAA,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BAA0B;EAMhB,sCAJR,SAAA;AAAA;;KAIQ,2BAAA,GAA8B,0BAAA,GACxC,0BAA0B;EAA1B,4BAEE,UAAA;AAAA;AAAU;AAAA,KAIF,uBAAA,GAA0B,0BAA0B;EAA7B,wBAEjC,MAAA,UAF8D;EAI9D,mBAAA,WAFA;EAIA,SAAA;AAAA;;KAIU,0BAAA;EAAA,8FAEV,MAAA;EAEA,SAAA,UAFA;EAIA,cAAA;EAEA,kBAAA,YAEA;EAAA,YAAA,kBAIA;EAFA,gBAAA,UAIW;EAFX,UAAA;EAEA,WAAA;AAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"eip712MethodByType-BSx11xG-.d.cts","names":[],"sources":["../src/signing/src/signing/eip712MethodByType.ts"],"mappings":";;;;;AAKA;cAAa,4BAAA,EAA8B,MAAM,CAC/C,iBAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"eip712MethodByType-DkiAjCLs.d.ts","names":[],"sources":["../src/signing/src/signing/eip712MethodByType.ts"],"mappings":";;;;;AAKA;cAAa,4BAAA,EAA8B,MAAM,CAC/C,iBAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mobileErrorCodes-3LtreeZM.d.cts","names":[],"sources":["../src/types/src/types/mobileErrorCodes.ts"],"mappings":";;AAOA;;;;cAAa,kBAAA;EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6CA4Dc;EAAA,6CACjB;EAAA;;;;;;;;;;;;;;;;;;;;;;KADE,eAAA,WACF,kBAAA,eAAiC,kBAAkB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mobileErrorCodes-3LtreeZM.d.ts","names":[],"sources":["../src/types/src/types/mobileErrorCodes.ts"],"mappings":";;AAOA;;;;cAAa,kBAAA;EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6CA4Dc;EAAA,6CACjB;EAAA;;;;;;;;;;;;;;;;;;;;;;KADE,eAAA,WACF,kBAAA,eAAiC,kBAAkB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"payloadHash-BOWGjqdb.d.cts","names":[],"sources":["../src/signing/src/signing/payloadHash.ts"],"mappings":";;;;;;AASA;;;iBAAgB,oBAAA,CAAqB,KAAA,EAAO,iBAAA,GAAoB,GAAG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"payloadHash-Bzf4CtjV.d.ts","names":[],"sources":["../src/signing/src/signing/payloadHash.ts"],"mappings":";;;;;;AASA;;;iBAAgB,oBAAA,CAAqB,KAAA,EAAO,iBAAA,GAAoB,GAAG"}
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { a as MobileServerPublicExecuteRequestType, i as MobileServerPublicExecuteRequestByType, t as MobileServerExecuteRequestType } from "./serverRequestTypes-CxDRFKfv.cjs";
|
|
2
|
-
import { n as MobileServerSuccessResponse, t as MobileServerFailureResponse } from "./serverBaseTypes-KREDe2M9.cjs";
|
|
3
|
-
import { Hex } from "viem";
|
|
4
|
-
|
|
5
|
-
//#region src/types/serverExecuteTypes.d.ts
|
|
6
|
-
/**
|
|
7
|
-
* Unsigned `public_execute` request body: a `type` discriminant flattened with its params, mirroring
|
|
8
|
-
* {@link MobileServerPublicQueryRequest}.
|
|
9
|
-
*/
|
|
10
|
-
type MobileServerPublicExecuteRequest<T extends MobileServerPublicExecuteRequestType = MobileServerPublicExecuteRequestType> = { [K in MobileServerPublicExecuteRequestType]: {
|
|
11
|
-
type: K;
|
|
12
|
-
} & MobileServerPublicExecuteRequestByType[K] }[T];
|
|
13
|
-
/**
|
|
14
|
-
* Payload the `set_follow` execute returns alongside the success envelope. The mutation and the count commit
|
|
15
|
-
* in one database transaction, so these are the authoritative post-mutation values — prefer them over
|
|
16
|
-
* re-reading, and note that overlapping toggles for the same pair can respond out of arrival order.
|
|
17
|
-
*/
|
|
18
|
-
interface MobileServerFollowMutationResponse {
|
|
19
|
-
is_following: boolean;
|
|
20
|
-
/** The *target's* follower count after the mutation, not the sender's. */
|
|
21
|
-
follower_count: number;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* One target's post-commit state in a `set_follow_batch` response.
|
|
25
|
-
*/
|
|
26
|
-
interface MobileServerFollowBatchResultItem {
|
|
27
|
-
/** The requested target, as lowercase hex. */
|
|
28
|
-
subaccount: Hex;
|
|
29
|
-
is_following: boolean;
|
|
30
|
-
/** The *target's* follower count after the batch, not the sender's. */
|
|
31
|
-
follower_count: number;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Payload the `set_follow_batch` execute returns alongside the success envelope: one result per target, in
|
|
35
|
-
* request order. Every write and count runs in one database transaction, so the batch either fully applies or
|
|
36
|
-
* changes nothing, and these values are authoritative post-commit state.
|
|
37
|
-
*/
|
|
38
|
-
interface MobileServerFollowBatchResponse {
|
|
39
|
-
results: MobileServerFollowBatchResultItem[];
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Payload of an execute route that returns nothing beyond the success discriminant. Spelled `Record<never,
|
|
43
|
-
* never>` rather than `Record<string, never>` because the latter's index signature would collapse `status` to
|
|
44
|
-
* `never` when intersected with the success envelope.
|
|
45
|
-
*/
|
|
46
|
-
type MobileServerEmptyExecuteResponse = Record<never, never>;
|
|
47
|
-
/**
|
|
48
|
-
* Temporary upload grant returned by `create_avatar_upload`; publishing requires a subsequent `set_avatar`.
|
|
49
|
-
*/
|
|
50
|
-
interface MobileServerAvatarUploadResponse {
|
|
51
|
-
/** Server-owned staging object key. */
|
|
52
|
-
upload_key: string;
|
|
53
|
-
/** Short-lived signed PUT URL. */
|
|
54
|
-
upload_url: string;
|
|
55
|
-
/** Headers required by the signed PUT. */
|
|
56
|
-
headers: Record<string, string>;
|
|
57
|
-
/** Upload URL lifetime in seconds from issuance. */
|
|
58
|
-
expires_in_seconds: number;
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* Success payloads for each signed `execute`, keyed by request `type`. Most execute routes carry no payload
|
|
62
|
-
* beyond the success discriminant and so map to an empty object; `set_follow` and `set_follow_batch` return
|
|
63
|
-
* their post-commit relationship state, and `create_avatar_upload` returns a temporary upload grant.
|
|
64
|
-
*/
|
|
65
|
-
interface MobileServerExecuteResponseByType {
|
|
66
|
-
/** Bio writes return only the success envelope. */
|
|
67
|
-
set_bio: MobileServerEmptyExecuteResponse;
|
|
68
|
-
/** Avatar writes return only the success envelope. */
|
|
69
|
-
set_avatar: MobileServerEmptyExecuteResponse;
|
|
70
|
-
/** Temporary upload grant; publishing requires a subsequent set_avatar call. */
|
|
71
|
-
create_avatar_upload: MobileServerAvatarUploadResponse;
|
|
72
|
-
set_username: MobileServerEmptyExecuteResponse;
|
|
73
|
-
set_private_mode: MobileServerEmptyExecuteResponse;
|
|
74
|
-
register_expo_token: MobileServerEmptyExecuteResponse;
|
|
75
|
-
set_follow: MobileServerFollowMutationResponse;
|
|
76
|
-
set_follow_batch: MobileServerFollowBatchResponse;
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* Full success response for a signed `execute`: the {@link MobileServerSuccessResponse} envelope with the
|
|
80
|
-
* route's payload inlined alongside `status`, matching how the query routes inline theirs.
|
|
81
|
-
*/
|
|
82
|
-
type MobileServerExecuteSuccessResponse<T extends MobileServerExecuteRequestType = MobileServerExecuteRequestType> = MobileServerSuccessResponse & MobileServerExecuteResponseByType[T];
|
|
83
|
-
/**
|
|
84
|
-
* Discriminated `execute` result union used at the transport boundary, before the envelope is narrowed.
|
|
85
|
-
*/
|
|
86
|
-
type MobileServerExecuteResult = MobileServerSuccessResponse | MobileServerFailureResponse;
|
|
87
|
-
//#endregion
|
|
88
|
-
export { MobileServerExecuteSuccessResponse as a, MobileServerFollowMutationResponse as c, MobileServerExecuteResult as i, MobileServerPublicExecuteRequest as l, MobileServerEmptyExecuteResponse as n, MobileServerFollowBatchResponse as o, MobileServerExecuteResponseByType as r, MobileServerFollowBatchResultItem as s, MobileServerAvatarUploadResponse as t };
|
|
89
|
-
//# sourceMappingURL=serverExecuteTypes-DVRa6ifu.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"serverExecuteTypes-DVRa6ifu.d.cts","names":[],"sources":["../src/types/src/types/serverExecuteTypes.ts"],"mappings":";;;;;;;AAeA;;KAAY,gCAAA,WACA,oCAAA,GACR,oCAAA,YAEI,oCAAA;EACJ,IAAA,EAAM,CAAA;AAAA,IACJ,sCAAA,CAAuC,CAAA,IAC3C,CAAA;;;;;;UAOe,kCAAA;EACf,YAAA;EAbE;EAeF,cAAc;AAAA;;;;UAMC,iCAAA;EAhBf;EAkBA,UAAA,EAAY,GAAG;EACf,YAAA;EAZe;EAcf,cAAA;AAAA;;AAXc;AAMhB;;;UAaiB,+BAAA;EACf,OAAA,EAAS,iCAAiC;AAAA;;;;AAT5B;AAQhB;KASY,gCAAA,GAAmC,MAAM;;;AART;UAa3B,gCAAA;EAL2B;EAO1C,UAAA;EAPmD;EASnD,UAAA;EAJe;EAMf,OAAA,EAAS,MAAM;;EAEf,kBAAA;AAAA;;;;;;UAQe,iCAAA;EAAA;EAEf,OAAA,EAAS,gCAAA;;EAET,UAAA,EAAY,gCAAA;EAAA;EAEZ,oBAAA,EAAsB,gCAAA;EACtB,YAAA,EAAc,gCAAA;EACd,gBAAA,EAAkB,gCAAA;EAClB,mBAAA,EAAqB,gCAAA;EACrB,UAAA,EAAY,kCAAA;EACZ,gBAAA,EAAkB,+BAAA;AAAA;;;;;KAOR,kCAAA,WACA,8BAAA,GAAiC,8BAAA,IACzC,2BAAA,GAA8B,iCAAA,CAAkC,CAAA;;;;KAKxD,yBAAA,GACR,2BAAA,GACA,2BAA2B"}
|