dfx 0.80.3 → 0.81.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.
@@ -27,7 +27,7 @@ export interface OpsOptions<E, A> {
27
27
  remove: Stream.Stream<never, E, string>;
28
28
  }
29
29
  export declare const ops: <E, T>({ create, id, remove, update, }: OpsOptions<E, T>) => Stream.Stream<never, E, CacheOp<T>>;
30
- export declare const guilds: <RM, EM, E>(makeDriver: Effect.Effect<RM, EM, CacheDriver<E, Discord.Guild>>) => Effect.Effect<DiscordREST | DiscordGateway | Scope.Scope | RM, EM, Cache<E, DiscordRESTError | ResponseError, Discord.Guild>>;
31
- export declare const channels: <RM, EM, E>(makeDriver: Effect.Effect<RM, EM, ParentCacheDriver<E, Discord.Channel>>) => Effect.Effect<DiscordREST | DiscordGateway | Scope.Scope | RM, EM, ParentCache<E, DiscordRESTError | ResponseError, DiscordRESTError | ResponseError, Discord.Channel>>;
32
- export declare const roles: <RM, EM, E>(makeDriver: Effect.Effect<RM, EM, ParentCacheDriver<E, Discord.Role>>) => Effect.Effect<DiscordREST | DiscordGateway | Scope.Scope | RM, EM, ParentCache<E, CacheMissError, DiscordRESTError | ResponseError, Discord.Role>>;
30
+ export declare const guilds: <RM, EM, E>(makeDriver: Effect.Effect<RM, EM, CacheDriver<E, Discord.Guild>>) => Effect.Effect<Scope.Scope | DiscordREST | DiscordGateway | RM, EM, Cache<E, DiscordRESTError | ResponseError, Discord.Guild>>;
31
+ export declare const channels: <RM, EM, E>(makeDriver: Effect.Effect<RM, EM, ParentCacheDriver<E, Discord.Channel>>) => Effect.Effect<Scope.Scope | DiscordREST | DiscordGateway | RM, EM, ParentCache<E, DiscordRESTError | ResponseError, DiscordRESTError | ResponseError, Discord.Channel>>;
32
+ export declare const roles: <RM, EM, E>(makeDriver: Effect.Effect<RM, EM, ParentCacheDriver<E, Discord.Role>>) => Effect.Effect<Scope.Scope | DiscordREST | DiscordGateway | RM, EM, ParentCache<E, CacheMissError, DiscordRESTError | ResponseError, Discord.Role>>;
33
33
  //# sourceMappingURL=prelude.d.ts.map
@@ -5,7 +5,7 @@ import { DiscordConfig } from "dfx/DiscordConfig";
5
5
  import type { Message } from "dfx/DiscordGateway/DiscordWS";
6
6
  import { DiscordWS } from "dfx/DiscordGateway/DiscordWS";
7
7
  import { RateLimiter } from "dfx/RateLimit";
