@inneropen/marvin-sdk 2.0.0-next.24 → 2.0.0-next.25

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.cts CHANGED
@@ -1,9 +1,9 @@
1
- import { M as MarvinConfig, a as MarvinClient } from './marvin-CwB9ybc8.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-CwB9ybc8.cjs';
1
+ import { M as MarvinConfig, a as MarvinClient } from './marvin-DcQimSKv.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-DcQimSKv.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 { AuthToken as AuthToken$1 } from './types/index.cjs';
6
- export { GetAssetsOptions, GetEntriesOptions, GetResourcesOptions, MarvinAsset, MarvinCollection, MarvinEntry, MarvinEntryListItem, MarvinEntryType, MarvinPublishResponse, MarvinResource, MarvinSite, PublishedAssetRead, PublishedCollectionSummary, PublishedEntryType, PublishedResourceRead } from './types/index.cjs';
5
+ import { A as AuthToken$1 } from './index-D5zkKa4N.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 PublishedEntryType, l as PublishedResourceRead, S as SiteConfiguration, W as WorkspaceInfo } from './index-D5zkKa4N.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-KVTEthgH.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-KVTEthgH.js';
1
+ import { M as MarvinConfig, a as MarvinClient } from './marvin-DDpwJbmj.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-DDpwJbmj.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 { AuthToken as AuthToken$1 } from './types/index.js';
6
- export { GetAssetsOptions, GetEntriesOptions, GetResourcesOptions, MarvinAsset, MarvinCollection, MarvinEntry, MarvinEntryListItem, MarvinEntryType, MarvinPublishResponse, MarvinResource, MarvinSite, PublishedAssetRead, PublishedCollectionSummary, PublishedEntryType, PublishedResourceRead } from './types/index.js';
5
+ import { A as AuthToken$1 } from './index-D5zkKa4N.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 PublishedEntryType, l as PublishedResourceRead, S as SiteConfiguration, W as WorkspaceInfo } from './index-D5zkKa4N.js';
7
7
 
8
8
  /**
9
9
  * Authentication & User Registration
@@ -1,4 +1,4 @@
1
- import { PublishedEntryType, MarvinResource, MarvinAsset, MarvinCollection, MarvinEntryListItem, PublishedCollectionSummary, MarvinEntry, PublishedAssetRead, PublishedResourceRead, MarvinSite, GetResourcesOptions as GetResourcesOptions$1 } from './types/index.js';
1
+ import { k as PublishedEntryType, h as MarvinResource, M as MarvinAsset, c as MarvinCollection, e as MarvinEntryListItem, j as PublishedCollectionSummary, d as MarvinEntry, P as PublishedAssetRead, l as PublishedResourceRead, i as MarvinSite, m as components, b as GetResourcesOptions$1 } from './index-D5zkKa4N.js';
2
2
  import { H as HttpClient } from './HttpClient-CdF3IHM1.js';
3
3
 
4
4
  /**
@@ -219,7 +219,9 @@ declare class Resource {
219
219
  get description(): string | null | undefined;
220
220
  get externalId(): string | null | undefined;
221
221
  get url(): string | null | undefined;
222
- get metadataJson(): Record<string, unknown> | null | undefined;
222
+ get metadataJson(): {
223
+ [key: string]: unknown;
224
+ } | null | undefined;
223
225
  get entries(): string[];
224
226
  toJSON(): MarvinResource;
225
227
  }
@@ -297,8 +299,12 @@ declare class Collection {
297
299
  get slug(): string;
298
300
  get description(): string | null | undefined;
299
301
  get isSmart(): boolean;
300
- get smartRules(): Record<string, unknown> | null | undefined;
301
- get metadataJson(): Record<string, unknown> | null | undefined;
302
+ get smartRules(): {
303
+ [key: string]: unknown;
304
+ } | null | undefined;
305
+ get metadataJson(): {
306
+ [key: string]: unknown;
307
+ } | null | undefined;
302
308
  get entryCount(): number;
303
309
  get entries(): MarvinEntryListItem[];
304
310
  toJSON(): MarvinCollection;
@@ -351,13 +357,19 @@ declare class Entry {
351
357
  renderer?: string | null;
352
358
  package?: string | null;
353
359
  version?: string | null;
354
- config?: Record<string, unknown> | null;
360
+ config?: {
361
+ [key: string]: unknown;
362
+ } | null;
355
363
  publishable: boolean;
356
364
  submittable: boolean;
357
365
  routable: boolean;
358
366
  } | null | undefined;
359
- get data(): Record<string, unknown>;
360
- get metadataJson(): Record<string, unknown> | null | undefined;
367
+ get data(): {
368
+ [key: string]: unknown;
369
+ };
370
+ get metadataJson(): {
371
+ [key: string]: unknown;
372
+ } | null | undefined;
361
373
  get publishedAt(): string | null | undefined;
362
374
  get order(): number | null | undefined;
363
375
  get assets(): PublishedAssetRead[];
@@ -502,15 +514,51 @@ declare class MarvinClient {
502
514
  /**
503
515
  * Get all pages
504
516
  */
