@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.
@@ -1,6 +1,6 @@
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';
3
- export { GetAssetsOptions, GetEntriesOptions, GetResourcesOptions, MarvinAsset, MarvinCollection, MarvinEntry, MarvinEntryListItem, 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-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';
3
- export { GetAssetsOptions, GetEntriesOptions, GetResourcesOptions, MarvinAsset, MarvinCollection, MarvinEntry, MarvinEntryListItem, 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
  /**
@@ -1,211 +1 @@
1
- /**
2
- * Marvin Publishing Client Types
3
- *
4
- * TypeScript types for the Marvin publishing API responses.
5
- */
6
- interface MarvinSite {
7
- workspace: {
8
- slug: string;
9
- name: string;
10
- };
11
- site: {
12
- title?: string | null;
13
- tagline?: string | null;
14
- description?: string | null;
15
- canonicalUrl?: string | null;
16
- logo?: string | null;
17
- favicon?: string | null;
18
- locale: string;
19
- timezone: string;
20
- contactEmail?: string | null;
21
- social?: Record<string, unknown> | null;
22
- metadataJson?: Record<string, unknown> | null;
23
- };
24
- }
25
- interface MarvinEntryType {
26
- id: string;
27
- groupId: string | null;
28
- name: string;
29
- slug: string;
30
- icon?: string | null;
31
- color?: string | null;
32
- description?: string | null;
33
- sortOrder: number;
34
- isSystem: boolean;
35
- isRendered: boolean;
36
- schemaJson?: Record<string, unknown> | null;
37
- renderingJson?: Record<string, unknown> | null;
38
- capabilitiesJson?: Record<string, unknown> | null;
39
- createdAt?: string | null;
40
- updateAt?: string | null;
41
- warnings?: string[] | null;
42
- }
43
- interface MarvinAsset {
44
- slug: string;
45
- name: string;
46
- mimeType: string;
47
- assetType: string;
48
- fileSize: number;
49
- width?: number | null;
50
- height?: number | null;
51
- altText?: string | null;
52
- description?: string | null;
53
- publicUrl: string;
54
- metadataJson?: Record<string, unknown> | null;
55
- }
56
- interface AssetUploadRequest {
57
- slug: string;
58
- name: string;
59
- altText?: string;
60
- description?: string;
61
- metadata?: Record<string, unknown>;
62
- }
63
- interface MarvinCollection {
64
- slug: string;
65
- name: string;
66
- description?: string | null;
67
- isSmart: boolean;
68
- smartRules?: Record<string, unknown> | null;
69
- metadataJson?: Record<string, unknown> | null;
70
- entryCount: number;
71
- entries: MarvinEntryListItem[];
72
- }
73
- interface MarvinResource {
74
- slug: string;
75
- name: string;
76
- resourceType: string;
77
- description?: string | null;
78
- url?: string | null;
79
- externalId?: string | null;
80
- metadataJson?: Record<string, unknown> | null;
81
- entries: string[];
82
- }
83
- interface PublishedCollectionSummary {
84
- slug: string;
85
- name: string;
86
- metadataJson?: Record<string, unknown> | null;
87
- sortOrder: number;
88
- }
89
- interface PublishedResourceRead {
90
- slug: string;
91
- name: string;
92
- resourceType: string;
93
- description?: string | null;
94
- url?: string | null;
95
- externalId?: string | null;
96
- metadataJson?: Record<string, unknown> | null;
97
- role?: string | null;
98
- quantity?: string | null;
99
- unit?: string | null;
100
- position: number;
101
- }
102
- interface PublishedAssetRead {
103
- slug: string;
104
- name: string;
105
- mimeType: string;
106
- assetType: string;
107
- fileSize: number;
108
- width?: number | null;
109
- height?: number | null;
110
- altText?: string | null;
111
- description?: string | null;
112
- publicUrl: string;
113
- metadataJson?: Record<string, unknown> | null;
114
- }
115
- interface MarvinEntryListItem {
116
- slug: string;
117
- title: string;
118
- entryType: string;
119
- entryTypeInfo?: {
120
- slug: string;
121
- renderer?: string | null;
122
- package?: string | null;
123
- version?: string | null;
124
- config?: Record<string, unknown> | null;
125
- publishable: boolean;
126
- submittable: boolean;
127
- routable: boolean;
128
- } | null;
129
- summary?: string | null;
130
- publishedAt?: string | null;
131
- status: string;
132
- collections: string[];
133
- assetSlugs: string[];
134
- resourceSlugs: string[];
135
- order?: number | null;
136
- }
137
- interface MarvinEntry {
138
- slug: string;
139
- title: string;
140
- entryType: string;
141
- entryTypeInfo?: {
142
- slug: string;
143
- renderer?: string | null;
144
- package?: string | null;
145
- version?: string | null;
146
- config?: Record<string, unknown> | null;
147
- publishable: boolean;
148
- submittable: boolean;
149
- routable: boolean;
150
- } | null;
151
- summary?: string | null;
152
- data: Record<string, unknown>;
153
- publishedAt?: string | null;
154
- metadataJson?: Record<string, unknown> | null;
155
- collections: PublishedCollectionSummary[];
156
- resources: PublishedResourceRead[];
157
- assets: PublishedAssetRead[];
158
- order?: number | null;
159
- }
160
- interface MarvinPublishResponse<T> {
161
- data: T;
162
- meta?: {
163
- total?: number;
164
- page?: number;
165
- limit?: number;
166
- };
167
- }
168
- interface MarvinClientConfig {
169
- apiUrl: string;
170
- siteClientToken: string;
171
- workspaceSlug: string;
172
- }
173
- interface GetEntriesOptions {
174
- entryType?: string;
175
- collection?: string;
176
- limit?: number;
177
- offset?: number;
178
- status?: string;
179
- }
180
- interface GetAssetsOptions {
181
- type?: string;
182
- limit?: number;
183
- offset?: number;
184
- }
185
- interface PublishedEntryType {
186
- slug: string;
187
- name: string;
188
- isRendered: boolean;
189
- rendering?: {
190
- renderer?: string;
191
- package?: string;
192
- version?: string;
193
- config?: Record<string, unknown>;
194
- };
195
- capabilities?: {
196
- publishable: boolean;
197
- submittable: boolean;
198
- routable: boolean;
199
- } | null;
200
- }
201
- interface GetResourcesOptions {
202
- resourceType?: string;
203
- limit?: number;
204
- offset?: number;
205
- }
206
- interface AuthToken {
207
- accessToken: string;
208
- tokenType: string;
209
- }
210
-
211
- export type { AssetUploadRequest, AuthToken, GetAssetsOptions, GetEntriesOptions, GetResourcesOptions, MarvinAsset, MarvinClientConfig, MarvinCollection, MarvinEntry, MarvinEntryListItem, MarvinEntryType, MarvinPublishResponse, MarvinResource, MarvinSite, 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';
@@ -1,211 +1 @@
1
- /**
2
- * Marvin Publishing Client Types
3
- *
4
- * TypeScript types for the Marvin publishing API responses.
5
- */
6
- interface MarvinSite {
7
- workspace: {
8
- slug: string;
9
- name: string;
10
- };
11
- site: {
12
- title?: string | null;
13
- tagline?: string | null;
14
- description?: string | null;
15
- canonicalUrl?: string | null;
16
- logo?: string | null;
17
- favicon?: string | null;
18
- locale: string;
19
- timezone: string;
20
- contactEmail?: string | null;
21
- social?: Record<string, unknown> | null;
22
- metadataJson?: Record<string, unknown> | null;
23
- };
24
- }
25
- interface MarvinEntryType {
26
- id: string;
27
- groupId: string | null;
28
- name: string;
29
- slug: string;
30
- icon?: string | null;
31
- color?: string | null;
32
- description?: string | null;
33
- sortOrder: number;
34
- isSystem: boolean;
35
- isRendered: boolean;
36
- schemaJson?: Record<string, unknown> | null;
37
- renderingJson?: Record<string, unknown> | null;
38
- capabilitiesJson?: Record<string, unknown> | null;
39
- createdAt?: string | null;
40
- updateAt?: string | null;
41
- warnings?: string[] | null;
42
- }
43
- interface MarvinAsset {
44
- slug: string;
45
- name: string;
46
- mimeType: string;
47
- assetType: string;
48
- fileSize: number;
49
- width?: number | null;
50
- height?: number | null;
51
- altText?: string | null;
52
- description?: string | null;
53
- publicUrl: string;
54
- metadataJson?: Record<string, unknown> | null;
55
- }
56
- interface AssetUploadRequest {
57
- slug: string;
58
- name: string;
59
- altText?: string;
60
- description?: string;
61
- metadata?: Record<string, unknown>;
62
- }
63
- interface MarvinCollection {
64
- slug: string;
65
- name: string;
66
- description?: string | null;
67
- isSmart: boolean;
68
- smartRules?: Record<string, unknown> | null;
69
- metadataJson?: Record<string, unknown> | null;
70
- entryCount: number;
71
- entries: MarvinEntryListItem[];
72
- }
73
- interface MarvinResource {
74
- slug: string;
75
- name: string;
76
- resourceType: string;
77
- description?: string | null;
78
- url?: string | null;
79
- externalId?: string | null;
80
- metadataJson?: Record<string, unknown> | null;
81
- entries: string[];
82
- }
83
- interface PublishedCollectionSummary {
84
- slug: string;
85
- name: string;
86
- metadataJson?: Record<string, unknown> | null;
87
- sortOrder: number;
88
- }
89
- interface PublishedResourceRead {
90
- slug: string;
91
- name: string;
92
- resourceType: string;
93
- description?: string | null;
94
- url?: string | null;
95
- externalId?: string | null;
96
- metadataJson?: Record<string, unknown> | null;
97
- role?: string | null;
98
- quantity?: string | null;
99
- unit?: string | null;
100
- position: number;
101
- }
102
- interface PublishedAssetRead {
103
- slug: string;
104
- name: string;
105
- mimeType: string;
106
- assetType: string;
107
- fileSize: number;
108
- width?: number | null;
109
- height?: number | null;
110
- altText?: string | null;
111
- description?: string | null;
112
- publicUrl: string;
113
- metadataJson?: Record<string, unknown> | null;
114
- }
115
- interface MarvinEntryListItem {
116
- slug: string;
117
- title: string;
118
- entryType: string;
119
- entryTypeInfo?: {
120
- slug: string;
121
- renderer?: string | null;
122
- package?: string | null;
123
- version?: string | null;
124
- config?: Record<string, unknown> | null;
125
- publishable: boolean;
126
- submittable: boolean;
127
- routable: boolean;
128
- } | null;
129
- summary?: string | null;
130
- publishedAt?: string | null;
131
- status: string;
132
- collections: string[];
133
- assetSlugs: string[];
134
- resourceSlugs: string[];
135
- order?: number | null;
136
- }
137
- interface MarvinEntry {
138
- slug: string;
139
- title: string;
140
- entryType: string;
141
- entryTypeInfo?: {
142
- slug: string;
143
- renderer?: string | null;
144
- package?: string | null;
145
- version?: string | null;
146
- config?: Record<string, unknown> | null;
147
- publishable: boolean;
148
- submittable: boolean;
149
- routable: boolean;
150
- } | null;
151
- summary?: string | null;
152
- data: Record<string, unknown>;
153
- publishedAt?: string | null;
154
- metadataJson?: Record<string, unknown> | null;
155
- collections: PublishedCollectionSummary[];
156
- resources: PublishedResourceRead[];
157
- assets: PublishedAssetRead[];
158
- order?: number | null;
159
- }
160
- interface MarvinPublishResponse<T> {
161
- data: T;
162
- meta?: {
163
- total?: number;
164
- page?: number;
165
- limit?: number;
166
- };
167
- }
168
- interface MarvinClientConfig {
169
- apiUrl: string;
170
- siteClientToken: string;
171
- workspaceSlug: string;
172
- }
173
- interface GetEntriesOptions {
174
- entryType?: string;
175
- collection?: string;
176
- limit?: number;
177
- offset?: number;
178
- status?: string;
179
- }
180
- interface GetAssetsOptions {
181
- type?: string;
182
- limit?: number;
183
- offset?: number;
184
- }
185
- interface PublishedEntryType {
186
- slug: string;
187
- name: string;
188
- isRendered: boolean;
189
- rendering?: {
190
- renderer?: string;
191
- package?: string;
192
- version?: string;
193
- config?: Record<string, unknown>;
194
- };
195
- capabilities?: {
196
- publishable: boolean;
197
- submittable: boolean;
198
- routable: boolean;
199
- } | null;
200
- }
201
- interface GetResourcesOptions {
202
- resourceType?: string;
203
- limit?: number;
204
- offset?: number;
205
- }
206
- interface AuthToken {
207
- accessToken: string;
208
- tokenType: string;
209
- }
210
-
211
- export type { AssetUploadRequest, AuthToken, GetAssetsOptions, GetEntriesOptions, GetResourcesOptions, MarvinAsset, MarvinClientConfig, MarvinCollection, MarvinEntry, MarvinEntryListItem, MarvinEntryType, MarvinPublishResponse, MarvinResource, MarvinSite, 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.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inneropen/marvin-sdk",
3
- "version": "2.0.0-next.24",
3
+ "version": "2.0.0-next.25",
4
4
  "description": "Official TypeScript SDK for Marvin CMS",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",