mosir-sdk-python 0.1.2__tar.gz → 0.1.4__tar.gz

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.
Files changed (19) hide show
  1. {mosir_sdk_python-0.1.2/src/mosir_sdk_python.egg-info → mosir_sdk_python-0.1.4}/PKG-INFO +1 -1
  2. {mosir_sdk_python-0.1.2 → mosir_sdk_python-0.1.4}/public.graphqls +18 -0
  3. {mosir_sdk_python-0.1.2 → mosir_sdk_python-0.1.4}/public.operations.graphql +24 -2
  4. {mosir_sdk_python-0.1.2 → mosir_sdk_python-0.1.4}/pyproject.toml +1 -1
  5. {mosir_sdk_python-0.1.2 → mosir_sdk_python-0.1.4}/src/mosir_sdk/_operations.py +8 -2
  6. {mosir_sdk_python-0.1.2 → mosir_sdk_python-0.1.4/src/mosir_sdk_python.egg-info}/PKG-INFO +1 -1
  7. {mosir_sdk_python-0.1.2 → mosir_sdk_python-0.1.4}/LICENSE +0 -0
  8. {mosir_sdk_python-0.1.2 → mosir_sdk_python-0.1.4}/MANIFEST.in +0 -0
  9. {mosir_sdk_python-0.1.2 → mosir_sdk_python-0.1.4}/README.md +0 -0
  10. {mosir_sdk_python-0.1.2 → mosir_sdk_python-0.1.4}/setup.cfg +0 -0
  11. {mosir_sdk_python-0.1.2 → mosir_sdk_python-0.1.4}/src/mosir_sdk/__init__.py +0 -0
  12. {mosir_sdk_python-0.1.2 → mosir_sdk_python-0.1.4}/src/mosir_sdk/client.py +0 -0
  13. {mosir_sdk_python-0.1.2 → mosir_sdk_python-0.1.4}/src/mosir_sdk/exceptions.py +0 -0
  14. {mosir_sdk_python-0.1.2 → mosir_sdk_python-0.1.4}/src/mosir_sdk/py.typed +0 -0
  15. {mosir_sdk_python-0.1.2 → mosir_sdk_python-0.1.4}/src/mosir_sdk_python.egg-info/SOURCES.txt +0 -0
  16. {mosir_sdk_python-0.1.2 → mosir_sdk_python-0.1.4}/src/mosir_sdk_python.egg-info/dependency_links.txt +0 -0
  17. {mosir_sdk_python-0.1.2 → mosir_sdk_python-0.1.4}/src/mosir_sdk_python.egg-info/requires.txt +0 -0
  18. {mosir_sdk_python-0.1.2 → mosir_sdk_python-0.1.4}/src/mosir_sdk_python.egg-info/top_level.txt +0 -0
  19. {mosir_sdk_python-0.1.2 → mosir_sdk_python-0.1.4}/tests/test_client.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mosir-sdk-python
3
- Version: 0.1.2
3
+ Version: 0.1.4
4
4
  Summary: Python SDK for the Mosir public GraphQL API
5
5
  Author-email: catLee <leemiyinghao@gmx.com>
6
6
  License-Expression: LGPL-3.0-or-later
@@ -242,6 +242,20 @@ enum PostCollectionPostOrder {
242
242
  LATEST
243
243
  }
244
244
 
