@inline-openclaw/inline 0.0.34 → 0.0.36

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.
Files changed (90) hide show
  1. package/README.md +73 -19
  2. package/dist/account-inspect-api.d.ts +3 -0
  3. package/dist/account-inspect-api.d.ts.map +1 -0
  4. package/dist/account-inspect-api.js +14998 -0
  5. package/dist/account-inspect-api.js.map +87 -0
  6. package/dist/approval-handler.runtime.js +38936 -0
  7. package/dist/approval-handler.runtime.js.map +154 -0
  8. package/dist/channel-plugin-api.d.ts +2 -0
  9. package/dist/channel-plugin-api.d.ts.map +1 -0
  10. package/dist/channel-plugin-api.js +44554 -0
  11. package/dist/channel-plugin-api.js.map +167 -0
  12. package/dist/configured-state.d.ts +4 -0
  13. package/dist/configured-state.d.ts.map +1 -0
  14. package/dist/configured-state.js +43 -0
  15. package/dist/configured-state.js.map +10 -0
  16. package/dist/index.d.ts +2 -9
  17. package/dist/index.d.ts.map +1 -1
  18. package/dist/index.js +28 -41525
  19. package/dist/index.js.map +4 -155
  20. package/dist/inline/accounts.d.ts +35 -1
  21. package/dist/inline/accounts.d.ts.map +1 -1
  22. package/dist/inline/actions.d.ts +15 -8
  23. package/dist/inline/actions.d.ts.map +1 -1
  24. package/dist/inline/approval-handler.runtime.d.ts +28 -0
  25. package/dist/inline/approval-handler.runtime.d.ts.map +1 -0
  26. package/dist/inline/approval-native.d.ts +22 -0
  27. package/dist/inline/approval-native.d.ts.map +1 -0
  28. package/dist/inline/bot-commands-sync.d.ts.map +1 -1
  29. package/dist/inline/bot-commands-tool.d.ts.map +1 -1
  30. package/dist/inline/channel.d.ts +1 -1
  31. package/dist/inline/channel.d.ts.map +1 -1
  32. package/dist/inline/command-ui.d.ts +43 -0
  33. package/dist/inline/command-ui.d.ts.map +1 -0
  34. package/dist/inline/config-schema.d.ts +727 -41
  35. package/dist/inline/config-schema.d.ts.map +1 -1
  36. package/dist/inline/doctor.d.ts +5 -0
  37. package/dist/inline/doctor.d.ts.map +1 -0
  38. package/dist/inline/exec-approvals.d.ts +54 -0
  39. package/dist/inline/exec-approvals.d.ts.map +1 -0
  40. package/dist/inline/interactive-fallback.d.ts +6 -0
  41. package/dist/inline/interactive-fallback.d.ts.map +1 -0
  42. package/dist/inline/media.d.ts +10 -0
  43. package/dist/inline/media.d.ts.map +1 -1
  44. package/dist/inline/message-formatting.d.ts +5 -1
  45. package/dist/inline/message-formatting.d.ts.map +1 -1
  46. package/dist/inline/message-tools.d.ts.map +1 -1
  47. package/dist/inline/monitor.d.ts +7 -1
  48. package/dist/inline/monitor.d.ts.map +1 -1
  49. package/dist/inline/outbound-sanitize.d.ts +12 -0
  50. package/dist/inline/outbound-sanitize.d.ts.map +1 -0
  51. package/dist/inline/policy.d.ts +30 -0
  52. package/dist/inline/policy.d.ts.map +1 -1
  53. package/dist/inline/profile-tool.d.ts.map +1 -1
  54. package/dist/inline/secret-contract.d.ts +18 -0
  55. package/dist/inline/secret-contract.d.ts.map +1 -0
  56. package/dist/inline/security.d.ts +6 -0
  57. package/dist/inline/security.d.ts.map +1 -0
  58. package/dist/inline/setup-core.d.ts +1 -0
  59. package/dist/inline/setup-core.d.ts.map +1 -1
  60. package/dist/inline/setup-plugin.d.ts +3 -0
  61. package/dist/inline/setup-plugin.d.ts.map +1 -0
  62. package/dist/inline/setup-surface.d.ts.map +1 -1
  63. package/dist/inline/shared.d.ts +61 -0
  64. package/dist/inline/shared.d.ts.map +1 -0
  65. package/dist/inline/status-issues.d.ts.map +1 -1
  66. package/dist/runtime-register-api.d.ts +3 -0
  67. package/dist/runtime-register-api.d.ts.map +1 -0
  68. package/dist/runtime-register-api.js +37064 -0
  69. package/dist/runtime-register-api.js.map +153 -0
  70. package/dist/runtime-setter-api.d.ts +2 -0
  71. package/dist/runtime-setter-api.d.ts.map +1 -0
  72. package/dist/runtime-setter-api.js +50 -0
  73. package/dist/runtime-setter-api.js.map +10 -0
  74. package/dist/runtime.d.ts.map +1 -1
  75. package/dist/sdk-runtime-compat.d.ts +1 -1
  76. package/dist/sdk-runtime-compat.d.ts.map +1 -1
  77. package/dist/secret-contract-api.d.ts +2 -0
  78. package/dist/secret-contract-api.d.ts.map +1 -0
  79. package/dist/secret-contract-api.js +87 -0
  80. package/dist/secret-contract-api.js.map +10 -0
  81. package/dist/setup-entry.d.ts +3 -0
  82. package/dist/setup-entry.d.ts.map +1 -0
  83. package/dist/setup-entry.js +48 -0
  84. package/dist/setup-entry.js.map +10 -0
  85. package/dist/setup-plugin-api.d.ts +2 -0
  86. package/dist/setup-plugin-api.d.ts.map +1 -0
  87. package/dist/setup-plugin-api.js +15732 -0
  88. package/dist/setup-plugin-api.js.map +94 -0
  89. package/openclaw.plugin.json +231 -16
  90. package/package.json +53 -18
