@panneau/protocol 5.0.0-alpha.3 → 5.0.0-alpha.4

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 (40) hide show
  1. package/dist/conformance/index.d.ts.map +1 -1
  2. package/dist/conformance/index.js +31 -1
  3. package/dist/conformance/index.js.map +1 -1
  4. package/dist/index.js +2 -2
  5. package/dist/lint.d.ts +2 -1
  6. package/dist/lint.d.ts.map +1 -1
  7. package/dist/lint.js +27 -1
  8. package/dist/lint.js.map +1 -1
  9. package/dist/mock/example.d.ts +2 -1
  10. package/dist/mock/example.d.ts.map +1 -1
  11. package/dist/mock/example.js +219 -143
  12. package/dist/mock/example.js.map +1 -1
  13. package/dist/mock/index.d.ts.map +1 -1
  14. package/dist/mock/index.js +145 -5
  15. package/dist/mock/index.js.map +1 -1
  16. package/dist/openapi.d.ts.map +1 -1
  17. package/dist/openapi.js +18 -94
  18. package/dist/openapi.js.map +1 -1
  19. package/dist/schemas/api.d.ts +113 -82
  20. package/dist/schemas/api.d.ts.map +1 -1
  21. package/dist/schemas/api.js +68 -26
  22. package/dist/schemas/api.js.map +1 -1
  23. package/dist/schemas/definition.d.ts +1 -0
  24. package/dist/schemas/definition.d.ts.map +1 -1
  25. package/dist/schemas/definition.js +2 -2
  26. package/dist/schemas/definition.js.map +1 -1
  27. package/dist/schemas/field.js +3 -3
  28. package/dist/schemas/field.js.map +1 -1
  29. package/dist/schemas/index.d.ts +106 -79
  30. package/dist/schemas/index.d.ts.map +1 -1
  31. package/dist/schemas/index.js +11 -5
  32. package/dist/schemas/index.js.map +1 -1
  33. package/dist/schemas/resource.d.ts +1 -0
  34. package/dist/schemas/resource.d.ts.map +1 -1
  35. package/dist/schemas/resource.js +1 -0
  36. package/dist/schemas/resource.js.map +1 -1
  37. package/package.json +1 -1
  38. package/schema/boot.schema.json +4 -0
  39. package/schema/definition.schema.json +4 -0
  40. package/schema/openapi.json +302 -465
@@ -423,6 +423,7 @@ export declare const namedSchemas: {
423
423
  }, z.core.$loose>;