505
- pages(options?: GetEntriesOptions): Promise<MarvinEntryListItem[]>;
517
+ pages(options?: GetEntriesOptions): Promise<{
518
+ slug: string;
519
+ title: string;
520
+ entryType: string;
521
+ entryTypeInfo?: components["schemas"]["PublishedEntryTypeInfo"] | null;
522
+ summary?: string | null;
523
+ publishedAt?: string | null;
524
+ status: string;
525
+ collections: string[];
526
+ assetSlugs: string[];
527
+ resourceSlugs: string[];
528
+ order?: number | null;
529
+ }[]>;
506
530
  /**
507
531
  * Get all blog posts
508
532
  */
509
- posts(options?: GetEntriesOptions): Promise<MarvinEntryListItem[]>;
533
+ posts(options?: GetEntriesOptions): Promise<{
534
+ slug: string;
535
+ title: string;
536
+ entryType: string;
537
+ entryTypeInfo?: components["schemas"]["PublishedEntryTypeInfo"] | null;
538
+ summary?: string | null;
539
+ publishedAt?: string | null;
540
+ status: string;
541
+ collections: string[];
542
+ assetSlugs: string[];
543
+ resourceSlugs: string[];
544
+ order?: number | null;
545
+ }[]>;
510
546
  /**
511
547
  * Get all projects
512
548
  */
513
- projects(options?: GetEntriesOptions): Promise<MarvinEntryListItem[]>;
549
+ projects(options?: GetEntriesOptions): Promise<{
550
+ slug: string;
551
+ title: string;
552
+ entryType: string;
553
+ entryTypeInfo?: components["schemas"]["PublishedEntryTypeInfo"] | null;
554
+ summary?: string | null;
555
+ publishedAt?: string | null;
556
+ status: string;
557
+ collections: string[];
558
+ assetSlugs: string[];
559
+ resourceSlugs: string[];
560
+ order?: number | null;
561
+ }[]>;
514
562
  /**
515
563
  * Get a single resource by slug
516
564
  */
@@ -1,4 +1,4 @@
1
- import { PublishedEntryType, MarvinResource, MarvinAsset, MarvinCollection, MarvinEntryListItem, PublishedCollectionSummary, MarvinEntry, PublishedAssetRead, PublishedResourceRead, MarvinSite, GetResourcesOptions as GetResourcesOptions$1 } from './types/index.cjs';
1
+ import { k as PublishedEntryType, h as MarvinResource, M as MarvinAsset, c as MarvinCollection, e as MarvinEntryListItem, j as PublishedCollectionSummary, d as MarvinEntry, P as PublishedAssetRead, l as PublishedResourceRead, i as MarvinSite, m as components, b as GetResourcesOptions$1 } from './index-D5zkKa4N.cjs';
2
2
  import { H as HttpClient } from './HttpClient-CdF3IHM1.cjs';
3
3
 