@@ -8,13 +8,47 @@ export type ResolvedInlineAccount = {
8
8
  baseUrl: string | null;
9
9
  token: string | null;
10
10
  tokenFile: string | null;
11
+ tokenSource: "config" | "env" | "file" | "none";
12
+ tokenConfigured: boolean;
13
+ reactionNotifications: InlineRuntimeConfig["reactionNotifications"];
14
+ reactionAllowlist: InlineRuntimeConfig["reactionAllowlist"];
11
15
  config: InlineRuntimeConfig;
12
16
  };
13
- export declare function listInlineAccountIds(cfg: OpenClawConfig): string[];
17
+ export type InlineCredentialStatus = "available" | "configured_unavailable" | "missing";
18
+ export type InspectedInlineAccount = {
19
+ accountId: string;
20
+ name: string;
21
+ enabled: boolean;
22
+ configured: boolean;
23
+ baseUrl: string | null;
24
+ token: string | null;
25
+ tokenFile: string | null;
26
+ tokenSource: "config" | "env" | "file" | "none";
27
+ tokenStatus: InlineCredentialStatus;
28
+ tokenConfigured: boolean;
29
+ config: InlineRuntimeConfig;
30
+ };
31
+ export declare function resolveInlineEnvToken(env?: NodeJS.ProcessEnv): string | null;
32
+ export declare function listInlineAccountIds(cfg: OpenClawConfig, env?: NodeJS.ProcessEnv): string[];
14
33
  export declare function resolveDefaultInlineAccountId(cfg: OpenClawConfig): string;
15
34
  export declare function resolveInlineAccount(params: {
16
35
  cfg: OpenClawConfig;
17
36
  accountId?: string | null;
37
+ env?: NodeJS.ProcessEnv;
18
38
  }): ResolvedInlineAccount;
39
+ export declare function inspectInlineAccount(params: {
40
+ cfg: OpenClawConfig;
41
+ accountId?: string | null;
42
+ env?: NodeJS.ProcessEnv;
43
+ }): InspectedInlineAccount;
44
+ export declare function findInlineTokenOwnerAccountId(params: {
45
+ cfg: OpenClawConfig;
46
+ accountId: string;
47
+ env?: NodeJS.ProcessEnv;
48
+ }): string | null;
49
+ export declare function formatDuplicateInlineTokenReason(params: {
50
+ accountId: string;
51
+ ownerAccountId: string;
52
+ }): string;
19
53
  export declare function resolveInlineToken(account: ResolvedInlineAccount): Promise<string>;
