@rathnasgala2/schemas 3.25.1 → 3.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/THIRD_PARTY_LICENSES.json +1 -1
- package/diagnostics/diagnostic-map.json +132 -0
- package/docs/catalogs/app-routes.json +3 -1
- package/docs/catalogs/schema-inventory.json +5 -5
- package/examples/valid/build-input/rules.json +147 -0
- package/examples/valid/content-frontmatter/rules.json +76 -0
- package/examples/valid/publication/rules.json +20 -0
- package/fixtures/boundary/build-input/rules.json +165 -0
- package/fixtures/boundary/content-frontmatter/rules.json +85 -0
- package/fixtures/boundary/publication/rules.json +20 -0
- package/fixtures/invalid/build-input/REQUEST_FIELD_UNKNOWN/cases.json +45 -0
- package/fixtures/invalid/build-input/SCHEMA_CONSTANT_INVALID/cases.json +11 -0
- package/fixtures/invalid/build-input/SCHEMA_ENUM_INVALID/cases.json +22 -0
- package/fixtures/invalid/build-input/SCHEMA_NUMBER_TOO_LARGE/cases.json +22 -0
- package/fixtures/invalid/build-input/SCHEMA_NUMBER_TOO_SMALL/cases.json +22 -0
- package/fixtures/invalid/build-input/SCHEMA_PATTERN_INVALID/cases.json +11 -0
- package/fixtures/invalid/build-input/SCHEMA_REQUIRED_FIELD_MISSING/cases.json +132 -0
- package/fixtures/invalid/build-input/SCHEMA_TYPE_INVALID/cases.json +56 -0
- package/fixtures/invalid/content-frontmatter/REQUEST_FIELD_UNKNOWN/cases.json +16 -0
- package/fixtures/invalid/content-frontmatter/SCHEMA_CONSTANT_INVALID/cases.json +11 -0
- package/fixtures/invalid/content-frontmatter/SCHEMA_ENUM_INVALID/cases.json +11 -0
- package/fixtures/invalid/content-frontmatter/SCHEMA_NUMBER_TOO_LARGE/cases.json +11 -0
- package/fixtures/invalid/content-frontmatter/SCHEMA_NUMBER_TOO_SMALL/cases.json +11 -0
- package/fixtures/invalid/content-frontmatter/SCHEMA_PATTERN_INVALID/cases.json +11 -0
- package/fixtures/invalid/content-frontmatter/SCHEMA_REQUIRED_FIELD_MISSING/cases.json +54 -0
- package/fixtures/invalid/content-frontmatter/SCHEMA_TYPE_INVALID/cases.json +20 -0
- package/fixtures/invalid/publication/REQUEST_FIELD_UNKNOWN/cases.json +9 -0
- package/fixtures/invalid/publication/SCHEMA_REQUIRED_FIELD_MISSING/cases.json +9 -0
- package/fixtures/invalid/publication/SCHEMA_TYPE_INVALID/cases.json +18 -0
- package/fixtures/manifest.json +1018 -6
- package/fixtures/s2/manifest.json +16 -1
- package/fixtures/s2/normalized-inputs.json +3225 -0
- package/fixtures/unknown-field/build-input/rules.json +73 -0
- package/fixtures/unknown-field/content-frontmatter/rules.json +28 -0
- package/fixtures/unknown-field/publication/rules.json +14 -0
- package/generated/browser/validator-core.mjs +3 -3
- package/generated/typescript/contracts/build-input.d.ts +19 -0
- package/generated/typescript/contracts/content-frontmatter.d.ts +7 -0
- package/generated/typescript/contracts/publication.d.ts +5 -0
- package/openapi/http-catalog.json +28 -2
- package/openapi/openapi.yaml +516 -7
- package/package.json +1 -1
- package/sbom.cdx.json +23 -23
- package/schemas/build-input.schema.json +62 -1
- package/schemas/content-frontmatter.schema.json +31 -0
- package/schemas/publication.schema.json +8 -0
|
@@ -171,6 +171,7 @@ export type BuildInputContentFrontmatterNormalized = Readonly<{
|
|
|
171
171
|
readonly id: BuildInputStableId;
|
|
172
172
|
readonly kind: 'article' | 'page' | 'edition';
|
|
173
173
|
readonly language: BuildInputBcp47;
|
|
174
|
+
readonly listen?: BuildInputContentListenNormalized;
|
|
174
175
|
readonly publishedAt: BuildInputRfc3339;
|
|
175
176
|
readonly redirects: ReadonlyArray<BuildInputCanonicalRoute>;
|
|
176
177
|
readonly route?: BuildInputCanonicalRoute;
|
|
@@ -187,6 +188,12 @@ export type BuildInputContentFrontmatterNormalized = Readonly<{
|
|
|
187
188
|
}> &
|
|
188
189
|
unknown;
|
|
189
190
|
|
|
191
|
+
export type BuildInputContentListenNormalized = Readonly<{
|
|
192
|
+
readonly audio: BuildInputListenAudio;
|
|
193
|
+
readonly durationSeconds: number;
|
|
194
|
+
readonly format: 'conversation' | 'narration' | 'debate' | 'skit';
|
|
195
|
+
}>;
|
|
196
|
+
|
|
190
197
|
export type BuildInputContentSeo = Readonly<{
|
|
191
198
|
readonly canonicalUrl?: BuildInputUrlHttps;
|
|
192
199
|
readonly description?: BuildInputPlainText;
|
|
@@ -237,6 +244,17 @@ export type BuildInputInteractionsServiceOrigin = string;
|
|
|
237
244
|
|
|
238
245
|
export type BuildInputIsoCountry = string;
|
|
239
246
|
|
|
247
|
+
export type BuildInputListen = Readonly<{
|
|
248
|
+
readonly enabled: boolean;
|
|
249
|
+
}>;
|
|
250
|
+
|
|
251
|
+
export type BuildInputListenAudio = Readonly<{
|
|
252
|
+
readonly bytes: number;
|
|
253
|
+
readonly mediaType: 'audio/mpeg' | 'audio/mp4';
|
|
254
|
+
readonly sha256: BuildInputDigest;
|
|
255
|
+
readonly sourcePath: BuildInputRepoRelativePath;
|
|
256
|
+
}>;
|
|
257
|
+
|
|
240
258
|
export type BuildInputListing = Readonly<{
|
|
241
259
|
readonly pageSize?: number;
|
|
242
260
|
}>;
|
|
@@ -371,6 +389,7 @@ export type BuildInputPublicationNormalized = Readonly<{
|
|
|
371
389
|
readonly heading: BuildInputPlainText;
|
|
372
390
|
}>;
|
|
373
391
|
readonly id: BuildInputStableId;
|
|
392
|
+
readonly listen?: BuildInputListen;
|
|
374
393
|
readonly listing?: BuildInputListing;
|
|
375
394
|
readonly newsletter?: BuildInputNewsletter;
|
|
376
395
|
readonly performance?: BuildInputPerformance;
|
|
@@ -17,6 +17,12 @@ export type ContentFrontmatterContentEdition = Readonly<{
|
|
|
17
17
|
readonly sourceDigest: ContentFrontmatterDigest;
|
|
18
18
|
}>;
|
|
19
19
|
|
|
20
|
+
export type ContentFrontmatterContentListen = Readonly<{
|
|
21
|
+
readonly audio: ContentFrontmatterRepoRelativePath;
|
|
22
|
+
readonly durationSeconds: number;
|
|
23
|
+
readonly format: 'conversation' | 'narration' | 'debate' | 'skit';
|
|
24
|
+
}>;
|
|
25
|
+
|
|
20
26
|
export type ContentFrontmatterContentSeo = Readonly<{
|
|
21
27
|
readonly canonicalUrl?: ContentFrontmatterUrlHttps;
|
|
22
28
|
readonly description?: ContentFrontmatterPlainText;
|
|
@@ -84,6 +90,7 @@ export type ContentFrontmatterDocument = Readonly<{
|
|
|
84
90
|
readonly id: ContentFrontmatterStableId;
|
|
85
91
|
readonly kind: 'article' | 'page' | 'edition';
|
|
86
92
|
readonly language: ContentFrontmatterBcp47;
|
|
93
|
+
readonly listen?: ContentFrontmatterContentListen;
|
|
87
94
|
readonly newsletter?: 'ineligible' | 'eligible';
|
|
88
95
|
readonly publishAfter?: ContentFrontmatterPublishAfterDate;
|
|
89
96
|
readonly publishedAt?: ContentFrontmatterRfc3339;
|
|
@@ -42,6 +42,10 @@ export type PublicationGlob = string;
|
|
|
42
42
|
|
|
43
43
|
export type PublicationIsoCountry = string;
|
|
44
44
|
|
|
45
|
+
export type PublicationListen = Readonly<{
|
|
46
|
+
readonly enabled: boolean;
|
|
47
|
+
}>;
|
|
48
|
+
|
|
45
49
|
export type PublicationListing = Readonly<{
|
|
46
50
|
readonly pageSize?: number;
|
|
47
51
|
}>;
|
|
@@ -155,6 +159,7 @@ export type PublicationDocument = Readonly<{
|
|
|
155
159
|
readonly extensions: PublicationExtensionMap;
|
|
156
160
|
readonly footerCard?: PublicationFooterCard;
|
|
157
161
|
readonly id: PublicationStableId;
|
|
162
|
+
readonly listen?: PublicationListen;
|
|
158
163
|
readonly listing?: PublicationListing;
|
|
159
164
|
readonly newsletter?: PublicationNewsletter;
|
|
160
165
|
readonly performance?: PublicationPerformance;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": "2.0.0",
|
|
3
3
|
"sourceDesignRevision": "a53052955ceb6c1aa10c886289dc832eedfe6de0a00004df07d353ac19c4403a",
|
|
4
|
-
"openApiDigest": "sha256:
|
|
4
|
+
"openApiDigest": "sha256:07d7442bdbf45ccffadcef925e6a3b89a64bcba0a0740f45fc84a205c8ce0d87",
|
|
5
5
|
"operations": [
|
|
6
6
|
{
|
|
7
7
|
"operationId": "getInternalHealth",
|
|
@@ -1323,6 +1323,32 @@
|
|
|
1323
1323
|
"apiKeyScope": "content:write",
|
|
1324
1324
|
"sourceFragment": "interaction-settings"
|
|
1325
1325
|
},
|
|
1326
|
+
{
|
|
1327
|
+
"operationId": "getOrganizationsByOrganizationIdPublicationsByPublicationIdListenSettings",
|
|
1328
|
+
"method": "GET",
|
|
1329
|
+
"path": "/v2/organizations/{organizationId}/publications/{publicationId}/listen-settings",
|
|
1330
|
+
"purpose": "read this publication's listen settings at the main branch head",
|
|
1331
|
+
"capabilityKey": "publication.view",
|
|
1332
|
+
"conditionalCapabilityKeys": [],
|
|
1333
|
+
"activationGate": "MVP",
|
|
1334
|
+
"assuranceClass": "SESSION",
|
|
1335
|
+
"actionGrant": "none",
|
|
1336
|
+
"apiKeyScope": null,
|
|
1337
|
+
"sourceFragment": "interaction-settings"
|
|
1338
|
+
},
|
|
1339
|
+
{
|
|
1340
|
+
"operationId": "putOrganizationsByOrganizationIdPublicationsByPublicationIdListenSettings",
|
|
1341
|
+
"method": "PUT",
|
|
1342
|
+
"path": "/v2/organizations/{organizationId}/publications/{publicationId}/listen-settings",
|
|
1343
|
+
"purpose": "save this publication's listen settings as a repository change",
|
|
1344
|
+
"capabilityKey": "publication.settings.manage",
|
|
1345
|
+
"conditionalCapabilityKeys": [],
|
|
1346
|
+
"activationGate": "MVP",
|
|
1347
|
+
"assuranceClass": "SESSION",
|
|
1348
|
+
"actionGrant": "none",
|
|
1349
|
+
"apiKeyScope": null,
|
|
1350
|
+
"sourceFragment": "interaction-settings"
|
|
1351
|
+
},
|
|
1326
1352
|
{
|
|
1327
1353
|
"operationId": "postOrganizationsByOrganizationIdPublicationsByPublicationIdModerationCommentsByCommentIdDecide",
|
|
1328
1354
|
"method": "POST",
|
|
@@ -3232,5 +3258,5 @@
|
|
|
3232
3258
|
"sourceFragment": "workloads"
|
|
3233
3259
|
}
|
|
3234
3260
|
],
|
|
3235
|
-
"digest": "sha256:
|
|
3261
|
+
"digest": "sha256:28d27648fd6f8ed884b626d63d79c0a9a4b5fc9fc262755560bd62e3c051d2b8"
|
|
3236
3262
|
}
|