@inneropen/marvin-sdk 3.1.0 → 3.2.0-next.1

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.
@@ -181,18 +181,6 @@ var init_entry = __esm({
181
181
  get resources() {
182
182
  return this.raw.resources;
183
183
  }
184
- asset(role) {
185
- return this.raw.assets.find((a) => a.role === role);
186
- }
187
- assetsByRole(role) {
188
- return this.raw.assets.filter((a) => a.role === role);
189
- }
190
- resource(role) {
191
- return this.raw.resources.find((r) => r.role === role);
192
- }
193
- resourcesByRole(role) {
194
- return this.raw.resources.filter((r) => r.role === role);
195
- }
196
184
  field(key) {
197
185
  return this.raw.data[key];
198
186
  }
@@ -239,6 +239,26 @@ interface components {
239
239
  /** Darkerror */
240
240
  darkError: string;
241
241
  };
242
+ /** AssetAttachment */
243
+ AssetAttachment: {
244
+ /**
245
+ * Asset Id
246
+ * Format: uuid4
247
+ */
248
+ asset_id: string;
249
+ /** Role */
250
+ role?: string | null;
251
+ /** Position */
252
+ position?: number | null;
253
+ /** Caption */
254
+ caption?: string | null;
255
+ /** Focal Point */
256
+ focal_point?: string | null;
257
+ /** Metadata */
258
+ metadata?: {
259
+ [key: string]: unknown;
260
+ } | null;
261
+ };
242
262
  /**
243
263
  * AssetRead
244
264
  * @description Full schema for reading an asset.
@@ -719,8 +739,6 @@ interface components {
719
739
  EntryAssetRead: {
720
740
  /** Role */
721
741
  role?: string | null;
722
- /** Usage */
723
- usage?: string | null;
724
742
  /**
725
743
  * Position
726
744
  * @default 0
@@ -838,6 +856,10 @@ interface components {
838
856
  assetIds?: string[] | null;
839
857
  /** Resourceids */
840
858
  resourceIds?: string[] | null;
859
+ /** Assetattachments */
860
+ assetAttachments?: components["schemas"]["AssetAttachment"][] | null;
861
+ /** Resourceattachments */
862
+ resourceAttachments?: components["schemas"]["ResourceAttachment"][] | null;
841
863
  };
842
864
  /**
843
865
  * EntryOrderItem
@@ -915,7 +937,7 @@ interface components {
915
937
  * Resources
916
938
  * @default []
917
939
  */
918
- resources: components["schemas"]["ResourceSummary"][];
940
+ resources: components["schemas"]["EntryResourceRead"][];
919
941
  /**
920
942
  * Assets
921
943
  * @default []
@@ -929,6 +951,44 @@ interface components {
929
951
  /** Order */
930
952
  order?: number | null;
931
953
  };
954
+ /**
955
+ * EntryResourceRead
956
+ * @description Resource metadata plus entry-specific placement details.
957
+ */
958
+ EntryResourceRead: {
959
+ /** Role */
960
+ role?: string | null;
961
+ /** Quantity */
962
+ quantity?: string | null;
963
+ /** Unit */
964
+ unit?: string | null;
965
+ /**
966
+ * Position
967
+ * @default 0
968
+ */
969
+ position: number;
970
+ /** Placementmetadata */
971
+ placementMetadata?: {
972
+ [key: string]: unknown;
973
+ } | null;
974
+ /**
975
+ * Id
976
+ * Format: uuid4
977
+ */
978
+ id: string;
979
+ /** Slug */
980
+ slug: string;
981
+ /** Name */
982
+ name: string;
983
+ /** Resourcetype */
984
+ resourceType: string;
985
+ /** Description */
986
+ description?: string | null;
987
+ /** Url */
988
+ url?: string | null;
989
+ /** Externalid */
990
+ externalId?: string | null;
991
+ };
932
992
  /**
933
993
  * EntryTypeCapabilities
934
994
  * @description Capabilities for a published entry type.
@@ -1169,6 +1229,10 @@ interface components {
1169
1229
  asset_ids?: string[] | null;
1170
1230
  /** Resource Ids */
1171
1231
  resource_ids?: string[] | null;
1232
+ /** Asset Attachments */
1233
+ asset_attachments?: components["schemas"]["AssetAttachment"][] | null;
1234
+ /** Resource Attachments */
1235
+ resource_attachments?: components["schemas"]["ResourceAttachment"][] | null;
1172
1236
  };
1173
1237
  /**
1174
1238
  * EventDocumentType
@@ -1873,6 +1937,32 @@ interface components {
1873
1937
  /** Createdat */
1874
1938
  createdAt?: string | null;
1875
1939
  };
1940
+ /**
1941
+ * LoginInfo
1942
+ * @description Public login page configuration — no auth required.
1943
+ */
1944
+ LoginInfo: {
1945
+ /**
1946
+ * Oidcenabled
1947
+ * @default false
1948
+ */
1949
+ oidcEnabled: boolean;
1950
+ /**
1951
+ * Oidcprovidername
1952
+ * @default OAuth
1953
+ */
1954
+ oidcProviderName: string;
1955
+ /**
1956
+ * Oidcautoredirect
1957
+ * @default false
1958
+ */
1959
+ oidcAutoRedirect: boolean;
1960
+ /**
1961
+ * Allowsignup
1962
+ * @default false
1963
+ */
1964
+ allowSignup: boolean;
1965
+ };
1876
1966
  /**
1877
1967
  * LongLiveTokenCreate
1878
1968
  * @description Schema for creating a new long-lived API token (Personal Access Token).
@@ -2051,50 +2141,6 @@ interface components {
2051
2141
  * @enum {string}
2052
2142
  */
