unregister_identity
Toggles the management type of an identity to or from unregistered, updating the identity's status and returning the new management type.
Instructions
Toggle the unregistered management type for an identity. Returns the updated identity with the new management type.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| identityId | Yes | The ID of the identity to toggle the unregistered management type for |
Implementation Reference
- src/tools/unregisterIdentity.ts:10-13 (handler)The handler function that executes the tool logic. It calls the Admina API to toggle the unregistered management type for an identity.
export async function unregisterIdentity(params: UnregisterIdentityParams) { const client = getClient(); return client.makePutApiCall(`/identity/${params.identityId}/unregister`, {}); } - src/tools/unregisterIdentity.ts:4-6 (schema)Zod schema defining the input: identityId (string).
export const UnregisterIdentitySchema = z.object({ identityId: z.string().describe("The ID of the identity to toggle the unregistered management type for"), }); - src/index.ts:266-271 (registration)Tool registration in the server, mapping the name 'unregister_identity' to its description and schema.
{ name: "unregister_identity", description: "Toggle the unregistered management type for an identity. Returns the updated identity with the new management type.", inputSchema: zodToJsonSchema(UnregisterIdentitySchema), }, - src/index.ts:327-327 (registration)Handler mapping: the 'unregister_identity' tool call delegates to unregisterIdentity() with parsed input.
unregister_identity: async (input) => unregisterIdentity(UnregisterIdentitySchema.parse(input)), - src/tools/index.ts:31-31 (helper)Re-export of the unregisterIdentity module from the tools barrel file.
export * from "./unregisterIdentity.js";