Skip to content

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

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

Alberto Schiabel4b76dbf70d9b
diff --git a/.changeset/quiet-rules-cheer.md b/.changeset/quiet-rules-cheer.md
new file mode 100644
index 000000000..45b59185f
--- /dev/null
+++ b/.changeset/quiet-rules-cheer.md
@@ -0,0 +1,9 @@
+---
+'@composio/core': minor
+---
+
+Remove the deprecated `uuid` field from the auth config retrieve/list response type.
+
+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`).
+
+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.
diff --git a/ts/e2e-tests/runtimes/node/mastra-tool-router-zod-v3/e2e.test.ts b/ts/e2e-tests/runtimes/node/mastra-tool-router-zod-v3/e2e.test.ts
index e9b241f8d..89effa564 100644
--- a/ts/e2e-tests/runtimes/node/mastra-tool-router-zod-v3/e2e.test.ts
+++ b/ts/e2e-tests/runtimes/node/mastra-tool-router-zod-v3/e2e.test.ts
@@ -99,7 +99,7 @@ e2e(import.meta.url, {
expect(toolCalls).toBeDefined();
expect(result.error).toBeUndefined();
expect(result.object).toBeDefined();
- expect(result.object.karma).toBeGreaterThan(0);
+ expect(result.object.karma).toBeGreaterThanOrEqual(0);
await mcpClient.disconnect();
},
diff --git a/ts/packages/core/src/types/authConfigs.types.ts b/ts/packages/core/src/types/authConfigs.types.ts
index f7e457f7f..0a5470ba1 100644
--- a/ts/packages/core/src/types/authConfigs.types.ts
+++ b/ts/packages/core/src/types/authConfigs.types.ts
@@ -105,7 +105,6 @@ export const AuthConfigRetrieveResponseSchema = z.object({
}),
noOfConnections: z.number(),
status: z.enum(['ENABLED', 'DISABLED']),
- uuid: z.string(),
authScheme: AuthSchemeEnum.optional(),
credentials: z.record(z.string(), z.unknown()).optional(),
expectedInputFields: z.array(z.unknown()).optional(),
diff --git a/ts/packages/core/src/utils/transformers/authConfigs.ts b/ts/packages/core/src/utils/transformers/authConfigs.ts
index 2af246276..9ad942d8a 100644
--- a/ts/packages/core/src/utils/transformers/authConfigs.ts
+++ b/ts/packages/core/src/utils/transformers/authConfigs.ts
@@ -41,7 +41,6 @@ export function transformAuthConfigRetrieveResponse(
slug: authConfig.toolkit.slug,
},
isEnabledForToolRouter: authConfig.is_enabled_for_tool_router,
- uuid: authConfig.uuid,
authScheme: authConfig.auth_scheme,
credentials: authConfig.credentials,
expectedInputFields: authConfig.expected_input_fields,
diff --git a/ts/packages/core/test/AuthConfigs/authConfigs.test.ts b/ts/packages/core/test/AuthConfigs/authConfigs.test.ts
index b0f5114d3..d1dce5071 100644
--- a/ts/packages/core/test/AuthConfigs/authConfigs.test.ts
+++ b/ts/packages/core/test/AuthConfigs/authConfigs.test.ts
@@ -16,18 +16,11 @@ const mockComposioAuthConfigResponse: ComposioAuthConfigRetrieveResponse = {
name: 'Test Auth Config',
no_of_connections: 5,
status: 'ENABLED',
- deprecated_params: {
- default_connector_id: null,
- expected_input_fields: [],
- member_uuid: 'member_123',
- toolkit_id: 'toolkit_123',
- },
type: 'custom',
toolkit: {
logo: 'https://example.com/logo.png',
slug: 'github',
},
- uuid: 'uuid-12345',
auth_scheme: 'OAUTH2',
credentials: {
client_id: 'test_client_id',
@@ -55,7 +48,6 @@ const mockTransformedAuthConfigResponse = {
logo: 'https://example.com/logo.png',
slug: 'github',
},
- uuid: 'uuid-12345',
authScheme: 'OAUTH2',
credentials: {
client_id: 'test_client_id',
@@ -132,15 +124,11 @@ describe('AuthConfigs', () => {
name: 'Test Auth Config',
no_of_connections: 5,
status: 'ENABLED',
- deprecated_params: {
- default_connector_id: null,
- },
type: 'default',
toolkit: {
logo: 'https://example.com/logo.png',
slug: 'github',
},
- uuid: 'uuid-12345',
// Optional fields omitted
} as ComposioAuthConfigRetrieveResponse;
@@ -154,7 +142,6 @@ describe('AuthConfigs', () => {
logo: 'https://example.com/logo.png',
slug: 'github',
},
- uuid: 'uuid-12345',
});
});
});
@@ -707,15 +694,11 @@ describe('AuthConfigs', () => {
name: 'Minimal Config',
no_of_connections: 0,
status: 'DISABLED',
- deprecated_params: {
- default_connector_id: null,
- },
type: 'default',
toolkit: {
logo: '',
slug: 'minimal-toolkit',
},
- uuid: 'uuid-minimal',
} as ComposioAuthConfigRetrieveResponse;
const result = transformAuthConfigRetrieveResponse(minimalResponse);
@@ -729,7 +712,6 @@ describe('AuthConfigs', () => {
logo: '',
slug: 'minimal-toolkit',
},
- uuid: 'uuid-minimal',
});
});
diff --git a/ts/packages/core/test/utils/mocks/data.mock.ts b/ts/packages/core/test/utils/mocks/data.mock.ts
index 7c77006f9..46c144212 100644
--- a/ts/packages/core/test/utils/mocks/data.mock.ts
+++ b/ts/packages/core/test/utils/mocks/data.mock.ts
@@ -205,9 +205,6 @@ export const connectedAccountMocks = {
auth_scheme: 'OAUTH2',
is_composio_managed: true,
is_disabled: false,
- deprecated: {
- uuid: 'test-deprecated-uuid',
- },
},
id: 'test-connected-account-id',
user_id: 'default',
@@ -225,10 +222,6 @@ export const connectedAccountMocks = {
is_disabled: false,
status_reason: null,
uuid: 'test-uuid',
- deprecated: {
- labels: [],
- uuid: 'test-deprecated-uuid',
- },
},
],
},