wabe 0.5.0

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.
@@ -0,0 +1,1518 @@
1
+ import { GraphQLClient, RequestOptions } from 'graphql-request';
2
+ import gql from 'graphql-tag';
3
+ export type Maybe<T> = T | null;
4
+ export type InputMaybe<T> = Maybe<T>;
5
+ export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
6
+ export type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> };
7
+ export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]> };
8
+ export type MakeEmpty<T extends { [key: string]: unknown }, K extends keyof T> = { [_ in K]?: never };
9
+ export type Incremental<T> = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never };
10
+ type GraphQLClientRequestHeaders = RequestOptions['requestHeaders'];
11
+ /** All built-in and custom scalars, mapped to their actual values */
12
+ export type Scalars = {
13
+ ID: { input: string; output: string; }
14
+ String: { input: string; output: string; }
15
+ Boolean: { input: boolean; output: boolean; }
16
+ Int: { input: number; output: number; }
17
+ Float: { input: number; output: number; }
18
+ /** Phone custom scalar type */
19
+ Phone: { input: any; output: any; }
20
+ /** Date scalar type */
21
+ Date: { input: any; output: any; }
22
+ /** Email scalar type */
23
+ Email: { input: any; output: any; }
24
+ /** File scalar type */
25
+ File: { input: any; output: any; }
26
+ /** Search scalar to tokenize and search for all searchable fields */
27
+ Search: { input: any; output: any; }
28
+ /** The Any scalar type is used in operations and types that involve any type of value. */
29
+ Any: { input: any; output: any; }
30
+ };
31
+
32
+ export enum AuthenticationProvider {
33
+ Google = 'Google'
34
+ }
35
+
36
+ export enum SecondaryFactor {
37
+ EmailOtp = 'EmailOTP'
38
+ }
39
+
40
+ /** User class */
41
+ export type User = {
42
+ __typename?: 'User';
43
+ id: Scalars['ID']['output'];
44
+ name?: Maybe<Scalars['String']['output']>;
45
+ age?: Maybe<Scalars['Int']['output']>;
46
+ acl?: Maybe<UserAclObject>;
47
+ createdAt?: Maybe<Scalars['Date']['output']>;
48
+ updatedAt?: Maybe<Scalars['Date']['output']>;
49
+ search?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
50
+ authentication?: Maybe<UserAuthentication>;
51
+ provider?: Maybe<AuthenticationProvider>;
52
+ isOauth?: Maybe<Scalars['Boolean']['output']>;
53
+ email?: Maybe<Scalars['Email']['output']>;
54
+ verifiedEmail?: Maybe<Scalars['Boolean']['output']>;
55
+ role?: Maybe<Role>;
56
+ sessions?: Maybe<_SessionConnection>;
57
+ };
58
+
59
+ export type UserAclObject = {
60
+ __typename?: 'UserACLObject';
61
+ users?: Maybe<Array<Maybe<UserAclObjectUsersAcl>>>;
62
+ roles?: Maybe<Array<Maybe<UserAclObjectRolesAcl>>>;
63
+ };
64
+
65
+ export type UserAclObjectUsersAcl = {
66
+ __typename?: 'UserACLObjectUsersACL';
67
+ userId: Scalars['String']['output'];
68
+ read: Scalars['Boolean']['output'];
69
+ write: Scalars['Boolean']['output'];
70
+ };
71
+
72
+ export type UserAclObjectRolesAcl = {
73
+ __typename?: 'UserACLObjectRolesACL';
74
+ roleId: Scalars['String']['output'];
75
+ read: Scalars['Boolean']['output'];
76
+ write: Scalars['Boolean']['output'];
77
+ };
78
+
79
+ export type UserAuthentication = {
80
+ __typename?: 'UserAuthentication';
81
+ emailPassword?: Maybe<UserAuthenticationEmailPassword>;
82
+ google?: Maybe<UserAuthenticationGoogle>;
83
+ };
84
+
85
+ export type UserAuthenticationEmailPassword = {
86
+ __typename?: 'UserAuthenticationEmailPassword';
87
+ email: Scalars['Email']['output'];
88
+ password: Scalars['String']['output'];
89
+ };
90
+
91
+ export type UserAuthenticationGoogle = {
92
+ __typename?: 'UserAuthenticationGoogle';
93
+ email: Scalars['Email']['output'];
94
+ verifiedEmail: Scalars['Boolean']['output'];
95
+ idToken: Scalars['String']['output'];
96
+ };
97
+
98
+ export type _SessionConnection = {
99
+ __typename?: '_SessionConnection';
100
+ totalCount?: Maybe<Scalars['Int']['output']>;
101
+ edges?: Maybe<Array<Maybe<_SessionEdge>>>;
102
+ };
103
+
104
+ export type _SessionEdge = {
105
+ __typename?: '_SessionEdge';
106
+ node: _Session;
107
+ };
108
+
109
+ /** User class */
110
+ export type UserInput = {
111
+ name?: InputMaybe<Scalars['String']['input']>;
112
+ age?: InputMaybe<Scalars['Int']['input']>;
113
+ acl?: InputMaybe<UserAclObjectInput>;
114
+ createdAt?: InputMaybe<Scalars['Date']['input']>;
115
+ updatedAt?: InputMaybe<Scalars['Date']['input']>;
116
+ search?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
117
+ authentication?: InputMaybe<UserAuthenticationInput>;
118
+ provider?: InputMaybe<AuthenticationProvider>;
119
+ isOauth?: InputMaybe<Scalars['Boolean']['input']>;
120
+ email?: InputMaybe<Scalars['Email']['input']>;
121
+ verifiedEmail?: InputMaybe<Scalars['Boolean']['input']>;
122
+ role?: InputMaybe<RolePointerInput>;
123
+ sessions?: InputMaybe<_SessionRelationInput>;
124
+ };
125
+
126
+ export type UserAclObjectInput = {
127
+ users?: InputMaybe<Array<InputMaybe<UserAclObjectUsersAclInput>>>;
128
+ roles?: InputMaybe<Array<InputMaybe<UserAclObjectRolesAclInput>>>;
129
+ };
130
+
131
+ export type UserAclObjectUsersAclInput = {
132
+ userId: Scalars['String']['input'];
133
+ read: Scalars['Boolean']['input'];
134
+ write: Scalars['Boolean']['input'];
135
+ };
136
+
137
+ export type UserAclObjectRolesAclInput = {
138
+ roleId: Scalars['String']['input'];
139
+ read: Scalars['Boolean']['input'];
140
+ write: Scalars['Boolean']['input'];
141
+ };
142
+
143
+ export type UserAuthenticationInput = {
144
+ emailPassword?: InputMaybe<UserAuthenticationEmailPasswordInput>;
145
+ google?: InputMaybe<UserAuthenticationGoogleInput>;
146
+ };
147
+
148
+ export type UserAuthenticationEmailPasswordInput = {
149
+ email: Scalars['Email']['input'];
150
+ password: Scalars['String']['input'];
151
+ };
152
+
153
+ export type UserAuthenticationGoogleInput = {
154
+ email: Scalars['Email']['input'];
155
+ verifiedEmail: Scalars['Boolean']['input'];
156
+ idToken: Scalars['String']['input'];
157
+ };
158
+
159
+ /** Input to link an object to a pointer User */
160
+ export type UserPointerInput = {
161
+ unlink?: InputMaybe<Scalars['Boolean']['input']>;
162
+ link?: InputMaybe<Scalars['ID']['input']>;
163
+ createAndLink?: InputMaybe<UserCreateFieldsInput>;
164
+ };
165
+
166
+ /** User class */
167
+ export type UserCreateFieldsInput = {
168
+ name?: InputMaybe<Scalars['String']['input']>;
169
+ age?: InputMaybe<Scalars['Int']['input']>;
170
+ acl?: InputMaybe<UserAclObjectCreateFieldsInput>;
171
+ createdAt?: InputMaybe<Scalars['Date']['input']>;
172
+ updatedAt?: InputMaybe<Scalars['Date']['input']>;
173
+ search?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
174
+ authentication?: InputMaybe<UserAuthenticationCreateFieldsInput>;
175
+ provider?: InputMaybe<AuthenticationProvider>;
176
+ isOauth?: InputMaybe<Scalars['Boolean']['input']>;
177
+ email?: InputMaybe<Scalars['Email']['input']>;
178
+ verifiedEmail?: InputMaybe<Scalars['Boolean']['input']>;
179
+ role?: InputMaybe<RolePointerInput>;
180
+ sessions?: InputMaybe<_SessionRelationInput>;
181
+ };
182
+
183
+ export type UserAclObjectCreateFieldsInput = {
184
+ users?: InputMaybe<Array<InputMaybe<UserAclObjectUsersAclCreateFieldsInput>>>;
185
+ roles?: InputMaybe<Array<InputMaybe<UserAclObjectRolesAclCreateFieldsInput>>>;
186
+ };
187
+
188
+ export type UserAclObjectUsersAclCreateFieldsInput = {
189
+ userId?: InputMaybe<Scalars['String']['input']>;
190
+ read?: InputMaybe<Scalars['Boolean']['input']>;
191
+ write?: InputMaybe<Scalars['Boolean']['input']>;
192
+ };
193
+
194
+ export type UserAclObjectRolesAclCreateFieldsInput = {
195
+ roleId?: InputMaybe<Scalars['String']['input']>;
196
+ read?: InputMaybe<Scalars['Boolean']['input']>;
197
+ write?: InputMaybe<Scalars['Boolean']['input']>;
198
+ };
199
+
200
+ export type UserAuthenticationCreateFieldsInput = {
201
+ emailPassword?: InputMaybe<UserAuthenticationEmailPasswordCreateFieldsInput>;
202
+ google?: InputMaybe<UserAuthenticationGoogleCreateFieldsInput>;
203
+ };
204
+
205
+ export type UserAuthenticationEmailPasswordCreateFieldsInput = {
206
+ email?: InputMaybe<Scalars['Email']['input']>;
207
+ password?: InputMaybe<Scalars['String']['input']>;
208
+ };
209
+
210
+ export type UserAuthenticationGoogleCreateFieldsInput = {
211
+ email?: InputMaybe<Scalars['Email']['input']>;
212
+ verifiedEmail?: InputMaybe<Scalars['Boolean']['input']>;
213
+ idToken?: InputMaybe<Scalars['String']['input']>;
214
+ };
215
+
216
+ /** Input to add a relation to the class User */
217
+ export type UserRelationInput = {
218
+ add?: InputMaybe<Array<Scalars['ID']['input']>>;
219
+ remove?: InputMaybe<Array<Scalars['ID']['input']>>;
220
+ createAndAdd?: InputMaybe<Array<UserCreateFieldsInput>>;
221
+ };
222
+
223
+ export type Post = {
224
+ __typename?: 'Post';
225
+ id: Scalars['ID']['output'];
226
+ name: Scalars['String']['output'];
227
+ test?: Maybe<Scalars['File']['output']>;
228
+ acl?: Maybe<PostAclObject>;
229
+ createdAt?: Maybe<Scalars['Date']['output']>;
230
+ updatedAt?: Maybe<Scalars['Date']['output']>;
231
+ search?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
232
+ };
233
+
234
+ export type PostAclObject = {
235
+ __typename?: 'PostACLObject';
236
+ users?: Maybe<Array<Maybe<PostAclObjectUsersAcl>>>;
237
+ roles?: Maybe<Array<Maybe<PostAclObjectRolesAcl>>>;
238
+ };
239
+
240
+ export type PostAclObjectUsersAcl = {
241
+ __typename?: 'PostACLObjectUsersACL';
242
+ userId: Scalars['String']['output'];
243
+ read: Scalars['Boolean']['output'];
244
+ write: Scalars['Boolean']['output'];
245
+ };
246
+
247
+ export type PostAclObjectRolesAcl = {
248
+ __typename?: 'PostACLObjectRolesACL';
249
+ roleId: Scalars['String']['output'];
250
+ read: Scalars['Boolean']['output'];
251
+ write: Scalars['Boolean']['output'];
252
+ };
253
+
254
+ export type PostInput = {
255
+ name: Scalars['String']['input'];
256
+ test?: InputMaybe<Scalars['File']['input']>;
257
+ acl?: InputMaybe<PostAclObjectInput>;
258
+ createdAt?: InputMaybe<Scalars['Date']['input']>;
259
+ updatedAt?: InputMaybe<Scalars['Date']['input']>;
260
+ search?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
261
+ };
262
+
263
+ export type PostAclObjectInput = {
264
+ users?: InputMaybe<Array<InputMaybe<PostAclObjectUsersAclInput>>>;
265
+ roles?: InputMaybe<Array<InputMaybe<PostAclObjectRolesAclInput>>>;
266
+ };
267
+
268
+ export type PostAclObjectUsersAclInput = {
269
+ userId: Scalars['String']['input'];
270
+ read: Scalars['Boolean']['input'];
271
+ write: Scalars['Boolean']['input'];
272
+ };
273
+
274
+ export type PostAclObjectRolesAclInput = {
275
+ roleId: Scalars['String']['input'];
276
+ read: Scalars['Boolean']['input'];
277
+ write: Scalars['Boolean']['input'];
278
+ };
279
+
280
+ /** Input to link an object to a pointer Post */
281
+ export type PostPointerInput = {
282
+ unlink?: InputMaybe<Scalars['Boolean']['input']>;
283
+ link?: InputMaybe<Scalars['ID']['input']>;
284
+ createAndLink?: InputMaybe<PostCreateFieldsInput>;
285
+ };
286
+
287
+ export type PostCreateFieldsInput = {
288
+ name?: InputMaybe<Scalars['String']['input']>;
289
+ test?: InputMaybe<Scalars['File']['input']>;
290
+ acl?: InputMaybe<PostAclObjectCreateFieldsInput>;
291
+ createdAt?: InputMaybe<Scalars['Date']['input']>;
292
+ updatedAt?: InputMaybe<Scalars['Date']['input']>;
293
+ search?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
294
+ };
295
+
296
+ export type PostAclObjectCreateFieldsInput = {
297
+ users?: InputMaybe<Array<InputMaybe<PostAclObjectUsersAclCreateFieldsInput>>>;
298
+ roles?: InputMaybe<Array<InputMaybe<PostAclObjectRolesAclCreateFieldsInput>>>;
299
+ };
300
+
301
+ export type PostAclObjectUsersAclCreateFieldsInput = {
302
+ userId?: InputMaybe<Scalars['String']['input']>;
303
+ read?: InputMaybe<Scalars['Boolean']['input']>;
304
+ write?: InputMaybe<Scalars['Boolean']['input']>;
305
+ };
306
+
307
+ export type PostAclObjectRolesAclCreateFieldsInput = {
308
+ roleId?: InputMaybe<Scalars['String']['input']>;
309
+ read?: InputMaybe<Scalars['Boolean']['input']>;
310
+ write?: InputMaybe<Scalars['Boolean']['input']>;
311
+ };
312
+
313
+ /** Input to add a relation to the class Post */
314
+ export type PostRelationInput = {
315
+ add?: InputMaybe<Array<Scalars['ID']['input']>>;
316
+ remove?: InputMaybe<Array<Scalars['ID']['input']>>;
317
+ createAndAdd?: InputMaybe<Array<PostCreateFieldsInput>>;
318
+ };
319
+
320
+ export type _Session = {
321
+ __typename?: '_Session';
322
+ id: Scalars['ID']['output'];
323
+ user?: Maybe<User>;
324
+ accessToken: Scalars['String']['output'];
325
+ accessTokenExpiresAt: Scalars['Date']['output'];
326
+ refreshToken?: Maybe<Scalars['String']['output']>;
327
+ refreshTokenExpiresAt: Scalars['Date']['output'];
328
+ acl?: Maybe<_SessionAclObject>;
329
+ createdAt?: Maybe<Scalars['Date']['output']>;
330
+ updatedAt?: Maybe<Scalars['Date']['output']>;
331
+ search?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
332
+ };
333
+
334
+ export type _SessionAclObject = {
335
+ __typename?: '_SessionACLObject';
336
+ users?: Maybe<Array<Maybe<_SessionAclObjectUsersAcl>>>;
337
+ roles?: Maybe<Array<Maybe<_SessionAclObjectRolesAcl>>>;
338
+ };
339
+
340
+ export type _SessionAclObjectUsersAcl = {
341
+ __typename?: '_SessionACLObjectUsersACL';
342
+ userId: Scalars['String']['output'];
343
+ read: Scalars['Boolean']['output'];
344
+ write: Scalars['Boolean']['output'];
345
+ };
346
+
347
+ export type _SessionAclObjectRolesAcl = {
348
+ __typename?: '_SessionACLObjectRolesACL';
349
+ roleId: Scalars['String']['output'];
350
+ read: Scalars['Boolean']['output'];
351
+ write: Scalars['Boolean']['output'];
352
+ };
353
+
354
+ export type _SessionInput = {
355
+ user?: InputMaybe<UserPointerInput>;
356
+ accessToken: Scalars['String']['input'];
357
+ accessTokenExpiresAt: Scalars['Date']['input'];
358
+ refreshToken?: InputMaybe<Scalars['String']['input']>;
359
+ refreshTokenExpiresAt: Scalars['Date']['input'];
360
+ acl?: InputMaybe<_SessionAclObjectInput>;
361
+ createdAt?: InputMaybe<Scalars['Date']['input']>;
362
+ updatedAt?: InputMaybe<Scalars['Date']['input']>;
363
+ search?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
364
+ };
365
+
366
+ export type _SessionAclObjectInput = {
367
+ users?: InputMaybe<Array<InputMaybe<_SessionAclObjectUsersAclInput>>>;
368
+ roles?: InputMaybe<Array<InputMaybe<_SessionAclObjectRolesAclInput>>>;
369
+ };
370
+
371
+ export type _SessionAclObjectUsersAclInput = {
372
+ userId: Scalars['String']['input'];
373
+ read: Scalars['Boolean']['input'];
374
+ write: Scalars['Boolean']['input'];
375
+ };
376
+
377
+ export type _SessionAclObjectRolesAclInput = {
378
+ roleId: Scalars['String']['input'];
379
+ read: Scalars['Boolean']['input'];
380
+ write: Scalars['Boolean']['input'];
381
+ };
382
+
383
+ /** Input to link an object to a pointer _Session */
384
+ export type _SessionPointerInput = {
385
+ unlink?: InputMaybe<Scalars['Boolean']['input']>;
386
+ link?: InputMaybe<Scalars['ID']['input']>;
387
+ createAndLink?: InputMaybe<_SessionCreateFieldsInput>;
388
+ };
389
+
390
+ export type _SessionCreateFieldsInput = {
391
+ user?: InputMaybe<UserPointerInput>;
392
+ accessToken?: InputMaybe<Scalars['String']['input']>;
393
+ accessTokenExpiresAt?: InputMaybe<Scalars['Date']['input']>;
394
+ refreshToken?: InputMaybe<Scalars['String']['input']>;
395
+ refreshTokenExpiresAt?: InputMaybe<Scalars['Date']['input']>;
396
+ acl?: InputMaybe<_SessionAclObjectCreateFieldsInput>;
397
+ createdAt?: InputMaybe<Scalars['Date']['input']>;
398
+ updatedAt?: InputMaybe<Scalars['Date']['input']>;
399
+ search?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
400
+ };
401
+
402
+ export type _SessionAclObjectCreateFieldsInput = {
403
+ users?: InputMaybe<Array<InputMaybe<_SessionAclObjectUsersAclCreateFieldsInput>>>;
404
+ roles?: InputMaybe<Array<InputMaybe<_SessionAclObjectRolesAclCreateFieldsInput>>>;
405
+ };
406
+
407
+ export type _SessionAclObjectUsersAclCreateFieldsInput = {
408
+ userId?: InputMaybe<Scalars['String']['input']>;
409
+ read?: InputMaybe<Scalars['Boolean']['input']>;
410
+ write?: InputMaybe<Scalars['Boolean']['input']>;
411
+ };
412
+
413
+ export type _SessionAclObjectRolesAclCreateFieldsInput = {
414
+ roleId?: InputMaybe<Scalars['String']['input']>;
415
+ read?: InputMaybe<Scalars['Boolean']['input']>;
416
+ write?: InputMaybe<Scalars['Boolean']['input']>;
417
+ };
418
+
419
+ /** Input to add a relation to the class _Session */
420
+ export type _SessionRelationInput = {
421
+ add?: InputMaybe<Array<Scalars['ID']['input']>>;
422
+ remove?: InputMaybe<Array<Scalars['ID']['input']>>;
423
+ createAndAdd?: InputMaybe<Array<_SessionCreateFieldsInput>>;
424
+ };
425
+
426
+ export type Role = {
427
+ __typename?: 'Role';
428
+ id: Scalars['ID']['output'];
429
+ name: Scalars['String']['output'];
430
+ users?: Maybe<UserConnection>;
431
+ acl?: Maybe<RoleAclObject>;
432
+ createdAt?: Maybe<Scalars['Date']['output']>;
433
+ updatedAt?: Maybe<Scalars['Date']['output']>;
434
+ search?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
435
+ };
436
+
437
+ export type UserConnection = {
438
+ __typename?: 'UserConnection';
439
+ totalCount?: Maybe<Scalars['Int']['output']>;
440
+ edges?: Maybe<Array<Maybe<UserEdge>>>;
441
+ };
442
+
443
+ export type UserEdge = {
444
+ __typename?: 'UserEdge';
445
+ node: User;
446
+ };
447
+
448
+ export type RoleAclObject = {
449
+ __typename?: 'RoleACLObject';
450
+ users?: Maybe<Array<Maybe<RoleAclObjectUsersAcl>>>;
451
+ roles?: Maybe<Array<Maybe<RoleAclObjectRolesAcl>>>;
452
+ };
453
+
454
+ export type RoleAclObjectUsersAcl = {
455
+ __typename?: 'RoleACLObjectUsersACL';
456
+ userId: Scalars['String']['output'];
457
+ read: Scalars['Boolean']['output'];
458
+ write: Scalars['Boolean']['output'];
459
+ };
460
+
461
+ export type RoleAclObjectRolesAcl = {
462
+ __typename?: 'RoleACLObjectRolesACL';
463
+ roleId: Scalars['String']['output'];
464
+ read: Scalars['Boolean']['output'];
465
+ write: Scalars['Boolean']['output'];
466
+ };
467
+
468
+ export type RoleInput = {
469
+ name: Scalars['String']['input'];
470
+ users?: InputMaybe<UserRelationInput>;
471
+ acl?: InputMaybe<RoleAclObjectInput>;
472
+ createdAt?: InputMaybe<Scalars['Date']['input']>;
473
+ updatedAt?: InputMaybe<Scalars['Date']['input']>;
474
+ search?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
475
+ };
476
+
477
+ export type RoleAclObjectInput = {
478
+ users?: InputMaybe<Array<InputMaybe<RoleAclObjectUsersAclInput>>>;
479
+ roles?: InputMaybe<Array<InputMaybe<RoleAclObjectRolesAclInput>>>;
480
+ };
481
+
482
+ export type RoleAclObjectUsersAclInput = {
483
+ userId: Scalars['String']['input'];
484
+ read: Scalars['Boolean']['input'];
485
+ write: Scalars['Boolean']['input'];
486
+ };
487
+
488
+ export type RoleAclObjectRolesAclInput = {
489
+ roleId: Scalars['String']['input'];
490
+ read: Scalars['Boolean']['input'];
491
+ write: Scalars['Boolean']['input'];
492
+ };
493
+
494
+ /** Input to link an object to a pointer Role */
495
+ export type RolePointerInput = {
496
+ unlink?: InputMaybe<Scalars['Boolean']['input']>;
497
+ link?: InputMaybe<Scalars['ID']['input']>;
498
+ createAndLink?: InputMaybe<RoleCreateFieldsInput>;
499
+ };
500
+
501
+ export type RoleCreateFieldsInput = {
502
+ name?: InputMaybe<Scalars['String']['input']>;
503
+ users?: InputMaybe<UserRelationInput>;
504
+ acl?: InputMaybe<RoleAclObjectCreateFieldsInput>;
505
+ createdAt?: InputMaybe<Scalars['Date']['input']>;
506
+ updatedAt?: InputMaybe<Scalars['Date']['input']>;
507
+ search?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
508
+ };
509
+
510
+ export type RoleAclObjectCreateFieldsInput = {
511
+ users?: InputMaybe<Array<InputMaybe<RoleAclObjectUsersAclCreateFieldsInput>>>;
512
+ roles?: InputMaybe<Array<InputMaybe<RoleAclObjectRolesAclCreateFieldsInput>>>;
513
+ };
514
+
515
+ export type RoleAclObjectUsersAclCreateFieldsInput = {
516
+ userId?: InputMaybe<Scalars['String']['input']>;
517
+ read?: InputMaybe<Scalars['Boolean']['input']>;
518
+ write?: InputMaybe<Scalars['Boolean']['input']>;
519
+ };
520
+
521
+ export type RoleAclObjectRolesAclCreateFieldsInput = {
522
+ roleId?: InputMaybe<Scalars['String']['input']>;
523
+ read?: InputMaybe<Scalars['Boolean']['input']>;
524
+ write?: InputMaybe<Scalars['Boolean']['input']>;
525
+ };
526
+
527
+ /** Input to add a relation to the class Role */
528
+ export type RoleRelationInput = {
529
+ add?: InputMaybe<Array<Scalars['ID']['input']>>;
530
+ remove?: InputMaybe<Array<Scalars['ID']['input']>>;
531
+ createAndAdd?: InputMaybe<Array<RoleCreateFieldsInput>>;
532
+ };
533
+
534
+ export type Query = {
535
+ __typename?: 'Query';
536
+ /** User class */
537
+ user?: Maybe<User>;
538
+ /** User class */
539
+ users: UserConnection;
540
+ post?: Maybe<Post>;
541
+ posts: PostConnection;
542
+ _session?: Maybe<_Session>;
543
+ _sessions: _SessionConnection;
544
+ role?: Maybe<Role>;
545
+ roles: RoleConnection;
546
+ /** Hello world description */
547
+ helloWorld?: Maybe<Scalars['String']['output']>;
548
+ me?: Maybe<MeOutput>;
549
+ };
550
+
551
+
552
+ export type QueryUserArgs = {
553
+ id?: InputMaybe<Scalars['ID']['input']>;
554
+ };
555
+
556
+
557
+ export type QueryUsersArgs = {
558
+ where?: InputMaybe<UserWhereInput>;
559
+ offset?: InputMaybe<Scalars['Int']['input']>;
560
+ first?: InputMaybe<Scalars['Int']['input']>;
561
+ };
562
+
563
+
564
+ export type QueryPostArgs = {
565
+ id?: InputMaybe<Scalars['ID']['input']>;
566
+ };
567
+
568
+
569
+ export type QueryPostsArgs = {
570
+ where?: InputMaybe<PostWhereInput>;
571
+ offset?: InputMaybe<Scalars['Int']['input']>;
572
+ first?: InputMaybe<Scalars['Int']['input']>;
573
+ };
574
+
575
+
576
+ export type Query_SessionArgs = {
577
+ id?: InputMaybe<Scalars['ID']['input']>;
578
+ };
579
+
580
+
581
+ export type Query_SessionsArgs = {
582
+ where?: InputMaybe<_SessionWhereInput>;
583
+ offset?: InputMaybe<Scalars['Int']['input']>;
584
+ first?: InputMaybe<Scalars['Int']['input']>;
585
+ };
586
+
587
+
588
+ export type QueryRoleArgs = {
589
+ id?: InputMaybe<Scalars['ID']['input']>;
590
+ };
591
+
592
+
593
+ export type QueryRolesArgs = {
594
+ where?: InputMaybe<RoleWhereInput>;
595
+ offset?: InputMaybe<Scalars['Int']['input']>;
596
+ first?: InputMaybe<Scalars['Int']['input']>;
597
+ };
598
+
599
+
600
+ export type QueryHelloWorldArgs = {
601
+ name: Scalars['String']['input'];
602
+ };
603
+
604
+ /** User class */
605
+ export type UserWhereInput = {
606
+ id?: InputMaybe<IdWhereInput>;
607
+ name?: InputMaybe<StringWhereInput>;
608
+ age?: InputMaybe<IntWhereInput>;
609
+ acl?: InputMaybe<UserAclObjectWhereInput>;
610
+ createdAt?: InputMaybe<DateWhereInput>;
611
+ updatedAt?: InputMaybe<DateWhereInput>;
612
+ search?: InputMaybe<SearchWhereInput>;
613
+ authentication?: InputMaybe<UserAuthenticationWhereInput>;
614
+ provider?: InputMaybe<AnyWhereInput>;
615
+ isOauth?: InputMaybe<BooleanWhereInput>;
616
+ email?: InputMaybe<EmailWhereInput>;
617
+ verifiedEmail?: InputMaybe<BooleanWhereInput>;
618
+ role?: InputMaybe<RoleWhereInput>;
619
+ sessions?: InputMaybe<_SessionWhereInput>;
620
+ OR?: InputMaybe<Array<InputMaybe<UserWhereInput>>>;
621
+ AND?: InputMaybe<Array<InputMaybe<UserWhereInput>>>;
622
+ };
623
+
624
+ export type IdWhereInput = {
625
+ equalTo?: InputMaybe<Scalars['ID']['input']>;
626
+ notEqualTo?: InputMaybe<Scalars['ID']['input']>;
627
+ in?: InputMaybe<Array<InputMaybe<Scalars['ID']['input']>>>;
628
+ notIn?: InputMaybe<Array<InputMaybe<Scalars['ID']['input']>>>;
629
+ };
630
+
631
+ export type StringWhereInput = {
632
+ equalTo?: InputMaybe<Scalars['String']['input']>;
633
+ notEqualTo?: InputMaybe<Scalars['String']['input']>;
634
+ in?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
635
+ notIn?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
636
+ };
637
+
638
+ export type IntWhereInput = {
639
+ equalTo?: InputMaybe<Scalars['Int']['input']>;
640
+ notEqualTo?: InputMaybe<Scalars['Int']['input']>;
641
+ lessThan?: InputMaybe<Scalars['Int']['input']>;
642
+ lessThanOrEqualTo?: InputMaybe<Scalars['Int']['input']>;
643
+ greaterThan?: InputMaybe<Scalars['Int']['input']>;
644
+ greaterThanOrEqualTo?: InputMaybe<Scalars['Int']['input']>;
645
+ in?: InputMaybe<Array<InputMaybe<Scalars['Int']['input']>>>;
646
+ notIn?: InputMaybe<Array<InputMaybe<Scalars['Int']['input']>>>;
647
+ };
648
+
649
+ export type UserAclObjectWhereInput = {
650
+ users?: InputMaybe<Array<InputMaybe<UserAclObjectUsersAclWhereInput>>>;
651
+ roles?: InputMaybe<Array<InputMaybe<UserAclObjectRolesAclWhereInput>>>;
652
+ OR?: InputMaybe<Array<InputMaybe<UserAclObjectWhereInput>>>;
653
+ AND?: InputMaybe<Array<InputMaybe<UserAclObjectWhereInput>>>;
654
+ };
655
+
656
+ export type UserAclObjectUsersAclWhereInput = {
657
+ userId?: InputMaybe<StringWhereInput>;
658
+ read?: InputMaybe<BooleanWhereInput>;
659
+ write?: InputMaybe<BooleanWhereInput>;
660
+ OR?: InputMaybe<Array<InputMaybe<UserAclObjectUsersAclWhereInput>>>;
661
+ AND?: InputMaybe<Array<InputMaybe<UserAclObjectUsersAclWhereInput>>>;
662
+ };
663
+
664
+ export type BooleanWhereInput = {
665
+ equalTo?: InputMaybe<Scalars['Boolean']['input']>;
666
+ notEqualTo?: InputMaybe<Scalars['Boolean']['input']>;
667
+ in?: InputMaybe<Array<InputMaybe<Scalars['Boolean']['input']>>>;
668
+ notIn?: InputMaybe<Array<InputMaybe<Scalars['Boolean']['input']>>>;
669
+ };
670
+
671
+ export type UserAclObjectRolesAclWhereInput = {
672
+ roleId?: InputMaybe<StringWhereInput>;
673
+ read?: InputMaybe<BooleanWhereInput>;
674
+ write?: InputMaybe<BooleanWhereInput>;
675
+ OR?: InputMaybe<Array<InputMaybe<UserAclObjectRolesAclWhereInput>>>;
676
+ AND?: InputMaybe<Array<InputMaybe<UserAclObjectRolesAclWhereInput>>>;
677
+ };
678
+
679
+ export type DateWhereInput = {
680
+ equalTo?: InputMaybe<Scalars['Date']['input']>;
681
+ notEqualTo?: InputMaybe<Scalars['Date']['input']>;
682
+ in?: InputMaybe<Array<InputMaybe<Scalars['Date']['input']>>>;
683
+ notIn?: InputMaybe<Array<InputMaybe<Scalars['Date']['input']>>>;
684
+ lessThan?: InputMaybe<Scalars['Date']['input']>;
685
+ lessThanOrEqualTo?: InputMaybe<Scalars['Date']['input']>;
686
+ greaterThan?: InputMaybe<Scalars['Date']['input']>;
687
+ greaterThanOrEqualTo?: InputMaybe<Scalars['Date']['input']>;
688
+ };
689
+
690
+ export type SearchWhereInput = {
691
+ contains?: InputMaybe<Scalars['Search']['input']>;
692
+ };
693
+
694
+ export type UserAuthenticationWhereInput = {
695
+ emailPassword?: InputMaybe<UserAuthenticationEmailPasswordWhereInput>;
696
+ google?: InputMaybe<UserAuthenticationGoogleWhereInput>;
697
+ OR?: InputMaybe<Array<InputMaybe<UserAuthenticationWhereInput>>>;
698
+ AND?: InputMaybe<Array<InputMaybe<UserAuthenticationWhereInput>>>;
699
+ };
700
+
701
+ export type UserAuthenticationEmailPasswordWhereInput = {
702
+ email?: InputMaybe<EmailWhereInput>;
703
+ password?: InputMaybe<StringWhereInput>;
704
+ OR?: InputMaybe<Array<InputMaybe<UserAuthenticationEmailPasswordWhereInput>>>;
705
+ AND?: InputMaybe<Array<InputMaybe<UserAuthenticationEmailPasswordWhereInput>>>;
706
+ };
707
+
708
+ export type EmailWhereInput = {
709
+ equalTo?: InputMaybe<Scalars['Email']['input']>;
710
+ notEqualTo?: InputMaybe<Scalars['Email']['input']>;
711
+ in?: InputMaybe<Array<InputMaybe<Scalars['Email']['input']>>>;
712
+ notIn?: InputMaybe<Array<InputMaybe<Scalars['Email']['input']>>>;
713
+ };
714
+
715
+ export type UserAuthenticationGoogleWhereInput = {
716
+ email?: InputMaybe<EmailWhereInput>;
717
+ verifiedEmail?: InputMaybe<BooleanWhereInput>;
718
+ idToken?: InputMaybe<StringWhereInput>;
719
+ OR?: InputMaybe<Array<InputMaybe<UserAuthenticationGoogleWhereInput>>>;
720
+ AND?: InputMaybe<Array<InputMaybe<UserAuthenticationGoogleWhereInput>>>;
721
+ };
722
+
723
+ export type AnyWhereInput = {
724
+ equalTo?: InputMaybe<Scalars['Any']['input']>;
725
+ notEqualTo?: InputMaybe<Scalars['Any']['input']>;
726
+ };
727
+
728
+ export type RoleWhereInput = {
729
+ id?: InputMaybe<IdWhereInput>;
730
+ name?: InputMaybe<StringWhereInput>;
731
+ users?: InputMaybe<UserWhereInput>;
732
+ acl?: InputMaybe<RoleAclObjectWhereInput>;
733
+ createdAt?: InputMaybe<DateWhereInput>;
734
+ updatedAt?: InputMaybe<DateWhereInput>;
735
+ search?: InputMaybe<SearchWhereInput>;
736
+ OR?: InputMaybe<Array<InputMaybe<RoleWhereInput>>>;
737
+ AND?: InputMaybe<Array<InputMaybe<RoleWhereInput>>>;
738
+ };
739
+
740
+ export type RoleAclObjectWhereInput = {
741
+ users?: InputMaybe<Array<InputMaybe<RoleAclObjectUsersAclWhereInput>>>;
742
+ roles?: InputMaybe<Array<InputMaybe<RoleAclObjectRolesAclWhereInput>>>;
743
+ OR?: InputMaybe<Array<InputMaybe<RoleAclObjectWhereInput>>>;
744
+ AND?: InputMaybe<Array<InputMaybe<RoleAclObjectWhereInput>>>;
745
+ };
746
+
747
+ export type RoleAclObjectUsersAclWhereInput = {
748
+ userId?: InputMaybe<StringWhereInput>;
749
+ read?: InputMaybe<BooleanWhereInput>;
750
+ write?: InputMaybe<BooleanWhereInput>;
751
+ OR?: InputMaybe<Array<InputMaybe<RoleAclObjectUsersAclWhereInput>>>;
752
+ AND?: InputMaybe<Array<InputMaybe<RoleAclObjectUsersAclWhereInput>>>;
753
+ };
754
+
755
+ export type RoleAclObjectRolesAclWhereInput = {
756
+ roleId?: InputMaybe<StringWhereInput>;
757
+ read?: InputMaybe<BooleanWhereInput>;
758
+ write?: InputMaybe<BooleanWhereInput>;
759
+ OR?: InputMaybe<Array<InputMaybe<RoleAclObjectRolesAclWhereInput>>>;
760
+ AND?: InputMaybe<Array<InputMaybe<RoleAclObjectRolesAclWhereInput>>>;
761
+ };
762
+
763
+ export type _SessionWhereInput = {
764
+ id?: InputMaybe<IdWhereInput>;
765
+ user?: InputMaybe<UserWhereInput>;
766
+ accessToken?: InputMaybe<StringWhereInput>;
767
+ accessTokenExpiresAt?: InputMaybe<DateWhereInput>;
768
+ refreshToken?: InputMaybe<StringWhereInput>;
769
+ refreshTokenExpiresAt?: InputMaybe<DateWhereInput>;
770
+ acl?: InputMaybe<_SessionAclObjectWhereInput>;
771
+ createdAt?: InputMaybe<DateWhereInput>;
772
+ updatedAt?: InputMaybe<DateWhereInput>;
773
+ search?: InputMaybe<SearchWhereInput>;
774
+ OR?: InputMaybe<Array<InputMaybe<_SessionWhereInput>>>;
775
+ AND?: InputMaybe<Array<InputMaybe<_SessionWhereInput>>>;
776
+ };
777
+
778
+ export type _SessionAclObjectWhereInput = {
779
+ users?: InputMaybe<Array<InputMaybe<_SessionAclObjectUsersAclWhereInput>>>;
780
+ roles?: InputMaybe<Array<InputMaybe<_SessionAclObjectRolesAclWhereInput>>>;
781
+ OR?: InputMaybe<Array<InputMaybe<_SessionAclObjectWhereInput>>>;
782
+ AND?: InputMaybe<Array<InputMaybe<_SessionAclObjectWhereInput>>>;
783
+ };
784
+
785
+ export type _SessionAclObjectUsersAclWhereInput = {
786
+ userId?: InputMaybe<StringWhereInput>;
787
+ read?: InputMaybe<BooleanWhereInput>;
788
+ write?: InputMaybe<BooleanWhereInput>;
789
+ OR?: InputMaybe<Array<InputMaybe<_SessionAclObjectUsersAclWhereInput>>>;
790
+ AND?: InputMaybe<Array<InputMaybe<_SessionAclObjectUsersAclWhereInput>>>;
791
+ };
792
+
793
+ export type _SessionAclObjectRolesAclWhereInput = {
794
+ roleId?: InputMaybe<StringWhereInput>;
795
+ read?: InputMaybe<BooleanWhereInput>;
796
+ write?: InputMaybe<BooleanWhereInput>;
797
+ OR?: InputMaybe<Array<InputMaybe<_SessionAclObjectRolesAclWhereInput>>>;
798
+ AND?: InputMaybe<Array<InputMaybe<_SessionAclObjectRolesAclWhereInput>>>;
799
+ };
800
+
801
+ export type PostConnection = {
802
+ __typename?: 'PostConnection';
803
+ totalCount?: Maybe<Scalars['Int']['output']>;
804
+ edges?: Maybe<Array<Maybe<PostEdge>>>;
805
+ };
806
+
807
+ export type PostEdge = {
808
+ __typename?: 'PostEdge';
809
+ node: Post;
810
+ };
811
+
812
+ export type PostWhereInput = {
813
+ id?: InputMaybe<IdWhereInput>;
814
+ name?: InputMaybe<StringWhereInput>;
815
+ test?: InputMaybe<FileWhereInput>;
816
+ acl?: InputMaybe<PostAclObjectWhereInput>;
817
+ createdAt?: InputMaybe<DateWhereInput>;
818
+ updatedAt?: InputMaybe<DateWhereInput>;
819
+ search?: InputMaybe<SearchWhereInput>;
820
+ OR?: InputMaybe<Array<InputMaybe<PostWhereInput>>>;
821
+ AND?: InputMaybe<Array<InputMaybe<PostWhereInput>>>;
822
+ };
823
+
824
+ export type FileWhereInput = {
825
+ equalTo?: InputMaybe<Scalars['File']['input']>;
826
+ notEqualTo?: InputMaybe<Scalars['File']['input']>;
827
+ in?: InputMaybe<Array<InputMaybe<Scalars['File']['input']>>>;
828
+ notInt?: InputMaybe<Array<InputMaybe<Scalars['File']['input']>>>;
829
+ };
830
+
831
+ export type PostAclObjectWhereInput = {
832
+ users?: InputMaybe<Array<InputMaybe<PostAclObjectUsersAclWhereInput>>>;
833
+ roles?: InputMaybe<Array<InputMaybe<PostAclObjectRolesAclWhereInput>>>;
834
+ OR?: InputMaybe<Array<InputMaybe<PostAclObjectWhereInput>>>;
835
+ AND?: InputMaybe<Array<InputMaybe<PostAclObjectWhereInput>>>;
836
+ };
837
+
838
+ export type PostAclObjectUsersAclWhereInput = {
839
+ userId?: InputMaybe<StringWhereInput>;
840
+ read?: InputMaybe<BooleanWhereInput>;
841
+ write?: InputMaybe<BooleanWhereInput>;
842
+ OR?: InputMaybe<Array<InputMaybe<PostAclObjectUsersAclWhereInput>>>;
843
+ AND?: InputMaybe<Array<InputMaybe<PostAclObjectUsersAclWhereInput>>>;
844
+ };
845
+
846
+ export type PostAclObjectRolesAclWhereInput = {
847
+ roleId?: InputMaybe<StringWhereInput>;
848
+ read?: InputMaybe<BooleanWhereInput>;
849
+ write?: InputMaybe<BooleanWhereInput>;
850
+ OR?: InputMaybe<Array<InputMaybe<PostAclObjectRolesAclWhereInput>>>;
851
+ AND?: InputMaybe<Array<InputMaybe<PostAclObjectRolesAclWhereInput>>>;
852
+ };
853
+
854
+ export type RoleConnection = {
855
+ __typename?: 'RoleConnection';
856
+ totalCount?: Maybe<Scalars['Int']['output']>;
857
+ edges?: Maybe<Array<Maybe<RoleEdge>>>;
858
+ };
859
+
860
+ export type RoleEdge = {
861
+ __typename?: 'RoleEdge';
862
+ node: Role;
863
+ };
864
+
865
+ export type MeOutput = {
866
+ __typename?: 'MeOutput';
867
+ user?: Maybe<User>;
868
+ };
869
+
870
+ export type Mutation = {
871
+ __typename?: 'Mutation';
872
+ /** User class */
873
+ createUser?: Maybe<CreateUserPayload>;
874
+ /** User class */
875
+ createUsers: UserConnection;
876
+ /** User class */
877
+ updateUser?: Maybe<UpdateUserPayload>;
878
+ /** User class */
879
+ updateUsers: UserConnection;
880
+ /** User class */
881
+ deleteUser?: Maybe<DeleteUserPayload>;
882
+ /** User class */
883
+ deleteUsers: UserConnection;
884
+ createPost?: Maybe<CreatePostPayload>;
885
+ createPosts: PostConnection;
886
+ updatePost?: Maybe<UpdatePostPayload>;
887
+ updatePosts: PostConnection;
888
+ deletePost?: Maybe<DeletePostPayload>;
889
+ deletePosts: PostConnection;
890
+ create_Session?: Maybe<Create_SessionPayload>;
891
+ create_Sessions: _SessionConnection;
892
+ update_Session?: Maybe<Update_SessionPayload>;
893
+ update_Sessions: _SessionConnection;
894
+ delete_Session?: Maybe<Delete_SessionPayload>;
895
+ delete_Sessions: _SessionConnection;
896
+ createRole?: Maybe<CreateRolePayload>;
897
+ createRoles: RoleConnection;
898
+ updateRole?: Maybe<UpdateRolePayload>;
899
+ updateRoles: RoleConnection;
900
+ deleteRole?: Maybe<DeleteRolePayload>;
901
+ deleteRoles: RoleConnection;
902
+ createMutation: Scalars['Boolean']['output'];
903
+ customMutation?: Maybe<Scalars['Int']['output']>;
904
+ secondCustomMutation?: Maybe<Scalars['Int']['output']>;
905
+ signInWith?: Maybe<SignInWithOutput>;
906
+ signUpWith?: Maybe<SignUpWithOutput>;
907
+ signOut?: Maybe<Scalars['Boolean']['output']>;
908
+ refresh?: Maybe<RefreshSessionOutput>;
909
+ verifyChallenge?: Maybe<Scalars['Boolean']['output']>;
910
+ };
911
+
912
+
913
+ export type MutationCreateUserArgs = {
914
+ input?: InputMaybe<CreateUserInput>;
915
+ };
916
+
917
+
918
+ export type MutationCreateUsersArgs = {
919
+ input?: InputMaybe<CreateUsersInput>;
920
+ };
921
+
922
+
923
+ export type MutationUpdateUserArgs = {
924
+ input?: InputMaybe<UpdateUserInput>;
925
+ };
926
+
927
+
928
+ export type MutationUpdateUsersArgs = {
929
+ input?: InputMaybe<UpdateUsersInput>;
930
+ };
931
+
932
+
933
+ export type MutationDeleteUserArgs = {
934
+ input?: InputMaybe<DeleteUserInput>;
935
+ };
936
+
937
+
938
+ export type MutationDeleteUsersArgs = {
939
+ input?: InputMaybe<DeleteUsersInput>;
940
+ };
941
+
942
+
943
+ export type MutationCreatePostArgs = {
944
+ input?: InputMaybe<CreatePostInput>;
945
+ };
946
+
947
+
948
+ export type MutationCreatePostsArgs = {
949
+ input?: InputMaybe<CreatePostsInput>;
950
+ };
951
+
952
+
953
+ export type MutationUpdatePostArgs = {
954
+ input?: InputMaybe<UpdatePostInput>;
955
+ };
956
+
957
+
958
+ export type MutationUpdatePostsArgs = {
959
+ input?: InputMaybe<UpdatePostsInput>;
960
+ };
961
+
962
+
963
+ export type MutationDeletePostArgs = {
964
+ input?: InputMaybe<DeletePostInput>;
965
+ };
966
+
967
+
968
+ export type MutationDeletePostsArgs = {
969
+ input?: InputMaybe<DeletePostsInput>;
970
+ };
971
+
972
+
973
+ export type MutationCreate_SessionArgs = {
974
+ input?: InputMaybe<Create_SessionInput>;
975
+ };
976
+
977
+
978
+ export type MutationCreate_SessionsArgs = {
979
+ input?: InputMaybe<Create_SessionsInput>;
980
+ };
981
+
982
+
983
+ export type MutationUpdate_SessionArgs = {
984
+ input?: InputMaybe<Update_SessionInput>;
985
+ };
986
+
987
+
988
+ export type MutationUpdate_SessionsArgs = {
989
+ input?: InputMaybe<Update_SessionsInput>;
990
+ };
991
+
992
+
993
+ export type MutationDelete_SessionArgs = {
994
+ input?: InputMaybe<Delete_SessionInput>;
995
+ };
996
+
997
+
998
+ export type MutationDelete_SessionsArgs = {
999
+ input?: InputMaybe<Delete_SessionsInput>;
1000
+ };
1001
+
1002
+
1003
+ export type MutationCreateRoleArgs = {
1004
+ input?: InputMaybe<CreateRoleInput>;
1005
+ };
1006
+
1007
+
1008
+ export type MutationCreateRolesArgs = {
1009
+ input?: InputMaybe<CreateRolesInput>;
1010
+ };
1011
+
1012
+
1013
+ export type MutationUpdateRoleArgs = {
1014
+ input?: InputMaybe<UpdateRoleInput>;
1015
+ };
1016
+
1017
+
1018
+ export type MutationUpdateRolesArgs = {
1019
+ input?: InputMaybe<UpdateRolesInput>;
1020
+ };
1021
+
1022
+
1023
+ export type MutationDeleteRoleArgs = {
1024
+ input?: InputMaybe<DeleteRoleInput>;
1025
+ };
1026
+
1027
+
1028
+ export type MutationDeleteRolesArgs = {
1029
+ input?: InputMaybe<DeleteRolesInput>;
1030
+ };
1031
+
1032
+
1033
+ export type MutationCreateMutationArgs = {
1034
+ input?: InputMaybe<CreateMutationInput>;
1035
+ };
1036
+
1037
+
1038
+ export type MutationCustomMutationArgs = {
1039
+ input?: InputMaybe<CustomMutationInput>;
1040
+ };
1041
+
1042
+
1043
+ export type MutationSecondCustomMutationArgs = {
1044
+ input?: InputMaybe<SecondCustomMutationInput>;
1045
+ };
1046
+
1047
+
1048
+ export type MutationSignInWithArgs = {
1049
+ input?: InputMaybe<SignInWithInput>;
1050
+ };
1051
+
1052
+
1053
+ export type MutationSignUpWithArgs = {
1054
+ input?: InputMaybe<SignUpWithInput>;
1055
+ };
1056
+
1057
+
1058
+ export type MutationRefreshArgs = {
1059
+ input?: InputMaybe<RefreshInput>;
1060
+ };
1061
+
1062
+
1063
+ export type MutationVerifyChallengeArgs = {
1064
+ input?: InputMaybe<VerifyChallengeInput>;
1065
+ };
1066
+
1067
+ export type CreateUserPayload = {
1068
+ __typename?: 'CreateUserPayload';
1069
+ user?: Maybe<User>;
1070
+ clientMutationId?: Maybe<Scalars['String']['output']>;
1071
+ };
1072
+
1073
+ export type CreateUserInput = {
1074
+ fields?: InputMaybe<UserCreateFieldsInput>;
1075
+ };
1076
+
1077
+ export type CreateUsersInput = {
1078
+ fields: Array<InputMaybe<UserCreateFieldsInput>>;
1079
+ offset?: InputMaybe<Scalars['Int']['input']>;
1080
+ first?: InputMaybe<Scalars['Int']['input']>;
1081
+ };
1082
+
1083
+ export type UpdateUserPayload = {
1084
+ __typename?: 'UpdateUserPayload';
1085
+ user?: Maybe<User>;
1086
+ clientMutationId?: Maybe<Scalars['String']['output']>;
1087
+ };
1088
+
1089
+ export type UpdateUserInput = {
1090
+ id?: InputMaybe<Scalars['ID']['input']>;
1091
+ fields?: InputMaybe<UserUpdateFieldsInput>;
1092
+ };
1093
+
1094
+ /** User class */
1095
+ export type UserUpdateFieldsInput = {
1096
+ name?: InputMaybe<Scalars['String']['input']>;
1097
+ age?: InputMaybe<Scalars['Int']['input']>;
1098
+ acl?: InputMaybe<UserAclObjectUpdateFieldsInput>;
1099
+ createdAt?: InputMaybe<Scalars['Date']['input']>;
1100
+ updatedAt?: InputMaybe<Scalars['Date']['input']>;
1101
+ search?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
1102
+ authentication?: InputMaybe<UserAuthenticationUpdateFieldsInput>;
1103
+ provider?: InputMaybe<AuthenticationProvider>;
1104
+ isOauth?: InputMaybe<Scalars['Boolean']['input']>;
1105
+ email?: InputMaybe<Scalars['Email']['input']>;
1106
+ verifiedEmail?: InputMaybe<Scalars['Boolean']['input']>;
1107
+ role?: InputMaybe<RolePointerInput>;
1108
+ sessions?: InputMaybe<_SessionRelationInput>;
1109
+ };
1110
+
1111
+ export type UserAclObjectUpdateFieldsInput = {
1112
+ users?: InputMaybe<Array<InputMaybe<UserAclObjectUsersAclUpdateFieldsInput>>>;
1113
+ roles?: InputMaybe<Array<InputMaybe<UserAclObjectRolesAclUpdateFieldsInput>>>;
1114
+ };
1115
+
1116
+ export type UserAclObjectUsersAclUpdateFieldsInput = {
1117
+ userId?: InputMaybe<Scalars['String']['input']>;
1118
+ read?: InputMaybe<Scalars['Boolean']['input']>;
1119
+ write?: InputMaybe<Scalars['Boolean']['input']>;
1120
+ };
1121
+
1122
+ export type UserAclObjectRolesAclUpdateFieldsInput = {
1123
+ roleId?: InputMaybe<Scalars['String']['input']>;
1124
+ read?: InputMaybe<Scalars['Boolean']['input']>;
1125
+ write?: InputMaybe<Scalars['Boolean']['input']>;
1126
+ };
1127
+
1128
+ export type UserAuthenticationUpdateFieldsInput = {
1129
+ emailPassword?: InputMaybe<UserAuthenticationEmailPasswordUpdateFieldsInput>;
1130
+ google?: InputMaybe<UserAuthenticationGoogleUpdateFieldsInput>;
1131
+ };
1132
+
1133
+ export type UserAuthenticationEmailPasswordUpdateFieldsInput = {
1134
+ email?: InputMaybe<Scalars['Email']['input']>;
1135
+ password?: InputMaybe<Scalars['String']['input']>;
1136
+ };
1137
+
1138
+ export type UserAuthenticationGoogleUpdateFieldsInput = {
1139
+ email?: InputMaybe<Scalars['Email']['input']>;
1140
+ verifiedEmail?: InputMaybe<Scalars['Boolean']['input']>;
1141
+ idToken?: InputMaybe<Scalars['String']['input']>;
1142
+ };
1143
+
1144
+ export type UpdateUsersInput = {
1145
+ fields?: InputMaybe<UserUpdateFieldsInput>;
1146
+ where?: InputMaybe<UserWhereInput>;
1147
+ offset?: InputMaybe<Scalars['Int']['input']>;
1148
+ first?: InputMaybe<Scalars['Int']['input']>;
1149
+ };
1150
+
1151
+ export type DeleteUserPayload = {
1152
+ __typename?: 'DeleteUserPayload';
1153
+ user?: Maybe<User>;
1154
+ clientMutationId?: Maybe<Scalars['String']['output']>;
1155
+ };
1156
+
1157
+ export type DeleteUserInput = {
1158
+ id?: InputMaybe<Scalars['ID']['input']>;
1159
+ };
1160
+
1161
+ export type DeleteUsersInput = {
1162
+ where?: InputMaybe<UserWhereInput>;
1163
+ };
1164
+
1165
+ export type CreatePostPayload = {
1166
+ __typename?: 'CreatePostPayload';
1167
+ post?: Maybe<Post>;
1168
+ clientMutationId?: Maybe<Scalars['String']['output']>;
1169
+ };
1170
+
1171
+ export type CreatePostInput = {
1172
+ fields?: InputMaybe<PostCreateFieldsInput>;
1173
+ };
1174
+
1175
+ export type CreatePostsInput = {
1176
+ fields: Array<InputMaybe<PostCreateFieldsInput>>;
1177
+ offset?: InputMaybe<Scalars['Int']['input']>;
1178
+ first?: InputMaybe<Scalars['Int']['input']>;
1179
+ };
1180
+
1181
+ export type UpdatePostPayload = {
1182
+ __typename?: 'UpdatePostPayload';
1183
+ post?: Maybe<Post>;
1184
+ clientMutationId?: Maybe<Scalars['String']['output']>;
1185
+ };
1186
+
1187
+ export type UpdatePostInput = {
1188
+ id?: InputMaybe<Scalars['ID']['input']>;
1189
+ fields?: InputMaybe<PostUpdateFieldsInput>;
1190
+ };
1191
+
1192
+ export type PostUpdateFieldsInput = {
1193
+ name?: InputMaybe<Scalars['String']['input']>;
1194
+ test?: InputMaybe<Scalars['File']['input']>;
1195
+ acl?: InputMaybe<PostAclObjectUpdateFieldsInput>;
1196
+ createdAt?: InputMaybe<Scalars['Date']['input']>;
1197
+ updatedAt?: InputMaybe<Scalars['Date']['input']>;
1198
+ search?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
1199
+ };
1200
+
1201
+ export type PostAclObjectUpdateFieldsInput = {
1202
+ users?: InputMaybe<Array<InputMaybe<PostAclObjectUsersAclUpdateFieldsInput>>>;
1203
+ roles?: InputMaybe<Array<InputMaybe<PostAclObjectRolesAclUpdateFieldsInput>>>;
1204
+ };
1205
+
1206
+ export type PostAclObjectUsersAclUpdateFieldsInput = {
1207
+ userId?: InputMaybe<Scalars['String']['input']>;
1208
+ read?: InputMaybe<Scalars['Boolean']['input']>;
1209
+ write?: InputMaybe<Scalars['Boolean']['input']>;
1210
+ };
1211
+
1212
+ export type PostAclObjectRolesAclUpdateFieldsInput = {
1213
+ roleId?: InputMaybe<Scalars['String']['input']>;
1214
+ read?: InputMaybe<Scalars['Boolean']['input']>;
1215
+ write?: InputMaybe<Scalars['Boolean']['input']>;
1216
+ };
1217
+
1218
+ export type UpdatePostsInput = {
1219
+ fields?: InputMaybe<PostUpdateFieldsInput>;
1220
+ where?: InputMaybe<PostWhereInput>;
1221
+ offset?: InputMaybe<Scalars['Int']['input']>;
1222
+ first?: InputMaybe<Scalars['Int']['input']>;
1223
+ };
1224
+
1225
+ export type DeletePostPayload = {
1226
+ __typename?: 'DeletePostPayload';
1227
+ post?: Maybe<Post>;
1228
+ clientMutationId?: Maybe<Scalars['String']['output']>;
1229
+ };
1230
+
1231
+ export type DeletePostInput = {
1232
+ id?: InputMaybe<Scalars['ID']['input']>;
1233
+ };
1234
+
1235
+ export type DeletePostsInput = {
1236
+ where?: InputMaybe<PostWhereInput>;
1237
+ };
1238
+
1239
+ export type Create_SessionPayload = {
1240
+ __typename?: 'Create_SessionPayload';
1241
+ _session?: Maybe<_Session>;
1242
+ clientMutationId?: Maybe<Scalars['String']['output']>;
1243
+ };
1244
+
1245
+ export type Create_SessionInput = {
1246
+ fields?: InputMaybe<_SessionCreateFieldsInput>;
1247
+ };
1248
+
1249
+ export type Create_SessionsInput = {
1250
+ fields: Array<InputMaybe<_SessionCreateFieldsInput>>;
1251
+ offset?: InputMaybe<Scalars['Int']['input']>;
1252
+ first?: InputMaybe<Scalars['Int']['input']>;
1253
+ };
1254
+
1255
+ export type Update_SessionPayload = {
1256
+ __typename?: 'Update_SessionPayload';
1257
+ _session?: Maybe<_Session>;
1258
+ clientMutationId?: Maybe<Scalars['String']['output']>;
1259
+ };
1260
+
1261
+ export type Update_SessionInput = {
1262
+ id?: InputMaybe<Scalars['ID']['input']>;
1263
+ fields?: InputMaybe<_SessionUpdateFieldsInput>;
1264
+ };
1265
+
1266
+ export type _SessionUpdateFieldsInput = {
1267
+ user?: InputMaybe<UserPointerInput>;
1268
+ accessToken?: InputMaybe<Scalars['String']['input']>;
1269
+ accessTokenExpiresAt?: InputMaybe<Scalars['Date']['input']>;
1270
+ refreshToken?: InputMaybe<Scalars['String']['input']>;
1271
+ refreshTokenExpiresAt?: InputMaybe<Scalars['Date']['input']>;
1272
+ acl?: InputMaybe<_SessionAclObjectUpdateFieldsInput>;
1273
+ createdAt?: InputMaybe<Scalars['Date']['input']>;
1274
+ updatedAt?: InputMaybe<Scalars['Date']['input']>;
1275
+ search?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
1276
+ };
1277
+
1278
+ export type _SessionAclObjectUpdateFieldsInput = {
1279
+ users?: InputMaybe<Array<InputMaybe<_SessionAclObjectUsersAclUpdateFieldsInput>>>;
1280
+ roles?: InputMaybe<Array<InputMaybe<_SessionAclObjectRolesAclUpdateFieldsInput>>>;
1281
+ };
1282
+
1283
+ export type _SessionAclObjectUsersAclUpdateFieldsInput = {
1284
+ userId?: InputMaybe<Scalars['String']['input']>;
1285
+ read?: InputMaybe<Scalars['Boolean']['input']>;
1286
+ write?: InputMaybe<Scalars['Boolean']['input']>;
1287
+ };
1288
+
1289
+ export type _SessionAclObjectRolesAclUpdateFieldsInput = {
1290
+ roleId?: InputMaybe<Scalars['String']['input']>;
1291
+ read?: InputMaybe<Scalars['Boolean']['input']>;
1292
+ write?: InputMaybe<Scalars['Boolean']['input']>;
1293
+ };
1294
+
1295
+ export type Update_SessionsInput = {
1296
+ fields?: InputMaybe<_SessionUpdateFieldsInput>;
1297
+ where?: InputMaybe<_SessionWhereInput>;
1298
+ offset?: InputMaybe<Scalars['Int']['input']>;
1299
+ first?: InputMaybe<Scalars['Int']['input']>;
1300
+ };
1301
+
1302
+ export type Delete_SessionPayload = {
1303
+ __typename?: 'Delete_SessionPayload';
1304
+ _session?: Maybe<_Session>;
1305
+ clientMutationId?: Maybe<Scalars['String']['output']>;
1306
+ };
1307
+
1308
+ export type Delete_SessionInput = {
1309
+ id?: InputMaybe<Scalars['ID']['input']>;
1310
+ };
1311
+
1312
+ export type Delete_SessionsInput = {
1313
+ where?: InputMaybe<_SessionWhereInput>;
1314
+ };
1315
+
1316
+ export type CreateRolePayload = {
1317
+ __typename?: 'CreateRolePayload';
1318
+ role?: Maybe<Role>;
1319
+ clientMutationId?: Maybe<Scalars['String']['output']>;
1320
+ };
1321
+
1322
+ export type CreateRoleInput = {
1323
+ fields?: InputMaybe<RoleCreateFieldsInput>;
1324
+ };
1325
+
1326
+ export type CreateRolesInput = {
1327
+ fields: Array<InputMaybe<RoleCreateFieldsInput>>;
1328
+ offset?: InputMaybe<Scalars['Int']['input']>;
1329
+ first?: InputMaybe<Scalars['Int']['input']>;
1330
+ };
1331
+
1332
+ export type UpdateRolePayload = {
1333
+ __typename?: 'UpdateRolePayload';
1334
+ role?: Maybe<Role>;
1335
+ clientMutationId?: Maybe<Scalars['String']['output']>;
1336
+ };
1337
+
1338
+ export type UpdateRoleInput = {
1339
+ id?: InputMaybe<Scalars['ID']['input']>;
1340
+ fields?: InputMaybe<RoleUpdateFieldsInput>;
1341
+ };
1342
+
1343
+ export type RoleUpdateFieldsInput = {
1344
+ name?: InputMaybe<Scalars['String']['input']>;
1345
+ users?: InputMaybe<UserRelationInput>;
1346
+ acl?: InputMaybe<RoleAclObjectUpdateFieldsInput>;
1347
+ createdAt?: InputMaybe<Scalars['Date']['input']>;
1348
+ updatedAt?: InputMaybe<Scalars['Date']['input']>;
1349
+ search?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
1350
+ };
1351
+
1352
+ export type RoleAclObjectUpdateFieldsInput = {
1353
+ users?: InputMaybe<Array<InputMaybe<RoleAclObjectUsersAclUpdateFieldsInput>>>;
1354
+ roles?: InputMaybe<Array<InputMaybe<RoleAclObjectRolesAclUpdateFieldsInput>>>;
1355
+ };
1356
+
1357
+ export type RoleAclObjectUsersAclUpdateFieldsInput = {
1358
+ userId?: InputMaybe<Scalars['String']['input']>;
1359
+ read?: InputMaybe<Scalars['Boolean']['input']>;
1360
+ write?: InputMaybe<Scalars['Boolean']['input']>;
1361
+ };
1362
+
1363
+ export type RoleAclObjectRolesAclUpdateFieldsInput = {
1364
+ roleId?: InputMaybe<Scalars['String']['input']>;
1365
+ read?: InputMaybe<Scalars['Boolean']['input']>;
1366
+ write?: InputMaybe<Scalars['Boolean']['input']>;
1367
+ };
1368
+
1369
+ export type UpdateRolesInput = {
1370
+ fields?: InputMaybe<RoleUpdateFieldsInput>;
1371
+ where?: InputMaybe<RoleWhereInput>;
1372
+ offset?: InputMaybe<Scalars['Int']['input']>;
1373
+ first?: InputMaybe<Scalars['Int']['input']>;
1374
+ };
1375
+
1376
+ export type DeleteRolePayload = {
1377
+ __typename?: 'DeleteRolePayload';
1378
+ role?: Maybe<Role>;
1379
+ clientMutationId?: Maybe<Scalars['String']['output']>;
1380
+ };
1381
+
1382
+ export type DeleteRoleInput = {
1383
+ id?: InputMaybe<Scalars['ID']['input']>;
1384
+ };
1385
+
1386
+ export type DeleteRolesInput = {
1387
+ where?: InputMaybe<RoleWhereInput>;
1388
+ };
1389
+
1390
+ export type CreateMutationInput = {
1391
+ name: Scalars['Int']['input'];
1392
+ };
1393
+
1394
+ export type CustomMutationInput = {
1395
+ a: Scalars['Int']['input'];
1396
+ b: Scalars['Int']['input'];
1397
+ };
1398
+
1399
+ export type SecondCustomMutationInput = {
1400
+ sum?: InputMaybe<SecondCustomMutationSumInput>;
1401
+ };
1402
+
1403
+ export type SecondCustomMutationSumInput = {
1404
+ a: Scalars['Int']['input'];
1405
+ b: Scalars['Int']['input'];
1406
+ };
1407
+
1408
+ export type SignInWithOutput = {
1409
+ __typename?: 'SignInWithOutput';
1410
+ id?: Maybe<Scalars['String']['output']>;
1411
+ accessToken?: Maybe<Scalars['String']['output']>;
1412
+ refreshToken?: Maybe<Scalars['String']['output']>;
1413
+ };
1414
+
1415
+ export type SignInWithInput = {
1416
+ authentication?: InputMaybe<SignInWithAuthenticationInput>;
1417
+ };
1418
+
1419
+ export type SignInWithAuthenticationInput = {
1420
+ emailPassword?: InputMaybe<SignInWithAuthenticationEmailPasswordInput>;
1421
+ google?: InputMaybe<SignInWithAuthenticationGoogleInput>;
1422
+ otp?: InputMaybe<SignInWithAuthenticationOtpInput>;
1423
+ secondaryFactor?: InputMaybe<SecondaryFactor>;
1424
+ };
1425
+
1426
+ export type SignInWithAuthenticationEmailPasswordInput = {
1427
+ email: Scalars['Email']['input'];
1428
+ password: Scalars['String']['input'];
1429
+ };
1430
+
1431
+ export type SignInWithAuthenticationGoogleInput = {
1432
+ authorizationCode: Scalars['String']['input'];
1433
+ codeVerifier: Scalars['String']['input'];
1434
+ };
1435
+
1436
+ export type SignInWithAuthenticationOtpInput = {
1437
+ code?: InputMaybe<Scalars['String']['input']>;
1438
+ };
1439
+
1440
+ export type SignUpWithOutput = {
1441
+ __typename?: 'SignUpWithOutput';
1442
+ id?: Maybe<Scalars['String']['output']>;
1443
+ accessToken: Scalars['String']['output'];
1444
+ refreshToken: Scalars['String']['output'];
1445
+ };
1446
+
1447
+ export type SignUpWithInput = {
1448
+ authentication?: InputMaybe<SignUpWithAuthenticationInput>;
1449
+ };
1450
+
1451
+ export type SignUpWithAuthenticationInput = {
1452
+ emailPassword?: InputMaybe<SignUpWithAuthenticationEmailPasswordInput>;
1453
+ google?: InputMaybe<SignUpWithAuthenticationGoogleInput>;
1454
+ otp?: InputMaybe<SignUpWithAuthenticationOtpInput>;
1455
+ secondaryFactor?: InputMaybe<SecondaryFactor>;
1456
+ };
1457
+
1458
+ export type SignUpWithAuthenticationEmailPasswordInput = {
1459
+ email: Scalars['Email']['input'];
1460
+ password: Scalars['String']['input'];
1461
+ };
1462
+
1463
+ export type SignUpWithAuthenticationGoogleInput = {
1464
+ authorizationCode: Scalars['String']['input'];
1465
+ codeVerifier: Scalars['String']['input'];
1466
+ };
1467
+
1468
+ export type SignUpWithAuthenticationOtpInput = {
1469
+ code?: InputMaybe<Scalars['String']['input']>;
1470
+ };
1471
+
1472
+ export type RefreshSessionOutput = {
1473
+ __typename?: 'RefreshSessionOutput';
1474
+ accessToken: Scalars['String']['output'];
1475
+ refreshToken: Scalars['String']['output'];
1476
+ };
1477
+
1478
+ export type RefreshInput = {
1479
+ accessToken: Scalars['String']['input'];
1480
+ refreshToken: Scalars['String']['input'];
1481
+ };
1482
+
1483
+ export type VerifyChallengeInput = {
1484
+ factor?: InputMaybe<VerifyChallengeFactorInput>;
1485
+ };
1486
+
1487
+ export type VerifyChallengeFactorInput = {
1488
+ otp?: InputMaybe<VerifyChallengeFactorOtpInput>;
1489
+ };
1490
+
1491
+ export type VerifyChallengeFactorOtpInput = {
1492
+ code?: InputMaybe<Scalars['String']['input']>;
1493
+ };
1494
+
1495
+
1496
+
1497
+ export type SdkFunctionWrapper = <T>(action: (requestHeaders?:Record<string, string>) => Promise<T>, operationName: string, operationType?: string, variables?: any) => Promise<T>;
1498
+
1499
+
1500
+ const defaultWrapper: SdkFunctionWrapper = (action, _operationName, _operationType, _variables) => action();
1501
+
1502
+ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = defaultWrapper) {
1503
+ return {
1504
+
1505
+ };
1506
+ }
1507
+ export type Sdk = ReturnType<typeof getSdk>;
1508
+
1509
+ export type WabeSchemaScalars = "Phone"
1510
+
1511
+ export type WabeSchemaEnums = "AuthenticationProvider" | "SecondaryFactor"
1512
+
1513
+ export type WabeSchemaTypes = {
1514
+ User: User,
1515
+ Post: Post,
1516
+ _Session: _Session,
1517
+ Role: Role
1518
+ }