Skip to content

feat: Add cancel subscription request and delete graph operation models#110

Merged
jfrench9 merged 1 commit intomainfrom
feature/graph-immediate-deprovision
May 6, 2026
Merged

feat: Add cancel subscription request and delete graph operation models#110
jfrench9 merged 1 commit intomainfrom
feature/graph-immediate-deprovision

Conversation

@jfrench9
Copy link
Copy Markdown
Member

@jfrench9 jfrench9 commented May 6, 2026

Summary

Implements new API models and endpoints to support cancel subscription requests with configurable parameters and a new delete graph operation for immediate graph deprovisioning.

Key Accomplishments

Cancel Subscription Request Model & API Updates

  • New CancelSubscriptionRequest model (cancel_subscription_request.py): Introduces a structured request body for canceling organization subscriptions, enabling richer request semantics beyond simple endpoint calls.
  • Updated cancel_org_subscription API to accept and serialize the new CancelSubscriptionRequest model, replacing the previous minimal implementation with a more fully-featured request/response flow.

Delete Graph Operation

  • New DeleteGraphOp model (delete_graph_op.py): Defines the data model for tracking delete graph operations, supporting the immediate deprovision workflow.
  • New op_delete_graph API module (op_delete_graph.py): Implements the full API client surface for the delete graph operation endpoint, including synchronous and asynchronous variants with both parsed and raw HTTP response options (4 method variants total).

Model Registry

  • Updated models/__init__.py to export the two new models (CancelSubscriptionRequest, DeleteGraphOp), ensuring they are available as part of the public client API surface.

Breaking Changes

  • The cancel_org_subscription API signature has changed to accommodate the new CancelSubscriptionRequest body parameter. Callers that previously invoked this endpoint will need to update their calls to provide the request model.

Testing Notes

  • Verify that cancel subscription requests properly serialize the new request body and that the API returns expected responses.
  • Validate the delete graph operation lifecycle: creation, status polling, and completion.
  • Test both sync and async code paths for the new op_delete_graph endpoint.
  • Confirm backward compatibility of model deserialization for any existing integrations consuming these API responses.

Infrastructure Considerations

  • This is a client SDK change — no infrastructure deployment is required, but downstream services must already support the new cancel subscription request body schema and the delete graph operation endpoint.
  • Consumers of the client library should update to this version if they need immediate graph deprovisioning capabilities or the enhanced subscription cancellation flow.

🤖 Generated with Claude Code

Branch Info:

  • Source: feature/graph-immediate-deprovision
  • Target: main
  • Type: feature

Co-Authored-By: Claude noreply@anthropic.com

@jfrench9 jfrench9 merged commit 44bcc86 into main May 6, 2026
1 check passed
@jfrench9 jfrench9 deleted the feature/graph-immediate-deprovision branch May 6, 2026 01:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant