@rathnasgala2/schemas 3.25.0 → 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.
Files changed (55) hide show
  1. package/THIRD_PARTY_LICENSES.json +1 -1
  2. package/diagnostics/diagnostic-map.json +174 -0
  3. package/docs/catalogs/app-routes.json +3 -1
  4. package/docs/catalogs/schema-inventory.json +6 -6
  5. package/examples/valid/build-input/rules.json +147 -0
  6. package/examples/valid/content-frontmatter/rules.json +76 -0
  7. package/examples/valid/problem/rules.json +64 -0
  8. package/examples/valid/publication/rules.json +20 -0
  9. package/fixtures/boundary/build-input/rules.json +165 -0
  10. package/fixtures/boundary/content-frontmatter/rules.json +85 -0
  11. package/fixtures/boundary/problem/rules.json +64 -0
  12. package/fixtures/boundary/publication/rules.json +20 -0
  13. package/fixtures/invalid/build-input/REQUEST_FIELD_UNKNOWN/cases.json +45 -0
  14. package/fixtures/invalid/build-input/SCHEMA_CONSTANT_INVALID/cases.json +11 -0
  15. package/fixtures/invalid/build-input/SCHEMA_ENUM_INVALID/cases.json +22 -0
  16. package/fixtures/invalid/build-input/SCHEMA_NUMBER_TOO_LARGE/cases.json +22 -0
  17. package/fixtures/invalid/build-input/SCHEMA_NUMBER_TOO_SMALL/cases.json +22 -0
  18. package/fixtures/invalid/build-input/SCHEMA_PATTERN_INVALID/cases.json +11 -0
  19. package/fixtures/invalid/build-input/SCHEMA_REQUIRED_FIELD_MISSING/cases.json +132 -0
  20. package/fixtures/invalid/build-input/SCHEMA_TYPE_INVALID/cases.json +56 -0
  21. package/fixtures/invalid/content-frontmatter/REQUEST_FIELD_UNKNOWN/cases.json +16 -0
  22. package/fixtures/invalid/content-frontmatter/SCHEMA_CONSTANT_INVALID/cases.json +11 -0
  23. package/fixtures/invalid/content-frontmatter/SCHEMA_ENUM_INVALID/cases.json +11 -0
  24. package/fixtures/invalid/content-frontmatter/SCHEMA_NUMBER_TOO_LARGE/cases.json +11 -0
  25. package/fixtures/invalid/content-frontmatter/SCHEMA_NUMBER_TOO_SMALL/cases.json +11 -0
  26. package/fixtures/invalid/content-frontmatter/SCHEMA_PATTERN_INVALID/cases.json +11 -0
  27. package/fixtures/invalid/content-frontmatter/SCHEMA_REQUIRED_FIELD_MISSING/cases.json +54 -0
  28. package/fixtures/invalid/content-frontmatter/SCHEMA_TYPE_INVALID/cases.json +20 -0
  29. package/fixtures/invalid/problem/REQUEST_FIELD_UNKNOWN/cases.json +15 -0
  30. package/fixtures/invalid/problem/SCHEMA_NUMBER_TOO_SMALL/cases.json +44 -0
  31. package/fixtures/invalid/problem/SCHEMA_REQUIRED_FIELD_MISSING/cases.json +56 -0
  32. package/fixtures/invalid/problem/SCHEMA_TYPE_INVALID/cases.json +53 -0
  33. package/fixtures/invalid/publication/REQUEST_FIELD_UNKNOWN/cases.json +9 -0
  34. package/fixtures/invalid/publication/SCHEMA_REQUIRED_FIELD_MISSING/cases.json +9 -0
  35. package/fixtures/invalid/publication/SCHEMA_TYPE_INVALID/cases.json +18 -0
  36. package/fixtures/manifest.json +1342 -8
  37. package/fixtures/s2/manifest.json +16 -1
  38. package/fixtures/s2/normalized-inputs.json +3225 -0
  39. package/fixtures/unknown-field/build-input/rules.json +73 -0
  40. package/fixtures/unknown-field/content-frontmatter/rules.json +28 -0
  41. package/fixtures/unknown-field/problem/rules.json +30 -0
  42. package/fixtures/unknown-field/publication/rules.json +14 -0
  43. package/generated/browser/validator-core.mjs +3 -3
  44. package/generated/typescript/contracts/build-input.d.ts +19 -0
  45. package/generated/typescript/contracts/content-frontmatter.d.ts +7 -0
  46. package/generated/typescript/contracts/problem.d.ts +6 -0
  47. package/generated/typescript/contracts/publication.d.ts +5 -0
  48. package/openapi/http-catalog.json +28 -2
  49. package/openapi/openapi.yaml +650 -11
  50. package/package.json +1 -1
  51. package/sbom.cdx.json +23 -23
  52. package/schemas/build-input.schema.json +62 -1
  53. package/schemas/content-frontmatter.schema.json +31 -0
  54. package/schemas/problem.schema.json +17 -0
  55. 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;
@@ -67,6 +67,12 @@ export type ProblemDocument = Readonly<{
67
67
  readonly code: ProblemProblemCode;
68
68
  readonly correlationId: ProblemStableId;
69
69
  readonly detail: ProblemPlainText;
70
+ readonly details?: Readonly<{
71
+ readonly candidatePageCount: number;
72
+ readonly lostPageCount: number;
73
+ readonly permittedLoss: number;
74
+ readonly previousPageCount: number;
75
+ }>;
70
76
  readonly domainState?: string;
71
77
  readonly errors: ReadonlyArray<ProblemFieldError>;
72
78
  readonly expectedBase?: ProblemUrlHttps;
@@ -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:55a877835a611d3a2cbd91e8f863baeca2192a228b95de1eebc94a568ff337ac",
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:38eaece75559fa90ba57b4c0b5cd69bbd7d61188007266d18a62a48e5e33f89c"
3261
+ "digest": "sha256:28d27648fd6f8ed884b626d63d79c0a9a4b5fc9fc262755560bd62e3c051d2b8"
3236
3262
  }