Skip to content

Commit 30dd009

Browse files
committed
Update snapshots
1 parent 43a23c0 commit 30dd009

1 file changed

Lines changed: 57 additions & 56 deletions

File tree

packages/cma-client-analysis/__tests__/__snapshots__/code-analysis.test.ts.snap

Lines changed: 57 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1098,42 +1098,25 @@ exports[`TypeScript Compiler API - Unit Tests extractTypeDependencies uploads.cr
10981098
*/
10991099
notes?: string | null;
11001100
/**
1101-
* For each of the project's locales, the default metadata to apply if nothing is specified at record's level.
1101+
* Patch the asset's default metadata. Send any subset of \`alt\`/\`title\`/\`custom_data\`/\`focal_point\` — missing keys preserve their stored values. See the response shape for the full structure and per-key semantics.
11021102
*/
11031103
default_field_metadata?: {
1104+
alt?: LocalizedAlt;
1105+
title?: LocalizedTitle;
1106+
custom_data?: LocalizedCustomData;
11041107
/**
1105-
* This interface was referenced by \`undefined\`'s JSON-Schema definition
1106-
* via the \`patternProperty\` "^(?<languagecode>[a-z]{0,3}(-[A-Za-z]+)?(-[A-Z]{0,3})?)$".
1108+
* Focal point — non-localized; a single value applies across every locale (only meaningful for image assets)
11071109
*/
1108-
[k: string]: {
1110+
focal_point?: {
11091111
/**
1110-
* Alternate text for the asset
1112+
* Horizontal position expressed as float between 0 and 1
11111113
*/
1112-
alt?: string | null;
1114+
x: number;
11131115
/**
1114-
* Title for the asset
1116+
* Vertical position expressed as float between 0 and 1
11151117
*/
1116-
title?: string | null;
1117-
/**
1118-
* Object with arbitrary metadata
1119-
*/
1120-
custom_data?: {
1121-
[k: string]: unknown;
1122-
};
1123-
/**
1124-
* Focal point (only for image assets)
1125-
*/
1126-
focal_point?: {
1127-
/**
1128-
* Horizontal position expressed as float between 0 and 1
1129-
*/
1130-
x: number;
1131-
/**
1132-
* Vertical position expressed as float between 0 and 1
1133-
*/
1134-
y: number;
1135-
} | null;
1136-
};
1118+
y: number;
1119+
} | null;
11371120
};
11381121
/**
11391122
* Tags
@@ -1146,6 +1129,38 @@ export type UploadIdentity = string;
11461129
11471130
export type UploadType = 'upload';
11481131
1132+
export type LocalizedAlt = {
1133+
/**
1134+
* Alternate text for the asset in this locale
1135+
*
1136+
* This interface was referenced by \`LocalizedAlt\`'s JSON-Schema definition
1137+
* via the \`patternProperty\` "^(?<languagecode>[a-z]{0,3}(-[A-Za-z]+)?(-[A-Z]{0,3})?)$".
1138+
*/
1139+
[k: string]: string | null;
1140+
};
1141+
1142+
export type LocalizedTitle = {
1143+
/**
1144+
* Title for the asset in this locale
1145+
*
1146+
* This interface was referenced by \`LocalizedTitle\`'s JSON-Schema definition
1147+
* via the \`patternProperty\` "^(?<languagecode>[a-z]{0,3}(-[A-Za-z]+)?(-[A-Z]{0,3})?)$".
1148+
*/
1149+
[k: string]: string | null;
1150+
};
1151+
1152+
export type LocalizedCustomData = {
1153+
/**
1154+
* Arbitrary metadata for the asset in this locale
1155+
*
1156+
* This interface was referenced by \`LocalizedCustomData\`'s JSON-Schema definition
1157+
* via the \`patternProperty\` "^(?<languagecode>[a-z]{0,3}(-[A-Za-z]+)?(-[A-Z]{0,3})?)$".
1158+
*/
1159+
[k: string]: {
1160+
[k: string]: unknown;
1161+
};
1162+
};
1163+
11491164
export type UploadCollectionData = {
11501165
type: UploadCollectionType;
11511166
id: UploadCollectionIdentity;
@@ -1227,42 +1242,28 @@ export type Upload = {
12271242
*/
12281243
mux_mp4_highest_res: null | 'high' | 'medium' | 'low';
12291244
/**
1230-
* For each of the project's locales, the default metadata to apply if nothing is specified at record's level.
1245+
* Per-asset default metadata applied when no record-level overrides are present. \`alt\`, \`title\`, and \`custom_data\` are objects keyed by locale; \`focal_point\` is non-localized — a single value per asset, applied across every locale (only meaningful for image assets).
1246+
*
1247+
* > [!PROTIP] 📘 Requires the \`non_localized_focal_points\` environment opt-in
1248+
* > This shape is returned and accepted in environments where the opt-in is active. The opt-in is the path forward and will become the default for all projects. Environments where it is still inactive use a legacy locale-keyed shape under the hood (kept working for compatibility) — opt in to align with this documentation.
12311249
*/
12321250
default_field_metadata: {
1251+
alt: LocalizedAlt;
1252+
title: LocalizedTitle;
1253+
custom_data: LocalizedCustomData;
12331254
/**
1234-
* This interface was referenced by \`undefined\`'s JSON-Schema definition
1235-
* via the \`patternProperty\` "^(?<languagecode>[a-z]{0,3}(-[A-Za-z]+)?(-[A-Z]{0,3})?)$".
1255+
* Focal point — non-localized; a single value applies across every locale (only meaningful for image assets)
12361256
*/
1237-
[k: string]: {
1238-
/**
1239-
* Alternate text for the asset
1240-
*/
1241-
alt: string | null;
1242-
/**
1243-
* Title for the asset
1244-
*/
1245-
title: string | null;
1257+
focal_point: {
12461258
/**
1247-
* Object with arbitrary metadata
1259+
* Horizontal position expressed as float between 0 and 1
12481260
*/
1249-
custom_data: {
1250-
[k: string]: unknown;
1251-
};
1261+
x: number;
12521262
/**
1253-
* Focal point (only for image assets)
1263+
* Vertical position expressed as float between 0 and 1
12541264
*/
1255-
focal_point: {
1256-
/**
1257-
* Horizontal position expressed as float between 0 and 1
1258-
*/
1259-
x: number;
1260-
/**
1261-
* Vertical position expressed as float between 0 and 1
1262-
*/
1263-
y: number;
1264-
} | null;
1265-
};
1265+
y: number;
1266+
} | null;
12661267
};
12671268
/**
12681269
* Is this upload an image?

0 commit comments

Comments
 (0)