424
424
  Resource: z.ZodObject<{
425
425
  id: z.ZodString;
426
+ kind: z.ZodOptional<z.ZodString>;
426
427
  label: z.ZodObject<{
427
428
  singular: z.ZodString;
428
429
  plural: z.ZodString;
@@ -972,6 +973,7 @@ export declare const namedSchemas: {
972
973
  }, z.core.$loose>;
973
974
  resources: z.ZodArray<z.ZodObject<{
974
975
  id: z.ZodString;
976
+ kind: z.ZodOptional<z.ZodString>;
975
977
  label: z.ZodObject<{
976
978
  singular: z.ZodString;
977
979
  plural: z.ZodString;
@@ -1622,114 +1624,139 @@ export declare const namedSchemas: {
1622
1624
  y: z.ZodNumber;
1623
1625
  }, z.core.$loose>>;
1624
1626
  }, z.core.$loose>;
1625
- Media: z.ZodObject<{
1626
- id: z.ZodString;
1627
- version: z.ZodNullable<z.ZodString>;
1628
- abilities: z.ZodRecord<z.ZodString, z.ZodBoolean>;
1629
- type: z.ZodString;
1627
+ StoredFile: z.ZodObject<{
1630
1628
  name: z.ZodString;
1631
- mime: z.ZodString;
1632
- size: z.ZodNumber;
1629
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1630
+ mime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1631
+ size: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1632
+ }, z.core.$loose>;
1633
+ UploadReference: z.ZodObject<{
1634
+ upload: z.ZodString;
1635
+ }, z.core.$loose>;
1636
+ Upload: z.ZodObject<{
1637
+ id: z.ZodString;
1638
+ key: z.ZodOptional<z.ZodString>;
1639
+ name: z.ZodOptional<z.ZodString>;
1640
+ mime: z.ZodOptional<z.ZodString>;
1641
+ size: z.ZodOptional<z.ZodNumber>;
1642
+ }, z.core.$loose>;
1643
+ UploadResponse: z.ZodObject<{
1644
+ data: z.ZodObject<{
1645
+ id: z.ZodString;
1646
+ key: z.ZodOptional<z.ZodString>;
1647
+ name: z.ZodOptional<z.ZodString>;
1648
+ mime: z.ZodOptional<z.ZodString>;
1649
+ size: z.ZodOptional<z.ZodNumber>;
1650
+ }, z.core.$loose>;
1651
+ }, z.core.$loose>;
1652
+ UploadSignRequest: z.ZodObject<{
1653
+ method: z.ZodEnum<{
1654
+ GET: "GET";
1655
+ POST: "POST";
1656
+ PUT: "PUT";
1657
+ DELETE: "DELETE";
1658
+ }>;
1659
+ key: z.ZodString;
1660
+ uploadId: z.ZodOptional<z.ZodString>;
1661
+ partNumber: z.ZodOptional<z.ZodNumber>;
1662
+ contentType: z.ZodOptional<z.ZodString>;
1663
+ expiresIn: z.ZodOptional<z.ZodNumber>;
1664
+ }, z.core.$loose>;
1665
+ UploadSignResponse: z.ZodObject<{
1633
1666
  url: z.ZodString;
1667
+ key: z.ZodOptional<z.ZodString>;
1668
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1669
+ upload: z.ZodOptional<z.ZodString>;
1670
+ }, z.core.$loose>;
1671
+ MediaInfo: z.ZodObject<{
1672
+ type: z.ZodString;
1673
+ mime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1674
+ size: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1675
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1634
1676
  thumbnailUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1635
1677
  variants: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1636
1678
  url: z.ZodString;
1637
1679
  width: z.ZodOptional<z.ZodNumber>;
1638
1680
  height: z.ZodOptional<z.ZodNumber>;
1639
1681
  }, z.core.$loose>>>;
1682
+ width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1683
+ height: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1684
+ duration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1685
+ status: z.ZodOptional<z.ZodEnum<{
1686
+ failed: "failed";
1687
+ pending: "pending";
1688
+ processing: "processing";
1689
+ ready: "ready";
1690
+ }>>;
1640
1691
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1641
- transform: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1642
- crop: z.ZodOptional<z.ZodObject<{
1643
- x: z.ZodNumber;
1644
- y: z.ZodNumber;
1645
- width: z.ZodNumber;
1646
- height: z.ZodNumber;
1647
- }, z.core.$loose>>;
1648
- rotate: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<90>, z.ZodLiteral<180>, z.ZodLiteral<270>]>>;
1649
- flipX: z.ZodOptional<z.ZodBoolean>;
1650
- flipY: z.ZodOptional<z.ZodBoolean>;
1651
- focalPoint: z.ZodOptional<z.ZodObject<{
1652
- x: z.ZodNumber;
1653
- y: z.ZodNumber;
1654
- }, z.core.$loose>>;
1655
- }, z.core.$loose>>>;
1656
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1657
1692
  }, z.core.$loose>;
1658
- MediaResponse: z.ZodObject<{
1659
- data: z.ZodObject<{
1660
- id: z.ZodString;
1661
- version: z.ZodNullable<z.ZodString>;
1662
- abilities: z.ZodRecord<z.ZodString, z.ZodBoolean>;
1693
+ MediaItem: z.ZodObject<{
1694
+ id: z.ZodString;
1695
+ version: z.ZodNullable<z.ZodString>;
1696
+ abilities: z.ZodRecord<z.ZodString, z.ZodBoolean>;
1697
+ media: z.ZodObject<{
1663
1698
  type: z.ZodString;
1664
- name: z.ZodString;
1665
- mime: z.ZodString;
1666
- size: z.ZodNumber;
1667
- url: z.ZodString;
1699
+ mime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1700
+ size: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1701
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1668
1702
  thumbnailUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1669
1703
  variants: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1670
1704
  url: z.ZodString;
1671
1705
  width: z.ZodOptional<z.ZodNumber>;
1672
1706
  height: z.ZodOptional<z.ZodNumber>;
1673
1707
  }, z.core.$loose>>>;
1708
+ width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1709
+ height: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1710
+ duration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1711
+ status: z.ZodOptional<z.ZodEnum<{
1712
+ failed: "failed";
1713
+ pending: "pending";
1714
+ processing: "processing";
1715
+ ready: "ready";
1716
+ }>>;
1674
1717
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1675
- transform: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1676
- crop: z.ZodOptional<z.ZodObject<{
1677
- x: z.ZodNumber;
1678
- y: z.ZodNumber;
1679
- width: z.ZodNumber;
1680
- height: z.ZodNumber;
1681
- }, z.core.$loose>>;
1682
- rotate: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<90>, z.ZodLiteral<180>, z.ZodLiteral<270>]>>;
1683
- flipX: z.ZodOptional<z.ZodBoolean>;
1684
- flipY: z.ZodOptional<z.ZodBoolean>;
1685
- focalPoint: z.ZodOptional<z.ZodObject<{
1686
- x: z.ZodNumber;
1687
- y: z.ZodNumber;
1688
- }, z.core.$loose>>;
1689
- }, z.core.$loose>>>;
1690
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1691
1718
  }, z.core.$loose>;
1692
1719
  }, z.core.$loose>;
