broods 0.42.0 → 0.43.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/dist/account.d.ts +63 -0
- package/dist/{chunk-p5134ra1.js → chunk-43d2rmnt.js} +8 -8
- package/dist/{chunk-t3g8jagy.js → chunk-44z8fx25.js} +8 -8
- package/dist/{chunk-7j1e8kv6.js → chunk-6tmp5hfh.js} +2 -2
- package/dist/{chunk-zbp92p62.js → chunk-8h6ctjyq.js} +4 -4
- package/dist/{chunk-ghv3v607.js → chunk-e1r3sjyg.js} +1 -1
- package/dist/{chunk-zj2wzjc6.js → chunk-f3e652yr.js} +1 -1
- package/dist/{chunk-m42xgkbk.js → chunk-gx4bgysk.js} +1 -1
- package/dist/{chunk-gerkxepr.js → chunk-r0kw4h6z.js} +1 -1
- package/dist/cli/index.js +18 -12
- package/dist/index.d.ts +165 -5
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -400,6 +400,7 @@ interface AgentChannelsConfig {
|
|
|
400
400
|
telegram?: AgentTelegramChannelConfig;
|
|
401
401
|
gchat?: AgentGoogleChatChannelConfig;
|
|
402
402
|
github?: AgentGitHubChannelConfig;
|
|
403
|
+
linear?: AgentLinearChannelConfig;
|
|
403
404
|
slack?: AgentSlackChannelConfig;
|
|
404
405
|
discord?: AgentDiscordChannelConfig;
|
|
405
406
|
pancake?: AgentPancakeChannelConfig;
|
|
@@ -407,6 +408,8 @@ interface AgentChannelsConfig {
|
|
|
407
408
|
twilio?: AgentTwilioChannelConfig;
|
|
408
409
|
zalo?: AgentZaloChannelConfig;
|
|
409
410
|
matrix?: AgentMatrixChannelConfig;
|
|
411
|
+
instagram?: AgentInstagramChannelConfig;
|
|
412
|
+
messenger?: AgentMessengerChannelConfig;
|
|
410
413
|
whatsapp?: AgentWhatsAppChannelConfig;
|
|
411
414
|
[key: string]: unknown;
|
|
412
415
|
}
|
|
@@ -456,6 +459,25 @@ interface AgentGitHubChannelConfig {
|
|
|
456
459
|
partition?: ChannelPartition;
|
|
457
460
|
[key: string]: unknown;
|
|
458
461
|
}
|
|
462
|
+
/**
|
|
463
|
+
* A Linear member the agent comments as, through that member's personal API
|
|
464
|
+
* key. The agent answers comments that mention `@userName` on issues, and
|
|
465
|
+
* `webhookSecret` checks every delivery.
|
|
466
|
+
*/
|
|
467
|
+
interface AgentLinearChannelConfig {
|
|
468
|
+
allowedChannelIds?: string[];
|
|
469
|
+
allowedUserIds?: string[];
|
|
470
|
+
id?: string;
|
|
471
|
+
apiKey?: string;
|
|
472
|
+
/** Linear GraphQL endpoint. Defaults to `https://api.linear.app/graphql`. */
|
|
473
|
+
apiUrl?: string;
|
|
474
|
+
/** The member's display name, e.g. `acme-agent`. `@acme-agent` addresses the agent. */
|
|
475
|
+
userName?: string;
|
|
476
|
+
webhookSecret?: string;
|
|
477
|
+
trace?: "enabled" | "disabled";
|
|
478
|
+
partition?: ChannelPartition;
|
|
479
|
+
[key: string]: unknown;
|
|
480
|
+
}
|
|
459
481
|
interface AgentSlackChannelConfig {
|
|
460
482
|
id?: string;
|
|
461
483
|
apiUrl?: string;
|
|
@@ -532,6 +554,47 @@ interface AgentZaloChannelConfig {
|
|
|
532
554
|
partition?: ChannelPartition;
|
|
533
555
|
[key: string]: unknown;
|
|
534
556
|
}
|
|
557
|
+
/**
|
|
558
|
+
* An Instagram professional account, reached through a Meta app with
|
|
559
|
+
* Instagram Login. `accountId` is the account the webhook entries name.
|
|
560
|
+
*/
|
|
561
|
+
interface AgentInstagramChannelConfig {
|
|
562
|
+
allowedChannelIds?: string[];
|
|
563
|
+
allowedUserIds?: string[];
|
|
564
|
+
id?: string;
|
|
565
|
+
/** Instagram user access token with `instagram_business_manage_messages`. */
|
|
566
|
+
accessToken?: string;
|
|
567
|
+
/** Instagram professional account id. */
|
|
568
|
+
accountId?: string;
|
|
569
|
+
/** Graph API version, e.g. `v26.0`. Defaults to the SDK's. */
|
|
570
|
+
apiVersion?: string;
|
|
571
|
+
/** Meta app secret; signs every webhook POST. */
|
|
572
|
+
appSecret?: string;
|
|
573
|
+
userName?: string;
|
|
574
|
+
/** The verify token typed into the Meta webhook settings. */
|
|
575
|
+
verifyToken?: string;
|
|
576
|
+
trace?: "enabled" | "disabled";
|
|
577
|
+
partition?: ChannelPartition;
|
|
578
|
+
[key: string]: unknown;
|
|
579
|
+
}
|
|
580
|
+
/** A Facebook Page the agent answers Messenger DMs for. */
|
|
581
|
+
interface AgentMessengerChannelConfig {
|
|
582
|
+
allowedChannelIds?: string[];
|
|
583
|
+
allowedUserIds?: string[];
|
|
584
|
+
id?: string;
|
|
585
|
+
/** Graph API version, e.g. `v21.0`. Defaults to the SDK's. */
|
|
586
|
+
apiVersion?: string;
|
|
587
|
+
/** Meta app secret; signs every webhook POST. */
|
|
588
|
+
appSecret?: string;
|
|
589
|
+
/** Page access token for the Page the app is subscribed to. */
|
|
590
|
+
pageAccessToken?: string;
|
|
591
|
+
userName?: string;
|
|
592
|
+
/** The verify token typed into the Meta webhook settings. */
|
|
593
|
+
verifyToken?: string;
|
|
594
|
+
trace?: "enabled" | "disabled";
|
|
595
|
+
partition?: ChannelPartition;
|
|
596
|
+
[key: string]: unknown;
|
|
597
|
+
}
|
|
535
598
|
/**
|
|
536
599
|
* A Google Chat app on the HTTP endpoint connection. It posts as the service
|
|
537
600
|
* account in `credentials`, and a webhook is accepted when its Google-signed
|
|
@@ -845,6 +908,22 @@ interface GitHubSource {
|
|
|
845
908
|
target: "issue" | "issue_comment" | "pull_request" | "pull_request_review_comment";
|
|
846
909
|
}
|
|
847
910
|
|
|
911
|
+
/**
|
|
912
|
+
* Linear channel adapter, for @-mentions in issue comments. The Chat SDK
|
|
913
|
+
* adapter is the transport: it posts the reply under the comment thread and
|
|
914
|
+
* reacts to the comment. The signature check is the Linear SDK's webhook
|
|
915
|
+
* client, the same one the adapter runs. There is no streaming: every edit of
|
|
916
|
+
* a Linear comment comes back as another webhook delivery.
|
|
917
|
+
*/
|
|
918
|
+
|
|
919
|
+
interface LinearSource {
|
|
920
|
+
/** The comment that mentioned the agent, where the reaction goes. */
|
|
921
|
+
commentId: string;
|
|
922
|
+
issueId: string;
|
|
923
|
+
/** `linear:{issueId}:c:{rootCommentId}`: the reply nests under the root comment. */
|
|
924
|
+
threadId: string;
|
|
925
|
+
}
|
|
926
|
+
|
|
848
927
|
/** Slack channel adapter. */
|
|
849
928
|
|
|
850
929
|
interface SlackSource {
|
|
@@ -989,6 +1068,45 @@ interface ZaloSource {
|
|
|
989
1068
|
date?: number;
|
|
990
1069
|
}
|
|
991
1070
|
|
|
1071
|
+
/**
|
|
1072
|
+
* What Messenger and Instagram share. Both deliver Meta Graph webhooks: a GET
|
|
1073
|
+
* subscription handshake answered with the verify token, an
|
|
1074
|
+
* `X-Hub-Signature-256` HMAC over every POST, and one envelope of batched
|
|
1075
|
+
* messaging events whose entries each name the Page or account they are for.
|
|
1076
|
+
* Both reply through a Chat SDK adapter used as transport only. Each channel
|
|
1077
|
+
* file builds its transport and names how the two differ.
|
|
1078
|
+
*/
|
|
1079
|
+
|
|
1080
|
+
/**
|
|
1081
|
+
* Where a Messenger or Instagram message came from. `recipientId` is the Page
|
|
1082
|
+
* or Instagram professional account that received it; `threadId` is the Chat
|
|
1083
|
+
* SDK thread the reply goes to.
|
|
1084
|
+
*/
|
|
1085
|
+
interface MetaSource {
|
|
1086
|
+
messageId: string;
|
|
1087
|
+
recipientId: string;
|
|
1088
|
+
senderId: string;
|
|
1089
|
+
threadId: string;
|
|
1090
|
+
}
|
|
1091
|
+
|
|
1092
|
+
/**
|
|
1093
|
+
* Instagram DM channel adapter, on the Instagram API with Instagram Login. The
|
|
1094
|
+
* Chat SDK adapter reads the message and posts the reply, media included; the
|
|
1095
|
+
* Meta webhook handshake, signature check and event walk are shared with
|
|
1096
|
+
* Messenger in `meta-channel.ts`.
|
|
1097
|
+
*/
|
|
1098
|
+
|
|
1099
|
+
type InstagramSource = MetaSource;
|
|
1100
|
+
|
|
1101
|
+
/**
|
|
1102
|
+
* Facebook Messenger channel adapter, on the Messenger Platform Send API. The
|
|
1103
|
+
* Chat SDK adapter reads the message, posts the reply and names the Page its
|
|
1104
|
+
* token belongs to; the Meta webhook handshake, signature check and event walk
|
|
1105
|
+
* are shared with Instagram in `meta-channel.ts`.
|
|
1106
|
+
*/
|
|
1107
|
+
|
|
1108
|
+
type MessengerSource = MetaSource;
|
|
1109
|
+
|
|
992
1110
|
/**
|
|
993
1111
|
* Canonical CLI manifest wire types, the single source of truth shared by the
|
|
994
1112
|
* backend (cliSync.ts, cliHttp.ts) and the SDK/CLI (packages/broods).
|
|
@@ -1453,7 +1571,7 @@ interface AgentReference<Name extends string = string> {
|
|
|
1453
1571
|
}
|
|
1454
1572
|
interface ChannelReference {
|
|
1455
1573
|
readonly kind: "channel";
|
|
1456
|
-
readonly type: "telegram" | "gchat" | "github" | "slack" | "discord" | "matrix" | "pancake" | "teams" | "twilio" | "zalo" | "whatsapp";
|
|
1574
|
+
readonly type: "telegram" | "gchat" | "github" | "linear" | "slack" | "discord" | "matrix" | "pancake" | "teams" | "twilio" | "zalo" | "whatsapp" | "instagram" | "messenger";
|
|
1457
1575
|
readonly agentName: string;
|
|
1458
1576
|
readonly agentId: string;
|
|
1459
1577
|
readonly accountId: string;
|
|
@@ -2305,7 +2423,7 @@ interface McpDefinitionConfig {
|
|
|
2305
2423
|
/** Tool names agents may use from this server; omit to allow all. */
|
|
2306
2424
|
allowedTools?: string[];
|
|
2307
2425
|
}
|
|
2308
|
-
type ChannelType = "telegram" | "gchat" | "github" | "slack" | "discord" | "matrix" | "pancake" | "teams" | "twilio" | "zalo" | "whatsapp";
|
|
2426
|
+
type ChannelType = "telegram" | "gchat" | "github" | "linear" | "slack" | "discord" | "matrix" | "pancake" | "teams" | "twilio" | "zalo" | "whatsapp" | "instagram" | "messenger";
|
|
2309
2427
|
/**
|
|
2310
2428
|
* A connection is one app install: the credentials an agent needs before a
|
|
2311
2429
|
* provider can reach it at all. Channels point at a connection; a connection
|
|
@@ -2346,6 +2464,7 @@ type ConnectionIdentityInput = {
|
|
|
2346
2464
|
type TelegramConnectionInput = EnvRefString<RequiredChannelKeys<Pick<AgentTelegramChannelConfig, "apiUrl" | "botToken" | "webhookSecret" | "botUsername" | "reactionEmoji">, "botToken" | "webhookSecret">> & ConnectionIdentityInput;
|
|
2347
2465
|
type GoogleChatConnectionInput = EnvRefString<RequiredChannelKeys<Pick<AgentGoogleChatChannelConfig, "credentials" | "endpointUrl" | "googleChatProjectNumber" | "userName" | "workspaceAddOnServiceAccountEmail">, "credentials">> & ConnectionIdentityInput;
|
|
2348
2466
|
type GitHubConnectionInput = EnvRefString<RequiredChannelKeys<Pick<AgentGitHubChannelConfig, "apiUrl" | "webhookSecret" | "appId" | "privateKey" | "botUserName" | "botUserId" | "triggerOnIssueOpen" | "triggerOnPROpen">, "webhookSecret" | "appId" | "privateKey">> & ConnectionIdentityInput;
|
|
2467
|
+
type LinearConnectionInput = EnvRefString<RequiredChannelKeys<Pick<AgentLinearChannelConfig, "apiKey" | "apiUrl" | "userName" | "webhookSecret">, "apiKey" | "userName" | "webhookSecret">> & ConnectionIdentityInput;
|
|
2349
2468
|
type SlackConnectionInput = EnvRefString<RequiredChannelKeys<Pick<AgentSlackChannelConfig, "apiUrl" | "botToken" | "signingSecret" | "reactionEmoji">, "botToken" | "signingSecret">> & ConnectionIdentityInput;
|
|
2350
2469
|
type DiscordConnectionInput = EnvRefString<RequiredChannelKeys<Pick<AgentDiscordChannelConfig, "apiUrl" | "botToken" | "publicKey" | "botUserId" | "mentionRoleIds">, "botToken" | "publicKey">> & ConnectionIdentityInput;
|
|
2351
2470
|
type MatrixConnectionInput = EnvRefString<RequiredChannelKeys<Pick<AgentMatrixChannelConfig, "apiUrl" | "botToken" | "botName" | "mentionText">, "apiUrl" | "botToken">> & ConnectionIdentityInput;
|
|
@@ -2362,9 +2481,12 @@ interface ZaloConnectionInput extends ConnectionIdentityInput {
|
|
|
2362
2481
|
botToken: ChannelSecret;
|
|
2363
2482
|
webhookSecret: ChannelSecret;
|
|
2364
2483
|
}
|
|
2484
|
+
type InstagramConnectionInput = EnvRefString<RequiredChannelKeys<Pick<AgentInstagramChannelConfig, "accessToken" | "accountId" | "apiVersion" | "appSecret" | "userName" | "verifyToken">, "accessToken" | "accountId" | "appSecret" | "verifyToken">> & ConnectionIdentityInput;
|
|
2485
|
+
type MessengerConnectionInput = EnvRefString<RequiredChannelKeys<Pick<AgentMessengerChannelConfig, "apiVersion" | "appSecret" | "pageAccessToken" | "userName" | "verifyToken">, "appSecret" | "pageAccessToken" | "verifyToken">> & ConnectionIdentityInput;
|
|
2365
2486
|
type TelegramConnectionDefinition = ConnectionDefinition<"telegram", TelegramConnectionInput>;
|
|
2366
2487
|
type GoogleChatConnectionDefinition = ConnectionDefinition<"gchat", GoogleChatConnectionInput>;
|
|
2367
2488
|
type GitHubConnectionDefinition = ConnectionDefinition<"github", GitHubConnectionInput>;
|
|
2489
|
+
type LinearConnectionDefinition = ConnectionDefinition<"linear", LinearConnectionInput>;
|
|
2368
2490
|
type SlackConnectionDefinition = ConnectionDefinition<"slack", SlackConnectionInput>;
|
|
2369
2491
|
type DiscordConnectionDefinition = ConnectionDefinition<"discord", DiscordConnectionInput>;
|
|
2370
2492
|
type MatrixConnectionDefinition = ConnectionDefinition<"matrix", MatrixConnectionInput>;
|
|
@@ -2372,8 +2494,10 @@ type PancakeConnectionDefinition = ConnectionDefinition<"pancake", PancakeConnec
|
|
|
2372
2494
|
type TeamsConnectionDefinition = ConnectionDefinition<"teams", TeamsConnectionInput>;
|
|
2373
2495
|
type TwilioConnectionDefinition = ConnectionDefinition<"twilio", TwilioConnectionInput>;
|
|
2374
2496
|
type ZaloConnectionDefinition = ConnectionDefinition<"zalo", ZaloConnectionInput>;
|
|
2497
|
+
type InstagramConnectionDefinition = ConnectionDefinition<"instagram", InstagramConnectionInput>;
|
|
2498
|
+
type MessengerConnectionDefinition = ConnectionDefinition<"messenger", MessengerConnectionInput>;
|
|
2375
2499
|
type WhatsAppConnectionDefinition = ConnectionDefinition<"whatsapp", WhatsAppConnectionInput>;
|
|
2376
|
-
type AnyConnectionDefinition = TelegramConnectionDefinition | GoogleChatConnectionDefinition | GitHubConnectionDefinition | SlackConnectionDefinition | DiscordConnectionDefinition | MatrixConnectionDefinition | PancakeConnectionDefinition | TeamsConnectionDefinition | TwilioConnectionDefinition | ZaloConnectionDefinition | WhatsAppConnectionDefinition;
|
|
2500
|
+
type AnyConnectionDefinition = TelegramConnectionDefinition | GoogleChatConnectionDefinition | GitHubConnectionDefinition | LinearConnectionDefinition | SlackConnectionDefinition | DiscordConnectionDefinition | MatrixConnectionDefinition | PancakeConnectionDefinition | TeamsConnectionDefinition | TwilioConnectionDefinition | ZaloConnectionDefinition | WhatsAppConnectionDefinition | InstagramConnectionDefinition | MessengerConnectionDefinition;
|
|
2377
2501
|
/**
|
|
2378
2502
|
* One real place a team talks: a Slack channel, a Discord channel, a repo. It
|
|
2379
2503
|
* narrows and adds, and never grants what a bound agent lacks: instructions
|
|
@@ -2440,6 +2564,11 @@ type GitHubChannelInput = ChannelRulesInput & {
|
|
|
2440
2564
|
/** Repository full name, e.g. "beeblast/api". */
|
|
2441
2565
|
repo: string;
|
|
2442
2566
|
};
|
|
2567
|
+
type LinearChannelInput = ChannelRulesInput & {
|
|
2568
|
+
connection: LinearConnectionDefinition;
|
|
2569
|
+
/** Team key, e.g. "ENG", or several that share one set of rules. */
|
|
2570
|
+
team: string | readonly string[];
|
|
2571
|
+
};
|
|
2443
2572
|
type TeamsChannelInput = ChannelRulesInput & {
|
|
2444
2573
|
connection: TeamsConnectionDefinition;
|
|
2445
2574
|
/** Teams channel id, or a chat's conversation id, e.g. "19:abc@thread.tacv2". */
|
|
@@ -2462,6 +2591,16 @@ type ZaloChannelInput = ChannelRulesInput & {
|
|
|
2462
2591
|
/** Zalo user or group chat id, or several that share one set of rules. */
|
|
2463
2592
|
chatId: string | readonly string[];
|
|
2464
2593
|
};
|
|
2594
|
+
type InstagramChannelInput = ChannelRulesInput & {
|
|
2595
|
+
connection: InstagramConnectionDefinition;
|
|
2596
|
+
/** Instagram-scoped id (IGSID) of the person, or several. */
|
|
2597
|
+
igsid: string | readonly string[];
|
|
2598
|
+
};
|
|
2599
|
+
type MessengerChannelInput = ChannelRulesInput & {
|
|
2600
|
+
connection: MessengerConnectionDefinition;
|
|
2601
|
+
/** Page-scoped id (PSID) of the person, or several. */
|
|
2602
|
+
psid: string | readonly string[];
|
|
2603
|
+
};
|
|
2465
2604
|
type WhatsAppChannelInput = ChannelRulesInput & {
|
|
2466
2605
|
connection: WhatsAppConnectionDefinition;
|
|
2467
2606
|
/** Customer's WhatsApp id, their number with country code and no "+", or several. */
|
|
@@ -2517,6 +2656,7 @@ type Handler<Event, Result> = (ctx: HookContext, event: Event) => Result | void
|
|
|
2517
2656
|
type TelegramMessageSource = TelegramSource;
|
|
2518
2657
|
type GoogleChatMessageSource = GoogleChatSource;
|
|
2519
2658
|
type GitHubMessageSource = GitHubSource;
|
|
2659
|
+
type LinearMessageSource = LinearSource;
|
|
2520
2660
|
type SlackMessageSource = SlackSource;
|
|
2521
2661
|
type DiscordMessageSource = DiscordSource;
|
|
2522
2662
|
type MatrixMessageSource = MatrixSource;
|
|
@@ -2524,6 +2664,8 @@ type PancakeMessageSource = PancakeSource;
|
|
|
2524
2664
|
type TeamsMessageSource = TeamsSource;
|
|
2525
2665
|
type TwilioMessageSource = TwilioSource;
|
|
2526
2666
|
type ZaloMessageSource = ZaloSource;
|
|
2667
|
+
type InstagramMessageSource = InstagramSource;
|
|
2668
|
+
type MessengerMessageSource = MessengerSource;
|
|
2527
2669
|
type WhatsAppMessageSource = WhatsAppSource;
|
|
2528
2670
|
/**
|
|
2529
2671
|
* Inbound channel message passed to `onMessageReceived`, discriminated on
|
|
@@ -2541,6 +2683,10 @@ type ChannelMessageReceived = {
|
|
|
2541
2683
|
channel: "github";
|
|
2542
2684
|
text: string;
|
|
2543
2685
|
source: GitHubMessageSource;
|
|
2686
|
+
} | {
|
|
2687
|
+
channel: "linear";
|
|
2688
|
+
text: string;
|
|
2689
|
+
source: LinearMessageSource;
|
|
2544
2690
|
} | {
|
|
2545
2691
|
channel: "slack";
|
|
2546
2692
|
text: string;
|
|
@@ -2573,6 +2719,14 @@ type ChannelMessageReceived = {
|
|
|
2573
2719
|
channel: "whatsapp";
|
|
2574
2720
|
text: string;
|
|
2575
2721
|
source: WhatsAppMessageSource;
|
|
2722
|
+
} | {
|
|
2723
|
+
channel: "instagram";
|
|
2724
|
+
text: string;
|
|
2725
|
+
source: InstagramMessageSource;
|
|
2726
|
+
} | {
|
|
2727
|
+
channel: "messenger";
|
|
2728
|
+
text: string;
|
|
2729
|
+
source: MessengerMessageSource;
|
|
2576
2730
|
};
|
|
2577
2731
|
/**
|
|
2578
2732
|
* Inline agent hook callbacks. Handlers are serialized with `.toString()`,
|
|
@@ -2758,7 +2912,10 @@ declare function defineWorkspace<const Name extends string>(input: ResourceInput
|
|
|
2758
2912
|
declare function defineDiscordConnection(config: DiscordConnectionInput): DiscordConnectionDefinition;
|
|
2759
2913
|
declare function defineGitHubConnection(config: GitHubConnectionInput): GitHubConnectionDefinition;
|
|
2760
2914
|
declare function defineGoogleChatConnection(config: GoogleChatConnectionInput): GoogleChatConnectionDefinition;
|
|
2915
|
+
declare function defineInstagramConnection(config: InstagramConnectionInput): InstagramConnectionDefinition;
|
|
2916
|
+
declare function defineLinearConnection(config: LinearConnectionInput): LinearConnectionDefinition;
|
|
2761
2917
|
declare function defineMatrixConnection(config: MatrixConnectionInput): MatrixConnectionDefinition;
|
|
2918
|
+
declare function defineMessengerConnection(config: MessengerConnectionInput): MessengerConnectionDefinition;
|
|
2762
2919
|
declare function definePancakeConnection(config: PancakeConnectionInput): PancakeConnectionDefinition;
|
|
2763
2920
|
declare function defineSlackConnection(config: SlackConnectionInput): SlackConnectionDefinition;
|
|
2764
2921
|
declare function defineTeamsConnection(config: TeamsConnectionInput): TeamsConnectionDefinition;
|
|
@@ -2769,7 +2926,10 @@ declare function defineZaloConnection(config: ZaloConnectionInput): ZaloConnecti
|
|
|
2769
2926
|
declare function defineDiscordChannel<const Name extends string>(input: ResourceInput<Name, DiscordChannelInput>): ChannelResource<Name>;
|
|
2770
2927
|
declare function defineGitHubChannel<const Name extends string>(input: ResourceInput<Name, GitHubChannelInput>): ChannelResource<Name>;
|
|
2771
2928
|
declare function defineGoogleChatChannel<const Name extends string>(input: ResourceInput<Name, GoogleChatChannelInput>): ChannelResource<Name>;
|
|
2929
|
+
declare function defineInstagramChannel<const Name extends string>(input: ResourceInput<Name, InstagramChannelInput>): ChannelResource<Name>;
|
|
2930
|
+
declare function defineLinearChannel<const Name extends string>(input: ResourceInput<Name, LinearChannelInput>): ChannelResource<Name>;
|
|
2772
2931
|
declare function defineMatrixChannel<const Name extends string>(input: ResourceInput<Name, MatrixChannelInput>): ChannelResource<Name>;
|
|
2932
|
+
declare function defineMessengerChannel<const Name extends string>(input: ResourceInput<Name, MessengerChannelInput>): ChannelResource<Name>;
|
|
2773
2933
|
declare function definePancakeChannel<const Name extends string>(input: ResourceInput<Name, PancakeChannelInput>): ChannelResource<Name>;
|
|
2774
2934
|
declare function defineSlackChannel<const Name extends string>(input: ResourceInput<Name, SlackChannelInput>): ChannelResource<Name>;
|
|
2775
2935
|
declare function defineTeamsChannel<const Name extends string>(input: ResourceInput<Name, TeamsChannelInput>): ChannelResource<Name>;
|
|
@@ -2781,5 +2941,5 @@ declare function isBroodsConfig(value: unknown): value is BroodsConfigDefinition
|
|
|
2781
2941
|
declare function isConnectionDefinition(value: unknown): value is AnyConnectionDefinition;
|
|
2782
2942
|
declare function isResource(value: unknown): value is AnyResource;
|
|
2783
2943
|
|
|
2784
|
-
export { BroodsAccountApiError, BroodsAccountClient, BroodsClient, BroodsWebSocketClient, DEFAULT_CORE_BASE_URL, IngressAcceptedError, MAX_OBSERVABILITY_BACKFILL, BroodsWebSocketClient as WebSocketClient, BroodsWebSocketClient as WebsocketClient, defineAgent, defineBroods, defineCron, defineDiscordChannel, defineDiscordConnection, defineGitHubChannel, defineGitHubConnection, defineGoogleChatChannel, defineGoogleChatConnection, defineHarness, defineMatrixChannel, defineMatrixConnection, defineMcp, definePancakeChannel, definePancakeConnection, definePolicy, defineSandbox, defineSkill, defineSlackChannel, defineSlackConnection, defineTeamsChannel, defineTeamsConnection, defineTelegramChannel, defineTelegramConnection, defineTwilioChannel, defineTwilioConnection, defineWhatsAppChannel, defineWhatsAppConnection, defineWorkspace, defineZaloChannel, defineZaloConnection, env, envPlaceholder, isBroodsConfig, isConnectionDefinition, isLogLevel, isObservabilityClientMessage, isResource, isRootSpanKind, isSandboxLogId, isTraceId, normalizeHttpServiceUrl, readSseStream, resolveEnvCredential, resolveRunEvents, toWebSocketBaseUrl, webSocketSubprotocols };
|
|
2785
|
-
export type { Account, AccountAgent, AccountChannel, AccountEnvVar, AccountMcp, AccountPolicy, AccountRole, AccountSandbox, AccountWorkspace, Agent, AgentChannelsConfig, AgentCodeHookConfig, AgentConfig, AgentConfigDoc, AgentContinueInput, AgentDefinitionConfig, AgentDiscordChannelConfig, AgentGitHubChannelConfig, AgentGoogleChatChannelConfig, AgentHandle, AgentHookEventName, AgentHooks, AgentHooksConfig, AgentMatrixChannelConfig, AgentPancakeChannelConfig, AgentProviderSettings, AgentReference, AgentResource, AgentRunAnswerInput, AgentRunEventInput, AgentRunInput, AgentRunModelOverrides, AgentRunOverrides, AgentRunResult, AgentSkillsDefinitionConfig, AgentSlackChannelConfig, AgentStreamPart, AgentSubagentDefinitionConfig, AgentTeamsChannelConfig, AgentTelegramChannelConfig, AgentTwilioChannelConfig, AgentWebhookHookConfig, AgentWhatsAppChannelConfig, AgentWorkspaceInput, AgentWorkspaceRef, AgentWorkspaceRefInput, AgentZaloChannelConfig, AnyConnectionDefinition, AnyResource, AssumeRoleResult, AsyncAgentRun, AsyncPollOptions, AsyncRequestAccepted, AsyncStatus, BroodsAccount, BroodsAccountClientOptions, BroodsClientOptions, BroodsConfigDefinition, BroodsProjectConfig, BroodsWebSocketClientOptions, ChannelAgentInput, ChannelDefinitionConfig, ChannelMessageReceived, ChannelPartition, ChannelRecordConfig, ChannelReference, ChannelReplyIn, ChannelResource, ChannelType, CliManifest, CliManifestResource, ConfigPatch, ConnectionDefinition, CreateAgentResult, CreateCronInput, CreateMcpInput, Cron, CronDefinitionConfig, CronDoc, CronLastStatus, CronResource, CronRun, CronStatus, DeleteAccountResult, DiscordChannelInput, DiscordConnectionDefinition, DiscordConnectionInput, DiscordMessageSource, DiscordSource, Doc, EnvAccessor, EnvRef, EnvRefString, GeneratedIds, GitHubChannelInput, GitHubConnectionDefinition, GitHubConnectionInput, GitHubMessageSource, GitHubSource, GoogleChatChannelInput, GoogleChatConnectionDefinition, GoogleChatConnectionInput, GoogleChatMessageSource, GoogleChatSource, HarnessDefinition, HarnessType, HookAgentConfig, HookContext, Id, IngressMode, IngressStatus, LogLevel, MatrixChannelInput, MatrixConnectionDefinition, MatrixConnectionInput, MatrixMessageSource, MatrixSource, McpDefinitionConfig, McpHandler, McpOauthInput, McpResource, ObservabilityBackfillMessage, ObservabilityClientMessage, ObservabilityErrorMessage, ObservabilityFetchTraceMessage, ObservabilityLogEntry, ObservabilityLogMessage, ObservabilityReadyMessage, ObservabilityServerMessage, ObservabilitySpanMessage, ObservabilitySpanRow, ObservabilitySubscribeMessage, ObservabilityUnsubscribeMessage, PancakeChannelInput, PancakeConnectionDefinition, PancakeConnectionInput, PancakeMessageSource, PancakeSource, PendingQuestion, PolicyDefinitionConfig, PolicyDocument, PolicyResource, ProjectDoc, ProviderConfigInput, ProviderSettingsInput, QuestionAnswer, ResourceApi, ResourceDefinition, ResourceInput, ResourceKind, RotateSecretResult, Sandbox, SandboxConfig, SandboxConfigDoc, SandboxDefinitionConfig, SandboxDefinitionOptions, SandboxLifecycleResult, SandboxResource, SandboxSnapshotResult, SandboxTerminalTicket, Skill, SkillDefinitionConfig, SkillResource, SkillUploadInput, SlackChannelInput, SlackConnectionDefinition, SlackConnectionInput, SlackMessageSource, SlackSource, StageDoc, StageScope, TaskWaitingOn, TeamsChannelInput, TeamsConnectionDefinition, TeamsConnectionInput, TeamsMessageSource, TeamsSource, TelegramChannelInput, TelegramConnectionDefinition, TelegramConnectionInput, TelegramMessageSource, TelegramSource, ToolApprovalSummary, TwilioChannelInput, TwilioConnectionDefinition, TwilioConnectionInput, TwilioMessageSource, TwilioSource, UpdateAgentInput, UpdateCronInput, UpdateMcpInput, WebSocketAttachInput, WebSocketClientAttachMessage, WebSocketClientCancelMessage, WebSocketClientControlMessage, WebSocketClientExecuteMessage, WebSocketClientMessage, WebSocketConstructorLike, WebSocketHandlers, WebSocketLike, WebSocketOutputMessage, WebSocketRunInput, WebSocketServerMessage, WebSocketStreamMessage, WebSocketSubscription, WhatsAppChannelInput, WhatsAppConnectionDefinition, WhatsAppConnectionInput, WhatsAppMessageSource, WhatsAppSource, Workspace, WorkspaceConfig, WorkspaceConfigDoc, WorkspaceDefinitionConfig, WorkspaceFileEntry, WorkspaceResource, ZaloChannelInput, ZaloConnectionDefinition, ZaloConnectionInput, ZaloMessageSource, ZaloSource };
|
|
2944
|
+
export { BroodsAccountApiError, BroodsAccountClient, BroodsClient, BroodsWebSocketClient, DEFAULT_CORE_BASE_URL, IngressAcceptedError, MAX_OBSERVABILITY_BACKFILL, BroodsWebSocketClient as WebSocketClient, BroodsWebSocketClient as WebsocketClient, defineAgent, defineBroods, defineCron, defineDiscordChannel, defineDiscordConnection, defineGitHubChannel, defineGitHubConnection, defineGoogleChatChannel, defineGoogleChatConnection, defineHarness, defineInstagramChannel, defineInstagramConnection, defineLinearChannel, defineLinearConnection, defineMatrixChannel, defineMatrixConnection, defineMcp, defineMessengerChannel, defineMessengerConnection, definePancakeChannel, definePancakeConnection, definePolicy, defineSandbox, defineSkill, defineSlackChannel, defineSlackConnection, defineTeamsChannel, defineTeamsConnection, defineTelegramChannel, defineTelegramConnection, defineTwilioChannel, defineTwilioConnection, defineWhatsAppChannel, defineWhatsAppConnection, defineWorkspace, defineZaloChannel, defineZaloConnection, env, envPlaceholder, isBroodsConfig, isConnectionDefinition, isLogLevel, isObservabilityClientMessage, isResource, isRootSpanKind, isSandboxLogId, isTraceId, normalizeHttpServiceUrl, readSseStream, resolveEnvCredential, resolveRunEvents, toWebSocketBaseUrl, webSocketSubprotocols };
|
|
2945
|
+
export type { Account, AccountAgent, AccountChannel, AccountEnvVar, AccountMcp, AccountPolicy, AccountRole, AccountSandbox, AccountWorkspace, Agent, AgentChannelsConfig, AgentCodeHookConfig, AgentConfig, AgentConfigDoc, AgentContinueInput, AgentDefinitionConfig, AgentDiscordChannelConfig, AgentGitHubChannelConfig, AgentGoogleChatChannelConfig, AgentHandle, AgentHookEventName, AgentHooks, AgentHooksConfig, AgentInstagramChannelConfig, AgentLinearChannelConfig, AgentMatrixChannelConfig, AgentMessengerChannelConfig, AgentPancakeChannelConfig, AgentProviderSettings, AgentReference, AgentResource, AgentRunAnswerInput, AgentRunEventInput, AgentRunInput, AgentRunModelOverrides, AgentRunOverrides, AgentRunResult, AgentSkillsDefinitionConfig, AgentSlackChannelConfig, AgentStreamPart, AgentSubagentDefinitionConfig, AgentTeamsChannelConfig, AgentTelegramChannelConfig, AgentTwilioChannelConfig, AgentWebhookHookConfig, AgentWhatsAppChannelConfig, AgentWorkspaceInput, AgentWorkspaceRef, AgentWorkspaceRefInput, AgentZaloChannelConfig, AnyConnectionDefinition, AnyResource, AssumeRoleResult, AsyncAgentRun, AsyncPollOptions, AsyncRequestAccepted, AsyncStatus, BroodsAccount, BroodsAccountClientOptions, BroodsClientOptions, BroodsConfigDefinition, BroodsProjectConfig, BroodsWebSocketClientOptions, ChannelAgentInput, ChannelDefinitionConfig, ChannelMessageReceived, ChannelPartition, ChannelRecordConfig, ChannelReference, ChannelReplyIn, ChannelResource, ChannelType, CliManifest, CliManifestResource, ConfigPatch, ConnectionDefinition, CreateAgentResult, CreateCronInput, CreateMcpInput, Cron, CronDefinitionConfig, CronDoc, CronLastStatus, CronResource, CronRun, CronStatus, DeleteAccountResult, DiscordChannelInput, DiscordConnectionDefinition, DiscordConnectionInput, DiscordMessageSource, DiscordSource, Doc, EnvAccessor, EnvRef, EnvRefString, GeneratedIds, GitHubChannelInput, GitHubConnectionDefinition, GitHubConnectionInput, GitHubMessageSource, GitHubSource, GoogleChatChannelInput, GoogleChatConnectionDefinition, GoogleChatConnectionInput, GoogleChatMessageSource, GoogleChatSource, HarnessDefinition, HarnessType, HookAgentConfig, HookContext, Id, IngressMode, IngressStatus, InstagramChannelInput, InstagramConnectionDefinition, InstagramConnectionInput, InstagramMessageSource, InstagramSource, LinearChannelInput, LinearConnectionDefinition, LinearConnectionInput, LinearMessageSource, LinearSource, LogLevel, MatrixChannelInput, MatrixConnectionDefinition, MatrixConnectionInput, MatrixMessageSource, MatrixSource, McpDefinitionConfig, McpHandler, McpOauthInput, McpResource, MessengerChannelInput, MessengerConnectionDefinition, MessengerConnectionInput, MessengerMessageSource, MessengerSource, ObservabilityBackfillMessage, ObservabilityClientMessage, ObservabilityErrorMessage, ObservabilityFetchTraceMessage, ObservabilityLogEntry, ObservabilityLogMessage, ObservabilityReadyMessage, ObservabilityServerMessage, ObservabilitySpanMessage, ObservabilitySpanRow, ObservabilitySubscribeMessage, ObservabilityUnsubscribeMessage, PancakeChannelInput, PancakeConnectionDefinition, PancakeConnectionInput, PancakeMessageSource, PancakeSource, PendingQuestion, PolicyDefinitionConfig, PolicyDocument, PolicyResource, ProjectDoc, ProviderConfigInput, ProviderSettingsInput, QuestionAnswer, ResourceApi, ResourceDefinition, ResourceInput, ResourceKind, RotateSecretResult, Sandbox, SandboxConfig, SandboxConfigDoc, SandboxDefinitionConfig, SandboxDefinitionOptions, SandboxLifecycleResult, SandboxResource, SandboxSnapshotResult, SandboxTerminalTicket, Skill, SkillDefinitionConfig, SkillResource, SkillUploadInput, SlackChannelInput, SlackConnectionDefinition, SlackConnectionInput, SlackMessageSource, SlackSource, StageDoc, StageScope, TaskWaitingOn, TeamsChannelInput, TeamsConnectionDefinition, TeamsConnectionInput, TeamsMessageSource, TeamsSource, TelegramChannelInput, TelegramConnectionDefinition, TelegramConnectionInput, TelegramMessageSource, TelegramSource, ToolApprovalSummary, TwilioChannelInput, TwilioConnectionDefinition, TwilioConnectionInput, TwilioMessageSource, TwilioSource, UpdateAgentInput, UpdateCronInput, UpdateMcpInput, WebSocketAttachInput, WebSocketClientAttachMessage, WebSocketClientCancelMessage, WebSocketClientControlMessage, WebSocketClientExecuteMessage, WebSocketClientMessage, WebSocketConstructorLike, WebSocketHandlers, WebSocketLike, WebSocketOutputMessage, WebSocketRunInput, WebSocketServerMessage, WebSocketStreamMessage, WebSocketSubscription, WhatsAppChannelInput, WhatsAppConnectionDefinition, WhatsAppConnectionInput, WhatsAppMessageSource, WhatsAppSource, Workspace, WorkspaceConfig, WorkspaceConfigDoc, WorkspaceDefinitionConfig, WorkspaceFileEntry, WorkspaceResource, ZaloChannelInput, ZaloConnectionDefinition, ZaloConnectionInput, ZaloMessageSource, ZaloSource };
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{V,ge,Me,Pe,Ne,je,G,Ie,
|
|
1
|
+
import{V,ge,Me,Pe,Ne,je,G,Ie,k,ye,U,J,xe,Y,E,qe,De,Le,Ue,Fe,Be,Ze,He,Ve,Ge,We,Ke,Je,Ye,Xe,Qe,et,tt,nt,rt,ot,st,it,at,ct,lt,ut,dt,pt,mt,ht,ft,gt,yt,St,bt,vt,_t,ie,w,g}from"./chunk-8h6ctjyq.js";import{m,Ae,B,Z}from"./chunk-p7t6yawg.js";export{m as BroodsAccountApiError,Z as BroodsAccountClient,U as BroodsClient,xe as BroodsWebSocketClient,k as DEFAULT_CORE_BASE_URL,ye as IngressAcceptedError,Me as MAX_OBSERVABILITY_BACKFILL,xe as WebSocketClient,xe as WebsocketClient,De as defineAgent,Le as defineBroods,Ue as defineCron,ct as defineDiscordChannel,We as defineDiscordConnection,lt as defineGitHubChannel,Ke as defineGitHubConnection,ut as defineGoogleChatChannel,Je as defineGoogleChatConnection,Fe as defineHarness,dt as defineInstagramChannel,Ye as defineInstagramConnection,pt as defineLinearChannel,Xe as defineLinearConnection,mt as defineMatrixChannel,Qe as defineMatrixConnection,Be as defineMcp,ht as defineMessengerChannel,et as defineMessengerConnection,ft as definePancakeChannel,tt as definePancakeConnection,Ze as definePolicy,He as defineSandbox,Ve as defineSkill,gt as defineSlackChannel,nt as defineSlackConnection,yt as defineTeamsChannel,rt as defineTeamsConnection,St as defineTelegramChannel,ot as defineTelegramConnection,bt as defineTwilioChannel,st as defineTwilioConnection,vt as defineWhatsAppChannel,it as defineWhatsAppConnection,Ge as defineWorkspace,_t as defineZaloChannel,at as defineZaloConnection,qe as env,Ae as envPlaceholder,ie as isBroodsConfig,w as isConnectionDefinition,Pe as isLogLevel,Ne as isObservabilityClientMessage,g as isResource,je as isRootSpanKind,G as isSandboxLogId,Ie as isTraceId,J as normalizeHttpServiceUrl,ge as readSseStream,B as resolveEnvCredential,V as resolveRunEvents,Y as toWebSocketBaseUrl,E as webSocketSubprotocols};
|