@cavuno/board 1.5.0 → 1.6.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/dist/index.d.mts CHANGED
@@ -860,6 +860,23 @@ interface components {
860
860
  };
861
861
  links: components["schemas"]["AdminOnlyResourceLinks"];
862
862
  };
863
+ LegalPage: {
864
+ /** @enum {string} */
865
+ object: "legal_page";
866
+ /** @description The resolved legal page type. */
867
+ type: string;
868
+ /** @description Page heading (H1), with `{{board_name}}` resolved. */
869
+ title: string;
870
+ /** @description Owner-authored prose as portable HTML (transitional field, ADR-0039 — the starter authors the layout). Empty string when the page has no text body. */
871
+ content: string;
872
+ /** @enum {string} */
873
+ contentFormat: "html";
874
+ /** @description Structured impressum legal-entity facts; `null` for non-impressum pages. */
875
+ legalEntity: {
876
+ legalName: string | null;
877
+ address: string | null;
878
+ } | null;
879
+ };
863
880
  MediaGet: components["schemas"]["MediaUpload"] & {
864
881
  /** @description Time at which the file was uploaded. ISO 8601 datetime. */
865
882
  uploadedAt: string;
@@ -2071,7 +2088,7 @@ declare function isConflict(e: unknown): e is BoardApiError;
2071
2088
  * constant because the package is platform-neutral and cannot read
2072
2089
  * package.json at runtime.
2073
2090
  */
2074
- declare const SDK_VERSION = "1.5.0";
2091
+ declare const SDK_VERSION = "1.6.0";
2075
2092
 
2076
2093
  type BoardUser = Schemas['BoardUser'];
2077
2094
  type BoardAuthSession = Schemas['BoardAuthSession'];
@@ -2136,21 +2153,8 @@ type RedirectResolution = Schemas['RedirectResolution'];
2136
2153
  * facts and is gated by the board's `impressumEnabled` flag (404 when off).
2137
2154
  */
2138
2155
  type LegalPageType = 'terms-of-service' | 'privacy-policy' | 'cookie-policy' | 'about' | 'impressum';
2139
- interface LegalEntity {
2140
- legalName: string | null;
2141
- address: string | null;
2142
- }
2143
- interface PublicLegalPage {
2144
- object: 'legal_page';
2145
- type: string;
2146
- /** Page heading (H1), with `{{board_name}}` resolved. */
2147
- title: string;
2148
- /** Owner-authored prose as portable HTML; `''` when the page has no body. */
2149
- content: string;
2150
- contentFormat: 'html';
2151
- /** Structured impressum facts; `null` for non-impressum pages. */
2152
- legalEntity: LegalEntity | null;
2153
- }
2156
+ type PublicLegalPage = Schemas['LegalPage'];
2157
+ type LegalEntity = NonNullable<PublicLegalPage['legalEntity']>;
2154
2158
 
2155
2159
  /** Author shape embedded on posts (no `object` discriminator). */
2156
2160
  type BlogAuthorEmbed = Schemas['PublicBlogAuthorEmbed'];
@@ -2714,7 +2718,17 @@ declare function createBoardClient(options: CreateBoardClientOptions): {
2714
2718
  }>>;
2715
2719
  };
2716
2720
  legal: {
2717
- retrieve(type: LegalPageType, options?: FetchOptions): Promise<PublicLegalPage>;
2721
+ retrieve(type: LegalPageType, options?: FetchOptions): Promise<{
2722
+ object: "legal_page";
2723
+ type: string;
2724
+ title: string;
2725
+ content: string;
2726
+ contentFormat: "html";
2727
+ legalEntity: {
2728
+ legalName: string | null;
2729
+ address: string | null;
2730
+ } | null;
2731
+ }>;
2718
2732
  };
