@seedcord/core 0.9.4 → 0.11.0-next.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.
Files changed (58) hide show
  1. package/README.md +28 -10
  2. package/dist/CoordinatedShutdown-H5YjZn8A.d.mts +78 -0
  3. package/dist/CoordinatedStartup-CGnJrqcl.mjs +168 -0
  4. package/dist/CoordinatedStartup-CGnJrqcl.mjs.map +1 -0
  5. package/dist/{HmrModuleHandler-DOAtah3j.mjs → HmrModuleHandler-8ZC-UuZh.mjs} +9 -22
  6. package/dist/HmrModuleHandler-8ZC-UuZh.mjs.map +1 -0
  7. package/dist/PluginHost-B8kxLOeb.mjs +245 -0
  8. package/dist/PluginHost-B8kxLOeb.mjs.map +1 -0
  9. package/dist/{Plugin-Dhx_ivqj.d.mts → PluginHost-DB4j8unu.d.mts} +110 -17
  10. package/dist/PluginLifecycle-AhQ46NIr.mjs +158 -0
  11. package/dist/PluginLifecycle-AhQ46NIr.mjs.map +1 -0
  12. package/dist/ServerHost-CvGQr7oN.mjs +191 -0
  13. package/dist/ServerHost-CvGQr7oN.mjs.map +1 -0
  14. package/dist/ServerHost-DYeh0KTk.d.mts +40 -0
  15. package/dist/hmr.index.d.mts +0 -1
  16. package/dist/hmr.index.mjs +1 -1
  17. package/dist/{cursor-BTU5bGoo.d.mts → index-Du71Xx69.d.mts} +253 -6
  18. package/dist/index.d.mts +19 -84
  19. package/dist/index.mjs +17 -37
  20. package/dist/index.mjs.map +1 -1
  21. package/dist/internal.index.d.mts +185 -22
  22. package/dist/internal.index.mjs +713 -19
  23. package/dist/internal.index.mjs.map +1 -1
  24. package/dist/node-internal.index.d.mts +25 -70
  25. package/dist/node-internal.index.mjs +84 -298
  26. package/dist/node-internal.index.mjs.map +1 -1
  27. package/dist/node.index.d.mts +3 -2
  28. package/dist/node.index.mjs +53 -200
  29. package/dist/node.index.mjs.map +1 -1
  30. package/dist/{phases-D_zQBXga.d.mts → phases-FTM69J3a.d.mts} +4 -4
  31. package/dist/plugin.index.d.mts +2 -2
  32. package/dist/plugin.index.mjs +2 -2
  33. package/dist/publishDefault-D3dAyzZ9.mjs +7 -0
  34. package/dist/publishDefault-D3dAyzZ9.mjs.map +1 -0
  35. package/dist/subscribers-Ce3SWy23.mjs +1913 -0
  36. package/dist/subscribers-Ce3SWy23.mjs.map +1 -0
  37. package/package.json +17 -16
  38. package/dist/Bus-BxPa-Uvp.mjs +0 -866
  39. package/dist/Bus-BxPa-Uvp.mjs.map +0 -1
  40. package/dist/HmrModuleHandler-DOAtah3j.mjs.map +0 -1
  41. package/dist/Pluggable-CXyUZIvT.mjs +0 -310
  42. package/dist/Pluggable-CXyUZIvT.mjs.map +0 -1
  43. package/dist/Pluggable-CwKbLui3.d.mts +0 -162
  44. package/dist/Plugin-CmNW5n6a.mjs +0 -122
  45. package/dist/Plugin-CmNW5n6a.mjs.map +0 -1
  46. package/dist/contextMenuLeaves-COzDYa6c.d.mts +0 -17
  47. package/dist/cursor-CgNBnJfu.mjs +0 -802
  48. package/dist/cursor-CgNBnJfu.mjs.map +0 -1
  49. package/dist/devChannel-CQU7hq7Q.mjs +0 -14
  50. package/dist/devChannel-CQU7hq7Q.mjs.map +0 -1
  51. package/dist/index-B_-EjyvS.d.mts +0 -135
  52. package/dist/publishDefault-BuSZPbjT.mjs +0 -14
  53. package/dist/publishDefault-BuSZPbjT.mjs.map +0 -1
  54. package/dist/slashRouteLeaves-k1hJnXDO.mjs +0 -31
  55. package/dist/slashRouteLeaves-k1hJnXDO.mjs.map +0 -1
  56. package/dist/subscribers-xGy7a7xR.mjs +0 -167
  57. package/dist/subscribers-xGy7a7xR.mjs.map +0 -1
  58. package/dist/types-BG0BimVr.d.mts +0 -13