2053
2143
  PlatformRole: "NONE" | "SUPER_ADMIN";
2054
- /**
2055
- * PublishedEntryAsset
2056
- * @description An asset as used by a specific entry — relationship context + asset data.
2057
- */
2058
- PublishedEntryAsset: {
2059
- /** Role */
2060
- role?: string | null;
2061
- /**
2062
- * Position
2063
- * @default 0
2064
- */
2065
- position: number;
2066
- /** Focalpoint */
2067
- focalPoint?: string | null;
2068
- /** Caption */
2069
- caption?: string | null;
2070
- /** Metadatajson */
2071
- metadataJson?: {
2072
- [key: string]: unknown;
2073
- } | null;
2074
- asset: components["schemas"]["PublishedAssetRead"];
2075
- };
2076
- /**
2077
- * PublishedEntryResource
2078
- * @description A resource as used by a specific entry — relationship context + resource data.
2079
- */
2080
- PublishedEntryResource: {
2081
- /** Role */
2082
- role?: string | null;
2083
- /** Quantity */
2084
- quantity?: string | null;
2085
- /** Unit */
2086
- unit?: string | null;
2087
- /**
2088
- * Position
2089
- * @default 0
2090
- */
2091
- position: number;
2092
- /** Metadatajson */
2093
- metadataJson?: {
2094
- [key: string]: unknown;
2095
- } | null;
2096
- resource: components["schemas"]["PublishedResourceSummary"];
2097
- };
2098
2144
  /**
2099
2145
  * PublishedAssetRead
2100
2146
  * @description Schema for published assets in the publishing API.
@@ -2205,6 +2251,28 @@ interface components {
2205
2251
  data: components["schemas"]["PublishedEntryListItem"][];
2206
2252
  meta: components["schemas"]["PaginationMeta"];
2207
2253
  };
2254
+ /**
2255
+ * PublishedEntryAsset
2256
+ * @description An asset as used by a specific entry — relationship context + asset data.
2257
+ */
2258
+ PublishedEntryAsset: {
2259
+ /** Role */
2260
+ role?: string | null;
2261
+ /**
2262
+ * Position
2263
+ * @default 0
2264
+ */
2265
+ position: number;
2266
+ /** Focalpoint */
2267
+ focalPoint?: string | null;
2268
+ /** Caption */
2269
+ caption?: string | null;
2270
+ /** Metadatajson */
2271
+ metadataJson?: {
2272
+ [key: string]: unknown;
2273
+ } | null;
2274
+ asset: components["schemas"]["PublishedAssetRead"];
2275
+ };
2208
2276
  /**
2209
2277
  * PublishedEntryListItem
2210
2278
  * @description Minimal entry schema for list responses.
@@ -2297,6 +2365,28 @@ interface components {
2297
2365
  /** Order */
2298
2366
  order?: number | null;
2299
2367
  };
2368
+ /**
2369
+ * PublishedEntryResource
2370
+ * @description A resource as used by a specific entry — relationship context + resource data.
2371
+ */
2372
+ PublishedEntryResource: {
2373
+ /** Role */
2374
+ role?: string | null;
2375
+ /** Quantity */
2376
+ quantity?: string | null;
2377
+ /** Unit */
2378
+ unit?: string | null;
2379
+ /**
2380
+ * Position
2381
+ * @default 0
2382
+ */
2383
+ position: number;
2384
+ /** Metadatajson */
2385
+ metadataJson?: {
2386
+ [key: string]: unknown;
2387
+ } | null;
2388
+ resource: components["schemas"]["PublishedResourceSummary"];
2389
+ };
2300
2390
  /**
2301
2391
  * PublishedEntryTypeInfo
2302
2392
  * @description Flattened entry type rendering and capabilities info for published entries.
@@ -2434,6 +2524,26 @@ interface components {
2434
2524
  /** Passwordconfirm */
2435
2525
  passwordConfirm: string;
2436
2526
  };
2527
+ /** ResourceAttachment */
2528
+ ResourceAttachment: {
2529
+ /**
2530
+ * Resource Id
2531
+ * Format: uuid4
2532
+ */
2533
+ resource_id: string;
2534
+ /** Role */
2535
+ role?: string | null;
2536
+ /** Quantity */
2537
+ quantity?: string | null;
2538
+ /** Unit */
2539
+ unit?: string | null;
2540
+ /** Position */
2541
+ position?: number | null;
2542
+ /** Metadata */
2543
+ metadata?: {
2544
+ [key: string]: unknown;
2545
+ } | null;
2546
+ };
2437
2547
  /**
2438
2548
  * ResourceCreate
2439
2549
  * @description Schema for creating a new resource.
@@ -2488,29 +2598,6 @@ interface components {
2488
2598
  */
