@nadohq/mobile-client 0.64.0 → 0.66.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 +124 -7
- package/dist/MobileClient-M4oC4lrX.cjs +1101 -0
- package/dist/MobileClient-M4oC4lrX.cjs.map +1 -0
- package/dist/MobileClient.cjs +1 -1
- package/dist/MobileClient.d.cts +306 -10
- package/dist/MobileClient.d.cts.map +1 -1
- package/dist/MobileClient.d.ts +306 -10
- package/dist/MobileClient.d.ts.map +1 -1
- package/dist/MobileClient.js +544 -5
- package/dist/MobileClient.js.map +1 -1
- package/dist/{MobileServerFailureError-Dd3c6P_Z.d.ts → MobileServerFailureError-C9iqNsxI.d.ts} +2 -3
- package/dist/MobileServerFailureError-C9iqNsxI.d.ts.map +1 -0
- package/dist/{MobileServerFailureError-Bpa_WA9f.d.cts → MobileServerFailureError-MtS2reel.d.cts} +2 -3
- package/dist/MobileServerFailureError-MtS2reel.d.cts.map +1 -0
- 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/MobileUnsupportedNotificationRouteError-DpiNBvvY.d.cts +15 -0
- package/dist/MobileUnsupportedNotificationRouteError-DpiNBvvY.d.cts.map +1 -0
- package/dist/MobileUnsupportedNotificationRouteError-DpiNBvvY.d.ts +15 -0
- package/dist/MobileUnsupportedNotificationRouteError-DpiNBvvY.d.ts.map +1 -0
- package/dist/{buildSignedMobileRequest-Cb1T74xV.d.ts → buildSignedMobileRequest-BR-KJhIF.d.ts} +2 -2
- package/dist/{buildSignedMobileRequest-Cb1T74xV.d.ts.map → buildSignedMobileRequest-BR-KJhIF.d.ts.map} +1 -1
- package/dist/{buildSignedMobileRequest-NHbMAPzd.d.cts → buildSignedMobileRequest-DyKCK34Y.d.cts} +2 -2
- package/dist/{buildSignedMobileRequest-NHbMAPzd.d.cts.map → buildSignedMobileRequest-DyKCK34Y.d.cts.map} +1 -1
- package/dist/{canonicalize-BBYGh17w.d.ts → canonicalize-Bv6UIAbR.d.ts} +2 -2
- package/dist/canonicalize-Bv6UIAbR.d.ts.map +1 -0
- package/dist/{canonicalize-BF_SiNvO.d.cts → canonicalize-CWh3XZzj.d.cts} +2 -2
- package/dist/canonicalize-CWh3XZzj.d.cts.map +1 -0
- package/dist/clientTypes-BUn5_OzK.d.ts +1665 -0
- package/dist/clientTypes-BUn5_OzK.d.ts.map +1 -0
- package/dist/clientTypes-DOpUcu80.d.cts +1665 -0
- package/dist/clientTypes-DOpUcu80.d.cts.map +1 -0
- package/dist/dataMappers.cjs +691 -14
- package/dist/dataMappers.cjs.map +1 -1
- package/dist/dataMappers.d.cts +254 -8
- package/dist/dataMappers.d.cts.map +1 -1
- package/dist/dataMappers.d.ts +254 -8
- package/dist/dataMappers.d.ts.map +1 -1
- package/dist/dataMappers.js +651 -15
- package/dist/dataMappers.js.map +1 -1
- package/dist/{eip712MethodByType-BSx11xG-.d.cts → eip712MethodByType-CJ6BoayT.d.cts} +2 -2
- package/dist/eip712MethodByType-CJ6BoayT.d.cts.map +1 -0
- package/dist/{eip712MethodByType-DkiAjCLs.d.ts → eip712MethodByType-Dx4mvgni.d.ts} +2 -2
- package/dist/eip712MethodByType-Dx4mvgni.d.ts.map +1 -0
- package/dist/{feed-DTJlsg8W.d.ts → feed-DErOLaoY.d.cts} +4 -2
- package/dist/feed-DErOLaoY.d.cts.map +1 -0
- package/dist/{feed-DTJlsg8W.d.cts → feed-DErOLaoY.d.ts} +4 -2
- package/dist/feed-DErOLaoY.d.ts.map +1 -0
- package/dist/index.cjs +9 -2
- package/dist/index.d.cts +15 -16
- package/dist/index.d.ts +15 -16
- package/dist/index.js +5 -3
- package/dist/{mobileErrorCodes-3LtreeZM.d.ts → mobileErrorCodes-vD6rbFuF.d.cts} +25 -6
- package/dist/mobileErrorCodes-vD6rbFuF.d.cts.map +1 -0
- package/dist/{mobileErrorCodes-3LtreeZM.d.cts → mobileErrorCodes-vD6rbFuF.d.ts} +25 -6
- package/dist/mobileErrorCodes-vD6rbFuF.d.ts.map +1 -0
- package/dist/{payloadHash-BOWGjqdb.d.cts → payloadHash-CdkF2Ocr.d.cts} +2 -2
- package/dist/payloadHash-CdkF2Ocr.d.cts.map +1 -0
- package/dist/{payloadHash-Bzf4CtjV.d.ts → payloadHash-HD29K77M.d.ts} +2 -2
- package/dist/payloadHash-HD29K77M.d.ts.map +1 -0
- package/dist/serverExecuteTypes-5JyyIXRK.d.ts +178 -0
- package/dist/serverExecuteTypes-5JyyIXRK.d.ts.map +1 -0
- package/dist/serverExecuteTypes-CHrQ9Rtq.d.cts +178 -0
- package/dist/serverExecuteTypes-CHrQ9Rtq.d.cts.map +1 -0
- package/dist/serverModelTypes-CGUZCi0y.d.cts +938 -0
- package/dist/serverModelTypes-CGUZCi0y.d.cts.map +1 -0
- package/dist/serverModelTypes-CGUZCi0y.d.ts +938 -0
- package/dist/serverModelTypes-CGUZCi0y.d.ts.map +1 -0
- package/dist/{serverResponseGuards-BU1Xv_tG.d.ts → serverResponseGuards-Bvw8ltYJ.d.ts} +2 -2
- package/dist/{serverResponseGuards-BU1Xv_tG.d.ts.map → serverResponseGuards-Bvw8ltYJ.d.ts.map} +1 -1
- package/dist/{serverResponseGuards-Dkdok0Sm.d.cts → serverResponseGuards-i1njcYKN.d.cts} +2 -2
- package/dist/{serverResponseGuards-Dkdok0Sm.d.cts.map → serverResponseGuards-i1njcYKN.d.cts.map} +1 -1
- package/dist/signing/buildSignedMobileRequest.d.cts +1 -1
- package/dist/signing/buildSignedMobileRequest.d.ts +1 -1
- package/dist/signing/canonicalize.cjs +86 -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 +86 -0
- package/dist/signing/canonicalize.js.map +1 -1
- package/dist/signing/eip712MethodByType.cjs +12 -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 +12 -0
- package/dist/signing/eip712MethodByType.js.map +1 -1
- package/dist/signing/index.d.cts +5 -5
- package/dist/signing/index.d.ts +5 -5
- package/dist/signing/payloadHash.cjs +1 -1
- package/dist/signing/payloadHash.d.cts +1 -1
- package/dist/signing/payloadHash.d.ts +1 -1
- package/dist/signing/payloadHash.js +1 -1
- package/dist/signing/types.d.cts +1 -1
- package/dist/signing/types.d.ts +1 -1
- package/dist/types/MobileServerFailureError.d.cts +1 -1
- package/dist/types/MobileServerFailureError.d.ts +1 -1
- package/dist/types/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/MobileUnsupportedNotificationRouteError.cjs +19 -0
- package/dist/types/MobileUnsupportedNotificationRouteError.cjs.map +1 -0
- package/dist/types/MobileUnsupportedNotificationRouteError.d.cts +2 -0
- package/dist/types/MobileUnsupportedNotificationRouteError.d.ts +2 -0
- package/dist/types/MobileUnsupportedNotificationRouteError.js +18 -0
- package/dist/types/MobileUnsupportedNotificationRouteError.js.map +1 -0
- package/dist/types/clientTypes.d.cts +2 -2
- package/dist/types/clientTypes.d.ts +2 -2
- package/dist/types/index.cjs +6 -0
- package/dist/types/index.d.cts +9 -9
- package/dist/types/index.d.ts +9 -9
- package/dist/types/index.js +4 -2
- package/dist/types/mobileErrorCodes.cjs +39 -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 +39 -1
- package/dist/types/mobileErrorCodes.js.map +1 -1
- package/dist/types/serverBaseTypes.d.cts +1 -1
- package/dist/types/serverBaseTypes.d.ts +1 -1
- package/dist/types/serverExecuteTypes.d.cts +2 -2
- package/dist/types/serverExecuteTypes.d.ts +2 -2
- package/dist/types/serverModelTypes.cjs +15 -0
- package/dist/types/serverModelTypes.cjs.map +1 -1
- package/dist/types/serverModelTypes.d.cts +2 -2
- package/dist/types/serverModelTypes.d.ts +2 -2
- package/dist/types/serverModelTypes.js +14 -1
- package/dist/types/serverModelTypes.js.map +1 -1
- package/dist/types/serverQueryTypes.d.cts +2 -2
- package/dist/types/serverQueryTypes.d.ts +2 -2
- package/dist/types/serverRequestTypes.d.cts +2 -2
- package/dist/types/serverRequestTypes.d.ts +2 -2
- package/dist/types-C9YE4EIt.d.cts +794 -0
- package/dist/types-C9YE4EIt.d.cts.map +1 -0
- package/dist/types-Cwy1y_9x.d.ts +794 -0
- package/dist/types-Cwy1y_9x.d.ts.map +1 -0
- package/dist/utils/buildMobileFeedImageMultipart.cjs +31 -0
- package/dist/utils/buildMobileFeedImageMultipart.cjs.map +1 -0
- package/dist/utils/buildMobileFeedImageMultipart.d.cts +15 -0
- package/dist/utils/buildMobileFeedImageMultipart.d.cts.map +1 -0
- package/dist/utils/buildMobileFeedImageMultipart.d.ts +15 -0
- package/dist/utils/buildMobileFeedImageMultipart.d.ts.map +1 -0
- package/dist/utils/buildMobileFeedImageMultipart.js +30 -0
- package/dist/utils/buildMobileFeedImageMultipart.js.map +1 -0
- package/dist/utils/feed.cjs +3 -0
- package/dist/utils/feed.cjs.map +1 -1
- package/dist/utils/feed.d.cts +2 -2
- package/dist/utils/feed.d.ts +2 -2
- package/dist/utils/feed.js +3 -1
- package/dist/utils/feed.js.map +1 -1
- package/dist/utils/index.cjs +2 -1
- package/dist/utils/index.d.cts +3 -3
- package/dist/utils/index.d.ts +3 -3
- package/dist/utils/index.js +2 -2
- package/dist/utils/serverResponseGuards.d.cts +1 -1
- package/dist/utils/serverResponseGuards.d.ts +1 -1
- package/package.json +3 -3
- package/src/MobileClient.ts +789 -7
- package/src/dataMappers.test.ts +848 -0
- package/src/dataMappers.ts +924 -17
- package/src/feedImages.test.ts +309 -0
- package/src/notifications.test.ts +950 -0
- package/src/signing/canonicalize.ts +119 -0
- package/src/signing/eip712MethodByType.ts +15 -0
- package/src/signing/signing.test.ts +362 -0
- package/src/signing/types.ts +108 -13
- package/src/socialFeed.test.ts +38 -2
- package/src/types/MobileUnsupportedFeedItemError.ts +18 -0
- package/src/types/MobileUnsupportedNotificationRouteError.ts +16 -0
- package/src/types/clientTypes.ts +1012 -34
- package/src/types/index.ts +2 -0
- package/src/types/mobileErrorCodes.ts +38 -0
- package/src/types/serverExecuteTypes.ts +112 -3
- package/src/types/serverModelTypes.ts +581 -28
- package/src/types/serverQueryTypes.ts +212 -5
- package/src/types/serverRequestTypes.ts +213 -13
- package/src/utils/buildMobileFeedImageMultipart.test.ts +45 -0
- package/src/utils/buildMobileFeedImageMultipart.ts +36 -0
- package/src/utils/feed.ts +3 -0
- package/dist/MobileClient-aDxiM_Kf.cjs +0 -562
- package/dist/MobileClient-aDxiM_Kf.cjs.map +0 -1
- package/dist/MobileServerFailureError-Bpa_WA9f.d.cts.map +0 -1
- package/dist/MobileServerFailureError-Dd3c6P_Z.d.ts.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 +0 -844
- package/dist/clientTypes-BWFKo9oE.d.cts.map +0 -1
- package/dist/clientTypes-DCTiUV0H.d.ts +0 -844
- 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/feed-DTJlsg8W.d.cts.map +0 -1
- package/dist/feed-DTJlsg8W.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/serverBaseTypes-DWf3iGWy.d.ts +0 -25
- package/dist/serverBaseTypes-DWf3iGWy.d.ts.map +0 -1
- package/dist/serverBaseTypes-KREDe2M9.d.cts +0 -25
- package/dist/serverBaseTypes-KREDe2M9.d.cts.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 +0 -508
- package/dist/serverModelTypes-DAqEyYtB.d.cts.map +0 -1
- package/dist/serverModelTypes-DAqEyYtB.d.ts +0 -508
- package/dist/serverModelTypes-DAqEyYtB.d.ts.map +0 -1
- package/dist/serverQueryTypes-BFdwq0Z2.d.ts +0 -171
- package/dist/serverQueryTypes-BFdwq0Z2.d.ts.map +0 -1
- package/dist/serverQueryTypes-DNdMpmDr.d.cts +0 -171
- package/dist/serverQueryTypes-DNdMpmDr.d.cts.map +0 -1
- package/dist/serverRequestTypes-BNA7FCY6.d.ts +0 -200
- package/dist/serverRequestTypes-BNA7FCY6.d.ts.map +0 -1
- package/dist/serverRequestTypes-CxDRFKfv.d.cts +0 -200
- package/dist/serverRequestTypes-CxDRFKfv.d.cts.map +0 -1
- package/dist/types-BCr2G5gS.d.cts +0 -84
- package/dist/types-BCr2G5gS.d.cts.map +0 -1
- package/dist/types-C18k-9Vy.d.ts +0 -84
- package/dist/types-C18k-9Vy.d.ts.map +0 -1
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import { K as MobileServerSocialFeedDrawing, L as MobileServerSocialFeedAuthor, Z as MobileServerSocialFeedImage, et as MobileServerSocialFeedItem, ft as MobileServerSocialFeedReply } from "./serverModelTypes-CGUZCi0y.cjs";
|
|
2
|
+
import { $ as MobileServerFailureResponse, d as MobileServerPublicExecuteRequestType, et as MobileServerSuccessResponse, k as MobileServerNotificationSettingsV2Response, o as MobileServerExecuteRequestType, u as MobileServerPublicExecuteRequestByType } from "./types-C9YE4EIt.cjs";
|
|
3
|
+
import { Hex } from "viem";
|
|
4
|
+
|
|
5
|
+
//#region src/types/serverExecuteTypes.d.ts
|
|
6
|
+
/**
|
|
7
|
+
* Unsigned `public_execute` request body: a `type` discriminant flattened with its params, mirroring
|
|
8
|
+
* {@link MobileServerPublicQueryRequest}.
|
|
9
|
+
*/
|
|
10
|
+
type MobileServerPublicExecuteRequest<T extends MobileServerPublicExecuteRequestType = MobileServerPublicExecuteRequestType> = { [K in MobileServerPublicExecuteRequestType]: {
|
|
11
|
+
type: K;
|
|
12
|
+
} & MobileServerPublicExecuteRequestByType[K] }[T];
|
|
13
|
+
/**
|
|
14
|
+
* Payload the `set_follow` execute returns alongside the success envelope. The mutation and the count commit
|
|
15
|
+
* in one database transaction, so these are the authoritative post-mutation values — prefer them over
|
|
16
|
+
* re-reading, and note that overlapping toggles for the same pair can respond out of arrival order.
|
|
17
|
+
*/
|
|
18
|
+
interface MobileServerFollowMutationResponse {
|
|
19
|
+
is_following: boolean;
|
|
20
|
+
/** The *target's* follower count after the mutation, not the sender's. */
|
|
21
|
+
follower_count: number;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* One target's post-commit state in a `set_follow_batch` response.
|
|
25
|
+
*/
|
|
26
|
+
interface MobileServerFollowBatchResultItem {
|
|
27
|
+
/** The requested target, as lowercase hex. */
|
|
28
|
+
subaccount: Hex;
|
|
29
|
+
is_following: boolean;
|
|
30
|
+
/** The *target's* follower count after the batch, not the sender's. */
|
|
31
|
+
follower_count: number;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Payload the `set_follow_batch` execute returns alongside the success envelope: one result per target, in
|
|
35
|
+
* request order. Every write and count runs in one database transaction, so the batch either fully applies or
|
|
36
|
+
* changes nothing, and these values are authoritative post-commit state.
|
|
37
|
+
*/
|
|
38
|
+
interface MobileServerFollowBatchResponse {
|
|
39
|
+
results: MobileServerFollowBatchResultItem[];
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Payload of an execute route that returns nothing beyond the success discriminant. Spelled `Record<never,
|
|
43
|
+
* never>` rather than `Record<string, never>` because the latter's index signature would collapse `status` to
|
|
44
|
+
* `never` when intersected with the success envelope.
|
|
45
|
+
*/
|
|
46
|
+
type MobileServerEmptyExecuteResponse = Record<never, never>;
|
|
47
|
+
/**
|
|
48
|
+
* Temporary upload grant returned by `create_avatar_upload`; publishing requires a subsequent `set_avatar`.
|
|
49
|
+
*/
|
|
50
|
+
interface MobileServerAvatarUploadResponse {
|
|
51
|
+
/** Server-owned staging object key. */
|
|
52
|
+
upload_key: string;
|
|
53
|
+
/** Short-lived signed PUT URL. */
|
|
54
|
+
upload_url: string;
|
|
55
|
+
/** Headers required by the signed PUT. */
|
|
56
|
+
headers: Record<string, string>;
|
|
57
|
+
/** Upload URL lifetime in seconds from issuance. */
|
|
58
|
+
expires_in_seconds: number;
|
|
59
|
+
}
|
|
60
|
+
/** Ready image returned by a direct multipart upload. */
|
|
61
|
+
interface MobileServerSocialFeedImageUploadResponse {
|
|
62
|
+
/** Ready image metadata, including original and thumbnail paths. */
|
|
63
|
+
image: MobileServerSocialFeedImage;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Success payloads for each signed `execute`, keyed by request `type`. Mutations return either the success
|
|
67
|
+
* envelope alone or authoritative post-commit state; avatar upload creation returns a temporary grant.
|
|
68
|
+
*/
|
|
69
|
+
interface MobileServerExecuteResponseByType {
|
|
70
|
+
/** Capability-aware device registration returns only status. */
|
|
71
|
+
register_expo_token_v2: MobileServerEmptyExecuteResponse;
|
|
72
|
+
/** Re-query subscriptions after success to obtain the new revision. */
|
|
73
|
+
update_notification_subscriptions: MobileServerEmptyExecuteResponse;
|
|
74
|
+
/** Atomic event recording returns only status. */
|
|
75
|
+
record_product_events: MobileServerEmptyExecuteResponse;
|
|
76
|
+
/** Published or idempotently recovered item. */
|
|
77
|
+
create_feed_post: MobileServerSocialFeedPostResponse;
|
|
78
|
+
/** Atomically published reply and updated count. */
|
|
79
|
+
create_feed_comment: MobileServerSocialFeedCommentResponse;
|
|
80
|
+
/** Direct post-image upload; the image is ready immediately. */
|
|
81
|
+
create_feed_post_image_uploads: MobileServerSocialFeedImageUploadResponse;
|
|
82
|
+
/** Direct comment-image upload; the image is ready immediately. */
|
|
83
|
+
create_feed_comment_image_uploads: MobileServerSocialFeedImageUploadResponse;
|
|
84
|
+
/** First attached drawing. */
|
|
85
|
+
create_feed_chart_drawing: MobileServerSocialFeedDrawingMutationResponse;
|
|
86
|
+
/** Replaced or idempotently recovered drawing. */
|
|
87
|
+
update_feed_chart_drawing: MobileServerSocialFeedDrawingMutationResponse;
|
|
88
|
+
/** Post-mutation like state. */
|
|
89
|
+
set_feed_like: MobileServerSocialFeedLikeResponse;
|
|
90
|
+
/** Bio writes return only the success envelope. */
|
|
91
|
+
set_bio: MobileServerEmptyExecuteResponse;
|
|
92
|
+
/** Avatar writes return only the success envelope. */
|
|
93
|
+
set_avatar: MobileServerEmptyExecuteResponse;
|
|
94
|
+
/** Temporary upload grant; publishing requires a subsequent set_avatar call. */
|
|
95
|
+
create_avatar_upload: MobileServerAvatarUploadResponse;
|
|
96
|
+
set_username: MobileServerEmptyExecuteResponse;
|
|
97
|
+
set_private_mode: MobileServerEmptyExecuteResponse;
|
|
98
|
+
register_expo_token: MobileServerEmptyExecuteResponse;
|
|
99
|
+
set_follow: MobileServerFollowMutationResponse;
|
|
100
|
+
set_follow_batch: MobileServerFollowBatchResponse;
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Full success response for a signed `execute`: the {@link MobileServerSuccessResponse} envelope with the
|
|
104
|
+
* route's payload inlined alongside `status`, matching how the query routes inline theirs.
|
|
105
|
+
*/
|
|
106
|
+
type MobileServerExecuteSuccessResponse<T extends MobileServerExecuteRequestType = MobileServerExecuteRequestType> = MobileServerSuccessResponse & MobileServerExecuteResponseByType[T];
|
|
107
|
+
/**
|
|
108
|
+
* Discriminated `execute` result union used at the transport boundary, before the envelope is narrowed.
|
|
109
|
+
*/
|
|
110
|
+
type MobileServerExecuteResult = MobileServerSuccessResponse | MobileServerFailureResponse;
|
|
111
|
+
/** Atomic publication success; unlike feed_item, this does not issue a read session. */
|
|
112
|
+
interface MobileServerSocialFeedPostResponse {
|
|
113
|
+
/** Published item. */
|
|
114
|
+
item: MobileServerSocialFeedItem;
|
|
115
|
+
}
|
|
116
|
+
/** Atomic reply publication and authoritative root count. */
|
|
117
|
+
interface MobileServerSocialFeedCommentResponse {
|
|
118
|
+
/** Published reply. */
|
|
119
|
+
comment: MobileServerSocialFeedReply;
|
|
120
|
+
/** Post-commit root count. */
|
|
121
|
+
root_comment_count: number;
|
|
122
|
+
}
|
|
123
|
+
/** Successful drawing mutation always returns a saved drawing. */
|
|
124
|
+
interface MobileServerSocialFeedDrawingMutationResponse {
|
|
125
|
+
/** Parent UUID. */
|
|
126
|
+
item_id: string;
|
|
127
|
+
/** Display version. */
|
|
128
|
+
item_version: string;
|
|
129
|
+
/** Saved parsed drawing. */
|
|
130
|
+
drawing: MobileServerSocialFeedDrawing;
|
|
131
|
+
}
|
|
132
|
+
/** Authoritative like state after the mutation. */
|
|
133
|
+
interface MobileServerSocialFeedLikeResponse {
|
|
134
|
+
/** Item UUID. */
|
|
135
|
+
item_id: string;
|
|
136
|
+
/** Applied relationship state. */
|
|
137
|
+
is_liked: boolean;
|
|
138
|
+
/** Post-mutation count. */
|
|
139
|
+
like_count: number;
|
|
140
|
+
/** Display version. */
|
|
141
|
+
version: string;
|
|
142
|
+
}
|
|
143
|
+
/** Exposure counts deduplicated by browsing credential, item, and UTC day. */
|
|
144
|
+
interface MobileServerSocialFeedViewsResponse {
|
|
145
|
+
/** Newly counted items. */
|
|
146
|
+
accepted_item_ids: string[];
|
|
147
|
+
/** Already counted items. */
|
|
148
|
+
duplicate_item_ids: string[];
|
|
149
|
+
}
|
|
150
|
+
/** Page lease result; this response does not carry as_of_ms. */
|
|
151
|
+
interface MobileServerSocialFeedPresenceResponse {
|
|
152
|
+
/** Active visitor count. */
|
|
153
|
+
watcher_count: number;
|
|
154
|
+
/** Self-reported public account previews. */
|
|
155
|
+
watcher_preview: MobileServerSocialFeedAuthor[];
|
|
156
|
+
/** Recommended heartbeat interval. */
|
|
157
|
+
heartbeat_interval_seconds: number;
|
|
158
|
+
/** Lease lifetime, bounded by the reading session. */
|
|
159
|
+
expires_in_seconds: number;
|
|
160
|
+
}
|
|
161
|
+
/** Response payloads for unsigned writes. */
|
|
162
|
+
interface MobileServerPublicExecuteResponseByType {
|
|
163
|
+
/** Saved document, including the advanced settings revision. */
|
|
164
|
+
update_notification_settings_v2: MobileServerNotificationSettingsV2Response;
|
|
165
|
+
/** Token removal returns only the success envelope. */
|
|
166
|
+
unregister_expo_token: MobileServerEmptyExecuteResponse;
|
|
167
|
+
/** Preference updates return only the success envelope. */
|
|
168
|
+
update_preferences: MobileServerEmptyExecuteResponse;
|
|
169
|
+
/** Exposure deduplication result. */
|
|
170
|
+
record_feed_views: MobileServerSocialFeedViewsResponse;
|
|
171
|
+
/** Page lease result. */
|
|
172
|
+
position_presence: MobileServerSocialFeedPresenceResponse;
|
|
173
|
+
}
|
|
174
|
+
/** Full success response for an unsigned write. */
|
|
175
|
+
type MobileServerPublicExecuteSuccessResponse<T extends MobileServerPublicExecuteRequestType = MobileServerPublicExecuteRequestType> = MobileServerSuccessResponse & MobileServerPublicExecuteResponseByType[T];
|
|
176
|
+
//#endregion
|
|
177
|
+
export { MobileServerSocialFeedPresenceResponse as _, MobileServerExecuteSuccessResponse as a, MobileServerFollowMutationResponse as c, MobileServerPublicExecuteSuccessResponse as d, MobileServerSocialFeedCommentResponse as f, MobileServerSocialFeedPostResponse as g, MobileServerSocialFeedLikeResponse as h, MobileServerExecuteResult as i, MobileServerPublicExecuteRequest as l, MobileServerSocialFeedImageUploadResponse as m, MobileServerEmptyExecuteResponse as n, MobileServerFollowBatchResponse as o, MobileServerSocialFeedDrawingMutationResponse as p, MobileServerExecuteResponseByType as r, MobileServerFollowBatchResultItem as s, MobileServerAvatarUploadResponse as t, MobileServerPublicExecuteResponseByType as u, MobileServerSocialFeedViewsResponse as v };
|
|
178
|
+
//# sourceMappingURL=serverExecuteTypes-CHrQ9Rtq.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"serverExecuteTypes-CHrQ9Rtq.d.cts","names":[],"sources":["../src/types/src/types/serverExecuteTypes.ts"],"mappings":";;;;;AAuBA;;;;AAAA,KAAY,gCAAA,WACA,oCAAA,GACR,oCAAA,YAEI,oCAAA;EACJ,IAAA,EAAM,CAAA;AAAA,IACJ,sCAAA,CAAuC,CAAA,IAC3C,CAAA;;;;;;UAOe,kCAAA;EACf,YAAA;EAXM;EAaN,cAAc;AAAA;;;;UAMC,iCAAA;EAhBd;EAkBD,UAAA,EAAY,GAAG;EACf,YAAA;;EAEA,cAAA;AAAA;AALF;;;;;AAAA,UAaiB,+BAAA;EACf,OAAA,EAAS,iCAAiC;AAAA;;AAT5B;AAQhB;;;KASY,gCAAA,GAAmC,MAAM;AART;AAQ5C;;AAR4C,UAa3B,gCAAA;EALoC;EAOnD,UAAA;EAFe;EAIf,UAAA;;EAEA,OAAA,EAAS,MAAM;EAJf;EAMA,kBAAA;AAAA;;UAIe,yCAAA;EAJG;EAMlB,KAAA,EAAO,2BAA2B;AAAA;;;;AAAA;UAOnB,iCAAA;EAAiC;EAEhD,sBAAA,EAAwB,gCAAA;EAAA;EAExB,iCAAA,EAAmC,gCAAA;EAEZ;EAAvB,qBAAA,EAAuB,gCAAA;EAIF;EAFrB,gBAAA,EAAkB,kCAAA;EAMiB;EAJnC,mBAAA,EAAqB,qCAAA;EAQM;EAN3B,8BAAA,EAAgC,yCAAA;EAUvB;EART,iCAAA,EAAmC,yCAAA;EAYb;EAVtB,yBAAA,EAA2B,6CAAA;EAYT;EAVlB,yBAAA,EAA2B,6CAAA;EAYf;EAVZ,aAAA,EAAe,kCAAA;EAWkC;EATjD,OAAA,EAAS,gCAAA;EApBT;EAsBA,UAAA,EAAY,gCAAA;EApBZ;EAsBA,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;EA5BN;EA8BT,IAAA,EAAM,0BAA0B;AAAA;;UAIjB,qCAAA;EA7Bf;EA+BA,OAAA,EAAS,2BAA2B;EA9BpC;EAgCA,kBAAA;AAAA;;UAIe,6CAAA;EAlCH;EAoCZ,OAAA;EAnCkB;EAqClB,YAAA;EArCiD;EAuCjD,OAAA,EAAS,6BAA6B;AAAA;;UAIvB,kCAAA;EAnC4B;EAqC3C,OAAA;EApCgC;EAsChC,QAAA;EAtCmE;EAwCnE,UAAA;EAzCA;EA2CA,OAAA;AAAA;;UAIe,mCAAA;EA9CmD;EAgDlE,iBAAA;EAhDmE;EAkDnE,kBAAkB;AAAA;;UAIH,sCAAA;EA/Cc;EAiD7B,aAAA;EA9CiD;EAgDjD,eAAA,EAAiB,4BAA4B;EA9C7C;EAgDA,0BAAA;EA5Ce;EA8Cf,kBAAA;AAAA;;UAIe,uCAAA;EAhDN;EAkDT,+BAAA,EAAiC,0CAAA;EAhDf;EAkDlB,qBAAA,EAAuB,gCAAA;EA9CR;EAgDf,kBAAA,EAAoB,gCAAA;;EAEpB,iBAAA,EAAmB,mCAAA;EAhDnB;EAkDA,iBAAA,EAAmB,sCAAA;AAAA;;KAIT,wCAAA,WACA,oCAAA,GACR,oCAAA,IACA,2BAAA,GAA8B,uCAAA,CAAwC,CAAA"}
|