@@ -1,18 +1,36 @@
1
- import { A as RegisteredCount, B as InteractionMetadataKey, C as AckState, D as AckTrace, E as sendTarget, F as CommandMetadataKey, G as WebhookUrlMetadataKey, H as InteractionRouteKeys, I as EventMetadataKey, K as Notice, L as EventMiddlewareMetadataKey, M as VerifyWebhooks, N as PublishDefault, O as RegisterDefaults, R as GatedMetadataKey, S as reportedWrite, T as checkAckLegality, U as MiddlewareKind, V as InteractionMiddlewareMetadataKey, W as SubscribeMetadataKey, a as StoredSubscriberCtor, c as registrationFor, d as DefaultSubscriptions, f as DispatchOutcome, i as Bus, j as UnregisterSubscriber, k as RegisterSubscriber, o as SubscriberRegistration, s as busLoggerOf, w as ReplyMethod, x as ReplyTelemetry, z as InteractionKind } from "./phases-D_zQBXga.mjs";
2
- import { A as serializeReply, B as AutocompleteRouteBrand, C as Gate, F as AnyMiddlewareCtor, G as MiddlewareKindsBrand, H as ComponentKindBrand, I as InteractionMiddlewareMetadata, K as SlashRouteBrand, M as EventDispatchResult, P as HandlerResult, U as ContextMenuKindBrand, V as ComponentDefsBrand, W as ContextMenuNamesBrand, X as BuilderComponent, _ as pickNotice, at as SlashRouteEntry, c as FocusedField, et as CacheFor, i as AutocompletableNames, it as SlashRegistry, j as DispatchResult, k as SerializedReply, lt as NamesFor, m as PermissionNames, n as PageCursor, nt as RouteCache, o as ChoiceValueOf, ot as ContextMenuKind, q as CommandMeta, r as pageCursor, rt as SlashOption, s as EntryFor, st as MenuCacheFor, t as PAGE_MAX, tt as OptionKind, v as GateFitsWith, w as GateContextBase, z as interactionMiddlewareMetaOf } from "./cursor-BTU5bGoo.mjs";
3
- import { n as DeployResult, t as CommandBuilder } from "./types-BG0BimVr.mjs";
4
- import { i as Initializeable, o as PluginArgs, s as PluginCtor } from "./Plugin-Dhx_ivqj.mjs";
5
- import { n as contextMenuLeaves, t as ContextMenuLeaves } from "./contextMenuLeaves-COzDYa6c.mjs";
1
+ import { A as RegisteredCount, B as InteractionMetadataKey, C as AckState, D as AckTrace, E as sendTarget, F as CommandMetadataKey, G as WebhookUrlMetadataKey, H as InteractionRouteKeys, I as EventMetadataKey, K as Notice, L as EventMiddlewareMetadataKey, M as VerifyWebhooks, N as PublishDefault, O as RegisterDefaults, R as GatedMetadataKey, S as reportedWrite, T as checkAckLegality, U as MiddlewareKind, V as InteractionMiddlewareMetadataKey, W as SubscribeMetadataKey, a as StoredSubscriberCtor, c as registrationFor, d as DefaultSubscriptions, f as DispatchOutcome, i as Bus, j as UnregisterSubscriber, k as RegisterSubscriber, o as SubscriberRegistration, r as CoreBase, s as busLoggerOf, w as ReplyMethod, x as ReplyTelemetry, z as InteractionKind } from "./phases-FTM69J3a.mjs";
2
+ import { $ as SlashRouteBrand, A as Gate, At as CacheFor, Ct as CommandMeta, Et as BuilderComponent, Ft as SlashRouteEntry, H as AnyMiddlewareCtor, I as SerializedReply, It as ContextMenuKind, J as ComponentDefsBrand, K as interactionMiddlewareMetaOf, L as serializeReply, Lt as MenuCacheFor, Mt as RouteCache, Nt as SlashOption, Pt as SlashRegistry, Q as MiddlewareKindsBrand, R as DispatchResult, St as resolveDeployTarget, T as GateFitsWith, U as InteractionMiddlewareMetadata, V as HandlerResult, X as ContextMenuKindBrand, Y as ComponentKindBrand, Z as ContextMenuNamesBrand, _t as ScopeId, bt as scopeIdsOf, c as PageCursor, ct as CommandRef, dt as commandRefOf, f as ChoiceValueOf, ft as indexById, gt as GLOBAL_ID, h as ResolvedEmoji, ht as DeployResult, j as GateContextBase, jt as OptionKind, l as pageCursor, lt as LinkedCommands, m as FocusedField, mt as CommandBuilder, ot as installLinks, p as EntryFor, pt as linkCommands, q as AutocompleteRouteBrand, s as PAGE_MAX, st as warnLinks, u as AutocompletableNames, ut as commandKey, vt as commandsRoute, w as pickNotice, x as PermissionNames, xt as skippedNote, yt as globalFirst, z as EventDispatchResult, zt as NamesFor } from "./index-Du71Xx69.mjs";
3
+ import { a as FixedScope, c as PluginArgs, i as sealAttachments, l as PluginCtor, o as Initializeable, r as attachmentsOf, t as Attachment } from "./PluginHost-DB4j8unu.mjs";
4
+ import { n as CoordinatedStartup, t as CoordinatedShutdown } from "./CoordinatedShutdown-H5YjZn8A.mjs";
6
5
  import "reflect-metadata";
