import { Ops } from './const.js'; import fetch from 'node-fetch'; import WebSocket from 'ws'; export declare const HOST = "https://api.prod.graphqleditor.com/graphql"; export declare const HEADERS: {}; export declare const apiSubscription: (options: chainOptions) => (query: string) => { ws: WebSocket; on: (e: (args: any) => void) => void; off: (e: (args: any) => void) => void; error: (e: (args: any) => void) => void; open: (e: () => void) => void; }; export declare const apiFetch: (options: [url: import("node-fetch").RequestInfo, init?: import("node-fetch").RequestInit | undefined]) => (query: string, variables?: Record) => Promise | undefined>; export declare const InternalsBuildQuery: ({ ops, props, returns, options, scalars, }: { props: AllTypesPropsType; returns: ReturnTypesType; ops: Operations; options?: OperationOptions | undefined; scalars?: ScalarDefinition | undefined; }) => (k: string, o: InputValueType | VType, p?: string, root?: boolean, vars?: Array<{ name: string; graphQLType: string; }>) => string; export declare const Thunder: (fn: FetchFunction) => >(operation: O, graphqlOptions?: ThunderGraphQLOptions | undefined) => (o: Z | ValueTypes[R], ops?: OperationOptions & { variables?: Record; }) => Promise>; export declare const Chain: (...options: chainOptions) => >(operation: O, graphqlOptions?: ThunderGraphQLOptions | undefined) => (o: Z | ValueTypes[R], ops?: OperationOptions & { variables?: Record; }) => Promise>; export declare const SubscriptionThunder: (fn: SubscriptionFunction) => >(operation: O, graphqlOptions?: ThunderGraphQLOptions | undefined) => (o: Z | ValueTypes[R], ops?: (OperationOptions & { variables?: ExtractVariables | undefined; }) | undefined) => SubscriptionToGraphQL; export declare const Subscription: (...options: chainOptions) => >(operation: O, graphqlOptions?: ThunderGraphQLOptions | undefined) => (o: Z | ValueTypes[R], ops?: (OperationOptions & { variables?: ExtractVariables | undefined; }) | undefined) => SubscriptionToGraphQL; export declare const Zeus: >(operation: O, o: Z | ValueTypes[R], ops?: { operationOptions?: OperationOptions; scalars?: ScalarDefinition; }) => string; export declare const ZeusSelect: () => SelectionFunction; export declare const Selector: (key: T) => SelectionFunction; export declare const TypeFromSelector: (key: T) => SelectionFunction; export declare const Gql: >(operation: O, graphqlOptions?: ThunderGraphQLOptions | undefined) => (o: Z | ValueTypes[R], ops?: OperationOptions & { variables?: Record; }) => Promise>; export declare const ZeusScalars: SelectionFunction; export declare const decodeScalarsInResponse: ({ response, scalars, returns, ops, initialZeusQuery, initialOp, }: { ops: O; response: any; returns: ReturnTypesType; scalars?: Record | undefined; initialOp: keyof O; initialZeusQuery: InputValueType | VType; }) => any; export declare const traverseResponse: ({ resolvers, scalarPaths, }: { scalarPaths: { [x: string]: `scalar.${string}`; }; resolvers: { [x: string]: ScalarResolver | undefined; }; }) => (k: string, o: InputValueType | VType, p?: string[]) => unknown; export type AllTypesPropsType = { [x: string]: undefined | `scalar.${string}` | 'enum' | { [x: string]: undefined | string | { [x: string]: string | undefined; }; }; }; export type ReturnTypesType = { [x: string]: { [x: string]: string | undefined; } | `scalar.${string}` | undefined; }; export type InputValueType = { [x: string]: undefined | boolean | string | number | [any, undefined | boolean | InputValueType] | InputValueType; }; export type VType = undefined | boolean | string | number | [any, undefined | boolean | InputValueType] | InputValueType; export type PlainType = boolean | number | string | null | undefined; export type ZeusArgsType = PlainType | { [x: string]: ZeusArgsType; } | Array; export type Operations = Record; export type VariableDefinition = { [x: string]: unknown; }; export declare const SEPARATOR = "|"; export type fetchOptions = Parameters; type websocketOptions = typeof WebSocket extends new (...args: infer R) => WebSocket ? R : never; export type chainOptions = [fetchOptions[0], fetchOptions[1] & { websocket?: websocketOptions; }] | [fetchOptions[0]]; export type FetchFunction = (query: string, variables?: Record) => Promise; export type SubscriptionFunction = (query: string) => any; type NotUndefined = T extends undefined ? never : T; export type ResolverType = NotUndefined; export type OperationOptions = { operationName?: string; }; export type ScalarCoder = Record string>; export interface GraphQLResponse { data?: Record; errors?: Array<{ message: string; }>; } export declare class GraphQLError extends Error { response: GraphQLResponse; constructor(response: GraphQLResponse); toString(): string; } export type GenericOperation = O extends keyof typeof Ops ? typeof Ops[O] : never; export type ThunderGraphQLOptions = { scalars?: SCLR | ScalarCoders; }; export declare const PrepareScalarPaths: ({ ops, returns }: { returns: ReturnTypesType; ops: Operations; }) => (k: string, originalKey: string, o: InputValueType | VType, p?: string[], pOriginals?: string[], root?: boolean) => { [x: string]: `scalar.${string}`; } | undefined; export declare const purifyGraphQLKey: (k: string) => string; export declare const ResolveFromPath: (props: AllTypesPropsType, returns: ReturnTypesType, ops: Operations) => (path: string) => 'enum' | 'not' | `scalar.${string}`; export declare const InternalArgsBuilt: ({ props, ops, returns, scalars, vars, }: { props: AllTypesPropsType; returns: ReturnTypesType; ops: Operations; scalars?: ScalarDefinition | undefined; vars: Array<{ name: string; graphQLType: string; }>; }) => (a: ZeusArgsType, p?: string, root?: boolean) => string; export declare const resolverFor: (type: T, field: Z, fn: (args: Required[Z] extends [infer Input, any] ? Input : any, source: any) => Z extends keyof ModelTypes[T] ? X | ModelTypes[T][Z] | Promise : never) => (args?: any, source?: any) => Z extends keyof ModelTypes[T] ? X | ModelTypes[T][Z] | Promise : never; export type UnwrapPromise = T extends Promise ? R : T; export type ZeusState Promise> = NonNullable>>; export type ZeusHook Record Promise>, N extends keyof ReturnType> = ZeusState[N]>; export type WithTypeNameValue = T & { __typename?: boolean; __directives?: string; }; export type AliasType = WithTypeNameValue & { __alias?: Record>; }; type DeepAnify = { [P in keyof T]?: any; }; type IsPayLoad = T extends [any, infer PayLoad] ? PayLoad : T; export type ScalarDefinition = Record; type IsScalar = S extends 'scalar' & { name: infer T; } ? T extends keyof SCLR ? SCLR[T]['decode'] extends (s: unknown) => unknown ? ReturnType : unknown : unknown : S; type IsArray = T extends Array ? InputType[] : InputType; type FlattenArray = T extends Array ? R : T; type BaseZeusResolver = boolean | 1 | string | Variable; type IsInterfaced, DST, SCLR extends ScalarDefinition> = FlattenArray extends ZEUS_INTERFACES | ZEUS_UNIONS ? { [P in keyof SRC]: SRC[P] extends '__union' & infer R ? P extends keyof DST ? IsArray : IsArray : never; }[keyof SRC] & { [P in keyof Omit, '__typename'>]: IsPayLoad extends BaseZeusResolver ? IsScalar : IsArray; } : { [P in keyof Pick]: IsPayLoad extends BaseZeusResolver ? IsScalar : IsArray; }; export type MapType = SRC extends DeepAnify ? IsInterfaced : never; export type InputType = IsPayLoad extends { __alias: infer R; } ? { [P in keyof R]: MapType[keyof MapType]; } & MapType, '__alias'>, SCLR> : MapType, SCLR>; export type SubscriptionToGraphQL = { ws: WebSocket; on: (fn: (args: InputType) => void) => void; off: (fn: (e: { data?: InputType; code?: number; reason?: string; message?: string; }) => void) => void; error: (fn: (e: { data?: InputType; errors?: string[]; }) => void) => void; open: () => void; }; export type FromSelector = InputType; export type ScalarResolver = { encode?: (s: unknown) => string; decode?: (s: unknown) => unknown; }; export type SelectionFunction = (t: T | V) => T; type BuiltInVariableTypes = { ['String']: string; ['Int']: number; ['Float']: number; ['ID']: unknown; ['Boolean']: boolean; }; type AllVariableTypes = keyof BuiltInVariableTypes | keyof ZEUS_VARIABLES; type VariableRequired = `${T}!` | T | `[${T}]` | `[${T}]!` | `[${T}!]` | `[${T}!]!`; type VR = VariableRequired>; export type GraphQLVariableType = VR; type ExtractVariableTypeString = T extends VR ? R1 extends VR ? R2 extends VR ? R3 extends VR ? R4 extends VR ? R5 : R4 : R3 : R2 : R1 : T; type DecomposeType = T extends `[${infer R}]` ? Array> | undefined : T extends `${infer R}!` ? NonNullable> : Type | undefined; type ExtractTypeFromGraphQLType = T extends keyof ZEUS_VARIABLES ? ZEUS_VARIABLES[T] : T extends keyof BuiltInVariableTypes ? BuiltInVariableTypes[T] : any; export type GetVariableType = DecomposeType>>; type UndefinedKeys = { [K in keyof T]-?: T[K] extends NonNullable ? never : K; }[keyof T]; type WithNullableKeys = Pick>; type WithNonNullableKeys = Omit>; type OptionalKeys = { [P in keyof T]?: T[P]; }; export type WithOptionalNullables = OptionalKeys> & WithNonNullableKeys; export type Variable = { ' __zeus_name': Name; ' __zeus_type': T; }; export type ExtractVariables = Query extends Variable ? { [key in VName]: GetVariableType; } : Query extends [infer Inputs, infer Outputs] ? ExtractVariables & ExtractVariables : Query extends string | number | boolean ? {} : UnionToIntersection<{ [K in keyof Query]: WithOptionalNullables>; }[keyof Query]>; type UnionToIntersection = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never; export declare const START_VAR_NAME = "$ZEUS_VAR"; export declare const GRAPHQL_TYPE_SEPARATOR = "__$GRAPHQL__"; export declare const $: (name: Name, graphqlType: Type) => Variable; type ZEUS_INTERFACES = never; export type ScalarCoders = { Decimal?: ScalarResolver; RFC3339Date?: ScalarResolver; FileServerCredentials?: ScalarResolver; PaymentDate?: ScalarResolver; }; type ZEUS_UNIONS = never; export type ValueTypes = { /** Request header */ ["Header"]: AliasType<{ /** Header name */ key?: boolean | `@${string}`; /** Header value */ value?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; /** Project type */ ["Project"]: AliasType<{ /** Return creation time stamp of a project */ createdAt?: boolean | `@${string}`; /** Project description */ description?: boolean | `@${string}`; /** Is project enabled */ enabled?: boolean | `@${string}`; /** Project endpoint contains a slug under which project can be reached For example https://app.graphqleditor.com/{endpoint.uri}/ */ endpoint?: ValueTypes["Endpoint"]; /** Unique project id */ id?: boolean | `@${string}`; members?: [{ last?: string | undefined | null | Variable; limit?: number | undefined | null | Variable; }, ValueTypes["MemberConnection"]]; /** Is project mocked by faker backend */ mocked?: boolean | `@${string}`; /** Project name */ name?: boolean | `@${string}`; /** Project owner Can be null if project belongs to a team */ owner?: ValueTypes["User"]; /** True if project is public */ public?: boolean | `@${string}`; /** Project part of the slug */ slug?: boolean | `@${string}`; sources?: [{ last?: string | undefined | null | Variable; limit?: number | undefined | null | Variable; }, ValueTypes["FakerSourceConnection"]]; /** Project tags */ tags?: boolean | `@${string}`; /** Team to which project belongs Can be null if project belongs to a user */ team?: ValueTypes["Team"]; /** Return creation time stamp of a project */ updatedAt?: boolean | `@${string}`; /** A link to upstream URL */ upstream?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; ["ServiceAccount"]: AliasType<{ description?: boolean | `@${string}`; keys?: ValueTypes["ServiceAccountApiKey"]; name?: boolean | `@${string}`; tags?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; /** A source object */ ["FakerSource"]: AliasType<{ /** File checksum */ checksum?: boolean | `@${string}`; contents?: boolean | `@${string}`; /** Name of source file */ filename?: boolean | `@${string}`; /** Return an url by which source file can be accessed */ getUrl?: boolean | `@${string}`; /** Return last time the object was updated */ updatedAt?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; /** Teams connection */ ["TeamConnection"]: AliasType<{ /** Pagination info used in next fetch */ pageInfo?: ValueTypes["PageInfo"]; /** List of teams returned by current page in connection */ teams?: ValueTypes["Team"]; __typename?: boolean | `@${string}`; }>; /** Checkout data needed to begin payment process */ ["PredictCheckoutInput"]: { /** An id of a chosen subscription plan */ planID: string | Variable; /** Quantity of subscriptions that user wants */ quantity?: number | undefined | null | Variable; /** Optional discount coupon */ coupon?: string | undefined | null | Variable; }; ["UserConnection"]: AliasType<{ /** Current connection page info */ pageInfo?: ValueTypes["PageInfo"]; /** List of projects in connection */ users?: ValueTypes["User"]; __typename?: boolean | `@${string}`; }>; /** Amount is a number that gives precise representation of real numbers */ ["Decimal"]: unknown; /** Checkout data needed to begin payment process for stripe */ ["StripeCheckoutDataInput"]: { /** URL to which user should be redirected after successful transaction */ successURL?: string | undefined | null | Variable; /** price id of product on stripe */ PriceID: string | Variable; }; /** Update project payload */ ["UpdateProject"]: { /** New description for project */ description?: string | undefined | null | Variable; /** List of tags for project */ tags?: Array | undefined | null | Variable; /** Set project visiblity */ public?: boolean | undefined | null | Variable; /** Link to upstream schema */ upstream?: string | undefined | null | Variable; /** ID of project to be updated */ project?: string | undefined | null | Variable; }; ["ChangeSubscriptionInput"]: { subscriptionID: number | Variable; subscriptionPlanID?: number | undefined | null | Variable; }; /** Team object */ ["Team"]: AliasType<{ /** check if team is paid team and if returns false give reason of not enabled */ enabled?: ValueTypes["TeamEnabled"]; /** Unique team id */ id?: boolean | `@${string}`; member?: [{ username: string | Variable; }, ValueTypes["Member"]]; members?: [{ last?: string | undefined | null | Variable; limit?: number | undefined | null | Variable; }, ValueTypes["MemberConnection"]]; /** Team name */ name?: boolean | `@${string}`; /** Team's namespace */ namespace?: ValueTypes["Namespace"]; /** A plan ID of a plan associated with team */ planID?: boolean | `@${string}`; serviceAccounts?: [{ last?: string | undefined | null | Variable; limit?: number | undefined | null | Variable; }, ValueTypes["ServiceAccountConnection"]]; /** List invite tokens */ tokens?: ValueTypes["InviteToken"]; __typename?: boolean | `@${string}`; }>; ["ServiceAccountApiKey"]: AliasType<{ id?: boolean | `@${string}`; key?: boolean | `@${string}`; name?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; /** Endpoint returnes a full path to the project without host */ ["Endpoint"]: AliasType<{ /** Full project uri without host */ uri?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; ["Mutation"]: AliasType<{ changePassword?: [{ oldPassword: string | Variable; newPassword: string | Variable; }, boolean | `@${string}`]; changeSubscription?: [{ in: ValueTypes["ChangeSubscriptionInput"] | Variable; }, boolean | `@${string}`]; consumeInviteToken?: [{ token: string | Variable; }, boolean | `@${string}`]; createTeam?: [{ namespace: string | Variable; name: string | Variable; }, ValueTypes["TeamOps"]]; createUser?: [{ namespace: string | Variable; public?: boolean | undefined | null | Variable; }, ValueTypes["User"]]; /** Delete account */ deleteAccount?: boolean | `@${string}`; /** Resend verification email */ resendVerificationEmail?: boolean | `@${string}`; sync?: [{ source: string | Variable; target: string | Variable; }, boolean | `@${string}`]; team?: [{ id: string | Variable; }, ValueTypes["TeamOps"]]; updateSources?: [{ sources?: Array | undefined | null | Variable; project: string | Variable; }, ValueTypes["SourceUploadInfo"]]; __typename?: boolean | `@${string}`; }>; /** Editor user */ ["User"]: AliasType<{ /** User's account type */ accountType?: boolean | `@${string}`; /** Marketing consent. True if given, false if declined, null if never asked. */ consentGiven?: boolean | `@${string}`; /** Marketing consent given at */ consentTimestamp?: boolean | `@${string}`; /** Unique user id */ id?: boolean | `@${string}`; /** User's namespace */ namespace?: ValueTypes["Namespace"]; stripeCustomerId?: boolean | `@${string}`; /** User's subscriptions */ subscriptions?: ValueTypes["SubscriptionConnection"]; /** Unique username */ username?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; /** Checkout data needed to begin payment process */ ["CheckoutDataInput"]: { /** Optional discount coupon */ coupon?: string | undefined | null | Variable; /** URL to which user should be redirected after successful transaction */ successURL?: string | undefined | null | Variable; /** URL to which user should be redirected after failed transaction */ cancelURL?: string | undefined | null | Variable; /** An id of a chosen subscription plan */ planID: string | Variable; /** Quantity of subscriptions that user wants */ quantity?: number | undefined | null | Variable; /** Customer data */ customer?: ValueTypes["CustomerInput"] | undefined | null | Variable; /** Vat data */ vat?: ValueTypes["VatInput"] | undefined | null | Variable; }; /** Vat information of a user */ ["VatInput"]: { /** Vat company name */ companyName?: string | undefined | null | Variable; /** Vat company street address */ street?: string | undefined | null | Variable; /** Vat company city address */ city?: string | undefined | null | Variable; /** Vat company state address. Optional. */ state?: string | undefined | null | Variable; /** Vat company country address. */ country?: string | undefined | null | Variable; /** Vat company post code address. */ postCode?: string | undefined | null | Variable; /** Vat number */ number?: string | undefined | null | Variable; }; /** RFC3339Date is a RFC3339 formated date-time string */ ["RFC3339Date"]: unknown; /** Project connection object Used with paginated listing of projects */ ["ProjectConnection"]: AliasType<{ /** Current connection page info */ pageInfo?: ValueTypes["PageInfo"]; /** List of projects in connection */ projects?: ValueTypes["Project"]; __typename?: boolean | `@${string}`; }>; /** Namespace is a root object containing projects belonging to a team or user */ ["Namespace"]: AliasType<{ project?: [{ name: string | Variable; }, ValueTypes["Project"]]; projects?: [{ limit?: number | undefined | null | Variable; last?: string | undefined | null | Variable; }, ValueTypes["ProjectConnection"]]; /** True if namespace is public */ public?: boolean | `@${string}`; /** Namespace part of the slug */ slug?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; /** Team member */ ["Member"]: AliasType<{ /** Member email */ email?: boolean | `@${string}`; /** Member role */ role?: boolean | `@${string}`; /** Service account */ serviceAccount?: boolean | `@${string}`; /** Member username */ username?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; ["TeamEnabledFailureStatus"]: TeamEnabledFailureStatus; /** Root query type */ ["Query"]: AliasType<{ checkoutData?: [{ data: ValueTypes["CheckoutDataInput"] | Variable; }, boolean | `@${string}`]; /** Returns true if the user is logged in and has verified email */ emailVerified?: boolean | `@${string}`; exchangeServiceAccountKey?: [{ serviceAccount: string | Variable; key: string | Variable; }, boolean | `@${string}`]; fileServerCredentials?: [{ project?: string | undefined | null | Variable; }, boolean | `@${string}`]; findProjects?: [{ last?: string | undefined | null | Variable; limit?: number | undefined | null | Variable; query: string | Variable; }, ValueTypes["ProjectConnection"]]; findProjectsByTag?: [{ last?: string | undefined | null | Variable; limit?: number | undefined | null | Variable; tag: string | Variable; }, ValueTypes["ProjectConnection"]]; generateStripeBillingPortal?: [{ returnUrl: string | Variable; }, boolean | `@${string}`]; getAiRespond?: [{ text: string | Variable; contextId: string | Variable; }, boolean | `@${string}`]; getNamespace?: [{ slug: string | Variable; }, ValueTypes["Namespace"]]; getProject?: [{ project: string | Variable; }, ValueTypes["Project"]]; getTeam?: [{ name: string | Variable; }, ValueTypes["Team"]]; getUser?: [{ username: string | Variable; }, ValueTypes["User"]]; listProjects?: [{ owned?: boolean | undefined | null | Variable; last?: string | undefined | null | Variable; limit?: number | undefined | null | Variable; sort?: Array | undefined | null | Variable; }, ValueTypes["ProjectConnection"]]; myTeams?: [{ last?: string | undefined | null | Variable; limit?: number | undefined | null | Variable; }, ValueTypes["TeamConnection"]]; /** List user payments */ payments?: ValueTypes["Payment"]; predictCheckout?: [{ data: ValueTypes["PredictCheckoutInput"] | Variable; }, ValueTypes["PredictCheckout"]]; stripePaymentLink?: [{ data: ValueTypes["StripeCheckoutDataInput"] | Variable; }, boolean | `@${string}`]; __typename?: boolean | `@${string}`; }>; /** Team member role */ ["Role"]: Role; /** Paginated members list */ ["MemberConnection"]: AliasType<{ /** List of members in this connection */ members?: ValueTypes["Member"]; /** pageInfo for member connection */ pageInfo?: ValueTypes["PageInfo"]; __typename?: boolean | `@${string}`; }>; /** New source payload */ ["NewSource"]: { /** Source checksum */ checksum?: string | undefined | null | Variable; /** source file name */ filename?: string | undefined | null | Variable; /** Length of source in bytes */ contentLength?: number | undefined | null | Variable; /** Source mime type */ contentType?: string | undefined | null | Variable; }; ["InviteToken"]: AliasType<{ createdAt?: boolean | `@${string}`; domain?: boolean | `@${string}`; expiration?: boolean | `@${string}`; name?: boolean | `@${string}`; removed?: boolean | `@${string}`; role?: boolean | `@${string}`; token?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; /** Customer data for checkout information */ ["CustomerInput"]: { /** User's country */ country?: string | undefined | null | Variable; /** User's post code */ postCode?: string | undefined | null | Variable; /** Must be true for marketing to be allowed */ marketingConsent?: boolean | undefined | null | Variable; /** User's email address */ email?: string | undefined | null | Variable; }; ["Payment"]: AliasType<{ /** Amount paid */ amount?: boolean | `@${string}`; /** Currency in which payment was made */ currency?: boolean | `@${string}`; /** Date indicates a when the payment was made */ date?: boolean | `@${string}`; /** URL from which user can download invoice */ receiptURL?: boolean | `@${string}`; /** ID of subscription for which payment was made */ subscriptionID?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; ["FileServerCredentials"]: unknown; /** Temporary file for project */ ["TemporaryFile"]: AliasType<{ /** String with url used in GET request */ getUrl?: boolean | `@${string}`; /** String with url used in PUT request */ putUrl?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; /** Paginated service account list */ ["ServiceAccountConnection"]: AliasType<{ /** pageInfo for service accounts connection */ pageInfo?: ValueTypes["PageInfo"]; /** List of members in this connection */ serviceAccounts?: ValueTypes["ServiceAccount"]; __typename?: boolean | `@${string}`; }>; /** Connection object containing list of faker sources */ ["FakerSourceConnection"]: AliasType<{ /** Connection pageInfo */ pageInfo?: ValueTypes["PageInfo"]; /** List of sources returned by connection */ sources?: ValueTypes["FakerSource"]; __typename?: boolean | `@${string}`; }>; ["RenameFileInput"]: { dst: string | Variable; src: string | Variable; }; /** Source upload info object */ ["SourceUploadInfo"]: AliasType<{ /** Source file name */ filename?: boolean | `@${string}`; /** List of headers that must be included in PUT request */ headers?: ValueTypes["Header"]; /** String with url used in PUT request */ putUrl?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; /** PaymentDate is a string in a format 'YYYY-MM-DD' */ ["PaymentDate"]: unknown; /** Sort order defines possible ordering of sorted outputs */ ["SortOrder"]: SortOrder; ["SubscriptionConnection"]: AliasType<{ /** Current conenction page info */ pageInfo?: ValueTypes["PageInfo"]; /** List of subscriptions in connection */ subscriptions?: ValueTypes["Subscription"]; __typename?: boolean | `@${string}`; }>; /** Defines user's account type */ ["AccountType"]: AccountType; ["TeamEnabled"]: AliasType<{ enabled?: boolean | `@${string}`; status?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; /** Team operations */ ["TeamOps"]: AliasType<{ addMember?: [{ loginCallback?: string | undefined | null | Variable; username: string | Variable; role: ValueTypes["Role"] | Variable; }, ValueTypes["Member"]]; createProject?: [{ name: string | Variable; public?: boolean | undefined | null | Variable; }, ValueTypes["Project"]]; createServiceAccount?: [{ input?: ValueTypes["CreateServiceAccountInput"] | undefined | null | Variable; }, ValueTypes["ServiceAccount"]]; createServiceAccountApiKey?: [{ serviceAccount: string | Variable; name: string | Variable; }, ValueTypes["ServiceAccountApiKey"]]; /** Delete team */ delete?: boolean | `@${string}`; /** Unique team id */ id?: boolean | `@${string}`; inviteToken?: [{ name: string | Variable; role?: ValueTypes["Role"] | undefined | null | Variable; expiration?: number | undefined | null | Variable; domain?: string | undefined | null | Variable; }, boolean | `@${string}`]; member?: [{ username: string | Variable; }, ValueTypes["MemberOps"]]; members?: [{ last?: string | undefined | null | Variable; limit?: number | undefined | null | Variable; }, ValueTypes["MemberConnection"]]; /** Team name */ name?: boolean | `@${string}`; /** Team's namespace */ namespace?: ValueTypes["Namespace"]; /** A plan ID of a plan associated with team */ planID?: boolean | `@${string}`; project?: [{ id: string | Variable; }, ValueTypes["ProjectOps"]]; removeServiceAccount?: [{ name: string | Variable; }, boolean | `@${string}`]; removeServiceAccountApiKey?: [{ id: string | Variable; serviceAccount: string | Variable; }, boolean | `@${string}`]; removeToken?: [{ token: string | Variable; }, boolean | `@${string}`]; __typename?: boolean | `@${string}`; }>; /** type object node */ ["ProjectOps"]: AliasType<{ addMember?: [{ username: string | Variable; role: ValueTypes["Role"] | Variable; loginCallback?: string | undefined | null | Variable; serviceAccount?: boolean | undefined | null | Variable; }, ValueTypes["Member"]]; createTemporaryFile?: [{ contentType?: string | undefined | null | Variable; contentLength?: number | undefined | null | Variable; }, ValueTypes["TemporaryFile"]]; /** Boolean object node */ delete?: boolean | `@${string}`; /** deploy project to faker */ deployToFaker?: boolean | `@${string}`; removeSources?: [{ files?: Array | undefined | null | Variable; }, boolean | `@${string}`]; renameSources?: [{ files?: Array | undefined | null | Variable; }, boolean | `@${string}`]; update?: [{ in?: ValueTypes["UpdateProject"] | undefined | null | Variable; }, boolean | `@${string}`]; __typename?: boolean | `@${string}`; }>; ["CreateServiceAccountInput"]: { tags?: Array | undefined | null | Variable; description?: string | undefined | null | Variable; }; ["Subscription"]: AliasType<{ /** Cancel subscription URL */ cancelURL?: boolean | `@${string}`; /** Subscription expiration date */ expiration?: boolean | `@${string}`; /** Number of seats in subscription */ quantity?: boolean | `@${string}`; /** List of seats in subscription */ seats?: ValueTypes["UserConnection"]; /** Status of subscription */ status?: boolean | `@${string}`; /** Subscription unique id */ subscriptionID?: boolean | `@${string}`; /** Subscription plan unique id */ subscriptionPlanID?: boolean | `@${string}`; /** Update subscription URL */ updateURL?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; /** PredictCheckout represents payment prediction for checkout data */ ["PredictCheckout"]: AliasType<{ /** Predicted checkout price */ price?: boolean | `@${string}`; /** Predicted number of trial days */ trialDays?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; /** Team member ops */ ["MemberOps"]: AliasType<{ /** Boolean object node */ delete?: boolean | `@${string}`; update?: [{ role?: ValueTypes["Role"] | undefined | null | Variable; }, boolean | `@${string}`]; __typename?: boolean | `@${string}`; }>; /** PageInfo contains information about connection page */ ["PageInfo"]: AliasType<{ /** last element in connection */ last?: boolean | `@${string}`; /** limit set while quering */ limit?: boolean | `@${string}`; /** if next is false then client recieved all available data */ next?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; /** ProjectsSortInput defines how projects from listProjects should be sorted. */ ["ProjectsSortInput"]: { /** Sort by owner */ owner?: ValueTypes["SortOrder"] | undefined | null | Variable; /** Sort by visisbility */ public?: ValueTypes["SortOrder"] | undefined | null | Variable; /** Sort by slug */ slug?: ValueTypes["SortOrder"] | undefined | null | Variable; /** Sort by tag */ tags?: ValueTypes["SortOrder"] | undefined | null | Variable; /** Sorts projects by team. Sort behaviour for projects by team is implemenation depednant. */ team?: ValueTypes["SortOrder"] | undefined | null | Variable; /** Sort projects by creation date */ createdAt?: ValueTypes["SortOrder"] | undefined | null | Variable; /** Sort by name */ name?: ValueTypes["SortOrder"] | undefined | null | Variable; /** Sort by id */ id?: ValueTypes["SortOrder"] | undefined | null | Variable; }; }; export type ResolverInputTypes = { /** Request header */ ["Header"]: AliasType<{ /** Header name */ key?: boolean | `@${string}`; /** Header value */ value?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; /** Project type */ ["Project"]: AliasType<{ /** Return creation time stamp of a project */ createdAt?: boolean | `@${string}`; /** Project description */ description?: boolean | `@${string}`; /** Is project enabled */ enabled?: boolean | `@${string}`; /** Project endpoint contains a slug under which project can be reached For example https://app.graphqleditor.com/{endpoint.uri}/ */ endpoint?: ResolverInputTypes["Endpoint"]; /** Unique project id */ id?: boolean | `@${string}`; members?: [{ last?: string | undefined | null; limit?: number | undefined | null; }, ResolverInputTypes["MemberConnection"]]; /** Is project mocked by faker backend */ mocked?: boolean | `@${string}`; /** Project name */ name?: boolean | `@${string}`; /** Project owner Can be null if project belongs to a team */ owner?: ResolverInputTypes["User"]; /** True if project is public */ public?: boolean | `@${string}`; /** Project part of the slug */ slug?: boolean | `@${string}`; sources?: [{ last?: string | undefined | null; limit?: number | undefined | null; }, ResolverInputTypes["FakerSourceConnection"]]; /** Project tags */ tags?: boolean | `@${string}`; /** Team to which project belongs Can be null if project belongs to a user */ team?: ResolverInputTypes["Team"]; /** Return creation time stamp of a project */ updatedAt?: boolean | `@${string}`; /** A link to upstream URL */ upstream?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; ["ServiceAccount"]: AliasType<{ description?: boolean | `@${string}`; keys?: ResolverInputTypes["ServiceAccountApiKey"]; name?: boolean | `@${string}`; tags?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; /** A source object */ ["FakerSource"]: AliasType<{ /** File checksum */ checksum?: boolean | `@${string}`; contents?: boolean | `@${string}`; /** Name of source file */ filename?: boolean | `@${string}`; /** Return an url by which source file can be accessed */ getUrl?: boolean | `@${string}`; /** Return last time the object was updated */ updatedAt?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; /** Teams connection */ ["TeamConnection"]: AliasType<{ /** Pagination info used in next fetch */ pageInfo?: ResolverInputTypes["PageInfo"]; /** List of teams returned by current page in connection */ teams?: ResolverInputTypes["Team"]; __typename?: boolean | `@${string}`; }>; /** Checkout data needed to begin payment process */ ["PredictCheckoutInput"]: { /** An id of a chosen subscription plan */ planID: string; /** Quantity of subscriptions that user wants */ quantity?: number | undefined | null; /** Optional discount coupon */ coupon?: string | undefined | null; }; ["UserConnection"]: AliasType<{ /** Current connection page info */ pageInfo?: ResolverInputTypes["PageInfo"]; /** List of projects in connection */ users?: ResolverInputTypes["User"]; __typename?: boolean | `@${string}`; }>; /** Amount is a number that gives precise representation of real numbers */ ["Decimal"]: unknown; /** Checkout data needed to begin payment process for stripe */ ["StripeCheckoutDataInput"]: { /** URL to which user should be redirected after successful transaction */ successURL?: string | undefined | null; /** price id of product on stripe */ PriceID: string; }; /** Update project payload */ ["UpdateProject"]: { /** New description for project */ description?: string | undefined | null; /** List of tags for project */ tags?: Array | undefined | null; /** Set project visiblity */ public?: boolean | undefined | null; /** Link to upstream schema */ upstream?: string | undefined | null; /** ID of project to be updated */ project?: string | undefined | null; }; ["ChangeSubscriptionInput"]: { subscriptionID: number; subscriptionPlanID?: number | undefined | null; }; /** Team object */ ["Team"]: AliasType<{ /** check if team is paid team and if returns false give reason of not enabled */ enabled?: ResolverInputTypes["TeamEnabled"]; /** Unique team id */ id?: boolean | `@${string}`; member?: [{ username: string; }, ResolverInputTypes["Member"]]; members?: [{ last?: string | undefined | null; limit?: number | undefined | null; }, ResolverInputTypes["MemberConnection"]]; /** Team name */ name?: boolean | `@${string}`; /** Team's namespace */ namespace?: ResolverInputTypes["Namespace"]; /** A plan ID of a plan associated with team */ planID?: boolean | `@${string}`; serviceAccounts?: [{ last?: string | undefined | null; limit?: number | undefined | null; }, ResolverInputTypes["ServiceAccountConnection"]]; /** List invite tokens */ tokens?: ResolverInputTypes["InviteToken"]; __typename?: boolean | `@${string}`; }>; ["ServiceAccountApiKey"]: AliasType<{ id?: boolean | `@${string}`; key?: boolean | `@${string}`; name?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; /** Endpoint returnes a full path to the project without host */ ["Endpoint"]: AliasType<{ /** Full project uri without host */ uri?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; ["Mutation"]: AliasType<{ changePassword?: [{ oldPassword: string; newPassword: string; }, boolean | `@${string}`]; changeSubscription?: [{ in: ResolverInputTypes["ChangeSubscriptionInput"]; }, boolean | `@${string}`]; consumeInviteToken?: [{ token: string; }, boolean | `@${string}`]; createTeam?: [{ namespace: string; name: string; }, ResolverInputTypes["TeamOps"]]; createUser?: [{ namespace: string; public?: boolean | undefined | null; }, ResolverInputTypes["User"]]; /** Delete account */ deleteAccount?: boolean | `@${string}`; /** Resend verification email */ resendVerificationEmail?: boolean | `@${string}`; sync?: [{ source: string; target: string; }, boolean | `@${string}`]; team?: [{ id: string; }, ResolverInputTypes["TeamOps"]]; updateSources?: [{ sources?: Array | undefined | null; project: string; }, ResolverInputTypes["SourceUploadInfo"]]; __typename?: boolean | `@${string}`; }>; /** Editor user */ ["User"]: AliasType<{ /** User's account type */ accountType?: boolean | `@${string}`; /** Marketing consent. True if given, false if declined, null if never asked. */ consentGiven?: boolean | `@${string}`; /** Marketing consent given at */ consentTimestamp?: boolean | `@${string}`; /** Unique user id */ id?: boolean | `@${string}`; /** User's namespace */ namespace?: ResolverInputTypes["Namespace"]; stripeCustomerId?: boolean | `@${string}`; /** User's subscriptions */ subscriptions?: ResolverInputTypes["SubscriptionConnection"]; /** Unique username */ username?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; /** Checkout data needed to begin payment process */ ["CheckoutDataInput"]: { /** Optional discount coupon */ coupon?: string | undefined | null; /** URL to which user should be redirected after successful transaction */ successURL?: string | undefined | null; /** URL to which user should be redirected after failed transaction */ cancelURL?: string | undefined | null; /** An id of a chosen subscription plan */ planID: string; /** Quantity of subscriptions that user wants */ quantity?: number | undefined | null; /** Customer data */ customer?: ResolverInputTypes["CustomerInput"] | undefined | null; /** Vat data */ vat?: ResolverInputTypes["VatInput"] | undefined | null; }; /** Vat information of a user */ ["VatInput"]: { /** Vat company name */ companyName?: string | undefined | null; /** Vat company street address */ street?: string | undefined | null; /** Vat company city address */ city?: string | undefined | null; /** Vat company state address. Optional. */ state?: string | undefined | null; /** Vat company country address. */ country?: string | undefined | null; /** Vat company post code address. */ postCode?: string | undefined | null; /** Vat number */ number?: string | undefined | null; }; /** RFC3339Date is a RFC3339 formated date-time string */ ["RFC3339Date"]: unknown; /** Project connection object Used with paginated listing of projects */ ["ProjectConnection"]: AliasType<{ /** Current connection page info */ pageInfo?: ResolverInputTypes["PageInfo"]; /** List of projects in connection */ projects?: ResolverInputTypes["Project"]; __typename?: boolean | `@${string}`; }>; /** Namespace is a root object containing projects belonging to a team or user */ ["Namespace"]: AliasType<{ project?: [{ name: string; }, ResolverInputTypes["Project"]]; projects?: [{ limit?: number | undefined | null; last?: string | undefined | null; }, ResolverInputTypes["ProjectConnection"]]; /** True if namespace is public */ public?: boolean | `@${string}`; /** Namespace part of the slug */ slug?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; /** Team member */ ["Member"]: AliasType<{ /** Member email */ email?: boolean | `@${string}`; /** Member role */ role?: boolean | `@${string}`; /** Service account */ serviceAccount?: boolean | `@${string}`; /** Member username */ username?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; ["TeamEnabledFailureStatus"]: TeamEnabledFailureStatus; /** Root query type */ ["Query"]: AliasType<{ checkoutData?: [{ data: ResolverInputTypes["CheckoutDataInput"]; }, boolean | `@${string}`]; /** Returns true if the user is logged in and has verified email */ emailVerified?: boolean | `@${string}`; exchangeServiceAccountKey?: [{ serviceAccount: string; key: string; }, boolean | `@${string}`]; fileServerCredentials?: [{ project?: string | undefined | null; }, boolean | `@${string}`]; findProjects?: [{ last?: string | undefined | null; limit?: number | undefined | null; query: string; }, ResolverInputTypes["ProjectConnection"]]; findProjectsByTag?: [{ last?: string | undefined | null; limit?: number | undefined | null; tag: string; }, ResolverInputTypes["ProjectConnection"]]; generateStripeBillingPortal?: [{ returnUrl: string; }, boolean | `@${string}`]; getAiRespond?: [{ text: string; contextId: string; }, boolean | `@${string}`]; getNamespace?: [{ slug: string; }, ResolverInputTypes["Namespace"]]; getProject?: [{ project: string; }, ResolverInputTypes["Project"]]; getTeam?: [{ name: string; }, ResolverInputTypes["Team"]]; getUser?: [{ username: string; }, ResolverInputTypes["User"]]; listProjects?: [{ owned?: boolean | undefined | null; last?: string | undefined | null; limit?: number | undefined | null; sort?: Array | undefined | null; }, ResolverInputTypes["ProjectConnection"]]; myTeams?: [{ last?: string | undefined | null; limit?: number | undefined | null; }, ResolverInputTypes["TeamConnection"]]; /** List user payments */ payments?: ResolverInputTypes["Payment"]; predictCheckout?: [{ data: ResolverInputTypes["PredictCheckoutInput"]; }, ResolverInputTypes["PredictCheckout"]]; stripePaymentLink?: [{ data: ResolverInputTypes["StripeCheckoutDataInput"]; }, boolean | `@${string}`]; __typename?: boolean | `@${string}`; }>; /** Team member role */ ["Role"]: Role; /** Paginated members list */ ["MemberConnection"]: AliasType<{ /** List of members in this connection */ members?: ResolverInputTypes["Member"]; /** pageInfo for member connection */ pageInfo?: ResolverInputTypes["PageInfo"]; __typename?: boolean | `@${string}`; }>; /** New source payload */ ["NewSource"]: { /** Source checksum */ checksum?: string | undefined | null; /** source file name */ filename?: string | undefined | null; /** Length of source in bytes */ contentLength?: number | undefined | null; /** Source mime type */ contentType?: string | undefined | null; }; ["InviteToken"]: AliasType<{ createdAt?: boolean | `@${string}`; domain?: boolean | `@${string}`; expiration?: boolean | `@${string}`; name?: boolean | `@${string}`; removed?: boolean | `@${string}`; role?: boolean | `@${string}`; token?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; /** Customer data for checkout information */ ["CustomerInput"]: { /** User's country */ country?: string | undefined | null; /** User's post code */ postCode?: string | undefined | null; /** Must be true for marketing to be allowed */ marketingConsent?: boolean | undefined | null; /** User's email address */ email?: string | undefined | null; }; ["Payment"]: AliasType<{ /** Amount paid */ amount?: boolean | `@${string}`; /** Currency in which payment was made */ currency?: boolean | `@${string}`; /** Date indicates a when the payment was made */ date?: boolean | `@${string}`; /** URL from which user can download invoice */ receiptURL?: boolean | `@${string}`; /** ID of subscription for which payment was made */ subscriptionID?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; ["FileServerCredentials"]: unknown; /** Temporary file for project */ ["TemporaryFile"]: AliasType<{ /** String with url used in GET request */ getUrl?: boolean | `@${string}`; /** String with url used in PUT request */ putUrl?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; /** Paginated service account list */ ["ServiceAccountConnection"]: AliasType<{ /** pageInfo for service accounts connection */ pageInfo?: ResolverInputTypes["PageInfo"]; /** List of members in this connection */ serviceAccounts?: ResolverInputTypes["ServiceAccount"]; __typename?: boolean | `@${string}`; }>; /** Connection object containing list of faker sources */ ["FakerSourceConnection"]: AliasType<{ /** Connection pageInfo */ pageInfo?: ResolverInputTypes["PageInfo"]; /** List of sources returned by connection */ sources?: ResolverInputTypes["FakerSource"]; __typename?: boolean | `@${string}`; }>; ["RenameFileInput"]: { dst: string; src: string; }; /** Source upload info object */ ["SourceUploadInfo"]: AliasType<{ /** Source file name */ filename?: boolean | `@${string}`; /** List of headers that must be included in PUT request */ headers?: ResolverInputTypes["Header"]; /** String with url used in PUT request */ putUrl?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; /** PaymentDate is a string in a format 'YYYY-MM-DD' */ ["PaymentDate"]: unknown; /** Sort order defines possible ordering of sorted outputs */ ["SortOrder"]: SortOrder; ["SubscriptionConnection"]: AliasType<{ /** Current conenction page info */ pageInfo?: ResolverInputTypes["PageInfo"]; /** List of subscriptions in connection */ subscriptions?: ResolverInputTypes["Subscription"]; __typename?: boolean | `@${string}`; }>; /** Defines user's account type */ ["AccountType"]: AccountType; ["TeamEnabled"]: AliasType<{ enabled?: boolean | `@${string}`; status?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; /** Team operations */ ["TeamOps"]: AliasType<{ addMember?: [{ loginCallback?: string | undefined | null; username: string; role: ResolverInputTypes["Role"]; }, ResolverInputTypes["Member"]]; createProject?: [{ name: string; public?: boolean | undefined | null; }, ResolverInputTypes["Project"]]; createServiceAccount?: [{ input?: ResolverInputTypes["CreateServiceAccountInput"] | undefined | null; }, ResolverInputTypes["ServiceAccount"]]; createServiceAccountApiKey?: [{ serviceAccount: string; name: string; }, ResolverInputTypes["ServiceAccountApiKey"]]; /** Delete team */ delete?: boolean | `@${string}`; /** Unique team id */ id?: boolean | `@${string}`; inviteToken?: [{ name: string; role?: ResolverInputTypes["Role"] | undefined | null; expiration?: number | undefined | null; domain?: string | undefined | null; }, boolean | `@${string}`]; member?: [{ username: string; }, ResolverInputTypes["MemberOps"]]; members?: [{ last?: string | undefined | null; limit?: number | undefined | null; }, ResolverInputTypes["MemberConnection"]]; /** Team name */ name?: boolean | `@${string}`; /** Team's namespace */ namespace?: ResolverInputTypes["Namespace"]; /** A plan ID of a plan associated with team */ planID?: boolean | `@${string}`; project?: [{ id: string; }, ResolverInputTypes["ProjectOps"]]; removeServiceAccount?: [{ name: string; }, boolean | `@${string}`]; removeServiceAccountApiKey?: [{ id: string; serviceAccount: string; }, boolean | `@${string}`]; removeToken?: [{ token: string; }, boolean | `@${string}`]; __typename?: boolean | `@${string}`; }>; /** type object node */ ["ProjectOps"]: AliasType<{ addMember?: [{ username: string; role: ResolverInputTypes["Role"]; loginCallback?: string | undefined | null; serviceAccount?: boolean | undefined | null; }, ResolverInputTypes["Member"]]; createTemporaryFile?: [{ contentType?: string | undefined | null; contentLength?: number | undefined | null; }, ResolverInputTypes["TemporaryFile"]]; /** Boolean object node */ delete?: boolean | `@${string}`; /** deploy project to faker */ deployToFaker?: boolean | `@${string}`; removeSources?: [{ files?: Array | undefined | null; }, boolean | `@${string}`]; renameSources?: [{ files?: Array | undefined | null; }, boolean | `@${string}`]; update?: [{ in?: ResolverInputTypes["UpdateProject"] | undefined | null; }, boolean | `@${string}`]; __typename?: boolean | `@${string}`; }>; ["CreateServiceAccountInput"]: { tags?: Array | undefined | null; description?: string | undefined | null; }; ["Subscription"]: AliasType<{ /** Cancel subscription URL */ cancelURL?: boolean | `@${string}`; /** Subscription expiration date */ expiration?: boolean | `@${string}`; /** Number of seats in subscription */ quantity?: boolean | `@${string}`; /** List of seats in subscription */ seats?: ResolverInputTypes["UserConnection"]; /** Status of subscription */ status?: boolean | `@${string}`; /** Subscription unique id */ subscriptionID?: boolean | `@${string}`; /** Subscription plan unique id */ subscriptionPlanID?: boolean | `@${string}`; /** Update subscription URL */ updateURL?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; /** PredictCheckout represents payment prediction for checkout data */ ["PredictCheckout"]: AliasType<{ /** Predicted checkout price */ price?: boolean | `@${string}`; /** Predicted number of trial days */ trialDays?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; /** Team member ops */ ["MemberOps"]: AliasType<{ /** Boolean object node */ delete?: boolean | `@${string}`; update?: [{ role?: ResolverInputTypes["Role"] | undefined | null; }, boolean | `@${string}`]; __typename?: boolean | `@${string}`; }>; /** PageInfo contains information about connection page */ ["PageInfo"]: AliasType<{ /** last element in connection */ last?: boolean | `@${string}`; /** limit set while quering */ limit?: boolean | `@${string}`; /** if next is false then client recieved all available data */ next?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; /** ProjectsSortInput defines how projects from listProjects should be sorted. */ ["ProjectsSortInput"]: { /** Sort by owner */ owner?: ResolverInputTypes["SortOrder"] | undefined | null; /** Sort by visisbility */ public?: ResolverInputTypes["SortOrder"] | undefined | null; /** Sort by slug */ slug?: ResolverInputTypes["SortOrder"] | undefined | null; /** Sort by tag */ tags?: ResolverInputTypes["SortOrder"] | undefined | null; /** Sorts projects by team. Sort behaviour for projects by team is implemenation depednant. */ team?: ResolverInputTypes["SortOrder"] | undefined | null; /** Sort projects by creation date */ createdAt?: ResolverInputTypes["SortOrder"] | undefined | null; /** Sort by name */ name?: ResolverInputTypes["SortOrder"] | undefined | null; /** Sort by id */ id?: ResolverInputTypes["SortOrder"] | undefined | null; }; ["schema"]: AliasType<{ query?: ResolverInputTypes["Query"]; mutation?: ResolverInputTypes["Mutation"]; __typename?: boolean | `@${string}`; }>; }; export type ModelTypes = { /** Request header */ ["Header"]: { /** Header name */ key: string; /** Header value */ value?: string | undefined; }; /** Project type */ ["Project"]: { /** Return creation time stamp of a project */ createdAt?: ModelTypes["RFC3339Date"] | undefined; /** Project description */ description?: string | undefined; /** Is project enabled */ enabled?: boolean | undefined; /** Project endpoint contains a slug under which project can be reached For example https://app.graphqleditor.com/{endpoint.uri}/ */ endpoint?: ModelTypes["Endpoint"] | undefined; /** Unique project id */ id: string; /** Paginated list of members in team */ members?: ModelTypes["MemberConnection"] | undefined; /** Is project mocked by faker backend */ mocked?: boolean | undefined; /** Project name */ name: string; /** Project owner Can be null if project belongs to a team */ owner?: ModelTypes["User"] | undefined; /** True if project is public */ public?: boolean | undefined; /** Project part of the slug */ slug?: string | undefined; /** Returns a connection object with source files in project last is a string returned by previous call to Project.sources limit sets a limit on how many objects can be returned */ sources?: ModelTypes["FakerSourceConnection"] | undefined; /** Project tags */ tags?: Array | undefined; /** Team to which project belongs Can be null if project belongs to a user */ team?: ModelTypes["Team"] | undefined; /** Return creation time stamp of a project */ updatedAt?: ModelTypes["RFC3339Date"] | undefined; /** A link to upstream URL */ upstream?: string | undefined; }; ["ServiceAccount"]: { description?: string | undefined; keys?: Array | undefined; name: string; tags?: Array | undefined; }; /** A source object */ ["FakerSource"]: { /** File checksum */ checksum?: string | undefined; contents?: string | undefined; /** Name of source file */ filename?: string | undefined; /** Return an url by which source file can be accessed */ getUrl?: string | undefined; /** Return last time the object was updated */ updatedAt?: string | undefined; }; /** Teams connection */ ["TeamConnection"]: { /** Pagination info used in next fetch */ pageInfo: ModelTypes["PageInfo"]; /** List of teams returned by current page in connection */ teams?: Array | undefined; }; /** Checkout data needed to begin payment process */ ["PredictCheckoutInput"]: { /** An id of a chosen subscription plan */ planID: string; /** Quantity of subscriptions that user wants */ quantity?: number | undefined; /** Optional discount coupon */ coupon?: string | undefined; }; ["UserConnection"]: { /** Current connection page info */ pageInfo: ModelTypes["PageInfo"]; /** List of projects in connection */ users?: Array | undefined; }; /** Amount is a number that gives precise representation of real numbers */ ["Decimal"]: any; /** Checkout data needed to begin payment process for stripe */ ["StripeCheckoutDataInput"]: { /** URL to which user should be redirected after successful transaction */ successURL?: string | undefined; /** price id of product on stripe */ PriceID: string; }; /** Update project payload */ ["UpdateProject"]: { /** New description for project */ description?: string | undefined; /** List of tags for project */ tags?: Array | undefined; /** Set project visiblity */ public?: boolean | undefined; /** Link to upstream schema */ upstream?: string | undefined; /** ID of project to be updated */ project?: string | undefined; }; ["ChangeSubscriptionInput"]: { subscriptionID: number; subscriptionPlanID?: number | undefined; }; /** Team object */ ["Team"]: { /** check if team is paid team and if returns false give reason of not enabled */ enabled: ModelTypes["TeamEnabled"]; /** Unique team id */ id?: string | undefined; /** type object node */ member?: ModelTypes["Member"] | undefined; /** Paginated list of members in team */ members?: ModelTypes["MemberConnection"] | undefined; /** Team name */ name: string; /** Team's namespace */ namespace: ModelTypes["Namespace"]; /** A plan ID of a plan associated with team */ planID?: number | undefined; /** List service accounts in team */ serviceAccounts?: ModelTypes["ServiceAccountConnection"] | undefined; /** List invite tokens */ tokens?: Array | undefined; }; ["ServiceAccountApiKey"]: { id: string; key: string; name: string; }; /** Endpoint returnes a full path to the project without host */ ["Endpoint"]: { /** Full project uri without host */ uri?: string | undefined; }; ["Mutation"]: { /** Change user password */ changePassword?: boolean | undefined; /** Changes subscription settings for user */ changeSubscription?: boolean | undefined; /** Consume invite token */ consumeInviteToken?: boolean | undefined; /** Create new team */ createTeam?: ModelTypes["TeamOps"] | undefined; /** Create new user namespace name for a user public is user namespace public */ createUser: ModelTypes["User"]; /** Delete account */ deleteAccount?: boolean | undefined; /** Resend verification email */ resendVerificationEmail?: boolean | undefined; /** Synhronises the target project with source. It overrides existing files of target with files of sources. It does not remove files from target that do not exist in source. */ sync?: boolean | undefined; /** type object node */ team?: ModelTypes["TeamOps"] | undefined; /** Add sources to the project */ updateSources?: Array | undefined; }; /** Editor user */ ["User"]: { /** User's account type */ accountType: ModelTypes["AccountType"]; /** Marketing consent. True if given, false if declined, null if never asked. */ consentGiven?: boolean | undefined; /** Marketing consent given at */ consentTimestamp?: number | undefined; /** Unique user id */ id?: string | undefined; /** User's namespace */ namespace?: ModelTypes["Namespace"] | undefined; stripeCustomerId?: string | undefined; /** User's subscriptions */ subscriptions?: ModelTypes["SubscriptionConnection"] | undefined; /** Unique username */ username?: string | undefined; }; /** Checkout data needed to begin payment process */ ["CheckoutDataInput"]: { /** Optional discount coupon */ coupon?: string | undefined; /** URL to which user should be redirected after successful transaction */ successURL?: string | undefined; /** URL to which user should be redirected after failed transaction */ cancelURL?: string | undefined; /** An id of a chosen subscription plan */ planID: string; /** Quantity of subscriptions that user wants */ quantity?: number | undefined; /** Customer data */ customer?: ModelTypes["CustomerInput"] | undefined; /** Vat data */ vat?: ModelTypes["VatInput"] | undefined; }; /** Vat information of a user */ ["VatInput"]: { /** Vat company name */ companyName?: string | undefined; /** Vat company street address */ street?: string | undefined; /** Vat company city address */ city?: string | undefined; /** Vat company state address. Optional. */ state?: string | undefined; /** Vat company country address. */ country?: string | undefined; /** Vat company post code address. */ postCode?: string | undefined; /** Vat number */ number?: string | undefined; }; /** RFC3339Date is a RFC3339 formated date-time string */ ["RFC3339Date"]: any; /** Project connection object Used with paginated listing of projects */ ["ProjectConnection"]: { /** Current connection page info */ pageInfo: ModelTypes["PageInfo"]; /** List of projects in connection */ projects?: Array | undefined; }; /** Namespace is a root object containing projects belonging to a team or user */ ["Namespace"]: { /** Return project by name from namespace */ project?: ModelTypes["Project"] | undefined; /** Returns a project connection object which contains a projects belonging to namespace last is a string returned by previous call to Namespace.projects limit sets a limit on how many objects can be returned */ projects?: ModelTypes["ProjectConnection"] | undefined; /** True if namespace is public */ public?: boolean | undefined; /** Namespace part of the slug */ slug?: string | undefined; }; /** Team member */ ["Member"]: { /** Member email */ email?: string | undefined; /** Member role */ role?: ModelTypes["Role"] | undefined; /** Service account */ serviceAccount?: boolean | undefined; /** Member username */ username?: string | undefined; }; ["TeamEnabledFailureStatus"]: TeamEnabledFailureStatus; /** Root query type */ ["Query"]: { /** Data needed by the current user to start payment flow */ checkoutData?: string | undefined; /** Returns true if the user is logged in and has verified email */ emailVerified?: boolean | undefined; /** Exchange service account key for token */ exchangeServiceAccountKey?: string | undefined; /** Returns credentials to file server. If project ID is not provided returns a credentials that grants access to all projects owned by user, otherwise creates a credentials that grants access to one project only if the project is public or belongs to a user. */ fileServerCredentials?: ModelTypes["FileServerCredentials"] | undefined; /** Returns a project connection query is a regular expresion matched agains project slug last is an id of the last project returned by previous call limit limits the number of returned projects */ findProjects?: ModelTypes["ProjectConnection"] | undefined; /** Find projects which contain tag tag is a string last is an id of the last project returned by previous call limit limits the number of returned projects */ findProjectsByTag?: ModelTypes["ProjectConnection"] | undefined; /** generate link to stripe billing portal */ generateStripeBillingPortal?: string | undefined; getAiRespond: string; /** Return namespace matching slug */ getNamespace?: ModelTypes["Namespace"] | undefined; /** Return project by id */ getProject?: ModelTypes["Project"] | undefined; /** Return team by name */ getTeam?: ModelTypes["Team"] | undefined; /** Return user by name */ getUser?: ModelTypes["User"] | undefined; /** Returns a project connection If owned is true, returns only project belonging to currently logged user last is an id of the last project returned by previous call limit limits the number of returned projects */ listProjects?: ModelTypes["ProjectConnection"] | undefined; /** List of current user teams */ myTeams?: ModelTypes["TeamConnection"] | undefined; /** List user payments */ payments?: Array | undefined; /** Calculate checkout information */ predictCheckout?: ModelTypes["PredictCheckout"] | undefined; /** Stripe endpoint to start payment flow */ stripePaymentLink?: string | undefined; }; ["Role"]: Role; /** Paginated members list */ ["MemberConnection"]: { /** List of members in this connection */ members?: Array | undefined; /** pageInfo for member connection */ pageInfo: ModelTypes["PageInfo"]; }; /** New source payload */ ["NewSource"]: { /** Source checksum */ checksum?: string | undefined; /** source file name */ filename?: string | undefined; /** Length of source in bytes */ contentLength?: number | undefined; /** Source mime type */ contentType?: string | undefined; }; ["InviteToken"]: { createdAt?: string | undefined; domain?: string | undefined; expiration?: string | undefined; name: string; removed?: boolean | undefined; role?: ModelTypes["Role"] | undefined; token?: string | undefined; }; /** Customer data for checkout information */ ["CustomerInput"]: { /** User's country */ country?: string | undefined; /** User's post code */ postCode?: string | undefined; /** Must be true for marketing to be allowed */ marketingConsent?: boolean | undefined; /** User's email address */ email?: string | undefined; }; ["Payment"]: { /** Amount paid */ amount?: ModelTypes["Decimal"] | undefined; /** Currency in which payment was made */ currency?: string | undefined; /** Date indicates a when the payment was made */ date?: ModelTypes["PaymentDate"] | undefined; /** URL from which user can download invoice */ receiptURL?: string | undefined; /** ID of subscription for which payment was made */ subscriptionID?: number | undefined; }; ["FileServerCredentials"]: any; /** Temporary file for project */ ["TemporaryFile"]: { /** String with url used in GET request */ getUrl: string; /** String with url used in PUT request */ putUrl: string; }; /** Paginated service account list */ ["ServiceAccountConnection"]: { /** pageInfo for service accounts connection */ pageInfo: ModelTypes["PageInfo"]; /** List of members in this connection */ serviceAccounts?: Array | undefined; }; /** Connection object containing list of faker sources */ ["FakerSourceConnection"]: { /** Connection pageInfo */ pageInfo: ModelTypes["PageInfo"]; /** List of sources returned by connection */ sources?: Array | undefined; }; ["RenameFileInput"]: { dst: string; src: string; }; /** Source upload info object */ ["SourceUploadInfo"]: { /** Source file name */ filename?: string | undefined; /** List of headers that must be included in PUT request */ headers?: Array | undefined; /** String with url used in PUT request */ putUrl: string; }; /** PaymentDate is a string in a format 'YYYY-MM-DD' */ ["PaymentDate"]: any; ["SortOrder"]: SortOrder; ["SubscriptionConnection"]: { /** Current conenction page info */ pageInfo: ModelTypes["PageInfo"]; /** List of subscriptions in connection */ subscriptions?: Array | undefined; }; ["AccountType"]: AccountType; ["TeamEnabled"]: { enabled: boolean; status?: Array | undefined; }; /** Team operations */ ["TeamOps"]: { /** Add member to the team */ addMember?: ModelTypes["Member"] | undefined; /** Create new team project */ createProject?: ModelTypes["Project"] | undefined; /** Add service account to the team */ createServiceAccount?: ModelTypes["ServiceAccount"] | undefined; /** Create service account api key */ createServiceAccountApiKey?: ModelTypes["ServiceAccountApiKey"] | undefined; /** Delete team */ delete?: boolean | undefined; /** Unique team id */ id?: string | undefined; /** Creates a invite token that can be accepted by anyone to join a team role - A role which new user will have after accepting invite. Default viewer expiration - How long invitation token stays valid in minutes. Default is 7 days. Max is one 5 years. domain - Limits users to those who have verified email from domain */ inviteToken?: string | undefined; /** type object node */ member?: ModelTypes["MemberOps"] | undefined; /** Paginated list of members in team */ members?: ModelTypes["MemberConnection"] | undefined; /** Team name */ name?: string | undefined; /** Team's namespace */ namespace?: ModelTypes["Namespace"] | undefined; /** A plan ID of a plan associated with team */ planID?: number | undefined; /** type object node */ project?: ModelTypes["ProjectOps"] | undefined; /** Remove service account */ removeServiceAccount?: boolean | undefined; /** Remove service account api key */ removeServiceAccountApiKey?: boolean | undefined; /** Removes a token making it unusable for future usages */ removeToken?: string | undefined; }; /** type object node */ ["ProjectOps"]: { /** Add member to the project */ addMember?: ModelTypes["Member"] | undefined; /** Create temporary file for project */ createTemporaryFile?: ModelTypes["TemporaryFile"] | undefined; /** Boolean object node */ delete?: boolean | undefined; /** deploy project to faker */ deployToFaker?: boolean | undefined; /** remove files from project */ removeSources?: boolean | undefined; /** rename files in project */ renameSources?: boolean | undefined; /** Boolean object node */ update?: boolean | undefined; }; ["CreateServiceAccountInput"]: { tags?: Array | undefined; description?: string | undefined; }; ["Subscription"]: { /** Cancel subscription URL */ cancelURL?: string | undefined; /** Subscription expiration date */ expiration?: string | undefined; /** Number of seats in subscription */ quantity?: number | undefined; /** List of seats in subscription */ seats?: ModelTypes["UserConnection"] | undefined; /** Status of subscription */ status?: string | undefined; /** Subscription unique id */ subscriptionID?: number | undefined; /** Subscription plan unique id */ subscriptionPlanID?: number | undefined; /** Update subscription URL */ updateURL?: string | undefined; }; /** PredictCheckout represents payment prediction for checkout data */ ["PredictCheckout"]: { /** Predicted checkout price */ price: number; /** Predicted number of trial days */ trialDays?: number | undefined; }; /** Team member ops */ ["MemberOps"]: { /** Boolean object node */ delete?: boolean | undefined; /** Boolean object node */ update?: boolean | undefined; }; /** PageInfo contains information about connection page */ ["PageInfo"]: { /** last element in connection */ last?: string | undefined; /** limit set while quering */ limit?: number | undefined; /** if next is false then client recieved all available data */ next?: boolean | undefined; }; /** ProjectsSortInput defines how projects from listProjects should be sorted. */ ["ProjectsSortInput"]: { /** Sort by owner */ owner?: ModelTypes["SortOrder"] | undefined; /** Sort by visisbility */ public?: ModelTypes["SortOrder"] | undefined; /** Sort by slug */ slug?: ModelTypes["SortOrder"] | undefined; /** Sort by tag */ tags?: ModelTypes["SortOrder"] | undefined; /** Sorts projects by team. Sort behaviour for projects by team is implemenation depednant. */ team?: ModelTypes["SortOrder"] | undefined; /** Sort projects by creation date */ createdAt?: ModelTypes["SortOrder"] | undefined; /** Sort by name */ name?: ModelTypes["SortOrder"] | undefined; /** Sort by id */ id?: ModelTypes["SortOrder"] | undefined; }; ["schema"]: { query?: ModelTypes["Query"] | undefined; mutation?: ModelTypes["Mutation"] | undefined; }; }; export type GraphQLTypes = { /** Request header */ ["Header"]: { __typename: "Header"; /** Header name */ key: string; /** Header value */ value?: string | undefined; }; /** Project type */ ["Project"]: { __typename: "Project"; /** Return creation time stamp of a project */ createdAt?: GraphQLTypes["RFC3339Date"] | undefined; /** Project description */ description?: string | undefined; /** Is project enabled */ enabled?: boolean | undefined; /** Project endpoint contains a slug under which project can be reached For example https://app.graphqleditor.com/{endpoint.uri}/ */ endpoint?: GraphQLTypes["Endpoint"] | undefined; /** Unique project id */ id: string; /** Paginated list of members in team */ members?: GraphQLTypes["MemberConnection"] | undefined; /** Is project mocked by faker backend */ mocked?: boolean | undefined; /** Project name */ name: string; /** Project owner Can be null if project belongs to a team */ owner?: GraphQLTypes["User"] | undefined; /** True if project is public */ public?: boolean | undefined; /** Project part of the slug */ slug?: string | undefined; /** Returns a connection object with source files in project last is a string returned by previous call to Project.sources limit sets a limit on how many objects can be returned */ sources?: GraphQLTypes["FakerSourceConnection"] | undefined; /** Project tags */ tags?: Array | undefined; /** Team to which project belongs Can be null if project belongs to a user */ team?: GraphQLTypes["Team"] | undefined; /** Return creation time stamp of a project */ updatedAt?: GraphQLTypes["RFC3339Date"] | undefined; /** A link to upstream URL */ upstream?: string | undefined; }; ["ServiceAccount"]: { __typename: "ServiceAccount"; description?: string | undefined; keys?: Array | undefined; name: string; tags?: Array | undefined; }; /** A source object */ ["FakerSource"]: { __typename: "FakerSource"; /** File checksum */ checksum?: string | undefined; contents?: string | undefined; /** Name of source file */ filename?: string | undefined; /** Return an url by which source file can be accessed */ getUrl?: string | undefined; /** Return last time the object was updated */ updatedAt?: string | undefined; }; /** Teams connection */ ["TeamConnection"]: { __typename: "TeamConnection"; /** Pagination info used in next fetch */ pageInfo: GraphQLTypes["PageInfo"]; /** List of teams returned by current page in connection */ teams?: Array | undefined; }; /** Checkout data needed to begin payment process */ ["PredictCheckoutInput"]: { /** An id of a chosen subscription plan */ planID: string; /** Quantity of subscriptions that user wants */ quantity?: number | undefined; /** Optional discount coupon */ coupon?: string | undefined; }; ["UserConnection"]: { __typename: "UserConnection"; /** Current connection page info */ pageInfo: GraphQLTypes["PageInfo"]; /** List of projects in connection */ users?: Array | undefined; }; /** Amount is a number that gives precise representation of real numbers */ ["Decimal"]: "scalar" & { name: "Decimal"; }; /** Checkout data needed to begin payment process for stripe */ ["StripeCheckoutDataInput"]: { /** URL to which user should be redirected after successful transaction */ successURL?: string | undefined; /** price id of product on stripe */ PriceID: string; }; /** Update project payload */ ["UpdateProject"]: { /** New description for project */ description?: string | undefined; /** List of tags for project */ tags?: Array | undefined; /** Set project visiblity */ public?: boolean | undefined; /** Link to upstream schema */ upstream?: string | undefined; /** ID of project to be updated */ project?: string | undefined; }; ["ChangeSubscriptionInput"]: { subscriptionID: number; subscriptionPlanID?: number | undefined; }; /** Team object */ ["Team"]: { __typename: "Team"; /** check if team is paid team and if returns false give reason of not enabled */ enabled: GraphQLTypes["TeamEnabled"]; /** Unique team id */ id?: string | undefined; /** type object node */ member?: GraphQLTypes["Member"] | undefined; /** Paginated list of members in team */ members?: GraphQLTypes["MemberConnection"] | undefined; /** Team name */ name: string; /** Team's namespace */ namespace: GraphQLTypes["Namespace"]; /** A plan ID of a plan associated with team */ planID?: number | undefined; /** List service accounts in team */ serviceAccounts?: GraphQLTypes["ServiceAccountConnection"] | undefined; /** List invite tokens */ tokens?: Array | undefined; }; ["ServiceAccountApiKey"]: { __typename: "ServiceAccountApiKey"; id: string; key: string; name: string; }; /** Endpoint returnes a full path to the project without host */ ["Endpoint"]: { __typename: "Endpoint"; /** Full project uri without host */ uri?: string | undefined; }; ["Mutation"]: { __typename: "Mutation"; /** Change user password */ changePassword?: boolean | undefined; /** Changes subscription settings for user */ changeSubscription?: boolean | undefined; /** Consume invite token */ consumeInviteToken?: boolean | undefined; /** Create new team */ createTeam?: GraphQLTypes["TeamOps"] | undefined; /** Create new user namespace name for a user public is user namespace public */ createUser: GraphQLTypes["User"]; /** Delete account */ deleteAccount?: boolean | undefined; /** Resend verification email */ resendVerificationEmail?: boolean | undefined; /** Synhronises the target project with source. It overrides existing files of target with files of sources. It does not remove files from target that do not exist in source. */ sync?: boolean | undefined; /** type object node */ team?: GraphQLTypes["TeamOps"] | undefined; /** Add sources to the project */ updateSources?: Array | undefined; }; /** Editor user */ ["User"]: { __typename: "User"; /** User's account type */ accountType: GraphQLTypes["AccountType"]; /** Marketing consent. True if given, false if declined, null if never asked. */ consentGiven?: boolean | undefined; /** Marketing consent given at */ consentTimestamp?: number | undefined; /** Unique user id */ id?: string | undefined; /** User's namespace */ namespace?: GraphQLTypes["Namespace"] | undefined; stripeCustomerId?: string | undefined; /** User's subscriptions */ subscriptions?: GraphQLTypes["SubscriptionConnection"] | undefined; /** Unique username */ username?: string | undefined; }; /** Checkout data needed to begin payment process */ ["CheckoutDataInput"]: { /** Optional discount coupon */ coupon?: string | undefined; /** URL to which user should be redirected after successful transaction */ successURL?: string | undefined; /** URL to which user should be redirected after failed transaction */ cancelURL?: string | undefined; /** An id of a chosen subscription plan */ planID: string; /** Quantity of subscriptions that user wants */ quantity?: number | undefined; /** Customer data */ customer?: GraphQLTypes["CustomerInput"] | undefined; /** Vat data */ vat?: GraphQLTypes["VatInput"] | undefined; }; /** Vat information of a user */ ["VatInput"]: { /** Vat company name */ companyName?: string | undefined; /** Vat company street address */ street?: string | undefined; /** Vat company city address */ city?: string | undefined; /** Vat company state address. Optional. */ state?: string | undefined; /** Vat company country address. */ country?: string | undefined; /** Vat company post code address. */ postCode?: string | undefined; /** Vat number */ number?: string | undefined; }; /** RFC3339Date is a RFC3339 formated date-time string */ ["RFC3339Date"]: "scalar" & { name: "RFC3339Date"; }; /** Project connection object Used with paginated listing of projects */ ["ProjectConnection"]: { __typename: "ProjectConnection"; /** Current connection page info */ pageInfo: GraphQLTypes["PageInfo"]; /** List of projects in connection */ projects?: Array | undefined; }; /** Namespace is a root object containing projects belonging to a team or user */ ["Namespace"]: { __typename: "Namespace"; /** Return project by name from namespace */ project?: GraphQLTypes["Project"] | undefined; /** Returns a project connection object which contains a projects belonging to namespace last is a string returned by previous call to Namespace.projects limit sets a limit on how many objects can be returned */ projects?: GraphQLTypes["ProjectConnection"] | undefined; /** True if namespace is public */ public?: boolean | undefined; /** Namespace part of the slug */ slug?: string | undefined; }; /** Team member */ ["Member"]: { __typename: "Member"; /** Member email */ email?: string | undefined; /** Member role */ role?: GraphQLTypes["Role"] | undefined; /** Service account */ serviceAccount?: boolean | undefined; /** Member username */ username?: string | undefined; }; ["TeamEnabledFailureStatus"]: TeamEnabledFailureStatus; /** Root query type */ ["Query"]: { __typename: "Query"; /** Data needed by the current user to start payment flow */ checkoutData?: string | undefined; /** Returns true if the user is logged in and has verified email */ emailVerified?: boolean | undefined; /** Exchange service account key for token */ exchangeServiceAccountKey?: string | undefined; /** Returns credentials to file server. If project ID is not provided returns a credentials that grants access to all projects owned by user, otherwise creates a credentials that grants access to one project only if the project is public or belongs to a user. */ fileServerCredentials?: GraphQLTypes["FileServerCredentials"] | undefined; /** Returns a project connection query is a regular expresion matched agains project slug last is an id of the last project returned by previous call limit limits the number of returned projects */ findProjects?: GraphQLTypes["ProjectConnection"] | undefined; /** Find projects which contain tag tag is a string last is an id of the last project returned by previous call limit limits the number of returned projects */ findProjectsByTag?: GraphQLTypes["ProjectConnection"] | undefined; /** generate link to stripe billing portal */ generateStripeBillingPortal?: string | undefined; getAiRespond: string; /** Return namespace matching slug */ getNamespace?: GraphQLTypes["Namespace"] | undefined; /** Return project by id */ getProject?: GraphQLTypes["Project"] | undefined; /** Return team by name */ getTeam?: GraphQLTypes["Team"] | undefined; /** Return user by name */ getUser?: GraphQLTypes["User"] | undefined; /** Returns a project connection If owned is true, returns only project belonging to currently logged user last is an id of the last project returned by previous call limit limits the number of returned projects */ listProjects?: GraphQLTypes["ProjectConnection"] | undefined; /** List of current user teams */ myTeams?: GraphQLTypes["TeamConnection"] | undefined; /** List user payments */ payments?: Array | undefined; /** Calculate checkout information */ predictCheckout?: GraphQLTypes["PredictCheckout"] | undefined; /** Stripe endpoint to start payment flow */ stripePaymentLink?: string | undefined; }; /** Team member role */ ["Role"]: Role; /** Paginated members list */ ["MemberConnection"]: { __typename: "MemberConnection"; /** List of members in this connection */ members?: Array | undefined; /** pageInfo for member connection */ pageInfo: GraphQLTypes["PageInfo"]; }; /** New source payload */ ["NewSource"]: { /** Source checksum */ checksum?: string | undefined; /** source file name */ filename?: string | undefined; /** Length of source in bytes */ contentLength?: number | undefined; /** Source mime type */ contentType?: string | undefined; }; ["InviteToken"]: { __typename: "InviteToken"; createdAt?: string | undefined; domain?: string | undefined; expiration?: string | undefined; name: string; removed?: boolean | undefined; role?: GraphQLTypes["Role"] | undefined; token?: string | undefined; }; /** Customer data for checkout information */ ["CustomerInput"]: { /** User's country */ country?: string | undefined; /** User's post code */ postCode?: string | undefined; /** Must be true for marketing to be allowed */ marketingConsent?: boolean | undefined; /** User's email address */ email?: string | undefined; }; ["Payment"]: { __typename: "Payment"; /** Amount paid */ amount?: GraphQLTypes["Decimal"] | undefined; /** Currency in which payment was made */ currency?: string | undefined; /** Date indicates a when the payment was made */ date?: GraphQLTypes["PaymentDate"] | undefined; /** URL from which user can download invoice */ receiptURL?: string | undefined; /** ID of subscription for which payment was made */ subscriptionID?: number | undefined; }; ["FileServerCredentials"]: "scalar" & { name: "FileServerCredentials"; }; /** Temporary file for project */ ["TemporaryFile"]: { __typename: "TemporaryFile"; /** String with url used in GET request */ getUrl: string; /** String with url used in PUT request */ putUrl: string; }; /** Paginated service account list */ ["ServiceAccountConnection"]: { __typename: "ServiceAccountConnection"; /** pageInfo for service accounts connection */ pageInfo: GraphQLTypes["PageInfo"]; /** List of members in this connection */ serviceAccounts?: Array | undefined; }; /** Connection object containing list of faker sources */ ["FakerSourceConnection"]: { __typename: "FakerSourceConnection"; /** Connection pageInfo */ pageInfo: GraphQLTypes["PageInfo"]; /** List of sources returned by connection */ sources?: Array | undefined; }; ["RenameFileInput"]: { dst: string; src: string; }; /** Source upload info object */ ["SourceUploadInfo"]: { __typename: "SourceUploadInfo"; /** Source file name */ filename?: string | undefined; /** List of headers that must be included in PUT request */ headers?: Array | undefined; /** String with url used in PUT request */ putUrl: string; }; /** PaymentDate is a string in a format 'YYYY-MM-DD' */ ["PaymentDate"]: "scalar" & { name: "PaymentDate"; }; /** Sort order defines possible ordering of sorted outputs */ ["SortOrder"]: SortOrder; ["SubscriptionConnection"]: { __typename: "SubscriptionConnection"; /** Current conenction page info */ pageInfo: GraphQLTypes["PageInfo"]; /** List of subscriptions in connection */ subscriptions?: Array | undefined; }; /** Defines user's account type */ ["AccountType"]: AccountType; ["TeamEnabled"]: { __typename: "TeamEnabled"; enabled: boolean; status?: Array | undefined; }; /** Team operations */ ["TeamOps"]: { __typename: "TeamOps"; /** Add member to the team */ addMember?: GraphQLTypes["Member"] | undefined; /** Create new team project */ createProject?: GraphQLTypes["Project"] | undefined; /** Add service account to the team */ createServiceAccount?: GraphQLTypes["ServiceAccount"] | undefined; /** Create service account api key */ createServiceAccountApiKey?: GraphQLTypes["ServiceAccountApiKey"] | undefined; /** Delete team */ delete?: boolean | undefined; /** Unique team id */ id?: string | undefined; /** Creates a invite token that can be accepted by anyone to join a team role - A role which new user will have after accepting invite. Default viewer expiration - How long invitation token stays valid in minutes. Default is 7 days. Max is one 5 years. domain - Limits users to those who have verified email from domain */ inviteToken?: string | undefined; /** type object node */ member?: GraphQLTypes["MemberOps"] | undefined; /** Paginated list of members in team */ members?: GraphQLTypes["MemberConnection"] | undefined; /** Team name */ name?: string | undefined; /** Team's namespace */ namespace?: GraphQLTypes["Namespace"] | undefined; /** A plan ID of a plan associated with team */ planID?: number | undefined; /** type object node */ project?: GraphQLTypes["ProjectOps"] | undefined; /** Remove service account */ removeServiceAccount?: boolean | undefined; /** Remove service account api key */ removeServiceAccountApiKey?: boolean | undefined; /** Removes a token making it unusable for future usages */ removeToken?: string | undefined; }; /** type object node */ ["ProjectOps"]: { __typename: "ProjectOps"; /** Add member to the project */ addMember?: GraphQLTypes["Member"] | undefined; /** Create temporary file for project */ createTemporaryFile?: GraphQLTypes["TemporaryFile"] | undefined; /** Boolean object node */ delete?: boolean | undefined; /** deploy project to faker */ deployToFaker?: boolean | undefined; /** remove files from project */ removeSources?: boolean | undefined; /** rename files in project */ renameSources?: boolean | undefined; /** Boolean object node */ update?: boolean | undefined; }; ["CreateServiceAccountInput"]: { tags?: Array | undefined; description?: string | undefined; }; ["Subscription"]: { __typename: "Subscription"; /** Cancel subscription URL */ cancelURL?: string | undefined; /** Subscription expiration date */ expiration?: string | undefined; /** Number of seats in subscription */ quantity?: number | undefined; /** List of seats in subscription */ seats?: GraphQLTypes["UserConnection"] | undefined; /** Status of subscription */ status?: string | undefined; /** Subscription unique id */ subscriptionID?: number | undefined; /** Subscription plan unique id */ subscriptionPlanID?: number | undefined; /** Update subscription URL */ updateURL?: string | undefined; }; /** PredictCheckout represents payment prediction for checkout data */ ["PredictCheckout"]: { __typename: "PredictCheckout"; /** Predicted checkout price */ price: number; /** Predicted number of trial days */ trialDays?: number | undefined; }; /** Team member ops */ ["MemberOps"]: { __typename: "MemberOps"; /** Boolean object node */ delete?: boolean | undefined; /** Boolean object node */ update?: boolean | undefined; }; /** PageInfo contains information about connection page */ ["PageInfo"]: { __typename: "PageInfo"; /** last element in connection */ last?: string | undefined; /** limit set while quering */ limit?: number | undefined; /** if next is false then client recieved all available data */ next?: boolean | undefined; }; /** ProjectsSortInput defines how projects from listProjects should be sorted. */ ["ProjectsSortInput"]: { /** Sort by owner */ owner?: GraphQLTypes["SortOrder"] | undefined; /** Sort by visisbility */ public?: GraphQLTypes["SortOrder"] | undefined; /** Sort by slug */ slug?: GraphQLTypes["SortOrder"] | undefined; /** Sort by tag */ tags?: GraphQLTypes["SortOrder"] | undefined; /** Sorts projects by team. Sort behaviour for projects by team is implemenation depednant. */ team?: GraphQLTypes["SortOrder"] | undefined; /** Sort projects by creation date */ createdAt?: GraphQLTypes["SortOrder"] | undefined; /** Sort by name */ name?: GraphQLTypes["SortOrder"] | undefined; /** Sort by id */ id?: GraphQLTypes["SortOrder"] | undefined; }; }; export declare const enum TeamEnabledFailureStatus { TOO_MANY_MEMBERS = "TOO_MANY_MEMBERS", TOO_MANY_PROJECTS = "TOO_MANY_PROJECTS" } /** Team member role */ export declare const enum Role { EDITOR = "EDITOR", VIEWER = "VIEWER", CONTRIBUTOR = "CONTRIBUTOR", OWNER = "OWNER", ADMIN = "ADMIN" } /** Sort order defines possible ordering of sorted outputs */ export declare const enum SortOrder { Ascending = "Ascending", Descending = "Descending" } /** Defines user's account type */ export declare const enum AccountType { LEGACY = "LEGACY", FREE = "FREE", BASIC = "BASIC", PREMIUM = "PREMIUM" } type ZEUS_VARIABLES = { ["PredictCheckoutInput"]: ValueTypes["PredictCheckoutInput"]; ["Decimal"]: ValueTypes["Decimal"]; ["StripeCheckoutDataInput"]: ValueTypes["StripeCheckoutDataInput"]; ["UpdateProject"]: ValueTypes["UpdateProject"]; ["ChangeSubscriptionInput"]: ValueTypes["ChangeSubscriptionInput"]; ["CheckoutDataInput"]: ValueTypes["CheckoutDataInput"]; ["VatInput"]: ValueTypes["VatInput"]; ["RFC3339Date"]: ValueTypes["RFC3339Date"]; ["TeamEnabledFailureStatus"]: ValueTypes["TeamEnabledFailureStatus"]; ["Role"]: ValueTypes["Role"]; ["NewSource"]: ValueTypes["NewSource"]; ["CustomerInput"]: ValueTypes["CustomerInput"]; ["FileServerCredentials"]: ValueTypes["FileServerCredentials"]; ["RenameFileInput"]: ValueTypes["RenameFileInput"]; ["PaymentDate"]: ValueTypes["PaymentDate"]; ["SortOrder"]: ValueTypes["SortOrder"]; ["AccountType"]: ValueTypes["AccountType"]; ["CreateServiceAccountInput"]: ValueTypes["CreateServiceAccountInput"]; ["ProjectsSortInput"]: ValueTypes["ProjectsSortInput"]; }; export {};