@inneropen/marvin-sdk 2.0.0-next.23 → 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/platform.js CHANGED
@@ -1124,53 +1124,40 @@ var EmailTemplatesClient = class {
1124
1124
  http;
1125
1125
  /**
1126
1126
  * List all email templates for the workspace
1127
- * @param groupId - Workspace ID
1128
1127
  */
1129
1128
  async list(groupId) {
1130
1129
  return this.http.get(`/api/platform/workspaces/${groupId}/email-templates`);
1131
1130
  }
1132
1131
  /**
1133
1132
  * Get a specific email template
1134
- * @param groupId - Workspace ID
1135
- * @param templateId - Template ID
1136
1133
  */
1137
1134
  async get(groupId, templateId) {
1138
1135
  return this.http.get(`/api/platform/workspaces/${groupId}/email-templates/${templateId}`);
1139
1136
  }
1140
1137
  /**
1141
1138
  * Create a new email template
1142
- * @param groupId - Workspace ID
1143
- * @param data - Template data
1144
1139
  */
1145
1140
  async create(groupId, data) {
1146
1141
  return this.http.post(`/api/platform/workspaces/${groupId}/email-templates`, data);
1147
1142
  }
1148
1143
  /**
1149
1144
  * Update an email template
1150
- * @param groupId - Workspace ID
1151
- * @param templateId - Template ID
1152
- * @param data - Updated template data
1153
1145
  */
1154
1146
  async update(groupId, templateId, data) {
1155
1147
  return this.http.patch(`/api/platform/workspaces/${groupId}/email-templates/${templateId}`, data);
1156
1148
  }
1157
1149
  /**
1158
1150
  * Delete an email template
1159
- * @param groupId - Workspace ID
1160
- * @param templateId - Template ID
1161
1151
  */
1162
1152
  async delete(groupId, templateId) {
1163
1153
  await this.http.delete(`/api/platform/workspaces/${groupId}/email-templates/${templateId}`);
1164
1154
  }
1165
1155
  /**
1166
1156
  * Send a test email using a template
1167
- * @param groupId - Workspace ID
1168
- * @param templateId - Template ID
1169
- * @param recipientEmail - Test recipient email address
1170
1157
  */
1171
1158
  async sendTest(groupId, templateId, recipientEmail) {
1172
1159
  return this.http.post(`/api/platform/workspaces/${groupId}/email-templates/${templateId}/test`, {
1173
- recipient_email: recipientEmail
1160
+ email: recipientEmail
1174
1161
  });
1175
1162
  }
1176
1163
  };
