39 KiB
Change Log
v0.6.3
ð Enhancements
- PartialUserã«_get_mentionããããã£ãè¿œå (0e8f8b4)
- ClientAdminUserManagerã«accountãè¿œå (3ff41ca)
𩹠Fixes
- ã€ã³ã¹ã¿ã³ã¹å€æ°ã«ã¢ã¯ã»ã¹ã§ããªã (1056071)
ð Documentation
- Update rst & po (b8f6937)
ð¡ Chore
- UserActions.get_mention ã¡ãœãããéæšå¥šã« (26d0f4e)
â€ïž Contributors
- Yupix (@yupix)
v0.6.2
ãŠãŒã¶ãŒã«å¯Ÿãã管çã¢ã¯ã·ã§ã³ãç°¡åã«è¡ããããã«ãªããŸãã
ä»ãŸã§ã¯ä»¥äžã®ããã«è¡ãå¿
èŠããããŸããããæ°ãã« admin
å€æ°ãè¿œå ãããçŽæ¥ãã®ãŠãŒã¶ãŒã«å¯ŸããŠåŠçœ®ãè¡ãããšãåºæ¥ãããã«ãªããŸãã
async with Client('server url', 'token') as client:
api = client.api
found_user = await api.user.action.get('user_id')
await api.admin.user.action.suspend(user_id=found_user.id)
v0.6.2ãã
async with Client('server url', 'token') as client:
api = client.api
found_user = await api.user.action.get('user_id')
await found_user.api.admin.action.suspend()
ð Enhancements
- Get_all_search_by_tag ã¡ãœãããè¿œå (9d07afb)
- AdminAccountActionsãè¿œå (60eaad7)
- Userã«å¯Ÿãã管çã¢ã¯ã·ã§ã³ã容æã«è¡ããããã« (9785774)
ð Refactors
- AdminUserActionsãClientãšåãã (5297559)
- AdminActionsãSharedAdminUserActions ãç¶æ¿ããããã« (d37c7ae)
ð¡ Chore
â€ïž Contributors
- Yupix (@yupix)
v0.6.1
ð Enhancements
ð¡ Chore
- FollowManagerã§Actionãåçæããªãããã« (bb93d03)
- FollowActions.add ã¡ãœãããéæšå¥šã«ã代ããã«createã¡ãœãããè¿œå (69c89a7)
- FollowActions.remove ã¡ãœãããéæšå¥šã«ã代ããã«deleteã¡ãœãããè¿œå (df2ba4f)
- ãµããŒãç¶æ³ãæŽæ° (be5e608)
â€ïž Contributors
- Yupix (@yupix)
[Unreleased]
[0.6.0] 2023-02-20
Breaking changes ð
AuthClient ãåé€ãããŸãã
ä»ãŸã§ MiAuth ãã¢ããªäœææ¹åŒã§ã®ã¢ã¯ã»ã¹ããŒã¯ã³ãååŸããéã«äœ¿çšã§ããŠãã AuthClient
ãåé€ããŸãããä»åŸã¯ MiAuth
ã¯ã©ã¹ããå©çšãã ããã
以äžã®ã¯ã©ã¹ãåé€ããŸãã
ãã®å€æŽã¯ Misskey ã® Schema ã«äŒŒãã圢ã§åå®è£ ããã«ããããMisskey ã® Schema ããã现ããã¢ãã«ãäœæããŠããããããããã£ããã®ãåé€ãã圢ãšãªããŸãã
UserDetailed
->UserDetailedNotMe | MeDetailed
MeDetailedModerator
->MeDetailed
UserDetailedModerator
->UserDetailedNotMe | MeDetailed
UserDetailedNotLogined
->UserDetailedNotMe | MeDetailed
AdminAnnouncementClientActions
->ClientAdminAnnouncementActions
AnnouncementSystem
->AnnoucementDetailed
MeRole
->RoleUser
ã¯ã©ã¹åã®å€æŽ
AdminAdvertisingModelActions
->ClientAdminAdActions
AdminAdvertisingActions
->AdminAdActions
AdminAdvertisingModelManager
->ClientAdminAdManager
AdminAdvertisingManager
->AdminAdManager
MutedUser
->Muting
åŒæ°ã«é¢ããå€æŽ
*Actions
ç³»ã«ãŠ *_id
ã®ãããªåŒæ°ã¯ãã¹ãŠããŒã¯ãŒãåŒæ°ã«å€æŽãããŸãããããã¯ãªã¹ã³ãã®çœ®ææ³åã«åãããã§å¿
èŠãªäœæ¥ã§ãããä»åŸã®ã³ãŒãå€æŽã«å¯Ÿããèæ§ãäžããããã§ããããŸãããè¿·æããæãããŸãããç解ã®ã»ã©ãããããé¡ãããããŸãã
æ»ãå€ã®å€æŽ
Announcement.action -> ClientAdminAnnouncementActions
->Announcement.action -> ClientAdminAnnouncementManager
AnnouncementDetailed.action -> ClientAdminAnnouncementActions
->AnnouncementDetailed.action -> ClientAdminAnnouncementManager
get_all
åŒæ°ãå»æ¢
ä»ãŸã§å€ãã®é
åãè¿ãã¡ãœããããžã§ãã¬ãŒã¿ãšããŠäœæããŠããŸããããå°ãããããŒã¿ã¯èŠããªãã®ã« async for
ãæžãã®ã¯å€§å€ãšããããšã§ get_all
åŒæ°ãå»æ¢ããŸãã
ããã«ããä»ãŸã§ get_all
åŒæ°ããã£ã ãžã§ãã¬ãŒã¿ã¯å
šãŠéåžžã® list çãè¿ãã¡ãœããã«å€æŽãããŸãã
ä»ãŸã§éãã®ãžã§ãã¬ãŒã¿ãšããŠã®æ©èœãå¿
èŠãªå Žå㯠get_all_*
ãšããã¡ãœãããæ°ããå¢ããŠãããããã¡ãããå©çšãã ããã
[0.5.99] 2023-12-03
ãã®ãªãªãŒã¹ã¯ææ°ã® Misskey åãã«æé©åããã develop
ãã©ã³ãã®ç©ãšãªããŸããã€ã³ã¹ã¿ã³ã¹ã§ v11
ã v12
ãå©çšããŠããå Žåã¯æŽæ°ããªãããšãããããããŸãã
Breaking changes ð
v13 ã«åãããŠã¡ãœãããã¢ãã«ãæŽçããŸãã
äž»ã«åé€ãããã¢ãã«ã¯ãã£ããã§ãããã®ä»ã«ã admin
åãã®ãšã³ããã€ã³ãã§æ¢ã«åé€ãããŠããç©ãåé€ããŸããã
v13 ã§ã®ãªã¯ãšã¹ãããã£ãŒã«åãããŠåŒæ°ã®è¿œå ãªã©ãè¡ã£ãŠããŸãã
pypi ããããŠã³ããŒãã§ãã MiPAC ã¯ææ°ã® Misskey ã®ã¿ããµããŒãããããã«ãªããŸãã
詳ããã¯ãã¡ãã® Issueã埡芧ãã ããã
ä»ãŸã§éãã®å
šãŠã®ããŒãžã§ã³ããµããŒããã MiPAC ãå©çšãããå Žåã¯ä»¥äžã®ã³ãã³ã㧠shared
ãã©ã³ãã®ç©ããå©çšããã ããŸãã
ä»åŸ v11
ã v12
ã®ãã©ã³ããäœæãããããã®ææ°ã®ããŒãžã§ã³ããµããŒãããäºå®ã§ãããã®ãããshared
ãã©ã³ãã¯ä¿å®ã¢ãŒãã«å
¥ããåºæ¬çã«ã¯ãã°ã®ä¿®æ£ã®ã¿ãæäŸããŸããæ©èœè¿œå ãè¡ãå¯èœæ§ã¯ãããŸãããv11 ã v12ãææ°ã® Misskey ã®ãµããŒããçµãã£ãŠããã«ãªããŸãã
pip install git+https://github.com/yupix/Mi.py.git@shared
Lite*
ããå§ãŸãã¢ãã«ã®ååã Partial*
ã«å€æŽãããŸãã
ä»ãŸã§ Lite ãš Partial ãæ··åšããŠããŸããããä»åã®ã¢ããããŒããæã« Partial
ã«çµ±äžãããŸã
ã¡ãœããã®å€æŽ
v0.5.0 | v0.6.0 |
---|---|
ClientNoteActions.get_children |
ClientNoteActions.get_all_children |
ClientNoteActions.get_reaction |
ClientNoteActions.get_reactions |
Drive åšãã®äœãçŽã
Drive ã«é¢ãã Manager ã Actions ãå šãŠäœãçŽããŸããã詳现ã«èšè¿°ããŠããšãã€ãŸã§ãçµãããªãã®ã§ããè¿·æããããããŸããã確èªããŠããã ãããšå¹žãã§ã ð
ã¢ãã«ã®å€æŽ
äžéšã®ã¢ãã«ãããè¯ã圢ã§åå®è£ ãããŸãããçµæçã«ã¢ãã«åãå€ãã£ãŠããŸãã以äžããã®å€æŽåŸã®è¡šã«ãªããŸãã
v0.5.0 | v0.6.0 | å€æŽçç± |
---|---|---|
UserRole | PartialRole | Role ãšå ±éããŠããçº User ããã Role ã® Partial ã¯ã©ã¹ã«ããæ¹ãé©åã ãšèããçº |
PartialNote | Note | åããå¿ èŠæ§ãç¡ãã£ããã(å®éã©ãã«ã䜿çšããŠããªãã£ã) |
MuteUser | MutedUser | ããåãããããååã«å€æŽ |
éæšå¥šã«ãªã£ãã¢ãã«/ã¯ã©ã¹
åå | åé€ãããããŒãžã§ã³ | çç± |
---|---|---|
UserRole | 0.7.0 | PartialRole ã«å€æŽ |
Other notable changes ð
mipac.util
ã¢ãžã¥ãŒã«ãåé€ãããŸãã- äŸå€
CredentialsError
ãè¿œå ãããŸãã
[0.5.1] 2023-10-03
New Features âš
MeDetailed
ã¢ãã«ãè¿œå ãããèªèº«ã«é¢ããæ
å ±ããå€ãæ±ããããã«ãªããŸãã
ä»åŸã¯ API ã䜿çšããéã«èªåã§ãŠãŒã¶ãŒãèªåèªèº«ããå€æããèªèº«ã§ãã£ãå Žå㯠UserDetailed
ã§ã¯ãªãã MeDetailed
ãè¿ãããã«ãªããŸãã
MeDetailed
ãš UserDetailed
ã®å
±æäœåã®å Žå㯠isinstance
ãçšããŠå€æãè¡ããŸãã
ãŸããRoleUser
çã®ããã«å°çšã®ãŠãŒã¶ãŒã¢ãã«ãããå Žå㯠MeRole
ã®ãããªã¢ãã«ãäœæããã©ã¡ãããè¿ãããã«ãªããŸãã
â»ãŸã å šãŠã®ã¡ãœããã«é©å¿ãããããã§ã¯ãªããããäžéšã®ã¿ã®é©å¿ãšãªã£ãŠããŸãã
async def main():
async with Client("https://nr.akarinext.org", "token") as client:
api = client.api
users = await api.admin.action.show_users(username="yupix")
for user in users:
if isinstance(user, MeDetailed):
print(user.is_admin)
LiteUser
ã¢ãã«ã«badge_roles
ããããã£ãŒãè¿œå ãããŸãã
以äžã®ãšã³ããã€ã³ãããµããŒããããŸãã
ãšã³ããã³ã | MiPAC ã§ã®ã¡ãœãã |
---|---|
/api/admin/invite/create |
api.admin.invite.action.create_invite |
/api/admin/invite/list |
api.admin.invite.action.get_invite_list |
/api/roles/list |
api.role.action.get_list |
/api/roles/show |
api.role.action.get |
/api/roles/users |
api.role.action.get_users |
/api/roles/notes |
api.role.action.get_notes |
Fixed ð ïž
RoleUser
ã¢ãã«ã§LiteUser
ã䜿çšããŠããŸããããæ£ããã¯UserDetailed
äŸåé¢ä¿ã®æŽæ° ðŠ
aiohttp
:3.8.4
=>3.8.5
è²¢ç®è åãæ å ±
axblack
ã䜿ã£ããã©ãŒããããèŸããŸãã
çç±ãšããŠã¯ axblack
ã®æŽæ°ãæ¢ãŸã£ãŠããããŸã移è¡å
ã§ãã blue
ãæŽæ°ãæ¢ãŸã£ãŠããããã§ããä»åŸã¯ éåžžã® black
ã䜿çšãããã©ãŒããã䜿çšããããã«ãé¡ãããŸãã
Model ã«ã¯ AbstractModel
ãç¶æ¿ããŠãã ãã
pagination_iterator
é¢æ°ãæ°èŠã«è¿œå ãããpagination ã®åŠçã楜ã«äœ¿ããããã«ãªããŸããããã®éã« Model 以å€ã®ã¯ã©ã¹ãåãåããªãããèå¥ããã®ã«äœ¿çšããŸãã
[0.5.0] 2023-07-26
New Features âš
Client
㧠async with
æ§æããµããŒããããŸãã
äžæçã«ã»ãã·ã§ã³ãäœæãããå Žåãªã©ã« login
ã¡ãœããã close_session
ã¡ãœããã䜿çšããã®ã¯éåžžã«æéã§ãããããäžæçã«ã»ãã·ã§ã³ãäœæããããšãã£ãå Žåã«ããããããŸãã
async with Client('server url', 'token') as client:
api = client.api
async for emoji in api.admin.emoji.action.gets():
print(emoji)
äžæã® ID ãæã€ã¢ãã«ã§æ¯èŒæŒç®ããµããŒããããŸãã
ãµããŒããããæŒç®ã¯ __eq__
ãš __ne__
ã® 2 ã€ã§ããäžæã® ID ãšå€æãã«ããç©ã¯çŸç¶ãµããŒãããŠããŸããã
äžæã® ID ãããã«ããããããããµããŒããããŠããªãã¢ãã«ãããé㯠Issue ãäœæããŠãã ããã
note_one = await api.note.action.get('note one')
note_two = await api.note.action.get('note one')
note_three = await api.note.action.get('note two')
print(note_one == note_two, note_one != note_two)
print(note_one == note_three, note_one != note_three)
File ã¢ãã«ã« api
ããããã£ãŒãè¿œå ãããŸãã
ä»ãŸã§ã¯ã¢ãã«ã« api
ããããã£ãŒãç¡ãã£ãããã api
ããããã£ãŒããã¢ã¯ã·ã§ã³ã«ã¢ã¯ã»ã¹ãã察象ã®ã¡ãœããã«å¯ŸããŠãã¡ã€ã« ID ãªã©ãšãã£ãåŒæ°ãèªåã§æž¡ãå¿
èŠããããŸããããä»åŸã¯ã¢ãã«ããçŽæ¥å®è¡ã§ããŸãã
-async for file in api.drive.file.action.get_files(get_all=True):
- await api.drive.file.action.remove(file.id)
+async for file in api.drive.file.action.get_files(get_all=True):
+ await file.api.action.remove()
FileActions
ã« save
ã¡ãœãããè¿œå ãããŸãã
æå®ãããã¹ããŸã㯠Buffer ã«ãã¡ã€ã«ãããŠã³ããŒãã§ããããã«ãªããŸããã ãã¹ãæå®ããå Žå
async for file in api.drive.file.action.get_files(get_all=True):
await file.api.action.save(f'./test/{file.name}')
Buffer ãæå®ããå Žå:
async for file in api.drive.file.action.get_files(get_all=True):
with open(f'./test/{file.name}', mode='mb') as f:
await file.api.action.save(f)
以äžã®ãšã³ããã€ã³ãããµããŒããããŸãã
/api/admin/emoji/set-license-bulk
/api/antennas/create
/api/antennas/delete
/api/antennas/list
/api/antennas/notes
/api/antennas/show
/api/antennas/update
/api/clips/create
/api/clips/delete
/api/clips/list
/api/clips/show
/api/clips/update
/api/notes/clips
/api/clips/add-note
/api/clips/remove-note
/api/clips/notes
/api/clips/my-favorites
/api/users/clips
/api/channels/create
/api/channels/featured
/api/channels/follow
/api/channels/followed
/api/channels/owned
/api/channels/show
/api/channels/unfollow
/api/channels/update
/api/channels/favorite
/api/channels/unfavorite
/api/channels/my-favorites
/api/channels/search
Breaking changes ð
å
šååŸã®éã®åŒæ° all
ã get_all
ã«å€æŽãããŸãã
圱é¿ãåããã®ã¯ããŒã¯ãŒãåŒæ°ã䜿çšããŠããæ¹ã§ããäœçœ®åŒæ°ã䜿çšããŠããæ¹ã¯ç¹ã«åé¡ãããŸããã
-Client.api.admin.emoji.action.gets(all=True)
+Client.api.admin.emoji.action.gets(get_all=True)
NoteManager.get
ã¡ãœãããåé€ãããŸãã
äœæ ãã£ãã®ãåãããŸããããManager ã®è²¬åããéžè±ããŠããããã§ã
NoteActions ã«é¢ããå€æŽ
NoteActions.get
NoteActions.fetch
ã¡ãœããã«ãããŠnote_id
ã optional ã«ãªã£ãŠããã®ã¯ããããããå¿ é ã®åŒæ°ã«å€æŽããŸãã
Fixed ð ïž
- äžéš
all
åŒæ°ãååšããªããã built-in ã®all
ãååšããããšã§åäœããŠããç®æãä¿®æ£ãããŸãã ClientNoteActions
ã«ãããŠnote_id
ãç¡ãã£ãå Žåã®äŸå€åŠçãç¡ãã£ãçºè¿œå
Other notable changes ð
- æ°ããå®çžŸããµããŒãããŸãã
- ã¯ãªããããµããŒããããŸãã
- ããŒã«ã®äœææã«
is_explorable
ã䜿çšã§ããããã«ãªããŸããã- ææ°ã®ã€ã³ã¹ã¿ã³ã¹çã§ç¡ããšäœ¿çšã§ããªãå¯èœæ§ããããŸã
- update_meta ã®ãªã¯ãšã¹ãæã«
server_rules
ãã©ã¡ãŒã¿ã䜿çšã§ããããã«ãªããŸãã- ãã®ãã©ã¡ãŒã¿ã¯
13.11.3
以éã®ããŒãžã§ã³ïŒ13.11.3
ã¯å«ã¿ãŸããïŒã䜿çšããŠããå Žåã¯å¿ é ã§ããããã以åã®ããŒãžã§ã³ã䜿çšããŠããå Žåã¯æå®ãããšãšã©ãŒãçºçããå¯èœæ§ããããŸãã
- ãã®ãã©ã¡ãŒã¿ã¯
NoteActions.get_replies
ãClientNoteActions.getriplies
ã«ç§»åãããClientNoteActions
ã§ã䜿çšå¯èœã«ãªããŸãããïŒNoteActions 㯠ClientNoteActions ãç¶æ¿ããŠããããä»åŸãšã䜿çšã§ããŸãïŒ- å
šååŸã以äžã®ã¡ãœããã§ãµããŒããããŸãããããã«äŒŽããäžéšã®ã¡ãœããããžã§ãã¬ãŒã¿ãŒã«ãªã£ãŠããŸãã
FederationActions.get_followers
FederationActions.get_following
FederationActions.get_users
AdminAnnouncementActions.gets
AdminRoleModelActions.get_users
AdminAdvertisingActions.get_list
AdminActions.get_moderation_logs
NoteActions.get_replies
NoteActions.gets
FileActions.get_files
ClientFolderActions.get_files
DriveActions.get_folders
Pagination
ã¯ã©ã¹ãè¿œå ãããŸãã- åºæ¬çã«ãŠãŒã¶ãŒã䜿ãããšã¯æ³å®ãããŠããŸãã
- @omg-xtao can cancel setup_logging when init client.
- models/user ã«ãã£ã
FollowRequest
ã¯ã©ã¹ãåé€ãããŸãã
[0.4.3] 2023-04-25
Added
- 以äžã®ãšã³ããã€ã³ãããµããŒããããŸãã
emoji
channels/favorite
channels/unfavorite
channels/my-favorites
- 以äžã®ã¯ã©ã¹ãè¿œå
IChannelNote
PartialNote
Note
ã¯ã©ã¹ã§tags
ãååŸã§ããããã«Client
ã¯ã©ã¹ã®ã³ã³ã¹ãã©ã¯ã¿åŒæ°ã«ä»¥äžãè¿œåuse_version
use_version_autodetect
ClientManager
ã«å±æ§ãemoji
ãè¿œåChannel
ã«api
ããããã£ãè¿œåCustomEmoji
ã«host
ããããã£ãè¿œåChannelLite
ã«api
ããããã£ãè¿œåFolder
ã«api
ããããã£ãè¿œåFile
ã«api
ããããã£ãè¿œåChannel
ã¯ã©ã¹ã¯ChannelLite
ãç¶æ¿ããŠããããå¿ ç¶çã«ãã¡ãã«ãapi
ããããã£ãå¢ããŠããŸã
Changed
FileActions
ã®remove_file
ã¡ãœãããéæšå¥šã«ãªããŸãã ä»åŸã¯remove
ã¡ãœããããå©çšãã ãããv0.5.0
ã§åé€ãããŸããINoteRequired
ãIPartialNote
ã«å€æŽãããŸããmipac.util
ã¢ãžã¥ãŒã«ã¯mipac.utils
é äžã®auth
,cache
,format
,log
,util
ã® 5 ã€ã«åé¢ããŸããããã®ããv0.5.0
ã§åé€ãããŸãã- ä»åŸã¯
mipac.utils.*
ããå©çšãã ãã
- ä»åŸã¯
Fixed
FileActions
ã¯ã©ã¹ã®show_file
ã¡ãœããã§åŒæ°ã«ããã©ã«ãå€ãå ¥ã£ãŠããªãã®ãä¿®æ£Note
ã®ããããã£ã§äžéšæ»ãå€ãæ£ãããªãChannelLite
ã¯ã©ã¹ã«is_following
ããããã£ã¯ååšããŠã¯ãããªãã®ã§ä¿®æ£- tip:
Channel
ã¯ã©ã¹ã«ç§»åãããŸãã
- tip:
Removed
LiteUser
ããname
ããããã£ãåé€ãããŸããã- ä»åŸã¯
nickname
ããå©çšãã ãã
- ä»åŸã¯
[0.4.2] 2023-03-22
Added
config.features
ãè¿œå ãããŸãã
MiPAC 㯠v13, v12, v11 ãšãã倧ããªåºåãã§ãšã³ããã€ã³ããå©çšå¯èœãã確èªããŠããŸãããã®éœåäžãv13 ã§ãµããŒãããããç©ãäŸãã°ãã£ããã13.7.0
ã§å»æ¢ããããããªå ŽåãMiPAC ã¯ææ°ã® Misskey ã«è¿œåŸããŠãããããããã©ã«ãã®æåãå€æŽããŸããããã«ããã13.7.0
ã«æŽæ°ããŠãªãã£ãããfork
ã䜿çšããŠããŠãã£ãããååšããå Žåã§ããã£ããã䜿çšãããšäŸå€ã§ããNotSupportVersion
ãçºçããŠããŸããŸãããã®å¯ŸçãšããŠãã®æ©èœãè¿œå ãããŸããã
ãã® config ã®äž»ãªåœ¹å²ã¯ä»¥äžã®éãã§ãã
- ææ°ã® Misskey ã§ã¯äœ¿çšã§ããªãããèªèº«ã䜿çšããŠãããµãŒããŒã®ããŒãžã§ã³ã§ã¯äœ¿çšã§ããå Žåã«è©²åœããç©ãæå¹ã«ããããšã§äŸå€ãè¿ããã䜿çšã§ããããã«ãã
䜿ãæ¹ã¯ä»¥äžã®éãã§ãããŸããçŸåšãµããŒããããŠãã feature ã¯chat
ã®ã¿ã§ãã
async def main():
client = Client(auth.currentUser.url, auth.currentUser.token)
await client.http.login()
api = client.api
client.config.from_dict(features={'chat': True})
config.limits
ãè¿œå ãããŸãã
MiPAC ã§ã¯æåæ°çã«ããã©ã«ãã§ææ°ã® Misskey ã®å€ãå ¥ããŠããŸããããããäžéšã® Fork ã§æåæ°ã®å¶éãç·©åãããŠããã»å¶éãããŠããå Žåã«æ£ãããšã©ãŒãè¿ããªããªãå¯èœæ§ããããŸãããã®å¯ŸçãšããŠãã®æ©èœãè¿œå ãããŸããã
ãŸããèªåã§äœæã»äœ¿çšããŠãã Fork ã§ããååšããããããã©ã«ãã§ãµããŒãããŠãããªãïŒãšããç©ããããŸããããIssue ãäœæããŠãã ããã°æ€èšããŸãã
- Note åšãã®ã¡ãœããã§
visibility
ã®åãæ£ç¢ºã« - 以äžã®ãšã³ããã€ã³ãããµããŒããããŸãã
i/claim-achievement
blocking/create
blocking/delete
blocking/list
admin/ad/create
admin/ad/delete
admin/ad/list
admin/ad/update
- Added
IT_ACHIEVEMENT_NAME
fixed variable. - Added class the given below.
- Channel
IChannelLite
ChannelLite
ChannelActions
ChannelManager
- Blocking
BlockingUser
IBlockingUser
BlockingActions
BlockingManager
- Ad
AdminAdvertisingModelActions
AdminAdvertisingActions
Ad
IAd
AdminAdvertisingModelManager
AdminAdvertisingManager
- Channel
- Added
block
attribute toUserManager
. - Added
channel
attribute toClientManager
. - Added
reaction_emojis
property toNote
. - Added
reaction_acceptance
property toNote
.
Changed
- chat ã v13 ã§å»æ¢ãããçº v13 ãå©çšããŠããéã¯äŸå€ãè¿ãããã«å€æŽããŸããã
- v13 ã ããfork ã chat ãå»æ¢ãããåã®ããŒãžã§ã³ã䜿çšããŠããŠãã£ããã䜿çšãããéã¯æ°ããæ©èœã§ãã
config.features
ããå©çšãã ãã
- v13 ã ããfork ã chat ãå»æ¢ãããåã®ããŒãžã§ã³ã䜿çšããŠããŠãã£ããã䜿çšãããéã¯æ°ããæ©èœã§ãã
- aiohttp ã®ããŒãžã§ã³ã
3.8.4
ã«åºå® - Token ã䜿çšããªããŠã API ãäžéšäœ¿çšã§ããããã«ãªããŸãããåœç¶ã§ãããèªèšŒãå¿ èŠãª API ã䜿çšããå Žåã¯ãšã©ãŒãåºãŸãã
Config.from_dict
ã®åŒæ°ãå šãŠããŒã¯ãŒãåŒæ°ã«ãªããŸãããããã¯ä»åŸ Config ã«åŒæ°ãå¢ããéãªã©ãå€æŽã«åŒ·ãããããã§ãã
Removed
- ãµããŒãããæ°ãç¡ããããsphinx ãçšããããã¥ã¡ã³ããåé€
Fixed
Note.reply
ã®ããŒãrenote
ã«ãªã£ãŠããŠååŸäžå¯ã«ãªã£ãŠãã
[0.4.1] 2023-03-14
Added
ããŒãžã§ã³ã®èªåæ€åºæ©èœãè¿œå ãããŸããïŒÎ²ïŒ
ããã¯ããã©ã«ãã§æå¹ã«ãªã£ãŠãããæå¹ã®éã¯èªåçã« /api/meta
ããããŒãžã§ã³ãæšè«ããŸããæ©èœãšããŠã¯ä»¥äžã®éãã§ã
-
11, 12, 13 ã«ãããããå Žåãããã«ããŒãžã§ã³ãå€æŽãã - ãããããªãã£ãå Žåã¯äœãããªã Misskey å ¬åŒã®ããŒãžã§ã³ãã³ã°ãå ã«å€æããŠããçºãç¬èªã®ããŒãžã§ãã³ã°ãè¡ã£ãŠãããã©ãŒã¯çã§ã¯æ£åžžã«åäœããªãå¯èœæ§ããããŸãããã®éã¯
client.config.use_version_autodetect = False
ãšããããšã§ç¡å¹ã«ããããšãå¯èœã§ãããŸããæåã§ããŒãžã§ã³ãèšå®ããå Žåã off ã«ããŠãã ããã äžéšã® API ã¯ããŒãžã§ã³ãšãã©ãŒã¯ã®çš®é¡ã§å€æããŠããŸãããã®ããå ¬åŒã®ããŒãžã§ã³çã«ã¯äœ¿çšã§ããªããããã©ãŒã¯ã®æ©èœãšããŠååšãããšããå Žåã¯å ±åããã ããã°ãµããŒãããŸãã -
Added
role
property toAdminManager
. -
Added
remove_none
argument to request method. -
Added method to
ClientActions
class the given below.get_announcements
-
Added class the given below.
AdminUserActions
AnnouncementCommon
Announcement
AnnouncementSystem
IMetaAnnouncement
IAnnouncementSystem
AdminAnnouncementClientActions
AdminAnnouncementActions
AdminAnnouncementManager
IModerationLog
ModerationLog
ServerInfoCpu
ServerInfoMem
ServerInfoFs
ServerInfoNet
ServerInfo
IServerInfoCpu
IServerInfoMem
IServerInfoFs
IServerInfoNet
IServerInfo
ITableStats
IIndexStat
IndexStat
IUserIP
UserIP
FederationActions
FederationManager
IFederationInstanceStat
IFederationFollowCommon
IFederationFollower
IFederationFollowing
-
Roles
IRolePolicieValue
IRolePolicies
IRole
RolePolicyValue
RolePolicies
Role
AdminRoleActions
AdminRolesManager
IRoleUser
RoleUser
-
Achievements
- added
IAchievementNf
class. - added
NotificationAchievement
class. - added
Achievement
class. - added
get_achievements
method atUserActions
class. - added
achievements
property atUserDetailed
class.
- added
-
Note
- content field auto convert empty string to None
Changed
- Maximum number of characters has been changed from 79 to 99
- The main reason for this change is to solve the problem that the MiPAC code is inevitably longer because of the method chain. We have kept it to the maximum of pep8.
- Changed a method that was returning an
AsyncIterator
to return anAsyncGenerator
.- Generator is more correct than Iterator because it is the correct usage.
- Changed class name the given below.
IAnnouncement
->IMetaAnnouncement
cache
decorator no longer usesdynamic_args
decorator
Removed
- Delete
dynamic_args
decorator. - Delete debug log.
[0.4.0] 2023-01-18
Added
- added DocString.
- added
get_state
method atClientNoteActions
class. - added
INoteState
class. - added
NoteState
class. - added
IBasePoll
class. - added
ICreatePoll
class. - added
MiPoll
class. - added
PollManager
class. - added
PollActions
class. - added
AdminEmojiActions
class. - added
AdminManager
class. - added
AdminModeratorManager
class. - added
ActiveUsersChart
class. - added
IDriveChart
class. - added
IDriveLocalChart
class. - added
IDriveRemoteChart
class. - added attribute
is_official
atConfig
class.- became
is_ayuskey
attribute is deprecated(I'll remove with v0.4.0)
- became
- added
get_exception_from_id
function. - Return an exception appropriate for the error encountered.
- @omg-xtao added
users_search_by_username_and_host
method atUserActions
class #24. - @omg-xtao added
note_translate
method atUserActions
class #24. - @omg-xtao added
users_search
method atUserActions
class #24. - added new
ClientActions
class. - added
avatar_color
property atLiteUser
class.- Note: Since avatar_color is deprecated in v13, only None is returned for v13 instances.
- added
un_renote
method atClientNoteActions
class. - added
get_children
method atClientNoteActions
class. - added
invalidate
method atFollowActions
class. - added
cancel
method atFollowRequestActions
class. - added
mute
attribute atUserManager
class. - added
MuteManager
class. - added
MuteActions
class. - added
MuteUser
class. - added
IMuteUser
class. - added
AdminActions
class. - added
ICustomEmojiLiteRequired
class. - The following methods are added to the
AdminEmojiActions
class.gets
gets_remote
- added some meta class.
ICPU
IPolicies
IAnnouncement
IV12Features
IV11Features
IFeatures
IV12AdminMeta
ISharedAdminMeta
ILiteV12Meta
ILiteV11Meta
IMetaCommonV12
ICommonV11
IMetaCommon
ILiteMeta
IV12Meta
IMeta
IAdminMeta
Policies
Features
Meta
AdminMeta
CPU
MetaCommon
LiteMeta
- added some federation class.
IFederationInstanceRequired
IFederationInstance
FederationInstance
- added some notification classes.
Notification
NotificationFollow
NotificationFollowRequest
NotificationNote
NotificationPollEnd
NotificationReaction
IUserNf
INoteNf
IPollEndNf
Changed
- rename
ActiveUsersChartPayload
class toIActiveUsersChart
class. - rename
DriveLocalChartPayload
class toIDriveLocalChart
class. - rename
DriveRemoteChartPayload
class toIDriveRemoteChart
.class. - rename
DriveChartPayload
class toIDriveChart
class. - The attribute
emojis
for Note and LiteUser is obsolete in misskey v13, so v13 will return an empty list. - config is now a global variable.
- If you want to change the config, please use
Client.config.from_dict
.
- If you want to change the config, please use
- CustomEmoji now inherits PartialCustomEmoji.
- PartialCustomEmoji url has been changed to return
str | None
to match v13. - AdminManager's
get_invite
method has been moved to `AdminActions. - BREAKING CHANGE
ClientActions
has been changed toClientManager
- BREAKING CHANGE Some paths will be changed as follows
manager.admin
->manager.admins
manager.admin.manager
->manager.admins.admin
actions.admin
->actions.admins
- BREAKING CHANGE
- The
action
property in the model has been changed toapi
.- Change
note.action.send
tonote.api.action.send
.
- Change
- Moved the reaction attribute of
ClientActions
toNoteManager
.- Change
api.reaction
toapi.note.reaction
.
- Change
- Moved methods from
AdminEmojiManager
toAdminEmojiActions
.- Change
api.admin.emoji.add
toapi.admin.emoji.action.add
.
- Change
- Moved methods from
AdminModeratorManager
toAdminModeratorActions
.- Change
api.admin.moderator.add
toapi.admin.moderator.action.add
.
- Change
- Moved methods from
ChartManager
toChartActions
.- Change
api.chart.get_active_user
toapi.chat.action.get_active_user
.
- Change
- Moved methods from
FollowManager
toFollowActions
.- Change
api.user.follow.add
toapi.user.follow.action.add
.
- Change
- Moved methods from
FollowRequestManager
toFollowRequestActions
.api.user.follow.action.get_all
.
- Moved some attributes of
NoteActions
toNoteManager
.- Change
api.note.action.reaction.add
toapi.note.reaction.action.add
.
- Change
- Moved the reaction attribute of
NoteActions
toClientNoteManager
.- Change
api.note.action.reaction
toapi.note.reaction.action
. - Change
api.note.action.favorite
toapi.note.favorite.action
.
- Change
- The
Fixed
- can't delete emoji with v12.
- fixed
ChatMessage
model.- For v13, the url is automatically generated. (Although it returns None by type, it never actually returns None.
- fixed
Chat
action. - fixed
Chat
action.
Removed
- The following attributes have been removed
api.user.action.note
- Delete
RawActiveUsersChart
class. - Delete
RawDriveLocalChart
class. - Delete
RawDriveRemoteChart
class. - Delete
RawDriveChart
class. - Delete
get_user
method atFollowRequestActions
class. - removed some meta classes.
LiteInstanceMeta
IInstanceMetaLite
IInstanceFeatures
IInstancePolicies
InstanceMeta
[0.3.1] 2022-12-24
Added
- added
NoteDeleted
class. - added
INoteUpdatedDeleteBody
class. - added
INoteUpdatedDelete
class. str_to_datetime
é¢æ°ãè¿œå
Fixed
PartialReaction
ã¯ã©ã¹ã§user_id
ãååŸã§ããªãINoteUpdatedReaction
ã®åãééã£ãŠãã
[0.3.0] 2022-12-24
Fixed
- fix
INoteUpdated
type
Changed
- BREAKING CHANGE Required Python version is 3.11
[0.2.8] 2022-12-23
Added
LiteUser
ã«action
ããããã£ãè¿œå ããŸããã- ããã«ãã
UserDetailed
ã®æ¹ããaction
ãåé€ãããŠããŸãããUserDetailed
ã¯LiteUser
ãç¶æ¿ããŠããããä»ãŸã§éããå©çšããã ããŸã
- ããã«ãã
UserActions
ã¯ã©ã¹ã«get_profile_link
ã¡ãœãããè¿œå ããŸãã
[0.2.7] 2022-12-23
Fixed
[0.2.6] - 2022-12-08
Added
INoteUpdated
ã¯ã©ã¹ãè¿œå ããŸããINoteUpdatedReactionBody
ã¯ã©ã¹ãè¿œå ããŸããINoteUpdatedReaction
ã¯ã©ã¹ãè¿œå ããŸããPartialCustomEmoji
ã¯ã©ã¹ãè¿œå ããŸããPartialReaction
ã¯ã©ã¹ãè¿œå ããŸãã
[0.2.5] - 2022-12-08
Added
ISignin
ã¯ã©ã¹ãè¿œå
Fixed
- Note ã¢ãã«ã®
content
ãç¡ãå Žå KeyError ã«ãªã - Note ã¢ãã«ã®
cw
ãç¡ãå Žå KeyError ã«ãªã
[0.2.4] - 2022-12-08
Added
ClientNoteManager
ã¯ã©ã¹ãè¿œå ããŸããClientNoteActions
ã¯ã©ã¹ãè¿œå ããŸãã
Changed
NoteActions
ãæã£ãŠããããŒãã«å¯ŸããæäœãClientNoteActions
ã«ç§»åããŸãã- ç¶æ¿ããŠããããä»ãŸã§éã䜿çšã§ããŸã
Fixed
- send ã¡ãœããã®åŒæ°
extract_hashtags
ãæ£åžžã«åäœããªã
[0.2.3] - 2022-11-27
Fixed
NoteAction.send
ã¡ãœããã§äœæããããŒãã®ã¢ãã«ãçæã§ããªãrequest
ã¡ãœããã§æ»ãå€ã list ã§ã¯ãªã dist ã ã£ãå Žå snake case ã«çœ®ãæãã§ããªã
[0.2.2] - 2022-11-27
Added
LiteUser
ã«å±æ§name
ãäºææ§ã®çºã«åè¿œå ããŸããããéæšå¥šã§ããv0.4.0 ã§åé€ããäºå®ã§ãusername
ãšname
ã®éããåºå¥ãã«ããå¯èœæ§ãããçºãæ°ãã«äœ¿çšããéã¯nickname
ã䜿çšããããšãæšå¥šããŠããŸã
Changed
- deprecated ã«é¢ããä»çµã¿ãå€æŽããŸããã
- 該åœããã³ãŒãã衚瀺ããããã«ãªã£ãŠããŸã
Fixed
- åã®ééãç
- 䜿çšããŠããã€ã³ããŒãã
TYPE_CHECKING
ã®æ¡ä»¶åŒã®äžã«å ¥ã£ãŠããçºäœ¿çšã§ããªã get_mention
ã¡ãœããã§username
ã§ã¯ãªãnickname
ã䜿çšããŠããçºæ£ãã mention ãäœããªãLiteUser
ã¯ã©ã¹ã®å±æ§instance
㧠Bot ãšåãã€ã³ã¹ã¿ã³ã¹ã®ãŠãŒã¶ãŒã®å Žå㯠None ãè¿ãã KeyError ã«ãªãå¯èœæ§ããã£ãLiteUser
ã¯ã©ã¹ã®å±æ§host
ãååŸãããš KeyError ã«ãªãå¯èœæ§ããã£ã
Removed
deprecated_property
decorator ãåé€ããŸããdeprecated_func
decorator ãåé€ããŸãã
[0.2.1] - 2022-11-27
Added
NoteActions
ã«gets
ã¡ãœãããè¿œå ãããŸãã #MP-20- Type Hint ã®è¿œå
Changed
- WebSocket ã䜿çšããéã®ã¬ã¹ãã³ã¹ã¯ã©ã¹ã
MisskeyClientWebSocketResponse
ã¯ã©ã¹ ã« Reaction
ã¯ã©ã¹ãNotificationReaction
ã«å€æŽããŸããIUserLite
ãILiteUser
ã«å€æŽããŸããLiteUser
ã®å±æ§name
ãnickname
ã«å€æŽããŸãããLiteUser
ãç¶æ¿ããŠããã¯ã©ã¹ãåæ§ã«å€æŽãããŠããŸãã®ã§ã泚æãã ããã
Removed
- print ã䜿çšãããããã°ãã°ãåé€ããŸãã
[0.2.0] - 2022-11-02
Added
- added
Modeler
class - added
IReactionRequired
class - added
IAds
class - added
LiteInstance
class - added
IReactionNf
class - added
INote
class - added
ICustomEmoji
class - added
CustomEmoji
class - added
InstanceMeta
class - added
LiteInstanceMeta
- added
IInstanceMetaLiteRequired
class - added
IInstanceMetaLite
class - added
IInstanceMeta
class - added
IPage
class - added
IPageRequired
class - added
IUserDetailedField
class - added
IUserDetailedRequired
class - added
IUserDetailed
class - added
ChatGroup
class - added
ChatMessage
class - added
IChatGroup
class - NoteActions ã¯ã©ã¹ã«
get
fetch
ã¡ãœãããè¿œå - ããŒã¿ããã£ãã·ã¥ããããã®ããŒã«ã utils.py ã«è¿œå
- orjson ã䜿çšè ã®ç°å¢ã«ããå Žå㯠json ã§ã¯ãªã orjson ã䜿çšããããã«ãªããŸãã
Changed
Dict[Any, Any]
ã®ãããªæ§æã typing ã¢ãžã¥ãŒã«ã䜿ããªãdict[any, any]
ã«å€æŽList[Any, Any]
ã®ãããªæ§æã typing ã¢ãžã¥ãŒã«ã䜿ããªãlist[any, any]
ã«å€æŽChannel
ã¯ã©ã¹ãRawChannel
ãçšããŠäœãããã«PinnedNote
ã¯ã©ã¹ãRawPinnedNote
ãçšããŠäœãããã«- change class name
PinnedNotePayload
->IPinnedNote
- change class name
ChannelPayload
->IChannel
- change class name
NotePayload
->INote
- BREAKING CHANGE renamed
Client.action
toClient.api
.
Removed
Renote
ã¯ã©ã¹ãåé€ããŸãããä»åŸã¯Note
ã¯ã©ã¹ããå©çšãã ããIRenote
,RenotePayload
ã¯ã©ã¹ãåé€ããŸãããä»åŸã¯INote
ã¯ã©ã¹ããå©çšãã ããRawEmoji
,Emoji
ã¯ã©ã¹ãåé€ããŸããã ä»åŸã¯CustomEmoji
ã¯ã©ã¹ããå©çšãã ããEmojiPayload
ã¯ã©ã¹ãåé€ããŸãããä»åŸã¯ICustomEmoji
ã¯ã©ã¹ããå©çšãã ããIReactionRequired
,ReactionPayload
ãåé€ããŸããã ä»åŸã¯IReactionNf
ã¯ã©ã¹ããå©çšãã ããRawUser
,User
ã¯ã©ã¹ãåé€ããŸãããä»åŸã¯UserDetailed
,LiteUser
ã¯ã©ã¹ããå©çšãã ããRawInstance
ã¯ã©ã¹ãåé€ããŸãããä»åŸã¯LiteInstance
ã¯ã©ã¹ããå©çšãã ããRawProperties
ã¯ã©ã¹ãåé€ããŸãããä»åŸã¯FileProperties
ã¯ã©ã¹ããå©çšãã ããRawFolder
ã¯ã©ã¹ãåé€ããŸãããä»åŸã¯Folder
ã¯ã©ã¹ããå©çšãã ããRawFile
ã¯ã©ã¹ãåé€ããŸããã ä»åŸã¯File
ã¯ã©ã¹ããå©çšãã ããRawChat
,Chat
ã¯ã©ã¹ãåé€ããŸããã ä»åŸã¯ChatMessage
ã¯ã©ã¹ããå©çšãã ããChatPayload
ã¯ã©ã¹ãåé€ããŸããã ä»åŸã¯IChatMessage
ã¯ã©ã¹ããå©çšãã ããget_note
ã¡ãœãããåé€ããŸãããä»åŸã¯get
ãããã¯fetch
ã¡ãœããããå©çšãã ããaiocache
ã䜿çšããªãããã«ãªããŸãã
Fixed
- äžéšã®åãæ£ãããªãã®ãä¿®æ£ããŸãã
[0.1.0] - 2022-05-28
Added
__all__
ã®å®çŸ©- utils.py ã«
AuthClient
ã¯ã©ã¹ãè¿œå ããŸãã Config
ã¯ã©ã¹ãè¿œå ããŸããClient
ã¯ã©ã¹ã®åŒæ°ã«config
ãè¿œå ããŸããFileActions
ã¯ã©ã¹ãè¿œå ããŸããFolderActions
ã¯ã©ã¹ãè¿œå ããŸãã- README.md ã«äœ¿ãæ¹ãè¿œå
Changed
Note
ã¯ã©ã¹ã®created_at
å±æ§ã® type hint ãOptional[str]
=>Optional[datetime]
ã«å€æŽNote
ã¯ã©ã¹ã®cw
å±æ§ã®ååŸæ¹æ³ã get ã§ã¯ãªãã£ãã®ã§ä¿®æ£- BREAKING CHANGE
FileManager
,FolderManager
,DriveManager
ã®åœ¹å²ãå€ãããŸãã- äŸã ãš
FolderManager.get_files()
ã ã£ãã³ãŒããFolderManager.action.get_files()
ãšè¡ã£ããµãã« Actions ã¯ã©ã¹ãçµç±ããããã«ãªããŸãã
- äŸã ãš
- éçºè
åãæ
å ±
Folder
ã¯ã©ã¹ã®åŒæ°ã«client
ãè¿œå ããŸãã
Fixed
- config ãç¡ãåããªãã£ãå Žæã®ä¿®æ£
- 誀ã£ãåã®ä¿®æ£
Removed
- éè€ããå±æ§ãåé€
- äžèŠãª import ã®åé€
- çµãã£ãŠãã TODO ãåé€ããŸãã