obi-sdk 0.11.1 → 0.12.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.
@@ -0,0 +1,6 @@
1
+ import { O } from "./obi-widget-6b2916f1.js";
2
+ import "./types-e0297e7b.js";
3
+ export {
4
+ O as ObiWidget
5
+ };
6
+ //# sourceMappingURL=index-21eeed74.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-21eeed74.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
@@ -550,6 +550,34 @@ class ObiClient {
550
550
  body: data
551
551
  });
552
552
  }
553
+ async listRevisionKnowledgeBlocks(revisionId) {
554
+ return await this.client.GET("/revisions/{id}/knowledge-blocks", {
555
+ params: { path: { id: revisionId } }
556
+ });
557
+ }
558
+ async replaceRevisionKnowledgeBlocks(revisionId, data) {
559
+ return await this.client.PUT("/revisions/{id}/knowledge-blocks", {
560
+ params: { path: { id: revisionId } },
561
+ body: data
562
+ });
563
+ }
564
+ async createRevisionKnowledgeBlock(revisionId, data) {
565
+ return await this.client.POST("/revisions/{id}/knowledge-blocks", {
566
+ params: { path: { id: revisionId } },
567
+ body: data
568
+ });
569
+ }
570
+ async updateRevisionKnowledgeBlock(revisionId, blockId, data) {
571
+ return await this.client.PUT("/revisions/{id}/knowledge-blocks/{blockId}", {
572
+ params: { path: { id: revisionId, blockId } },
573
+ body: data
574
+ });
575
+ }
576
+ async deleteRevisionKnowledgeBlock(revisionId, blockId) {
577
+ return await this.client.DELETE("/revisions/{id}/knowledge-blocks/{blockId}", {
578
+ params: { path: { id: revisionId, blockId } }
579
+ });
580
+ }
553
581
  // Sessions
554
582
  async listSessions(token) {
555
583
  return await this.client.GET("/sessions", {
@@ -581,12 +609,13 @@ class ObiClient {
581
609
  params: { path: { id } }
582
610
  });
583
611
  }
584
- async getJoinToken(token, { skipIntro } = {}) {
612
+ async getJoinToken(token, { skipIntro, user } = {}) {
585
613
  return await this.client.GET("/join-token", {
586
614
  params: {
587
615
  query: {
588
616
  token,
589
- ...skipIntro && { skip_intro: "true" }
617
+ ...skipIntro && { skip_intro: "true" },
618
+ ...user && { user: encodeURIComponent(user) }
590
619
  }
591
620
  }
592
621
  });
@@ -17764,13 +17793,6 @@ SessionStartModal.styles = i$4`
17764
17793
  aspect-ratio: 1/1;
17765
17794
  border-radius: 8px;
17766
17795
  background: var(--obi-primary, #a10fff);
17767
- box-shadow:
17768
- 0px 0px 8px 0px rgba(168, 85, 247, 0.12),
17769
- 0px 0px 8px 0px rgba(192, 132, 252, 0.24),
17770
- 0px 0px 4px 0px rgba(192, 132, 252, 0.24),
17771
- 0px 0px 4px 0px rgba(192, 132, 252, 0.24),
17772
- 0px 0px 2px 0px rgba(192, 132, 252, 0.12),
17773
- 0px 0px 1px 0px rgba(168, 85, 247, 0.24);
17774
17796
  }
17775
17797
 
17776
17798
  .logo img {
@@ -18345,7 +18367,8 @@ class ObiWidget extends i$1 {
18345
18367
  try {
18346
18368
  const session = new ObiSession({
18347
18369
  sessionId: sessionToken,
18348
- apiBaseUrl: API_BASE_URL
18370
+ apiBaseUrl: API_BASE_URL,
18371
+ ...this.user && { user: this.user }
18349
18372
  });
18350
18373
  if (!session) {
18351
18374
  console.error("Failed to create session");
@@ -18944,4 +18967,4 @@ export {
18944
18967
  withSentryAsyncHandler as w,
18945
18968
  x
18946
18969
  };
18947
- //# sourceMappingURL=obi-widget-00df4624.js.map
18970
+ //# sourceMappingURL=obi-widget-6b2916f1.js.map