package/dist/publish.cjs CHANGED
@@ -724,14 +724,10 @@ var MarvinHttpClient = class extends HttpClient {
724
724
 
725
725
  // src/entries/entry.ts
726
726
  var Entry = class {
727
- constructor(raw, http, workspaceSlug) {
727
+ constructor(raw) {
728
728
  this.raw = raw;
729
- this.http = http;
730
- this.workspaceSlug = workspaceSlug;
731
729
  }
732
730
  raw;
733
- http;
734
- workspaceSlug;
735
731
  get title() {
736
732
  return this.raw.title;
737
733
  }
@@ -774,9 +770,6 @@ var Entry = class {
774
770
  get fields() {
775
771
  return this.raw.data;
776
772
  }
777
- async relatedEntries() {
778
- throw new Error("Related entries not yet implemented");
779
- }
780
773
  toJSON() {
781
774
  return this.raw;
782
775
  }
@@ -799,7 +792,6 @@ var EntriesModule = class {
799
792
  collection: options.collection,
800
793
  limit: options.limit,
801
794
  offset: options.offset
802
- // Don't send status - backend always returns published
803
795
  });
804
796
  const endpoint = `/api/publish/${this.workspaceSlug}/entries${queryString}`;
805
797
  const response = await this.http.fetch(endpoint);
@@ -813,7 +805,7 @@ var EntriesModule = class {
813
805
  try {
814
806
  const endpoint = `/api/publish/${this.workspaceSlug}/entries/${slug}`;
815
807
  const data = await this.http.fetch(endpoint);
816
- return new Entry(data, this.http, this.workspaceSlug);
808
+ return new Entry(data);
817
809
  } catch (error) {
818
810
  if (error instanceof MarvinNotFoundError) {
819
811
  return null;
@@ -843,18 +835,10 @@ var EntriesModule = class {
843
835
 
844
836
  // src/collections/collection.ts
845
837
  var Collection = class {
846
- constructor(data, http, workspaceSlug) {
838
+ constructor(data) {
847
839
  this.data = data;
848
- this.http = http;
849
- this.workspaceSlug = workspaceSlug;
850
840
  }
851
841
  data;
852
- http;
853
- workspaceSlug;
854
- // Expose all collection data as properties
855
- get id() {
856
- return this.data.id;
857
- }
858
842
  get name() {
859
843
  return this.data.name;
860
844
  }
@@ -864,48 +848,21 @@ var Collection = class {
864
848
  get description() {
865
849
  return this.data.description;
866
850
  }
867
- get icon() {
868
- return this.data.icon;
869
- }
870
- get color() {
871
- return this.data.color;
872
- }
873
- get sortOrder() {
874
- return this.data.sortOrder;
875
- }
876
851
  get isSmart() {
877
852
  return this.data.isSmart;
878
853
  }
879
854
  get smartRules() {
880
855
  return this.data.smartRules;
881
856
  }
882
- get createdAt() {
883
- return this.data.createdAt;
884
- }
885
- get updatedAt() {
886
- return this.data.updatedAt;
887
- }
888
- /**
889
- * Get all entries in this collection
890
- */
891
- async entries() {
892
- return this.data.entries || [];
857
+ get metadataJson() {
858
+ return this.data.metadataJson;
893
859
  }
894
- /**
895
- * Get assets in this collection (future)
896
- */
897
- async assets() {
898
- throw new Error("Collection assets not yet implemented");
860
+ get entryCount() {
861
+ return this.data.entryCount;
899
862
  }
900
- /**
901
- * Get collection metadata (future)
902
- */
903
- async metadata() {
904
- throw new Error("Collection metadata not yet implemented");
863
+ get entries() {
864
+ return this.data.entries;
905
865
  }
906
- /**
907
- * Get raw collection data
908
- */
909
866
  toJSON() {
910
867
  return this.data;
911
868
  }
@@ -935,7 +892,7 @@ var CollectionsModule = class {
935
892
  try {
936
893
  const endpoint = `/api/publish/${this.workspaceSlug}/collections/${slug}`;
937
894
  const data = await this.http.fetch(endpoint);
938
- return new Collection(data, this.http, this.workspaceSlug);
895
+ return new Collection(data);
939
896
  } catch (error) {
940
897
  if (error instanceof MarvinNotFoundError) {
941
898
  return null;
@@ -952,21 +909,11 @@ var CollectionsModule = class {
952
909
  if (!collection) {
953
910
  return [];
954
911
  }
955
- return collection.entries();
912
+ return collection.entries;
956
913
  }
957
914
  /**
958
915
  * Try multiple collection slugs in fallback order
959
916
  * Returns the first collection that exists and has entries
960
- *
961
- * @param slugs - Collection slugs to try in order
962
- * @param options - Options for fallback behavior
963
- * @returns Entries from the first matching collection, or empty array
964
- *
965
- * @example
966
- * ```ts
967
- * // Try bench-notes, then journal, then blog
968
- * const entries = await collections.fallback(['bench-notes', 'journal', 'blog']);
969
- * ```
970
917
  */
971
918
  async fallback(slugs, options = {}) {
972
919
  const { requireEntries = true } = options;
@@ -976,7 +923,7 @@ var CollectionsModule = class {
976
923
  if (!collection) {
977
924
  continue;
978
925
  }
979
- const entries = await collection.entries();
926
+ const entries = collection.entries;
980
927
  if (!requireEntries || entries.length > 0) {
981
928
  return entries;
982
929
  }
@@ -1038,18 +985,10 @@ var AssetsModule = class {
1038
985
 
1039
986
  // src/resources/resource.ts
1040
987
  var Resource = class {
1041
- constructor(data, http, workspaceSlug) {
988
+ constructor(data) {
1042
989
  this.data = data;
1043
- this.http = http;
1044
- this.workspaceSlug = workspaceSlug;
1045
990
  }
1046
991
  data;
1047
- http;
1048
- workspaceSlug;
1049
- // Expose all resource data as properties
1050
- get id() {
1051
- return this.data.id;
1052
- }
1053
992
  get name() {
1054
993
  return this.data.name;
1055
994
  }
@@ -1068,31 +1007,12 @@ var Resource = class {
1068
1007
  get url() {
1069
1008
  return this.data.url;
1070
1009
  }
1071
- get metadata() {
1072
- return this.data.metadata;
1073
- }
1074
- get createdAt() {
1075
- return this.data.createdAt;
1076
- }
1077
- get updatedAt() {
1078
- return this.data.updatedAt;
1079
- }
1080
- /**
1081
- * Get all entries that reference this resource
1082
- */
1083
- async entries() {
1084
- const endpoint = `/api/publish/${this.workspaceSlug}/resources/${this.data.slug}/entries`;
1085
- return this.http.fetch(endpoint);
1010
+ get metadataJson() {
1011
+ return this.data.metadataJson;
1086
1012
  }
1087
- /**
1088
- * Get assets related to this resource (future)
1089
- */
1090
- async assets() {
1091
- throw new Error("Resource assets not yet implemented");
1013
+ get entries() {
1014
+ return this.data.entries;
1092
1015
  }
1093
- /**
1094
- * Get raw resource data
1095
- */
1096
1016
  toJSON() {
1097
1017
  return this.data;
1098
1018
  }
@@ -1125,14 +1045,14 @@ var ResourcesModule = class {
1125
1045
  async get(slug) {
1126
1046
  const endpoint = `/api/publish/${this.workspaceSlug}/resources/${slug}`;
1127
1047
  const data = await this.http.fetch(endpoint);
1128
- return new Resource(data, this.http, this.workspaceSlug);
1048
+ return new Resource(data);
1129
1049
  }
1130
1050
  /**
1131
- * Get entries that reference this resource
1051
+ * Get entry slugs that reference this resource
1132
1052
  */
1133
1053
  async entries(slug) {
1134
1054
  const resource = await this.get(slug);
1135
- return resource.entries();
1055
+ return resource.entries;
1136
1056
  }
1137
1057
  };
1138
1058
 
@@ -1206,8 +1126,11 @@ var Workspace = class {
1206
1126
 
1207
1127
  // src/client/marvin.ts
1208
1128
  var MarvinClient = class {
1129
+ http;
1130
+ cache;
1131
+ workspace;
1132
+ initialized = false;
1209
1133
  constructor(config) {
1210
- this.config = config;
1211
1134
  validateConfig(config);
1212
1135
  this.http = new MarvinHttpClient(config);
1213
1136
  this.cache = new MarvinCache(config.cacheDuration);
@@ -1216,11 +1139,6 @@ var MarvinClient = class {
1216
1139
  this.initialize();
1217
1140
  }
1218
1141
  }
1219
- config;
1220
- http;
1221
- cache;
1222
- workspace;
1223
- initialized = false;
1224
1142
  /**
1225
1143
  * Initialize the SDK
1226
1144
  * Preloads site configuration and metadata
@@ -1330,16 +1248,6 @@ var MarvinClient = class {
1330
1248
  /**
1331
1249
  * Try multiple collection slugs in fallback order
1332
1250
  * Returns entries from the first collection that exists and has content
1333
- *
1334
- * @param slugs - Collection slugs to try in order
1335
- * @param options - Options for fallback behavior
1336
- * @returns Entries from the first matching collection, or empty array
1337
- *
1338
- * @example
1339
- * ```ts
1340
- * // Try bench-notes, then journal, then blog
1341
- * const entries = await client.collectionFallback(['bench-notes', 'journal', 'blog']);
1342
- * ```
1343
1251
  */
1344
1252
  async collectionFallback(slugs, options) {
1345
1253
  return this.workspace.collections.fallback(slugs, options);
@@ -1349,21 +1257,18 @@ var MarvinClient = class {
1349
1257
  // ======================
1350
1258
  /**
1351
1259
  * @deprecated Use workspace.site or marvin.site instead
1352
- * Get site configuration
1353
1260
  */
1354
1261
  async getSite() {
1355
1262
  return this.workspace.loadSite();
1356
1263
  }
1357
1264
  /**
1358
1265
  * @deprecated Use workspace.entries.list() instead
1359
- * Get all published entries
1360
1266
  */
1361
1267
  async getEntries(options) {
1362
1268
  return this.workspace.entries.list(options);
1363
1269
  }
1364
1270
  /**
1365
1271
  * @deprecated Use workspace.entries.get() instead
1366
- * Get a single published entry by slug
1367
1272
  */
1368
1273
  async getEntry(slug) {
1369
1274
  const entry = await this.workspace.entries.get(slug);
@@ -1374,14 +1279,12 @@ var MarvinClient = class {
1374
1279
  }
1375
1280
  /**
1376
1281
  * @deprecated Use workspace.collections.list() instead
1377
- * Get all collections
1378
1282
  */
1379
1283
  async getCollections() {
1380
1284
  return this.workspace.collections.list();
1381
1285
  }
1382
1286
  /**
1383
1287
  * @deprecated Use workspace.collections.get() instead
1384
- * Get a single collection by slug
1385
1288
  */
1386
1289
  async getCollection(slug) {
1387
1290
  const collection = await this.workspace.collections.get(slug);
@@ -1392,28 +1295,24 @@ var MarvinClient = class {
1392
1295
  }
1393
1296
  /**
1394
1297
  * @deprecated Use workspace.collections.entries() instead
1395
- * Get all entries in a collection
1396
1298
  */
1397
1299
  async getCollectionEntries(slug) {
1398
1300
  return this.workspace.collections.entries(slug);
1399
1301
  }
1400
1302
  /**
1401
1303
  * @deprecated Use workspace.assets.list() instead
1402
- * Get all published assets
1403
1304
  */
1404
1305
  async getAssets(options) {
1405
1306
  return this.workspace.assets.list(options);
1406
1307
  }
1407
1308
  /**
1408
1309
  * @deprecated Use workspace.resources.list() instead
1409
- * Get all published resources
1410
1310
  */
1411
1311
  async getResources(options) {
1412
1312
  return this.workspace.resources.list(options);
1413
1313
  }
1414
1314
  /**
1415
1315
  * @deprecated Use workspace.resources.get() instead
1416
- * Get a single resource by slug
1417
1316
  */
1418
1317
  async getResource(slug) {
1419
1318
  const resource = await this.workspace.resources.get(slug);
@@ -1421,7 +1320,6 @@ var MarvinClient = class {
1421
1320
  }
1422
1321
  /**
1423
1322
  * @deprecated Use workspace.resources.entries() instead
1424
- * Get entries that reference a resource
1425
1323
  */
1426
1324
  async getResourceEntries(slug) {
1427
1325
  return this.workspace.resources.entries(slug);
@@ -1,6 +1,6 @@
1
- import { M as MarvinConfig, a as MarvinClient } from './marvin-ixVRMtIS.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-ixVRMtIS.cjs';
3
- export { GetAssetsOptions, GetEntriesOptions, GetResourcesOptions, MarvinAsset, MarvinCollection, MarvinEntry, MarvinEntryType, MarvinPublishResponse, MarvinResource, MarvinSite, PublishedAssetRead, PublishedCollectionSummary, PublishedResourceRead } from './types/index.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
+ 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, l as PublishedResourceRead, S as SiteConfiguration, W as WorkspaceInfo } from './index-D5zkKa4N.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-B6kWCfmU.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-B6kWCfmU.js';
3
- export { GetAssetsOptions, GetEntriesOptions, GetResourcesOptions, MarvinAsset, MarvinCollection, MarvinEntry, MarvinEntryType, MarvinPublishResponse, MarvinResource, MarvinSite, PublishedAssetRead, PublishedCollectionSummary, PublishedResourceRead } from './types/index.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
+ 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, l as PublishedResourceRead, S as SiteConfiguration, W as WorkspaceInfo } from './index-D5zkKa4N.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-CIFRKLJS.js";
15
+ } from "./chunk-DCTX4NSF.js";
16
16
  import {
17
17
  BearerTokenAuth,
18
18
  HttpClient,
@@ -1,218 +1 @@
1
- /**
2
- * Marvin Publishing Client Types
3
- *
4
- * TypeScript types for the Marvin publishing API responses.
5
- */
6
- interface MarvinSite {
7
- id: string;
8
- name: string;
9
- slug: string;
10
- title?: string;
11
- tagline?: string;
12
- description?: string;
13
- canonicalUrl?: string;
14
- logo?: string;
15
- favicon?: string;
16
- locale?: string;
17
- timezone?: string;
18
- metadata?: Record<string, unknown>;
19
- }
20
- interface MarvinEntryType {
21
- id: string;
22
- groupId: string | null;
23
- name: string;
24
- slug: string;
25
- icon?: string | null;
26
- color?: string | null;
27
- description?: string | null;
28
- sortOrder: number;
29
- isSystem: boolean;
30
- isRendered: boolean;
31
- schemaJson?: Record<string, unknown> | null;
32
- renderingJson?: Record<string, unknown> | null;
33
- capabilitiesJson?: Record<string, unknown> | null;
34
- createdAt?: string | null;
35
- updateAt?: string | null;
36
- warnings?: string[] | null;
37
- }
38
- interface MarvinAsset {
39
- id: string;
40
- slug: string;
41
- name: string;
42
- originalFilename: string;
43
- filename: string;
44
- extension: string;
45
- mimeType: string;
46
- assetType: 'image' | 'document' | 'video' | 'audio' | 'archive' | 'svg' | 'other';
47
- fileSize: number;
48
- checksum: string;
49
- width?: number;
50
- height?: number;
51
- orientation?: number;
52
- storageProvider: string;
53
- storageKey: string;
54
- publicUrl?: string;
55
- altText?: string;
56
- description?: string;
57
- metadata?: Record<string, unknown>;
58
- uploadedBy: string;
59
- createdAt: string;
60
- updatedAt: string;
61
- }
62
- interface PublishedAsset {
63
- slug: string;
64
- name: string;
65
- mimeType: string;
66
- assetType: string;
67
- fileSize: number;
68
- width?: number;
69
- height?: number;
70
- altText?: string;
71
- description?: string;
72
- publicUrl: string;
73
- }
74
- interface AssetUploadRequest {
75
- slug: string;
76
- name: string;
77
- altText?: string;
78
- description?: string;
79
- metadata?: Record<string, unknown>;
80
- }
81
- interface MarvinCollection {
82
- id: string;
83
- name: string;
84
- slug: string;
85
- description?: string;
86
- icon?: string;
87
- color?: string;
88
- sortOrder: number;
89
- isSmart: boolean;
90
- smartRules?: Record<string, unknown>;
91
- createdAt: string;
92
- updatedAt: string;
93
- entryCount?: number;
94
- entries?: MarvinEntry[];
95
- }
96
- interface MarvinResource {
97
- id: string;
98
- name: string;
99
- slug: string;
100
- resourceType?: string;
101
- description?: string;
102
- externalId?: string;
103
- url?: string;
104
- metadata?: Record<string, unknown>;
105
- createdAt: string;
106
- updatedAt: string;
107
- }
108
- interface PublishedCollectionSummary {
109
- slug: string;
110
- name: string;
111
- metadataJson?: Record<string, unknown> | null;
112
- sortOrder: number;
113
- }
114
- interface PublishedResourceRead {
115
- slug: string;
116
- name: string;
117
- resourceType: string;
118
- description?: string | null;
119
- url?: string | null;
120
- externalId?: string | null;
121
- metadataJson?: Record<string, unknown> | null;
122
- role?: string | null;
123
- quantity?: string | null;
124
- unit?: string | null;
125
- position: number;
126
- }
127
- interface PublishedAssetRead {
128
- slug: string;
129
- name: string;
130
- mimeType: string;
131
- assetType: string;
132
- fileSize: number;
133
- width?: number | null;
134
- height?: number | null;
135
- altText?: string | null;
136
- description?: string | null;
137
- publicUrl: string;
138
- metadataJson?: Record<string, unknown> | null;
139
- }
140
- interface MarvinEntry {
141
- slug: string;
142
- title: string;
143
- entryType: string;
144
- entryTypeInfo?: {
145
- slug: string;
146
- renderer?: string | null;
147
- package?: string | null;
148
- version?: string | null;
149
- config?: Record<string, unknown> | null;
150
- publishable: boolean;
151
- submittable: boolean;
152
- routable: boolean;
153
- } | null;
154
- summary?: string | null;
155
- data: Record<string, unknown>;
156
- publishedAt?: string | null;
157
- metadataJson?: Record<string, unknown> | null;
158
- collections: PublishedCollectionSummary[];
159
- resources: PublishedResourceRead[];
160
- assets: PublishedAssetRead[];
161
- order?: number | null;
162
- }
163
- interface MarvinPublishResponse<T> {
164
- data: T;
165
- meta?: {
166
- total?: number;
167
- page?: number;
168
- limit?: number;
169
- };
170
- }
171
- interface MarvinClientConfig {
172
- apiUrl: string;
173
- siteClientToken: string;
174
- workspaceSlug: string;
175
- }
176
- interface GetEntriesOptions {
177
- entryType?: string;
178
- collection?: string;
179
- limit?: number;
180
- offset?: number;
181
- status?: string;
182
- }
183
- interface GetAssetsOptions {
184
- type?: string;
185
- limit?: number;
186
- offset?: number;
187
- }
188
- interface PublishedEntryType {
189
- slug: string;
190
- name: string;
191
- isRendered: boolean;
192
- rendering?: {
193
- renderer?: string;
194
- package?: string;
195
- version?: string;
196
- config?: Record<string, unknown>;
197
- };
198
- capabilities?: {
199
- publishable: boolean;
200
- submittable: boolean;
201
- routable: boolean;
202
- } | null;
203
- }
204
- interface GetResourcesOptions {
205
- resourceType?: string;
206
- limit?: number;
207
- offset?: number;
208
- }
209
- /**
210
- * Authentication token response
211
- * Used by auth.login() and auth.refresh()
212
- */
213
- interface AuthToken {
214
- accessToken: string;
215
- tokenType: string;
216
- }
217
-
218
- export type { AssetUploadRequest, AuthToken, GetAssetsOptions, GetEntriesOptions, GetResourcesOptions, MarvinAsset, MarvinClientConfig, MarvinCollection, MarvinEntry, MarvinEntryType, MarvinPublishResponse, MarvinResource, MarvinSite, PublishedAsset, PublishedAssetRead, PublishedCollectionSummary, PublishedEntryType, PublishedResourceRead };
1
+ export { n as AssetUploadRequest, A as AuthToken, G as GetAssetsOptions, a as GetEntriesOptions, b as GetResourcesOptions, M as MarvinAsset, o 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 PublishedEntryType, l as PublishedResourceRead, S as SiteConfiguration, W as WorkspaceInfo } from '../index-D5zkKa4N.cjs';