245
+ input PostCollectionSearchFilterInput {
246
+ authorID: ID
247
+ }
248
+
249
+ type PostCollectionSearchPage {
250
+ pageInfo: PageInfo!
251
+ postCollections: [PostCollectionSearchResult!]!
252
+ }
253
+
254
+ type PostCollectionSearchResult {
255
+ postCollection: PostCollection!
256
+ relevanceScore: Float
257
+ }
258
+
245
259
  enum PostCommentPolicy {
246
260
  ALLOW_ALL
247
261
  ALLOW_FOLLOWERS
@@ -324,6 +338,7 @@ type PostVisibility {
324
338
 
325
339
  enum PostVisibilityPolicy {
326
340
  FOLLOWERS
341
+ LOGGED_IN_ONLY
327
342
  MUTUAL_FOLLOWERS
328
343
  PUBLIC
329
344
  TAG_MEMBERS
@@ -522,6 +537,9 @@ type Query {
522
537
 
523
538
  """List profile tags created by the current user."""
524
539
  listProfileTags(cursor: String, limit: Int): ProfileTagConnection!
540
+
541
+ """Search post collections by name."""
542
+ searchPostCollections(cursor: String, filter: PostCollectionSearchFilterInput, limit: Int, query: String!): PostCollectionSearchPage!
525
543
  }
526
544
 
527
545
  type ReactionDetailRecord {
@@ -228,6 +228,22 @@ fragment PostCollectionFields on PostCollection {
228
228
  }
229
229
  }
230
230
 
231
+ fragment PostCollectionSearchResultFields on PostCollectionSearchResult {
232
+ postCollection {
233
+ ...PostCollectionFields
234
+ }
235
+ relevanceScore
236
+ }
237
+
238
+ fragment PostCollectionSearchPageFields on PostCollectionSearchPage {
239
+ postCollections {
240
+ ...PostCollectionSearchResultFields
241
+ }
242
+ pageInfo {
243
+ ...PageInfoFields
244
+ }
245
+ }
246
+
231
247
  fragment MonoPostDraftFields on MonoPostDraft {
232
248
  content
233
249
  attachmentIds {
@@ -528,6 +544,12 @@ query GetPostCollection($id: ID!) {
528
544
  }
529
545
  }
530
546
 
547
+ query SearchPostCollections($cursor: String, $filter: PostCollectionSearchFilterInput, $limit: Int = 20, $query: String!) {
548
+ searchPostCollections(cursor: $cursor, filter: $filter, limit: $limit, query: $query) {
549
+ ...PostCollectionSearchPageFields
550
+ }
551
+ }
552
+
531
553
  query GetPostCollectionsByAuthor($authorID: ID!, $cursor: String, $limit: Int) {
532
554
  getPostCollectionsByAuthor(authorID: $authorID, cursor: $cursor, limit: $limit) {
533
555
  ...PostCollectionConnectionFields
@@ -550,8 +572,8 @@ query GetPostDraftsCount($filter: PostDraftFilterInput) {
550
572
  getPostDraftsCount(filter: $filter)
551
573
  }
552
574
 
553
- query GetPostReactionDetails($cursor: String, $limit: Int = 20, $postId: ID!, $type: ReactionTypeInput) {
554
- getPostReactionDetails(cursor: $cursor, limit: $limit, postId: $postId, type: $type) {
575
+ query GetPostReactionDetails($cursor: String, $limit: Int = 20, $postId: ID!, $reactionType: ReactionTypeInput) {
576
+ getPostReactionDetails(cursor: $cursor, limit: $limit, postId: $postId, type: $reactionType) {
555
577
  ...PostReactionDetailRecordConnectionFields
556
578
  }
557
579
  }
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "mosir-sdk-python"
3
- version = "0.1.2"
3
+ version = "0.1.4"
4
4
  description = "Python SDK for the Mosir public GraphQL API"
5
5
  readme = "README.md"
6
6
  authors = [
@@ -121,6 +121,12 @@ OPERATION_REGISTRY: dict[str, OperationSpec] = {
121
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
122
  variable_map={'id': 'id'},
123
123
  ),
124
+ 'search_post_collections': OperationSpec(
125
+ operation_name='SearchPostCollections',
126
+ operation_type='query',
127
+ document='query SearchPostCollections($cursor: String, $filter: PostCollectionSearchFilterInput, $limit: Int = 20, $query: String!) {\n searchPostCollections(\n cursor: $cursor\n filter: $filter\n limit: $limit\n query: $query\n ) {\n ...PostCollectionSearchPageFields\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 PostCollectionSearchResultFields on PostCollectionSearchResult {\n postCollection {\n ...PostCollectionFields\n }\n relevanceScore\n}\n\nfragment PageInfoFields on PageInfo {\n endCursor\n hasNextPage\n totalCount\n}\n\nfragment PostCollectionSearchPageFields on PostCollectionSearchPage {\n postCollections {\n ...PostCollectionSearchResultFields\n }\n pageInfo {\n ...PageInfoFields\n }\n}',
128
+ variable_map={'cursor': 'cursor', 'filter': 'filter', 'limit': 'limit', 'query': 'query'},
129
+ ),
124
130
  'get_post_collections_by_author': OperationSpec(
125
131
  operation_name='GetPostCollectionsByAuthor',
126
132
  operation_type='query',
@@ -148,8 +154,8 @@ OPERATION_REGISTRY: dict[str, OperationSpec] = {
148
154
  'get_post_reaction_details': OperationSpec(
149
155
  operation_name='GetPostReactionDetails',
150
156
  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'},
157
+ document='query GetPostReactionDetails($cursor: String, $limit: Int = 20, $postId: ID!, $reactionType: ReactionTypeInput) {\n getPostReactionDetails(\n cursor: $cursor\n limit: $limit\n postId: $postId\n type: $reactionType\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}',
158
+ variable_map={'cursor': 'cursor', 'limit': 'limit', 'postId': 'postId', 'post_id': 'postId', 'reactionType': 'reactionType', 'reaction_type': 'reactionType'},
153
159
  ),
154
160
  'get_post_reactions': OperationSpec(
155
161
  operation_name='GetPostReactions',
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mosir-sdk-python
3
- Version: 0.1.2
3
+ Version: 0.1.4
4
4
  Summary: Python SDK for the Mosir public GraphQL API
5
5
  Author-email: catLee <leemiyinghao@gmx.com>
6
6
  License-Expression: LGPL-3.0-or-later