summary refs log tree commit diff
path: root/src/util
diff options
context:
space:
mode:
authorPuyodead1 <puyodead@proton.me>2023-03-23 11:56:17 -0400
committerPuyodead1 <puyodead@proton.me>2023-04-13 15:04:56 -0400
commit4a7811a25ce78a108e9a42fcb6c86ac0ed6e09eb (patch)
tree538718dc98a4dea8c21a0a29ea219a7304e08eb3 /src/util
parentapplications (diff)
downloadserver-4a7811a25ce78a108e9a42fcb6c86ac0ed6e09eb.tar.xz
channels
Diffstat (limited to 'src/util')
-rw-r--r--src/util/schemas/responses/ChannelInvitesResponse.ts3
-rw-r--r--src/util/schemas/responses/ChannelMessagesResponse.ts3
-rw-r--r--src/util/schemas/responses/ChannelPinsResponse.ts3
-rw-r--r--src/util/schemas/responses/ChannelWebhooksResponse.ts3
-rw-r--r--src/util/schemas/responses/WebhookCreateResponse.ts6
-rw-r--r--src/util/schemas/responses/index.ts4
6 files changed, 22 insertions, 0 deletions
diff --git a/src/util/schemas/responses/ChannelInvitesResponse.ts b/src/util/schemas/responses/ChannelInvitesResponse.ts
new file mode 100644

index 00000000..c50d033c --- /dev/null +++ b/src/util/schemas/responses/ChannelInvitesResponse.ts
@@ -0,0 +1,3 @@ +import { Invite } from "../../entities"; + +export type ChannelInvitesResponse = Invite[]; diff --git a/src/util/schemas/responses/ChannelMessagesResponse.ts b/src/util/schemas/responses/ChannelMessagesResponse.ts new file mode 100644
index 00000000..65b7dab5 --- /dev/null +++ b/src/util/schemas/responses/ChannelMessagesResponse.ts
@@ -0,0 +1,3 @@ +import { Message } from "../../entities"; + +export type ChannelMessagesResponse = Message[]; diff --git a/src/util/schemas/responses/ChannelPinsResponse.ts b/src/util/schemas/responses/ChannelPinsResponse.ts new file mode 100644
index 00000000..7a1b8d43 --- /dev/null +++ b/src/util/schemas/responses/ChannelPinsResponse.ts
@@ -0,0 +1,3 @@ +import { Message } from "../../entities"; + +export type ChannelPinsResponse = Message[]; diff --git a/src/util/schemas/responses/ChannelWebhooksResponse.ts b/src/util/schemas/responses/ChannelWebhooksResponse.ts new file mode 100644
index 00000000..84f49dce --- /dev/null +++ b/src/util/schemas/responses/ChannelWebhooksResponse.ts
@@ -0,0 +1,3 @@ +import { Webhook } from "../../entities"; + +export type ChannelWebhooksResponse = Webhook[]; diff --git a/src/util/schemas/responses/WebhookCreateResponse.ts b/src/util/schemas/responses/WebhookCreateResponse.ts new file mode 100644
index 00000000..ae142632 --- /dev/null +++ b/src/util/schemas/responses/WebhookCreateResponse.ts
@@ -0,0 +1,6 @@ +import { User, Webhook } from "../../entities"; + +export interface WebhookCreateResponse { + user: User; + hook: Webhook; +} diff --git a/src/util/schemas/responses/index.ts b/src/util/schemas/responses/index.ts
index 6dde4d24..2a1180ad 100644 --- a/src/util/schemas/responses/index.ts +++ b/src/util/schemas/responses/index.ts
@@ -6,6 +6,10 @@ export * from "./ApplicationSkusResponse"; export * from "./ApplicationsResponse"; export * from "./BackupCodesChallengeResponse"; export * from "./CaptchaRequiredResponse"; +export * from "./ChannelInvitesResponse"; +export * from "./ChannelPinsResponse"; +export * from "./ChannelWebhooksResponse"; export * from "./GenerateRegistrationTokensResponse"; export * from "./LocationMetadataResponse"; export * from "./TokenResponse"; +export * from "./WebhookCreateResponse";