@theokit/gateway 0.19.0 → 0.20.0
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/CHANGELOG.md +7 -0
- package/README.md +45 -0
- package/dist/index.cjs +313 -73
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +95 -1
- package/dist/index.d.ts +95 -1
- package/dist/index.js +309 -74
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1122,6 +1122,8 @@ interface ChannelConfigField {
|
|
|
1122
1122
|
readonly secret: boolean;
|
|
1123
1123
|
/** What the field is, for a human configuring the channel. */
|
|
1124
1124
|
readonly description: string;
|
|
1125
|
+
/** Variable name without the app prefix, e.g. `"TELEGRAM_TOKEN"`. Read by `configFromEnv`. */
|
|
1126
|
+
readonly env?: string;
|
|
1125
1127
|
}
|
|
1126
1128
|
/** A webhook request as the app's HTTP layer received it, before anything parsed the body. */
|
|
1127
1129
|
interface WebhookRequest {
|
|
@@ -1195,6 +1197,11 @@ interface ChannelDescriptorBase<TAdapter extends BasePlatformAdapter> {
|
|
|
1195
1197
|
* authenticated (fail closed); it is optional only so descriptors in other packages keep compiling.
|
|
1196
1198
|
*/
|
|
1197
1199
|
readonly senderIdentity?: SenderIdentity;
|
|
1200
|
+
/**
|
|
1201
|
+
* Alternative config shapes for the same platform (for example WhatsApp cloud versus baileys),
|
|
1202
|
+
* chosen by name with `selectVariant`. Each variant reports the parent's `platform`.
|
|
1203
|
+
*/
|
|
1204
|
+
readonly variants?: Readonly<Record<string, ChannelDescriptor>>;
|
|
1198
1205
|
}
|
|
1199
1206
|
/**
|
|
1200
1207
|
* A channel described as data. A `socket` channel opens its own connection to the platform; a
|
|
@@ -1217,6 +1224,35 @@ type ChannelDescriptor<TAdapter extends BasePlatformAdapter = BasePlatformAdapte
|
|
|
1217
1224
|
*/
|
|
1218
1225
|
declare function isAuthenticatedSender(descriptor: ChannelDescriptor): boolean;
|
|
1219
1226
|
|
|
1227
|
+
/**
|
|
1228
|
+
* `configFromEnv` and `selectVariant`: bind a channel descriptor's config fields to environment
|
|
1229
|
+
* variables, and pick one of a platform's config shapes.
|
|
1230
|
+
*
|
|
1231
|
+
* @public
|
|
1232
|
+
*/
|
|
1233
|
+
|
|
1234
|
+
/** What `configFromEnv` read from the environment. Holds secret values: never log it whole. */
|
|
1235
|
+
interface EnvConfig {
|
|
1236
|
+
/** Trimmed, non-empty values by config key. */
|
|
1237
|
+
readonly config: Readonly<Record<string, string>>;
|
|
1238
|
+
/** Full variable names of required fields that are unset, empty or whitespace. */
|
|
1239
|
+
readonly missing: readonly string[];
|
|
1240
|
+
/** Values of present fields marked secret, for a log mask. Never logged. */
|
|
1241
|
+
readonly secrets: readonly string[];
|
|
1242
|
+
}
|
|
1243
|
+
/**
|
|
1244
|
+
* Read a descriptor's fields from `env`, using `prefix + field.env` as the variable name. Fields
|
|
1245
|
+
* without `env` are skipped.
|
|
1246
|
+
*/
|
|
1247
|
+
declare function configFromEnv(descriptor: ChannelDescriptor, env: Readonly<Record<string, string | undefined>>, prefix?: string): EnvConfig;
|
|
1248
|
+
/**
|
|
1249
|
+
* The descriptor to use for `name`: the descriptor itself when `name` is undefined and it has no
|
|
1250
|
+
* variants, otherwise the named variant. Throws `unknown_channel_variant` for a name that is not a
|
|
1251
|
+
* variant (or a missing name when variants exist) and `platform_mismatch` for a variant whose
|
|
1252
|
+
* platform differs from its parent's.
|
|
1253
|
+
*/
|
|
1254
|
+
declare function selectVariant(descriptor: ChannelDescriptor, name: string | undefined): ChannelDescriptor;
|
|
1255
|
+
|
|
1220
1256
|
/**
|
|
1221
1257
|
* `GatewayConfigurationError` — shared base for per-adapter configuration
|
|
1222
1258
|
* errors (roadmap M0/M2).
|
|
@@ -1388,6 +1424,35 @@ declare class GatewayLifecycleError extends Error {
|
|
|
1388
1424
|
constructor(opts: GatewayLifecycleErrorOptions);
|
|
1389
1425
|
}
|
|
1390
1426
|
|
|
1427
|
+
/**
|
|
1428
|
+
* File-backed pairing store: senders approved by an owner are kept in `pairing.json`.
|
|
1429
|
+
* Pending codes live in memory for one hour.
|
|
1430
|
+
*
|
|
1431
|
+
* @public
|
|
1432
|
+
*/
|
|
1433
|
+
/** Pairing store used by the access policy hook. */
|
|
1434
|
+
interface PairingStore {
|
|
1435
|
+
/** A 6-digit code for the sender; the same code while one is pending. */
|
|
1436
|
+
issue(platform: string, senderId: string): string;
|
|
1437
|
+
approve(code: string): Promise<{
|
|
1438
|
+
ok: true;
|
|
1439
|
+
platform: string;
|
|
1440
|
+
senderId: string;
|
|
1441
|
+
} | {
|
|
1442
|
+
ok: false;
|
|
1443
|
+
reason: "unknown_or_expired" | "write_failed";
|
|
1444
|
+
}>;
|
|
1445
|
+
isPaired(platform: string, senderId: string): boolean;
|
|
1446
|
+
}
|
|
1447
|
+
/** `<platform>:<senderId>`; email ids compare case-insensitively. */
|
|
1448
|
+
declare function senderKey(platform: string, senderId: string): string;
|
|
1449
|
+
/** Creates a store persisted in `<dir>/pairing.json` (mode 0600). */
|
|
1450
|
+
declare function createFilePairingStore(options: {
|
|
1451
|
+
dir: string;
|
|
1452
|
+
clock?: () => number;
|
|
1453
|
+
random?: (min: number, max: number) => number;
|
|
1454
|
+
}): PairingStore;
|
|
1455
|
+
|
|
1391
1456
|
/**
|
|
1392
1457
|
* Gateway hooks — own contract, not a `Plugin.kind` extension
|
|
1393
1458
|
* (T4.1, ADRs D176, D177).
|
|
@@ -1439,6 +1504,35 @@ interface GatewayHook {
|
|
|
1439
1504
|
on_error?(ctx: OnErrorContext): Promise<void> | void;
|
|
1440
1505
|
}
|
|
1441
1506
|
|
|
1507
|
+
/**
|
|
1508
|
+
* Access policy hook: who may talk to the agent, with sender pairing.
|
|
1509
|
+
*
|
|
1510
|
+
* @public
|
|
1511
|
+
*/
|
|
1512
|
+
|
|
1513
|
+
type DmPolicy = "pairing" | "allowlist" | "open" | "disabled";
|
|
1514
|
+
/** Options for {@link createAccessPolicyHook}. */
|
|
1515
|
+
interface AccessPolicyOptions {
|
|
1516
|
+
/** `<platform>:<senderId>` keys. */
|
|
1517
|
+
readonly owners: ReadonlySet<string>;
|
|
1518
|
+
readonly allowed?: ReadonlySet<string>;
|
|
1519
|
+
readonly dm: DmPolicy;
|
|
1520
|
+
/** Group messages from non-members: "silent" (default) or "open". */
|
|
1521
|
+
readonly groups?: "silent" | "open";
|
|
1522
|
+
/** Which platforms authenticate the sender. */
|
|
1523
|
+
readonly isAuthenticated: (platform: PlatformName) => boolean;
|
|
1524
|
+
/** Required when dm is "pairing". */
|
|
1525
|
+
readonly pairing?: PairingStore;
|
|
1526
|
+
readonly refusalText?: string;
|
|
1527
|
+
readonly refusalIntervalMs?: number;
|
|
1528
|
+
/** Let a message through untouched. */
|
|
1529
|
+
readonly passThrough?: (event: MessageEvent) => boolean;
|
|
1530
|
+
readonly clock?: () => number;
|
|
1531
|
+
readonly write?: (line: string) => void;
|
|
1532
|
+
}
|
|
1533
|
+
/** Builds the `pre_inbound` access policy hook. */
|
|
1534
|
+
declare function createAccessPolicyHook(options: AccessPolicyOptions): GatewayHook;
|
|
1535
|
+
|
|
1442
1536
|
/**
|
|
1443
1537
|
* Chat command parsing and a single `pre_inbound` hook for many commands.
|
|
1444
1538
|
*
|
|
@@ -2252,4 +2346,4 @@ interface WebhookHandlerOptions {
|
|
|
2252
2346
|
*/
|
|
2253
2347
|
declare function createWebhookHandler(options: WebhookHandlerOptions): (request: Request) => Promise<Response>;
|
|
2254
2348
|
|
|
2255
|
-
export { type AdapterCapabilities, type AdapterState, type AgentBindingRule, type AgentBindings, type AgentBindingsOptions, type AgentIdStrategy, type BaseMessageEvent, BasePlatformAdapter, type BuiltChannel, type BuzzMessageEvent, CREDENTIAL_SHAPES, type ChannelConfigField, type ChannelDescriptor, type ChannelEntry, type ChannelRejection, type ChannelRendering, type ChannelWebhook, type ChatCommand, type ChunkByGraphemeOptions, type ChunkTextOptions, type ClickClackMessageEvent, type ConnectFailure, type CoveredShape, type CreateChannelsResult, DEFAULT_WEBHOOK_MAX_BYTES, type DeliveryRequest, DeliveryRouter, type DeliveryTarget, type DiscordMessageEvent, type EmailMessageEvent, type FeishuLarkMessageEvent, type FenceRegion, GatewayConfigurationError, type GatewayConfigurationErrorOptions, type GatewayContext, type GatewayHandler, type GatewayHook, GatewayLifecycleError, type GatewayLifecycleErrorOptions, GatewayRunner, type GatewayRunnerOptions, type GoogleChatMessageEvent, type HookDecision, HookExecutor, type HookName, type IMessageMessageEvent, type InboundAudio, type IngestResult, type IrcMessageEvent, type LineMessageEvent, type ListenableApp, type ListenerLike, type MatrixMessageEvent, type MattermostMessageEvent, type MediaUnderstandingOptions, type MessageEvent, type NextcloudTalkMessageEvent, type NostrMessageEvent, type OnErrorContext, type OutboundAttachment, type OutboundMessage, type ParsedChatCommand, type PlatformEventRegistry, type PlatformName, type PostOutboundContext, type PreInboundContext, type QQMessageEvent, type RaftMessageEvent, type RawBodyCaptureOptions, type RawBodyRequest, type ReconnectPolicy, type SMSMessageEvent, SeenIds, type SendResult, type SenderIdentity, SessionRouter, type SignalMessageEvent, type SlackMessageEvent, type StartResult, type SynologyChatMessageEvent, type TeamsMessageEvent, type TelegramMessageEvent, type TlonUrbitMessageEvent, type TwitchMessageEvent, type UncoveredShape, type WeChatMessageEvent, type WeComMessageEvent, type WebhookAnswer, type WebhookHandlerOptions, type WebhookRequest, WeixinAdapterBase, type WeixinAdapterConfig, type WeixinFetch, type WeixinSendRequest, type WeixinWebhookAnswer, type WhatsAppMessageEvent, type XMessageEvent, type XThreadTweet, type YuanbaoMessageEvent, type ZaloMessageEvent, type ZaloPersonalMessageEvent, bindingStrategy, channelRendering, chunkByGrapheme, chunkText, commandHook, createAgentBindings, createChannels, createWebhookHandler, defaultStrategy, helpText, isAuthenticatedSender, listenerLifecycle, loadPeer, maskSecrets, maskShapes, parseChatCommand, parseFlatXml, rawBodyCapture, redactSecrets, scanFences, splitKeepingRows, statusForDeliver, toDialect, withMediaUnderstanding };
|
|
2349
|
+
export { type AccessPolicyOptions, type AdapterCapabilities, type AdapterState, type AgentBindingRule, type AgentBindings, type AgentBindingsOptions, type AgentIdStrategy, type BaseMessageEvent, BasePlatformAdapter, type BuiltChannel, type BuzzMessageEvent, CREDENTIAL_SHAPES, type ChannelConfigField, type ChannelDescriptor, type ChannelEntry, type ChannelRejection, type ChannelRendering, type ChannelWebhook, type ChatCommand, type ChunkByGraphemeOptions, type ChunkTextOptions, type ClickClackMessageEvent, type ConnectFailure, type CoveredShape, type CreateChannelsResult, DEFAULT_WEBHOOK_MAX_BYTES, type DeliveryRequest, DeliveryRouter, type DeliveryTarget, type DiscordMessageEvent, type DmPolicy, type EmailMessageEvent, type EnvConfig, type FeishuLarkMessageEvent, type FenceRegion, GatewayConfigurationError, type GatewayConfigurationErrorOptions, type GatewayContext, type GatewayHandler, type GatewayHook, GatewayLifecycleError, type GatewayLifecycleErrorOptions, GatewayRunner, type GatewayRunnerOptions, type GoogleChatMessageEvent, type HookDecision, HookExecutor, type HookName, type IMessageMessageEvent, type InboundAudio, type IngestResult, type IrcMessageEvent, type LineMessageEvent, type ListenableApp, type ListenerLike, type MatrixMessageEvent, type MattermostMessageEvent, type MediaUnderstandingOptions, type MessageEvent, type NextcloudTalkMessageEvent, type NostrMessageEvent, type OnErrorContext, type OutboundAttachment, type OutboundMessage, type PairingStore, type ParsedChatCommand, type PlatformEventRegistry, type PlatformName, type PostOutboundContext, type PreInboundContext, type QQMessageEvent, type RaftMessageEvent, type RawBodyCaptureOptions, type RawBodyRequest, type ReconnectPolicy, type SMSMessageEvent, SeenIds, type SendResult, type SenderIdentity, SessionRouter, type SignalMessageEvent, type SlackMessageEvent, type StartResult, type SynologyChatMessageEvent, type TeamsMessageEvent, type TelegramMessageEvent, type TlonUrbitMessageEvent, type TwitchMessageEvent, type UncoveredShape, type WeChatMessageEvent, type WeComMessageEvent, type WebhookAnswer, type WebhookHandlerOptions, type WebhookRequest, WeixinAdapterBase, type WeixinAdapterConfig, type WeixinFetch, type WeixinSendRequest, type WeixinWebhookAnswer, type WhatsAppMessageEvent, type XMessageEvent, type XThreadTweet, type YuanbaoMessageEvent, type ZaloMessageEvent, type ZaloPersonalMessageEvent, bindingStrategy, channelRendering, chunkByGrapheme, chunkText, commandHook, configFromEnv, createAccessPolicyHook, createAgentBindings, createChannels, createFilePairingStore, createWebhookHandler, defaultStrategy, helpText, isAuthenticatedSender, listenerLifecycle, loadPeer, maskSecrets, maskShapes, parseChatCommand, parseFlatXml, rawBodyCapture, redactSecrets, scanFences, selectVariant, senderKey, splitKeepingRows, statusForDeliver, toDialect, withMediaUnderstanding };
|
package/dist/index.d.ts
CHANGED
|
@@ -1122,6 +1122,8 @@ interface ChannelConfigField {
|
|
|
1122
1122
|
readonly secret: boolean;
|
|
1123
1123
|
/** What the field is, for a human configuring the channel. */
|
|
1124
1124
|
readonly description: string;
|
|
1125
|
+
/** Variable name without the app prefix, e.g. `"TELEGRAM_TOKEN"`. Read by `configFromEnv`. */
|
|
1126
|
+
readonly env?: string;
|
|
1125
1127
|
}
|
|
1126
1128
|
/** A webhook request as the app's HTTP layer received it, before anything parsed the body. */
|
|
1127
1129
|
interface WebhookRequest {
|
|
@@ -1195,6 +1197,11 @@ interface ChannelDescriptorBase<TAdapter extends BasePlatformAdapter> {
|
|
|
1195
1197
|
* authenticated (fail closed); it is optional only so descriptors in other packages keep compiling.
|
|
1196
1198
|
*/
|
|
1197
1199
|
readonly senderIdentity?: SenderIdentity;
|
|
1200
|
+
/**
|
|
1201
|
+
* Alternative config shapes for the same platform (for example WhatsApp cloud versus baileys),
|
|
1202
|
+
* chosen by name with `selectVariant`. Each variant reports the parent's `platform`.
|
|
1203
|
+
*/
|
|
1204
|
+
readonly variants?: Readonly<Record<string, ChannelDescriptor>>;
|
|
1198
1205
|
}
|
|
1199
1206
|
/**
|
|
1200
1207
|
* A channel described as data. A `socket` channel opens its own connection to the platform; a
|
|
@@ -1217,6 +1224,35 @@ type ChannelDescriptor<TAdapter extends BasePlatformAdapter = BasePlatformAdapte
|
|
|
1217
1224
|
*/
|
|
1218
1225
|
declare function isAuthenticatedSender(descriptor: ChannelDescriptor): boolean;
|
|
1219
1226
|
|
|
1227
|
+
/**
|
|
1228
|
+
* `configFromEnv` and `selectVariant`: bind a channel descriptor's config fields to environment
|
|
1229
|
+
* variables, and pick one of a platform's config shapes.
|
|
1230
|
+
*
|
|
1231
|
+
* @public
|
|
1232
|
+
*/
|
|
1233
|
+
|
|
1234
|
+
/** What `configFromEnv` read from the environment. Holds secret values: never log it whole. */
|
|
1235
|
+
interface EnvConfig {
|
|
1236
|
+
/** Trimmed, non-empty values by config key. */
|
|
1237
|
+
readonly config: Readonly<Record<string, string>>;
|
|
1238
|
+
/** Full variable names of required fields that are unset, empty or whitespace. */
|
|
1239
|
+
readonly missing: readonly string[];
|
|
1240
|
+
/** Values of present fields marked secret, for a log mask. Never logged. */
|
|
1241
|
+
readonly secrets: readonly string[];
|
|
1242
|
+
}
|
|
1243
|
+
/**
|
|
1244
|
+
* Read a descriptor's fields from `env`, using `prefix + field.env` as the variable name. Fields
|
|
1245
|
+
* without `env` are skipped.
|
|
1246
|
+
*/
|
|
1247
|
+
declare function configFromEnv(descriptor: ChannelDescriptor, env: Readonly<Record<string, string | undefined>>, prefix?: string): EnvConfig;
|
|
1248
|
+
/**
|
|
1249
|
+
* The descriptor to use for `name`: the descriptor itself when `name` is undefined and it has no
|
|
1250
|
+
* variants, otherwise the named variant. Throws `unknown_channel_variant` for a name that is not a
|
|
1251
|
+
* variant (or a missing name when variants exist) and `platform_mismatch` for a variant whose
|
|
1252
|
+
* platform differs from its parent's.
|
|
1253
|
+
*/
|
|
1254
|
+
declare function selectVariant(descriptor: ChannelDescriptor, name: string | undefined): ChannelDescriptor;
|
|
1255
|
+
|
|
1220
1256
|
/**
|
|
1221
1257
|
* `GatewayConfigurationError` — shared base for per-adapter configuration
|
|
1222
1258
|
* errors (roadmap M0/M2).
|
|
@@ -1388,6 +1424,35 @@ declare class GatewayLifecycleError extends Error {
|
|
|
1388
1424
|
constructor(opts: GatewayLifecycleErrorOptions);
|
|
1389
1425
|
}
|
|
1390
1426
|
|
|
1427
|
+
/**
|
|
1428
|
+
* File-backed pairing store: senders approved by an owner are kept in `pairing.json`.
|
|
1429
|
+
* Pending codes live in memory for one hour.
|
|
1430
|
+
*
|
|
1431
|
+
* @public
|
|
1432
|
+
*/
|
|
1433
|
+
/** Pairing store used by the access policy hook. */
|
|
1434
|
+
interface PairingStore {
|
|
1435
|
+
/** A 6-digit code for the sender; the same code while one is pending. */
|
|
1436
|
+
issue(platform: string, senderId: string): string;
|
|
1437
|
+
approve(code: string): Promise<{
|
|
1438
|
+
ok: true;
|
|
1439
|
+
platform: string;
|
|
1440
|
+
senderId: string;
|
|
1441
|
+
} | {
|
|
1442
|
+
ok: false;
|
|
1443
|
+
reason: "unknown_or_expired" | "write_failed";
|
|
1444
|
+
}>;
|
|
1445
|
+
isPaired(platform: string, senderId: string): boolean;
|
|
1446
|
+
}
|
|
1447
|
+
/** `<platform>:<senderId>`; email ids compare case-insensitively. */
|
|
1448
|
+
declare function senderKey(platform: string, senderId: string): string;
|
|
1449
|
+
/** Creates a store persisted in `<dir>/pairing.json` (mode 0600). */
|
|
1450
|
+
declare function createFilePairingStore(options: {
|
|
1451
|
+
dir: string;
|
|
1452
|
+
clock?: () => number;
|
|
1453
|
+
random?: (min: number, max: number) => number;
|
|
1454
|
+
}): PairingStore;
|
|
1455
|
+
|
|
1391
1456
|
/**
|
|
1392
1457
|
* Gateway hooks — own contract, not a `Plugin.kind` extension
|
|
1393
1458
|
* (T4.1, ADRs D176, D177).
|
|
@@ -1439,6 +1504,35 @@ interface GatewayHook {
|
|
|
1439
1504
|
on_error?(ctx: OnErrorContext): Promise<void> | void;
|
|
1440
1505
|
}
|
|
1441
1506
|
|
|
1507
|
+
/**
|
|
1508
|
+
* Access policy hook: who may talk to the agent, with sender pairing.
|
|
1509
|
+
*
|
|
1510
|
+
* @public
|
|
1511
|
+
*/
|
|
1512
|
+
|
|
1513
|
+
type DmPolicy = "pairing" | "allowlist" | "open" | "disabled";
|
|
1514
|
+
/** Options for {@link createAccessPolicyHook}. */
|
|
1515
|
+
interface AccessPolicyOptions {
|
|
1516
|
+
/** `<platform>:<senderId>` keys. */
|
|
1517
|
+
readonly owners: ReadonlySet<string>;
|
|
1518
|
+
readonly allowed?: ReadonlySet<string>;
|
|
1519
|
+
readonly dm: DmPolicy;
|
|
1520
|
+
/** Group messages from non-members: "silent" (default) or "open". */
|
|
1521
|
+
readonly groups?: "silent" | "open";
|
|
1522
|
+
/** Which platforms authenticate the sender. */
|
|
1523
|
+
readonly isAuthenticated: (platform: PlatformName) => boolean;
|
|
1524
|
+
/** Required when dm is "pairing". */
|
|
1525
|
+
readonly pairing?: PairingStore;
|
|
1526
|
+
readonly refusalText?: string;
|
|
1527
|
+
readonly refusalIntervalMs?: number;
|
|
1528
|
+
/** Let a message through untouched. */
|
|
1529
|
+
readonly passThrough?: (event: MessageEvent) => boolean;
|
|
1530
|
+
readonly clock?: () => number;
|
|
1531
|
+
readonly write?: (line: string) => void;
|
|
1532
|
+
}
|
|
1533
|
+
/** Builds the `pre_inbound` access policy hook. */
|
|
1534
|
+
declare function createAccessPolicyHook(options: AccessPolicyOptions): GatewayHook;
|
|
1535
|
+
|
|
1442
1536
|
/**
|
|
1443
1537
|
* Chat command parsing and a single `pre_inbound` hook for many commands.
|
|
1444
1538
|
*
|
|
@@ -2252,4 +2346,4 @@ interface WebhookHandlerOptions {
|
|
|
2252
2346
|
*/
|
|
2253
2347
|
declare function createWebhookHandler(options: WebhookHandlerOptions): (request: Request) => Promise<Response>;
|
|
2254
2348
|
|
|
2255
|
-
export { type AdapterCapabilities, type AdapterState, type AgentBindingRule, type AgentBindings, type AgentBindingsOptions, type AgentIdStrategy, type BaseMessageEvent, BasePlatformAdapter, type BuiltChannel, type BuzzMessageEvent, CREDENTIAL_SHAPES, type ChannelConfigField, type ChannelDescriptor, type ChannelEntry, type ChannelRejection, type ChannelRendering, type ChannelWebhook, type ChatCommand, type ChunkByGraphemeOptions, type ChunkTextOptions, type ClickClackMessageEvent, type ConnectFailure, type CoveredShape, type CreateChannelsResult, DEFAULT_WEBHOOK_MAX_BYTES, type DeliveryRequest, DeliveryRouter, type DeliveryTarget, type DiscordMessageEvent, type EmailMessageEvent, type FeishuLarkMessageEvent, type FenceRegion, GatewayConfigurationError, type GatewayConfigurationErrorOptions, type GatewayContext, type GatewayHandler, type GatewayHook, GatewayLifecycleError, type GatewayLifecycleErrorOptions, GatewayRunner, type GatewayRunnerOptions, type GoogleChatMessageEvent, type HookDecision, HookExecutor, type HookName, type IMessageMessageEvent, type InboundAudio, type IngestResult, type IrcMessageEvent, type LineMessageEvent, type ListenableApp, type ListenerLike, type MatrixMessageEvent, type MattermostMessageEvent, type MediaUnderstandingOptions, type MessageEvent, type NextcloudTalkMessageEvent, type NostrMessageEvent, type OnErrorContext, type OutboundAttachment, type OutboundMessage, type ParsedChatCommand, type PlatformEventRegistry, type PlatformName, type PostOutboundContext, type PreInboundContext, type QQMessageEvent, type RaftMessageEvent, type RawBodyCaptureOptions, type RawBodyRequest, type ReconnectPolicy, type SMSMessageEvent, SeenIds, type SendResult, type SenderIdentity, SessionRouter, type SignalMessageEvent, type SlackMessageEvent, type StartResult, type SynologyChatMessageEvent, type TeamsMessageEvent, type TelegramMessageEvent, type TlonUrbitMessageEvent, type TwitchMessageEvent, type UncoveredShape, type WeChatMessageEvent, type WeComMessageEvent, type WebhookAnswer, type WebhookHandlerOptions, type WebhookRequest, WeixinAdapterBase, type WeixinAdapterConfig, type WeixinFetch, type WeixinSendRequest, type WeixinWebhookAnswer, type WhatsAppMessageEvent, type XMessageEvent, type XThreadTweet, type YuanbaoMessageEvent, type ZaloMessageEvent, type ZaloPersonalMessageEvent, bindingStrategy, channelRendering, chunkByGrapheme, chunkText, commandHook, createAgentBindings, createChannels, createWebhookHandler, defaultStrategy, helpText, isAuthenticatedSender, listenerLifecycle, loadPeer, maskSecrets, maskShapes, parseChatCommand, parseFlatXml, rawBodyCapture, redactSecrets, scanFences, splitKeepingRows, statusForDeliver, toDialect, withMediaUnderstanding };
|
|
2349
|
+
export { type AccessPolicyOptions, type AdapterCapabilities, type AdapterState, type AgentBindingRule, type AgentBindings, type AgentBindingsOptions, type AgentIdStrategy, type BaseMessageEvent, BasePlatformAdapter, type BuiltChannel, type BuzzMessageEvent, CREDENTIAL_SHAPES, type ChannelConfigField, type ChannelDescriptor, type ChannelEntry, type ChannelRejection, type ChannelRendering, type ChannelWebhook, type ChatCommand, type ChunkByGraphemeOptions, type ChunkTextOptions, type ClickClackMessageEvent, type ConnectFailure, type CoveredShape, type CreateChannelsResult, DEFAULT_WEBHOOK_MAX_BYTES, type DeliveryRequest, DeliveryRouter, type DeliveryTarget, type DiscordMessageEvent, type DmPolicy, type EmailMessageEvent, type EnvConfig, type FeishuLarkMessageEvent, type FenceRegion, GatewayConfigurationError, type GatewayConfigurationErrorOptions, type GatewayContext, type GatewayHandler, type GatewayHook, GatewayLifecycleError, type GatewayLifecycleErrorOptions, GatewayRunner, type GatewayRunnerOptions, type GoogleChatMessageEvent, type HookDecision, HookExecutor, type HookName, type IMessageMessageEvent, type InboundAudio, type IngestResult, type IrcMessageEvent, type LineMessageEvent, type ListenableApp, type ListenerLike, type MatrixMessageEvent, type MattermostMessageEvent, type MediaUnderstandingOptions, type MessageEvent, type NextcloudTalkMessageEvent, type NostrMessageEvent, type OnErrorContext, type OutboundAttachment, type OutboundMessage, type PairingStore, type ParsedChatCommand, type PlatformEventRegistry, type PlatformName, type PostOutboundContext, type PreInboundContext, type QQMessageEvent, type RaftMessageEvent, type RawBodyCaptureOptions, type RawBodyRequest, type ReconnectPolicy, type SMSMessageEvent, SeenIds, type SendResult, type SenderIdentity, SessionRouter, type SignalMessageEvent, type SlackMessageEvent, type StartResult, type SynologyChatMessageEvent, type TeamsMessageEvent, type TelegramMessageEvent, type TlonUrbitMessageEvent, type TwitchMessageEvent, type UncoveredShape, type WeChatMessageEvent, type WeComMessageEvent, type WebhookAnswer, type WebhookHandlerOptions, type WebhookRequest, WeixinAdapterBase, type WeixinAdapterConfig, type WeixinFetch, type WeixinSendRequest, type WeixinWebhookAnswer, type WhatsAppMessageEvent, type XMessageEvent, type XThreadTweet, type YuanbaoMessageEvent, type ZaloMessageEvent, type ZaloPersonalMessageEvent, bindingStrategy, channelRendering, chunkByGrapheme, chunkText, commandHook, configFromEnv, createAccessPolicyHook, createAgentBindings, createChannels, createFilePairingStore, createWebhookHandler, defaultStrategy, helpText, isAuthenticatedSender, listenerLifecycle, loadPeer, maskSecrets, maskShapes, parseChatCommand, parseFlatXml, rawBodyCapture, redactSecrets, scanFences, selectVariant, senderKey, splitKeepingRows, statusForDeliver, toDialect, withMediaUnderstanding };
|