2489
2599
  createdBy: string;
2490
2600
  };
2491
- /**
2492
- * ResourceSummary
2493
- * @description Summary schema for a resource.
2494
- */
2495
- ResourceSummary: {
2496
- /**
2497
- * Id
2498
- * Format: uuid4
2499
- */
2500
- id: string;
2501
- /** Slug */
2502
- slug: string;
2503
- /** Name */
2504
- name: string;
2505
- /** Resourcetype */
2506
- resourceType: string;
2507
- /** Description */
2508
- description?: string | null;
2509
- /** Url */
2510
- url?: string | null;
2511
- /** Externalid */
2512
- externalId?: string | null;
2513
- };
2514
2601
  /**
2515
2602
  * ResourceUpdate
2516
2603
  * @description Schema for updating a resource.
@@ -3363,6 +3450,9 @@ type PublishedAssetRead = components['schemas']['PublishedAssetRead'];
3363
3450
  type PublishedEntryAsset = components['schemas']['PublishedEntryAsset'];
3364
3451
  type MarvinResource = components['schemas']['PublishedResourceSummary'];
3365
3452
  type PublishedEntryResource = components['schemas']['PublishedEntryResource'];
3453
+ type AssetAttachment = components['schemas']['AssetAttachment'];
3454
+ type ResourceAttachment = components['schemas']['ResourceAttachment'];
3455
+ type EntryResourceRead = components['schemas']['EntryResourceRead'];
3366
3456
  type MarvinEntryType = components['schemas']['EntryTypeRead'];
3367
3457
  interface AssetUploadRequest {
3368
3458
  slug: string;
@@ -3406,4 +3496,4 @@ interface AuthToken {
3406
3496
  tokenType: string;
3407
3497
  }
3408
3498
 
3409
- export type { AuthToken as A, GetAssetsOptions as G, MarvinAsset as M, PublishedAssetRead as P, SiteConfiguration as S, WorkspaceInfo as W, GetEntriesOptions as a, GetResourcesOptions as b, MarvinCollection as c, MarvinEntry as d, MarvinEntryListItem as e, MarvinEntryType as f, MarvinPublishResponse as g, MarvinResource as h, MarvinSite as i, PublishedCollectionSummary as j, PublishedEntryAsset as k, PublishedEntryResource as l, PublishedEntryType as m, components as n, AssetUploadRequest as o, MarvinClientConfig as p };
3499
+ export type { AuthToken as A, EntryResourceRead as E, GetAssetsOptions as G, MarvinAsset as M, PublishedAssetRead as P, ResourceAttachment as R, SiteConfiguration as S, WorkspaceInfo as W, GetEntriesOptions as a, GetResourcesOptions as b, MarvinCollection as c, MarvinEntry as d, MarvinEntryListItem as e, MarvinEntryType as f, MarvinPublishResponse as g, MarvinResource as h, MarvinSite as i, PublishedCollectionSummary as j, PublishedEntryAsset as k, PublishedEntryResource as l, PublishedEntryType as m, components as n, AssetAttachment as o, AssetUploadRequest as p, MarvinClientConfig as q };
@@ -239,6 +239,26 @@ interface components {
239
239
  /** Darkerror */
240
240
  darkError: string;
241
241
  };
242
+ /** AssetAttachment */
243
+ AssetAttachment: {
244
+ /**
245
+ * Asset Id
246
+ * Format: uuid4
247
+ */
248
+ asset_id: string;
249
+ /** Role */
250
+ role?: string | null;
251
+ /** Position */
252
+ position?: number | null;
253
+ /** Caption */
254
+ caption?: string | null;
255
+ /** Focal Point */
256
+ focal_point?: string | null;
257
+ /** Metadata */
258
+ metadata?: {
259
+ [key: string]: unknown;
260
+ } | null;
261
+ };
242
262
  /**
243
263
  * AssetRead
244
264
  * @description Full schema for reading an asset.
@@ -719,8 +739,6 @@ interface components {
719
739
  EntryAssetRead: {
720
740
  /** Role */
721
741
  role?: string | null;
722
- /** Usage */
723
- usage?: string | null;
724
742
  /**
725
743
  * Position
726
744
  * @default 0
@@ -838,6 +856,10 @@ interface components {
838
856
  assetIds?: string[] | null;
839
857
  /** Resourceids */
840
858
  resourceIds?: string[] | null;
859
+ /** Assetattachments */
860
+ assetAttachments?: components["schemas"]["AssetAttachment"][] | null;
861
+ /** Resourceattachments */
862
+ resourceAttachments?: components["schemas"]["ResourceAttachment"][] | null;
841
863
  };
842
864
  /**
843
865
  * EntryOrderItem
@@ -915,7 +937,7 @@ interface components {
915
937
  * Resources
916
938
  * @default []
917
939
  */
918
- resources: components["schemas"]["ResourceSummary"][];
940
+ resources: components["schemas"]["EntryResourceRead"][];
919
941
  /**
920
942
  * Assets
921
943
  * @default []
@@ -929,6 +951,44 @@ interface components {
929
951
  /** Order */
930
952
  order?: number | null;
931
953
  };