20
54
  //# sourceMappingURL=accounts.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"accounts.d.ts","sourceRoot":"","sources":["../../src/inline/accounts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAE9D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AAI7D,MAAM,MAAM,qBAAqB,GAAG;IAClC,SAAS,EAAE,MAAM,CAAA;IACjB,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,OAAO,CAAA;IAChB,UAAU,EAAE,OAAO,CAAA;IACnB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;IACtB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,MAAM,EAAE,mBAAmB,CAAA;CAC5B,CAAA;AAiBD,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,cAAc,GAAG,MAAM,EAAE,CAelE;AAED,wBAAgB,6BAA6B,CAAC,GAAG,EAAE,cAAc,GAAG,MAAM,CAIzE;AAED,wBAAgB,oBAAoB,CAAC,MAAM,EAAE;IAC3C,GAAG,EAAE,cAAc,CAAA;IACnB,SAAS,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BxF"}
@@ -1,24 +1,31 @@
1
- import type { ChannelMessageActionAdapter, ChannelMessageToolDiscovery } from "openclaw/plugin-sdk/channel-contract";
1
+ import type { ChannelMessageActionAdapter, ChannelMessageActionName, ChannelMessageToolDiscovery } from "openclaw/plugin-sdk/channel-contract";
2
2
  import type { OpenClawConfig } from "openclaw/plugin-sdk/core";
