vysion 2.2.0__py3-none-any.whl → 2.2.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.
vysion/client/client.py CHANGED
@@ -39,6 +39,7 @@ from vysion.dto import (
39
39
  ImProfileHit,
40
40
  ImServerHit,
41
41
  LeakHit,
42
+ ImChatMessages,
42
43
  )
43
44
  from vysion.version import __version__ as vysion_version
44
45
 
@@ -510,14 +511,22 @@ class Client(BaseClient):
510
511
 
511
512
 
512
513
  @vysion_error_manager
513
- def get_im_chat(
514
- self, platform: str, channelId: str, gte: datetime = None, lte: datetime = None
515
- ) -> VysionResponse[ImMessageHit]:
514
+ def get_im_chat_messages(
515
+ self,
516
+ platform: str,
517
+ channelId: str,
518
+ messageId: str | None,
519
+ cursor: str | None,
520
+ limit: str = 30
521
+ ) -> ImChatMessages:
516
522
  url = self._build_api_url__(
517
- "im/" + platform + "/chat/" + channelId, gte=gte, lte=lte
523
+ "im/" + platform + "/chat/" + channelId,
524
+ messageId=messageId,
525
+ cursor=cursor,
526
+ limit=limit
518
527
  )
519
528
 
520
- result = VysionResponse[ImMessageHit].model_validate(self._make_request(url))
529
+ result = VysionResponse[ImChatMessages].model_validate(self._make_request(url))
521
530
  return result.data
522
531
 
523
532
  @vysion_error_manager
vysion/dto/dto.py CHANGED
@@ -412,6 +412,12 @@ class ImProfileHit(BaseModel):
412
412
  return v
413
413
 
414
414
 
415
+ class ImChatMessages(BaseModel):
416
+ messages: List[ImMessageHit]
417
+ prev_cursor: Optional[str] = None
418
+ next_cursor: Optional[str] = None
419
+
420
+
415
421
  class ImChannelHit(BaseModel):
416
422
  channelId: Union[int, str]
417
423
  channelTitles: Optional[List[str]] = Field(default_factory=lambda: None)
@@ -550,7 +556,6 @@ class CryptoFeedHit(BaseModel):
550
556
  id: str
551
557
  url: str
552
558
  detectionDate: datetime
553
- url: str
554
559
  network: str
555
560
  title: Optional[str] = Field(default_factory=lambda: None)
556
561
  tag: List[Tag] = Field(default_factory=lambda: [])
vysion/version.py CHANGED
@@ -15,4 +15,4 @@ See the License for the specific language governing permissions and
15
15
  limitations under the License.
16
16
  """
17
17
 
18
- __version__ = "2.2.0"
18
+ __version__ = "2.2.1"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: vysion
3
- Version: 2.2.0
3
+ Version: 2.2.1
4
4
  Summary: The official Python client library for Vysion
5
5
  Home-page: https://vysion.ai
6
6
  License: Apache-2.0
@@ -29,7 +29,7 @@ Welcome to the PyPi webpage for Vysion, our implementation as a Python library t
29
29
 
30
30
  You can request a demo for the web app or an API-key to use in this library at [vysion.ai](https://vysion.ai).
31
31
 
32
- Latest version: [2.2.0](https://pypi.org/project/vysion/)
32
+ Latest version: [2.2.1](https://pypi.org/project/vysion/)
33
33
 
34
34
  You can visit [the documentation](https://developers.vysion.ai/?python) for more information on the searches and requests performed with the library or directly on the API.
35
35
 
@@ -1,9 +1,9 @@
1
1
  vysion/__init__.py,sha256=yxJiM-S29q8GB3PBff9tV70P2nvydd8aKLEprLkXw5o,664
2
2
  vysion/client/__init__.py,sha256=aVHmBuetPdybp7TgcNzUx4HkxTjEuXYzSdDYiYfFQd0,630
3
- vysion/client/client.py,sha256=YxxVs90l9qupRTnRGYyFD9GdElE3hMTqKCZCPFa60tA,23962
3
+ vysion/client/client.py,sha256=YmawH7ZVbMYMhjQX1LYaY6nnvzVpCACTnWun9PM7Cn8,24102
4
4
  vysion/client/error.py,sha256=JK0dsZkyMjmxPtEgO5IStG_N_q8y_-VGbppwWrUtSgM,1166
5
5
  vysion/dto/__init__.py,sha256=ct8JxVMfJ0APiOTgr9ju-JIuBlXOrPkx7n2qISSXUts,605
6
- vysion/dto/dto.py,sha256=0KjoCgloGHQTH7-ad9EuzjcEEFZJa3rvHnS1hkxf0bk,26653
6
+ vysion/dto/dto.py,sha256=KhsyVty8FHk6qwhnuowBIre2C0at9n63H0AYO-zOCHE,26784
7
7
  vysion/dto/tag.py,sha256=whGPsdasgYm8oijrL7MRSMmapzaoCmKNeaJ5ih0aBIk,1503
8
8
  vysion/dto/util.py,sha256=AxdMWPdf7xrFtWva5epKxgjI0Bah1GiIw-sEWvIUYb4,4491
9
9
  vysion/model/__init__.py,sha256=rJX9eNW9-jQGTgwm97W04jhZa-dV_dSTTTFcbWg73w0,606
@@ -15,8 +15,8 @@ vysion/model/enum/services.py,sha256=fUfZEO0RNNctU4Gzae5TV3c7BU5A_cEwaEb1tzqgcr0
15
15
  vysion/taxonomy/__init__.py,sha256=Bc364AYxRCyjIn26-XBPeEDCPe3Hma4r5RAI8R8eblU,635
16
16
  vysion/taxonomy/flavours.py,sha256=ubImHBE8v0zhzFy_2YozAQk2SzN1XDQwHAxb2RebtCo,2347
17
17
  vysion/taxonomy/taxonomy.py,sha256=mG6vHX5Eyp38AKyJBgfBDqdpEmDMbkv8TA8YUBzko54,12227
18
- vysion/version.py,sha256=248HaX8fv1jQJ9O2RA7PxxGxoqSObO1GPZmTxmC3T7s,610
19
- vysion-2.2.0.dist-info/LICENSE,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
20
- vysion-2.2.0.dist-info/METADATA,sha256=dP91xjtnRNtyTA2BWCiV3W7DC3qoSYrmYItVmaTsq5o,1958
21
- vysion-2.2.0.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
22
- vysion-2.2.0.dist-info/RECORD,,
18
+ vysion/version.py,sha256=xLiCsKYJ8-o-U3jLZrcs1fVnnAAzX-xT-HZaBGqdvKo,610
19
+ vysion-2.2.1.dist-info/LICENSE,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
20
+ vysion-2.2.1.dist-info/METADATA,sha256=o6FnxIDlQB0RbqEllP6lZ7rlEohqlx9dXAjhCSDmpD8,1958
21
+ vysion-2.2.1.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
22
+ vysion-2.2.1.dist-info/RECORD,,
File without changes