@blocksdiy/blocks-client-sdk 1.13.1 → 1.14.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.
@@ -16,6 +16,12 @@ export interface AgentChatConfig {
16
16
  * this is only ever read — a mutable-only type would reject `useAgentChat(<Name>AgentChat)`.
17
17
  */
18
18
  componentIds?: readonly string[];
19
+ /**
20
+ * Whether this chat backs an agent mini-app's layout (`AgentLayout`), whose
21
+ * conversation index is shared across everyone in the account. Optional so
22
+ * handles generated before the flag existed still type-check.
23
+ */
24
+ isAdmin?: boolean;
19
25
  }
20
26
  /**
21
27
  * AgentChat class for interacting with the agent chat
@@ -32,6 +38,7 @@ export declare class AgentChat<ACC extends AgentChatConfig = AgentChatConfig> {
32
38
  private token?;
33
39
  private agentHarness?;
34
40
  private componentIds?;
41
+ private isAdmin?;
35
42
  /**
36
43
  * Creates a new AgentChat instance
37
44
  * @param {ACC} config - Configuration for the agent chat
@@ -49,6 +56,7 @@ export declare class AgentChat<ACC extends AgentChatConfig = AgentChatConfig> {
49
56
  agentId: string | undefined;
50
57
  agentHarness: string | undefined;
51
58
  componentIds: string[] | undefined;
59
+ isAdmin: boolean | undefined;
52
60
  appId: string;
53
61
  token: string | undefined;
54
62
  };
@@ -1 +1 @@
1
- {"version":3,"file":"AgentChat.d.ts","sourceRoot":"","sources":["../src/AgentChat.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,WAAW,eAAe;IAC9B,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,YAAY,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CAClC;AAED;;;;;;;GAOG;AACH,qBAAa,SAAS,CAAC,GAAG,SAAS,eAAe,GAAG,eAAe;IAClE,OAAO,CAAC,WAAW,CAAS;IAC5B,OAAO,CAAC,OAAO,CAAC,CAAS;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 @@ export class AgentChat {
13
13
  token;
14
14
  agentHarness;
15
15
  componentIds;
16
+ isAdmin;
16
17
  /**
17
18
  * Creates a new AgentChat instance
18
19
  * @param {ACC} config - Configuration for the agent chat
@@ -25,6 +26,7 @@ export class AgentChat {
25
26
  this.agentHarness = config.agentHarness;
26
27
  // A mutable copy: the component props keep their `string[]` shape for every consumer.
27
28
  this.componentIds = config.componentIds ? [...config.componentIds] : undefined;
29
+ this.isAdmin = config.isAdmin;
28
30
  }
29
31
  /**
30
32
  * Get the props for the AgentChat component
@@ -36,6 +38,7 @@ export class AgentChat {
36
38
  agentId: this.agentId,
37
39
  agentHarness: this.agentHarness,
38
40
  componentIds: this.componentIds,
41
+ isAdmin: this.isAdmin,
39
42
  appId: this.appId,
40
43
  token: this.token,
41
44
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocksdiy/blocks-client-sdk",
3
- "version": "1.13.1",
3
+ "version": "1.14.0",
4
4
  "type": "module",
5
5
  "description": "Blocks client sdk",
6
6
  "keywords": [],
@@ -47,8 +47,8 @@
47
47
  },
48
48
  "dependencies": {
49
49
  "@tanstack/react-query": "^5.101.0",
50
- "@blocksdiy/blocks-client-api": "1.22.0",
51
- "@blocksdiy/react-common": "1.43.1"
50
+ "@blocksdiy/blocks-client-api": "1.5.0",
51
+ "@blocksdiy/react-common": "1.5.2"
52
52
  },
53
53
  "devDependencies": {
54
54
  "tsc-alias": "^1.8.10",