-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
615e209
commit 9b17b84
Showing
173 changed files
with
4,728 additions
and
955 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,4 @@ | |
*/cli/__pycache__ | ||
.env | ||
.vscode/settings.json | ||
*.pyc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
from .chat import ChatClient # noqa F401 | ||
# from getstream.chat.sync.chat import ChatClient # noqa: F401 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
from getstream.sync.base import BaseClient | ||
# from getstream.sync.base import BaseClient | ||
|
||
|
||
class ChatClient(BaseClient): | ||
def __init__(self, api_key: str, base_url, token): | ||
super().__init__(api_key=api_key, base_url=base_url, token=token) | ||
# class ChatClient(BaseClient): | ||
# def __init__(self, api_key: str, base_url, token): | ||
# super().__init__(api_key=api_key, base_url=base_url, token=token) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
from typing import TypeVar | ||
|
||
|
||
T = TypeVar("T") |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
from dataclasses import dataclass, field | ||
from dataclasses_json import config, dataclass_json | ||
|
||
|
||
@dataclass_json | ||
@dataclass | ||
class AcceptCallResponse: | ||
duration: str = field(metadata=config(field_name="duration")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
from dataclasses import dataclass, field | ||
from dataclasses_json import config, dataclass_json | ||
|
||
from typing import List, Dict, Optional | ||
|
||
|
||
@dataclass_json | ||
@dataclass | ||
class Apierror: | ||
code: int = field(metadata=config(field_name="code")) | ||
details: List[int] = field(metadata=config(field_name="details")) | ||
duration: str = field(metadata=config(field_name="duration")) | ||
message: str = field(metadata=config(field_name="message")) | ||
more_info: str = field(metadata=config(field_name="more_info")) | ||
status_code: int = field(metadata=config(field_name="StatusCode")) | ||
exception_fields: Optional[Dict[str, str]] = field( | ||
metadata=config(field_name="exception_fields"), default=None | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
from dataclasses import dataclass, field | ||
from dataclasses_json import config, dataclass_json | ||
|
||
|
||
@dataclass_json | ||
@dataclass | ||
class Apns: | ||
body: str = field(metadata=config(field_name="body")) | ||
title: str = field(metadata=config(field_name="title")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
from dataclasses import dataclass, field | ||
from dataclasses_json import config, dataclass_json | ||
|
||
from typing import Optional | ||
|
||
|
||
@dataclass_json | ||
@dataclass | ||
class Apnsrequest: | ||
body: Optional[str] = field(metadata=config(field_name="body"), default=None) | ||
title: Optional[str] = field(metadata=config(field_name="title"), default=None) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
from dataclasses import dataclass, field | ||
from dataclasses_json import config, dataclass_json | ||
|
||
|
||
@dataclass_json | ||
@dataclass | ||
class AudioSettings: | ||
access_request_enabled: bool = field( | ||
metadata=config(field_name="access_request_enabled") | ||
) | ||
default_device: str = field(metadata=config(field_name="default_device")) | ||
mic_default_on: bool = field(metadata=config(field_name="mic_default_on")) | ||
opus_dtx_enabled: bool = field(metadata=config(field_name="opus_dtx_enabled")) | ||
redundant_coding_enabled: bool = field( | ||
metadata=config(field_name="redundant_coding_enabled") | ||
) | ||
speaker_default_on: bool = field(metadata=config(field_name="speaker_default_on")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
from dataclasses import dataclass, field | ||
from dataclasses_json import config, dataclass_json | ||
|
||
from typing import Optional | ||
|
||
|
||
@dataclass_json | ||
@dataclass | ||
class AudioSettingsRequest: | ||
default_device: str = field(metadata=config(field_name="default_device")) | ||
speaker_default_on: Optional[bool] = field( | ||
metadata=config(field_name="speaker_default_on"), default=None | ||
) | ||
access_request_enabled: Optional[bool] = field( | ||
metadata=config(field_name="access_request_enabled"), default=None | ||
) | ||
mic_default_on: Optional[bool] = field( | ||
metadata=config(field_name="mic_default_on"), default=None | ||
) | ||
opus_dtx_enabled: Optional[bool] = field( | ||
metadata=config(field_name="opus_dtx_enabled"), default=None | ||
) | ||
redundant_coding_enabled: Optional[bool] = field( | ||
metadata=config(field_name="redundant_coding_enabled"), default=None | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
from dataclasses import dataclass, field | ||
from dataclasses_json import config, dataclass_json | ||
|
||
|
||
@dataclass_json | ||
@dataclass | ||
class BackstageSettings: | ||
enabled: bool = field(metadata=config(field_name="enabled")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
from dataclasses import dataclass, field | ||
from dataclasses_json import config, dataclass_json | ||
|
||
from typing import Optional | ||
|
||
|
||
@dataclass_json | ||
@dataclass | ||
class BackstageSettingsRequest: | ||
enabled: Optional[bool] = field(metadata=config(field_name="enabled"), default=None) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
from dataclasses import dataclass, field | ||
from dataclasses_json import config, dataclass_json | ||
|
||
|
||
@dataclass_json | ||
@dataclass | ||
class BlockUserRequest: | ||
user_id: str = field(metadata=config(field_name="user_id")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
from dataclasses import dataclass, field | ||
from dataclasses_json import config, dataclass_json | ||
|
||
|
||
@dataclass_json | ||
@dataclass | ||
class BlockUserResponse: | ||
duration: str = field(metadata=config(field_name="duration")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
from dataclasses import dataclass, field | ||
from dataclasses_json import config, dataclass_json | ||
|
||
from typing import Optional | ||
from datetime import datetime | ||
from dateutil.parser import parse | ||
from marshmallow import fields | ||
from getstream.models.user_response import UserResponse | ||
|
||
|
||
@dataclass_json | ||
@dataclass | ||
class BlockedUserEvent: | ||
type: str = field(metadata=config(field_name="type")) | ||
user: UserResponse = field(metadata=config(field_name="user")) | ||
call_cid: str = field(metadata=config(field_name="call_cid")) | ||
created_at: datetime = field( | ||
metadata=config( | ||
field_name="created_at", | ||
encoder=lambda d: d.isoformat(), | ||
decoder=parse, | ||
mm_field=fields.DateTime(format="iso"), | ||
) | ||
) | ||
blocked_by_user: Optional[UserResponse] = field( | ||
metadata=config(field_name="blocked_by_user"), default=None | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
from dataclasses import dataclass, field | ||
from dataclasses_json import config, dataclass_json | ||
|
||
from typing import Optional | ||
from getstream.models.hls_settings_request import HlssettingsRequest | ||
|
||
|
||
@dataclass_json | ||
@dataclass | ||
class BroadcastSettingsRequest: | ||
enabled: Optional[bool] = field(metadata=config(field_name="enabled"), default=None) | ||
hls: Optional[HlssettingsRequest] = field( | ||
metadata=config(field_name="hls"), default=None | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
from dataclasses import dataclass, field | ||
from dataclasses_json import config, dataclass_json | ||
|
||
from getstream.models.hls_settings_response import HlssettingsResponse | ||
|
||
|
||
@dataclass_json | ||
@dataclass | ||
class BroadcastSettingsResponse: | ||
enabled: bool = field(metadata=config(field_name="enabled")) | ||
hls: HlssettingsResponse = field(metadata=config(field_name="hls")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
from dataclasses import dataclass, field | ||
from dataclasses_json import config, dataclass_json | ||
|
||
from datetime import datetime | ||
from dateutil.parser import parse | ||
from marshmallow import fields | ||
from getstream.models.user_response import UserResponse | ||
from getstream.models.call_response import CallResponse | ||
|
||
|
||
@dataclass_json | ||
@dataclass | ||
class CallAcceptedEvent: | ||
user: UserResponse = field(metadata=config(field_name="user")) | ||
call: CallResponse = field(metadata=config(field_name="call")) | ||
call_cid: str = field(metadata=config(field_name="call_cid")) | ||
created_at: datetime = field( | ||
metadata=config( | ||
field_name="created_at", | ||
encoder=lambda d: d.isoformat(), | ||
decoder=parse, | ||
mm_field=fields.DateTime(format="iso"), | ||
) | ||
) | ||
type: str = field(metadata=config(field_name="type")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
from dataclasses import dataclass, field | ||
from dataclasses_json import config, dataclass_json | ||
|
||
from typing import List | ||
from datetime import datetime | ||
from dateutil.parser import parse | ||
from marshmallow import fields | ||
from getstream.models.call_response import CallResponse | ||
from getstream.models.member_response import MemberResponse | ||
|
||
|
||
@dataclass_json | ||
@dataclass | ||
class CallCreatedEvent: | ||
call: CallResponse = field(metadata=config(field_name="call")) | ||
call_cid: str = field(metadata=config(field_name="call_cid")) | ||
created_at: datetime = field( | ||
metadata=config( | ||
field_name="created_at", | ||
encoder=lambda d: d.isoformat(), | ||
decoder=parse, | ||
mm_field=fields.DateTime(format="iso"), | ||
) | ||
) | ||
members: List[MemberResponse] = field(metadata=config(field_name="members")) | ||
type: str = field(metadata=config(field_name="type")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
from dataclasses import dataclass, field | ||
from dataclasses_json import config, dataclass_json | ||
|
||
from typing import Optional | ||
from datetime import datetime | ||
from dateutil.parser import parse | ||
from marshmallow import fields | ||
from getstream.models.user_response import UserResponse | ||
from getstream.models.call_response import CallResponse | ||
|
||
|
||
@dataclass_json | ||
@dataclass | ||
class CallEndedEvent: | ||
call: CallResponse = field(metadata=config(field_name="call")) | ||
call_cid: str = field(metadata=config(field_name="call_cid")) | ||
created_at: datetime = field( | ||
metadata=config( | ||
field_name="created_at", | ||
encoder=lambda d: d.isoformat(), | ||
decoder=parse, | ||
mm_field=fields.DateTime(format="iso"), | ||
) | ||
) | ||
type: str = field(metadata=config(field_name="type")) | ||
user: Optional[UserResponse] = field( | ||
metadata=config(field_name="user"), default=None | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
from dataclasses import dataclass, field | ||
from dataclasses_json import config, dataclass_json | ||
|
||
from datetime import datetime | ||
from dateutil.parser import parse | ||
from marshmallow import fields | ||
|
||
|
||
@dataclass_json | ||
@dataclass | ||
class CallHlsbroadcastingStartedEvent: | ||
call_cid: str = field(metadata=config(field_name="call_cid")) | ||
created_at: datetime = field( | ||
metadata=config( | ||
field_name="created_at", | ||
encoder=lambda d: d.isoformat(), | ||
decoder=parse, | ||
mm_field=fields.DateTime(format="iso"), | ||
) | ||
) | ||
hls_playlist_url: str = field(metadata=config(field_name="hls_playlist_url")) | ||
type: str = field(metadata=config(field_name="type")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
from dataclasses import dataclass, field | ||
from dataclasses_json import config, dataclass_json | ||
|
||
from datetime import datetime | ||
from dateutil.parser import parse | ||
from marshmallow import fields | ||
|
||
|
||
@dataclass_json | ||
@dataclass | ||
class CallHlsbroadcastingStoppedEvent: | ||
call_cid: str = field(metadata=config(field_name="call_cid")) | ||
created_at: datetime = field( | ||
metadata=config( | ||
field_name="created_at", | ||
encoder=lambda d: d.isoformat(), | ||
decoder=parse, | ||
mm_field=fields.DateTime(format="iso"), | ||
) | ||
) | ||
type: str = field(metadata=config(field_name="type")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
from dataclasses import dataclass, field | ||
from dataclasses_json import config, dataclass_json | ||
|
||
from getstream.models.rtmp_ingress import Rtmpingress | ||
|
||
|
||
@dataclass_json | ||
@dataclass | ||
class CallIngressResponse: | ||
rtmp: Rtmpingress = field(metadata=config(field_name="rtmp")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
from dataclasses import dataclass, field | ||
from dataclasses_json import config, dataclass_json | ||
|
||
from datetime import datetime | ||
from dateutil.parser import parse | ||
from marshmallow import fields | ||
from getstream.models.call_response import CallResponse | ||
|
||
|
||
@dataclass_json | ||
@dataclass | ||
class CallLiveStartedEvent: | ||
type: str = field(metadata=config(field_name="type")) | ||
call: CallResponse = field(metadata=config(field_name="call")) | ||
call_cid: str = field(metadata=config(field_name="call_cid")) | ||
created_at: datetime = field( | ||
metadata=config( | ||
field_name="created_at", | ||
encoder=lambda d: d.isoformat(), | ||
decoder=parse, | ||
mm_field=fields.DateTime(format="iso"), | ||
) | ||
) |
Oops, something went wrong.