7
6
  import { AnyCustomId, DecodedParams } from "@seedcord/custom-id";
8
7
  import { ContextMenuCommandBuilder, SlashCommandBuilder } from "@discordjs/builders";
9
- import { ChannelType } from "discord-api-types/v10";
8
+ import { APIApplicationCommand, ChannelType, RESTGetCurrentApplicationResult, RESTPostAPIApplicationCommandsJSONBody } from "discord-api-types/v10";
10
9
  import { SeedcordErrorCode } from "@seedcord/errors";
11
- import { SeedcordError } from "@seedcord/errors/internal";
10
+ import { BotToken, SeedcordError } from "@seedcord/errors/internal";
12
11
  import { Logger } from "@seedcord/logger";
13
- import { DevChannel, SeedcordCliEvents, SeedcordFrameworkEvents } from "@seedcord/types/internal";
14
- import { BotColor, DeferOpts, EpochMs, HmrAware, ReplyResponse, SendOpts } from "@seedcord/types";
12
+ import { REST } from "@discordjs/rest";
13
+ import { DeployedHashes, DevChannel, SeedcordCliEvents, SeedcordFrameworkEvents, WireError } from "@seedcord/types/internal";
14
+ import { BotColor, DeferOpts, EpochMs, ErrorsConfig, HmrAware, HmrUpdateEvent, ILogger, LogRecord, ReplyResponse, SendOpts } from "@seedcord/types";
15
15
  import { Constructor, IsNever, Promisable } from "type-fest";
16
+ //#region src/subscribers/SubscriberLoader.d.ts
17
+ export declare class SubscriberLoader implements Initializeable, HmrAware {
18
+ private readonly bus;
19
+ private readonly directory;
20
+ private isInitialized;
21
+ private readonly hmrHandler?;
22
+ constructor(bus: Bus, directory: string | null);
23
+ /** @internal */
24
+ init(): Promise<void>;
25
+ /** @internal */
26
+ onHmr(event: HmrUpdateEvent): Promise<void>;
27
+ private load;
28
+ private registerSubscriber;
29
+ private unregisterSubscriber;
30
+ private getArtifacts;
31
+ private isSubscriber;
32
+ }
33
+ //#endregion
16
34
  //#region src/dispatch/MiddlewareRegistry.d.ts
