@panneau/protocol 5.0.0-alpha.5 → 5.0.0-alpha.6

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.
@@ -56,6 +56,7 @@ export declare const namedSchemas: {
56
56
  rule: z.ZodEnum<{
57
57
  email: "email";
58
58
  url: "url";
59
+ json: "json";
59
60
  }>;
60
61
  message: z.ZodOptional<z.ZodString>;
61
62
  }, z.core.$loose>, z.ZodObject<{
@@ -126,6 +127,7 @@ export declare const namedSchemas: {
126
127
  rule: z.ZodEnum<{
127
128
  email: "email";
128
129
  url: "url";
130
+ json: "json";
129
131
  }>;
130
132
  message: z.ZodOptional<z.ZodString>;
131
133
  }, z.core.$loose>, z.ZodObject<{
@@ -353,6 +355,7 @@ export declare const namedSchemas: {
353
355
  rule: z.ZodEnum<{
354
356
  email: "email";
355
357
  url: "url";
358
+ json: "json";
356
359
  }>;
357
360
  message: z.ZodOptional<z.ZodString>;
358
361
  }, z.core.$loose>, z.ZodObject<{
@@ -503,6 +506,7 @@ export declare const namedSchemas: {
503
506
  rule: z.ZodEnum<{
504
507
  email: "email";
505
508
  url: "url";
509
+ json: "json";
506
510
  }>;
507
511
  message: z.ZodOptional<z.ZodString>;
508
512
  }, z.core.$loose>, z.ZodObject<{
@@ -688,6 +692,7 @@ export declare const namedSchemas: {
688
692
  rule: z.ZodEnum<{
689
693
  email: "email";
690
694
  url: "url";
695
+ json: "json";
691
696
  }>;
692
697
  message: z.ZodOptional<z.ZodString>;
693
698
  }, z.core.$loose>, z.ZodObject<{
@@ -1088,6 +1093,7 @@ export declare const namedSchemas: {
1088
1093
  rule: z.ZodEnum<{
1089
1094
  email: "email";
1090
1095
  url: "url";
1096
+ json: "json";
1091
1097
  }>;
1092
1098
  message: z.ZodOptional<z.ZodString>;
1093
1099
  }, z.core.$loose>, z.ZodObject<{
@@ -1273,6 +1279,7 @@ export declare const namedSchemas: {
1273
1279
  rule: z.ZodEnum<{
1274
1280
  email: "email";
1275
1281
  url: "url";
1282
+ json: "json";
1276
1283
  }>;
1277
1284
  message: z.ZodOptional<z.ZodString>;
1278
1285
  }, z.core.$loose>, z.ZodObject<{
@@ -1816,6 +1823,10 @@ export declare const namedSchemas: {
1816
1823
  processing: "processing";
1817
1824
  ready: "ready";
1818
1825
  }>>;
1826
+ error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1827
+ code: z.ZodString;
1828
+ message: z.ZodOptional<z.ZodString>;
1829
+ }, z.core.$loose>>>;
1819
1830
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1820
1831
  transform: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1821
1832
  crop: z.ZodOptional<z.ZodObject<{
@@ -1862,6 +1873,10 @@ export declare const namedSchemas: {
1862
1873
  processing: "processing";
1863
1874
  ready: "ready";
1864
1875
  }>>;
1876
+ error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1877
+ code: z.ZodString;
1878
+ message: z.ZodOptional<z.ZodString>;
1879
+ }, z.core.$loose>>>;
1865
1880
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1866
1881
  transform: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1867
1882
  crop: z.ZodOptional<z.ZodObject<{
@@ -1909,6 +1924,10 @@ export declare const namedSchemas: {
1909
1924
  processing: "processing";
1910
1925
  ready: "ready";
1911
1926
  }>>;
1927
+ error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1928
+ code: z.ZodString;
1929
+ message: z.ZodOptional<z.ZodString>;
1930
+ }, z.core.$loose>>>;
1912
1931
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1913
1932
  transform: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1914
1933
  crop: z.ZodOptional<z.ZodObject<{
@@ -1977,6 +1996,45 @@ export declare const namedSchemas: {
1977
1996
  url: z.ZodString;
1978
1997
  expiresAt: z.ZodOptional<z.ZodString>;
1979
1998
  }, z.core.$loose>;
1999
+ EmbedValue: z.ZodObject<{
2000
+ url: z.ZodString;
2001
+ type: z.ZodOptional<z.ZodEnum<{
2002
+ link: "link";
2003
+ video: "video";
2004
+ audio: "audio";
2005
+ photo: "photo";
2006
+ rich: "rich";
2007
+ }>>;
2008
+ title: z.ZodOptional<z.ZodString>;
2009
+ provider: z.ZodOptional<z.ZodString>;
2010
+ thumbnailUrl: z.ZodOptional<z.ZodString>;
2011
+ html: z.ZodOptional<z.ZodString>;
2012
+ width: z.ZodOptional<z.ZodNumber>;
2013
+ height: z.ZodOptional<z.ZodNumber>;
2014
+ }, z.core.$loose>;
2015
+ EmbedResponse: z.ZodObject<{
2016
+ data: z.ZodObject<{
2017
+ url: z.ZodString;
2018
+ type: z.ZodOptional<z.ZodEnum<{
2019
+ link: "link";
2020
+ video: "video";
2021
+ audio: "audio";
2022
+ photo: "photo";
2023
+ rich: "rich";
2024
+ }>>;
2025
+ title: z.ZodOptional<z.ZodString>;
2026
+ provider: z.ZodOptional<z.ZodString>;
2027
+ thumbnailUrl: z.ZodOptional<z.ZodString>;
2028
+ html: z.ZodOptional<z.ZodString>;
2029
+ width: z.ZodOptional<z.ZodNumber>;
2030
+ height: z.ZodOptional<z.ZodNumber>;
2031
+ }, z.core.$loose>;
2032
+ }, z.core.$loose>;
2033
+ LocationValue: z.ZodObject<{
2034
+ lat: z.ZodNumber;
2035
+ lng: z.ZodNumber;
2036
+ address: z.ZodOptional<z.ZodString>;
2037
+ }, z.core.$loose>;
1980
2038
  };
1981
2039
  /** A registry of the named schemas, used to reference them by name in generated files. */
1982
2040
  export declare function createSchemaRegistry(): z.core.$ZodRegistry<{
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAcH,cAAc,EAajB,MAAM,OAAO,CAAC;AACf,OAAO,EAAa,SAAS,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DefinitionTheme, Theme, ThemeFont, ThemeFontFace, ThemeFontStylesheet, ThemeTokens, ToneInput, ToneValues } from "./theme.js";
8
8
  import { Auth, AuthProvider, Definition, MenuItem, Page, Uploads, User, Widget } from "./definition.js";
9
- import { ActionItemResult, ActionRequest, ActionResult, ActionRun, ActionRunResponse, FieldCheckRequest, FieldCheckResponse, Item, ItemResponse, ListResponse, MediaInfo, MediaItem, MediaReference, MediaTransform, Pagination, PreviewResponse, Problem, SearchResponse, Selection, Session, StoredFile, Upload, UploadReference, UploadResponse, UploadSignRequest, UploadSignResponse } from "./api.js";
9
+ import { ActionItemResult, ActionRequest, ActionResult, ActionRun, ActionRunResponse, EmbedResponse, EmbedValue, FieldCheckRequest, FieldCheckResponse, Item, ItemResponse, ListResponse, LocationValue, MediaInfo, MediaItem, MediaReference, MediaTransform, Pagination, PreviewResponse, Problem, SearchResponse, Selection, Session, StoredFile, Upload, UploadReference, UploadResponse, UploadSignRequest, UploadSignResponse } from "./api.js";
10
10
  import { BootConfig } from "./boot.js";
11
11
  import { z } from "zod";
12
12
  //#region src/schemas/index.ts
@@ -71,7 +71,10 @@ var namedSchemas = {
71
71
  MediaReference,
72
72
  Session,
73
73
  SearchResponse,
74
- PreviewResponse
74
+ PreviewResponse,
75
+ EmbedValue,
76
+ EmbedResponse,
77
+ LocationValue
75
78
  };
76
79
  /** A registry of the named schemas, used to reference them by name in generated files. */
77
80
  function createSchemaRegistry() {
@@ -80,6 +83,6 @@ function createSchemaRegistry() {
80
83
  return registry;
81
84
  }
82
85
  //#endregion
83
- export { Abilities, Action, ActionConfirm, ActionItemResult, ActionPlacement, ActionRequest, ActionResult, ActionRun, ActionRunResponse, ActionScope, Auth, AuthProvider, BlockType, BootConfig, Column, Condition, Definition, DefinitionTheme, Field, FieldCheckRequest, FieldCheckResponse, Filter, Id, Item, ItemResponse, LayoutNode, ListDefinition, ListResponse, MediaInfo, MediaItem, MediaReference, MediaTransform, MenuItem, Option, Page, Pagination, PreviewResponse, Problem, Resource, ResourceFeatures, RouteReference, Rule, SearchResponse, Selection, Session, StoredFile, Theme, ThemeFont, ThemeFontFace, ThemeFontStylesheet, ThemeTokens, ToneInput, ToneValues, Upload, UploadReference, UploadResponse, UploadSignRequest, UploadSignResponse, Uploads, User, Widget, createSchemaRegistry, namedSchemas };
86
+ export { Abilities, Action, ActionConfirm, ActionItemResult, ActionPlacement, ActionRequest, ActionResult, ActionRun, ActionRunResponse, ActionScope, Auth, AuthProvider, BlockType, BootConfig, Column, Condition, Definition, DefinitionTheme, EmbedResponse, EmbedValue, Field, FieldCheckRequest, FieldCheckResponse, Filter, Id, Item, ItemResponse, LayoutNode, ListDefinition, ListResponse, LocationValue, MediaInfo, MediaItem, MediaReference, MediaTransform, MenuItem, Option, Page, Pagination, PreviewResponse, Problem, Resource, ResourceFeatures, RouteReference, Rule, SearchResponse, Selection, Session, StoredFile, Theme, ThemeFont, ThemeFontFace, ThemeFontStylesheet, ThemeTokens, ToneInput, ToneValues, Upload, UploadReference, UploadResponse, UploadSignRequest, UploadSignResponse, Uploads, User, Widget, createSchemaRegistry, namedSchemas };
84
87
 
85
88
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../src/schemas/index.ts"],"sourcesContent":["import { z } from 'zod';\n\nimport { Action, ActionConfirm, ActionPlacement, ActionScope } from './action';\nimport {\n ActionItemResult,\n ActionRequest,\n ActionResult,\n ActionRun,\n ActionRunResponse,\n FieldCheckRequest,\n FieldCheckResponse,\n Item,\n ItemResponse,\n ListResponse,\n MediaInfo,\n MediaItem,\n MediaReference,\n MediaTransform,\n Pagination,\n PreviewResponse,\n Problem,\n SearchResponse,\n Selection,\n Session,\n StoredFile,\n Upload,\n UploadReference,\n UploadResponse,\n UploadSignRequest,\n UploadSignResponse,\n} from './api';\nimport { Abilities, Condition, Id, Option, RouteReference } from './common';\nimport {\n Auth,\n AuthProvider,\n Definition,\n MenuItem,\n Page,\n Uploads,\n User,\n Widget,\n} from './definition';\nimport { BlockType, Field, Rule } from './field';\nimport { LayoutNode } from './layout';\nimport { Column, Filter, ListDefinition } from './list';\nimport { Resource, ResourceFeatures } from './resource';\nimport {\n DefinitionTheme,\n Theme,\n ThemeFont,\n ThemeFontFace,\n ThemeFontStylesheet,\n ThemeTokens,\n ToneInput,\n ToneValues,\n} from './theme';\n\nexport * from './common';\nexport * from './field';\nexport * from './layout';\nexport * from './list';\nexport * from './action';\nexport * from './resource';\nexport * from './theme';\nexport * from './definition';\nexport * from './api';\nexport * from './boot';\n\n/** The named schemas of the protocol, as they appear in the generated JSON Schema and OpenAPI files. */\nexport const namedSchemas = {\n Id,\n Abilities,\n RouteReference,\n Condition,\n Option,\n Rule,\n BlockType,\n Field,\n LayoutNode,\n Column,\n Filter,\n ListDefinition,\n ActionScope,\n ActionPlacement,\n ActionConfirm,\n Action,\n ResourceFeatures,\n Resource,\n User,\n AuthProvider,\n Auth,\n MenuItem,\n Page,\n Widget,\n Uploads,\n ThemeTokens,\n ToneValues,\n ToneInput,\n ThemeFontFace,\n ThemeFontStylesheet,\n ThemeFont,\n Theme,\n DefinitionTheme,\n Definition,\n Item,\n Pagination,\n ItemResponse,\n ListResponse,\n Problem,\n Selection,\n ActionRequest,\n ActionItemResult,\n ActionResult,\n ActionRun,\n ActionRunResponse,\n MediaTransform,\n StoredFile,\n UploadReference,\n Upload,\n UploadResponse,\n UploadSignRequest,\n UploadSignResponse,\n FieldCheckRequest,\n FieldCheckResponse,\n MediaInfo,\n MediaItem,\n MediaReference,\n Session,\n SearchResponse,\n PreviewResponse,\n} satisfies Record<string, z.ZodType>;\n\n/** A registry of the named schemas, used to reference them by name in generated files. */\nexport function createSchemaRegistry() {\n const registry = z.registry<{ id: string }>();\n Object.entries(namedSchemas).forEach(([id, schema]) => registry.add(schema, { id }));\n return registry;\n}\n"],"mappings":";;;;;;;;;;;;;AAqEA,IAAa,eAAe;CACxB;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACJ;;AAGA,SAAgB,uBAAuB;CACnC,MAAM,WAAW,EAAE,SAAyB;CAC5C,OAAO,QAAQ,YAAY,CAAC,CAAC,SAAS,CAAC,IAAI,YAAY,SAAS,IAAI,QAAQ,EAAE,GAAG,CAAC,CAAC;CACnF,OAAO;AACX"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../src/schemas/index.ts"],"sourcesContent":["import { z } from 'zod';\n\nimport { Action, ActionConfirm, ActionPlacement, ActionScope } from './action';\nimport {\n ActionItemResult,\n ActionRequest,\n ActionResult,\n ActionRun,\n ActionRunResponse,\n EmbedResponse,\n EmbedValue,\n FieldCheckRequest,\n FieldCheckResponse,\n Item,\n ItemResponse,\n ListResponse,\n LocationValue,\n MediaInfo,\n MediaItem,\n MediaReference,\n MediaTransform,\n Pagination,\n PreviewResponse,\n Problem,\n SearchResponse,\n Selection,\n Session,\n StoredFile,\n Upload,\n UploadReference,\n UploadResponse,\n UploadSignRequest,\n UploadSignResponse,\n} from './api';\nimport { Abilities, Condition, Id, Option, RouteReference } from './common';\nimport {\n Auth,\n AuthProvider,\n Definition,\n MenuItem,\n Page,\n Uploads,\n User,\n Widget,\n} from './definition';\nimport { BlockType, Field, Rule } from './field';\nimport { LayoutNode } from './layout';\nimport { Column, Filter, ListDefinition } from './list';\nimport { Resource, ResourceFeatures } from './resource';\nimport {\n DefinitionTheme,\n Theme,\n ThemeFont,\n ThemeFontFace,\n ThemeFontStylesheet,\n ThemeTokens,\n ToneInput,\n ToneValues,\n} from './theme';\n\nexport * from './common';\nexport * from './field';\nexport * from './layout';\nexport * from './list';\nexport * from './action';\nexport * from './resource';\nexport * from './theme';\nexport * from './definition';\nexport * from './api';\nexport * from './boot';\n\n/** The named schemas of the protocol, as they appear in the generated JSON Schema and OpenAPI files. */\nexport const namedSchemas = {\n Id,\n Abilities,\n RouteReference,\n Condition,\n Option,\n Rule,\n BlockType,\n Field,\n LayoutNode,\n Column,\n Filter,\n ListDefinition,\n ActionScope,\n ActionPlacement,\n ActionConfirm,\n Action,\n ResourceFeatures,\n Resource,\n User,\n AuthProvider,\n Auth,\n MenuItem,\n Page,\n Widget,\n Uploads,\n ThemeTokens,\n ToneValues,\n ToneInput,\n ThemeFontFace,\n ThemeFontStylesheet,\n ThemeFont,\n Theme,\n DefinitionTheme,\n Definition,\n Item,\n Pagination,\n ItemResponse,\n ListResponse,\n Problem,\n Selection,\n ActionRequest,\n ActionItemResult,\n ActionResult,\n ActionRun,\n ActionRunResponse,\n MediaTransform,\n StoredFile,\n UploadReference,\n Upload,\n UploadResponse,\n UploadSignRequest,\n UploadSignResponse,\n FieldCheckRequest,\n FieldCheckResponse,\n MediaInfo,\n MediaItem,\n MediaReference,\n Session,\n SearchResponse,\n PreviewResponse,\n EmbedValue,\n EmbedResponse,\n LocationValue,\n} satisfies Record<string, z.ZodType>;\n\n/** A registry of the named schemas, used to reference them by name in generated files. */\nexport function createSchemaRegistry() {\n const registry = z.registry<{ id: string }>();\n Object.entries(namedSchemas).forEach(([id, schema]) => registry.add(schema, { id }));\n return registry;\n}\n"],"mappings":";;;;;;;;;;;;;AAwEA,IAAa,eAAe;CACxB;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACJ;;AAGA,SAAgB,uBAAuB;CACnC,MAAM,WAAW,EAAE,SAAyB;CAC5C,OAAO,QAAQ,YAAY,CAAC,CAAC,SAAS,CAAC,IAAI,YAAY,SAAS,IAAI,QAAQ,EAAE,GAAG,CAAC,CAAC;CACnF,OAAO;AACX"}
@@ -55,6 +55,7 @@ export declare const Resource: z.ZodObject<{
55
55
  rule: z.ZodEnum<{
56
56
  email: "email";
57
57
  url: "url";
58
+ json: "json";
58
59
  }>;
59
60
  message: z.ZodOptional<z.ZodString>;
60
61
  }, z.core.$loose>, z.ZodObject<{
@@ -240,6 +241,7 @@ export declare const Resource: z.ZodObject<{
240
241
  rule: z.ZodEnum<{
241
242
  email: "email";
242
243
  url: "url";
244
+ json: "json";
243
245
  }>;
244
246
  message: z.ZodOptional<z.ZodString>;
245
247
  }, z.core.$loose>, z.ZodObject<{
@@ -1 +1 @@
1
- {"version":3,"file":"resource.d.ts","sourceRoot":"","sources":["../../src/schemas/resource.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAGtC,eAAO,MAAM,gBAAgB;;;;;;;;;;;iBAmB3B,CAAC;AAEH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;AAChD,sEAAsE;AACtE,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@panneau/protocol",
3
- "version": "5.0.0-alpha.5",
3
+ "version": "5.0.0-alpha.6",
4
4
  "description": "The Panneau protocol: definition schema, HTTP API spec and conformance kit",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -460,7 +460,8 @@
460
460
  "type": "string",
461
461
  "enum": [
462
462
  "email",
463
- "url"
463
+ "url",
464
+ "json"
464
465
  ]
465
466
  },
466
467
  "message": {
@@ -426,7 +426,8 @@
426
426
  "type": "string",
427
427
  "enum": [
428
428
  "email",
429
- "url"
429
+ "url",
430
+ "json"
430
431
  ]
431
432
  },
432
433
  "message": {
@@ -1574,6 +1574,64 @@
1574
1574
  }
1575
1575
  }
1576
1576
  },
1577
+ "/embeds": {
1578
+ "get": {
1579
+ "operationId": "resolveEmbed",
1580
+ "parameters": [
1581
+ {
1582
+ "name": "url",
1583
+ "in": "query",
1584
+ "required": true,
1585
+ "description": "The URL to embed.",
1586
+ "schema": {
1587
+ "type": "string"
1588
+ }
1589
+ }
1590
+ ],
1591
+ "responses": {
1592
+ "200": {
1593
+ "description": "The value of an `embed` field for the URL, from its provider's oEmbed.",
1594
+ "content": {
1595
+ "application/json": {
1596
+ "schema": {
1597
+ "$ref": "#/components/schemas/EmbedResponse"
1598
+ }
1599
+ }
1600
+ }
1601
+ },
1602
+ "401": {
1603
+ "description": "Not authenticated.",
1604
+ "content": {
1605
+ "application/problem+json": {
1606
+ "schema": {
1607
+ "$ref": "#/components/schemas/Problem"
1608
+ }
1609
+ }
1610
+ }
1611
+ },
1612
+ "422": {
1613
+ "description": "Invalid values: messages are in `errors`, keyed by dot path.",
1614
+ "content": {
1615
+ "application/problem+json": {
1616
+ "schema": {
1617
+ "$ref": "#/components/schemas/Problem"
1618
+ }
1619
+ }
1620
+ }
1621
+ },
1622
+ "429": {
1623
+ "description": "Too many requests: `Retry-After` gives the seconds to wait.",
1624
+ "content": {
1625
+ "application/problem+json": {
1626
+ "schema": {
1627
+ "$ref": "#/components/schemas/Problem"
1628
+ }
1629
+ }
1630
+ }
1631
+ }
1632
+ }
1633
+ }
1634
+ },
1577
1635
  "/dashboard/widgets/{widget}": {
1578
1636
  "parameters": [
1579
1637
  {
@@ -1813,7 +1871,8 @@
1813
1871
  "type": "string",
1814
1872
  "enum": [
1815
1873
  "email",
1816
- "url"
1874
+ "url",
1875
+ "json"
1817
1876
  ]
1818
1877
  },
1819
1878
  "message": {
@@ -4269,6 +4328,31 @@
4269
4328
  "failed"
4270
4329
  ]
4271
4330
  },
4331
+ "error": {
4332
+ "description": "Why the processing failed, when `status` is `failed`, so that editors see it without the backend's monitoring.",
4333
+ "anyOf": [
4334
+ {
4335
+ "type": "object",
4336
+ "properties": {
4337
+ "code": {
4338
+ "type": "string",
4339
+ "description": "The code of the step that failed, such as a transcoder task code (`timeout`, `input_unreadable`)."
4340
+ },
4341
+ "message": {
4342
+ "description": "Why it failed, for people.",
4343
+ "type": "string"
4344
+ }
4345
+ },
4346
+ "required": [
4347
+ "code"
4348
+ ],
4349
+ "additionalProperties": {}
4350
+ },
4351
+ {
4352
+ "type": "null"
4353
+ }
4354
+ ]
4355
+ },
4272
4356
  "metadata": {
4273
4357
  "type": "object",
4274
4358
  "propertyNames": {
@@ -4423,6 +4507,86 @@
4423
4507
  "url"
4424
4508
  ],
4425
4509
  "additionalProperties": {}
4510
+ },
4511
+ "EmbedValue": {
4512
+ "type": "object",
4513
+ "properties": {
4514
+ "url": {
4515
+ "type": "string",
4516
+ "description": "The URL of the video, sound or post."
4517
+ },
4518
+ "type": {
4519
+ "type": "string",
4520
+ "enum": [
4521
+ "video",
4522
+ "audio",
4523
+ "photo",
4524
+ "rich",
4525
+ "link"
4526
+ ]
4527
+ },
4528
+ "title": {
4529
+ "type": "string"
4530
+ },
4531
+ "provider": {
4532
+ "description": "The name of the provider.",
4533
+ "type": "string"
4534
+ },
4535
+ "thumbnailUrl": {
4536
+ "type": "string"
4537
+ },
4538
+ "html": {
4539
+ "description": "The HTML that embeds it, from the oEmbed of its provider.",
4540
+ "type": "string"
4541
+ },
4542
+ "width": {
4543
+ "type": "number"
4544
+ },
4545
+ "height": {
4546
+ "type": "number"
4547
+ }
4548
+ },
4549
+ "required": [
4550
+ "url"
4551
+ ],
4552
+ "additionalProperties": {},
4553
+ "description": "The value of an `embed` field: its URL, and what the backend got from its oEmbed."
4554
+ },
4555
+ "EmbedResponse": {
4556
+ "type": "object",
4557
+ "properties": {
4558
+ "data": {
4559
+ "$ref": "#/components/schemas/EmbedValue"
4560
+ }
4561
+ },
4562
+ "required": [
4563
+ "data"
4564
+ ],
4565
+ "additionalProperties": {}
4566
+ },
4567
+ "LocationValue": {
4568
+ "type": "object",
4569
+ "properties": {
4570
+ "lat": {
4571
+ "type": "number",
4572
+ "minimum": -90,
4573
+ "maximum": 90
4574
+ },
4575
+ "lng": {
4576
+ "type": "number",
4577
+ "minimum": -180,
4578
+ "maximum": 180
4579
+ },
4580
+ "address": {
4581
+ "type": "string"
4582
+ }
4583
+ },
4584
+ "required": [
4585
+ "lat",
4586
+ "lng"
4587
+ ],
4588
+ "additionalProperties": {},
4589
+ "description": "The value of a `location` field: a point, and its address."
4426
4590
  }
4427
4591
  }
4428
4592
  }