@devries-cameron20 / composio Mirror · read-only / commits / 4b76dbf70
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 21, 19:45 UTC

fix(core): remove deprecated auth-config `uuid` field from V3 responses (#3633)

Replacement for #3528, preserving @lingala-composio's original commit, so CI can run from a same-repository branch. The original PR is from a fork. The TypeScript E2E workflow reads `COMPOSIO_API_KEY`, `COMPOSIO_BASE_URL_STAGING`, `COMPOSIO_USER_API_KEY`, `OPENAI_API_KEY`, and `ANTHROPIC_API_KEY` from repository secrets, and GitHub does not expose those secrets to fork PR workflow runs. That is why #3528's E2E checks failed with empty env values before exercising this SDK change. ## What & Why The Composio platform is removing the deprecated V1/V2 UUID-mirror fields from V3 API responses. The TypeScript SDK read and re-exposed the auth-config `uuid`, which was a deprecated mirror of the canonical nanoid `id`. This stops the SDK from depending on the removed field. ## Changes - Drop `uuid: authConfig.uuid` from `transformAuthConfigRetrieveResponse`. - Remove `uuid` from `AuthConfigRetrieveResponseSchema`. - Update AuthConfigs tests and fixtures to match the new contract. - Keep top-level `expectedInputFields` unchanged; only the deprecated nested bag was removed. ## Verification - `git diff --check origin/next...HEAD` - `pnpm --filter @composio/core test AuthConfigs` --------- Co-authored-by: lingala-composio <rahul.lingala@composio.dev> Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

Alberto Schiabel committed Jun 22, 2026 at 14:28 UTC 4b76dbf70d9b9f34530a480b0ed7e3f2ecbc9e87
6 files changed +10 -28
.changeset/quiet-rules-cheer.md new
+9
@@ -0,0 +1,9 @@
1 +---
2 +'@composio/core': minor
3 +---
4 +
5 +Remove the deprecated `uuid` field from the auth config retrieve/list response type.
6 +
7 +The platform has removed the deprecated V1/V2 UUID-mirror field from V3 API responses (it was a mirror of the canonical nanoid `id`). The SDK no longer reads or re-exposes `uuid` on `AuthConfigRetrieveResponse` (and therefore on the items of `AuthConfigListResponse`).
8 +
9 +This is technically a breaking change to the SDK response type: consumers should use `id` instead of `uuid`. The `expectedInputFields` field is unaffected — it remains a top-level field on the API response.
ts/e2e-tests/runtimes/node/mastra-tool-router-zod-v3/e2e.test.ts
+1 -1
@@ -99,7 +99,7 @@ e2e(import.meta.url, {
99 expect(toolCalls).toBeDefined();
100 expect(result.error).toBeUndefined();
101 expect(result.object).toBeDefined();
102 - expect(result.object.karma).toBeGreaterThan(0);
102 + expect(result.object.karma).toBeGreaterThanOrEqual(0);
103
104 await mcpClient.disconnect();
105 },
ts/packages/core/src/types/authConfigs.types.ts
-1
@@ -105,7 +105,6 @@ export const AuthConfigRetrieveResponseSchema = z.object({
105 }),
106 noOfConnections: z.number(),
107 status: z.enum(['ENABLED', 'DISABLED']),
108 - uuid: z.string(),
108 authScheme: AuthSchemeEnum.optional(),
109 credentials: z.record(z.string(), z.unknown()).optional(),
110 expectedInputFields: z.array(z.unknown()).optional(),
ts/packages/core/src/utils/transformers/authConfigs.ts
-1
@@ -41,7 +41,6 @@ export function transformAuthConfigRetrieveResponse(
41 slug: authConfig.toolkit.slug,
42 },
43 isEnabledForToolRouter: authConfig.is_enabled_for_tool_router,
44 - uuid: authConfig.uuid,
44 authScheme: authConfig.auth_scheme,
45 credentials: authConfig.credentials,
46 expectedInputFields: authConfig.expected_input_fields,
ts/packages/core/test/AuthConfigs/authConfigs.test.ts
-18
@@ -16,18 +16,11 @@ const mockComposioAuthConfigResponse: ComposioAuthConfigRetrieveResponse = {
16 name: 'Test Auth Config',
17 no_of_connections: 5,
18 status: 'ENABLED',
19 - deprecated_params: {
20 - default_connector_id: null,
21 - expected_input_fields: [],
22 - member_uuid: 'member_123',
23 - toolkit_id: 'toolkit_123',
24 - },
19 type: 'custom',
20 toolkit: {
21 logo: 'https://example.com/logo.png',
22 slug: 'github',
23 },
30 - uuid: 'uuid-12345',
24 auth_scheme: 'OAUTH2',
25 credentials: {
26 client_id: 'test_client_id',
@@ -55,7 +48,6 @@ const mockTransformedAuthConfigResponse = {
48 logo: 'https://example.com/logo.png',
49 slug: 'github',
50 },
58 - uuid: 'uuid-12345',
51 authScheme: 'OAUTH2',
52 credentials: {
53 client_id: 'test_client_id',
@@ -132,15 +124,11 @@ describe('AuthConfigs', () => {
124 name: 'Test Auth Config',
125 no_of_connections: 5,
126 status: 'ENABLED',
135 - deprecated_params: {
136 - default_connector_id: null,
137 - },
127 type: 'default',
128 toolkit: {
129 logo: 'https://example.com/logo.png',
130 slug: 'github',
131 },
143 - uuid: 'uuid-12345',
132 // Optional fields omitted
133 } as ComposioAuthConfigRetrieveResponse;
134
@@ -154,7 +142,6 @@ describe('AuthConfigs', () => {
142 logo: 'https://example.com/logo.png',
143 slug: 'github',
144 },
157 - uuid: 'uuid-12345',
145 });
146 });
147 });
@@ -707,15 +694,11 @@ describe('AuthConfigs', () => {
694 name: 'Minimal Config',
695 no_of_connections: 0,
696 status: 'DISABLED',
710 - deprecated_params: {
711 - default_connector_id: null,
712 - },
697 type: 'default',
698 toolkit: {
699 logo: '',
700 slug: 'minimal-toolkit',
701 },
718 - uuid: 'uuid-minimal',
702 } as ComposioAuthConfigRetrieveResponse;
703
704 const result = transformAuthConfigRetrieveResponse(minimalResponse);
@@ -729,7 +712,6 @@ describe('AuthConfigs', () => {
712 logo: '',
713 slug: 'minimal-toolkit',
714 },
732 - uuid: 'uuid-minimal',
715 });
716 });
717
ts/packages/core/test/utils/mocks/data.mock.ts
-7
@@ -205,9 +205,6 @@ export const connectedAccountMocks = {
205 auth_scheme: 'OAUTH2',
206 is_composio_managed: true,
207 is_disabled: false,
208 - deprecated: {
209 - uuid: 'test-deprecated-uuid',
210 - },
208 },
209 id: 'test-connected-account-id',
210 user_id: 'default',
@@ -225,10 +222,6 @@ export const connectedAccountMocks = {
222 is_disabled: false,
223 status_reason: null,
224 uuid: 'test-uuid',
228 - deprecated: {
229 - labels: [],
230 - uuid: 'test-deprecated-uuid',
231 - },
225 },
226 ],
227 },