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.
package/dist/react.es.js CHANGED
@@ -16499,6 +16499,34 @@ class _g {
16499
16499
  body: t
16500
16500
  });
16501
16501
  }
16502
+ async listRevisionKnowledgeBlocks(e) {
16503
+ return await this.client.GET("/revisions/{id}/knowledge-blocks", {
16504
+ params: { path: { id: e } }
16505
+ });
16506
+ }
16507
+ async replaceRevisionKnowledgeBlocks(e, t) {
16508
+ return await this.client.PUT("/revisions/{id}/knowledge-blocks", {
16509
+ params: { path: { id: e } },
16510
+ body: t
16511
+ });
16512
+ }
16513
+ async createRevisionKnowledgeBlock(e, t) {
16514
+ return await this.client.POST("/revisions/{id}/knowledge-blocks", {
16515
+ params: { path: { id: e } },
16516
+ body: t
16517
+ });
16518
+ }
16519
+ async updateRevisionKnowledgeBlock(e, t, n) {
16520
+ return await this.client.PUT("/revisions/{id}/knowledge-blocks/{blockId}", {
16521
+ params: { path: { id: e, blockId: t } },
16522
+ body: n
16523
+ });
16524
+ }
16525
+ async deleteRevisionKnowledgeBlock(e, t) {
16526
+ return await this.client.DELETE("/revisions/{id}/knowledge-blocks/{blockId}", {
16527
+ params: { path: { id: e, blockId: t } }
16528
+ });
16529
+ }
16502
16530
  // Sessions
16503
16531
  async listSessions(e) {
16504
16532
  return await this.client.GET("/sessions", {
@@ -16530,12 +16558,13 @@ class _g {
16530
16558
  params: { path: { id: e } }
16531
16559
  });
16532
16560
  }
16533
- async getJoinToken(e, { skipIntro: t } = {}) {
16561
+ async getJoinToken(e, { skipIntro: t, user: n } = {}) {
16534
16562
  return await this.client.GET("/join-token", {
16535
16563
  params: {
16536
16564
  query: {
16537
16565
  token: e,
16538
- ...t && { skip_intro: "true" }
16566
+ ...t && { skip_intro: "true" },
16567
+ ...n && { user: encodeURIComponent(n) }
16539
16568
  }
16540
16569
  }
16541
16570
  });
@@ -28559,13 +28588,6 @@ LA.styles = Qt`
28559
28588
  aspect-ratio: 1/1;
28560
28589
  border-radius: 8px;
28561
28590
  background: var(--obi-primary, #a10fff);
28562
- box-shadow:
28563
- 0px 0px 8px 0px rgba(168, 85, 247, 0.12),
28564
- 0px 0px 8px 0px rgba(192, 132, 252, 0.24),
28565
- 0px 0px 4px 0px rgba(192, 132, 252, 0.24),
28566
- 0px 0px 4px 0px rgba(192, 132, 252, 0.24),
28567
- 0px 0px 2px 0px rgba(192, 132, 252, 0.12),
28568
- 0px 0px 1px 0px rgba(168, 85, 247, 0.24);
28569
28591
  }
28570
28592
 
28571
28593
  .logo img {
@@ -28978,7 +29000,8 @@ let Ce = class extends Ft {
28978
29000
  try {
28979
29001
  const t = new KC({
28980
29002
  sessionId: e,
28981
- apiBaseUrl: nc
29003
+ apiBaseUrl: nc,
29004
+ ...this.user && { user: this.user }
28982
29005
  });
28983
29006
  return t || (console.error("Failed to create session"), null);
28984
29007
  } catch (t) {