@inneropen/marvin-sdk 1.9.1 → 1.9.2
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 +18 -0
- package/dist/platform.d.cts +33 -1
- package/dist/platform.d.ts +33 -1
- package/dist/platform.js +17 -0
- package/package.json +1 -1
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,
|
|
@@ -942,6 +943,20 @@ var AuthModule = class {
|
|
|
942
943
|
}
|
|
943
944
|
};
|
|
944
945
|
|
|
946
|
+
// src/platform/theme.ts
|
|
947
|
+
var ThemeModule = class {
|
|
948
|
+
constructor(http) {
|
|
949
|
+
this.http = http;
|
|
950
|
+
}
|
|
951
|
+
http;
|
|
952
|
+
/**
|
|
953
|
+
* Get application theme colors
|
|
954
|
+
*/
|
|
955
|
+
async getTheme() {
|
|
956
|
+
return this.http.get("/api/about/theme");
|
|
957
|
+
}
|
|
958
|
+
};
|
|
959
|
+
|
|
945
960
|
// src/platform/client.ts
|
|
946
961
|
var PlatformClient = class extends HttpClient {
|
|
947
962
|
entries;
|
|
@@ -958,6 +973,7 @@ var PlatformClient = class extends HttpClient {
|
|
|
958
973
|
user;
|
|
959
974
|
events;
|
|
960
975
|
session;
|
|
976
|
+
theme;
|
|
961
977
|
// Admin modules
|
|
962
978
|
adminUsers;
|
|
963
979
|
adminSystem;
|
|
@@ -983,6 +999,7 @@ var PlatformClient = class extends HttpClient {
|
|
|
983
999
|
this.user = new UserModule(this);
|
|
984
1000
|
this.events = new EventsModule(this);
|
|
985
1001
|
this.session = new AuthModule(this);
|
|
1002
|
+
this.theme = new ThemeModule(this);
|
|
986
1003
|
this.adminUsers = new AdminUsersModule(this);
|
|
987
1004
|
this.adminSystem = new AdminSystemModule(this);
|
|
988
1005
|
this.adminMaintenance = new AdminMaintenanceModule(this);
|
|
@@ -1007,6 +1024,7 @@ function createPlatformClient(config) {
|
|
|
1007
1024
|
NotificationsModule,
|
|
1008
1025
|
PlatformClient,
|
|
1009
1026
|
ResourcesModule,
|
|
1027
|
+
ThemeModule,
|
|
1010
1028
|
UserModule,
|
|
1011
1029
|
WebhooksModule,
|
|
1012
1030
|
WorkspaceMembersModule,
|
package/dist/platform.d.cts
CHANGED
|
@@ -3164,6 +3164,37 @@ declare class AuthModule {
|
|
|
3164
3164
|
logout(): Promise<void>;
|
|
3165
3165
|
}
|
|
3166
3166
|
|
|
3167
|
+
/**
|
|
3168
|
+
* Theme Module - Platform API
|
|
3169
|
+
*
|
|
3170
|
+
* Application theme settings
|
|
3171
|
+
*/
|
|
3172
|
+
|
|
3173
|
+
interface AppTheme {
|
|
3174
|
+
lightPrimary: string;
|
|
3175
|
+
lightAccent: string;
|
|
3176
|
+
lightSecondary: string;
|
|
3177
|
+
lightSuccess: string;
|
|
3178
|
+
lightInfo: string;
|
|
3179
|
+
lightWarning: string;
|
|
3180
|
+
lightError: string;
|
|
3181
|
+
darkPrimary: string;
|
|
3182
|
+
darkAccent: string;
|
|
3183
|
+
darkSecondary: string;
|
|
3184
|
+
darkSuccess: string;
|
|
3185
|
+
darkInfo: string;
|
|
3186
|
+
darkWarning: string;
|
|
3187
|
+
darkError: string;
|
|
3188
|
+
}
|
|
3189
|
+
declare class ThemeModule {
|
|
3190
|
+
private http;
|
|
3191
|
+
constructor(http: HttpClient);
|
|
3192
|
+
/**
|
|
3193
|
+
* Get application theme colors
|
|
3194
|
+
*/
|
|
3195
|
+
getTheme(): Promise<AppTheme>;
|
|
3196
|
+
}
|
|
3197
|
+
|
|
3167
3198
|
/**
|
|
3168
3199
|
* Platform API Client
|
|
3169
3200
|
*
|
|
@@ -3190,6 +3221,7 @@ declare class PlatformClient extends HttpClient {
|
|
|
3190
3221
|
user: UserModule;
|
|
3191
3222
|
events: EventsModule;
|
|
3192
3223
|
session: AuthModule;
|
|
3224
|
+
theme: ThemeModule;
|
|
3193
3225
|
adminUsers: AdminUsersModule;
|
|
3194
3226
|
adminSystem: AdminSystemModule;
|
|
3195
3227
|
adminMaintenance: AdminMaintenanceModule;
|
|
@@ -3200,4 +3232,4 @@ declare class PlatformClient extends HttpClient {
|
|
|
3200
3232
|
*/
|
|
3201
3233
|
declare function createPlatformClient(config: PlatformClientConfig): PlatformClient;
|
|
3202
3234
|
|
|
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 };
|
|
3235
|
+
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.d.ts
CHANGED
|
@@ -3164,6 +3164,37 @@ declare class AuthModule {
|
|
|
3164
3164
|
logout(): Promise<void>;
|
|
3165
3165
|
}
|
|
3166
3166
|
|
|
3167
|
+
/**
|
|
3168
|
+
* Theme Module - Platform API
|
|
3169
|
+
*
|
|
3170
|
+
* Application theme settings
|
|
3171
|
+
*/
|
|
3172
|
+
|
|
3173
|
+
interface AppTheme {
|
|
3174
|
+
lightPrimary: string;
|
|
3175
|
+
lightAccent: string;
|
|
3176
|
+
lightSecondary: string;
|
|
3177
|
+
lightSuccess: string;
|
|
3178
|
+
lightInfo: string;
|
|
3179
|
+
lightWarning: string;
|
|
3180
|
+
lightError: string;
|
|
3181
|
+
darkPrimary: string;
|
|
3182
|
+
darkAccent: string;
|
|
3183
|
+
darkSecondary: string;
|
|
3184
|
+
darkSuccess: string;
|
|
3185
|
+
darkInfo: string;
|
|
3186
|
+
darkWarning: string;
|
|
3187
|
+
darkError: string;
|
|
3188
|
+
}
|
|
3189
|
+
declare class ThemeModule {
|
|
3190
|
+
private http;
|
|
3191
|
+
constructor(http: HttpClient);
|
|
3192
|
+
/**
|
|
3193
|
+
* Get application theme colors
|
|
3194
|
+
*/
|
|
3195
|
+
getTheme(): Promise<AppTheme>;
|
|
3196
|
+
}
|
|
3197
|
+
|
|
3167
3198
|
/**
|
|
3168
3199
|
* Platform API Client
|
|
3169
3200
|
*
|
|
@@ -3190,6 +3221,7 @@ declare class PlatformClient extends HttpClient {
|
|
|
3190
3221
|
user: UserModule;
|
|
3191
3222
|
events: EventsModule;
|
|
3192
3223
|
session: AuthModule;
|
|
3224
|
+
theme: ThemeModule;
|
|
3193
3225
|
adminUsers: AdminUsersModule;
|
|
3194
3226
|
adminSystem: AdminSystemModule;
|
|
3195
3227
|
adminMaintenance: AdminMaintenanceModule;
|
|
@@ -3200,4 +3232,4 @@ declare class PlatformClient extends HttpClient {
|
|
|
3200
3232
|
*/
|
|
3201
3233
|
declare function createPlatformClient(config: PlatformClientConfig): PlatformClient;
|
|
3202
3234
|
|
|
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 };
|
|
3235
|
+
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
|
@@ -728,6 +728,20 @@ var AuthModule = class {
|
|
|
728
728
|
}
|
|
729
729
|
};
|
|
730
730
|
|
|
731
|
+
// src/platform/theme.ts
|
|
732
|
+
var ThemeModule = class {
|
|
733
|
+
constructor(http) {
|
|
734
|
+
this.http = http;
|
|
735
|
+
}
|
|
736
|
+
http;
|
|
737
|
+
/**
|
|
738
|
+
* Get application theme colors
|
|
739
|
+
*/
|
|
740
|
+
async getTheme() {
|
|
741
|
+
return this.http.get("/api/about/theme");
|
|
742
|
+
}
|
|
743
|
+
};
|
|
744
|
+
|
|
731
745
|
// src/platform/client.ts
|
|
732
746
|
var PlatformClient = class extends HttpClient {
|
|
733
747
|
entries;
|
|
@@ -744,6 +758,7 @@ var PlatformClient = class extends HttpClient {
|
|
|
744
758
|
user;
|
|
745
759
|
events;
|
|
746
760
|
session;
|
|
761
|
+
theme;
|
|
747
762
|
// Admin modules
|
|
748
763
|
adminUsers;
|
|
749
764
|
adminSystem;
|
|
@@ -769,6 +784,7 @@ var PlatformClient = class extends HttpClient {
|
|
|
769
784
|
this.user = new UserModule(this);
|
|
770
785
|
this.events = new EventsModule(this);
|
|
771
786
|
this.session = new AuthModule(this);
|
|
787
|
+
this.theme = new ThemeModule(this);
|
|
772
788
|
this.adminUsers = new AdminUsersModule(this);
|
|
773
789
|
this.adminSystem = new AdminSystemModule(this);
|
|
774
790
|
this.adminMaintenance = new AdminMaintenanceModule(this);
|
|
@@ -792,6 +808,7 @@ export {
|
|
|
792
808
|
NotificationsModule,
|
|
793
809
|
PlatformClient,
|
|
794
810
|
ResourcesModule,
|
|
811
|
+
ThemeModule,
|
|
795
812
|
UserModule,
|
|
796
813
|
WebhooksModule,
|
|
797
814
|
WorkspaceMembersModule,
|