@omni-co/embed 0.17.0 → 0.18.0

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 CHANGED
@@ -516,7 +516,7 @@ type EmbedSsoContentDiscoveryProps = {
516
516
  * entity-folder: embed entity folder
517
517
  * root: "Hub" page
518
518
  */
519
- path: EmbedSsoContentDiscoveryPath;
519
+ path: string;
520
520
 
521
521
  // Port of host.
522
522
  port?: number;
@@ -187,19 +187,7 @@ export type EmbedSsoContentDiscoveryProps = EmbedSsoBaseProps & {
187
187
  * Path name of the content discovery page to embed.
188
188
  */
189
189
  path: string;
190
- } & ({
191
- /**
192
- * Required connection roles object. Object keys should be connection IDs from the embedded Omni instance.
193
- * Object values should be connection roles (base roles or custom role names).
194
- */
195
- connectionRoles: Record<string, string>;
196
- } | {
197
- /**
198
- * Required model roles object. Object keys should be model IDs from the embedded Omni instance.
199
- * Object values should be model roles (base roles or custom role names).
200
- */
201
- modelRoles: Record<string, string>;
202
- });
190
+ };
203
191
  export type RedeemSessionExclusiveProps = "branch" | "nonce" | "prefersDark" | "secret" | "theme";
204
192
  export type CreateSessionTokenProps = Omit<EmbedSsoContentProps, RedeemSessionExclusiveProps> & {
205
193
  apiKey: string;
@@ -187,19 +187,7 @@ export type EmbedSsoContentDiscoveryProps = EmbedSsoBaseProps & {
187
187
  * Path name of the content discovery page to embed.
188
188
  */
189
189
  path: string;
190
- } & ({
191
- /**
192
- * Required connection roles object. Object keys should be connection IDs from the embedded Omni instance.
193
- * Object values should be connection roles (base roles or custom role names).
194
- */
195
- connectionRoles: Record<string, string>;
196
- } | {
197
- /**
198
- * Required model roles object. Object keys should be model IDs from the embedded Omni instance.
199
- * Object values should be model roles (base roles or custom role names).
200
- */
201
- modelRoles: Record<string, string>;
202
- });
190
+ };
203
191
  export type RedeemSessionExclusiveProps = "branch" | "nonce" | "prefersDark" | "secret" | "theme";
204
192
  export type CreateSessionTokenProps = Omit<EmbedSsoContentProps, RedeemSessionExclusiveProps> & {
205
193
  apiKey: string;
@@ -187,19 +187,7 @@ export type EmbedSsoContentDiscoveryProps = EmbedSsoBaseProps & {
187
187
  * Path name of the content discovery page to embed.
188
188
  */
189
189
  path: string;
190
- } & ({
191
- /**
192
- * Required connection roles object. Object keys should be connection IDs from the embedded Omni instance.
193
- * Object values should be connection roles (base roles or custom role names).
194
- */
195
- connectionRoles: Record<string, string>;
196
- } | {
197
- /**
198
- * Required model roles object. Object keys should be model IDs from the embedded Omni instance.
199
- * Object values should be model roles (base roles or custom role names).
200
- */
201
- modelRoles: Record<string, string>;
202
- });
190
+ };
203
191
  export type RedeemSessionExclusiveProps = "branch" | "nonce" | "prefersDark" | "secret" | "theme";
204
192
  export type CreateSessionTokenProps = Omit<EmbedSsoContentProps, RedeemSessionExclusiveProps> & {
205
193
  apiKey: string;
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.17.0",
2
+ "version": "0.18.0",
3
3
  "license": "MIT",
4
4
  "name": "@omni-co/embed",
5
5
  "author": "Nate Agrin <nate@exploreomni.com>",