dfx 0.120.2 → 0.121.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.
- package/DiscordGateway/DiscordWS.d.ts +1 -1
- package/DiscordGateway/Shard.d.ts +3 -3
- package/DiscordGateway/Sharder.d.ts +1 -1
- package/DiscordREST/Generated.d.ts +30 -11
- package/DiscordREST/Generated.d.ts.map +1 -1
- package/DiscordREST/Generated.js +4 -0
- package/DiscordREST/Generated.js.map +1 -1
- package/Helpers/permissions.d.ts +2 -2
- package/Interactions/definitions.d.ts +5 -5
- package/mjs/DiscordREST/Generated.mjs +4 -0
- package/mjs/DiscordREST/Generated.mjs.map +1 -1
- package/mjs/version.mjs +1 -1
- package/package.json +3 -3
- package/src/DiscordREST/Generated.ts +54 -12
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -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, import("effect/Scope").Scope
|
|
34
|
+
}, never, Socket.WebSocketConstructor | import("effect/Scope").Scope>;
|
|
35
35
|
}>;
|
|
36
36
|
export declare const DiscordWSLive: Layer.Layer<DiscordWS, never, DiscordWSCodec>;
|
|
37
37
|
//# sourceMappingURL=DiscordWS.d.ts.map
|
|
@@ -7,8 +7,8 @@ import * as Layer from "effect/Layer";
|
|
|
7
7
|
export declare const make: Effect.Effect<{
|
|
8
8
|
readonly connect: (shard: [id: number, count: number]) => Effect.Effect<{
|
|
9
9
|
readonly id: [id: number, count: number];
|
|
10
|
-
}, never, import("effect/
|
|
11
|
-
}, never, DiscordConfig | import("dfx/DiscordGateway/Messaging").Messsaging | ShardStateStore
|
|
10
|
+
}, never, import("@effect/platform/Socket").WebSocketConstructor | import("effect/Scope").Scope>;
|
|
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 {
|
|
14
14
|
readonly _: unique symbol;
|
|
@@ -16,7 +16,7 @@ export interface Shard {
|
|
|
16
16
|
export declare const Shard: import("effect/Context").Tag<Shard, {
|
|
17
17
|
readonly connect: (shard: [id: number, count: number]) => Effect.Effect<{
|
|
18
18
|
readonly id: [id: number, count: number];
|
|
19
|
-
}, never, import("effect/
|
|
19
|
+
}, never, import("@effect/platform/Socket").WebSocketConstructor | import("effect/Scope").Scope>;
|
|
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"]>> {
|
|
@@ -10,5 +10,5 @@ export interface Sharder {
|
|
|
10
10
|
export declare const Sharder: import("effect/Context").Tag<Sharder, {
|
|
11
11
|
readonly shards: Effect.Effect<HashSet.HashSet<RunningShard>, never, never>;
|
|
12
12
|
}>;
|
|
13
|
-
export declare const SharderLive: Layer.Layer<Sharder, never,
|
|
13
|
+
export declare const SharderLive: Layer.Layer<Sharder, never, import("@effect/platform/HttpClient").HttpClient | DiscordConfig | import("dfx/RateLimit").RateLimitStore | import("./DiscordWS").DiscordWSCodec | import("@effect/platform/Socket").WebSocketConstructor | import("./Shard/StateStore").ShardStateStore | ShardStore>;
|
|
14
14
|
//# sourceMappingURL=Sharder.d.ts.map
|
|
@@ -244,6 +244,7 @@ export interface PrivateApplicationResponse {
|
|
|
244
244
|
readonly owner: UserResponse;
|
|
245
245
|
readonly approximate_guild_count?: number | null | undefined;
|
|
246
246
|
readonly approximate_user_install_count: number;
|
|
247
|
+
readonly approximate_user_authorization_count: number;
|
|
247
248
|
readonly explicit_content_filter: ApplicationExplicitContentFilterTypes;
|
|
248
249
|
readonly team?: TeamResponse | null | undefined;
|
|
249
250
|
}
|
|
@@ -1619,6 +1620,7 @@ export interface MessageEmbedImageResponse {
|
|
|
1619
1620
|
readonly proxy_url?: string | null | undefined;
|
|
1620
1621
|
readonly width?: UInt32Type | null | undefined;
|
|
1621
1622
|
readonly height?: UInt32Type | null | undefined;
|
|
1623
|
+
readonly content_type?: string | null | undefined;
|
|
1622
1624
|
readonly placeholder?: string | null | undefined;
|
|
1623
1625
|
readonly placeholder_version?: UInt32Type | null | undefined;
|
|
1624
1626
|
readonly description?: string | null | undefined;
|
|
@@ -1629,6 +1631,7 @@ export interface MessageEmbedVideoResponse {
|
|
|
1629
1631
|
readonly proxy_url?: string | null | undefined;
|
|
1630
1632
|
readonly width?: UInt32Type | null | undefined;
|
|
1631
1633
|
readonly height?: UInt32Type | null | undefined;
|
|
1634
|
+
readonly content_type?: string | null | undefined;
|
|
1632
1635
|
readonly placeholder?: string | null | undefined;
|
|
1633
1636
|
readonly placeholder_version?: UInt32Type | null | undefined;
|
|
1634
1637
|
readonly description?: string | null | undefined;
|
|
@@ -1853,6 +1856,7 @@ export interface UnfurledMediaResponse {
|
|
|
1853
1856
|
readonly width?: number | null | undefined;
|
|
1854
1857
|
readonly height?: number | null | undefined;
|
|
1855
1858
|
readonly content_type?: string | null | undefined;
|
|
1859
|
+
readonly attachment_id?: SnowflakeType | null | undefined;
|
|
1856
1860
|
}
|
|
1857
1861
|
export interface FileComponentResponse {
|
|
1858
1862
|
readonly type: 13;
|
|
@@ -4456,11 +4460,35 @@ export interface EditLobbyRequest {
|
|
|
4456
4460
|
export interface EditLobbyChannelLinkRequest {
|
|
4457
4461
|
readonly channel_id?: SnowflakeType | null | undefined;
|
|
4458
4462
|
}
|
|
4463
|
+
export type BulkLobbyMemberRequestFlagsEnum = 1;
|
|
4464
|
+
export interface BulkLobbyMemberRequest {
|
|
4465
|
+
readonly id: SnowflakeType;
|
|
4466
|
+
readonly metadata?: Record<string, unknown> | null | undefined;
|
|
4467
|
+
readonly flags?: BulkLobbyMemberRequestFlagsEnum | null | undefined;
|
|
4468
|
+
readonly remove_member?: boolean | null | undefined;
|
|
4469
|
+
}
|
|
4470
|
+
export type BulkUpdateLobbyMembersRequest = ReadonlyArray<BulkLobbyMemberRequest>;
|
|
4471
|
+
export type BulkUpdateLobbyMembers200 = ReadonlyArray<LobbyMemberResponse>;
|
|
4459
4472
|
export type AddLobbyMemberRequestFlagsEnum = 1;
|
|
4460
4473
|
export interface AddLobbyMemberRequest {
|
|
4461
4474
|
readonly metadata?: Record<string, unknown> | null | undefined;
|
|
4462
4475
|
readonly flags?: AddLobbyMemberRequestFlagsEnum | null | undefined;
|
|
4463
4476
|
}
|
|
4477
|
+
export interface GetLobbyMessagesParams {
|
|
4478
|
+
readonly limit?: number | undefined;
|
|
4479
|
+
}
|
|
4480
|
+
export interface LobbyMessageResponse {
|
|
4481
|
+
readonly id: SnowflakeType;
|
|
4482
|
+
readonly type: MessageType;
|
|
4483
|
+
readonly content: string;
|
|
4484
|
+
readonly lobby_id: SnowflakeType;
|
|
4485
|
+
readonly channel_id: SnowflakeType;
|
|
4486
|
+
readonly author: UserResponse;
|
|
4487
|
+
readonly metadata?: Record<string, unknown> | null | undefined;
|
|
4488
|
+
readonly flags: number;
|
|
4489
|
+
readonly application_id?: SnowflakeType | null | undefined;
|
|
4490
|
+
}
|
|
4491
|
+
export type GetLobbyMessages200 = ReadonlyArray<LobbyMessageResponse>;
|
|
4464
4492
|
export interface SDKMessageRequest {
|
|
4465
4493
|
readonly content?: string | null | undefined;
|
|
4466
4494
|
readonly embeds?: ReadonlyArray<RichEmbed> | null | undefined;
|
|
@@ -4476,17 +4504,6 @@ export interface SDKMessageRequest {
|
|
|
4476
4504
|
readonly enforce_nonce?: boolean | null | undefined;
|
|
4477
4505
|
readonly tts?: boolean | null | undefined;
|
|
4478
4506
|
}
|
|
4479
|
-
export interface LobbyMessageResponse {
|
|
4480
|
-
readonly id: SnowflakeType;
|
|
4481
|
-
readonly type: MessageType;
|
|
4482
|
-
readonly content: string;
|
|
4483
|
-
readonly lobby_id: SnowflakeType;
|
|
4484
|
-
readonly channel_id: SnowflakeType;
|
|
4485
|
-
readonly author: UserResponse;
|
|
4486
|
-
readonly metadata?: Record<string, unknown> | null | undefined;
|
|
4487
|
-
readonly flags: number;
|
|
4488
|
-
readonly application_id?: SnowflakeType | null | undefined;
|
|
4489
|
-
}
|
|
4490
4507
|
export interface OAuth2GetAuthorizationResponse {
|
|
4491
4508
|
readonly application: ApplicationResponse;
|
|
4492
4509
|
readonly expires: string;
|
|
@@ -5108,8 +5125,10 @@ export interface DiscordRest {
|
|
|
5108
5125
|
readonly editLobby: (lobbyId: string, options: EditLobbyRequest) => Effect.Effect<LobbyResponse, HttpClientError.HttpClientError>;
|
|
5109
5126
|
readonly editLobbyChannelLink: (lobbyId: string, options: EditLobbyChannelLinkRequest) => Effect.Effect<LobbyResponse, HttpClientError.HttpClientError>;
|
|
5110
5127
|
readonly leaveLobby: (lobbyId: string) => Effect.Effect<void, HttpClientError.HttpClientError>;
|
|
5128
|
+
readonly bulkUpdateLobbyMembers: (lobbyId: string, options: BulkUpdateLobbyMembersRequest) => Effect.Effect<BulkUpdateLobbyMembers200, HttpClientError.HttpClientError>;
|
|
5111
5129
|
readonly addLobbyMember: (lobbyId: string, userId: string, options: AddLobbyMemberRequest) => Effect.Effect<LobbyMemberResponse, HttpClientError.HttpClientError>;
|
|
5112
5130
|
readonly deleteLobbyMember: (lobbyId: string, userId: string) => Effect.Effect<void, HttpClientError.HttpClientError>;
|
|
5131
|
+
readonly getLobbyMessages: (lobbyId: string, options?: GetLobbyMessagesParams | undefined) => Effect.Effect<GetLobbyMessages200, HttpClientError.HttpClientError>;
|
|
5113
5132
|
readonly createLobbyMessage: (lobbyId: string, options: SDKMessageRequest) => Effect.Effect<LobbyMessageResponse, HttpClientError.HttpClientError>;
|
|
5114
5133
|
readonly getMyOauth2Authorization: () => Effect.Effect<OAuth2GetAuthorizationResponse, HttpClientError.HttpClientError>;
|
|
5115
5134
|
readonly getMyOauth2Application: () => Effect.Effect<PrivateApplicationResponse, HttpClientError.HttpClientError>;
|