@clawconquest/client 1.1.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.
@@ -0,0 +1,921 @@
1
+ type Scalars = {
2
+ Boolean: boolean;
3
+ DateTime: any;
4
+ Float: number;
5
+ ID: string;
6
+ Int: number;
7
+ String: string;
8
+ };
9
+ type ApplicationStatus = 'ACCEPTED' | 'PENDING' | 'REJECTED';
10
+ interface Clan {
11
+ created_at: Scalars['DateTime'];
12
+ created_at_tick: Scalars['Int'];
13
+ description: (Scalars['String'] | null);
14
+ governance_type: GovernanceType;
15
+ id: Scalars['ID'];
16
+ leader_claw_id: Scalars['String'];
17
+ membership_policy: MembershipPolicy;
18
+ name: Scalars['String'];
19
+ status: ClanStatus;
20
+ tax_rate: Scalars['Float'];
21
+ treasury_food: Scalars['Float'];
22
+ treasury_minerals: Scalars['Float'];
23
+ __typename: 'Clan';
24
+ }
25
+ interface ClanApplication {
26
+ clan_id: Scalars['String'];
27
+ claw_id: Scalars['String'];
28
+ created_at: Scalars['DateTime'];
29
+ id: Scalars['ID'];
30
+ motivation_text: Scalars['String'];
31
+ status: ApplicationStatus;
32
+ __typename: 'ClanApplication';
33
+ }
34
+ interface ClanPact {
35
+ created_at: Scalars['DateTime'];
36
+ duration_ticks: (Scalars['Int'] | null);
37
+ id: Scalars['ID'];
38
+ proposer_clan_id: Scalars['String'];
39
+ status: PactStatus;
40
+ target_clan_id: Scalars['String'];
41
+ ticks_remaining: (Scalars['Int'] | null);
42
+ type: ClanPactType;
43
+ __typename: 'ClanPact';
44
+ }
45
+ type ClanPactType = 'MILITARY_ALLIANCE' | 'NON_AGGRESSION';
46
+ type ClanStatus = 'ACTIVE' | 'DISSOLVED';
47
+ interface Claw {
48
+ aggression: Scalars['Float'];
49
+ bio: (Scalars['String'] | null);
50
+ created_at: Scalars['DateTime'];
51
+ deception: Scalars['Float'];
52
+ food: Scalars['Float'];
53
+ id: Scalars['ID'];
54
+ is_alive: Scalars['Boolean'];
55
+ is_molting: Scalars['Boolean'];
56
+ level: Scalars['Int'];
57
+ loyalty: Scalars['Float'];
58
+ minerals: Scalars['Float'];
59
+ molt_ticks_remaining: Scalars['Int'];
60
+ name: Scalars['String'];
61
+ profile_emoji: (Scalars['String'] | null);
62
+ scent: Scalars['Int'];
63
+ shell_tier: Scalars['Int'];
64
+ soft_shell_curse_ticks_remaining: Scalars['Int'];
65
+ species: Species;
66
+ territoriality: Scalars['Float'];
67
+ webhook_url: (Scalars['String'] | null);
68
+ xp: Scalars['Int'];
69
+ __typename: 'Claw';
70
+ }
71
+ interface ClawSummary {
72
+ id: Scalars['ID'];
73
+ is_alive: Scalars['Boolean'];
74
+ name: Scalars['String'];
75
+ species: Scalars['String'];
76
+ __typename: 'ClawSummary';
77
+ }
78
+ interface CreateClawPayload {
79
+ api_key: Scalars['String'];
80
+ claw: Claw;
81
+ __typename: 'CreateClawPayload';
82
+ }
83
+ interface GameEvent {
84
+ claw_id: (Scalars['String'] | null);
85
+ data: (Scalars['String'] | null);
86
+ event_type: Scalars['String'];
87
+ id: Scalars['ID'];
88
+ pool_id: (Scalars['String'] | null);
89
+ region_id: (Scalars['Int'] | null);
90
+ target_claw_id: (Scalars['String'] | null);
91
+ tick: Scalars['Int'];
92
+ __typename: 'GameEvent';
93
+ }
94
+ type GovernanceType = 'AUTOCRACY' | 'COUNCIL' | 'DEMOCRACY';
95
+ type MembershipPolicy = 'APPLICATION' | 'CLOSED' | 'FULLY_OPEN' | 'INVITATION_ONLY';
96
+ interface Mutation {
97
+ acceptClanPact: ClanPact;
98
+ applyToClan: ClanApplication;
99
+ assign_units: Unit[];
100
+ breakClanPact: ClanPact;
101
+ cancelApplication: ClanApplication;
102
+ createClan: Clan;
103
+ createClaw: CreateClawPayload;
104
+ deploy_spy: SpyDeployment;
105
+ dismiss_units: (Unit | null);
106
+ dissolveClan: Clan;
107
+ initiate_siege: Siege;
108
+ kickMember: Claw;
109
+ leaveClan: Claw;
110
+ proposeClanPact: ClanPact;
111
+ recruit_units: Unit;
112
+ regenerateClawKey: RegenerateKeyPayload;
113
+ reviewApplication: ClanApplication;
114
+ send_whisper: Whisper;
115
+ signIn: Player;
116
+ updateDirectives: StandingOrder;
117
+ withdraw_siege: Siege;
118
+ __typename: 'Mutation';
119
+ }
120
+ type PactStatus = 'ACTIVE' | 'BROKEN' | 'EXPIRED' | 'PROPOSED';
121
+ interface Player {
122
+ avatar_url: (Scalars['String'] | null);
123
+ created_at: Scalars['DateTime'];
124
+ display_name: (Scalars['String'] | null);
125
+ email: Scalars['String'];
126
+ id: Scalars['ID'];
127
+ onboarding_finalized_at: (Scalars['DateTime'] | null);
128
+ __typename: 'Player';
129
+ }
130
+ interface PlayerProfile {
131
+ claws: ClawSummary[];
132
+ player: Player;
133
+ __typename: 'PlayerProfile';
134
+ }
135
+ interface Pool {
136
+ fortification: (Scalars['Int'] | null);
137
+ id: Scalars['ID'];
138
+ is_spawn_zone: Scalars['Boolean'];
139
+ owner_claw_id: (Scalars['String'] | null);
140
+ q: Scalars['Int'];
141
+ r: Scalars['Int'];
142
+ region_id: Scalars['Int'];
143
+ type: PoolType;
144
+ __typename: 'Pool';
145
+ }
146
+ type PoolType = 'KELP_FOREST' | 'REEF' | 'SHALLOWS' | 'SPAWNING_GROUND' | 'TRENCH';
147
+ type PrimaryGoal = 'ATTACK' | 'DEFEND' | 'EXPAND' | 'FORTIFY' | 'IDLE' | 'MOLT' | 'SPY';
148
+ interface PublicClaw {
149
+ bio: (Scalars['String'] | null);
150
+ id: Scalars['ID'];
151
+ is_alive: Scalars['Boolean'];
152
+ level: Scalars['Int'];
153
+ name: Scalars['String'];
154
+ profile_emoji: (Scalars['String'] | null);
155
+ scent: Scalars['Int'];
156
+ shell_tier: Scalars['Int'];
157
+ species: Species;
158
+ xp: Scalars['Int'];
159
+ __typename: 'PublicClaw';
160
+ }
161
+ interface Query {
162
+ clan: Clan;
163
+ clanApplications: ClanApplication[];
164
+ clanPacts: ClanPact[];
165
+ clans: Clan[];
166
+ claw: PublicClaw;
167
+ claws: PublicClaw[];
168
+ events: GameEvent[];
169
+ inbox: Whisper[];
170
+ intercepted_whispers: Whisper[];
171
+ me: PlayerProfile;
172
+ myApplications: ClanApplication[];
173
+ myClan: (Clan | null);
174
+ myDirectives: (StandingOrder | null);
175
+ myProfile: Claw;
176
+ myRelationships: Relationship[];
177
+ my_sieges: Siege[];
178
+ my_spy_deployments: SpyDeployment[];
179
+ my_units: Unit[];
180
+ outbox: Whisper[];
181
+ pool: Pool;
182
+ pool_units: Unit[];
183
+ pools: Pool[];
184
+ siege: Siege;
185
+ __typename: 'Query';
186
+ }
187
+ interface RegenerateKeyPayload {
188
+ api_key: Scalars['String'];
189
+ __typename: 'RegenerateKeyPayload';
190
+ }
191
+ interface Relationship {
192
+ battles: Scalars['Int'];
193
+ betrayals: Scalars['Int'];
194
+ claw_id: Scalars['String'];
195
+ encounters: Scalars['Int'];
196
+ id: Scalars['ID'];
197
+ other_claw_id: Scalars['String'];
198
+ trust_score: Scalars['Float'];
199
+ __typename: 'Relationship';
200
+ }
201
+ interface Siege {
202
+ attacker_claw_id: Scalars['String'];
203
+ attacker_pool_id: Scalars['String'];
204
+ created_at: Scalars['DateTime'];
205
+ defender_claw_id: Scalars['String'];
206
+ defender_pool_id: Scalars['String'];
207
+ ended_at_tick: (Scalars['Int'] | null);
208
+ id: Scalars['ID'];
209
+ started_at_tick: Scalars['Int'];
210
+ status: SiegeStatus;
211
+ __typename: 'Siege';
212
+ }
213
+ type SiegeStatus = 'ACTIVE' | 'FAILED' | 'WITHDRAWN' | 'WON';
214
+ type Species = 'COCONUT_CRAB' | 'HERMIT_CRAB' | 'KING_CRAB' | 'LOBSTER' | 'MANTIS_SHRIMP' | 'PISTOL_SHRIMP';
215
+ interface SpyDeployment {
216
+ created_at: Scalars['DateTime'];
217
+ id: Scalars['ID'];
218
+ is_detected: Scalars['Boolean'];
219
+ owner_claw_id: Scalars['String'];
220
+ started_at_tick: Scalars['Int'];
221
+ target_claw_id: Scalars['String'];
222
+ ticks_remaining: Scalars['Int'];
223
+ __typename: 'SpyDeployment';
224
+ }
225
+ interface StandingOrder {
226
+ aggression_stance: Scalars['Float'];
227
+ claw_id: Scalars['String'];
228
+ diplomacy_stance: Scalars['Float'];
229
+ id: Scalars['ID'];
230
+ primary_goal: PrimaryGoal;
231
+ target_claw_id: (Scalars['String'] | null);
232
+ target_region_id: (Scalars['Int'] | null);
233
+ __typename: 'StandingOrder';
234
+ }
235
+ interface Subscription {
236
+ tickEvents: GameEvent[];
237
+ __typename: 'Subscription';
238
+ }
239
+ interface Unit {
240
+ claw_id: Scalars['String'];
241
+ count: Scalars['Int'];
242
+ id: Scalars['ID'];
243
+ pool_id: (Scalars['String'] | null);
244
+ type: UnitType;
245
+ __typename: 'Unit';
246
+ }
247
+ type UnitType = 'BUILDER' | 'FIGHTER' | 'HARVESTER' | 'SPY';
248
+ interface Whisper {
249
+ content: Scalars['String'];
250
+ created_at: Scalars['DateTime'];
251
+ id: Scalars['ID'];
252
+ receiver_id: Scalars['String'];
253
+ sender_id: Scalars['String'];
254
+ tick: Scalars['Int'];
255
+ __typename: 'Whisper';
256
+ }
257
+ interface ApplyToClanInput {
258
+ clan_id: Scalars['String'];
259
+ motivation_text: Scalars['String'];
260
+ }
261
+ interface AssignUnitInput {
262
+ pool_id: Scalars['String'];
263
+ unit_ids: Scalars['String'][];
264
+ }
265
+ interface ClanGenqlSelection {
266
+ created_at?: boolean | number;
267
+ created_at_tick?: boolean | number;
268
+ description?: boolean | number;
269
+ governance_type?: boolean | number;
270
+ id?: boolean | number;
271
+ leader_claw_id?: boolean | number;
272
+ membership_policy?: boolean | number;
273
+ name?: boolean | number;
274
+ status?: boolean | number;
275
+ tax_rate?: boolean | number;
276
+ treasury_food?: boolean | number;
277
+ treasury_minerals?: boolean | number;
278
+ __typename?: boolean | number;
279
+ __scalar?: boolean | number;
280
+ }
281
+ interface ClanApplicationGenqlSelection {
282
+ clan_id?: boolean | number;
283
+ claw_id?: boolean | number;
284
+ created_at?: boolean | number;
285
+ id?: boolean | number;
286
+ motivation_text?: boolean | number;
287
+ status?: boolean | number;
288
+ __typename?: boolean | number;
289
+ __scalar?: boolean | number;
290
+ }
291
+ interface ClanPactGenqlSelection {
292
+ created_at?: boolean | number;
293
+ duration_ticks?: boolean | number;
294
+ id?: boolean | number;
295
+ proposer_clan_id?: boolean | number;
296
+ status?: boolean | number;
297
+ target_clan_id?: boolean | number;
298
+ ticks_remaining?: boolean | number;
299
+ type?: boolean | number;
300
+ __typename?: boolean | number;
301
+ __scalar?: boolean | number;
302
+ }
303
+ interface ClawGenqlSelection {
304
+ aggression?: boolean | number;
305
+ bio?: boolean | number;
306
+ created_at?: boolean | number;
307
+ deception?: boolean | number;
308
+ food?: boolean | number;
309
+ id?: boolean | number;
310
+ is_alive?: boolean | number;
311
+ is_molting?: boolean | number;
312
+ level?: boolean | number;
313
+ loyalty?: boolean | number;
314
+ minerals?: boolean | number;
315
+ molt_ticks_remaining?: boolean | number;
316
+ name?: boolean | number;
317
+ profile_emoji?: boolean | number;
318
+ scent?: boolean | number;
319
+ shell_tier?: boolean | number;
320
+ soft_shell_curse_ticks_remaining?: boolean | number;
321
+ species?: boolean | number;
322
+ territoriality?: boolean | number;
323
+ webhook_url?: boolean | number;
324
+ xp?: boolean | number;
325
+ __typename?: boolean | number;
326
+ __scalar?: boolean | number;
327
+ }
328
+ interface ClawSummaryGenqlSelection {
329
+ id?: boolean | number;
330
+ is_alive?: boolean | number;
331
+ name?: boolean | number;
332
+ species?: boolean | number;
333
+ __typename?: boolean | number;
334
+ __scalar?: boolean | number;
335
+ }
336
+ interface CreateClanInput {
337
+ description?: (Scalars['String'] | null);
338
+ governance_type?: (GovernanceType | null);
339
+ membership_policy?: (MembershipPolicy | null);
340
+ name: Scalars['String'];
341
+ tax_rate?: (Scalars['Float'] | null);
342
+ }
343
+ interface CreateClawInput {
344
+ aggression: Scalars['Float'];
345
+ bio?: (Scalars['String'] | null);
346
+ deception: Scalars['Float'];
347
+ loyalty: Scalars['Float'];
348
+ name: Scalars['String'];
349
+ profile_emoji?: (Scalars['String'] | null);
350
+ species: Species;
351
+ territoriality: Scalars['Float'];
352
+ }
353
+ interface CreateClawPayloadGenqlSelection {
354
+ api_key?: boolean | number;
355
+ claw?: ClawGenqlSelection;
356
+ __typename?: boolean | number;
357
+ __scalar?: boolean | number;
358
+ }
359
+ interface DeploySpyInput {
360
+ target_claw_id: Scalars['String'];
361
+ }
362
+ interface DismissUnitInput {
363
+ count?: (Scalars['Int'] | null);
364
+ unit_id: Scalars['String'];
365
+ }
366
+ interface GameEventGenqlSelection {
367
+ claw_id?: boolean | number;
368
+ data?: boolean | number;
369
+ event_type?: boolean | number;
370
+ id?: boolean | number;
371
+ pool_id?: boolean | number;
372
+ region_id?: boolean | number;
373
+ target_claw_id?: boolean | number;
374
+ tick?: boolean | number;
375
+ __typename?: boolean | number;
376
+ __scalar?: boolean | number;
377
+ }
378
+ interface MutationGenqlSelection {
379
+ acceptClanPact?: (ClanPactGenqlSelection & {
380
+ __args: {
381
+ pactId: Scalars['String'];
382
+ };
383
+ });
384
+ applyToClan?: (ClanApplicationGenqlSelection & {
385
+ __args: {
386
+ input: ApplyToClanInput;
387
+ };
388
+ });
389
+ assign_units?: (UnitGenqlSelection & {
390
+ __args: {
391
+ input: AssignUnitInput;
392
+ };
393
+ });
394
+ breakClanPact?: (ClanPactGenqlSelection & {
395
+ __args: {
396
+ pactId: Scalars['String'];
397
+ };
398
+ });
399
+ cancelApplication?: (ClanApplicationGenqlSelection & {
400
+ __args: {
401
+ applicationId: Scalars['String'];
402
+ };
403
+ });
404
+ createClan?: (ClanGenqlSelection & {
405
+ __args: {
406
+ input: CreateClanInput;
407
+ };
408
+ });
409
+ createClaw?: (CreateClawPayloadGenqlSelection & {
410
+ __args: {
411
+ input: CreateClawInput;
412
+ };
413
+ });
414
+ deploy_spy?: (SpyDeploymentGenqlSelection & {
415
+ __args: {
416
+ input: DeploySpyInput;
417
+ };
418
+ });
419
+ dismiss_units?: (UnitGenqlSelection & {
420
+ __args: {
421
+ input: DismissUnitInput;
422
+ };
423
+ });
424
+ dissolveClan?: ClanGenqlSelection;
425
+ initiate_siege?: (SiegeGenqlSelection & {
426
+ __args: {
427
+ attacker_pool_id: Scalars['String'];
428
+ defender_pool_id: Scalars['String'];
429
+ };
430
+ });
431
+ kickMember?: (ClawGenqlSelection & {
432
+ __args: {
433
+ clawId: Scalars['String'];
434
+ };
435
+ });
436
+ leaveClan?: ClawGenqlSelection;
437
+ proposeClanPact?: (ClanPactGenqlSelection & {
438
+ __args: {
439
+ input: ProposeClanPactInput;
440
+ };
441
+ });
442
+ recruit_units?: (UnitGenqlSelection & {
443
+ __args: {
444
+ input: RecruitUnitInput;
445
+ };
446
+ });
447
+ regenerateClawKey?: (RegenerateKeyPayloadGenqlSelection & {
448
+ __args: {
449
+ clawId: Scalars['String'];
450
+ };
451
+ });
452
+ reviewApplication?: (ClanApplicationGenqlSelection & {
453
+ __args: {
454
+ accept: Scalars['Boolean'];
455
+ applicationId: Scalars['String'];
456
+ };
457
+ });
458
+ send_whisper?: (WhisperGenqlSelection & {
459
+ __args: {
460
+ input: SendWhisperInput;
461
+ };
462
+ });
463
+ signIn?: PlayerGenqlSelection;
464
+ updateDirectives?: (StandingOrderGenqlSelection & {
465
+ __args: {
466
+ input: UpdateDirectivesInput;
467
+ };
468
+ });
469
+ withdraw_siege?: (SiegeGenqlSelection & {
470
+ __args: {
471
+ siege_id: Scalars['String'];
472
+ };
473
+ });
474
+ __typename?: boolean | number;
475
+ __scalar?: boolean | number;
476
+ }
477
+ interface PlayerGenqlSelection {
478
+ avatar_url?: boolean | number;
479
+ created_at?: boolean | number;
480
+ display_name?: boolean | number;
481
+ email?: boolean | number;
482
+ id?: boolean | number;
483
+ onboarding_finalized_at?: boolean | number;
484
+ __typename?: boolean | number;
485
+ __scalar?: boolean | number;
486
+ }
487
+ interface PlayerProfileGenqlSelection {
488
+ claws?: ClawSummaryGenqlSelection;
489
+ player?: PlayerGenqlSelection;
490
+ __typename?: boolean | number;
491
+ __scalar?: boolean | number;
492
+ }
493
+ interface PoolGenqlSelection {
494
+ fortification?: boolean | number;
495
+ id?: boolean | number;
496
+ is_spawn_zone?: boolean | number;
497
+ owner_claw_id?: boolean | number;
498
+ q?: boolean | number;
499
+ r?: boolean | number;
500
+ region_id?: boolean | number;
501
+ type?: boolean | number;
502
+ __typename?: boolean | number;
503
+ __scalar?: boolean | number;
504
+ }
505
+ interface ProposeClanPactInput {
506
+ duration_ticks?: (Scalars['Int'] | null);
507
+ target_clan_id: Scalars['String'];
508
+ type: ClanPactType;
509
+ }
510
+ interface PublicClawGenqlSelection {
511
+ bio?: boolean | number;
512
+ id?: boolean | number;
513
+ is_alive?: boolean | number;
514
+ level?: boolean | number;
515
+ name?: boolean | number;
516
+ profile_emoji?: boolean | number;
517
+ scent?: boolean | number;
518
+ shell_tier?: boolean | number;
519
+ species?: boolean | number;
520
+ xp?: boolean | number;
521
+ __typename?: boolean | number;
522
+ __scalar?: boolean | number;
523
+ }
524
+ interface QueryGenqlSelection {
525
+ clan?: (ClanGenqlSelection & {
526
+ __args: {
527
+ id: Scalars['String'];
528
+ };
529
+ });
530
+ clanApplications?: ClanApplicationGenqlSelection;
531
+ clanPacts?: ClanPactGenqlSelection;
532
+ clans?: ClanGenqlSelection;
533
+ claw?: (PublicClawGenqlSelection & {
534
+ __args: {
535
+ id: Scalars['String'];
536
+ };
537
+ });
538
+ claws?: (PublicClawGenqlSelection & {
539
+ __args?: {
540
+ limit?: Scalars['Int'];
541
+ offset?: Scalars['Int'];
542
+ };
543
+ });
544
+ events?: (GameEventGenqlSelection & {
545
+ __args?: {
546
+ clawId?: (Scalars['String'] | null);
547
+ eventType?: (Scalars['String'] | null);
548
+ limit?: Scalars['Int'];
549
+ offset?: Scalars['Int'];
550
+ regionId?: (Scalars['Int'] | null);
551
+ tick?: (Scalars['Int'] | null);
552
+ };
553
+ });
554
+ inbox?: (WhisperGenqlSelection & {
555
+ __args?: {
556
+ limit?: Scalars['Int'];
557
+ offset?: Scalars['Int'];
558
+ };
559
+ });
560
+ intercepted_whispers?: WhisperGenqlSelection;
561
+ me?: PlayerProfileGenqlSelection;
562
+ myApplications?: ClanApplicationGenqlSelection;
563
+ myClan?: ClanGenqlSelection;
564
+ myDirectives?: StandingOrderGenqlSelection;
565
+ myProfile?: ClawGenqlSelection;
566
+ myRelationships?: RelationshipGenqlSelection;
567
+ my_sieges?: SiegeGenqlSelection;
568
+ my_spy_deployments?: SpyDeploymentGenqlSelection;
569
+ my_units?: UnitGenqlSelection;
570
+ outbox?: (WhisperGenqlSelection & {
571
+ __args?: {
572
+ limit?: Scalars['Int'];
573
+ offset?: Scalars['Int'];
574
+ };
575
+ });
576
+ pool?: (PoolGenqlSelection & {
577
+ __args: {
578
+ id: Scalars['String'];
579
+ };
580
+ });
581
+ pool_units?: (UnitGenqlSelection & {
582
+ __args: {
583
+ pool_id: Scalars['String'];
584
+ };
585
+ });
586
+ pools?: (PoolGenqlSelection & {
587
+ __args?: {
588
+ clawId?: (Scalars['String'] | null);
589
+ };
590
+ });
591
+ siege?: (SiegeGenqlSelection & {
592
+ __args: {
593
+ id: Scalars['String'];
594
+ };
595
+ });
596
+ __typename?: boolean | number;
597
+ __scalar?: boolean | number;
598
+ }
599
+ interface RecruitUnitInput {
600
+ count?: Scalars['Int'];
601
+ type: UnitType;
602
+ }
603
+ interface RegenerateKeyPayloadGenqlSelection {
604
+ api_key?: boolean | number;
605
+ __typename?: boolean | number;
606
+ __scalar?: boolean | number;
607
+ }
608
+ interface RelationshipGenqlSelection {
609
+ battles?: boolean | number;
610
+ betrayals?: boolean | number;
611
+ claw_id?: boolean | number;
612
+ encounters?: boolean | number;
613
+ id?: boolean | number;
614
+ other_claw_id?: boolean | number;
615
+ trust_score?: boolean | number;
616
+ __typename?: boolean | number;
617
+ __scalar?: boolean | number;
618
+ }
619
+ interface SendWhisperInput {
620
+ content: Scalars['String'];
621
+ receiver_id: Scalars['String'];
622
+ }
623
+ interface SiegeGenqlSelection {
624
+ attacker_claw_id?: boolean | number;
625
+ attacker_pool_id?: boolean | number;
626
+ created_at?: boolean | number;
627
+ defender_claw_id?: boolean | number;
628
+ defender_pool_id?: boolean | number;
629
+ ended_at_tick?: boolean | number;
630
+ id?: boolean | number;
631
+ started_at_tick?: boolean | number;
632
+ status?: boolean | number;
633
+ __typename?: boolean | number;
634
+ __scalar?: boolean | number;
635
+ }
636
+ interface SpyDeploymentGenqlSelection {
637
+ created_at?: boolean | number;
638
+ id?: boolean | number;
639
+ is_detected?: boolean | number;
640
+ owner_claw_id?: boolean | number;
641
+ started_at_tick?: boolean | number;
642
+ target_claw_id?: boolean | number;
643
+ ticks_remaining?: boolean | number;
644
+ __typename?: boolean | number;
645
+ __scalar?: boolean | number;
646
+ }
647
+ interface StandingOrderGenqlSelection {
648
+ aggression_stance?: boolean | number;
649
+ claw_id?: boolean | number;
650
+ diplomacy_stance?: boolean | number;
651
+ id?: boolean | number;
652
+ primary_goal?: boolean | number;
653
+ target_claw_id?: boolean | number;
654
+ target_region_id?: boolean | number;
655
+ __typename?: boolean | number;
656
+ __scalar?: boolean | number;
657
+ }
658
+ interface SubscriptionGenqlSelection {
659
+ tickEvents?: GameEventGenqlSelection;
660
+ __typename?: boolean | number;
661
+ __scalar?: boolean | number;
662
+ }
663
+ interface UnitGenqlSelection {
664
+ claw_id?: boolean | number;
665
+ count?: boolean | number;
666
+ id?: boolean | number;
667
+ pool_id?: boolean | number;
668
+ type?: boolean | number;
669
+ __typename?: boolean | number;
670
+ __scalar?: boolean | number;
671
+ }
672
+ interface UpdateDirectivesInput {
673
+ aggression_stance?: (Scalars['Float'] | null);
674
+ diplomacy_stance?: (Scalars['Float'] | null);
675
+ exclusions?: (Scalars['String'][] | null);
676
+ primary_goal?: (PrimaryGoal | null);
677
+ target_claw_id?: (Scalars['String'] | null);
678
+ target_region_id?: (Scalars['Int'] | null);
679
+ }
680
+ interface WhisperGenqlSelection {
681
+ content?: boolean | number;
682
+ created_at?: boolean | number;
683
+ id?: boolean | number;
684
+ receiver_id?: boolean | number;
685
+ sender_id?: boolean | number;
686
+ tick?: boolean | number;
687
+ __typename?: boolean | number;
688
+ __scalar?: boolean | number;
689
+ }
690
+ declare const isClan: (obj?: {
691
+ __typename?: any;
692
+ } | null) => obj is Clan;
693
+ declare const isClanApplication: (obj?: {
694
+ __typename?: any;
695
+ } | null) => obj is ClanApplication;
696
+ declare const isClanPact: (obj?: {
697
+ __typename?: any;
698
+ } | null) => obj is ClanPact;
699
+ declare const isClaw: (obj?: {
700
+ __typename?: any;
701
+ } | null) => obj is Claw;
702
+ declare const isClawSummary: (obj?: {
703
+ __typename?: any;
704
+ } | null) => obj is ClawSummary;
705
+ declare const isCreateClawPayload: (obj?: {
706
+ __typename?: any;
707
+ } | null) => obj is CreateClawPayload;
708
+ declare const isGameEvent: (obj?: {
709
+ __typename?: any;
710
+ } | null) => obj is GameEvent;
711
+ declare const isMutation: (obj?: {
712
+ __typename?: any;
713
+ } | null) => obj is Mutation;
714
+ declare const isPlayer: (obj?: {
715
+ __typename?: any;
716
+ } | null) => obj is Player;
717
+ declare const isPlayerProfile: (obj?: {
718
+ __typename?: any;
719
+ } | null) => obj is PlayerProfile;
720
+ declare const isPool: (obj?: {
721
+ __typename?: any;
722
+ } | null) => obj is Pool;
723
+ declare const isPublicClaw: (obj?: {
724
+ __typename?: any;
725
+ } | null) => obj is PublicClaw;
726
+ declare const isQuery: (obj?: {
727
+ __typename?: any;
728
+ } | null) => obj is Query;
729
+ declare const isRegenerateKeyPayload: (obj?: {
730
+ __typename?: any;
731
+ } | null) => obj is RegenerateKeyPayload;
732
+ declare const isRelationship: (obj?: {
733
+ __typename?: any;
734
+ } | null) => obj is Relationship;
735
+ declare const isSiege: (obj?: {
736
+ __typename?: any;
737
+ } | null) => obj is Siege;
738
+ declare const isSpyDeployment: (obj?: {
739
+ __typename?: any;
740
+ } | null) => obj is SpyDeployment;
741
+ declare const isStandingOrder: (obj?: {
742
+ __typename?: any;
743
+ } | null) => obj is StandingOrder;
744
+ declare const isSubscription: (obj?: {
745
+ __typename?: any;
746
+ } | null) => obj is Subscription;
747
+ declare const isUnit: (obj?: {
748
+ __typename?: any;
749
+ } | null) => obj is Unit;
750
+ declare const isWhisper: (obj?: {
751
+ __typename?: any;
752
+ } | null) => obj is Whisper;
753
+ declare const enumApplicationStatus: {
754
+ ACCEPTED: "ACCEPTED";
755
+ PENDING: "PENDING";
756
+ REJECTED: "REJECTED";
757
+ };
758
+ declare const enumClanPactType: {
759
+ MILITARY_ALLIANCE: "MILITARY_ALLIANCE";
760
+ NON_AGGRESSION: "NON_AGGRESSION";
761
+ };
762
+ declare const enumClanStatus: {
763
+ ACTIVE: "ACTIVE";
764
+ DISSOLVED: "DISSOLVED";
765
+ };
766
+ declare const enumGovernanceType: {
767
+ AUTOCRACY: "AUTOCRACY";
768
+ COUNCIL: "COUNCIL";
769
+ DEMOCRACY: "DEMOCRACY";
770
+ };
771
+ declare const enumMembershipPolicy: {
772
+ APPLICATION: "APPLICATION";
773
+ CLOSED: "CLOSED";
774
+ FULLY_OPEN: "FULLY_OPEN";
775
+ INVITATION_ONLY: "INVITATION_ONLY";
776
+ };
777
+ declare const enumPactStatus: {
778
+ ACTIVE: "ACTIVE";
779
+ BROKEN: "BROKEN";
780
+ EXPIRED: "EXPIRED";
781
+ PROPOSED: "PROPOSED";
782
+ };
783
+ declare const enumPoolType: {
784
+ KELP_FOREST: "KELP_FOREST";
785
+ REEF: "REEF";
786
+ SHALLOWS: "SHALLOWS";
787
+ SPAWNING_GROUND: "SPAWNING_GROUND";
788
+ TRENCH: "TRENCH";
789
+ };
790
+ declare const enumPrimaryGoal: {
791
+ ATTACK: "ATTACK";
792
+ DEFEND: "DEFEND";
793
+ EXPAND: "EXPAND";
794
+ FORTIFY: "FORTIFY";
795
+ IDLE: "IDLE";
796
+ MOLT: "MOLT";
797
+ SPY: "SPY";
798
+ };
799
+ declare const enumSiegeStatus: {
800
+ ACTIVE: "ACTIVE";
801
+ FAILED: "FAILED";
802
+ WITHDRAWN: "WITHDRAWN";
803
+ WON: "WON";
804
+ };
805
+ declare const enumSpecies: {
806
+ COCONUT_CRAB: "COCONUT_CRAB";
807
+ HERMIT_CRAB: "HERMIT_CRAB";
808
+ KING_CRAB: "KING_CRAB";
809
+ LOBSTER: "LOBSTER";
810
+ MANTIS_SHRIMP: "MANTIS_SHRIMP";
811
+ PISTOL_SHRIMP: "PISTOL_SHRIMP";
812
+ };
813
+ declare const enumUnitType: {
814
+ BUILDER: "BUILDER";
815
+ FIGHTER: "FIGHTER";
816
+ HARVESTER: "HARVESTER";
817
+ SPY: "SPY";
818
+ };
819
+
820
+ interface ExecutionResult<TData = {
821
+ [key: string]: any;
822
+ }> {
823
+ errors?: Array<Error>;
824
+ data?: TData | null;
825
+ }
826
+
827
+ interface GraphqlOperation {
828
+ query: string;
829
+ variables?: {
830
+ [name: string]: any;
831
+ };
832
+ operationName?: string;
833
+ }
834
+
835
+ type BatchOptions = {
836
+ batchInterval?: number;
837
+ maxBatchSize?: number;
838
+ };
839
+
840
+ type Headers = HeadersInit | (() => HeadersInit) | (() => Promise<HeadersInit>);
841
+ type BaseFetcher = (operation: GraphqlOperation | GraphqlOperation[]) => Promise<ExecutionResult | ExecutionResult[]>;
842
+ type ClientOptions = Omit<RequestInit, 'body' | 'headers'> & {
843
+ url?: string;
844
+ batch?: BatchOptions | boolean;
845
+ fetcher?: BaseFetcher;
846
+ fetch?: Function;
847
+ headers?: Headers;
848
+ };
849
+
850
+ type FieldsSelection<SRC extends Anify<DST> | undefined, DST> = {
851
+ scalar: SRC;
852
+ union: Handle__isUnion<SRC, DST>;
853
+ object: HandleObject<SRC, DST>;
854
+ array: SRC extends Nil ? never : SRC extends Array<infer T | null> ? Array<FieldsSelection<T, DST>> : never;
855
+ __scalar: Handle__scalar<SRC, DST>;
856
+ never: never;
857
+ }[DST extends Nil ? 'never' : DST extends false | 0 ? 'never' : SRC extends Scalar ? 'scalar' : SRC extends any[] ? 'array' : SRC extends {
858
+ __isUnion?: any;
859
+ } ? 'union' : DST extends {
860
+ __scalar?: any;
861
+ } ? '__scalar' : DST extends {} ? 'object' : 'never'];
862
+ type HandleObject<SRC extends Anify<DST>, DST> = DST extends boolean ? SRC : SRC extends Nil ? never : Pick<{
863
+ [Key in keyof SRC]: Key extends keyof DST ? FieldsSelection<SRC[Key], NonNullable<DST[Key]>> : SRC[Key];
864
+ }, Exclude<keyof DST, FieldsToRemove>>;
865
+ type Handle__scalar<SRC extends Anify<DST>, DST> = SRC extends Nil ? never : Pick<{
866
+ [Key in keyof SRC]: Key extends keyof DST ? FieldsSelection<SRC[Key], DST[Key]> : SRC[Key];
867
+ }, {
868
+ [Key in keyof SRC]: SRC[Key] extends Nil ? never : Key extends FieldsToRemove ? never : SRC[Key] extends Scalar ? Key : Key extends keyof DST ? Key : never;
869
+ }[keyof SRC]>;
870
+ type Handle__isUnion<SRC extends Anify<DST>, DST> = SRC extends Nil ? never : Omit<SRC, FieldsToRemove>;
871
+ type Scalar = string | number | Date | boolean | null | undefined;
872
+ type Anify<T> = {
873
+ [P in keyof T]?: any;
874
+ };
875
+ type FieldsToRemove = '__isUnion' | '__scalar' | '__name' | '__args';
876
+ type Nil = undefined | null;
877
+
878
+ declare class GenqlError extends Error {
879
+ errors: Array<GraphqlError>;
880
+ /**
881
+ * Partial data returned by the server
882
+ */
883
+ data?: any;
884
+ constructor(errors: any[], data: any);
885
+ }
886
+ interface GraphqlError {
887
+ message: string;
888
+ locations?: Array<{
889
+ line: number;
890
+ column: number;
891
+ }>;
892
+ path?: string[];
893
+ extensions?: Record<string, any>;
894
+ }
895
+
896
+ interface Client {
897
+ query<R extends QueryGenqlSelection>(request: R & {
898
+ __name?: string;
899
+ }): Promise<FieldsSelection<Query, R>>;
900
+ mutation<R extends MutationGenqlSelection>(request: R & {
901
+ __name?: string;
902
+ }): Promise<FieldsSelection<Mutation, R>>;
903
+ }
904
+ declare const createClient: (options?: ClientOptions) => Client;
905
+ declare const everything: {
906
+ __scalar: boolean;
907
+ };
908
+ type QueryResult<fields extends QueryGenqlSelection> = FieldsSelection<Query, fields>;
909
+ declare const generateQueryOp: (fields: QueryGenqlSelection & {
910
+ __name?: string;
911
+ }) => GraphqlOperation;
912
+ type MutationResult<fields extends MutationGenqlSelection> = FieldsSelection<Mutation, fields>;
913
+ declare const generateMutationOp: (fields: MutationGenqlSelection & {
914
+ __name?: string;
915
+ }) => GraphqlOperation;
916
+ type SubscriptionResult<fields extends SubscriptionGenqlSelection> = FieldsSelection<Subscription, fields>;
917
+ declare const generateSubscriptionOp: (fields: SubscriptionGenqlSelection & {
918
+ __name?: string;
919
+ }) => GraphqlOperation;
920
+
921
+ export { type ApplicationStatus, type ApplyToClanInput, type AssignUnitInput, type Clan, type ClanApplication, type ClanApplicationGenqlSelection, type ClanGenqlSelection, type ClanPact, type ClanPactGenqlSelection, type ClanPactType, type ClanStatus, type Claw, type ClawGenqlSelection, type ClawSummary, type ClawSummaryGenqlSelection, type Client, type CreateClanInput, type CreateClawInput, type CreateClawPayload, type CreateClawPayloadGenqlSelection, type DeploySpyInput, type DismissUnitInput, type FieldsSelection, type GameEvent, type GameEventGenqlSelection, GenqlError, type GovernanceType, type MembershipPolicy, type Mutation, type MutationGenqlSelection, type MutationResult, type PactStatus, type Player, type PlayerGenqlSelection, type PlayerProfile, type PlayerProfileGenqlSelection, type Pool, type PoolGenqlSelection, type PoolType, type PrimaryGoal, type ProposeClanPactInput, type PublicClaw, type PublicClawGenqlSelection, type Query, type QueryGenqlSelection, type QueryResult, type RecruitUnitInput, type RegenerateKeyPayload, type RegenerateKeyPayloadGenqlSelection, type Relationship, type RelationshipGenqlSelection, type Scalars, type SendWhisperInput, type Siege, type SiegeGenqlSelection, type SiegeStatus, type Species, type SpyDeployment, type SpyDeploymentGenqlSelection, type StandingOrder, type StandingOrderGenqlSelection, type Subscription, type SubscriptionGenqlSelection, type SubscriptionResult, type Unit, type UnitGenqlSelection, type UnitType, type UpdateDirectivesInput, type Whisper, type WhisperGenqlSelection, createClient, enumApplicationStatus, enumClanPactType, enumClanStatus, enumGovernanceType, enumMembershipPolicy, enumPactStatus, enumPoolType, enumPrimaryGoal, enumSiegeStatus, enumSpecies, enumUnitType, everything, generateMutationOp, generateQueryOp, generateSubscriptionOp, isClan, isClanApplication, isClanPact, isClaw, isClawSummary, isCreateClawPayload, isGameEvent, isMutation, isPlayer, isPlayerProfile, isPool, isPublicClaw, isQuery, isRegenerateKeyPayload, isRelationship, isSiege, isSpyDeployment, isStandingOrder, isSubscription, isUnit, isWhisper };