954
+ /**
955
+ * EntryResourceRead
956
+ * @description Resource metadata plus entry-specific placement details.
957
+ */
958
+ EntryResourceRead: {
959
+ /** Role */
960
+ role?: string | null;
961
+ /** Quantity */
962
+ quantity?: string | null;
963
+ /** Unit */
964
+ unit?: string | null;
965
+ /**
966
+ * Position
967
+ * @default 0
968
+ */
969
+ position: number;
970
+ /** Placementmetadata */
971
+ placementMetadata?: {
972
+ [key: string]: unknown;
973
+ } | null;
974
+ /**
975
+ * Id
976
+ * Format: uuid4
977
+ */
978
+ id: string;
979
+ /** Slug */
980
+ slug: string;
981
+ /** Name */
982
+ name: string;
983
+ /** Resourcetype */
984
+ resourceType: string;
985
+ /** Description */
986
+ description?: string | null;
987
+ /** Url */
988
+ url?: string | null;
989
+ /** Externalid */
990
+ externalId?: string | null;
991
+ };
932
992
  /**
933
993
  * EntryTypeCapabilities
934
994
  * @description Capabilities for a published entry type.
@@ -1169,6 +1229,10 @@ interface components {
1169
1229
  asset_ids?: string[] | null;
1170
1230
  /** Resource Ids */
1171
1231
  resource_ids?: string[] | null;
1232
+ /** Asset Attachments */
1233
+ asset_attachments?: components["schemas"]["AssetAttachment"][] | null;
1234
+ /** Resource Attachments */
1235
+ resource_attachments?: components["schemas"]["ResourceAttachment"][] | null;
1172
1236
  };
1173
1237
  /**
1174
1238
  * EventDocumentType
@@ -1873,6 +1937,32 @@ interface components {
1873
1937
  /** Createdat */
1874
1938
  createdAt?: string | null;
1875
1939
  };
1940
+ /**
1941
+ * LoginInfo
1942
+ * @description Public login page configuration — no auth required.
1943
+ */
1944
+ LoginInfo: {
1945
+ /**
1946
+ * Oidcenabled
1947
+ * @default false
1948
+ */
1949
+ oidcEnabled: boolean;
1950
+ /**
1951
+ * Oidcprovidername
1952
+ * @default OAuth
1953
+ */
1954
+ oidcProviderName: string;
1955
+ /**
1956
+ * Oidcautoredirect
1957
+ * @default false
1958
+ */
1959
+ oidcAutoRedirect: boolean;
1960
+ /**
1961
+ * Allowsignup
1962
+ * @default false
1963
+ */
1964
+ allowSignup: boolean;
1965
+ };
1876
1966
  /**
1877
1967
  * LongLiveTokenCreate
1878
1968
  * @description Schema for creating a new long-lived API token (Personal Access Token).
@@ -2051,50 +2141,6 @@ interface components {
2051
2141
  * @enum {string}
2052
2142
  */
2053
2143
  PlatformRole: "NONE" | "SUPER_ADMIN";
2054
- /**
2055
- * PublishedEntryAsset
2056
- * @description An asset as used by a specific entry — relationship context + asset data.
2057
- */
2058
- PublishedEntryAsset: {
2059
- /** Role */
2060
- role?: string | null;
2061
- /**
2062
- * Position
2063
- * @default 0
2064
- */
2065
- position: number;
2066
- /** Focalpoint */
2067
- focalPoint?: string | null;
2068
- /** Caption */
2069
- caption?: string | null;
2070
- /** Metadatajson */
2071
- metadataJson?: {
2072
- [key: string]: unknown;
2073
- } | null;
2074
- asset: components["schemas"]["PublishedAssetRead"];
2075
- };
2076
- /**
2077
- * PublishedEntryResource
2078
- * @description A resource as used by a specific entry — relationship context + resource data.
2079
- */
2080
- PublishedEntryResource: {
2081
- /** Role */
2082
- role?: string | null;
2083
- /** Quantity */
2084
- quantity?: string | null;
2085
- /** Unit */
2086
- unit?: string | null;
2087
- /**
2088
- * Position
2089
- * @default 0
2090
- */
2091
- position: number;
2092
- /** Metadatajson */
2093
- metadataJson?: {
2094
- [key: string]: unknown;
2095
- } | null;
2096
- resource: components["schemas"]["PublishedResourceSummary"];
2097
- };
2098
2144
  /**
2099
2145
  * PublishedAssetRead
2100
2146
  * @description Schema for published assets in the publishing API.
@@ -2205,6 +2251,28 @@ interface components {
2205
2251
  data: components["schemas"]["PublishedEntryListItem"][];
2206
2252
  meta: components["schemas"]["PaginationMeta"];
2207
2253
  };
2254
+ /**
2255
+ * PublishedEntryAsset
2256
+ * @description An asset as used by a specific entry — relationship context + asset data.
2257
+ */
2258
+ PublishedEntryAsset: {
2259
+ /** Role */
2260
+ role?: string | null;
2261
+ /**
2262
+ * Position
2263
+ * @default 0
2264
+ */
2265
+ position: number;
2266
+ /** Focalpoint */
2267
+ focalPoint?: string | null;
2268
+ /** Caption */
2269
+ caption?: string | null;
2270
+ /** Metadatajson */
2271
+ metadataJson?: {
2272
+ [key: string]: unknown;
2273
+ } | null;
2274
+ asset: components["schemas"]["PublishedAssetRead"];
2275
+ };
2208
2276
  /**
2209
2277
  * PublishedEntryListItem
2210
2278
  * @description Minimal entry schema for list responses.
@@ -2297,6 +2365,28 @@ interface components {
2297
2365
  /** Order */
