@@ -78,23 +78,29 @@ def sync_detailed(
7878 client : AuthenticatedClient ,
7979 body : UpgradeSubscriptionRequest ,
8080) -> Response [Any | GraphSubscriptionResponse | HTTPValidationError ]:
81- """Change Repository Plan
81+ """Change Subscription Plan
8282
83- Upgrade or downgrade a shared repository subscription plan .
83+ Change the plan on an existing subscription.
8484
85- Changes the plan on an existing subscription (e.g., SEC starter -> advanced).
86- Stripe handles proration automatically .
85+ **For shared repositories** (sec, industry, etc.): Changes access tier (e.g., starter -> advanced).
86+ Synchronous — takes effect immediately .
8787
88- **Only for shared repositories** - graph subscriptions do not support plan changes
89- (cancel and re-subscribe instead).
88+ **For user graphs** (kg*): Changes infrastructure tier (e.g., ladybug-standard -> ladybug-large).
89+ Asynchronous — returns an `operation_id` for tracking the EBS volume migration via SSE.
90+
91+ Stripe handles proration automatically for both types.
9092
9193 **Requirements:**
9294 - User must be an OWNER of their organization
9395 - Subscription must be active
94- - New plan must exist in the repository's manifest
96+ - New plan must be valid for the resource type
97+
98+ **Downgrade restrictions (graphs only):**
99+ - Subgraph count must fit the target tier's limit
100+ - Storage usage must fit the target tier's limit
95101
96102 Args:
97- graph_id (str): Repository name (e.g., 'sec')
103+ graph_id (str): Graph ID or repository name
98104 body (UpgradeSubscriptionRequest): Request to upgrade a subscription.
99105
100106 Raises:
@@ -123,23 +129,29 @@ def sync(
123129 client : AuthenticatedClient ,
124130 body : UpgradeSubscriptionRequest ,
125131) -> Any | GraphSubscriptionResponse | HTTPValidationError | None :
126- """Change Repository Plan
132+ """Change Subscription Plan
127133
128- Upgrade or downgrade a shared repository subscription plan .
134+ Change the plan on an existing subscription.
129135
130- Changes the plan on an existing subscription (e.g., SEC starter -> advanced).
131- Stripe handles proration automatically .
136+ **For shared repositories** (sec, industry, etc.): Changes access tier (e.g., starter -> advanced).
137+ Synchronous — takes effect immediately .
132138
133- **Only for shared repositories** - graph subscriptions do not support plan changes
134- (cancel and re-subscribe instead).
139+ **For user graphs** (kg*): Changes infrastructure tier (e.g., ladybug-standard -> ladybug-large).
140+ Asynchronous — returns an `operation_id` for tracking the EBS volume migration via SSE.
141+
142+ Stripe handles proration automatically for both types.
135143
136144 **Requirements:**
137145 - User must be an OWNER of their organization
138146 - Subscription must be active
139- - New plan must exist in the repository's manifest
147+ - New plan must be valid for the resource type
148+
149+ **Downgrade restrictions (graphs only):**
150+ - Subgraph count must fit the target tier's limit
151+ - Storage usage must fit the target tier's limit
140152
141153 Args:
142- graph_id (str): Repository name (e.g., 'sec')
154+ graph_id (str): Graph ID or repository name
143155 body (UpgradeSubscriptionRequest): Request to upgrade a subscription.
144156
145157 Raises:
@@ -163,23 +175,29 @@ async def asyncio_detailed(
163175 client : AuthenticatedClient ,
164176 body : UpgradeSubscriptionRequest ,
165177) -> Response [Any | GraphSubscriptionResponse | HTTPValidationError ]:
166- """Change Repository Plan
178+ """Change Subscription Plan
167179
168- Upgrade or downgrade a shared repository subscription plan .
180+ Change the plan on an existing subscription.
169181
170- Changes the plan on an existing subscription (e.g., SEC starter -> advanced).
171- Stripe handles proration automatically .
182+ **For shared repositories** (sec, industry, etc.): Changes access tier (e.g., starter -> advanced).
183+ Synchronous — takes effect immediately .
172184
173- **Only for shared repositories** - graph subscriptions do not support plan changes
174- (cancel and re-subscribe instead).
185+ **For user graphs** (kg*): Changes infrastructure tier (e.g., ladybug-standard -> ladybug-large).
186+ Asynchronous — returns an `operation_id` for tracking the EBS volume migration via SSE.
187+
188+ Stripe handles proration automatically for both types.
175189
176190 **Requirements:**
177191 - User must be an OWNER of their organization
178192 - Subscription must be active
179- - New plan must exist in the repository's manifest
193+ - New plan must be valid for the resource type
194+
195+ **Downgrade restrictions (graphs only):**
196+ - Subgraph count must fit the target tier's limit
197+ - Storage usage must fit the target tier's limit
180198
181199 Args:
182- graph_id (str): Repository name (e.g., 'sec')
200+ graph_id (str): Graph ID or repository name
183201 body (UpgradeSubscriptionRequest): Request to upgrade a subscription.
184202
185203 Raises:
@@ -206,23 +224,29 @@ async def asyncio(
206224 client : AuthenticatedClient ,
207225 body : UpgradeSubscriptionRequest ,
208226) -> Any | GraphSubscriptionResponse | HTTPValidationError | None :
209- """Change Repository Plan
227+ """Change Subscription Plan
210228
211- Upgrade or downgrade a shared repository subscription plan .
229+ Change the plan on an existing subscription.
212230
213- Changes the plan on an existing subscription (e.g., SEC starter -> advanced).
214- Stripe handles proration automatically .
231+ **For shared repositories** (sec, industry, etc.): Changes access tier (e.g., starter -> advanced).
232+ Synchronous — takes effect immediately .
215233
216- **Only for shared repositories** - graph subscriptions do not support plan changes
217- (cancel and re-subscribe instead).
234+ **For user graphs** (kg*): Changes infrastructure tier (e.g., ladybug-standard -> ladybug-large).
235+ Asynchronous — returns an `operation_id` for tracking the EBS volume migration via SSE.
236+
237+ Stripe handles proration automatically for both types.
218238
219239 **Requirements:**
220240 - User must be an OWNER of their organization
221241 - Subscription must be active
222- - New plan must exist in the repository's manifest
242+ - New plan must be valid for the resource type
243+
244+ **Downgrade restrictions (graphs only):**
245+ - Subgraph count must fit the target tier's limit
246+ - Storage usage must fit the target tier's limit
223247
224248 Args:
225- graph_id (str): Repository name (e.g., 'sec')
249+ graph_id (str): Graph ID or repository name
226250 body (UpgradeSubscriptionRequest): Request to upgrade a subscription.
227251
228252 Raises:
0 commit comments