3
- declare function describeInlineMessageTool({ cfg, }: Parameters<NonNullable<ChannelMessageActionAdapter["describeMessageTool"]>>[0]): ChannelMessageToolDiscovery;
3
+ import { type MessageActions } from "@inline-chat/realtime-sdk";
4
+ export declare function resolveInlineMessageActionsParam(params: Record<string, unknown>): MessageActions | undefined;
5
+ export declare function supportsInlineMessageButtons(actions: readonly ChannelMessageActionName[]): boolean;
6
+ export declare function supportsInlineMessageButtonsForConfig(cfg: OpenClawConfig, accountId?: string | null): boolean;
7
+ export declare function supportsInlineReactionsForConfig(cfg: OpenClawConfig, accountId?: string | null): boolean;
8
+ declare function describeInlineMessageTool({ cfg, accountId, }: Parameters<NonNullable<ChannelMessageActionAdapter["describeMessageTool"]>>[0]): ChannelMessageToolDiscovery;
4
9
  export declare const inlineMessageActions: {
5
10
  describeMessageTool: typeof describeInlineMessageTool;
6
- listActions: ({ cfg }: {
11
+ listActions: ({ cfg, accountId }: {
7
12
  cfg: OpenClawConfig;
8
- }) => ("send" | "reply" | "reactions" | "read" | "search" | "edit" | "delete" | "permissions" | "timeout" | "broadcast" | "poll" | "poll-vote" | "react" | "unsend" | "sendWithEffect" | "renameGroup" | "setGroupIcon" | "addParticipant" | "removeParticipant" | "leaveGroup" | "sendAttachment" | "pin" | "unpin" | "list-pins" | "thread-create" | "thread-list" | "thread-reply" | "sticker" | "sticker-search" | "member-info" | "role-info" | "emoji-list" | "emoji-upload" | "sticker-upload" | "role-add" | "role-remove" | "channel-info" | "channel-list" | "channel-create" | "channel-edit" | "channel-delete" | "channel-move" | "category-create" | "category-edit" | "category-delete" | "topic-create" | "topic-edit" | "voice-status" | "event-list" | "event-create" | "kick" | "ban" | "set-profile" | "set-presence" | "download-file" | "upload-file")[];
9
- supportsButtons: ({ cfg }: {
13
+ accountId?: string | null;
14
+ }) => ("send" | "reply" | "reactions" | "read" | "search" | "edit" | "delete" | "permissions" | "broadcast" | "poll" | "poll-vote" | "react" | "unsend" | "sendWithEffect" | "renameGroup" | "setGroupIcon" | "addParticipant" | "removeParticipant" | "leaveGroup" | "sendAttachment" | "pin" | "unpin" | "list-pins" | "thread-create" | "thread-list" | "thread-reply" | "sticker" | "sticker-search" | "member-info" | "role-info" | "emoji-list" | "emoji-upload" | "sticker-upload" | "role-add" | "role-remove" | "channel-info" | "channel-list" | "channel-create" | "channel-edit" | "channel-delete" | "channel-move" | "category-create" | "category-edit" | "category-delete" | "topic-create" | "topic-edit" | "voice-status" | "event-list" | "event-create" | "timeout" | "kick" | "ban" | "set-profile" | "set-presence" | "download-file" | "upload-file")[];
15
+ supportsButtons: ({ cfg, accountId }: {
10
16
  cfg: OpenClawConfig;
17
+ accountId?: string | null;
11
18
  }) => boolean;
12
19
  supportsCards: () => false;
13
20
  supportsAction: ({ action }: {
14
- action: "send" | "reply" | "reactions" | "read" | "search" | "edit" | "delete" | "permissions" | "timeout" | "broadcast" | "poll" | "poll-vote" | "react" | "unsend" | "sendWithEffect" | "renameGroup" | "setGroupIcon" | "addParticipant" | "removeParticipant" | "leaveGroup" | "sendAttachment" | "pin" | "unpin" | "list-pins" | "thread-create" | "thread-list" | "thread-reply" | "sticker" | "sticker-search" | "member-info" | "role-info" | "emoji-list" | "emoji-upload" | "sticker-upload" | "role-add" | "role-remove" | "channel-info" | "channel-list" | "channel-create" | "channel-edit" | "channel-delete" | "channel-move" | "category-create" | "category-edit" | "category-delete" | "topic-create" | "topic-edit" | "voice-status" | "event-list" | "event-create" | "kick" | "ban" | "set-profile" | "set-presence" | "download-file" | "upload-file";
21
+ action: "send" | "reply" | "reactions" | "read" | "search" | "edit" | "delete" | "permissions" | "broadcast" | "poll" | "poll-vote" | "react" | "unsend" | "sendWithEffect" | "renameGroup" | "setGroupIcon" | "addParticipant" | "removeParticipant" | "leaveGroup" | "sendAttachment" | "pin" | "unpin" | "list-pins" | "thread-create" | "thread-list" | "thread-reply" | "sticker" | "sticker-search" | "member-info" | "role-info" | "emoji-list" | "emoji-upload" | "sticker-upload" | "role-add" | "role-remove" | "channel-info" | "channel-list" | "channel-create" | "channel-edit" | "channel-delete" | "channel-move" | "category-create" | "category-edit" | "category-delete" | "topic-create" | "topic-edit" | "voice-status" | "event-list" | "event-create" | "timeout" | "kick" | "ban" | "set-profile" | "set-presence" | "download-file" | "upload-file";
15
22
  }) => boolean;
16
23
  extractToolSend: ({ args }: {
17
24
  args: Record<string, unknown>;
18
25
  }) => {
19
26
  to: string;
20
27
  } | null;
21
- handleAction: ({ action, params, cfg, accountId, toolContext }: import("openclaw/plugin-sdk").ChannelMessageActionContext) => Promise<{
28
+ handleAction: ({ action, params, cfg, accountId, mediaAccess, mediaLocalRoots, mediaReadFile, toolContext, }: import("openclaw/plugin-sdk").ChannelMessageActionContext) => Promise<{
22
29
  content: {
23
30
  type: "text";
24
31
  text: string;
@@ -26,6 +33,6 @@ export declare const inlineMessageActions: {
26
33
  details: unknown;
27
34
  }>;
28
35
  };
29
- export declare const inlineSupportedActions: ("send" | "reply" | "reactions" | "read" | "search" | "edit" | "delete" | "permissions" | "timeout" | "broadcast" | "poll" | "poll-vote" | "react" | "unsend" | "sendWithEffect" | "renameGroup" | "setGroupIcon" | "addParticipant" | "removeParticipant" | "leaveGroup" | "sendAttachment" | "pin" | "unpin" | "list-pins" | "thread-create" | "thread-list" | "thread-reply" | "sticker" | "sticker-search" | "member-info" | "role-info" | "emoji-list" | "emoji-upload" | "sticker-upload" | "role-add" | "role-remove" | "channel-info" | "channel-list" | "channel-create" | "channel-edit" | "channel-delete" | "channel-move" | "category-create" | "category-edit" | "category-delete" | "topic-create" | "topic-edit" | "voice-status" | "event-list" | "event-create" | "kick" | "ban" | "set-profile" | "set-presence" | "download-file" | "upload-file")[];
36
+ export declare const inlineSupportedActions: ("send" | "reply" | "reactions" | "read" | "search" | "edit" | "delete" | "permissions" | "broadcast" | "poll" | "poll-vote" | "react" | "unsend" | "sendWithEffect" | "renameGroup" | "setGroupIcon" | "addParticipant" | "removeParticipant" | "leaveGroup" | "sendAttachment" | "pin" | "unpin" | "list-pins" | "thread-create" | "thread-list" | "thread-reply" | "sticker" | "sticker-search" | "member-info" | "role-info" | "emoji-list" | "emoji-upload" | "sticker-upload" | "role-add" | "role-remove" | "channel-info" | "channel-list" | "channel-create" | "channel-edit" | "channel-delete" | "channel-move" | "category-create" | "category-edit" | "category-delete" | "topic-create" | "topic-edit" | "voice-status" | "event-list" | "event-create" | "timeout" | "kick" | "ban" | "set-profile" | "set-presence" | "download-file" | "upload-file")[];
30
37
  export {};
31
38
  //# sourceMappingURL=actions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../src/inline/actions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,2BAA2B,EAE3B,2BAA2B,EAE5B,MAAM,sCAAsC,CAAA;AAO7C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AA65B9D,iBAAS,yBAAyB,CAAC,EACjC,GAAG,GACJ,EAAE,UAAU,CAAC,WAAW,CAAC,2BAA2B,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,2BAA2B,CA2B9G;AAyBD,eAAO,MAAM,oBAAoB;;2BAER;QAAE,GAAG,EAAE,cAAc,CAAA;KAAE;+BACnB;QAAE,GAAG,EAAE,cAAc,CAAA;KAAE;;;;;;;;;;;;;;;;;CAglCsB,CAAA;AAE1E,eAAO,MAAM,sBAAsB,00BAAmB,CAAA"}
1
+ {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../src/inline/actions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,2BAA2B,EAC3B,wBAAwB,EACxB,2BAA2B,EAE5B,MAAM,sCAAsC,CAAA;AAO7C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAC9D,OAAO,EAML,KAAK,cAAc,EAEpB,MAAM,2BAA2B,CAAA;AA6PlC,wBAAgB,gCAAgC,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,cAAc,GAAG,SAAS,CA4B5G;AA6qBD,wBAAgB,4BAA4B,CAAC,OAAO,EAAE,SAAS,wBAAwB,EAAE,GAAG,OAAO,CAElG;AAyBD,wBAAgB,qCAAqC,CACnD,GAAG,EAAE,cAAc,EACnB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,GACxB,OAAO,CAET;AAED,wBAAgB,gCAAgC,CAC9C,GAAG,EAAE,cAAc,EACnB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,GACxB,OAAO,CAET;AAED,iBAAS,yBAAyB,CAAC,EACjC,GAAG,EACH,SAAS,GACV,EAAE,UAAU,CAAC,WAAW,CAAC,2BAA2B,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,2BAA2B,CA2B9G;AAyBD,eAAO,MAAM,oBAAoB;;sCAEG;QAAE,GAAG,EAAE,cAAc,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE;0CAE9C;QAAE,GAAG,EAAE,cAAc,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE;;;;;;;;;;;;;;;;;CA6mChB,CAAA;AAE1E,eAAO,MAAM,sBAAsB,00BAAmB,CAAA"}
@@ -0,0 +1,28 @@
1
+ import { InlineSdkClient, type InputPeer, type MessageActions } from "@inline-chat/realtime-sdk";
2
+ type InlinePendingDelivery = {
3
+ text: string;
4
+ actions?: MessageActions;
5
+ };
6
+ type InlineApprovalSendTarget = {
7
+ chatId: bigint;
8
+ } | {
9
+ userId: bigint;
10
+ };
11
+ type InlinePreparedTarget = {
12
+ sendTarget: InlineApprovalSendTarget;
13
+ peerId: InputPeer;
14
+ typingChatId?: bigint;
15
+ };
16
+ type InlinePendingApproval = {
17
+ messageId: bigint;
18
+ peerId: InputPeer;
19
+ text: string;
20
+ parseMarkdown: boolean;
21
+ };
22
+ export type InlineApprovalHandlerContext = {
23
+ client: InlineSdkClient;
24
+ parseMarkdown?: boolean;
25
+ };
26
+ export declare const inlineApprovalNativeRuntime: import("openclaw/plugin-sdk/approval-handler-runtime").ChannelApprovalNativeRuntimeAdapter<InlinePendingDelivery, InlinePreparedTarget, InlinePendingApproval, never, unknown>;
27
+ export {};
28
+ //# sourceMappingURL=approval-handler.runtime.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"approval-handler.runtime.d.ts","sourceRoot":"","sources":["../../src/inline/approval-handler.runtime.ts"],"names":[],"mappings":"AAgBA,OAAO,EACL,eAAe,EAEf,KAAK,SAAS,EACd,KAAK,cAAc,EACpB,MAAM,2BAA2B,CAAA;AAYlC,KAAK,qBAAqB,GAAG;IAC3B,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,CAAC,EAAE,cAAc,CAAA;CACzB,CAAA;AACD,KAAK,wBAAwB,GAAG;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,CAAA;AACvE,KAAK,oBAAoB,GAAG;IAC1B,UAAU,EAAE,wBAAwB,CAAA;IACpC,MAAM,EAAE,SAAS,CAAA;IACjB,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB,CAAA;AACD,KAAK,qBAAqB,GAAG;IAC3B,SAAS,EAAE,MAAM,CAAA;IACjB,MAAM,EAAE,SAAS,CAAA;IACjB,IAAI,EAAE,MAAM,CAAA;IACZ,aAAa,EAAE,OAAO,CAAA;CACvB,CAAA;AAOD,MAAM,MAAM,4BAA4B,GAAG;IACzC,MAAM,EAAE,eAAe,CAAA;IACvB,aAAa,CAAC,EAAE,OAAO,CAAA;CACxB,CAAA;AA6HD,eAAO,MAAM,2BAA2B,gLAkItC,CAAA"}
@@ -0,0 +1,22 @@
1
+ import type { ExecApprovalRequest } from "openclaw/plugin-sdk/approval-runtime";
2
+ import type { ChannelApprovalCapability } from "openclaw/plugin-sdk/channel-contract";
3
+ import type { ReplyPayload } from "openclaw/plugin-sdk/reply-runtime";
4
+ export declare function buildInlineExecApprovalPendingPayload(params: {
5
+ request: ExecApprovalRequest;
6
+ nowMs: number;
7
+ }): ReplyPayload;
8
+ export declare const inlineApprovalCapability: ChannelApprovalCapability;
9
+ export declare const inlineNativeApprovalAdapter: {
10
+ auth: {
11
+ authorizeActorAction?: ChannelApprovalCapability["authorizeActorAction"];
12
+ getActionAvailabilityState?: ChannelApprovalCapability["getActionAvailabilityState"];
13
+ getExecInitiatingSurfaceState?: ChannelApprovalCapability["getExecInitiatingSurfaceState"];
14
+ resolveApproveCommandBehavior?: ChannelApprovalCapability["resolveApproveCommandBehavior"];
15
+ };
16
+ delivery: ChannelApprovalCapability["delivery"];
17
+ nativeRuntime: ChannelApprovalCapability["nativeRuntime"];
18
+ render: ChannelApprovalCapability["render"];
19
+ native: ChannelApprovalCapability["native"];
20
+ describeExecApprovalSetup: ChannelApprovalCapability["describeExecApprovalSetup"];
21
+ };
22
+ //# sourceMappingURL=approval-native.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"approval-native.d.ts","sourceRoot":"","sources":["../../src/inline/approval-native.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EACV,mBAAmB,EAEpB,MAAM,sCAAsC,CAAA;AAC7C,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,sCAAsC,CAAA;AAGrF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAA;AAmPrE,wBAAgB,qCAAqC,CAAC,MAAM,EAAE;IAC5D,OAAO,EAAE,mBAAmB,CAAA;IAC5B,KAAK,EAAE,MAAM,CAAA;CACd,GAAG,YAAY,CAiBf;AAED,eAAO,MAAM,wBAAwB,EAAE,yBAGtC,CAAA;AAED,eAAO,MAAM,2BAA2B;;4BApKrC,CAAC;kCAGF,CAAC;qCAGkC,CAAC;qCAO1B,CAAC;;;;;;;CAyJZ,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"bot-commands-sync.d.ts","sourceRoot":"","sources":["../../src/inline/bot-commands-sync.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAmC9D,KAAK,wBAAwB,GAAG;IAC9B,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAA;IAChC,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAA;CACjC,CAAA;AAyBD,wBAAgB,8BAA8B,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAM3E;AAgDD,wBAAsB,wBAAwB,CAAC,MAAM,EAAE;IACrD,GAAG,EAAE,cAAc,CAAA;IACnB,MAAM,CAAC,EAAE,wBAAwB,CAAA;CAClC,GAAG,OAAO,CAAC;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC,CAkEjE"}
1
+ {"version":3,"file":"bot-commands-sync.d.ts","sourceRoot":"","sources":["../../src/inline/bot-commands-sync.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAe9D,KAAK,wBAAwB,GAAG;IAC9B,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAA;IAChC,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAA;CACjC,CAAA;AAqCD,wBAAgB,8BAA8B,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAM3E;AAgDD,wBAAsB,wBAAwB,CAAC,MAAM,EAAE;IACrD,GAAG,EAAE,cAAc,CAAA;IACnB,MAAM,CAAC,EAAE,wBAAwB,CAAA;CAClC,GAAG,OAAO,CAAC;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC,CAqFjE"}
@@ -1 +1 @@
1
- {"version":3,"file":"bot-commands-tool.d.ts","sourceRoot":"","sources":["../../src/inline/bot-commands-tool.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAmH5E,wBAAgB,2BAA2B,CAAC,GAAG,EAAE;IAC/C,MAAM,CAAC,EAAE,cAAc,CAAA;IACvB,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB,GAAG,YAAY,GAAG,IAAI,CA2EtB"}
1
+ {"version":3,"file":"bot-commands-tool.d.ts","sourceRoot":"","sources":["../../src/inline/bot-commands-tool.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AA0H5E,wBAAgB,2BAA2B,CAAC,GAAG,EAAE;IAC/C,MAAM,CAAC,EAAE,cAAc,CAAA;IACvB,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB,GAAG,YAAY,GAAG,IAAI,CA2EtB"}
@@ -1,4 +1,4 @@
1
- import type { ChannelPlugin } from "openclaw/plugin-sdk/core";
1
+ import { type ChannelPlugin } from "openclaw/plugin-sdk/core";
2
2
  import { type ResolvedInlineAccount } from "./accounts.js";
3
3
  export declare const inlineChannelPlugin: ChannelPlugin<ResolvedInlineAccount>;
4
4
  //# sourceMappingURL=channel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"channel.d.ts","sourceRoot":"","sources":["../../src/inline/channel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAkB,MAAM,0BAA0B,CAAA;AAS7E,OAAO,EAKL,KAAK,qBAAqB,EAC3B,MAAM,eAAe,CAAA;AAyuBtB,eAAO,MAAM,mBAAmB,EAAE,aAAa,CAAC,qBAAqB,CAomBpE,CAAA"}
1
+ {"version":3,"file":"channel.d.ts","sourceRoot":"","sources":["../../src/inline/channel.ts"],"names":[],"mappings":"AAEA,OAAO,EAGL,KAAK,aAAa,EAEnB,MAAM,0BAA0B,CAAA;AAmBjC,OAAO,EAQL,KAAK,qBAAqB,EAC3B,MAAM,eAAe,CAAA;AAuuCtB,eAAO,MAAM,mBAAmB,EAAE,aAAa,CAAC,qBAAqB,CAylBpE,CAAA"}
@@ -0,0 +1,43 @@
1
+ import type { ReplyPayload } from "openclaw/plugin-sdk/reply-payload";
2
+ export type InlineReplyMarkupButton = {
3
+ text: string;
4
+ callback_data: string;
5
+ };
6
+ type InlineChannelData = ReplyPayload["channelData"];
7
+ type ProviderInfo = {
8
+ id: string;
9
+ count: number;
10
+ };
11
+ export declare function parseInlineCommandsPageCallback(raw: string | undefined): {
12
+ page: number | "noop";
13
+ agentId?: string;
14
+ } | null;
15
+ export declare function buildInlineCommandsListChannelData(params: {
16
+ currentPage: number;
17
+ totalPages: number;
18
+ agentId?: string;
19
+ }): InlineChannelData | null;
20
+ export declare function buildInlineModelProviderButtons(providers: ProviderInfo[]): InlineReplyMarkupButton[][];
21
+ export declare function buildInlineModelsMenuChannelData(params: {
22
+ providers: ProviderInfo[];
23
+ }): InlineChannelData | null;
24
+ export declare function buildInlineModelsProviderChannelData(params: {
25
+ providers: ProviderInfo[];
26
+ }): InlineChannelData | null;
27
+ export declare function buildInlineModelsAddProviderChannelData(params: {
28
+ providers: Array<{
29
+ id: string;
30
+ }>;
31
+ }): InlineChannelData | null;
32
+ export declare function buildInlineModelsListChannelData(params: {
33
+ provider: string;
34
+ models: readonly string[];
35
+ currentModel?: string;
36
+ currentPage: number;
37
+ totalPages: number;
38
+ pageSize?: number;
39
+ modelNames?: ReadonlyMap<string, string>;
40
+ }): InlineChannelData | null;
41
+ export declare function buildInlineModelBrowseChannelData(): InlineChannelData;
42
+ export {};
43
+ //# sourceMappingURL=command-ui.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"command-ui.d.ts","sourceRoot":"","sources":["../../src/inline/command-ui.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAA;AAGrE,MAAM,MAAM,uBAAuB,GAAG;IACpC,IAAI,EAAE,MAAM,CAAA;IACZ,aAAa,EAAE,MAAM,CAAA;CACtB,CAAA;AAED,KAAK,iBAAiB,GAAG,YAAY,CAAC,aAAa,CAAC,CAAA;AAEpD,KAAK,YAAY,GAAG;IAClB,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAuDD,wBAAgB,+BAA+B,CAC7C,GAAG,EAAE,MAAM,GAAG,SAAS,GACtB;IAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAgBpD;AAED,wBAAgB,kCAAkC,CAAC,MAAM,EAAE;IACzD,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,EAAE,MAAM,CAAA;IAClB,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB,GAAG,iBAAiB,GAAG,IAAI,CAG3B;AAED,wBAAgB,+BAA+B,CAC7C,SAAS,EAAE,YAAY,EAAE,GACxB,uBAAuB,EAAE,EAAE,CAY7B;AAED,wBAAgB,gCAAgC,CAAC,MAAM,EAAE;IACvD,SAAS,EAAE,YAAY,EAAE,CAAA;CAC1B,GAAG,iBAAiB,GAAG,IAAI,CAG3B;AAED,wBAAgB,oCAAoC,CAAC,MAAM,EAAE;IAC3D,SAAS,EAAE,YAAY,EAAE,CAAA;CAC1B,GAAG,iBAAiB,GAAG,IAAI,CAE3B;AAED,wBAAgB,uCAAuC,CAAC,MAAM,EAAE;IAC9D,SAAS,EAAE,KAAK,CAAC;QAAE,EAAE,EAAE,MAAM,CAA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