1693
- MediaListResponse: z.ZodObject<{
1694
- data: z.ZodArray<z.ZodObject<{
1695
- id: z.ZodString;
1696
- version: z.ZodNullable<z.ZodString>;
1697
- abilities: z.ZodRecord<z.ZodString, z.ZodBoolean>;
1720
+ MediaReference: z.ZodObject<{
1721
+ id: z.ZodString;
1722
+ label: z.ZodOptional<z.ZodString>;
1723
+ media: z.ZodOptional<z.ZodObject<{
1698
1724
  type: z.ZodString;
1699
- name: z.ZodString;
1700
- mime: z.ZodString;
1701
- size: z.ZodNumber;
1702
- url: z.ZodString;
1725
+ mime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1726
+ size: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1727
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1703
1728
  thumbnailUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1704
1729
  variants: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1705
1730
  url: z.ZodString;
1706
1731
  width: z.ZodOptional<z.ZodNumber>;
1707
1732
  height: z.ZodOptional<z.ZodNumber>;
1708
1733
  }, z.core.$loose>>>;
1734
+ width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1735
+ height: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1736
+ duration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1737
+ status: z.ZodOptional<z.ZodEnum<{
1738
+ failed: "failed";
1739
+ pending: "pending";
1740
+ processing: "processing";
1741
+ ready: "ready";
1742
+ }>>;
1709
1743
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1710
- transform: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1711
- crop: z.ZodOptional<z.ZodObject<{
1712
- x: z.ZodNumber;
1713
- y: z.ZodNumber;
1714
- width: z.ZodNumber;
1715
- height: z.ZodNumber;
1716
- }, z.core.$loose>>;
1717
- rotate: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<90>, z.ZodLiteral<180>, z.ZodLiteral<270>]>>;
1718
- flipX: z.ZodOptional<z.ZodBoolean>;
1719
- flipY: z.ZodOptional<z.ZodBoolean>;
1720
- focalPoint: z.ZodOptional<z.ZodObject<{
1721
- x: z.ZodNumber;
1722
- y: z.ZodNumber;
1723
- }, z.core.$loose>>;
1724
- }, z.core.$loose>>>;
1725
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1726
1744
  }, z.core.$loose>>;
1727
- meta: z.ZodObject<{
1728
- page: z.ZodNumber;
1729
- perPage: z.ZodNumber;
1730
- total: z.ZodNumber;
1731
- lastPage: z.ZodNumber;
1732
- }, z.core.$loose>;
1745
+ transform: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1746
+ crop: z.ZodOptional<z.ZodObject<{
1747
+ x: z.ZodNumber;
1748
+ y: z.ZodNumber;
1749
+ width: z.ZodNumber;
1750
+ height: z.ZodNumber;
1751
+ }, z.core.$loose>>;
1752
+ rotate: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<90>, z.ZodLiteral<180>, z.ZodLiteral<270>]>>;
1753
+ flipX: z.ZodOptional<z.ZodBoolean>;
1754
+ flipY: z.ZodOptional<z.ZodBoolean>;
1755
+ focalPoint: z.ZodOptional<z.ZodObject<{
1756
+ x: z.ZodNumber;
1757
+ y: z.ZodNumber;
1758
+ }, z.core.$loose>>;
1759
+ }, z.core.$loose>>>;
1733
1760
  }, z.core.$loose>;
