@devries-cameron20 / composio Mirror · read-only / commits / 35641a7ad
Fork 0

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

Mirrored from https://github.com/Camo67/composio.git

Synced Nov 22, 03:15 UTC

refactor(python): normalize spread order in all AuthScheme helpers

Align all Python auth scheme methods to use {"status": ..., **options} (default-first, user-overrides) matching the TypeScript convention. Previously, non-OAuth methods used {**options, "status": "ACTIVE"} which prevented user overrides, creating an inconsistency with OAuth methods.

jkomyno committed Mar 13, 2026 at 02:14 UTC 35641a7ad5fc91076753d9aae8c480bdf74cab30
1 file changed +9 -9
python/composio/core/models/connected_accounts.py
+9 -9
@@ -147,8 +147,8 @@ class AuthScheme:
147 "val": t.cast(
148 connected_account_create_params.ConnectionStateUnionMember2Val,
149 {
150 - **options,
150 "status": "INITIALIZING",
151 + **options,
152 },
153 ),
154 },
@@ -167,8 +167,8 @@ class AuthScheme:
167 "val": t.cast(
168 connected_account_create_params.ConnectionStateUnionMember3Val,
169 {
170 - **options,
170 "status": "ACTIVE",
171 + **options,
172 },
173 ),
174 },
@@ -187,8 +187,8 @@ class AuthScheme:
187 "val": t.cast(
188 connected_account_create_params.ConnectionStateUnionMember4Val,
189 {
190 - **options,
190 "status": "ACTIVE",
191 + **options,
192 },
193 ),
194 },
@@ -207,8 +207,8 @@ class AuthScheme:
207 "val": t.cast(
208 connected_account_create_params.ConnectionStateUnionMember5Val,
209 {
210 - **options,
210 "status": "ACTIVE",
211 + **options,
212 },
213 ),
214 },
@@ -227,8 +227,8 @@ class AuthScheme:
227 "val": t.cast(
228 connected_account_create_params.ConnectionStateUnionMember6Val,
229 {
230 - **options,
230 "status": "ACTIVE",
231 + **options,
232 },
233 ),
234 },
@@ -245,8 +245,8 @@ class AuthScheme:
245 "val": t.cast(
246 connected_account_create_params.ConnectionStateUnionMember7Val,
247 {
248 - **options,
248 "status": "ACTIVE",
249 + **options,
250 },
251 ),
252 }
@@ -262,8 +262,8 @@ class AuthScheme:
262 "val": t.cast(
263 connected_account_create_params.ConnectionStateUnionMember8Val,
264 {
265 - **options,
265 "status": "ACTIVE",
266 + **options,
267 },
268 ),
269 }
@@ -281,8 +281,8 @@ class AuthScheme:
281 "val": t.cast(
282 connected_account_create_params.ConnectionStateUnionMember9Val,
283 {
284 - **options,
284 "status": "ACTIVE",
285 + **options,
286 },
287 ),
288 },
@@ -301,8 +301,8 @@ class AuthScheme:
301 "val": t.cast(
302 connected_account_create_params.ConnectionStateUnionMember10Val,
303 {
304 - **options,
304 "status": "ACTIVE",
305 + **options,
306 },
307 ),
308 },