/** * @example * { * sourceCode: "alert('hello world');", * version: "0.0.1", * displayName: "Alert" * } */ export interface CustomCodeInlineRequest { /** The code to be added to the site (to be hosted by Webflow). */ sourceCode: string; /** Sub-Resource Integrity Hash. Only required for externally hosted scripts (passed via hostedLocation) */ integrityHash?: string; /** Define whether the script can be copied on site duplication and transfer */ canCopy?: boolean; /** A Semantic Version (SemVer) string, denoting the version of the script */ version: string; /** User-facing name for the script. Must be between 1 and 50 alphanumeric characters */ displayName: string; }