@docusign/iam-sdk
Version:
Developer-friendly & type-safe Typescript SDK specifically catered to leverage *@docusign/iam-sdk* API.
40 lines (34 loc) • 1.07 kB
text/typescript
/*
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/
import * as z from "zod/v3";
import { remap as remap$ } from "../../lib/primitives.js";
export type UpdateWorkspaceBrandBody = {
/**
* A GUID value that identifies a brand. For more information, see <a href="https://developers.docusign.com/docs/esign-rest-api/esign101/concepts/branding/">Branding</a>
*/
brandId?: string | null | undefined;
};
/** @internal */
export type UpdateWorkspaceBrandBody$Outbound = {
brand_id?: string | null | undefined;
};
/** @internal */
export const UpdateWorkspaceBrandBody$outboundSchema: z.ZodType<
UpdateWorkspaceBrandBody$Outbound,
z.ZodTypeDef,
UpdateWorkspaceBrandBody
> = z.object({
brandId: z.nullable(z.string()).optional(),
}).transform((v) => {
return remap$(v, {
brandId: "brand_id",
});
});
export function updateWorkspaceBrandBodyToJSON(
updateWorkspaceBrandBody: UpdateWorkspaceBrandBody,
): string {
return JSON.stringify(
UpdateWorkspaceBrandBody$outboundSchema.parse(updateWorkspaceBrandBody),
);
}