2298
2366
  order?: number | null;
2299
2367
  };
2368
+ /**
2369
+ * PublishedEntryResource
2370
+ * @description A resource as used by a specific entry — relationship context + resource data.
2371
+ */
2372
+ PublishedEntryResource: {
2373
+ /** Role */
2374
+ role?: string | null;
2375
+ /** Quantity */
2376
+ quantity?: string | null;
2377
+ /** Unit */
2378
+ unit?: string | null;
2379
+ /**
2380
+ * Position
2381
+ * @default 0
2382
+ */
2383
+ position: number;
2384
+ /** Metadatajson */
2385
+ metadataJson?: {
2386
+ [key: string]: unknown;
2387
+ } | null;
2388
+ resource: components["schemas"]["PublishedResourceSummary"];
2389
+ };
2300
2390
  /**
2301
2391
  * PublishedEntryTypeInfo
2302
2392
  * @description Flattened entry type rendering and capabilities info for published entries.
@@ -2434,6 +2524,26 @@ interface components {
2434
2524
  /** Passwordconfirm */
2435
2525
  passwordConfirm: string;
2436
2526
  };
2527
+ /** ResourceAttachment */
2528
+ ResourceAttachment: {
2529
+ /**
2530
+ * Resource Id
2531
+ * Format: uuid4
2532
+ */
2533
+ resource_id: string;
2534
+ /** Role */
2535
+ role?: string | null;
2536
+ /** Quantity */
2537
+ quantity?: string | null;
2538
+ /** Unit */
2539
+ unit?: string | null;
2540
+ /** Position */
2541
+ position?: number | null;
2542
+ /** Metadata */
2543
+ metadata?: {
2544
+ [key: string]: unknown;
2545
+ } | null;
2546
+ };
2437
2547
  /**
2438
2548
  * ResourceCreate
2439
2549
  * @description Schema for creating a new resource.
@@ -2488,29 +2598,6 @@ interface components {
2488
2598
  */
2489
2599
  createdBy: string;
2490
2600
  };
