@omniloy/sofia-sdk 0.0.1

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/README.md ADDED
@@ -0,0 +1,50 @@
1
+ # Sofia SDK
2
+
3
+ [![npm version](https://badge.fury.io/js/%40omniloy%2Fsofia-sdk.svg)](https://badge.fury.io/js/%40omniloy%2Fsofia-sdk)
4
+ [![License: AGPL v3](https://img.shields.io/badge/License-AGPL%20v3-blue.svg)](https://www.gnu.org/licenses/agpl-3.0)
5
+ [![TypeScript](https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg)](http://www.typescriptlang.org/)
6
+
7
+ AI-powered medical assistant web component for healthcare applications.
8
+
9
+ **Documentation & Support:**
10
+ - [Official Documentation](https://omniloy.mintlify.app/en)
11
+ - [Examples Repository](https://github.com/omniloy/sofia-examples)
12
+ - [Report Issues](https://github.com/omniloy/sofia-examples/issues)
13
+
14
+ ## Installation
15
+
16
+ ```bash
17
+ npm install @omniloy/sofia-sdk
18
+ ```
19
+
20
+ ## Quick Start
21
+
22
+ ```html
23
+ <script type="module">
24
+ import '@omniloy/sofia-sdk/dist/webcomponents.umd.js';
25
+ </script>
26
+
27
+ <sofia-sdk
28
+ api-key="your-api-key"
29
+ base-url="https://api.example.com"
30
+ user-id="user123"
31
+ patient-id="patient456">
32
+ </sofia-sdk>
33
+ ```
34
+
35
+ ## Features
36
+
37
+ - Real-time medical transcription
38
+ - Intelligent report generation
39
+ - HIPAA compliant
40
+ - Framework agnostic
41
+
42
+ ## Browser Support
43
+
44
+ Chrome 88+, Firefox 78+, Safari 14+, Edge 88+
45
+
46
+ ## License
47
+
48
+ Dual-licensed: **AGPL-3.0** for open source, **Commercial License** for proprietary use.
49
+
50
+ For commercial licensing: [omniloy.com](https://omniloy.com)
@@ -0,0 +1 @@
1
+ export default "";export default "";export default "";export default "";export default "";export default "";export default "";export default "";export default "";export default "";export default "";export default "";export default "";export default "";export default "";export default "";export default "";export default "";export default "";export default "";export default "";export default "";export default "";export default "";export default "";export default "";export default "";export default "";export default "";export default "";export default "";export default "";export default "";export default "";export default "";export default "";export default "";export default "";export default "";export default "";export default "";export default "";export default "";{}
@@ -0,0 +1,61 @@
1
+ import * as React_2 from 'react';
2
+
3
+ declare enum LanguageCode {
4
+ ar = "ar",
5
+ en = "en",
6
+ es = "es",
7
+ id = "id"
8
+ }
9
+
10
+ export declare const OmniscribeElement: CustomElementConstructor;
11
+
12
+ export declare interface OmniscribeProps {
13
+ baseurl: string;
14
+ wssurl: string;
15
+ apikey: string;
16
+ userid: string;
17
+ toolsargs: object;
18
+ patientid: string;
19
+ isopen?: boolean;
20
+ setIsOpen?: React_2.Dispatch<React_2.SetStateAction<boolean>>;
21
+ patientdata?: object;
22
+ transcriptorselectvalues?: TTranscriptorSelect;
23
+ handleReport: (report: object) => void | undefined;
24
+ 'handle-report'?: (report: object) => void | undefined;
25
+ handleAngular?: (report: object) => void | undefined;
26
+ handleFill?: () => Promise<void>;
27
+ renderReportContent: TRenderReport | undefined;
28
+ toast?: TToastState;
29
+ width?: string;
30
+ height?: string;
31
+ title?: string;
32
+ language?: LanguageCode;
33
+ isscreenloading?: boolean;
34
+ disableactions?: boolean;
35
+ onlychat?: boolean;
36
+ disablegenerate?: boolean;
37
+ chatsources?: string[];
38
+ setGetLastReport?: (fn: () => Promise<object | undefined>) => void;
39
+ }
40
+
41
+ declare enum ToastVariation {
42
+ default = "default",
43
+ danger = "danger"
44
+ }
45
+
46
+ declare type TRenderReport = (report: object, selected: string) => React_2.JSX.Element[] | React_2.JSX.Element;
47
+
48
+ declare type TToastState = {
49
+ title: string;
50
+ message: string;
51
+ visible: boolean;
52
+ variation: ToastVariation;
53
+ duration?: number;
54
+ };
55
+
56
+ declare type TTranscriptorSelect = {
57
+ value: string;
58
+ label: string;
59
+ }[];
60
+
61
+ export { }