diff --git a/docs/standard-library/built-in-decorators.md b/docs/standard-library/built-in-decorators.md index 0fce90f9a..7fe661ff2 100644 --- a/docs/standard-library/built-in-decorators.md +++ b/docs/standard-library/built-in-decorators.md @@ -557,6 +557,25 @@ op uploadBytes(data: bytes, @header contentType: "application/octet-stream"): vo ``` +### `@parameterVisibility` {#@parameterVisibility} + +Sets which visibilities apply to parameters for the given operation. + +```typespec +@parameterVisibility(...visibilities: valueof string[]) +``` + +#### Target + +`Operation` + +#### Parameters +| Name | Type | Description | +|------|------|-------------| +| visibilities | `valueof model string[]` | List of visibility strings which apply to this operation. | + + + ### `@pattern` {#@pattern} Specify the the pattern this string should respect using simple regular expression syntax. @@ -612,6 +631,25 @@ expireAt: int32; ``` +### `@returnTypeVisibility` {#@returnTypeVisibility} + +Sets which visibilities apply to the return type for the given operation. + +```typespec +@returnTypeVisibility(...visibilities: valueof string[]) +``` + +#### Target + +`Operation` + +#### Parameters +| Name | Type | Description | +|------|------|-------------| +| visibilities | `valueof model string[]` | List of visibility strings which apply to this operation. | + + + ### `@secret` {#@secret} Mark this string as a secret value that should be treated carefully to avoid exposure