8
- export declare const make: Effect.Effect<DiscordConfig | RateLimiter | import("dfx/DiscordGateway/Messaging").Messsaging | DiscordWS, never, {
8
+ export declare const make: Effect.Effect<RateLimiter | DiscordConfig | import("dfx/DiscordGateway/Messaging").Messsaging | DiscordWS, never, {
9
9
  readonly connect: (shard: [id: number, count: number]) => Effect.Effect<import("effect/Scope").Scope, never, {
10
10
  readonly id: [id: number, count: number];
11
11
  readonly send: (p: Message) => Effect.Effect<never, never, boolean>;
@@ -21,7 +21,7 @@ export declare const Shard: Tag<Shard, {
21
21
  readonly send: (p: Message) => Effect.Effect<never, never, boolean>;
22
22
  }>;
23
23
  }>;
24
- export declare const ShardLive: Layer.Layer<DiscordConfig | import("dfx/RateLimit").RateLimitStore | import("dfx/DiscordGateway/DiscordWS").DiscordWSCodec, never, Shard>;
24
+ export declare const ShardLive: Layer.Layer<import("dfx/RateLimit").RateLimitStore | DiscordConfig | import("dfx/DiscordGateway/DiscordWS").DiscordWSCodec, never, Shard>;
25
25
  export interface RunningShard extends Effect.Effect.Success<ReturnType<ShardService["connect"]>> {
26
26
  }
27
27
  export {};
@@ -11,5 +11,5 @@ export interface Sharder {
11
11
  export declare const Sharder: Tag<Sharder, {
12
12
  readonly shards: Effect.Effect<never, never, HashSet.HashSet<RunningShard>>;
13
13
  }>;
14
- export declare const SharderLive: Layer.Layer<DiscordConfig | import("dfx/RateLimit").RateLimitStore | ShardStore | import("./DiscordWS").DiscordWSCodec, never, Sharder>;
14
+ export declare const SharderLive: Layer.Layer<import("dfx/RateLimit").RateLimitStore | DiscordConfig | import("./DiscordWS").DiscordWSCodec | ShardStore, never, Sharder>;
15
15
  //# sourceMappingURL=Sharder.d.ts.map
@@ -18,5 +18,5 @@ export interface DiscordGateway {
18
18
  }
19
19
  export declare const DiscordGateway: Tag<DiscordGateway, DiscordGateway>;
20
20
  export declare const make: Effect.Effect<import("dfx/DiscordGateway/Messaging").Messsaging | Sharder, never, DiscordGateway>;
21
- export declare const DiscordGatewayLive: Layer.Layer<import("./DiscordConfig").DiscordConfig | import("./RateLimit").RateLimitStore | import("./DiscordGateway/ShardStore").ShardStore | import("./DiscordGateway/DiscordWS").DiscordWSCodec, never, DiscordGateway>;
21
+ export declare const DiscordGatewayLive: Layer.Layer<import("./RateLimit").RateLimitStore | import("./DiscordConfig").DiscordConfig | import("./DiscordGateway/DiscordWS").DiscordWSCodec | import("./DiscordGateway/ShardStore").ShardStore, never, DiscordGateway>;
22
22
  //# sourceMappingURL=DiscordGateway.d.ts.map
package/DiscordREST.d.ts CHANGED
@@ -19,5 +19,5 @@ export interface DiscordRESTService extends Discord.Endpoints<Partial<Http.reque
19
19
  readonly executor: <A = unknown>(request: Http.request.ClientRequest) => Effect.Effect<never, DiscordRESTError, ResponseWithData<A>>;
20
20
  }
21
21
  export declare const DiscordREST: Tag<DiscordREST, DiscordRESTService>;
22
- export declare const DiscordRESTLive: Layer.Layer<DiscordConfig | RateLimitStore, never, DiscordREST>;
22
+ export declare const DiscordRESTLive: Layer.Layer<RateLimitStore | DiscordConfig, never, DiscordREST>;
23
23
  //# sourceMappingURL=DiscordREST.d.ts.map
@@ -47,7 +47,7 @@ export declare class SubCommandNotFound {
47
47
  readonly _tag = "SubCommandNotFound";
48
48
  constructor(data: Discord.ApplicationCommandDatum);
49
49
  }
50
- export declare const handleSubCommands: <NER extends Record<string, Effect.Effect<any, any, Discord.InteractionResponse>>>(commands: NER) => Effect.Effect<Discord.Interaction | Discord.ApplicationCommandDatum | Exclude<[NER[keyof NER]] extends [{
50
+ export declare const handleSubCommands: <NER extends Record<string, Effect.Effect<any, any, Discord.InteractionResponse>>>(commands: NER) => Effect.Effect<Discord.ApplicationCommandDatum | Discord.Interaction | Exclude<[NER[keyof NER]] extends [{
51
51
  [Effect.EffectTypeId]: {
52
52
  _R: (_: never) => infer R;
53
53
  };
@@ -10,7 +10,7 @@ import type { DiscordInteraction, InteractionBuilder } from "dfx/Interactions/in
10
10
  import * as FiberRef from "effect/FiberRef";
11
11
  export declare const interactionsSync: FiberRef.FiberRef<boolean>;
12
12
  export declare const setInteractionsSync: (enabled: boolean) => <R, E, A>(self: Layer.Layer<R, E, A>) => Layer.Layer<R, E, A>;
13
- export declare const run: <R, R2, E, TE, E2>(postHandler: (effect: Effect.Effect<DiscordREST | R | DiscordInteraction, DiscordRESTError | TE | DefinitionNotFound, void>) => Effect.Effect<R2, E2, void>) => (ix: InteractionBuilder<R, E, TE>) => Effect.Effect<DiscordREST | DiscordGateway | Exclude<R2, DiscordInteraction>, DiscordRESTError | Http.error.ResponseError | E2, never>;
13
+ export declare const run: <R, R2, E, TE, E2>(postHandler: (effect: Effect.Effect<DiscordREST | DiscordInteraction | R, DiscordRESTError | DefinitionNotFound | TE, void>) => Effect.Effect<R2, E2, void>) => (ix: InteractionBuilder<R, E, TE>) => Effect.Effect<DiscordREST | DiscordGateway | Exclude<R2, DiscordInteraction>, DiscordRESTError | Http.error.ResponseError | E2, never>;
14
14
  export interface InteractionsRegistryService {
15
15
  readonly register: <E>(ix: InteractionBuilder<never, E, never>) => Effect.Effect<never, never, void>;
16
16
  }
package/mjs/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const LIB_VERSION = "0.80.3";
1
+ export const LIB_VERSION = "0.81.0";
2
2
  //# sourceMappingURL=version.mjs.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dfx",
3
- "version": "0.80.3",
3
+ "version": "0.81.0",
4
4
  "description": "Effect-TS discord library",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -39,8 +39,8 @@
39
39
  "ws": "^8.15.1"
40
40
  },
41
41
  "peerDependencies": {
42
- "@effect/platform": "^0.35.0",
43
- "effect": "2.0.0-next.60"
42
+ "@effect/platform": "^0.38.0",
43
+ "effect": "2.0.0-next.61"
44
44
  },
45
45
  "optionalDependencies": {
46
46
  "bufferutil": "^4.0.8",
@@ -48,6 +48,6 @@
48
48
  "utf-8-validate": "^6.0.3",
49
49
  "zlib-sync": "^0.1.9"
50
50
  },
51
- "gitHead": "68cbb6d3bc9be2f7b91f6861d104824a00d0c17d",
51
+ "gitHead": "735fdd6267a03346e5d919ca59f052ea70e0009f",
52
52
  "main": "./index.js"
53
53
  }
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const LIB_VERSION = "0.80.3";
1
+ export const LIB_VERSION = "0.81.0";
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const LIB_VERSION = "0.80.3";
1
+ export declare const LIB_VERSION = "0.81.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -4,5 +4,5 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.LIB_VERSION = void 0;
7
- const LIB_VERSION = exports.LIB_VERSION = "0.80.3";
7
+ const LIB_VERSION = exports.LIB_VERSION = "0.81.0";
8
8
  //# sourceMappingURL=version.js.map