@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 04:45 UTC

main
ts 39 lines 1.14 KB
Raw
1 // Generated by @effect/graphql-generator from messages.graphql. Do not edit.
2 import { GraphQL, GraphQLGroup } from "effect/graphql"
3 import * as Schema from "effect/Schema"
4 import * as Shared from "./shared.graphql.ts"
5
6 /** A member posted a message. */
7 export const MessagePosted = Schema.Struct({
8 id: Shared.ID,
9 /** The message text. */
10 body: Schema.String
11 })
12 export interface MessagePosted extends Schema.Struct.Type<typeof MessagePosted.fields> {}
13
14 /** `query Messages` */
15 export const Messages = GraphQL.query("Messages", {
16 document: {
17 variables: [
18 { name: "filter", body: "MessageFilter!" }
19 ],
20 selections: [
21 { name: "messages", body: ["(filter:$", "filter", "){id body}"] }
22 ],
23 fragments: []
24 },
25 variables: {
26 filter: Shared.MessageFilter
27 },
28 result: Schema.Struct({
29 /** Messages that match a filter. */
30 messages: Schema.Array(MessagePosted)
31 })
32 })
33 export declare namespace Messages {
34 export type Variables = typeof Messages.variables.Type
35 export type Result = typeof Messages.result.Type
36 }
37
38 /** Every operation in messages.graphql. */
39 export const MessagesGraphQLGroup = GraphQLGroup.make(Messages)