17
35
  /**
18
36
  * A decorated middleware reduced to what the registry orders and filters on. An absent `keys` puts the
@@ -49,8 +67,6 @@ export declare class MiddlewareRegistry<Ctor extends AnyMiddlewareCtor, Key exte
49
67
  /**
50
68
  * Adds a decorated middleware class and returns what it registered with. Returns `undefined` for an
51
69
  * undecorated class or one already registered.
52
- *
53
- * @throws A **SeedcordError** If another class with the same name is registered.
54
70
  */
55
71
  register(ctor: Ctor): MiddlewareRegistration<Key> | undefined;
56
72
  unregister(ctor: Ctor): void;
@@ -61,9 +77,33 @@ export declare class MiddlewareRegistry<Ctor extends AnyMiddlewareCtor, Key exte
61
77
  //#region src/components/botColorHolder.d.ts
62
78
  export declare function bindBotColor(read: () => BotColor | undefined): void;
63
79
  //#endregion
80
+ //#region src/notices/logUnknownFault.d.ts
81
+ export declare function logUnknownFault(logger: Logger, uuid: string, error: Error, errors: ErrorsConfig | undefined): void;
82
+ //#endregion
83
+ //#region src/lifecycle/PluginLifecycle.d.ts
84
+ export declare class PluginLifecycle {
85
+ private readonly startup;
86
+ private readonly shutdown;
87
+ private readonly logger;
88
+ private readonly completedInits;
89
+ private readonly disposePhases;
90
+ private readonly timedOutInits;
91
+ private attachments;
92
+ private registered;
93
+ constructor(startup: Pick<CoordinatedStartup, 'addTask'>, shutdown: Pick<CoordinatedShutdown, 'addTask'>);
94
+ register(attachments: readonly Attachment[]): void;
95
+ rollback(): Promise<void>;
96
+ afterTimedOutInits(run: () => void): void;
97
+ private runInits;
98
+ private disposeWhenInitResolves;
99
+ private registerReadyTask;
100
+ private registerDisposeTask;
101
+ private runDisposals;
102
+ private disposeCompleted;
103
+ }
104
+ //#endregion
64
105
  //#region src/decorators/interactionRoutes.d.ts
65
106
  type RoutableConstructor = new (...args: never[]) => unknown;
66
- export declare function areRoutes(routes: unknown): routes is string[];
67
107
  export declare function interactionRoutesOf(constructor: RoutableConstructor): [InteractionKind, string[]][];
68
108
  export declare function storeInteractionRoute(route: InteractionKind, routes: string | readonly string[], constructor: RoutableConstructor): void;
69
109
  export declare function storeComponentRoute(route: InteractionKind, defs: readonly AnyCustomId[], constructor: RoutableConstructor): void;
