mini-interactions 0.0.0-stage → 0.16.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 (154) hide show
  1. package/LICENSE +21 -0
  2. package/MIGRATION.md +126 -0
  3. package/README.md +303 -2
  4. package/dist/bot.d.ts +113 -0
  5. package/dist/bot.js +293 -0
  6. package/dist/builders/ActionRowBuilder.d.ts +22 -0
  7. package/dist/builders/ActionRowBuilder.js +33 -0
  8. package/dist/builders/AutomodRuleBuilder.d.ts +45 -0
  9. package/dist/builders/AutomodRuleBuilder.js +151 -0
  10. package/dist/builders/ButtonBuilder.d.ts +53 -0
  11. package/dist/builders/ButtonBuilder.js +124 -0
  12. package/dist/builders/ChannelSelectMenuBuilder.d.ts +53 -0
  13. package/dist/builders/ChannelSelectMenuBuilder.js +105 -0
  14. package/dist/builders/CheckboxBuilder.d.ts +20 -0
  15. package/dist/builders/CheckboxBuilder.js +20 -0
  16. package/dist/builders/CheckboxGroupBuilder.d.ts +25 -0
  17. package/dist/builders/CheckboxGroupBuilder.js +48 -0
  18. package/dist/builders/EmbedBuilder.d.ts +33 -0
  19. package/dist/builders/EmbedBuilder.js +103 -0
  20. package/dist/builders/FileUploadBuilder.d.ts +17 -0
  21. package/dist/builders/FileUploadBuilder.js +22 -0
  22. package/dist/builders/LabelBuilder.d.ts +16 -0
  23. package/dist/builders/LabelBuilder.js +21 -0
  24. package/dist/builders/MiniContainerBuilder.d.ts +131 -0
  25. package/dist/builders/MiniContainerBuilder.js +347 -0
  26. package/dist/builders/ModalBuilder.d.ts +16 -0
  27. package/dist/builders/ModalBuilder.js +36 -0
  28. package/dist/builders/ModalChannelSelectMenuBuilder.d.ts +29 -0
  29. package/dist/builders/ModalChannelSelectMenuBuilder.js +25 -0
  30. package/dist/builders/ModalMentionableSelectMenuBuilder.d.ts +53 -0
  31. package/dist/builders/ModalMentionableSelectMenuBuilder.js +87 -0
  32. package/dist/builders/ModalRoleSelectMenuBuilder.d.ts +27 -0
  33. package/dist/builders/ModalRoleSelectMenuBuilder.js +24 -0
  34. package/dist/builders/ModalStringSelectMenuBuilder.d.ts +62 -0
  35. package/dist/builders/ModalStringSelectMenuBuilder.js +120 -0
  36. package/dist/builders/ModalUserSelectMenuBuilder.d.ts +53 -0
  37. package/dist/builders/ModalUserSelectMenuBuilder.js +96 -0
  38. package/dist/builders/RadioBuilder.d.ts +22 -0
  39. package/dist/builders/RadioBuilder.js +36 -0
  40. package/dist/builders/RoleSelectMenuBuilder.d.ts +47 -0
  41. package/dist/builders/RoleSelectMenuBuilder.js +92 -0
  42. package/dist/builders/StringSelectMenuBuilder.d.ts +52 -0
  43. package/dist/builders/StringSelectMenuBuilder.js +104 -0
  44. package/dist/builders/StringSelectMenuOptionBuilder.d.ts +46 -0
  45. package/dist/builders/StringSelectMenuOptionBuilder.js +106 -0
  46. package/dist/builders/TextInputBuilder.d.ts +23 -0
  47. package/dist/builders/TextInputBuilder.js +26 -0
  48. package/dist/builders/index.d.ts +44 -0
  49. package/dist/builders/index.js +22 -0
  50. package/dist/builders/shared.d.ts +8 -0
  51. package/dist/builders/shared.js +11 -0
  52. package/dist/cli.d.ts +2 -0
  53. package/dist/cli.js +71 -0
  54. package/dist/commands/CommandBuilder.d.ts +278 -0
  55. package/dist/commands/CommandBuilder.js +687 -0
  56. package/dist/commands/ContextMenuCommandBuilder.d.ts +94 -0
  57. package/dist/commands/ContextMenuCommandBuilder.js +145 -0
  58. package/dist/core/http/DiscordRestClient.d.ts +400 -0
  59. package/dist/core/http/DiscordRestClient.js +988 -0
  60. package/dist/core/interactions/InteractionContext.d.ts +33 -0
  61. package/dist/core/interactions/InteractionContext.js +61 -0
  62. package/dist/core/interactions/InteractionVerifier.d.ts +8 -0
  63. package/dist/core/interactions/InteractionVerifier.js +9 -0
  64. package/dist/core/messages/DiscordSentMessage.d.ts +32 -0
  65. package/dist/core/messages/DiscordSentMessage.js +64 -0
  66. package/dist/core/messages/message-payloads.d.ts +94 -0
  67. package/dist/core/messages/message-payloads.js +99 -0
  68. package/dist/core/webhooks/DiscordWebhook.d.ts +14 -0
  69. package/dist/core/webhooks/DiscordWebhook.js +69 -0
  70. package/dist/database/MiniDataBuilder.d.ts +61 -0
  71. package/dist/database/MiniDataBuilder.js +98 -0
  72. package/dist/database/MiniDatabase.d.ts +67 -0
  73. package/dist/database/MiniDatabase.js +222 -0
  74. package/dist/database/MiniDatabaseBuilder.d.ts +58 -0
  75. package/dist/database/MiniDatabaseBuilder.js +84 -0
  76. package/dist/database/index.d.ts +5 -0
  77. package/dist/database/index.js +3 -0
  78. package/dist/identity/ApplicationIdentityProfile.d.ts +188 -0
  79. package/dist/identity/ApplicationIdentityProfile.js +207 -0
  80. package/dist/index.d.ts +54 -0
  81. package/dist/index.js +34 -0
  82. package/dist/lobby/Lobby.d.ts +150 -0
  83. package/dist/lobby/Lobby.js +90 -0
  84. package/dist/node/MiniInteraction.d.ts +199 -0
  85. package/dist/node/MiniInteraction.js +861 -0
  86. package/dist/node/index.d.ts +2 -0
  87. package/dist/node/index.js +1 -0
  88. package/dist/oauth2/DiscordOAuth.d.ts +49 -0
  89. package/dist/oauth2/DiscordOAuth.js +113 -0
  90. package/dist/oauth2/OAuth2Builder.d.ts +296 -0
  91. package/dist/oauth2/OAuth2Builder.js +435 -0
  92. package/dist/oauth2/OAuth2Scopes.d.ts +285 -0
  93. package/dist/oauth2/OAuth2Scopes.js +438 -0
  94. package/dist/oauth2/OAuthTokenStorage.d.ts +37 -0
  95. package/dist/oauth2/OAuthTokenStorage.js +109 -0
  96. package/dist/oauth2/index.d.ts +8 -0
  97. package/dist/oauth2/index.js +4 -0
  98. package/dist/router/AutocompleteContext.d.ts +36 -0
  99. package/dist/router/AutocompleteContext.js +82 -0
  100. package/dist/router/InteractionRouter.d.ts +82 -0
  101. package/dist/router/InteractionRouter.js +225 -0
  102. package/dist/types/ButtonStyle.d.ts +16 -0
  103. package/dist/types/ButtonStyle.js +17 -0
  104. package/dist/types/ChannelType.d.ts +2 -0
  105. package/dist/types/ChannelType.js +2 -0
  106. package/dist/types/Commands.d.ts +35 -0
  107. package/dist/types/Commands.js +1 -0
  108. package/dist/types/ComponentTypes.d.ts +19 -0
  109. package/dist/types/ComponentTypes.js +1 -0
  110. package/dist/types/InteractionFlags.d.ts +5 -0
  111. package/dist/types/InteractionFlags.js +6 -0
  112. package/dist/types/PermissionFlags.d.ts +56 -0
  113. package/dist/types/PermissionFlags.js +5 -0
  114. package/dist/types/RoleConnectionMetadata.d.ts +14 -0
  115. package/dist/types/RoleConnectionMetadata.js +1 -0
  116. package/dist/types/RoleConnectionMetadataTypes.d.ts +11 -0
  117. package/dist/types/RoleConnectionMetadataTypes.js +12 -0
  118. package/dist/types/SeparatorSpacingSize.d.ts +2 -0
  119. package/dist/types/SeparatorSpacingSize.js +2 -0
  120. package/dist/types/checkbox.d.ts +16 -0
  121. package/dist/types/checkbox.js +12 -0
  122. package/dist/types/discord.d.ts +2 -0
  123. package/dist/types/discord.js +1 -0
  124. package/dist/types/radio.d.ts +12 -0
  125. package/dist/types/radio.js +10 -0
  126. package/dist/types/validation.d.ts +14 -0
  127. package/dist/types/validation.js +40 -0
  128. package/dist/utils/CommandInteractionOptions.d.ts +66 -0
  129. package/dist/utils/CommandInteractionOptions.js +364 -0
  130. package/dist/utils/ContextMenuInteraction.d.ts +76 -0
  131. package/dist/utils/ContextMenuInteraction.js +152 -0
  132. package/dist/utils/MessageComponentInteraction.d.ts +148 -0
  133. package/dist/utils/MessageComponentInteraction.js +259 -0
  134. package/dist/utils/ModalSubmitInteraction.d.ts +86 -0
  135. package/dist/utils/ModalSubmitInteraction.js +267 -0
  136. package/dist/utils/cdn.d.ts +30 -0
  137. package/dist/utils/cdn.js +60 -0
  138. package/dist/utils/formatting.d.ts +76 -0
  139. package/dist/utils/formatting.js +132 -0
  140. package/dist/utils/interactionMessageHelpers.d.ts +40 -0
  141. package/dist/utils/interactionMessageHelpers.js +118 -0
  142. package/dist/utils/localization.d.ts +25 -0
  143. package/dist/utils/localization.js +38 -0
  144. package/dist/utils/snowflake.d.ts +19 -0
  145. package/dist/utils/snowflake.js +32 -0
  146. package/dist/webhooks/WebhookEvent.d.ts +229 -0
  147. package/dist/webhooks/WebhookEvent.js +59 -0
  148. package/dist/webhooks/WebhookEventRouter.d.ts +123 -0
  149. package/dist/webhooks/WebhookEventRouter.js +160 -0
  150. package/dist/webhooks/WebhookEventVerifier.d.ts +33 -0
  151. package/dist/webhooks/WebhookEventVerifier.js +37 -0
  152. package/dist/webhooks/index.d.ts +6 -0
  153. package/dist/webhooks/index.js +3 -0
  154. package/package.json +93 -4
