@aitronos/freddy-plugins 0.4.9 → 0.4.10

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.ts CHANGED
@@ -6,6 +6,7 @@ import { ComputedRef } from 'vue';
6
6
  import { DefineComponent } from 'vue';
7
7
  import { DirectiveBinding } from 'vue';
8
8
  import { ExtractPropTypes } from 'vue';
9
+ import { FlowplateEnvironmentConfig } from '../../config/environments';
9
10
  import { default as ModalBox } from './ModalBox.vue';
10
11
  import { PublicProps } from 'vue';
11
12
  import { Ref } from 'vue';
@@ -216,6 +217,27 @@ export declare const AdvancedModal: __VLS_WithTemplateSlots<typeof __VLS_compone
216
217
 
217
218
  export declare const AnimeSpaceman: DefineComponent<SpacemanLogoProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<SpacemanLogoProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, SVGSVGElement>;
218
219
 
220
+ export declare abstract class BaseFlowplateApiService {
221
+ protected baseUrl: string;
222
+ protected timeout: number;
223
+ protected retries: number;
224
+ protected defaultHeaders: Record<string, string>;
225
+ constructor(config?: IFlowplateApiConfig);
226
+ protected makeRequest<T>(endpoint: string, options?: RequestInit): Promise<IFlowplateApiResponse<T>>;
227
+ protected retryRequest<T>(endpoint: string, options?: RequestInit): Promise<IFlowplateApiResponse<T>>;
228
+ protected buildQueryParams(params: Record<string, any>): string;
229
+ setBaseUrl(url: string): void;
230
+ setTimeout(timeout: number): void;
231
+ setRetries(retries: number): void;
232
+ addDefaultHeader(key: string, value: string): void;
233
+ removeDefaultHeader(key: string): void;
234
+ batchRequest(requests: Array<{
235
+ endpoint: string;
236
+ method?: string;
237
+ body?: any;
238
+ }>): Promise<IFlowplateApiResponse[]>;
239
+ }
240
+
219
241
  export declare const Button: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
220
242
 
221
243
  /**
@@ -359,6 +381,10 @@ export declare function debounce<T extends (...args: any[]) => void>(fn: T, wait
359
381
  */
360
382
  export declare function deepEqual<T>(a: T, b: T): boolean;
361
383
 
384
+ declare const _default: FlowplateApiService_2;
385
+ export { _default as FlowplateApiService }
386
+ export { _default as flowplateApiService }
387
+
362
388
  export declare const defaultImageSrc = "https://img.freepik.com/premium-vector/default-image-icon-vector-missing-picture-page-website-design-mobile-app-no-photo-available_87543-11093.jpg";
363
389
 
