@omni-co/embed 0.15.0 → 0.15.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/lib/cjs/types.d.ts +10 -10
- package/lib/esm/types.d.ts +10 -10
- package/lib/omni_internal_browser/types.d.ts +10 -10
- package/package.json +1 -1
package/lib/cjs/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CustomThemeProperty,
|
|
1
|
+
import { CustomThemeProperty, EmbedEntityFolderContentRoles, EmbedSessionMode, EmbedUiSettings } from "./constants.js";
|
|
2
2
|
type UserAttributeValue = string | string[] | number | number[];
|
|
3
3
|
type HostProps = {
|
|
4
4
|
host?: never;
|
|
@@ -41,14 +41,14 @@ type EmbedSsoBaseProps = {
|
|
|
41
41
|
customThemeId?: string;
|
|
42
42
|
/**
|
|
43
43
|
* Optional connection roles setting. Object keys should be connection IDs from the embedded Omni instance.
|
|
44
|
-
* Object values should be connection roles.
|
|
44
|
+
* Object values should be connection roles (base roles or custom role names).
|
|
45
45
|
*/
|
|
46
|
-
connectionRoles?: Record<string,
|
|
46
|
+
connectionRoles?: Record<string, string>;
|
|
47
47
|
/**
|
|
48
48
|
* Optional model roles setting. Object keys should be model IDs from the embedded Omni instance.
|
|
49
|
-
* Object values should be
|
|
49
|
+
* Object values should be model roles (base roles or custom role names).
|
|
50
50
|
*/
|
|
51
|
-
modelRoles?: Record<string,
|
|
51
|
+
modelRoles?: Record<string, string>;
|
|
52
52
|
/**
|
|
53
53
|
* Optional mode setting that determines whether the entire application should be embedded or a single piece of content.
|
|
54
54
|
*
|
|
@@ -185,15 +185,15 @@ export type EmbedSsoContentDiscoveryProps = EmbedSsoBaseProps & {
|
|
|
185
185
|
} & ({
|
|
186
186
|
/**
|
|
187
187
|
* Required connection roles object. Object keys should be connection IDs from the embedded Omni instance.
|
|
188
|
-
* Object values should be connection roles.
|
|
188
|
+
* Object values should be connection roles (base roles or custom role names).
|
|
189
189
|
*/
|
|
190
|
-
connectionRoles: Record<string,
|
|
190
|
+
connectionRoles: Record<string, string>;
|
|
191
191
|
} | {
|
|
192
192
|
/**
|
|
193
|
-
* Required model roles object. Object keys should be
|
|
194
|
-
* Object values should be
|
|
193
|
+
* Required model roles object. Object keys should be model IDs from the embedded Omni instance.
|
|
194
|
+
* Object values should be model roles (base roles or custom role names).
|
|
195
195
|
*/
|
|
196
|
-
modelRoles: Record<string,
|
|
196
|
+
modelRoles: Record<string, string>;
|
|
197
197
|
});
|
|
198
198
|
export type CreateSessionTokenProps = Omit<EmbedSsoContentProps, "prefersDark" | "theme" | "secret" | "nonce"> & {
|
|
199
199
|
apiKey: string;
|
package/lib/esm/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CustomThemeProperty,
|
|
1
|
+
import { CustomThemeProperty, EmbedEntityFolderContentRoles, EmbedSessionMode, EmbedUiSettings } from "./constants.js";
|
|
2
2
|
type UserAttributeValue = string | string[] | number | number[];
|
|
3
3
|
type HostProps = {
|
|
4
4
|
host?: never;
|
|
@@ -41,14 +41,14 @@ type EmbedSsoBaseProps = {
|
|
|
41
41
|
customThemeId?: string;
|
|
42
42
|
/**
|
|
43
43
|
* Optional connection roles setting. Object keys should be connection IDs from the embedded Omni instance.
|
|
44
|
-
* Object values should be connection roles.
|
|
44
|
+
* Object values should be connection roles (base roles or custom role names).
|
|
45
45
|
*/
|
|
46
|
-
connectionRoles?: Record<string,
|
|
46
|
+
connectionRoles?: Record<string, string>;
|
|
47
47
|
/**
|
|
48
48
|
* Optional model roles setting. Object keys should be model IDs from the embedded Omni instance.
|
|
49
|
-
* Object values should be
|
|
49
|
+
* Object values should be model roles (base roles or custom role names).
|
|
50
50
|
*/
|
|
51
|
-
modelRoles?: Record<string,
|
|
51
|
+
modelRoles?: Record<string, string>;
|
|
52
52
|
/**
|
|
53
53
|
* Optional mode setting that determines whether the entire application should be embedded or a single piece of content.
|
|
54
54
|
*
|
|
@@ -185,15 +185,15 @@ export type EmbedSsoContentDiscoveryProps = EmbedSsoBaseProps & {
|
|
|
185
185
|
} & ({
|
|
186
186
|
/**
|
|
187
187
|
* Required connection roles object. Object keys should be connection IDs from the embedded Omni instance.
|
|
188
|
-
* Object values should be connection roles.
|
|
188
|
+
* Object values should be connection roles (base roles or custom role names).
|
|
189
189
|
*/
|
|
190
|
-
connectionRoles: Record<string,
|
|
190
|
+
connectionRoles: Record<string, string>;
|
|
191
191
|
} | {
|
|
192
192
|
/**
|
|
193
|
-
* Required model roles object. Object keys should be
|
|
194
|
-
* Object values should be
|
|
193
|
+
* Required model roles object. Object keys should be model IDs from the embedded Omni instance.
|
|
194
|
+
* Object values should be model roles (base roles or custom role names).
|
|
195
195
|
*/
|
|
196
|
-
modelRoles: Record<string,
|
|
196
|
+
modelRoles: Record<string, string>;
|
|
197
197
|
});
|
|
198
198
|
export type CreateSessionTokenProps = Omit<EmbedSsoContentProps, "prefersDark" | "theme" | "secret" | "nonce"> & {
|
|
199
199
|
apiKey: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CustomThemeProperty,
|
|
1
|
+
import { CustomThemeProperty, EmbedEntityFolderContentRoles, EmbedSessionMode, EmbedUiSettings } from "./constants.js";
|
|
2
2
|
type UserAttributeValue = string | string[] | number | number[];
|
|
3
3
|
type HostProps = {
|
|
4
4
|
host?: never;
|
|
@@ -41,14 +41,14 @@ type EmbedSsoBaseProps = {
|
|
|
41
41
|
customThemeId?: string;
|
|
42
42
|
/**
|
|
43
43
|
* Optional connection roles setting. Object keys should be connection IDs from the embedded Omni instance.
|
|
44
|
-
* Object values should be connection roles.
|
|
44
|
+
* Object values should be connection roles (base roles or custom role names).
|
|
45
45
|
*/
|
|
46
|
-
connectionRoles?: Record<string,
|
|
46
|
+
connectionRoles?: Record<string, string>;
|
|
47
47
|
/**
|
|
48
48
|
* Optional model roles setting. Object keys should be model IDs from the embedded Omni instance.
|
|
49
|
-
* Object values should be
|
|
49
|
+
* Object values should be model roles (base roles or custom role names).
|
|
50
50
|
*/
|
|
51
|
-
modelRoles?: Record<string,
|
|
51
|
+
modelRoles?: Record<string, string>;
|
|
52
52
|
/**
|
|
53
53
|
* Optional mode setting that determines whether the entire application should be embedded or a single piece of content.
|
|
54
54
|
*
|
|
@@ -185,15 +185,15 @@ export type EmbedSsoContentDiscoveryProps = EmbedSsoBaseProps & {
|
|
|
185
185
|
} & ({
|
|
186
186
|
/**
|
|
187
187
|
* Required connection roles object. Object keys should be connection IDs from the embedded Omni instance.
|
|
188
|
-
* Object values should be connection roles.
|
|
188
|
+
* Object values should be connection roles (base roles or custom role names).
|
|
189
189
|
*/
|
|
190
|
-
connectionRoles: Record<string,
|
|
190
|
+
connectionRoles: Record<string, string>;
|
|
191
191
|
} | {
|
|
192
192
|
/**
|
|
193
|
-
* Required model roles object. Object keys should be
|
|
194
|
-
* Object values should be
|
|
193
|
+
* Required model roles object. Object keys should be model IDs from the embedded Omni instance.
|
|
194
|
+
* Object values should be model roles (base roles or custom role names).
|
|
195
195
|
*/
|
|
196
|
-
modelRoles: Record<string,
|
|
196
|
+
modelRoles: Record<string, string>;
|
|
197
197
|
});
|
|
198
198
|
export type CreateSessionTokenProps = Omit<EmbedSsoContentProps, "prefersDark" | "theme" | "secret" | "nonce"> & {
|
|
199
199
|
apiKey: string;
|
package/package.json
CHANGED