@nadohq/mobile-client 0.63.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
|
@@ -33,12 +33,26 @@ declare const MOBILE_ERROR_CODES: {
|
|
|
33
33
|
readonly INVALID_DEVICE_METADATA: 6201;
|
|
34
34
|
readonly INVALID_PREFERENCES: 6202; /** Feed `minimumNotional` or `limit` is outside its allowed domain. Fix the request; do not retry unchanged. */
|
|
35
35
|
readonly INVALID_FEED_FILTER: 6300; /** Feed cursor is malformed or bound to a different filter. Discard it and restart from the first page. */
|
|
36
|
-
readonly INVALID_FEED_CURSOR: 6301; /**
|
|
36
|
+
readonly INVALID_FEED_CURSOR: 6301; /** Drawing JSON, outer value, storage representation, or nonce is invalid. */
|
|
37
|
+
readonly INVALID_SOCIAL_FEED_DRAWING: 6302; /** Original drawing JSON exceeds 256 KiB UTF-8. */
|
|
38
|
+
readonly SOCIAL_FEED_DRAWING_TOO_LARGE: 6303; /** Drawing parent is unavailable, or an update targets a missing drawing. */
|
|
39
|
+
readonly SOCIAL_FEED_DRAWING_UNAVAILABLE: 6304; /** A different drawing already exists when first attaching one. */
|
|
40
|
+
readonly SOCIAL_FEED_DRAWING_EXISTS: 6305; /** Drawing nonce is stale or reused for different content. Re-read before retrying. */
|
|
41
|
+
readonly STALE_SOCIAL_FEED_DRAWING_UPDATE: 6306; /** Invalid social feed parameters, including missing fields, invalid types/formats, filters, or Content-Type. */
|
|
37
42
|
readonly INVALID_SOCIAL_FEED_PARAMS: 6310; /** Session, credential, viewing account, cursor, source, or viewport mismatch; also a request sequence or viewport revision rollback. */
|
|
38
43
|
readonly SOCIAL_FEED_SESSION_MISMATCH: 6311; /** Reading session or browsing credential is expired, missing, or incompatible; create a new session. */
|
|
39
44
|
readonly SOCIAL_FEED_SESSION_EXPIRED: 6312; /** Content does not exist or is not currently accessible. */
|
|
40
|
-
readonly SOCIAL_FEED_CONTENT_UNAVAILABLE: 6313; /**
|
|
41
|
-
readonly
|
|
45
|
+
readonly SOCIAL_FEED_CONTENT_UNAVAILABLE: 6313; /** Position no longer qualifies for publication or a new attachment. */
|
|
46
|
+
readonly SOCIAL_FEED_POSITION_CLOSED: 6314; /** Selected position does not belong to the signed author. */
|
|
47
|
+
readonly SOCIAL_FEED_POSITION_NOT_OWNED: 6315; /** Item or action does not support the requested operation. */
|
|
48
|
+
readonly INVALID_SOCIAL_FEED_OPERATION: 6316; /** Published body cannot be edited; existing drawings may still be updated. */
|
|
49
|
+
readonly SOCIAL_FEED_CONTENT_ALREADY_PUBLISHED: 6317; /** Mention offsets, mentioned identity, or reply relationship is invalid. */
|
|
50
|
+
readonly INVALID_SOCIAL_FEED_MENTION: 6318; /** Author-scoped request ID was already used with different content. */
|
|
51
|
+
readonly SOCIAL_FEED_REQUEST_CONFLICT: 6319; /** Required authoritative position, action, cohort, or market data is unavailable. */
|
|
52
|
+
readonly SOCIAL_FEED_DATA_UNAVAILABLE: 6320; /** Text or mention count exceeds the operation's limit. */
|
|
53
|
+
readonly SOCIAL_FEED_CONTENT_TOO_LARGE: 6321; /** Like nonce is stale or reused with a different state. */
|
|
54
|
+
readonly STALE_SOCIAL_FEED_LIKE_UPDATE: 6322; /** A post has neither nonblank text nor a drawing, or a comment is blank. */
|
|
55
|
+
readonly EMPTY_SOCIAL_FEED_CONTENT: 6323; /** Feed reads are only available through public_query. */
|
|
42
56
|
readonly SOCIAL_FEED_QUERY_REMOVED: 6325;
|
|
43
57
|
readonly RATE_LIMIT: 1000;
|
|
44
58
|
readonly BLACKLISTED_ADDRESS: 1001;
|
|
@@ -61,4 +75,4 @@ declare const MOBILE_ERROR_CODES: {
|
|
|
61
75
|
type MobileErrorCode = (typeof MOBILE_ERROR_CODES)[keyof typeof MOBILE_ERROR_CODES];
|
|
62
76
|
//#endregion
|
|
63
77
|
export { MobileErrorCode as n, MOBILE_ERROR_CODES as t };
|
|
64
|
-
//# sourceMappingURL=mobileErrorCodes-
|
|
78
|
+
//# sourceMappingURL=mobileErrorCodes-CmjYEIYm.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mobileErrorCodes-CmjYEIYm.d.ts","names":[],"sources":["../src/types/src/types/mobileErrorCodes.ts"],"mappings":";;AAOA;;;;cAAa,kBAAA;EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8CAwFc;EAAA,gDACjB;EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KADE,eAAA,WACF,kBAAA,eAAiC,kBAAkB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as MobileSignedInner } from "./types-
|
|
1
|
+
import { n as MobileSignedInner } from "./types-BiRmH5Iv.cjs";
|
|
2
2
|
import { Hex } from "viem";
|
|
3
3
|
|
|
4
4
|
//#region src/signing/payloadHash.d.ts
|
|
@@ -10,4 +10,4 @@ import { Hex } from "viem";
|
|
|
10
10
|
declare function getMobilePayloadHash(inner: MobileSignedInner): Hex;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { getMobilePayloadHash as t };
|
|
13
|
-
//# sourceMappingURL=payloadHash-
|
|
13
|
+
//# sourceMappingURL=payloadHash-DhHmgRqL.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payloadHash-DhHmgRqL.d.cts","names":[],"sources":["../src/signing/src/signing/payloadHash.ts"],"mappings":";;;;;;AASA;;;iBAAgB,oBAAA,CAAqB,KAAA,EAAO,iBAAA,GAAoB,GAAG"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as MobileSignedInner } from "./types-
|
|
1
|
+
import { n as MobileSignedInner } from "./types-DoJuq0Ij.js";
|
|
2
2
|
import { Hex } from "viem";
|
|
3
3
|
|
|
4
4
|
//#region src/signing/payloadHash.d.ts
|
|
@@ -10,4 +10,4 @@ import { Hex } from "viem";
|
|
|
10
10
|
declare function getMobilePayloadHash(inner: MobileSignedInner): Hex;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { getMobilePayloadHash as t };
|
|
13
|
-
//# sourceMappingURL=payloadHash-
|
|
13
|
+
//# sourceMappingURL=payloadHash-E1_8fpLW.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payloadHash-E1_8fpLW.d.ts","names":[],"sources":["../src/signing/src/signing/payloadHash.ts"],"mappings":";;;;;;AASA;;;iBAAgB,oBAAA,CAAqB,KAAA,EAAO,iBAAA,GAAoB,GAAG"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as MobileServerRequestType } from "./serverRequestTypes-
|
|
1
|
+
import { c as MobileServerRequestType } from "./serverRequestTypes-CRlkNSu5.cjs";
|
|
2
2
|
|
|
3
3
|
//#region src/types/serverBaseTypes.d.ts
|
|
4
4
|
/**
|
|
@@ -22,4 +22,4 @@ interface MobileServerFailureResponse {
|
|
|
22
22
|
}
|
|
23
23
|
//#endregion
|
|
24
24
|
export { MobileServerSuccessResponse as n, MobileServerFailureResponse as t };
|
|
25
|
-
//# sourceMappingURL=serverBaseTypes-
|
|
25
|
+
//# sourceMappingURL=serverBaseTypes-B5J1_TyC.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serverBaseTypes-
|
|
1
|
+
{"version":3,"file":"serverBaseTypes-B5J1_TyC.d.cts","names":[],"sources":["../src/types/src/types/serverBaseTypes.ts"],"mappings":";;;;;AAQA;;;;UAAiB,2BAAA;EACf,MAAM;AAAA;;;;;UAOS,2BAAA;EACf,MAAA;EACA,KAAA;EACA,UAAA;EACA,YAAA,EAAc,uBAAuB;AAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as MobileServerRequestType } from "./serverRequestTypes-
|
|
1
|
+
import { c as MobileServerRequestType } from "./serverRequestTypes-DZoOhV2o.js";
|
|
2
2
|
|
|
3
3
|
//#region src/types/serverBaseTypes.d.ts
|
|
4
4
|
/**
|
|
@@ -22,4 +22,4 @@ interface MobileServerFailureResponse {
|
|
|
22
22
|
}
|
|
23
23
|
//#endregion
|
|
24
24
|
export { MobileServerSuccessResponse as n, MobileServerFailureResponse as t };
|
|
25
|
-
//# sourceMappingURL=serverBaseTypes-
|
|
25
|
+
//# sourceMappingURL=serverBaseTypes-DnLzsdm-.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serverBaseTypes-
|
|
1
|
+
{"version":3,"file":"serverBaseTypes-DnLzsdm-.d.ts","names":[],"sources":["../src/types/src/types/serverBaseTypes.ts"],"mappings":";;;;;AAQA;;;;UAAiB,2BAAA;EACf,MAAM;AAAA;;;;;UAOS,2BAAA;EACf,MAAA;EACA,KAAA;EACA,UAAA;EACA,YAAA,EAAc,uBAAuB;AAAA"}
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import { C as MobileServerSocialFeedAuthor, M as MobileServerSocialFeedDrawing, R as MobileServerSocialFeedItem, X as MobileServerSocialFeedReply } from "./serverModelTypes-CiA-dy1R.cjs";
|
|
2
|
+
import { a as MobileServerPublicExecuteRequestType, i as MobileServerPublicExecuteRequestByType, t as MobileServerExecuteRequestType } from "./serverRequestTypes-CRlkNSu5.cjs";
|
|
3
|
+
import { n as MobileServerSuccessResponse, t as MobileServerFailureResponse } from "./serverBaseTypes-B5J1_TyC.cjs";
|
|
4
|
+
import { Hex } from "viem";
|
|
5
|
+
|
|
6
|
+
//#region src/types/serverExecuteTypes.d.ts
|
|
7
|
+
/**
|
|
8
|
+
* Unsigned `public_execute` request body: a `type` discriminant flattened with its params, mirroring
|
|
9
|
+
* {@link MobileServerPublicQueryRequest}.
|
|
10
|
+
*/
|
|
11
|
+
type MobileServerPublicExecuteRequest<T extends MobileServerPublicExecuteRequestType = MobileServerPublicExecuteRequestType> = { [K in MobileServerPublicExecuteRequestType]: {
|
|
12
|
+
type: K;
|
|
13
|
+
} & MobileServerPublicExecuteRequestByType[K] }[T];
|
|
14
|
+
/**
|
|
15
|
+
* Payload the `set_follow` execute returns alongside the success envelope. The mutation and the count commit
|
|
16
|
+
* in one database transaction, so these are the authoritative post-mutation values — prefer them over
|
|
17
|
+
* re-reading, and note that overlapping toggles for the same pair can respond out of arrival order.
|
|
18
|
+
*/
|
|
19
|
+
interface MobileServerFollowMutationResponse {
|
|
20
|
+
is_following: boolean;
|
|
21
|
+
/** The *target's* follower count after the mutation, not the sender's. */
|
|
22
|
+
follower_count: number;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* One target's post-commit state in a `set_follow_batch` response.
|
|
26
|
+
*/
|
|
27
|
+
interface MobileServerFollowBatchResultItem {
|
|
28
|
+
/** The requested target, as lowercase hex. */
|
|
29
|
+
subaccount: Hex;
|
|
30
|
+
is_following: boolean;
|
|
31
|
+
/** The *target's* follower count after the batch, not the sender's. */
|
|
32
|
+
follower_count: number;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Payload the `set_follow_batch` execute returns alongside the success envelope: one result per target, in
|
|
36
|
+
* request order. Every write and count runs in one database transaction, so the batch either fully applies or
|
|
37
|
+
* changes nothing, and these values are authoritative post-commit state.
|
|
38
|
+
*/
|
|
39
|
+
interface MobileServerFollowBatchResponse {
|
|
40
|
+
results: MobileServerFollowBatchResultItem[];
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Payload of an execute route that returns nothing beyond the success discriminant. Spelled `Record<never,
|
|
44
|
+
* never>` rather than `Record<string, never>` because the latter's index signature would collapse `status` to
|
|
45
|
+
* `never` when intersected with the success envelope.
|
|
46
|
+
*/
|
|
47
|
+
type MobileServerEmptyExecuteResponse = Record<never, never>;
|
|
48
|
+
/**
|
|
49
|
+
* Temporary upload grant returned by `create_avatar_upload`; publishing requires a subsequent `set_avatar`.
|
|
50
|
+
*/
|
|
51
|
+
interface MobileServerAvatarUploadResponse {
|
|
52
|
+
/** Server-owned staging object key. */
|
|
53
|
+
upload_key: string;
|
|
54
|
+
/** Short-lived signed PUT URL. */
|
|
55
|
+
upload_url: string;
|
|
56
|
+
/** Headers required by the signed PUT. */
|
|
57
|
+
headers: Record<string, string>;
|
|
58
|
+
/** Upload URL lifetime in seconds from issuance. */
|
|
59
|
+
expires_in_seconds: number;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Success payloads for each signed `execute`, keyed by request `type`. Mutations return either the success
|
|
63
|
+
* envelope alone or authoritative post-commit state; avatar upload creation returns a temporary grant.
|
|
64
|
+
*/
|
|
65
|
+
interface MobileServerExecuteResponseByType {
|
|
66
|
+
/** Published or idempotently recovered item. */
|
|
67
|
+
create_feed_post: MobileServerSocialFeedPostResponse;
|
|
68
|
+
/** Atomically published reply and updated count. */
|
|
69
|
+
create_feed_comment: MobileServerSocialFeedCommentResponse;
|
|
70
|
+
/** First attached drawing. */
|
|
71
|
+
create_feed_chart_drawing: MobileServerSocialFeedDrawingMutationResponse;
|
|
72
|
+
/** Replaced or idempotently recovered drawing. */
|
|
73
|
+
update_feed_chart_drawing: MobileServerSocialFeedDrawingMutationResponse;
|
|
74
|
+
/** Post-mutation like state. */
|
|
75
|
+
set_feed_like: MobileServerSocialFeedLikeResponse;
|
|
76
|
+
/** Bio writes return only the success envelope. */
|
|
77
|
+
set_bio: MobileServerEmptyExecuteResponse;
|
|
78
|
+
/** Avatar writes return only the success envelope. */
|
|
79
|
+
set_avatar: MobileServerEmptyExecuteResponse;
|
|
80
|
+
/** Temporary upload grant; publishing requires a subsequent set_avatar call. */
|
|
81
|
+
create_avatar_upload: MobileServerAvatarUploadResponse;
|
|
82
|
+
set_username: MobileServerEmptyExecuteResponse;
|
|
83
|
+
set_private_mode: MobileServerEmptyExecuteResponse;
|
|
84
|
+
register_expo_token: MobileServerEmptyExecuteResponse;
|
|
85
|
+
set_follow: MobileServerFollowMutationResponse;
|
|
86
|
+
set_follow_batch: MobileServerFollowBatchResponse;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Full success response for a signed `execute`: the {@link MobileServerSuccessResponse} envelope with the
|
|
90
|
+
* route's payload inlined alongside `status`, matching how the query routes inline theirs.
|
|
91
|
+
*/
|
|
92
|
+
type MobileServerExecuteSuccessResponse<T extends MobileServerExecuteRequestType = MobileServerExecuteRequestType> = MobileServerSuccessResponse & MobileServerExecuteResponseByType[T];
|
|
93
|
+
/**
|
|
94
|
+
* Discriminated `execute` result union used at the transport boundary, before the envelope is narrowed.
|
|
95
|
+
*/
|
|
96
|
+
type MobileServerExecuteResult = MobileServerSuccessResponse | MobileServerFailureResponse;
|
|
97
|
+
/** Atomic publication success; unlike feed_item, this does not issue a read session. */
|
|
98
|
+
interface MobileServerSocialFeedPostResponse {
|
|
99
|
+
/** Published item. */
|
|
100
|
+
item: MobileServerSocialFeedItem;
|
|
101
|
+
}
|
|
102
|
+
/** Atomic reply publication and authoritative root count. */
|
|
103
|
+
interface MobileServerSocialFeedCommentResponse {
|
|
104
|
+
/** Published reply. */
|
|
105
|
+
comment: MobileServerSocialFeedReply;
|
|
106
|
+
/** Post-commit root count. */
|
|
107
|
+
root_comment_count: number;
|
|
108
|
+
}
|
|
109
|
+
/** Successful drawing mutation always returns a saved drawing. */
|
|
110
|
+
interface MobileServerSocialFeedDrawingMutationResponse {
|
|
111
|
+
/** Parent UUID. */
|
|
112
|
+
item_id: string;
|
|
113
|
+
/** Display version. */
|
|
114
|
+
item_version: string;
|
|
115
|
+
/** Saved parsed drawing. */
|
|
116
|
+
drawing: MobileServerSocialFeedDrawing;
|
|
117
|
+
}
|
|
118
|
+
/** Authoritative like state after the mutation. */
|
|
119
|
+
interface MobileServerSocialFeedLikeResponse {
|
|
120
|
+
/** Item UUID. */
|
|
121
|
+
item_id: string;
|
|
122
|
+
/** Applied relationship state. */
|
|
123
|
+
is_liked: boolean;
|
|
124
|
+
/** Post-mutation count. */
|
|
125
|
+
like_count: number;
|
|
126
|
+
/** Display version. */
|
|
127
|
+
version: string;
|
|
128
|
+
}
|
|
129
|
+
/** Exposure counts deduplicated by browsing credential, item, and UTC day. */
|
|
130
|
+
interface MobileServerSocialFeedViewsResponse {
|
|
131
|
+
/** Newly counted items. */
|
|
132
|
+
accepted_item_ids: string[];
|
|
133
|
+
/** Already counted items. */
|
|
134
|
+
duplicate_item_ids: string[];
|
|
135
|
+
}
|
|
136
|
+
/** Page lease result; this response does not carry as_of_ms. */
|
|
137
|
+
interface MobileServerSocialFeedPresenceResponse {
|
|
138
|
+
/** Active visitor count. */
|
|
139
|
+
watcher_count: number;
|
|
140
|
+
/** Self-reported public account previews. */
|
|
141
|
+
watcher_preview: MobileServerSocialFeedAuthor[];
|
|
142
|
+
/** Recommended heartbeat interval. */
|
|
143
|
+
heartbeat_interval_seconds: number;
|
|
144
|
+
/** Lease lifetime, bounded by the reading session. */
|
|
145
|
+
expires_in_seconds: number;
|
|
146
|
+
}
|
|
147
|
+
/** Response payloads for unsigned writes. */
|
|
148
|
+
interface MobileServerPublicExecuteResponseByType {
|
|
149
|
+
/** Token removal returns only the success envelope. */
|
|
150
|
+
unregister_expo_token: MobileServerEmptyExecuteResponse;
|
|
151
|
+
/** Preference updates return only the success envelope. */
|
|
152
|
+
update_preferences: MobileServerEmptyExecuteResponse;
|
|
153
|
+
/** Exposure deduplication result. */
|
|
154
|
+
record_feed_views: MobileServerSocialFeedViewsResponse;
|
|
155
|
+
/** Page lease result. */
|
|
156
|
+
position_presence: MobileServerSocialFeedPresenceResponse;
|
|
157
|
+
}
|
|
158
|
+
/** Full success response for an unsigned write. */
|
|
159
|
+
type MobileServerPublicExecuteSuccessResponse<T extends MobileServerPublicExecuteRequestType = MobileServerPublicExecuteRequestType> = MobileServerSuccessResponse & MobileServerPublicExecuteResponseByType[T];
|
|
160
|
+
//#endregion
|
|
161
|
+
export { MobileServerSocialFeedViewsResponse as _, MobileServerExecuteSuccessResponse as a, MobileServerFollowMutationResponse as c, MobileServerPublicExecuteSuccessResponse as d, MobileServerSocialFeedCommentResponse as f, MobileServerSocialFeedPresenceResponse as g, MobileServerSocialFeedPostResponse as h, MobileServerExecuteResult as i, MobileServerPublicExecuteRequest as l, MobileServerSocialFeedLikeResponse as m, MobileServerEmptyExecuteResponse as n, MobileServerFollowBatchResponse as o, MobileServerSocialFeedDrawingMutationResponse as p, MobileServerExecuteResponseByType as r, MobileServerFollowBatchResultItem as s, MobileServerAvatarUploadResponse as t, MobileServerPublicExecuteResponseByType as u };
|
|
162
|
+
//# sourceMappingURL=serverExecuteTypes-B-OJok19.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"serverExecuteTypes-B-OJok19.d.cts","names":[],"sources":["../src/types/src/types/serverExecuteTypes.ts"],"mappings":";;;;;;;;AAqBA;;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;;;;;UAOe,iCAAA;EAPG;EASlB,gBAAA,EAAkB,kCAAA;EAF8B;EAIhD,mBAAA,EAAqB,qCAAA;EAFH;EAIlB,yBAAA,EAA2B,6CAAA;EAAA;EAE3B,yBAAA,EAA2B,6CAAA;EAEZ;EAAf,aAAA,EAAe,kCAAA;EAIH;EAFZ,OAAA,EAAS,gCAAA;EAKK;EAHd,UAAA,EAAY,gCAAA;EAKS;EAHrB,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;;UAGd,kCAAA;EAxBf;EA0BA,IAAA,EAAM,0BAA0B;AAAA;;UAIjB,qCAAA;EA5BG;EA8BlB,OAAA,EAAS,2BAA2B;EA7Bf;EA+BrB,kBAAA;AAAA;;UAIe,6CAAA;EAjCkC;EAmCjD,OAAA;EA5BU;EA8BV,YAAA;EA9B4C;EAgC5C,OAAA,EAAS,6BAA6B;AAAA;;UAIvB,kCAAA;EAlCmD;EAoClE,OAAA;EApCmE;EAsCnE,QAAA;EAvCU;EAyCV,UAAA;EAxCE;EA0CF,OAAA;AAAA;;UAIe,mCAAA;EAzCL;EA2CV,iBAAA;;EAEA,kBAAkB;AAAA;AAxCpB;AAAA,UA4CiB,sCAAA;;EAEf,aAAA;EA5CgC;EA8ChC,eAAA,EAAiB,4BAA4B;EA1CO;EA4CpD,0BAAA;EA1CoC;EA4CpC,kBAAA;AAAA;;UAIe,uCAAA;EA9CG;EAgDlB,qBAAA,EAAuB,gCAAA;EA5CqC;EA8C5D,kBAAA,EAAoB,gCAAA;EAxCkB;EA0CtC,iBAAA,EAAmB,mCAAA;EA5CnB;EA8CA,iBAAA,EAAmB,sCAAA;AAAA;;KAIT,wCAAA,WACA,oCAAA,GACR,oCAAA,IACA,2BAAA,GAA8B,uCAAA,CAAwC,CAAA"}
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import { C as MobileServerSocialFeedAuthor, M as MobileServerSocialFeedDrawing, R as MobileServerSocialFeedItem, X as MobileServerSocialFeedReply } from "./serverModelTypes-CiA-dy1R.js";
|
|
2
|
+
import { a as MobileServerPublicExecuteRequestType, i as MobileServerPublicExecuteRequestByType, t as MobileServerExecuteRequestType } from "./serverRequestTypes-DZoOhV2o.js";
|
|
3
|
+
import { n as MobileServerSuccessResponse, t as MobileServerFailureResponse } from "./serverBaseTypes-DnLzsdm-.js";
|
|
4
|
+
import { Hex } from "viem";
|
|
5
|
+
|
|
6
|
+
//#region src/types/serverExecuteTypes.d.ts
|
|
7
|
+
/**
|
|
8
|
+
* Unsigned `public_execute` request body: a `type` discriminant flattened with its params, mirroring
|
|
9
|
+
* {@link MobileServerPublicQueryRequest}.
|
|
10
|
+
*/
|
|
11
|
+
type MobileServerPublicExecuteRequest<T extends MobileServerPublicExecuteRequestType = MobileServerPublicExecuteRequestType> = { [K in MobileServerPublicExecuteRequestType]: {
|
|
12
|
+
type: K;
|
|
13
|
+
} & MobileServerPublicExecuteRequestByType[K] }[T];
|
|
14
|
+
/**
|
|
15
|
+
* Payload the `set_follow` execute returns alongside the success envelope. The mutation and the count commit
|
|
16
|
+
* in one database transaction, so these are the authoritative post-mutation values — prefer them over
|
|
17
|
+
* re-reading, and note that overlapping toggles for the same pair can respond out of arrival order.
|
|
18
|
+
*/
|
|
19
|
+
interface MobileServerFollowMutationResponse {
|
|
20
|
+
is_following: boolean;
|
|
21
|
+
/** The *target's* follower count after the mutation, not the sender's. */
|
|
22
|
+
follower_count: number;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* One target's post-commit state in a `set_follow_batch` response.
|
|
26
|
+
*/
|
|
27
|
+
interface MobileServerFollowBatchResultItem {
|
|
28
|
+
/** The requested target, as lowercase hex. */
|
|
29
|
+
subaccount: Hex;
|
|
30
|
+
is_following: boolean;
|
|
31
|
+
/** The *target's* follower count after the batch, not the sender's. */
|
|
32
|
+
follower_count: number;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Payload the `set_follow_batch` execute returns alongside the success envelope: one result per target, in
|
|
36
|
+
* request order. Every write and count runs in one database transaction, so the batch either fully applies or
|
|
37
|
+
* changes nothing, and these values are authoritative post-commit state.
|
|
38
|
+
*/
|
|
39
|
+
interface MobileServerFollowBatchResponse {
|
|
40
|
+
results: MobileServerFollowBatchResultItem[];
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Payload of an execute route that returns nothing beyond the success discriminant. Spelled `Record<never,
|
|
44
|
+
* never>` rather than `Record<string, never>` because the latter's index signature would collapse `status` to
|
|
45
|
+
* `never` when intersected with the success envelope.
|
|
46
|
+
*/
|
|
47
|
+
type MobileServerEmptyExecuteResponse = Record<never, never>;
|
|
48
|
+
/**
|
|
49
|
+
* Temporary upload grant returned by `create_avatar_upload`; publishing requires a subsequent `set_avatar`.
|
|
50
|
+
*/
|
|
51
|
+
interface MobileServerAvatarUploadResponse {
|
|
52
|
+
/** Server-owned staging object key. */
|
|
53
|
+
upload_key: string;
|
|
54
|
+
/** Short-lived signed PUT URL. */
|
|
55
|
+
upload_url: string;
|
|
56
|
+
/** Headers required by the signed PUT. */
|
|
57
|
+
headers: Record<string, string>;
|
|
58
|
+
/** Upload URL lifetime in seconds from issuance. */
|
|
59
|
+
expires_in_seconds: number;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Success payloads for each signed `execute`, keyed by request `type`. Mutations return either the success
|
|
63
|
+
* envelope alone or authoritative post-commit state; avatar upload creation returns a temporary grant.
|
|
64
|
+
*/
|
|
65
|
+
interface MobileServerExecuteResponseByType {
|
|
66
|
+
/** Published or idempotently recovered item. */
|
|
67
|
+
create_feed_post: MobileServerSocialFeedPostResponse;
|
|
68
|
+
/** Atomically published reply and updated count. */
|
|
69
|
+
create_feed_comment: MobileServerSocialFeedCommentResponse;
|
|
70
|
+
/** First attached drawing. */
|
|
71
|
+
create_feed_chart_drawing: MobileServerSocialFeedDrawingMutationResponse;
|
|
72
|
+
/** Replaced or idempotently recovered drawing. */
|
|
73
|
+
update_feed_chart_drawing: MobileServerSocialFeedDrawingMutationResponse;
|
|
74
|
+
/** Post-mutation like state. */
|
|
75
|
+
set_feed_like: MobileServerSocialFeedLikeResponse;
|
|
76
|
+
/** Bio writes return only the success envelope. */
|
|
77
|
+
set_bio: MobileServerEmptyExecuteResponse;
|
|
78
|
+
/** Avatar writes return only the success envelope. */
|
|
79
|
+
set_avatar: MobileServerEmptyExecuteResponse;
|
|
80
|
+
/** Temporary upload grant; publishing requires a subsequent set_avatar call. */
|
|
81
|
+
create_avatar_upload: MobileServerAvatarUploadResponse;
|
|
82
|
+
set_username: MobileServerEmptyExecuteResponse;
|
|
83
|
+
set_private_mode: MobileServerEmptyExecuteResponse;
|
|
84
|
+
register_expo_token: MobileServerEmptyExecuteResponse;
|
|
85
|
+
set_follow: MobileServerFollowMutationResponse;
|
|
86
|
+
set_follow_batch: MobileServerFollowBatchResponse;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Full success response for a signed `execute`: the {@link MobileServerSuccessResponse} envelope with the
|
|
90
|
+
* route's payload inlined alongside `status`, matching how the query routes inline theirs.
|
|
91
|
+
*/
|
|
92
|
+
type MobileServerExecuteSuccessResponse<T extends MobileServerExecuteRequestType = MobileServerExecuteRequestType> = MobileServerSuccessResponse & MobileServerExecuteResponseByType[T];
|
|
93
|
+
/**
|
|
94
|
+
* Discriminated `execute` result union used at the transport boundary, before the envelope is narrowed.
|
|
95
|
+
*/
|
|
96
|
+
type MobileServerExecuteResult = MobileServerSuccessResponse | MobileServerFailureResponse;
|
|
97
|
+
/** Atomic publication success; unlike feed_item, this does not issue a read session. */
|
|
98
|
+
interface MobileServerSocialFeedPostResponse {
|
|
99
|
+
/** Published item. */
|
|
100
|
+
item: MobileServerSocialFeedItem;
|
|
101
|
+
}
|
|
102
|
+
/** Atomic reply publication and authoritative root count. */
|
|
103
|
+
interface MobileServerSocialFeedCommentResponse {
|
|
104
|
+
/** Published reply. */
|
|
105
|
+
comment: MobileServerSocialFeedReply;
|
|
106
|
+
/** Post-commit root count. */
|
|
107
|
+
root_comment_count: number;
|
|
108
|
+
}
|
|
109
|
+
/** Successful drawing mutation always returns a saved drawing. */
|
|
110
|
+
interface MobileServerSocialFeedDrawingMutationResponse {
|
|
111
|
+
/** Parent UUID. */
|
|
112
|
+
item_id: string;
|
|
113
|
+
/** Display version. */
|
|
114
|
+
item_version: string;
|
|
115
|
+
/** Saved parsed drawing. */
|
|
116
|
+
drawing: MobileServerSocialFeedDrawing;
|
|
117
|
+
}
|
|
118
|
+
/** Authoritative like state after the mutation. */
|
|
119
|
+
interface MobileServerSocialFeedLikeResponse {
|
|
120
|
+
/** Item UUID. */
|
|
121
|
+
item_id: string;
|
|
122
|
+
/** Applied relationship state. */
|
|
123
|
+
is_liked: boolean;
|
|
124
|
+
/** Post-mutation count. */
|
|
125
|
+
like_count: number;
|
|
126
|
+
/** Display version. */
|
|
127
|
+
version: string;
|
|
128
|
+
}
|
|
129
|
+
/** Exposure counts deduplicated by browsing credential, item, and UTC day. */
|
|
130
|
+
interface MobileServerSocialFeedViewsResponse {
|
|
131
|
+
/** Newly counted items. */
|
|
132
|
+
accepted_item_ids: string[];
|
|
133
|
+
/** Already counted items. */
|
|
134
|
+
duplicate_item_ids: string[];
|
|
135
|
+
}
|
|
136
|
+
/** Page lease result; this response does not carry as_of_ms. */
|
|
137
|
+
interface MobileServerSocialFeedPresenceResponse {
|
|
138
|
+
/** Active visitor count. */
|
|
139
|
+
watcher_count: number;
|
|
140
|
+
/** Self-reported public account previews. */
|
|
141
|
+
watcher_preview: MobileServerSocialFeedAuthor[];
|
|
142
|
+
/** Recommended heartbeat interval. */
|
|
143
|
+
heartbeat_interval_seconds: number;
|
|
144
|
+
/** Lease lifetime, bounded by the reading session. */
|
|
145
|
+
expires_in_seconds: number;
|
|
146
|
+
}
|
|
147
|
+
/** Response payloads for unsigned writes. */
|
|
148
|
+
interface MobileServerPublicExecuteResponseByType {
|
|
149
|
+
/** Token removal returns only the success envelope. */
|
|
150
|
+
unregister_expo_token: MobileServerEmptyExecuteResponse;
|
|
151
|
+
/** Preference updates return only the success envelope. */
|
|
152
|
+
update_preferences: MobileServerEmptyExecuteResponse;
|
|
153
|
+
/** Exposure deduplication result. */
|
|
154
|
+
record_feed_views: MobileServerSocialFeedViewsResponse;
|
|
155
|
+
/** Page lease result. */
|
|
156
|
+
position_presence: MobileServerSocialFeedPresenceResponse;
|
|
157
|
+
}
|
|
158
|
+
/** Full success response for an unsigned write. */
|
|
159
|
+
type MobileServerPublicExecuteSuccessResponse<T extends MobileServerPublicExecuteRequestType = MobileServerPublicExecuteRequestType> = MobileServerSuccessResponse & MobileServerPublicExecuteResponseByType[T];
|
|
160
|
+
//#endregion
|
|
161
|
+
export { MobileServerSocialFeedViewsResponse as _, MobileServerExecuteSuccessResponse as a, MobileServerFollowMutationResponse as c, MobileServerPublicExecuteSuccessResponse as d, MobileServerSocialFeedCommentResponse as f, MobileServerSocialFeedPresenceResponse as g, MobileServerSocialFeedPostResponse as h, MobileServerExecuteResult as i, MobileServerPublicExecuteRequest as l, MobileServerSocialFeedLikeResponse as m, MobileServerEmptyExecuteResponse as n, MobileServerFollowBatchResponse as o, MobileServerSocialFeedDrawingMutationResponse as p, MobileServerExecuteResponseByType as r, MobileServerFollowBatchResultItem as s, MobileServerAvatarUploadResponse as t, MobileServerPublicExecuteResponseByType as u };
|
|
162
|
+
//# sourceMappingURL=serverExecuteTypes-BwWGspOg.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"serverExecuteTypes-BwWGspOg.d.ts","names":[],"sources":["../src/types/src/types/serverExecuteTypes.ts"],"mappings":";;;;;;;;AAqBA;;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;;;;;UAOe,iCAAA;EAPG;EASlB,gBAAA,EAAkB,kCAAA;EAF8B;EAIhD,mBAAA,EAAqB,qCAAA;EAFH;EAIlB,yBAAA,EAA2B,6CAAA;EAAA;EAE3B,yBAAA,EAA2B,6CAAA;EAEZ;EAAf,aAAA,EAAe,kCAAA;EAIH;EAFZ,OAAA,EAAS,gCAAA;EAKK;EAHd,UAAA,EAAY,gCAAA;EAKS;EAHrB,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;;UAGd,kCAAA;EAxBf;EA0BA,IAAA,EAAM,0BAA0B;AAAA;;UAIjB,qCAAA;EA5BG;EA8BlB,OAAA,EAAS,2BAA2B;EA7Bf;EA+BrB,kBAAA;AAAA;;UAIe,6CAAA;EAjCkC;EAmCjD,OAAA;EA5BU;EA8BV,YAAA;EA9B4C;EAgC5C,OAAA,EAAS,6BAA6B;AAAA;;UAIvB,kCAAA;EAlCmD;EAoClE,OAAA;EApCmE;EAsCnE,QAAA;EAvCU;EAyCV,UAAA;EAxCE;EA0CF,OAAA;AAAA;;UAIe,mCAAA;EAzCL;EA2CV,iBAAA;;EAEA,kBAAkB;AAAA;AAxCpB;AAAA,UA4CiB,sCAAA;;EAEf,aAAA;EA5CgC;EA8ChC,eAAA,EAAiB,4BAA4B;EA1CO;EA4CpD,0BAAA;EA1CoC;EA4CpC,kBAAA;AAAA;;UAIe,uCAAA;EA9CG;EAgDlB,qBAAA,EAAuB,gCAAA;EA5CqC;EA8C5D,kBAAA,EAAoB,gCAAA;EAxCkB;EA0CtC,iBAAA,EAAmB,mCAAA;EA5CnB;EA8CA,iBAAA,EAAmB,sCAAA;AAAA;;KAIT,wCAAA,WACA,oCAAA,GACR,oCAAA,IACA,2BAAA,GAA8B,uCAAA,CAAwC,CAAA"}
|