@distilled.cloud/discord 1.0.0-rc.7 → 1.0.0-rc.9
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/LICENSE +201 -0
- package/lib/services/discord.d.ts +387 -382
- package/lib/services/discord.d.ts.map +1 -1
- package/lib/services/discord.js +547 -542
- package/lib/services/discord.js.map +1 -1
- package/package.json +6 -6
- package/src/services/discord.ts +2613 -2603
package/lib/services/discord.js
CHANGED
|
@@ -6,19 +6,19 @@ import * as T from "../traits.js";
|
|
|
6
6
|
import { DiscordProtocol, } from "../protocol.js";
|
|
7
7
|
import { UnknownDiscordError } from "../errors.js";
|
|
8
8
|
import * as Retry from "../retry.js";
|
|
9
|
-
export const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
rejection_reason: S.optional(S.NullOr(S.String)),
|
|
9
|
+
export const AddGroupDmUserRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
10
|
+
channel_id: S.String.pipe(T.Label()),
|
|
11
|
+
user_id: S.String.pipe(T.Label()),
|
|
12
|
+
access_token: S.optional(S.NullOr(S.String).pipe(T.SensitiveValue({}))),
|
|
13
|
+
nick: S.optional(S.NullOr(S.String)),
|
|
15
14
|
}).pipe(T.Http({
|
|
16
|
-
method: "
|
|
17
|
-
uri: "/
|
|
15
|
+
method: "PUT",
|
|
16
|
+
uri: "/channels/{channel_id}/recipients/{user_id}",
|
|
18
17
|
code: 200,
|
|
19
18
|
}))).annotate({
|
|
20
|
-
identifier: "
|
|
19
|
+
identifier: "AddGroupDmUserRequest",
|
|
21
20
|
});
|
|
21
|
+
export const ChannelTypes = /*@__PURE__*/ S.Number;
|
|
22
22
|
export const UserAvatarDecorationResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
23
23
|
asset: S.String,
|
|
24
24
|
sku_id: S.NullOr(S.String),
|
|
@@ -63,89 +63,6 @@ export const UserResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
63
63
|
collectibles: S.optional(S.NullOr(UserCollectiblesResponse)),
|
|
64
64
|
primary_guild: S.NullOr(UserPrimaryGuildResponse),
|
|
65
65
|
})).annotate({ identifier: "UserResponse" });
|
|
66
|
-
export const GuildMemberVerificationFormFieldType = /*@__PURE__*/ S.String;
|
|
67
|
-
export const MultipleChoiceFormFieldResponseChoicesList = /*@__PURE__*/ S.Array(S.String);
|
|
68
|
-
export const MultipleChoiceFormFieldResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
69
|
-
field_type: GuildMemberVerificationFormFieldType,
|
|
70
|
-
label: S.optional(S.String),
|
|
71
|
-
description: S.optional(S.String),
|
|
72
|
-
required: S.optional(S.Boolean),
|
|
73
|
-
choices: MultipleChoiceFormFieldResponseChoicesList,
|
|
74
|
-
response: S.optional(S.Number),
|
|
75
|
-
})).annotate({
|
|
76
|
-
identifier: "MultipleChoiceFormFieldResponse",
|
|
77
|
-
});
|
|
78
|
-
export const ParagraphFormFieldResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
79
|
-
field_type: GuildMemberVerificationFormFieldType,
|
|
80
|
-
label: S.optional(S.String),
|
|
81
|
-
description: S.optional(S.String),
|
|
82
|
-
required: S.optional(S.Boolean),
|
|
83
|
-
placeholder: S.optional(S.String),
|
|
84
|
-
response: S.optional(S.String),
|
|
85
|
-
})).annotate({
|
|
86
|
-
identifier: "ParagraphFormFieldResponse",
|
|
87
|
-
});
|
|
88
|
-
export const TermsFormFieldResponseValuesList = /*@__PURE__*/ S.Array(S.String);
|
|
89
|
-
export const TermsFormFieldResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
90
|
-
field_type: GuildMemberVerificationFormFieldType,
|
|
91
|
-
label: S.optional(S.String),
|
|
92
|
-
description: S.optional(S.String),
|
|
93
|
-
required: S.optional(S.Boolean),
|
|
94
|
-
values: TermsFormFieldResponseValuesList,
|
|
95
|
-
response: S.optional(S.Boolean),
|
|
96
|
-
})).annotate({
|
|
97
|
-
identifier: "TermsFormFieldResponse",
|
|
98
|
-
});
|
|
99
|
-
export const TextInputFormFieldResponse = ParagraphFormFieldResponse;
|
|
100
|
-
export const GuildJoinRequestResponseFormResponsesItem =
|
|
101
|
-
/*@__PURE__*/ S.Unknown.pipe(T.UnionCases([
|
|
102
|
-
["field_type", "label", "description", "required", "choices", "response"],
|
|
103
|
-
[
|
|
104
|
-
"field_type",
|
|
105
|
-
"label",
|
|
106
|
-
"description",
|
|
107
|
-
"required",
|
|
108
|
-
"placeholder",
|
|
109
|
-
"response",
|
|
110
|
-
],
|
|
111
|
-
["field_type", "label", "description", "required", "values", "response"],
|
|
112
|
-
[
|
|
113
|
-
"field_type",
|
|
114
|
-
"label",
|
|
115
|
-
"description",
|
|
116
|
-
"required",
|
|
117
|
-
"placeholder",
|
|
118
|
-
"response",
|
|
119
|
-
],
|
|
120
|
-
]));
|
|
121
|
-
export const GuildJoinRequestResponseFormResponsesList = /*@__PURE__*/ S.Array(GuildJoinRequestResponseFormResponsesItem);
|
|
122
|
-
export const GuildJoinRequestResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
123
|
-
id: S.String,
|
|
124
|
-
created_at: S.String,
|
|
125
|
-
reviewed_at: S.NullOr(S.String),
|
|
126
|
-
application_status: S.NullOr(GuildJoinRequestApplicationStatus),
|
|
127
|
-
rejection_reason: S.NullOr(S.String),
|
|
128
|
-
guild_id: S.String,
|
|
129
|
-
user_id: S.String,
|
|
130
|
-
user: S.optional(S.NullOr(UserResponse)),
|
|
131
|
-
form_responses: S.optional(S.NullOr(GuildJoinRequestResponseFormResponsesList)),
|
|
132
|
-
actioned_by_user: S.optional(S.NullOr(UserResponse)),
|
|
133
|
-
})).annotate({
|
|
134
|
-
identifier: "GuildJoinRequestResponse",
|
|
135
|
-
});
|
|
136
|
-
export const AddGroupDmUserRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
137
|
-
channel_id: S.String.pipe(T.Label()),
|
|
138
|
-
user_id: S.String.pipe(T.Label()),
|
|
139
|
-
access_token: S.optional(S.NullOr(S.String).pipe(T.SensitiveValue({}))),
|
|
140
|
-
nick: S.optional(S.NullOr(S.String)),
|
|
141
|
-
}).pipe(T.Http({
|
|
142
|
-
method: "PUT",
|
|
143
|
-
uri: "/channels/{channel_id}/recipients/{user_id}",
|
|
144
|
-
code: 200,
|
|
145
|
-
}))).annotate({
|
|
146
|
-
identifier: "AddGroupDmUserRequest",
|
|
147
|
-
});
|
|
148
|
-
export const ChannelTypes = /*@__PURE__*/ S.Number;
|
|
149
66
|
export const PrivateChannelResponseRecipientsList = /*@__PURE__*/ S.Array(UserResponse);
|
|
150
67
|
export const PrivateChannelResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
151
68
|
id: S.String,
|
|
@@ -300,46 +217,6 @@ export const AddThreadMemberRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
300
217
|
export const AddThreadMemberResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
301
218
|
identifier: "AddThreadMemberResponse",
|
|
302
219
|
});
|
|
303
|
-
export const ApplicationsGetActivityInstanceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
304
|
-
application_id: S.String.pipe(T.Label()),
|
|
305
|
-
instance_id: S.String.pipe(T.Label()),
|
|
306
|
-
}).pipe(T.Http({
|
|
307
|
-
method: "GET",
|
|
308
|
-
uri: "/applications/{application_id}/activity-instances/{instance_id}",
|
|
309
|
-
code: 200,
|
|
310
|
-
}))).annotate({
|
|
311
|
-
identifier: "ApplicationsGetActivityInstanceRequest",
|
|
312
|
-
});
|
|
313
|
-
export const EmbeddedActivityLocationKind = /*@__PURE__*/ S.String;
|
|
314
|
-
export const GuildChannelLocation = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
315
|
-
id: S.String,
|
|
316
|
-
kind: EmbeddedActivityLocationKind,
|
|
317
|
-
channel_id: S.String,
|
|
318
|
-
guild_id: S.String,
|
|
319
|
-
})).annotate({
|
|
320
|
-
identifier: "GuildChannelLocation",
|
|
321
|
-
});
|
|
322
|
-
export const PrivateChannelLocation = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
323
|
-
id: S.String,
|
|
324
|
-
kind: EmbeddedActivityLocationKind,
|
|
325
|
-
channel_id: S.String,
|
|
326
|
-
})).annotate({
|
|
327
|
-
identifier: "PrivateChannelLocation",
|
|
328
|
-
});
|
|
329
|
-
export const EmbeddedActivityInstanceLocation = /*@__PURE__*/ S.Unknown.pipe(T.UnionCases([
|
|
330
|
-
["id", "kind", "channel_id", "guild_id"],
|
|
331
|
-
["id", "kind", "channel_id"],
|
|
332
|
-
]));
|
|
333
|
-
export const EmbeddedActivityInstanceUsersList = /*@__PURE__*/ S.Array(S.String);
|
|
334
|
-
export const EmbeddedActivityInstance = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
335
|
-
application_id: S.String,
|
|
336
|
-
instance_id: S.String,
|
|
337
|
-
launch_id: S.String,
|
|
338
|
-
location: EmbeddedActivityInstanceLocation,
|
|
339
|
-
users: EmbeddedActivityInstanceUsersList,
|
|
340
|
-
})).annotate({
|
|
341
|
-
identifier: "EmbeddedActivityInstance",
|
|
342
|
-
});
|
|
343
220
|
export const BanUserFromGuildRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
344
221
|
guild_id: S.String.pipe(T.Label()),
|
|
345
222
|
user_id: S.String.pipe(T.Label()),
|
|
@@ -2339,8 +2216,11 @@ export const InviteApplicationResponse = /*@__PURE__*/ S.suspend(() => S.Struct(
|
|
|
2339
2216
|
type: S.NullOr(ApplicationTypes),
|
|
2340
2217
|
cover_image: S.optional(S.String),
|
|
2341
2218
|
primary_sku_id: S.optional(S.String),
|
|
2219
|
+
flags: S.Number,
|
|
2220
|
+
flags_new: S.String,
|
|
2342
2221
|
bot: S.optional(UserResponse),
|
|
2343
2222
|
slug: S.optional(S.String),
|
|
2223
|
+
vibegrations_project_id: S.optional(S.String),
|
|
2344
2224
|
guild_id: S.optional(S.String),
|
|
2345
2225
|
rpc_origins: S.optional(InviteApplicationResponseRpcOriginsList),
|
|
2346
2226
|
bot_public: S.optional(S.Boolean),
|
|
@@ -2351,8 +2231,6 @@ export const InviteApplicationResponse = /*@__PURE__*/ S.suspend(() => S.Struct(
|
|
|
2351
2231
|
install_params: S.optional(ApplicationOAuth2InstallParamsResponse),
|
|
2352
2232
|
integration_types_config: S.optional(InviteApplicationResponseIntegrationTypesConfigMap),
|
|
2353
2233
|
verify_key: S.String,
|
|
2354
|
-
flags: S.Number,
|
|
2355
|
-
flags_new: S.String,
|
|
2356
2234
|
max_participants: S.optional(S.NullOr(S.Number)),
|
|
2357
2235
|
tags: S.optional(InviteApplicationResponseTagsList),
|
|
2358
2236
|
})).annotate({
|
|
@@ -2538,6 +2416,19 @@ export const CreateChannelInviteResponseBody = /*@__PURE__*/ S.Unknown.pipe(T.Un
|
|
|
2538
2416
|
export const CreateChannelInviteResponse = /*@__PURE__*/ S.suspend(() => CreateChannelInviteResponseBody.pipe(T.RawResponseRoot())).annotate({
|
|
2539
2417
|
identifier: "CreateChannelInviteResponse",
|
|
2540
2418
|
});
|
|
2419
|
+
export const CreateDeprecatedPinRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2420
|
+
channel_id: S.String.pipe(T.Label()),
|
|
2421
|
+
message_id: S.String.pipe(T.Label()),
|
|
2422
|
+
}).pipe(T.Http({
|
|
2423
|
+
method: "PUT",
|
|
2424
|
+
uri: "/channels/{channel_id}/pins/{message_id}",
|
|
2425
|
+
code: 200,
|
|
2426
|
+
}))).annotate({
|
|
2427
|
+
identifier: "CreateDeprecatedPinRequest",
|
|
2428
|
+
});
|
|
2429
|
+
export const CreateDeprecatedPinResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
2430
|
+
identifier: "CreateDeprecatedPinResponse",
|
|
2431
|
+
});
|
|
2541
2432
|
export const CreateDmRequestAccessTokensList = /*@__PURE__*/ S.Array(S.String);
|
|
2542
2433
|
export const CreateDmRequestNicksMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
2543
2434
|
export const CreateDmRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
@@ -4163,8 +4054,11 @@ export const ApplicationResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
4163
4054
|
type: S.NullOr(ApplicationTypes),
|
|
4164
4055
|
cover_image: S.optional(S.String),
|
|
4165
4056
|
primary_sku_id: S.optional(S.String),
|
|
4057
|
+
flags: S.Number,
|
|
4058
|
+
flags_new: S.String,
|
|
4166
4059
|
bot: S.optional(UserResponse),
|
|
4167
4060
|
slug: S.optional(S.String),
|
|
4061
|
+
vibegrations_project_id: S.optional(S.String),
|
|
4168
4062
|
guild_id: S.optional(S.String),
|
|
4169
4063
|
rpc_origins: S.optional(ApplicationResponseRpcOriginsList),
|
|
4170
4064
|
bot_public: S.optional(S.Boolean),
|
|
@@ -4175,8 +4069,6 @@ export const ApplicationResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
4175
4069
|
install_params: S.optional(ApplicationOAuth2InstallParamsResponse),
|
|
4176
4070
|
integration_types_config: S.optional(ApplicationResponseIntegrationTypesConfigMap),
|
|
4177
4071
|
verify_key: S.String,
|
|
4178
|
-
flags: S.Number,
|
|
4179
|
-
flags_new: S.String,
|
|
4180
4072
|
max_participants: S.optional(S.NullOr(S.Number)),
|
|
4181
4073
|
tags: S.optional(ApplicationResponseTagsList),
|
|
4182
4074
|
})).annotate({
|
|
@@ -4663,6 +4555,8 @@ export const BasicApplicationResponseWithBot = /*@__PURE__*/ S.suspend(() => S.S
|
|
|
4663
4555
|
type: S.NullOr(ApplicationTypes),
|
|
4664
4556
|
cover_image: S.optional(S.String),
|
|
4665
4557
|
primary_sku_id: S.optional(S.String),
|
|
4558
|
+
flags: S.Number,
|
|
4559
|
+
flags_new: S.String,
|
|
4666
4560
|
bot: S.optional(UserResponse),
|
|
4667
4561
|
})).annotate({
|
|
4668
4562
|
identifier: "BasicApplicationResponseWithBot",
|
|
@@ -5806,6 +5700,19 @@ export const DeleteChannelPermissionOverwriteRequest = /*@__PURE__*/ S.suspend((
|
|
|
5806
5700
|
export const DeleteChannelPermissionOverwriteResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
5807
5701
|
identifier: "DeleteChannelPermissionOverwriteResponse",
|
|
5808
5702
|
});
|
|
5703
|
+
export const DeleteDeprecatedPinRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
5704
|
+
channel_id: S.String.pipe(T.Label()),
|
|
5705
|
+
message_id: S.String.pipe(T.Label()),
|
|
5706
|
+
}).pipe(T.Http({
|
|
5707
|
+
method: "DELETE",
|
|
5708
|
+
uri: "/channels/{channel_id}/pins/{message_id}",
|
|
5709
|
+
code: 200,
|
|
5710
|
+
}))).annotate({
|
|
5711
|
+
identifier: "DeleteDeprecatedPinRequest",
|
|
5712
|
+
});
|
|
5713
|
+
export const DeleteDeprecatedPinResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
5714
|
+
identifier: "DeleteDeprecatedPinResponse",
|
|
5715
|
+
});
|
|
5809
5716
|
export const DeleteEntitlementRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
5810
5717
|
application_id: S.String.pipe(T.Label()),
|
|
5811
5718
|
entitlement_id: S.String.pipe(T.Label()),
|
|
@@ -6128,41 +6035,6 @@ export const DeleteWebhookMessageRequest = /*@__PURE__*/ S.suspend(() => S.Struc
|
|
|
6128
6035
|
export const DeleteWebhookMessageResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
6129
6036
|
identifier: "DeleteWebhookMessageResponse",
|
|
6130
6037
|
});
|
|
6131
|
-
export const DeprecatedCreatePinRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
6132
|
-
channel_id: S.String.pipe(T.Label()),
|
|
6133
|
-
message_id: S.String.pipe(T.Label()),
|
|
6134
|
-
}).pipe(T.Http({
|
|
6135
|
-
method: "PUT",
|
|
6136
|
-
uri: "/channels/{channel_id}/pins/{message_id}",
|
|
6137
|
-
code: 200,
|
|
6138
|
-
}))).annotate({
|
|
6139
|
-
identifier: "DeprecatedCreatePinRequest",
|
|
6140
|
-
});
|
|
6141
|
-
export const DeprecatedCreatePinResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
6142
|
-
identifier: "DeprecatedCreatePinResponse",
|
|
6143
|
-
});
|
|
6144
|
-
export const DeprecatedDeletePinRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
6145
|
-
channel_id: S.String.pipe(T.Label()),
|
|
6146
|
-
message_id: S.String.pipe(T.Label()),
|
|
6147
|
-
}).pipe(T.Http({
|
|
6148
|
-
method: "DELETE",
|
|
6149
|
-
uri: "/channels/{channel_id}/pins/{message_id}",
|
|
6150
|
-
code: 200,
|
|
6151
|
-
}))).annotate({
|
|
6152
|
-
identifier: "DeprecatedDeletePinRequest",
|
|
6153
|
-
});
|
|
6154
|
-
export const DeprecatedDeletePinResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
6155
|
-
identifier: "DeprecatedDeletePinResponse",
|
|
6156
|
-
});
|
|
6157
|
-
export const DeprecatedListPinsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
6158
|
-
channel_id: S.String.pipe(T.Label()),
|
|
6159
|
-
}).pipe(T.Http({ method: "GET", uri: "/channels/{channel_id}/pins", code: 200 }))).annotate({
|
|
6160
|
-
identifier: "DeprecatedListPinsRequest",
|
|
6161
|
-
});
|
|
6162
|
-
export const DeprecatedListPinsResponseBodyList = /*@__PURE__*/ S.Array(MessageResponse);
|
|
6163
|
-
export const DeprecatedListPinsResponse = /*@__PURE__*/ S.suspend(() => DeprecatedListPinsResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
6164
|
-
identifier: "DeprecatedListPinsResponse",
|
|
6165
|
-
});
|
|
6166
6038
|
export const EditLobbyRequestMetadataMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
6167
6039
|
export const EditLobbyRequestMembersList = /*@__PURE__*/ S.Array(LobbyMemberRequest);
|
|
6168
6040
|
export const EditLobbyRequestFlags = /*@__PURE__*/ S.Number;
|
|
@@ -6565,8 +6437,11 @@ export const PrivateApplicationResponse = /*@__PURE__*/ S.suspend(() => S.Struct
|
|
|
6565
6437
|
type: S.NullOr(ApplicationTypes),
|
|
6566
6438
|
cover_image: S.optional(S.String),
|
|
6567
6439
|
primary_sku_id: S.optional(S.String),
|
|
6440
|
+
flags: S.Number,
|
|
6441
|
+
flags_new: S.String,
|
|
6568
6442
|
bot: S.optional(UserResponse),
|
|
6569
6443
|
slug: S.optional(S.String),
|
|
6444
|
+
vibegrations_project_id: S.optional(S.String),
|
|
6570
6445
|
guild_id: S.optional(S.String),
|
|
6571
6446
|
rpc_origins: S.optional(PrivateApplicationResponseRpcOriginsList),
|
|
6572
6447
|
bot_public: S.optional(S.Boolean),
|
|
@@ -6577,8 +6452,6 @@ export const PrivateApplicationResponse = /*@__PURE__*/ S.suspend(() => S.Struct
|
|
|
6577
6452
|
install_params: S.optional(ApplicationOAuth2InstallParamsResponse),
|
|
6578
6453
|
integration_types_config: S.optional(PrivateApplicationResponseIntegrationTypesConfigMap),
|
|
6579
6454
|
verify_key: S.String,
|
|
6580
|
-
flags: S.Number,
|
|
6581
|
-
flags_new: S.String,
|
|
6582
6455
|
max_participants: S.optional(S.NullOr(S.Number)),
|
|
6583
6456
|
tags: S.optional(PrivateApplicationResponseTagsList),
|
|
6584
6457
|
redirect_uris: PrivateApplicationResponseRedirectUrisList,
|
|
@@ -6597,6 +6470,46 @@ export const PrivateApplicationResponse = /*@__PURE__*/ S.suspend(() => S.Struct
|
|
|
6597
6470
|
})).annotate({
|
|
6598
6471
|
identifier: "PrivateApplicationResponse",
|
|
6599
6472
|
});
|
|
6473
|
+
export const GetApplicationActivityInstanceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
6474
|
+
application_id: S.String.pipe(T.Label()),
|
|
6475
|
+
instance_id: S.String.pipe(T.Label()),
|
|
6476
|
+
}).pipe(T.Http({
|
|
6477
|
+
method: "GET",
|
|
6478
|
+
uri: "/applications/{application_id}/activity-instances/{instance_id}",
|
|
6479
|
+
code: 200,
|
|
6480
|
+
}))).annotate({
|
|
6481
|
+
identifier: "GetApplicationActivityInstanceRequest",
|
|
6482
|
+
});
|
|
6483
|
+
export const EmbeddedActivityLocationKind = /*@__PURE__*/ S.String;
|
|
6484
|
+
export const GuildChannelLocation = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
6485
|
+
id: S.String,
|
|
6486
|
+
kind: EmbeddedActivityLocationKind,
|
|
6487
|
+
channel_id: S.String,
|
|
6488
|
+
guild_id: S.String,
|
|
6489
|
+
})).annotate({
|
|
6490
|
+
identifier: "GuildChannelLocation",
|
|
6491
|
+
});
|
|
6492
|
+
export const PrivateChannelLocation = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
6493
|
+
id: S.String,
|
|
6494
|
+
kind: EmbeddedActivityLocationKind,
|
|
6495
|
+
channel_id: S.String,
|
|
6496
|
+
})).annotate({
|
|
6497
|
+
identifier: "PrivateChannelLocation",
|
|
6498
|
+
});
|
|
6499
|
+
export const EmbeddedActivityInstanceLocation = /*@__PURE__*/ S.Unknown.pipe(T.UnionCases([
|
|
6500
|
+
["id", "kind", "channel_id", "guild_id"],
|
|
6501
|
+
["id", "kind", "channel_id"],
|
|
6502
|
+
]));
|
|
6503
|
+
export const EmbeddedActivityInstanceUsersList = /*@__PURE__*/ S.Array(S.String);
|
|
6504
|
+
export const EmbeddedActivityInstance = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
6505
|
+
application_id: S.String,
|
|
6506
|
+
instance_id: S.String,
|
|
6507
|
+
launch_id: S.String,
|
|
6508
|
+
location: EmbeddedActivityInstanceLocation,
|
|
6509
|
+
users: EmbeddedActivityInstanceUsersList,
|
|
6510
|
+
})).annotate({
|
|
6511
|
+
identifier: "EmbeddedActivityInstance",
|
|
6512
|
+
});
|
|
6600
6513
|
export const GetApplicationCommandRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
6601
6514
|
application_id: S.String.pipe(T.Label()),
|
|
6602
6515
|
command_id: S.String.pipe(T.Label()),
|
|
@@ -7041,6 +6954,7 @@ export const GetGuildEmojiRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
7041
6954
|
}))).annotate({
|
|
7042
6955
|
identifier: "GetGuildEmojiRequest",
|
|
7043
6956
|
});
|
|
6957
|
+
export const GuildJoinRequestApplicationStatus = /*@__PURE__*/ S.String;
|
|
7044
6958
|
export const GetGuildJoinRequestsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
7045
6959
|
guild_id: S.String.pipe(T.Label()),
|
|
7046
6960
|
status: S.optional(GuildJoinRequestApplicationStatus.pipe(T.Query())),
|
|
@@ -7050,23 +6964,93 @@ export const GetGuildJoinRequestsRequest = /*@__PURE__*/ S.suspend(() => S.Struc
|
|
|
7050
6964
|
}).pipe(T.Http({ method: "GET", uri: "/guilds/{guild_id}/requests", code: 200 }))).annotate({
|
|
7051
6965
|
identifier: "GetGuildJoinRequestsRequest",
|
|
7052
6966
|
});
|
|
7053
|
-
export const
|
|
7054
|
-
/*@__PURE__*/ S.Array(
|
|
7055
|
-
export const
|
|
7056
|
-
|
|
7057
|
-
|
|
6967
|
+
export const GuildMemberVerificationFormFieldType = /*@__PURE__*/ S.String;
|
|
6968
|
+
export const MultipleChoiceFormFieldResponseChoicesList = /*@__PURE__*/ S.Array(S.String);
|
|
6969
|
+
export const MultipleChoiceFormFieldResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
6970
|
+
field_type: GuildMemberVerificationFormFieldType,
|
|
6971
|
+
label: S.optional(S.String),
|
|
6972
|
+
description: S.optional(S.String),
|
|
6973
|
+
required: S.optional(S.Boolean),
|
|
6974
|
+
choices: MultipleChoiceFormFieldResponseChoicesList,
|
|
6975
|
+
response: S.optional(S.Number),
|
|
7058
6976
|
})).annotate({
|
|
7059
|
-
identifier: "
|
|
7060
|
-
});
|
|
7061
|
-
export const
|
|
7062
|
-
|
|
7063
|
-
|
|
7064
|
-
|
|
7065
|
-
|
|
7066
|
-
|
|
7067
|
-
|
|
7068
|
-
}))
|
|
7069
|
-
identifier: "
|
|
6977
|
+
identifier: "MultipleChoiceFormFieldResponse",
|
|
6978
|
+
});
|
|
6979
|
+
export const ParagraphFormFieldResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
6980
|
+
field_type: GuildMemberVerificationFormFieldType,
|
|
6981
|
+
label: S.optional(S.String),
|
|
6982
|
+
description: S.optional(S.String),
|
|
6983
|
+
required: S.optional(S.Boolean),
|
|
6984
|
+
placeholder: S.optional(S.String),
|
|
6985
|
+
response: S.optional(S.String),
|
|
6986
|
+
})).annotate({
|
|
6987
|
+
identifier: "ParagraphFormFieldResponse",
|
|
6988
|
+
});
|
|
6989
|
+
export const TermsFormFieldResponseValuesList = /*@__PURE__*/ S.Array(S.String);
|
|
6990
|
+
export const TermsFormFieldResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
6991
|
+
field_type: GuildMemberVerificationFormFieldType,
|
|
6992
|
+
label: S.optional(S.String),
|
|
6993
|
+
description: S.optional(S.String),
|
|
6994
|
+
required: S.optional(S.Boolean),
|
|
6995
|
+
values: TermsFormFieldResponseValuesList,
|
|
6996
|
+
response: S.optional(S.Boolean),
|
|
6997
|
+
})).annotate({
|
|
6998
|
+
identifier: "TermsFormFieldResponse",
|
|
6999
|
+
});
|
|
7000
|
+
export const TextInputFormFieldResponse = ParagraphFormFieldResponse;
|
|
7001
|
+
export const GuildJoinRequestResponseFormResponsesItem =
|
|
7002
|
+
/*@__PURE__*/ S.Unknown.pipe(T.UnionCases([
|
|
7003
|
+
["field_type", "label", "description", "required", "choices", "response"],
|
|
7004
|
+
[
|
|
7005
|
+
"field_type",
|
|
7006
|
+
"label",
|
|
7007
|
+
"description",
|
|
7008
|
+
"required",
|
|
7009
|
+
"placeholder",
|
|
7010
|
+
"response",
|
|
7011
|
+
],
|
|
7012
|
+
["field_type", "label", "description", "required", "values", "response"],
|
|
7013
|
+
[
|
|
7014
|
+
"field_type",
|
|
7015
|
+
"label",
|
|
7016
|
+
"description",
|
|
7017
|
+
"required",
|
|
7018
|
+
"placeholder",
|
|
7019
|
+
"response",
|
|
7020
|
+
],
|
|
7021
|
+
]));
|
|
7022
|
+
export const GuildJoinRequestResponseFormResponsesList = /*@__PURE__*/ S.Array(GuildJoinRequestResponseFormResponsesItem);
|
|
7023
|
+
export const GuildJoinRequestResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
7024
|
+
id: S.String,
|
|
7025
|
+
created_at: S.String,
|
|
7026
|
+
reviewed_at: S.NullOr(S.String),
|
|
7027
|
+
application_status: S.NullOr(GuildJoinRequestApplicationStatus),
|
|
7028
|
+
rejection_reason: S.NullOr(S.String),
|
|
7029
|
+
guild_id: S.String,
|
|
7030
|
+
user_id: S.String,
|
|
7031
|
+
user: S.optional(S.NullOr(UserResponse)),
|
|
7032
|
+
form_responses: S.optional(S.NullOr(GuildJoinRequestResponseFormResponsesList)),
|
|
7033
|
+
actioned_by_user: S.optional(S.NullOr(UserResponse)),
|
|
7034
|
+
})).annotate({
|
|
7035
|
+
identifier: "GuildJoinRequestResponse",
|
|
7036
|
+
});
|
|
7037
|
+
export const GuildJoinRequestsListResponseGuildJoinRequestsList =
|
|
7038
|
+
/*@__PURE__*/ S.Array(GuildJoinRequestResponse);
|
|
7039
|
+
export const GuildJoinRequestsListResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
7040
|
+
total: S.optional(S.Number),
|
|
7041
|
+
guild_join_requests: S.optional(GuildJoinRequestsListResponseGuildJoinRequestsList),
|
|
7042
|
+
})).annotate({
|
|
7043
|
+
identifier: "GuildJoinRequestsListResponse",
|
|
7044
|
+
});
|
|
7045
|
+
export const GetGuildMemberRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
7046
|
+
guild_id: S.String.pipe(T.Label()),
|
|
7047
|
+
user_id: S.String.pipe(T.Label()),
|
|
7048
|
+
}).pipe(T.Http({
|
|
7049
|
+
method: "GET",
|
|
7050
|
+
uri: "/guilds/{guild_id}/members/{user_id}",
|
|
7051
|
+
code: 200,
|
|
7052
|
+
}))).annotate({
|
|
7053
|
+
identifier: "GetGuildMemberRequest",
|
|
7070
7054
|
});
|
|
7071
7055
|
export const GetGuildNewMemberWelcomeRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
7072
7056
|
guild_id: S.String.pipe(T.Label()),
|
|
@@ -7928,187 +7912,6 @@ export const GuildRoleMemberCountsResponseBodyMap = /*@__PURE__*/ S.Record(S.Str
|
|
|
7928
7912
|
export const GuildRoleMemberCountsResponse = /*@__PURE__*/ S.suspend(() => GuildRoleMemberCountsResponseBodyMap.pipe(T.RawResponseRoot())).annotate({
|
|
7929
7913
|
identifier: "GuildRoleMemberCountsResponse",
|
|
7930
7914
|
});
|
|
7931
|
-
export const SortingMode = /*@__PURE__*/ S.String;
|
|
7932
|
-
export const SortingOrder = /*@__PURE__*/ S.String;
|
|
7933
|
-
export const GuildSearchRequestAuthorIdList = /*@__PURE__*/ S.Array(S.String);
|
|
7934
|
-
export const AuthorType = /*@__PURE__*/ S.String;
|
|
7935
|
-
export const GuildSearchRequestAuthorTypeList = /*@__PURE__*/ S.Array(AuthorType);
|
|
7936
|
-
export const GuildSearchRequestMentionsList = /*@__PURE__*/ S.Array(S.String);
|
|
7937
|
-
export const GuildSearchRequestMentionsRoleIdList = /*@__PURE__*/ S.Array(S.String);
|
|
7938
|
-
export const GuildSearchRequestRepliedToUserIdList = /*@__PURE__*/ S.Array(S.String);
|
|
7939
|
-
export const GuildSearchRequestRepliedToMessageIdList = /*@__PURE__*/ S.Array(S.String);
|
|
7940
|
-
export const HasOption = /*@__PURE__*/ S.String;
|
|
7941
|
-
export const GuildSearchRequestHasList = /*@__PURE__*/ S.Array(HasOption);
|
|
7942
|
-
export const GuildSearchRequestLinkHostnameList = /*@__PURE__*/ S.Array(S.String);
|
|
7943
|
-
export const GuildSearchRequestEmbedProviderList = /*@__PURE__*/ S.Array(S.String);
|
|
7944
|
-
export const SearchableEmbedType = /*@__PURE__*/ S.String;
|
|
7945
|
-
export const GuildSearchRequestEmbedTypeList = /*@__PURE__*/ S.Array(SearchableEmbedType);
|
|
7946
|
-
export const GuildSearchRequestAttachmentExtensionList = /*@__PURE__*/ S.Array(S.String);
|
|
7947
|
-
export const GuildSearchRequestAttachmentFilenameList = /*@__PURE__*/ S.Array(S.String);
|
|
7948
|
-
export const GuildSearchRequestChannelIdList = /*@__PURE__*/ S.Array(S.String);
|
|
7949
|
-
export const GuildSearchRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
7950
|
-
guild_id: S.String.pipe(T.Label()),
|
|
7951
|
-
sort_by: S.optional(SortingMode.pipe(T.Query())),
|
|
7952
|
-
sort_order: S.optional(SortingOrder.pipe(T.Query())),
|
|
7953
|
-
content: S.optional(S.String.pipe(T.Query())),
|
|
7954
|
-
slop: S.optional(S.Number.pipe(T.Query())),
|
|
7955
|
-
author_id: S.optional(GuildSearchRequestAuthorIdList.pipe(T.Query())),
|
|
7956
|
-
author_type: S.optional(GuildSearchRequestAuthorTypeList.pipe(T.Query())),
|
|
7957
|
-
mentions: S.optional(GuildSearchRequestMentionsList.pipe(T.Query())),
|
|
7958
|
-
mentions_role_id: S.optional(GuildSearchRequestMentionsRoleIdList.pipe(T.Query())),
|
|
7959
|
-
replied_to_user_id: S.optional(GuildSearchRequestRepliedToUserIdList.pipe(T.Query())),
|
|
7960
|
-
replied_to_message_id: S.optional(GuildSearchRequestRepliedToMessageIdList.pipe(T.Query())),
|
|
7961
|
-
mention_everyone: S.optional(S.Boolean.pipe(T.Query())),
|
|
7962
|
-
min_id: S.optional(S.String.pipe(T.Query())),
|
|
7963
|
-
max_id: S.optional(S.String.pipe(T.Query())),
|
|
7964
|
-
limit: S.optional(S.Number.pipe(T.Query())),
|
|
7965
|
-
offset: S.optional(S.Number.pipe(T.Query())),
|
|
7966
|
-
has: S.optional(GuildSearchRequestHasList.pipe(T.Query())),
|
|
7967
|
-
link_hostname: S.optional(GuildSearchRequestLinkHostnameList.pipe(T.Query())),
|
|
7968
|
-
embed_provider: S.optional(GuildSearchRequestEmbedProviderList.pipe(T.Query())),
|
|
7969
|
-
embed_type: S.optional(GuildSearchRequestEmbedTypeList.pipe(T.Query())),
|
|
7970
|
-
attachment_extension: S.optional(GuildSearchRequestAttachmentExtensionList.pipe(T.Query())),
|
|
7971
|
-
attachment_filename: S.optional(GuildSearchRequestAttachmentFilenameList.pipe(T.Query())),
|
|
7972
|
-
pinned: S.optional(S.Boolean.pipe(T.Query())),
|
|
7973
|
-
include_nsfw: S.optional(S.Boolean.pipe(T.Query())),
|
|
7974
|
-
channel_id: S.optional(GuildSearchRequestChannelIdList.pipe(T.Query())),
|
|
7975
|
-
}).pipe(T.Http({
|
|
7976
|
-
method: "GET",
|
|
7977
|
-
uri: "/guilds/{guild_id}/messages/search",
|
|
7978
|
-
code: 200,
|
|
7979
|
-
}))).annotate({
|
|
7980
|
-
identifier: "GuildSearchRequest",
|
|
7981
|
-
});
|
|
7982
|
-
export const SearchMessageResponseMentionsList = /*@__PURE__*/ S.Array(UserResponse);
|
|
7983
|
-
export const SearchMessageResponseMentionRolesList = /*@__PURE__*/ S.Array(S.String);
|
|
7984
|
-
export const SearchMessageResponseAttachmentsList = /*@__PURE__*/ S.Array(MessageAttachmentResponse);
|
|
7985
|
-
export const SearchMessageResponseEmbedsList = /*@__PURE__*/ S.Array(MessageEmbedResponse);
|
|
7986
|
-
export const SearchMessageResponseComponentsItem = /*@__PURE__*/ S.Unknown.pipe(T.UnionCases([
|
|
7987
|
-
["type", "id", "components"],
|
|
7988
|
-
["type", "id", "accent_color", "components", "spoiler"],
|
|
7989
|
-
["type", "id", "file", "name", "size", "spoiler"],
|
|
7990
|
-
["type", "id", "items"],
|
|
7991
|
-
["type", "id", "components", "accessory"],
|
|
7992
|
-
["type", "id", "spacing", "divider"],
|
|
7993
|
-
["type", "id", "content"],
|
|
7994
|
-
]));
|
|
7995
|
-
export const SearchMessageResponseComponentsList = /*@__PURE__*/ S.Array(SearchMessageResponseComponentsItem);
|
|
7996
|
-
export const SearchMessageResponseStickersItem = /*@__PURE__*/ S.Unknown.pipe(T.UnionCases([
|
|
7997
|
-
[
|
|
7998
|
-
"id",
|
|
7999
|
-
"name",
|
|
8000
|
-
"tags",
|
|
8001
|
-
"type",
|
|
8002
|
-
"format_type",
|
|
8003
|
-
"description",
|
|
8004
|
-
"available",
|
|
8005
|
-
"guild_id",
|
|
8006
|
-
"user",
|
|
8007
|
-
],
|
|
8008
|
-
[
|
|
8009
|
-
"id",
|
|
8010
|
-
"name",
|
|
8011
|
-
"tags",
|
|
8012
|
-
"type",
|
|
8013
|
-
"format_type",
|
|
8014
|
-
"description",
|
|
8015
|
-
"pack_id",
|
|
8016
|
-
"sort_value",
|
|
8017
|
-
],
|
|
8018
|
-
]));
|
|
8019
|
-
export const SearchMessageResponseStickersList = /*@__PURE__*/ S.Array(SearchMessageResponseStickersItem);
|
|
8020
|
-
export const SearchMessageResponseStickerItemsList = /*@__PURE__*/ S.Array(MessageStickerItemResponse);
|
|
8021
|
-
export const SearchMessageResponseNonce = /*@__PURE__*/ S.Unknown.pipe(T.UnionCases([[], []]));
|
|
8022
|
-
export const SearchMessageResponseMentionChannelsList = /*@__PURE__*/ S.Array(MessageMentionChannelResponse);
|
|
8023
|
-
export const SearchMessageResponseInteractionMetadata =
|
|
8024
|
-
/*@__PURE__*/ S.Unknown.pipe(T.UnionCases([
|
|
8025
|
-
[
|
|
8026
|
-
"id",
|
|
8027
|
-
"type",
|
|
8028
|
-
"user",
|
|
8029
|
-
"authorizing_integration_owners",
|
|
8030
|
-
"original_response_message_id",
|
|
8031
|
-
"target_user",
|
|
8032
|
-
"target_message_id",
|
|
8033
|
-
],
|
|
8034
|
-
[
|
|
8035
|
-
"id",
|
|
8036
|
-
"type",
|
|
8037
|
-
"user",
|
|
8038
|
-
"authorizing_integration_owners",
|
|
8039
|
-
"original_response_message_id",
|
|
8040
|
-
"interacted_message_id",
|
|
8041
|
-
],
|
|
8042
|
-
[
|
|
8043
|
-
"id",
|
|
8044
|
-
"type",
|
|
8045
|
-
"user",
|
|
8046
|
-
"authorizing_integration_owners",
|
|
8047
|
-
"original_response_message_id",
|
|
8048
|
-
"triggering_interaction_metadata",
|
|
8049
|
-
],
|
|
8050
|
-
]));
|
|
8051
|
-
export const SearchMessageResponseMessageSnapshotsList = /*@__PURE__*/ S.Array(MessageSnapshotResponse);
|
|
8052
|
-
export const SearchMessageResponseReactionsList = /*@__PURE__*/ S.Array(MessageReactionResponse);
|
|
8053
|
-
export const SearchMessageResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
8054
|
-
type: MessageType,
|
|
8055
|
-
content: S.String,
|
|
8056
|
-
mentions: SearchMessageResponseMentionsList,
|
|
8057
|
-
mention_roles: SearchMessageResponseMentionRolesList,
|
|
8058
|
-
attachments: SearchMessageResponseAttachmentsList,
|
|
8059
|
-
embeds: SearchMessageResponseEmbedsList,
|
|
8060
|
-
timestamp: S.String,
|
|
8061
|
-
edited_timestamp: S.NullOr(S.String),
|
|
8062
|
-
flags: S.Number,
|
|
8063
|
-
components: SearchMessageResponseComponentsList,
|
|
8064
|
-
stickers: S.optional(SearchMessageResponseStickersList),
|
|
8065
|
-
sticker_items: S.optional(SearchMessageResponseStickerItemsList),
|
|
8066
|
-
id: S.String,
|
|
8067
|
-
channel_id: S.String,
|
|
8068
|
-
author: UserResponse,
|
|
8069
|
-
pinned: S.Boolean,
|
|
8070
|
-
mention_everyone: S.Boolean,
|
|
8071
|
-
tts: S.Boolean,
|
|
8072
|
-
call: S.optional(MessageCallResponse),
|
|
8073
|
-
activity: S.optional(MessageActivityResponse),
|
|
8074
|
-
application: S.optional(BasicApplicationResponseWithBot),
|
|
8075
|
-
application_id: S.optional(S.String),
|
|
8076
|
-
interaction: S.optional(MessageInteractionResponse),
|
|
8077
|
-
nonce: S.optional(SearchMessageResponseNonce),
|
|
8078
|
-
webhook_id: S.optional(S.String),
|
|
8079
|
-
message_reference: S.optional(MessageReferenceResponse),
|
|
8080
|
-
thread: S.optional(ThreadResponse),
|
|
8081
|
-
mention_channels: S.optional(SearchMessageResponseMentionChannelsList),
|
|
8082
|
-
role_subscription_data: S.optional(MessageRoleSubscriptionDataResponse),
|
|
8083
|
-
purchase_notification: S.optional(PurchaseNotificationResponse),
|
|
8084
|
-
position: S.optional(S.Number),
|
|
8085
|
-
resolved: S.optional(ResolvedObjectsResponse),
|
|
8086
|
-
poll: S.optional(PollResponse),
|
|
8087
|
-
shared_client_theme: S.optional(CustomClientThemeResponse),
|
|
8088
|
-
interaction_metadata: S.optional(SearchMessageResponseInteractionMetadata),
|
|
8089
|
-
message_snapshots: S.optional(SearchMessageResponseMessageSnapshotsList),
|
|
8090
|
-
lobby_member: S.optional(MessageLobbyMemberResponse),
|
|
8091
|
-
reactions: S.optional(SearchMessageResponseReactionsList),
|
|
8092
|
-
referenced_message: S.optional(S.NullOr(BasicMessageResponse)),
|
|
8093
|
-
hit: S.Boolean,
|
|
8094
|
-
restriction_count: S.optional(S.Number),
|
|
8095
|
-
})).annotate({
|
|
8096
|
-
identifier: "SearchMessageResponse",
|
|
8097
|
-
});
|
|
8098
|
-
export const GuildSearchResponseMessagesItemList = /*@__PURE__*/ S.Array(SearchMessageResponse);
|
|
8099
|
-
export const GuildSearchResponseMessagesList = /*@__PURE__*/ S.Array(GuildSearchResponseMessagesItemList);
|
|
8100
|
-
export const GuildSearchResponseThreadsList = /*@__PURE__*/ S.Array(ThreadResponse);
|
|
8101
|
-
export const GuildSearchResponseMembersList = /*@__PURE__*/ S.Array(ThreadMemberResponse);
|
|
8102
|
-
export const GuildSearchResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
8103
|
-
messages: GuildSearchResponseMessagesList,
|
|
8104
|
-
doing_deep_historical_index: S.Boolean,
|
|
8105
|
-
total_results: S.Number,
|
|
8106
|
-
threads: S.optional(S.NullOr(GuildSearchResponseThreadsList)),
|
|
8107
|
-
members: S.optional(S.NullOr(GuildSearchResponseMembersList)),
|
|
8108
|
-
documents_indexed: S.optional(S.NullOr(S.Number)),
|
|
8109
|
-
})).annotate({
|
|
8110
|
-
identifier: "GuildSearchResponse",
|
|
8111
|
-
});
|
|
8112
7915
|
export const InviteResolveRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
8113
7916
|
code: S.String.pipe(T.Label()),
|
|
8114
7917
|
with_counts: S.optional(S.Boolean.pipe(T.Query())),
|
|
@@ -8174,66 +7977,17 @@ export const InviteResolveResponseBody = /*@__PURE__*/ S.Unknown.pipe(T.UnionCas
|
|
|
8174
7977
|
export const InviteResolveResponse = /*@__PURE__*/ S.suspend(() => InviteResolveResponseBody.pipe(T.RawResponseRoot())).annotate({
|
|
8175
7978
|
identifier: "InviteResolveResponse",
|
|
8176
7979
|
});
|
|
8177
|
-
export const
|
|
8178
|
-
|
|
8179
|
-
|
|
8180
|
-
|
|
8181
|
-
|
|
8182
|
-
|
|
8183
|
-
|
|
8184
|
-
|
|
8185
|
-
|
|
8186
|
-
|
|
8187
|
-
|
|
8188
|
-
"created_at",
|
|
8189
|
-
"expires_at",
|
|
8190
|
-
"friends_count",
|
|
8191
|
-
"channel",
|
|
8192
|
-
"is_contact",
|
|
8193
|
-
"uses",
|
|
8194
|
-
"max_uses",
|
|
8195
|
-
"flags",
|
|
8196
|
-
],
|
|
8197
|
-
[
|
|
8198
|
-
"type",
|
|
8199
|
-
"code",
|
|
8200
|
-
"inviter",
|
|
8201
|
-
"max_age",
|
|
8202
|
-
"created_at",
|
|
8203
|
-
"expires_at",
|
|
8204
|
-
"channel",
|
|
8205
|
-
"approximate_member_count",
|
|
8206
|
-
],
|
|
8207
|
-
[
|
|
8208
|
-
"type",
|
|
8209
|
-
"code",
|
|
8210
|
-
"inviter",
|
|
8211
|
-
"max_age",
|
|
8212
|
-
"created_at",
|
|
8213
|
-
"expires_at",
|
|
8214
|
-
"is_contact",
|
|
8215
|
-
"flags",
|
|
8216
|
-
"guild",
|
|
8217
|
-
"guild_id",
|
|
8218
|
-
"channel",
|
|
8219
|
-
"target_type",
|
|
8220
|
-
"target_user",
|
|
8221
|
-
"target_application",
|
|
8222
|
-
"guild_scheduled_event",
|
|
8223
|
-
"target_channel_id",
|
|
8224
|
-
"target_message_id",
|
|
8225
|
-
"liveliness",
|
|
8226
|
-
"uses",
|
|
8227
|
-
"max_uses",
|
|
8228
|
-
"temporary",
|
|
8229
|
-
"approximate_member_count",
|
|
8230
|
-
"approximate_presence_count",
|
|
8231
|
-
"is_nickname_changeable",
|
|
8232
|
-
"roles",
|
|
8233
|
-
],
|
|
8234
|
-
]));
|
|
8235
|
-
export const InviteRevokeResponse = /*@__PURE__*/ S.suspend(() => InviteRevokeResponseBody.pipe(T.RawResponseRoot())).annotate({
|
|
8236
|
-
identifier: "InviteRevokeResponse",
|
|
7980
|
+
export const JoinActionGuildRequestRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
7981
|
+
guild_id: S.String.pipe(T.Label()),
|
|
7982
|
+
request_id: S.String.pipe(T.Label()),
|
|
7983
|
+
action: S.optional(GuildJoinRequestApplicationStatus),
|
|
7984
|
+
rejection_reason: S.optional(S.NullOr(S.String)),
|
|
7985
|
+
}).pipe(T.Http({
|
|
7986
|
+
method: "PATCH",
|
|
7987
|
+
uri: "/guilds/{guild_id}/requests/{request_id}",
|
|
7988
|
+
code: 200,
|
|
7989
|
+
}))).annotate({
|
|
7990
|
+
identifier: "JoinActionGuildRequestRequest",
|
|
8237
7991
|
});
|
|
8238
7992
|
export const JoinThreadRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
8239
7993
|
channel_id: S.String.pipe(T.Label()),
|
|
@@ -8504,6 +8258,15 @@ export const ListChannelWebhooksResponseBodyList = /*@__PURE__*/ S.Array(ListCha
|
|
|
8504
8258
|
export const ListChannelWebhooksResponse = /*@__PURE__*/ S.suspend(() => ListChannelWebhooksResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
8505
8259
|
identifier: "ListChannelWebhooksResponse",
|
|
8506
8260
|
});
|
|
8261
|
+
export const ListDeprecatedPinsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
8262
|
+
channel_id: S.String.pipe(T.Label()),
|
|
8263
|
+
}).pipe(T.Http({ method: "GET", uri: "/channels/{channel_id}/pins", code: 200 }))).annotate({
|
|
8264
|
+
identifier: "ListDeprecatedPinsRequest",
|
|
8265
|
+
});
|
|
8266
|
+
export const ListDeprecatedPinsResponseBodyList = /*@__PURE__*/ S.Array(MessageResponse);
|
|
8267
|
+
export const ListDeprecatedPinsResponse = /*@__PURE__*/ S.suspend(() => ListDeprecatedPinsResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
8268
|
+
identifier: "ListDeprecatedPinsResponse",
|
|
8269
|
+
});
|
|
8507
8270
|
export const ListGuildApplicationCommandPermissionsRequest =
|
|
8508
8271
|
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
8509
8272
|
application_id: S.String.pipe(T.Label()),
|
|
@@ -9048,7 +8811,7 @@ export const ListGuildInvitesResponse = /*@__PURE__*/ S.suspend(() => ListGuildI
|
|
|
9048
8811
|
export const ListGuildMembersRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
9049
8812
|
guild_id: S.String.pipe(T.Label()),
|
|
9050
8813
|
limit: S.optional(S.Number.pipe(T.Query())),
|
|
9051
|
-
after: S.optional(S.
|
|
8814
|
+
after: S.optional(S.String.pipe(T.Query())),
|
|
9052
8815
|
}).pipe(T.Http({ method: "GET", uri: "/guilds/{guild_id}/members", code: 200 }))).annotate({
|
|
9053
8816
|
identifier: "ListGuildMembersRequest",
|
|
9054
8817
|
});
|
|
@@ -9516,31 +9279,273 @@ export const UpdateOnboardingPromptRequest = /*@__PURE__*/ S.suspend(() => S.Str
|
|
|
9516
9279
|
type: S.optional(S.NullOr(OnboardingPromptType)),
|
|
9517
9280
|
id: S.String,
|
|
9518
9281
|
})).annotate({
|
|
9519
|
-
identifier: "UpdateOnboardingPromptRequest",
|
|
9520
|
-
});
|
|
9521
|
-
export const PutGuildsOnboardingRequestPromptsList = /*@__PURE__*/ S.Array(UpdateOnboardingPromptRequest);
|
|
9522
|
-
export const PutGuildsOnboardingRequestDefaultChannelIdsList =
|
|
9523
|
-
/*@__PURE__*/ S.Array(S.String);
|
|
9524
|
-
export const PutGuildsOnboardingRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
9525
|
-
guild_id: S.String.pipe(T.Label()),
|
|
9526
|
-
prompts: S.optional(S.NullOr(PutGuildsOnboardingRequestPromptsList)),
|
|
9527
|
-
enabled: S.optional(S.NullOr(S.Boolean)),
|
|
9528
|
-
default_channel_ids: S.optional(S.NullOr(PutGuildsOnboardingRequestDefaultChannelIdsList)),
|
|
9529
|
-
mode: S.optional(S.NullOr(GuildOnboardingMode)),
|
|
9530
|
-
}).pipe(T.Http({ method: "PUT", uri: "/guilds/{guild_id}/onboarding", code: 200 }))).annotate({
|
|
9531
|
-
identifier: "PutGuildsOnboardingRequest",
|
|
9282
|
+
identifier: "UpdateOnboardingPromptRequest",
|
|
9283
|
+
});
|
|
9284
|
+
export const PutGuildsOnboardingRequestPromptsList = /*@__PURE__*/ S.Array(UpdateOnboardingPromptRequest);
|
|
9285
|
+
export const PutGuildsOnboardingRequestDefaultChannelIdsList =
|
|
9286
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
9287
|
+
export const PutGuildsOnboardingRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
9288
|
+
guild_id: S.String.pipe(T.Label()),
|
|
9289
|
+
prompts: S.optional(S.NullOr(PutGuildsOnboardingRequestPromptsList)),
|
|
9290
|
+
enabled: S.optional(S.NullOr(S.Boolean)),
|
|
9291
|
+
default_channel_ids: S.optional(S.NullOr(PutGuildsOnboardingRequestDefaultChannelIdsList)),
|
|
9292
|
+
mode: S.optional(S.NullOr(GuildOnboardingMode)),
|
|
9293
|
+
}).pipe(T.Http({ method: "PUT", uri: "/guilds/{guild_id}/onboarding", code: 200 }))).annotate({
|
|
9294
|
+
identifier: "PutGuildsOnboardingRequest",
|
|
9295
|
+
});
|
|
9296
|
+
export const GuildOnboardingResponsePromptsList = /*@__PURE__*/ S.Array(OnboardingPromptResponse);
|
|
9297
|
+
export const GuildOnboardingResponseDefaultChannelIdsList =
|
|
9298
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
9299
|
+
export const GuildOnboardingResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
9300
|
+
guild_id: S.String,
|
|
9301
|
+
prompts: GuildOnboardingResponsePromptsList,
|
|
9302
|
+
default_channel_ids: GuildOnboardingResponseDefaultChannelIdsList,
|
|
9303
|
+
enabled: S.Boolean,
|
|
9304
|
+
mode: GuildOnboardingMode,
|
|
9305
|
+
})).annotate({
|
|
9306
|
+
identifier: "GuildOnboardingResponse",
|
|
9307
|
+
});
|
|
9308
|
+
export const RevokeInviteRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
9309
|
+
code: S.String.pipe(T.Label()),
|
|
9310
|
+
}).pipe(T.Http({ method: "DELETE", uri: "/invites/{code}", code: 200 }))).annotate({
|
|
9311
|
+
identifier: "RevokeInviteRequest",
|
|
9312
|
+
});
|
|
9313
|
+
export const RevokeInviteResponseBody = /*@__PURE__*/ S.Unknown.pipe(T.UnionCases([
|
|
9314
|
+
[
|
|
9315
|
+
"type",
|
|
9316
|
+
"code",
|
|
9317
|
+
"inviter",
|
|
9318
|
+
"max_age",
|
|
9319
|
+
"created_at",
|
|
9320
|
+
"expires_at",
|
|
9321
|
+
"friends_count",
|
|
9322
|
+
"channel",
|
|
9323
|
+
"is_contact",
|
|
9324
|
+
"uses",
|
|
9325
|
+
"max_uses",
|
|
9326
|
+
"flags",
|
|
9327
|
+
],
|
|
9328
|
+
[
|
|
9329
|
+
"type",
|
|
9330
|
+
"code",
|
|
9331
|
+
"inviter",
|
|
9332
|
+
"max_age",
|
|
9333
|
+
"created_at",
|
|
9334
|
+
"expires_at",
|
|
9335
|
+
"channel",
|
|
9336
|
+
"approximate_member_count",
|
|
9337
|
+
],
|
|
9338
|
+
[
|
|
9339
|
+
"type",
|
|
9340
|
+
"code",
|
|
9341
|
+
"inviter",
|
|
9342
|
+
"max_age",
|
|
9343
|
+
"created_at",
|
|
9344
|
+
"expires_at",
|
|
9345
|
+
"is_contact",
|
|
9346
|
+
"flags",
|
|
9347
|
+
"guild",
|
|
9348
|
+
"guild_id",
|
|
9349
|
+
"channel",
|
|
9350
|
+
"target_type",
|
|
9351
|
+
"target_user",
|
|
9352
|
+
"target_application",
|
|
9353
|
+
"guild_scheduled_event",
|
|
9354
|
+
"target_channel_id",
|
|
9355
|
+
"target_message_id",
|
|
9356
|
+
"liveliness",
|
|
9357
|
+
"uses",
|
|
9358
|
+
"max_uses",
|
|
9359
|
+
"temporary",
|
|
9360
|
+
"approximate_member_count",
|
|
9361
|
+
"approximate_presence_count",
|
|
9362
|
+
"is_nickname_changeable",
|
|
9363
|
+
"roles",
|
|
9364
|
+
],
|
|
9365
|
+
]));
|
|
9366
|
+
export const RevokeInviteResponse = /*@__PURE__*/ S.suspend(() => RevokeInviteResponseBody.pipe(T.RawResponseRoot())).annotate({
|
|
9367
|
+
identifier: "RevokeInviteResponse",
|
|
9368
|
+
});
|
|
9369
|
+
export const SortingMode = /*@__PURE__*/ S.String;
|
|
9370
|
+
export const SortingOrder = /*@__PURE__*/ S.String;
|
|
9371
|
+
export const SearchGuildRequestAuthorIdList = /*@__PURE__*/ S.Array(S.String);
|
|
9372
|
+
export const AuthorType = /*@__PURE__*/ S.String;
|
|
9373
|
+
export const SearchGuildRequestAuthorTypeList = /*@__PURE__*/ S.Array(AuthorType);
|
|
9374
|
+
export const SearchGuildRequestMentionsList = /*@__PURE__*/ S.Array(S.String);
|
|
9375
|
+
export const SearchGuildRequestMentionsRoleIdList = /*@__PURE__*/ S.Array(S.String);
|
|
9376
|
+
export const SearchGuildRequestRepliedToUserIdList = /*@__PURE__*/ S.Array(S.String);
|
|
9377
|
+
export const SearchGuildRequestRepliedToMessageIdList = /*@__PURE__*/ S.Array(S.String);
|
|
9378
|
+
export const HasOption = /*@__PURE__*/ S.String;
|
|
9379
|
+
export const SearchGuildRequestHasList = /*@__PURE__*/ S.Array(HasOption);
|
|
9380
|
+
export const SearchGuildRequestLinkHostnameList = /*@__PURE__*/ S.Array(S.String);
|
|
9381
|
+
export const SearchGuildRequestEmbedProviderList = /*@__PURE__*/ S.Array(S.String);
|
|
9382
|
+
export const SearchableEmbedType = /*@__PURE__*/ S.String;
|
|
9383
|
+
export const SearchGuildRequestEmbedTypeList = /*@__PURE__*/ S.Array(SearchableEmbedType);
|
|
9384
|
+
export const SearchGuildRequestAttachmentExtensionList = /*@__PURE__*/ S.Array(S.String);
|
|
9385
|
+
export const SearchGuildRequestAttachmentFilenameList = /*@__PURE__*/ S.Array(S.String);
|
|
9386
|
+
export const SearchGuildRequestChannelIdList = /*@__PURE__*/ S.Array(S.String);
|
|
9387
|
+
export const SearchGuildRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
9388
|
+
guild_id: S.String.pipe(T.Label()),
|
|
9389
|
+
sort_by: S.optional(SortingMode.pipe(T.Query())),
|
|
9390
|
+
sort_order: S.optional(SortingOrder.pipe(T.Query())),
|
|
9391
|
+
content: S.optional(S.String.pipe(T.Query())),
|
|
9392
|
+
slop: S.optional(S.Number.pipe(T.Query())),
|
|
9393
|
+
author_id: S.optional(SearchGuildRequestAuthorIdList.pipe(T.Query())),
|
|
9394
|
+
author_type: S.optional(SearchGuildRequestAuthorTypeList.pipe(T.Query())),
|
|
9395
|
+
mentions: S.optional(SearchGuildRequestMentionsList.pipe(T.Query())),
|
|
9396
|
+
mentions_role_id: S.optional(SearchGuildRequestMentionsRoleIdList.pipe(T.Query())),
|
|
9397
|
+
replied_to_user_id: S.optional(SearchGuildRequestRepliedToUserIdList.pipe(T.Query())),
|
|
9398
|
+
replied_to_message_id: S.optional(SearchGuildRequestRepliedToMessageIdList.pipe(T.Query())),
|
|
9399
|
+
mention_everyone: S.optional(S.Boolean.pipe(T.Query())),
|
|
9400
|
+
min_id: S.optional(S.String.pipe(T.Query())),
|
|
9401
|
+
max_id: S.optional(S.String.pipe(T.Query())),
|
|
9402
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
9403
|
+
offset: S.optional(S.Number.pipe(T.Query())),
|
|
9404
|
+
has: S.optional(SearchGuildRequestHasList.pipe(T.Query())),
|
|
9405
|
+
link_hostname: S.optional(SearchGuildRequestLinkHostnameList.pipe(T.Query())),
|
|
9406
|
+
embed_provider: S.optional(SearchGuildRequestEmbedProviderList.pipe(T.Query())),
|
|
9407
|
+
embed_type: S.optional(SearchGuildRequestEmbedTypeList.pipe(T.Query())),
|
|
9408
|
+
attachment_extension: S.optional(SearchGuildRequestAttachmentExtensionList.pipe(T.Query())),
|
|
9409
|
+
attachment_filename: S.optional(SearchGuildRequestAttachmentFilenameList.pipe(T.Query())),
|
|
9410
|
+
pinned: S.optional(S.Boolean.pipe(T.Query())),
|
|
9411
|
+
include_nsfw: S.optional(S.Boolean.pipe(T.Query())),
|
|
9412
|
+
channel_id: S.optional(SearchGuildRequestChannelIdList.pipe(T.Query())),
|
|
9413
|
+
}).pipe(T.Http({
|
|
9414
|
+
method: "GET",
|
|
9415
|
+
uri: "/guilds/{guild_id}/messages/search",
|
|
9416
|
+
code: 200,
|
|
9417
|
+
}))).annotate({
|
|
9418
|
+
identifier: "SearchGuildRequest",
|
|
9419
|
+
});
|
|
9420
|
+
export const SearchMessageResponseMentionsList = /*@__PURE__*/ S.Array(UserResponse);
|
|
9421
|
+
export const SearchMessageResponseMentionRolesList = /*@__PURE__*/ S.Array(S.String);
|
|
9422
|
+
export const SearchMessageResponseAttachmentsList = /*@__PURE__*/ S.Array(MessageAttachmentResponse);
|
|
9423
|
+
export const SearchMessageResponseEmbedsList = /*@__PURE__*/ S.Array(MessageEmbedResponse);
|
|
9424
|
+
export const SearchMessageResponseComponentsItem = /*@__PURE__*/ S.Unknown.pipe(T.UnionCases([
|
|
9425
|
+
["type", "id", "components"],
|
|
9426
|
+
["type", "id", "accent_color", "components", "spoiler"],
|
|
9427
|
+
["type", "id", "file", "name", "size", "spoiler"],
|
|
9428
|
+
["type", "id", "items"],
|
|
9429
|
+
["type", "id", "components", "accessory"],
|
|
9430
|
+
["type", "id", "spacing", "divider"],
|
|
9431
|
+
["type", "id", "content"],
|
|
9432
|
+
]));
|
|
9433
|
+
export const SearchMessageResponseComponentsList = /*@__PURE__*/ S.Array(SearchMessageResponseComponentsItem);
|
|
9434
|
+
export const SearchMessageResponseStickersItem = /*@__PURE__*/ S.Unknown.pipe(T.UnionCases([
|
|
9435
|
+
[
|
|
9436
|
+
"id",
|
|
9437
|
+
"name",
|
|
9438
|
+
"tags",
|
|
9439
|
+
"type",
|
|
9440
|
+
"format_type",
|
|
9441
|
+
"description",
|
|
9442
|
+
"available",
|
|
9443
|
+
"guild_id",
|
|
9444
|
+
"user",
|
|
9445
|
+
],
|
|
9446
|
+
[
|
|
9447
|
+
"id",
|
|
9448
|
+
"name",
|
|
9449
|
+
"tags",
|
|
9450
|
+
"type",
|
|
9451
|
+
"format_type",
|
|
9452
|
+
"description",
|
|
9453
|
+
"pack_id",
|
|
9454
|
+
"sort_value",
|
|
9455
|
+
],
|
|
9456
|
+
]));
|
|
9457
|
+
export const SearchMessageResponseStickersList = /*@__PURE__*/ S.Array(SearchMessageResponseStickersItem);
|
|
9458
|
+
export const SearchMessageResponseStickerItemsList = /*@__PURE__*/ S.Array(MessageStickerItemResponse);
|
|
9459
|
+
export const SearchMessageResponseNonce = /*@__PURE__*/ S.Unknown.pipe(T.UnionCases([[], []]));
|
|
9460
|
+
export const SearchMessageResponseMentionChannelsList = /*@__PURE__*/ S.Array(MessageMentionChannelResponse);
|
|
9461
|
+
export const SearchMessageResponseInteractionMetadata =
|
|
9462
|
+
/*@__PURE__*/ S.Unknown.pipe(T.UnionCases([
|
|
9463
|
+
[
|
|
9464
|
+
"id",
|
|
9465
|
+
"type",
|
|
9466
|
+
"user",
|
|
9467
|
+
"authorizing_integration_owners",
|
|
9468
|
+
"original_response_message_id",
|
|
9469
|
+
"target_user",
|
|
9470
|
+
"target_message_id",
|
|
9471
|
+
],
|
|
9472
|
+
[
|
|
9473
|
+
"id",
|
|
9474
|
+
"type",
|
|
9475
|
+
"user",
|
|
9476
|
+
"authorizing_integration_owners",
|
|
9477
|
+
"original_response_message_id",
|
|
9478
|
+
"interacted_message_id",
|
|
9479
|
+
],
|
|
9480
|
+
[
|
|
9481
|
+
"id",
|
|
9482
|
+
"type",
|
|
9483
|
+
"user",
|
|
9484
|
+
"authorizing_integration_owners",
|
|
9485
|
+
"original_response_message_id",
|
|
9486
|
+
"triggering_interaction_metadata",
|
|
9487
|
+
],
|
|
9488
|
+
]));
|
|
9489
|
+
export const SearchMessageResponseMessageSnapshotsList = /*@__PURE__*/ S.Array(MessageSnapshotResponse);
|
|
9490
|
+
export const SearchMessageResponseReactionsList = /*@__PURE__*/ S.Array(MessageReactionResponse);
|
|
9491
|
+
export const SearchMessageResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
9492
|
+
type: MessageType,
|
|
9493
|
+
content: S.String,
|
|
9494
|
+
mentions: SearchMessageResponseMentionsList,
|
|
9495
|
+
mention_roles: SearchMessageResponseMentionRolesList,
|
|
9496
|
+
attachments: SearchMessageResponseAttachmentsList,
|
|
9497
|
+
embeds: SearchMessageResponseEmbedsList,
|
|
9498
|
+
timestamp: S.String,
|
|
9499
|
+
edited_timestamp: S.NullOr(S.String),
|
|
9500
|
+
flags: S.Number,
|
|
9501
|
+
components: SearchMessageResponseComponentsList,
|
|
9502
|
+
stickers: S.optional(SearchMessageResponseStickersList),
|
|
9503
|
+
sticker_items: S.optional(SearchMessageResponseStickerItemsList),
|
|
9504
|
+
id: S.String,
|
|
9505
|
+
channel_id: S.String,
|
|
9506
|
+
author: UserResponse,
|
|
9507
|
+
pinned: S.Boolean,
|
|
9508
|
+
mention_everyone: S.Boolean,
|
|
9509
|
+
tts: S.Boolean,
|
|
9510
|
+
call: S.optional(MessageCallResponse),
|
|
9511
|
+
activity: S.optional(MessageActivityResponse),
|
|
9512
|
+
application: S.optional(BasicApplicationResponseWithBot),
|
|
9513
|
+
application_id: S.optional(S.String),
|
|
9514
|
+
interaction: S.optional(MessageInteractionResponse),
|
|
9515
|
+
nonce: S.optional(SearchMessageResponseNonce),
|
|
9516
|
+
webhook_id: S.optional(S.String),
|
|
9517
|
+
message_reference: S.optional(MessageReferenceResponse),
|
|
9518
|
+
thread: S.optional(ThreadResponse),
|
|
9519
|
+
mention_channels: S.optional(SearchMessageResponseMentionChannelsList),
|
|
9520
|
+
role_subscription_data: S.optional(MessageRoleSubscriptionDataResponse),
|
|
9521
|
+
purchase_notification: S.optional(PurchaseNotificationResponse),
|
|
9522
|
+
position: S.optional(S.Number),
|
|
9523
|
+
resolved: S.optional(ResolvedObjectsResponse),
|
|
9524
|
+
poll: S.optional(PollResponse),
|
|
9525
|
+
shared_client_theme: S.optional(CustomClientThemeResponse),
|
|
9526
|
+
interaction_metadata: S.optional(SearchMessageResponseInteractionMetadata),
|
|
9527
|
+
message_snapshots: S.optional(SearchMessageResponseMessageSnapshotsList),
|
|
9528
|
+
lobby_member: S.optional(MessageLobbyMemberResponse),
|
|
9529
|
+
reactions: S.optional(SearchMessageResponseReactionsList),
|
|
9530
|
+
referenced_message: S.optional(S.NullOr(BasicMessageResponse)),
|
|
9531
|
+
hit: S.Boolean,
|
|
9532
|
+
restriction_count: S.optional(S.Number),
|
|
9533
|
+
})).annotate({
|
|
9534
|
+
identifier: "SearchMessageResponse",
|
|
9532
9535
|
});
|
|
9533
|
-
export const
|
|
9534
|
-
export const
|
|
9535
|
-
/*@__PURE__*/ S.Array(
|
|
9536
|
-
export const
|
|
9537
|
-
|
|
9538
|
-
|
|
9539
|
-
|
|
9540
|
-
|
|
9541
|
-
|
|
9536
|
+
export const GuildSearchResponseMessagesItemList = /*@__PURE__*/ S.Array(SearchMessageResponse);
|
|
9537
|
+
export const GuildSearchResponseMessagesList = /*@__PURE__*/ S.Array(GuildSearchResponseMessagesItemList);
|
|
9538
|
+
export const GuildSearchResponseThreadsList = /*@__PURE__*/ S.Array(ThreadResponse);
|
|
9539
|
+
export const GuildSearchResponseMembersList = /*@__PURE__*/ S.Array(ThreadMemberResponse);
|
|
9540
|
+
export const GuildSearchResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
9541
|
+
messages: GuildSearchResponseMessagesList,
|
|
9542
|
+
doing_deep_historical_index: S.Boolean,
|
|
9543
|
+
total_results: S.Number,
|
|
9544
|
+
threads: S.optional(S.NullOr(GuildSearchResponseThreadsList)),
|
|
9545
|
+
members: S.optional(S.NullOr(GuildSearchResponseMembersList)),
|
|
9546
|
+
documents_indexed: S.optional(S.NullOr(S.Number)),
|
|
9542
9547
|
})).annotate({
|
|
9543
|
-
identifier: "
|
|
9548
|
+
identifier: "GuildSearchResponse",
|
|
9544
9549
|
});
|
|
9545
9550
|
export const SearchGuildMembersRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
9546
9551
|
guild_id: S.String.pipe(T.Label()),
|
|
@@ -9557,6 +9562,41 @@ export const SearchGuildMembersResponseBodyList = /*@__PURE__*/ S.Array(GuildMem
|
|
|
9557
9562
|
export const SearchGuildMembersResponse = /*@__PURE__*/ S.suspend(() => SearchGuildMembersResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
9558
9563
|
identifier: "SearchGuildMembersResponse",
|
|
9559
9564
|
});
|
|
9565
|
+
export const SearchThreadRequestTagCase1List = /*@__PURE__*/ S.Array(S.String);
|
|
9566
|
+
export const SearchThreadRequestTag = /*@__PURE__*/ S.Unknown.pipe(T.UnionCases([[], []]));
|
|
9567
|
+
export const ThreadSortingMode = /*@__PURE__*/ S.String;
|
|
9568
|
+
export const SearchThreadRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
9569
|
+
channel_id: S.String.pipe(T.Label()),
|
|
9570
|
+
name: S.optional(S.String.pipe(T.Query())),
|
|
9571
|
+
slop: S.optional(S.Number.pipe(T.Query())),
|
|
9572
|
+
min_id: S.optional(S.String.pipe(T.Query())),
|
|
9573
|
+
max_id: S.optional(S.String.pipe(T.Query())),
|
|
9574
|
+
tag: S.optional(SearchThreadRequestTag.pipe(T.Query())),
|
|
9575
|
+
tag_setting: S.optional(ThreadSearchTagSetting.pipe(T.Query())),
|
|
9576
|
+
archived: S.optional(S.Boolean.pipe(T.Query())),
|
|
9577
|
+
sort_by: S.optional(ThreadSortingMode.pipe(T.Query())),
|
|
9578
|
+
sort_order: S.optional(SortingOrder.pipe(T.Query())),
|
|
9579
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
9580
|
+
offset: S.optional(S.Number.pipe(T.Query())),
|
|
9581
|
+
}).pipe(T.Http({
|
|
9582
|
+
method: "GET",
|
|
9583
|
+
uri: "/channels/{channel_id}/threads/search",
|
|
9584
|
+
code: 200,
|
|
9585
|
+
}))).annotate({
|
|
9586
|
+
identifier: "SearchThreadRequest",
|
|
9587
|
+
});
|
|
9588
|
+
export const ThreadSearchResponseThreadsList = /*@__PURE__*/ S.Array(ThreadResponse);
|
|
9589
|
+
export const ThreadSearchResponseMembersList = /*@__PURE__*/ S.Array(ThreadMemberResponse);
|
|
9590
|
+
export const ThreadSearchResponseFirstMessagesList = /*@__PURE__*/ S.Array(MessageResponse);
|
|
9591
|
+
export const ThreadSearchResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
9592
|
+
threads: ThreadSearchResponseThreadsList,
|
|
9593
|
+
members: ThreadSearchResponseMembersList,
|
|
9594
|
+
has_more: S.Boolean,
|
|
9595
|
+
first_messages: S.optional(ThreadSearchResponseFirstMessagesList),
|
|
9596
|
+
total_results: S.Number,
|
|
9597
|
+
})).annotate({
|
|
9598
|
+
identifier: "ThreadSearchResponse",
|
|
9599
|
+
});
|
|
9560
9600
|
export const SendSoundboardSoundRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
9561
9601
|
channel_id: S.String.pipe(T.Label()),
|
|
9562
9602
|
sound_id: S.String,
|
|
@@ -9619,41 +9659,6 @@ export const SyncGuildTemplateRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
9619
9659
|
}))).annotate({
|
|
9620
9660
|
identifier: "SyncGuildTemplateRequest",
|
|
9621
9661
|
});
|
|
9622
|
-
export const ThreadSearchRequestTagCase1List = /*@__PURE__*/ S.Array(S.String);
|
|
9623
|
-
export const ThreadSearchRequestTag = /*@__PURE__*/ S.Unknown.pipe(T.UnionCases([[], []]));
|
|
9624
|
-
export const ThreadSortingMode = /*@__PURE__*/ S.String;
|
|
9625
|
-
export const ThreadSearchRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
9626
|
-
channel_id: S.String.pipe(T.Label()),
|
|
9627
|
-
name: S.optional(S.String.pipe(T.Query())),
|
|
9628
|
-
slop: S.optional(S.Number.pipe(T.Query())),
|
|
9629
|
-
min_id: S.optional(S.String.pipe(T.Query())),
|
|
9630
|
-
max_id: S.optional(S.String.pipe(T.Query())),
|
|
9631
|
-
tag: S.optional(ThreadSearchRequestTag.pipe(T.Query())),
|
|
9632
|
-
tag_setting: S.optional(ThreadSearchTagSetting.pipe(T.Query())),
|
|
9633
|
-
archived: S.optional(S.Boolean.pipe(T.Query())),
|
|
9634
|
-
sort_by: S.optional(ThreadSortingMode.pipe(T.Query())),
|
|
9635
|
-
sort_order: S.optional(SortingOrder.pipe(T.Query())),
|
|
9636
|
-
limit: S.optional(S.Number.pipe(T.Query())),
|
|
9637
|
-
offset: S.optional(S.Number.pipe(T.Query())),
|
|
9638
|
-
}).pipe(T.Http({
|
|
9639
|
-
method: "GET",
|
|
9640
|
-
uri: "/channels/{channel_id}/threads/search",
|
|
9641
|
-
code: 200,
|
|
9642
|
-
}))).annotate({
|
|
9643
|
-
identifier: "ThreadSearchRequest",
|
|
9644
|
-
});
|
|
9645
|
-
export const ThreadSearchResponseThreadsList = /*@__PURE__*/ S.Array(ThreadResponse);
|
|
9646
|
-
export const ThreadSearchResponseMembersList = /*@__PURE__*/ S.Array(ThreadMemberResponse);
|
|
9647
|
-
export const ThreadSearchResponseFirstMessagesList = /*@__PURE__*/ S.Array(MessageResponse);
|
|
9648
|
-
export const ThreadSearchResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
9649
|
-
threads: ThreadSearchResponseThreadsList,
|
|
9650
|
-
members: ThreadSearchResponseMembersList,
|
|
9651
|
-
has_more: S.Boolean,
|
|
9652
|
-
first_messages: S.optional(ThreadSearchResponseFirstMessagesList),
|
|
9653
|
-
total_results: S.Number,
|
|
9654
|
-
})).annotate({
|
|
9655
|
-
identifier: "ThreadSearchResponse",
|
|
9656
|
-
});
|
|
9657
9662
|
export const TriggerTypingIndicatorRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
9658
9663
|
channel_id: S.String.pipe(T.Label()),
|
|
9659
9664
|
}).pipe(T.Http({ method: "POST", uri: "/channels/{channel_id}/typing", code: 200 }))).annotate({
|
|
@@ -11266,14 +11271,6 @@ export const ActivitiesAttachmentResponse = /*@__PURE__*/ S.suspend(() => S.Stru
|
|
|
11266
11271
|
})).annotate({
|
|
11267
11272
|
identifier: "ActivitiesAttachmentResponse",
|
|
11268
11273
|
});
|
|
11269
|
-
/** Approve or reject guild join request */
|
|
11270
|
-
export const actionGuildJoinRequest = /*@__PURE__*/ API.make(() => ({
|
|
11271
|
-
input: ActionGuildJoinRequestRequest,
|
|
11272
|
-
output: GuildJoinRequestResponse,
|
|
11273
|
-
errors: [UnknownDiscordError],
|
|
11274
|
-
protocol: DiscordProtocol,
|
|
11275
|
-
retry: Retry.Retry,
|
|
11276
|
-
}));
|
|
11277
11274
|
export const addGroupDmUser = /*@__PURE__*/ API.make(() => ({
|
|
11278
11275
|
input: AddGroupDmUserRequest,
|
|
11279
11276
|
output: AddGroupDmUserResponse,
|
|
@@ -11316,13 +11313,6 @@ export const addThreadMember = /*@__PURE__*/ API.make(() => ({
|
|
|
11316
11313
|
protocol: DiscordProtocol,
|
|
11317
11314
|
retry: Retry.Retry,
|
|
11318
11315
|
}));
|
|
11319
|
-
export const applicationsGetActivityInstance = /*@__PURE__*/ API.make(() => ({
|
|
11320
|
-
input: ApplicationsGetActivityInstanceRequest,
|
|
11321
|
-
output: EmbeddedActivityInstance,
|
|
11322
|
-
errors: [UnknownDiscordError],
|
|
11323
|
-
protocol: DiscordProtocol,
|
|
11324
|
-
retry: Retry.Retry,
|
|
11325
|
-
}));
|
|
11326
11316
|
export const banUserFromGuild = /*@__PURE__*/ API.make(() => ({
|
|
11327
11317
|
input: BanUserFromGuildRequest,
|
|
11328
11318
|
output: BanUserFromGuildResponse,
|
|
@@ -11436,6 +11426,13 @@ export const createChannelInvite = /*@__PURE__*/ API.make(() => ({
|
|
|
11436
11426
|
protocol: DiscordProtocol,
|
|
11437
11427
|
retry: Retry.Retry,
|
|
11438
11428
|
}));
|
|
11429
|
+
export const createDeprecatedPin = /*@__PURE__*/ API.make(() => ({
|
|
11430
|
+
input: CreateDeprecatedPinRequest,
|
|
11431
|
+
output: CreateDeprecatedPinResponse,
|
|
11432
|
+
errors: [UnknownDiscordError],
|
|
11433
|
+
protocol: DiscordProtocol,
|
|
11434
|
+
retry: Retry.Retry,
|
|
11435
|
+
}));
|
|
11439
11436
|
export const createDm = /*@__PURE__*/ API.make(() => ({
|
|
11440
11437
|
input: CreateDmRequest,
|
|
11441
11438
|
output: CreateDmResponse,
|
|
@@ -11661,6 +11658,13 @@ export const deleteChannelPermissionOverwrite = /*@__PURE__*/ API.make(() => ({
|
|
|
11661
11658
|
protocol: DiscordProtocol,
|
|
11662
11659
|
retry: Retry.Retry,
|
|
11663
11660
|
}));
|
|
11661
|
+
export const deleteDeprecatedPin = /*@__PURE__*/ API.make(() => ({
|
|
11662
|
+
input: DeleteDeprecatedPinRequest,
|
|
11663
|
+
output: DeleteDeprecatedPinResponse,
|
|
11664
|
+
errors: [UnknownDiscordError],
|
|
11665
|
+
protocol: DiscordProtocol,
|
|
11666
|
+
retry: Retry.Retry,
|
|
11667
|
+
}));
|
|
11664
11668
|
export const deleteEntitlement = /*@__PURE__*/ API.make(() => ({
|
|
11665
11669
|
input: DeleteEntitlementRequest,
|
|
11666
11670
|
output: DeleteEntitlementResponse,
|
|
@@ -11838,27 +11842,6 @@ export const deleteWebhookMessage = /*@__PURE__*/ API.make(() => ({
|
|
|
11838
11842
|
protocol: DiscordProtocol,
|
|
11839
11843
|
retry: Retry.Retry,
|
|
11840
11844
|
}));
|
|
11841
|
-
export const deprecatedCreatePin = /*@__PURE__*/ API.make(() => ({
|
|
11842
|
-
input: DeprecatedCreatePinRequest,
|
|
11843
|
-
output: DeprecatedCreatePinResponse,
|
|
11844
|
-
errors: [UnknownDiscordError],
|
|
11845
|
-
protocol: DiscordProtocol,
|
|
11846
|
-
retry: Retry.Retry,
|
|
11847
|
-
}));
|
|
11848
|
-
export const deprecatedDeletePin = /*@__PURE__*/ API.make(() => ({
|
|
11849
|
-
input: DeprecatedDeletePinRequest,
|
|
11850
|
-
output: DeprecatedDeletePinResponse,
|
|
11851
|
-
errors: [UnknownDiscordError],
|
|
11852
|
-
protocol: DiscordProtocol,
|
|
11853
|
-
retry: Retry.Retry,
|
|
11854
|
-
}));
|
|
11855
|
-
export const deprecatedListPins = /*@__PURE__*/ API.make(() => ({
|
|
11856
|
-
input: DeprecatedListPinsRequest,
|
|
11857
|
-
output: DeprecatedListPinsResponse,
|
|
11858
|
-
errors: [UnknownDiscordError],
|
|
11859
|
-
protocol: DiscordProtocol,
|
|
11860
|
-
retry: Retry.Retry,
|
|
11861
|
-
}));
|
|
11862
11845
|
export const editLobby = /*@__PURE__*/ API.make(() => ({
|
|
11863
11846
|
input: EditLobbyRequest,
|
|
11864
11847
|
output: LobbyResponse,
|
|
@@ -11922,6 +11905,13 @@ export const getApplication = /*@__PURE__*/ API.make(() => ({
|
|
|
11922
11905
|
protocol: DiscordProtocol,
|
|
11923
11906
|
retry: Retry.Retry,
|
|
11924
11907
|
}));
|
|
11908
|
+
export const getApplicationActivityInstance = /*@__PURE__*/ API.make(() => ({
|
|
11909
|
+
input: GetApplicationActivityInstanceRequest,
|
|
11910
|
+
output: EmbeddedActivityInstance,
|
|
11911
|
+
errors: [UnknownDiscordError],
|
|
11912
|
+
protocol: DiscordProtocol,
|
|
11913
|
+
retry: Retry.Retry,
|
|
11914
|
+
}));
|
|
11925
11915
|
export const getApplicationCommand = /*@__PURE__*/ API.make(() => ({
|
|
11926
11916
|
input: GetApplicationCommandRequest,
|
|
11927
11917
|
output: ApplicationCommandResponse,
|
|
@@ -12340,13 +12330,6 @@ export const guildRoleMemberCounts = /*@__PURE__*/ API.make(() => ({
|
|
|
12340
12330
|
protocol: DiscordProtocol,
|
|
12341
12331
|
retry: Retry.Retry,
|
|
12342
12332
|
}));
|
|
12343
|
-
export const guildSearch = /*@__PURE__*/ API.make(() => ({
|
|
12344
|
-
input: GuildSearchRequest,
|
|
12345
|
-
output: GuildSearchResponse,
|
|
12346
|
-
errors: [UnknownDiscordError],
|
|
12347
|
-
protocol: DiscordProtocol,
|
|
12348
|
-
retry: Retry.Retry,
|
|
12349
|
-
}));
|
|
12350
12333
|
export const inviteResolve = /*@__PURE__*/ API.make(() => ({
|
|
12351
12334
|
input: InviteResolveRequest,
|
|
12352
12335
|
output: InviteResolveResponse,
|
|
@@ -12354,9 +12337,10 @@ export const inviteResolve = /*@__PURE__*/ API.make(() => ({
|
|
|
12354
12337
|
protocol: DiscordProtocol,
|
|
12355
12338
|
retry: Retry.Retry,
|
|
12356
12339
|
}));
|
|
12357
|
-
|
|
12358
|
-
|
|
12359
|
-
|
|
12340
|
+
/** Approve or reject guild join request */
|
|
12341
|
+
export const joinActionGuildRequest = /*@__PURE__*/ API.make(() => ({
|
|
12342
|
+
input: JoinActionGuildRequestRequest,
|
|
12343
|
+
output: GuildJoinRequestResponse,
|
|
12360
12344
|
errors: [UnknownDiscordError],
|
|
12361
12345
|
protocol: DiscordProtocol,
|
|
12362
12346
|
retry: Retry.Retry,
|
|
@@ -12424,6 +12408,13 @@ export const listChannelWebhooks = /*@__PURE__*/ API.make(() => ({
|
|
|
12424
12408
|
protocol: DiscordProtocol,
|
|
12425
12409
|
retry: Retry.Retry,
|
|
12426
12410
|
}));
|
|
12411
|
+
export const listDeprecatedPins = /*@__PURE__*/ API.make(() => ({
|
|
12412
|
+
input: ListDeprecatedPinsRequest,
|
|
12413
|
+
output: ListDeprecatedPinsResponse,
|
|
12414
|
+
errors: [UnknownDiscordError],
|
|
12415
|
+
protocol: DiscordProtocol,
|
|
12416
|
+
retry: Retry.Retry,
|
|
12417
|
+
}));
|
|
12427
12418
|
export const listGuildApplicationCommandPermissions = /*@__PURE__*/ API.make(() => ({
|
|
12428
12419
|
input: ListGuildApplicationCommandPermissionsRequest,
|
|
12429
12420
|
output: ListGuildApplicationCommandPermissionsResponse,
|
|
@@ -12663,6 +12654,20 @@ export const putGuildsOnboarding = /*@__PURE__*/ API.make(() => ({
|
|
|
12663
12654
|
protocol: DiscordProtocol,
|
|
12664
12655
|
retry: Retry.Retry,
|
|
12665
12656
|
}));
|
|
12657
|
+
export const revokeInvite = /*@__PURE__*/ API.make(() => ({
|
|
12658
|
+
input: RevokeInviteRequest,
|
|
12659
|
+
output: RevokeInviteResponse,
|
|
12660
|
+
errors: [UnknownDiscordError],
|
|
12661
|
+
protocol: DiscordProtocol,
|
|
12662
|
+
retry: Retry.Retry,
|
|
12663
|
+
}));
|
|
12664
|
+
export const searchGuild = /*@__PURE__*/ API.make(() => ({
|
|
12665
|
+
input: SearchGuildRequest,
|
|
12666
|
+
output: GuildSearchResponse,
|
|
12667
|
+
errors: [UnknownDiscordError],
|
|
12668
|
+
protocol: DiscordProtocol,
|
|
12669
|
+
retry: Retry.Retry,
|
|
12670
|
+
}));
|
|
12666
12671
|
export const searchGuildMembers = /*@__PURE__*/ API.make(() => ({
|
|
12667
12672
|
input: SearchGuildMembersRequest,
|
|
12668
12673
|
output: SearchGuildMembersResponse,
|
|
@@ -12670,6 +12675,13 @@ export const searchGuildMembers = /*@__PURE__*/ API.make(() => ({
|
|
|
12670
12675
|
protocol: DiscordProtocol,
|
|
12671
12676
|
retry: Retry.Retry,
|
|
12672
12677
|
}));
|
|
12678
|
+
export const searchThread = /*@__PURE__*/ API.make(() => ({
|
|
12679
|
+
input: SearchThreadRequest,
|
|
12680
|
+
output: ThreadSearchResponse,
|
|
12681
|
+
errors: [UnknownDiscordError],
|
|
12682
|
+
protocol: DiscordProtocol,
|
|
12683
|
+
retry: Retry.Retry,
|
|
12684
|
+
}));
|
|
12673
12685
|
export const sendSoundboardSound = /*@__PURE__*/ API.make(() => ({
|
|
12674
12686
|
input: SendSoundboardSoundRequest,
|
|
12675
12687
|
output: SendSoundboardSoundResponse,
|
|
@@ -12698,13 +12710,6 @@ export const syncGuildTemplate = /*@__PURE__*/ API.make(() => ({
|
|
|
12698
12710
|
protocol: DiscordProtocol,
|
|
12699
12711
|
retry: Retry.Retry,
|
|
12700
12712
|
}));
|
|
12701
|
-
export const threadSearch = /*@__PURE__*/ API.make(() => ({
|
|
12702
|
-
input: ThreadSearchRequest,
|
|
12703
|
-
output: ThreadSearchResponse,
|
|
12704
|
-
errors: [UnknownDiscordError],
|
|
12705
|
-
protocol: DiscordProtocol,
|
|
12706
|
-
retry: Retry.Retry,
|
|
12707
|
-
}));
|
|
12708
12713
|
export const triggerTypingIndicator = /*@__PURE__*/ API.make(() => ({
|
|
12709
12714
|
input: TriggerTypingIndicatorRequest,
|
|
12710
12715
|
output: TriggerTypingIndicatorResponse,
|