2719
2733
  auth: {
2720
2734
  register(body: RegisterBody, options?: FetchOptions): Promise<{
package/dist/index.d.ts CHANGED
@@ -860,6 +860,23 @@ interface components {
860
860
  };
861
861
  links: components["schemas"]["AdminOnlyResourceLinks"];
862
862
  };
863
+ LegalPage: {
864
+ /** @enum {string} */
865
+ object: "legal_page";
866
+ /** @description The resolved legal page type. */
867
+ type: string;
868
+ /** @description Page heading (H1), with `{{board_name}}` resolved. */
869
+ title: string;
870
+ /** @description Owner-authored prose as portable HTML (transitional field, ADR-0039 — the starter authors the layout). Empty string when the page has no text body. */
871
+ content: string;
872
+ /** @enum {string} */
873
+ contentFormat: "html";
874
+ /** @description Structured impressum legal-entity facts; `null` for non-impressum pages. */
875
+ legalEntity: {
876
+ legalName: string | null;
877
+ address: string | null;
878
+ } | null;
879
+ };
863
880
  MediaGet: components["schemas"]["MediaUpload"] & {
864
881
  /** @description Time at which the file was uploaded. ISO 8601 datetime. */
865
882
  uploadedAt: string;
@@ -2071,7 +2088,7 @@ declare function isConflict(e: unknown): e is BoardApiError;
2071
2088
  * constant because the package is platform-neutral and cannot read
2072
2089
  * package.json at runtime.
2073
2090
  */
2074
- declare const SDK_VERSION = "1.5.0";
2091
+ declare const SDK_VERSION = "1.6.0";
2075
2092
 
2076
2093
  type BoardUser = Schemas['BoardUser'];
2077
2094
  type BoardAuthSession = Schemas['BoardAuthSession'];
@@ -2136,21 +2153,8 @@ type RedirectResolution = Schemas['RedirectResolution'];
2136
2153
  * facts and is gated by the board's `impressumEnabled` flag (404 when off).
2137
2154
  */
2138
2155
  type LegalPageType = 'terms-of-service' | 'privacy-policy' | 'cookie-policy' | 'about' | 'impressum';
2139
- interface LegalEntity {
2140
- legalName: string | null;
2141
- address: string | null;
2142
- }
2143
- interface PublicLegalPage {
2144
- object: 'legal_page';
2145
- type: string;
2146
- /** Page heading (H1), with `{{board_name}}` resolved. */
2147
- title: string;
2148
- /** Owner-authored prose as portable HTML; `''` when the page has no body. */
2149
- content: string;
2150
- contentFormat: 'html';
2151
- /** Structured impressum facts; `null` for non-impressum pages. */
2152
- legalEntity: LegalEntity | null;
2153
- }
2156
+ type PublicLegalPage = Schemas['LegalPage'];
2157
+ type LegalEntity = NonNullable<PublicLegalPage['legalEntity']>;
2154
2158
 
2155
2159
  /** Author shape embedded on posts (no `object` discriminator). */
2156
2160
  type BlogAuthorEmbed = Schemas['PublicBlogAuthorEmbed'];
@@ -2714,7 +2718,17 @@ declare function createBoardClient(options: CreateBoardClientOptions): {
2714
2718
  }>>;
2715
2719
  };
2716
2720
  legal: {
2717
- retrieve(type: LegalPageType, options?: FetchOptions): Promise<PublicLegalPage>;
2721
+ retrieve(type: LegalPageType, options?: FetchOptions): Promise<{
2722
+ object: "legal_page";
2723
+ type: string;
2724
+ title: string;
2725
+ content: string;
2726
+ contentFormat: "html";
2727
+ legalEntity: {
2728
+ legalName: string | null;
2729
+ address: string | null;
2730
+ } | null;
2731
+ }>;
2718
2732
  };
2719
2733
  auth: {
2720
2734
  register(body: RegisterBody, options?: FetchOptions): Promise<{
package/dist/index.js CHANGED
@@ -149,7 +149,7 @@ async function clearSession(storage) {
149
149
  }
150
150
 
151
151
  // src/version.ts
152
- var SDK_VERSION = "1.5.0";
152
+ var SDK_VERSION = "1.6.0";
153
153
 
154
154
  // src/client.ts
155
155
  function isRawBody(body) {
package/dist/index.mjs CHANGED
@@ -109,7 +109,7 @@ async function clearSession(storage) {
109
109
  }
110
110
 
111
111
  // src/version.ts
112
- var SDK_VERSION = "1.5.0";
112
+ var SDK_VERSION = "1.6.0";
113
113
 
114
114
  // src/client.ts
115
115
  function isRawBody(body) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cavuno/board",
3
- "version": "1.5.0",
3
+ "version": "1.6.0",
4
4
  "description": "Typed isomorphic client for the Cavuno Board API",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.5.0",
2
+ "version": "1.6.0",
3
3
  "skills": [
4
4
  {
5
5
  "name": "cavuno-board-auth",