364
390
  export declare const DeleteConfirmationModal: DefineComponent<ExtractPropTypes< {
@@ -432,6 +458,259 @@ export declare const fillMissingDays: (month: number, dayData: Array<{
432
458
  [k: string]: number;
433
459
  };
434
460
 
461
+ declare class FlowplateApiService_2 extends BaseFlowplateApiService {
462
+ /**
463
+ * Login with email/password and optional MFA
464
+ */
465
+ login(request: ILoginRequest): Promise<IFlowplateApiResponse<ILoginResponse>>;
466
+ /**
467
+ * Verify login with email verification token
468
+ */
469
+ verifyLogin(request: IVerifyLoginRequest): Promise<IFlowplateApiResponse<ILoginResponse>>;
470
+ /**
471
+ * Send email verification code
472
+ */
473
+ sendEmailVerification(request: IEmailVerificationRequest): Promise<IFlowplateApiResponse<IEmailVerificationResponse>>;
474
+ /**
475
+ * Request a new verification email (for expired tokens)
476
+ */
477
+ requestNewVerification(request: INewVerificationRequest): Promise<IFlowplateApiResponse<void>>;
478
+ /**
479
+ * Register a new user account
480
+ */
481
+ register(request: IRegisterRequest): Promise<IFlowplateApiResponse<IRegisterResponse>>;
482
+ /**
483
+ * Generate QR code for 2FA setup
484
+ */
485
+ getMfaQr(): Promise<IFlowplateApiResponse<IMfaQrResponse>>;
486
+ /**
487
+ * Verify MFA code during setup
488
+ */
489
+ verifyMfa(request: IMfaVerifyRequest): Promise<IFlowplateApiResponse<void>>;
490
+ /**
491
+ * Enable 2FA for the user account
492
+ */
493
+ enableMfa(request: IMfaEnableRequest): Promise<IFlowplateApiResponse<void>>;
494
+ /**
495
+ * Disable 2FA for the user account
496
+ */
497
+ disableMfa(request: IMfaDisableRequest): Promise<IFlowplateApiResponse<void>>;
498
+ /**
499
+ * Enforce 2FA for all users (admin only)
500
+ */
501
+ enforceMfa(request: IMfaEnforceRequest): Promise<IFlowplateApiResponse<void>>;
502
+ /**
503
+ * Get current user profile
504
+ */
505
+ getCurrentUser(): Promise<IFlowplateApiResponse<IUser>>;
506
+ /**
507
+ * Update user profile
508
+ */
509
+ updateUserProfile(profile: Partial<IUser>): Promise<IFlowplateApiResponse<IUser>>;
510
+ /**
511
+ * Change user password
512
+ */
513
+ changePassword(currentPassword: string, newPassword: string): Promise<IFlowplateApiResponse<void>>;
514
+ /**
515
+ * Get user's organizations
516
+ */
517
+ getOrganizations(): Promise<IFlowplateApiResponse<unknown[]>>;
518
+ /**
519
+ * Get organization by ID
520
+ */
521
+ getOrganization(id: string): Promise<IFlowplateApiResponse<unknown>>;
522
+ /**
523
+ * Get workflows for organization
524
+ */
525
+ getWorkflows(organizationId: string): Promise<IFlowplateApiResponse<unknown[]>>;
526
+ /**
527
+ * Get workflow by ID
528
+ */
529
+ getWorkflow(organizationId: string, workflowId: string): Promise<IFlowplateApiResponse<unknown>>;
530
+ /**
531
+ * Create new workflow
532
+ */
533
+ createWorkflow(organizationId: string, workflow: unknown): Promise<IFlowplateApiResponse<unknown>>;
534
+ /**
535
+ * Update workflow
536
+ */
537
+ updateWorkflow(organizationId: string, workflowId: string, workflow: unknown): Promise<IFlowplateApiResponse<unknown>>;
538
+ /**
539
+ * Delete workflow
540
+ */
541
+ deleteWorkflow(organizationId: string, workflowId: string): Promise<IFlowplateApiResponse<void>>;
542
+ /**
543
+ * Get device information for authentication
544
+ */
545
+ getDeviceInformation(): IDeviceInformation;
546
+ /**
547
+ * Generate a unique device ID
548
+ */
549
+ private generateDeviceId;
550
+ /**
551
+ * Get device name from user agent
552
+ */
553
+ private getDeviceName;
554
+ /**
555
+ * Get device type from user agent
556
+ */
557
+ private getDeviceType;
558
+ /**
559
+ * Get operating system from user agent
560
+ */
561
+ private getOperatingSystem;
562
+ /**
563
+ * Health check endpoint
564
+ */
565
+ healthCheck(): Promise<IFlowplateApiResponse<unknown>>;
566
+ }
567
+
568
+ declare class FlowplateAuthService {
569
+ private flowplateToken;
570
+ private jwtToken;
571
+ private user;
572
+ private deviceId;
573
+ private apiService;
574
+ constructor();
575
+ private generateDeviceId;
576
+ /**
577
+ * Login with email and password
578
+ */
579
+ login(email: string, password: string, mfaCode?: string): Promise<boolean>;
580
+ /**
581
+ * Verify login with email verification token
582
+ */
583
+ verifyLogin(email: string, token: string, emailKey?: string): Promise<boolean>;
584
+ /**
585
+ * Send email verification code
586
+ */
587
+ sendEmailVerification(email: string): Promise<boolean>;
588
+ /**
589
+ * Register a new user account
590
+ */
591
+ register(email: string, firstName: string, lastName: string, password: string): Promise<boolean>;
592
+ /**
593
+ * Get MFA QR code for setup
594
+ */
595
+ getMfaQr(): Promise<IMfaQrResponse | null>;
596
+ /**
597
+ * Verify MFA code during setup
598
+ */
599
+ verifyMfa(mfaCode: string): Promise<boolean>;
600
+ /**
601
+ * Enable MFA for the user account
602
+ */
603
+ enableMfa(mfaCode: string): Promise<boolean>;
604
+ /**
605
+ * Disable MFA for the user account
606
+ */
607
+ disableMfa(mfaCode?: string, recoveryCode?: string): Promise<boolean>;
608
+ /**
609
+ * Get current user information
610
+ */
611
+ getCurrentUser(): Promise<IFlowplateUser | null>;
612
+ /**
613
+ * Set authentication tokens
614
+ */
615
+ setTokens(tokens: {
616
+ flowplateToken: string;
617
+ jwtToken: string;
618
+ expiresIn: number;
619
+ }): void;
620
+ /**
621
+ * Set user information
622
+ */
623
+ setUser(user: IFlowplateUser): void;
624
+ /**
625
+ * Get Flowplate token
626
+ */
627
+ getFlowplateToken(): string | null;
628
+ /**
629
+ * Get JWT token
630
+ */
631
+ getJwtToken(): string | null;
632
+ /**
633
+ * Get current user
634
+ */
635
+ getUser(): IFlowplateUser | null;
636
+ /**
637
+ * Check if user is authenticated
638
+ */
639
+ isAuthenticated(): boolean;
640
+ /**
641
+ * Get device ID
642
+ */
643
+ getDeviceId(): string;
644
+ /**
645
+ * Logout user
646
+ */
647
+ logout(): void;
648
+ }
649
+
650
+ export declare const flowplateAuthService: FlowplateAuthService;
651
+
652
+ declare type FlowplateEnvironment = 'local' | 'development' | 'staging' | 'production';
653
+
654
+ declare interface FlowplateEnvironmentInfo {
655
+ name: string;
656
+ baseEndpoint: string;
657
+ isCurrent: boolean;
658
+ }
659
+
660
+ declare class FlowplateEnvironmentManager {
661
+ private readonly STORAGE_KEY;
662
+ /**
663
+ * Get the current Flowplate environment
664
+ */
665
+ getCurrentEnvironment(): FlowplateEnvironment;
666
+ /**
667
+ * Set the Flowplate environment
668
+ */
669
+ setEnvironment(environment: FlowplateEnvironment): void;
670
+ /**
671
+ * Get all available environments with current status
672
+ */
673
+ getAvailableEnvironments(): FlowplateEnvironmentInfo[];
674
+ /**
675
+ * Get environment configuration
676
+ */
677
+ getEnvironmentConfig(): FlowplateEnvironmentConfig;
678
+ /**
679
+ * Check if current environment is local
680
+ */
681
+ isLocal(): boolean;
682
+ /**
683
+ * Check if current environment is development
684
+ */
685
+ isDevelopment(): boolean;
686
+ /**
687
+ * Check if current environment is staging
688
+ */
689
+ isStaging(): boolean;
690
+ /**
691
+ * Check if current environment is production
692
+ */
693
+ isProduction(): boolean;
694
+ /**
695
+ * Get environment display name
696
+ */
697
+ getEnvironmentName(): string;
698
+ /**
699
+ * Get base URL for current environment
700
+ */
701
+ getBaseUrl(): string;
702
+ /**
703
+ * Reset to default environment (production)
704
+ */
705
+ resetToDefault(): void;
706
+ /**
707
+ * Get environment info for debugging
708
+ */
709
+ getDebugInfo(): Record<string, any>;
710
+ }
711
+
712
+ export declare const flowplateEnvironmentManager: FlowplateEnvironmentManager;
713
+
435
714
  /**
436
715
  * Formats a date to a relative format (e.g., "Yesterday" or "DD MMM YYYY").
437
716
  * @param inputDate - The date string or Date object to format.
@@ -741,6 +1020,78 @@ export declare const IconWarningOctal: DefineComponent< {}, {}, {}, {}, {}, C
741
1020
 
742
1021
  export declare const IconZip: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
743
1022
 
1023
+ export declare interface IDeviceInformation {
1024
+ deviceId: string;
1025
+ deviceName: string;
1026
+ deviceType: 'desktop' | 'mobile' | 'tablet';
1027
+ operatingSystem: string;
1028
+ platform: 'web' | 'mobile';
1029
+ }
1030
+
1031
+ export declare interface IEmailVerificationRequest {
1032
+ email: string;
1033
+ }
1034
+
1035
+ export declare interface IEmailVerificationResponse {
1036
+ emailKey: string;
1037
+ email: string;
1038
+ }
1039
+
1040
+ declare interface IFlowplateApiConfig {
1041
+ baseUrl?: string;
1042
+ timeout?: number;
1043
+ retries?: number;
1044
+ headers?: Record<string, string>;
1045
+ }
1046
+
1047
+ export declare interface IFlowplateApiResponse<T = unknown> {
1048
+ success: boolean;
1049
+ data?: T;
1050
+ error?: string;
1051
+ message?: string;
1052
+ status?: number;
1053
+ code?: number;
1054
+ }
1055
+
1056
+ export declare interface IFlowplateAuthToken {
1057
+ flowplateToken: string;
1058
+ jwtToken: string;
1059
+ expiresIn: number;
1060
+ }
1061
+
1062
+ export declare interface IFlowplateUser {
1063
+ id: string;
1064
+ email: string;
1065
+ firstName: string;
1066
+ lastName: string;
1067
+ role: string;
1068
+ globalScopes: string[];
1069
+ mfaEnabled: boolean;
1070
+ }
1071
+
1072
+ export declare interface ILoginRequest {
1073
+ emailOrLdapLoginId: string;
1074
+ password: string;
1075
+ mfaCode?: string;
1076
+ mfaRecoveryCode?: string;
1077
+ deviceInformation?: IDeviceInformation;
1078
+ }
1079
+
1080
+ export declare interface ILoginResponse {
1081
+ user: {
1082
+ id: string;
1083
+ email: string;
1084
+ firstName: string;
1085
+ lastName: string;
1086
+ role: string;
1087
+ globalScopes: string[];
1088
+ mfaEnabled: boolean;
1089
+ };
1090
+ flowplateToken: string;
1091
+ jwtToken: string;
1092
+ expiresIn: number;
1093
+ }
1094
+
744
1095
  /**
745
1096
  * Interfaces for TabList component
746
1097
  */
@@ -749,6 +1100,33 @@ export declare interface IMenuListItem {
749
1100
  title: string;
750
1101
  }
751
1102
 
1103
+ export declare interface IMfaDisableRequest {
1104
+ mfaCode?: string;
1105
+ mfaRecoveryCode?: string;
1106
+ }
1107
+
1108
+ export declare interface IMfaEnableRequest {
1109
+ mfaCode: string;
1110
+ }
1111
+
1112
+ declare interface IMfaEnforceRequest {
1113
+ enforce: boolean;
1114
+ }
1115
+
1116
+ export declare interface IMfaQrResponse {
1117
+ secret: string;
1118
+ qrCode: string;
1119
+ recoveryCodes: string[];
1120
+ }
1121
+
1122
+ export declare interface IMfaVerifyRequest {
1123
+ mfaCode: string;
1124
+ }
1125
+
1126
+ declare interface INewVerificationRequest {
1127
+ email: string;
1128
+ }
1129
+
752
1130
  export declare const InputField: DefineComponent<Props_4, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
753
1131
  input: (value: string) => any;
754
1132
  blur: (event: FocusEvent) => any;
@@ -797,11 +1175,40 @@ export declare const InputField: DefineComponent<Props_4, {}, {}, {}, {}, Compon
797
1175
  */
798
1176
  export declare const interpolateColor: (start: string, end: string, steps: number) => string[];
799
1177
 
1178
+ export declare interface IRegisterRequest {
1179
+ email: string;
1180
+ firstName: string;
1181
+ lastName: string;
1182
+ password: string;
1183
+ }
1184
+
1185
+ export declare interface IRegisterResponse {
1186
+ success: boolean;
1187
+ message: string;
1188
+ userId?: string;
1189
+ }
1190
+
800
1191
  export declare interface ITabList {
801
1192
  tabList: IMenuListItem[];
802
1193
  currentTab?: number;
803
1194
  }
804
1195
 
1196
+ export declare interface IUser {
1197
+ id: string;
1198
+ email: string;
1199
+ firstName: string;
1200
+ lastName: string;
1201
+ role: string;
1202
+ globalScopes: string[];
1203
+ mfaEnabled: boolean;
1204
+ }
1205
+
1206
+ export declare interface IVerifyLoginRequest {
1207
+ email: string;
1208
+ token: string;
1209
+ emailKey?: string;
1210
+ }
1211
+
805
1212
  export { ModalBox }
806
1213
 
807
1214
  export declare const ModalOverlay: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
@@ -1183,6 +1590,531 @@ export declare const useSnackBar: () => {
1183
1590
  removeSnackBar: (snack: Snack) => void;
1184
1591
  };
1185
1592
 
1593
+ export declare const useThemeService: () => {
1594
+ currentBrandId: Readonly<Ref<string, string>>;
1595
+ currentModeId: Readonly<Ref<string, string>>;
1596
+ currentProject: Readonly<Ref< {
1597
+ readonly name: string;
1598
+ readonly id: string;
1599
+ readonly version: number;
1600
+ readonly colorModes: readonly {
1601
+ readonly name: string;
1602
+ readonly id: string;
1603
+ readonly textColors: {
1604
+ readonly id: string;
1605
+ readonly name: string;
1606
+ readonly colors: readonly {
1607
+ readonly name: string;
1608
+ readonly id: string;
1609
+ readonly version: number;
1610
+ readonly value: string;
1611
+ }[];
1612
+ };
1613
+ readonly foregroundColors: {
1614
+ readonly id: string;
1615
+ readonly name: string;
1616
+ readonly colors: readonly {
1617
+ readonly name: string;
1618
+ readonly id: string;
1619
+ readonly version: number;
1620
+ readonly value: string;
1621
+ }[];
1622
+ };
1623
+ readonly backgroundColor: {
1624
+ readonly id: string;
1625
+ readonly name: string;
1626
+ readonly colors: readonly {
1627
+ readonly name: string;
1628
+ readonly id: string;
1629
+ readonly version: number;
1630
+ readonly value: string;
1631
+ }[];
1632
+ };
1633
+ readonly borderColor: {
1634
+ readonly id: string;
1635
+ readonly name: string;
1636
+ readonly colors: readonly {
1637
+ readonly name: string;
1638
+ readonly id: string;
1639
+ readonly version: number;
1640
+ readonly value: string;
1641
+ }[];
1642
+ };
1643
+ readonly utilityColors: {
1644
+ readonly id: string;
1645
+ readonly name: string;
1646
+ readonly colors: readonly {
1647
+ readonly name: string;
1648
+ readonly id: string;
1649
+ readonly version: number;
1650
+ readonly value: string;
1651
+ }[];
1652
+ };
1653
+ }[];
1654
+ readonly fontThemes?: readonly {
1655
+ readonly name: string;
1656
+ readonly id: string;
1657
+ readonly version: number;
1658
+ readonly fonts: {
1659
+ readonly [x: string]: {
1660
+ readonly name: string;
1661
+ readonly id: string;
1662
+ readonly version: number;
1663
+ readonly properties: {
1664
+ readonly [x: string]: string | number;
1665
+ };
1666
+ };
1667
+ };
1668
+ }[] | undefined;
1669
+ readonly cornerRadiusThemes?: readonly {
1670
+ readonly name: string;
1671
+ readonly id: string;
1672
+ readonly version: number;
1673
+ readonly cornerRadius: {
1674
+ readonly [x: string]: string | number;
1675
+ };
1676
+ }[] | undefined;
1677
+ } | null, {
1678
+ readonly name: string;
1679
+ readonly id: string;
1680
+ readonly version: number;
1681
+ readonly colorModes: readonly {
1682
+ readonly name: string;
1683
+ readonly id: string;
1684
+ readonly textColors: {
1685
+ readonly id: string;
1686
+ readonly name: string;
1687
+ readonly colors: readonly {
1688
+ readonly name: string;
1689
+ readonly id: string;
1690
+ readonly version: number;
1691
+ readonly value: string;
1692
+ }[];
1693
+ };
1694
+ readonly foregroundColors: {
1695
+ readonly id: string;
1696
+ readonly name: string;
1697
+ readonly colors: readonly {
1698
+ readonly name: string;
1699
+ readonly id: string;
1700
+ readonly version: number;
1701
+ readonly value: string;
1702
+ }[];
1703
+ };
1704
+ readonly backgroundColor: {
1705
+ readonly id: string;
1706
+ readonly name: string;
1707
+ readonly colors: readonly {
1708
+ readonly name: string;
1709
+ readonly id: string;
1710
+ readonly version: number;
1711
+ readonly value: string;
1712
+ }[];
1713
+ };
1714
+ readonly borderColor: {
1715
+ readonly id: string;
1716
+ readonly name: string;
1717
+ readonly colors: readonly {
1718
+ readonly name: string;
1719
+ readonly id: string;
1720
+ readonly version: number;
1721
+ readonly value: string;
1722
+ }[];
1723
+ };
1724
+ readonly utilityColors: {
1725
+ readonly id: string;
1726
+ readonly name: string;
1727
+ readonly colors: readonly {
1728
+ readonly name: string;
1729
+ readonly id: string;
1730
+ readonly version: number;
1731
+ readonly value: string;
1732
+ }[];
1733
+ };
1734
+ }[];
1735
+ readonly fontThemes?: readonly {
1736
+ readonly name: string;
1737
+ readonly id: string;
1738
+ readonly version: number;
1739
+ readonly fonts: {
1740
+ readonly [x: string]: {
1741
+ readonly name: string;
1742
+ readonly id: string;
1743
+ readonly version: number;
1744
+ readonly properties: {
1745
+ readonly [x: string]: string | number;
1746
+ };
1747
+ };
1748
+ };
1749
+ }[] | undefined;
1750
+ readonly cornerRadiusThemes?: readonly {
1751
+ readonly name: string;
1752
+ readonly id: string;
1753
+ readonly version: number;
1754
+ readonly cornerRadius: {
1755
+ readonly [x: string]: string | number;
1756
+ };
1757
+ }[] | undefined;
1758
+ } | null>>;
1759
+ currentColorMode: Readonly<Ref< {
1760
+ readonly name: string;
1761
+ readonly id: string;
1762
+ readonly textColors: {
1763
+ readonly id: string;
1764
+ readonly name: string;
1765
+ readonly colors: readonly {
1766
+ readonly name: string;
1767
+ readonly id: string;
1768
+ readonly version: number;
1769
+ readonly value: string;
1770
+ }[];
1771
+ };
1772
+ readonly foregroundColors: {
1773
+ readonly id: string;
1774
+ readonly name: string;
1775
+ readonly colors: readonly {
1776
+ readonly name: string;
1777
+ readonly id: string;
1778
+ readonly version: number;
1779
+ readonly value: string;
1780
+ }[];
1781
+ };
1782
+ readonly backgroundColor: {
1783
+ readonly id: string;
1784
+ readonly name: string;
1785
+ readonly colors: readonly {
1786
+ readonly name: string;
1787
+ readonly id: string;
1788
+ readonly version: number;
1789
+ readonly value: string;
1790
+ }[];
1791
+ };
1792
+ readonly borderColor: {
1793
+ readonly id: string;
1794
+ readonly name: string;
1795
+ readonly colors: readonly {
1796
+ readonly name: string;
1797
+ readonly id: string;
1798
+ readonly version: number;
1799
+ readonly value: string;
1800
+ }[];
1801
+ };
1802
+ readonly utilityColors: {
1803
+ readonly id: string;
1804
+ readonly name: string;
1805
+ readonly colors: readonly {
1806
+ readonly name: string;
1807
+ readonly id: string;
1808
+ readonly version: number;
1809
+ readonly value: string;
1810
+ }[];
1811
+ };
1812
+ } | null, {
1813
+ readonly name: string;
1814
+ readonly id: string;
1815
+ readonly textColors: {
1816
+ readonly id: string;
1817
+ readonly name: string;
1818
+ readonly colors: readonly {
1819
+ readonly name: string;
1820
+ readonly id: string;
1821
+ readonly version: number;
1822
+ readonly value: string;
1823
+ }[];
1824
+ };
1825
+ readonly foregroundColors: {
1826
+ readonly id: string;
1827
+ readonly name: string;
1828
+ readonly colors: readonly {
1829
+ readonly name: string;
1830
+ readonly id: string;
1831
+ readonly version: number;
1832
+ readonly value: string;
1833
+ }[];
1834
+ };
1835
+ readonly backgroundColor: {
1836
+ readonly id: string;
1837
+ readonly name: string;
1838
+ readonly colors: readonly {
1839
+ readonly name: string;
1840
+ readonly id: string;
1841
+ readonly version: number;
1842
+ readonly value: string;
1843
+ }[];
1844
+ };
1845
+ readonly borderColor: {
1846
+ readonly id: string;
1847
+ readonly name: string;
1848
+ readonly colors: readonly {
1849
+ readonly name: string;
1850
+ readonly id: string;
1851
+ readonly version: number;
1852
+ readonly value: string;
1853
+ }[];
1854
+ };
1855
+ readonly utilityColors: {
1856
+ readonly id: string;
1857
+ readonly name: string;
1858
+ readonly colors: readonly {
1859
+ readonly name: string;
1860
+ readonly id: string;
1861
+ readonly version: number;
1862
+ readonly value: string;
1863
+ }[];
1864
+ };
1865
+ } | null>>;
1866
+ currentFontTheme: Readonly<Ref< {
1867
+ readonly name: string;
1868
+ readonly id: string;
1869
+ readonly version: number;
1870
+ readonly fonts: {
1871
+ readonly [x: string]: {
1872
+ readonly name: string;
1873
+ readonly id: string;
1874
+ readonly version: number;
1875
+ readonly properties: {
1876
+ readonly [x: string]: string | number;
1877
+ };
1878
+ };
1879
+ };
1880
+ } | null, {
1881
+ readonly name: string;
1882
+ readonly id: string;
1883
+ readonly version: number;
1884
+ readonly fonts: {
1885
+ readonly [x: string]: {
1886
+ readonly name: string;
1887
+ readonly id: string;
1888
+ readonly version: number;
1889
+ readonly properties: {
1890
+ readonly [x: string]: string | number;
1891
+ };
1892
+ };
1893
+ };
1894
+ } | null>>;
1895
+ currentCornerRadiusTheme: Readonly<Ref< {
1896
+ readonly name: string;
1897
+ readonly id: string;
1898
+ readonly version: number;
1899
+ readonly cornerRadius: {
1900
+ readonly [x: string]: string | number;
1901
+ };
1902
+ } | null, {
1903
+ readonly name: string;
1904
+ readonly id: string;
1905
+ readonly version: number;
1906
+ readonly cornerRadius: {
1907
+ readonly [x: string]: string | number;
1908
+ };
1909
+ } | null>>;
1910
+ configuration: Readonly<Ref< {
1911
+ readonly metadata: {
1912
+ readonly generatedAt: string;
1913
+ readonly source: string;
1914
+ readonly totalProjects: number;
1915
+ readonly note: string;
1916
+ };
1917
+ readonly projects: readonly {
1918
+ readonly name: string;
1919
+ readonly id: string;
1920
+ readonly version: number;
1921
+ readonly colorModes: readonly {
1922
+ readonly name: string;
1923
+ readonly id: string;
1924
+ readonly textColors: {
1925
+ readonly id: string;
1926
+ readonly name: string;
1927
+ readonly colors: readonly {
1928
+ readonly name: string;
1929
+ readonly id: string;
1930
+ readonly version: number;
1931
+ readonly value: string;
1932
+ }[];
1933
+ };
1934
+ readonly foregroundColors: {
1935
+ readonly id: string;
1936
+ readonly name: string;
1937
+ readonly colors: readonly {
1938
+ readonly name: string;
1939
+ readonly id: string;
1940
+ readonly version: number;
1941
+ readonly value: string;
1942
+ }[];
1943
+ };
1944
+ readonly backgroundColor: {
1945
+ readonly id: string;
1946
+ readonly name: string;
1947
+ readonly colors: readonly {
1948
+ readonly name: string;
1949
+ readonly id: string;
1950
+ readonly version: number;
1951
+ readonly value: string;
1952
+ }[];
1953
+ };
1954
+ readonly borderColor: {
1955
+ readonly id: string;
1956
+ readonly name: string;
1957
+ readonly colors: readonly {
1958
+ readonly name: string;
1959
+ readonly id: string;
1960
+ readonly version: number;
1961
+ readonly value: string;
1962
+ }[];
1963
+ };
1964
+ readonly utilityColors: {
1965
+ readonly id: string;
1966
+ readonly name: string;
1967
+ readonly colors: readonly {
1968
+ readonly name: string;
1969
+ readonly id: string;
1970
+ readonly version: number;
1971
+ readonly value: string;
1972
+ }[];
1973
+ };
1974
+ }[];
1975
+ readonly fontThemes?: readonly {
1976
+ readonly name: string;
1977
+ readonly id: string;
1978
+ readonly version: number;
1979
+ readonly fonts: {
1980
+ readonly [x: string]: {
1981
+ readonly name: string;
1982
+ readonly id: string;
1983
+ readonly version: number;
1984
+ readonly properties: {
1985
+ readonly [x: string]: string | number;
1986
+ };
1987
+ };
1988
+ };
1989
+ }[] | undefined;
1990
+ readonly cornerRadiusThemes?: readonly {
1991
+ readonly name: string;
1992
+ readonly id: string;
1993
+ readonly version: number;
1994
+ readonly cornerRadius: {
1995
+ readonly [x: string]: string | number;
1996
+ };
1997
+ }[] | undefined;
1998
+ }[];
1999
+ } | null, {
2000
+ readonly metadata: {
2001
+ readonly generatedAt: string;
2002
+ readonly source: string;
2003
+ readonly totalProjects: number;
2004
+ readonly note: string;
2005
+ };
2006
+ readonly projects: readonly {
2007
+ readonly name: string;
2008
+ readonly id: string;
2009
+ readonly version: number;
2010
+ readonly colorModes: readonly {
2011
+ readonly name: string;
2012
+ readonly id: string;
2013
+ readonly textColors: {
2014
+ readonly id: string;
2015
+ readonly name: string;
2016
+ readonly colors: readonly {
2017
+ readonly name: string;
2018
+ readonly id: string;
2019
+ readonly version: number;
2020
+ readonly value: string;
2021
+ }[];
2022
+ };
2023
+ readonly foregroundColors: {
2024
+ readonly id: string;
2025
+ readonly name: string;
2026
+ readonly colors: readonly {
2027
+ readonly name: string;
2028
+ readonly id: string;
2029
+ readonly version: number;
2030
+ readonly value: string;
2031
+ }[];
2032
+ };
2033
+ readonly backgroundColor: {
2034
+ readonly id: string;
2035
+ readonly name: string;
2036
+ readonly colors: readonly {
2037
+ readonly name: string;
2038
+ readonly id: string;
2039
+ readonly version: number;
2040
+ readonly value: string;
2041
+ }[];
2042
+ };
2043
+ readonly borderColor: {
2044
+ readonly id: string;
2045
+ readonly name: string;
2046
+ readonly colors: readonly {
2047
+ readonly name: string;
2048
+ readonly id: string;
2049
+ readonly version: number;
2050
+ readonly value: string;
2051
+ }[];
2052
+ };
2053
+ readonly utilityColors: {
2054
+ readonly id: string;
2055
+ readonly name: string;
2056
+ readonly colors: readonly {
2057
+ readonly name: string;
2058
+ readonly id: string;
2059
+ readonly version: number;
2060
+ readonly value: string;
2061
+ }[];
2062
+ };
2063
+ }[];
2064
+ readonly fontThemes?: readonly {
2065
+ readonly name: string;
2066
+ readonly id: string;
2067
+ readonly version: number;
2068
+ readonly fonts: {
2069
+ readonly [x: string]: {
2070
+ readonly name: string;
2071
+ readonly id: string;
2072
+ readonly version: number;
2073
+ readonly properties: {
2074
+ readonly [x: string]: string | number;
2075
+ };
2076
+ };
2077
+ };
2078
+ }[] | undefined;
2079
+ readonly cornerRadiusThemes?: readonly {
2080
+ readonly name: string;
2081
+ readonly id: string;
2082
+ readonly version: number;
2083
+ readonly cornerRadius: {
2084
+ readonly [x: string]: string | number;
2085
+ };
2086
+ }[] | undefined;
2087
+ }[];
2088
+ } | null>>;
2089
+ isLoading: Readonly<Ref<boolean, boolean>>;
2090
+ error: Readonly<Ref<string | null, string | null>>;
2091
+ availableBrands: Readonly<Ref<readonly {
2092
+ readonly id: string;
2093
+ readonly name: string;
2094
+ readonly version: number;
2095
+ }[], readonly {
2096
+ readonly id: string;
2097
+ readonly name: string;
2098
+ readonly version: number;
2099
+ }[]>>;
2100
+ availableModes: Readonly<Ref<readonly {
2101
+ readonly id: string;
2102
+ readonly name: string;
2103
+ }[], readonly {
2104
+ readonly id: string;
2105
+ readonly name: string;
2106
+ }[]>>;
2107
+ setBrand: (brandId: string) => Promise<void>;
2108
+ setMode: (modeId: string) => Promise<void>;
2109
+ setTheme: (brandId: string, modeId: string) => Promise<void>;
2110
+ initializeTheme: () => Promise<void>;
2111
+ loadConfiguration: () => Promise<void>;
2112
+ applyThemeToDocument: () => void;
2113
+ getCSSVariableMapping: () => Record<string, string>;
2114
+ saveThemeToStorage: () => void;
2115
+ loadThemeFromStorage: () => boolean;
2116
+ };
2117
+
1186
2118
  export declare const useToast: () => {
1187
2119
  toastQueue: Ref< {
1188
2120
  message: string;