@@ -0,0 +1,160 @@
1
+ import { WebhookEventPayloadType, } from "./WebhookEvent.js";
2
+ import { InvalidWebhookEventSignatureError, verifyWebhookEventRequest, } from "./WebhookEventVerifier.js";
3
+ /**
4
+ * Dispatches verified Webhook Events to handlers by event name.
5
+ *
6
+ * Webhook events arrive **out of order and are retried** on failure, so keep
7
+ * handlers idempotent. Do the minimum work needed to ack and defer the rest
8
+ * (see `WebhookEventEndpoint`'s `waitUntil` option) — Discord expects a
9
+ * response within 3 seconds.
10
+ */
11
+ export class WebhookEventRouter {
12
+ handlers = new Map();
13
+ middleware = [];
14
+ anyHandler;
15
+ pingHandler;
16
+ errorHandler;
17
+ /** Registers a handler for one event type. */
18
+ on(name, handler) {
19
+ this.handlers.set(name, handler);
20
+ return this;
21
+ }
22
+ /**
23
+ * Registers the fallback for event types without a dedicated handler.
24
+ * Specific handlers win; this only runs when nothing matched.
25
+ */
26
+ onAny(handler) {
27
+ this.anyHandler = handler;
28
+ return this;
29
+ }
30
+ /**
31
+ * Registers a `PING` handler. Optional: a `PING` is always acked with `204`
32
+ * whether or not you handle it.
33
+ */
34
+ onPing(handler) {
35
+ this.pingHandler = handler;
36
+ return this;
37
+ }
38
+ /** Adds middleware that runs before dispatch. Call `next()` to continue. */
39
+ use(middleware) {
40
+ this.middleware.push(middleware);
41
+ return this;
42
+ }
43
+ /** Sets the error hook used when middleware or a handler throws. */
44
+ onError(handler) {
45
+ this.errorHandler = handler;
46
+ return this;
47
+ }
48
+ /**
49
+ * Runs the middleware chain and the matched handler.
50
+ *
51
+ * @throws when a handler throws and no {@link onError} hook is registered.
52
+ */
53
+ async dispatch(request, ctx = {}) {
54
+ const context = {
55
+ applicationId: request.application_id,
56
+ ...ctx,
57
+ };
58
+ try {
59
+ let index = -1;
60
+ const run = async () => {
61
+ index += 1;
62
+ if (index < this.middleware.length) {
63
+ await this.middleware[index](request, context, run);
64
+ return;
65
+ }
66
+ await this.handle(request, context);
67
+ };
68
+ await run();
69
+ }
70
+ catch (error) {
71
+ if (!this.errorHandler)
72
+ throw error;
73
+ await this.errorHandler(error, request, context);
74
+ }
75
+ }
76
+ async handle(request, ctx) {
77
+ if (request.type === WebhookEventPayloadType.Ping) {
78
+ await this.pingHandler?.(request, ctx);
79
+ return;
80
+ }
81
+ const handler = this.handlers.get(request.event.type);
82
+ if (handler) {
83
+ await handler(request, ctx);
84
+ return;
85
+ }
86
+ await this.anyHandler?.(request, ctx);
87
+ }
88
+ }
89
+ /**
90
+ * Verifies and dispatches Discord Webhook Events for a single endpoint URL.
91
+ *
92
+ * ```ts
93
+ * const endpoint = new WebhookEventEndpoint({
94
+ * publicKey: process.env.DISCORD_PUBLIC_KEY!,
95
+ * router: new WebhookEventRouter().on(
96
+ * WebhookEventType.ApplicationDeauthorized,
97
+ * (payload) => unlinkAccount(payload.event.data!.user.id),
98
+ * ),
99
+ * });
100
+ *
101
+ * export async function POST(req: Request) {
102
+ * return endpoint.handleFetch(req);
103
+ * }
104
+ * ```
105
+ */
106
+ export class WebhookEventEndpoint {
107
+ options;
108
+ constructor(options) {
109
+ this.options = options;
110
+ }
111
+ /**
112
+ * Verifies the signature, dispatches the event and returns the status to send
113
+ * back. Framework-agnostic — wire it into any HTTP server.
114
+ */
115
+ async handle(request) {
116
+ let parsed;
117
+ try {
118
+ parsed = await verifyWebhookEventRequest({
119
+ ...request,
120
+ publicKey: this.options.publicKey,
121
+ });
122
+ }
123
+ catch (error) {
124
+ return {
125
+ status: error instanceof InvalidWebhookEventSignatureError ? 401 : 400,
126
+ body: "",
127
+ };
128
+ }
129
+ const dispatch = this.options.router?.dispatch(parsed) ?? Promise.resolve();
130
+ if (this.options.waitUntil) {
131
+ this.options.waitUntil(dispatch.catch(() => undefined));
132
+ return { status: 204, body: "" };
133
+ }
134
+ try {
135
+ await dispatch;
136
+ }
137
+ catch {
138
+ return { status: 500, body: "" };
139
+ }
140
+ return { status: 204, body: "" };
141
+ }
142
+ /**
143
+ * Convenience wrapper for Fetch-API runtimes (Cloudflare Workers, Bun, Deno,
144
+ * Vercel Edge).
145
+ *
146
+ * Always returns a bodiless response with an explicit `Content-Type`, which
147
+ * Discord requires when acknowledging `PING`s.
148
+ */
149
+ async handleFetch(request) {
150
+ const result = await this.handle({
151
+ body: await request.text(),
152
+ signature: request.headers.get("x-signature-ed25519") ?? undefined,
153
+ timestamp: request.headers.get("x-signature-timestamp") ?? undefined,
154
+ });
155
+ return new Response(null, {
156
+ status: result.status,
157
+ headers: { "Content-Type": "application/json; charset=utf-8" },
158
+ });
159
+ }
160
+ }
@@ -0,0 +1,33 @@
1
+ import type { WebhookEventRequest } from "./WebhookEvent.js";
2
+ /**
3
+ * Thrown when a Webhook Events request is missing its signature headers or the
4
+ * Ed25519 signature does not match. Respond with `401` when you catch this.
5
+ */
6
+ export declare class InvalidWebhookEventSignatureError extends Error {
7
+ constructor(message?: string);
8
+ }
9
+ export type VerifyWebhookEventRequest = {
10
+ /** The raw request body, before any parsing. */
11
+ body: string | Uint8Array;
12
+ /** The `X-Signature-Ed25519` header. */
13
+ signature?: string;
14
+ /** The `X-Signature-Timestamp` header. */
15
+ timestamp?: string;
16
+ /** Your app's public key from the Developer Portal. */
17
+ publicKey: string;
18
+ };
19
+ /**
20
+ * Verifies and parses one Webhook Events request.
21
+ *
22
+ * Discord signs **every** delivery — including the `PING` it sends when you save
23
+ * the endpoint URL — and routinely re-checks your endpoint by sending
24
+ * deliberately invalid signatures. Failing to reject those gets your Webhook
25
+ * Events URL removed, so always call this before reading the payload and verify
26
+ * against the **raw** body (re-serialised JSON will not match).
27
+ *
28
+ * @throws {InvalidWebhookEventSignatureError} when headers are missing or the
29
+ * signature does not verify.
30
+ *
31
+ * @see {@link https://docs.discord.com/developers/events/webhook-events#preparing-for-events}
32
+ */
33
+ export declare function verifyWebhookEventRequest(request: VerifyWebhookEventRequest): Promise<WebhookEventRequest>;
@@ -0,0 +1,37 @@
1
+ import { verifyKey } from "discord-interactions";
2
+ /**
3
+ * Thrown when a Webhook Events request is missing its signature headers or the
4
+ * Ed25519 signature does not match. Respond with `401` when you catch this.
5
+ */
6
+ export class InvalidWebhookEventSignatureError extends Error {
7
+ constructor(message = "invalid signature") {
8
+ super(`[WebhookEventVerifier] ${message}`);
9
+ this.name = "InvalidWebhookEventSignatureError";
10
+ }
11
+ }
12
+ /**
13
+ * Verifies and parses one Webhook Events request.
14
+ *
15
+ * Discord signs **every** delivery — including the `PING` it sends when you save
16
+ * the endpoint URL — and routinely re-checks your endpoint by sending
17
+ * deliberately invalid signatures. Failing to reject those gets your Webhook
18
+ * Events URL removed, so always call this before reading the payload and verify
19
+ * against the **raw** body (re-serialised JSON will not match).
20
+ *
21
+ * @throws {InvalidWebhookEventSignatureError} when headers are missing or the
22
+ * signature does not verify.
23
+ *
24
+ * @see {@link https://docs.discord.com/developers/events/webhook-events#preparing-for-events}
25
+ */
26
+ export async function verifyWebhookEventRequest(request) {
27
+ const { body, signature, timestamp, publicKey } = request;
28
+ if (!signature || !timestamp) {
29
+ throw new InvalidWebhookEventSignatureError("missing X-Signature-Ed25519 or X-Signature-Timestamp header");
30
+ }
31
+ const valid = await verifyKey(body, signature, timestamp, publicKey);
32
+ if (!valid) {
33
+ throw new InvalidWebhookEventSignatureError();
34
+ }
35
+ const text = typeof body === "string" ? body : new TextDecoder().decode(body);
36
+ return JSON.parse(text);
37
+ }
@@ -0,0 +1,6 @@
1
+ export { WebhookEventPayloadType, WebhookEventIntegrationType, WebhookEventType, isWebhookEventPayload, } from "./WebhookEvent.js";
2
+ export type { ApplicationAuthorizedEventData, ApplicationDeauthorizedEventData, GameDirectMessageEventData, LobbyMessageDeleteEventData, LobbyMessageEventData, LobbyMessageUpdateEventData, WebhookEventBody, WebhookEventDataMap, WebhookEventMessage, WebhookEventMessageBody, WebhookEventPayload, WebhookEventPayloadOf, WebhookEventPingPayload, WebhookEventRequest, WebhookEventSdkDirectMessage, } from "./WebhookEvent.js";
3
+ export { InvalidWebhookEventSignatureError, verifyWebhookEventRequest, } from "./WebhookEventVerifier.js";
4
+ export type { VerifyWebhookEventRequest } from "./WebhookEventVerifier.js";
5
+ export { WebhookEventRouter, WebhookEventEndpoint } from "./WebhookEventRouter.js";
6
+ export type { WebhookEventAnyHandler, WebhookEventContext, WebhookEventEndpointOptions, WebhookEventEndpointResult, WebhookEventErrorHandler, WebhookEventHandler, WebhookEventHttpRequest, WebhookEventMiddleware, WebhookEventPingHandler, } from "./WebhookEventRouter.js";
@@ -0,0 +1,3 @@
1
+ export { WebhookEventPayloadType, WebhookEventIntegrationType, WebhookEventType, isWebhookEventPayload, } from "./WebhookEvent.js";
2
+ export { InvalidWebhookEventSignatureError, verifyWebhookEventRequest, } from "./WebhookEventVerifier.js";
3
+ export { WebhookEventRouter, WebhookEventEndpoint } from "./WebhookEventRouter.js";
package/package.json CHANGED
@@ -1,6 +1,95 @@
1
1
  {
2
2
  "name": "mini-interactions",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.16.0",
4
+ "description": "Edge-first, type-safe Discord interactions for modern TypeScript bots.",
5
+ "type": "module",
6
+ "main": "dist/index.js",
7
+ "types": "dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "import": "./dist/index.js"
12
+ },
13
+ "./database": {
14
+ "types": "./dist/database/index.d.ts",
15
+ "import": "./dist/database/index.js"
16
+ },
17
+ "./oauth2": {
18
+ "types": "./dist/oauth2/index.d.ts",
19
+ "import": "./dist/oauth2/index.js"
20
+ },
21
+ "./webhooks": {
22
+ "types": "./dist/webhooks/index.d.ts",
23
+ "import": "./dist/webhooks/index.js"
24
+ },
25
+ "./node": {
26
+ "types": "./dist/node/index.d.ts",
27
+ "import": "./dist/node/index.js"
28
+ },
29
+ "./package.json": "./package.json"
30
+ },
31
+ "files": [
32
+ "dist",
33
+ "README.md",
34
+ "LICENSE",
35
+ "MIGRATION.md"
36
+ ],
37
+ "sideEffects": false,
38
+ "scripts": {
39
+ "build": "bun scripts/build.mjs",
40
+ "typecheck": "tsc --noEmit",
41
+ "test": "bun test",
42
+ "verify": "bun run typecheck && bun test && bun run build",
43
+ "prepublishOnly": "bun run verify"
44
+ },
45
+ "publishConfig": {
46
+ "access": "public"
47
+ },
48
+ "repository": {
49
+ "type": "git",
50
+ "url": "git+https://github.com/theminesastudios/mini-interaction.git"
51
+ },
52
+ "keywords": [
53
+ "discord",
54
+ "interactions",
55
+ "bot",
56
+ "cloudflare-workers",
57
+ "vercel",
58
+ "bun",
59
+ "typescript"
60
+ ],
61
+ "author": "Minesa",
62
+ "license": "MIT",
63
+ "bugs": {
64
+ "url": "https://github.com/theminesastudios/mini-interaction/issues"
65
+ },
66
+ "homepage": "https://github.com/theminesastudios/mini-interaction#readme",
67
+ "dependencies": {
68
+ "discord-api-types": "^0.38.32",
69
+ "discord-interactions": "^4.4.0"
70
+ },
71
+ "peerDependencies": {
72
+ "@vercel/functions": "^1.6.0",
73
+ "mongodb": "^7.0.0"
74
+ },
75
+ "peerDependenciesMeta": {
76
+ "@vercel/functions": {
77
+ "optional": true
78
+ },
79
+ "mongodb": {
80
+ "optional": true
81
+ }
82
+ },
83
+ "devDependencies": {
84
+ "@types/node": "^24.10.0",
85
+ "typescript": "^5.9.3",
86
+ "@vercel/functions": "^1.6.0"
87
+ },
88
+ "engines": {
89
+ "node": ">=20",
90
+ "bun": ">=1.2"
91
+ },
92
+ "bin": {
93
+ "mini-interactions": "dist/cli.js"
94
+ }
95
+ }