Regenerate SDK for multi-user orgs - #162
Merged
Merged
Conversation
Picks up org invitations, graph membership, and per-user repository subscriptions from the API. - new: create_org_invitation, list_org_invitations, revoke_org_invitation, resend_org_invitation, get_invitation_preview - new: graph_members module (list, add, update role, remove) with the GraphRole enum - removed: invite_org_member, whose endpoint was a 501 stub and is replaced by the invitation flow - RegisterRequest gains invite_token; subscription responses expose the subscribing member, and cancel/plan-change accept a target user_id
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Regenerated against the merged API (robosystems #1023 + #1024).
New operations
create_org_invitation,list_org_invitations,revoke_org_invitation,resend_org_invitation, and the publicget_invitation_previewapi/graph_members/module —list_graph_members,add_graph_member,update_graph_member_role,remove_graph_member— plus theGraphRoleenum (viewer<member<admin) andGraphMemberResponseSource, which distinguishes an explicit grant from the implicit admin an org owner holdsRemoved
invite_org_memberandInviteMemberRequest— the endpoint was a 501 stub that created an unloggable user and squatted the email; the invitation flow replaces it. Nothing calls it today.Changed shapes
RegisterRequestgainsinvite_token, so registration can join an existing org instead of minting a personal oneGraphSubscriptionResponseexposesuser_id(the subscribing member — repository subscriptions are billed to the org but granted per user)CancelSubscriptionRequestandUpgradeSubscriptionRequestacceptuser_id, letting an org owner or admin manage another member's subscriptionTest plan
490 passed, 17 skipped; ruff lint + format and basedpyright clean. GraphQL schema snapshot unchanged.