@unisphere/models-sdk-types 1.1.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 +134 -0
- package/index.d.ts +1 -0
- package/index.esm.js +1 -0
- package/package.json +20 -0
- package/src/index.d.ts +10 -0
package/README.md
ADDED
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
# Unisphere - Kaltura Models
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
|
|
5
|
+
This repository is a **Unisphere workspace** for an experience named **Models**.
|
|
6
|
+
|
|
7
|
+
It contains everything you need to:
|
|
8
|
+
- Create and publish npm / JFrog packages
|
|
9
|
+
- Bundle and version runtime artifacts
|
|
10
|
+
- Build and deploy applications
|
|
11
|
+
- Develop locally and promote changes to production
|
|
12
|
+
|
|
13
|
+
The Unisphere workspace acts as the single entry point for the entire lifecycle — from local development, through CI/CD, and all the way to production deployment.
|
|
14
|
+
|
|
15
|
+
To better understand the ideas behind Unisphere and how it works, read more at:
|
|
16
|
+
https://unisphere.kaltura.com/
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## Prerequisites
|
|
21
|
+
|
|
22
|
+
At the moment, **deploying Unisphere experiences is available only to Kaltura employees**.
|
|
23
|
+
|
|
24
|
+
Before doing anything else, make sure your machine is properly configured to access:
|
|
25
|
+
- Kaltura GitHub repositories
|
|
26
|
+
- Kaltura JFrog Artifactory registries
|
|
27
|
+
|
|
28
|
+
Follow the setup guide here:
|
|
29
|
+
https://unisphere.kaltura.com/docs/create/kaltura-employees/setup-machine
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
## Add the Experience to Kaltura Github Organization
|
|
34
|
+
|
|
35
|
+
Before you can deploy or activate this experience, it must be registered in Github under Kaltura Organization.
|
|
36
|
+
|
|
37
|
+
This step connects your Unisphere workspace to the relevant Kaltura infrastructure and enables CI/CD, deployment, and activation flows.
|
|
38
|
+
|
|
39
|
+
Follow the guide here:
|
|
40
|
+
https://unisphere.kaltura.com/docs/create/devops/create-github-repository
|
|
41
|
+
|
|
42
|
+
---
|
|
43
|
+
|
|
44
|
+
## Create Artifacts
|
|
45
|
+
|
|
46
|
+
Unisphere allows you to create and manage different types of artifacts, including:
|
|
47
|
+
- Packages
|
|
48
|
+
- Runtimes
|
|
49
|
+
- Applications
|
|
50
|
+
|
|
51
|
+
Each artifact type has its own role in the ecosystem, but they all live and evolve together inside this workspace.
|
|
52
|
+
|
|
53
|
+
Read more about creating artifacts here:
|
|
54
|
+
https://unisphere.kaltura.com/docs/create/overview
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
## Deploy
|
|
59
|
+
|
|
60
|
+
To deploy **packages, applications, and runtimes**, follow the deployment guide:
|
|
61
|
+
https://unisphere.kaltura.com/docs/create/devops/deploy
|
|
62
|
+
|
|
63
|
+
For **applications and runtimes**, deployment is only part of the process.
|
|
64
|
+
After deployment, they must also be activated to become available in production.
|
|
65
|
+
|
|
66
|
+
Activation guide:
|
|
67
|
+
https://unisphere.kaltura.com/docs/create/devops/activate
|
|
68
|
+
|
|
69
|
+
---
|
|
70
|
+
|
|
71
|
+
## Local Development
|
|
72
|
+
|
|
73
|
+
Unisphere provides a structured local development flow that mirrors production as closely as possible, while still keeping things fast and developer-friendly.
|
|
74
|
+
|
|
75
|
+
This includes:
|
|
76
|
+
- Local builds
|
|
77
|
+
- Watching and rebuilding artifacts
|
|
78
|
+
- Running applications in isolation or as part of a larger workspace
|
|
79
|
+
|
|
80
|
+
Read more about local development here:
|
|
81
|
+
https://unisphere.kaltura.com/docs/create/local-development
|
|
82
|
+
|
|
83
|
+
---
|
|
84
|
+
|
|
85
|
+
## Available Commands
|
|
86
|
+
|
|
87
|
+
This workspace exposes a small set of opinionated commands to help you explore, validate, and manage the experience.
|
|
88
|
+
|
|
89
|
+
### Start
|
|
90
|
+
Lists all available commands for each artifact in the experience, including how to build and serve runtimes, and how to spawn applications.
|
|
91
|
+
|
|
92
|
+
```bash
|
|
93
|
+
npm run start
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
### Info
|
|
98
|
+
Displays information about the current workspace, including detected artifacts, configuration, and environment details.
|
|
99
|
+
|
|
100
|
+
```bash
|
|
101
|
+
npm run info
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
### Check
|
|
105
|
+
Validates the workspace setup and verifies that all required artifacts and configurations are in place.
|
|
106
|
+
|
|
107
|
+
```bash
|
|
108
|
+
npm run check
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
### Reset
|
|
112
|
+
Resets the workspace to a clean state. Useful when experimenting or when local state becomes inconsistent.
|
|
113
|
+
|
|
114
|
+
```bash
|
|
115
|
+
npm run reset
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
---
|
|
120
|
+
|
|
121
|
+
## Next Steps
|
|
122
|
+
|
|
123
|
+
If this is your first time working with Unisphere, a great next step is to **create a runtime with a playground**.
|
|
124
|
+
|
|
125
|
+
Follow the Hello World walkthrough here:
|
|
126
|
+
[https://unisphere.kaltura.com/docs/create/overview](https://unisphere.kaltura.com/docs/create/overview)
|
|
127
|
+
|
|
128
|
+
The walkthrough will guide you through:
|
|
129
|
+
|
|
130
|
+
* Creating your first runtime
|
|
131
|
+
* Running it locally with a playground
|
|
132
|
+
* Understanding how runtimes, packages, and applications connect together
|
|
133
|
+
|
|
134
|
+
This will give you a strong foundation for building and evolving the experience over time.
|
package/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./src/index";
|
package/index.esm.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { AvatarError, AvatarErrorCode, ConnectionState, SessionState } from '@unisphere/models-sdk-js';
|
package/package.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@unisphere/models-sdk-types",
|
|
3
|
+
"version": "1.1.1",
|
|
4
|
+
"author": "kaltura",
|
|
5
|
+
"private": false,
|
|
6
|
+
"license": "AGPL-3.0",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/kaltura/models"
|
|
10
|
+
},
|
|
11
|
+
"types": "./src/index.d.ts",
|
|
12
|
+
"dependencies": {
|
|
13
|
+
"@unisphere/models-sdk-js": "^1.2.1"
|
|
14
|
+
},
|
|
15
|
+
"publishConfig": {
|
|
16
|
+
"registry": "https://registry.npmjs.org"
|
|
17
|
+
},
|
|
18
|
+
"module": "./index.esm.js",
|
|
19
|
+
"type": "module"
|
|
20
|
+
}
|
package/src/index.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Kaltura Avatar SDK - Public Types
|
|
3
|
+
*
|
|
4
|
+
* This package re-exports all TypeScript types that external consumers
|
|
5
|
+
* of the Kaltura Avatar SDK need to import and use.
|
|
6
|
+
*
|
|
7
|
+
* @packageDocumentation
|
|
8
|
+
*/
|
|
9
|
+
export type { AvatarConfig, CreateSessionOptions, SessionEvent, RetryConfig, } from '@unisphere/models-sdk-js';
|
|
10
|
+
export { SessionState, ConnectionState, AvatarError, AvatarErrorCode, } from '@unisphere/models-sdk-js';
|