@unkey/api
Version:
Developer-friendly & type-safe Typescript SDK specifically catered to leverage *@unkey/api* API.
43 lines (37 loc) • 1.2 kB
text/typescript
/*
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/
import * as z from "zod/v3";
export type V2PermissionsGetRoleRequestBody = {
/**
* Unique identifier of the role to permanently delete from your workspace.
*
* @remarks
* Must either be a valid role ID that begins with 'role_' or the given role name and exists within your workspace.
*
* Use this endpoint to verify role details, check its current permissions, or retrieve metadata.
* Returns complete role information including all assigned permissions for comprehensive access review.
*/
role: string;
};
/** @internal */
export type V2PermissionsGetRoleRequestBody$Outbound = {
role: string;
};
/** @internal */
export const V2PermissionsGetRoleRequestBody$outboundSchema: z.ZodType<
V2PermissionsGetRoleRequestBody$Outbound,
z.ZodTypeDef,
V2PermissionsGetRoleRequestBody
> = z.object({
role: z.string(),
});
export function v2PermissionsGetRoleRequestBodyToJSON(
v2PermissionsGetRoleRequestBody: V2PermissionsGetRoleRequestBody,
): string {
return JSON.stringify(
V2PermissionsGetRoleRequestBody$outboundSchema.parse(
v2PermissionsGetRoleRequestBody,
),
);
}