@inneropen/marvin-sdk 1.9.1 → 1.9.3

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.cjs CHANGED
@@ -34,6 +34,7 @@ __export(platform_exports, {
34
34
  NotificationsModule: () => NotificationsModule,
35
35
  PlatformClient: () => PlatformClient,
36
36
  ResourcesModule: () => ResourcesModule,
37
+ ThemeModule: () => ThemeModule,
37
38
  UserModule: () => UserModule,
38
39
  WebhooksModule: () => WebhooksModule,
39
40
  WorkspaceMembersModule: () => WorkspaceMembersModule,
@@ -477,6 +478,24 @@ var EntryTypesModule = class {
477
478
  async get(id) {
478
479
  return this.http.get(`/api/platform/entry-types/${id}`);
479
480
  }
481
+ /**
482
+ * Create a new entry type
483
+ */
484
+ async create(data) {
485
+ return this.http.post("/api/platform/entry-types", data);
486
+ }
487
+ /**
488
+ * Update an entry type
489
+ */
490
+ async update(id, data) {
491
+ return this.http.patch(`/api/platform/entry-types/${id}`, data);
492
+ }
493
+ /**
494
+ * Delete an entry type
495
+ */
496
+ async delete(id) {
497
+ return this.http.delete(`/api/platform/entry-types/${id}`);
498
+ }
480
499
  };
481
500
 
482
501
  // src/platform/workspaceMembers.ts
@@ -942,6 +961,20 @@ var AuthModule = class {
942
961
  }
943
962
  };
944
963
 
964
+ // src/platform/theme.ts
965
+ var ThemeModule = class {
966
+ constructor(http) {
967
+ this.http = http;
968
+ }
969
+ http;
970
+ /**
971
+ * Get application theme colors
972
+ */
973
+ async getTheme() {
974
+ return this.http.get("/api/about/theme");
975
+ }
976
+ };
977
+
945
978
  // src/platform/client.ts
946
979
  var PlatformClient = class extends HttpClient {
947
980
  entries;
@@ -958,6 +991,7 @@ var PlatformClient = class extends HttpClient {
958
991
  user;
959
992
  events;
960
993
  session;
994
+ theme;
961
995
  // Admin modules
962
996
  adminUsers;
963
997
  adminSystem;
@@ -983,6 +1017,7 @@ var PlatformClient = class extends HttpClient {
983
1017
  this.user = new UserModule(this);
984
1018
  this.events = new EventsModule(this);
985
1019
  this.session = new AuthModule(this);
1020
+ this.theme = new ThemeModule(this);
986
1021
  this.adminUsers = new AdminUsersModule(this);
987
1022
  this.adminSystem = new AdminSystemModule(this);
988
1023
  this.adminMaintenance = new AdminMaintenanceModule(this);
@@ -1007,6 +1042,7 @@ function createPlatformClient(config) {
1007
1042
  NotificationsModule,
1008
1043
  PlatformClient,
1009
1044
  ResourcesModule,
1045
+ ThemeModule,
1010
1046
  UserModule,
1011
1047
  WebhooksModule,
1012
1048
  WorkspaceMembersModule,
@@ -2626,10 +2626,24 @@ declare class APIClientsModule {
2626
2626
 
2627
2627
  /**
2628
2628
  * Entry Types Module - Platform API
2629
- *
2630
- * Read-only access to entry types
2631
2629
  */
2632
2630
 
2631
+ interface EntryTypeCreate {
2632
+ name: string;
2633
+ slug?: string;
2634
+ description?: string;
2635
+ icon?: string;
2636
+ color?: string;
2637
+ sortOrder?: number;
2638
+ }
2639
+ interface EntryTypeUpdate {
2640
+ name?: string;
2641
+ slug?: string;
2642
+ description?: string;
2643
+ icon?: string;
2644
+ color?: string;
2645
+ sortOrder?: number;
2646
+ }
2633
2647
  declare class EntryTypesModule {
2634
2648
  private http;
2635
2649
  constructor(http: HttpClient);
@@ -2641,6 +2655,18 @@ declare class EntryTypesModule {
2641
2655
  * Get a single entry type by ID
2642
2656
  */
2643
2657
  get(id: string): Promise<PlatformEntryType>;
2658
+ /**
2659
+ * Create a new entry type
2660
+ */
2661
+ create(data: EntryTypeCreate): Promise<PlatformEntryType>;
2662
+ /**
2663
+ * Update an entry type
2664
+ */
2665
+ update(id: string, data: EntryTypeUpdate): Promise<PlatformEntryType>;
2666
+ /**
2667
+ * Delete an entry type
2668
+ */
2669
+ delete(id: string): Promise<void>;
2644
2670
  }
2645
2671
 
2646
2672
  /**
@@ -3164,6 +3190,37 @@ declare class AuthModule {
3164
3190
  logout(): Promise<void>;
3165
3191
  }
3166
3192
 
3193
+ /**
3194
+ * Theme Module - Platform API
3195
+ *
3196
+ * Application theme settings
3197
+ */
3198
+
3199
+ interface AppTheme {
3200
+ lightPrimary: string;
3201
+ lightAccent: string;
3202
+ lightSecondary: string;
3203
+ lightSuccess: string;
3204
+ lightInfo: string;
3205
+ lightWarning: string;
3206
+ lightError: string;
3207
+ darkPrimary: string;
3208
+ darkAccent: string;
3209
+ darkSecondary: string;
3210
+ darkSuccess: string;
3211
+ darkInfo: string;
3212
+ darkWarning: string;
3213
+ darkError: string;
3214
+ }
3215
+ declare class ThemeModule {
3216
+ private http;
3217
+ constructor(http: HttpClient);
3218
+ /**
3219
+ * Get application theme colors
3220
+ */
3221
+ getTheme(): Promise<AppTheme>;
3222
+ }
3223
+
3167
3224
  /**
3168
3225
  * Platform API Client
3169
3226
  *
@@ -3190,6 +3247,7 @@ declare class PlatformClient extends HttpClient {
3190
3247
  user: UserModule;
3191
3248
  events: EventsModule;
3192
3249
  session: AuthModule;
3250
+ theme: ThemeModule;
3193
3251
  adminUsers: AdminUsersModule;
3194
3252
  adminSystem: AdminSystemModule;
3195
3253
  adminMaintenance: AdminMaintenanceModule;
@@ -3200,4 +3258,4 @@ declare class PlatformClient extends HttpClient {
3200
3258
  */
3201
3259
  declare function createPlatformClient(config: PlatformClientConfig): PlatformClient;
3202
3260
 
3203
- export { APIClientsModule, type AdminAboutInfo, AdminMaintenanceModule, AdminSystemModule, AdminUsersModule, type ApiToken, type ApiTokenCreate, type ApiTokenWithToken, AssetsModule, AuthModule, type AuthToken, CollectionsModule, type EmailInvitationRequest, type EmailSettings, EntriesModule, EntryTypesModule, type EventOption, EventsModule, type InviteTokenCreate, type InviteTokenPagination, type InviteTokenSummary, InvitesModule, type MaintenanceStorageDetails, type MaintenanceSummary, type Notification, type NotificationCreate, type NotificationUpdate, NotificationsModule, type PasswordChange, type PasswordResetTokenRequest, type PasswordResetTokenResponse, type PlatformAPIClient, type PlatformAPIClientCreate, type PlatformAPIClientUpdate, type PlatformAPIClientWithToken, type PlatformAsset, type PlatformAssetCreate, type PlatformAssetUpdate, PlatformClient, type PlatformClientConfig, type PlatformCollection, type PlatformCollectionCreate, type PlatformCollectionUpdate, type PlatformEntry, type PlatformEntryCreate, type PlatformEntryType, type PlatformEntryUpdate, type PlatformResource, type PlatformResourceCreate, type PlatformResourceUpdate, type PlatformWorkspaceMember, type PlatformWorkspaceMemberCreate, type PlatformWorkspaceMemberUpdate, ResourcesModule, type SystemStatistics, type UnlockUserRequest, type User, type UserCreate, UserModule, type UserPagination, type UserProfile, type UserSummary, type UserUpdate, type Webhook, type WebhookCreate, type WebhookMethod, type WebhookPagination, type WebhookUpdate, WebhooksModule, type Workspace, type WorkspaceActivationRequest, type WorkspaceCreate, WorkspaceMembersModule, type WorkspacePreferences, type WorkspacePreferencesUpdate, type WorkspaceUpdate, type WorkspaceWithMembership, WorkspacesModule, createPlatformClient };
3261
+ export { APIClientsModule, type AdminAboutInfo, AdminMaintenanceModule, AdminSystemModule, AdminUsersModule, type ApiToken, type ApiTokenCreate, type ApiTokenWithToken, type AppTheme, AssetsModule, AuthModule, type AuthToken, CollectionsModule, type EmailInvitationRequest, type EmailSettings, EntriesModule, EntryTypesModule, type EventOption, EventsModule, type InviteTokenCreate, type InviteTokenPagination, type InviteTokenSummary, InvitesModule, type MaintenanceStorageDetails, type MaintenanceSummary, type Notification, type NotificationCreate, type NotificationUpdate, NotificationsModule, type PasswordChange, type PasswordResetTokenRequest, type PasswordResetTokenResponse, type PlatformAPIClient, type PlatformAPIClientCreate, type PlatformAPIClientUpdate, type PlatformAPIClientWithToken, type PlatformAsset, type PlatformAssetCreate, type PlatformAssetUpdate, PlatformClient, type PlatformClientConfig, type PlatformCollection, type PlatformCollectionCreate, type PlatformCollectionUpdate, type PlatformEntry, type PlatformEntryCreate, type PlatformEntryType, type PlatformEntryUpdate, type PlatformResource, type PlatformResourceCreate, type PlatformResourceUpdate, type PlatformWorkspaceMember, type PlatformWorkspaceMemberCreate, type PlatformWorkspaceMemberUpdate, ResourcesModule, type SystemStatistics, ThemeModule, type UnlockUserRequest, type User, type UserCreate, UserModule, type UserPagination, type UserProfile, type UserSummary, type UserUpdate, type Webhook, type WebhookCreate, type WebhookMethod, type WebhookPagination, type WebhookUpdate, WebhooksModule, type Workspace, type WorkspaceActivationRequest, type WorkspaceCreate, WorkspaceMembersModule, type WorkspacePreferences, type WorkspacePreferencesUpdate, type WorkspaceUpdate, type WorkspaceWithMembership, WorkspacesModule, createPlatformClient };
@@ -2626,10 +2626,24 @@ declare class APIClientsModule {
2626
2626
 
2627
2627
  /**
2628
2628
  * Entry Types Module - Platform API
2629
- *
2630
- * Read-only access to entry types
2631
2629
  */
2632
2630
 
2631
+ interface EntryTypeCreate {
2632
+ name: string;
2633
+ slug?: string;
2634
+ description?: string;
2635
+ icon?: string;
2636
+ color?: string;
2637
+ sortOrder?: number;
2638
+ }
2639
+ interface EntryTypeUpdate {
2640
+ name?: string;
2641
+ slug?: string;
2642
+ description?: string;
2643
+ icon?: string;
2644
+ color?: string;
2645
+ sortOrder?: number;
2646
+ }
2633
2647
  declare class EntryTypesModule {
2634
2648
  private http;
2635
2649
  constructor(http: HttpClient);
@@ -2641,6 +2655,18 @@ declare class EntryTypesModule {
2641
2655
  * Get a single entry type by ID
2642
2656
  */
2643
2657
  get(id: string): Promise<PlatformEntryType>;
2658
+ /**
2659
+ * Create a new entry type
2660
+ */
2661
+ create(data: EntryTypeCreate): Promise<PlatformEntryType>;
2662
+ /**
2663
+ * Update an entry type
2664
+ */
2665
+ update(id: string, data: EntryTypeUpdate): Promise<PlatformEntryType>;
2666
+ /**
2667
+ * Delete an entry type
2668
+ */
2669
+ delete(id: string): Promise<void>;
2644
2670
  }
2645
2671
 
2646
2672
  /**
@@ -3164,6 +3190,37 @@ declare class AuthModule {
3164
3190
  logout(): Promise<void>;
3165
3191
  }
3166
3192
 
3193
+ /**
3194
+ * Theme Module - Platform API
3195
+ *
3196
+ * Application theme settings
3197
+ */
3198
+
3199
+ interface AppTheme {
3200
+ lightPrimary: string;
3201
+ lightAccent: string;
3202
+ lightSecondary: string;
3203
+ lightSuccess: string;
3204
+ lightInfo: string;
3205
+ lightWarning: string;
3206
+ lightError: string;
3207
+ darkPrimary: string;
3208
+ darkAccent: string;
3209
+ darkSecondary: string;
3210
+ darkSuccess: string;
3211
+ darkInfo: string;
3212
+ darkWarning: string;
3213
+ darkError: string;
3214
+ }
3215
+ declare class ThemeModule {
3216
+ private http;
3217
+ constructor(http: HttpClient);
3218
+ /**
3219
+ * Get application theme colors
3220
+ */
3221
+ getTheme(): Promise<AppTheme>;
3222
+ }
3223
+
3167
3224
  /**
3168
3225
  * Platform API Client
3169
3226
  *
@@ -3190,6 +3247,7 @@ declare class PlatformClient extends HttpClient {
3190
3247
  user: UserModule;
3191
3248
  events: EventsModule;
3192
3249
  session: AuthModule;
3250
+ theme: ThemeModule;
3193
3251
  adminUsers: AdminUsersModule;
3194
3252
  adminSystem: AdminSystemModule;
3195
3253
  adminMaintenance: AdminMaintenanceModule;
@@ -3200,4 +3258,4 @@ declare class PlatformClient extends HttpClient {
3200
3258
  */
3201
3259
  declare function createPlatformClient(config: PlatformClientConfig): PlatformClient;
3202
3260
 
3203
- export { APIClientsModule, type AdminAboutInfo, AdminMaintenanceModule, AdminSystemModule, AdminUsersModule, type ApiToken, type ApiTokenCreate, type ApiTokenWithToken, AssetsModule, AuthModule, type AuthToken, CollectionsModule, type EmailInvitationRequest, type EmailSettings, EntriesModule, EntryTypesModule, type EventOption, EventsModule, type InviteTokenCreate, type InviteTokenPagination, type InviteTokenSummary, InvitesModule, type MaintenanceStorageDetails, type MaintenanceSummary, type Notification, type NotificationCreate, type NotificationUpdate, NotificationsModule, type PasswordChange, type PasswordResetTokenRequest, type PasswordResetTokenResponse, type PlatformAPIClient, type PlatformAPIClientCreate, type PlatformAPIClientUpdate, type PlatformAPIClientWithToken, type PlatformAsset, type PlatformAssetCreate, type PlatformAssetUpdate, PlatformClient, type PlatformClientConfig, type PlatformCollection, type PlatformCollectionCreate, type PlatformCollectionUpdate, type PlatformEntry, type PlatformEntryCreate, type PlatformEntryType, type PlatformEntryUpdate, type PlatformResource, type PlatformResourceCreate, type PlatformResourceUpdate, type PlatformWorkspaceMember, type PlatformWorkspaceMemberCreate, type PlatformWorkspaceMemberUpdate, ResourcesModule, type SystemStatistics, type UnlockUserRequest, type User, type UserCreate, UserModule, type UserPagination, type UserProfile, type UserSummary, type UserUpdate, type Webhook, type WebhookCreate, type WebhookMethod, type WebhookPagination, type WebhookUpdate, WebhooksModule, type Workspace, type WorkspaceActivationRequest, type WorkspaceCreate, WorkspaceMembersModule, type WorkspacePreferences, type WorkspacePreferencesUpdate, type WorkspaceUpdate, type WorkspaceWithMembership, WorkspacesModule, createPlatformClient };
3261
+ export { APIClientsModule, type AdminAboutInfo, AdminMaintenanceModule, AdminSystemModule, AdminUsersModule, type ApiToken, type ApiTokenCreate, type ApiTokenWithToken, type AppTheme, AssetsModule, AuthModule, type AuthToken, CollectionsModule, type EmailInvitationRequest, type EmailSettings, EntriesModule, EntryTypesModule, type EventOption, EventsModule, type InviteTokenCreate, type InviteTokenPagination, type InviteTokenSummary, InvitesModule, type MaintenanceStorageDetails, type MaintenanceSummary, type Notification, type NotificationCreate, type NotificationUpdate, NotificationsModule, type PasswordChange, type PasswordResetTokenRequest, type PasswordResetTokenResponse, type PlatformAPIClient, type PlatformAPIClientCreate, type PlatformAPIClientUpdate, type PlatformAPIClientWithToken, type PlatformAsset, type PlatformAssetCreate, type PlatformAssetUpdate, PlatformClient, type PlatformClientConfig, type PlatformCollection, type PlatformCollectionCreate, type PlatformCollectionUpdate, type PlatformEntry, type PlatformEntryCreate, type PlatformEntryType, type PlatformEntryUpdate, type PlatformResource, type PlatformResourceCreate, type PlatformResourceUpdate, type PlatformWorkspaceMember, type PlatformWorkspaceMemberCreate, type PlatformWorkspaceMemberUpdate, ResourcesModule, type SystemStatistics, ThemeModule, type UnlockUserRequest, type User, type UserCreate, UserModule, type UserPagination, type UserProfile, type UserSummary, type UserUpdate, type Webhook, type WebhookCreate, type WebhookMethod, type WebhookPagination, type WebhookUpdate, WebhooksModule, type Workspace, type WorkspaceActivationRequest, type WorkspaceCreate, WorkspaceMembersModule, type WorkspacePreferences, type WorkspacePreferencesUpdate, type WorkspaceUpdate, type WorkspaceWithMembership, WorkspacesModule, createPlatformClient };
package/dist/platform.js CHANGED
@@ -263,6 +263,24 @@ var EntryTypesModule = class {
263
263
  async get(id) {
264
264
  return this.http.get(`/api/platform/entry-types/${id}`);
265
265
  }
266
+ /**
267
+ * Create a new entry type
268
+ */
269
+ async create(data) {
270
+ return this.http.post("/api/platform/entry-types", data);
271
+ }
272
+ /**
273
+ * Update an entry type
274
+ */
275
+ async update(id, data) {
276
+ return this.http.patch(`/api/platform/entry-types/${id}`, data);
277
+ }
278
+ /**
279
+ * Delete an entry type
280
+ */
281
+ async delete(id) {
282
+ return this.http.delete(`/api/platform/entry-types/${id}`);
283
+ }
266
284
  };
267
285
 
268
286
  // src/platform/workspaceMembers.ts
@@ -728,6 +746,20 @@ var AuthModule = class {
728
746
  }
729
747
  };
730
748
 
749
+ // src/platform/theme.ts
750
+ var ThemeModule = class {
751
+ constructor(http) {
752
+ this.http = http;
753
+ }
754
+ http;
755
+ /**
756
+ * Get application theme colors
757
+ */
758
+ async getTheme() {
759
+ return this.http.get("/api/about/theme");
760
+ }
761
+ };
762
+
731
763
  // src/platform/client.ts
732
764
  var PlatformClient = class extends HttpClient {
733
765
  entries;
@@ -744,6 +776,7 @@ var PlatformClient = class extends HttpClient {
744
776
  user;
745
777
  events;
746
778
  session;
779
+ theme;
747
780
  // Admin modules
748
781
  adminUsers;
749
782
  adminSystem;
@@ -769,6 +802,7 @@ var PlatformClient = class extends HttpClient {
769
802
  this.user = new UserModule(this);
770
803
  this.events = new EventsModule(this);
771
804
  this.session = new AuthModule(this);
805
+ this.theme = new ThemeModule(this);
772
806
  this.adminUsers = new AdminUsersModule(this);
773
807
  this.adminSystem = new AdminSystemModule(this);
774
808
  this.adminMaintenance = new AdminMaintenanceModule(this);
@@ -792,6 +826,7 @@ export {
792
826
  NotificationsModule,
793
827
  PlatformClient,
794
828
  ResourcesModule,
829
+ ThemeModule,
795
830
  UserModule,
796
831
  WebhooksModule,
797
832
  WorkspaceMembersModule,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inneropen/marvin-sdk",
3
- "version": "1.9.1",
3
+ "version": "1.9.3",
4
4
  "description": "Official TypeScript SDK for Marvin CMS",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",