dfx 0.118.15 → 0.118.16

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.
@@ -31,7 +31,7 @@ export declare const DiscordWS: import("effect/Context").Tag<DiscordWS, {
31
31
  readonly take: Effect.Effect<Discord.GatewayReceivePayload, Cause.NoSuchElementException, never>;
32
32
  readonly setUrl: (url: string) => Effect.Effect<void, never, never>;
33
33
  readonly write: (message: MessageSend) => Effect.Effect<void>;
34
- }, never, Socket.WebSocketConstructor | import("effect/Scope").Scope>;
34
+ }, never, import("effect/Scope").Scope | Socket.WebSocketConstructor>;
35
35
  }>;
36
36
  export declare const DiscordWSLive: Layer.Layer<DiscordWS, never, DiscordWSCodec>;
37
37
  //# sourceMappingURL=DiscordWS.d.ts.map
@@ -7,7 +7,7 @@ import * as Layer from "effect/Layer";
7
7
  export declare const make: Effect.Effect<{
8
8
  readonly connect: (this: unknown, shard: [id: number, count: number]) => Effect.Effect<{
9
9
  readonly id: [id: number, count: number];
10
- }, never, import("@effect/platform/Socket").WebSocketConstructor | import("effect/Scope").Scope>;
10
+ }, never, import("effect/Scope").Scope | import("@effect/platform/Socket").WebSocketConstructor>;
11
11
  }, never, DiscordConfig | RateLimiter | DiscordWS | import("dfx/DiscordGateway/Messaging").Messsaging | ShardStateStore>;
12
12
  type ShardService = Effect.Effect.Success<typeof make>;
13
13
  export interface Shard {
@@ -16,7 +16,7 @@ export interface Shard {
16
16
  export declare const Shard: import("effect/Context").Tag<Shard, {
17
17
  readonly connect: (this: unknown, shard: [id: number, count: number]) => Effect.Effect<{
18
18
  readonly id: [id: number, count: number];
19
- }, never, import("@effect/platform/Socket").WebSocketConstructor | import("effect/Scope").Scope>;
19
+ }, never, import("effect/Scope").Scope | import("@effect/platform/Socket").WebSocketConstructor>;
20
20
  }>;
21
21
  export declare const ShardLive: Layer.Layer<Shard, never, DiscordConfig | import("dfx/RateLimit").RateLimitStore | import("dfx/DiscordGateway/DiscordWS").DiscordWSCodec | ShardStateStore>;
22
22
  export interface RunningShard extends Effect.Effect.Success<ReturnType<ShardService["connect"]>> {
@@ -217,6 +217,9 @@ export interface EmbeddedActivityInstance {
217
217
  readonly location?: GuildChannelLocation | PrivateChannelLocation | null | undefined;
218
218
  readonly users: ReadonlyArray<SnowflakeType>;
219
219
  }
220
+ export interface UploadApplicationAttachmentRequest {
221
+ readonly file: Blob;
222
+ }
220
223
  export interface ApplicationResponse {
221
224
  readonly id: SnowflakeType;
222
225
  readonly name: string;
@@ -3736,6 +3739,12 @@ export interface SoundboardPatchRequestPartial {
3736
3739
  readonly emoji_name?: string | null | undefined;
3737
3740
  }
3738
3741
  export type ListGuildStickers200 = ReadonlyArray<GuildStickerResponse>;
3742
+ export interface CreateGuildStickerRequest {
3743
+ readonly name: string;
3744
+ readonly tags: string;
3745
+ readonly description?: string | null | undefined;
3746
+ readonly file: Blob;
3747
+ }
3739
3748
  export interface UpdateGuildStickerRequest {
3740
3749
  readonly name?: string | undefined;
3741
3750
  readonly tags?: string | undefined;
@@ -4481,7 +4490,7 @@ export interface DiscordRest {
4481
4490
  readonly getApplication: (applicationId: string) => Effect.Effect<PrivateApplicationResponse, HttpClientError.HttpClientError>;
4482
4491
  readonly updateApplication: (applicationId: string, options: ApplicationFormPartial) => Effect.Effect<PrivateApplicationResponse, HttpClientError.HttpClientError>;
4483
4492
  readonly applicationsGetActivityInstance: (applicationId: string, instanceId: string) => Effect.Effect<EmbeddedActivityInstance, HttpClientError.HttpClientError>;
4484
- readonly uploadApplicationAttachment: (applicationId: string, options: globalThis.FormData) => Effect.Effect<ActivitiesAttachmentResponse, HttpClientError.HttpClientError>;
4493
+ readonly uploadApplicationAttachment: (applicationId: string, options: UploadApplicationAttachmentRequest) => Effect.Effect<ActivitiesAttachmentResponse, HttpClientError.HttpClientError>;
4485
4494
  readonly listApplicationCommands: (applicationId: string, options?: ListApplicationCommandsParams | undefined) => Effect.Effect<ListApplicationCommands200, HttpClientError.HttpClientError>;
4486
4495
  readonly bulkSetApplicationCommands: (applicationId: string, options: BulkSetApplicationCommandsRequest) => Effect.Effect<BulkSetApplicationCommands200, HttpClientError.HttpClientError>;
4487
4496
  readonly createApplicationCommand: (applicationId: string, options: ApplicationCommandCreateRequest) => Effect.Effect<ApplicationCommandResponse | ApplicationCommandResponse, HttpClientError.HttpClientError>;
@@ -4618,7 +4627,7 @@ export interface DiscordRest {
4618
4627
  readonly deleteGuildSoundboardSound: (guildId: string, soundId: string) => Effect.Effect<void, HttpClientError.HttpClientError>;
4619
4628
  readonly updateGuildSoundboardSound: (guildId: string, soundId: string, options: SoundboardPatchRequestPartial) => Effect.Effect<SoundboardSoundResponse, HttpClientError.HttpClientError>;
4620
4629
  readonly listGuildStickers: (guildId: string) => Effect.Effect<ListGuildStickers200, HttpClientError.HttpClientError>;
4621
- readonly createGuildSticker: (guildId: string, options: globalThis.FormData) => Effect.Effect<GuildStickerResponse, HttpClientError.HttpClientError>;
4630
+ readonly createGuildSticker: (guildId: string, options: CreateGuildStickerRequest) => Effect.Effect<GuildStickerResponse, HttpClientError.HttpClientError>;
4622
4631
  readonly getGuildSticker: (guildId: string, stickerId: string) => Effect.Effect<GuildStickerResponse, HttpClientError.HttpClientError>;
4623
4632
  readonly deleteGuildSticker: (guildId: string, stickerId: string) => Effect.Effect<void, HttpClientError.HttpClientError>;
4624
4633
  readonly updateGuildSticker: (guildId: string, stickerId: string, options: UpdateGuildStickerRequest) => Effect.Effect<GuildStickerResponse, HttpClientError.HttpClientError>;