@nadohq/mobile-client 0.65.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 +107 -8
- package/dist/{MobileClient-CfVZXTcz.cjs → MobileClient-M4oC4lrX.cjs} +258 -16
- package/dist/MobileClient-M4oC4lrX.cjs.map +1 -0
- package/dist/MobileClient.cjs +1 -1
- package/dist/MobileClient.d.cts +146 -16
- package/dist/MobileClient.d.cts.map +1 -1
- package/dist/MobileClient.d.ts +146 -16
- package/dist/MobileClient.d.ts.map +1 -1
- package/dist/MobileClient.js +258 -16
- package/dist/MobileClient.js.map +1 -1
- package/dist/{MobileServerFailureError-BZVwlsMg.d.ts → MobileServerFailureError-C9iqNsxI.d.ts} +2 -3
- package/dist/MobileServerFailureError-C9iqNsxI.d.ts.map +1 -0
- package/dist/{MobileServerFailureError-CbtK8kD4.d.cts → MobileServerFailureError-MtS2reel.d.cts} +2 -3
- package/dist/MobileServerFailureError-MtS2reel.d.cts.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-UeeWdYGU.d.ts → buildSignedMobileRequest-BR-KJhIF.d.ts} +2 -2
- package/dist/{buildSignedMobileRequest-UeeWdYGU.d.ts.map → buildSignedMobileRequest-BR-KJhIF.d.ts.map} +1 -1
- package/dist/{buildSignedMobileRequest-C1v0flCR.d.cts → buildSignedMobileRequest-DyKCK34Y.d.cts} +2 -2
- package/dist/{buildSignedMobileRequest-C1v0flCR.d.cts.map → buildSignedMobileRequest-DyKCK34Y.d.cts.map} +1 -1
- package/dist/{canonicalize-5eeZrkzQ.d.ts → canonicalize-Bv6UIAbR.d.ts} +2 -2
- package/dist/canonicalize-Bv6UIAbR.d.ts.map +1 -0
- package/dist/{canonicalize-CBaZprTo.d.cts → canonicalize-CWh3XZzj.d.cts} +2 -2
- package/dist/canonicalize-CWh3XZzj.d.cts.map +1 -0
- package/dist/{clientTypes-C9dJufxk.d.ts → clientTypes-BUn5_OzK.d.ts} +297 -20
- package/dist/clientTypes-BUn5_OzK.d.ts.map +1 -0
- package/dist/{clientTypes-_mEgzmNs.d.cts → clientTypes-DOpUcu80.d.cts} +297 -20
- package/dist/clientTypes-DOpUcu80.d.cts.map +1 -0
- package/dist/dataMappers.cjs +203 -5
- package/dist/dataMappers.cjs.map +1 -1
- package/dist/dataMappers.d.cts +70 -7
- package/dist/dataMappers.d.cts.map +1 -1
- package/dist/dataMappers.d.ts +70 -7
- package/dist/dataMappers.d.ts.map +1 -1
- package/dist/dataMappers.js +192 -6
- package/dist/dataMappers.js.map +1 -1
- package/dist/{eip712MethodByType-D8jLoxDu.d.cts → eip712MethodByType-CJ6BoayT.d.cts} +2 -2
- package/dist/eip712MethodByType-CJ6BoayT.d.cts.map +1 -0
- package/dist/{eip712MethodByType-DcUh8h-l.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 +7 -2
- package/dist/index.d.cts +14 -16
- package/dist/index.d.ts +14 -16
- package/dist/index.js +4 -3
- package/dist/{mobileErrorCodes-CmjYEIYm.d.ts → mobileErrorCodes-vD6rbFuF.d.cts} +8 -3
- package/dist/mobileErrorCodes-vD6rbFuF.d.cts.map +1 -0
- package/dist/{mobileErrorCodes-CmjYEIYm.d.cts → mobileErrorCodes-vD6rbFuF.d.ts} +8 -3
- package/dist/mobileErrorCodes-vD6rbFuF.d.ts.map +1 -0
- package/dist/{payloadHash-DhHmgRqL.d.cts → payloadHash-CdkF2Ocr.d.cts} +2 -2
- package/dist/payloadHash-CdkF2Ocr.d.cts.map +1 -0
- package/dist/{payloadHash-E1_8fpLW.d.ts → payloadHash-HD29K77M.d.ts} +2 -2
- package/dist/payloadHash-HD29K77M.d.ts.map +1 -0
- package/dist/{serverExecuteTypes-B-OJok19.d.cts → serverExecuteTypes-5JyyIXRK.d.ts} +21 -5
- package/dist/serverExecuteTypes-5JyyIXRK.d.ts.map +1 -0
- package/dist/{serverExecuteTypes-BwWGspOg.d.ts → serverExecuteTypes-CHrQ9Rtq.d.cts} +21 -5
- package/dist/serverExecuteTypes-CHrQ9Rtq.d.cts.map +1 -0
- package/dist/{serverModelTypes-CiA-dy1R.d.ts → serverModelTypes-CGUZCi0y.d.cts} +163 -8
- package/dist/serverModelTypes-CGUZCi0y.d.cts.map +1 -0
- package/dist/{serverModelTypes-CiA-dy1R.d.cts → serverModelTypes-CGUZCi0y.d.ts} +163 -8
- package/dist/serverModelTypes-CGUZCi0y.d.ts.map +1 -0
- package/dist/{serverResponseGuards-CShiXpHT.d.ts → serverResponseGuards-Bvw8ltYJ.d.ts} +2 -2
- package/dist/{serverResponseGuards-CShiXpHT.d.ts.map → serverResponseGuards-Bvw8ltYJ.d.ts.map} +1 -1
- package/dist/{serverResponseGuards-BW69PS7O.d.cts → serverResponseGuards-i1njcYKN.d.cts} +2 -2
- package/dist/{serverResponseGuards-BW69PS7O.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 +51 -2
- package/dist/signing/canonicalize.cjs.map +1 -1
- package/dist/signing/canonicalize.d.cts +1 -1
- package/dist/signing/canonicalize.d.ts +1 -1
- package/dist/signing/canonicalize.js +51 -2
- package/dist/signing/canonicalize.js.map +1 -1
- package/dist/signing/eip712MethodByType.cjs +7 -0
- package/dist/signing/eip712MethodByType.cjs.map +1 -1
- package/dist/signing/eip712MethodByType.d.cts +1 -1
- package/dist/signing/eip712MethodByType.d.ts +1 -1
- package/dist/signing/eip712MethodByType.js +7 -0
- package/dist/signing/eip712MethodByType.js.map +1 -1
- package/dist/signing/index.d.cts +5 -5
- package/dist/signing/index.d.ts +5 -5
- package/dist/signing/payloadHash.cjs +1 -1
- package/dist/signing/payloadHash.d.cts +1 -1
- package/dist/signing/payloadHash.d.ts +1 -1
- package/dist/signing/payloadHash.js +1 -1
- package/dist/signing/types.d.cts +1 -1
- package/dist/signing/types.d.ts +1 -1
- package/dist/types/MobileServerFailureError.d.cts +1 -1
- package/dist/types/MobileServerFailureError.d.ts +1 -1
- package/dist/types/MobileUnsupportedNotificationRouteError.cjs +19 -0
- package/dist/types/MobileUnsupportedNotificationRouteError.cjs.map +1 -0
- package/dist/types/MobileUnsupportedNotificationRouteError.d.cts +2 -0
- package/dist/types/MobileUnsupportedNotificationRouteError.d.ts +2 -0
- package/dist/types/MobileUnsupportedNotificationRouteError.js +18 -0
- package/dist/types/MobileUnsupportedNotificationRouteError.js.map +1 -0
- package/dist/types/clientTypes.d.cts +2 -2
- package/dist/types/clientTypes.d.ts +2 -2
- package/dist/types/index.cjs +4 -0
- package/dist/types/index.d.cts +8 -9
- package/dist/types/index.d.ts +8 -9
- package/dist/types/index.js +3 -2
- package/dist/types/mobileErrorCodes.cjs +11 -1
- package/dist/types/mobileErrorCodes.cjs.map +1 -1
- package/dist/types/mobileErrorCodes.d.cts +1 -1
- package/dist/types/mobileErrorCodes.d.ts +1 -1
- package/dist/types/mobileErrorCodes.js +11 -1
- package/dist/types/mobileErrorCodes.js.map +1 -1
- package/dist/types/serverBaseTypes.d.cts +1 -1
- package/dist/types/serverBaseTypes.d.ts +1 -1
- package/dist/types/serverExecuteTypes.d.cts +2 -2
- package/dist/types/serverExecuteTypes.d.ts +2 -2
- package/dist/types/serverModelTypes.cjs +15 -0
- package/dist/types/serverModelTypes.cjs.map +1 -1
- package/dist/types/serverModelTypes.d.cts +2 -2
- package/dist/types/serverModelTypes.d.ts +2 -2
- package/dist/types/serverModelTypes.js +14 -1
- package/dist/types/serverModelTypes.js.map +1 -1
- package/dist/types/serverQueryTypes.d.cts +2 -2
- package/dist/types/serverQueryTypes.d.ts +2 -2
- package/dist/types/serverRequestTypes.d.cts +2 -2
- package/dist/types/serverRequestTypes.d.ts +2 -2
- package/dist/types-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 +388 -11
- package/src/dataMappers.test.ts +108 -2
- package/src/dataMappers.ts +253 -5
- package/src/feedImages.test.ts +309 -0
- package/src/notifications.test.ts +950 -0
- package/src/signing/canonicalize.ts +66 -0
- package/src/signing/eip712MethodByType.ts +10 -0
- package/src/signing/signing.test.ts +16 -1
- package/src/signing/types.ts +51 -9
- package/src/socialFeed.test.ts +38 -2
- package/src/types/MobileUnsupportedNotificationRouteError.ts +16 -0
- package/src/types/clientTypes.ts +372 -16
- package/src/types/index.ts +1 -0
- package/src/types/mobileErrorCodes.ts +10 -0
- package/src/types/serverExecuteTypes.ts +20 -0
- package/src/types/serverModelTypes.ts +205 -6
- package/src/types/serverQueryTypes.ts +74 -5
- package/src/types/serverRequestTypes.ts +101 -12
- 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-CfVZXTcz.cjs.map +0 -1
- package/dist/MobileServerFailureError-BZVwlsMg.d.ts.map +0 -1
- package/dist/MobileServerFailureError-CbtK8kD4.d.cts.map +0 -1
- package/dist/canonicalize-5eeZrkzQ.d.ts.map +0 -1
- package/dist/canonicalize-CBaZprTo.d.cts.map +0 -1
- package/dist/clientTypes-C9dJufxk.d.ts.map +0 -1
- package/dist/clientTypes-_mEgzmNs.d.cts.map +0 -1
- package/dist/eip712MethodByType-D8jLoxDu.d.cts.map +0 -1
- package/dist/eip712MethodByType-DcUh8h-l.d.ts.map +0 -1
- package/dist/feed-DTJlsg8W.d.cts.map +0 -1
- package/dist/feed-DTJlsg8W.d.ts.map +0 -1
- package/dist/mobileErrorCodes-CmjYEIYm.d.cts.map +0 -1
- package/dist/mobileErrorCodes-CmjYEIYm.d.ts.map +0 -1
- package/dist/payloadHash-DhHmgRqL.d.cts.map +0 -1
- package/dist/payloadHash-E1_8fpLW.d.ts.map +0 -1
- package/dist/serverBaseTypes-B5J1_TyC.d.cts +0 -25
- package/dist/serverBaseTypes-B5J1_TyC.d.cts.map +0 -1
- package/dist/serverBaseTypes-DnLzsdm-.d.ts +0 -25
- package/dist/serverBaseTypes-DnLzsdm-.d.ts.map +0 -1
- package/dist/serverExecuteTypes-B-OJok19.d.cts.map +0 -1
- package/dist/serverExecuteTypes-BwWGspOg.d.ts.map +0 -1
- package/dist/serverModelTypes-CiA-dy1R.d.cts.map +0 -1
- package/dist/serverModelTypes-CiA-dy1R.d.ts.map +0 -1
- package/dist/serverQueryTypes-CJcjLB7n.d.ts +0 -283
- package/dist/serverQueryTypes-CJcjLB7n.d.ts.map +0 -1
- package/dist/serverQueryTypes-V1f9yE7L.d.cts +0 -283
- package/dist/serverQueryTypes-V1f9yE7L.d.cts.map +0 -1
- package/dist/serverRequestTypes-CRlkNSu5.d.cts +0 -270
- package/dist/serverRequestTypes-CRlkNSu5.d.cts.map +0 -1
- package/dist/serverRequestTypes-DZoOhV2o.d.ts +0 -270
- package/dist/serverRequestTypes-DZoOhV2o.d.ts.map +0 -1
- package/dist/types-BiRmH5Iv.d.cts +0 -108
- package/dist/types-BiRmH5Iv.d.cts.map +0 -1
- package/dist/types-DoJuq0Ij.d.ts +0 -108
- package/dist/types-DoJuq0Ij.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"canonicalize.cjs","names":[],"sources":["../../src/signing/canonicalize.ts"],"sourcesContent":["import { MobileSocialFeedMention } from '../types/serverModelTypes';\nimport { MobileSignedInner } from './types';\n\n/**\n * Rebuilds an inner payload with its keys in the backend's struct declaration order (`type` first, then the\n * remaining fields in the exact order the backend serializes them). msgpack encodes object keys in insertion\n * order and the payload hash must be reproducible regardless of how the caller constructed the object, so\n * every inner payload — and each of its sub-types — is canonicalized here before hashing. This function is\n * the source of truth for that order.\n */\nexport function canonicalizeMobileInner(\n inner: MobileSignedInner,\n): MobileSignedInner {\n switch (inner.type) {\n case 'create_feed_post':\n return {\n type: inner.type,\n client_request_id: inner.client_request_id,\n position_id: inner.position_id,\n ...(inner.action_id === undefined\n ? {}\n : { action_id: inner.action_id }),\n text: inner.text,\n mentions: inner.mentions.map(canonicalizeMention),\n ...(inner.drawing_data_json === undefined\n ? {}\n : { drawing_data_json: inner.drawing_data_json }),\n };\n case 'create_feed_comment':\n return {\n type: inner.type,\n client_request_id: inner.client_request_id,\n root_item_id: inner.root_item_id,\n ...(inner.reply_to_item_id === undefined\n ? {}\n : { reply_to_item_id: inner.reply_to_item_id }),\n text: inner.text,\n mentions: inner.mentions.map(canonicalizeMention),\n ...(inner.attached_position_id === undefined\n ? {}\n : { attached_position_id: inner.attached_position_id }),\n };\n case 'create_feed_chart_drawing':\n case 'update_feed_chart_drawing':\n return {\n type: inner.type,\n item_id: inner.item_id,\n data_json: inner.data_json,\n };\n case 'set_feed_like':\n return {\n type: inner.type,\n item_id: inner.item_id,\n is_liked: inner.is_liked,\n };\n case 'set_bio':\n return { type: 'set_bio', bio: inner.bio };\n case 'create_avatar_upload':\n return {\n type: 'create_avatar_upload',\n content_length: inner.content_length,\n };\n case 'set_avatar': {\n const avatar = inner.avatar;\n if (avatar === null) {\n return { type: 'set_avatar', avatar: null };\n }\n return {\n type: 'set_avatar',\n avatar:\n avatar.type === 'preset'\n ? { type: 'preset', id: avatar.id }\n : { type: 'upload', upload_key: avatar.upload_key },\n };\n }\n case 'set_username':\n return { type: 'set_username', display_name: inner.display_name };\n case 'set_private_mode':\n return { type: 'set_private_mode', private_mode: inner.private_mode };\n case 'register_expo_token':\n return {\n type: 'register_expo_token',\n expo_token: inner.expo_token,\n platform: inner.platform,\n locale: inner.locale,\n app_version: inner.app_version,\n };\n case 'set_follow':\n return {\n type: 'set_follow',\n subaccount: inner.subaccount,\n is_following: inner.is_following,\n };\n case 'set_follow_batch':\n return {\n type: 'set_follow_batch',\n subaccounts: [...inner.subaccounts],\n is_following: inner.is_following,\n };\n default: {\n throw new Error(\n `canonicalizeMobileInner: unhandled inner payload type: ${JSON.stringify(inner)}`,\n );\n }\n }\n}\n\nfunction canonicalizeMention(\n mention: MobileSocialFeedMention,\n): MobileSocialFeedMention {\n return {\n subaccount: mention.subaccount,\n start: mention.start,\n end: mention.end,\n label: mention.label,\n };\n}\n"],"mappings":";;;;;;;;;AAUA,SAAgB,wBACd,OACmB;CACnB,QAAQ,MAAM,MAAd;EACE,KAAK,oBACH,OAAO;GACL,MAAM,MAAM;GACZ,mBAAmB,MAAM;GACzB,aAAa,MAAM;GACnB,GAAI,MAAM,cAAc,KAAA,IACpB,CAAC,IACD,EAAE,WAAW,MAAM,UAAU;GACjC,MAAM,MAAM;GACZ,UAAU,MAAM,SAAS,IAAI,mBAAmB;GAChD,GAAI,MAAM,sBAAsB,KAAA,IAC5B,CAAC,IACD,EAAE,mBAAmB,MAAM,kBAAkB;
|
|
1
|
+
{"version":3,"file":"canonicalize.cjs","names":[],"sources":["../../src/signing/canonicalize.ts"],"sourcesContent":["import { MobileSocialFeedMention } from '../types/serverModelTypes';\nimport { MobileSignedInner } from './types';\n\n/**\n * Rebuilds an inner payload with its keys in the backend's struct declaration order (`type` first, then the\n * remaining fields in the exact order the backend serializes them). msgpack encodes object keys in insertion\n * order and the payload hash must be reproducible regardless of how the caller constructed the object, so\n * every inner payload — and each of its sub-types — is canonicalized here before hashing. This function is\n * the source of truth for that order.\n */\nexport function canonicalizeMobileInner(\n inner: MobileSignedInner,\n): MobileSignedInner {\n switch (inner.type) {\n case 'register_expo_token_v2':\n return {\n type: inner.type,\n expo_token: inner.expo_token,\n platform: inner.platform,\n locale: inner.locale,\n app_version: inner.app_version,\n capabilities: {\n payload_versions: [...inner.capabilities.payload_versions],\n type_ids: [...inner.capabilities.type_ids],\n routes: [...inner.capabilities.routes],\n },\n };\n case 'notification_subscriptions':\n return { type: inner.type };\n case 'update_notification_subscriptions':\n return {\n type: inner.type,\n expected_revision: inner.expected_revision,\n trader_bell:\n inner.trader_bell == null\n ? null\n : {\n subaccount: inner.trader_bell.subaccount,\n enabled: inner.trader_bell.enabled,\n },\n market:\n inner.market == null\n ? null\n : {\n product_id: inner.market.product_id,\n subscribed: inner.market.subscribed,\n },\n import_markets:\n inner.import_markets == null ? null : [...inner.import_markets],\n };\n case 'notification_inbox_v2':\n return {\n type: inner.type,\n cursor: inner.cursor,\n limit: inner.limit,\n };\n case 'record_product_events':\n return {\n type: inner.type,\n events: inner.events.map((event) => ({\n client_event_id: event.client_event_id,\n event_name: event.event_name,\n notification_id: event.notification_id,\n occurred_at: event.occurred_at,\n product_id: event.product_id,\n query: event.query,\n })),\n };\n case 'create_feed_post':\n return {\n type: inner.type,\n client_request_id: inner.client_request_id,\n position_id: inner.position_id,\n ...(inner.action_id === undefined\n ? {}\n : { action_id: inner.action_id }),\n text: inner.text,\n mentions: inner.mentions.map(canonicalizeMention),\n ...(inner.drawing_data_json === undefined\n ? {}\n : { drawing_data_json: inner.drawing_data_json }),\n ...(inner.image_ids === undefined\n ? {}\n : { image_ids: [...inner.image_ids] }),\n };\n case 'create_feed_comment':\n return {\n type: inner.type,\n client_request_id: inner.client_request_id,\n root_item_id: inner.root_item_id,\n ...(inner.reply_to_item_id === undefined\n ? {}\n : { reply_to_item_id: inner.reply_to_item_id }),\n text: inner.text,\n mentions: inner.mentions.map(canonicalizeMention),\n ...(inner.attached_position_id === undefined\n ? {}\n : { attached_position_id: inner.attached_position_id }),\n ...(inner.image_ids === undefined\n ? {}\n : { image_ids: [...inner.image_ids] }),\n };\n case 'create_feed_post_image_uploads':\n case 'create_feed_comment_image_uploads':\n return {\n type: inner.type,\n content_hash: inner.content_hash,\n };\n case 'create_feed_chart_drawing':\n case 'update_feed_chart_drawing':\n return {\n type: inner.type,\n item_id: inner.item_id,\n data_json: inner.data_json,\n };\n case 'set_feed_like':\n return {\n type: inner.type,\n item_id: inner.item_id,\n is_liked: inner.is_liked,\n };\n case 'set_bio':\n return { type: 'set_bio', bio: inner.bio };\n case 'create_avatar_upload':\n return {\n type: 'create_avatar_upload',\n content_length: inner.content_length,\n };\n case 'set_avatar': {\n const avatar = inner.avatar;\n if (avatar === null) {\n return { type: 'set_avatar', avatar: null };\n }\n return {\n type: 'set_avatar',\n avatar:\n avatar.type === 'preset'\n ? { type: 'preset', id: avatar.id }\n : { type: 'upload', upload_key: avatar.upload_key },\n };\n }\n case 'set_username':\n return { type: 'set_username', display_name: inner.display_name };\n case 'set_private_mode':\n return { type: 'set_private_mode', private_mode: inner.private_mode };\n case 'register_expo_token':\n return {\n type: 'register_expo_token',\n expo_token: inner.expo_token,\n platform: inner.platform,\n locale: inner.locale,\n app_version: inner.app_version,\n };\n case 'set_follow':\n return {\n type: 'set_follow',\n subaccount: inner.subaccount,\n is_following: inner.is_following,\n };\n case 'set_follow_batch':\n return {\n type: 'set_follow_batch',\n subaccounts: [...inner.subaccounts],\n is_following: inner.is_following,\n };\n default: {\n throw new Error(\n `canonicalizeMobileInner: unhandled inner payload type: ${JSON.stringify(inner)}`,\n );\n }\n }\n}\n\nfunction canonicalizeMention(\n mention: MobileSocialFeedMention,\n): MobileSocialFeedMention {\n return {\n subaccount: mention.subaccount,\n start: mention.start,\n end: mention.end,\n label: mention.label,\n };\n}\n"],"mappings":"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"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as canonicalizeMobileInner } from "../canonicalize-
|
|
1
|
+
import { t as canonicalizeMobileInner } from "../canonicalize-CWh3XZzj.cjs";
|
|
2
2
|
export { canonicalizeMobileInner };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as canonicalizeMobileInner } from "../canonicalize-
|
|
1
|
+
import { t as canonicalizeMobileInner } from "../canonicalize-Bv6UIAbR.js";
|
|
2
2
|
export { canonicalizeMobileInner };
|
|
@@ -8,6 +8,48 @@
|
|
|
8
8
|
*/
|
|
9
9
|
function canonicalizeMobileInner(inner) {
|
|
10
10
|
switch (inner.type) {
|
|
11
|
+
case "register_expo_token_v2": return {
|
|
12
|
+
type: inner.type,
|
|
13
|
+
expo_token: inner.expo_token,
|
|
14
|
+
platform: inner.platform,
|
|
15
|
+
locale: inner.locale,
|
|
16
|
+
app_version: inner.app_version,
|
|
17
|
+
capabilities: {
|
|
18
|
+
payload_versions: [...inner.capabilities.payload_versions],
|
|
19
|
+
type_ids: [...inner.capabilities.type_ids],
|
|
20
|
+
routes: [...inner.capabilities.routes]
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
case "notification_subscriptions": return { type: inner.type };
|
|
24
|
+
case "update_notification_subscriptions": return {
|
|
25
|
+
type: inner.type,
|
|
26
|
+
expected_revision: inner.expected_revision,
|
|
27
|
+
trader_bell: inner.trader_bell == null ? null : {
|
|
28
|
+
subaccount: inner.trader_bell.subaccount,
|
|
29
|
+
enabled: inner.trader_bell.enabled
|
|
30
|
+
},
|
|
31
|
+
market: inner.market == null ? null : {
|
|
32
|
+
product_id: inner.market.product_id,
|
|
33
|
+
subscribed: inner.market.subscribed
|
|
34
|
+
},
|
|
35
|
+
import_markets: inner.import_markets == null ? null : [...inner.import_markets]
|
|
36
|
+
};
|
|
37
|
+
case "notification_inbox_v2": return {
|
|
38
|
+
type: inner.type,
|
|
39
|
+
cursor: inner.cursor,
|
|
40
|
+
limit: inner.limit
|
|
41
|
+
};
|
|
42
|
+
case "record_product_events": return {
|
|
43
|
+
type: inner.type,
|
|
44
|
+
events: inner.events.map((event) => ({
|
|
45
|
+
client_event_id: event.client_event_id,
|
|
46
|
+
event_name: event.event_name,
|
|
47
|
+
notification_id: event.notification_id,
|
|
48
|
+
occurred_at: event.occurred_at,
|
|
49
|
+
product_id: event.product_id,
|
|
50
|
+
query: event.query
|
|
51
|
+
}))
|
|
52
|
+
};
|
|
11
53
|
case "create_feed_post": return {
|
|
12
54
|
type: inner.type,
|
|
13
55
|
client_request_id: inner.client_request_id,
|
|
@@ -15,7 +57,8 @@ function canonicalizeMobileInner(inner) {
|
|
|
15
57
|
...inner.action_id === void 0 ? {} : { action_id: inner.action_id },
|
|
16
58
|
text: inner.text,
|
|
17
59
|
mentions: inner.mentions.map(canonicalizeMention),
|
|
18
|
-
...inner.drawing_data_json === void 0 ? {} : { drawing_data_json: inner.drawing_data_json }
|
|
60
|
+
...inner.drawing_data_json === void 0 ? {} : { drawing_data_json: inner.drawing_data_json },
|
|
61
|
+
...inner.image_ids === void 0 ? {} : { image_ids: [...inner.image_ids] }
|
|
19
62
|
};
|
|
20
63
|
case "create_feed_comment": return {
|
|
21
64
|
type: inner.type,
|
|
@@ -24,7 +67,13 @@ function canonicalizeMobileInner(inner) {
|
|
|
24
67
|
...inner.reply_to_item_id === void 0 ? {} : { reply_to_item_id: inner.reply_to_item_id },
|
|
25
68
|
text: inner.text,
|
|
26
69
|
mentions: inner.mentions.map(canonicalizeMention),
|
|
27
|
-
...inner.attached_position_id === void 0 ? {} : { attached_position_id: inner.attached_position_id }
|
|
70
|
+
...inner.attached_position_id === void 0 ? {} : { attached_position_id: inner.attached_position_id },
|
|
71
|
+
...inner.image_ids === void 0 ? {} : { image_ids: [...inner.image_ids] }
|
|
72
|
+
};
|
|
73
|
+
case "create_feed_post_image_uploads":
|
|
74
|
+
case "create_feed_comment_image_uploads": return {
|
|
75
|
+
type: inner.type,
|
|
76
|
+
content_hash: inner.content_hash
|
|
28
77
|
};
|
|
29
78
|
case "create_feed_chart_drawing":
|
|
30
79
|
case "update_feed_chart_drawing": return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"canonicalize.js","names":[],"sources":["../../src/signing/canonicalize.ts"],"sourcesContent":["import { MobileSocialFeedMention } from '../types/serverModelTypes';\nimport { MobileSignedInner } from './types';\n\n/**\n * Rebuilds an inner payload with its keys in the backend's struct declaration order (`type` first, then the\n * remaining fields in the exact order the backend serializes them). msgpack encodes object keys in insertion\n * order and the payload hash must be reproducible regardless of how the caller constructed the object, so\n * every inner payload — and each of its sub-types — is canonicalized here before hashing. This function is\n * the source of truth for that order.\n */\nexport function canonicalizeMobileInner(\n inner: MobileSignedInner,\n): MobileSignedInner {\n switch (inner.type) {\n case 'create_feed_post':\n return {\n type: inner.type,\n client_request_id: inner.client_request_id,\n position_id: inner.position_id,\n ...(inner.action_id === undefined\n ? {}\n : { action_id: inner.action_id }),\n text: inner.text,\n mentions: inner.mentions.map(canonicalizeMention),\n ...(inner.drawing_data_json === undefined\n ? {}\n : { drawing_data_json: inner.drawing_data_json }),\n };\n case 'create_feed_comment':\n return {\n type: inner.type,\n client_request_id: inner.client_request_id,\n root_item_id: inner.root_item_id,\n ...(inner.reply_to_item_id === undefined\n ? {}\n : { reply_to_item_id: inner.reply_to_item_id }),\n text: inner.text,\n mentions: inner.mentions.map(canonicalizeMention),\n ...(inner.attached_position_id === undefined\n ? {}\n : { attached_position_id: inner.attached_position_id }),\n };\n case 'create_feed_chart_drawing':\n case 'update_feed_chart_drawing':\n return {\n type: inner.type,\n item_id: inner.item_id,\n data_json: inner.data_json,\n };\n case 'set_feed_like':\n return {\n type: inner.type,\n item_id: inner.item_id,\n is_liked: inner.is_liked,\n };\n case 'set_bio':\n return { type: 'set_bio', bio: inner.bio };\n case 'create_avatar_upload':\n return {\n type: 'create_avatar_upload',\n content_length: inner.content_length,\n };\n case 'set_avatar': {\n const avatar = inner.avatar;\n if (avatar === null) {\n return { type: 'set_avatar', avatar: null };\n }\n return {\n type: 'set_avatar',\n avatar:\n avatar.type === 'preset'\n ? { type: 'preset', id: avatar.id }\n : { type: 'upload', upload_key: avatar.upload_key },\n };\n }\n case 'set_username':\n return { type: 'set_username', display_name: inner.display_name };\n case 'set_private_mode':\n return { type: 'set_private_mode', private_mode: inner.private_mode };\n case 'register_expo_token':\n return {\n type: 'register_expo_token',\n expo_token: inner.expo_token,\n platform: inner.platform,\n locale: inner.locale,\n app_version: inner.app_version,\n };\n case 'set_follow':\n return {\n type: 'set_follow',\n subaccount: inner.subaccount,\n is_following: inner.is_following,\n };\n case 'set_follow_batch':\n return {\n type: 'set_follow_batch',\n subaccounts: [...inner.subaccounts],\n is_following: inner.is_following,\n };\n default: {\n throw new Error(\n `canonicalizeMobileInner: unhandled inner payload type: ${JSON.stringify(inner)}`,\n );\n }\n }\n}\n\nfunction canonicalizeMention(\n mention: MobileSocialFeedMention,\n): MobileSocialFeedMention {\n return {\n subaccount: mention.subaccount,\n start: mention.start,\n end: mention.end,\n label: mention.label,\n };\n}\n"],"mappings":";;;;;;;;AAUA,SAAgB,wBACd,OACmB;CACnB,QAAQ,MAAM,MAAd;EACE,KAAK,oBACH,OAAO;GACL,MAAM,MAAM;GACZ,mBAAmB,MAAM;GACzB,aAAa,MAAM;GACnB,GAAI,MAAM,cAAc,KAAA,IACpB,CAAC,IACD,EAAE,WAAW,MAAM,UAAU;GACjC,MAAM,MAAM;GACZ,UAAU,MAAM,SAAS,IAAI,mBAAmB;GAChD,GAAI,MAAM,sBAAsB,KAAA,IAC5B,CAAC,IACD,EAAE,mBAAmB,MAAM,kBAAkB;
|
|
1
|
+
{"version":3,"file":"canonicalize.js","names":[],"sources":["../../src/signing/canonicalize.ts"],"sourcesContent":["import { MobileSocialFeedMention } from '../types/serverModelTypes';\nimport { MobileSignedInner } from './types';\n\n/**\n * Rebuilds an inner payload with its keys in the backend's struct declaration order (`type` first, then the\n * remaining fields in the exact order the backend serializes them). msgpack encodes object keys in insertion\n * order and the payload hash must be reproducible regardless of how the caller constructed the object, so\n * every inner payload — and each of its sub-types — is canonicalized here before hashing. This function is\n * the source of truth for that order.\n */\nexport function canonicalizeMobileInner(\n inner: MobileSignedInner,\n): MobileSignedInner {\n switch (inner.type) {\n case 'register_expo_token_v2':\n return {\n type: inner.type,\n expo_token: inner.expo_token,\n platform: inner.platform,\n locale: inner.locale,\n app_version: inner.app_version,\n capabilities: {\n payload_versions: [...inner.capabilities.payload_versions],\n type_ids: [...inner.capabilities.type_ids],\n routes: [...inner.capabilities.routes],\n },\n };\n case 'notification_subscriptions':\n return { type: inner.type };\n case 'update_notification_subscriptions':\n return {\n type: inner.type,\n expected_revision: inner.expected_revision,\n trader_bell:\n inner.trader_bell == null\n ? null\n : {\n subaccount: inner.trader_bell.subaccount,\n enabled: inner.trader_bell.enabled,\n },\n market:\n inner.market == null\n ? null\n : {\n product_id: inner.market.product_id,\n subscribed: inner.market.subscribed,\n },\n import_markets:\n inner.import_markets == null ? null : [...inner.import_markets],\n };\n case 'notification_inbox_v2':\n return {\n type: inner.type,\n cursor: inner.cursor,\n limit: inner.limit,\n };\n case 'record_product_events':\n return {\n type: inner.type,\n events: inner.events.map((event) => ({\n client_event_id: event.client_event_id,\n event_name: event.event_name,\n notification_id: event.notification_id,\n occurred_at: event.occurred_at,\n product_id: event.product_id,\n query: event.query,\n })),\n };\n case 'create_feed_post':\n return {\n type: inner.type,\n client_request_id: inner.client_request_id,\n position_id: inner.position_id,\n ...(inner.action_id === undefined\n ? {}\n : { action_id: inner.action_id }),\n text: inner.text,\n mentions: inner.mentions.map(canonicalizeMention),\n ...(inner.drawing_data_json === undefined\n ? {}\n : { drawing_data_json: inner.drawing_data_json }),\n ...(inner.image_ids === undefined\n ? {}\n : { image_ids: [...inner.image_ids] }),\n };\n case 'create_feed_comment':\n return {\n type: inner.type,\n client_request_id: inner.client_request_id,\n root_item_id: inner.root_item_id,\n ...(inner.reply_to_item_id === undefined\n ? {}\n : { reply_to_item_id: inner.reply_to_item_id }),\n text: inner.text,\n mentions: inner.mentions.map(canonicalizeMention),\n ...(inner.attached_position_id === undefined\n ? {}\n : { attached_position_id: inner.attached_position_id }),\n ...(inner.image_ids === undefined\n ? {}\n : { image_ids: [...inner.image_ids] }),\n };\n case 'create_feed_post_image_uploads':\n case 'create_feed_comment_image_uploads':\n return {\n type: inner.type,\n content_hash: inner.content_hash,\n };\n case 'create_feed_chart_drawing':\n case 'update_feed_chart_drawing':\n return {\n type: inner.type,\n item_id: inner.item_id,\n data_json: inner.data_json,\n };\n case 'set_feed_like':\n return {\n type: inner.type,\n item_id: inner.item_id,\n is_liked: inner.is_liked,\n };\n case 'set_bio':\n return { type: 'set_bio', bio: inner.bio };\n case 'create_avatar_upload':\n return {\n type: 'create_avatar_upload',\n content_length: inner.content_length,\n };\n case 'set_avatar': {\n const avatar = inner.avatar;\n if (avatar === null) {\n return { type: 'set_avatar', avatar: null };\n }\n return {\n type: 'set_avatar',\n avatar:\n avatar.type === 'preset'\n ? { type: 'preset', id: avatar.id }\n : { type: 'upload', upload_key: avatar.upload_key },\n };\n }\n case 'set_username':\n return { type: 'set_username', display_name: inner.display_name };\n case 'set_private_mode':\n return { type: 'set_private_mode', private_mode: inner.private_mode };\n case 'register_expo_token':\n return {\n type: 'register_expo_token',\n expo_token: inner.expo_token,\n platform: inner.platform,\n locale: inner.locale,\n app_version: inner.app_version,\n };\n case 'set_follow':\n return {\n type: 'set_follow',\n subaccount: inner.subaccount,\n is_following: inner.is_following,\n };\n case 'set_follow_batch':\n return {\n type: 'set_follow_batch',\n subaccounts: [...inner.subaccounts],\n is_following: inner.is_following,\n };\n default: {\n throw new Error(\n `canonicalizeMobileInner: unhandled inner payload type: ${JSON.stringify(inner)}`,\n );\n }\n }\n}\n\nfunction canonicalizeMention(\n mention: MobileSocialFeedMention,\n): MobileSocialFeedMention {\n return {\n subaccount: mention.subaccount,\n start: mention.start,\n end: mention.end,\n label: mention.label,\n };\n}\n"],"mappings":"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"}
|
|
@@ -4,8 +4,15 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
4
4
|
* EIP-712 `method` string for each signed inner payload type.
|
|
5
5
|
*/
|
|
6
6
|
const MOBILE_EIP712_METHOD_BY_TYPE = {
|
|
7
|
+
register_expo_token_v2: "mobile:execute_register_expo_token_v2",
|
|
8
|
+
notification_subscriptions: "mobile:query_notification_subscriptions",
|
|
9
|
+
update_notification_subscriptions: "mobile:execute_update_notification_subscriptions",
|
|
10
|
+
notification_inbox_v2: "mobile:query_notification_inbox_v2",
|
|
11
|
+
record_product_events: "mobile:execute_record_product_events",
|
|
7
12
|
create_feed_post: "mobile:execute_create_feed_post",
|
|
8
13
|
create_feed_comment: "mobile:execute_create_feed_comment",
|
|
14
|
+
create_feed_post_image_uploads: "mobile:execute_create_feed_post_image_uploads",
|
|
15
|
+
create_feed_comment_image_uploads: "mobile:execute_create_feed_comment_image_uploads",
|
|
9
16
|
create_feed_chart_drawing: "mobile:execute_create_feed_chart_drawing",
|
|
10
17
|
update_feed_chart_drawing: "mobile:execute_update_feed_chart_drawing",
|
|
11
18
|
set_feed_like: "mobile:execute_set_feed_like",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eip712MethodByType.cjs","names":[],"sources":["../../src/signing/eip712MethodByType.ts"],"sourcesContent":["import { MobileSignedInner } from './types';\n\n/**\n * EIP-712 `method` string for each signed inner payload type.\n */\nexport const MOBILE_EIP712_METHOD_BY_TYPE: Record<\n MobileSignedInner['type'],\n string\n> = {\n create_feed_post: 'mobile:execute_create_feed_post',\n create_feed_comment: 'mobile:execute_create_feed_comment',\n create_feed_chart_drawing: 'mobile:execute_create_feed_chart_drawing',\n update_feed_chart_drawing: 'mobile:execute_update_feed_chart_drawing',\n set_feed_like: 'mobile:execute_set_feed_like',\n set_bio: 'mobile:execute_set_bio',\n create_avatar_upload: 'mobile:execute_create_avatar_upload',\n set_avatar: 'mobile:execute_set_avatar',\n set_username: 'mobile:execute_set_username',\n set_private_mode: 'mobile:execute_set_private_mode',\n register_expo_token: 'mobile:execute_register_expo_token',\n set_follow: 'mobile:execute_set_follow',\n set_follow_batch: 'mobile:execute_set_follow_batch',\n};\n"],"mappings":";;;;;AAKA,MAAa,+BAGT;CACF,kBAAkB;CAClB,qBAAqB;CACrB,2BAA2B;CAC3B,2BAA2B;CAC3B,eAAe;CACf,SAAS;CACT,sBAAsB;CACtB,YAAY;CACZ,cAAc;CACd,kBAAkB;CAClB,qBAAqB;CACrB,YAAY;CACZ,kBAAkB;AACpB"}
|
|
1
|
+
{"version":3,"file":"eip712MethodByType.cjs","names":[],"sources":["../../src/signing/eip712MethodByType.ts"],"sourcesContent":["import { MobileSignedInner } from './types';\n\n/**\n * EIP-712 `method` string for each signed inner payload type.\n */\nexport const MOBILE_EIP712_METHOD_BY_TYPE: Record<\n MobileSignedInner['type'],\n string\n> = {\n register_expo_token_v2: 'mobile:execute_register_expo_token_v2',\n notification_subscriptions: 'mobile:query_notification_subscriptions',\n update_notification_subscriptions:\n 'mobile:execute_update_notification_subscriptions',\n notification_inbox_v2: 'mobile:query_notification_inbox_v2',\n record_product_events: 'mobile:execute_record_product_events',\n create_feed_post: 'mobile:execute_create_feed_post',\n create_feed_comment: 'mobile:execute_create_feed_comment',\n create_feed_post_image_uploads:\n 'mobile:execute_create_feed_post_image_uploads',\n create_feed_comment_image_uploads:\n 'mobile:execute_create_feed_comment_image_uploads',\n create_feed_chart_drawing: 'mobile:execute_create_feed_chart_drawing',\n update_feed_chart_drawing: 'mobile:execute_update_feed_chart_drawing',\n set_feed_like: 'mobile:execute_set_feed_like',\n set_bio: 'mobile:execute_set_bio',\n create_avatar_upload: 'mobile:execute_create_avatar_upload',\n set_avatar: 'mobile:execute_set_avatar',\n set_username: 'mobile:execute_set_username',\n set_private_mode: 'mobile:execute_set_private_mode',\n register_expo_token: 'mobile:execute_register_expo_token',\n set_follow: 'mobile:execute_set_follow',\n set_follow_batch: 'mobile:execute_set_follow_batch',\n};\n"],"mappings":";;;;;AAKA,MAAa,+BAGT;CACF,wBAAwB;CACxB,4BAA4B;CAC5B,mCACE;CACF,uBAAuB;CACvB,uBAAuB;CACvB,kBAAkB;CAClB,qBAAqB;CACrB,gCACE;CACF,mCACE;CACF,2BAA2B;CAC3B,2BAA2B;CAC3B,eAAe;CACf,SAAS;CACT,sBAAsB;CACtB,YAAY;CACZ,cAAc;CACd,kBAAkB;CAClB,qBAAqB;CACrB,YAAY;CACZ,kBAAkB;AACpB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as MOBILE_EIP712_METHOD_BY_TYPE } from "../eip712MethodByType-
|
|
1
|
+
import { t as MOBILE_EIP712_METHOD_BY_TYPE } from "../eip712MethodByType-CJ6BoayT.cjs";
|
|
2
2
|
export { MOBILE_EIP712_METHOD_BY_TYPE };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as MOBILE_EIP712_METHOD_BY_TYPE } from "../eip712MethodByType-
|
|
1
|
+
import { t as MOBILE_EIP712_METHOD_BY_TYPE } from "../eip712MethodByType-Dx4mvgni.js";
|
|
2
2
|
export { MOBILE_EIP712_METHOD_BY_TYPE };
|
|
@@ -3,8 +3,15 @@
|
|
|
3
3
|
* EIP-712 `method` string for each signed inner payload type.
|
|
4
4
|
*/
|
|
5
5
|
const MOBILE_EIP712_METHOD_BY_TYPE = {
|
|
6
|
+
register_expo_token_v2: "mobile:execute_register_expo_token_v2",
|
|
7
|
+
notification_subscriptions: "mobile:query_notification_subscriptions",
|
|
8
|
+
update_notification_subscriptions: "mobile:execute_update_notification_subscriptions",
|
|
9
|
+
notification_inbox_v2: "mobile:query_notification_inbox_v2",
|
|
10
|
+
record_product_events: "mobile:execute_record_product_events",
|
|
6
11
|
create_feed_post: "mobile:execute_create_feed_post",
|
|
7
12
|
create_feed_comment: "mobile:execute_create_feed_comment",
|
|
13
|
+
create_feed_post_image_uploads: "mobile:execute_create_feed_post_image_uploads",
|
|
14
|
+
create_feed_comment_image_uploads: "mobile:execute_create_feed_comment_image_uploads",
|
|
8
15
|
create_feed_chart_drawing: "mobile:execute_create_feed_chart_drawing",
|
|
9
16
|
update_feed_chart_drawing: "mobile:execute_update_feed_chart_drawing",
|
|
10
17
|
set_feed_like: "mobile:execute_set_feed_like",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eip712MethodByType.js","names":[],"sources":["../../src/signing/eip712MethodByType.ts"],"sourcesContent":["import { MobileSignedInner } from './types';\n\n/**\n * EIP-712 `method` string for each signed inner payload type.\n */\nexport const MOBILE_EIP712_METHOD_BY_TYPE: Record<\n MobileSignedInner['type'],\n string\n> = {\n create_feed_post: 'mobile:execute_create_feed_post',\n create_feed_comment: 'mobile:execute_create_feed_comment',\n create_feed_chart_drawing: 'mobile:execute_create_feed_chart_drawing',\n update_feed_chart_drawing: 'mobile:execute_update_feed_chart_drawing',\n set_feed_like: 'mobile:execute_set_feed_like',\n set_bio: 'mobile:execute_set_bio',\n create_avatar_upload: 'mobile:execute_create_avatar_upload',\n set_avatar: 'mobile:execute_set_avatar',\n set_username: 'mobile:execute_set_username',\n set_private_mode: 'mobile:execute_set_private_mode',\n register_expo_token: 'mobile:execute_register_expo_token',\n set_follow: 'mobile:execute_set_follow',\n set_follow_batch: 'mobile:execute_set_follow_batch',\n};\n"],"mappings":";;;;AAKA,MAAa,+BAGT;CACF,kBAAkB;CAClB,qBAAqB;CACrB,2BAA2B;CAC3B,2BAA2B;CAC3B,eAAe;CACf,SAAS;CACT,sBAAsB;CACtB,YAAY;CACZ,cAAc;CACd,kBAAkB;CAClB,qBAAqB;CACrB,YAAY;CACZ,kBAAkB;AACpB"}
|
|
1
|
+
{"version":3,"file":"eip712MethodByType.js","names":[],"sources":["../../src/signing/eip712MethodByType.ts"],"sourcesContent":["import { MobileSignedInner } from './types';\n\n/**\n * EIP-712 `method` string for each signed inner payload type.\n */\nexport const MOBILE_EIP712_METHOD_BY_TYPE: Record<\n MobileSignedInner['type'],\n string\n> = {\n register_expo_token_v2: 'mobile:execute_register_expo_token_v2',\n notification_subscriptions: 'mobile:query_notification_subscriptions',\n update_notification_subscriptions:\n 'mobile:execute_update_notification_subscriptions',\n notification_inbox_v2: 'mobile:query_notification_inbox_v2',\n record_product_events: 'mobile:execute_record_product_events',\n create_feed_post: 'mobile:execute_create_feed_post',\n create_feed_comment: 'mobile:execute_create_feed_comment',\n create_feed_post_image_uploads:\n 'mobile:execute_create_feed_post_image_uploads',\n create_feed_comment_image_uploads:\n 'mobile:execute_create_feed_comment_image_uploads',\n create_feed_chart_drawing: 'mobile:execute_create_feed_chart_drawing',\n update_feed_chart_drawing: 'mobile:execute_update_feed_chart_drawing',\n set_feed_like: 'mobile:execute_set_feed_like',\n set_bio: 'mobile:execute_set_bio',\n create_avatar_upload: 'mobile:execute_create_avatar_upload',\n set_avatar: 'mobile:execute_set_avatar',\n set_username: 'mobile:execute_set_username',\n set_private_mode: 'mobile:execute_set_private_mode',\n register_expo_token: 'mobile:execute_register_expo_token',\n set_follow: 'mobile:execute_set_follow',\n set_follow_batch: 'mobile:execute_set_follow_batch',\n};\n"],"mappings":";;;;AAKA,MAAa,+BAGT;CACF,wBAAwB;CACxB,4BAA4B;CAC5B,mCACE;CACF,uBAAuB;CACvB,uBAAuB;CACvB,kBAAkB;CAClB,qBAAqB;CACrB,gCACE;CACF,mCACE;CACF,2BAA2B;CAC3B,2BAA2B;CAC3B,eAAe;CACf,SAAS;CACT,sBAAsB;CACtB,YAAY;CACZ,cAAc;CACd,kBAAkB;CAClB,qBAAqB;CACrB,YAAY;CACZ,kBAAkB;AACpB"}
|
package/dist/signing/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as MobileSignedRequest, i as MobileSignedInnerParams, n as MobileSignedInner, r as MobileSignedInnerByType, t as BuildSignedMobileRequestParams } from "../types-
|
|
2
|
-
import { t as buildSignedMobileRequest } from "../buildSignedMobileRequest-
|
|
3
|
-
import { t as canonicalizeMobileInner } from "../canonicalize-
|
|
4
|
-
import { t as MOBILE_EIP712_METHOD_BY_TYPE } from "../eip712MethodByType-
|
|
1
|
+
import { a as MobileSignedRequest, i as MobileSignedInnerParams, n as MobileSignedInner, r as MobileSignedInnerByType, t as BuildSignedMobileRequestParams } from "../types-C9YE4EIt.cjs";
|
|
2
|
+
import { t as buildSignedMobileRequest } from "../buildSignedMobileRequest-DyKCK34Y.cjs";
|
|
3
|
+
import { t as canonicalizeMobileInner } from "../canonicalize-CWh3XZzj.cjs";
|
|
4
|
+
import { t as MOBILE_EIP712_METHOD_BY_TYPE } from "../eip712MethodByType-CJ6BoayT.cjs";
|
|
5
5
|
import { t as getMobileNonce } from "../nonce-7swNuPgu.cjs";
|
|
6
|
-
import { t as getMobilePayloadHash } from "../payloadHash-
|
|
6
|
+
import { t as getMobilePayloadHash } from "../payloadHash-CdkF2Ocr.cjs";
|
|
7
7
|
export { BuildSignedMobileRequestParams, MOBILE_EIP712_METHOD_BY_TYPE, MobileSignedInner, MobileSignedInnerByType, MobileSignedInnerParams, MobileSignedRequest, buildSignedMobileRequest, canonicalizeMobileInner, getMobileNonce, getMobilePayloadHash };
|
package/dist/signing/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as MobileSignedRequest, i as MobileSignedInnerParams, n as MobileSignedInner, r as MobileSignedInnerByType, t as BuildSignedMobileRequestParams } from "../types-
|
|
2
|
-
import { t as buildSignedMobileRequest } from "../buildSignedMobileRequest-
|
|
3
|
-
import { t as canonicalizeMobileInner } from "../canonicalize-
|
|
4
|
-
import { t as MOBILE_EIP712_METHOD_BY_TYPE } from "../eip712MethodByType-
|
|
1
|
+
import { a as MobileSignedRequest, i as MobileSignedInnerParams, n as MobileSignedInner, r as MobileSignedInnerByType, t as BuildSignedMobileRequestParams } from "../types-Cwy1y_9x.js";
|
|
2
|
+
import { t as buildSignedMobileRequest } from "../buildSignedMobileRequest-BR-KJhIF.js";
|
|
3
|
+
import { t as canonicalizeMobileInner } from "../canonicalize-Bv6UIAbR.js";
|
|
4
|
+
import { t as MOBILE_EIP712_METHOD_BY_TYPE } from "../eip712MethodByType-Dx4mvgni.js";
|
|
5
5
|
import { t as getMobileNonce } from "../nonce-7swNuPgu.js";
|
|
6
|
-
import { t as getMobilePayloadHash } from "../payloadHash-
|
|
6
|
+
import { t as getMobilePayloadHash } from "../payloadHash-HD29K77M.js";
|
|
7
7
|
export { BuildSignedMobileRequestParams, MOBILE_EIP712_METHOD_BY_TYPE, MobileSignedInner, MobileSignedInnerByType, MobileSignedInnerParams, MobileSignedRequest, buildSignedMobileRequest, canonicalizeMobileInner, getMobileNonce, getMobilePayloadHash };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
let _msgpack_msgpack = require("@msgpack/msgpack");
|
|
3
2
|
let viem = require("viem");
|
|
3
|
+
let _msgpack_msgpack = require("@msgpack/msgpack");
|
|
4
4
|
//#region src/signing/payloadHash.ts
|
|
5
5
|
/**
|
|
6
6
|
* Computes the EIP-712 `payloadHash` for a canonicalized inner payload: `keccak256(msgpack(inner))`.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as getMobilePayloadHash } from "../payloadHash-
|
|
1
|
+
import { t as getMobilePayloadHash } from "../payloadHash-CdkF2Ocr.cjs";
|
|
2
2
|
export { getMobilePayloadHash };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as getMobilePayloadHash } from "../payloadHash-
|
|
1
|
+
import { t as getMobilePayloadHash } from "../payloadHash-HD29K77M.js";
|
|
2
2
|
export { getMobilePayloadHash };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { encode } from "@msgpack/msgpack";
|
|
2
1
|
import { keccak256 } from "viem";
|
|
2
|
+
import { encode } from "@msgpack/msgpack";
|
|
3
3
|
//#region src/signing/payloadHash.ts
|
|
4
4
|
/**
|
|
5
5
|
* Computes the EIP-712 `payloadHash` for a canonicalized inner payload: `keccak256(msgpack(inner))`.
|
package/dist/signing/types.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as MobileSignedRequest, i as MobileSignedInnerParams, n as MobileSignedInner, r as MobileSignedInnerByType, t as BuildSignedMobileRequestParams } from "../types-
|
|
1
|
+
import { a as MobileSignedRequest, i as MobileSignedInnerParams, n as MobileSignedInner, r as MobileSignedInnerByType, t as BuildSignedMobileRequestParams } from "../types-C9YE4EIt.cjs";
|
|
2
2
|
export { BuildSignedMobileRequestParams, MobileSignedInner, MobileSignedInnerByType, MobileSignedInnerParams, MobileSignedRequest };
|
package/dist/signing/types.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as MobileSignedRequest, i as MobileSignedInnerParams, n as MobileSignedInner, r as MobileSignedInnerByType, t as BuildSignedMobileRequestParams } from "../types-
|
|
1
|
+
import { a as MobileSignedRequest, i as MobileSignedInnerParams, n as MobileSignedInner, r as MobileSignedInnerByType, t as BuildSignedMobileRequestParams } from "../types-Cwy1y_9x.js";
|
|
2
2
|
export { BuildSignedMobileRequestParams, MobileSignedInner, MobileSignedInnerByType, MobileSignedInnerParams, MobileSignedRequest };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as MobileServerFailureError } from "../MobileServerFailureError-
|
|
1
|
+
import { t as MobileServerFailureError } from "../MobileServerFailureError-MtS2reel.cjs";
|
|
2
2
|
export { MobileServerFailureError };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as MobileServerFailureError } from "../MobileServerFailureError-
|
|
1
|
+
import { t as MobileServerFailureError } from "../MobileServerFailureError-C9iqNsxI.js";
|
|
2
2
|
export { MobileServerFailureError };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
//#region src/types/MobileUnsupportedNotificationRouteError.ts
|
|
3
|
+
/**
|
|
4
|
+
* Error thrown when the mobile service returns a notification route this SDK does not support.
|
|
5
|
+
*/
|
|
6
|
+
var MobileUnsupportedNotificationRouteError = class extends Error {
|
|
7
|
+
/**
|
|
8
|
+
* @param routeName - The unrecognized service route name.
|
|
9
|
+
*/
|
|
10
|
+
constructor(routeName) {
|
|
11
|
+
super(`Unsupported mobile notification route "${routeName}".`);
|
|
12
|
+
this.name = "MobileUnsupportedNotificationRouteError";
|
|
13
|
+
this.routeName = routeName;
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
//#endregion
|
|
17
|
+
exports.MobileUnsupportedNotificationRouteError = MobileUnsupportedNotificationRouteError;
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=MobileUnsupportedNotificationRouteError.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MobileUnsupportedNotificationRouteError.cjs","names":[],"sources":["../../src/types/MobileUnsupportedNotificationRouteError.ts"],"sourcesContent":["/**\n * Error thrown when the mobile service returns a notification route this SDK does not support.\n */\nexport class MobileUnsupportedNotificationRouteError extends Error {\n /** Unrecognized route name returned by the service. */\n readonly routeName: string;\n\n /**\n * @param routeName - The unrecognized service route name.\n */\n constructor(routeName: string) {\n super(`Unsupported mobile notification route \"${routeName}\".`);\n this.name = 'MobileUnsupportedNotificationRouteError';\n this.routeName = routeName;\n }\n}\n"],"mappings":";;;;;AAGA,IAAa,0CAAb,cAA6D,MAAM;;;;CAOjE,YAAY,WAAmB;EAC7B,MAAM,0CAA0C,UAAU,GAAG;EAC7D,KAAK,OAAO;EACZ,KAAK,YAAY;CACnB;AACF"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
//#region src/types/MobileUnsupportedNotificationRouteError.ts
|
|
2
|
+
/**
|
|
3
|
+
* Error thrown when the mobile service returns a notification route this SDK does not support.
|
|
4
|
+
*/
|
|
5
|
+
var MobileUnsupportedNotificationRouteError = class extends Error {
|
|
6
|
+
/**
|
|
7
|
+
* @param routeName - The unrecognized service route name.
|
|
8
|
+
*/
|
|
9
|
+
constructor(routeName) {
|
|
10
|
+
super(`Unsupported mobile notification route "${routeName}".`);
|
|
11
|
+
this.name = "MobileUnsupportedNotificationRouteError";
|
|
12
|
+
this.routeName = routeName;
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
//#endregion
|
|
16
|
+
export { MobileUnsupportedNotificationRouteError };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=MobileUnsupportedNotificationRouteError.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MobileUnsupportedNotificationRouteError.js","names":[],"sources":["../../src/types/MobileUnsupportedNotificationRouteError.ts"],"sourcesContent":["/**\n * Error thrown when the mobile service returns a notification route this SDK does not support.\n */\nexport class MobileUnsupportedNotificationRouteError extends Error {\n /** Unrecognized route name returned by the service. */\n readonly routeName: string;\n\n /**\n * @param routeName - The unrecognized service route name.\n */\n constructor(routeName: string) {\n super(`Unsupported mobile notification route \"${routeName}\".`);\n this.name = 'MobileUnsupportedNotificationRouteError';\n this.routeName = routeName;\n }\n}\n"],"mappings":";;;;AAGA,IAAa,0CAAb,cAA6D,MAAM;;;;CAOjE,YAAY,WAAmB;EAC7B,MAAM,0CAA0C,UAAU,GAAG;EAC7D,KAAK,OAAO;EACZ,KAAK,YAAY;CACnB;AACF"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
export { GetMobileFeedChartDrawingParams, GetMobileFeedCommentsParams, GetMobileFeedItemParams, GetMobileFeedParams, GetMobileFeedUpdatesParams, GetMobileFollowListParams, GetMobileFollowersParams, GetMobileFollowingParams, GetMobileForYouFeedParams, GetMobileFriendsFeedParams, GetMobileMarketFeedParams, GetMobileNotificationPreferencesParams, GetMobilePositionChartParams, GetMobilePositionFeedParams, GetMobilePositionHistoryParams, GetMobilePositionWatchersParams, GetMobileProfileFeedParams, GetMobileProfilesParams, GetMobileRegisteredWalletParams, GetMobileSelfFeedPositionsParams, GetMobileTopTradersFeedParams, GetMobileUsernameAvailabilityParams, MobileAvatarPreset, MobileAvatarSelection, MobileAvatarUpload, MobileCreateAvatarUploadParams, MobileCreateFeedCommentParams, MobileCreateFeedPostParams, MobileFeedChartDrawingParams, MobileFeedMargin, MobileFeedPage, MobileFeedTrade, MobileFollowBatchResultItem, MobileFollowListAccount, MobileFollowListPage, MobileFollowMutationResult, MobileFollowSummary, MobileIdentitySummary, MobileNotificationCategoryPreference, MobileNotificationPreferenceScope, MobileNotificationPreferences, MobilePositionPresenceParams, MobileProfileSearchPage, MobileProfilesInclude, MobilePublicProfile, MobileRecordFeedViewsParams, MobileRegisterExpoTokenParams, MobileRegisteredWallet, MobileSetAvatarParams, MobileSetBioParams, MobileSetFeedLikeParams, MobileSetFollowBatchParams, MobileSetFollowParams, MobileSetPrivateModeParams, MobileSetUsernameParams, MobileSignedRequestParams, MobileSocialFeedActionCandidate, MobileSocialFeedActionMarker, MobileSocialFeedActionResolutionResult, MobileSocialFeedAuthor, MobileSocialFeedCandle, MobileSocialFeedCapabilities, MobileSocialFeedCategorizedParams, MobileSocialFeedChartRange, MobileSocialFeedCohort, MobileSocialFeedCohortCoverage, MobileSocialFeedCommentPreview, MobileSocialFeedCommentResult, MobileSocialFeedCommentsPage, MobileSocialFeedCompactCard, MobileSocialFeedContentBase, MobileSocialFeedDrawing, MobileSocialFeedDrawingMutationResult, MobileSocialFeedDrawingResult, MobileSocialFeedEstimatedLiquidationLine, MobileSocialFeedHistoryMetrics, MobileSocialFeedHistorySummary, MobileSocialFeedHistoryTake, MobileSocialFeedInteraction, MobileSocialFeedItem, MobileSocialFeedItemBase, MobileSocialFeedItemPatch, MobileSocialFeedItemResponse, MobileSocialFeedLikeResult, MobileSocialFeedListParams, MobileSocialFeedMarket, MobileSocialFeedMentionParams, MobileSocialFeedPage, MobileSocialFeedPnl, MobileSocialFeedPositionAction, MobileSocialFeedPositionCard, MobileSocialFeedPositionChart, MobileSocialFeedPositionHistory, MobileSocialFeedPositionHistoryCard, MobileSocialFeedPositionPatch, MobileSocialFeedPositionResolutionResult, MobileSocialFeedPositionsPage, MobileSocialFeedPost, MobileSocialFeedPresence, MobileSocialFeedPublishablePosition, MobileSocialFeedRankedPage, MobileSocialFeedReadParams, MobileSocialFeedReadSession, MobileSocialFeedReply, MobileSocialFeedTimelineEntry, MobileSocialFeedTopTradersPage, MobileSocialFeedTradeCard, MobileSocialFeedTradeRow, MobileSocialFeedTradeRowBase, MobileSocialFeedTraderBadge, MobileSocialFeedTradingContext, MobileSocialFeedTradingTarget, MobileSocialFeedUpdates, MobileSocialFeedViewTracking, MobileSocialFeedViewsResult, MobileSocialFeedWatchers, MobileUnregisterExpoTokenParams, MobileUpdateNotificationPreferencesParams, MobileUsernameAvailability, MobileWithExpoTokenParams, ResolveMobileFeedActionParams, ResolveMobileFeedPositionParams, SearchMobileProfilesParams };
|
|
1
|
+
import { $ as MobileNotificationPreferences, $t as MobileSocialFeedLikeResult, A as MobileAvatarSelection, An as MobileSocialFeedViewsResult, At as MobileSocialFeedCategorizedParams, B as MobileFeedTrade, Bn as SearchMobileProfilesParams, Bt as MobileSocialFeedDrawingMutationResult, C as GetMobileProfileFeedParams, Cn as MobileSocialFeedTradeRow, Ct as MobileSignedRequestParams, D as GetMobileTopTradersFeedParams, Dn as MobileSocialFeedTradingTarget, Dt as MobileSocialFeedAuthor, E as GetMobileSelfFeedPositionsParams, En as MobileSocialFeedTradingContext, Et as MobileSocialFeedActionResolutionResult, F as MobileCreateFeedPostParams, Fn as MobileUpdateNotificationSubscriptionsParams, Ft as MobileSocialFeedCommentResult, G as MobileFollowSummary, Gt as MobileSocialFeedHistoryTake, H as MobileFollowListAccount, Ht as MobileSocialFeedEstimatedLiquidationLine, I as MobileFeedChartDrawingParams, In as MobileUsernameAvailability, It as MobileSocialFeedCommentsPage, J as MobileNotificationCategoryPreference, Jt as MobileSocialFeedInteraction, K as MobileIdentitySummary, Kt as MobileSocialFeedImage, L as MobileFeedImageRequest, Ln as MobileWithExpoTokenParams, Lt as MobileSocialFeedCompactCard, M as MobileCreateAvatarUploadParams, Mn as MobileUnregisterExpoTokenParams, Mt as MobileSocialFeedCohort, N as MobileCreateFeedCommentParams, Nn as MobileUpdateNotificationPreferencesParams, Nt as MobileSocialFeedCohortCoverage, O as GetMobileUsernameAvailabilityParams, On as MobileSocialFeedUpdates, Ot as MobileSocialFeedCandle, P as MobileCreateFeedImageUploadParams, Pn as MobileUpdateNotificationSettingsV2Params, Pt as MobileSocialFeedCommentPreview, Q as MobileNotificationPreferenceScope, Qt as MobileSocialFeedItemResponse, R as MobileFeedMargin, Rn as ResolveMobileFeedActionParams, Rt as MobileSocialFeedContentBase, S as GetMobilePositionWatchersParams, Sn as MobileSocialFeedTradeCard, St as MobileSetUsernameParams, T as GetMobileRegisteredWalletParams, Tn as MobileSocialFeedTraderBadge, Tt as MobileSocialFeedActionMarker, U as MobileFollowListPage, Ut as MobileSocialFeedHistoryMetrics, V as MobileFollowBatchResultItem, Vt as MobileSocialFeedDrawingResult, W as MobileFollowMutationResult, Wt as MobileSocialFeedHistorySummary, X as MobileNotificationInboxV2, Xt as MobileSocialFeedItemBase, Y as MobileNotificationInboxItem, Yt as MobileSocialFeedItem, Z as MobileNotificationPayloadV2, Zt as MobileSocialFeedItemPatch, _ as GetMobileNotificationSettingsV2Params, _n as MobileSocialFeedReadParams, _t as MobileSetBioParams, a as GetMobileFeedItemParams, an as MobileSocialFeedPositionAction, at as MobileNotificationSubscriptionsUpdate, b as GetMobilePositionFeedParams, bn as MobileSocialFeedTimelineEntry, bt as MobileSetFollowParams, c as GetMobileFollowListParams, cn as MobileSocialFeedPositionHistory, ct as MobileProfileSearchPage, d as GetMobileForYouFeedParams, dn as MobileSocialFeedPositionResolutionResult, dt as MobileRecordFeedViewsParams, en as MobileSocialFeedListParams, et as MobileNotificationRegistrationV2, f as GetMobileFriendsFeedParams, fn as MobileSocialFeedPositionsPage, ft as MobileRecordProductEventsParams, g as GetMobileNotificationRegistrationV2Params, gn as MobileSocialFeedRankedPage, gt as MobileSetAvatarParams, h as GetMobileNotificationPreferencesParams, hn as MobileSocialFeedPublishablePosition, ht as MobileRegisteredWallet, i as GetMobileFeedImageRequestParams, in as MobileSocialFeedPnl, it as MobileNotificationSubscriptions, j as MobileAvatarUpload, jn as MobileSocialFeedWatchers, jt as MobileSocialFeedChartRange, k as MobileAvatarPreset, kn as MobileSocialFeedViewTracking, kt as MobileSocialFeedCapabilities, l as GetMobileFollowersParams, ln as MobileSocialFeedPositionHistoryCard, lt as MobileProfilesInclude, m as GetMobileNotificationInboxV2Params, mn as MobileSocialFeedPresence, mt as MobileRegisterExpoTokenV2Params, n as GetMobileFeedCommentsParams, nn as MobileSocialFeedMentionParams, nt as MobileNotificationSettings, o as GetMobileFeedParams, on as MobileSocialFeedPositionCard, ot as MobilePositionPresenceParams, p as GetMobileMarketFeedParams, pn as MobileSocialFeedPost, pt as MobileRegisterExpoTokenParams, q as MobileNotificationCapabilities, qt as MobileSocialFeedImageThumbnail, r as GetMobileFeedImageBytesParams, rn as MobileSocialFeedPage, rt as MobileNotificationSettingsV2, s as GetMobileFeedUpdatesParams, sn as MobileSocialFeedPositionChart, st as MobileProductEvent, t as GetMobileFeedChartDrawingParams, tn as MobileSocialFeedMarket, tt as MobileNotificationRoute, u as GetMobileFollowingParams, un as MobileSocialFeedPositionPatch, ut as MobilePublicProfile, v as GetMobileNotificationSubscriptionsParams, vn as MobileSocialFeedReadSession, vt as MobileSetFeedLikeParams, w as GetMobileProfilesParams, wn as MobileSocialFeedTradeRowBase, wt as MobileSocialFeedActionCandidate, x as GetMobilePositionHistoryParams, xn as MobileSocialFeedTopTradersPage, xt as MobileSetPrivateModeParams, y as GetMobilePositionChartParams, yn as MobileSocialFeedReply, yt as MobileSetFollowBatchParams, z as MobileFeedPage, zn as ResolveMobileFeedPositionParams, zt as MobileSocialFeedDrawing } from "../clientTypes-DOpUcu80.cjs";
|
|
2
|
+
export { GetMobileFeedChartDrawingParams, GetMobileFeedCommentsParams, GetMobileFeedImageBytesParams, GetMobileFeedImageRequestParams, GetMobileFeedItemParams, GetMobileFeedParams, GetMobileFeedUpdatesParams, GetMobileFollowListParams, GetMobileFollowersParams, GetMobileFollowingParams, GetMobileForYouFeedParams, GetMobileFriendsFeedParams, GetMobileMarketFeedParams, GetMobileNotificationInboxV2Params, GetMobileNotificationPreferencesParams, GetMobileNotificationRegistrationV2Params, GetMobileNotificationSettingsV2Params, GetMobileNotificationSubscriptionsParams, GetMobilePositionChartParams, GetMobilePositionFeedParams, GetMobilePositionHistoryParams, GetMobilePositionWatchersParams, GetMobileProfileFeedParams, GetMobileProfilesParams, GetMobileRegisteredWalletParams, GetMobileSelfFeedPositionsParams, GetMobileTopTradersFeedParams, GetMobileUsernameAvailabilityParams, MobileAvatarPreset, MobileAvatarSelection, MobileAvatarUpload, MobileCreateAvatarUploadParams, MobileCreateFeedCommentParams, MobileCreateFeedImageUploadParams, MobileCreateFeedPostParams, MobileFeedChartDrawingParams, MobileFeedImageRequest, MobileFeedMargin, MobileFeedPage, MobileFeedTrade, MobileFollowBatchResultItem, MobileFollowListAccount, MobileFollowListPage, MobileFollowMutationResult, MobileFollowSummary, MobileIdentitySummary, MobileNotificationCapabilities, MobileNotificationCategoryPreference, MobileNotificationInboxItem, MobileNotificationInboxV2, MobileNotificationPayloadV2, MobileNotificationPreferenceScope, MobileNotificationPreferences, MobileNotificationRegistrationV2, MobileNotificationRoute, MobileNotificationSettings, MobileNotificationSettingsV2, MobileNotificationSubscriptions, MobileNotificationSubscriptionsUpdate, MobilePositionPresenceParams, MobileProductEvent, MobileProfileSearchPage, MobileProfilesInclude, MobilePublicProfile, MobileRecordFeedViewsParams, MobileRecordProductEventsParams, MobileRegisterExpoTokenParams, MobileRegisterExpoTokenV2Params, MobileRegisteredWallet, MobileSetAvatarParams, MobileSetBioParams, MobileSetFeedLikeParams, MobileSetFollowBatchParams, MobileSetFollowParams, MobileSetPrivateModeParams, MobileSetUsernameParams, MobileSignedRequestParams, MobileSocialFeedActionCandidate, MobileSocialFeedActionMarker, MobileSocialFeedActionResolutionResult, MobileSocialFeedAuthor, MobileSocialFeedCandle, MobileSocialFeedCapabilities, MobileSocialFeedCategorizedParams, MobileSocialFeedChartRange, MobileSocialFeedCohort, MobileSocialFeedCohortCoverage, MobileSocialFeedCommentPreview, MobileSocialFeedCommentResult, MobileSocialFeedCommentsPage, MobileSocialFeedCompactCard, MobileSocialFeedContentBase, MobileSocialFeedDrawing, MobileSocialFeedDrawingMutationResult, MobileSocialFeedDrawingResult, MobileSocialFeedEstimatedLiquidationLine, MobileSocialFeedHistoryMetrics, MobileSocialFeedHistorySummary, MobileSocialFeedHistoryTake, MobileSocialFeedImage, MobileSocialFeedImageThumbnail, MobileSocialFeedInteraction, MobileSocialFeedItem, MobileSocialFeedItemBase, MobileSocialFeedItemPatch, MobileSocialFeedItemResponse, MobileSocialFeedLikeResult, MobileSocialFeedListParams, MobileSocialFeedMarket, MobileSocialFeedMentionParams, MobileSocialFeedPage, MobileSocialFeedPnl, MobileSocialFeedPositionAction, MobileSocialFeedPositionCard, MobileSocialFeedPositionChart, MobileSocialFeedPositionHistory, MobileSocialFeedPositionHistoryCard, MobileSocialFeedPositionPatch, MobileSocialFeedPositionResolutionResult, MobileSocialFeedPositionsPage, MobileSocialFeedPost, MobileSocialFeedPresence, MobileSocialFeedPublishablePosition, MobileSocialFeedRankedPage, MobileSocialFeedReadParams, MobileSocialFeedReadSession, MobileSocialFeedReply, MobileSocialFeedTimelineEntry, MobileSocialFeedTopTradersPage, MobileSocialFeedTradeCard, MobileSocialFeedTradeRow, MobileSocialFeedTradeRowBase, MobileSocialFeedTraderBadge, MobileSocialFeedTradingContext, MobileSocialFeedTradingTarget, MobileSocialFeedUpdates, MobileSocialFeedViewTracking, MobileSocialFeedViewsResult, MobileSocialFeedWatchers, MobileUnregisterExpoTokenParams, MobileUpdateNotificationPreferencesParams, MobileUpdateNotificationSettingsV2Params, MobileUpdateNotificationSubscriptionsParams, MobileUsernameAvailability, MobileWithExpoTokenParams, ResolveMobileFeedActionParams, ResolveMobileFeedPositionParams, SearchMobileProfilesParams };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
export { GetMobileFeedChartDrawingParams, GetMobileFeedCommentsParams, GetMobileFeedItemParams, GetMobileFeedParams, GetMobileFeedUpdatesParams, GetMobileFollowListParams, GetMobileFollowersParams, GetMobileFollowingParams, GetMobileForYouFeedParams, GetMobileFriendsFeedParams, GetMobileMarketFeedParams, GetMobileNotificationPreferencesParams, GetMobilePositionChartParams, GetMobilePositionFeedParams, GetMobilePositionHistoryParams, GetMobilePositionWatchersParams, GetMobileProfileFeedParams, GetMobileProfilesParams, GetMobileRegisteredWalletParams, GetMobileSelfFeedPositionsParams, GetMobileTopTradersFeedParams, GetMobileUsernameAvailabilityParams, MobileAvatarPreset, MobileAvatarSelection, MobileAvatarUpload, MobileCreateAvatarUploadParams, MobileCreateFeedCommentParams, MobileCreateFeedPostParams, MobileFeedChartDrawingParams, MobileFeedMargin, MobileFeedPage, MobileFeedTrade, MobileFollowBatchResultItem, MobileFollowListAccount, MobileFollowListPage, MobileFollowMutationResult, MobileFollowSummary, MobileIdentitySummary, MobileNotificationCategoryPreference, MobileNotificationPreferenceScope, MobileNotificationPreferences, MobilePositionPresenceParams, MobileProfileSearchPage, MobileProfilesInclude, MobilePublicProfile, MobileRecordFeedViewsParams, MobileRegisterExpoTokenParams, MobileRegisteredWallet, MobileSetAvatarParams, MobileSetBioParams, MobileSetFeedLikeParams, MobileSetFollowBatchParams, MobileSetFollowParams, MobileSetPrivateModeParams, MobileSetUsernameParams, MobileSignedRequestParams, MobileSocialFeedActionCandidate, MobileSocialFeedActionMarker, MobileSocialFeedActionResolutionResult, MobileSocialFeedAuthor, MobileSocialFeedCandle, MobileSocialFeedCapabilities, MobileSocialFeedCategorizedParams, MobileSocialFeedChartRange, MobileSocialFeedCohort, MobileSocialFeedCohortCoverage, MobileSocialFeedCommentPreview, MobileSocialFeedCommentResult, MobileSocialFeedCommentsPage, MobileSocialFeedCompactCard, MobileSocialFeedContentBase, MobileSocialFeedDrawing, MobileSocialFeedDrawingMutationResult, MobileSocialFeedDrawingResult, MobileSocialFeedEstimatedLiquidationLine, MobileSocialFeedHistoryMetrics, MobileSocialFeedHistorySummary, MobileSocialFeedHistoryTake, MobileSocialFeedInteraction, MobileSocialFeedItem, MobileSocialFeedItemBase, MobileSocialFeedItemPatch, MobileSocialFeedItemResponse, MobileSocialFeedLikeResult, MobileSocialFeedListParams, MobileSocialFeedMarket, MobileSocialFeedMentionParams, MobileSocialFeedPage, MobileSocialFeedPnl, MobileSocialFeedPositionAction, MobileSocialFeedPositionCard, MobileSocialFeedPositionChart, MobileSocialFeedPositionHistory, MobileSocialFeedPositionHistoryCard, MobileSocialFeedPositionPatch, MobileSocialFeedPositionResolutionResult, MobileSocialFeedPositionsPage, MobileSocialFeedPost, MobileSocialFeedPresence, MobileSocialFeedPublishablePosition, MobileSocialFeedRankedPage, MobileSocialFeedReadParams, MobileSocialFeedReadSession, MobileSocialFeedReply, MobileSocialFeedTimelineEntry, MobileSocialFeedTopTradersPage, MobileSocialFeedTradeCard, MobileSocialFeedTradeRow, MobileSocialFeedTradeRowBase, MobileSocialFeedTraderBadge, MobileSocialFeedTradingContext, MobileSocialFeedTradingTarget, MobileSocialFeedUpdates, MobileSocialFeedViewTracking, MobileSocialFeedViewsResult, MobileSocialFeedWatchers, MobileUnregisterExpoTokenParams, MobileUpdateNotificationPreferencesParams, MobileUsernameAvailability, MobileWithExpoTokenParams, ResolveMobileFeedActionParams, ResolveMobileFeedPositionParams, SearchMobileProfilesParams };
|
|
1
|
+
import { $ as MobileNotificationPreferences, $t as MobileSocialFeedLikeResult, A as MobileAvatarSelection, An as MobileSocialFeedViewsResult, At as MobileSocialFeedCategorizedParams, B as MobileFeedTrade, Bn as SearchMobileProfilesParams, Bt as MobileSocialFeedDrawingMutationResult, C as GetMobileProfileFeedParams, Cn as MobileSocialFeedTradeRow, Ct as MobileSignedRequestParams, D as GetMobileTopTradersFeedParams, Dn as MobileSocialFeedTradingTarget, Dt as MobileSocialFeedAuthor, E as GetMobileSelfFeedPositionsParams, En as MobileSocialFeedTradingContext, Et as MobileSocialFeedActionResolutionResult, F as MobileCreateFeedPostParams, Fn as MobileUpdateNotificationSubscriptionsParams, Ft as MobileSocialFeedCommentResult, G as MobileFollowSummary, Gt as MobileSocialFeedHistoryTake, H as MobileFollowListAccount, Ht as MobileSocialFeedEstimatedLiquidationLine, I as MobileFeedChartDrawingParams, In as MobileUsernameAvailability, It as MobileSocialFeedCommentsPage, J as MobileNotificationCategoryPreference, Jt as MobileSocialFeedInteraction, K as MobileIdentitySummary, Kt as MobileSocialFeedImage, L as MobileFeedImageRequest, Ln as MobileWithExpoTokenParams, Lt as MobileSocialFeedCompactCard, M as MobileCreateAvatarUploadParams, Mn as MobileUnregisterExpoTokenParams, Mt as MobileSocialFeedCohort, N as MobileCreateFeedCommentParams, Nn as MobileUpdateNotificationPreferencesParams, Nt as MobileSocialFeedCohortCoverage, O as GetMobileUsernameAvailabilityParams, On as MobileSocialFeedUpdates, Ot as MobileSocialFeedCandle, P as MobileCreateFeedImageUploadParams, Pn as MobileUpdateNotificationSettingsV2Params, Pt as MobileSocialFeedCommentPreview, Q as MobileNotificationPreferenceScope, Qt as MobileSocialFeedItemResponse, R as MobileFeedMargin, Rn as ResolveMobileFeedActionParams, Rt as MobileSocialFeedContentBase, S as GetMobilePositionWatchersParams, Sn as MobileSocialFeedTradeCard, St as MobileSetUsernameParams, T as GetMobileRegisteredWalletParams, Tn as MobileSocialFeedTraderBadge, Tt as MobileSocialFeedActionMarker, U as MobileFollowListPage, Ut as MobileSocialFeedHistoryMetrics, V as MobileFollowBatchResultItem, Vt as MobileSocialFeedDrawingResult, W as MobileFollowMutationResult, Wt as MobileSocialFeedHistorySummary, X as MobileNotificationInboxV2, Xt as MobileSocialFeedItemBase, Y as MobileNotificationInboxItem, Yt as MobileSocialFeedItem, Z as MobileNotificationPayloadV2, Zt as MobileSocialFeedItemPatch, _ as GetMobileNotificationSettingsV2Params, _n as MobileSocialFeedReadParams, _t as MobileSetBioParams, a as GetMobileFeedItemParams, an as MobileSocialFeedPositionAction, at as MobileNotificationSubscriptionsUpdate, b as GetMobilePositionFeedParams, bn as MobileSocialFeedTimelineEntry, bt as MobileSetFollowParams, c as GetMobileFollowListParams, cn as MobileSocialFeedPositionHistory, ct as MobileProfileSearchPage, d as GetMobileForYouFeedParams, dn as MobileSocialFeedPositionResolutionResult, dt as MobileRecordFeedViewsParams, en as MobileSocialFeedListParams, et as MobileNotificationRegistrationV2, f as GetMobileFriendsFeedParams, fn as MobileSocialFeedPositionsPage, ft as MobileRecordProductEventsParams, g as GetMobileNotificationRegistrationV2Params, gn as MobileSocialFeedRankedPage, gt as MobileSetAvatarParams, h as GetMobileNotificationPreferencesParams, hn as MobileSocialFeedPublishablePosition, ht as MobileRegisteredWallet, i as GetMobileFeedImageRequestParams, in as MobileSocialFeedPnl, it as MobileNotificationSubscriptions, j as MobileAvatarUpload, jn as MobileSocialFeedWatchers, jt as MobileSocialFeedChartRange, k as MobileAvatarPreset, kn as MobileSocialFeedViewTracking, kt as MobileSocialFeedCapabilities, l as GetMobileFollowersParams, ln as MobileSocialFeedPositionHistoryCard, lt as MobileProfilesInclude, m as GetMobileNotificationInboxV2Params, mn as MobileSocialFeedPresence, mt as MobileRegisterExpoTokenV2Params, n as GetMobileFeedCommentsParams, nn as MobileSocialFeedMentionParams, nt as MobileNotificationSettings, o as GetMobileFeedParams, on as MobileSocialFeedPositionCard, ot as MobilePositionPresenceParams, p as GetMobileMarketFeedParams, pn as MobileSocialFeedPost, pt as MobileRegisterExpoTokenParams, q as MobileNotificationCapabilities, qt as MobileSocialFeedImageThumbnail, r as GetMobileFeedImageBytesParams, rn as MobileSocialFeedPage, rt as MobileNotificationSettingsV2, s as GetMobileFeedUpdatesParams, sn as MobileSocialFeedPositionChart, st as MobileProductEvent, t as GetMobileFeedChartDrawingParams, tn as MobileSocialFeedMarket, tt as MobileNotificationRoute, u as GetMobileFollowingParams, un as MobileSocialFeedPositionPatch, ut as MobilePublicProfile, v as GetMobileNotificationSubscriptionsParams, vn as MobileSocialFeedReadSession, vt as MobileSetFeedLikeParams, w as GetMobileProfilesParams, wn as MobileSocialFeedTradeRowBase, wt as MobileSocialFeedActionCandidate, x as GetMobilePositionHistoryParams, xn as MobileSocialFeedTopTradersPage, xt as MobileSetPrivateModeParams, y as GetMobilePositionChartParams, yn as MobileSocialFeedReply, yt as MobileSetFollowBatchParams, z as MobileFeedPage, zn as ResolveMobileFeedPositionParams, zt as MobileSocialFeedDrawing } from "../clientTypes-BUn5_OzK.js";
|
|
2
|
+
export { GetMobileFeedChartDrawingParams, GetMobileFeedCommentsParams, GetMobileFeedImageBytesParams, GetMobileFeedImageRequestParams, GetMobileFeedItemParams, GetMobileFeedParams, GetMobileFeedUpdatesParams, GetMobileFollowListParams, GetMobileFollowersParams, GetMobileFollowingParams, GetMobileForYouFeedParams, GetMobileFriendsFeedParams, GetMobileMarketFeedParams, GetMobileNotificationInboxV2Params, GetMobileNotificationPreferencesParams, GetMobileNotificationRegistrationV2Params, GetMobileNotificationSettingsV2Params, GetMobileNotificationSubscriptionsParams, GetMobilePositionChartParams, GetMobilePositionFeedParams, GetMobilePositionHistoryParams, GetMobilePositionWatchersParams, GetMobileProfileFeedParams, GetMobileProfilesParams, GetMobileRegisteredWalletParams, GetMobileSelfFeedPositionsParams, GetMobileTopTradersFeedParams, GetMobileUsernameAvailabilityParams, MobileAvatarPreset, MobileAvatarSelection, MobileAvatarUpload, MobileCreateAvatarUploadParams, MobileCreateFeedCommentParams, MobileCreateFeedImageUploadParams, MobileCreateFeedPostParams, MobileFeedChartDrawingParams, MobileFeedImageRequest, MobileFeedMargin, MobileFeedPage, MobileFeedTrade, MobileFollowBatchResultItem, MobileFollowListAccount, MobileFollowListPage, MobileFollowMutationResult, MobileFollowSummary, MobileIdentitySummary, MobileNotificationCapabilities, MobileNotificationCategoryPreference, MobileNotificationInboxItem, MobileNotificationInboxV2, MobileNotificationPayloadV2, MobileNotificationPreferenceScope, MobileNotificationPreferences, MobileNotificationRegistrationV2, MobileNotificationRoute, MobileNotificationSettings, MobileNotificationSettingsV2, MobileNotificationSubscriptions, MobileNotificationSubscriptionsUpdate, MobilePositionPresenceParams, MobileProductEvent, MobileProfileSearchPage, MobileProfilesInclude, MobilePublicProfile, MobileRecordFeedViewsParams, MobileRecordProductEventsParams, MobileRegisterExpoTokenParams, MobileRegisterExpoTokenV2Params, MobileRegisteredWallet, MobileSetAvatarParams, MobileSetBioParams, MobileSetFeedLikeParams, MobileSetFollowBatchParams, MobileSetFollowParams, MobileSetPrivateModeParams, MobileSetUsernameParams, MobileSignedRequestParams, MobileSocialFeedActionCandidate, MobileSocialFeedActionMarker, MobileSocialFeedActionResolutionResult, MobileSocialFeedAuthor, MobileSocialFeedCandle, MobileSocialFeedCapabilities, MobileSocialFeedCategorizedParams, MobileSocialFeedChartRange, MobileSocialFeedCohort, MobileSocialFeedCohortCoverage, MobileSocialFeedCommentPreview, MobileSocialFeedCommentResult, MobileSocialFeedCommentsPage, MobileSocialFeedCompactCard, MobileSocialFeedContentBase, MobileSocialFeedDrawing, MobileSocialFeedDrawingMutationResult, MobileSocialFeedDrawingResult, MobileSocialFeedEstimatedLiquidationLine, MobileSocialFeedHistoryMetrics, MobileSocialFeedHistorySummary, MobileSocialFeedHistoryTake, MobileSocialFeedImage, MobileSocialFeedImageThumbnail, MobileSocialFeedInteraction, MobileSocialFeedItem, MobileSocialFeedItemBase, MobileSocialFeedItemPatch, MobileSocialFeedItemResponse, MobileSocialFeedLikeResult, MobileSocialFeedListParams, MobileSocialFeedMarket, MobileSocialFeedMentionParams, MobileSocialFeedPage, MobileSocialFeedPnl, MobileSocialFeedPositionAction, MobileSocialFeedPositionCard, MobileSocialFeedPositionChart, MobileSocialFeedPositionHistory, MobileSocialFeedPositionHistoryCard, MobileSocialFeedPositionPatch, MobileSocialFeedPositionResolutionResult, MobileSocialFeedPositionsPage, MobileSocialFeedPost, MobileSocialFeedPresence, MobileSocialFeedPublishablePosition, MobileSocialFeedRankedPage, MobileSocialFeedReadParams, MobileSocialFeedReadSession, MobileSocialFeedReply, MobileSocialFeedTimelineEntry, MobileSocialFeedTopTradersPage, MobileSocialFeedTradeCard, MobileSocialFeedTradeRow, MobileSocialFeedTradeRowBase, MobileSocialFeedTraderBadge, MobileSocialFeedTradingContext, MobileSocialFeedTradingTarget, MobileSocialFeedUpdates, MobileSocialFeedViewTracking, MobileSocialFeedViewsResult, MobileSocialFeedWatchers, MobileUnregisterExpoTokenParams, MobileUpdateNotificationPreferencesParams, MobileUpdateNotificationSettingsV2Params, MobileUpdateNotificationSubscriptionsParams, MobileUsernameAvailability, MobileWithExpoTokenParams, ResolveMobileFeedActionParams, ResolveMobileFeedPositionParams, SearchMobileProfilesParams };
|
package/dist/types/index.cjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_types_MobileUnsupportedFeedItemError = require("./MobileUnsupportedFeedItemError.cjs");
|
|
3
|
+
const require_types_MobileUnsupportedNotificationRouteError = require("./MobileUnsupportedNotificationRouteError.cjs");
|
|
3
4
|
const require_types_MobileServerFailureError = require("./MobileServerFailureError.cjs");
|
|
4
5
|
const require_types_mobileErrorCodes = require("./mobileErrorCodes.cjs");
|
|
5
6
|
const require_types_serverModelTypes = require("./serverModelTypes.cjs");
|
|
@@ -7,5 +8,8 @@ exports.MOBILE_ERROR_CODES = require_types_mobileErrorCodes.MOBILE_ERROR_CODES;
|
|
|
7
8
|
exports.MOBILE_FEED_MARGIN_MODES = require_types_serverModelTypes.MOBILE_FEED_MARGIN_MODES;
|
|
8
9
|
exports.MOBILE_FEED_TRADE_POSITION_DIRECTIONS = require_types_serverModelTypes.MOBILE_FEED_TRADE_POSITION_DIRECTIONS;
|
|
9
10
|
exports.MOBILE_FEED_TRADE_POSITION_EFFECTS = require_types_serverModelTypes.MOBILE_FEED_TRADE_POSITION_EFFECTS;
|
|
11
|
+
exports.MOBILE_NOTIFICATION_MIN_TRADE_SIZES_USD = require_types_serverModelTypes.MOBILE_NOTIFICATION_MIN_TRADE_SIZES_USD;
|
|
12
|
+
exports.MOBILE_NOTIFICATION_POSITION_THRESHOLDS = require_types_serverModelTypes.MOBILE_NOTIFICATION_POSITION_THRESHOLDS;
|
|
10
13
|
exports.MobileServerFailureError = require_types_MobileServerFailureError.MobileServerFailureError;
|
|
11
14
|
exports.MobileUnsupportedFeedItemError = require_types_MobileUnsupportedFeedItemError.MobileUnsupportedFeedItemError;
|
|
15
|
+
exports.MobileUnsupportedNotificationRouteError = require_types_MobileUnsupportedNotificationRouteError.MobileUnsupportedNotificationRouteError;
|