@nadohq/mobile-client 0.36.0 → 0.38.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 +19 -6
- package/dist/{MobileClient-D5TNTnLx.cjs → MobileClient-wjTrqP9z.cjs} +75 -12
- package/dist/MobileClient-wjTrqP9z.cjs.map +1 -0
- package/dist/MobileClient.cjs +1 -1
- package/dist/MobileClient.d.cts +62 -16
- package/dist/MobileClient.d.cts.map +1 -1
- package/dist/MobileClient.d.ts +62 -16
- package/dist/MobileClient.d.ts.map +1 -1
- package/dist/MobileClient.js +75 -12
- package/dist/MobileClient.js.map +1 -1
- package/dist/{MobileServerFailureError-CPFjwUBx.d.cts → MobileServerFailureError-BvQYrxjx.d.cts} +3 -3
- package/dist/{MobileServerFailureError-CPFjwUBx.d.cts.map → MobileServerFailureError-BvQYrxjx.d.cts.map} +1 -1
- package/dist/{MobileServerFailureError-Terv2Wzy.d.ts → MobileServerFailureError-CrNpL_L4.d.ts} +3 -3
- package/dist/{MobileServerFailureError-Terv2Wzy.d.ts.map → MobileServerFailureError-CrNpL_L4.d.ts.map} +1 -1
- package/dist/{buildSignedMobileRequest-BScnCGPF.d.ts → buildSignedMobileRequest-BqLRFLKV.d.ts} +2 -2
- package/dist/{buildSignedMobileRequest-BScnCGPF.d.ts.map → buildSignedMobileRequest-BqLRFLKV.d.ts.map} +1 -1
- package/dist/{buildSignedMobileRequest-CXfnhc-4.d.cts → buildSignedMobileRequest-DkkwEqIu.d.cts} +2 -2
- package/dist/{buildSignedMobileRequest-CXfnhc-4.d.cts.map → buildSignedMobileRequest-DkkwEqIu.d.cts.map} +1 -1
- package/dist/{canonicalize-CQ-pMYIt.d.ts → canonicalize-BRhCpYm1.d.ts} +2 -2
- package/dist/canonicalize-BRhCpYm1.d.ts.map +1 -0
- package/dist/{canonicalize-hzhboB-C.d.cts → canonicalize-DtpaaA2B.d.cts} +2 -2
- package/dist/canonicalize-DtpaaA2B.d.cts.map +1 -0
- package/dist/{clientTypes-BwakovWk.d.cts → clientTypes-CB_itU4Z.d.ts} +147 -14
- package/dist/clientTypes-CB_itU4Z.d.ts.map +1 -0
- package/dist/{clientTypes-D-o1_2Yc.d.ts → clientTypes-CceWsQzi.d.cts} +147 -14
- package/dist/clientTypes-CceWsQzi.d.cts.map +1 -0
- package/dist/dataMappers.cjs +79 -6
- package/dist/dataMappers.cjs.map +1 -1
- package/dist/dataMappers.d.cts +27 -5
- package/dist/dataMappers.d.cts.map +1 -1
- package/dist/dataMappers.d.ts +27 -5
- package/dist/dataMappers.d.ts.map +1 -1
- package/dist/dataMappers.js +75 -7
- package/dist/dataMappers.js.map +1 -1
- package/dist/{eip712MethodByType-3aiJkrHj.d.cts → eip712MethodByType-1xUkvTIp.d.cts} +2 -2
- package/dist/eip712MethodByType-1xUkvTIp.d.cts.map +1 -0
- package/dist/{eip712MethodByType-zNvZukU7.d.ts → eip712MethodByType-CrqBJIrp.d.ts} +2 -2
- package/dist/eip712MethodByType-CrqBJIrp.d.ts.map +1 -0
- package/dist/follow-Bh3UmXMc.d.cts +23 -0
- package/dist/follow-Bh3UmXMc.d.cts.map +1 -0
- package/dist/follow-DjkQm1vR.d.ts +23 -0
- package/dist/follow-DjkQm1vR.d.ts.map +1 -0
- package/dist/index.cjs +6 -1
- package/dist/index.d.cts +17 -16
- package/dist/index.d.ts +17 -16
- package/dist/index.js +2 -1
- package/dist/{mobileErrorCodes-CuQ5lyBV.d.ts → mobileErrorCodes-B3eR6t4b.d.ts} +8 -2
- package/dist/mobileErrorCodes-B3eR6t4b.d.ts.map +1 -0
- package/dist/{mobileErrorCodes-D_SyBm0k.d.cts → mobileErrorCodes-DkzBW4v3.d.cts} +8 -2
- package/dist/mobileErrorCodes-DkzBW4v3.d.cts.map +1 -0
- package/dist/{patterns-B5gi7OfV.d.ts → patterns-C-aUAnKl.d.ts} +1 -1
- package/dist/patterns-C-aUAnKl.d.ts.map +1 -0
- package/dist/{patterns-Db6fgz8i.d.cts → patterns-DS8P5LH0.d.cts} +1 -1
- package/dist/patterns-DS8P5LH0.d.cts.map +1 -0
- package/dist/{payloadHash-DVkEt-Rg.d.cts → payloadHash-CIo8Hkh6.d.cts} +2 -2
- package/dist/payloadHash-CIo8Hkh6.d.cts.map +1 -0
- package/dist/{payloadHash-BxL26uwq.d.ts → payloadHash-Cv4WwZCZ.d.ts} +2 -2
- package/dist/payloadHash-Cv4WwZCZ.d.ts.map +1 -0
- package/dist/{serverBaseTypes-B_KHFDab.d.ts → serverBaseTypes-C2JGib--.d.ts} +2 -2
- package/dist/{serverBaseTypes-B_KHFDab.d.ts.map → serverBaseTypes-C2JGib--.d.ts.map} +1 -1
- package/dist/{serverBaseTypes-C8KjE9Fm.d.cts → serverBaseTypes-YkCmgmt1.d.cts} +2 -2
- package/dist/{serverBaseTypes-C8KjE9Fm.d.cts.map → serverBaseTypes-YkCmgmt1.d.cts.map} +1 -1
- package/dist/serverExecuteTypes-C2NoNEwu.d.ts +50 -0
- package/dist/serverExecuteTypes-C2NoNEwu.d.ts.map +1 -0
- package/dist/serverExecuteTypes-DPZbs9ym.d.cts +50 -0
- package/dist/serverExecuteTypes-DPZbs9ym.d.cts.map +1 -0
- package/dist/{serverModelTypes-_cX99seo.d.ts → serverModelTypes-CDcRlRtw.d.ts} +57 -10
- package/dist/serverModelTypes-CDcRlRtw.d.ts.map +1 -0
- package/dist/{serverModelTypes-CwgibK-l.d.cts → serverModelTypes-CUzqFA6x.d.cts} +57 -10
- package/dist/serverModelTypes-CUzqFA6x.d.cts.map +1 -0
- package/dist/{serverQueryTypes-DwE1iJ9f.d.cts → serverQueryTypes-B0xI1G39.d.ts} +21 -9
- package/dist/serverQueryTypes-B0xI1G39.d.ts.map +1 -0
- package/dist/{serverQueryTypes-NIrPm2Sl.d.ts → serverQueryTypes-RdcIqRnM.d.cts} +21 -9
- package/dist/serverQueryTypes-RdcIqRnM.d.cts.map +1 -0
- package/dist/serverRequestTypes-Ddws3yXc.d.cts +116 -0
- package/dist/serverRequestTypes-Ddws3yXc.d.cts.map +1 -0
- package/dist/serverRequestTypes-Dv9NR-hQ.d.ts +116 -0
- package/dist/serverRequestTypes-Dv9NR-hQ.d.ts.map +1 -0
- package/dist/{serverResponseGuards-Cep5s7j5.d.ts → serverResponseGuards-BjIzucYt.d.ts} +2 -2
- package/dist/{serverResponseGuards-Cep5s7j5.d.ts.map → serverResponseGuards-BjIzucYt.d.ts.map} +1 -1
- package/dist/{serverResponseGuards-Dxt9_aGh.d.cts → serverResponseGuards-Dg9WbqBA.d.cts} +2 -2
- package/dist/{serverResponseGuards-Dxt9_aGh.d.cts.map → serverResponseGuards-Dg9WbqBA.d.cts.map} +1 -1
- package/dist/signing/buildSignedMobileRequest.cjs +1 -1
- package/dist/signing/buildSignedMobileRequest.d.cts +1 -1
- package/dist/signing/buildSignedMobileRequest.d.ts +1 -1
- package/dist/signing/canonicalize.cjs +5 -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 +5 -0
- package/dist/signing/canonicalize.js.map +1 -1
- package/dist/signing/eip712MethodByType.cjs +2 -1
- 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 +2 -1
- package/dist/signing/eip712MethodByType.js.map +1 -1
- package/dist/signing/index.d.cts +6 -6
- package/dist/signing/index.d.ts +6 -6
- 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/types.d.cts +2 -2
- package/dist/signing/types.d.ts +2 -2
- package/dist/types/MobileServerFailureError.cjs +1 -1
- package/dist/types/MobileServerFailureError.d.cts +1 -1
- package/dist/types/MobileServerFailureError.d.ts +1 -1
- package/dist/types/clientTypes.d.cts +2 -2
- package/dist/types/clientTypes.d.ts +2 -2
- package/dist/types/index.d.cts +9 -9
- package/dist/types/index.d.ts +9 -9
- package/dist/types/mobileErrorCodes.cjs +13 -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 +12 -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 +2 -2
- package/dist/types/serverRequestTypes.d.ts +2 -2
- package/dist/{types-47IPsDyA.d.cts → types-BIIvIzG2.d.ts} +20 -7
- package/dist/types-BIIvIzG2.d.ts.map +1 -0
- package/dist/{types-D5kFJzEX.d.ts → types-UmYaeq1C.d.cts} +20 -7
- package/dist/types-UmYaeq1C.d.cts.map +1 -0
- package/dist/utils/follow.cjs +28 -0
- package/dist/utils/follow.cjs.map +1 -0
- package/dist/utils/follow.d.cts +2 -0
- package/dist/utils/follow.d.ts +2 -0
- package/dist/utils/follow.js +24 -0
- package/dist/utils/follow.js.map +1 -0
- package/dist/utils/index.cjs +5 -0
- package/dist/utils/index.d.cts +4 -3
- package/dist/utils/index.d.ts +4 -3
- package/dist/utils/index.js +2 -1
- package/dist/utils/patterns.d.cts +1 -1
- package/dist/utils/patterns.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 +117 -21
- package/src/dataMappers.ts +109 -5
- package/src/signing/canonicalize.ts +6 -0
- package/src/signing/eip712MethodByType.ts +1 -0
- package/src/signing/signing.test.ts +32 -4
- package/src/signing/types.ts +18 -1
- package/src/types/clientTypes.ts +152 -11
- package/src/types/mobileErrorCodes.ts +12 -0
- package/src/types/serverExecuteTypes.ts +40 -2
- package/src/types/serverModelTypes.ts +58 -8
- package/src/types/serverQueryTypes.ts +18 -4
- package/src/types/serverRequestTypes.ts +50 -4
- package/src/utils/follow.ts +22 -0
- package/src/utils/index.ts +1 -0
- package/dist/MobileClient-D5TNTnLx.cjs.map +0 -1
- package/dist/canonicalize-CQ-pMYIt.d.ts.map +0 -1
- package/dist/canonicalize-hzhboB-C.d.cts.map +0 -1
- package/dist/clientTypes-BwakovWk.d.cts.map +0 -1
- package/dist/clientTypes-D-o1_2Yc.d.ts.map +0 -1
- package/dist/eip712MethodByType-3aiJkrHj.d.cts.map +0 -1
- package/dist/eip712MethodByType-zNvZukU7.d.ts.map +0 -1
- package/dist/mobileErrorCodes-CuQ5lyBV.d.ts.map +0 -1
- package/dist/mobileErrorCodes-D_SyBm0k.d.cts.map +0 -1
- package/dist/patterns-B5gi7OfV.d.ts.map +0 -1
- package/dist/patterns-Db6fgz8i.d.cts.map +0 -1
- package/dist/payloadHash-BxL26uwq.d.ts.map +0 -1
- package/dist/payloadHash-DVkEt-Rg.d.cts.map +0 -1
- package/dist/serverExecuteTypes-Cb5v7y0A.d.cts +0 -19
- package/dist/serverExecuteTypes-Cb5v7y0A.d.cts.map +0 -1
- package/dist/serverExecuteTypes-GFjZj_DC.d.ts +0 -19
- package/dist/serverExecuteTypes-GFjZj_DC.d.ts.map +0 -1
- package/dist/serverModelTypes-CwgibK-l.d.cts.map +0 -1
- package/dist/serverModelTypes-_cX99seo.d.ts.map +0 -1
- package/dist/serverQueryTypes-DwE1iJ9f.d.cts.map +0 -1
- package/dist/serverQueryTypes-NIrPm2Sl.d.ts.map +0 -1
- package/dist/serverRequestTypes-516zXnQ6.d.ts +0 -72
- package/dist/serverRequestTypes-516zXnQ6.d.ts.map +0 -1
- package/dist/serverRequestTypes-GAtVYIda.d.cts +0 -72
- package/dist/serverRequestTypes-GAtVYIda.d.cts.map +0 -1
- package/dist/types-47IPsDyA.d.cts.map +0 -1
- package/dist/types-D5kFJzEX.d.ts.map +0 -1
package/dist/types/index.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { a as MobileFeedTradePosition, c as MobileNotificationCategory, d as MobileServerFeedTrade, f as
|
|
2
|
-
import {
|
|
3
|
-
import { a as
|
|
4
|
-
import { n as MobileServerSuccessResponse, t as MobileServerFailureResponse } from "../serverBaseTypes-
|
|
5
|
-
import { n as MobileServerPublicExecuteRequest,
|
|
6
|
-
import { a as
|
|
7
|
-
import { n as MobileErrorCode, t as MOBILE_ERROR_CODES } from "../mobileErrorCodes-
|
|
8
|
-
import { t as MobileServerFailureError } from "../MobileServerFailureError-
|
|
9
|
-
export { GetMobileFeedParams, GetMobileNotificationPreferencesParams,
|
|
1
|
+
import { _ as MobileServerNotificationPreferences, a as MobileFeedTradePosition, c as MobileNotificationCategory, d as MobileServerFeedTrade, f as MobileServerFollowListAccount, g as MobileServerNotificationPreferenceScope, h as MobileServerNotificationCategoryPreference, i as MobileFeedMarginMode, l as MobileNotificationPlatform, m as MobileServerIdentitySummary, n as MOBILE_FEED_TRADE_POSITION_DIRECTIONS, o as MobileFeedTradePositionDirection, p as MobileServerFollowSummary, r as MOBILE_FEED_TRADE_POSITION_EFFECTS, s as MobileFeedTradePositionEffect, t as MOBILE_FEED_MARGIN_MODES, u as MobileServerFeedMargin, v as MobileServerProfile } from "../serverModelTypes-CUzqFA6x.cjs";
|
|
2
|
+
import { A as MobileUsernameAvailability, C as MobileRegisteredWallet, D as MobileSignedRequestParams, E as MobileSetUsernameParams, O as MobileUnregisterExpoTokenParams, S as MobileRegisterExpoTokenParams, T as MobileSetPrivateModeParams, _ as MobileNotificationCategoryPreference, a as GetMobileNotificationPreferencesParams, b as MobileProfilesInclude, c as GetMobileUsernameAvailabilityParams, d as MobileFeedTrade, f as MobileFollowListAccount, g as MobileIdentitySummary, h as MobileFollowSummary, i as GetMobileFollowingParams, j as MobileWithExpoTokenParams, k as MobileUpdateNotificationPreferencesParams, l as MobileFeedMargin, m as MobileFollowMutationResult, n as GetMobileFollowListParams, o as GetMobileProfilesParams, p as MobileFollowListPage, r as GetMobileFollowersParams, s as GetMobileRegisteredWalletParams, t as GetMobileFeedParams, u as MobileFeedPage, v as MobileNotificationPreferenceScope, w as MobileSetFollowParams, x as MobilePublicProfile, y as MobileNotificationPreferences } from "../clientTypes-CceWsQzi.cjs";
|
|
3
|
+
import { a as MobileServerPublicExecuteRequestType, c as MobileServerRequestType, i as MobileServerPublicExecuteRequestByType, n as MobileServerFollowListRequest, o as MobileServerPublicQueryRequestByType, r as MobileServerProfilesInclude, s as MobileServerPublicQueryRequestType, t as MobileServerExecuteRequestType } from "../serverRequestTypes-Ddws3yXc.cjs";
|
|
4
|
+
import { n as MobileServerSuccessResponse, t as MobileServerFailureResponse } from "../serverBaseTypes-YkCmgmt1.cjs";
|
|
5
|
+
import { a as MobileServerFollowMutationResponse, i as MobileServerExecuteSuccessResponse, n as MobileServerExecuteResponseByType, o as MobileServerPublicExecuteRequest, r as MobileServerExecuteResult, t as MobileServerEmptyExecuteResponse } from "../serverExecuteTypes-DPZbs9ym.cjs";
|
|
6
|
+
import { a as MobileServerPublicQueryRequest, c as MobileServerRegisteredWalletResponse, i as MobileServerProfilesResponse, l as MobileServerUsernameAvailabilityResponse, n as MobileServerFollowListResponse, o as MobileServerPublicQueryResponseByType, r as MobileServerNotificationPreferencesResponse, s as MobileServerPublicQuerySuccessResponse, t as MobileServerFeedResponse } from "../serverQueryTypes-RdcIqRnM.cjs";
|
|
7
|
+
import { n as MobileErrorCode, t as MOBILE_ERROR_CODES } from "../mobileErrorCodes-DkzBW4v3.cjs";
|
|
8
|
+
import { t as MobileServerFailureError } from "../MobileServerFailureError-BvQYrxjx.cjs";
|
|
9
|
+
export { GetMobileFeedParams, GetMobileFollowListParams, GetMobileFollowersParams, GetMobileFollowingParams, GetMobileNotificationPreferencesParams, GetMobileProfilesParams, GetMobileRegisteredWalletParams, GetMobileUsernameAvailabilityParams, MOBILE_ERROR_CODES, MOBILE_FEED_MARGIN_MODES, MOBILE_FEED_TRADE_POSITION_DIRECTIONS, MOBILE_FEED_TRADE_POSITION_EFFECTS, MobileErrorCode, MobileFeedMargin, MobileFeedMarginMode, MobileFeedPage, MobileFeedTrade, MobileFeedTradePosition, MobileFeedTradePositionDirection, MobileFeedTradePositionEffect, MobileFollowListAccount, MobileFollowListPage, MobileFollowMutationResult, MobileFollowSummary, MobileIdentitySummary, MobileNotificationCategory, MobileNotificationCategoryPreference, MobileNotificationPlatform, MobileNotificationPreferenceScope, MobileNotificationPreferences, MobileProfilesInclude, MobilePublicProfile, MobileRegisterExpoTokenParams, MobileRegisteredWallet, MobileServerEmptyExecuteResponse, MobileServerExecuteRequestType, MobileServerExecuteResponseByType, MobileServerExecuteResult, MobileServerExecuteSuccessResponse, MobileServerFailureError, MobileServerFailureResponse, MobileServerFeedMargin, MobileServerFeedResponse, MobileServerFeedTrade, MobileServerFollowListAccount, MobileServerFollowListRequest, MobileServerFollowListResponse, MobileServerFollowMutationResponse, MobileServerFollowSummary, MobileServerIdentitySummary, MobileServerNotificationCategoryPreference, MobileServerNotificationPreferenceScope, MobileServerNotificationPreferences, MobileServerNotificationPreferencesResponse, MobileServerProfile, MobileServerProfilesInclude, MobileServerProfilesResponse, MobileServerPublicExecuteRequest, MobileServerPublicExecuteRequestByType, MobileServerPublicExecuteRequestType, MobileServerPublicQueryRequest, MobileServerPublicQueryRequestByType, MobileServerPublicQueryRequestType, MobileServerPublicQueryResponseByType, MobileServerPublicQuerySuccessResponse, MobileServerRegisteredWalletResponse, MobileServerRequestType, MobileServerSuccessResponse, MobileServerUsernameAvailabilityResponse, MobileSetFollowParams, MobileSetPrivateModeParams, MobileSetUsernameParams, MobileSignedRequestParams, MobileUnregisterExpoTokenParams, MobileUpdateNotificationPreferencesParams, MobileUsernameAvailability, MobileWithExpoTokenParams };
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { a as MobileFeedTradePosition, c as MobileNotificationCategory, d as MobileServerFeedTrade, f as
|
|
2
|
-
import {
|
|
3
|
-
import { a as
|
|
4
|
-
import { n as MobileServerSuccessResponse, t as MobileServerFailureResponse } from "../serverBaseTypes-
|
|
5
|
-
import { n as MobileServerPublicExecuteRequest,
|
|
6
|
-
import { a as
|
|
7
|
-
import { n as MobileErrorCode, t as MOBILE_ERROR_CODES } from "../mobileErrorCodes-
|
|
8
|
-
import { t as MobileServerFailureError } from "../MobileServerFailureError-
|
|
9
|
-
export { GetMobileFeedParams, GetMobileNotificationPreferencesParams,
|
|
1
|
+
import { _ as MobileServerNotificationPreferences, a as MobileFeedTradePosition, c as MobileNotificationCategory, d as MobileServerFeedTrade, f as MobileServerFollowListAccount, g as MobileServerNotificationPreferenceScope, h as MobileServerNotificationCategoryPreference, i as MobileFeedMarginMode, l as MobileNotificationPlatform, m as MobileServerIdentitySummary, n as MOBILE_FEED_TRADE_POSITION_DIRECTIONS, o as MobileFeedTradePositionDirection, p as MobileServerFollowSummary, r as MOBILE_FEED_TRADE_POSITION_EFFECTS, s as MobileFeedTradePositionEffect, t as MOBILE_FEED_MARGIN_MODES, u as MobileServerFeedMargin, v as MobileServerProfile } from "../serverModelTypes-CDcRlRtw.js";
|
|
2
|
+
import { A as MobileUsernameAvailability, C as MobileRegisteredWallet, D as MobileSignedRequestParams, E as MobileSetUsernameParams, O as MobileUnregisterExpoTokenParams, S as MobileRegisterExpoTokenParams, T as MobileSetPrivateModeParams, _ as MobileNotificationCategoryPreference, a as GetMobileNotificationPreferencesParams, b as MobileProfilesInclude, c as GetMobileUsernameAvailabilityParams, d as MobileFeedTrade, f as MobileFollowListAccount, g as MobileIdentitySummary, h as MobileFollowSummary, i as GetMobileFollowingParams, j as MobileWithExpoTokenParams, k as MobileUpdateNotificationPreferencesParams, l as MobileFeedMargin, m as MobileFollowMutationResult, n as GetMobileFollowListParams, o as GetMobileProfilesParams, p as MobileFollowListPage, r as GetMobileFollowersParams, s as GetMobileRegisteredWalletParams, t as GetMobileFeedParams, u as MobileFeedPage, v as MobileNotificationPreferenceScope, w as MobileSetFollowParams, x as MobilePublicProfile, y as MobileNotificationPreferences } from "../clientTypes-CB_itU4Z.js";
|
|
3
|
+
import { a as MobileServerPublicExecuteRequestType, c as MobileServerRequestType, i as MobileServerPublicExecuteRequestByType, n as MobileServerFollowListRequest, o as MobileServerPublicQueryRequestByType, r as MobileServerProfilesInclude, s as MobileServerPublicQueryRequestType, t as MobileServerExecuteRequestType } from "../serverRequestTypes-Dv9NR-hQ.js";
|
|
4
|
+
import { n as MobileServerSuccessResponse, t as MobileServerFailureResponse } from "../serverBaseTypes-C2JGib--.js";
|
|
5
|
+
import { a as MobileServerFollowMutationResponse, i as MobileServerExecuteSuccessResponse, n as MobileServerExecuteResponseByType, o as MobileServerPublicExecuteRequest, r as MobileServerExecuteResult, t as MobileServerEmptyExecuteResponse } from "../serverExecuteTypes-C2NoNEwu.js";
|
|
6
|
+
import { a as MobileServerPublicQueryRequest, c as MobileServerRegisteredWalletResponse, i as MobileServerProfilesResponse, l as MobileServerUsernameAvailabilityResponse, n as MobileServerFollowListResponse, o as MobileServerPublicQueryResponseByType, r as MobileServerNotificationPreferencesResponse, s as MobileServerPublicQuerySuccessResponse, t as MobileServerFeedResponse } from "../serverQueryTypes-B0xI1G39.js";
|
|
7
|
+
import { n as MobileErrorCode, t as MOBILE_ERROR_CODES } from "../mobileErrorCodes-B3eR6t4b.js";
|
|
8
|
+
import { t as MobileServerFailureError } from "../MobileServerFailureError-CrNpL_L4.js";
|
|
9
|
+
export { GetMobileFeedParams, GetMobileFollowListParams, GetMobileFollowersParams, GetMobileFollowingParams, GetMobileNotificationPreferencesParams, GetMobileProfilesParams, GetMobileRegisteredWalletParams, GetMobileUsernameAvailabilityParams, MOBILE_ERROR_CODES, MOBILE_FEED_MARGIN_MODES, MOBILE_FEED_TRADE_POSITION_DIRECTIONS, MOBILE_FEED_TRADE_POSITION_EFFECTS, MobileErrorCode, MobileFeedMargin, MobileFeedMarginMode, MobileFeedPage, MobileFeedTrade, MobileFeedTradePosition, MobileFeedTradePositionDirection, MobileFeedTradePositionEffect, MobileFollowListAccount, MobileFollowListPage, MobileFollowMutationResult, MobileFollowSummary, MobileIdentitySummary, MobileNotificationCategory, MobileNotificationCategoryPreference, MobileNotificationPlatform, MobileNotificationPreferenceScope, MobileNotificationPreferences, MobileProfilesInclude, MobilePublicProfile, MobileRegisterExpoTokenParams, MobileRegisteredWallet, MobileServerEmptyExecuteResponse, MobileServerExecuteRequestType, MobileServerExecuteResponseByType, MobileServerExecuteResult, MobileServerExecuteSuccessResponse, MobileServerFailureError, MobileServerFailureResponse, MobileServerFeedMargin, MobileServerFeedResponse, MobileServerFeedTrade, MobileServerFollowListAccount, MobileServerFollowListRequest, MobileServerFollowListResponse, MobileServerFollowMutationResponse, MobileServerFollowSummary, MobileServerIdentitySummary, MobileServerNotificationCategoryPreference, MobileServerNotificationPreferenceScope, MobileServerNotificationPreferences, MobileServerNotificationPreferencesResponse, MobileServerProfile, MobileServerProfilesInclude, MobileServerProfilesResponse, MobileServerPublicExecuteRequest, MobileServerPublicExecuteRequestByType, MobileServerPublicExecuteRequestType, MobileServerPublicQueryRequest, MobileServerPublicQueryRequestByType, MobileServerPublicQueryRequestType, MobileServerPublicQueryResponseByType, MobileServerPublicQuerySuccessResponse, MobileServerRegisteredWalletResponse, MobileServerRequestType, MobileServerSuccessResponse, MobileServerUsernameAvailabilityResponse, MobileSetFollowParams, MobileSetPrivateModeParams, MobileSetUsernameParams, MobileSignedRequestParams, MobileUnregisterExpoTokenParams, MobileUpdateNotificationPreferencesParams, MobileUsernameAvailability, MobileWithExpoTokenParams };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
require("../MobileClient-
|
|
2
|
+
require("../MobileClient-wjTrqP9z.cjs");
|
|
3
3
|
//#region src/types/mobileErrorCodes.ts
|
|
4
4
|
/**
|
|
5
5
|
* Numeric error codes returned by the mobile service API. Identity codes (61xx), notification codes (62xx),
|
|
@@ -14,6 +14,18 @@ const MOBILE_ERROR_CODES = {
|
|
|
14
14
|
/** Another identity write for the subaccount committed with a later nonce. Re-read before retrying. */
|
|
15
15
|
STALE_IDENTITY_UPDATE: 6105,
|
|
16
16
|
PROFILE_NOT_FOUND: 6106,
|
|
17
|
+
/** Profiles lookup is empty, holds duplicates, or exceeds the batch maximum. Do not retry unchanged. */
|
|
18
|
+
INVALID_PROFILES_REQUEST: 6107,
|
|
19
|
+
/** Follow mutation names the same source and target, or an isolated participant. Do not retry unchanged. */
|
|
20
|
+
INVALID_FOLLOW_TARGET: 6110,
|
|
21
|
+
/** Signed follower is not yet in the canonical Query DB subaccount index. Retry after index catch-up. */
|
|
22
|
+
FOLLOWER_NOT_ELIGIBLE: 6111,
|
|
23
|
+
/** Follow target is not yet in the canonical Query DB subaccount index. Refresh after a new record. */
|
|
24
|
+
FOLLOWING_NOT_FOUND: 6112,
|
|
25
|
+
/** Follow list cursor is malformed or bound to a different list request. Restart from `cursor: null`. */
|
|
26
|
+
INVALID_FOLLOW_CURSOR: 6113,
|
|
27
|
+
/** A follow list or followed-by limit is outside its accepted range. Fix it; do not retry unchanged. */
|
|
28
|
+
INVALID_FOLLOW_LIMIT: 6114,
|
|
17
29
|
INVALID_EXPO_TOKEN: 6200,
|
|
18
30
|
INVALID_DEVICE_METADATA: 6201,
|
|
19
31
|
INVALID_PREFERENCES: 6202,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mobileErrorCodes.cjs","names":["NADO_ERROR_CODES"],"sources":["../../src/types/mobileErrorCodes.ts"],"sourcesContent":["import { NADO_ERROR_CODES } from '@nadohq/shared';\n\n/**\n * Numeric error codes returned by the mobile service API. Identity codes (61xx), notification codes (62xx),\n * and feed codes (63xx) are mobile-specific; the remaining codes are shared cross-service codes from the\n * backend's common error enum, inlined via spread from {@link NADO_ERROR_CODES}.\n */\nexport const MOBILE_ERROR_CODES = {\n ...NADO_ERROR_CODES,\n INVALID_DISPLAY_NAME: 6100,\n USERNAME_UNAVAILABLE: 6101,\n INVALID_IDENTITY_TARGET: 6104,\n /** Another identity write for the subaccount committed with a later nonce. Re-read before retrying. */\n STALE_IDENTITY_UPDATE: 6105,\n PROFILE_NOT_FOUND: 6106,\n INVALID_EXPO_TOKEN: 6200,\n INVALID_DEVICE_METADATA: 6201,\n INVALID_PREFERENCES: 6202,\n /** Feed `minimumNotional` or `limit` is outside its allowed domain. Fix the request; do not retry unchanged. */\n INVALID_FEED_FILTER: 6300,\n /** Feed cursor is malformed or bound to a different filter. Discard it and restart from the first page. */\n INVALID_FEED_CURSOR: 6301,\n} as const;\n\n/**\n * Union of all known mobile service API error codes.\n */\nexport type MobileErrorCode =\n (typeof MOBILE_ERROR_CODES)[keyof typeof MOBILE_ERROR_CODES];\n"],"mappings":";;;;;;;;AAOA,MAAa,qBAAqB;CAChC,2BAAGA,EAAAA;CACH,sBAAsB;CACtB,sBAAsB;CACtB,yBAAyB;;CAEzB,uBAAuB;CACvB,mBAAmB;
|
|
1
|
+
{"version":3,"file":"mobileErrorCodes.cjs","names":["NADO_ERROR_CODES"],"sources":["../../src/types/mobileErrorCodes.ts"],"sourcesContent":["import { NADO_ERROR_CODES } from '@nadohq/shared';\n\n/**\n * Numeric error codes returned by the mobile service API. Identity codes (61xx), notification codes (62xx),\n * and feed codes (63xx) are mobile-specific; the remaining codes are shared cross-service codes from the\n * backend's common error enum, inlined via spread from {@link NADO_ERROR_CODES}.\n */\nexport const MOBILE_ERROR_CODES = {\n ...NADO_ERROR_CODES,\n INVALID_DISPLAY_NAME: 6100,\n USERNAME_UNAVAILABLE: 6101,\n INVALID_IDENTITY_TARGET: 6104,\n /** Another identity write for the subaccount committed with a later nonce. Re-read before retrying. */\n STALE_IDENTITY_UPDATE: 6105,\n PROFILE_NOT_FOUND: 6106,\n /** Profiles lookup is empty, holds duplicates, or exceeds the batch maximum. Do not retry unchanged. */\n INVALID_PROFILES_REQUEST: 6107,\n /** Follow mutation names the same source and target, or an isolated participant. Do not retry unchanged. */\n INVALID_FOLLOW_TARGET: 6110,\n /** Signed follower is not yet in the canonical Query DB subaccount index. Retry after index catch-up. */\n FOLLOWER_NOT_ELIGIBLE: 6111,\n /** Follow target is not yet in the canonical Query DB subaccount index. Refresh after a new record. */\n FOLLOWING_NOT_FOUND: 6112,\n /** Follow list cursor is malformed or bound to a different list request. Restart from `cursor: null`. */\n INVALID_FOLLOW_CURSOR: 6113,\n /** A follow list or followed-by limit is outside its accepted range. Fix it; do not retry unchanged. */\n INVALID_FOLLOW_LIMIT: 6114,\n INVALID_EXPO_TOKEN: 6200,\n INVALID_DEVICE_METADATA: 6201,\n INVALID_PREFERENCES: 6202,\n /** Feed `minimumNotional` or `limit` is outside its allowed domain. Fix the request; do not retry unchanged. */\n INVALID_FEED_FILTER: 6300,\n /** Feed cursor is malformed or bound to a different filter. Discard it and restart from the first page. */\n INVALID_FEED_CURSOR: 6301,\n} as const;\n\n/**\n * Union of all known mobile service API error codes.\n */\nexport type MobileErrorCode =\n (typeof MOBILE_ERROR_CODES)[keyof typeof MOBILE_ERROR_CODES];\n"],"mappings":";;;;;;;;AAOA,MAAa,qBAAqB;CAChC,2BAAGA,EAAAA;CACH,sBAAsB;CACtB,sBAAsB;CACtB,yBAAyB;;CAEzB,uBAAuB;CACvB,mBAAmB;;CAEnB,0BAA0B;;CAE1B,uBAAuB;;CAEvB,uBAAuB;;CAEvB,qBAAqB;;CAErB,uBAAuB;;CAEvB,sBAAsB;CACtB,oBAAoB;CACpB,yBAAyB;CACzB,qBAAqB;;CAErB,qBAAqB;;CAErB,qBAAqB;AACvB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as MobileErrorCode, t as MOBILE_ERROR_CODES } from "../mobileErrorCodes-
|
|
1
|
+
import { n as MobileErrorCode, t as MOBILE_ERROR_CODES } from "../mobileErrorCodes-DkzBW4v3.cjs";
|
|
2
2
|
export { MOBILE_ERROR_CODES, MobileErrorCode };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as MobileErrorCode, t as MOBILE_ERROR_CODES } from "../mobileErrorCodes-
|
|
1
|
+
import { n as MobileErrorCode, t as MOBILE_ERROR_CODES } from "../mobileErrorCodes-B3eR6t4b.js";
|
|
2
2
|
export { MOBILE_ERROR_CODES, MobileErrorCode };
|
|
@@ -13,6 +13,18 @@ const MOBILE_ERROR_CODES = {
|
|
|
13
13
|
/** Another identity write for the subaccount committed with a later nonce. Re-read before retrying. */
|
|
14
14
|
STALE_IDENTITY_UPDATE: 6105,
|
|
15
15
|
PROFILE_NOT_FOUND: 6106,
|
|
16
|
+
/** Profiles lookup is empty, holds duplicates, or exceeds the batch maximum. Do not retry unchanged. */
|
|
17
|
+
INVALID_PROFILES_REQUEST: 6107,
|
|
18
|
+
/** Follow mutation names the same source and target, or an isolated participant. Do not retry unchanged. */
|
|
19
|
+
INVALID_FOLLOW_TARGET: 6110,
|
|
20
|
+
/** Signed follower is not yet in the canonical Query DB subaccount index. Retry after index catch-up. */
|
|
21
|
+
FOLLOWER_NOT_ELIGIBLE: 6111,
|
|
22
|
+
/** Follow target is not yet in the canonical Query DB subaccount index. Refresh after a new record. */
|
|
23
|
+
FOLLOWING_NOT_FOUND: 6112,
|
|
24
|
+
/** Follow list cursor is malformed or bound to a different list request. Restart from `cursor: null`. */
|
|
25
|
+
INVALID_FOLLOW_CURSOR: 6113,
|
|
26
|
+
/** A follow list or followed-by limit is outside its accepted range. Fix it; do not retry unchanged. */
|
|
27
|
+
INVALID_FOLLOW_LIMIT: 6114,
|
|
16
28
|
INVALID_EXPO_TOKEN: 6200,
|
|
17
29
|
INVALID_DEVICE_METADATA: 6201,
|
|
18
30
|
INVALID_PREFERENCES: 6202,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mobileErrorCodes.js","names":[],"sources":["../../src/types/mobileErrorCodes.ts"],"sourcesContent":["import { NADO_ERROR_CODES } from '@nadohq/shared';\n\n/**\n * Numeric error codes returned by the mobile service API. Identity codes (61xx), notification codes (62xx),\n * and feed codes (63xx) are mobile-specific; the remaining codes are shared cross-service codes from the\n * backend's common error enum, inlined via spread from {@link NADO_ERROR_CODES}.\n */\nexport const MOBILE_ERROR_CODES = {\n ...NADO_ERROR_CODES,\n INVALID_DISPLAY_NAME: 6100,\n USERNAME_UNAVAILABLE: 6101,\n INVALID_IDENTITY_TARGET: 6104,\n /** Another identity write for the subaccount committed with a later nonce. Re-read before retrying. */\n STALE_IDENTITY_UPDATE: 6105,\n PROFILE_NOT_FOUND: 6106,\n INVALID_EXPO_TOKEN: 6200,\n INVALID_DEVICE_METADATA: 6201,\n INVALID_PREFERENCES: 6202,\n /** Feed `minimumNotional` or `limit` is outside its allowed domain. Fix the request; do not retry unchanged. */\n INVALID_FEED_FILTER: 6300,\n /** Feed cursor is malformed or bound to a different filter. Discard it and restart from the first page. */\n INVALID_FEED_CURSOR: 6301,\n} as const;\n\n/**\n * Union of all known mobile service API error codes.\n */\nexport type MobileErrorCode =\n (typeof MOBILE_ERROR_CODES)[keyof typeof MOBILE_ERROR_CODES];\n"],"mappings":";;;;;;;AAOA,MAAa,qBAAqB;CAChC,GAAG;CACH,sBAAsB;CACtB,sBAAsB;CACtB,yBAAyB;;CAEzB,uBAAuB;CACvB,mBAAmB;
|
|
1
|
+
{"version":3,"file":"mobileErrorCodes.js","names":[],"sources":["../../src/types/mobileErrorCodes.ts"],"sourcesContent":["import { NADO_ERROR_CODES } from '@nadohq/shared';\n\n/**\n * Numeric error codes returned by the mobile service API. Identity codes (61xx), notification codes (62xx),\n * and feed codes (63xx) are mobile-specific; the remaining codes are shared cross-service codes from the\n * backend's common error enum, inlined via spread from {@link NADO_ERROR_CODES}.\n */\nexport const MOBILE_ERROR_CODES = {\n ...NADO_ERROR_CODES,\n INVALID_DISPLAY_NAME: 6100,\n USERNAME_UNAVAILABLE: 6101,\n INVALID_IDENTITY_TARGET: 6104,\n /** Another identity write for the subaccount committed with a later nonce. Re-read before retrying. */\n STALE_IDENTITY_UPDATE: 6105,\n PROFILE_NOT_FOUND: 6106,\n /** Profiles lookup is empty, holds duplicates, or exceeds the batch maximum. Do not retry unchanged. */\n INVALID_PROFILES_REQUEST: 6107,\n /** Follow mutation names the same source and target, or an isolated participant. Do not retry unchanged. */\n INVALID_FOLLOW_TARGET: 6110,\n /** Signed follower is not yet in the canonical Query DB subaccount index. Retry after index catch-up. */\n FOLLOWER_NOT_ELIGIBLE: 6111,\n /** Follow target is not yet in the canonical Query DB subaccount index. Refresh after a new record. */\n FOLLOWING_NOT_FOUND: 6112,\n /** Follow list cursor is malformed or bound to a different list request. Restart from `cursor: null`. */\n INVALID_FOLLOW_CURSOR: 6113,\n /** A follow list or followed-by limit is outside its accepted range. Fix it; do not retry unchanged. */\n INVALID_FOLLOW_LIMIT: 6114,\n INVALID_EXPO_TOKEN: 6200,\n INVALID_DEVICE_METADATA: 6201,\n INVALID_PREFERENCES: 6202,\n /** Feed `minimumNotional` or `limit` is outside its allowed domain. Fix the request; do not retry unchanged. */\n INVALID_FEED_FILTER: 6300,\n /** Feed cursor is malformed or bound to a different filter. Discard it and restart from the first page. */\n INVALID_FEED_CURSOR: 6301,\n} as const;\n\n/**\n * Union of all known mobile service API error codes.\n */\nexport type MobileErrorCode =\n (typeof MOBILE_ERROR_CODES)[keyof typeof MOBILE_ERROR_CODES];\n"],"mappings":";;;;;;;AAOA,MAAa,qBAAqB;CAChC,GAAG;CACH,sBAAsB;CACtB,sBAAsB;CACtB,yBAAyB;;CAEzB,uBAAuB;CACvB,mBAAmB;;CAEnB,0BAA0B;;CAE1B,uBAAuB;;CAEvB,uBAAuB;;CAEvB,qBAAqB;;CAErB,uBAAuB;;CAEvB,sBAAsB;CACtB,oBAAoB;CACpB,yBAAyB;CACzB,qBAAqB;;CAErB,qBAAqB;;CAErB,qBAAqB;AACvB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as MobileServerSuccessResponse, t as MobileServerFailureResponse } from "../serverBaseTypes-
|
|
1
|
+
import { n as MobileServerSuccessResponse, t as MobileServerFailureResponse } from "../serverBaseTypes-YkCmgmt1.cjs";
|
|
2
2
|
export { MobileServerFailureResponse, MobileServerSuccessResponse };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as MobileServerSuccessResponse, t as MobileServerFailureResponse } from "../serverBaseTypes-
|
|
1
|
+
import { n as MobileServerSuccessResponse, t as MobileServerFailureResponse } from "../serverBaseTypes-C2JGib--.js";
|
|
2
2
|
export { MobileServerFailureResponse, MobileServerSuccessResponse };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as MobileServerPublicExecuteRequest,
|
|
2
|
-
export { MobileServerExecuteResult, MobileServerPublicExecuteRequest };
|
|
1
|
+
import { a as MobileServerFollowMutationResponse, i as MobileServerExecuteSuccessResponse, n as MobileServerExecuteResponseByType, o as MobileServerPublicExecuteRequest, r as MobileServerExecuteResult, t as MobileServerEmptyExecuteResponse } from "../serverExecuteTypes-DPZbs9ym.cjs";
|
|
2
|
+
export { MobileServerEmptyExecuteResponse, MobileServerExecuteResponseByType, MobileServerExecuteResult, MobileServerExecuteSuccessResponse, MobileServerFollowMutationResponse, MobileServerPublicExecuteRequest };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as MobileServerPublicExecuteRequest,
|
|
2
|
-
export { MobileServerExecuteResult, MobileServerPublicExecuteRequest };
|
|
1
|
+
import { a as MobileServerFollowMutationResponse, i as MobileServerExecuteSuccessResponse, n as MobileServerExecuteResponseByType, o as MobileServerPublicExecuteRequest, r as MobileServerExecuteResult, t as MobileServerEmptyExecuteResponse } from "../serverExecuteTypes-C2NoNEwu.js";
|
|
2
|
+
export { MobileServerEmptyExecuteResponse, MobileServerExecuteResponseByType, MobileServerExecuteResult, MobileServerExecuteSuccessResponse, MobileServerFollowMutationResponse, MobileServerPublicExecuteRequest };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serverModelTypes.cjs","names":[],"sources":["../../src/types/serverModelTypes.ts"],"sourcesContent":["import { BalanceSide } from '@nadohq/shared';\nimport { Hex } from 'viem';\n\n/**\n * Platform of a device registered for push notifications.\n */\nexport type MobileNotificationPlatform = 'ios' | 'android';\n\n/**\n * Category of push notification.\n */\nexport type MobileNotificationCategory =\n | 'order_fill'\n | 'order_update'\n | 'liquidation'\n | 'funding'\n | 'product_listing'\n | 'announcement';\n\n/**\n * Server-side public profile shape (snake_case). Name fields are `null` until the subaccount claims a\n *
|
|
1
|
+
{"version":3,"file":"serverModelTypes.cjs","names":[],"sources":["../../src/types/serverModelTypes.ts"],"sourcesContent":["import { BalanceSide } from '@nadohq/shared';\nimport { Hex } from 'viem';\n\n/**\n * Platform of a device registered for push notifications.\n */\nexport type MobileNotificationPlatform = 'ios' | 'android';\n\n/**\n * Category of push notification.\n */\nexport type MobileNotificationCategory =\n | 'order_fill'\n | 'order_update'\n | 'liquidation'\n | 'funding'\n | 'product_listing'\n | 'announcement';\n\n/**\n * Server-side identity summary (snake_case): the read-time identity fields the backend attaches to a\n * subaccount wherever it surfaces one alongside other data. Name fields are `null` until the subaccount\n * claims a username, and a rename shows up on the next read without any change to the surrounding record.\n */\nexport interface MobileServerIdentitySummary {\n subaccount: Hex;\n username: string | null;\n display_name: string | null;\n /** Reserved for a future avatar source; `null` until one is implemented. */\n avatar_url: string | null;\n}\n\n/**\n * Server-side follow summary (snake_case), nested in a `profiles` entry when the `follow_summary` include is\n * requested. `is_following` is the direct `view_as -> this profile` relationship; every `followed_by` entry\n * satisfies both `view_as -> entry` and `entry -> this profile`, so each one is already familiar to the\n * viewer and carries no `is_following` of its own.\n */\nexport interface MobileServerFollowSummary {\n is_following: boolean;\n /** Exact size of the two-edge intersection, independent of how many previews came back. */\n followed_by_count: number;\n /** Capped at `MOBILE_FOLLOWED_BY_PREVIEW_LIMIT` (2) by the backend; not client-configurable. */\n followed_by: MobileServerIdentitySummary[];\n}\n\n/**\n * Server-side public profile shape (snake_case), shared by the singular `profile` and batched `profiles`\n * queries. Name fields are `null` until the subaccount claims a username; a subaccount with no identity row\n * still yields an entry, with `null` names and `private_mode: false`.\n *\n * The three optional fields are omitted from the wire entirely unless the matching `profiles` include asked\n * for them, which is why they are optional rather than nullable — absent means \"not requested\", not \"none\".\n * The singular `profile` query never returns any of them.\n */\nexport interface MobileServerProfile {\n subaccount: Hex;\n username: string | null;\n display_name: string | null;\n private_mode: boolean;\n /**\n * Exact count at query time — the backend counts rather than reading a cached counter. Unnamed and private\n * accounts are included: Private Mode hides activity, not relationships. Requires `follow_counts`.\n */\n follower_count?: number;\n following_count?: number;\n /** Requires the `follow_summary` include, and is relative to that include's `view_as`. */\n follow_summary?: MobileServerFollowSummary;\n}\n\n/**\n * Server-side row of a Followers or Following page (snake_case).\n */\nexport interface MobileServerFollowListAccount {\n identity: MobileServerIdentitySummary;\n /**\n * The `view_as` Viewer's relationship to this account, not the listed relationship that put it in the\n * page, so it is `false` on the Viewer's own row. Omitted entirely when the request named no `view_as`,\n * rather than being sent as a misleading `false`.\n */\n is_following?: boolean;\n /** The listed account's own follower count, exact at query time. */\n follower_count: number;\n}\n\n/**\n * Direction of the position a feed trade resulted in — for `closed`, the direction that was closed. This is\n * NOT the execution buy/sell side, which the feed does not expose. Aliases {@link BalanceSide} so the feed's\n * direction values stay in lockstep with the rest of the SDK.\n */\nexport type MobileFeedTradePositionDirection = BalanceSide;\n\n/**\n * Every {@link MobileFeedTradePositionDirection} the feed can report, for callers that need the values at\n * runtime (validation, filters, UI enumeration).\n */\nexport const MOBILE_FEED_TRADE_POSITION_DIRECTIONS = [\n 'long',\n 'short',\n] as const satisfies readonly MobileFeedTradePositionDirection[];\n\n/**\n * Every {@link MobileFeedTradePositionEffect} the feed can report, for callers that need the values at\n * runtime (validation, filters, UI enumeration).\n */\nexport const MOBILE_FEED_TRADE_POSITION_EFFECTS = [\n 'opened',\n 'increased',\n 'reduced',\n 'closed',\n 'flipped',\n] as const;\n\n/**\n * How a feed trade changed the trader's position in the product.\n */\nexport type MobileFeedTradePositionEffect =\n (typeof MOBILE_FEED_TRADE_POSITION_EFFECTS)[number];\n\n/**\n * Position change of a feed trade. Both keys are single words, so the wire and client shapes are identical\n * and this type is shared by {@link MobileServerFeedTrade} and the client-side `MobileFeedTrade`.\n */\nexport interface MobileFeedTradePosition {\n direction: MobileFeedTradePositionDirection;\n effect: MobileFeedTradePositionEffect;\n}\n\n/**\n * Every {@link MobileFeedMarginMode} the feed can report, for callers that need the values at runtime\n * (validation, filters, UI enumeration).\n */\nexport const MOBILE_FEED_MARGIN_MODES = ['cross', 'isolated'] as const;\n\n/**\n * Margin mode a feed trade was executed under. Shared by the wire and client margin shapes.\n */\nexport type MobileFeedMarginMode = (typeof MOBILE_FEED_MARGIN_MODES)[number];\n\n/**\n * Server-side margin of a feed trade. Branch on `mode` — do not infer isolated state from leverage presence:\n * `estimated_leverage` (a rounded whole-number estimate, not exact submitted leverage) is omitted on `cross`,\n * and also omitted inside `isolated` when no estimate is available.\n */\nexport interface MobileServerFeedMargin {\n mode: MobileFeedMarginMode;\n estimated_leverage?: number;\n}\n\n/**\n * Server-side feed trade shape (snake_case): one row per order digest, enriched at read time with the\n * trader's current identity. Amounts are display-oriented human-unit JSON numbers — do not use them for\n * accounting, order construction, or exact threshold decisions.\n */\nexport interface MobileServerFeedTrade extends MobileServerIdentitySummary {\n /** Order digest this row is keyed by; the stable id clients use to reconcile live pagination. */\n order_digest: Hex;\n product_id: number;\n /** Executed quantity in human units. */\n quantity: number;\n /** Trade notional in whole-dollar human units. */\n notional: number;\n /** Average execution price in human units. */\n average_price: number;\n margin: MobileServerFeedMargin;\n position: MobileFeedTradePosition;\n /** Realized PnL of the trade in human units; can be negative. */\n realized_pnl: number;\n /** Fill time as JavaScript-safe integer Unix milliseconds. */\n filled_at_ms: number;\n}\n\n/**\n * Server-side scope limiting a notification category preference. Scopes are rejected by the backend for the\n * MVP (`scopes` must be empty) but are part of the wire format.\n */\nexport type MobileServerNotificationPreferenceScope =\n | { type: 'subaccount'; subaccount: Hex }\n | { type: 'product'; product_id: number };\n\n/**\n * Server-side per-category notification preference (snake_case).\n */\nexport interface MobileServerNotificationCategoryPreference {\n category: MobileNotificationCategory;\n enabled: boolean;\n scopes: MobileServerNotificationPreferenceScope[];\n}\n\n/**\n * Server-side notification preferences shape (snake_case), used in both the `update_preferences` public\n * execute and the `notification_preferences` public query response.\n */\nexport interface MobileServerNotificationPreferences {\n /** Only `1` is accepted by the backend for the MVP. */\n schema_version: 1;\n categories: MobileServerNotificationCategoryPreference[];\n}\n"],"mappings":";;;;;;AAgGA,MAAa,wCAAwC,CACnD,QACA,OACF;;;;;AAMA,MAAa,qCAAqC;CAChD;CACA;CACA;CACA;CACA;AACF;;;;;AAqBA,MAAa,2BAA2B,CAAC,SAAS,UAAU"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as MobileFeedTradePosition, c as MobileNotificationCategory, d as MobileServerFeedTrade, f as
|
|
2
|
-
export { MOBILE_FEED_MARGIN_MODES, MOBILE_FEED_TRADE_POSITION_DIRECTIONS, MOBILE_FEED_TRADE_POSITION_EFFECTS, MobileFeedMarginMode, MobileFeedTradePosition, MobileFeedTradePositionDirection, MobileFeedTradePositionEffect, MobileNotificationCategory, MobileNotificationPlatform, MobileServerFeedMargin, MobileServerFeedTrade, MobileServerNotificationCategoryPreference, MobileServerNotificationPreferenceScope, MobileServerNotificationPreferences, MobileServerProfile };
|
|
1
|
+
import { _ as MobileServerNotificationPreferences, a as MobileFeedTradePosition, c as MobileNotificationCategory, d as MobileServerFeedTrade, f as MobileServerFollowListAccount, g as MobileServerNotificationPreferenceScope, h as MobileServerNotificationCategoryPreference, i as MobileFeedMarginMode, l as MobileNotificationPlatform, m as MobileServerIdentitySummary, n as MOBILE_FEED_TRADE_POSITION_DIRECTIONS, o as MobileFeedTradePositionDirection, p as MobileServerFollowSummary, r as MOBILE_FEED_TRADE_POSITION_EFFECTS, s as MobileFeedTradePositionEffect, t as MOBILE_FEED_MARGIN_MODES, u as MobileServerFeedMargin, v as MobileServerProfile } from "../serverModelTypes-CUzqFA6x.cjs";
|
|
2
|
+
export { MOBILE_FEED_MARGIN_MODES, MOBILE_FEED_TRADE_POSITION_DIRECTIONS, MOBILE_FEED_TRADE_POSITION_EFFECTS, MobileFeedMarginMode, MobileFeedTradePosition, MobileFeedTradePositionDirection, MobileFeedTradePositionEffect, MobileNotificationCategory, MobileNotificationPlatform, MobileServerFeedMargin, MobileServerFeedTrade, MobileServerFollowListAccount, MobileServerFollowSummary, MobileServerIdentitySummary, MobileServerNotificationCategoryPreference, MobileServerNotificationPreferenceScope, MobileServerNotificationPreferences, MobileServerProfile };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as MobileFeedTradePosition, c as MobileNotificationCategory, d as MobileServerFeedTrade, f as
|
|
2
|
-
export { MOBILE_FEED_MARGIN_MODES, MOBILE_FEED_TRADE_POSITION_DIRECTIONS, MOBILE_FEED_TRADE_POSITION_EFFECTS, MobileFeedMarginMode, MobileFeedTradePosition, MobileFeedTradePositionDirection, MobileFeedTradePositionEffect, MobileNotificationCategory, MobileNotificationPlatform, MobileServerFeedMargin, MobileServerFeedTrade, MobileServerNotificationCategoryPreference, MobileServerNotificationPreferenceScope, MobileServerNotificationPreferences, MobileServerProfile };
|
|
1
|
+
import { _ as MobileServerNotificationPreferences, a as MobileFeedTradePosition, c as MobileNotificationCategory, d as MobileServerFeedTrade, f as MobileServerFollowListAccount, g as MobileServerNotificationPreferenceScope, h as MobileServerNotificationCategoryPreference, i as MobileFeedMarginMode, l as MobileNotificationPlatform, m as MobileServerIdentitySummary, n as MOBILE_FEED_TRADE_POSITION_DIRECTIONS, o as MobileFeedTradePositionDirection, p as MobileServerFollowSummary, r as MOBILE_FEED_TRADE_POSITION_EFFECTS, s as MobileFeedTradePositionEffect, t as MOBILE_FEED_MARGIN_MODES, u as MobileServerFeedMargin, v as MobileServerProfile } from "../serverModelTypes-CDcRlRtw.js";
|
|
2
|
+
export { MOBILE_FEED_MARGIN_MODES, MOBILE_FEED_TRADE_POSITION_DIRECTIONS, MOBILE_FEED_TRADE_POSITION_EFFECTS, MobileFeedMarginMode, MobileFeedTradePosition, MobileFeedTradePositionDirection, MobileFeedTradePositionEffect, MobileNotificationCategory, MobileNotificationPlatform, MobileServerFeedMargin, MobileServerFeedTrade, MobileServerFollowListAccount, MobileServerFollowSummary, MobileServerIdentitySummary, MobileServerNotificationCategoryPreference, MobileServerNotificationPreferenceScope, MobileServerNotificationPreferences, MobileServerProfile };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serverModelTypes.js","names":[],"sources":["../../src/types/serverModelTypes.ts"],"sourcesContent":["import { BalanceSide } from '@nadohq/shared';\nimport { Hex } from 'viem';\n\n/**\n * Platform of a device registered for push notifications.\n */\nexport type MobileNotificationPlatform = 'ios' | 'android';\n\n/**\n * Category of push notification.\n */\nexport type MobileNotificationCategory =\n | 'order_fill'\n | 'order_update'\n | 'liquidation'\n | 'funding'\n | 'product_listing'\n | 'announcement';\n\n/**\n * Server-side public profile shape (snake_case). Name fields are `null` until the subaccount claims a\n *
|
|
1
|
+
{"version":3,"file":"serverModelTypes.js","names":[],"sources":["../../src/types/serverModelTypes.ts"],"sourcesContent":["import { BalanceSide } from '@nadohq/shared';\nimport { Hex } from 'viem';\n\n/**\n * Platform of a device registered for push notifications.\n */\nexport type MobileNotificationPlatform = 'ios' | 'android';\n\n/**\n * Category of push notification.\n */\nexport type MobileNotificationCategory =\n | 'order_fill'\n | 'order_update'\n | 'liquidation'\n | 'funding'\n | 'product_listing'\n | 'announcement';\n\n/**\n * Server-side identity summary (snake_case): the read-time identity fields the backend attaches to a\n * subaccount wherever it surfaces one alongside other data. Name fields are `null` until the subaccount\n * claims a username, and a rename shows up on the next read without any change to the surrounding record.\n */\nexport interface MobileServerIdentitySummary {\n subaccount: Hex;\n username: string | null;\n display_name: string | null;\n /** Reserved for a future avatar source; `null` until one is implemented. */\n avatar_url: string | null;\n}\n\n/**\n * Server-side follow summary (snake_case), nested in a `profiles` entry when the `follow_summary` include is\n * requested. `is_following` is the direct `view_as -> this profile` relationship; every `followed_by` entry\n * satisfies both `view_as -> entry` and `entry -> this profile`, so each one is already familiar to the\n * viewer and carries no `is_following` of its own.\n */\nexport interface MobileServerFollowSummary {\n is_following: boolean;\n /** Exact size of the two-edge intersection, independent of how many previews came back. */\n followed_by_count: number;\n /** Capped at `MOBILE_FOLLOWED_BY_PREVIEW_LIMIT` (2) by the backend; not client-configurable. */\n followed_by: MobileServerIdentitySummary[];\n}\n\n/**\n * Server-side public profile shape (snake_case), shared by the singular `profile` and batched `profiles`\n * queries. Name fields are `null` until the subaccount claims a username; a subaccount with no identity row\n * still yields an entry, with `null` names and `private_mode: false`.\n *\n * The three optional fields are omitted from the wire entirely unless the matching `profiles` include asked\n * for them, which is why they are optional rather than nullable — absent means \"not requested\", not \"none\".\n * The singular `profile` query never returns any of them.\n */\nexport interface MobileServerProfile {\n subaccount: Hex;\n username: string | null;\n display_name: string | null;\n private_mode: boolean;\n /**\n * Exact count at query time — the backend counts rather than reading a cached counter. Unnamed and private\n * accounts are included: Private Mode hides activity, not relationships. Requires `follow_counts`.\n */\n follower_count?: number;\n following_count?: number;\n /** Requires the `follow_summary` include, and is relative to that include's `view_as`. */\n follow_summary?: MobileServerFollowSummary;\n}\n\n/**\n * Server-side row of a Followers or Following page (snake_case).\n */\nexport interface MobileServerFollowListAccount {\n identity: MobileServerIdentitySummary;\n /**\n * The `view_as` Viewer's relationship to this account, not the listed relationship that put it in the\n * page, so it is `false` on the Viewer's own row. Omitted entirely when the request named no `view_as`,\n * rather than being sent as a misleading `false`.\n */\n is_following?: boolean;\n /** The listed account's own follower count, exact at query time. */\n follower_count: number;\n}\n\n/**\n * Direction of the position a feed trade resulted in — for `closed`, the direction that was closed. This is\n * NOT the execution buy/sell side, which the feed does not expose. Aliases {@link BalanceSide} so the feed's\n * direction values stay in lockstep with the rest of the SDK.\n */\nexport type MobileFeedTradePositionDirection = BalanceSide;\n\n/**\n * Every {@link MobileFeedTradePositionDirection} the feed can report, for callers that need the values at\n * runtime (validation, filters, UI enumeration).\n */\nexport const MOBILE_FEED_TRADE_POSITION_DIRECTIONS = [\n 'long',\n 'short',\n] as const satisfies readonly MobileFeedTradePositionDirection[];\n\n/**\n * Every {@link MobileFeedTradePositionEffect} the feed can report, for callers that need the values at\n * runtime (validation, filters, UI enumeration).\n */\nexport const MOBILE_FEED_TRADE_POSITION_EFFECTS = [\n 'opened',\n 'increased',\n 'reduced',\n 'closed',\n 'flipped',\n] as const;\n\n/**\n * How a feed trade changed the trader's position in the product.\n */\nexport type MobileFeedTradePositionEffect =\n (typeof MOBILE_FEED_TRADE_POSITION_EFFECTS)[number];\n\n/**\n * Position change of a feed trade. Both keys are single words, so the wire and client shapes are identical\n * and this type is shared by {@link MobileServerFeedTrade} and the client-side `MobileFeedTrade`.\n */\nexport interface MobileFeedTradePosition {\n direction: MobileFeedTradePositionDirection;\n effect: MobileFeedTradePositionEffect;\n}\n\n/**\n * Every {@link MobileFeedMarginMode} the feed can report, for callers that need the values at runtime\n * (validation, filters, UI enumeration).\n */\nexport const MOBILE_FEED_MARGIN_MODES = ['cross', 'isolated'] as const;\n\n/**\n * Margin mode a feed trade was executed under. Shared by the wire and client margin shapes.\n */\nexport type MobileFeedMarginMode = (typeof MOBILE_FEED_MARGIN_MODES)[number];\n\n/**\n * Server-side margin of a feed trade. Branch on `mode` — do not infer isolated state from leverage presence:\n * `estimated_leverage` (a rounded whole-number estimate, not exact submitted leverage) is omitted on `cross`,\n * and also omitted inside `isolated` when no estimate is available.\n */\nexport interface MobileServerFeedMargin {\n mode: MobileFeedMarginMode;\n estimated_leverage?: number;\n}\n\n/**\n * Server-side feed trade shape (snake_case): one row per order digest, enriched at read time with the\n * trader's current identity. Amounts are display-oriented human-unit JSON numbers — do not use them for\n * accounting, order construction, or exact threshold decisions.\n */\nexport interface MobileServerFeedTrade extends MobileServerIdentitySummary {\n /** Order digest this row is keyed by; the stable id clients use to reconcile live pagination. */\n order_digest: Hex;\n product_id: number;\n /** Executed quantity in human units. */\n quantity: number;\n /** Trade notional in whole-dollar human units. */\n notional: number;\n /** Average execution price in human units. */\n average_price: number;\n margin: MobileServerFeedMargin;\n position: MobileFeedTradePosition;\n /** Realized PnL of the trade in human units; can be negative. */\n realized_pnl: number;\n /** Fill time as JavaScript-safe integer Unix milliseconds. */\n filled_at_ms: number;\n}\n\n/**\n * Server-side scope limiting a notification category preference. Scopes are rejected by the backend for the\n * MVP (`scopes` must be empty) but are part of the wire format.\n */\nexport type MobileServerNotificationPreferenceScope =\n | { type: 'subaccount'; subaccount: Hex }\n | { type: 'product'; product_id: number };\n\n/**\n * Server-side per-category notification preference (snake_case).\n */\nexport interface MobileServerNotificationCategoryPreference {\n category: MobileNotificationCategory;\n enabled: boolean;\n scopes: MobileServerNotificationPreferenceScope[];\n}\n\n/**\n * Server-side notification preferences shape (snake_case), used in both the `update_preferences` public\n * execute and the `notification_preferences` public query response.\n */\nexport interface MobileServerNotificationPreferences {\n /** Only `1` is accepted by the backend for the MVP. */\n schema_version: 1;\n categories: MobileServerNotificationCategoryPreference[];\n}\n"],"mappings":";;;;;AAgGA,MAAa,wCAAwC,CACnD,QACA,OACF;;;;;AAMA,MAAa,qCAAqC;CAChD;CACA;CACA;CACA;CACA;AACF;;;;;AAqBA,MAAa,2BAA2B,CAAC,SAAS,UAAU"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
export { MobileServerFeedResponse, MobileServerNotificationPreferencesResponse,
|
|
1
|
+
import { a as MobileServerPublicQueryRequest, c as MobileServerRegisteredWalletResponse, i as MobileServerProfilesResponse, l as MobileServerUsernameAvailabilityResponse, n as MobileServerFollowListResponse, o as MobileServerPublicQueryResponseByType, r as MobileServerNotificationPreferencesResponse, s as MobileServerPublicQuerySuccessResponse, t as MobileServerFeedResponse } from "../serverQueryTypes-RdcIqRnM.cjs";
|
|
2
|
+
export { MobileServerFeedResponse, MobileServerFollowListResponse, MobileServerNotificationPreferencesResponse, MobileServerProfilesResponse, MobileServerPublicQueryRequest, MobileServerPublicQueryResponseByType, MobileServerPublicQuerySuccessResponse, MobileServerRegisteredWalletResponse, MobileServerUsernameAvailabilityResponse };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
export { MobileServerFeedResponse, MobileServerNotificationPreferencesResponse,
|
|
1
|
+
import { a as MobileServerPublicQueryRequest, c as MobileServerRegisteredWalletResponse, i as MobileServerProfilesResponse, l as MobileServerUsernameAvailabilityResponse, n as MobileServerFollowListResponse, o as MobileServerPublicQueryResponseByType, r as MobileServerNotificationPreferencesResponse, s as MobileServerPublicQuerySuccessResponse, t as MobileServerFeedResponse } from "../serverQueryTypes-B0xI1G39.js";
|
|
2
|
+
export { MobileServerFeedResponse, MobileServerFollowListResponse, MobileServerNotificationPreferencesResponse, MobileServerProfilesResponse, MobileServerPublicQueryRequest, MobileServerPublicQueryResponseByType, MobileServerPublicQuerySuccessResponse, MobileServerRegisteredWalletResponse, MobileServerUsernameAvailabilityResponse };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
export { MobileServerExecuteRequestType, MobileServerPublicExecuteRequestByType, MobileServerPublicExecuteRequestType, MobileServerPublicQueryRequestByType, MobileServerPublicQueryRequestType, MobileServerRequestType };
|
|
1
|
+
import { a as MobileServerPublicExecuteRequestType, c as MobileServerRequestType, i as MobileServerPublicExecuteRequestByType, n as MobileServerFollowListRequest, o as MobileServerPublicQueryRequestByType, r as MobileServerProfilesInclude, s as MobileServerPublicQueryRequestType, t as MobileServerExecuteRequestType } from "../serverRequestTypes-Ddws3yXc.cjs";
|
|
2
|
+
export { MobileServerExecuteRequestType, MobileServerFollowListRequest, MobileServerProfilesInclude, MobileServerPublicExecuteRequestByType, MobileServerPublicExecuteRequestType, MobileServerPublicQueryRequestByType, MobileServerPublicQueryRequestType, MobileServerRequestType };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
export { MobileServerExecuteRequestType, MobileServerPublicExecuteRequestByType, MobileServerPublicExecuteRequestType, MobileServerPublicQueryRequestByType, MobileServerPublicQueryRequestType, MobileServerRequestType };
|
|
1
|
+
import { a as MobileServerPublicExecuteRequestType, c as MobileServerRequestType, i as MobileServerPublicExecuteRequestByType, n as MobileServerFollowListRequest, o as MobileServerPublicQueryRequestByType, r as MobileServerProfilesInclude, s as MobileServerPublicQueryRequestType, t as MobileServerExecuteRequestType } from "../serverRequestTypes-Dv9NR-hQ.js";
|
|
2
|
+
export { MobileServerExecuteRequestType, MobileServerFollowListRequest, MobileServerProfilesInclude, MobileServerPublicExecuteRequestByType, MobileServerPublicExecuteRequestType, MobileServerPublicQueryRequestByType, MobileServerPublicQueryRequestType, MobileServerRequestType };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { l as MobileNotificationPlatform } from "./serverModelTypes-
|
|
2
|
-
import {
|
|
1
|
+
import { l as MobileNotificationPlatform } from "./serverModelTypes-CDcRlRtw.js";
|
|
2
|
+
import { D as MobileSignedRequestParams } from "./clientTypes-CB_itU4Z.js";
|
|
3
3
|
import { WalletClientWithAccount } from "@nadohq/shared";
|
|
4
4
|
import { Hex } from "viem";
|
|
5
5
|
|
|
@@ -12,6 +12,11 @@ import { Hex } from "viem";
|
|
|
12
12
|
* declares its structs — `type` first, then the remaining fields — or the hash won't match and signature
|
|
13
13
|
* verification fails. This type only describes the shape; the authoritative runtime key order is enforced by
|
|
14
14
|
* {@link canonicalizeMobileInner}, which is the source of truth. Keep the field order here in sync with it.
|
|
15
|
+
*
|
|
16
|
+
* Every bytes32 field must be lowercase hex. The backend decodes them case-insensitively but hashes its own
|
|
17
|
+
* re-serialization, which is always lowercase, so a mixed-case value is accepted on the wire and then fails
|
|
18
|
+
* authentication against a hash the client never reproduced. Build them with `subaccountToHex`, which
|
|
19
|
+
* lowercases; unlike bytes32, string fields such as `display_name` are hashed as-is and keep their casing.
|
|
15
20
|
*/
|
|
16
21
|
type MobileSignedInner = {
|
|
17
22
|
type: 'set_username';
|
|
@@ -25,14 +30,22 @@ type MobileSignedInner = {
|
|
|
25
30
|
platform: MobileNotificationPlatform;
|
|
26
31
|
locale: string | null;
|
|
27
32
|
app_version: string | null;
|
|
33
|
+
} | {
|
|
34
|
+
type: 'set_follow';
|
|
35
|
+
subaccount: Hex; /** `true` follows the target, `false` unfollows it. Both directions are idempotent. */
|
|
36
|
+
is_following: boolean;
|
|
28
37
|
};
|
|
38
|
+
/**
|
|
39
|
+
* The single {@link MobileSignedInner} member carrying the given `type` tag.
|
|
40
|
+
*/
|
|
41
|
+
type MobileSignedInnerByType<T extends MobileSignedInner['type']> = Extract<MobileSignedInner, {
|
|
42
|
+
type: T;
|
|
43
|
+
}>;
|
|
29
44
|
/**
|
|
30
45
|
* Type-specific payload fields for a signed inner request of a given `type` (the inner payload without its
|
|
31
46
|
* `type` tag). Derived from {@link MobileSignedInner} so the two never drift apart.
|
|
32
47
|
*/
|
|
33
|
-
type MobileSignedInnerParams<T extends MobileSignedInner['type']> = Omit<
|
|
34
|
-
type: T;
|
|
35
|
-
}>, 'type'>;
|
|
48
|
+
type MobileSignedInnerParams<T extends MobileSignedInner['type']> = Omit<MobileSignedInnerByType<T>, 'type'>;
|
|
36
49
|
/**
|
|
37
50
|
* A signed mobile service API request body: the inner payload flattened with its signature, sender, and
|
|
38
51
|
* nonce (unlike the engine client, which wraps params under a `{ [type]: params }` key).
|
|
@@ -54,5 +67,5 @@ interface BuildSignedMobileRequestParams extends MobileSignedRequestParams {
|
|
|
54
67
|
nonce?: bigint;
|
|
55
68
|
}
|
|
56
69
|
//#endregion
|
|
57
|
-
export { MobileSignedRequest as i, MobileSignedInner as n,
|
|
58
|
-
//# sourceMappingURL=types-
|
|
70
|
+
export { MobileSignedRequest as a, MobileSignedInnerParams as i, MobileSignedInner as n, MobileSignedInnerByType as r, BuildSignedMobileRequestParams as t };
|
|
71
|
+
//# sourceMappingURL=types-BIIvIzG2.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types-BIIvIzG2.d.ts","names":[],"sources":["../src/signing/src/signing/types.ts"],"mappings":";;;;;;;;AAmBA;;;;;;;;;;;;KAAY,iBAAA;EACN,IAAA;EAAsB,YAAA;AAAA;EACtB,IAAA;EAA0B,YAAA;AAAA;EAE1B,IAAA;EACA,UAAA;EACA,QAAA,EAAU,0BAAA;EAGV,MAAA;EACA,WAAA;AAAA;EAGA,IAAA;EACA,UAAA,EAAY,GAAG,EASZ;EAPH,YAAA;AAAA;;;;KAMM,uBAAA,WAAkC,iBAAA,YAC5C,OAAA,CAAQ,iBAAA;EAAqB,IAAA,EAAM,CAAA;AAAA;AAAC;AAMtC;;;AANsC,KAM1B,uBAAA,WAAkC,iBAAA,YAA6B,IAAA,CACzE,uBAAA,CAAwB,CAAA;;;;;KAQd,mBAAA,WACA,iBAAA,GAAoB,iBAAA,IAC5B,CAAA;EACF,SAAA,EAAW,GAAA;EACX,MAAA,EAAQ,GAAA;EACR,KAAA;AAAA;;;AAbyB;UAmBV,8BAAA,SAAuC,yBAAA;EACtD,YAAA,EAAc,uBAAA;EACd,KAAA,EAAO,iBAAA;EAZG;;;EAgBV,KAAA;AAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { l as MobileNotificationPlatform } from "./serverModelTypes-
|
|
2
|
-
import {
|
|
1
|
+
import { l as MobileNotificationPlatform } from "./serverModelTypes-CUzqFA6x.cjs";
|
|
2
|
+
import { D as MobileSignedRequestParams } from "./clientTypes-CceWsQzi.cjs";
|
|
3
3
|
import { WalletClientWithAccount } from "@nadohq/shared";
|
|
4
4
|
import { Hex } from "viem";
|
|
5
5
|
|
|
@@ -12,6 +12,11 @@ import { Hex } from "viem";
|
|
|
12
12
|
* declares its structs — `type` first, then the remaining fields — or the hash won't match and signature
|
|
13
13
|
* verification fails. This type only describes the shape; the authoritative runtime key order is enforced by
|
|
14
14
|
* {@link canonicalizeMobileInner}, which is the source of truth. Keep the field order here in sync with it.
|
|
15
|
+
*
|
|
16
|
+
* Every bytes32 field must be lowercase hex. The backend decodes them case-insensitively but hashes its own
|
|
17
|
+
* re-serialization, which is always lowercase, so a mixed-case value is accepted on the wire and then fails
|
|
18
|
+
* authentication against a hash the client never reproduced. Build them with `subaccountToHex`, which
|
|
19
|
+
* lowercases; unlike bytes32, string fields such as `display_name` are hashed as-is and keep their casing.
|
|
15
20
|
*/
|
|
16
21
|
type MobileSignedInner = {
|
|
17
22
|
type: 'set_username';
|
|
@@ -25,14 +30,22 @@ type MobileSignedInner = {
|
|
|
25
30
|
platform: MobileNotificationPlatform;
|
|
26
31
|
locale: string | null;
|
|
27
32
|
app_version: string | null;
|
|
33
|
+
} | {
|
|
34
|
+
type: 'set_follow';
|
|
35
|
+
subaccount: Hex; /** `true` follows the target, `false` unfollows it. Both directions are idempotent. */
|
|
36
|
+
is_following: boolean;
|
|
28
37
|
};
|
|
38
|
+
/**
|
|
39
|
+
* The single {@link MobileSignedInner} member carrying the given `type` tag.
|
|
40
|
+
*/
|
|
41
|
+
type MobileSignedInnerByType<T extends MobileSignedInner['type']> = Extract<MobileSignedInner, {
|
|
42
|
+
type: T;
|
|
43
|
+
}>;
|
|
29
44
|
/**
|
|
30
45
|
* Type-specific payload fields for a signed inner request of a given `type` (the inner payload without its
|
|
31
46
|
* `type` tag). Derived from {@link MobileSignedInner} so the two never drift apart.
|
|
32
47
|
*/
|
|
33
|
-
type MobileSignedInnerParams<T extends MobileSignedInner['type']> = Omit<
|
|
34
|
-
type: T;
|
|
35
|
-
}>, 'type'>;
|
|
48
|
+
type MobileSignedInnerParams<T extends MobileSignedInner['type']> = Omit<MobileSignedInnerByType<T>, 'type'>;
|
|
36
49
|
/**
|
|
37
50
|
* A signed mobile service API request body: the inner payload flattened with its signature, sender, and
|
|
38
51
|
* nonce (unlike the engine client, which wraps params under a `{ [type]: params }` key).
|
|
@@ -54,5 +67,5 @@ interface BuildSignedMobileRequestParams extends MobileSignedRequestParams {
|
|
|
54
67
|
nonce?: bigint;
|
|
55
68
|
}
|
|
56
69
|
//#endregion
|
|
57
|
-
export { MobileSignedRequest as i, MobileSignedInner as n,
|
|
58
|
-
//# sourceMappingURL=types-
|
|
70
|
+
export { MobileSignedRequest as a, MobileSignedInnerParams as i, MobileSignedInner as n, MobileSignedInnerByType as r, BuildSignedMobileRequestParams as t };
|
|
71
|
+
//# sourceMappingURL=types-UmYaeq1C.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types-UmYaeq1C.d.cts","names":[],"sources":["../src/signing/src/signing/types.ts"],"mappings":";;;;;;;;AAmBA;;;;;;;;;;;;KAAY,iBAAA;EACN,IAAA;EAAsB,YAAA;AAAA;EACtB,IAAA;EAA0B,YAAA;AAAA;EAE1B,IAAA;EACA,UAAA;EACA,QAAA,EAAU,0BAAA;EAGV,MAAA;EACA,WAAA;AAAA;EAGA,IAAA;EACA,UAAA,EAAY,GAAG,EASZ;EAPH,YAAA;AAAA;;;;KAMM,uBAAA,WAAkC,iBAAA,YAC5C,OAAA,CAAQ,iBAAA;EAAqB,IAAA,EAAM,CAAA;AAAA;AAAC;AAMtC;;;AANsC,KAM1B,uBAAA,WAAkC,iBAAA,YAA6B,IAAA,CACzE,uBAAA,CAAwB,CAAA;;;;;KAQd,mBAAA,WACA,iBAAA,GAAoB,iBAAA,IAC5B,CAAA;EACF,SAAA,EAAW,GAAA;EACX,MAAA,EAAQ,GAAA;EACR,KAAA;AAAA;;;AAbyB;UAmBV,8BAAA,SAAuC,yBAAA;EACtD,YAAA,EAAc,uBAAA;EACd,KAAA,EAAO,iBAAA;EAZG;;;EAgBV,KAAA;AAAA"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
//#region src/utils/follow.ts
|
|
3
|
+
/**
|
|
4
|
+
* Maximum Followers/Following page size the backend accepts. Requests outside 1–50 fail with
|
|
5
|
+
* `INVALID_FOLLOW_LIMIT`.
|
|
6
|
+
*/
|
|
7
|
+
const MOBILE_FOLLOW_LIST_MAX_PAGE_SIZE = 50;
|
|
8
|
+
/**
|
|
9
|
+
* Page size the backend uses when `limit` is omitted from a Followers or Following request.
|
|
10
|
+
*/
|
|
11
|
+
const MOBILE_FOLLOW_LIST_DEFAULT_PAGE_SIZE = 25;
|
|
12
|
+
/**
|
|
13
|
+
* Number of Followed By preview identities a follow summary carries. Fixed by the backend rather than
|
|
14
|
+
* requested, so use it to size the preview UI; `followedByCount` still reports the full intersection.
|
|
15
|
+
*/
|
|
16
|
+
const MOBILE_FOLLOWED_BY_PREVIEW_LIMIT = 2;
|
|
17
|
+
/**
|
|
18
|
+
* Maximum number of subaccounts a single profiles lookup accepts. An empty list, a duplicate, or more than
|
|
19
|
+
* this many fail with `INVALID_PROFILES_REQUEST`.
|
|
20
|
+
*/
|
|
21
|
+
const MOBILE_PROFILES_MAX_BATCH_SIZE = 25;
|
|
22
|
+
//#endregion
|
|
23
|
+
exports.MOBILE_FOLLOWED_BY_PREVIEW_LIMIT = MOBILE_FOLLOWED_BY_PREVIEW_LIMIT;
|
|
24
|
+
exports.MOBILE_FOLLOW_LIST_DEFAULT_PAGE_SIZE = MOBILE_FOLLOW_LIST_DEFAULT_PAGE_SIZE;
|
|
25
|
+
exports.MOBILE_FOLLOW_LIST_MAX_PAGE_SIZE = MOBILE_FOLLOW_LIST_MAX_PAGE_SIZE;
|
|
26
|
+
exports.MOBILE_PROFILES_MAX_BATCH_SIZE = MOBILE_PROFILES_MAX_BATCH_SIZE;
|
|
27
|
+
|
|
28
|
+
//# sourceMappingURL=follow.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"follow.cjs","names":[],"sources":["../../src/utils/follow.ts"],"sourcesContent":["/**\n * Maximum Followers/Following page size the backend accepts. Requests outside 1–50 fail with\n * `INVALID_FOLLOW_LIMIT`.\n */\nexport const MOBILE_FOLLOW_LIST_MAX_PAGE_SIZE = 50;\n\n/**\n * Page size the backend uses when `limit` is omitted from a Followers or Following request.\n */\nexport const MOBILE_FOLLOW_LIST_DEFAULT_PAGE_SIZE = 25;\n\n/**\n * Number of Followed By preview identities a follow summary carries. Fixed by the backend rather than\n * requested, so use it to size the preview UI; `followedByCount` still reports the full intersection.\n */\nexport const MOBILE_FOLLOWED_BY_PREVIEW_LIMIT = 2;\n\n/**\n * Maximum number of subaccounts a single profiles lookup accepts. An empty list, a duplicate, or more than\n * this many fail with `INVALID_PROFILES_REQUEST`.\n */\nexport const MOBILE_PROFILES_MAX_BATCH_SIZE = 25;\n"],"mappings":";;;;;;AAIA,MAAa,mCAAmC;;;;AAKhD,MAAa,uCAAuC;;;;;AAMpD,MAAa,mCAAmC;;;;;AAMhD,MAAa,iCAAiC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { i as MOBILE_PROFILES_MAX_BATCH_SIZE, n as MOBILE_FOLLOW_LIST_DEFAULT_PAGE_SIZE, r as MOBILE_FOLLOW_LIST_MAX_PAGE_SIZE, t as MOBILE_FOLLOWED_BY_PREVIEW_LIMIT } from "../follow-Bh3UmXMc.cjs";
|
|
2
|
+
export { MOBILE_FOLLOWED_BY_PREVIEW_LIMIT, MOBILE_FOLLOW_LIST_DEFAULT_PAGE_SIZE, MOBILE_FOLLOW_LIST_MAX_PAGE_SIZE, MOBILE_PROFILES_MAX_BATCH_SIZE };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { i as MOBILE_PROFILES_MAX_BATCH_SIZE, n as MOBILE_FOLLOW_LIST_DEFAULT_PAGE_SIZE, r as MOBILE_FOLLOW_LIST_MAX_PAGE_SIZE, t as MOBILE_FOLLOWED_BY_PREVIEW_LIMIT } from "../follow-DjkQm1vR.js";
|
|
2
|
+
export { MOBILE_FOLLOWED_BY_PREVIEW_LIMIT, MOBILE_FOLLOW_LIST_DEFAULT_PAGE_SIZE, MOBILE_FOLLOW_LIST_MAX_PAGE_SIZE, MOBILE_PROFILES_MAX_BATCH_SIZE };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
//#region src/utils/follow.ts
|
|
2
|
+
/**
|
|
3
|
+
* Maximum Followers/Following page size the backend accepts. Requests outside 1–50 fail with
|
|
4
|
+
* `INVALID_FOLLOW_LIMIT`.
|
|
5
|
+
*/
|
|
6
|
+
const MOBILE_FOLLOW_LIST_MAX_PAGE_SIZE = 50;
|
|
7
|
+
/**
|
|
8
|
+
* Page size the backend uses when `limit` is omitted from a Followers or Following request.
|
|
9
|
+
*/
|
|
10
|
+
const MOBILE_FOLLOW_LIST_DEFAULT_PAGE_SIZE = 25;
|
|
11
|
+
/**
|
|
12
|
+
* Number of Followed By preview identities a follow summary carries. Fixed by the backend rather than
|
|
13
|
+
* requested, so use it to size the preview UI; `followedByCount` still reports the full intersection.
|
|
14
|
+
*/
|
|
15
|
+
const MOBILE_FOLLOWED_BY_PREVIEW_LIMIT = 2;
|
|
16
|
+
/**
|
|
17
|
+
* Maximum number of subaccounts a single profiles lookup accepts. An empty list, a duplicate, or more than
|
|
18
|
+
* this many fail with `INVALID_PROFILES_REQUEST`.
|
|
19
|
+
*/
|
|
20
|
+
const MOBILE_PROFILES_MAX_BATCH_SIZE = 25;
|
|
21
|
+
//#endregion
|
|
22
|
+
export { MOBILE_FOLLOWED_BY_PREVIEW_LIMIT, MOBILE_FOLLOW_LIST_DEFAULT_PAGE_SIZE, MOBILE_FOLLOW_LIST_MAX_PAGE_SIZE, MOBILE_PROFILES_MAX_BATCH_SIZE };
|
|
23
|
+
|
|
24
|
+
//# sourceMappingURL=follow.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"follow.js","names":[],"sources":["../../src/utils/follow.ts"],"sourcesContent":["/**\n * Maximum Followers/Following page size the backend accepts. Requests outside 1–50 fail with\n * `INVALID_FOLLOW_LIMIT`.\n */\nexport const MOBILE_FOLLOW_LIST_MAX_PAGE_SIZE = 50;\n\n/**\n * Page size the backend uses when `limit` is omitted from a Followers or Following request.\n */\nexport const MOBILE_FOLLOW_LIST_DEFAULT_PAGE_SIZE = 25;\n\n/**\n * Number of Followed By preview identities a follow summary carries. Fixed by the backend rather than\n * requested, so use it to size the preview UI; `followedByCount` still reports the full intersection.\n */\nexport const MOBILE_FOLLOWED_BY_PREVIEW_LIMIT = 2;\n\n/**\n * Maximum number of subaccounts a single profiles lookup accepts. An empty list, a duplicate, or more than\n * this many fail with `INVALID_PROFILES_REQUEST`.\n */\nexport const MOBILE_PROFILES_MAX_BATCH_SIZE = 25;\n"],"mappings":";;;;;AAIA,MAAa,mCAAmC;;;;AAKhD,MAAa,uCAAuC;;;;;AAMpD,MAAa,mCAAmC;;;;;AAMhD,MAAa,iCAAiC"}
|
package/dist/utils/index.cjs
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_utils_serverResponseGuards = require("./serverResponseGuards.cjs");
|
|
3
3
|
const require_utils_feed = require("./feed.cjs");
|
|
4
|
+
const require_utils_follow = require("./follow.cjs");
|
|
4
5
|
const require_utils_patterns = require("./patterns.cjs");
|
|
5
6
|
exports.MOBILE_DISPLAY_NAME_PATTERN = require_utils_patterns.MOBILE_DISPLAY_NAME_PATTERN;
|
|
6
7
|
exports.MOBILE_FEED_MAX_PAGE_SIZE = require_utils_feed.MOBILE_FEED_MAX_PAGE_SIZE;
|
|
7
8
|
exports.MOBILE_FEED_MIN_NOTIONAL_FLOOR = require_utils_feed.MOBILE_FEED_MIN_NOTIONAL_FLOOR;
|
|
9
|
+
exports.MOBILE_FOLLOWED_BY_PREVIEW_LIMIT = require_utils_follow.MOBILE_FOLLOWED_BY_PREVIEW_LIMIT;
|
|
10
|
+
exports.MOBILE_FOLLOW_LIST_DEFAULT_PAGE_SIZE = require_utils_follow.MOBILE_FOLLOW_LIST_DEFAULT_PAGE_SIZE;
|
|
11
|
+
exports.MOBILE_FOLLOW_LIST_MAX_PAGE_SIZE = require_utils_follow.MOBILE_FOLLOW_LIST_MAX_PAGE_SIZE;
|
|
12
|
+
exports.MOBILE_PROFILES_MAX_BATCH_SIZE = require_utils_follow.MOBILE_PROFILES_MAX_BATCH_SIZE;
|
|
8
13
|
exports.isMobileServerFailureResponse = require_utils_serverResponseGuards.isMobileServerFailureResponse;
|
|
9
14
|
exports.isMobileServerSuccessResponse = require_utils_serverResponseGuards.isMobileServerSuccessResponse;
|
package/dist/utils/index.d.cts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { n as MOBILE_FEED_MIN_NOTIONAL_FLOOR, t as MOBILE_FEED_MAX_PAGE_SIZE } from "../feed-CBIwOhTO.cjs";
|
|
2
|
-
import { t as
|
|
3
|
-
import {
|
|
4
|
-
|
|
2
|
+
import { i as MOBILE_PROFILES_MAX_BATCH_SIZE, n as MOBILE_FOLLOW_LIST_DEFAULT_PAGE_SIZE, r as MOBILE_FOLLOW_LIST_MAX_PAGE_SIZE, t as MOBILE_FOLLOWED_BY_PREVIEW_LIMIT } from "../follow-Bh3UmXMc.cjs";
|
|
3
|
+
import { t as MOBILE_DISPLAY_NAME_PATTERN } from "../patterns-DS8P5LH0.cjs";
|
|
4
|
+
import { n as isMobileServerSuccessResponse, t as isMobileServerFailureResponse } from "../serverResponseGuards-Dg9WbqBA.cjs";
|
|
5
|
+
export { MOBILE_DISPLAY_NAME_PATTERN, MOBILE_FEED_MAX_PAGE_SIZE, MOBILE_FEED_MIN_NOTIONAL_FLOOR, MOBILE_FOLLOWED_BY_PREVIEW_LIMIT, MOBILE_FOLLOW_LIST_DEFAULT_PAGE_SIZE, MOBILE_FOLLOW_LIST_MAX_PAGE_SIZE, MOBILE_PROFILES_MAX_BATCH_SIZE, isMobileServerFailureResponse, isMobileServerSuccessResponse };
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { n as MOBILE_FEED_MIN_NOTIONAL_FLOOR, t as MOBILE_FEED_MAX_PAGE_SIZE } from "../feed-BF5k6Ryu.js";
|
|
2
|
-
import { t as
|
|
3
|
-
import {
|
|
4
|
-
|
|
2
|
+
import { i as MOBILE_PROFILES_MAX_BATCH_SIZE, n as MOBILE_FOLLOW_LIST_DEFAULT_PAGE_SIZE, r as MOBILE_FOLLOW_LIST_MAX_PAGE_SIZE, t as MOBILE_FOLLOWED_BY_PREVIEW_LIMIT } from "../follow-DjkQm1vR.js";
|
|
3
|
+
import { t as MOBILE_DISPLAY_NAME_PATTERN } from "../patterns-C-aUAnKl.js";
|
|
4
|
+
import { n as isMobileServerSuccessResponse, t as isMobileServerFailureResponse } from "../serverResponseGuards-BjIzucYt.js";
|
|
5
|
+
export { MOBILE_DISPLAY_NAME_PATTERN, MOBILE_FEED_MAX_PAGE_SIZE, MOBILE_FEED_MIN_NOTIONAL_FLOOR, MOBILE_FOLLOWED_BY_PREVIEW_LIMIT, MOBILE_FOLLOW_LIST_DEFAULT_PAGE_SIZE, MOBILE_FOLLOW_LIST_MAX_PAGE_SIZE, MOBILE_PROFILES_MAX_BATCH_SIZE, isMobileServerFailureResponse, isMobileServerSuccessResponse };
|
package/dist/utils/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { isMobileServerFailureResponse, isMobileServerSuccessResponse } from "./serverResponseGuards.js";
|
|
2
2
|
import { MOBILE_FEED_MAX_PAGE_SIZE, MOBILE_FEED_MIN_NOTIONAL_FLOOR } from "./feed.js";
|
|
3
|
+
import { MOBILE_FOLLOWED_BY_PREVIEW_LIMIT, MOBILE_FOLLOW_LIST_DEFAULT_PAGE_SIZE, MOBILE_FOLLOW_LIST_MAX_PAGE_SIZE, MOBILE_PROFILES_MAX_BATCH_SIZE } from "./follow.js";
|
|
3
4
|
import { MOBILE_DISPLAY_NAME_PATTERN } from "./patterns.js";
|
|
4
|
-
export { MOBILE_DISPLAY_NAME_PATTERN, MOBILE_FEED_MAX_PAGE_SIZE, MOBILE_FEED_MIN_NOTIONAL_FLOOR, isMobileServerFailureResponse, isMobileServerSuccessResponse };
|
|
5
|
+
export { MOBILE_DISPLAY_NAME_PATTERN, MOBILE_FEED_MAX_PAGE_SIZE, MOBILE_FEED_MIN_NOTIONAL_FLOOR, MOBILE_FOLLOWED_BY_PREVIEW_LIMIT, MOBILE_FOLLOW_LIST_DEFAULT_PAGE_SIZE, MOBILE_FOLLOW_LIST_MAX_PAGE_SIZE, MOBILE_PROFILES_MAX_BATCH_SIZE, isMobileServerFailureResponse, isMobileServerSuccessResponse };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as MOBILE_DISPLAY_NAME_PATTERN } from "../patterns-
|
|
1
|
+
import { t as MOBILE_DISPLAY_NAME_PATTERN } from "../patterns-DS8P5LH0.cjs";
|
|
2
2
|
export { MOBILE_DISPLAY_NAME_PATTERN };
|
package/dist/utils/patterns.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as MOBILE_DISPLAY_NAME_PATTERN } from "../patterns-
|
|
1
|
+
import { t as MOBILE_DISPLAY_NAME_PATTERN } from "../patterns-C-aUAnKl.js";
|
|
2
2
|
export { MOBILE_DISPLAY_NAME_PATTERN };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as isMobileServerSuccessResponse, t as isMobileServerFailureResponse } from "../serverResponseGuards-
|
|
1
|
+
import { n as isMobileServerSuccessResponse, t as isMobileServerFailureResponse } from "../serverResponseGuards-Dg9WbqBA.cjs";
|
|
2
2
|
export { isMobileServerFailureResponse, isMobileServerSuccessResponse };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as isMobileServerSuccessResponse, t as isMobileServerFailureResponse } from "../serverResponseGuards-
|
|
1
|
+
import { n as isMobileServerSuccessResponse, t as isMobileServerFailureResponse } from "../serverResponseGuards-BjIzucYt.js";
|
|
2
2
|
export { isMobileServerFailureResponse, isMobileServerSuccessResponse };
|