experimental-ash 0.6.0 → 0.6.1

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.
@@ -6,7 +6,7 @@ import { ASH_PACKAGE_NAME } from "#package-name.js";
6
6
  let cachedPackageInfo;
7
7
  // The package build stamps the published version into `dist` so bundled
8
8
  // deployments can still report package metadata without resolving package.json.
9
- const BUNDLED_FALLBACK_PACKAGE_VERSION = "0.6.0";
9
+ const BUNDLED_FALLBACK_PACKAGE_VERSION = "0.6.1";
10
10
  const BUNDLED_FALLBACK_PACKAGE_VERSION_PLACEHOLDER = "__ASH_PACKAGE_VERSION_PLACEHOLDER__";
11
11
  const WORKFLOW_MODULE_ALIASES = {
12
12
  "workflow/api": "src/compiled/@workflow/core/runtime.js",
@@ -1 +1 @@
1
- export { defineChannel, POST, GET, PUT, DELETE, type ChannelConfig, type ChannelEvents, type Session, type SessionHandle, type RouteDefinition, type RouteHandlerArgs, type SendFn, type SendOptions, type SendPayload, type GetSessionFn, } from "#public/definitions/defineChannel.js";
1
+ export { defineChannel, POST, GET, PUT, DELETE, type Channel, type ChannelConfig, type ChannelEvents, type Session, type SessionHandle, type RouteDefinition, type RouteHandlerArgs, type SendFn, type SendOptions, type SendPayload, type GetSessionFn, } from "#public/definitions/defineChannel.js";
@@ -1,4 +1,4 @@
1
1
  export { slack, type SlackOptions } from "#public/channels/slack/slack.js";
2
- export { slackChannel, type SlackApiHandle, type SlackApiResponse, type SlackChannelConfig, type SlackChannelEvents, type SlackChannelCredentials, type SlackContext, type SlackInteractionAction, type SlackReceiveArgs, } from "#public/channels/slack/slackChannel.js";
2
+ export { slackChannel, type SlackApiHandle, type SlackApiResponse, type SlackChannelConfig, type SlackChannelEvents, type SlackChannelCredentials, type SlackChannelState, type SlackContext, type SlackInteractionAction, type SlackReceiveArgs, } from "#public/channels/slack/slackChannel.js";
3
3
  export { Actions, Button, Card, CardText, Divider, Fields, Image, LinkButton, Modal, RadioSelect, Section, Select, SelectOption, Table, TextInput, } from "#compiled/chat/index.js";
4
4
  export type { AdapterPostableMessage, Attachment, Author, CardElement, FileUpload, Message, PostableMessage, SentMessage, Thread, } from "#compiled/chat/index.js";
@@ -1,14 +1,9 @@
1
1
  import type { SessionAuthContext } from "#channel/types.js";
2
2
  import type { Channel } from "#public/definitions/defineChannel.js";
3
- import { type SlackChannelCredentials } from "#public/channels/slack/slackChannel.js";
4
- interface SlackChannelState {
5
- serializedThread: import("#compiled/chat/index.js").SerializedThread | null;
6
- teamId: string | null;
7
- }
3
+ import { type SlackChannelCredentials, type SlackChannelState } from "#public/channels/slack/slackChannel.js";
8
4
  export interface SlackOptions {
9
5
  readonly auth?: (message: import("#compiled/chat/index.js").Message) => SessionAuthContext | null;
10
6
  readonly credentials?: SlackChannelCredentials;
11
7
  readonly botName?: string;
12
8
  }
13
9
  export declare function slack(options?: SlackOptions): Channel<SlackChannelState>;
14
- export {};
@@ -1,4 +1,4 @@
1
- import { slackChannel } from "#public/channels/slack/slackChannel.js";
1
+ import { slackChannel, } from "#public/channels/slack/slackChannel.js";
2
2
  function defaultSlackAuth(message) {
3
3
  const author = message.author;
4
4
  if (!author)
@@ -23,7 +23,7 @@ export interface SlackApiHandle {
23
23
  request(operation: string, body: unknown): Promise<SlackApiResponse>;
24
24
  }
25
25
  type SlackEventHandler<T extends HandleMessageStreamEvent["type"]> = (data: EventData<T>, ctx: SlackContext) => void | Promise<void>;
26
- interface SlackChannelState {
26
+ export interface SlackChannelState {
27
27
  serializedThread: SerializedThread | null;
28
28
  teamId: string | null;
29
29
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "experimental-ash",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "bin": {
5
5
  "ash": "./bin/ash.js",
6
6
  "experimental-ash": "./bin/ash.js"