2491
- /**
2492
- * ResourceSummary
2493
- * @description Summary schema for a resource.
2494
- */
2495
- ResourceSummary: {
2496
- /**
2497
- * Id
2498
- * Format: uuid4
2499
- */
2500
- id: string;
2501
- /** Slug */
2502
- slug: string;
2503
- /** Name */
2504
- name: string;
2505
- /** Resourcetype */
2506
- resourceType: string;
2507
- /** Description */
2508
- description?: string | null;
2509
- /** Url */
2510
- url?: string | null;
2511
- /** Externalid */
2512
- externalId?: string | null;
2513
- };
2514
2601
  /**
2515
2602
  * ResourceUpdate
2516
2603
  * @description Schema for updating a resource.
@@ -3363,6 +3450,9 @@ type PublishedAssetRead = components['schemas']['PublishedAssetRead'];
3363
3450
  type PublishedEntryAsset = components['schemas']['PublishedEntryAsset'];
3364
3451
  type MarvinResource = components['schemas']['PublishedResourceSummary'];
3365
3452
  type PublishedEntryResource = components['schemas']['PublishedEntryResource'];
3453
+ type AssetAttachment = components['schemas']['AssetAttachment'];
3454
+ type ResourceAttachment = components['schemas']['ResourceAttachment'];
3455
+ type EntryResourceRead = components['schemas']['EntryResourceRead'];
3366
3456
  type MarvinEntryType = components['schemas']['EntryTypeRead'];
3367
3457
  interface AssetUploadRequest {
3368
3458
  slug: string;
@@ -3406,4 +3496,4 @@ interface AuthToken {
3406
3496
  tokenType: string;
3407
3497
  }
3408
3498
 
3409
- export type { AuthToken as A, GetAssetsOptions as G, MarvinAsset as M, PublishedAssetRead as P, SiteConfiguration as S, WorkspaceInfo as W, GetEntriesOptions as a, GetResourcesOptions as b, MarvinCollection as c, MarvinEntry as d, MarvinEntryListItem as e, MarvinEntryType as f, MarvinPublishResponse as g, MarvinResource as h, MarvinSite as i, PublishedCollectionSummary as j, PublishedEntryAsset as k, PublishedEntryResource as l, PublishedEntryType as m, components as n, AssetUploadRequest as o, MarvinClientConfig as p };
3499
+ export type { AuthToken as A, EntryResourceRead as E, GetAssetsOptions as G, MarvinAsset as M, PublishedAssetRead as P, ResourceAttachment as R, SiteConfiguration as S, WorkspaceInfo as W, GetEntriesOptions as a, GetResourcesOptions as b, MarvinCollection as c, MarvinEntry as d, MarvinEntryListItem as e, MarvinEntryType as f, MarvinPublishResponse as g, MarvinResource as h, MarvinSite as i, PublishedCollectionSummary as j, PublishedEntryAsset as k, PublishedEntryResource as l, PublishedEntryType as m, components as n, AssetAttachment as o, AssetUploadRequest as p, MarvinClientConfig as q };
package/dist/index.cjs CHANGED
@@ -909,18 +909,6 @@ var init_entry = __esm({
909
909
  get resources() {
910
910
  return this.raw.resources;
911
911
  }
912
- asset(role) {
913
- return this.raw.assets.find((a) => a.role === role);
914
- }
915
- assetsByRole(role) {
916
- return this.raw.assets.filter((a) => a.role === role);
917
- }
918
- resource(role) {
919
- return this.raw.resources.find((r) => r.role === role);
920
- }
921
- resourcesByRole(role) {
922
- return this.raw.resources.filter((r) => r.role === role);
923
- }
924
912
  field(key) {
925
913
  return this.raw.data[key];
926
914
  }
package/dist/index.d.cts CHANGED
@@ -1,9 +1,9 @@
1
- import { M as MarvinConfig, a as MarvinClient } from './marvin-BhI__9Cj.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-BhI__9Cj.cjs';
1
+ import { M as MarvinConfig, a as MarvinClient } from './marvin-BLhk8ZKO.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-BLhk8ZKO.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
- import { A as AuthToken$1 } from './index-BLIrbIHf.cjs';
6
- export { G as GetAssetsOptions, a as GetEntriesOptions, b as GetResourcesOptions, M as MarvinAsset, c as MarvinCollection, d as MarvinEntry, e as MarvinEntryListItem, f as MarvinEntryType, g as MarvinPublishResponse, h as MarvinResource, i as MarvinSite, P as PublishedAssetRead, j as PublishedCollectionSummary, k as PublishedEntryAsset, l as PublishedEntryResource, m as PublishedEntryType, S as SiteConfiguration, W as WorkspaceInfo } from './index-BLIrbIHf.cjs';
5
+ import { A as AuthToken$1 } from './index-D4PQGrOK.cjs';
6
+ export { G as GetAssetsOptions, a as GetEntriesOptions, b as GetResourcesOptions, M as MarvinAsset, c as MarvinCollection, d as MarvinEntry, e as MarvinEntryListItem, f as MarvinEntryType, g as MarvinPublishResponse, h as MarvinResource, i as MarvinSite, P as PublishedAssetRead, j as PublishedCollectionSummary, k as PublishedEntryAsset, l as PublishedEntryResource, m as PublishedEntryType, S as SiteConfiguration, W as WorkspaceInfo } from './index-D4PQGrOK.cjs';
7
7
 
8
8
  /**
9
9
  * Authentication & User Registration
package/dist/index.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- import { M as MarvinConfig, a as MarvinClient } from './marvin-C_TihjE2.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-C_TihjE2.js';
1
+ import { M as MarvinConfig, a as MarvinClient } from './marvin-DWlYHd6f.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-DWlYHd6f.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
- import { A as AuthToken$1 } from './index-BLIrbIHf.js';
6
- export { G as GetAssetsOptions, a as GetEntriesOptions, b as GetResourcesOptions, M as MarvinAsset, c as MarvinCollection, d as MarvinEntry, e as MarvinEntryListItem, f as MarvinEntryType, g as MarvinPublishResponse, h as MarvinResource, i as MarvinSite, P as PublishedAssetRead, j as PublishedCollectionSummary, k as PublishedEntryAsset, l as PublishedEntryResource, m as PublishedEntryType, S as SiteConfiguration, W as WorkspaceInfo } from './index-BLIrbIHf.js';
5
+ import { A as AuthToken$1 } from './index-D4PQGrOK.js';
6
+ export { G as GetAssetsOptions, a as GetEntriesOptions, b as GetResourcesOptions, M as MarvinAsset, c as MarvinCollection, d as MarvinEntry, e as MarvinEntryListItem, f as MarvinEntryType, g as MarvinPublishResponse, h as MarvinResource, i as MarvinSite, P as PublishedAssetRead, j as PublishedCollectionSummary, k as PublishedEntryAsset, l as PublishedEntryResource, m as PublishedEntryType, S as SiteConfiguration, W as WorkspaceInfo } from './index-D4PQGrOK.js';
7
7
 
8
8
  /**
9
9
  * Authentication & User Registration
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-L4LJWRA7.js";
16
+ } from "./chunk-R3EZI43S.js";
17
17
  import {
18
18
  BearerTokenAuth,
19
19
  HttpClient,
@@ -1,4 +1,4 @@
1
- import { m as PublishedEntryType, h as MarvinResource, M as MarvinAsset, c as MarvinCollection, e as MarvinEntryListItem, j as PublishedCollectionSummary, d as MarvinEntry, k as PublishedEntryAsset, l as PublishedEntryResource, i as MarvinSite, n as components, b as GetResourcesOptions$1 } from './index-BLIrbIHf.cjs';
1
+ import { m as PublishedEntryType, h as MarvinResource, M as MarvinAsset, c as MarvinCollection, e as MarvinEntryListItem, j as PublishedCollectionSummary, d as MarvinEntry, k as PublishedEntryAsset, l as PublishedEntryResource, i as MarvinSite, n as components, b as GetResourcesOptions$1 } from './index-D4PQGrOK.cjs';
2
2
  import { H as HttpClient } from './HttpClient-CdF3IHM1.cjs';
3
3
 
4
4
  /**
@@ -375,10 +375,6 @@ declare class Entry {
375
375
  get assets(): PublishedEntryAsset[];
376
376
  get collections(): PublishedCollectionSummary[];
377
377
  get resources(): PublishedEntryResource[];
378
- asset(role: string): PublishedEntryAsset | undefined;
379
- assetsByRole(role: string): PublishedEntryAsset[];
380
- resource(role: string): PublishedEntryResource | undefined;
381
- resourcesByRole(role: string): PublishedEntryResource[];
382
378
  field<T = unknown>(key: string): T | undefined;
383
379
  get fields(): Record<string, unknown>;
384
380
  toJSON(): MarvinEntry;
@@ -1,4 +1,4 @@
1
- import { m as PublishedEntryType, h as MarvinResource, M as MarvinAsset, c as MarvinCollection, e as MarvinEntryListItem, j as PublishedCollectionSummary, d as MarvinEntry, k as PublishedEntryAsset, l as PublishedEntryResource, i as MarvinSite, n as components, b as GetResourcesOptions$1 } from './index-BLIrbIHf.js';
1
+ import { m as PublishedEntryType, h as MarvinResource, M as MarvinAsset, c as MarvinCollection, e as MarvinEntryListItem, j as PublishedCollectionSummary, d as MarvinEntry, k as PublishedEntryAsset, l as PublishedEntryResource, i as MarvinSite, n as components, b as GetResourcesOptions$1 } from './index-D4PQGrOK.js';
2
2
  import { H as HttpClient } from './HttpClient-CdF3IHM1.js';
3
3
 
4
4
  /**
@@ -375,10 +375,6 @@ declare class Entry {
375
375
  get assets(): PublishedEntryAsset[];
376
376
  get collections(): PublishedCollectionSummary[];
377
377
  get resources(): PublishedEntryResource[];
378
- asset(role: string): PublishedEntryAsset | undefined;
379
- assetsByRole(role: string): PublishedEntryAsset[];
380
- resource(role: string): PublishedEntryResource | undefined;
381
- resourcesByRole(role: string): PublishedEntryResource[];
382
378
  field<T = unknown>(key: string): T | undefined;
383
379
  get fields(): Record<string, unknown>;
384
380
  toJSON(): MarvinEntry;
@@ -1,5 +1,5 @@
1
1
  import { H as HttpClient } from './HttpClient-CdF3IHM1.cjs';
2
- import { n as components, A as AuthToken } from './index-BLIrbIHf.cjs';
2
+ import { n as components, A as AuthToken } from './index-D4PQGrOK.cjs';
3
3
 
4
4
  /**
5
5
  * Platform API Types
@@ -1,5 +1,5 @@
1
1
  import { H as HttpClient } from './HttpClient-CdF3IHM1.js';
2
- import { n as components, A as AuthToken } from './index-BLIrbIHf.js';
2
+ import { n as components, A as AuthToken } from './index-D4PQGrOK.js';
3
3
 
4
4
  /**
5
5
  * Platform API Types
package/dist/publish.cjs CHANGED
@@ -764,18 +764,6 @@ var Entry = class {
764
764
  get resources() {
765
765
  return this.raw.resources;
766
766
  }
767
- asset(role) {
768
- return this.raw.assets.find((a) => a.role === role);
769
- }
770
- assetsByRole(role) {
771
- return this.raw.assets.filter((a) => a.role === role);
772
- }
773
- resource(role) {
774
- return this.raw.resources.find((r) => r.role === role);
775
- }
776
- resourcesByRole(role) {
777
- return this.raw.resources.filter((r) => r.role === role);
778
- }
779
767
  field(key) {
780
768
  return this.raw.data[key];
781
769
  }
@@ -1,6 +1,6 @@
1
- import { M as MarvinConfig, a as MarvinClient } from './marvin-BhI__9Cj.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-BhI__9Cj.cjs';
3
- export { G as GetAssetsOptions, a as GetEntriesOptions, b as GetResourcesOptions, M as MarvinAsset, c as MarvinCollection, d as MarvinEntry, e as MarvinEntryListItem, f as MarvinEntryType, g as MarvinPublishResponse, h as MarvinResource, i as MarvinSite, P as PublishedAssetRead, j as PublishedCollectionSummary, k as PublishedEntryAsset, l as PublishedEntryResource, S as SiteConfiguration, W as WorkspaceInfo } from './index-BLIrbIHf.cjs';
1
+ import { M as MarvinConfig, a as MarvinClient } from './marvin-BLhk8ZKO.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-BLhk8ZKO.cjs';
3
+ export { G as GetAssetsOptions, a as GetEntriesOptions, b as GetResourcesOptions, M as MarvinAsset, c as MarvinCollection, d as MarvinEntry, e as MarvinEntryListItem, f as MarvinEntryType, g as MarvinPublishResponse, h as MarvinResource, i as MarvinSite, P as PublishedAssetRead, j as PublishedCollectionSummary, k as PublishedEntryAsset, l as PublishedEntryResource, S as SiteConfiguration, W as WorkspaceInfo } from './index-D4PQGrOK.cjs';
4
4
  export { A as AuthStrategy, B as BearerTokenAuth, H as HttpClient, a as HttpClientConfig } from './HttpClient-CdF3IHM1.cjs';
5
5
 
6
6
  /**
package/dist/publish.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { M as MarvinConfig, a as MarvinClient } from './marvin-C_TihjE2.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-C_TihjE2.js';
3
- export { G as GetAssetsOptions, a as GetEntriesOptions, b as GetResourcesOptions, M as MarvinAsset, c as MarvinCollection, d as MarvinEntry, e as MarvinEntryListItem, f as MarvinEntryType, g as MarvinPublishResponse, h as MarvinResource, i as MarvinSite, P as PublishedAssetRead, j as PublishedCollectionSummary, k as PublishedEntryAsset, l as PublishedEntryResource, S as SiteConfiguration, W as WorkspaceInfo } from './index-BLIrbIHf.js';
1
+ import { M as MarvinConfig, a as MarvinClient } from './marvin-DWlYHd6f.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-DWlYHd6f.js';
3
+ export { G as GetAssetsOptions, a as GetEntriesOptions, b as GetResourcesOptions, M as MarvinAsset, c as MarvinCollection, d as MarvinEntry, e as MarvinEntryListItem, f as MarvinEntryType, g as MarvinPublishResponse, h as MarvinResource, i as MarvinSite, P as PublishedAssetRead, j as PublishedCollectionSummary, k as PublishedEntryAsset, l as PublishedEntryResource, S as SiteConfiguration, W as WorkspaceInfo } from './index-D4PQGrOK.js';
4
4
  export { A as AuthStrategy, B as BearerTokenAuth, H as HttpClient, a as HttpClientConfig } from './HttpClient-CdF3IHM1.js';
5
5
 
6
6
  /**
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-L4LJWRA7.js";
15
+ } from "./chunk-R3EZI43S.js";
16
16
  import {
17
17
  BearerTokenAuth,
18
18
  HttpClient,
@@ -1 +1 @@
1
- export { o as AssetUploadRequest, A as AuthToken, G as GetAssetsOptions, a as GetEntriesOptions, b as GetResourcesOptions, M as MarvinAsset, p as MarvinClientConfig, c as MarvinCollection, d as MarvinEntry, e as MarvinEntryListItem, f as MarvinEntryType, g as MarvinPublishResponse, h as MarvinResource, i as MarvinSite, P as PublishedAssetRead, j as PublishedCollectionSummary, k as PublishedEntryAsset, l as PublishedEntryResource, m as PublishedEntryType, S as SiteConfiguration, W as WorkspaceInfo } from '../index-BLIrbIHf.cjs';
1
+ export { o as AssetAttachment, p as AssetUploadRequest, A as AuthToken, E as EntryResourceRead, G as GetAssetsOptions, a as GetEntriesOptions, b as GetResourcesOptions, M as MarvinAsset, q as MarvinClientConfig, c as MarvinCollection, d as MarvinEntry, e as MarvinEntryListItem, f as MarvinEntryType, g as MarvinPublishResponse, h as MarvinResource, i as MarvinSite, P as PublishedAssetRead, j as PublishedCollectionSummary, k as PublishedEntryAsset, l as PublishedEntryResource, m as PublishedEntryType, R as ResourceAttachment, S as SiteConfiguration, W as WorkspaceInfo } from '../index-D4PQGrOK.cjs';
@@ -1 +1 @@
1
- export { o as AssetUploadRequest, A as AuthToken, G as GetAssetsOptions, a as GetEntriesOptions, b as GetResourcesOptions, M as MarvinAsset, p as MarvinClientConfig, c as MarvinCollection, d as MarvinEntry, e as MarvinEntryListItem, f as MarvinEntryType, g as MarvinPublishResponse, h as MarvinResource, i as MarvinSite, P as PublishedAssetRead, j as PublishedCollectionSummary, k as PublishedEntryAsset, l as PublishedEntryResource, m as PublishedEntryType, S as SiteConfiguration, W as WorkspaceInfo } from '../index-BLIrbIHf.js';
1
+ export { o as AssetAttachment, p as AssetUploadRequest, A as AuthToken, E as EntryResourceRead, G as GetAssetsOptions, a as GetEntriesOptions, b as GetResourcesOptions, M as MarvinAsset, q as MarvinClientConfig, c as MarvinCollection, d as MarvinEntry, e as MarvinEntryListItem, f as MarvinEntryType, g as MarvinPublishResponse, h as MarvinResource, i as MarvinSite, P as PublishedAssetRead, j as PublishedCollectionSummary, k as PublishedEntryAsset, l as PublishedEntryResource, m as PublishedEntryType, R as ResourceAttachment, S as SiteConfiguration, W as WorkspaceInfo } from '../index-D4PQGrOK.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inneropen/marvin-sdk",
3
- "version": "3.1.0",
3
+ "version": "3.2.0-next.1",
4
4
  "description": "Official TypeScript SDK for Marvin CMS",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",