@naturali/sdk 0.44.0 → 0.44.2

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/index.d.cts CHANGED
@@ -995,6 +995,7 @@ type ChannelBinding = {
995
995
  language: string | null;
996
996
  /**
997
997
  * Per-binding config bag — media handling, persona overrides, business hours, fallback.
998
+ * For a Discord channel it also carries who may invoke the agent in a server: `discord.allowed_role_ids` and `discord.allowed_user_ids`. A member is admitted by matching either list, and empty or absent lists mean everyone. Admission is decided from the roles the inbound message carries, before the agent is invoked, so an unlisted member costs nothing.
998
999
  *
999
1000
  */
1000
1001
  config: {
@@ -1011,6 +1012,10 @@ type ChannelBinding = {
1011
1012
  type ChannelBindingSet = {
1012
1013
  agent_id: string;
1013
1014
  language?: string | null;
1015
+ /**
1016
+ * Per-binding config bag. For Discord, `discord.allowed_role_ids` and `discord.allowed_user_ids` restrict who may invoke the agent in a server — either list admits, and empty or absent lists mean everyone.
1017
+ *
1018
+ */
1014
1019
  config?: {
1015
1020
  [key: string]: unknown;
1016
1021
  } | null;
package/dist/index.d.mts CHANGED
@@ -995,6 +995,7 @@ type ChannelBinding = {
995
995
  language: string | null;
996
996
  /**
997
997
  * Per-binding config bag — media handling, persona overrides, business hours, fallback.
998
+ * For a Discord channel it also carries who may invoke the agent in a server: `discord.allowed_role_ids` and `discord.allowed_user_ids`. A member is admitted by matching either list, and empty or absent lists mean everyone. Admission is decided from the roles the inbound message carries, before the agent is invoked, so an unlisted member costs nothing.
998
999
  *
999
1000
  */
1000
1001
  config: {
@@ -1011,6 +1012,10 @@ type ChannelBinding = {
1011
1012
  type ChannelBindingSet = {
1012
1013
  agent_id: string;
1013
1014
  language?: string | null;
1015
+ /**
1016
+ * Per-binding config bag. For Discord, `discord.allowed_role_ids` and `discord.allowed_user_ids` restrict who may invoke the agent in a server — either list admits, and empty or absent lists mean everyone.
1017
+ *
1018
+ */
1014
1019
  config?: {
1015
1020
  [key: string]: unknown;
1016
1021
  } | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturali/sdk",
3
- "version": "0.44.0",
3
+ "version": "0.44.2",
4
4
  "description": "TypeScript SDK for the naturali.ai API, generated from its OpenAPI specs",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -37,7 +37,7 @@
37
37
  "tsx": "^4.23.1",
38
38
  "typescript": "~6.0.3",
39
39
  "vitest": "^4.1.10",
40
- "@naturali/api": "0.44.0"
40
+ "@naturali/api": "0.44.2"
41
41
  },
42
42
  "scripts": {
43
43
  "generate": "tsx scripts/generate.ts",