@literary-universe/sdk 0.0.0-stage → 0.2.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,821 @@
1
+ import type { JsonValue } from './json.js';
2
+ /** Internal type. DO NOT USE DIRECTLY. */
3
+ type Exact<T extends {
4
+ [key: string]: unknown;
5
+ }> = {
6
+ [K in keyof T]: T[K];
7
+ };
8
+ /** Internal type. DO NOT USE DIRECTLY. */
9
+ export type Incremental<T> = T | {
10
+ [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never;
11
+ };
12
+ export type ApiCredentialKind = 'PERSONAL_API_KEY' | 'ORGANIZATION_API_KEY' | 'SESSION';
13
+ export type AuthorWorkState = 'DRAFT' | 'SCHEDULED' | 'PUBLISHED';
14
+ export type AuthorUniverseTranslationInput = {
15
+ title?: string | null | undefined;
16
+ description?: string | null | undefined;
17
+ };
18
+ export type AuthorDraftSaveInput = {
19
+ id: string | number;
20
+ language?: string | null | undefined;
21
+ expectedVersion: string;
22
+ operationId: string | number;
23
+ content: JsonValue;
24
+ };
25
+ export type AuthorChapterCreateInput = {
26
+ storyId: string | number;
27
+ operationId: string | number;
28
+ title?: string | null | undefined;
29
+ content?: JsonValue | null | undefined;
30
+ isAIGenerated?: boolean | null | undefined;
31
+ };
32
+ export type AuthorPublicationAudience = 'BETA' | 'READERS';
33
+ export type AuthorChapterPublishInput = {
34
+ id: string | number;
35
+ language?: string | null | undefined;
36
+ expectedVersion: string;
37
+ operationId: string | number;
38
+ publishAt?: string | null | undefined;
39
+ audience?: AuthorPublicationAudience | null | undefined;
40
+ };
41
+ export type AuthorStoryVisibility = 'PUBLIC' | 'PRIVATE';
42
+ export type AuthorChapterRenameInput = {
43
+ id: string | number;
44
+ /** A translation's language renames that edition; the original otherwise. */
45
+ language?: string | null | undefined;
46
+ title: string;
47
+ };
48
+ export type AuthorChapterRemoveInput = {
49
+ id: string | number;
50
+ };
51
+ export type AuthorChapterReorderInput = {
52
+ storyId: string | number;
53
+ /** Every chapter of the story, each once, in the new reading order. */
54
+ chapterIds: Array<string | number>;
55
+ };
56
+ /** Only the given fields change. */
57
+ export type AuthorUniverseUpdateInput = {
58
+ title?: string | null | undefined;
59
+ /** The address segment: lowercase letters, digits and single hyphens. */
60
+ slug?: string | null | undefined;
61
+ description?: string | null | undefined;
62
+ /** A genre value, as the genre list names it. */
63
+ genre?: string | null | undefined;
64
+ rating?: string | null | undefined;
65
+ license?: string | null | undefined;
66
+ language?: string | null | undefined;
67
+ };
68
+ /** A field by its title; a new title adds a text field. */
69
+ export type AuthorEncyclopediaTextFieldInput = {
70
+ title: string;
71
+ text: string;
72
+ };
73
+ /** A date like 1402-03-01, or HH:MM in a clock field. */
74
+ export type AuthorEncyclopediaTimeFieldInput = {
75
+ title: string;
76
+ value: string;
77
+ };
78
+ /** Only the given values change. Entries are named by their names. */
79
+ export type AuthorEncyclopediaEntryChangesInput = {
80
+ name?: string | null | undefined;
81
+ pronunciation?: string | null | undefined;
82
+ tags?: Array<string> | null | undefined;
83
+ categoryTitle?: string | null | undefined;
84
+ /** null removes the parent. */
85
+ parentName?: string | null | undefined;
86
+ relatedAdd?: Array<string> | null | undefined;
87
+ relatedRemove?: Array<string> | null | undefined;
88
+ summary?: string | null | undefined;
89
+ fields?: Array<AuthorEncyclopediaTextFieldInput> | null | undefined;
90
+ timeFields?: Array<AuthorEncyclopediaTimeFieldInput> | null | undefined;
91
+ };
92
+ export type AuthorEncyclopediaEntryCreateInput = {
93
+ universeId: string | number;
94
+ name: string;
95
+ /** A category available in the universe, by title. */
96
+ categoryTitle: string;
97
+ pronunciation?: string | null | undefined;
98
+ tags?: Array<string> | null | undefined;
99
+ parentName?: string | null | undefined;
100
+ relatedAdd?: Array<string> | null | undefined;
101
+ summary?: string | null | undefined;
102
+ fields?: Array<AuthorEncyclopediaTextFieldInput> | null | undefined;
103
+ timeFields?: Array<AuthorEncyclopediaTimeFieldInput> | null | undefined;
104
+ };
105
+ export type AuthorEncyclopediaFieldTranslationInput = {
106
+ /** The field's title in the original language. */
107
+ title: string;
108
+ translatedTitle?: string | null | undefined;
109
+ text: string;
110
+ };
111
+ export type AuthorEncyclopediaEntryTranslationInput = {
112
+ id: string | number;
113
+ /** A language the universe is translated into. */
114
+ language: string;
115
+ name?: string | null | undefined;
116
+ pronunciation?: string | null | undefined;
117
+ summary?: string | null | undefined;
118
+ fields?: Array<AuthorEncyclopediaFieldTranslationInput> | null | undefined;
119
+ };
120
+ export type AuthorSeriesSaveInput = {
121
+ universeId: string | number;
122
+ /** Leave out to create a series. */
123
+ seriesId?: string | number | null | undefined;
124
+ /** The version read with the series; 0 for a new one. */
125
+ expectedVersion: number;
126
+ title: string;
127
+ /** Stories of the universe, not fan fiction, in reading order. */
128
+ storyIds: Array<string | number>;
129
+ };
130
+ /** Only the given fields change. */
131
+ export type AuthorStoryUpdateInput = {
132
+ title?: string | null | undefined;
133
+ description?: string | null | undefined;
134
+ /** Genre values, as the genre list names them. */
135
+ genres?: Array<string> | null | undefined;
136
+ tags?: Array<string> | null | undefined;
137
+ rating?: string | null | undefined;
138
+ license?: string | null | undefined;
139
+ language?: string | null | undefined;
140
+ /** Another universe needs edit rights on it; null makes the story standalone. */
141
+ universeId?: string | number | null | undefined;
142
+ };
143
+ export type LuIdentityQueryVariables = Exact<{
144
+ [key: string]: never;
145
+ }>;
146
+ export type LuIdentityQuery = {
147
+ result: {
148
+ version: string;
149
+ kind: ApiCredentialKind;
150
+ userId: string | null;
151
+ organizationId: string | null;
152
+ credentialId: string | null;
153
+ scopes: Array<string>;
154
+ expiresAt: string | null;
155
+ deploymentUrl: string;
156
+ environment: string;
157
+ resourceRestrictions: {
158
+ universeIds: Array<string>;
159
+ storyIds: Array<string>;
160
+ } | null;
161
+ limits: {
162
+ defaultPageSize: number;
163
+ maxPageSize: number;
164
+ maxRequestBytes: number;
165
+ maxDraftBytes: number;
166
+ maxResponseBytes: number;
167
+ };
168
+ };
169
+ };
170
+ export type LuProfileQueryVariables = Exact<{
171
+ [key: string]: never;
172
+ }>;
173
+ export type LuProfileQuery = {
174
+ result: {
175
+ userId: string | null;
176
+ username: string | null;
177
+ };
178
+ };
179
+ export type LuStoriesQueryVariables = Exact<{
180
+ first?: number | null | undefined;
181
+ after?: string | null | undefined;
182
+ }>;
183
+ export type LuStoriesQuery = {
184
+ result: {
185
+ nodes: Array<{
186
+ id: string;
187
+ title: string;
188
+ slug: string | null;
189
+ language: string;
190
+ universeId: string | null;
191
+ organizationId: string | null;
192
+ createdAt: string | null;
193
+ updatedAt: string | null;
194
+ publishedAt: string | null;
195
+ privateAt: string | null;
196
+ state: AuthorWorkState;
197
+ }>;
198
+ pageInfo: {
199
+ endCursor: string | null;
200
+ hasNextPage: boolean;
201
+ };
202
+ };
203
+ };
204
+ export type LuStoryQueryVariables = Exact<{
205
+ id: string | number;
206
+ }>;
207
+ export type LuStoryQuery = {
208
+ result: {
209
+ id: string;
210
+ title: string;
211
+ slug: string | null;
212
+ language: string;
213
+ universeId: string | null;
214
+ organizationId: string | null;
215
+ createdAt: string | null;
216
+ updatedAt: string | null;
217
+ publishedAt: string | null;
218
+ privateAt: string | null;
219
+ state: AuthorWorkState;
220
+ description: string | null;
221
+ authorsNotes: JsonValue | null;
222
+ } | null;
223
+ };
224
+ export type LuUniversesQueryVariables = Exact<{
225
+ first?: number | null | undefined;
226
+ after?: string | null | undefined;
227
+ }>;
228
+ export type LuUniversesQuery = {
229
+ result: {
230
+ nodes: Array<{
231
+ id: string;
232
+ title: string;
233
+ slug: string | null;
234
+ language: string;
235
+ organizationId: string | null;
236
+ createdAt: string | null;
237
+ updatedAt: string | null;
238
+ publishedAt: string | null;
239
+ privateAt: string | null;
240
+ state: AuthorWorkState;
241
+ }>;
242
+ pageInfo: {
243
+ endCursor: string | null;
244
+ hasNextPage: boolean;
245
+ };
246
+ };
247
+ };
248
+ export type LuUniverseQueryVariables = Exact<{
249
+ id: string | number;
250
+ }>;
251
+ export type LuUniverseQuery = {
252
+ result: {
253
+ id: string;
254
+ title: string;
255
+ slug: string | null;
256
+ language: string;
257
+ organizationId: string | null;
258
+ createdAt: string | null;
259
+ updatedAt: string | null;
260
+ publishedAt: string | null;
261
+ privateAt: string | null;
262
+ state: AuthorWorkState;
263
+ description: string | null;
264
+ translations: Array<{
265
+ language: string;
266
+ title: string;
267
+ description: string | null;
268
+ revision: number;
269
+ }>;
270
+ } | null;
271
+ };
272
+ export type LuChaptersQueryVariables = Exact<{
273
+ storyId: string | number;
274
+ language?: string | null | undefined;
275
+ first?: number | null | undefined;
276
+ after?: string | null | undefined;
277
+ }>;
278
+ export type LuChaptersQuery = {
279
+ result: {
280
+ nodes: Array<{
281
+ id: string;
282
+ storyId: string;
283
+ sequence: number;
284
+ title: string;
285
+ language: string;
286
+ hasDraft: boolean;
287
+ updatedAt: string | null;
288
+ publishedAt: string | null;
289
+ }>;
290
+ pageInfo: {
291
+ endCursor: string | null;
292
+ hasNextPage: boolean;
293
+ };
294
+ };
295
+ };
296
+ export type LuDraftQueryVariables = Exact<{
297
+ id: string | number;
298
+ language?: string | null | undefined;
299
+ }>;
300
+ export type LuDraftQuery = {
301
+ result: {
302
+ id: string;
303
+ storyId: string;
304
+ sequence: number;
305
+ title: string;
306
+ language: string;
307
+ version: string;
308
+ updatedAt: string | null;
309
+ publishedAt: string | null;
310
+ content: JsonValue | null;
311
+ html: string | null;
312
+ text: string | null;
313
+ oldHtml: string | null;
314
+ markdown: string | null;
315
+ authorsNotes: JsonValue | null;
316
+ translatorsNotes: JsonValue | null;
317
+ counters: JsonValue | null;
318
+ } | null;
319
+ };
320
+ export type LuSaveDraftMutationVariables = Exact<{
321
+ input: AuthorDraftSaveInput;
322
+ }>;
323
+ export type LuSaveDraftMutation = {
324
+ result: {
325
+ version: string;
326
+ recoveryId: string;
327
+ warnings: Array<{
328
+ code: string;
329
+ path: string;
330
+ message: string;
331
+ }>;
332
+ draft: {
333
+ id: string;
334
+ storyId: string;
335
+ sequence: number;
336
+ title: string;
337
+ language: string;
338
+ version: string;
339
+ updatedAt: string | null;
340
+ publishedAt: string | null;
341
+ content: JsonValue | null;
342
+ html: string | null;
343
+ text: string | null;
344
+ oldHtml: string | null;
345
+ markdown: string | null;
346
+ authorsNotes: JsonValue | null;
347
+ translatorsNotes: JsonValue | null;
348
+ counters: JsonValue | null;
349
+ };
350
+ };
351
+ };
352
+ export type LuValidateDraftQueryVariables = Exact<{
353
+ input: AuthorDraftSaveInput;
354
+ }>;
355
+ export type LuValidateDraftQuery = {
356
+ result: {
357
+ version: string;
358
+ warnings: Array<{
359
+ code: string;
360
+ path: string;
361
+ message: string;
362
+ }>;
363
+ };
364
+ };
365
+ export type LuDraftRecoveryQueryVariables = Exact<{
366
+ id: string | number;
367
+ recoveryId: string | number;
368
+ }>;
369
+ export type LuDraftRecoveryQuery = {
370
+ result: {
371
+ id: string;
372
+ storyId: string;
373
+ sequence: number;
374
+ title: string;
375
+ language: string;
376
+ version: string;
377
+ updatedAt: string | null;
378
+ publishedAt: string | null;
379
+ content: JsonValue | null;
380
+ html: string | null;
381
+ text: string | null;
382
+ oldHtml: string | null;
383
+ markdown: string | null;
384
+ authorsNotes: JsonValue | null;
385
+ translatorsNotes: JsonValue | null;
386
+ counters: JsonValue | null;
387
+ } | null;
388
+ };
389
+ export type LuCreateChapterMutationVariables = Exact<{
390
+ input: AuthorChapterCreateInput;
391
+ }>;
392
+ export type LuCreateChapterMutation = {
393
+ result: {
394
+ id: string;
395
+ storyId: string;
396
+ language: string;
397
+ sequence: number;
398
+ title: string;
399
+ version: string;
400
+ warnings: Array<{
401
+ code: string;
402
+ path: string;
403
+ message: string;
404
+ }>;
405
+ };
406
+ };
407
+ export type LuPublishChapterMutationVariables = Exact<{
408
+ input: AuthorChapterPublishInput;
409
+ }>;
410
+ export type LuPublishChapterMutation = {
411
+ result: {
412
+ id: string;
413
+ storyId: string;
414
+ language: string;
415
+ revisionId: string;
416
+ version: string;
417
+ audience: AuthorPublicationAudience;
418
+ publishedAt: string;
419
+ chapterPublishedAt: string | null;
420
+ warnings: Array<{
421
+ code: string;
422
+ path: string;
423
+ message: string;
424
+ }>;
425
+ };
426
+ };
427
+ export type LuCreateUniverseTranslationMutationVariables = Exact<{
428
+ universeId: string | number;
429
+ language: string;
430
+ input?: AuthorUniverseTranslationInput | null | undefined;
431
+ }>;
432
+ export type LuCreateUniverseTranslationMutation = {
433
+ result: {
434
+ created: boolean;
435
+ translation: {
436
+ language: string;
437
+ title: string;
438
+ description: string | null;
439
+ revision: number;
440
+ };
441
+ };
442
+ };
443
+ export type LuUpdateUniverseTranslationMutationVariables = Exact<{
444
+ universeId: string | number;
445
+ language: string;
446
+ expectedRevision: number;
447
+ input: AuthorUniverseTranslationInput;
448
+ }>;
449
+ export type LuUpdateUniverseTranslationMutation = {
450
+ result: {
451
+ language: string;
452
+ title: string;
453
+ description: string | null;
454
+ revision: number;
455
+ };
456
+ };
457
+ export type LuUpdateStoryMutationVariables = Exact<{
458
+ storyId: string | number;
459
+ input: AuthorStoryUpdateInput;
460
+ }>;
461
+ export type LuUpdateStoryMutation = {
462
+ result: {
463
+ id: string;
464
+ title: string;
465
+ slug: string | null;
466
+ language: string;
467
+ universeId: string | null;
468
+ organizationId: string | null;
469
+ createdAt: string | null;
470
+ updatedAt: string | null;
471
+ publishedAt: string | null;
472
+ privateAt: string | null;
473
+ state: AuthorWorkState;
474
+ };
475
+ };
476
+ export type LuSetStoryVisibilityMutationVariables = Exact<{
477
+ storyId: string | number;
478
+ visibility: AuthorStoryVisibility;
479
+ }>;
480
+ export type LuSetStoryVisibilityMutation = {
481
+ result: {
482
+ id: string;
483
+ title: string;
484
+ slug: string | null;
485
+ language: string;
486
+ universeId: string | null;
487
+ organizationId: string | null;
488
+ createdAt: string | null;
489
+ updatedAt: string | null;
490
+ publishedAt: string | null;
491
+ privateAt: string | null;
492
+ state: AuthorWorkState;
493
+ };
494
+ };
495
+ export type LuRenameChapterMutationVariables = Exact<{
496
+ input: AuthorChapterRenameInput;
497
+ }>;
498
+ export type LuRenameChapterMutation = {
499
+ result: {
500
+ id: string;
501
+ storyId: string;
502
+ sequence: number;
503
+ title: string;
504
+ language: string;
505
+ hasDraft: boolean;
506
+ updatedAt: string | null;
507
+ publishedAt: string | null;
508
+ };
509
+ };
510
+ export type LuRemoveChapterMutationVariables = Exact<{
511
+ input: AuthorChapterRemoveInput;
512
+ }>;
513
+ export type LuRemoveChapterMutation = {
514
+ result: {
515
+ id: string;
516
+ storyId: string;
517
+ };
518
+ };
519
+ export type LuReorderChaptersMutationVariables = Exact<{
520
+ input: AuthorChapterReorderInput;
521
+ }>;
522
+ export type LuReorderChaptersMutation = {
523
+ result: {
524
+ storyId: string;
525
+ chapterIds: Array<string>;
526
+ };
527
+ };
528
+ export type LuUpdateUniverseMutationVariables = Exact<{
529
+ universeId: string | number;
530
+ input: AuthorUniverseUpdateInput;
531
+ }>;
532
+ export type LuUpdateUniverseMutation = {
533
+ result: {
534
+ id: string;
535
+ title: string;
536
+ slug: string | null;
537
+ language: string;
538
+ organizationId: string | null;
539
+ createdAt: string | null;
540
+ updatedAt: string | null;
541
+ publishedAt: string | null;
542
+ privateAt: string | null;
543
+ state: AuthorWorkState;
544
+ };
545
+ };
546
+ export type LuEncyclopediaEntriesQueryVariables = Exact<{
547
+ universeId: string | number;
548
+ first?: number | null | undefined;
549
+ after?: string | null | undefined;
550
+ }>;
551
+ export type LuEncyclopediaEntriesQuery = {
552
+ result: {
553
+ nodes: Array<{
554
+ id: string;
555
+ universeId: string;
556
+ name: string;
557
+ categoryId: string;
558
+ categoryTitle: string | null;
559
+ language: string;
560
+ wip: boolean;
561
+ publishedAt: string | null;
562
+ updatedAt: string | null;
563
+ translations: Array<string>;
564
+ }>;
565
+ pageInfo: {
566
+ endCursor: string | null;
567
+ hasNextPage: boolean;
568
+ };
569
+ };
570
+ };
571
+ export type LuEncyclopediaEntryQueryVariables = Exact<{
572
+ id: string | number;
573
+ language?: string | null | undefined;
574
+ }>;
575
+ export type LuEncyclopediaEntryQuery = {
576
+ result: {
577
+ id: string;
578
+ universeId: string;
579
+ name: string;
580
+ categoryId: string;
581
+ categoryTitle: string | null;
582
+ language: string;
583
+ wip: boolean;
584
+ publishedAt: string | null;
585
+ updatedAt: string | null;
586
+ translations: Array<string>;
587
+ pronunciation: string | null;
588
+ tags: Array<string>;
589
+ summary: string | null;
590
+ parent: {
591
+ id: string | null;
592
+ name: string;
593
+ } | null;
594
+ related: Array<{
595
+ id: string | null;
596
+ name: string;
597
+ }>;
598
+ fields: Array<{
599
+ id: string;
600
+ title: string;
601
+ type: string;
602
+ private: boolean;
603
+ text: string | null;
604
+ }>;
605
+ } | null;
606
+ };
607
+ export type LuCreateEncyclopediaEntryMutationVariables = Exact<{
608
+ input: AuthorEncyclopediaEntryCreateInput;
609
+ }>;
610
+ export type LuCreateEncyclopediaEntryMutation = {
611
+ result: {
612
+ id: string;
613
+ universeId: string;
614
+ name: string;
615
+ categoryId: string;
616
+ categoryTitle: string | null;
617
+ language: string;
618
+ wip: boolean;
619
+ publishedAt: string | null;
620
+ updatedAt: string | null;
621
+ translations: Array<string>;
622
+ pronunciation: string | null;
623
+ tags: Array<string>;
624
+ summary: string | null;
625
+ parent: {
626
+ id: string | null;
627
+ name: string;
628
+ } | null;
629
+ related: Array<{
630
+ id: string | null;
631
+ name: string;
632
+ }>;
633
+ fields: Array<{
634
+ id: string;
635
+ title: string;
636
+ type: string;
637
+ private: boolean;
638
+ text: string | null;
639
+ }>;
640
+ };
641
+ };
642
+ export type LuUpdateEncyclopediaEntryMutationVariables = Exact<{
643
+ id: string | number;
644
+ changes: AuthorEncyclopediaEntryChangesInput;
645
+ }>;
646
+ export type LuUpdateEncyclopediaEntryMutation = {
647
+ result: {
648
+ id: string;
649
+ universeId: string;
650
+ name: string;
651
+ categoryId: string;
652
+ categoryTitle: string | null;
653
+ language: string;
654
+ wip: boolean;
655
+ publishedAt: string | null;
656
+ updatedAt: string | null;
657
+ translations: Array<string>;
658
+ pronunciation: string | null;
659
+ tags: Array<string>;
660
+ summary: string | null;
661
+ parent: {
662
+ id: string | null;
663
+ name: string;
664
+ } | null;
665
+ related: Array<{
666
+ id: string | null;
667
+ name: string;
668
+ }>;
669
+ fields: Array<{
670
+ id: string;
671
+ title: string;
672
+ type: string;
673
+ private: boolean;
674
+ text: string | null;
675
+ }>;
676
+ };
677
+ };
678
+ export type LuTranslateEncyclopediaEntryMutationVariables = Exact<{
679
+ input: AuthorEncyclopediaEntryTranslationInput;
680
+ }>;
681
+ export type LuTranslateEncyclopediaEntryMutation = {
682
+ result: {
683
+ id: string;
684
+ universeId: string;
685
+ name: string;
686
+ categoryId: string;
687
+ categoryTitle: string | null;
688
+ language: string;
689
+ wip: boolean;
690
+ publishedAt: string | null;
691
+ updatedAt: string | null;
692
+ translations: Array<string>;
693
+ pronunciation: string | null;
694
+ tags: Array<string>;
695
+ summary: string | null;
696
+ parent: {
697
+ id: string | null;
698
+ name: string;
699
+ } | null;
700
+ related: Array<{
701
+ id: string | null;
702
+ name: string;
703
+ }>;
704
+ fields: Array<{
705
+ id: string;
706
+ title: string;
707
+ type: string;
708
+ private: boolean;
709
+ text: string | null;
710
+ }>;
711
+ };
712
+ };
713
+ export type LuSetEncyclopediaEntryPublicationMutationVariables = Exact<{
714
+ id: string | number;
715
+ published: boolean;
716
+ }>;
717
+ export type LuSetEncyclopediaEntryPublicationMutation = {
718
+ result: {
719
+ id: string;
720
+ universeId: string;
721
+ name: string;
722
+ categoryId: string;
723
+ categoryTitle: string | null;
724
+ language: string;
725
+ wip: boolean;
726
+ publishedAt: string | null;
727
+ updatedAt: string | null;
728
+ translations: Array<string>;
729
+ pronunciation: string | null;
730
+ tags: Array<string>;
731
+ summary: string | null;
732
+ parent: {
733
+ id: string | null;
734
+ name: string;
735
+ } | null;
736
+ related: Array<{
737
+ id: string | null;
738
+ name: string;
739
+ }>;
740
+ fields: Array<{
741
+ id: string;
742
+ title: string;
743
+ type: string;
744
+ private: boolean;
745
+ text: string | null;
746
+ }>;
747
+ };
748
+ };
749
+ export type LuDeleteEncyclopediaEntryMutationVariables = Exact<{
750
+ id: string | number;
751
+ }>;
752
+ export type LuDeleteEncyclopediaEntryMutation = {
753
+ result: {
754
+ id: string;
755
+ universeId: string;
756
+ };
757
+ };
758
+ export type LuSeriesQueryVariables = Exact<{
759
+ universeId: string | number;
760
+ }>;
761
+ export type LuSeriesQuery = {
762
+ result: Array<{
763
+ id: string;
764
+ universeId: string;
765
+ title: string;
766
+ version: number;
767
+ storyIds: Array<string>;
768
+ updatedAt: string | null;
769
+ }>;
770
+ };
771
+ export type LuSaveSeriesMutationVariables = Exact<{
772
+ input: AuthorSeriesSaveInput;
773
+ }>;
774
+ export type LuSaveSeriesMutation = {
775
+ result: {
776
+ id: string;
777
+ universeId: string;
778
+ title: string;
779
+ version: number;
780
+ storyIds: Array<string>;
781
+ updatedAt: string | null;
782
+ };
783
+ };
784
+ export type LuImagePolicyQueryVariables = Exact<{
785
+ [key: string]: never;
786
+ }>;
787
+ export type LuImagePolicyQuery = {
788
+ result: JsonValue;
789
+ };
790
+ export declare const LuIdentityDocument: "query LuIdentity {\n result: apiIdentity {\n version\n kind\n userId\n organizationId\n credentialId\n scopes\n expiresAt\n resourceRestrictions {\n universeIds\n storyIds\n }\n deploymentUrl\n environment\n limits {\n defaultPageSize\n maxPageSize\n maxRequestBytes\n maxDraftBytes\n maxResponseBytes\n }\n }\n}";
791
+ export declare const LuProfileDocument: "query LuProfile {\n result: apiIdentity {\n userId\n username\n }\n}";
792
+ export declare const LuStoriesDocument: "query LuStories($first: Int, $after: String) {\n result: authorStories(first: $first, after: $after) {\n nodes {\n id\n title\n slug\n language\n universeId\n organizationId\n createdAt\n updatedAt\n publishedAt\n privateAt\n state\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n}";
793
+ export declare const LuStoryDocument: "query LuStory($id: ID!) {\n result: authorStory(id: $id) {\n id\n title\n slug\n language\n universeId\n organizationId\n createdAt\n updatedAt\n publishedAt\n privateAt\n state\n description\n authorsNotes\n }\n}";
794
+ export declare const LuUniversesDocument: "query LuUniverses($first: Int, $after: String) {\n result: authorUniverses(first: $first, after: $after) {\n nodes {\n id\n title\n slug\n language\n organizationId\n createdAt\n updatedAt\n publishedAt\n privateAt\n state\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n}";
795
+ export declare const LuUniverseDocument: "query LuUniverse($id: ID!) {\n result: authorUniverse(id: $id) {\n id\n title\n slug\n language\n organizationId\n createdAt\n updatedAt\n publishedAt\n privateAt\n state\n description\n translations {\n language\n title\n description\n revision\n }\n }\n}";
796
+ export declare const LuChaptersDocument: "query LuChapters($storyId: ID!, $language: Locale, $first: Int, $after: String) {\n result: authorChapters(\n storyId: $storyId\n language: $language\n first: $first\n after: $after\n ) {\n nodes {\n id\n storyId\n sequence\n title\n language\n hasDraft\n updatedAt\n publishedAt\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n}";
797
+ export declare const LuDraftDocument: "query LuDraft($id: ID!, $language: Locale) {\n result: authorChapterDraft(id: $id, language: $language) {\n id\n storyId\n sequence\n title\n language\n version\n updatedAt\n publishedAt\n content\n html\n text\n oldHtml\n markdown\n authorsNotes\n translatorsNotes\n counters\n }\n}";
798
+ export declare const LuSaveDraftDocument: "mutation LuSaveDraft($input: AuthorDraftSaveInput!) {\n result: authorSaveChapterDraft(input: $input) {\n version\n recoveryId\n warnings {\n code\n path\n message\n }\n draft {\n id\n storyId\n sequence\n title\n language\n version\n updatedAt\n publishedAt\n content\n html\n text\n oldHtml\n markdown\n authorsNotes\n translatorsNotes\n counters\n }\n }\n}";
799
+ export declare const LuValidateDraftDocument: "query LuValidateDraft($input: AuthorDraftSaveInput!) {\n result: authorValidateChapterDraft(input: $input) {\n version\n warnings {\n code\n path\n message\n }\n }\n}";
800
+ export declare const LuDraftRecoveryDocument: "query LuDraftRecovery($id: ID!, $recoveryId: ID!) {\n result: authorChapterDraftRecovery(id: $id, recoveryId: $recoveryId) {\n id\n storyId\n sequence\n title\n language\n version\n updatedAt\n publishedAt\n content\n html\n text\n oldHtml\n markdown\n authorsNotes\n translatorsNotes\n counters\n }\n}";
801
+ export declare const LuCreateChapterDocument: "mutation LuCreateChapter($input: AuthorChapterCreateInput!) {\n result: authorCreateChapter(input: $input) {\n id\n storyId\n language\n sequence\n title\n version\n warnings {\n code\n path\n message\n }\n }\n}";
802
+ export declare const LuPublishChapterDocument: "mutation LuPublishChapter($input: AuthorChapterPublishInput!) {\n result: authorPublishChapter(input: $input) {\n id\n storyId\n language\n revisionId\n version\n audience\n publishedAt\n chapterPublishedAt\n warnings {\n code\n path\n message\n }\n }\n}";
803
+ export declare const LuCreateUniverseTranslationDocument: "mutation LuCreateUniverseTranslation($universeId: ID!, $language: Locale!, $input: AuthorUniverseTranslationInput) {\n result: createAuthorUniverseTranslation(\n universeId: $universeId\n language: $language\n input: $input\n ) {\n created\n translation {\n language\n title\n description\n revision\n }\n }\n}";
804
+ export declare const LuUpdateUniverseTranslationDocument: "mutation LuUpdateUniverseTranslation($universeId: ID!, $language: Locale!, $expectedRevision: Int!, $input: AuthorUniverseTranslationInput!) {\n result: updateAuthorUniverseTranslation(\n universeId: $universeId\n language: $language\n expectedRevision: $expectedRevision\n input: $input\n ) {\n language\n title\n description\n revision\n }\n}";
805
+ export declare const LuUpdateStoryDocument: "mutation LuUpdateStory($storyId: ID!, $input: AuthorStoryUpdateInput!) {\n result: updateAuthorStory(storyId: $storyId, input: $input) {\n id\n title\n slug\n language\n universeId\n organizationId\n createdAt\n updatedAt\n publishedAt\n privateAt\n state\n }\n}";
806
+ export declare const LuSetStoryVisibilityDocument: "mutation LuSetStoryVisibility($storyId: ID!, $visibility: AuthorStoryVisibility!) {\n result: setAuthorStoryVisibility(storyId: $storyId, visibility: $visibility) {\n id\n title\n slug\n language\n universeId\n organizationId\n createdAt\n updatedAt\n publishedAt\n privateAt\n state\n }\n}";
807
+ export declare const LuRenameChapterDocument: "mutation LuRenameChapter($input: AuthorChapterRenameInput!) {\n result: renameAuthorChapter(input: $input) {\n id\n storyId\n sequence\n title\n language\n hasDraft\n updatedAt\n publishedAt\n }\n}";
808
+ export declare const LuRemoveChapterDocument: "mutation LuRemoveChapter($input: AuthorChapterRemoveInput!) {\n result: removeAuthorChapter(input: $input) {\n id\n storyId\n }\n}";
809
+ export declare const LuReorderChaptersDocument: "mutation LuReorderChapters($input: AuthorChapterReorderInput!) {\n result: reorderAuthorChapters(input: $input) {\n storyId\n chapterIds\n }\n}";
810
+ export declare const LuUpdateUniverseDocument: "mutation LuUpdateUniverse($universeId: ID!, $input: AuthorUniverseUpdateInput!) {\n result: updateAuthorUniverse(universeId: $universeId, input: $input) {\n id\n title\n slug\n language\n organizationId\n createdAt\n updatedAt\n publishedAt\n privateAt\n state\n }\n}";
811
+ export declare const LuEncyclopediaEntriesDocument: "query LuEncyclopediaEntries($universeId: ID!, $first: Int, $after: String) {\n result: authorEncyclopediaEntries(\n universeId: $universeId\n first: $first\n after: $after\n ) {\n nodes {\n id\n universeId\n name\n categoryId\n categoryTitle\n language\n wip\n publishedAt\n updatedAt\n translations\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n}";
812
+ export declare const LuEncyclopediaEntryDocument: "query LuEncyclopediaEntry($id: ID!, $language: Locale) {\n result: authorEncyclopediaEntry(id: $id, language: $language) {\n id\n universeId\n name\n categoryId\n categoryTitle\n language\n wip\n publishedAt\n updatedAt\n translations\n pronunciation\n tags\n summary\n parent {\n id\n name\n }\n related {\n id\n name\n }\n fields {\n id\n title\n type\n private\n text\n }\n }\n}";
813
+ export declare const LuCreateEncyclopediaEntryDocument: "mutation LuCreateEncyclopediaEntry($input: AuthorEncyclopediaEntryCreateInput!) {\n result: createAuthorEncyclopediaEntry(input: $input) {\n id\n universeId\n name\n categoryId\n categoryTitle\n language\n wip\n publishedAt\n updatedAt\n translations\n pronunciation\n tags\n summary\n parent {\n id\n name\n }\n related {\n id\n name\n }\n fields {\n id\n title\n type\n private\n text\n }\n }\n}";
814
+ export declare const LuUpdateEncyclopediaEntryDocument: "mutation LuUpdateEncyclopediaEntry($id: ID!, $changes: AuthorEncyclopediaEntryChangesInput!) {\n result: updateAuthorEncyclopediaEntry(id: $id, changes: $changes) {\n id\n universeId\n name\n categoryId\n categoryTitle\n language\n wip\n publishedAt\n updatedAt\n translations\n pronunciation\n tags\n summary\n parent {\n id\n name\n }\n related {\n id\n name\n }\n fields {\n id\n title\n type\n private\n text\n }\n }\n}";
815
+ export declare const LuTranslateEncyclopediaEntryDocument: "mutation LuTranslateEncyclopediaEntry($input: AuthorEncyclopediaEntryTranslationInput!) {\n result: translateAuthorEncyclopediaEntry(input: $input) {\n id\n universeId\n name\n categoryId\n categoryTitle\n language\n wip\n publishedAt\n updatedAt\n translations\n pronunciation\n tags\n summary\n parent {\n id\n name\n }\n related {\n id\n name\n }\n fields {\n id\n title\n type\n private\n text\n }\n }\n}";
816
+ export declare const LuSetEncyclopediaEntryPublicationDocument: "mutation LuSetEncyclopediaEntryPublication($id: ID!, $published: Boolean!) {\n result: setAuthorEncyclopediaEntryPublication(id: $id, published: $published) {\n id\n universeId\n name\n categoryId\n categoryTitle\n language\n wip\n publishedAt\n updatedAt\n translations\n pronunciation\n tags\n summary\n parent {\n id\n name\n }\n related {\n id\n name\n }\n fields {\n id\n title\n type\n private\n text\n }\n }\n}";
817
+ export declare const LuDeleteEncyclopediaEntryDocument: "mutation LuDeleteEncyclopediaEntry($id: ID!) {\n result: deleteAuthorEncyclopediaEntry(id: $id) {\n id\n universeId\n }\n}";
818
+ export declare const LuSeriesDocument: "query LuSeries($universeId: ID!) {\n result: authorSeries(universeId: $universeId) {\n id\n universeId\n title\n version\n storyIds\n updatedAt\n }\n}";
819
+ export declare const LuSaveSeriesDocument: "mutation LuSaveSeries($input: AuthorSeriesSaveInput!) {\n result: saveAuthorSeries(input: $input) {\n id\n universeId\n title\n version\n storyIds\n updatedAt\n }\n}";
820
+ export declare const LuImagePolicyDocument: "query LuImagePolicy {\n result: authorImagePolicy\n}";
821
+ export {};