@aexol/dev-translate-core 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.d.ts +19 -0
- package/lib/index.js +106 -0
- package/lib/index.js.map +1 -0
- package/lib/src/zeus/const.d.ts +6 -0
- package/lib/src/zeus/const.js +256 -0
- package/lib/src/zeus/const.js.map +1 -0
- package/lib/src/zeus/index.d.ts +1442 -0
- package/lib/src/zeus/index.js +592 -0
- package/lib/src/zeus/index.js.map +1 -0
- package/lib/tsconfig.tsbuildinfo +1 -0
- package/package.json +16 -0
|
@@ -0,0 +1,1442 @@
|
|
|
1
|
+
import { Ops } from './const.js';
|
|
2
|
+
import fetch from 'node-fetch';
|
|
3
|
+
import WebSocket from 'ws';
|
|
4
|
+
export declare const HOST = "https://backend.devtranslate.app/graphql";
|
|
5
|
+
export declare const HEADERS: {};
|
|
6
|
+
export declare const apiSubscription: (options: chainOptions) => (query: string) => {
|
|
7
|
+
ws: WebSocket;
|
|
8
|
+
on: (e: (args: any) => void) => void;
|
|
9
|
+
off: (e: (args: any) => void) => void;
|
|
10
|
+
error: (e: (args: any) => void) => void;
|
|
11
|
+
open: (e: () => void) => void;
|
|
12
|
+
};
|
|
13
|
+
export declare const apiFetch: (options: fetchOptions) => (query: string, variables?: Record<string, unknown>) => Promise<Record<string, any> | undefined>;
|
|
14
|
+
export declare const InternalsBuildQuery: ({ ops, props, returns, options, scalars, }: {
|
|
15
|
+
props: AllTypesPropsType;
|
|
16
|
+
returns: ReturnTypesType;
|
|
17
|
+
ops: Operations;
|
|
18
|
+
options?: OperationOptions;
|
|
19
|
+
scalars?: ScalarDefinition;
|
|
20
|
+
}) => (k: string, o: InputValueType | VType, p?: string, root?: boolean, vars?: Array<{
|
|
21
|
+
name: string;
|
|
22
|
+
graphQLType: string;
|
|
23
|
+
}>) => string;
|
|
24
|
+
type UnionOverrideKeys<T, U> = Omit<T, keyof U> & U;
|
|
25
|
+
export declare const Thunder: <SCLR extends ScalarDefinition>(fn: FetchFunction, thunderGraphQLOptions?: ThunderGraphQLOptions<SCLR>) => <O extends keyof typeof Ops, OVERRIDESCLR extends SCLR, R extends keyof ValueTypes = GenericOperation<O>>(operation: O, graphqlOptions?: ThunderGraphQLOptions<OVERRIDESCLR>) => <Z extends ValueTypes[R]>(o: Z & { [P in keyof Z]: P extends keyof ValueTypes[R] ? Z[P] : never; }, ops?: OperationOptions & {
|
|
26
|
+
variables?: Record<string, unknown>;
|
|
27
|
+
}) => Promise<InputType<GraphQLTypes[R], Z, UnionOverrideKeys<SCLR, OVERRIDESCLR>>>;
|
|
28
|
+
export declare const Chain: (...options: chainOptions) => <O extends keyof typeof Ops, OVERRIDESCLR extends ScalarDefinition, R extends keyof ValueTypes = GenericOperation<O>>(operation: O, graphqlOptions?: ThunderGraphQLOptions<OVERRIDESCLR> | undefined) => <Z extends ValueTypes[R]>(o: Z & { [P in keyof Z]: P extends keyof ValueTypes[R] ? Z[P] : never; }, ops?: OperationOptions & {
|
|
29
|
+
variables?: Record<string, unknown>;
|
|
30
|
+
}) => Promise<InputType<GraphQLTypes[R], Z, UnionOverrideKeys<ScalarDefinition, OVERRIDESCLR>>>;
|
|
31
|
+
export declare const SubscriptionThunder: <SCLR extends ScalarDefinition>(fn: SubscriptionFunction, thunderGraphQLOptions?: ThunderGraphQLOptions<SCLR>) => <O extends keyof typeof Ops, OVERRIDESCLR extends SCLR, R extends keyof ValueTypes = GenericOperation<O>>(operation: O, graphqlOptions?: ThunderGraphQLOptions<OVERRIDESCLR>) => <Z extends ValueTypes[R]>(o: Z & { [P in keyof Z]: P extends keyof ValueTypes[R] ? Z[P] : never; }, ops?: OperationOptions & {
|
|
32
|
+
variables?: ExtractVariables<Z>;
|
|
33
|
+
}) => SubscriptionToGraphQL<Z, GraphQLTypes[R], UnionOverrideKeys<SCLR, OVERRIDESCLR>>;
|
|
34
|
+
export declare const Subscription: (...options: chainOptions) => <O extends keyof typeof Ops, OVERRIDESCLR extends ScalarDefinition, R extends keyof ValueTypes = GenericOperation<O>>(operation: O, graphqlOptions?: ThunderGraphQLOptions<OVERRIDESCLR> | undefined) => <Z extends ValueTypes[R]>(o: Z & { [P in keyof Z]: P extends keyof ValueTypes[R] ? Z[P] : never; }, ops?: (OperationOptions & {
|
|
35
|
+
variables?: ExtractVariables<Z> | undefined;
|
|
36
|
+
}) | undefined) => SubscriptionToGraphQL<Z, GraphQLTypes[R], UnionOverrideKeys<ScalarDefinition, OVERRIDESCLR>>;
|
|
37
|
+
export declare const Zeus: <Z extends ValueTypes[R], O extends keyof typeof Ops, R extends keyof ValueTypes = GenericOperation<O>>(operation: O, o: Z, ops?: {
|
|
38
|
+
operationOptions?: OperationOptions;
|
|
39
|
+
scalars?: ScalarDefinition;
|
|
40
|
+
}) => string;
|
|
41
|
+
export declare const ZeusSelect: <T>() => SelectionFunction<T>;
|
|
42
|
+
export declare const Selector: <T extends keyof ValueTypes>(key: T) => SelectionFunction<ValueTypes[T]>;
|
|
43
|
+
export declare const TypeFromSelector: <T extends keyof ValueTypes>(key: T) => SelectionFunction<ValueTypes[T]>;
|
|
44
|
+
export declare const Gql: <O extends keyof typeof Ops, OVERRIDESCLR extends ScalarDefinition, R extends keyof ValueTypes = GenericOperation<O>>(operation: O, graphqlOptions?: ThunderGraphQLOptions<OVERRIDESCLR> | undefined) => <Z extends ValueTypes[R]>(o: Z & { [P in keyof Z]: P extends keyof ValueTypes[R] ? Z[P] : never; }, ops?: OperationOptions & {
|
|
45
|
+
variables?: Record<string, unknown>;
|
|
46
|
+
}) => Promise<InputType<GraphQLTypes[R], Z, UnionOverrideKeys<ScalarDefinition, OVERRIDESCLR>>>;
|
|
47
|
+
export declare const ZeusScalars: SelectionFunction<ScalarCoders>;
|
|
48
|
+
type ScalarsSelector<T> = {
|
|
49
|
+
[X in Required<{
|
|
50
|
+
[P in keyof T]: T[P] extends number | string | undefined | boolean ? P : never;
|
|
51
|
+
}>[keyof T]]: true;
|
|
52
|
+
};
|
|
53
|
+
export declare const fields: <T extends keyof ModelTypes>(k: T) => ScalarsSelector<ModelTypes[T]>;
|
|
54
|
+
export declare const decodeScalarsInResponse: <O extends Operations>({ response, scalars, returns, ops, initialZeusQuery, initialOp, }: {
|
|
55
|
+
ops: O;
|
|
56
|
+
response: any;
|
|
57
|
+
returns: ReturnTypesType;
|
|
58
|
+
scalars?: Record<string, ScalarResolver | undefined>;
|
|
59
|
+
initialOp: keyof O;
|
|
60
|
+
initialZeusQuery: InputValueType | VType;
|
|
61
|
+
}) => any;
|
|
62
|
+
export declare const traverseResponse: ({ resolvers, scalarPaths, }: {
|
|
63
|
+
scalarPaths: {
|
|
64
|
+
[x: string]: `scalar.${string}`;
|
|
65
|
+
};
|
|
66
|
+
resolvers: {
|
|
67
|
+
[x: string]: ScalarResolver | undefined;
|
|
68
|
+
};
|
|
69
|
+
}) => (k: string, o: InputValueType | VType, p?: string[]) => unknown;
|
|
70
|
+
export type AllTypesPropsType = {
|
|
71
|
+
[x: string]: undefined | `scalar.${string}` | 'enum' | {
|
|
72
|
+
[x: string]: undefined | string | {
|
|
73
|
+
[x: string]: string | undefined;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
export type ReturnTypesType = {
|
|
78
|
+
[x: string]: {
|
|
79
|
+
[x: string]: string | undefined;
|
|
80
|
+
} | `scalar.${string}` | undefined;
|
|
81
|
+
};
|
|
82
|
+
export type InputValueType = {
|
|
83
|
+
[x: string]: undefined | boolean | string | number | [any, undefined | boolean | InputValueType] | InputValueType;
|
|
84
|
+
};
|
|
85
|
+
export type VType = undefined | boolean | string | number | [any, undefined | boolean | InputValueType] | InputValueType;
|
|
86
|
+
export type PlainType = boolean | number | string | null | undefined;
|
|
87
|
+
export type ZeusArgsType = PlainType | {
|
|
88
|
+
[x: string]: ZeusArgsType;
|
|
89
|
+
} | Array<ZeusArgsType>;
|
|
90
|
+
export type Operations = Record<string, string>;
|
|
91
|
+
export type VariableDefinition = {
|
|
92
|
+
[x: string]: unknown;
|
|
93
|
+
};
|
|
94
|
+
export declare const SEPARATOR = "|";
|
|
95
|
+
export type fetchOptions = Parameters<typeof fetch>;
|
|
96
|
+
type websocketOptions = typeof WebSocket extends new (...args: infer R) => WebSocket ? R : never;
|
|
97
|
+
export type chainOptions = [fetchOptions[0], fetchOptions[1] & {
|
|
98
|
+
websocket?: websocketOptions;
|
|
99
|
+
}] | [fetchOptions[0]];
|
|
100
|
+
export type FetchFunction = (query: string, variables?: Record<string, unknown>) => Promise<any>;
|
|
101
|
+
export type SubscriptionFunction = (query: string) => any;
|
|
102
|
+
type NotUndefined<T> = T extends undefined ? never : T;
|
|
103
|
+
export type ResolverType<F> = NotUndefined<F extends [infer ARGS, any] ? ARGS : undefined>;
|
|
104
|
+
export type OperationOptions = {
|
|
105
|
+
operationName?: string;
|
|
106
|
+
};
|
|
107
|
+
export type ScalarCoder = Record<string, (s: unknown) => string>;
|
|
108
|
+
export interface GraphQLResponse {
|
|
109
|
+
data?: Record<string, any>;
|
|
110
|
+
errors?: Array<{
|
|
111
|
+
message: string;
|
|
112
|
+
}>;
|
|
113
|
+
}
|
|
114
|
+
export declare class GraphQLError extends Error {
|
|
115
|
+
response: GraphQLResponse;
|
|
116
|
+
constructor(response: GraphQLResponse);
|
|
117
|
+
toString(): string;
|
|
118
|
+
}
|
|
119
|
+
export type GenericOperation<O> = O extends keyof typeof Ops ? typeof Ops[O] : never;
|
|
120
|
+
export type ThunderGraphQLOptions<SCLR extends ScalarDefinition> = {
|
|
121
|
+
scalars?: SCLR | ScalarCoders;
|
|
122
|
+
};
|
|
123
|
+
export declare const PrepareScalarPaths: ({ ops, returns }: {
|
|
124
|
+
returns: ReturnTypesType;
|
|
125
|
+
ops: Operations;
|
|
126
|
+
}) => (k: string, originalKey: string, o: InputValueType | VType, p?: string[], pOriginals?: string[], root?: boolean) => {
|
|
127
|
+
[x: string]: `scalar.${string}`;
|
|
128
|
+
} | undefined;
|
|
129
|
+
export declare const purifyGraphQLKey: (k: string) => string;
|
|
130
|
+
export declare const ResolveFromPath: (props: AllTypesPropsType, returns: ReturnTypesType, ops: Operations) => (path: string) => "enum" | "not" | `scalar.${string}`;
|
|
131
|
+
export declare const InternalArgsBuilt: ({ props, ops, returns, scalars, vars, }: {
|
|
132
|
+
props: AllTypesPropsType;
|
|
133
|
+
returns: ReturnTypesType;
|
|
134
|
+
ops: Operations;
|
|
135
|
+
scalars?: ScalarDefinition;
|
|
136
|
+
vars: Array<{
|
|
137
|
+
name: string;
|
|
138
|
+
graphQLType: string;
|
|
139
|
+
}>;
|
|
140
|
+
}) => (a: ZeusArgsType, p?: string, root?: boolean) => string;
|
|
141
|
+
export declare const resolverFor: <X, T extends keyof ResolverInputTypes, Z extends keyof ResolverInputTypes[T]>(type: T, field: Z, fn: (args: Required<ResolverInputTypes[T]>[Z] extends [infer Input, any] ? Input : any, source: any) => Z extends keyof ModelTypes[T] ? ModelTypes[T][Z] | Promise<ModelTypes[T][Z]> | X : never) => (args?: any, source?: any) => ReturnType<typeof fn>;
|
|
142
|
+
export type UnwrapPromise<T> = T extends Promise<infer R> ? R : T;
|
|
143
|
+
export type ZeusState<T extends (...args: any[]) => Promise<any>> = NonNullable<UnwrapPromise<ReturnType<T>>>;
|
|
144
|
+
export type ZeusHook<T extends (...args: any[]) => Record<string, (...args: any[]) => Promise<any>>, N extends keyof ReturnType<T>> = ZeusState<ReturnType<T>[N]>;
|
|
145
|
+
export type WithTypeNameValue<T> = T & {
|
|
146
|
+
__typename?: boolean;
|
|
147
|
+
__directives?: string;
|
|
148
|
+
};
|
|
149
|
+
export type AliasType<T> = WithTypeNameValue<T> & {
|
|
150
|
+
__alias?: Record<string, WithTypeNameValue<T>>;
|
|
151
|
+
};
|
|
152
|
+
type DeepAnify<T> = {
|
|
153
|
+
[P in keyof T]?: any;
|
|
154
|
+
};
|
|
155
|
+
type IsPayLoad<T> = T extends [any, infer PayLoad] ? PayLoad : T;
|
|
156
|
+
export type ScalarDefinition = Record<string, ScalarResolver>;
|
|
157
|
+
type IsScalar<S, SCLR extends ScalarDefinition> = S extends 'scalar' & {
|
|
158
|
+
name: infer T;
|
|
159
|
+
} ? T extends keyof SCLR ? SCLR[T]['decode'] extends (s: unknown) => unknown ? ReturnType<SCLR[T]['decode']> : unknown : unknown : S;
|
|
160
|
+
type IsArray<T, U, SCLR extends ScalarDefinition> = T extends Array<infer R> ? InputType<R, U, SCLR>[] : InputType<T, U, SCLR>;
|
|
161
|
+
type FlattenArray<T> = T extends Array<infer R> ? R : T;
|
|
162
|
+
type BaseZeusResolver = boolean | 1 | string | Variable<any, string>;
|
|
163
|
+
type IsInterfaced<SRC extends DeepAnify<DST>, DST, SCLR extends ScalarDefinition> = FlattenArray<SRC> extends ZEUS_INTERFACES | ZEUS_UNIONS ? {
|
|
164
|
+
[P in keyof SRC]: SRC[P] extends '__union' & infer R ? P extends keyof DST ? IsArray<R, '__typename' extends keyof DST ? DST[P] & {
|
|
165
|
+
__typename: true;
|
|
166
|
+
} : DST[P], SCLR> : IsArray<R, '__typename' extends keyof DST ? {
|
|
167
|
+
__typename: true;
|
|
168
|
+
} : Record<string, never>, SCLR> : never;
|
|
169
|
+
}[keyof SRC] & {
|
|
170
|
+
[P in keyof Omit<Pick<SRC, {
|
|
171
|
+
[P in keyof DST]: SRC[P] extends '__union' & infer R ? never : P;
|
|
172
|
+
}[keyof DST]>, '__typename'>]: IsPayLoad<DST[P]> extends BaseZeusResolver ? IsScalar<SRC[P], SCLR> : IsArray<SRC[P], DST[P], SCLR>;
|
|
173
|
+
} : {
|
|
174
|
+
[P in keyof Pick<SRC, keyof DST>]: IsPayLoad<DST[P]> extends BaseZeusResolver ? IsScalar<SRC[P], SCLR> : IsArray<SRC[P], DST[P], SCLR>;
|
|
175
|
+
};
|
|
176
|
+
export type MapType<SRC, DST, SCLR extends ScalarDefinition> = SRC extends DeepAnify<DST> ? IsInterfaced<SRC, DST, SCLR> : never;
|
|
177
|
+
export type InputType<SRC, DST, SCLR extends ScalarDefinition = {}> = IsPayLoad<DST> extends {
|
|
178
|
+
__alias: infer R;
|
|
179
|
+
} ? {
|
|
180
|
+
[P in keyof R]: MapType<SRC, R[P], SCLR>[keyof MapType<SRC, R[P], SCLR>];
|
|
181
|
+
} & MapType<SRC, Omit<IsPayLoad<DST>, '__alias'>, SCLR> : MapType<SRC, IsPayLoad<DST>, SCLR>;
|
|
182
|
+
export type SubscriptionToGraphQL<Z, T, SCLR extends ScalarDefinition> = {
|
|
183
|
+
ws: WebSocket;
|
|
184
|
+
on: (fn: (args: InputType<T, Z, SCLR>) => void) => void;
|
|
185
|
+
off: (fn: (e: {
|
|
186
|
+
data?: InputType<T, Z, SCLR>;
|
|
187
|
+
code?: number;
|
|
188
|
+
reason?: string;
|
|
189
|
+
message?: string;
|
|
190
|
+
}) => void) => void;
|
|
191
|
+
error: (fn: (e: {
|
|
192
|
+
data?: InputType<T, Z, SCLR>;
|
|
193
|
+
errors?: string[];
|
|
194
|
+
}) => void) => void;
|
|
195
|
+
open: () => void;
|
|
196
|
+
};
|
|
197
|
+
export type FromSelector<SELECTOR, NAME extends keyof GraphQLTypes, SCLR extends ScalarDefinition = {}> = InputType<GraphQLTypes[NAME], SELECTOR, SCLR>;
|
|
198
|
+
export type ScalarResolver = {
|
|
199
|
+
encode?: (s: unknown) => string;
|
|
200
|
+
decode?: (s: unknown) => unknown;
|
|
201
|
+
};
|
|
202
|
+
export type SelectionFunction<V> = <Z extends V>(t: Z & {
|
|
203
|
+
[P in keyof Z]: P extends keyof V ? Z[P] : never;
|
|
204
|
+
}) => Z;
|
|
205
|
+
type BuiltInVariableTypes = {
|
|
206
|
+
['String']: string;
|
|
207
|
+
['Int']: number;
|
|
208
|
+
['Float']: number;
|
|
209
|
+
['ID']: unknown;
|
|
210
|
+
['Boolean']: boolean;
|
|
211
|
+
};
|
|
212
|
+
type AllVariableTypes = keyof BuiltInVariableTypes | keyof ZEUS_VARIABLES;
|
|
213
|
+
type VariableRequired<T extends string> = `${T}!` | T | `[${T}]` | `[${T}]!` | `[${T}!]` | `[${T}!]!`;
|
|
214
|
+
type VR<T extends string> = VariableRequired<VariableRequired<T>>;
|
|
215
|
+
export type GraphQLVariableType = VR<AllVariableTypes>;
|
|
216
|
+
type ExtractVariableTypeString<T extends string> = T extends VR<infer R1> ? R1 extends VR<infer R2> ? R2 extends VR<infer R3> ? R3 extends VR<infer R4> ? R4 extends VR<infer R5> ? R5 : R4 : R3 : R2 : R1 : T;
|
|
217
|
+
type DecomposeType<T, Type> = T extends `[${infer R}]` ? Array<DecomposeType<R, Type>> | undefined : T extends `${infer R}!` ? NonNullable<DecomposeType<R, Type>> : Type | undefined;
|
|
218
|
+
type ExtractTypeFromGraphQLType<T extends string> = T extends keyof ZEUS_VARIABLES ? ZEUS_VARIABLES[T] : T extends keyof BuiltInVariableTypes ? BuiltInVariableTypes[T] : any;
|
|
219
|
+
export type GetVariableType<T extends string> = DecomposeType<T, ExtractTypeFromGraphQLType<ExtractVariableTypeString<T>>>;
|
|
220
|
+
type UndefinedKeys<T> = {
|
|
221
|
+
[K in keyof T]-?: T[K] extends NonNullable<T[K]> ? never : K;
|
|
222
|
+
}[keyof T];
|
|
223
|
+
type WithNullableKeys<T> = Pick<T, UndefinedKeys<T>>;
|
|
224
|
+
type WithNonNullableKeys<T> = Omit<T, UndefinedKeys<T>>;
|
|
225
|
+
type OptionalKeys<T> = {
|
|
226
|
+
[P in keyof T]?: T[P];
|
|
227
|
+
};
|
|
228
|
+
export type WithOptionalNullables<T> = OptionalKeys<WithNullableKeys<T>> & WithNonNullableKeys<T>;
|
|
229
|
+
export type Variable<T extends GraphQLVariableType, Name extends string> = {
|
|
230
|
+
' __zeus_name': Name;
|
|
231
|
+
' __zeus_type': T;
|
|
232
|
+
};
|
|
233
|
+
export type ExtractVariablesDeep<Query> = Query extends Variable<infer VType, infer VName> ? {
|
|
234
|
+
[key in VName]: GetVariableType<VType>;
|
|
235
|
+
} : Query extends string | number | boolean | Array<string | number | boolean> ? {} : UnionToIntersection<{
|
|
236
|
+
[K in keyof Query]: WithOptionalNullables<ExtractVariablesDeep<Query[K]>>;
|
|
237
|
+
}[keyof Query]>;
|
|
238
|
+
export type ExtractVariables<Query> = Query extends Variable<infer VType, infer VName> ? {
|
|
239
|
+
[key in VName]: GetVariableType<VType>;
|
|
240
|
+
} : Query extends [infer Inputs, infer Outputs] ? ExtractVariablesDeep<Inputs> & ExtractVariables<Outputs> : Query extends string | number | boolean | Array<string | number | boolean> ? {} : UnionToIntersection<{
|
|
241
|
+
[K in keyof Query]: WithOptionalNullables<ExtractVariables<Query[K]>>;
|
|
242
|
+
}[keyof Query]>;
|
|
243
|
+
type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never;
|
|
244
|
+
export declare const START_VAR_NAME = "$ZEUS_VAR";
|
|
245
|
+
export declare const GRAPHQL_TYPE_SEPARATOR = "__$GRAPHQL__";
|
|
246
|
+
export declare const $: <Type extends GraphQLVariableType, Name extends string>(name: Name, graphqlType: Type) => Variable<Type, Name>;
|
|
247
|
+
type ZEUS_INTERFACES = GraphQLTypes["Node"];
|
|
248
|
+
export type ScalarCoders = {
|
|
249
|
+
BigInt?: ScalarResolver;
|
|
250
|
+
};
|
|
251
|
+
type ZEUS_UNIONS = never;
|
|
252
|
+
export type ValueTypes = {
|
|
253
|
+
["Languages"]: Languages;
|
|
254
|
+
["Formality"]: Formality;
|
|
255
|
+
["TranslateInput"]: {
|
|
256
|
+
content: string | Variable<any, string>;
|
|
257
|
+
languages: Array<ValueTypes["Languages"]> | Variable<any, string>;
|
|
258
|
+
formality?: ValueTypes["Formality"] | undefined | null | Variable<any, string>;
|
|
259
|
+
context?: string | undefined | null | Variable<any, string>;
|
|
260
|
+
inputLanguage?: ValueTypes["Languages"] | undefined | null | Variable<any, string>;
|
|
261
|
+
format?: ValueTypes["Format"] | undefined | null | Variable<any, string>;
|
|
262
|
+
};
|
|
263
|
+
["ApiMutation"]: AliasType<{
|
|
264
|
+
translate?: [{
|
|
265
|
+
translate: ValueTypes["TranslateInput"] | Variable<any, string>;
|
|
266
|
+
}, ValueTypes["TranslationResponse"]];
|
|
267
|
+
__typename?: boolean | `@${string}`;
|
|
268
|
+
}>;
|
|
269
|
+
["ApiKey"]: AliasType<{
|
|
270
|
+
name?: boolean | `@${string}`;
|
|
271
|
+
value?: boolean | `@${string}`;
|
|
272
|
+
createdAt?: boolean | `@${string}`;
|
|
273
|
+
_id?: boolean | `@${string}`;
|
|
274
|
+
__typename?: boolean | `@${string}`;
|
|
275
|
+
}>;
|
|
276
|
+
["TranslationSingleResponse"]: AliasType<{
|
|
277
|
+
language?: boolean | `@${string}`;
|
|
278
|
+
result?: boolean | `@${string}`;
|
|
279
|
+
consumedTokens?: boolean | `@${string}`;
|
|
280
|
+
__typename?: boolean | `@${string}`;
|
|
281
|
+
}>;
|
|
282
|
+
["TranslationResponse"]: AliasType<{
|
|
283
|
+
results?: ValueTypes["TranslationSingleResponse"];
|
|
284
|
+
__typename?: boolean | `@${string}`;
|
|
285
|
+
}>;
|
|
286
|
+
["CreateApiKey"]: {
|
|
287
|
+
name: string | Variable<any, string>;
|
|
288
|
+
};
|
|
289
|
+
["Node"]: AliasType<{
|
|
290
|
+
createdAt?: boolean | `@${string}`;
|
|
291
|
+
_id?: boolean | `@${string}`;
|
|
292
|
+
['...on ApiKey']?: Omit<ValueTypes["ApiKey"], keyof ValueTypes["Node"]>;
|
|
293
|
+
['...on StoredTranslation']?: Omit<ValueTypes["StoredTranslation"], keyof ValueTypes["Node"]>;
|
|
294
|
+
__typename?: boolean | `@${string}`;
|
|
295
|
+
}>;
|
|
296
|
+
["StoredTranslation"]: AliasType<{
|
|
297
|
+
jsonContent?: boolean | `@${string}`;
|
|
298
|
+
results?: ValueTypes["TranslationSingleResponse"];
|
|
299
|
+
createdAt?: boolean | `@${string}`;
|
|
300
|
+
_id?: boolean | `@${string}`;
|
|
301
|
+
name?: boolean | `@${string}`;
|
|
302
|
+
inputSize?: boolean | `@${string}`;
|
|
303
|
+
consumedTokens?: boolean | `@${string}`;
|
|
304
|
+
__typename?: boolean | `@${string}`;
|
|
305
|
+
}>;
|
|
306
|
+
["PageInput"]: {
|
|
307
|
+
limit: number | Variable<any, string>;
|
|
308
|
+
start?: number | undefined | null | Variable<any, string>;
|
|
309
|
+
};
|
|
310
|
+
["PageInfo"]: AliasType<{
|
|
311
|
+
hasNext?: boolean | `@${string}`;
|
|
312
|
+
total?: boolean | `@${string}`;
|
|
313
|
+
__typename?: boolean | `@${string}`;
|
|
314
|
+
}>;
|
|
315
|
+
["StoredTranslationConnection"]: AliasType<{
|
|
316
|
+
items?: ValueTypes["StoredTranslation"];
|
|
317
|
+
pageInfo?: ValueTypes["PageInfo"];
|
|
318
|
+
__typename?: boolean | `@${string}`;
|
|
319
|
+
}>;
|
|
320
|
+
["BigInt"]: unknown;
|
|
321
|
+
["Format"]: Format;
|
|
322
|
+
["Mutation"]: AliasType<{
|
|
323
|
+
webhook?: boolean | `@${string}`;
|
|
324
|
+
api?: ValueTypes["ApiMutation"];
|
|
325
|
+
users?: ValueTypes["UsersMutation"];
|
|
326
|
+
__typename?: boolean | `@${string}`;
|
|
327
|
+
}>;
|
|
328
|
+
["AuthorizedUserMutation"]: AliasType<{
|
|
329
|
+
createApiKey?: [{
|
|
330
|
+
apiKey: ValueTypes["CreateApiKey"] | Variable<any, string>;
|
|
331
|
+
}, boolean | `@${string}`];
|
|
332
|
+
revokeApiKey?: [{
|
|
333
|
+
_id: string | Variable<any, string>;
|
|
334
|
+
}, boolean | `@${string}`];
|
|
335
|
+
translate?: [{
|
|
336
|
+
translate: ValueTypes["TranslateInput"] | Variable<any, string>;
|
|
337
|
+
}, ValueTypes["TranslationResponse"]];
|
|
338
|
+
changePasswordWhenLogged?: [{
|
|
339
|
+
changePasswordData: ValueTypes["ChangePasswordWhenLoggedInput"] | Variable<any, string>;
|
|
340
|
+
}, ValueTypes["ChangePasswordWhenLoggedResponse"]];
|
|
341
|
+
editUser?: [{
|
|
342
|
+
updatedUser: ValueTypes["UpdateUserInput"] | Variable<any, string>;
|
|
343
|
+
}, ValueTypes["EditUserResponse"]];
|
|
344
|
+
integrateSocialAccount?: [{
|
|
345
|
+
userData: ValueTypes["SimpleUserInput"] | Variable<any, string>;
|
|
346
|
+
}, ValueTypes["IntegrateSocialAccountResponse"]];
|
|
347
|
+
__typename?: boolean | `@${string}`;
|
|
348
|
+
}>;
|
|
349
|
+
["AuthorizedUserQuery"]: AliasType<{
|
|
350
|
+
apiKeys?: ValueTypes["ApiKey"];
|
|
351
|
+
translations?: [{
|
|
352
|
+
page: ValueTypes["PageInput"] | Variable<any, string>;
|
|
353
|
+
}, ValueTypes["StoredTranslationConnection"]];
|
|
354
|
+
me?: ValueTypes["User"];
|
|
355
|
+
__typename?: boolean | `@${string}`;
|
|
356
|
+
}>;
|
|
357
|
+
["User"]: AliasType<{
|
|
358
|
+
_id?: boolean | `@${string}`;
|
|
359
|
+
consumedTokens?: boolean | `@${string}`;
|
|
360
|
+
username?: boolean | `@${string}`;
|
|
361
|
+
emailConfirmed?: boolean | `@${string}`;
|
|
362
|
+
createdAt?: boolean | `@${string}`;
|
|
363
|
+
fullName?: boolean | `@${string}`;
|
|
364
|
+
avatarUrl?: boolean | `@${string}`;
|
|
365
|
+
__typename?: boolean | `@${string}`;
|
|
366
|
+
}>;
|
|
367
|
+
["Query"]: AliasType<{
|
|
368
|
+
users?: ValueTypes["UsersQuery"];
|
|
369
|
+
__typename?: boolean | `@${string}`;
|
|
370
|
+
}>;
|
|
371
|
+
["UsersQuery"]: AliasType<{
|
|
372
|
+
user?: ValueTypes["AuthorizedUserQuery"];
|
|
373
|
+
publicUsers?: ValueTypes["PublicUsersQuery"];
|
|
374
|
+
__typename?: boolean | `@${string}`;
|
|
375
|
+
}>;
|
|
376
|
+
["UsersMutation"]: AliasType<{
|
|
377
|
+
user?: ValueTypes["AuthorizedUserMutation"];
|
|
378
|
+
publicUsers?: ValueTypes["PublicUsersMutation"];
|
|
379
|
+
__typename?: boolean | `@${string}`;
|
|
380
|
+
}>;
|
|
381
|
+
["PublicUsersQuery"]: AliasType<{
|
|
382
|
+
login?: ValueTypes["LoginQuery"];
|
|
383
|
+
getGoogleOAuthLink?: [{
|
|
384
|
+
setup: ValueTypes["GetOAuthInput"] | Variable<any, string>;
|
|
385
|
+
}, boolean | `@${string}`];
|
|
386
|
+
getMicrosoftOAuthLink?: [{
|
|
387
|
+
setup: ValueTypes["GetOAuthInput"] | Variable<any, string>;
|
|
388
|
+
}, boolean | `@${string}`];
|
|
389
|
+
getGithubOAuthLink?: [{
|
|
390
|
+
setup: ValueTypes["GetOAuthInput"] | Variable<any, string>;
|
|
391
|
+
}, boolean | `@${string}`];
|
|
392
|
+
getAppleOAuthLink?: [{
|
|
393
|
+
setup: ValueTypes["GetOAuthInput"] | Variable<any, string>;
|
|
394
|
+
}, boolean | `@${string}`];
|
|
395
|
+
requestForForgotPassword?: [{
|
|
396
|
+
username: string | Variable<any, string>;
|
|
397
|
+
}, boolean | `@${string}`];
|
|
398
|
+
__typename?: boolean | `@${string}`;
|
|
399
|
+
}>;
|
|
400
|
+
["GetOAuthInput"]: {
|
|
401
|
+
scopes?: Array<string> | undefined | null | Variable<any, string>;
|
|
402
|
+
state?: string | undefined | null | Variable<any, string>;
|
|
403
|
+
redirectUri?: string | undefined | null | Variable<any, string>;
|
|
404
|
+
};
|
|
405
|
+
["PublicUsersMutation"]: AliasType<{
|
|
406
|
+
register?: [{
|
|
407
|
+
user: ValueTypes["RegisterInput"] | Variable<any, string>;
|
|
408
|
+
}, ValueTypes["RegisterResponse"]];
|
|
409
|
+
verifyEmail?: [{
|
|
410
|
+
verifyData: ValueTypes["VerifyEmailInput"] | Variable<any, string>;
|
|
411
|
+
}, ValueTypes["VerifyEmailResponse"]];
|
|
412
|
+
changePasswordWithToken?: [{
|
|
413
|
+
token: ValueTypes["ChangePasswordWithTokenInput"] | Variable<any, string>;
|
|
414
|
+
}, ValueTypes["ChangePasswordWithTokenResponse"]];
|
|
415
|
+
generateOAuthToken?: [{
|
|
416
|
+
tokenData: ValueTypes["GenerateOAuthTokenInput"] | Variable<any, string>;
|
|
417
|
+
}, ValueTypes["GenerateOAuthTokenResponse"]];
|
|
418
|
+
__typename?: boolean | `@${string}`;
|
|
419
|
+
}>;
|
|
420
|
+
["EditUserError"]: EditUserError;
|
|
421
|
+
["EditUserResponse"]: AliasType<{
|
|
422
|
+
result?: boolean | `@${string}`;
|
|
423
|
+
hasError?: boolean | `@${string}`;
|
|
424
|
+
__typename?: boolean | `@${string}`;
|
|
425
|
+
}>;
|
|
426
|
+
["VerifyEmailError"]: VerifyEmailError;
|
|
427
|
+
["VerifyEmailResponse"]: AliasType<{
|
|
428
|
+
result?: boolean | `@${string}`;
|
|
429
|
+
hasError?: boolean | `@${string}`;
|
|
430
|
+
__typename?: boolean | `@${string}`;
|
|
431
|
+
}>;
|
|
432
|
+
["ChangePasswordWhenLoggedError"]: ChangePasswordWhenLoggedError;
|
|
433
|
+
["ChangePasswordWhenLoggedResponse"]: AliasType<{
|
|
434
|
+
result?: boolean | `@${string}`;
|
|
435
|
+
hasError?: boolean | `@${string}`;
|
|
436
|
+
__typename?: boolean | `@${string}`;
|
|
437
|
+
}>;
|
|
438
|
+
["ChangePasswordWithTokenError"]: ChangePasswordWithTokenError;
|
|
439
|
+
["ChangePasswordWithTokenResponse"]: AliasType<{
|
|
440
|
+
result?: boolean | `@${string}`;
|
|
441
|
+
hasError?: boolean | `@${string}`;
|
|
442
|
+
__typename?: boolean | `@${string}`;
|
|
443
|
+
}>;
|
|
444
|
+
["SquashAccountsError"]: SquashAccountsError;
|
|
445
|
+
["IntegrateSocialAccountError"]: IntegrateSocialAccountError;
|
|
446
|
+
["IntegrateSocialAccountResponse"]: AliasType<{
|
|
447
|
+
result?: boolean | `@${string}`;
|
|
448
|
+
hasError?: boolean | `@${string}`;
|
|
449
|
+
__typename?: boolean | `@${string}`;
|
|
450
|
+
}>;
|
|
451
|
+
["GenerateOAuthTokenError"]: GenerateOAuthTokenError;
|
|
452
|
+
["GenerateOAuthTokenResponse"]: AliasType<{
|
|
453
|
+
result?: boolean | `@${string}`;
|
|
454
|
+
hasError?: boolean | `@${string}`;
|
|
455
|
+
__typename?: boolean | `@${string}`;
|
|
456
|
+
}>;
|
|
457
|
+
["UpdateUserInput"]: {
|
|
458
|
+
username?: string | undefined | null | Variable<any, string>;
|
|
459
|
+
fullName?: string | undefined | null | Variable<any, string>;
|
|
460
|
+
avatarUrl?: string | undefined | null | Variable<any, string>;
|
|
461
|
+
};
|
|
462
|
+
["GenerateOAuthTokenInput"]: {
|
|
463
|
+
social: ValueTypes["SocialKind"] | Variable<any, string>;
|
|
464
|
+
code: string | Variable<any, string>;
|
|
465
|
+
};
|
|
466
|
+
["SimpleUserInput"]: {
|
|
467
|
+
username: string | Variable<any, string>;
|
|
468
|
+
password: string | Variable<any, string>;
|
|
469
|
+
};
|
|
470
|
+
["LoginInput"]: {
|
|
471
|
+
username: string | Variable<any, string>;
|
|
472
|
+
password: string | Variable<any, string>;
|
|
473
|
+
};
|
|
474
|
+
["VerifyEmailInput"]: {
|
|
475
|
+
token: string | Variable<any, string>;
|
|
476
|
+
};
|
|
477
|
+
["ChangePasswordWithTokenInput"]: {
|
|
478
|
+
username: string | Variable<any, string>;
|
|
479
|
+
forgotToken: string | Variable<any, string>;
|
|
480
|
+
newPassword: string | Variable<any, string>;
|
|
481
|
+
};
|
|
482
|
+
["ChangePasswordWhenLoggedInput"]: {
|
|
483
|
+
oldPassword: string | Variable<any, string>;
|
|
484
|
+
newPassword: string | Variable<any, string>;
|
|
485
|
+
};
|
|
486
|
+
["RegisterInput"]: {
|
|
487
|
+
username: string | Variable<any, string>;
|
|
488
|
+
password: string | Variable<any, string>;
|
|
489
|
+
fullName?: string | undefined | null | Variable<any, string>;
|
|
490
|
+
invitationToken?: string | undefined | null | Variable<any, string>;
|
|
491
|
+
};
|
|
492
|
+
["SocialKind"]: SocialKind;
|
|
493
|
+
["LoginQuery"]: AliasType<{
|
|
494
|
+
password?: [{
|
|
495
|
+
user: ValueTypes["LoginInput"] | Variable<any, string>;
|
|
496
|
+
}, ValueTypes["LoginResponse"]];
|
|
497
|
+
provider?: [{
|
|
498
|
+
params: ValueTypes["ProviderLoginInput"] | Variable<any, string>;
|
|
499
|
+
}, ValueTypes["ProviderLoginQuery"]];
|
|
500
|
+
refreshToken?: [{
|
|
501
|
+
refreshToken: string | Variable<any, string>;
|
|
502
|
+
}, boolean | `@${string}`];
|
|
503
|
+
__typename?: boolean | `@${string}`;
|
|
504
|
+
}>;
|
|
505
|
+
["ProviderLoginInput"]: {
|
|
506
|
+
code: string | Variable<any, string>;
|
|
507
|
+
redirectUri: string | Variable<any, string>;
|
|
508
|
+
};
|
|
509
|
+
["ProviderLoginQuery"]: AliasType<{
|
|
510
|
+
apple?: ValueTypes["ProviderResponse"];
|
|
511
|
+
google?: ValueTypes["ProviderResponse"];
|
|
512
|
+
github?: ValueTypes["ProviderResponse"];
|
|
513
|
+
microsoft?: ValueTypes["ProviderResponse"];
|
|
514
|
+
__typename?: boolean | `@${string}`;
|
|
515
|
+
}>;
|
|
516
|
+
["RegisterErrors"]: RegisterErrors;
|
|
517
|
+
["LoginErrors"]: LoginErrors;
|
|
518
|
+
["ProviderErrors"]: ProviderErrors;
|
|
519
|
+
["RegisterResponse"]: AliasType<{
|
|
520
|
+
registered?: boolean | `@${string}`;
|
|
521
|
+
hasError?: boolean | `@${string}`;
|
|
522
|
+
__typename?: boolean | `@${string}`;
|
|
523
|
+
}>;
|
|
524
|
+
["LoginResponse"]: AliasType<{
|
|
525
|
+
login?: boolean | `@${string}`;
|
|
526
|
+
accessToken?: boolean | `@${string}`;
|
|
527
|
+
refreshToken?: boolean | `@${string}`;
|
|
528
|
+
hasError?: boolean | `@${string}`;
|
|
529
|
+
__typename?: boolean | `@${string}`;
|
|
530
|
+
}>;
|
|
531
|
+
["ProviderResponse"]: AliasType<{
|
|
532
|
+
jwt?: boolean | `@${string}`;
|
|
533
|
+
accessToken?: boolean | `@${string}`;
|
|
534
|
+
refreshToken?: boolean | `@${string}`;
|
|
535
|
+
providerAccessToken?: boolean | `@${string}`;
|
|
536
|
+
register?: boolean | `@${string}`;
|
|
537
|
+
hasError?: boolean | `@${string}`;
|
|
538
|
+
__typename?: boolean | `@${string}`;
|
|
539
|
+
}>;
|
|
540
|
+
};
|
|
541
|
+
export type ResolverInputTypes = {
|
|
542
|
+
["Languages"]: Languages;
|
|
543
|
+
["Formality"]: Formality;
|
|
544
|
+
["TranslateInput"]: {
|
|
545
|
+
content: string;
|
|
546
|
+
languages: Array<ResolverInputTypes["Languages"]>;
|
|
547
|
+
formality?: ResolverInputTypes["Formality"] | undefined | null;
|
|
548
|
+
context?: string | undefined | null;
|
|
549
|
+
inputLanguage?: ResolverInputTypes["Languages"] | undefined | null;
|
|
550
|
+
format?: ResolverInputTypes["Format"] | undefined | null;
|
|
551
|
+
};
|
|
552
|
+
["ApiMutation"]: AliasType<{
|
|
553
|
+
translate?: [{
|
|
554
|
+
translate: ResolverInputTypes["TranslateInput"];
|
|
555
|
+
}, ResolverInputTypes["TranslationResponse"]];
|
|
556
|
+
__typename?: boolean | `@${string}`;
|
|
557
|
+
}>;
|
|
558
|
+
["ApiKey"]: AliasType<{
|
|
559
|
+
name?: boolean | `@${string}`;
|
|
560
|
+
value?: boolean | `@${string}`;
|
|
561
|
+
createdAt?: boolean | `@${string}`;
|
|
562
|
+
_id?: boolean | `@${string}`;
|
|
563
|
+
__typename?: boolean | `@${string}`;
|
|
564
|
+
}>;
|
|
565
|
+
["TranslationSingleResponse"]: AliasType<{
|
|
566
|
+
language?: boolean | `@${string}`;
|
|
567
|
+
result?: boolean | `@${string}`;
|
|
568
|
+
consumedTokens?: boolean | `@${string}`;
|
|
569
|
+
__typename?: boolean | `@${string}`;
|
|
570
|
+
}>;
|
|
571
|
+
["TranslationResponse"]: AliasType<{
|
|
572
|
+
results?: ResolverInputTypes["TranslationSingleResponse"];
|
|
573
|
+
__typename?: boolean | `@${string}`;
|
|
574
|
+
}>;
|
|
575
|
+
["CreateApiKey"]: {
|
|
576
|
+
name: string;
|
|
577
|
+
};
|
|
578
|
+
["Node"]: AliasType<{
|
|
579
|
+
createdAt?: boolean | `@${string}`;
|
|
580
|
+
_id?: boolean | `@${string}`;
|
|
581
|
+
['...on ApiKey']?: Omit<ResolverInputTypes["ApiKey"], keyof ResolverInputTypes["Node"]>;
|
|
582
|
+
['...on StoredTranslation']?: Omit<ResolverInputTypes["StoredTranslation"], keyof ResolverInputTypes["Node"]>;
|
|
583
|
+
__typename?: boolean | `@${string}`;
|
|
584
|
+
}>;
|
|
585
|
+
["StoredTranslation"]: AliasType<{
|
|
586
|
+
jsonContent?: boolean | `@${string}`;
|
|
587
|
+
results?: ResolverInputTypes["TranslationSingleResponse"];
|
|
588
|
+
createdAt?: boolean | `@${string}`;
|
|
589
|
+
_id?: boolean | `@${string}`;
|
|
590
|
+
name?: boolean | `@${string}`;
|
|
591
|
+
inputSize?: boolean | `@${string}`;
|
|
592
|
+
consumedTokens?: boolean | `@${string}`;
|
|
593
|
+
__typename?: boolean | `@${string}`;
|
|
594
|
+
}>;
|
|
595
|
+
["PageInput"]: {
|
|
596
|
+
limit: number;
|
|
597
|
+
start?: number | undefined | null;
|
|
598
|
+
};
|
|
599
|
+
["PageInfo"]: AliasType<{
|
|
600
|
+
hasNext?: boolean | `@${string}`;
|
|
601
|
+
total?: boolean | `@${string}`;
|
|
602
|
+
__typename?: boolean | `@${string}`;
|
|
603
|
+
}>;
|
|
604
|
+
["StoredTranslationConnection"]: AliasType<{
|
|
605
|
+
items?: ResolverInputTypes["StoredTranslation"];
|
|
606
|
+
pageInfo?: ResolverInputTypes["PageInfo"];
|
|
607
|
+
__typename?: boolean | `@${string}`;
|
|
608
|
+
}>;
|
|
609
|
+
["BigInt"]: unknown;
|
|
610
|
+
["Format"]: Format;
|
|
611
|
+
["Mutation"]: AliasType<{
|
|
612
|
+
webhook?: boolean | `@${string}`;
|
|
613
|
+
api?: ResolverInputTypes["ApiMutation"];
|
|
614
|
+
users?: ResolverInputTypes["UsersMutation"];
|
|
615
|
+
__typename?: boolean | `@${string}`;
|
|
616
|
+
}>;
|
|
617
|
+
["AuthorizedUserMutation"]: AliasType<{
|
|
618
|
+
createApiKey?: [{
|
|
619
|
+
apiKey: ResolverInputTypes["CreateApiKey"];
|
|
620
|
+
}, boolean | `@${string}`];
|
|
621
|
+
revokeApiKey?: [{
|
|
622
|
+
_id: string;
|
|
623
|
+
}, boolean | `@${string}`];
|
|
624
|
+
translate?: [{
|
|
625
|
+
translate: ResolverInputTypes["TranslateInput"];
|
|
626
|
+
}, ResolverInputTypes["TranslationResponse"]];
|
|
627
|
+
changePasswordWhenLogged?: [{
|
|
628
|
+
changePasswordData: ResolverInputTypes["ChangePasswordWhenLoggedInput"];
|
|
629
|
+
}, ResolverInputTypes["ChangePasswordWhenLoggedResponse"]];
|
|
630
|
+
editUser?: [{
|
|
631
|
+
updatedUser: ResolverInputTypes["UpdateUserInput"];
|
|
632
|
+
}, ResolverInputTypes["EditUserResponse"]];
|
|
633
|
+
integrateSocialAccount?: [{
|
|
634
|
+
userData: ResolverInputTypes["SimpleUserInput"];
|
|
635
|
+
}, ResolverInputTypes["IntegrateSocialAccountResponse"]];
|
|
636
|
+
__typename?: boolean | `@${string}`;
|
|
637
|
+
}>;
|
|
638
|
+
["AuthorizedUserQuery"]: AliasType<{
|
|
639
|
+
apiKeys?: ResolverInputTypes["ApiKey"];
|
|
640
|
+
translations?: [{
|
|
641
|
+
page: ResolverInputTypes["PageInput"];
|
|
642
|
+
}, ResolverInputTypes["StoredTranslationConnection"]];
|
|
643
|
+
me?: ResolverInputTypes["User"];
|
|
644
|
+
__typename?: boolean | `@${string}`;
|
|
645
|
+
}>;
|
|
646
|
+
["User"]: AliasType<{
|
|
647
|
+
_id?: boolean | `@${string}`;
|
|
648
|
+
consumedTokens?: boolean | `@${string}`;
|
|
649
|
+
username?: boolean | `@${string}`;
|
|
650
|
+
emailConfirmed?: boolean | `@${string}`;
|
|
651
|
+
createdAt?: boolean | `@${string}`;
|
|
652
|
+
fullName?: boolean | `@${string}`;
|
|
653
|
+
avatarUrl?: boolean | `@${string}`;
|
|
654
|
+
__typename?: boolean | `@${string}`;
|
|
655
|
+
}>;
|
|
656
|
+
["Query"]: AliasType<{
|
|
657
|
+
users?: ResolverInputTypes["UsersQuery"];
|
|
658
|
+
__typename?: boolean | `@${string}`;
|
|
659
|
+
}>;
|
|
660
|
+
["UsersQuery"]: AliasType<{
|
|
661
|
+
user?: ResolverInputTypes["AuthorizedUserQuery"];
|
|
662
|
+
publicUsers?: ResolverInputTypes["PublicUsersQuery"];
|
|
663
|
+
__typename?: boolean | `@${string}`;
|
|
664
|
+
}>;
|
|
665
|
+
["UsersMutation"]: AliasType<{
|
|
666
|
+
user?: ResolverInputTypes["AuthorizedUserMutation"];
|
|
667
|
+
publicUsers?: ResolverInputTypes["PublicUsersMutation"];
|
|
668
|
+
__typename?: boolean | `@${string}`;
|
|
669
|
+
}>;
|
|
670
|
+
["PublicUsersQuery"]: AliasType<{
|
|
671
|
+
login?: ResolverInputTypes["LoginQuery"];
|
|
672
|
+
getGoogleOAuthLink?: [{
|
|
673
|
+
setup: ResolverInputTypes["GetOAuthInput"];
|
|
674
|
+
}, boolean | `@${string}`];
|
|
675
|
+
getMicrosoftOAuthLink?: [{
|
|
676
|
+
setup: ResolverInputTypes["GetOAuthInput"];
|
|
677
|
+
}, boolean | `@${string}`];
|
|
678
|
+
getGithubOAuthLink?: [{
|
|
679
|
+
setup: ResolverInputTypes["GetOAuthInput"];
|
|
680
|
+
}, boolean | `@${string}`];
|
|
681
|
+
getAppleOAuthLink?: [{
|
|
682
|
+
setup: ResolverInputTypes["GetOAuthInput"];
|
|
683
|
+
}, boolean | `@${string}`];
|
|
684
|
+
requestForForgotPassword?: [{
|
|
685
|
+
username: string;
|
|
686
|
+
}, boolean | `@${string}`];
|
|
687
|
+
__typename?: boolean | `@${string}`;
|
|
688
|
+
}>;
|
|
689
|
+
["GetOAuthInput"]: {
|
|
690
|
+
scopes?: Array<string> | undefined | null;
|
|
691
|
+
state?: string | undefined | null;
|
|
692
|
+
redirectUri?: string | undefined | null;
|
|
693
|
+
};
|
|
694
|
+
["PublicUsersMutation"]: AliasType<{
|
|
695
|
+
register?: [{
|
|
696
|
+
user: ResolverInputTypes["RegisterInput"];
|
|
697
|
+
}, ResolverInputTypes["RegisterResponse"]];
|
|
698
|
+
verifyEmail?: [{
|
|
699
|
+
verifyData: ResolverInputTypes["VerifyEmailInput"];
|
|
700
|
+
}, ResolverInputTypes["VerifyEmailResponse"]];
|
|
701
|
+
changePasswordWithToken?: [{
|
|
702
|
+
token: ResolverInputTypes["ChangePasswordWithTokenInput"];
|
|
703
|
+
}, ResolverInputTypes["ChangePasswordWithTokenResponse"]];
|
|
704
|
+
generateOAuthToken?: [{
|
|
705
|
+
tokenData: ResolverInputTypes["GenerateOAuthTokenInput"];
|
|
706
|
+
}, ResolverInputTypes["GenerateOAuthTokenResponse"]];
|
|
707
|
+
__typename?: boolean | `@${string}`;
|
|
708
|
+
}>;
|
|
709
|
+
["EditUserError"]: EditUserError;
|
|
710
|
+
["EditUserResponse"]: AliasType<{
|
|
711
|
+
result?: boolean | `@${string}`;
|
|
712
|
+
hasError?: boolean | `@${string}`;
|
|
713
|
+
__typename?: boolean | `@${string}`;
|
|
714
|
+
}>;
|
|
715
|
+
["VerifyEmailError"]: VerifyEmailError;
|
|
716
|
+
["VerifyEmailResponse"]: AliasType<{
|
|
717
|
+
result?: boolean | `@${string}`;
|
|
718
|
+
hasError?: boolean | `@${string}`;
|
|
719
|
+
__typename?: boolean | `@${string}`;
|
|
720
|
+
}>;
|
|
721
|
+
["ChangePasswordWhenLoggedError"]: ChangePasswordWhenLoggedError;
|
|
722
|
+
["ChangePasswordWhenLoggedResponse"]: AliasType<{
|
|
723
|
+
result?: boolean | `@${string}`;
|
|
724
|
+
hasError?: boolean | `@${string}`;
|
|
725
|
+
__typename?: boolean | `@${string}`;
|
|
726
|
+
}>;
|
|
727
|
+
["ChangePasswordWithTokenError"]: ChangePasswordWithTokenError;
|
|
728
|
+
["ChangePasswordWithTokenResponse"]: AliasType<{
|
|
729
|
+
result?: boolean | `@${string}`;
|
|
730
|
+
hasError?: boolean | `@${string}`;
|
|
731
|
+
__typename?: boolean | `@${string}`;
|
|
732
|
+
}>;
|
|
733
|
+
["SquashAccountsError"]: SquashAccountsError;
|
|
734
|
+
["IntegrateSocialAccountError"]: IntegrateSocialAccountError;
|
|
735
|
+
["IntegrateSocialAccountResponse"]: AliasType<{
|
|
736
|
+
result?: boolean | `@${string}`;
|
|
737
|
+
hasError?: boolean | `@${string}`;
|
|
738
|
+
__typename?: boolean | `@${string}`;
|
|
739
|
+
}>;
|
|
740
|
+
["GenerateOAuthTokenError"]: GenerateOAuthTokenError;
|
|
741
|
+
["GenerateOAuthTokenResponse"]: AliasType<{
|
|
742
|
+
result?: boolean | `@${string}`;
|
|
743
|
+
hasError?: boolean | `@${string}`;
|
|
744
|
+
__typename?: boolean | `@${string}`;
|
|
745
|
+
}>;
|
|
746
|
+
["UpdateUserInput"]: {
|
|
747
|
+
username?: string | undefined | null;
|
|
748
|
+
fullName?: string | undefined | null;
|
|
749
|
+
avatarUrl?: string | undefined | null;
|
|
750
|
+
};
|
|
751
|
+
["GenerateOAuthTokenInput"]: {
|
|
752
|
+
social: ResolverInputTypes["SocialKind"];
|
|
753
|
+
code: string;
|
|
754
|
+
};
|
|
755
|
+
["SimpleUserInput"]: {
|
|
756
|
+
username: string;
|
|
757
|
+
password: string;
|
|
758
|
+
};
|
|
759
|
+
["LoginInput"]: {
|
|
760
|
+
username: string;
|
|
761
|
+
password: string;
|
|
762
|
+
};
|
|
763
|
+
["VerifyEmailInput"]: {
|
|
764
|
+
token: string;
|
|
765
|
+
};
|
|
766
|
+
["ChangePasswordWithTokenInput"]: {
|
|
767
|
+
username: string;
|
|
768
|
+
forgotToken: string;
|
|
769
|
+
newPassword: string;
|
|
770
|
+
};
|
|
771
|
+
["ChangePasswordWhenLoggedInput"]: {
|
|
772
|
+
oldPassword: string;
|
|
773
|
+
newPassword: string;
|
|
774
|
+
};
|
|
775
|
+
["RegisterInput"]: {
|
|
776
|
+
username: string;
|
|
777
|
+
password: string;
|
|
778
|
+
fullName?: string | undefined | null;
|
|
779
|
+
invitationToken?: string | undefined | null;
|
|
780
|
+
};
|
|
781
|
+
["SocialKind"]: SocialKind;
|
|
782
|
+
["LoginQuery"]: AliasType<{
|
|
783
|
+
password?: [{
|
|
784
|
+
user: ResolverInputTypes["LoginInput"];
|
|
785
|
+
}, ResolverInputTypes["LoginResponse"]];
|
|
786
|
+
provider?: [{
|
|
787
|
+
params: ResolverInputTypes["ProviderLoginInput"];
|
|
788
|
+
}, ResolverInputTypes["ProviderLoginQuery"]];
|
|
789
|
+
refreshToken?: [{
|
|
790
|
+
refreshToken: string;
|
|
791
|
+
}, boolean | `@${string}`];
|
|
792
|
+
__typename?: boolean | `@${string}`;
|
|
793
|
+
}>;
|
|
794
|
+
["ProviderLoginInput"]: {
|
|
795
|
+
code: string;
|
|
796
|
+
redirectUri: string;
|
|
797
|
+
};
|
|
798
|
+
["ProviderLoginQuery"]: AliasType<{
|
|
799
|
+
apple?: ResolverInputTypes["ProviderResponse"];
|
|
800
|
+
google?: ResolverInputTypes["ProviderResponse"];
|
|
801
|
+
github?: ResolverInputTypes["ProviderResponse"];
|
|
802
|
+
microsoft?: ResolverInputTypes["ProviderResponse"];
|
|
803
|
+
__typename?: boolean | `@${string}`;
|
|
804
|
+
}>;
|
|
805
|
+
["RegisterErrors"]: RegisterErrors;
|
|
806
|
+
["LoginErrors"]: LoginErrors;
|
|
807
|
+
["ProviderErrors"]: ProviderErrors;
|
|
808
|
+
["RegisterResponse"]: AliasType<{
|
|
809
|
+
registered?: boolean | `@${string}`;
|
|
810
|
+
hasError?: boolean | `@${string}`;
|
|
811
|
+
__typename?: boolean | `@${string}`;
|
|
812
|
+
}>;
|
|
813
|
+
["LoginResponse"]: AliasType<{
|
|
814
|
+
login?: boolean | `@${string}`;
|
|
815
|
+
accessToken?: boolean | `@${string}`;
|
|
816
|
+
refreshToken?: boolean | `@${string}`;
|
|
817
|
+
hasError?: boolean | `@${string}`;
|
|
818
|
+
__typename?: boolean | `@${string}`;
|
|
819
|
+
}>;
|
|
820
|
+
["ProviderResponse"]: AliasType<{
|
|
821
|
+
jwt?: boolean | `@${string}`;
|
|
822
|
+
accessToken?: boolean | `@${string}`;
|
|
823
|
+
refreshToken?: boolean | `@${string}`;
|
|
824
|
+
providerAccessToken?: boolean | `@${string}`;
|
|
825
|
+
register?: boolean | `@${string}`;
|
|
826
|
+
hasError?: boolean | `@${string}`;
|
|
827
|
+
__typename?: boolean | `@${string}`;
|
|
828
|
+
}>;
|
|
829
|
+
["schema"]: AliasType<{
|
|
830
|
+
query?: ResolverInputTypes["Query"];
|
|
831
|
+
mutation?: ResolverInputTypes["Mutation"];
|
|
832
|
+
__typename?: boolean | `@${string}`;
|
|
833
|
+
}>;
|
|
834
|
+
};
|
|
835
|
+
export type ModelTypes = {
|
|
836
|
+
["Languages"]: Languages;
|
|
837
|
+
["Formality"]: Formality;
|
|
838
|
+
["TranslateInput"]: {
|
|
839
|
+
content: string;
|
|
840
|
+
languages: Array<ModelTypes["Languages"]>;
|
|
841
|
+
formality?: ModelTypes["Formality"] | undefined | null;
|
|
842
|
+
context?: string | undefined | null;
|
|
843
|
+
inputLanguage?: ModelTypes["Languages"] | undefined | null;
|
|
844
|
+
format?: ModelTypes["Format"] | undefined | null;
|
|
845
|
+
};
|
|
846
|
+
["ApiMutation"]: {
|
|
847
|
+
translate?: ModelTypes["TranslationResponse"] | undefined | null;
|
|
848
|
+
};
|
|
849
|
+
["ApiKey"]: {
|
|
850
|
+
name: string;
|
|
851
|
+
value: string;
|
|
852
|
+
createdAt: string;
|
|
853
|
+
_id: string;
|
|
854
|
+
};
|
|
855
|
+
["TranslationSingleResponse"]: {
|
|
856
|
+
language: ModelTypes["Languages"];
|
|
857
|
+
result: string;
|
|
858
|
+
consumedTokens: ModelTypes["BigInt"];
|
|
859
|
+
};
|
|
860
|
+
["TranslationResponse"]: {
|
|
861
|
+
results?: Array<ModelTypes["TranslationSingleResponse"]> | undefined | null;
|
|
862
|
+
};
|
|
863
|
+
["CreateApiKey"]: {
|
|
864
|
+
name: string;
|
|
865
|
+
};
|
|
866
|
+
["Node"]: ModelTypes["ApiKey"] | ModelTypes["StoredTranslation"];
|
|
867
|
+
["StoredTranslation"]: {
|
|
868
|
+
jsonContent: string;
|
|
869
|
+
results?: Array<ModelTypes["TranslationSingleResponse"]> | undefined | null;
|
|
870
|
+
createdAt: string;
|
|
871
|
+
_id: string;
|
|
872
|
+
name?: string | undefined | null;
|
|
873
|
+
inputSize: ModelTypes["BigInt"];
|
|
874
|
+
consumedTokens: ModelTypes["BigInt"];
|
|
875
|
+
};
|
|
876
|
+
["PageInput"]: {
|
|
877
|
+
limit: number;
|
|
878
|
+
start?: number | undefined | null;
|
|
879
|
+
};
|
|
880
|
+
["PageInfo"]: {
|
|
881
|
+
hasNext?: boolean | undefined | null;
|
|
882
|
+
total: number;
|
|
883
|
+
};
|
|
884
|
+
["StoredTranslationConnection"]: {
|
|
885
|
+
items?: Array<ModelTypes["StoredTranslation"]> | undefined | null;
|
|
886
|
+
pageInfo: ModelTypes["PageInfo"];
|
|
887
|
+
};
|
|
888
|
+
["BigInt"]: any;
|
|
889
|
+
["Format"]: Format;
|
|
890
|
+
["Mutation"]: {
|
|
891
|
+
webhook?: string | undefined | null;
|
|
892
|
+
api?: ModelTypes["ApiMutation"] | undefined | null;
|
|
893
|
+
users?: ModelTypes["UsersMutation"] | undefined | null;
|
|
894
|
+
};
|
|
895
|
+
["AuthorizedUserMutation"]: {
|
|
896
|
+
createApiKey?: string | undefined | null;
|
|
897
|
+
revokeApiKey?: boolean | undefined | null;
|
|
898
|
+
translate?: ModelTypes["TranslationResponse"] | undefined | null;
|
|
899
|
+
changePasswordWhenLogged: ModelTypes["ChangePasswordWhenLoggedResponse"];
|
|
900
|
+
editUser: ModelTypes["EditUserResponse"];
|
|
901
|
+
integrateSocialAccount: ModelTypes["IntegrateSocialAccountResponse"];
|
|
902
|
+
};
|
|
903
|
+
["AuthorizedUserQuery"]: {
|
|
904
|
+
apiKeys?: Array<ModelTypes["ApiKey"]> | undefined | null;
|
|
905
|
+
translations?: ModelTypes["StoredTranslationConnection"] | undefined | null;
|
|
906
|
+
me?: ModelTypes["User"] | undefined | null;
|
|
907
|
+
};
|
|
908
|
+
["User"]: {
|
|
909
|
+
_id: string;
|
|
910
|
+
consumedTokens?: ModelTypes["BigInt"] | undefined | null;
|
|
911
|
+
username: string;
|
|
912
|
+
emailConfirmed: boolean;
|
|
913
|
+
createdAt?: string | undefined | null;
|
|
914
|
+
fullName?: string | undefined | null;
|
|
915
|
+
avatarUrl?: string | undefined | null;
|
|
916
|
+
};
|
|
917
|
+
["Query"]: {
|
|
918
|
+
users?: ModelTypes["UsersQuery"] | undefined | null;
|
|
919
|
+
};
|
|
920
|
+
["UsersQuery"]: {
|
|
921
|
+
user?: ModelTypes["AuthorizedUserQuery"] | undefined | null;
|
|
922
|
+
publicUsers?: ModelTypes["PublicUsersQuery"] | undefined | null;
|
|
923
|
+
};
|
|
924
|
+
["UsersMutation"]: {
|
|
925
|
+
user?: ModelTypes["AuthorizedUserMutation"] | undefined | null;
|
|
926
|
+
publicUsers?: ModelTypes["PublicUsersMutation"] | undefined | null;
|
|
927
|
+
};
|
|
928
|
+
["PublicUsersQuery"]: {
|
|
929
|
+
login: ModelTypes["LoginQuery"];
|
|
930
|
+
getGoogleOAuthLink: string;
|
|
931
|
+
getMicrosoftOAuthLink: string;
|
|
932
|
+
getGithubOAuthLink: string;
|
|
933
|
+
getAppleOAuthLink: string;
|
|
934
|
+
requestForForgotPassword: boolean;
|
|
935
|
+
};
|
|
936
|
+
["GetOAuthInput"]: {
|
|
937
|
+
scopes?: Array<string> | undefined | null;
|
|
938
|
+
state?: string | undefined | null;
|
|
939
|
+
redirectUri?: string | undefined | null;
|
|
940
|
+
};
|
|
941
|
+
["PublicUsersMutation"]: {
|
|
942
|
+
register: ModelTypes["RegisterResponse"];
|
|
943
|
+
verifyEmail: ModelTypes["VerifyEmailResponse"];
|
|
944
|
+
changePasswordWithToken: ModelTypes["ChangePasswordWithTokenResponse"];
|
|
945
|
+
generateOAuthToken: ModelTypes["GenerateOAuthTokenResponse"];
|
|
946
|
+
};
|
|
947
|
+
["EditUserError"]: EditUserError;
|
|
948
|
+
["EditUserResponse"]: {
|
|
949
|
+
result?: boolean | undefined | null;
|
|
950
|
+
hasError?: ModelTypes["EditUserError"] | undefined | null;
|
|
951
|
+
};
|
|
952
|
+
["VerifyEmailError"]: VerifyEmailError;
|
|
953
|
+
["VerifyEmailResponse"]: {
|
|
954
|
+
result?: boolean | undefined | null;
|
|
955
|
+
hasError?: ModelTypes["VerifyEmailError"] | undefined | null;
|
|
956
|
+
};
|
|
957
|
+
["ChangePasswordWhenLoggedError"]: ChangePasswordWhenLoggedError;
|
|
958
|
+
["ChangePasswordWhenLoggedResponse"]: {
|
|
959
|
+
result?: boolean | undefined | null;
|
|
960
|
+
hasError?: ModelTypes["ChangePasswordWhenLoggedError"] | undefined | null;
|
|
961
|
+
};
|
|
962
|
+
["ChangePasswordWithTokenError"]: ChangePasswordWithTokenError;
|
|
963
|
+
["ChangePasswordWithTokenResponse"]: {
|
|
964
|
+
result?: boolean | undefined | null;
|
|
965
|
+
hasError?: ModelTypes["ChangePasswordWithTokenError"] | undefined | null;
|
|
966
|
+
};
|
|
967
|
+
["SquashAccountsError"]: SquashAccountsError;
|
|
968
|
+
["IntegrateSocialAccountError"]: IntegrateSocialAccountError;
|
|
969
|
+
["IntegrateSocialAccountResponse"]: {
|
|
970
|
+
result?: boolean | undefined | null;
|
|
971
|
+
hasError?: ModelTypes["IntegrateSocialAccountError"] | undefined | null;
|
|
972
|
+
};
|
|
973
|
+
["GenerateOAuthTokenError"]: GenerateOAuthTokenError;
|
|
974
|
+
["GenerateOAuthTokenResponse"]: {
|
|
975
|
+
result?: string | undefined | null;
|
|
976
|
+
hasError?: ModelTypes["GenerateOAuthTokenError"] | undefined | null;
|
|
977
|
+
};
|
|
978
|
+
["UpdateUserInput"]: {
|
|
979
|
+
username?: string | undefined | null;
|
|
980
|
+
fullName?: string | undefined | null;
|
|
981
|
+
avatarUrl?: string | undefined | null;
|
|
982
|
+
};
|
|
983
|
+
["GenerateOAuthTokenInput"]: {
|
|
984
|
+
social: ModelTypes["SocialKind"];
|
|
985
|
+
code: string;
|
|
986
|
+
};
|
|
987
|
+
["SimpleUserInput"]: {
|
|
988
|
+
username: string;
|
|
989
|
+
password: string;
|
|
990
|
+
};
|
|
991
|
+
["LoginInput"]: {
|
|
992
|
+
username: string;
|
|
993
|
+
password: string;
|
|
994
|
+
};
|
|
995
|
+
["VerifyEmailInput"]: {
|
|
996
|
+
token: string;
|
|
997
|
+
};
|
|
998
|
+
["ChangePasswordWithTokenInput"]: {
|
|
999
|
+
username: string;
|
|
1000
|
+
forgotToken: string;
|
|
1001
|
+
newPassword: string;
|
|
1002
|
+
};
|
|
1003
|
+
["ChangePasswordWhenLoggedInput"]: {
|
|
1004
|
+
oldPassword: string;
|
|
1005
|
+
newPassword: string;
|
|
1006
|
+
};
|
|
1007
|
+
["RegisterInput"]: {
|
|
1008
|
+
username: string;
|
|
1009
|
+
password: string;
|
|
1010
|
+
fullName?: string | undefined | null;
|
|
1011
|
+
invitationToken?: string | undefined | null;
|
|
1012
|
+
};
|
|
1013
|
+
["SocialKind"]: SocialKind;
|
|
1014
|
+
["LoginQuery"]: {
|
|
1015
|
+
password: ModelTypes["LoginResponse"];
|
|
1016
|
+
provider: ModelTypes["ProviderLoginQuery"];
|
|
1017
|
+
refreshToken: string;
|
|
1018
|
+
};
|
|
1019
|
+
["ProviderLoginInput"]: {
|
|
1020
|
+
code: string;
|
|
1021
|
+
redirectUri: string;
|
|
1022
|
+
};
|
|
1023
|
+
["ProviderLoginQuery"]: {
|
|
1024
|
+
apple?: ModelTypes["ProviderResponse"] | undefined | null;
|
|
1025
|
+
google?: ModelTypes["ProviderResponse"] | undefined | null;
|
|
1026
|
+
github?: ModelTypes["ProviderResponse"] | undefined | null;
|
|
1027
|
+
microsoft?: ModelTypes["ProviderResponse"] | undefined | null;
|
|
1028
|
+
};
|
|
1029
|
+
["RegisterErrors"]: RegisterErrors;
|
|
1030
|
+
["LoginErrors"]: LoginErrors;
|
|
1031
|
+
["ProviderErrors"]: ProviderErrors;
|
|
1032
|
+
["RegisterResponse"]: {
|
|
1033
|
+
registered?: boolean | undefined | null;
|
|
1034
|
+
hasError?: ModelTypes["RegisterErrors"] | undefined | null;
|
|
1035
|
+
};
|
|
1036
|
+
["LoginResponse"]: {
|
|
1037
|
+
login?: string | undefined | null;
|
|
1038
|
+
accessToken?: string | undefined | null;
|
|
1039
|
+
refreshToken?: string | undefined | null;
|
|
1040
|
+
hasError?: ModelTypes["LoginErrors"] | undefined | null;
|
|
1041
|
+
};
|
|
1042
|
+
["ProviderResponse"]: {
|
|
1043
|
+
jwt?: string | undefined | null;
|
|
1044
|
+
accessToken?: string | undefined | null;
|
|
1045
|
+
refreshToken?: string | undefined | null;
|
|
1046
|
+
providerAccessToken?: string | undefined | null;
|
|
1047
|
+
register?: boolean | undefined | null;
|
|
1048
|
+
hasError?: ModelTypes["ProviderErrors"] | undefined | null;
|
|
1049
|
+
};
|
|
1050
|
+
["schema"]: {
|
|
1051
|
+
query?: ModelTypes["Query"] | undefined | null;
|
|
1052
|
+
mutation?: ModelTypes["Mutation"] | undefined | null;
|
|
1053
|
+
};
|
|
1054
|
+
};
|
|
1055
|
+
export type GraphQLTypes = {
|
|
1056
|
+
["Languages"]: Languages;
|
|
1057
|
+
["Formality"]: Formality;
|
|
1058
|
+
["TranslateInput"]: {
|
|
1059
|
+
content: string;
|
|
1060
|
+
languages: Array<GraphQLTypes["Languages"]>;
|
|
1061
|
+
formality?: GraphQLTypes["Formality"] | undefined | null;
|
|
1062
|
+
context?: string | undefined | null;
|
|
1063
|
+
inputLanguage?: GraphQLTypes["Languages"] | undefined | null;
|
|
1064
|
+
format?: GraphQLTypes["Format"] | undefined | null;
|
|
1065
|
+
};
|
|
1066
|
+
["ApiMutation"]: {
|
|
1067
|
+
__typename: "ApiMutation";
|
|
1068
|
+
translate?: GraphQLTypes["TranslationResponse"] | undefined | null;
|
|
1069
|
+
};
|
|
1070
|
+
["ApiKey"]: {
|
|
1071
|
+
__typename: "ApiKey";
|
|
1072
|
+
name: string;
|
|
1073
|
+
value: string;
|
|
1074
|
+
createdAt: string;
|
|
1075
|
+
_id: string;
|
|
1076
|
+
};
|
|
1077
|
+
["TranslationSingleResponse"]: {
|
|
1078
|
+
__typename: "TranslationSingleResponse";
|
|
1079
|
+
language: GraphQLTypes["Languages"];
|
|
1080
|
+
result: string;
|
|
1081
|
+
consumedTokens: GraphQLTypes["BigInt"];
|
|
1082
|
+
};
|
|
1083
|
+
["TranslationResponse"]: {
|
|
1084
|
+
__typename: "TranslationResponse";
|
|
1085
|
+
results?: Array<GraphQLTypes["TranslationSingleResponse"]> | undefined | null;
|
|
1086
|
+
};
|
|
1087
|
+
["CreateApiKey"]: {
|
|
1088
|
+
name: string;
|
|
1089
|
+
};
|
|
1090
|
+
["Node"]: {
|
|
1091
|
+
__typename: "ApiKey" | "StoredTranslation";
|
|
1092
|
+
createdAt: string;
|
|
1093
|
+
_id: string;
|
|
1094
|
+
['...on ApiKey']: '__union' & GraphQLTypes["ApiKey"];
|
|
1095
|
+
['...on StoredTranslation']: '__union' & GraphQLTypes["StoredTranslation"];
|
|
1096
|
+
};
|
|
1097
|
+
["StoredTranslation"]: {
|
|
1098
|
+
__typename: "StoredTranslation";
|
|
1099
|
+
jsonContent: string;
|
|
1100
|
+
results?: Array<GraphQLTypes["TranslationSingleResponse"]> | undefined | null;
|
|
1101
|
+
createdAt: string;
|
|
1102
|
+
_id: string;
|
|
1103
|
+
name?: string | undefined | null;
|
|
1104
|
+
inputSize: GraphQLTypes["BigInt"];
|
|
1105
|
+
consumedTokens: GraphQLTypes["BigInt"];
|
|
1106
|
+
};
|
|
1107
|
+
["PageInput"]: {
|
|
1108
|
+
limit: number;
|
|
1109
|
+
start?: number | undefined | null;
|
|
1110
|
+
};
|
|
1111
|
+
["PageInfo"]: {
|
|
1112
|
+
__typename: "PageInfo";
|
|
1113
|
+
hasNext?: boolean | undefined | null;
|
|
1114
|
+
total: number;
|
|
1115
|
+
};
|
|
1116
|
+
["StoredTranslationConnection"]: {
|
|
1117
|
+
__typename: "StoredTranslationConnection";
|
|
1118
|
+
items?: Array<GraphQLTypes["StoredTranslation"]> | undefined | null;
|
|
1119
|
+
pageInfo: GraphQLTypes["PageInfo"];
|
|
1120
|
+
};
|
|
1121
|
+
["BigInt"]: "scalar" & {
|
|
1122
|
+
name: "BigInt";
|
|
1123
|
+
};
|
|
1124
|
+
["Format"]: Format;
|
|
1125
|
+
["Mutation"]: {
|
|
1126
|
+
__typename: "Mutation";
|
|
1127
|
+
webhook?: string | undefined | null;
|
|
1128
|
+
api?: GraphQLTypes["ApiMutation"] | undefined | null;
|
|
1129
|
+
users?: GraphQLTypes["UsersMutation"] | undefined | null;
|
|
1130
|
+
};
|
|
1131
|
+
["AuthorizedUserMutation"]: {
|
|
1132
|
+
__typename: "AuthorizedUserMutation";
|
|
1133
|
+
createApiKey?: string | undefined | null;
|
|
1134
|
+
revokeApiKey?: boolean | undefined | null;
|
|
1135
|
+
translate?: GraphQLTypes["TranslationResponse"] | undefined | null;
|
|
1136
|
+
changePasswordWhenLogged: GraphQLTypes["ChangePasswordWhenLoggedResponse"];
|
|
1137
|
+
editUser: GraphQLTypes["EditUserResponse"];
|
|
1138
|
+
integrateSocialAccount: GraphQLTypes["IntegrateSocialAccountResponse"];
|
|
1139
|
+
};
|
|
1140
|
+
["AuthorizedUserQuery"]: {
|
|
1141
|
+
__typename: "AuthorizedUserQuery";
|
|
1142
|
+
apiKeys?: Array<GraphQLTypes["ApiKey"]> | undefined | null;
|
|
1143
|
+
translations?: GraphQLTypes["StoredTranslationConnection"] | undefined | null;
|
|
1144
|
+
me?: GraphQLTypes["User"] | undefined | null;
|
|
1145
|
+
};
|
|
1146
|
+
["User"]: {
|
|
1147
|
+
__typename: "User";
|
|
1148
|
+
_id: string;
|
|
1149
|
+
consumedTokens?: GraphQLTypes["BigInt"] | undefined | null;
|
|
1150
|
+
username: string;
|
|
1151
|
+
emailConfirmed: boolean;
|
|
1152
|
+
createdAt?: string | undefined | null;
|
|
1153
|
+
fullName?: string | undefined | null;
|
|
1154
|
+
avatarUrl?: string | undefined | null;
|
|
1155
|
+
};
|
|
1156
|
+
["Query"]: {
|
|
1157
|
+
__typename: "Query";
|
|
1158
|
+
users?: GraphQLTypes["UsersQuery"] | undefined | null;
|
|
1159
|
+
};
|
|
1160
|
+
["UsersQuery"]: {
|
|
1161
|
+
__typename: "UsersQuery";
|
|
1162
|
+
user?: GraphQLTypes["AuthorizedUserQuery"] | undefined | null;
|
|
1163
|
+
publicUsers?: GraphQLTypes["PublicUsersQuery"] | undefined | null;
|
|
1164
|
+
};
|
|
1165
|
+
["UsersMutation"]: {
|
|
1166
|
+
__typename: "UsersMutation";
|
|
1167
|
+
user?: GraphQLTypes["AuthorizedUserMutation"] | undefined | null;
|
|
1168
|
+
publicUsers?: GraphQLTypes["PublicUsersMutation"] | undefined | null;
|
|
1169
|
+
};
|
|
1170
|
+
["PublicUsersQuery"]: {
|
|
1171
|
+
__typename: "PublicUsersQuery";
|
|
1172
|
+
login: GraphQLTypes["LoginQuery"];
|
|
1173
|
+
getGoogleOAuthLink: string;
|
|
1174
|
+
getMicrosoftOAuthLink: string;
|
|
1175
|
+
getGithubOAuthLink: string;
|
|
1176
|
+
getAppleOAuthLink: string;
|
|
1177
|
+
requestForForgotPassword: boolean;
|
|
1178
|
+
};
|
|
1179
|
+
["GetOAuthInput"]: {
|
|
1180
|
+
scopes?: Array<string> | undefined | null;
|
|
1181
|
+
state?: string | undefined | null;
|
|
1182
|
+
redirectUri?: string | undefined | null;
|
|
1183
|
+
};
|
|
1184
|
+
["PublicUsersMutation"]: {
|
|
1185
|
+
__typename: "PublicUsersMutation";
|
|
1186
|
+
register: GraphQLTypes["RegisterResponse"];
|
|
1187
|
+
verifyEmail: GraphQLTypes["VerifyEmailResponse"];
|
|
1188
|
+
changePasswordWithToken: GraphQLTypes["ChangePasswordWithTokenResponse"];
|
|
1189
|
+
generateOAuthToken: GraphQLTypes["GenerateOAuthTokenResponse"];
|
|
1190
|
+
};
|
|
1191
|
+
["EditUserError"]: EditUserError;
|
|
1192
|
+
["EditUserResponse"]: {
|
|
1193
|
+
__typename: "EditUserResponse";
|
|
1194
|
+
result?: boolean | undefined | null;
|
|
1195
|
+
hasError?: GraphQLTypes["EditUserError"] | undefined | null;
|
|
1196
|
+
};
|
|
1197
|
+
["VerifyEmailError"]: VerifyEmailError;
|
|
1198
|
+
["VerifyEmailResponse"]: {
|
|
1199
|
+
__typename: "VerifyEmailResponse";
|
|
1200
|
+
result?: boolean | undefined | null;
|
|
1201
|
+
hasError?: GraphQLTypes["VerifyEmailError"] | undefined | null;
|
|
1202
|
+
};
|
|
1203
|
+
["ChangePasswordWhenLoggedError"]: ChangePasswordWhenLoggedError;
|
|
1204
|
+
["ChangePasswordWhenLoggedResponse"]: {
|
|
1205
|
+
__typename: "ChangePasswordWhenLoggedResponse";
|
|
1206
|
+
result?: boolean | undefined | null;
|
|
1207
|
+
hasError?: GraphQLTypes["ChangePasswordWhenLoggedError"] | undefined | null;
|
|
1208
|
+
};
|
|
1209
|
+
["ChangePasswordWithTokenError"]: ChangePasswordWithTokenError;
|
|
1210
|
+
["ChangePasswordWithTokenResponse"]: {
|
|
1211
|
+
__typename: "ChangePasswordWithTokenResponse";
|
|
1212
|
+
result?: boolean | undefined | null;
|
|
1213
|
+
hasError?: GraphQLTypes["ChangePasswordWithTokenError"] | undefined | null;
|
|
1214
|
+
};
|
|
1215
|
+
["SquashAccountsError"]: SquashAccountsError;
|
|
1216
|
+
["IntegrateSocialAccountError"]: IntegrateSocialAccountError;
|
|
1217
|
+
["IntegrateSocialAccountResponse"]: {
|
|
1218
|
+
__typename: "IntegrateSocialAccountResponse";
|
|
1219
|
+
result?: boolean | undefined | null;
|
|
1220
|
+
hasError?: GraphQLTypes["IntegrateSocialAccountError"] | undefined | null;
|
|
1221
|
+
};
|
|
1222
|
+
["GenerateOAuthTokenError"]: GenerateOAuthTokenError;
|
|
1223
|
+
["GenerateOAuthTokenResponse"]: {
|
|
1224
|
+
__typename: "GenerateOAuthTokenResponse";
|
|
1225
|
+
result?: string | undefined | null;
|
|
1226
|
+
hasError?: GraphQLTypes["GenerateOAuthTokenError"] | undefined | null;
|
|
1227
|
+
};
|
|
1228
|
+
["UpdateUserInput"]: {
|
|
1229
|
+
username?: string | undefined | null;
|
|
1230
|
+
fullName?: string | undefined | null;
|
|
1231
|
+
avatarUrl?: string | undefined | null;
|
|
1232
|
+
};
|
|
1233
|
+
["GenerateOAuthTokenInput"]: {
|
|
1234
|
+
social: GraphQLTypes["SocialKind"];
|
|
1235
|
+
code: string;
|
|
1236
|
+
};
|
|
1237
|
+
["SimpleUserInput"]: {
|
|
1238
|
+
username: string;
|
|
1239
|
+
password: string;
|
|
1240
|
+
};
|
|
1241
|
+
["LoginInput"]: {
|
|
1242
|
+
username: string;
|
|
1243
|
+
password: string;
|
|
1244
|
+
};
|
|
1245
|
+
["VerifyEmailInput"]: {
|
|
1246
|
+
token: string;
|
|
1247
|
+
};
|
|
1248
|
+
["ChangePasswordWithTokenInput"]: {
|
|
1249
|
+
username: string;
|
|
1250
|
+
forgotToken: string;
|
|
1251
|
+
newPassword: string;
|
|
1252
|
+
};
|
|
1253
|
+
["ChangePasswordWhenLoggedInput"]: {
|
|
1254
|
+
oldPassword: string;
|
|
1255
|
+
newPassword: string;
|
|
1256
|
+
};
|
|
1257
|
+
["RegisterInput"]: {
|
|
1258
|
+
username: string;
|
|
1259
|
+
password: string;
|
|
1260
|
+
fullName?: string | undefined | null;
|
|
1261
|
+
invitationToken?: string | undefined | null;
|
|
1262
|
+
};
|
|
1263
|
+
["SocialKind"]: SocialKind;
|
|
1264
|
+
["LoginQuery"]: {
|
|
1265
|
+
__typename: "LoginQuery";
|
|
1266
|
+
password: GraphQLTypes["LoginResponse"];
|
|
1267
|
+
provider: GraphQLTypes["ProviderLoginQuery"];
|
|
1268
|
+
refreshToken: string;
|
|
1269
|
+
};
|
|
1270
|
+
["ProviderLoginInput"]: {
|
|
1271
|
+
code: string;
|
|
1272
|
+
redirectUri: string;
|
|
1273
|
+
};
|
|
1274
|
+
["ProviderLoginQuery"]: {
|
|
1275
|
+
__typename: "ProviderLoginQuery";
|
|
1276
|
+
apple?: GraphQLTypes["ProviderResponse"] | undefined | null;
|
|
1277
|
+
google?: GraphQLTypes["ProviderResponse"] | undefined | null;
|
|
1278
|
+
github?: GraphQLTypes["ProviderResponse"] | undefined | null;
|
|
1279
|
+
microsoft?: GraphQLTypes["ProviderResponse"] | undefined | null;
|
|
1280
|
+
};
|
|
1281
|
+
["RegisterErrors"]: RegisterErrors;
|
|
1282
|
+
["LoginErrors"]: LoginErrors;
|
|
1283
|
+
["ProviderErrors"]: ProviderErrors;
|
|
1284
|
+
["RegisterResponse"]: {
|
|
1285
|
+
__typename: "RegisterResponse";
|
|
1286
|
+
registered?: boolean | undefined | null;
|
|
1287
|
+
hasError?: GraphQLTypes["RegisterErrors"] | undefined | null;
|
|
1288
|
+
};
|
|
1289
|
+
["LoginResponse"]: {
|
|
1290
|
+
__typename: "LoginResponse";
|
|
1291
|
+
login?: string | undefined | null;
|
|
1292
|
+
accessToken?: string | undefined | null;
|
|
1293
|
+
refreshToken?: string | undefined | null;
|
|
1294
|
+
hasError?: GraphQLTypes["LoginErrors"] | undefined | null;
|
|
1295
|
+
};
|
|
1296
|
+
["ProviderResponse"]: {
|
|
1297
|
+
__typename: "ProviderResponse";
|
|
1298
|
+
jwt?: string | undefined | null;
|
|
1299
|
+
accessToken?: string | undefined | null;
|
|
1300
|
+
refreshToken?: string | undefined | null;
|
|
1301
|
+
providerAccessToken?: string | undefined | null;
|
|
1302
|
+
register?: boolean | undefined | null;
|
|
1303
|
+
hasError?: GraphQLTypes["ProviderErrors"] | undefined | null;
|
|
1304
|
+
};
|
|
1305
|
+
};
|
|
1306
|
+
export declare enum Languages {
|
|
1307
|
+
ENUS = "ENUS",
|
|
1308
|
+
ENGB = "ENGB",
|
|
1309
|
+
CS = "CS",
|
|
1310
|
+
RU = "RU",
|
|
1311
|
+
ET = "ET",
|
|
1312
|
+
ES = "ES",
|
|
1313
|
+
ZH = "ZH",
|
|
1314
|
+
SK = "SK",
|
|
1315
|
+
SL = "SL",
|
|
1316
|
+
IT = "IT",
|
|
1317
|
+
JA = "JA",
|
|
1318
|
+
ID = "ID",
|
|
1319
|
+
SV = "SV",
|
|
1320
|
+
KO = "KO",
|
|
1321
|
+
TR = "TR",
|
|
1322
|
+
PTBR = "PTBR",
|
|
1323
|
+
PTPT = "PTPT",
|
|
1324
|
+
EL = "EL",
|
|
1325
|
+
DA = "DA",
|
|
1326
|
+
FR = "FR",
|
|
1327
|
+
BG = "BG",
|
|
1328
|
+
LT = "LT",
|
|
1329
|
+
DE = "DE",
|
|
1330
|
+
LV = "LV",
|
|
1331
|
+
NB = "NB",
|
|
1332
|
+
NL = "NL",
|
|
1333
|
+
PL = "PL",
|
|
1334
|
+
FI = "FI",
|
|
1335
|
+
UK = "UK",
|
|
1336
|
+
RO = "RO",
|
|
1337
|
+
HU = "HU"
|
|
1338
|
+
}
|
|
1339
|
+
export declare enum Formality {
|
|
1340
|
+
less = "less",
|
|
1341
|
+
more = "more",
|
|
1342
|
+
default = "default",
|
|
1343
|
+
prefer_less = "prefer_less",
|
|
1344
|
+
prefer_more = "prefer_more"
|
|
1345
|
+
}
|
|
1346
|
+
export declare enum Format {
|
|
1347
|
+
json = "json",
|
|
1348
|
+
xml = "xml"
|
|
1349
|
+
}
|
|
1350
|
+
export declare enum EditUserError {
|
|
1351
|
+
USERNAME_ALREADY_TAKEN = "USERNAME_ALREADY_TAKEN",
|
|
1352
|
+
FAILED_MONGO_UPDATE = "FAILED_MONGO_UPDATE",
|
|
1353
|
+
USER_DOES_NOT_EXIST = "USER_DOES_NOT_EXIST"
|
|
1354
|
+
}
|
|
1355
|
+
export declare enum VerifyEmailError {
|
|
1356
|
+
TOKEN_CANNOT_BE_FOUND = "TOKEN_CANNOT_BE_FOUND"
|
|
1357
|
+
}
|
|
1358
|
+
export declare enum ChangePasswordWhenLoggedError {
|
|
1359
|
+
CANNOT_CHANGE_PASSWORD_FOR_USER_REGISTERED_VIA_SOCIAL = "CANNOT_CHANGE_PASSWORD_FOR_USER_REGISTERED_VIA_SOCIAL",
|
|
1360
|
+
OLD_PASSWORD_IS_INVALID = "OLD_PASSWORD_IS_INVALID",
|
|
1361
|
+
PASSWORD_WEAK = "PASSWORD_WEAK"
|
|
1362
|
+
}
|
|
1363
|
+
export declare enum ChangePasswordWithTokenError {
|
|
1364
|
+
CANNOT_CHANGE_PASSWORD_FOR_USER_REGISTERED_VIA_SOCIAL = "CANNOT_CHANGE_PASSWORD_FOR_USER_REGISTERED_VIA_SOCIAL",
|
|
1365
|
+
TOKEN_IS_INVALID = "TOKEN_IS_INVALID",
|
|
1366
|
+
PASSWORD_IS_TOO_WEAK = "PASSWORD_IS_TOO_WEAK"
|
|
1367
|
+
}
|
|
1368
|
+
export declare enum SquashAccountsError {
|
|
1369
|
+
YOU_HAVE_ONLY_ONE_ACCOUNT = "YOU_HAVE_ONLY_ONE_ACCOUNT",
|
|
1370
|
+
YOUR_ACCOUNTS_DO_NOT_HAVE_CONFIRMED_EMAIL = "YOUR_ACCOUNTS_DO_NOT_HAVE_CONFIRMED_EMAIL",
|
|
1371
|
+
INCORRECT_PASSWORD = "INCORRECT_PASSWORD"
|
|
1372
|
+
}
|
|
1373
|
+
export declare enum IntegrateSocialAccountError {
|
|
1374
|
+
YOU_HAVE_ONLY_ONE_ACCOUNT = "YOU_HAVE_ONLY_ONE_ACCOUNT",
|
|
1375
|
+
YOUR_ACCOUNT_DOES_NOT_HANDLE_CHANGE_PASSWORD_MODE = "YOUR_ACCOUNT_DOES_NOT_HANDLE_CHANGE_PASSWORD_MODE",
|
|
1376
|
+
INCORRECT_PASSWORD = "INCORRECT_PASSWORD",
|
|
1377
|
+
CANNOT_FIND_USER = "CANNOT_FIND_USER",
|
|
1378
|
+
YOUR_ACCOUNT_DOES_NOT_HAVE_CONFIRMED_EMAIL = "YOUR_ACCOUNT_DOES_NOT_HAVE_CONFIRMED_EMAIL"
|
|
1379
|
+
}
|
|
1380
|
+
export declare enum GenerateOAuthTokenError {
|
|
1381
|
+
TOKEN_NOT_GENERATED = "TOKEN_NOT_GENERATED",
|
|
1382
|
+
CANNOT_RETRIEVE_USER_INFORMATION_FROM_APPLE = "CANNOT_RETRIEVE_USER_INFORMATION_FROM_APPLE"
|
|
1383
|
+
}
|
|
1384
|
+
export declare enum SocialKind {
|
|
1385
|
+
Google = "Google",
|
|
1386
|
+
Github = "Github",
|
|
1387
|
+
Apple = "Apple",
|
|
1388
|
+
Microsoft = "Microsoft"
|
|
1389
|
+
}
|
|
1390
|
+
export declare enum RegisterErrors {
|
|
1391
|
+
USERNAME_EXISTS = "USERNAME_EXISTS",
|
|
1392
|
+
PASSWORD_WEAK = "PASSWORD_WEAK",
|
|
1393
|
+
INVITE_DOMAIN_INCORRECT = "INVITE_DOMAIN_INCORRECT",
|
|
1394
|
+
LINK_EXPIRED = "LINK_EXPIRED",
|
|
1395
|
+
USERNAME_INVALID = "USERNAME_INVALID"
|
|
1396
|
+
}
|
|
1397
|
+
export declare enum LoginErrors {
|
|
1398
|
+
CONFIRM_EMAIL_BEFOR_LOGIN = "CONFIRM_EMAIL_BEFOR_LOGIN",
|
|
1399
|
+
INVALID_LOGIN_OR_PASSWORD = "INVALID_LOGIN_OR_PASSWORD",
|
|
1400
|
+
CANNOT_FIND_CONNECTED_USER = "CANNOT_FIND_CONNECTED_USER",
|
|
1401
|
+
YOU_PROVIDED_OTHER_METHOD_OF_LOGIN_ON_THIS_EMAIL = "YOU_PROVIDED_OTHER_METHOD_OF_LOGIN_ON_THIS_EMAIL",
|
|
1402
|
+
UNEXPECTED_ERROR = "UNEXPECTED_ERROR"
|
|
1403
|
+
}
|
|
1404
|
+
export declare enum ProviderErrors {
|
|
1405
|
+
CANNOT_RETRIVE_PROFILE_FROM_GOOGLE_TRY_REFRESH_TOKEN = "CANNOT_RETRIVE_PROFILE_FROM_GOOGLE_TRY_REFRESH_TOKEN",
|
|
1406
|
+
CANNOT_FIND_EMAIL_FOR_THIS_PROFIL = "CANNOT_FIND_EMAIL_FOR_THIS_PROFIL",
|
|
1407
|
+
CANNOT_RETRIVE_USER_INFORMATION_FROM_APPLE = "CANNOT_RETRIVE_USER_INFORMATION_FROM_APPLE",
|
|
1408
|
+
CODE_IS_NOT_EXIST_IN_ARGS = "CODE_IS_NOT_EXIST_IN_ARGS",
|
|
1409
|
+
CANNOT_RETRIVE_SUB_FIELD_FROM_JWT_TOKEN = "CANNOT_RETRIVE_SUB_FIELD_FROM_JWT_TOKEN",
|
|
1410
|
+
CANNOT_RETRIVE_TOKEN_FROM_MICROSOFT = "CANNOT_RETRIVE_TOKEN_FROM_MICROSOFT"
|
|
1411
|
+
}
|
|
1412
|
+
type ZEUS_VARIABLES = {
|
|
1413
|
+
["Languages"]: ValueTypes["Languages"];
|
|
1414
|
+
["Formality"]: ValueTypes["Formality"];
|
|
1415
|
+
["TranslateInput"]: ValueTypes["TranslateInput"];
|
|
1416
|
+
["CreateApiKey"]: ValueTypes["CreateApiKey"];
|
|
1417
|
+
["PageInput"]: ValueTypes["PageInput"];
|
|
1418
|
+
["BigInt"]: ValueTypes["BigInt"];
|
|
1419
|
+
["Format"]: ValueTypes["Format"];
|
|
1420
|
+
["GetOAuthInput"]: ValueTypes["GetOAuthInput"];
|
|
1421
|
+
["EditUserError"]: ValueTypes["EditUserError"];
|
|
1422
|
+
["VerifyEmailError"]: ValueTypes["VerifyEmailError"];
|
|
1423
|
+
["ChangePasswordWhenLoggedError"]: ValueTypes["ChangePasswordWhenLoggedError"];
|
|
1424
|
+
["ChangePasswordWithTokenError"]: ValueTypes["ChangePasswordWithTokenError"];
|
|
1425
|
+
["SquashAccountsError"]: ValueTypes["SquashAccountsError"];
|
|
1426
|
+
["IntegrateSocialAccountError"]: ValueTypes["IntegrateSocialAccountError"];
|
|
1427
|
+
["GenerateOAuthTokenError"]: ValueTypes["GenerateOAuthTokenError"];
|
|
1428
|
+
["UpdateUserInput"]: ValueTypes["UpdateUserInput"];
|
|
1429
|
+
["GenerateOAuthTokenInput"]: ValueTypes["GenerateOAuthTokenInput"];
|
|
1430
|
+
["SimpleUserInput"]: ValueTypes["SimpleUserInput"];
|
|
1431
|
+
["LoginInput"]: ValueTypes["LoginInput"];
|
|
1432
|
+
["VerifyEmailInput"]: ValueTypes["VerifyEmailInput"];
|
|
1433
|
+
["ChangePasswordWithTokenInput"]: ValueTypes["ChangePasswordWithTokenInput"];
|
|
1434
|
+
["ChangePasswordWhenLoggedInput"]: ValueTypes["ChangePasswordWhenLoggedInput"];
|
|
1435
|
+
["RegisterInput"]: ValueTypes["RegisterInput"];
|
|
1436
|
+
["SocialKind"]: ValueTypes["SocialKind"];
|
|
1437
|
+
["ProviderLoginInput"]: ValueTypes["ProviderLoginInput"];
|
|
1438
|
+
["RegisterErrors"]: ValueTypes["RegisterErrors"];
|
|
1439
|
+
["LoginErrors"]: ValueTypes["LoginErrors"];
|
|
1440
|
+
["ProviderErrors"]: ValueTypes["ProviderErrors"];
|
|
1441
|
+
};
|
|
1442
|
+
export {};
|