dfx 0.42.7 → 0.42.8

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.
package/DiscordREST.d.ts CHANGED
@@ -1,197 +1,16 @@
1
1
  import { Effect, Discord } from "dfx/_common";
2
2
  import * as Http from "@effect-http/client";
3
3
  import { DiscordConfig } from "./DiscordConfig.js";
4
- import { ResponseWithData, RestResponse } from "./DiscordREST/types.js";
4
+ import { ResponseWithData } from "./DiscordREST/types.js";
5
5
  import { Log } from "./Log.js";
6
- import { RateLimitStore, RateLimiter } from "./RateLimit.js";
6
+ import { RateLimitStore } from "./RateLimit.js";
7
7
  export declare class DiscordRESTError {
8
8
  readonly error: Http.HttpClientError;
9
9
  readonly _tag = "DiscordRESTError";
10
10
  constructor(error: Http.HttpClientError);
11
11
  }
12
- declare const make: import("@effect/io/Effect").Effect<DiscordConfig | Log | RateLimitStore | RateLimiter | Http.HttpRequestExecutor, never, {
13
- addGuildMember: (guildId: string, userId: string, params?: Partial<import("./types.js").AddGuildMemberParams> | undefined, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").GuildMember>;
14
- addGuildMemberRole: (guildId: string, userId: string, roleId: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<any>;
15
- addThreadMember: (channelId: string, userId: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<any>;
16
- batchEditApplicationCommandPermissions: (applicationId: string, guildId: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<any>;
17
- beginGuildPrune: (guildId: string, params?: Partial<import("./types.js").BeginGuildPruneParams> | undefined, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<any>;
18
- bulkDeleteMessages: (channelId: string, params?: Partial<import("./types.js").BulkDeleteMessageParams> | undefined, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<any>;
19
- bulkOverwriteGlobalApplicationCommands: (applicationId: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").ApplicationCommand[]>;
20
- bulkOverwriteGuildApplicationCommands: (applicationId: string, guildId: string, params?: Partial<import("./types.js").BulkOverwriteGuildApplicationCommandParams> | undefined, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").ApplicationCommand[]>;
21
- createAutoModerationRule: (guildId: string, params?: Partial<import("./types.js").CreateAutoModerationRuleParams> | undefined, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").AutoModerationRule>;
22
- createChannelInvite: (channelId: string, params?: Partial<import("./types.js").CreateChannelInviteParams> | undefined, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").Invite>;
23
- createDm: (params?: Partial<import("./types.js").CreateDmParams> | undefined, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").Channel>;
24
- createFollowupMessage: (applicationId: string, interactionToken: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<any>;
25
- createGlobalApplicationCommand: (applicationId: string, params?: Partial<import("./types.js").CreateGlobalApplicationCommandParams> | undefined, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").ApplicationCommand>;
26
- createGroupDm: (params?: Partial<import("./types.js").CreateGroupDmParams> | undefined, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").Channel>;
27
- createGuild: (params?: Partial<import("./types.js").CreateGuildParams> | undefined, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").Guild>;
28
- createGuildApplicationCommand: (applicationId: string, guildId: string, params?: Partial<import("./types.js").CreateGuildApplicationCommandParams> | undefined, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").ApplicationCommand>;
29
- createGuildBan: (guildId: string, userId: string, params?: Partial<import("./types.js").CreateGuildBanParams> | undefined, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<any>;
30
- createGuildChannel: (guildId: string, params?: Partial<import("./types.js").CreateGuildChannelParams> | undefined, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").Channel>;
31
- createGuildEmoji: (guildId: string, params?: Partial<import("./types.js").CreateGuildEmojiParams> | undefined, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").Emoji>;
32
- createGuildFromGuildTemplate: (templateCode: string, params?: Partial<import("./types.js").CreateGuildFromGuildTemplateParams> | undefined, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").Guild>;
33
- createGuildRole: (guildId: string, params?: Partial<import("./types.js").CreateGuildRoleParams> | undefined, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").Role>;
34
- createGuildScheduledEvent: (guildId: string, params?: Partial<import("./types.js").CreateGuildScheduledEventParams> | undefined, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").GuildScheduledEvent>;
35
- createGuildSticker: (guildId: string, params?: Partial<import("./types.js").CreateGuildStickerParams> | undefined, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").Sticker>;
36
- createGuildTemplate: (guildId: string, params?: Partial<import("./types.js").CreateGuildTemplateParams> | undefined, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").GuildTemplate>;
37
- createInteractionResponse: (interactionId: string, interactionToken: string, params?: Partial<import("./types.js").InteractionResponse> | undefined, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").InteractionResponse>;
38
- createMessage: (channelId: string, params?: Partial<import("./types.js").CreateMessageParams> | undefined, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").Message>;
39
- createReaction: (channelId: string, messageId: string, emoji: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<any>;
40
- createStageInstance: (params?: Partial<import("./types.js").CreateStageInstanceParams> | undefined, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").StageInstance>;
41
- createWebhook: (channelId: string, params?: Partial<import("./types.js").CreateWebhookParams> | undefined, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").Webhook>;
42
- crosspostMessage: (channelId: string, messageId: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").Message>;
43
- deleteAllReactions: (channelId: string, messageId: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<any>;
44
- deleteAllReactionsForEmoji: (channelId: string, messageId: string, emoji: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<any>;
45
- deleteAutoModerationRule: (guildId: string, autoModerationRuleId: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<any>;
46
- deleteChannelPermission: (channelId: string, overwriteId: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<any>;
47
- deletecloseChannel: (channelId: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").Channel>;
48
- deleteFollowupMessage: (applicationId: string, interactionToken: string, messageId: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<any>;
49
- deleteGlobalApplicationCommand: (applicationId: string, commandId: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<any>;
50
- deleteGuild: (guildId: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<any>;
51
- deleteGuildApplicationCommand: (applicationId: string, guildId: string, commandId: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<any>;
52
- deleteGuildEmoji: (guildId: string, emojiId: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<any>;
53
- deleteGuildIntegration: (guildId: string, integrationId: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<any>;
54
- deleteGuildRole: (guildId: string, roleId: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<any>;
55
- deleteGuildScheduledEvent: (guildId: string, guildScheduledEventId: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<any>;
56
- deleteGuildSticker: (guildId: string, stickerId: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<any>;
57
- deleteGuildTemplate: (guildId: string, templateCode: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").GuildTemplate>;
58
- deleteInvite: (inviteCode: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").Invite>;
59
- deleteMessage: (channelId: string, messageId: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<any>;
60
- deleteOriginalInteractionResponse: (applicationId: string, interactionToken: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<any>;
61
- deleteOwnReaction: (channelId: string, messageId: string, emoji: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<any>;
62
- deleteStageInstance: (channelId: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<any>;
63
- deleteUserReaction: (channelId: string, messageId: string, emoji: string, userId: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<any>;
64
- deleteWebhook: (webhookId: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<any>;
65
- deleteWebhookMessage: (webhookId: string, webhookToken: string, messageId: string, params?: Partial<import("./types.js").DeleteWebhookMessageParams> | undefined, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<any>;
66
- deleteWebhookWithToken: (webhookId: string, webhookToken: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<any>;
67
- editApplicationCommandPermissions: (applicationId: string, guildId: string, commandId: string, params?: Partial<import("./types.js").EditApplicationCommandPermissionParams> | undefined, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").GuildApplicationCommandPermission>;
68
- editChannelPermissions: (channelId: string, overwriteId: string, params?: Partial<import("./types.js").EditChannelPermissionParams> | undefined, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<any>;
69
- editFollowupMessage: (applicationId: string, interactionToken: string, messageId: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<any>;
70
- editGlobalApplicationCommand: (applicationId: string, commandId: string, params?: Partial<import("./types.js").EditGlobalApplicationCommandParams> | undefined, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").ApplicationCommand>;
71
- editGuildApplicationCommand: (applicationId: string, guildId: string, commandId: string, params?: Partial<import("./types.js").EditGuildApplicationCommandParams> | undefined, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").ApplicationCommand>;
72
- editMessage: (channelId: string, messageId: string, params?: Partial<import("./types.js").EditMessageParams> | undefined, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").Message>;
73
- editOriginalInteractionResponse: (applicationId: string, interactionToken: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<any>;
74
- editWebhookMessage: (webhookId: string, webhookToken: string, messageId: string, params?: Partial<import("./types.js").EditWebhookMessageParams> | undefined, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").Message>;
75
- executeGitHubCompatibleWebhook: (webhookId: string, webhookToken: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<any>;
76
- executeSlackCompatibleWebhook: (webhookId: string, webhookToken: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<any>;
77
- executeWebhook: (webhookId: string, webhookToken: string, params?: Partial<import("./types.js").ExecuteWebhookParams> | undefined, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<any>;
78
- followAnnouncementChannel: (channelId: string, params?: Partial<import("./types.js").FollowAnnouncementChannelParams> | undefined, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").FollowedChannel>;
79
- getApplicationCommandPermissions: (applicationId: string, guildId: string, commandId: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").GuildApplicationCommandPermission>;
80
- getApplicationRoleConnectionMetadataRecords: (applicationId: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").ApplicationRoleConnectionMetadatum[]>;
81
- getAutoModerationRule: (guildId: string, autoModerationRuleId: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").AutoModerationRule>;
82
- getChannel: (channelId: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").Channel>;
83
- getChannelInvites: (channelId: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").Invite[]>;
84
- getChannelMessage: (channelId: string, messageId: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").Message>;
85
- getChannelMessages: (channelId: string, params?: Partial<import("./types.js").GetChannelMessageParams> | undefined, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").Message[]>;
86
- getChannelWebhooks: (channelId: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").Webhook[]>;
87
- getCurrentAuthorizationInformation: (options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").GetCurrentAuthorizationInformationResponse>;
88
- getCurrentBotApplicationInformation: (options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").Application>;
89
- getCurrentUser: (options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").User>;
90
- getCurrentUserGuildMember: (guildId: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").GuildMember>;
91
- getCurrentUserGuilds: (params?: Partial<import("./types.js").GetCurrentUserGuildParams> | undefined, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").Guild[]>;
92
- getFollowupMessage: (applicationId: string, interactionToken: string, messageId: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<any>;
93
- getGateway: (options?: Partial<Http.MakeOptions> | undefined) => RestResponse<any>;
94
- getGatewayBot: (options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").GetGatewayBotResponse>;
95
- getGlobalApplicationCommand: (applicationId: string, commandId: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").ApplicationCommand>;
96
- getGlobalApplicationCommands: (applicationId: string, params?: Partial<import("./types.js").GetGlobalApplicationCommandParams> | undefined, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").ApplicationCommand[]>;
97
- getGuild: (guildId: string, params?: Partial<import("./types.js").GetGuildParams> | undefined, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").Guild>;
98
- getGuildApplicationCommand: (applicationId: string, guildId: string, commandId: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").ApplicationCommand>;
99
- getGuildApplicationCommandPermissions: (applicationId: string, guildId: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").GuildApplicationCommandPermission[]>;
100
- getGuildApplicationCommands: (applicationId: string, guildId: string, params?: Partial<import("./types.js").GetGuildApplicationCommandParams> | undefined, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").ApplicationCommand[]>;
101
- getGuildAuditLog: (guildId: string, params?: Partial<import("./types.js").GetGuildAuditLogParams> | undefined, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").AuditLog>;
102
- getGuildBan: (guildId: string, userId: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").Ban>;
103
- getGuildBans: (guildId: string, params?: Partial<import("./types.js").GetGuildBanParams> | undefined, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").Ban[]>;
104
- getGuildChannels: (guildId: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").Channel[]>;
105
- getGuildEmoji: (guildId: string, emojiId: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").Emoji>;
106
- getGuildIntegrations: (guildId: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").Integration[]>;
107
- getGuildInvites: (guildId: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").Invite[]>;
108
- getGuildMember: (guildId: string, userId: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").GuildMember>;
109
- getGuildOnboarding: (guildId: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").GuildOnboarding>;
110
- getGuildPreview: (guildId: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").GuildPreview>;
111
- getGuildPruneCount: (guildId: string, params?: Partial<import("./types.js").GetGuildPruneCountParams> | undefined, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<any>;
112
- getGuildRoles: (guildId: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").Role[]>;
113
- getGuildScheduledEvent: (guildId: string, guildScheduledEventId: string, params?: Partial<import("./types.js").GetGuildScheduledEventParams> | undefined, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").GuildScheduledEvent>;
114
- getGuildScheduledEventUsers: (guildId: string, guildScheduledEventId: string, params?: Partial<import("./types.js").GetGuildScheduledEventUserParams> | undefined, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").GuildScheduledEventUser[]>;
115
- getGuildSticker: (guildId: string, stickerId: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").Sticker>;
116
- getGuildTemplate: (templateCode: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").GuildTemplate>;
117
- getGuildTemplates: (guildId: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").GuildTemplate[]>;
118
- getGuildVanityUrl: (guildId: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").Invite>;
119
- getGuildVoiceRegions: (guildId: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").VoiceRegion[]>;
120
- getGuildWebhooks: (guildId: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").Webhook[]>;
121
- getGuildWelcomeScreen: (guildId: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").WelcomeScreen>;
122
- getGuildWidget: (guildId: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").GuildWidget>;
123
- getGuildWidgetImage: (guildId: string, params?: Partial<import("./types.js").GetGuildWidgetImageParams> | undefined, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<any>;
124
- getGuildWidgetSettings: (guildId: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").GuildWidgetSetting>;
125
- getInvite: (inviteCode: string, params?: Partial<import("./types.js").GetInviteParams> | undefined, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").Invite>;
126
- getOriginalInteractionResponse: (applicationId: string, interactionToken: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<any>;
127
- getPinnedMessages: (channelId: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").Message[]>;
128
- getReactions: (channelId: string, messageId: string, emoji: string, params?: Partial<import("./types.js").GetReactionParams> | undefined, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").User[]>;
129
- getStageInstance: (channelId: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<any>;
130
- getSticker: (stickerId: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").Sticker>;
131
- getThreadMember: (channelId: string, userId: string, params?: Partial<import("./types.js").GetThreadMemberParams> | undefined, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").ThreadMember>;
132
- getUser: (userId: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").User>;
133
- getUserApplicationRoleConnection: (applicationId: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").ApplicationRoleConnection>;
134
- getUserConnections: (options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").Connection[]>;
135
- getWebhook: (webhookId: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").Webhook>;
136
- getWebhookMessage: (webhookId: string, webhookToken: string, messageId: string, params?: Partial<import("./types.js").GetWebhookMessageParams> | undefined, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").Message>;
137
- getWebhookWithToken: (webhookId: string, webhookToken: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<any>;
138
- groupDmAddRecipient: (channelId: string, userId: string, params?: Partial<import("./types.js").GroupDmAddRecipientParams> | undefined, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<any>;
139
- groupDmRemoveRecipient: (channelId: string, userId: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<any>;
140
- joinThread: (channelId: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<any>;
141
- leaveGuild: (guildId: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<any>;
142
- leaveThread: (channelId: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<any>;
143
- listActiveGuildThreads: (guildId: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").ListActiveGuildThreadResponse>;
144
- listAutoModerationRulesForGuild: (guildId: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").AutoModerationRule[]>;
145
- listGuildEmojis: (guildId: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").Emoji[]>;
146
- listGuildMembers: (guildId: string, params?: Partial<import("./types.js").ListGuildMemberParams> | undefined, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").GuildMember[]>;
147
- listGuildStickers: (guildId: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").Sticker[]>;
148
- listJoinedPrivateArchivedThreads: (channelId: string, params?: Partial<import("./types.js").ListJoinedPrivateArchivedThreadParams> | undefined, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").ListJoinedPrivateArchivedThreadResponse>;
149
- listNitroStickerPacks: (options?: Partial<Http.MakeOptions> | undefined) => RestResponse<any>;
150
- listPrivateArchivedThreads: (channelId: string, params?: Partial<import("./types.js").ListPrivateArchivedThreadParams> | undefined, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").ListPrivateArchivedThreadResponse>;
151
- listPublicArchivedThreads: (channelId: string, params?: Partial<import("./types.js").ListPublicArchivedThreadParams> | undefined, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").ListPublicArchivedThreadResponse>;
152
- listScheduledEventsForGuild: (guildId: string, params?: Partial<import("./types.js").ListScheduledEventsForGuildParams> | undefined, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").GuildScheduledEvent[]>;
153
- listThreadMembers: (channelId: string, params?: Partial<import("./types.js").ListThreadMemberParams> | undefined, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").ThreadMember[]>;
154
- listVoiceRegions: (options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").VoiceRegion[]>;
155
- modifyAutoModerationRule: (guildId: string, autoModerationRuleId: string, params?: Partial<import("./types.js").ModifyAutoModerationRuleParams> | undefined, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").AutoModerationRule>;
156
- modifyChannel: (channelId: string, params?: Partial<import("./types.js").ModifyChannelParams> | undefined, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").Channel>;
157
- modifyCurrentMember: (guildId: string, params?: Partial<import("./types.js").ModifyCurrentMemberParams> | undefined, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<any>;
158
- modifyCurrentUser: (params?: Partial<import("./types.js").ModifyCurrentUserParams> | undefined, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").User>;
159
- modifyCurrentUserNick: (guildId: string, params?: Partial<import("./types.js").ModifyCurrentUserNickParams> | undefined, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<any>;
160
- modifyCurrentUserVoiceState: (guildId: string, params?: Partial<import("./types.js").ModifyCurrentUserVoiceStateParams> | undefined, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<any>;
161
- modifyGuild: (guildId: string, params?: Partial<import("./types.js").ModifyGuildParams> | undefined, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").Guild>;
162
- modifyGuildChannelPositions: (guildId: string, params?: Partial<import("./types.js").ModifyGuildChannelPositionParams> | undefined, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<any>;
163
- modifyGuildEmoji: (guildId: string, emojiId: string, params?: Partial<import("./types.js").ModifyGuildEmojiParams> | undefined, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").Emoji>;
164
- modifyGuildMember: (guildId: string, userId: string, params?: Partial<import("./types.js").ModifyGuildMemberParams> | undefined, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").GuildMember>;
165
- modifyGuildMfaLevel: (guildId: string, params?: Partial<import("./types.js").ModifyGuildMfaLevelParams> | undefined, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").MfaLevel>;
166
- modifyGuildRole: (guildId: string, roleId: string, params?: Partial<import("./types.js").ModifyGuildRoleParams> | undefined, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").Role>;
167
- modifyGuildRolePositions: (guildId: string, params?: Partial<import("./types.js").ModifyGuildRolePositionParams> | undefined, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").Role[]>;
168
- modifyGuildScheduledEvent: (guildId: string, guildScheduledEventId: string, params?: Partial<import("./types.js").ModifyGuildScheduledEventParams> | undefined, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").GuildScheduledEvent>;
169
- modifyGuildSticker: (guildId: string, stickerId: string, params?: Partial<import("./types.js").ModifyGuildStickerParams> | undefined, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").Sticker>;
170
- modifyGuildTemplate: (guildId: string, templateCode: string, params?: Partial<import("./types.js").ModifyGuildTemplateParams> | undefined, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").GuildTemplate>;
171
- modifyGuildWelcomeScreen: (guildId: string, params?: Partial<import("./types.js").ModifyGuildWelcomeScreenParams> | undefined, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").WelcomeScreen>;
172
- modifyGuildWidget: (guildId: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").GuildWidgetSetting>;
173
- modifyStageInstance: (channelId: string, params?: Partial<import("./types.js").ModifyStageInstanceParams> | undefined, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").StageInstance>;
174
- modifyUserVoiceState: (guildId: string, userId: string, params?: Partial<import("./types.js").ModifyUserVoiceStateParams> | undefined, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<any>;
175
- modifyWebhook: (webhookId: string, params?: Partial<import("./types.js").ModifyWebhookParams> | undefined, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").Webhook>;
176
- modifyWebhookWithToken: (webhookId: string, webhookToken: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<any>;
177
- pinMessage: (channelId: string, messageId: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<any>;
178
- removeGuildBan: (guildId: string, userId: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<any>;
179
- removeGuildMember: (guildId: string, userId: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<any>;
180
- removeGuildMemberRole: (guildId: string, userId: string, roleId: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<any>;
181
- removeThreadMember: (channelId: string, userId: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<any>;
182
- searchGuildMembers: (guildId: string, params?: Partial<import("./types.js").SearchGuildMemberParams> | undefined, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").GuildMember[]>;
183
- startThreadFromMessage: (channelId: string, messageId: string, params?: Partial<import("./types.js").StartThreadFromMessageParams> | undefined, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").Channel>;
184
- startThreadInForumChannel: (channelId: string, params?: Partial<import("./types.js").StartThreadInForumChannelParams> | undefined, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").Channel>;
185
- startThreadWithoutMessage: (channelId: string, params?: Partial<import("./types.js").StartThreadWithoutMessageParams> | undefined, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").Channel>;
186
- syncGuildTemplate: (guildId: string, templateCode: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").GuildTemplate>;
187
- triggerTypingIndicator: (channelId: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<any>;
188
- unpinMessage: (channelId: string, messageId: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<any>;
189
- updateApplicationRoleConnectionMetadataRecords: (applicationId: string, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").ApplicationRoleConnectionMetadatum[]>;
190
- updateUserApplicationRoleConnection: (applicationId: string, params?: Partial<import("./types.js").UpdateUserApplicationRoleConnectionParams> | undefined, options?: Partial<Http.MakeOptions> | undefined) => RestResponse<import("./types.js").ApplicationRoleConnection>;
191
- executor: <A = unknown>(request: Http.Request) => import("@effect/io/Effect").Effect<never, DiscordRESTError, ResponseWithData<A>>;
192
- }>;
193
- export interface DiscordREST extends Effect.Success<typeof make> {
12
+ export interface DiscordREST extends Discord.Endpoints<Partial<Http.MakeOptions>> {
13
+ readonly executor: <A = unknown>(request: Http.Request) => Effect<never, DiscordRESTError, ResponseWithData<A>>;
194
14
  }
195
15
  export declare const DiscordREST: import("@effect/data/Context").Tag<DiscordREST, DiscordREST>;
196
16
  export declare const LiveDiscordREST: import("@effect-http/client/_common").Layer<DiscordConfig | Log | RateLimitStore | Http.HttpRequestExecutor, never, DiscordREST>;
197
- export {};
package/DiscordREST.js CHANGED
@@ -112,7 +112,10 @@ const make = tsplus_module_3.flatMap(DiscordConfig, ({ token, rest }) => tsplus_
112
112
  }
113
113
  return executor(request);
114
114
  });
115
- return { executor, ...routes };
115
+ return {
116
+ ...routes,
117
+ executor,
118
+ };
116
119
  });
117
120
  })))));
118
121
  export const DiscordREST = tsplus_module_2.Tag();
@@ -1 +1 @@
1
- {"version":3,"file":"DiscordREST.js","sourceRoot":"","sources":["src/DiscordREST.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,OAAO,KAAK,IAAI,MAAM,qBAAqB,CAAA;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAA;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAElD,OAAO,EACL,oBAAoB,EACpB,UAAU,EAC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GAAG,IAAI,CAAC,IAAI,CAAC,MAAa,CAAC,CAAC,GAAG,EAAE,OAAO,CAAC,CAAA;YAEpD,IAAI,CAAC,OAAO,EAAE;gBACZ,IAAI,MAAM,EAAE;oBACV,OAAO,GAAG,6BAAA,OAAO,EAAc,MAAa,CAAC,CAAA;iBAC9C;aACF;iBAAM,IACL,MAAM;gBACN,OAAO,CAAC,IAAI,CAAC,IAAI,KAAK,MAAM;gBAC5B,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,KAAK,cAAc,EAC1C;gBACA,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,cAAc,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAA;aACxE;iBAAM,IAAI,MAAM,EAAE;gBACjB,OAAO,GAAG,yBAAA,OAAO,EAAU,MAAM,CAAC,CAAA;aACnC;YAED,OAAO,QAAQ,CAAC,OAAO,CAAC,CAAA;QAC1B,CAAC,CACF,CAAA;QAED,OAAO;YACL,GAAG,MAAM;YACT,QAAQ;SACT,CAAA;;MACD,CAAA;AASF,MAAM,CAAC,MAAM,WAAW,GAAG,gBAAA,GAAG,EAAe,CAAA;AAC7C,MAAM,CAAC,MAAM,eAAe,4BACP,wBAAa,WAAW,EAAE,IAAI,CAAC,EAAlD,eAAe,CAAmC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dfx",
3
- "version": "0.42.7",
3
+ "version": "0.42.8",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -48,5 +48,5 @@
48
48
  "ws": "^8.13.0"
49
49
  },
50
50
  "sideEffects": false,
51
- "gitHead": "737667fa756e695e8de6ee42fb395d75679801a1"
51
+ "gitHead": "ef6ca3dc83354e9ac53922de77a582957a94ee61"
52
52
  }
@@ -194,10 +194,19 @@ const make = Do($ => {
194
194
  },
195
195
  )
196
196
 
197
- return { executor, ...routes }
197
+ return {
198
+ ...routes,
199
+ executor,
200
+ }
198
201
  })
199
202
 
200
- export interface DiscordREST extends Effect.Success<typeof make> {}
203
+ export interface DiscordREST
204
+ extends Discord.Endpoints<Partial<Http.MakeOptions>> {
205
+ readonly executor: <A = unknown>(
206
+ request: Http.Request,
207
+ ) => Effect<never, DiscordRESTError, ResponseWithData<A>>
208
+ }
209
+
201
210
  export const DiscordREST = Tag<DiscordREST>()
202
211
  export const LiveDiscordREST =
203
212
  LiveRateLimiter >> Layer.effect(DiscordREST, make)