Index
All Classes and Interfaces|All Packages|Constant Field Values
A
- aesKey() - Method in record class io.agentscope.extensions.channel.dingtalk.DingTalkChannelProperties
-
Returns the value of the
aesKeyrecord component. - apiBase() - Method in record class io.agentscope.extensions.channel.dingtalk.DingTalkChannelProperties
-
Returns the value of the
apiBaserecord component. - appKey() - Method in record class io.agentscope.extensions.channel.dingtalk.DingTalkChannelProperties
-
Returns the value of the
appKeyrecord component. - appSecret() - Method in record class io.agentscope.extensions.channel.dingtalk.DingTalkChannelProperties
-
Returns the value of the
appSecretrecord component.
C
- channelId() - Method in class io.agentscope.extensions.channel.dingtalk.DingTalkChannel
- config() - Method in class io.agentscope.extensions.channel.dingtalk.DingTalkChannel
D
- decrypt(String) - Method in class io.agentscope.extensions.channel.dingtalk.DingTalkCallbackCrypto
-
Decrypts the
encryptbody field and returns the inner JSON payload as a UTF-8 string. - DEFAULT_API_BASE - Static variable in record class io.agentscope.extensions.channel.dingtalk.DingTalkChannelProperties
- DEFAULT_OAPI_BASE - Static variable in record class io.agentscope.extensions.channel.dingtalk.DingTalkChannelProperties
- DEFAULT_STREAM_REGISTER_URL - Static variable in record class io.agentscope.extensions.channel.dingtalk.DingTalkChannelProperties
- deliver(OutboundAddress, List<Msg>) - Method in class io.agentscope.extensions.channel.dingtalk.DingTalkChannel
- DingTalkAccessTokenProvider - Class in io.agentscope.extensions.channel.dingtalk
-
Fetches and caches a DingTalk OpenAPI
accessTokenfor oneappKey + appSecretpair. - DingTalkAccessTokenProvider(String, String, String) - Constructor for class io.agentscope.extensions.channel.dingtalk.DingTalkAccessTokenProvider
- DingTalkAccessTokenProvider(String, String, String, AccessTokenStore) - Constructor for class io.agentscope.extensions.channel.dingtalk.DingTalkAccessTokenProvider
-
Constructor variant that lets the application choose where the token is cached — for example a shared-storage
AccessTokenStoreso one refresh or invalidation serves all instances. - DingTalkCallbackController - Class in io.agentscope.extensions.channel.dingtalk
-
Handles inbound bot message delivery (POST) for DingTalk channels running in http callback mode.
- DingTalkCallbackController() - Constructor for class io.agentscope.extensions.channel.dingtalk.DingTalkCallbackController
- DingTalkCallbackCrypto - Class in io.agentscope.extensions.channel.dingtalk
-
Implements DingTalk's HTTP-callback request verification and optional body decryption for robot message reception.
- DingTalkCallbackCrypto(String, String) - Constructor for class io.agentscope.extensions.channel.dingtalk.DingTalkCallbackCrypto
- DingTalkChannel - Class in io.agentscope.extensions.channel.dingtalk
-
DingTalk (钉钉) channel adapter.
- DingTalkChannelProperties - Record Class in io.agentscope.extensions.channel.dingtalk
-
Configuration for a single DingTalk (钉钉) channel instance.
- DingTalkChannelProperties(String, String, String, String, String, String) - Constructor for record class io.agentscope.extensions.channel.dingtalk.DingTalkChannelProperties
-
Deprecated.
- DingTalkChannelProperties(String, String, String, String, String, String, String, String) - Constructor for record class io.agentscope.extensions.channel.dingtalk.DingTalkChannelProperties
-
Creates an instance of a
DingTalkChannelPropertiesrecord class. - DingTalkChannelRegistry - Class in io.agentscope.extensions.channel.dingtalk
-
Process-wide lookup table from
channelIdtoDingTalkChannelinstance. - DingTalkInboundMapper - Class in io.agentscope.extensions.channel.dingtalk
-
Parses a DingTalk bot-message payload (Stream topic
/v1.0/im/bot/messages/getor the HTTP callback body of the same protocol) into anInboundMessage. - DingTalkInboundMapper(String, String) - Constructor for class io.agentscope.extensions.channel.dingtalk.DingTalkInboundMapper
- DingTalkOutboundClient - Class in io.agentscope.extensions.channel.dingtalk
-
DingTalk outbound HTTP client.
- DingTalkOutboundClient(String, DingTalkAccessTokenProvider, String) - Constructor for class io.agentscope.extensions.channel.dingtalk.DingTalkOutboundClient
- DingTalkStreamClient - Class in io.agentscope.extensions.channel.dingtalk
-
DingTalk Stream client — opens a long-lived WebSocket to the DingTalk gateway, subscribes to the bot-messages topic, and dispatches inbound frames to a consumer.
- DingTalkStreamClient(DingTalkChannelProperties, Consumer<JsonNode>) - Constructor for class io.agentscope.extensions.channel.dingtalk.DingTalkStreamClient
- dispatch(InboundMessage) - Method in class io.agentscope.extensions.channel.dingtalk.DingTalkChannel
- dispatch(String, String, String, String) - Method in class io.agentscope.extensions.channel.dingtalk.DingTalkCallbackController
-
Inbound bot message.
E
- equals(Object) - Method in record class io.agentscope.extensions.channel.dingtalk.DingTalkChannelProperties
-
Indicates whether some other object is "equal to" this one.
- extractMsgId(JsonNode) - Static method in class io.agentscope.extensions.channel.dingtalk.DingTalkInboundMapper
-
Returns the
msgIdfield if present, used by the idempotency store.
F
- from(String, Map<String, Object>) - Static method in record class io.agentscope.extensions.channel.dingtalk.DingTalkChannelProperties
-
Reads a
DingTalkChannelPropertiesout of an arbitrary properties map. - fromProperties(String, ChannelConfig, Map<String, Object>) - Static method in class io.agentscope.extensions.channel.dingtalk.DingTalkChannel
-
Factory used by
ChannelFactory. - fromProperties(String, ChannelConfig, Map<String, Object>, InboundEventDeduplicator) - Static method in class io.agentscope.extensions.channel.dingtalk.DingTalkChannel
-
Factory variant that lets the application supply the
InboundEventDeduplicatorused to drop platform redeliveries — for example a shared-storage implementation so duplicates are recognized across instances. - fromProperties(String, ChannelConfig, Map<String, Object>, InboundEventDeduplicator, AccessTokenStore) - Static method in class io.agentscope.extensions.channel.dingtalk.DingTalkChannel
-
Factory variant that additionally lets the application supply the
AccessTokenStorecaching the outbound access token — for example a shared-storage implementation so one instance's refresh or invalidation serves the whole deployment.
G
- get(String) - Method in class io.agentscope.extensions.channel.dingtalk.DingTalkChannelRegistry
-
Returns the channel registered for
channelId, ornullif none.
H
- hasAesKey() - Method in class io.agentscope.extensions.channel.dingtalk.DingTalkCallbackCrypto
-
Returns whether this channel is configured with an
aesKey(encrypted callbacks). - hashCode() - Method in record class io.agentscope.extensions.channel.dingtalk.DingTalkChannelProperties
-
Returns a hash code value for this object.
I
- init(Gateway) - Method in class io.agentscope.extensions.channel.dingtalk.DingTalkChannel
- instance() - Static method in class io.agentscope.extensions.channel.dingtalk.DingTalkChannelRegistry
-
Returns the process-wide singleton instance.
- invalidate() - Method in class io.agentscope.extensions.channel.dingtalk.DingTalkAccessTokenProvider
-
Forces the next
DingTalkAccessTokenProvider.token()call to refresh. - io.agentscope.extensions.channel.dingtalk - package io.agentscope.extensions.channel.dingtalk
M
- map(JsonNode) - Method in class io.agentscope.extensions.channel.dingtalk.DingTalkInboundMapper
-
Builds an
InboundMessagefrom a DingTalk bot-message JSON payload. - mode() - Method in record class io.agentscope.extensions.channel.dingtalk.DingTalkChannelProperties
-
Returns the value of the
moderecord component. - MODE_HTTP - Static variable in record class io.agentscope.extensions.channel.dingtalk.DingTalkChannelProperties
-
Reception mode value: bot messages arrive as signed HTTP callbacks.
- MODE_STREAM - Static variable in record class io.agentscope.extensions.channel.dingtalk.DingTalkChannelProperties
-
Reception mode value: bot messages arrive over a persistent Stream WebSocket.
O
- oapiBase() - Method in record class io.agentscope.extensions.channel.dingtalk.DingTalkChannelProperties
-
Returns the value of the
oapiBaserecord component.
R
- register(DingTalkChannel) - Method in class io.agentscope.extensions.channel.dingtalk.DingTalkChannelRegistry
-
Registers a channel under its channel id.
- robotCode() - Method in record class io.agentscope.extensions.channel.dingtalk.DingTalkChannelProperties
-
Returns the value of the
robotCoderecord component.
S
- send(OutboundAddress, List<Msg>) - Method in class io.agentscope.extensions.channel.dingtalk.DingTalkOutboundClient
-
Sends each
msgto the resolved peer (address format"channelId:kind:peerId"). - start() - Method in class io.agentscope.extensions.channel.dingtalk.DingTalkChannel
- start() - Method in class io.agentscope.extensions.channel.dingtalk.DingTalkStreamClient
-
Starts the stream connection.
- stop() - Method in class io.agentscope.extensions.channel.dingtalk.DingTalkChannel
- stop() - Method in class io.agentscope.extensions.channel.dingtalk.DingTalkStreamClient
-
Stops the stream connection and releases resources.
- streamRegisterUrl() - Method in record class io.agentscope.extensions.channel.dingtalk.DingTalkChannelProperties
-
Returns the value of the
streamRegisterUrlrecord component.
T
- token() - Method in class io.agentscope.extensions.channel.dingtalk.DingTalkAccessTokenProvider
-
Returns a valid access token, refreshing in-band when the cached one is missing or close to expiring.
- toString() - Method in record class io.agentscope.extensions.channel.dingtalk.DingTalkChannelProperties
-
Returns a string representation of this record class.
- TYPE - Static variable in class io.agentscope.extensions.channel.dingtalk.DingTalkChannel
-
typevalue used inagentscope.jsonandChannelFactory.
U
- unregister(String, DingTalkChannel) - Method in class io.agentscope.extensions.channel.dingtalk.DingTalkChannelRegistry
-
Removes the registration for
channelIdonly when it currently maps toexpected, so a stale instance shutting down cannot detach a successor's registration.
V
- verify(String, String) - Method in class io.agentscope.extensions.channel.dingtalk.DingTalkCallbackCrypto
-
Verifies the
timestamp/signrequest headers of a callback: the timestamp must be a millisecond epoch no older thanDingTalkCallbackCrypto.MAX_TIMESTAMP_AGE_MSand no further ahead of local time thanDingTalkCallbackCrypto.MAX_FUTURE_TIMESTAMP_MS, andsignmust equalBase64(HmacSHA256(appSecret, timestamp + "\n" + appSecret)).
All Classes and Interfaces|All Packages|Constant Field Values
DingTalkChannelProperties.from(java.lang.String, java.util.Map<java.lang.String, java.lang.Object>)) so the reception mode is explicit