mosir-sdk-python 0.1.1__py3-none-any.whl

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.
mosir_sdk/__init__.py ADDED
@@ -0,0 +1,22 @@
1
+ from .client import (
2
+ DEFAULT_ENDPOINT,
3
+ AsyncMosirClient,
4
+ PreviewImageKind,
5
+ get_preview_image_url,
6
+ select_media_file,
7
+ )
8
+ from .exceptions import GraphQLRequestError, GraphQLTransportError, MosirSdkError
9
+ from ._operations import OPERATION_REGISTRY, OperationSpec
10
+
11
+ __all__ = [
12
+ "AsyncMosirClient",
13
+ "DEFAULT_ENDPOINT",
14
+ "GraphQLRequestError",
15
+ "GraphQLTransportError",
16
+ "MosirSdkError",
17
+ "OperationSpec",
18
+ "OPERATION_REGISTRY",
19
+ "PreviewImageKind",
20
+ "get_preview_image_url",
21
+ "select_media_file",
22
+ ]
@@ -0,0 +1,250 @@
1
+ from __future__ import annotations
2
+
3
+ from dataclasses import dataclass
4
+ from typing import Literal
5
+
6
+
7
+ @dataclass(frozen=True)
8
+ class OperationSpec:
9
+ operation_name: str
10
+ operation_type: Literal['query', 'mutation', 'subscription']
11
+ document: str
12
+ variable_map: dict[str, str]
13
+
14
+
15
+ OPERATION_REGISTRY: dict[str, OperationSpec] = {
16
+ 'get_account_profile': OperationSpec(
17
+ operation_name='GetAccountProfile',
18
+ operation_type='query',
19
+ document='query GetAccountProfile($accountId: ID, $username: String) {\n getAccountProfile(accountId: $accountId, username: $username) {\n ...ProfileFields\n }\n}\n\nfragment BlockStatusInfoFields on BlockStatusInfo {\n blockStatus\n isBlocked\n}\n\nfragment PostCollectionReferenceFields on PostCollection {\n id\n authorID\n coverMediaID\n createdAt\n description\n followLevel\n postCount\n title\n updatedAt\n}\n\nfragment ProfileFollowStatusFields on ProfileFollowStatus {\n followingLevel\n isFollowedBy\n isFollowing\n}\n\nfragment AspectRatioFields on AspectRatio {\n numerator\n denominator\n}\n\nfragment MediaFileMetadataFields on MediaFileMetadata {\n id\n mediaId\n profile\n contentType\n url\n}\n\nfragment MediaMetadataFields on MediaMetadata {\n id\n accountID\n aspectRatio {\n ...AspectRatioFields\n }\n blurHash\n durationMs\n files {\n ...MediaFileMetadataFields\n }\n status\n type\n}\n\nfragment ProfileReferenceFields on Profile {\n id\n username\n displayName\n profileEmoji\n profileMediaId\n}\n\nfragment ProfileTagFields on ProfileTag {\n id\n name\n memberCount\n AuthorID\n Author {\n ...ProfileReferenceFields\n }\n}\n\nfragment ProfileFields on Profile {\n id\n username\n displayName\n bio\n joinedAt\n followerCount\n followingCount\n preferInteractionType\n profileEmoji\n profileMediaId\n viewerId\n blockingStatus {\n ...BlockStatusInfoFields\n }\n pinnedPostCollectionId\n pinnedPostCollection {\n ...PostCollectionReferenceFields\n }\n profileFollowStatus {\n ...ProfileFollowStatusFields\n }\n profileMedia {\n ...MediaMetadataFields\n }\n tags {\n ...ProfileTagFields\n }\n}',
20
+ variable_map={'accountId': 'accountId', 'account_id': 'accountId', 'username': 'username'},
21
+ ),
22
+ 'get_blocked_accounts': OperationSpec(
23
+ operation_name='GetBlockedAccounts',
24
+ operation_type='query',
25
+ document='query GetBlockedAccounts($cursor: String, $limit: Int) {\n getBlockedAccounts(cursor: $cursor, limit: $limit) {\n ...ProfileConnectionFields\n }\n}\n\nfragment BlockStatusInfoFields on BlockStatusInfo {\n blockStatus\n isBlocked\n}\n\nfragment PostCollectionReferenceFields on PostCollection {\n id\n authorID\n coverMediaID\n createdAt\n description\n followLevel\n postCount\n title\n updatedAt\n}\n\nfragment ProfileFollowStatusFields on ProfileFollowStatus {\n followingLevel\n isFollowedBy\n isFollowing\n}\n\nfragment AspectRatioFields on AspectRatio {\n numerator\n denominator\n}\n\nfragment MediaFileMetadataFields on MediaFileMetadata {\n id\n mediaId\n profile\n contentType\n url\n}\n\nfragment MediaMetadataFields on MediaMetadata {\n id\n accountID\n aspectRatio {\n ...AspectRatioFields\n }\n blurHash\n durationMs\n files {\n ...MediaFileMetadataFields\n }\n status\n type\n}\n\nfragment ProfileReferenceFields on Profile {\n id\n username\n displayName\n profileEmoji\n profileMediaId\n}\n\nfragment ProfileTagFields on ProfileTag {\n id\n name\n memberCount\n AuthorID\n Author {\n ...ProfileReferenceFields\n }\n}\n\nfragment ProfileFields on Profile {\n id\n username\n displayName\n bio\n joinedAt\n followerCount\n followingCount\n preferInteractionType\n profileEmoji\n profileMediaId\n viewerId\n blockingStatus {\n ...BlockStatusInfoFields\n }\n pinnedPostCollectionId\n pinnedPostCollection {\n ...PostCollectionReferenceFields\n }\n profileFollowStatus {\n ...ProfileFollowStatusFields\n }\n profileMedia {\n ...MediaMetadataFields\n }\n tags {\n ...ProfileTagFields\n }\n}\n\nfragment PageInfoFields on PageInfo {\n endCursor\n hasNextPage\n totalCount\n}\n\nfragment ProfileConnectionFields on ProfileConnection {\n edges {\n ...ProfileFields\n }\n pageInfo {\n ...PageInfoFields\n }\n}',
26
+ variable_map={'cursor': 'cursor', 'limit': 'limit'},
27
+ ),
28
+ 'get_current_account': OperationSpec(
29
+ operation_name='GetCurrentAccount',
30
+ operation_type='query',
31
+ document='query GetCurrentAccount {\n getCurrentAccount {\n ...AccountFields\n }\n}\n\nfragment AccountFields on Account {\n id\n username\n email\n createdAt\n lastLogin\n status\n}',
32
+ variable_map={},
33
+ ),
34
+ 'get_discussions': OperationSpec(
35
+ operation_name='GetDiscussions',
36
+ operation_type='query',
37
+ document='query GetDiscussions($cursor: String, $limit: Int = 20) {\n getDiscussions(cursor: $cursor, limit: $limit) {\n ...FeedPostConnectionFields\n }\n}\n\nfragment ProfileReferenceFields on Profile {\n id\n username\n displayName\n profileEmoji\n profileMediaId\n}\n\nfragment AttachmentIDFields on AttachmentID {\n type\n embeddedCollectionId\n embeddedPostId\n embeddedProfileId\n linkUrl\n mediaId\n}\n\nfragment LinkPreviewFields on LinkPreview {\n Url\n canonicalUrl\n resourceType\n summary\n thumbnailUrl\n title\n}\n\nfragment AspectRatioFields on AspectRatio {\n numerator\n denominator\n}\n\nfragment MediaFileMetadataFields on MediaFileMetadata {\n id\n mediaId\n profile\n contentType\n url\n}\n\nfragment MediaMetadataFields on MediaMetadata {\n id\n accountID\n aspectRatio {\n ...AspectRatioFields\n }\n blurHash\n durationMs\n files {\n ...MediaFileMetadataFields\n }\n status\n type\n}\n\nfragment PostReferenceFields on Post {\n id\n authorID\n content\n createdAt\n parentPostId\n commentCount\n}\n\nfragment PostCollectionReferenceFields on PostCollection {\n id\n authorID\n coverMediaID\n createdAt\n description\n followLevel\n postCount\n title\n updatedAt\n}\n\nfragment AttachmentFields on Attachment {\n type\n linkPreview {\n ...LinkPreviewFields\n }\n media {\n ...MediaMetadataFields\n }\n embeddedProfile {\n ...ProfileReferenceFields\n }\n embeddedPost {\n ...PostReferenceFields\n }\n embeddedCollection {\n ...PostCollectionReferenceFields\n }\n}\n\nfragment PostOperationPermissionFields on PostOperationPermission {\n canComment\n canReact\n}\n\nfragment PostVisibilityFields on PostVisibility {\n policy\n profileTags\n pushPolicy\n}\n\nfragment PostOptionsFields on PostOptions {\n commentPolicy\n copyPolicy\n reactionPolicy\n postVisibility {\n ...PostVisibilityFields\n }\n}\n\nfragment ReactionTypeFields on ReactionType {\n emojiValue\n nativeValue\n}\n\nfragment ReactionSummaryFields on ReactionSummary {\n count\n isReactedByViewer\n type {\n ...ReactionTypeFields\n }\n}\n\nfragment PostReactionsConnectionFields on PostReactionsConnection {\n postId\n queryLimit\n remainingCount\n viewerId\n reactions {\n ...ReactionSummaryFields\n }\n}\n\nfragment PostFields on Post {\n id\n authorID\n content\n createdAt\n parentPostId\n commentCount\n leafAncestorIds\n rootAncestorIds\n author {\n ...ProfileReferenceFields\n }\n attachmentIds {\n ...AttachmentIDFields\n }\n attachments {\n ...AttachmentFields\n }\n postCollections {\n ...PostCollectionReferenceFields\n }\n postOperationPermission {\n ...PostOperationPermissionFields\n }\n postOptions {\n ...PostOptionsFields\n }\n reactions(first: 20) {\n ...PostReactionsConnectionFields\n }\n}\n\nfragment FeedPostEdgeFields on FeedPostEdge {\n id\n post {\n ...PostFields\n }\n}\n\nfragment PageInfoFields on PageInfo {\n endCursor\n hasNextPage\n totalCount\n}\n\nfragment FeedPostConnectionFields on FeedPostConnection {\n edges {\n ...FeedPostEdgeFields\n }\n pageInfo {\n ...PageInfoFields\n }\n}',
38
+ variable_map={'cursor': 'cursor', 'limit': 'limit'},
39
+ ),
40
+ 'get_feed_posts': OperationSpec(
41
+ operation_name='GetFeedPosts',
42
+ operation_type='query',
43
+ document='query GetFeedPosts($cursor: String, $limit: Int = 20) {\n getFeedPosts(cursor: $cursor, limit: $limit) {\n ...FeedPostConnectionFields\n }\n}\n\nfragment ProfileReferenceFields on Profile {\n id\n username\n displayName\n profileEmoji\n profileMediaId\n}\n\nfragment AttachmentIDFields on AttachmentID {\n type\n embeddedCollectionId\n embeddedPostId\n embeddedProfileId\n linkUrl\n mediaId\n}\n\nfragment LinkPreviewFields on LinkPreview {\n Url\n canonicalUrl\n resourceType\n summary\n thumbnailUrl\n title\n}\n\nfragment AspectRatioFields on AspectRatio {\n numerator\n denominator\n}\n\nfragment MediaFileMetadataFields on MediaFileMetadata {\n id\n mediaId\n profile\n contentType\n url\n}\n\nfragment MediaMetadataFields on MediaMetadata {\n id\n accountID\n aspectRatio {\n ...AspectRatioFields\n }\n blurHash\n durationMs\n files {\n ...MediaFileMetadataFields\n }\n status\n type\n}\n\nfragment PostReferenceFields on Post {\n id\n authorID\n content\n createdAt\n parentPostId\n commentCount\n}\n\nfragment PostCollectionReferenceFields on PostCollection {\n id\n authorID\n coverMediaID\n createdAt\n description\n followLevel\n postCount\n title\n updatedAt\n}\n\nfragment AttachmentFields on Attachment {\n type\n linkPreview {\n ...LinkPreviewFields\n }\n media {\n ...MediaMetadataFields\n }\n embeddedProfile {\n ...ProfileReferenceFields\n }\n embeddedPost {\n ...PostReferenceFields\n }\n embeddedCollection {\n ...PostCollectionReferenceFields\n }\n}\n\nfragment PostOperationPermissionFields on PostOperationPermission {\n canComment\n canReact\n}\n\nfragment PostVisibilityFields on PostVisibility {\n policy\n profileTags\n pushPolicy\n}\n\nfragment PostOptionsFields on PostOptions {\n commentPolicy\n copyPolicy\n reactionPolicy\n postVisibility {\n ...PostVisibilityFields\n }\n}\n\nfragment ReactionTypeFields on ReactionType {\n emojiValue\n nativeValue\n}\n\nfragment ReactionSummaryFields on ReactionSummary {\n count\n isReactedByViewer\n type {\n ...ReactionTypeFields\n }\n}\n\nfragment PostReactionsConnectionFields on PostReactionsConnection {\n postId\n queryLimit\n remainingCount\n viewerId\n reactions {\n ...ReactionSummaryFields\n }\n}\n\nfragment PostFields on Post {\n id\n authorID\n content\n createdAt\n parentPostId\n commentCount\n leafAncestorIds\n rootAncestorIds\n author {\n ...ProfileReferenceFields\n }\n attachmentIds {\n ...AttachmentIDFields\n }\n attachments {\n ...AttachmentFields\n }\n postCollections {\n ...PostCollectionReferenceFields\n }\n postOperationPermission {\n ...PostOperationPermissionFields\n }\n postOptions {\n ...PostOptionsFields\n }\n reactions(first: 20) {\n ...PostReactionsConnectionFields\n }\n}\n\nfragment FeedPostEdgeFields on FeedPostEdge {\n id\n post {\n ...PostFields\n }\n}\n\nfragment PageInfoFields on PageInfo {\n endCursor\n hasNextPage\n totalCount\n}\n\nfragment FeedPostConnectionFields on FeedPostConnection {\n edges {\n ...FeedPostEdgeFields\n }\n pageInfo {\n ...PageInfoFields\n }\n}',
44
+ variable_map={'cursor': 'cursor', 'limit': 'limit'},
45
+ ),
46
+ 'get_followed_accounts': OperationSpec(
47
+ operation_name='GetFollowedAccounts',
48
+ operation_type='query',
49
+ document='query GetFollowedAccounts($accountId: ID!, $cursor: String, $limit: Int) {\n getFollowedAccounts(accountId: $accountId, cursor: $cursor, limit: $limit) {\n ...ProfileConnectionFields\n }\n}\n\nfragment BlockStatusInfoFields on BlockStatusInfo {\n blockStatus\n isBlocked\n}\n\nfragment PostCollectionReferenceFields on PostCollection {\n id\n authorID\n coverMediaID\n createdAt\n description\n followLevel\n postCount\n title\n updatedAt\n}\n\nfragment ProfileFollowStatusFields on ProfileFollowStatus {\n followingLevel\n isFollowedBy\n isFollowing\n}\n\nfragment AspectRatioFields on AspectRatio {\n numerator\n denominator\n}\n\nfragment MediaFileMetadataFields on MediaFileMetadata {\n id\n mediaId\n profile\n contentType\n url\n}\n\nfragment MediaMetadataFields on MediaMetadata {\n id\n accountID\n aspectRatio {\n ...AspectRatioFields\n }\n blurHash\n durationMs\n files {\n ...MediaFileMetadataFields\n }\n status\n type\n}\n\nfragment ProfileReferenceFields on Profile {\n id\n username\n displayName\n profileEmoji\n profileMediaId\n}\n\nfragment ProfileTagFields on ProfileTag {\n id\n name\n memberCount\n AuthorID\n Author {\n ...ProfileReferenceFields\n }\n}\n\nfragment ProfileFields on Profile {\n id\n username\n displayName\n bio\n joinedAt\n followerCount\n followingCount\n preferInteractionType\n profileEmoji\n profileMediaId\n viewerId\n blockingStatus {\n ...BlockStatusInfoFields\n }\n pinnedPostCollectionId\n pinnedPostCollection {\n ...PostCollectionReferenceFields\n }\n profileFollowStatus {\n ...ProfileFollowStatusFields\n }\n profileMedia {\n ...MediaMetadataFields\n }\n tags {\n ...ProfileTagFields\n }\n}\n\nfragment PageInfoFields on PageInfo {\n endCursor\n hasNextPage\n totalCount\n}\n\nfragment ProfileConnectionFields on ProfileConnection {\n edges {\n ...ProfileFields\n }\n pageInfo {\n ...PageInfoFields\n }\n}',
50
+ variable_map={'accountId': 'accountId', 'account_id': 'accountId', 'cursor': 'cursor', 'limit': 'limit'},
51
+ ),
52
+ 'get_followed_post_collections': OperationSpec(
53
+ operation_name='GetFollowedPostCollections',
54
+ operation_type='query',
55
+ document='query GetFollowedPostCollections($cursor: String, $limit: Int) {\n getFollowedPostCollections(cursor: $cursor, limit: $limit) {\n ...PostCollectionConnectionFields\n }\n}\n\nfragment ProfileReferenceFields on Profile {\n id\n username\n displayName\n profileEmoji\n profileMediaId\n}\n\nfragment AspectRatioFields on AspectRatio {\n numerator\n denominator\n}\n\nfragment MediaFileMetadataFields on MediaFileMetadata {\n id\n mediaId\n profile\n contentType\n url\n}\n\nfragment MediaMetadataFields on MediaMetadata {\n id\n accountID\n aspectRatio {\n ...AspectRatioFields\n }\n blurHash\n durationMs\n files {\n ...MediaFileMetadataFields\n }\n status\n type\n}\n\nfragment PostCollectionFields on PostCollection {\n id\n authorID\n coverMediaID\n createdAt\n description\n followLevel\n postCount\n title\n updatedAt\n author {\n ...ProfileReferenceFields\n }\n coverMedia {\n ...MediaMetadataFields\n }\n}\n\nfragment PageInfoFields on PageInfo {\n endCursor\n hasNextPage\n totalCount\n}\n\nfragment PostCollectionConnectionFields on PostCollectionConnection {\n edges {\n ...PostCollectionFields\n }\n pageInfo {\n ...PageInfoFields\n }\n}',
56
+ variable_map={'cursor': 'cursor', 'limit': 'limit'},
57
+ ),
58
+ 'get_following_accounts': OperationSpec(
59
+ operation_name='GetFollowingAccounts',
60
+ operation_type='query',
61
+ document='query GetFollowingAccounts($accountId: ID!, $cursor: String, $limit: Int) {\n getFollowingAccounts(accountId: $accountId, cursor: $cursor, limit: $limit) {\n ...ProfileConnectionFields\n }\n}\n\nfragment BlockStatusInfoFields on BlockStatusInfo {\n blockStatus\n isBlocked\n}\n\nfragment PostCollectionReferenceFields on PostCollection {\n id\n authorID\n coverMediaID\n createdAt\n description\n followLevel\n postCount\n title\n updatedAt\n}\n\nfragment ProfileFollowStatusFields on ProfileFollowStatus {\n followingLevel\n isFollowedBy\n isFollowing\n}\n\nfragment AspectRatioFields on AspectRatio {\n numerator\n denominator\n}\n\nfragment MediaFileMetadataFields on MediaFileMetadata {\n id\n mediaId\n profile\n contentType\n url\n}\n\nfragment MediaMetadataFields on MediaMetadata {\n id\n accountID\n aspectRatio {\n ...AspectRatioFields\n }\n blurHash\n durationMs\n files {\n ...MediaFileMetadataFields\n }\n status\n type\n}\n\nfragment ProfileReferenceFields on Profile {\n id\n username\n displayName\n profileEmoji\n profileMediaId\n}\n\nfragment ProfileTagFields on ProfileTag {\n id\n name\n memberCount\n AuthorID\n Author {\n ...ProfileReferenceFields\n }\n}\n\nfragment ProfileFields on Profile {\n id\n username\n displayName\n bio\n joinedAt\n followerCount\n followingCount\n preferInteractionType\n profileEmoji\n profileMediaId\n viewerId\n blockingStatus {\n ...BlockStatusInfoFields\n }\n pinnedPostCollectionId\n pinnedPostCollection {\n ...PostCollectionReferenceFields\n }\n profileFollowStatus {\n ...ProfileFollowStatusFields\n }\n profileMedia {\n ...MediaMetadataFields\n }\n tags {\n ...ProfileTagFields\n }\n}\n\nfragment PageInfoFields on PageInfo {\n endCursor\n hasNextPage\n totalCount\n}\n\nfragment ProfileConnectionFields on ProfileConnection {\n edges {\n ...ProfileFields\n }\n pageInfo {\n ...PageInfoFields\n }\n}',
62
+ variable_map={'accountId': 'accountId', 'account_id': 'accountId', 'cursor': 'cursor', 'limit': 'limit'},
63
+ ),
64
+ 'get_following_posts': OperationSpec(
65
+ operation_name='GetFollowingPosts',
66
+ operation_type='query',
67
+ document='query GetFollowingPosts($cursor: String, $limit: Int = 20) {\n getFollowingPosts(cursor: $cursor, limit: $limit) {\n ...FeedPostConnectionFields\n }\n}\n\nfragment ProfileReferenceFields on Profile {\n id\n username\n displayName\n profileEmoji\n profileMediaId\n}\n\nfragment AttachmentIDFields on AttachmentID {\n type\n embeddedCollectionId\n embeddedPostId\n embeddedProfileId\n linkUrl\n mediaId\n}\n\nfragment LinkPreviewFields on LinkPreview {\n Url\n canonicalUrl\n resourceType\n summary\n thumbnailUrl\n title\n}\n\nfragment AspectRatioFields on AspectRatio {\n numerator\n denominator\n}\n\nfragment MediaFileMetadataFields on MediaFileMetadata {\n id\n mediaId\n profile\n contentType\n url\n}\n\nfragment MediaMetadataFields on MediaMetadata {\n id\n accountID\n aspectRatio {\n ...AspectRatioFields\n }\n blurHash\n durationMs\n files {\n ...MediaFileMetadataFields\n }\n status\n type\n}\n\nfragment PostReferenceFields on Post {\n id\n authorID\n content\n createdAt\n parentPostId\n commentCount\n}\n\nfragment PostCollectionReferenceFields on PostCollection {\n id\n authorID\n coverMediaID\n createdAt\n description\n followLevel\n postCount\n title\n updatedAt\n}\n\nfragment AttachmentFields on Attachment {\n type\n linkPreview {\n ...LinkPreviewFields\n }\n media {\n ...MediaMetadataFields\n }\n embeddedProfile {\n ...ProfileReferenceFields\n }\n embeddedPost {\n ...PostReferenceFields\n }\n embeddedCollection {\n ...PostCollectionReferenceFields\n }\n}\n\nfragment PostOperationPermissionFields on PostOperationPermission {\n canComment\n canReact\n}\n\nfragment PostVisibilityFields on PostVisibility {\n policy\n profileTags\n pushPolicy\n}\n\nfragment PostOptionsFields on PostOptions {\n commentPolicy\n copyPolicy\n reactionPolicy\n postVisibility {\n ...PostVisibilityFields\n }\n}\n\nfragment ReactionTypeFields on ReactionType {\n emojiValue\n nativeValue\n}\n\nfragment ReactionSummaryFields on ReactionSummary {\n count\n isReactedByViewer\n type {\n ...ReactionTypeFields\n }\n}\n\nfragment PostReactionsConnectionFields on PostReactionsConnection {\n postId\n queryLimit\n remainingCount\n viewerId\n reactions {\n ...ReactionSummaryFields\n }\n}\n\nfragment PostFields on Post {\n id\n authorID\n content\n createdAt\n parentPostId\n commentCount\n leafAncestorIds\n rootAncestorIds\n author {\n ...ProfileReferenceFields\n }\n attachmentIds {\n ...AttachmentIDFields\n }\n attachments {\n ...AttachmentFields\n }\n postCollections {\n ...PostCollectionReferenceFields\n }\n postOperationPermission {\n ...PostOperationPermissionFields\n }\n postOptions {\n ...PostOptionsFields\n }\n reactions(first: 20) {\n ...PostReactionsConnectionFields\n }\n}\n\nfragment FeedPostEdgeFields on FeedPostEdge {\n id\n post {\n ...PostFields\n }\n}\n\nfragment PageInfoFields on PageInfo {\n endCursor\n hasNextPage\n totalCount\n}\n\nfragment FeedPostConnectionFields on FeedPostConnection {\n edges {\n ...FeedPostEdgeFields\n }\n pageInfo {\n ...PageInfoFields\n }\n}',
68
+ variable_map={'cursor': 'cursor', 'limit': 'limit'},
69
+ ),
70
+ 'get_history_posts': OperationSpec(
71
+ operation_name='GetHistoryPosts',
72
+ operation_type='query',
73
+ document='query GetHistoryPosts($cursor: String, $includeOwnPosts: Boolean = false, $limit: Int = 20) {\n getHistoryPosts(\n cursor: $cursor\n includeOwnPosts: $includeOwnPosts\n limit: $limit\n ) {\n ...FeedPostConnectionFields\n }\n}\n\nfragment ProfileReferenceFields on Profile {\n id\n username\n displayName\n profileEmoji\n profileMediaId\n}\n\nfragment AttachmentIDFields on AttachmentID {\n type\n embeddedCollectionId\n embeddedPostId\n embeddedProfileId\n linkUrl\n mediaId\n}\n\nfragment LinkPreviewFields on LinkPreview {\n Url\n canonicalUrl\n resourceType\n summary\n thumbnailUrl\n title\n}\n\nfragment AspectRatioFields on AspectRatio {\n numerator\n denominator\n}\n\nfragment MediaFileMetadataFields on MediaFileMetadata {\n id\n mediaId\n profile\n contentType\n url\n}\n\nfragment MediaMetadataFields on MediaMetadata {\n id\n accountID\n aspectRatio {\n ...AspectRatioFields\n }\n blurHash\n durationMs\n files {\n ...MediaFileMetadataFields\n }\n status\n type\n}\n\nfragment PostReferenceFields on Post {\n id\n authorID\n content\n createdAt\n parentPostId\n commentCount\n}\n\nfragment PostCollectionReferenceFields on PostCollection {\n id\n authorID\n coverMediaID\n createdAt\n description\n followLevel\n postCount\n title\n updatedAt\n}\n\nfragment AttachmentFields on Attachment {\n type\n linkPreview {\n ...LinkPreviewFields\n }\n media {\n ...MediaMetadataFields\n }\n embeddedProfile {\n ...ProfileReferenceFields\n }\n embeddedPost {\n ...PostReferenceFields\n }\n embeddedCollection {\n ...PostCollectionReferenceFields\n }\n}\n\nfragment PostOperationPermissionFields on PostOperationPermission {\n canComment\n canReact\n}\n\nfragment PostVisibilityFields on PostVisibility {\n policy\n profileTags\n pushPolicy\n}\n\nfragment PostOptionsFields on PostOptions {\n commentPolicy\n copyPolicy\n reactionPolicy\n postVisibility {\n ...PostVisibilityFields\n }\n}\n\nfragment ReactionTypeFields on ReactionType {\n emojiValue\n nativeValue\n}\n\nfragment ReactionSummaryFields on ReactionSummary {\n count\n isReactedByViewer\n type {\n ...ReactionTypeFields\n }\n}\n\nfragment PostReactionsConnectionFields on PostReactionsConnection {\n postId\n queryLimit\n remainingCount\n viewerId\n reactions {\n ...ReactionSummaryFields\n }\n}\n\nfragment PostFields on Post {\n id\n authorID\n content\n createdAt\n parentPostId\n commentCount\n leafAncestorIds\n rootAncestorIds\n author {\n ...ProfileReferenceFields\n }\n attachmentIds {\n ...AttachmentIDFields\n }\n attachments {\n ...AttachmentFields\n }\n postCollections {\n ...PostCollectionReferenceFields\n }\n postOperationPermission {\n ...PostOperationPermissionFields\n }\n postOptions {\n ...PostOptionsFields\n }\n reactions(first: 20) {\n ...PostReactionsConnectionFields\n }\n}\n\nfragment FeedPostEdgeFields on FeedPostEdge {\n id\n post {\n ...PostFields\n }\n}\n\nfragment PageInfoFields on PageInfo {\n endCursor\n hasNextPage\n totalCount\n}\n\nfragment FeedPostConnectionFields on FeedPostConnection {\n edges {\n ...FeedPostEdgeFields\n }\n pageInfo {\n ...PageInfoFields\n }\n}',
74
+ variable_map={'cursor': 'cursor', 'includeOwnPosts': 'includeOwnPosts', 'include_own_posts': 'includeOwnPosts', 'limit': 'limit'},
75
+ ),
76
+ 'get_link_preview': OperationSpec(
77
+ operation_name='GetLinkPreview',
78
+ operation_type='query',
79
+ document='query GetLinkPreview($url: String!) {\n getLinkPreview(url: $url) {\n ...LinkPreviewFields\n }\n}\n\nfragment LinkPreviewFields on LinkPreview {\n Url\n canonicalUrl\n resourceType\n summary\n thumbnailUrl\n title\n}',
80
+ variable_map={'url': 'url'},
81
+ ),
82
+ 'get_media': OperationSpec(
83
+ operation_name='GetMedia',
84
+ operation_type='query',
85
+ document='query GetMedia($mediaId: ID!) {\n getMedia(mediaId: $mediaId) {\n ...MediaMetadataFields\n }\n}\n\nfragment AspectRatioFields on AspectRatio {\n numerator\n denominator\n}\n\nfragment MediaFileMetadataFields on MediaFileMetadata {\n id\n mediaId\n profile\n contentType\n url\n}\n\nfragment MediaMetadataFields on MediaMetadata {\n id\n accountID\n aspectRatio {\n ...AspectRatioFields\n }\n blurHash\n durationMs\n files {\n ...MediaFileMetadataFields\n }\n status\n type\n}',
86
+ variable_map={'mediaId': 'mediaId', 'media_id': 'mediaId'},
87
+ ),
88
+ 'get_mutual_followers': OperationSpec(
89
+ operation_name='GetMutualFollowers',
90
+ operation_type='query',
91
+ document='query GetMutualFollowers($accountId: ID!, $cursor: String, $limit: Int) {\n getMutualFollowers(accountId: $accountId, cursor: $cursor, limit: $limit) {\n ...ProfileConnectionFields\n }\n}\n\nfragment BlockStatusInfoFields on BlockStatusInfo {\n blockStatus\n isBlocked\n}\n\nfragment PostCollectionReferenceFields on PostCollection {\n id\n authorID\n coverMediaID\n createdAt\n description\n followLevel\n postCount\n title\n updatedAt\n}\n\nfragment ProfileFollowStatusFields on ProfileFollowStatus {\n followingLevel\n isFollowedBy\n isFollowing\n}\n\nfragment AspectRatioFields on AspectRatio {\n numerator\n denominator\n}\n\nfragment MediaFileMetadataFields on MediaFileMetadata {\n id\n mediaId\n profile\n contentType\n url\n}\n\nfragment MediaMetadataFields on MediaMetadata {\n id\n accountID\n aspectRatio {\n ...AspectRatioFields\n }\n blurHash\n durationMs\n files {\n ...MediaFileMetadataFields\n }\n status\n type\n}\n\nfragment ProfileReferenceFields on Profile {\n id\n username\n displayName\n profileEmoji\n profileMediaId\n}\n\nfragment ProfileTagFields on ProfileTag {\n id\n name\n memberCount\n AuthorID\n Author {\n ...ProfileReferenceFields\n }\n}\n\nfragment ProfileFields on Profile {\n id\n username\n displayName\n bio\n joinedAt\n followerCount\n followingCount\n preferInteractionType\n profileEmoji\n profileMediaId\n viewerId\n blockingStatus {\n ...BlockStatusInfoFields\n }\n pinnedPostCollectionId\n pinnedPostCollection {\n ...PostCollectionReferenceFields\n }\n profileFollowStatus {\n ...ProfileFollowStatusFields\n }\n profileMedia {\n ...MediaMetadataFields\n }\n tags {\n ...ProfileTagFields\n }\n}\n\nfragment PageInfoFields on PageInfo {\n endCursor\n hasNextPage\n totalCount\n}\n\nfragment ProfileConnectionFields on ProfileConnection {\n edges {\n ...ProfileFields\n }\n pageInfo {\n ...PageInfoFields\n }\n}',
92
+ variable_map={'accountId': 'accountId', 'account_id': 'accountId', 'cursor': 'cursor', 'limit': 'limit'},
93
+ ),
94
+ 'get_my_post_collections': OperationSpec(
95
+ operation_name='GetMyPostCollections',
96
+ operation_type='query',
97
+ document='query GetMyPostCollections($cursor: String, $limit: Int) {\n getMyPostCollections(cursor: $cursor, limit: $limit) {\n ...PostCollectionConnectionFields\n }\n}\n\nfragment ProfileReferenceFields on Profile {\n id\n username\n displayName\n profileEmoji\n profileMediaId\n}\n\nfragment AspectRatioFields on AspectRatio {\n numerator\n denominator\n}\n\nfragment MediaFileMetadataFields on MediaFileMetadata {\n id\n mediaId\n profile\n contentType\n url\n}\n\nfragment MediaMetadataFields on MediaMetadata {\n id\n accountID\n aspectRatio {\n ...AspectRatioFields\n }\n blurHash\n durationMs\n files {\n ...MediaFileMetadataFields\n }\n status\n type\n}\n\nfragment PostCollectionFields on PostCollection {\n id\n authorID\n coverMediaID\n createdAt\n description\n followLevel\n postCount\n title\n updatedAt\n author {\n ...ProfileReferenceFields\n }\n coverMedia {\n ...MediaMetadataFields\n }\n}\n\nfragment PageInfoFields on PageInfo {\n endCursor\n hasNextPage\n totalCount\n}\n\nfragment PostCollectionConnectionFields on PostCollectionConnection {\n edges {\n ...PostCollectionFields\n }\n pageInfo {\n ...PageInfoFields\n }\n}',
98
+ variable_map={'cursor': 'cursor', 'limit': 'limit'},
99
+ ),
100
+ 'get_notifications': OperationSpec(
101
+ operation_name='GetNotifications',
102
+ operation_type='query',
103
+ document='query GetNotifications($cursor: String, $filter: NotificationFilterInput, $limit: Int = 20) {\n getNotifications(cursor: $cursor, filter: $filter, limit: $limit) {\n ...NotificationConnectionFields\n }\n}\n\nfragment ReactionTypeFields on ReactionType {\n emojiValue\n nativeValue\n}\n\nfragment PostReferenceFields on Post {\n id\n authorID\n content\n createdAt\n parentPostId\n commentCount\n}\n\nfragment PostCollectionReferenceFields on PostCollection {\n id\n authorID\n coverMediaID\n createdAt\n description\n followLevel\n postCount\n title\n updatedAt\n}\n\nfragment ProfileReferenceFields on Profile {\n id\n username\n displayName\n profileEmoji\n profileMediaId\n}\n\nfragment NotificationFields on Notification {\n id\n createdAt\n isRead\n message\n type\n relatedPostID\n relatedPostCollectionID\n sourceProfileID\n targetProfileID\n reaction {\n ...ReactionTypeFields\n }\n relatedPost {\n ...PostReferenceFields\n }\n relatedPostCollection {\n ...PostCollectionReferenceFields\n }\n sourceProfile {\n ...ProfileReferenceFields\n }\n targetProfile {\n ...ProfileReferenceFields\n }\n}\n\nfragment PageInfoFields on PageInfo {\n endCursor\n hasNextPage\n totalCount\n}\n\nfragment NotificationConnectionFields on NotificationConnection {\n edges {\n ...NotificationFields\n }\n pageInfo {\n ...PageInfoFields\n }\n}',
104
+ variable_map={'cursor': 'cursor', 'filter': 'filter', 'limit': 'limit'},
105
+ ),
106
+ 'get_popular_posts': OperationSpec(
107
+ operation_name='GetPopularPosts',
108
+ operation_type='query',
109
+ document='query GetPopularPosts($cursor: String, $language: String, $limit: Int = 20) {\n getPopularPosts(cursor: $cursor, language: $language, limit: $limit) {\n ...FeedPostConnectionFields\n }\n}\n\nfragment ProfileReferenceFields on Profile {\n id\n username\n displayName\n profileEmoji\n profileMediaId\n}\n\nfragment AttachmentIDFields on AttachmentID {\n type\n embeddedCollectionId\n embeddedPostId\n embeddedProfileId\n linkUrl\n mediaId\n}\n\nfragment LinkPreviewFields on LinkPreview {\n Url\n canonicalUrl\n resourceType\n summary\n thumbnailUrl\n title\n}\n\nfragment AspectRatioFields on AspectRatio {\n numerator\n denominator\n}\n\nfragment MediaFileMetadataFields on MediaFileMetadata {\n id\n mediaId\n profile\n contentType\n url\n}\n\nfragment MediaMetadataFields on MediaMetadata {\n id\n accountID\n aspectRatio {\n ...AspectRatioFields\n }\n blurHash\n durationMs\n files {\n ...MediaFileMetadataFields\n }\n status\n type\n}\n\nfragment PostReferenceFields on Post {\n id\n authorID\n content\n createdAt\n parentPostId\n commentCount\n}\n\nfragment PostCollectionReferenceFields on PostCollection {\n id\n authorID\n coverMediaID\n createdAt\n description\n followLevel\n postCount\n title\n updatedAt\n}\n\nfragment AttachmentFields on Attachment {\n type\n linkPreview {\n ...LinkPreviewFields\n }\n media {\n ...MediaMetadataFields\n }\n embeddedProfile {\n ...ProfileReferenceFields\n }\n embeddedPost {\n ...PostReferenceFields\n }\n embeddedCollection {\n ...PostCollectionReferenceFields\n }\n}\n\nfragment PostOperationPermissionFields on PostOperationPermission {\n canComment\n canReact\n}\n\nfragment PostVisibilityFields on PostVisibility {\n policy\n profileTags\n pushPolicy\n}\n\nfragment PostOptionsFields on PostOptions {\n commentPolicy\n copyPolicy\n reactionPolicy\n postVisibility {\n ...PostVisibilityFields\n }\n}\n\nfragment ReactionTypeFields on ReactionType {\n emojiValue\n nativeValue\n}\n\nfragment ReactionSummaryFields on ReactionSummary {\n count\n isReactedByViewer\n type {\n ...ReactionTypeFields\n }\n}\n\nfragment PostReactionsConnectionFields on PostReactionsConnection {\n postId\n queryLimit\n remainingCount\n viewerId\n reactions {\n ...ReactionSummaryFields\n }\n}\n\nfragment PostFields on Post {\n id\n authorID\n content\n createdAt\n parentPostId\n commentCount\n leafAncestorIds\n rootAncestorIds\n author {\n ...ProfileReferenceFields\n }\n attachmentIds {\n ...AttachmentIDFields\n }\n attachments {\n ...AttachmentFields\n }\n postCollections {\n ...PostCollectionReferenceFields\n }\n postOperationPermission {\n ...PostOperationPermissionFields\n }\n postOptions {\n ...PostOptionsFields\n }\n reactions(first: 20) {\n ...PostReactionsConnectionFields\n }\n}\n\nfragment FeedPostEdgeFields on FeedPostEdge {\n id\n post {\n ...PostFields\n }\n}\n\nfragment PageInfoFields on PageInfo {\n endCursor\n hasNextPage\n totalCount\n}\n\nfragment FeedPostConnectionFields on FeedPostConnection {\n edges {\n ...FeedPostEdgeFields\n }\n pageInfo {\n ...PageInfoFields\n }\n}',
110
+ variable_map={'cursor': 'cursor', 'language': 'language', 'limit': 'limit'},
111
+ ),
112
+ 'get_post': OperationSpec(
113
+ operation_name='GetPost',
114
+ operation_type='query',
115
+ document='query GetPost($postId: ID!) {\n getPost(postId: $postId) {\n ...PostFields\n }\n}\n\nfragment ProfileReferenceFields on Profile {\n id\n username\n displayName\n profileEmoji\n profileMediaId\n}\n\nfragment AttachmentIDFields on AttachmentID {\n type\n embeddedCollectionId\n embeddedPostId\n embeddedProfileId\n linkUrl\n mediaId\n}\n\nfragment LinkPreviewFields on LinkPreview {\n Url\n canonicalUrl\n resourceType\n summary\n thumbnailUrl\n title\n}\n\nfragment AspectRatioFields on AspectRatio {\n numerator\n denominator\n}\n\nfragment MediaFileMetadataFields on MediaFileMetadata {\n id\n mediaId\n profile\n contentType\n url\n}\n\nfragment MediaMetadataFields on MediaMetadata {\n id\n accountID\n aspectRatio {\n ...AspectRatioFields\n }\n blurHash\n durationMs\n files {\n ...MediaFileMetadataFields\n }\n status\n type\n}\n\nfragment PostReferenceFields on Post {\n id\n authorID\n content\n createdAt\n parentPostId\n commentCount\n}\n\nfragment PostCollectionReferenceFields on PostCollection {\n id\n authorID\n coverMediaID\n createdAt\n description\n followLevel\n postCount\n title\n updatedAt\n}\n\nfragment AttachmentFields on Attachment {\n type\n linkPreview {\n ...LinkPreviewFields\n }\n media {\n ...MediaMetadataFields\n }\n embeddedProfile {\n ...ProfileReferenceFields\n }\n embeddedPost {\n ...PostReferenceFields\n }\n embeddedCollection {\n ...PostCollectionReferenceFields\n }\n}\n\nfragment PostOperationPermissionFields on PostOperationPermission {\n canComment\n canReact\n}\n\nfragment PostVisibilityFields on PostVisibility {\n policy\n profileTags\n pushPolicy\n}\n\nfragment PostOptionsFields on PostOptions {\n commentPolicy\n copyPolicy\n reactionPolicy\n postVisibility {\n ...PostVisibilityFields\n }\n}\n\nfragment ReactionTypeFields on ReactionType {\n emojiValue\n nativeValue\n}\n\nfragment ReactionSummaryFields on ReactionSummary {\n count\n isReactedByViewer\n type {\n ...ReactionTypeFields\n }\n}\n\nfragment PostReactionsConnectionFields on PostReactionsConnection {\n postId\n queryLimit\n remainingCount\n viewerId\n reactions {\n ...ReactionSummaryFields\n }\n}\n\nfragment PostFields on Post {\n id\n authorID\n content\n createdAt\n parentPostId\n commentCount\n leafAncestorIds\n rootAncestorIds\n author {\n ...ProfileReferenceFields\n }\n attachmentIds {\n ...AttachmentIDFields\n }\n attachments {\n ...AttachmentFields\n }\n postCollections {\n ...PostCollectionReferenceFields\n }\n postOperationPermission {\n ...PostOperationPermissionFields\n }\n postOptions {\n ...PostOptionsFields\n }\n reactions(first: 20) {\n ...PostReactionsConnectionFields\n }\n}',
116
+ variable_map={'postId': 'postId', 'post_id': 'postId'},
117
+ ),
118
+ 'get_post_collection': OperationSpec(
119
+ operation_name='GetPostCollection',
120
+ operation_type='query',
121
+ document='query GetPostCollection($id: ID!) {\n getPostCollection(id: $id) {\n ...PostCollectionFields\n }\n}\n\nfragment ProfileReferenceFields on Profile {\n id\n username\n displayName\n profileEmoji\n profileMediaId\n}\n\nfragment AspectRatioFields on AspectRatio {\n numerator\n denominator\n}\n\nfragment MediaFileMetadataFields on MediaFileMetadata {\n id\n mediaId\n profile\n contentType\n url\n}\n\nfragment MediaMetadataFields on MediaMetadata {\n id\n accountID\n aspectRatio {\n ...AspectRatioFields\n }\n blurHash\n durationMs\n files {\n ...MediaFileMetadataFields\n }\n status\n type\n}\n\nfragment PostCollectionFields on PostCollection {\n id\n authorID\n coverMediaID\n createdAt\n description\n followLevel\n postCount\n title\n updatedAt\n author {\n ...ProfileReferenceFields\n }\n coverMedia {\n ...MediaMetadataFields\n }\n}',
122
+ variable_map={'id': 'id'},
123
+ ),
124
+ 'get_post_collections_by_author': OperationSpec(
125
+ operation_name='GetPostCollectionsByAuthor',
126
+ operation_type='query',
127
+ document='query GetPostCollectionsByAuthor($authorID: ID!, $cursor: String, $limit: Int) {\n getPostCollectionsByAuthor(authorID: $authorID, cursor: $cursor, limit: $limit) {\n ...PostCollectionConnectionFields\n }\n}\n\nfragment ProfileReferenceFields on Profile {\n id\n username\n displayName\n profileEmoji\n profileMediaId\n}\n\nfragment AspectRatioFields on AspectRatio {\n numerator\n denominator\n}\n\nfragment MediaFileMetadataFields on MediaFileMetadata {\n id\n mediaId\n profile\n contentType\n url\n}\n\nfragment MediaMetadataFields on MediaMetadata {\n id\n accountID\n aspectRatio {\n ...AspectRatioFields\n }\n blurHash\n durationMs\n files {\n ...MediaFileMetadataFields\n }\n status\n type\n}\n\nfragment PostCollectionFields on PostCollection {\n id\n authorID\n coverMediaID\n createdAt\n description\n followLevel\n postCount\n title\n updatedAt\n author {\n ...ProfileReferenceFields\n }\n coverMedia {\n ...MediaMetadataFields\n }\n}\n\nfragment PageInfoFields on PageInfo {\n endCursor\n hasNextPage\n totalCount\n}\n\nfragment PostCollectionConnectionFields on PostCollectionConnection {\n edges {\n ...PostCollectionFields\n }\n pageInfo {\n ...PageInfoFields\n }\n}',
128
+ variable_map={'authorID': 'authorID', 'author_id': 'authorID', 'cursor': 'cursor', 'limit': 'limit'},
129
+ ),
130
+ 'get_post_draft': OperationSpec(
131
+ operation_name='GetPostDraft',
132
+ operation_type='query',
133
+ document='query GetPostDraft($id: ID!) {\n getPostDraft(id: $id) {\n ...PostDraftFields\n }\n}\n\nfragment AttachmentIDFields on AttachmentID {\n type\n embeddedCollectionId\n embeddedPostId\n embeddedProfileId\n linkUrl\n mediaId\n}\n\nfragment LinkPreviewFields on LinkPreview {\n Url\n canonicalUrl\n resourceType\n summary\n thumbnailUrl\n title\n}\n\nfragment AspectRatioFields on AspectRatio {\n numerator\n denominator\n}\n\nfragment MediaFileMetadataFields on MediaFileMetadata {\n id\n mediaId\n profile\n contentType\n url\n}\n\nfragment MediaMetadataFields on MediaMetadata {\n id\n accountID\n aspectRatio {\n ...AspectRatioFields\n }\n blurHash\n durationMs\n files {\n ...MediaFileMetadataFields\n }\n status\n type\n}\n\nfragment ProfileReferenceFields on Profile {\n id\n username\n displayName\n profileEmoji\n profileMediaId\n}\n\nfragment PostReferenceFields on Post {\n id\n authorID\n content\n createdAt\n parentPostId\n commentCount\n}\n\nfragment PostCollectionReferenceFields on PostCollection {\n id\n authorID\n coverMediaID\n createdAt\n description\n followLevel\n postCount\n title\n updatedAt\n}\n\nfragment AttachmentFields on Attachment {\n type\n linkPreview {\n ...LinkPreviewFields\n }\n media {\n ...MediaMetadataFields\n }\n embeddedProfile {\n ...ProfileReferenceFields\n }\n embeddedPost {\n ...PostReferenceFields\n }\n embeddedCollection {\n ...PostCollectionReferenceFields\n }\n}\n\nfragment PostVisibilityFields on PostVisibility {\n policy\n profileTags\n pushPolicy\n}\n\nfragment PostOptionsFields on PostOptions {\n commentPolicy\n copyPolicy\n reactionPolicy\n postVisibility {\n ...PostVisibilityFields\n }\n}\n\nfragment MonoPostDraftFields on MonoPostDraft {\n content\n attachmentIds {\n ...AttachmentIDFields\n }\n attachments {\n ...AttachmentFields\n }\n postCollectionIds\n postCollections {\n ...PostCollectionReferenceFields\n }\n postOptions {\n ...PostOptionsFields\n }\n}\n\nfragment PostDraftFields on PostDraft {\n id\n createdAt\n scheduledAt\n updatedAt\n postRequests {\n ...MonoPostDraftFields\n }\n}',
134
+ variable_map={'id': 'id'},
135
+ ),
136
+ 'get_post_drafts': OperationSpec(
137
+ operation_name='GetPostDrafts',
138
+ operation_type='query',
139
+ document='query GetPostDrafts($cursor: String, $filter: PostDraftFilterInput, $limit: Int = 20) {\n getPostDrafts(cursor: $cursor, filter: $filter, limit: $limit) {\n ...PostDraftConnectionFields\n }\n}\n\nfragment AttachmentIDFields on AttachmentID {\n type\n embeddedCollectionId\n embeddedPostId\n embeddedProfileId\n linkUrl\n mediaId\n}\n\nfragment LinkPreviewFields on LinkPreview {\n Url\n canonicalUrl\n resourceType\n summary\n thumbnailUrl\n title\n}\n\nfragment AspectRatioFields on AspectRatio {\n numerator\n denominator\n}\n\nfragment MediaFileMetadataFields on MediaFileMetadata {\n id\n mediaId\n profile\n contentType\n url\n}\n\nfragment MediaMetadataFields on MediaMetadata {\n id\n accountID\n aspectRatio {\n ...AspectRatioFields\n }\n blurHash\n durationMs\n files {\n ...MediaFileMetadataFields\n }\n status\n type\n}\n\nfragment ProfileReferenceFields on Profile {\n id\n username\n displayName\n profileEmoji\n profileMediaId\n}\n\nfragment PostReferenceFields on Post {\n id\n authorID\n content\n createdAt\n parentPostId\n commentCount\n}\n\nfragment PostCollectionReferenceFields on PostCollection {\n id\n authorID\n coverMediaID\n createdAt\n description\n followLevel\n postCount\n title\n updatedAt\n}\n\nfragment AttachmentFields on Attachment {\n type\n linkPreview {\n ...LinkPreviewFields\n }\n media {\n ...MediaMetadataFields\n }\n embeddedProfile {\n ...ProfileReferenceFields\n }\n embeddedPost {\n ...PostReferenceFields\n }\n embeddedCollection {\n ...PostCollectionReferenceFields\n }\n}\n\nfragment PostVisibilityFields on PostVisibility {\n policy\n profileTags\n pushPolicy\n}\n\nfragment PostOptionsFields on PostOptions {\n commentPolicy\n copyPolicy\n reactionPolicy\n postVisibility {\n ...PostVisibilityFields\n }\n}\n\nfragment MonoPostDraftFields on MonoPostDraft {\n content\n attachmentIds {\n ...AttachmentIDFields\n }\n attachments {\n ...AttachmentFields\n }\n postCollectionIds\n postCollections {\n ...PostCollectionReferenceFields\n }\n postOptions {\n ...PostOptionsFields\n }\n}\n\nfragment PostDraftFields on PostDraft {\n id\n createdAt\n scheduledAt\n updatedAt\n postRequests {\n ...MonoPostDraftFields\n }\n}\n\nfragment PageInfoFields on PageInfo {\n endCursor\n hasNextPage\n totalCount\n}\n\nfragment PostDraftConnectionFields on PostDraftConnection {\n edges {\n ...PostDraftFields\n }\n pageInfo {\n ...PageInfoFields\n }\n}',
140
+ variable_map={'cursor': 'cursor', 'filter': 'filter', 'limit': 'limit'},
141
+ ),
142
+ 'get_post_drafts_count': OperationSpec(
143
+ operation_name='GetPostDraftsCount',
144
+ operation_type='query',
145
+ document='query GetPostDraftsCount($filter: PostDraftFilterInput) {\n getPostDraftsCount(filter: $filter)\n}',
146
+ variable_map={'filter': 'filter'},
147
+ ),
148
+ 'get_post_reaction_details': OperationSpec(
149
+ operation_name='GetPostReactionDetails',
150
+ operation_type='query',
151
+ document='query GetPostReactionDetails($cursor: String, $limit: Int = 20, $postId: ID!, $type: ReactionTypeInput) {\n getPostReactionDetails(\n cursor: $cursor\n limit: $limit\n postId: $postId\n type: $type\n ) {\n ...PostReactionDetailRecordConnectionFields\n }\n}\n\nfragment PageInfoFields on PageInfo {\n endCursor\n hasNextPage\n totalCount\n}\n\nfragment ProfileReferenceFields on Profile {\n id\n username\n displayName\n profileEmoji\n profileMediaId\n}\n\nfragment ReactionTypeFields on ReactionType {\n emojiValue\n nativeValue\n}\n\nfragment ReactionDetailRecordFields on ReactionDetailRecord {\n accountId\n createdAt\n profile {\n ...ProfileReferenceFields\n }\n type {\n ...ReactionTypeFields\n }\n}\n\nfragment PostReactionDetailRecordConnectionFields on PostReactionDetailRecordConnection {\n pageInfo {\n ...PageInfoFields\n }\n reactionRecords {\n ...ReactionDetailRecordFields\n }\n}',
152
+ variable_map={'cursor': 'cursor', 'limit': 'limit', 'postId': 'postId', 'post_id': 'postId', 'type': 'type'},
153
+ ),
154
+ 'get_post_reactions': OperationSpec(
155
+ operation_name='GetPostReactions',
156
+ operation_type='query',
157
+ document='query GetPostReactions($first: Int, $postId: ID!) {\n getPostReactions(first: $first, postId: $postId) {\n ...PostReactionsConnectionFields\n }\n}\n\nfragment ReactionTypeFields on ReactionType {\n emojiValue\n nativeValue\n}\n\nfragment ReactionSummaryFields on ReactionSummary {\n count\n isReactedByViewer\n type {\n ...ReactionTypeFields\n }\n}\n\nfragment PostReactionsConnectionFields on PostReactionsConnection {\n postId\n queryLimit\n remainingCount\n viewerId\n reactions {\n ...ReactionSummaryFields\n }\n}',
158
+ variable_map={'first': 'first', 'postId': 'postId', 'post_id': 'postId'},
159
+ ),
160
+ 'get_profile_tag_by_id': OperationSpec(
161
+ operation_name='GetProfileTagById',
162
+ operation_type='query',
163
+ document='query GetProfileTagById($id: ID!) {\n getProfileTagById(id: $id) {\n ...ProfileTagFields\n }\n}\n\nfragment ProfileReferenceFields on Profile {\n id\n username\n displayName\n profileEmoji\n profileMediaId\n}\n\nfragment ProfileTagFields on ProfileTag {\n id\n name\n memberCount\n AuthorID\n Author {\n ...ProfileReferenceFields\n }\n}',
164
+ variable_map={'id': 'id'},
165
+ ),
166
+ 'get_profile_tag_profiles': OperationSpec(
167
+ operation_name='GetProfileTagProfiles',
168
+ operation_type='query',
169
+ document='query GetProfileTagProfiles($cursor: String, $limit: Int, $tagId: ID!) {\n getProfileTagProfiles(cursor: $cursor, limit: $limit, tagId: $tagId) {\n ...ProfileConnectionFields\n }\n}\n\nfragment BlockStatusInfoFields on BlockStatusInfo {\n blockStatus\n isBlocked\n}\n\nfragment PostCollectionReferenceFields on PostCollection {\n id\n authorID\n coverMediaID\n createdAt\n description\n followLevel\n postCount\n title\n updatedAt\n}\n\nfragment ProfileFollowStatusFields on ProfileFollowStatus {\n followingLevel\n isFollowedBy\n isFollowing\n}\n\nfragment AspectRatioFields on AspectRatio {\n numerator\n denominator\n}\n\nfragment MediaFileMetadataFields on MediaFileMetadata {\n id\n mediaId\n profile\n contentType\n url\n}\n\nfragment MediaMetadataFields on MediaMetadata {\n id\n accountID\n aspectRatio {\n ...AspectRatioFields\n }\n blurHash\n durationMs\n files {\n ...MediaFileMetadataFields\n }\n status\n type\n}\n\nfragment ProfileReferenceFields on Profile {\n id\n username\n displayName\n profileEmoji\n profileMediaId\n}\n\nfragment ProfileTagFields on ProfileTag {\n id\n name\n memberCount\n AuthorID\n Author {\n ...ProfileReferenceFields\n }\n}\n\nfragment ProfileFields on Profile {\n id\n username\n displayName\n bio\n joinedAt\n followerCount\n followingCount\n preferInteractionType\n profileEmoji\n profileMediaId\n viewerId\n blockingStatus {\n ...BlockStatusInfoFields\n }\n pinnedPostCollectionId\n pinnedPostCollection {\n ...PostCollectionReferenceFields\n }\n profileFollowStatus {\n ...ProfileFollowStatusFields\n }\n profileMedia {\n ...MediaMetadataFields\n }\n tags {\n ...ProfileTagFields\n }\n}\n\nfragment PageInfoFields on PageInfo {\n endCursor\n hasNextPage\n totalCount\n}\n\nfragment ProfileConnectionFields on ProfileConnection {\n edges {\n ...ProfileFields\n }\n pageInfo {\n ...PageInfoFields\n }\n}',
170
+ variable_map={'cursor': 'cursor', 'limit': 'limit', 'tagId': 'tagId', 'tag_id': 'tagId'},
171
+ ),
172
+ 'get_reacted_posts': OperationSpec(
173
+ operation_name='GetReactedPosts',
174
+ operation_type='query',
175
+ document='query GetReactedPosts($cursor: String, $limit: Int = 20, $reactionType: ReactionTypeInput!) {\n getReactedPosts(cursor: $cursor, limit: $limit, reactionType: $reactionType) {\n ...FeedPostConnectionFields\n }\n}\n\nfragment ProfileReferenceFields on Profile {\n id\n username\n displayName\n profileEmoji\n profileMediaId\n}\n\nfragment AttachmentIDFields on AttachmentID {\n type\n embeddedCollectionId\n embeddedPostId\n embeddedProfileId\n linkUrl\n mediaId\n}\n\nfragment LinkPreviewFields on LinkPreview {\n Url\n canonicalUrl\n resourceType\n summary\n thumbnailUrl\n title\n}\n\nfragment AspectRatioFields on AspectRatio {\n numerator\n denominator\n}\n\nfragment MediaFileMetadataFields on MediaFileMetadata {\n id\n mediaId\n profile\n contentType\n url\n}\n\nfragment MediaMetadataFields on MediaMetadata {\n id\n accountID\n aspectRatio {\n ...AspectRatioFields\n }\n blurHash\n durationMs\n files {\n ...MediaFileMetadataFields\n }\n status\n type\n}\n\nfragment PostReferenceFields on Post {\n id\n authorID\n content\n createdAt\n parentPostId\n commentCount\n}\n\nfragment PostCollectionReferenceFields on PostCollection {\n id\n authorID\n coverMediaID\n createdAt\n description\n followLevel\n postCount\n title\n updatedAt\n}\n\nfragment AttachmentFields on Attachment {\n type\n linkPreview {\n ...LinkPreviewFields\n }\n media {\n ...MediaMetadataFields\n }\n embeddedProfile {\n ...ProfileReferenceFields\n }\n embeddedPost {\n ...PostReferenceFields\n }\n embeddedCollection {\n ...PostCollectionReferenceFields\n }\n}\n\nfragment PostOperationPermissionFields on PostOperationPermission {\n canComment\n canReact\n}\n\nfragment PostVisibilityFields on PostVisibility {\n policy\n profileTags\n pushPolicy\n}\n\nfragment PostOptionsFields on PostOptions {\n commentPolicy\n copyPolicy\n reactionPolicy\n postVisibility {\n ...PostVisibilityFields\n }\n}\n\nfragment ReactionTypeFields on ReactionType {\n emojiValue\n nativeValue\n}\n\nfragment ReactionSummaryFields on ReactionSummary {\n count\n isReactedByViewer\n type {\n ...ReactionTypeFields\n }\n}\n\nfragment PostReactionsConnectionFields on PostReactionsConnection {\n postId\n queryLimit\n remainingCount\n viewerId\n reactions {\n ...ReactionSummaryFields\n }\n}\n\nfragment PostFields on Post {\n id\n authorID\n content\n createdAt\n parentPostId\n commentCount\n leafAncestorIds\n rootAncestorIds\n author {\n ...ProfileReferenceFields\n }\n attachmentIds {\n ...AttachmentIDFields\n }\n attachments {\n ...AttachmentFields\n }\n postCollections {\n ...PostCollectionReferenceFields\n }\n postOperationPermission {\n ...PostOperationPermissionFields\n }\n postOptions {\n ...PostOptionsFields\n }\n reactions(first: 20) {\n ...PostReactionsConnectionFields\n }\n}\n\nfragment FeedPostEdgeFields on FeedPostEdge {\n id\n post {\n ...PostFields\n }\n}\n\nfragment PageInfoFields on PageInfo {\n endCursor\n hasNextPage\n totalCount\n}\n\nfragment FeedPostConnectionFields on FeedPostConnection {\n edges {\n ...FeedPostEdgeFields\n }\n pageInfo {\n ...PageInfoFields\n }\n}',
176
+ variable_map={'cursor': 'cursor', 'limit': 'limit', 'reactionType': 'reactionType', 'reaction_type': 'reactionType'},
177
+ ),
178
+ 'get_topic_feed_posts': OperationSpec(
179
+ operation_name='GetTopicFeedPosts',
180
+ operation_type='query',
181
+ document='query GetTopicFeedPosts($cursor: String, $limit: Int = 20, $topicId: ID!) {\n getTopicFeedPosts(cursor: $cursor, limit: $limit, topicId: $topicId) {\n ...PostConnectionFields\n }\n}\n\nfragment ProfileReferenceFields on Profile {\n id\n username\n displayName\n profileEmoji\n profileMediaId\n}\n\nfragment AttachmentIDFields on AttachmentID {\n type\n embeddedCollectionId\n embeddedPostId\n embeddedProfileId\n linkUrl\n mediaId\n}\n\nfragment LinkPreviewFields on LinkPreview {\n Url\n canonicalUrl\n resourceType\n summary\n thumbnailUrl\n title\n}\n\nfragment AspectRatioFields on AspectRatio {\n numerator\n denominator\n}\n\nfragment MediaFileMetadataFields on MediaFileMetadata {\n id\n mediaId\n profile\n contentType\n url\n}\n\nfragment MediaMetadataFields on MediaMetadata {\n id\n accountID\n aspectRatio {\n ...AspectRatioFields\n }\n blurHash\n durationMs\n files {\n ...MediaFileMetadataFields\n }\n status\n type\n}\n\nfragment PostReferenceFields on Post {\n id\n authorID\n content\n createdAt\n parentPostId\n commentCount\n}\n\nfragment PostCollectionReferenceFields on PostCollection {\n id\n authorID\n coverMediaID\n createdAt\n description\n followLevel\n postCount\n title\n updatedAt\n}\n\nfragment AttachmentFields on Attachment {\n type\n linkPreview {\n ...LinkPreviewFields\n }\n media {\n ...MediaMetadataFields\n }\n embeddedProfile {\n ...ProfileReferenceFields\n }\n embeddedPost {\n ...PostReferenceFields\n }\n embeddedCollection {\n ...PostCollectionReferenceFields\n }\n}\n\nfragment PostOperationPermissionFields on PostOperationPermission {\n canComment\n canReact\n}\n\nfragment PostVisibilityFields on PostVisibility {\n policy\n profileTags\n pushPolicy\n}\n\nfragment PostOptionsFields on PostOptions {\n commentPolicy\n copyPolicy\n reactionPolicy\n postVisibility {\n ...PostVisibilityFields\n }\n}\n\nfragment ReactionTypeFields on ReactionType {\n emojiValue\n nativeValue\n}\n\nfragment ReactionSummaryFields on ReactionSummary {\n count\n isReactedByViewer\n type {\n ...ReactionTypeFields\n }\n}\n\nfragment PostReactionsConnectionFields on PostReactionsConnection {\n postId\n queryLimit\n remainingCount\n viewerId\n reactions {\n ...ReactionSummaryFields\n }\n}\n\nfragment PostFields on Post {\n id\n authorID\n content\n createdAt\n parentPostId\n commentCount\n leafAncestorIds\n rootAncestorIds\n author {\n ...ProfileReferenceFields\n }\n attachmentIds {\n ...AttachmentIDFields\n }\n attachments {\n ...AttachmentFields\n }\n postCollections {\n ...PostCollectionReferenceFields\n }\n postOperationPermission {\n ...PostOperationPermissionFields\n }\n postOptions {\n ...PostOptionsFields\n }\n reactions(first: 20) {\n ...PostReactionsConnectionFields\n }\n}\n\nfragment PageInfoFields on PageInfo {\n endCursor\n hasNextPage\n totalCount\n}\n\nfragment PostConnectionFields on PostConnection {\n edges {\n ...PostFields\n }\n pageInfo {\n ...PageInfoFields\n }\n}',
182
+ variable_map={'cursor': 'cursor', 'limit': 'limit', 'topicId': 'topicId', 'topic_id': 'topicId'},
183
+ ),
184
+ 'get_topics': OperationSpec(
185
+ operation_name='GetTopics',
186
+ operation_type='query',
187
+ document='query GetTopics($limit: Int = 20) {\n getTopics(limit: $limit) {\n ...TopicFields\n }\n}\n\nfragment TopicFields on Topic {\n id\n emoji\n title\n}',
188
+ variable_map={'limit': 'limit'},
189
+ ),
190
+ 'get_unread_notification_count': OperationSpec(
191
+ operation_name='GetUnreadNotificationCount',
192
+ operation_type='query',
193
+ document='query GetUnreadNotificationCount {\n getUnreadNotificationCount\n}',
194
+ variable_map={},
195
+ ),
196
+ 'get_user_posts': OperationSpec(
197
+ operation_name='GetUserPosts',
198
+ operation_type='query',
199
+ document='query GetUserPosts($accountId: ID!, $cursor: String, $limit: Int = 20, $postType: PostType = POST) {\n getUserPosts(\n accountId: $accountId\n cursor: $cursor\n limit: $limit\n postType: $postType\n ) {\n ...PostConnectionFields\n }\n}\n\nfragment ProfileReferenceFields on Profile {\n id\n username\n displayName\n profileEmoji\n profileMediaId\n}\n\nfragment AttachmentIDFields on AttachmentID {\n type\n embeddedCollectionId\n embeddedPostId\n embeddedProfileId\n linkUrl\n mediaId\n}\n\nfragment LinkPreviewFields on LinkPreview {\n Url\n canonicalUrl\n resourceType\n summary\n thumbnailUrl\n title\n}\n\nfragment AspectRatioFields on AspectRatio {\n numerator\n denominator\n}\n\nfragment MediaFileMetadataFields on MediaFileMetadata {\n id\n mediaId\n profile\n contentType\n url\n}\n\nfragment MediaMetadataFields on MediaMetadata {\n id\n accountID\n aspectRatio {\n ...AspectRatioFields\n }\n blurHash\n durationMs\n files {\n ...MediaFileMetadataFields\n }\n status\n type\n}\n\nfragment PostReferenceFields on Post {\n id\n authorID\n content\n createdAt\n parentPostId\n commentCount\n}\n\nfragment PostCollectionReferenceFields on PostCollection {\n id\n authorID\n coverMediaID\n createdAt\n description\n followLevel\n postCount\n title\n updatedAt\n}\n\nfragment AttachmentFields on Attachment {\n type\n linkPreview {\n ...LinkPreviewFields\n }\n media {\n ...MediaMetadataFields\n }\n embeddedProfile {\n ...ProfileReferenceFields\n }\n embeddedPost {\n ...PostReferenceFields\n }\n embeddedCollection {\n ...PostCollectionReferenceFields\n }\n}\n\nfragment PostOperationPermissionFields on PostOperationPermission {\n canComment\n canReact\n}\n\nfragment PostVisibilityFields on PostVisibility {\n policy\n profileTags\n pushPolicy\n}\n\nfragment PostOptionsFields on PostOptions {\n commentPolicy\n copyPolicy\n reactionPolicy\n postVisibility {\n ...PostVisibilityFields\n }\n}\n\nfragment ReactionTypeFields on ReactionType {\n emojiValue\n nativeValue\n}\n\nfragment ReactionSummaryFields on ReactionSummary {\n count\n isReactedByViewer\n type {\n ...ReactionTypeFields\n }\n}\n\nfragment PostReactionsConnectionFields on PostReactionsConnection {\n postId\n queryLimit\n remainingCount\n viewerId\n reactions {\n ...ReactionSummaryFields\n }\n}\n\nfragment PostFields on Post {\n id\n authorID\n content\n createdAt\n parentPostId\n commentCount\n leafAncestorIds\n rootAncestorIds\n author {\n ...ProfileReferenceFields\n }\n attachmentIds {\n ...AttachmentIDFields\n }\n attachments {\n ...AttachmentFields\n }\n postCollections {\n ...PostCollectionReferenceFields\n }\n postOperationPermission {\n ...PostOperationPermissionFields\n }\n postOptions {\n ...PostOptionsFields\n }\n reactions(first: 20) {\n ...PostReactionsConnectionFields\n }\n}\n\nfragment PageInfoFields on PageInfo {\n endCursor\n hasNextPage\n totalCount\n}\n\nfragment PostConnectionFields on PostConnection {\n edges {\n ...PostFields\n }\n pageInfo {\n ...PageInfoFields\n }\n}',
200
+ variable_map={'accountId': 'accountId', 'account_id': 'accountId', 'cursor': 'cursor', 'limit': 'limit', 'postType': 'postType', 'post_type': 'postType'},
201
+ ),
202
+ 'get_user_reactions': OperationSpec(
203
+ operation_name='GetUserReactions',
204
+ operation_type='query',
205
+ document='query GetUserReactions($cursor: String, $limit: Int = 20) {\n getUserReactions(cursor: $cursor, limit: $limit) {\n ...UserReactionsStatisticsConnectionFields\n }\n}\n\nfragment PageInfoFields on PageInfo {\n endCursor\n hasNextPage\n totalCount\n}\n\nfragment ReactionTypeFields on ReactionType {\n emojiValue\n nativeValue\n}\n\nfragment UserReactionStatisticsFields on UserReactionStatistics {\n count\n type {\n ...ReactionTypeFields\n }\n}\n\nfragment UserReactionsStatisticsConnectionFields on UserReactionsStatisticsConnection {\n pageInfo {\n ...PageInfoFields\n }\n reactions {\n ...UserReactionStatisticsFields\n }\n}',
206
+ variable_map={'cursor': 'cursor', 'limit': 'limit'},
207
+ ),
208
+ 'list_profile_tags': OperationSpec(
209
+ operation_name='ListProfileTags',
210
+ operation_type='query',
211
+ document='query ListProfileTags($cursor: String, $limit: Int) {\n listProfileTags(cursor: $cursor, limit: $limit) {\n ...ProfileTagConnectionFields\n }\n}\n\nfragment ProfileReferenceFields on Profile {\n id\n username\n displayName\n profileEmoji\n profileMediaId\n}\n\nfragment ProfileTagFields on ProfileTag {\n id\n name\n memberCount\n AuthorID\n Author {\n ...ProfileReferenceFields\n }\n}\n\nfragment PageInfoFields on PageInfo {\n endCursor\n hasNextPage\n totalCount\n}\n\nfragment ProfileTagConnectionFields on ProfileTagConnection {\n edges {\n ...ProfileTagFields\n }\n pageInfo {\n ...PageInfoFields\n }\n}',
212
+ variable_map={'cursor': 'cursor', 'limit': 'limit'},
213
+ ),
214
+ 'notification_received': OperationSpec(
215
+ operation_name='NotificationReceived',
216
+ operation_type='subscription',
217
+ document='subscription NotificationReceived {\n notificationReceived {\n ...NotificationFields\n }\n}\n\nfragment ReactionTypeFields on ReactionType {\n emojiValue\n nativeValue\n}\n\nfragment PostReferenceFields on Post {\n id\n authorID\n content\n createdAt\n parentPostId\n commentCount\n}\n\nfragment PostCollectionReferenceFields on PostCollection {\n id\n authorID\n coverMediaID\n createdAt\n description\n followLevel\n postCount\n title\n updatedAt\n}\n\nfragment ProfileReferenceFields on Profile {\n id\n username\n displayName\n profileEmoji\n profileMediaId\n}\n\nfragment NotificationFields on Notification {\n id\n createdAt\n isRead\n message\n type\n relatedPostID\n relatedPostCollectionID\n sourceProfileID\n targetProfileID\n reaction {\n ...ReactionTypeFields\n }\n relatedPost {\n ...PostReferenceFields\n }\n relatedPostCollection {\n ...PostCollectionReferenceFields\n }\n sourceProfile {\n ...ProfileReferenceFields\n }\n targetProfile {\n ...ProfileReferenceFields\n }\n}',
218
+ variable_map={},
219
+ ),
220
+ 'post_created_by_author': OperationSpec(
221
+ operation_name='PostCreatedByAuthor',
222
+ operation_type='subscription',
223
+ document='subscription PostCreatedByAuthor($authorId: ID!, $postType: PostType) {\n postCreatedByAuthor(authorId: $authorId, postType: $postType) {\n ...PostFields\n }\n}\n\nfragment ProfileReferenceFields on Profile {\n id\n username\n displayName\n profileEmoji\n profileMediaId\n}\n\nfragment AttachmentIDFields on AttachmentID {\n type\n embeddedCollectionId\n embeddedPostId\n embeddedProfileId\n linkUrl\n mediaId\n}\n\nfragment LinkPreviewFields on LinkPreview {\n Url\n canonicalUrl\n resourceType\n summary\n thumbnailUrl\n title\n}\n\nfragment AspectRatioFields on AspectRatio {\n numerator\n denominator\n}\n\nfragment MediaFileMetadataFields on MediaFileMetadata {\n id\n mediaId\n profile\n contentType\n url\n}\n\nfragment MediaMetadataFields on MediaMetadata {\n id\n accountID\n aspectRatio {\n ...AspectRatioFields\n }\n blurHash\n durationMs\n files {\n ...MediaFileMetadataFields\n }\n status\n type\n}\n\nfragment PostReferenceFields on Post {\n id\n authorID\n content\n createdAt\n parentPostId\n commentCount\n}\n\nfragment PostCollectionReferenceFields on PostCollection {\n id\n authorID\n coverMediaID\n createdAt\n description\n followLevel\n postCount\n title\n updatedAt\n}\n\nfragment AttachmentFields on Attachment {\n type\n linkPreview {\n ...LinkPreviewFields\n }\n media {\n ...MediaMetadataFields\n }\n embeddedProfile {\n ...ProfileReferenceFields\n }\n embeddedPost {\n ...PostReferenceFields\n }\n embeddedCollection {\n ...PostCollectionReferenceFields\n }\n}\n\nfragment PostOperationPermissionFields on PostOperationPermission {\n canComment\n canReact\n}\n\nfragment PostVisibilityFields on PostVisibility {\n policy\n profileTags\n pushPolicy\n}\n\nfragment PostOptionsFields on PostOptions {\n commentPolicy\n copyPolicy\n reactionPolicy\n postVisibility {\n ...PostVisibilityFields\n }\n}\n\nfragment ReactionTypeFields on ReactionType {\n emojiValue\n nativeValue\n}\n\nfragment ReactionSummaryFields on ReactionSummary {\n count\n isReactedByViewer\n type {\n ...ReactionTypeFields\n }\n}\n\nfragment PostReactionsConnectionFields on PostReactionsConnection {\n postId\n queryLimit\n remainingCount\n viewerId\n reactions {\n ...ReactionSummaryFields\n }\n}\n\nfragment PostFields on Post {\n id\n authorID\n content\n createdAt\n parentPostId\n commentCount\n leafAncestorIds\n rootAncestorIds\n author {\n ...ProfileReferenceFields\n }\n attachmentIds {\n ...AttachmentIDFields\n }\n attachments {\n ...AttachmentFields\n }\n postCollections {\n ...PostCollectionReferenceFields\n }\n postOperationPermission {\n ...PostOperationPermissionFields\n }\n postOptions {\n ...PostOptionsFields\n }\n reactions(first: 20) {\n ...PostReactionsConnectionFields\n }\n}',
224
+ variable_map={'authorId': 'authorId', 'author_id': 'authorId', 'postType': 'postType', 'post_type': 'postType'},
225
+ ),
226
+ 'post_created_in_collection': OperationSpec(
227
+ operation_name='PostCreatedInCollection',
228
+ operation_type='subscription',
229
+ document='subscription PostCreatedInCollection($postCollectionID: ID!) {\n postCreatedInCollection(postCollectionID: $postCollectionID) {\n ...PostFields\n }\n}\n\nfragment ProfileReferenceFields on Profile {\n id\n username\n displayName\n profileEmoji\n profileMediaId\n}\n\nfragment AttachmentIDFields on AttachmentID {\n type\n embeddedCollectionId\n embeddedPostId\n embeddedProfileId\n linkUrl\n mediaId\n}\n\nfragment LinkPreviewFields on LinkPreview {\n Url\n canonicalUrl\n resourceType\n summary\n thumbnailUrl\n title\n}\n\nfragment AspectRatioFields on AspectRatio {\n numerator\n denominator\n}\n\nfragment MediaFileMetadataFields on MediaFileMetadata {\n id\n mediaId\n profile\n contentType\n url\n}\n\nfragment MediaMetadataFields on MediaMetadata {\n id\n accountID\n aspectRatio {\n ...AspectRatioFields\n }\n blurHash\n durationMs\n files {\n ...MediaFileMetadataFields\n }\n status\n type\n}\n\nfragment PostReferenceFields on Post {\n id\n authorID\n content\n createdAt\n parentPostId\n commentCount\n}\n\nfragment PostCollectionReferenceFields on PostCollection {\n id\n authorID\n coverMediaID\n createdAt\n description\n followLevel\n postCount\n title\n updatedAt\n}\n\nfragment AttachmentFields on Attachment {\n type\n linkPreview {\n ...LinkPreviewFields\n }\n media {\n ...MediaMetadataFields\n }\n embeddedProfile {\n ...ProfileReferenceFields\n }\n embeddedPost {\n ...PostReferenceFields\n }\n embeddedCollection {\n ...PostCollectionReferenceFields\n }\n}\n\nfragment PostOperationPermissionFields on PostOperationPermission {\n canComment\n canReact\n}\n\nfragment PostVisibilityFields on PostVisibility {\n policy\n profileTags\n pushPolicy\n}\n\nfragment PostOptionsFields on PostOptions {\n commentPolicy\n copyPolicy\n reactionPolicy\n postVisibility {\n ...PostVisibilityFields\n }\n}\n\nfragment ReactionTypeFields on ReactionType {\n emojiValue\n nativeValue\n}\n\nfragment ReactionSummaryFields on ReactionSummary {\n count\n isReactedByViewer\n type {\n ...ReactionTypeFields\n }\n}\n\nfragment PostReactionsConnectionFields on PostReactionsConnection {\n postId\n queryLimit\n remainingCount\n viewerId\n reactions {\n ...ReactionSummaryFields\n }\n}\n\nfragment PostFields on Post {\n id\n authorID\n content\n createdAt\n parentPostId\n commentCount\n leafAncestorIds\n rootAncestorIds\n author {\n ...ProfileReferenceFields\n }\n attachmentIds {\n ...AttachmentIDFields\n }\n attachments {\n ...AttachmentFields\n }\n postCollections {\n ...PostCollectionReferenceFields\n }\n postOperationPermission {\n ...PostOperationPermissionFields\n }\n postOptions {\n ...PostOptionsFields\n }\n reactions(first: 20) {\n ...PostReactionsConnectionFields\n }\n}',
230
+ variable_map={'postCollectionID': 'postCollectionID', 'post_collection_id': 'postCollectionID'},
231
+ ),
232
+ 'post_deleted': OperationSpec(
233
+ operation_name='PostDeleted',
234
+ operation_type='subscription',
235
+ document='subscription PostDeleted($postId: ID!) {\n postDeleted(postId: $postId)\n}',
236
+ variable_map={'postId': 'postId', 'post_id': 'postId'},
237
+ ),
238
+ 'post_updated': OperationSpec(
239
+ operation_name='PostUpdated',
240
+ operation_type='subscription',
241
+ document='subscription PostUpdated($postId: ID!) {\n postUpdated(postId: $postId) {\n ...PostFields\n }\n}\n\nfragment ProfileReferenceFields on Profile {\n id\n username\n displayName\n profileEmoji\n profileMediaId\n}\n\nfragment AttachmentIDFields on AttachmentID {\n type\n embeddedCollectionId\n embeddedPostId\n embeddedProfileId\n linkUrl\n mediaId\n}\n\nfragment LinkPreviewFields on LinkPreview {\n Url\n canonicalUrl\n resourceType\n summary\n thumbnailUrl\n title\n}\n\nfragment AspectRatioFields on AspectRatio {\n numerator\n denominator\n}\n\nfragment MediaFileMetadataFields on MediaFileMetadata {\n id\n mediaId\n profile\n contentType\n url\n}\n\nfragment MediaMetadataFields on MediaMetadata {\n id\n accountID\n aspectRatio {\n ...AspectRatioFields\n }\n blurHash\n durationMs\n files {\n ...MediaFileMetadataFields\n }\n status\n type\n}\n\nfragment PostReferenceFields on Post {\n id\n authorID\n content\n createdAt\n parentPostId\n commentCount\n}\n\nfragment PostCollectionReferenceFields on PostCollection {\n id\n authorID\n coverMediaID\n createdAt\n description\n followLevel\n postCount\n title\n updatedAt\n}\n\nfragment AttachmentFields on Attachment {\n type\n linkPreview {\n ...LinkPreviewFields\n }\n media {\n ...MediaMetadataFields\n }\n embeddedProfile {\n ...ProfileReferenceFields\n }\n embeddedPost {\n ...PostReferenceFields\n }\n embeddedCollection {\n ...PostCollectionReferenceFields\n }\n}\n\nfragment PostOperationPermissionFields on PostOperationPermission {\n canComment\n canReact\n}\n\nfragment PostVisibilityFields on PostVisibility {\n policy\n profileTags\n pushPolicy\n}\n\nfragment PostOptionsFields on PostOptions {\n commentPolicy\n copyPolicy\n reactionPolicy\n postVisibility {\n ...PostVisibilityFields\n }\n}\n\nfragment ReactionTypeFields on ReactionType {\n emojiValue\n nativeValue\n}\n\nfragment ReactionSummaryFields on ReactionSummary {\n count\n isReactedByViewer\n type {\n ...ReactionTypeFields\n }\n}\n\nfragment PostReactionsConnectionFields on PostReactionsConnection {\n postId\n queryLimit\n remainingCount\n viewerId\n reactions {\n ...ReactionSummaryFields\n }\n}\n\nfragment PostFields on Post {\n id\n authorID\n content\n createdAt\n parentPostId\n commentCount\n leafAncestorIds\n rootAncestorIds\n author {\n ...ProfileReferenceFields\n }\n attachmentIds {\n ...AttachmentIDFields\n }\n attachments {\n ...AttachmentFields\n }\n postCollections {\n ...PostCollectionReferenceFields\n }\n postOperationPermission {\n ...PostOperationPermissionFields\n }\n postOptions {\n ...PostOptionsFields\n }\n reactions(first: 20) {\n ...PostReactionsConnectionFields\n }\n}',
242
+ variable_map={'postId': 'postId', 'post_id': 'postId'},
243
+ ),
244
+ 'reply_created_under_root_post': OperationSpec(
245
+ operation_name='ReplyCreatedUnderRootPost',
246
+ operation_type='subscription',
247
+ document='subscription ReplyCreatedUnderRootPost($rootPostId: ID!) {\n replyCreatedUnderRootPost(rootPostId: $rootPostId) {\n ...PostFields\n }\n}\n\nfragment ProfileReferenceFields on Profile {\n id\n username\n displayName\n profileEmoji\n profileMediaId\n}\n\nfragment AttachmentIDFields on AttachmentID {\n type\n embeddedCollectionId\n embeddedPostId\n embeddedProfileId\n linkUrl\n mediaId\n}\n\nfragment LinkPreviewFields on LinkPreview {\n Url\n canonicalUrl\n resourceType\n summary\n thumbnailUrl\n title\n}\n\nfragment AspectRatioFields on AspectRatio {\n numerator\n denominator\n}\n\nfragment MediaFileMetadataFields on MediaFileMetadata {\n id\n mediaId\n profile\n contentType\n url\n}\n\nfragment MediaMetadataFields on MediaMetadata {\n id\n accountID\n aspectRatio {\n ...AspectRatioFields\n }\n blurHash\n durationMs\n files {\n ...MediaFileMetadataFields\n }\n status\n type\n}\n\nfragment PostReferenceFields on Post {\n id\n authorID\n content\n createdAt\n parentPostId\n commentCount\n}\n\nfragment PostCollectionReferenceFields on PostCollection {\n id\n authorID\n coverMediaID\n createdAt\n description\n followLevel\n postCount\n title\n updatedAt\n}\n\nfragment AttachmentFields on Attachment {\n type\n linkPreview {\n ...LinkPreviewFields\n }\n media {\n ...MediaMetadataFields\n }\n embeddedProfile {\n ...ProfileReferenceFields\n }\n embeddedPost {\n ...PostReferenceFields\n }\n embeddedCollection {\n ...PostCollectionReferenceFields\n }\n}\n\nfragment PostOperationPermissionFields on PostOperationPermission {\n canComment\n canReact\n}\n\nfragment PostVisibilityFields on PostVisibility {\n policy\n profileTags\n pushPolicy\n}\n\nfragment PostOptionsFields on PostOptions {\n commentPolicy\n copyPolicy\n reactionPolicy\n postVisibility {\n ...PostVisibilityFields\n }\n}\n\nfragment ReactionTypeFields on ReactionType {\n emojiValue\n nativeValue\n}\n\nfragment ReactionSummaryFields on ReactionSummary {\n count\n isReactedByViewer\n type {\n ...ReactionTypeFields\n }\n}\n\nfragment PostReactionsConnectionFields on PostReactionsConnection {\n postId\n queryLimit\n remainingCount\n viewerId\n reactions {\n ...ReactionSummaryFields\n }\n}\n\nfragment PostFields on Post {\n id\n authorID\n content\n createdAt\n parentPostId\n commentCount\n leafAncestorIds\n rootAncestorIds\n author {\n ...ProfileReferenceFields\n }\n attachmentIds {\n ...AttachmentIDFields\n }\n attachments {\n ...AttachmentFields\n }\n postCollections {\n ...PostCollectionReferenceFields\n }\n postOperationPermission {\n ...PostOperationPermissionFields\n }\n postOptions {\n ...PostOptionsFields\n }\n reactions(first: 20) {\n ...PostReactionsConnectionFields\n }\n}',
248
+ variable_map={'rootPostId': 'rootPostId', 'root_post_id': 'rootPostId'},
249
+ ),
250
+ }