@pipes.bot/pipes-bot-channel 0.1.4 → 0.1.6

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.
@@ -4,19 +4,6 @@
4
4
  "configSchema": {
5
5
  "type": "object",
6
6
  "additionalProperties": false,
7
- "properties": {
8
- "apiKey": {
9
- "type": "string",
10
- "minLength": 1,
11
- "pattern": "^pk_"
12
- }
13
- }
14
- },
15
- "uiHints": {
16
- "apiKey": {
17
- "label": "PipesBot API Key",
18
- "sensitive": true,
19
- "placeholder": "pk_..."
20
- }
7
+ "properties": {}
21
8
  }
22
9
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pipes.bot/pipes-bot-channel",
3
- "version": "0.1.4",
3
+ "version": "0.1.6",
4
4
  "description": "WhatsApp channel via PipesBot managed proxy (OpenClaw plugin)",
5
5
  "type": "module",
6
6
  "main": "index.ts",
package/src/channel.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { ChannelPlugin, ChannelSetupInput, OpenClawConfig } from "openclaw/plugin-sdk";
1
+ import type { ChannelPlugin, OpenClawConfig } from "openclaw/plugin-sdk";
2
2
  import { getConnectionStatus } from "./status-store.js";
3
3
 
4
4
  const CHANNEL_KEY = "pipes-bot-channel";
@@ -19,11 +19,11 @@ export const pipesBotChannelPlugin: ChannelPlugin = {
19
19
  schema: {
20
20
  type: "object",
21
21
  properties: {
22
- apiKey: { type: "string" },
22
+ token: { type: "string" },
23
23
  },
24
24
  },
25
25
  uiHints: {
26
- apiKey: {
26
+ token: {
27
27
  label: "PipesBot API Key",
28
28
  sensitive: true,
29
29
  placeholder: "pk_...",
@@ -56,7 +56,6 @@ export const pipesBotChannelPlugin: ChannelPlugin = {
56
56
  setup: {
57
57
  resolveAccountId: () => "default",
58
58
  applyAccountConfig: ({ cfg, input }) => {
59
- const setupInput = input as ChannelSetupInput & { apiKey?: string };
60
59
  const base = getChannelConfig(cfg);
61
60
  return {
62
61
  ...cfg,
@@ -65,7 +64,7 @@ export const pipesBotChannelPlugin: ChannelPlugin = {
65
64
  [CHANNEL_KEY]: {
66
65
  ...base,
67
66
  enabled: true,
68
- ...(setupInput.apiKey ? { apiKey: setupInput.apiKey } : {}),
67
+ ...(input.token ? { apiKey: input.token } : {}),
69
68
  },
70
69
  },
71
70
  } as OpenClawConfig;