@inneropen/marvin-sdk 2.0.0-next.19 → 2.0.0-next.20

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.
@@ -642,21 +642,18 @@ var init_resources = __esm({
642
642
  }
643
643
  });
644
644
 
645
- // src/entry-types/entry-types.ts
646
- var EntryTypesModule;
647
- var init_entry_types = __esm({
648
- "src/entry-types/entry-types.ts"() {
645
+ // src/renderers/renderers.ts
646
+ var RenderersModule;
647
+ var init_renderers = __esm({
648
+ "src/renderers/renderers.ts"() {
649
649
  "use strict";
650
- EntryTypesModule = class {
650
+ RenderersModule = class {
651
651
  constructor(http, workspaceSlug) {
652
652
  this.http = http;
653
653
  this.workspaceSlug = workspaceSlug;
654
654
  }
655
655
  http;
656
656
  workspaceSlug;
657
- /**
658
- * List all entry types with rendering and capabilities info
659
- */
660
657
  async list() {
661
658
  const endpoint = `/api/publish/${this.workspaceSlug}/entry-types`;
662
659
  return this.http.fetch(endpoint);
@@ -674,7 +671,7 @@ var init_workspace = __esm({
674
671
  init_collections();
675
672
  init_assets();
676
673
  init_resources();
677
- init_entry_types();
674
+ init_renderers();
678
675
  Workspace = class {
679
676
  constructor(http, slug) {
680
677
  this.http = http;
@@ -683,7 +680,7 @@ var init_workspace = __esm({
683
680
  this.collections = new CollectionsModule(http, slug);
684
681
  this.assets = new AssetsModule(http, slug);
685
682
  this.resources = new ResourcesModule(http, slug);
686
- this.entryTypes = new EntryTypesModule(http, slug);
683
+ this.renderers = new RenderersModule(http, slug);
687
684
  }
688
685
  http;
689
686
  _site = null;
@@ -692,7 +689,7 @@ var init_workspace = __esm({
692
689
  collections;
693
690
  assets;
694
691
  resources;
695
- entryTypes;
692
+ renderers;
696
693
  /**
697
694
  * Get workspace slug
698
695
  */
@@ -847,10 +844,10 @@ var init_marvin = __esm({
847
844
  return this.workspace.resources;
848
845
  }
849
846
  /**
850
- * Get entry types module
847
+ * Get renderers module
851
848
  */
852
- get entryTypes() {
853
- return this.workspace.entryTypes;
849
+ get renderers() {
850
+ return this.workspace.renderers;
854
851
  }
855
852
  // ======================
856
853
  // Convenience Methods
package/dist/index.cjs CHANGED
@@ -1370,21 +1370,18 @@ var init_resources = __esm({
1370
1370
  }
1371
1371
  });
1372
1372
 
1373
- // src/entry-types/entry-types.ts
1374
- var EntryTypesModule;
1375
- var init_entry_types = __esm({
1376
- "src/entry-types/entry-types.ts"() {
1373
+ // src/renderers/renderers.ts
1374
+ var RenderersModule;
1375
+ var init_renderers = __esm({
1376
+ "src/renderers/renderers.ts"() {
1377
1377
  "use strict";
1378
- EntryTypesModule = class {
1378
+ RenderersModule = class {
1379
1379
  constructor(http, workspaceSlug) {
1380
1380
  this.http = http;
1381
1381
  this.workspaceSlug = workspaceSlug;
1382
1382
  }
1383
1383
  http;
1384
1384
  workspaceSlug;
1385
- /**
1386
- * List all entry types with rendering and capabilities info
1387
- */
1388
1385
  async list() {
1389
1386
  const endpoint = `/api/publish/${this.workspaceSlug}/entry-types`;
1390
1387
  return this.http.fetch(endpoint);
@@ -1402,7 +1399,7 @@ var init_workspace = __esm({
1402
1399
  init_collections();
1403
1400
  init_assets();
1404
1401
  init_resources();
1405
- init_entry_types();
1402
+ init_renderers();
1406
1403
  Workspace = class {
1407
1404
  constructor(http, slug) {
1408
1405
  this.http = http;
@@ -1411,7 +1408,7 @@ var init_workspace = __esm({
1411
1408
  this.collections = new CollectionsModule(http, slug);
1412
1409
  this.assets = new AssetsModule(http, slug);
1413
1410
  this.resources = new ResourcesModule(http, slug);
1414
- this.entryTypes = new EntryTypesModule(http, slug);
1411
+ this.renderers = new RenderersModule(http, slug);
1415
1412
  }
1416
1413
  http;
1417
1414
  _site = null;
@@ -1420,7 +1417,7 @@ var init_workspace = __esm({
1420
1417
  collections;
1421
1418
  assets;
1422
1419
  resources;
1423
- entryTypes;
1420
+ renderers;
1424
1421
  /**
1425
1422
  * Get workspace slug
1426
1423
  */
@@ -1549,10 +1546,10 @@ var init_marvin = __esm({
1549
1546
  return this.workspace.resources;
1550
1547
  }
1551
1548
  /**
1552
- * Get entry types module
1549
+ * Get renderers module
1553
1550
  */
1554
- get entryTypes() {
1555
- return this.workspace.entryTypes;
1551
+ get renderers() {
1552
+ return this.workspace.renderers;
1556
1553
  }
1557
1554
  // ======================
1558
1555
  // Convenience Methods
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { M as MarvinConfig, a as MarvinClient } from './marvin-KDm7Meom.cjs';
2
- export { C as Collection, E as Entry, b as MarvinApiError, c as MarvinAuthError, d as MarvinCache, e as MarvinConfigError, f as MarvinError, g as MarvinNetworkError, h as MarvinNotFoundError, i as MarvinServerError, j as MarvinValidationError, P as PaginatedResponse, k as PaginationMeta, l as PaginationParams, R as Resource, W as Workspace, m as createConfigFromEnv, n as createPaginatedResponse, o as extractData, p as isPaginatedResponse, q as offsetToPage, r as pageToOffset } from './marvin-KDm7Meom.cjs';
1
+ import { M as MarvinConfig, a as MarvinClient } from './marvin-BAslemIz.cjs';
2
+ export { C as Collection, E as Entry, b as MarvinApiError, c as MarvinAuthError, d as MarvinCache, e as MarvinConfigError, f as MarvinError, g as MarvinNetworkError, h as MarvinNotFoundError, i as MarvinServerError, j as MarvinValidationError, P as PaginatedResponse, k as PaginationMeta, l as PaginationParams, R as Resource, W as Workspace, m as createConfigFromEnv, n as createPaginatedResponse, o as extractData, p as isPaginatedResponse, q as offsetToPage, r as pageToOffset } from './marvin-BAslemIz.cjs';
3
3
  import { H as HttpClient } from './HttpClient-CdF3IHM1.cjs';
4
4
  export { A as AuthStrategy, B as BearerTokenAuth, a as HttpClientConfig, N as NoAuth, S as SessionAuth } from './HttpClient-CdF3IHM1.cjs';
5
5
  import { AuthToken as AuthToken$1 } from './types/index.cjs';
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { M as MarvinConfig, a as MarvinClient } from './marvin-DBsotzK6.js';
2
- export { C as Collection, E as Entry, b as MarvinApiError, c as MarvinAuthError, d as MarvinCache, e as MarvinConfigError, f as MarvinError, g as MarvinNetworkError, h as MarvinNotFoundError, i as MarvinServerError, j as MarvinValidationError, P as PaginatedResponse, k as PaginationMeta, l as PaginationParams, R as Resource, W as Workspace, m as createConfigFromEnv, n as createPaginatedResponse, o as extractData, p as isPaginatedResponse, q as offsetToPage, r as pageToOffset } from './marvin-DBsotzK6.js';
1
+ import { M as MarvinConfig, a as MarvinClient } from './marvin-BmbMUJXh.js';
2
+ export { C as Collection, E as Entry, b as MarvinApiError, c as MarvinAuthError, d as MarvinCache, e as MarvinConfigError, f as MarvinError, g as MarvinNetworkError, h as MarvinNotFoundError, i as MarvinServerError, j as MarvinValidationError, P as PaginatedResponse, k as PaginationMeta, l as PaginationParams, R as Resource, W as Workspace, m as createConfigFromEnv, n as createPaginatedResponse, o as extractData, p as isPaginatedResponse, q as offsetToPage, r as pageToOffset } from './marvin-BmbMUJXh.js';
3
3
  import { H as HttpClient } from './HttpClient-CdF3IHM1.js';
4
4
  export { A as AuthStrategy, B as BearerTokenAuth, a as HttpClientConfig, N as NoAuth, S as SessionAuth } from './HttpClient-CdF3IHM1.js';
5
5
  import { AuthToken as AuthToken$1 } from './types/index.js';
package/dist/index.js CHANGED
@@ -13,7 +13,7 @@ import {
13
13
  init_resource,
14
14
  init_workspace,
15
15
  marvin_exports
16
- } from "./chunk-MZBIRXYX.js";
16
+ } from "./chunk-TZ2TZFWP.js";
17
17
  import {
18
18
  BearerTokenAuth,
19
19
  HttpClient,
@@ -199,17 +199,10 @@ declare class MarvinHttpClient extends HttpClient {
199
199
  fetch<T>(endpoint: string): Promise<T>;
200
200
  }
201
201
 
202
- /**
203
- * Entry Types Module - List entry types with rendering info
204
- */
205
-
206
- declare class EntryTypesModule {
202
+ declare class RenderersModule {
207
203
  private http;
208
204
  private workspaceSlug;
209
205
  constructor(http: MarvinHttpClient, workspaceSlug: string);
210
- /**
211
- * List all entry types with rendering and capabilities info
212
- */
213
206
  list(): Promise<PublishedEntryType[]>;
214
207
  }
215
208
 
@@ -503,7 +496,7 @@ declare class Workspace {
503
496
  collections: CollectionsModule;
504
497
  assets: AssetsModule;
505
498
  resources: ResourcesModule;
506
- entryTypes: EntryTypesModule;
499
+ renderers: RenderersModule;
507
500
  constructor(http: MarvinHttpClient, slug: string);
508
501
  /**
509
502
  * Get workspace slug
@@ -574,9 +567,9 @@ declare class MarvinClient {
574
567
  */
575
568
  get resources(): ResourcesModule;
576
569
  /**
577
- * Get entry types module
570
+ * Get renderers module
578
571
  */
579
- get entryTypes(): EntryTypesModule;
572
+ get renderers(): RenderersModule;
580
573
  /**
581
574
  * Get a single entry by slug
582
575
  */
@@ -199,17 +199,10 @@ declare class MarvinHttpClient extends HttpClient {
199
199
  fetch<T>(endpoint: string): Promise<T>;
200
200
  }
201
201
 
202
- /**
203
- * Entry Types Module - List entry types with rendering info
204
- */
205
-
206
- declare class EntryTypesModule {
202
+ declare class RenderersModule {
207
203
  private http;
208
204
  private workspaceSlug;
209
205
  constructor(http: MarvinHttpClient, workspaceSlug: string);
210
- /**
211
- * List all entry types with rendering and capabilities info
212
- */
213
206
  list(): Promise<PublishedEntryType[]>;
214
207
  }
215
208
 
@@ -503,7 +496,7 @@ declare class Workspace {
503
496
  collections: CollectionsModule;
504
497
  assets: AssetsModule;
505
498
  resources: ResourcesModule;
506
- entryTypes: EntryTypesModule;
499
+ renderers: RenderersModule;
507
500
  constructor(http: MarvinHttpClient, slug: string);
508
501
  /**
509
502
  * Get workspace slug
@@ -574,9 +567,9 @@ declare class MarvinClient {
574
567
  */
575
568
  get resources(): ResourcesModule;
576
569
  /**
577
- * Get entry types module
570
+ * Get renderers module
578
571
  */
579
- get entryTypes(): EntryTypesModule;
572
+ get renderers(): RenderersModule;
580
573
  /**
581
574
  * Get a single entry by slug
582
575
  */
@@ -323,11 +323,6 @@ interface components {
323
323
  * @enum {string}
324
324
  */
325
325
  AuthMethod: "MARVIN" | "LDAP" | "OIDC";
326
- /** Body_debug_openai_api_admin_debug_openai_post */
327
- Body_debug_openai_api_admin_debug_openai_post: {
328
- /** Image */
329
- image?: string | null;
330
- };
331
326
  /** Body_get_token_api_auth_token_post */
332
327
  Body_get_token_api_auth_token_post: {
333
328
  /**
@@ -507,19 +502,6 @@ interface components {
507
502
  /** Entryids */
508
503
  entryIds?: string[] | null;
509
504
  };
510
- /**
511
- * DebugResponse
512
- * @description Schema for a standardized response from debugging endpoints.
513
- *
514
- * Indicates the success status of a debug operation and provides an optional
515
- * response message or data string.
516
- */
517
- DebugResponse: {
518
- /** Success */
519
- success: boolean;
520
- /** Response */
521
- response?: string | null;
522
- };
523
505
  /**
524
506
  * EmailInitationResponse
525
507
  * @description Schema for the response after attempting to send an email invitation.
@@ -666,9 +648,15 @@ interface components {
666
648
  } | null;
667
649
  /** Enabled */
668
650
  enabled: boolean;
669
- /** Createdat */
651
+ /**
652
+ * Createdat
653
+ * Format: date-time
654
+ */
670
655
  createdAt: string;
671
- /** Updateat */
656
+ /**
657
+ * Updateat
658
+ * Format: date-time
659
+ */
672
660
  updateAt: string;
673
661
  };
674
662
  /**
@@ -944,6 +932,27 @@ interface components {
944
932
  /** Order */
945
933
  order?: number | null;
946
934
  };
935
+ /**
936
+ * EntryTypeCapabilities
937
+ * @description Capabilities for a published entry type.
938
+ */
939
+ EntryTypeCapabilities: {
940
+ /**
941
+ * Publishable
942
+ * @default true
943
+ */
944
+ publishable: boolean;
945
+ /**
946
+ * Submittable
947
+ * @default false
948
+ */
949
+ submittable: boolean;
950
+ /**
951
+ * Routable
952
+ * @default true
953
+ */
954
+ routable: boolean;
955
+ };
947
956
  /**
948
957
  * EntryTypeCreate
949
958
  * @description Schema for creating an entry type.
@@ -969,6 +978,11 @@ interface components {
969
978
  * @default false
970
979
  */
971
980
  isSystem: boolean;
981
+ /**
982
+ * Isrendered
983
+ * @default false
984
+ */
985
+ isRendered: boolean;
972
986
  /**
973
987
  * Schema Json
974
988
  * @description Entry type schema definition (EntryTypeSchemaDefinition)
@@ -976,6 +990,20 @@ interface components {
976
990
  schema_json?: {
977
991
  [key: string]: unknown;
978
992
  } | null;
993
+ /**
994
+ * Rendering Json
995
+ * @description Rendering configuration (RenderingDefinition)
996
+ */
997
+ rendering_json?: {
998
+ [key: string]: unknown;
999
+ } | null;
1000
+ /**
1001
+ * Capabilities Json
1002
+ * @description Behavioral capabilities (CapabilitiesDefinition)
1003
+ */
1004
+ capabilities_json?: {
1005
+ [key: string]: unknown;
1006
+ } | null;
979
1007
  };
980
1008
  /**
981
1009
  * EntryTypeRead
@@ -1006,6 +1034,11 @@ interface components {
1006
1034
  sortOrder: number;
1007
1035
  /** Issystem */
1008
1036
  isSystem: boolean;
1037
+ /**
1038
+ * Isrendered
1039
+ * @default false
1040
+ */
1041
+ isRendered: boolean;
1009
1042
  /**
1010
1043
  * Schemajson
1011
1044
  * @description Entry type schema definition (EntryTypeSchemaDefinition)
@@ -1013,10 +1046,42 @@ interface components {
1013
1046
  schemaJson?: {
1014
1047
  [key: string]: unknown;
1015
1048
  } | null;
1049
+ /**
1050
+ * Renderingjson
1051
+ * @description Rendering configuration (RenderingDefinition)
1052
+ */
1053
+ renderingJson?: {
1054
+ [key: string]: unknown;
1055
+ } | null;
1056
+ /**
1057
+ * Capabilitiesjson
1058
+ * @description Behavioral capabilities (CapabilitiesDefinition)
1059
+ */
1060
+ capabilitiesJson?: {
1061
+ [key: string]: unknown;
1062
+ } | null;
1016
1063
  /** Createdat */
1017
1064
  createdAt?: string | null;
1018
1065
  /** Updateat */
1019
1066
  updateAt?: string | null;
1067
+ /** Warnings */
1068
+ warnings?: string[] | null;
1069
+ };
1070
+ /**
1071
+ * EntryTypeRendering
1072
+ * @description Rendering configuration for a published entry type.
1073
+ */
1074
+ EntryTypeRendering: {
1075
+ /** Renderer */
1076
+ renderer?: string | null;
1077
+ /** Package */
1078
+ package?: string | null;
1079
+ /** Version */
1080
+ version?: string | null;
1081
+ /** Config */
1082
+ config?: {
1083
+ [key: string]: unknown;
1084
+ } | null;
1020
1085
  };
1021
1086
  /**
1022
1087
  * EntryTypeUpdate
@@ -1037,6 +1102,8 @@ interface components {
1037
1102
  sortOrder?: number | null;
1038
1103
  /** Issystem */
1039
1104
  isSystem?: boolean | null;
1105
+ /** Isrendered */
1106
+ isRendered?: boolean | null;
1040
1107
  /**
1041
1108
  * Schema Json
1042
1109
  * @description Entry type schema definition (EntryTypeSchemaDefinition)
@@ -1044,6 +1111,20 @@ interface components {
1044
1111
  schema_json?: {
1045
1112
  [key: string]: unknown;
1046
1113
  } | null;
1114
+ /**
1115
+ * Rendering Json
1116
+ * @description Rendering configuration (RenderingDefinition)
1117
+ */
1118
+ rendering_json?: {
1119
+ [key: string]: unknown;
1120
+ } | null;
1121
+ /**
1122
+ * Capabilities Json
1123
+ * @description Behavioral capabilities (CapabilitiesDefinition)
1124
+ */
1125
+ capabilities_json?: {
1126
+ [key: string]: unknown;
1127
+ } | null;
1047
1128
  };
1048
1129
  /**
1049
1130
  * EntryUpdate
@@ -2097,6 +2178,7 @@ interface components {
2097
2178
  title: string;
2098
2179
  /** Entrytype */
2099
2180
  entryType: string;
2181
+ entryTypeInfo?: components["schemas"]["PublishedEntryTypeInfo"] | null;
2100
2182
  /** Summary */
2101
2183
  summary?: string | null;
2102
2184
  /** Publishedat */
@@ -2138,6 +2220,7 @@ interface components {
2138
2220
  title: string;
2139
2221
  /** Entrytype */
2140
2222
  entryType: string;
2223
+ entryTypeInfo?: components["schemas"]["PublishedEntryTypeInfo"] | null;
2141
2224
  /** Summary */
2142
2225
  summary?: string | null;
2143
2226
  /** Data */
@@ -2168,6 +2251,56 @@ interface components {
2168
2251
  /** Order */
2169
2252
  order?: number | null;
2170
2253
  };
2254
+ /**
2255
+ * PublishedEntryTypeInfo
2256
+ * @description Flattened entry type rendering and capabilities info for published entries.
2257
+ */
2258
+ PublishedEntryTypeInfo: {
2259
+ /** Slug */
2260
+ slug: string;
2261
+ /** Renderer */
2262
+ renderer?: string | null;
2263
+ /** Package */
2264
+ package?: string | null;
2265
+ /** Version */
2266
+ version?: string | null;
2267
+ /** Config */
2268
+ config?: {
2269
+ [key: string]: unknown;
2270
+ } | null;
2271
+ /**
2272
+ * Publishable
2273
+ * @default true
2274
+ */
2275
+ publishable: boolean;
2276
+ /**
2277
+ * Submittable
2278
+ * @default false
2279
+ */
2280
+ submittable: boolean;
2281
+ /**
2282
+ * Routable
2283
+ * @default true
2284
+ */
2285
+ routable: boolean;
2286
+ };
2287
+ /**
2288
+ * PublishedEntryTypeRead
2289
+ * @description Schema for entry types in the publishing API.
2290
+ */
2291
+ PublishedEntryTypeRead: {
2292
+ /** Slug */
2293
+ slug: string;
2294
+ /** Name */
2295
+ name: string;
2296
+ /**
2297
+ * Isrendered
2298
+ * @default false
2299
+ */
2300
+ isRendered: boolean;
2301
+ rendering?: components["schemas"]["EntryTypeRendering"] | null;
2302
+ capabilities?: components["schemas"]["EntryTypeCapabilities"] | null;
2303
+ };
2171
2304
  /**
2172
2305
  * PublishedFormRead
2173
2306
  * @description Schema for published forms in the publishing API.
@@ -3504,7 +3637,10 @@ interface EntryTypeCreate {
3504
3637
  icon?: string;
3505
3638
  color?: string;
3506
3639
  sortOrder?: number;
3640
+ isRendered?: boolean;
3507
3641
  schemaJson?: Record<string, unknown>;
3642
+ renderingJson?: Record<string, unknown>;
3643
+ capabilitiesJson?: Record<string, unknown>;
3508
3644
  }
3509
3645
  interface EntryTypeUpdate {
3510
3646
  name?: string;
@@ -3513,7 +3649,10 @@ interface EntryTypeUpdate {
3513
3649
  icon?: string;
3514
3650
  color?: string;
3515
3651
  sortOrder?: number;
3652
+ isRendered?: boolean;
3516
3653
  schemaJson?: Record<string, unknown>;
3654
+ renderingJson?: Record<string, unknown>;
3655
+ capabilitiesJson?: Record<string, unknown>;
3517
3656
  }
3518
3657
  declare class EntryTypesModule {
3519
3658
  private http;
@@ -323,11 +323,6 @@ interface components {
323
323
  * @enum {string}
324
324
  */
325
325
  AuthMethod: "MARVIN" | "LDAP" | "OIDC";
326
- /** Body_debug_openai_api_admin_debug_openai_post */
327
- Body_debug_openai_api_admin_debug_openai_post: {
328
- /** Image */
329
- image?: string | null;
330
- };
331
326
  /** Body_get_token_api_auth_token_post */
332
327
  Body_get_token_api_auth_token_post: {
333
328
  /**
@@ -507,19 +502,6 @@ interface components {
507
502
  /** Entryids */
508
503
  entryIds?: string[] | null;
509
504
  };
510
- /**
511
- * DebugResponse
512
- * @description Schema for a standardized response from debugging endpoints.
513
- *
514
- * Indicates the success status of a debug operation and provides an optional
515
- * response message or data string.
516
- */
517
- DebugResponse: {
518
- /** Success */
519
- success: boolean;
520
- /** Response */
521
- response?: string | null;
522
- };
523
505
  /**
524
506
  * EmailInitationResponse
525
507
  * @description Schema for the response after attempting to send an email invitation.
@@ -666,9 +648,15 @@ interface components {
666
648
  } | null;
667
649
  /** Enabled */
668
650
  enabled: boolean;
669
- /** Createdat */
651
+ /**
652
+ * Createdat
653
+ * Format: date-time
654
+ */
670
655
  createdAt: string;
671
- /** Updateat */
656
+ /**
657
+ * Updateat
658
+ * Format: date-time
659
+ */
672
660
  updateAt: string;
673
661
  };
674
662
  /**
@@ -944,6 +932,27 @@ interface components {
944
932
  /** Order */
945
933
  order?: number | null;
946
934
  };
935
+ /**
936
+ * EntryTypeCapabilities
937
+ * @description Capabilities for a published entry type.
938
+ */
939
+ EntryTypeCapabilities: {
940
+ /**
941
+ * Publishable
942
+ * @default true
943
+ */
944
+ publishable: boolean;
945
+ /**
946
+ * Submittable
947
+ * @default false
948
+ */
949
+ submittable: boolean;
950
+ /**
951
+ * Routable
952
+ * @default true
953
+ */
954
+ routable: boolean;
955
+ };
947
956
  /**
948
957
  * EntryTypeCreate
949
958
  * @description Schema for creating an entry type.
@@ -969,6 +978,11 @@ interface components {
969
978
  * @default false
970
979
  */
971
980
  isSystem: boolean;
981
+ /**
982
+ * Isrendered
983
+ * @default false
984
+ */
985
+ isRendered: boolean;
972
986
  /**
973
987
  * Schema Json
974
988
  * @description Entry type schema definition (EntryTypeSchemaDefinition)
@@ -976,6 +990,20 @@ interface components {
976
990
  schema_json?: {
977
991
  [key: string]: unknown;
978
992
  } | null;
993
+ /**
994
+ * Rendering Json
995
+ * @description Rendering configuration (RenderingDefinition)
996
+ */
997
+ rendering_json?: {
998
+ [key: string]: unknown;
999
+ } | null;
1000
+ /**
1001
+ * Capabilities Json
1002
+ * @description Behavioral capabilities (CapabilitiesDefinition)
1003
+ */
1004
+ capabilities_json?: {
1005
+ [key: string]: unknown;
1006
+ } | null;
979
1007
  };
980
1008
  /**
981
1009
  * EntryTypeRead
@@ -1006,6 +1034,11 @@ interface components {
1006
1034
  sortOrder: number;
1007
1035
  /** Issystem */
1008
1036
  isSystem: boolean;
1037
+ /**
1038
+ * Isrendered
1039
+ * @default false
1040
+ */
1041
+ isRendered: boolean;
1009
1042
  /**
1010
1043
  * Schemajson
1011
1044
  * @description Entry type schema definition (EntryTypeSchemaDefinition)
@@ -1013,10 +1046,42 @@ interface components {
1013
1046
  schemaJson?: {
1014
1047
  [key: string]: unknown;
1015
1048
  } | null;
1049
+ /**
1050
+ * Renderingjson
1051
+ * @description Rendering configuration (RenderingDefinition)
1052
+ */
1053
+ renderingJson?: {
1054
+ [key: string]: unknown;
1055
+ } | null;
1056
+ /**
1057
+ * Capabilitiesjson
1058
+ * @description Behavioral capabilities (CapabilitiesDefinition)
1059
+ */
1060
+ capabilitiesJson?: {
1061
+ [key: string]: unknown;
1062
+ } | null;
1016
1063
  /** Createdat */
1017
1064
  createdAt?: string | null;
1018
1065
  /** Updateat */
1019
1066
  updateAt?: string | null;
1067
+ /** Warnings */
1068
+ warnings?: string[] | null;
1069
+ };
1070
+ /**
1071
+ * EntryTypeRendering
1072
+ * @description Rendering configuration for a published entry type.
1073
+ */
1074
+ EntryTypeRendering: {
1075
+ /** Renderer */
1076
+ renderer?: string | null;
1077
+ /** Package */
1078
+ package?: string | null;
1079
+ /** Version */
1080
+ version?: string | null;
1081
+ /** Config */
1082
+ config?: {
1083
+ [key: string]: unknown;
1084
+ } | null;
1020
1085
  };
1021
1086
  /**
1022
1087
  * EntryTypeUpdate
@@ -1037,6 +1102,8 @@ interface components {
1037
1102
  sortOrder?: number | null;
1038
1103
  /** Issystem */
1039
1104
  isSystem?: boolean | null;
1105
+ /** Isrendered */
1106
+ isRendered?: boolean | null;
1040
1107
  /**
1041
1108
  * Schema Json
1042
1109
  * @description Entry type schema definition (EntryTypeSchemaDefinition)
@@ -1044,6 +1111,20 @@ interface components {
1044
1111
  schema_json?: {
1045
1112
  [key: string]: unknown;
1046
1113
  } | null;
1114
+ /**
1115
+ * Rendering Json
1116
+ * @description Rendering configuration (RenderingDefinition)
1117
+ */
1118
+ rendering_json?: {
1119
+ [key: string]: unknown;
1120
+ } | null;
1121
+ /**
1122
+ * Capabilities Json
1123
+ * @description Behavioral capabilities (CapabilitiesDefinition)
1124
+ */
1125
+ capabilities_json?: {
1126
+ [key: string]: unknown;
1127
+ } | null;
1047
1128
  };
1048
1129
  /**
1049
1130
  * EntryUpdate
@@ -2097,6 +2178,7 @@ interface components {
2097
2178
  title: string;
2098
2179
  /** Entrytype */
2099
2180
  entryType: string;
2181
+ entryTypeInfo?: components["schemas"]["PublishedEntryTypeInfo"] | null;
2100
2182
  /** Summary */
2101
2183
  summary?: string | null;
2102
2184
  /** Publishedat */
@@ -2138,6 +2220,7 @@ interface components {
2138
2220
  title: string;
2139
2221
  /** Entrytype */
2140
2222
  entryType: string;
2223
+ entryTypeInfo?: components["schemas"]["PublishedEntryTypeInfo"] | null;
2141
2224
  /** Summary */
2142
2225
  summary?: string | null;
2143
2226
  /** Data */
@@ -2168,6 +2251,56 @@ interface components {
2168
2251
  /** Order */
2169
2252
  order?: number | null;
2170
2253
  };
2254
+ /**
2255
+ * PublishedEntryTypeInfo
2256
+ * @description Flattened entry type rendering and capabilities info for published entries.
2257
+ */
2258
+ PublishedEntryTypeInfo: {
2259
+ /** Slug */
2260
+ slug: string;
2261
+ /** Renderer */
2262
+ renderer?: string | null;
2263
+ /** Package */
2264
+ package?: string | null;
2265
+ /** Version */
2266
+ version?: string | null;
2267
+ /** Config */
2268
+ config?: {
2269
+ [key: string]: unknown;
2270
+ } | null;
2271
+ /**
2272
+ * Publishable
2273
+ * @default true
2274
+ */
2275
+ publishable: boolean;
2276
+ /**
2277
+ * Submittable
2278
+ * @default false
2279
+ */
2280
+ submittable: boolean;
2281
+ /**
2282
+ * Routable
2283
+ * @default true
2284
+ */
2285
+ routable: boolean;
2286
+ };
2287
+ /**
2288
+ * PublishedEntryTypeRead
2289
+ * @description Schema for entry types in the publishing API.
2290
+ */
2291
+ PublishedEntryTypeRead: {
2292
+ /** Slug */
2293
+ slug: string;
2294
+ /** Name */
2295
+ name: string;
2296
+ /**
2297
+ * Isrendered
2298
+ * @default false
2299
+ */
2300
+ isRendered: boolean;
2301
+ rendering?: components["schemas"]["EntryTypeRendering"] | null;
2302
+ capabilities?: components["schemas"]["EntryTypeCapabilities"] | null;
2303
+ };
2171
2304
  /**
2172
2305
  * PublishedFormRead
2173
2306
  * @description Schema for published forms in the publishing API.
@@ -3504,7 +3637,10 @@ interface EntryTypeCreate {
3504
3637
  icon?: string;
3505
3638
  color?: string;
3506
3639
  sortOrder?: number;
3640
+ isRendered?: boolean;
3507
3641
  schemaJson?: Record<string, unknown>;
3642
+ renderingJson?: Record<string, unknown>;
3643
+ capabilitiesJson?: Record<string, unknown>;
3508
3644
  }
3509
3645
  interface EntryTypeUpdate {
3510
3646
  name?: string;
@@ -3513,7 +3649,10 @@ interface EntryTypeUpdate {
3513
3649
  icon?: string;
3514
3650
  color?: string;
3515
3651
  sortOrder?: number;
3652
+ isRendered?: boolean;
3516
3653
  schemaJson?: Record<string, unknown>;
3654
+ renderingJson?: Record<string, unknown>;
3655
+ capabilitiesJson?: Record<string, unknown>;
3517
3656
  }
3518
3657
  declare class EntryTypesModule {
3519
3658
  private http;
package/dist/publish.cjs CHANGED
@@ -1182,17 +1182,14 @@ var ResourcesModule = class {
1182
1182
  }
1183
1183
  };
1184
1184
 
1185
- // src/entry-types/entry-types.ts
1186
- var EntryTypesModule = class {
1185
+ // src/renderers/renderers.ts
1186
+ var RenderersModule = class {
1187
1187
  constructor(http, workspaceSlug) {
1188
1188
  this.http = http;
1189
1189
  this.workspaceSlug = workspaceSlug;
1190
1190
  }
1191
1191
  http;
1192
1192
  workspaceSlug;
1193
- /**
1194
- * List all entry types with rendering and capabilities info
1195
- */
1196
1193
  async list() {
1197
1194
  const endpoint = `/api/publish/${this.workspaceSlug}/entry-types`;
1198
1195
  return this.http.fetch(endpoint);
@@ -1208,7 +1205,7 @@ var Workspace = class {
1208
1205
  this.collections = new CollectionsModule(http, slug);
1209
1206
  this.assets = new AssetsModule(http, slug);
1210
1207
  this.resources = new ResourcesModule(http, slug);
1211
- this.entryTypes = new EntryTypesModule(http, slug);
1208
+ this.renderers = new RenderersModule(http, slug);
1212
1209
  }
1213
1210
  http;
1214
1211
  _site = null;
@@ -1217,7 +1214,7 @@ var Workspace = class {
1217
1214
  collections;
1218
1215
  assets;
1219
1216
  resources;
1220
- entryTypes;
1217
+ renderers;
1221
1218
  /**
1222
1219
  * Get workspace slug
1223
1220
  */
@@ -1332,10 +1329,10 @@ var MarvinClient = class {
1332
1329
  return this.workspace.resources;
1333
1330
  }
1334
1331
  /**
1335
- * Get entry types module
1332
+ * Get renderers module
1336
1333
  */
1337
- get entryTypes() {
1338
- return this.workspace.entryTypes;
1334
+ get renderers() {
1335
+ return this.workspace.renderers;
1339
1336
  }
1340
1337
  // ======================
1341
1338
  // Convenience Methods
@@ -1,5 +1,5 @@
1
- import { M as MarvinConfig, a as MarvinClient } from './marvin-KDm7Meom.cjs';
2
- export { C as Collection, E as Entry, b as MarvinApiError, c as MarvinAuthError, d as MarvinCache, e as MarvinConfigError, f as MarvinError, g as MarvinNetworkError, h as MarvinNotFoundError, i as MarvinServerError, j as MarvinValidationError, P as PaginatedResponse, k as PaginationMeta, l as PaginationParams, R as Resource, W as Workspace, m as createConfigFromEnv, n as createPaginatedResponse, o as extractData, p as isPaginatedResponse, q as offsetToPage, r as pageToOffset } from './marvin-KDm7Meom.cjs';
1
+ import { M as MarvinConfig, a as MarvinClient } from './marvin-BAslemIz.cjs';
2
+ export { C as Collection, E as Entry, b as MarvinApiError, c as MarvinAuthError, d as MarvinCache, e as MarvinConfigError, f as MarvinError, g as MarvinNetworkError, h as MarvinNotFoundError, i as MarvinServerError, j as MarvinValidationError, P as PaginatedResponse, k as PaginationMeta, l as PaginationParams, R as Resource, W as Workspace, m as createConfigFromEnv, n as createPaginatedResponse, o as extractData, p as isPaginatedResponse, q as offsetToPage, r as pageToOffset } from './marvin-BAslemIz.cjs';
3
3
  export { GetAssetsOptions, GetEntriesOptions, GetResourcesOptions, MarvinAsset, MarvinCollection, MarvinEntry, MarvinEntryType, MarvinPublishResponse, MarvinResource, MarvinSite } from './types/index.cjs';
4
4
  export { A as AuthStrategy, B as BearerTokenAuth, H as HttpClient, a as HttpClientConfig } from './HttpClient-CdF3IHM1.cjs';
5
5
 
package/dist/publish.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { M as MarvinConfig, a as MarvinClient } from './marvin-DBsotzK6.js';
2
- export { C as Collection, E as Entry, b as MarvinApiError, c as MarvinAuthError, d as MarvinCache, e as MarvinConfigError, f as MarvinError, g as MarvinNetworkError, h as MarvinNotFoundError, i as MarvinServerError, j as MarvinValidationError, P as PaginatedResponse, k as PaginationMeta, l as PaginationParams, R as Resource, W as Workspace, m as createConfigFromEnv, n as createPaginatedResponse, o as extractData, p as isPaginatedResponse, q as offsetToPage, r as pageToOffset } from './marvin-DBsotzK6.js';
1
+ import { M as MarvinConfig, a as MarvinClient } from './marvin-BmbMUJXh.js';
2
+ export { C as Collection, E as Entry, b as MarvinApiError, c as MarvinAuthError, d as MarvinCache, e as MarvinConfigError, f as MarvinError, g as MarvinNetworkError, h as MarvinNotFoundError, i as MarvinServerError, j as MarvinValidationError, P as PaginatedResponse, k as PaginationMeta, l as PaginationParams, R as Resource, W as Workspace, m as createConfigFromEnv, n as createPaginatedResponse, o as extractData, p as isPaginatedResponse, q as offsetToPage, r as pageToOffset } from './marvin-BmbMUJXh.js';
3
3
  export { GetAssetsOptions, GetEntriesOptions, GetResourcesOptions, MarvinAsset, MarvinCollection, MarvinEntry, MarvinEntryType, MarvinPublishResponse, MarvinResource, MarvinSite } from './types/index.js';
4
4
  export { A as AuthStrategy, B as BearerTokenAuth, H as HttpClient, a as HttpClientConfig } from './HttpClient-CdF3IHM1.js';
5
5
 
package/dist/publish.js CHANGED
@@ -12,7 +12,7 @@ import {
12
12
  init_marvin,
13
13
  init_resource,
14
14
  init_workspace
15
- } from "./chunk-MZBIRXYX.js";
15
+ } from "./chunk-TZ2TZFWP.js";
16
16
  import {
17
17
  BearerTokenAuth,
18
18
  HttpClient,
@@ -183,6 +183,7 @@ interface GetAssetsOptions {
183
183
  interface PublishedEntryType {
184
184
  slug: string;
185
185
  name: string;
186
+ isRendered: boolean;
186
187
  rendering?: {
187
188
  renderer?: string;
188
189
  package?: string;
@@ -183,6 +183,7 @@ interface GetAssetsOptions {
183
183
  interface PublishedEntryType {
184
184
  slug: string;
185
185
  name: string;
186
+ isRendered: boolean;
186
187
  rendering?: {
187
188
  renderer?: string;
188
189
  package?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inneropen/marvin-sdk",
3
- "version": "2.0.0-next.19",
3
+ "version": "2.0.0-next.20",
4
4
  "description": "Official TypeScript SDK for Marvin CMS",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",