4
4
  /**
@@ -219,7 +219,9 @@ declare class Resource {
219
219
  get description(): string | null | undefined;
220
220
  get externalId(): string | null | undefined;
221
221
  get url(): string | null | undefined;
222
- get metadataJson(): Record<string, unknown> | null | undefined;
222
+ get metadataJson(): {
223
+ [key: string]: unknown;
224
+ } | null | undefined;
223
225
  get entries(): string[];
224
226
  toJSON(): MarvinResource;
225
227
  }
@@ -297,8 +299,12 @@ declare class Collection {
297
299
  get slug(): string;
298
300
  get description(): string | null | undefined;
299
301
  get isSmart(): boolean;
300
- get smartRules(): Record<string, unknown> | null | undefined;
301
- get metadataJson(): Record<string, unknown> | null | undefined;
302
+ get smartRules(): {
303
+ [key: string]: unknown;
304
+ } | null | undefined;
305
+ get metadataJson(): {
306
+ [key: string]: unknown;
307
+ } | null | undefined;
302
308
  get entryCount(): number;
303
309
  get entries(): MarvinEntryListItem[];
304
310
  toJSON(): MarvinCollection;
@@ -351,13 +357,19 @@ declare class Entry {
351
357
  renderer?: string | null;
352
358
  package?: string | null;
353
359
  version?: string | null;
354
- config?: Record<string, unknown> | null;
360
+ config?: {
361
+ [key: string]: unknown;
362
+ } | null;
355
363
  publishable: boolean;
356
364
  submittable: boolean;
357
365
  routable: boolean;
358
366
  } | null | undefined;
359
- get data(): Record<string, unknown>;
360
- get metadataJson(): Record<string, unknown> | null | undefined;
367
+ get data(): {
368
+ [key: string]: unknown;
369
+ };
370
+ get metadataJson(): {
371
+ [key: string]: unknown;
372
+ } | null | undefined;
361
373
  get publishedAt(): string | null | undefined;
362
374
  get order(): number | null | undefined;
363
375
  get assets(): PublishedAssetRead[];
@@ -502,15 +514,51 @@ declare class MarvinClient {
502
514
  /**
503
515
  * Get all pages
504
516
  */
505
- pages(options?: GetEntriesOptions): Promise<MarvinEntryListItem[]>;
517
+ pages(options?: GetEntriesOptions): Promise<{
518
+ slug: string;
519
+ title: string;
520
+ entryType: string;
521
+ entryTypeInfo?: components["schemas"]["PublishedEntryTypeInfo"] | null;
522
+ summary?: string | null;
523
+ publishedAt?: string | null;
524
+ status: string;
525
+ collections: string[];
526
+ assetSlugs: string[];
527
+ resourceSlugs: string[];
528
+ order?: number | null;
529
+ }[]>;
506
530
  /**
507
531
  * Get all blog posts
508
532
  */
509
- posts(options?: GetEntriesOptions): Promise<MarvinEntryListItem[]>;
533
+ posts(options?: GetEntriesOptions): Promise<{
534
+ slug: string;
535
+ title: string;
536
+ entryType: string;
537
+ entryTypeInfo?: components["schemas"]["PublishedEntryTypeInfo"] | null;
538
+ summary?: string | null;
539
+ publishedAt?: string | null;
540
+ status: string;
541
+ collections: string[];
542
+ assetSlugs: string[];
543
+ resourceSlugs: string[];
544
+ order?: number | null;
545
+ }[]>;
510
546
  /**
511
547
  * Get all projects
512
548
  */
513
- projects(options?: GetEntriesOptions): Promise<MarvinEntryListItem[]>;
549
+ projects(options?: GetEntriesOptions): Promise<{
550
+ slug: string;
551
+ title: string;
552
+ entryType: string;
553
+ entryTypeInfo?: components["schemas"]["PublishedEntryTypeInfo"] | null;
554
+ summary?: string | null;
555
+ publishedAt?: string | null;
556
+ status: string;
557
+ collections: string[];
558
+ assetSlugs: string[];
559
+ resourceSlugs: string[];
560
+ order?: number | null;
561
+ }[]>;
514
562
  /**
515
563
  * Get a single resource by slug
516
564
  */