1734
1761
  Session: z.ZodObject<{
1735
1762
  user: z.ZodObject<{
@@ -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;AAuBxB,OAAO,EAAa,SAAS,EAA8B,MAAM,UAAU,CAAC;AAC5E,OAAO,EAIH,QAAQ,EAKX,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,SAAS,EAAE,KAAK,EAAQ,MAAM,SAAS,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AActC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,OAAO,CAAC;AACtB,cAAc,QAAQ,CAAC;AAEvB,wGAAwG;AACxG,eAAO,MAAM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;AAEtC,0FAA0F;AAC1F,wBAAgB,oBAAoB;QACE,MAAM;kFAG3C"}
@@ -6,7 +6,7 @@ import { Column, Filter, ListDefinition } from "./list.js";
6
6
  import { Resource, ResourceFeatures } from "./resource.js";
7
7
  import { 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, Item, ItemResponse, ListResponse, Media, MediaListResponse, MediaResponse, MediaTransform, Pagination, PreviewResponse, Problem, SearchResponse, Selection, Session } from "./api.js";
9
+ import { ActionItemResult, ActionRequest, ActionResult, ActionRun, ActionRunResponse, Item, ItemResponse, ListResponse, 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
@@ -58,9 +58,15 @@ var namedSchemas = {
58
58
  ActionRun,
59
59
  ActionRunResponse,
60
60
  MediaTransform,
61
- Media,
62
- MediaResponse,
63
- MediaListResponse,
61
+ StoredFile,
62
+ UploadReference,
63
+ Upload,
64
+ UploadResponse,
65
+ UploadSignRequest,
66
+ UploadSignResponse,
67
+ MediaInfo,
68
+ MediaItem,
69
+ MediaReference,
64
70
  Session,
65
71
  SearchResponse,
66
72
  PreviewResponse
@@ -72,6 +78,6 @@ function createSchemaRegistry() {
72
78
  return registry;
73
79
  }
74
80
  //#endregion
75
- export { Abilities, Action, ActionConfirm, ActionItemResult, ActionPlacement, ActionRequest, ActionResult, ActionRun, ActionRunResponse, ActionScope, Auth, AuthProvider, BlockType, BootConfig, Column, Condition, Definition, DefinitionTheme, Field, Filter, Id, Item, ItemResponse, LayoutNode, ListDefinition, ListResponse, Media, MediaListResponse, MediaResponse, MediaTransform, MenuItem, Option, Page, Pagination, PreviewResponse, Problem, Resource, ResourceFeatures, RouteReference, Rule, SearchResponse, Selection, Session, Theme, ThemeFont, ThemeFontFace, ThemeFontStylesheet, ThemeTokens, ToneInput, ToneValues, Uploads, User, Widget, createSchemaRegistry, namedSchemas };
81
+ export { Abilities, Action, ActionConfirm, ActionItemResult, ActionPlacement, ActionRequest, ActionResult, ActionRun, ActionRunResponse, ActionScope, Auth, AuthProvider, BlockType, BootConfig, Column, Condition, Definition, DefinitionTheme, Field, 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 };
76
82
 
77
83
  //# 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 Item,\n ItemResponse,\n ListResponse,\n Media,\n MediaListResponse,\n MediaResponse,\n MediaTransform,\n Pagination,\n PreviewResponse,\n Problem,\n SearchResponse,\n Selection,\n Session,\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 Media,\n MediaResponse,\n MediaListResponse,\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":";;;;;;;;;;;;;AA6DA,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;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 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 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":";;;;;;;;;;;;;AAmEA,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;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"}
@@ -15,6 +15,7 @@ export declare const ResourceFeatures: z.ZodObject<{
15
15
  }, z.core.$loose>;
16
16
  export declare const Resource: z.ZodObject<{
17
17
  id: z.ZodString;
18
+ kind: z.ZodOptional<z.ZodString>;
18
19
  label: z.ZodObject<{
19
20
  singular: z.ZodString;
20
21
  plural: z.ZodString;
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAsB6C,CAAC;AAEnE,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAChE,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC;AAChD,sEAAsE;AACtE,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC"}
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA0B6C,CAAC;AAEnE,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAChE,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC;AAChD,sEAAsE;AACtE,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC"}
@@ -16,6 +16,7 @@ var ResourceFeatures = z.looseObject({
16
16
  });
17
17
  var Resource = z.looseObject({
18
18
  id: z.string().min(1),
19
+ kind: z.string().min(1).optional().meta({ description: "What the resource is. `media`: a library of media (decision 0026), with a `file` field and a `media` on each item. Without it, an ordinary resource. Clients treat a kind they don't know as an ordinary resource." }),
19
20
  label: z.looseObject({
20
21
  singular: z.string(),
21
22
  plural: z.string()
@@ -1 +1 @@
1
- {"version":3,"file":"resource.js","names":[],"sources":["../../src/schemas/resource.ts"],"sourcesContent":["import { z } from 'zod';\n\nimport { Action } from './action';\nimport { Abilities } from './common';\nimport { BlockType, Field } from './field';\nimport { LayoutNode } from './layout';\nimport { ListDefinition } from './list';\n\nexport const ResourceFeatures = z.looseObject({\n drafts: z.boolean().optional(),\n revisions: z.boolean().optional(),\n preview: z\n .union([\n z.null(),\n z.looseObject({\n mode: z.enum(['component', 'iframe']),\n component: z\n .string()\n .optional()\n .meta({ description: '`component`: the plugin preview.' }),\n }),\n ])\n .optional(),\n search: z\n .boolean()\n .optional()\n .meta({ description: 'Whether the resource is in the global search.' }),\n});\n\nexport const Resource = z\n .looseObject({\n id: z.string().min(1),\n label: z.looseObject({ singular: z.string(), plural: z.string() }),\n description: z.string().optional(),\n icon: z.string().optional(),\n itemTitle: z\n .string()\n .optional()\n .meta({ description: 'The field used as the title of an item, in lists and pickers.' }),\n fields: z.array(Field),\n form: z.looseObject({ layout: z.array(LayoutNode).optional() }).optional(),\n list: ListDefinition.optional(),\n actions: z.array(Action).optional(),\n abilities: Abilities.optional(),\n features: ResourceFeatures.optional(),\n types: z\n .array(BlockType)\n .optional()\n .meta({ description: 'Variants of the resource, each with its own extra fields.' }),\n settings: z.record(z.string(), z.unknown()).optional(),\n })\n .meta({ description: 'A set of items managed in the admin.' });\n\nexport type ResourceFeatures = z.infer<typeof ResourceFeatures>;\nexport type Resource = z.infer<typeof Resource>;\n/** A resource as a backend writes it, before defaults are applied. */\nexport type ResourceInput = z.input<typeof Resource>;\n"],"mappings":";;;;;;;AAQA,IAAa,mBAAmB,EAAE,YAAY;CAC1C,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS;CAC7B,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS;CAChC,SAAS,EACJ,MAAM,CACH,EAAE,KAAK,GACP,EAAE,YAAY;EACV,MAAM,EAAE,KAAK,CAAC,aAAa,QAAQ,CAAC;EACpC,WAAW,EACN,OAAO,CAAC,CACR,SAAS,CAAC,CACV,KAAK,EAAE,aAAa,mCAAmC,CAAC;CACjE,CAAC,CACL,CAAC,CAAC,CACD,SAAS;CACd,QAAQ,EACH,QAAQ,CAAC,CACT,SAAS,CAAC,CACV,KAAK,EAAE,aAAa,gDAAgD,CAAC;AAC9E,CAAC;AAED,IAAa,WAAW,EACnB,YAAY;CACT,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC;CACpB,OAAO,EAAE,YAAY;EAAE,UAAU,EAAE,OAAO;EAAG,QAAQ,EAAE,OAAO;CAAE,CAAC;CACjE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS;CACjC,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS;CAC1B,WAAW,EACN,OAAO,CAAC,CACR,SAAS,CAAC,CACV,KAAK,EAAE,aAAa,gEAAgE,CAAC;CAC1F,QAAQ,EAAE,MAAM,KAAK;CACrB,MAAM,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,SAAS;CACzE,MAAM,eAAe,SAAS;CAC9B,SAAS,EAAE,MAAM,MAAM,CAAC,CAAC,SAAS;CAClC,WAAW,UAAU,SAAS;CAC9B,UAAU,iBAAiB,SAAS;CACpC,OAAO,EACF,MAAM,SAAS,CAAC,CAChB,SAAS,CAAC,CACV,KAAK,EAAE,aAAa,4DAA4D,CAAC;CACtF,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS;AACzD,CAAC,CAAC,CACD,KAAK,EAAE,aAAa,uCAAuC,CAAC"}
1
+ {"version":3,"file":"resource.js","names":[],"sources":["../../src/schemas/resource.ts"],"sourcesContent":["import { z } from 'zod';\n\nimport { Action } from './action';\nimport { Abilities } from './common';\nimport { BlockType, Field } from './field';\nimport { LayoutNode } from './layout';\nimport { ListDefinition } from './list';\n\nexport const ResourceFeatures = z.looseObject({\n drafts: z.boolean().optional(),\n revisions: z.boolean().optional(),\n preview: z\n .union([\n z.null(),\n z.looseObject({\n mode: z.enum(['component', 'iframe']),\n component: z\n .string()\n .optional()\n .meta({ description: '`component`: the plugin preview.' }),\n }),\n ])\n .optional(),\n search: z\n .boolean()\n .optional()\n .meta({ description: 'Whether the resource is in the global search.' }),\n});\n\nexport const Resource = z\n .looseObject({\n id: z.string().min(1),\n kind: z.string().min(1).optional().meta({\n description:\n \"What the resource is. `media`: a library of media (decision 0026), with a `file` field and a `media` on each item. Without it, an ordinary resource. Clients treat a kind they don't know as an ordinary resource.\",\n }),\n label: z.looseObject({ singular: z.string(), plural: z.string() }),\n description: z.string().optional(),\n icon: z.string().optional(),\n itemTitle: z\n .string()\n .optional()\n .meta({ description: 'The field used as the title of an item, in lists and pickers.' }),\n fields: z.array(Field),\n form: z.looseObject({ layout: z.array(LayoutNode).optional() }).optional(),\n list: ListDefinition.optional(),\n actions: z.array(Action).optional(),\n abilities: Abilities.optional(),\n features: ResourceFeatures.optional(),\n types: z\n .array(BlockType)\n .optional()\n .meta({ description: 'Variants of the resource, each with its own extra fields.' }),\n settings: z.record(z.string(), z.unknown()).optional(),\n })\n .meta({ description: 'A set of items managed in the admin.' });\n\nexport type ResourceFeatures = z.infer<typeof ResourceFeatures>;\nexport type Resource = z.infer<typeof Resource>;\n/** A resource as a backend writes it, before defaults are applied. */\nexport type ResourceInput = z.input<typeof Resource>;\n"],"mappings":";;;;;;;AAQA,IAAa,mBAAmB,EAAE,YAAY;CAC1C,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS;CAC7B,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS;CAChC,SAAS,EACJ,MAAM,CACH,EAAE,KAAK,GACP,EAAE,YAAY;EACV,MAAM,EAAE,KAAK,CAAC,aAAa,QAAQ,CAAC;EACpC,WAAW,EACN,OAAO,CAAC,CACR,SAAS,CAAC,CACV,KAAK,EAAE,aAAa,mCAAmC,CAAC;CACjE,CAAC,CACL,CAAC,CAAC,CACD,SAAS;CACd,QAAQ,EACH,QAAQ,CAAC,CACT,SAAS,CAAC,CACV,KAAK,EAAE,aAAa,gDAAgD,CAAC;AAC9E,CAAC;AAED,IAAa,WAAW,EACnB,YAAY;CACT,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC;CACpB,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,KAAK,EACpC,aACI,qNACR,CAAC;CACD,OAAO,EAAE,YAAY;EAAE,UAAU,EAAE,OAAO;EAAG,QAAQ,EAAE,OAAO;CAAE,CAAC;CACjE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS;CACjC,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS;CAC1B,WAAW,EACN,OAAO,CAAC,CACR,SAAS,CAAC,CACV,KAAK,EAAE,aAAa,gEAAgE,CAAC;CAC1F,QAAQ,EAAE,MAAM,KAAK;CACrB,MAAM,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,SAAS;CACzE,MAAM,eAAe,SAAS;CAC9B,SAAS,EAAE,MAAM,MAAM,CAAC,CAAC,SAAS;CAClC,WAAW,UAAU,SAAS;CAC9B,UAAU,iBAAiB,SAAS;CACpC,OAAO,EACF,MAAM,SAAS,CAAC,CAChB,SAAS,CAAC,CACV,KAAK,EAAE,aAAa,4DAA4D,CAAC;CACtF,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS;AACzD,CAAC,CAAC,CACD,KAAK,EAAE,aAAa,uCAAuC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@panneau/protocol",
3
- "version": "5.0.0-alpha.3",
3
+ "version": "5.0.0-alpha.4",
4
4
  "description": "The Panneau protocol: definition schema, HTTP API spec and conformance kit",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -171,6 +171,10 @@
171
171
  "type": "string",
172
172
  "minLength": 1
173
173
  },
174
+ "kind": {
175
+ "type": "string",
176
+ "minLength": 1
177
+ },
174
178
  "label": {
175
179
  "type": "object",
176
180
  "properties": {
@@ -137,6 +137,10 @@
137
137
  "type": "string",
138
138
  "minLength": 1
139
139
  },
140
+ "kind": {
141
+ "type": "string",
142
+ "minLength": 1
143
+ },
140
144
  "label": {
141
145
  "type": "object",
142
146
  "properties": {