dfx 0.113.0 → 0.115.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 (43) hide show
  1. package/Cache/driver.d.ts.map +1 -1
  2. package/Cache/memoryTTL.d.ts.map +1 -1
  3. package/Cache/prelude.d.ts.map +1 -1
  4. package/Cache.d.ts.map +1 -1
  5. package/DiscordConfig.d.ts.map +1 -1
  6. package/DiscordGateway/Shard/heartbeats.d.ts.map +1 -1
  7. package/DiscordGateway/Shard/identify.d.ts.map +1 -1
  8. package/DiscordGateway/Shard/sendEvents.d.ts.map +1 -1
  9. package/DiscordGateway/Shard/utils.d.ts.map +1 -1
  10. package/DiscordGateway/Shard.d.ts +2 -2
  11. package/DiscordGateway/Sharder.d.ts +1 -1
  12. package/DiscordREST/utils.d.ts.map +1 -1
  13. package/DiscordREST.d.ts +1 -2
  14. package/DiscordREST.d.ts.map +1 -1
  15. package/DiscordREST.js +2 -2
  16. package/DiscordREST.js.map +1 -1
  17. package/Helpers/flags.d.ts.map +1 -1
  18. package/Helpers/intents.d.ts.map +1 -1
  19. package/Helpers/interactions.d.ts.map +1 -1
  20. package/Helpers/members.d.ts.map +1 -1
  21. package/Helpers/permissions.d.ts.map +1 -1
  22. package/Helpers/ui.d.ts.map +1 -1
  23. package/Interactions/context.d.ts.map +1 -1
  24. package/Interactions/definitions.d.ts +5 -5
  25. package/Interactions/definitions.d.ts.map +1 -1
  26. package/Interactions/gateway.d.ts.map +1 -1
  27. package/Interactions/handlers.d.ts.map +1 -1
  28. package/Interactions/index.d.ts.map +1 -1
  29. package/Interactions/utils.d.ts.map +1 -1
  30. package/Interactions/webhook.d.ts.map +1 -1
  31. package/RateLimit/utils.d.ts.map +1 -1
  32. package/mjs/DiscordREST.mjs +2 -2
  33. package/mjs/DiscordREST.mjs.map +1 -1
  34. package/mjs/version.mjs +1 -1
  35. package/package.json +4 -4
  36. package/src/DiscordREST.ts +6 -12
  37. package/src/types.ts +4 -4
  38. package/src/version.ts +1 -1
  39. package/types.d.ts +4 -4
  40. package/types.d.ts.map +1 -1
  41. package/utils/Effect.d.ts.map +1 -1
  42. package/version.d.ts +1 -1
  43. package/version.js +1 -1
@@ -23,7 +23,6 @@ import * as HashSet from "effect/HashSet"
23
23
  import * as Layer from "effect/Layer"
24
24
  import * as Option from "effect/Option"
25
25
  import * as Ref from "effect/Ref"
26
- import type { Scope } from "effect/Scope"
27
26
  import * as Redacted from "effect/Redacted"
28
27
  import type * as Fiber from "effect/Fiber"
29
28
 
@@ -165,14 +164,13 @@ const make = Effect.gen(function* () {
165
164
 
166
165
  const executor = <A = unknown>(
167
166
  request: HttpRequest.HttpClientRequest,
168
- ): Effect.Effect<ResponseWithData<A>, DiscordRESTError, Scope> =>
167
+ ): Effect.Effect<ResponseWithData<A>, DiscordRESTError> =>
169
168
  requestRateLimit(request.url, request).pipe(
170
169
  Effect.zipLeft(globalRateLimit),
171
170
  Effect.zipRight(
172
171
  httpClient.execute(request) as Effect.Effect<
173
172
  ResponseWithData<A>,
174
- DiscordRESTError,
175
- Scope
173
+ DiscordRESTError
176
174
  >,
177
175
  ),
178
176
  Effect.tap(response => updateBuckets(request, response)),
@@ -268,21 +266,17 @@ class RestResponseImpl<T>
268
266
  implements RestResponse<T>
269
267
  {
270
268
  constructor(
271
- readonly effect: Effect.Effect<
272
- ResponseWithData<T>,
273
- DiscordRESTError,
274
- Scope
275
- >,
269
+ readonly effect: Effect.Effect<ResponseWithData<T>, DiscordRESTError>,
276
270
  ) {
277
271
  super()
278
272
  }
279
273
 
280
274
  commit(): Effect.Effect<ResponseWithData<T>, DiscordRESTError> {
281
- return Effect.scoped(this.effect)
275
+ return this.effect
282
276
  }
283
277
 
284
278
  get json() {
285
- return Effect.scoped(Effect.flatMap(this.effect, _ => _.json))
279
+ return Effect.flatMap(this.effect, _ => _.json)
286
280
  }
287
281
 
288
282
  get response() {
@@ -298,7 +292,7 @@ export interface DiscordRESTService
298
292
  extends Discord.Endpoints<Partial<HttpRequest.Options.NoUrl>> {
299
293
  readonly executor: <A = unknown>(
300
294
  request: HttpRequest.HttpClientRequest,
301
- ) => Effect.Effect<ResponseWithData<A>, DiscordRESTError, Scope>
295
+ ) => Effect.Effect<ResponseWithData<A>, DiscordRESTError>
302
296
  }
303
297
 
304
298
  export const DiscordREST = GenericTag<DiscordREST, DiscordRESTService>(
package/src/types.ts CHANGED
@@ -161,13 +161,13 @@ export interface AddGuildMemberParams {
161
161
  }
162
162
  export interface AllowedMention {
163
163
  /** An array of allowed mention types to parse from the content. */
164
- readonly parse: Array<AllowedMentionType>
164
+ readonly parse?: Array<AllowedMentionType>
165
165
  /** Array of role_ids to mention (Max size of 100) */
166
- readonly roles: Array<Snowflake>
166
+ readonly roles?: Array<Snowflake>
167
167
  /** Array of user_ids to mention (Max size of 100) */
168
- readonly users: Array<Snowflake>
168
+ readonly users?: Array<Snowflake>
169
169
  /** For replies, whether to mention the author of the message being replied to (default false) */
170
- readonly replied_user: boolean
170
+ readonly replied_user?: boolean
171
171
  }
172
172
  export enum AllowedMentionType {
173
173
  /** Controls role mentions */
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const LIB_VERSION = "0.113.0";
1
+ export const LIB_VERSION = "0.115.0";
package/types.d.ts CHANGED
@@ -160,13 +160,13 @@ export interface AddGuildMemberParams {
160
160
  }
161
161
  export interface AllowedMention {
162
162
  /** An array of allowed mention types to parse from the content. */
163
- readonly parse: Array<AllowedMentionType>;
163
+ readonly parse?: Array<AllowedMentionType>;
164
164
  /** Array of role_ids to mention (Max size of 100) */
165
- readonly roles: Array<Snowflake>;
165
+ readonly roles?: Array<Snowflake>;
166
166
  /** Array of user_ids to mention (Max size of 100) */
167
- readonly users: Array<Snowflake>;
167
+ readonly users?: Array<Snowflake>;
168
168
  /** For replies, whether to mention the author of the message being replied to (default false) */
169
- readonly replied_user: boolean;
169
+ readonly replied_user?: boolean;
170
170
  }
171
171
  export declare enum AllowedMentionType {
172
172
  /** Controls role mentions */