-
Notifications
You must be signed in to change notification settings - Fork 2.8k
feat(messaging): add Zalo Bot API channel #5583
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
hunglp6d
wants to merge
12
commits into
main
Choose a base branch
from
feat/messaging-channel-zalo
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 4 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
27acce3
feat(messaging): add Zalo Bot API channel
hunglp6d 2f65584
feat(messaging): add docs for Zalo Bot API channel
hunglp6d a4f8be6
feat(messaging): biome-format channel test and stay within test-size …
hunglp6d 798a3af
Merge branch 'main' into feat/messaging-channel-zalo
hunglp6d bccd0be
feat(messaging): list Zalo in description-agent metadata docs
hunglp6d ac00c96
feat(messaging): integrate Zalo into channel manifest and compiler co…
hunglp6d 6909af3
feat(messaging): scope Zalo to OpenClaw in command reference and fron…
hunglp6d 45ffa2d
feat(messaging): cover channels add zalo preset ordering test
hunglp6d e88ccaa
feat(messaging): assert pinned OpenClaw Zalo plugin install spec test
hunglp6d 14a630c
feat(messaging): drop Zalo docs
hunglp6d e129caf
feat(messaging): keep Zalo compiler assertions test linear for if-gua…
hunglp6d a2b39a4
Merge branch 'main' into feat/messaging-channel-zalo
hunglp6d File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| # SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| preset: | ||
| name: zalo | ||
| description: "Zalo Bot API access (long-polling)" | ||
|
|
||
| network_policies: | ||
| zalo: | ||
| name: zalo | ||
| endpoints: | ||
| # Zalo Bot API. Long-polling (getUpdates) is GET; sending messages is POST. | ||
| # The bot.zaloplatforms.com portal is only used to create the bot, not at runtime. | ||
| - host: bot-api.zaloplatforms.com | ||
| port: 443 | ||
| protocol: rest | ||
| enforcement: enforce | ||
| rules: | ||
| - allow: { method: GET, path: "/**" } | ||
| - allow: { method: POST, path: "/**" } | ||
| binaries: | ||
| - { path: /usr/local/bin/node } | ||
| - { path: /usr/bin/node } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| // SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | ||
| // SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| import type { MessagingHookRegistration } from "../../../hooks/types"; | ||
| import type { OpenClawBridgeHealthHookOptions } from "../../openclaw-bridge-health"; | ||
| import { createZaloOpenClawBridgeHealthHookRegistration } from "./openclaw-bridge-health"; | ||
|
|
||
| export * from "./openclaw-bridge-health"; | ||
|
|
||
| export interface ZaloHookOptions { | ||
| readonly openclawBridgeHealth?: OpenClawBridgeHealthHookOptions; | ||
| } | ||
|
|
||
| export function createZaloHookRegistrations( | ||
| options: ZaloHookOptions = {}, | ||
| ): readonly MessagingHookRegistration[] { | ||
| return [createZaloOpenClawBridgeHealthHookRegistration(options.openclawBridgeHealth)] as const; | ||
| } |
23 changes: 23 additions & 0 deletions
23
src/lib/messaging/channels/zalo/hooks/openclaw-bridge-health.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| // SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | ||
| // SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| import { | ||
| createOpenClawBridgeHealthHookRegistration, | ||
| type OpenClawBridgeHealthHookOptions, | ||
| } from "../../openclaw-bridge-health"; | ||
|
|
||
| export type { OpenClawBridgeHealthHookOptions } from "../../openclaw-bridge-health"; | ||
|
|
||
| export const ZALO_OPENCLAW_BRIDGE_HEALTH_HOOK_HANDLER_ID = "zalo.openclawBridgeHealth"; | ||
|
|
||
| export function createZaloOpenClawBridgeHealthHookRegistration( | ||
| options: OpenClawBridgeHealthHookOptions = {}, | ||
| ) { | ||
| return createOpenClawBridgeHealthHookRegistration( | ||
| { | ||
| channelId: "zalo", | ||
| handlerId: ZALO_OPENCLAW_BRIDGE_HEALTH_HOOK_HANDLER_ID, | ||
| }, | ||
| options, | ||
| ); | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.