@@ -93,6 +133,124 @@ export declare function guardedAccessor<Value>(accessor: string, storage: Record
93
133
  //#region src/miscellaneous/emojiConfig.d.ts
94
134
  export declare function isEmojiTuple(value: unknown): value is readonly [string, string];
95
135
  //#endregion
136
+ //#region src/miscellaneous/currentApplication.d.ts
137
+ export declare function currentApplication(rest: Pick<REST, 'get'>): Promise<RESTGetCurrentApplicationResult>;
138
+ //#endregion
139
+ //#region src/miscellaneous/readBotToken.d.ts
140
+ export declare function readBotToken(): BotToken;
141
+ //#endregion
142
+ //#region src/miscellaneous/resolveEmojis.d.ts
143
+ type EmojiRest = Pick<REST, 'get'>;
144
+ export declare function resolveEmojis(rest: EmojiRest, applicationId: string, configured: Readonly<Record<string, unknown>>): Promise<Record<string, ResolvedEmoji>>;
145
+ //#endregion
146
+ //#region src/bakedIds.d.ts
147
+ export declare const BAKED_IDS_KEY = "seedcord:core:baked-ids";
148
+ interface BakedIds {
149
+ readonly publicKey: string;
150
+ readonly emojis: Readonly<Record<string, Pick<ResolvedEmoji, 'name' | 'id' | 'animated'>>>;
151
+ readonly commands: LinkedCommands['commands'];
152
+ readonly contextMenus: LinkedCommands['contextMenus'];
153
+ }
154
+ //#endregion
155
+ //#region src/commands/contextMenuLeaves.d.ts
156
+ interface ContextMenuLeaves {
157
+ readonly user: Set<string>;
158
+ readonly message: Set<string>;
159
+ }
160
+ export declare function contextMenuLeaves(commands: Iterable<RESTPostAPIApplicationCommandsJSONBody>): ContextMenuLeaves;
161
+ //#endregion
162
+ //#region src/commands/CommandRegistry.d.ts
163
+ interface RouteWarnings {
164
+ warnUnhandledRoutes(leaves: Iterable<string>): void;
165
+ warnUnhandledContextMenuRoutes(leaves: ContextMenuLeaves): void;
166
+ }
167
+ interface DeployHooks {
168
+ routes?: RouteWarnings | undefined;
169
+ check?: (commands: CommandBuilder[]) => void;
170
+ }
171
+ export declare const COMMAND_DEPLOY_TIMEOUT_MS = 75000;
172
+ /**
173
+ * Scans the command directory, builds each command, and PUTs the global and guild scopes to Discord.
174
+ *
175
+ * @internal
176
+ */
177
+ export declare class CommandRegistry implements Initializeable, HmrAware {
178
+ private readonly core;
179
+ private readonly logger;
180
+ private isInitialised;
181
+ readonly scopedCommands: Map<ScopeId, CommandBuilder[]>;
182
+ private readonly ctorToCommand;
183
+ private loading;
184
+ private readonly loadedCommands;
185
+ private readonly hmrHandler?;
186
+ private readonly pendingEvents;
187
+ private readonly injector;
188
+ private readonly lastDeploy;
189
+ private readonly reporter;
190
+ private readonly dir;
191
+ private readonly configuredGuilds;
192
+ constructor(core: CoreBase);
193
+ private getArtifacts;
194
+ /** @internal */
195
+ init(): Promise<void>;
196
+ private reportLoad;
197
+ /** @internal */
198
+ refresh(shouldRefresh?: boolean): Promise<void>;
199
+ /** @internal */
200
+ onHmr(event: HmrUpdateEvent): Promise<void>;
201
+ private loadCommands;
202
+ private registerCommand;
203
+ private unregisterCommand;
204
+ /** @internal */
205
+ deploy(signal: AbortSignal, { routes, check }: DeployHooks): Promise<void>;
206
+ /** @internal */
207
+ setCommands(signal?: AbortSignal): Promise<DeployResult>;
208
+ private commandBodies;
209
+ private allCommands;
210
+ private routeLeaves;
211
+ private contextMenuLeaves;
212
+ }
213
+ //#endregion
214
+ //#region src/commands/putCommands.d.ts
215
+ type CommandBody = RESTPostAPIApplicationCommandsJSONBody;
216
+ type CommandScopes = ReadonlyMap<ScopeId, readonly CommandBody[]>;
217
+ interface PutCommandsOptions {
218
+ readonly rest: Pick<REST, 'put' | 'on' | 'off'>;
219
+ readonly applicationId: string;
220
+ readonly logger: Pick<ILogger, 'warn'>;
221
+ readonly signal?: AbortSignal | undefined;
222
+ readonly onDeployed?: (scope: ScopeId, commands: readonly CommandBody[]) => void;
223
+ }
224
+ export declare function putCommands(scopes: CommandScopes, options: PutCommandsOptions): Promise<DeployResult>;
225
+ //#endregion
226
+ //#region src/commands/readCommands.d.ts
227
+ interface ReadCommandsOptions {
228
+ readonly rest: Pick<REST, 'get'>;
229
+ readonly applicationId: string;
230
+ readonly signal?: AbortSignal | undefined;
231
+ }
232
+ export declare function readCommandsAt(scope: ScopeId, { rest, applicationId, signal }: ReadCommandsOptions): Promise<Map<string, APIApplicationCommand>>;
233
+ export declare function readCommands(scopes: Iterable<ScopeId>, options: ReadCommandsOptions): Promise<DeployResult>;
234
+ //#endregion
235
+ //#region src/commands/planDeploy.d.ts
236
+ type ScopeHashes = DeployedHashes['scopes'];
237
+ interface DeployPlan {
238
+ hashes: ScopeHashes;
239
+ skippedHashes: ScopeHashes;
240
+ toPut: CommandScopes;
241
+ skipped: ScopeId[];
242
+ onDiscord: DeployResult;
243
+ }
244
+ export declare function planDeploy(scopes: CommandScopes, last: ScopeHashes | undefined, readUnchanged: (scopes: ScopeId[]) => Promise<DeployResult>): Promise<DeployPlan>;
245
+ //#endregion
246
+ //#region src/commands/guildSummaries.d.ts
247
+ interface GuildSummary {
248
+ id: string;
249
+ name: string;
250
+ }
251
+ type ReadRest = Pick<REST, 'get'>;
252
+ export declare function guildSummaries(rest: ReadRest, guildIds: Iterable<string>, knownNames?: ReadonlyMap<string, string>): Promise<GuildSummary[]>;
253
+ //#endregion
96
254
  //#region src/commands/isCommandClass.d.ts
97
255
  /** @internal */
98
256
  type CommandCtor = Constructor<BuilderComponent<'command' | 'context_menu'>, never[]>;
@@ -110,18 +268,18 @@ export declare function isCommandClass(value: unknown): value is CommandCtor;
110
268
  export declare function slashRouteLeaves(commands: Iterable<SlashCommandBuilder | ContextMenuCommandBuilder>): Set<string>;
111
269
  //#endregion
112
270
  //#region src/hmr/devChannel.d.ts
271
+ type CliChannel = DevChannel<SeedcordFrameworkEvents, SeedcordCliEvents>;
113
272
  /** @internal */
114
- export declare function setDevChannel(next: DevChannel<SeedcordFrameworkEvents, SeedcordCliEvents> | undefined): void;
273
+ export declare function setDevChannel(next: CliChannel | undefined): void;
115
274
  /** @internal */
116
- export declare function getDevChannel(): DevChannel<SeedcordFrameworkEvents, SeedcordCliEvents> | undefined;
275
+ export declare function getDevChannel(): CliChannel | undefined;
117
276
  //#endregion
118
277
  //#region src/hmr/HmrManager.d.ts
278
+ export declare function connectDevChannel(): CliChannel | undefined;
119
279
  export declare class HmrManager {
120
280
  private readonly logger;
121
281
  private readonly listeners;
122
- /** @internal */
123
- init(): void;
124
- /** @internal */
282
+ init(channel: CliChannel | undefined): void;
125
283
  register(listener: HmrAware): void;
126
284
  private handleUpdate;
127
285
  }
@@ -130,10 +288,19 @@ export declare class HmrManager {
130
288
  interface RawHot {
131
289
  send(event: string, data?: unknown): void;
132
290
  on(event: string, cb: (data: unknown) => void): void;
291
+ off(event: string, cb: (data: unknown) => void): void;
133
292
  }
134
293
  /** @internal */
135
294
  export declare function wrapHot<TSend, TRecv>(hot: RawHot): DevChannel<TSend, TRecv>;
136
295
  //#endregion
296
+ //#region src/hmr/wire.d.ts
297
+ export declare function toWireError(thrown: unknown): WireError;
298
+ export declare function fromWireError({ name, message, stack, code, cause, errors }: WireError): Error;
299
+ export declare function fromDevLogLine(line: string): LogRecord | undefined;
300
+ //#endregion
301
+ //#region src/hmr/forwardLogsToCli.d.ts
302
+ export declare function forwardLogsToCli(): void;
303
+ //#endregion
137
304
  //#region src/notices/index.d.ts
138
305
  export declare abstract class GateNotice extends Notice {
139
306
  render(): ReplyResponse;
@@ -178,10 +345,6 @@ export declare class HasDangerousPermissions extends Notice {
178
345
  render(): ReplyResponse;
179
346
  }
180
347
  //#endregion
181
- //#region src/stops/asError.d.ts
182
- /** @internal */
183
- export declare function asError(caught: unknown): Error;
184
- //#endregion
185
348
  //#region src/stops/NoticeCard.d.ts
186
349
  export declare class NoticeCard extends BuilderComponent<'container'> {
187
350
  constructor(description: string, title?: string);
@@ -347,5 +510,5 @@ export declare function eventResultFor(stopped: {
347
510
  */
348
511
  export declare function runAfter<Result>(ran: readonly Afterable<Result>[], result: Result, logger: Logger): Promise<void>;
349
512
  //#endregion
350
- export { type AckState, AckTrace, type AutocompletableNames, AutocompleteRouteBrand, type CacheFor, type ChoiceValueOf, type CommandBuilder, type CommandCtor, type CommandMeta, CommandMetadataKey, ComponentDefsBrand, ComponentKindBrand, ContextMenuKindBrand, type ContextMenuLeaves, ContextMenuNamesBrand, type DecodedComponentRoute, type DefaultSubscriptions, type DeployResult, type EntryFor, EventMetadataKey, EventMiddlewareMetadataKey, type FocusedField, type GateFitsWith, type GateObserver, GatedMetadataKey, type HasComponentDefs, type Initializeable, InteractionMetadataKey, type InteractionMiddlewareMetadata, InteractionMiddlewareMetadataKey, InteractionRouteKeys, type MatchArms, type MenuCacheFor, MiddlewareKindsBrand, type MiddlewareRegistration, type MiddlewareRegistrationOf, type NamesFor, type OptionKind, type OptionLens, PAGE_MAX, type PageCursor, PermissionNames, type PluginArgs, type PluginCtor, PublishDefault, RegisterDefaults, RegisterSubscriber, RegisteredCount, type ReplyMethod, type ReplyTelemetry, type RoutableConstructor, type RouteCache, type SerializedReply, type SingleParams, type SlashOption, type SlashOptions, SlashRouteBrand, type SlashRouteEntry, type SlowGateMonitor, type StoredSubscriberCtor, SubscribeMetadataKey, type SubscriberRegistration, UnregisterSubscriber, VerifyWebhooks, WebhookUrlMetadataKey, busLoggerOf, checkAckLegality, contextMenuLeaves, interactionMiddlewareMetaOf, pageCursor, pickNotice, registrationFor, reportedWrite, sendTarget, serializeReply };
513
+ export { type AckState, AckTrace, type AutocompletableNames, AutocompleteRouteBrand, type BakedIds, type CacheFor, type ChoiceValueOf, type CommandBody, type CommandBuilder, type CommandCtor, type CommandMeta, CommandMetadataKey, type CommandRef, type CommandScopes, ComponentDefsBrand, ComponentKindBrand, ContextMenuKindBrand, type ContextMenuLeaves, ContextMenuNamesBrand, CoordinatedStartup, type DecodedComponentRoute, type DefaultSubscriptions, type DeployResult, type EntryFor, EventMetadataKey, EventMiddlewareMetadataKey, FixedScope, type FocusedField, GLOBAL_ID, type GateFitsWith, type GateObserver, GatedMetadataKey, type GuildSummary, type HasComponentDefs, type Initializeable, InteractionMetadataKey, type InteractionMiddlewareMetadata, InteractionMiddlewareMetadataKey, InteractionRouteKeys, type LinkedCommands, type MatchArms, type MenuCacheFor, MiddlewareKindsBrand, type MiddlewareRegistration, type MiddlewareRegistrationOf, type NamesFor, type OptionKind, type OptionLens, PAGE_MAX, type PageCursor, PermissionNames, type PluginArgs, type PluginCtor, PublishDefault, RegisterDefaults, RegisterSubscriber, RegisteredCount, type ReplyMethod, type ReplyTelemetry, type RoutableConstructor, type RouteCache, type ScopeId, type SerializedReply, type SingleParams, type SlashOption, type SlashOptions, SlashRouteBrand, type SlashRouteEntry, type SlowGateMonitor, type StoredSubscriberCtor, SubscribeMetadataKey, type SubscriberRegistration, UnregisterSubscriber, VerifyWebhooks, WebhookUrlMetadataKey, attachmentsOf, busLoggerOf, checkAckLegality, commandKey, commandRefOf, commandsRoute, globalFirst, indexById, installLinks, interactionMiddlewareMetaOf, linkCommands, pageCursor, pickNotice, registrationFor, reportedWrite, resolveDeployTarget, scopeIdsOf, sealAttachments, sendTarget, serializeReply, skippedNote, warnLinks };
351
514
  //# sourceMappingURL=internal.index.d.mts.map