-
Notifications
You must be signed in to change notification settings - Fork 90
/
Copy pathgraphql.ts
2398 lines (2086 loc) · 112 KB
/
graphql.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
import { GraphQLResolveInfo, GraphQLScalarType, GraphQLScalarTypeConfig } from 'graphql';
export type Maybe<T> = T | null;
export type InputMaybe<T> = T | undefined;
export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> };
export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]> };
export type MakeEmpty<T extends { [key: string]: unknown }, K extends keyof T> = { [_ in K]?: never };
export type Incremental<T> = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never };
export type RequireFields<T, K extends keyof T> = Omit<T, K> & { [P in K]-?: NonNullable<T[P]> };
/** All built-in and custom scalars, mapped to their actual values */
export type Scalars = {
ID: { input: string; output: string; }
String: { input: string; output: string; }
Boolean: { input: boolean; output: boolean; }
Int: { input: number; output: number; }
Float: { input: number; output: number; }
JSONObject: { input: any; output: any; }
UInt8: { input: number; output: number; }
UInt64: { input: bigint; output: bigint; }
};
export type AccountingTransfer = Model & {
__typename?: 'AccountingTransfer';
/** Amount sent (fixed send) */
amount: Scalars['UInt64']['output'];
/** Date-time of creation */
createdAt: Scalars['String']['output'];
/** Credit account id */
creditAccountId: Scalars['ID']['output'];
/** Debit account id */
debitAccountId: Scalars['ID']['output'];
/** Payment id */
id: Scalars['ID']['output'];
/** Identifier that partitions the sets of accounts that can transact with each other. */
ledger: Scalars['UInt8']['output'];
/** Type of accounting transfer */
transferType: TransferType;
};
export type AccountingTransferConnection = {
__typename?: 'AccountingTransferConnection';
credits: Array<AccountingTransfer>;
debits: Array<AccountingTransfer>;
};
export type AdditionalProperty = {
__typename?: 'AdditionalProperty';
key: Scalars['String']['output'];
value: Scalars['String']['output'];
visibleInOpenPayments: Scalars['Boolean']['output'];
};
export type AdditionalPropertyInput = {
key: Scalars['String']['input'];
value: Scalars['String']['input'];
visibleInOpenPayments: Scalars['Boolean']['input'];
};
export enum Alg {
EdDsa = 'EdDSA'
}
export type Amount = {
__typename?: 'Amount';
/** [ISO 4217 currency code](https://en.wikipedia.org/wiki/ISO_4217), e.g. `USD` */
assetCode: Scalars['String']['output'];
/** Difference in orders of magnitude between the standard unit of an asset and a corresponding fractional unit */
assetScale: Scalars['UInt8']['output'];
value: Scalars['UInt64']['output'];
};
export type AmountInput = {
/** [ISO 4217 currency code](https://en.wikipedia.org/wiki/ISO_4217), e.g. `USD` */
assetCode: Scalars['String']['input'];
/** Difference in orders of magnitude between the standard unit of an asset and a corresponding fractional unit */
assetScale: Scalars['UInt8']['input'];
value: Scalars['UInt64']['input'];
};
export type ApproveIncomingPaymentInput = {
/** Unique identifier of the incoming payment to be approved. Note: Incoming Payment must be PENDING. */
id: Scalars['ID']['input'];
};
export type ApproveIncomingPaymentResponse = {
__typename?: 'ApproveIncomingPaymentResponse';
payment?: Maybe<IncomingPayment>;
};
export type Asset = Model & {
__typename?: 'Asset';
/** [ISO 4217 currency code](https://en.wikipedia.org/wiki/ISO_4217), e.g. `USD` */
code: Scalars['String']['output'];
/** Date-time of creation */
createdAt: Scalars['String']['output'];
/** Fetch a page of asset fees */
fees?: Maybe<FeesConnection>;
/** Asset id */
id: Scalars['ID']['output'];
/** Available liquidity */
liquidity?: Maybe<Scalars['UInt64']['output']>;
/** Account Servicing Entity will be notified via a webhook event if liquidity falls below this value */
liquidityThreshold?: Maybe<Scalars['UInt64']['output']>;
/** The receiving fee structure for the asset */
receivingFee?: Maybe<Fee>;
/** Difference in orders of magnitude between the standard unit of an asset and a corresponding fractional unit */
scale: Scalars['UInt8']['output'];
/** The sending fee structure for the asset */
sendingFee?: Maybe<Fee>;
/** Minimum amount of liquidity that can be withdrawn from the asset */
withdrawalThreshold?: Maybe<Scalars['UInt64']['output']>;
};
export type AssetFeesArgs = {
after?: InputMaybe<Scalars['String']['input']>;
before?: InputMaybe<Scalars['String']['input']>;
first?: InputMaybe<Scalars['Int']['input']>;
last?: InputMaybe<Scalars['Int']['input']>;
sortOrder?: InputMaybe<SortOrder>;
};
export type AssetEdge = {
__typename?: 'AssetEdge';
cursor: Scalars['String']['output'];
node: Asset;
};
export type AssetMutationResponse = {
__typename?: 'AssetMutationResponse';
asset?: Maybe<Asset>;
};
export type AssetsConnection = {
__typename?: 'AssetsConnection';
edges: Array<AssetEdge>;
pageInfo: PageInfo;
};
export type BasePayment = {
client?: Maybe<Scalars['String']['output']>;
createdAt: Scalars['String']['output'];
id: Scalars['ID']['output'];
metadata?: Maybe<Scalars['JSONObject']['output']>;
walletAddressId: Scalars['ID']['output'];
};
export type CancelIncomingPaymentInput = {
/** Unique identifier of the incoming payment to be cancelled. Note: Incoming Payment must be PENDING. */
id: Scalars['ID']['input'];
};
export type CancelIncomingPaymentResponse = {
__typename?: 'CancelIncomingPaymentResponse';
payment?: Maybe<IncomingPayment>;
};
export type CancelOutgoingPaymentInput = {
/** Outgoing payment id */
id: Scalars['ID']['input'];
/** Reason why this Outgoing Payment has been cancelled. This value will be publicly visible in the metadata field if this outgoing payment is requested through Open Payments. */
reason?: InputMaybe<Scalars['String']['input']>;
};
export type CreateAssetInput = {
/** [ISO 4217 currency code](https://en.wikipedia.org/wiki/ISO_4217), e.g. `USD` */
code: Scalars['String']['input'];
/** Unique key to ensure duplicate or retried requests are processed only once. See [idempotence](https://en.wikipedia.org/wiki/Idempotence) */
idempotencyKey?: InputMaybe<Scalars['String']['input']>;
/** Account Servicing Entity will be notified via a webhook event if liquidity falls below this value */
liquidityThreshold?: InputMaybe<Scalars['UInt64']['input']>;
/** Difference in orders of magnitude between the standard unit of an asset and a corresponding fractional unit */
scale: Scalars['UInt8']['input'];
/** Minimum amount of liquidity that can be withdrawn from the asset */
withdrawalThreshold?: InputMaybe<Scalars['UInt64']['input']>;
};
export type CreateAssetLiquidityWithdrawalInput = {
/** Amount of withdrawal. */
amount: Scalars['UInt64']['input'];
/** The id of the asset to create the withdrawal for. */
assetId: Scalars['String']['input'];
/** The id of the withdrawal. */
id: Scalars['String']['input'];
/** Unique key to ensure duplicate or retried requests are processed only once. See [idempotence](https://en.wikipedia.org/wiki/Idempotence) */
idempotencyKey: Scalars['String']['input'];
/** This is the interval in seconds after a pending transfer's created at which it may be posted or voided. Zero denotes a no timeout single-phase posted transfer. */
timeoutSeconds: Scalars['UInt64']['input'];
};
export type CreateIncomingPaymentInput = {
/** Expiration date-time */
expiresAt?: InputMaybe<Scalars['String']['input']>;
/** Unique key to ensure duplicate or retried requests are processed only once. See [idempotence](https://en.wikipedia.org/wiki/Idempotence) */
idempotencyKey?: InputMaybe<Scalars['String']['input']>;
/** Maximum amount to be received */
incomingAmount?: InputMaybe<AmountInput>;
/** Additional metadata associated with the incoming payment. */
metadata?: InputMaybe<Scalars['JSONObject']['input']>;
/** Id of the wallet address under which the incoming payment will be created */
walletAddressId: Scalars['String']['input'];
};
export type CreateIncomingPaymentWithdrawalInput = {
/** Unique key to ensure duplicate or retried requests are processed only once. See [idempotence](https://en.wikipedia.org/wiki/Idempotence) */
idempotencyKey: Scalars['String']['input'];
/** The id of the incoming payment to withdraw from. */
incomingPaymentId: Scalars['String']['input'];
/** This is the interval in seconds after a pending transfer's created at which it may be posted or voided. Zero denotes a no timeout single-phase posted transfer. */
timeoutSeconds: Scalars['UInt64']['input'];
};
export type CreateOrUpdatePeerByUrlInput = {
/** Asset id of peering relationship */
assetId: Scalars['String']['input'];
/** Unique key to ensure duplicate or retried requests are processed only once. See [idempotence](https://en.wikipedia.org/wiki/Idempotence) */
idempotencyKey?: InputMaybe<Scalars['String']['input']>;
/** Account Servicing Entity will be notified via a webhook event if peer liquidity falls below this value */
liquidityThreshold?: InputMaybe<Scalars['UInt64']['input']>;
/** Amount of liquidity to deposit for peer */
liquidityToDeposit?: InputMaybe<Scalars['UInt64']['input']>;
/** Maximum packet amount that the peer accepts */
maxPacketAmount?: InputMaybe<Scalars['UInt64']['input']>;
/** Peer's internal name for overriding auto-peer's default naming */
name?: InputMaybe<Scalars['String']['input']>;
/** Peer's URL address at which the peer accepts auto-peering requests */
peerUrl: Scalars['String']['input'];
};
export type CreateOrUpdatePeerByUrlMutationResponse = {
__typename?: 'CreateOrUpdatePeerByUrlMutationResponse';
peer?: Maybe<Peer>;
};
export type CreateOutgoingPaymentFromIncomingPaymentInput = {
/** Amount to send (fixed send) */
debitAmount: AmountInput;
/** Unique key to ensure duplicate or retried requests are processed only once. See [idempotence](https://en.wikipedia.org/wiki/Idempotence) */
idempotencyKey?: InputMaybe<Scalars['String']['input']>;
/** Incoming payment url to create the outgoing payment from */
incomingPayment: Scalars['String']['input'];
/** Additional metadata associated with the outgoing payment. */
metadata?: InputMaybe<Scalars['JSONObject']['input']>;
/** Id of the wallet address under which the outgoing payment will be created */
walletAddressId: Scalars['String']['input'];
};
export type CreateOutgoingPaymentInput = {
/** Unique key to ensure duplicate or retried requests are processed only once. See [idempotence](https://en.wikipedia.org/wiki/Idempotence) */
idempotencyKey?: InputMaybe<Scalars['String']['input']>;
/** Additional metadata associated with the outgoing payment. */
metadata?: InputMaybe<Scalars['JSONObject']['input']>;
/** Id of the corresponding quote for that outgoing payment */
quoteId: Scalars['String']['input'];
/** Id of the wallet address under which the outgoing payment will be created */
walletAddressId: Scalars['String']['input'];
};
export type CreateOutgoingPaymentWithdrawalInput = {
/** Unique key to ensure duplicate or retried requests are processed only once. See [idempotence](https://en.wikipedia.org/wiki/Idempotence) */
idempotencyKey: Scalars['String']['input'];
/** The id of the outgoing payment to withdraw from. */
outgoingPaymentId: Scalars['String']['input'];
/** This is the interval in seconds after a pending transfer's created at which it may be posted or voided. Zero denotes a no timeout single-phase posted transfer. */
timeoutSeconds: Scalars['UInt64']['input'];
};
export type CreatePeerInput = {
/** Asset id of peering relationship */
assetId: Scalars['String']['input'];
/** Peering connection details */
http: HttpInput;
/** Unique key to ensure duplicate or retried requests are processed only once. See [idempotence](https://en.wikipedia.org/wiki/Idempotence) */
idempotencyKey?: InputMaybe<Scalars['String']['input']>;
/** Initial amount of liquidity to deposit for peer */
initialLiquidity?: InputMaybe<Scalars['UInt64']['input']>;
/** Account Servicing Entity will be notified via a webhook event if peer liquidity falls below this value */
liquidityThreshold?: InputMaybe<Scalars['UInt64']['input']>;
/** Maximum packet amount that the peer accepts */
maxPacketAmount?: InputMaybe<Scalars['UInt64']['input']>;
/** Peer's internal name */
name?: InputMaybe<Scalars['String']['input']>;
/** Peer's ILP address */
staticIlpAddress: Scalars['String']['input'];
};
export type CreatePeerLiquidityWithdrawalInput = {
/** Amount of withdrawal. */
amount: Scalars['UInt64']['input'];
/** The id of the withdrawal. */
id: Scalars['String']['input'];
/** Unique key to ensure duplicate or retried requests are processed only once. See [idempotence](https://en.wikipedia.org/wiki/Idempotence) */
idempotencyKey: Scalars['String']['input'];
/** The id of the peer to create the withdrawal for. */
peerId: Scalars['String']['input'];
/** This is the interval in seconds after a pending transfer's created at which it may be posted or voided. Zero denotes a no timeout single-phase posted transfer. */
timeoutSeconds: Scalars['UInt64']['input'];
};
export type CreatePeerMutationResponse = {
__typename?: 'CreatePeerMutationResponse';
peer?: Maybe<Peer>;
};
export type CreateQuoteInput = {
/** Amount to send (fixed send) */
debitAmount?: InputMaybe<AmountInput>;
/** Unique key to ensure duplicate or retried requests are processed only once. See [idempotence](https://en.wikipedia.org/wiki/Idempotence) */
idempotencyKey?: InputMaybe<Scalars['String']['input']>;
/** Amount to receive (fixed receive) */
receiveAmount?: InputMaybe<AmountInput>;
/** Wallet address URL of the receiver */
receiver: Scalars['String']['input'];
/** Id of the wallet address under which the quote will be created */
walletAddressId: Scalars['String']['input'];
};
export type CreateReceiverInput = {
/** Expiration date-time */
expiresAt?: InputMaybe<Scalars['String']['input']>;
/** Unique key to ensure duplicate or retried requests are processed only once. See [idempotence](https://en.wikipedia.org/wiki/Idempotence) */
idempotencyKey?: InputMaybe<Scalars['String']['input']>;
/** Maximum amount to be received */
incomingAmount?: InputMaybe<AmountInput>;
/** Additional metadata associated with the incoming payment. */
metadata?: InputMaybe<Scalars['JSONObject']['input']>;
/** Receiving wallet address URL */
walletAddressUrl: Scalars['String']['input'];
};
export type CreateReceiverResponse = {
__typename?: 'CreateReceiverResponse';
receiver?: Maybe<Receiver>;
};
export type CreateWalletAddressInput = {
/** Additional properties associated with the [walletAddress]. */
additionalProperties?: InputMaybe<Array<AdditionalPropertyInput>>;
/** Asset of the wallet address */
assetId: Scalars['String']['input'];
/** Unique key to ensure duplicate or retried requests are processed only once. See [idempotence](https://en.wikipedia.org/wiki/Idempotence) */
idempotencyKey?: InputMaybe<Scalars['String']['input']>;
/** Public name associated with the wallet address */
publicName?: InputMaybe<Scalars['String']['input']>;
/** Wallet Address URL */
url: Scalars['String']['input'];
};
export type CreateWalletAddressKeyInput = {
/** Unique key to ensure duplicate or retried requests are processed only once. See [idempotence](https://en.wikipedia.org/wiki/Idempotence) */
idempotencyKey?: InputMaybe<Scalars['String']['input']>;
/** Public key */
jwk: JwkInput;
walletAddressId: Scalars['String']['input'];
};
export type CreateWalletAddressKeyMutationResponse = {
__typename?: 'CreateWalletAddressKeyMutationResponse';
walletAddressKey?: Maybe<WalletAddressKey>;
};
export type CreateWalletAddressMutationResponse = {
__typename?: 'CreateWalletAddressMutationResponse';
walletAddress?: Maybe<WalletAddress>;
};
export type CreateWalletAddressWithdrawalInput = {
/** The id of the withdrawal. */
id: Scalars['String']['input'];
/** Unique key to ensure duplicate or retried requests are processed only once. See [idempotence](https://en.wikipedia.org/wiki/Idempotence) */
idempotencyKey: Scalars['String']['input'];
/** This is the interval in seconds after a pending transfer's created at which it may be posted or voided. Zero denotes a no timeout single-phase posted transfer. */
timeoutSeconds: Scalars['UInt64']['input'];
/** The id of the Open Payments wallet address to create the withdrawal for. */
walletAddressId: Scalars['String']['input'];
};
export enum Crv {
Ed25519 = 'Ed25519'
}
export type DeleteAssetInput = {
/** Asset id */
id: Scalars['ID']['input'];
/** Unique key to ensure duplicate or retried requests are processed only once. See [idempotence](https://en.wikipedia.org/wiki/Idempotence) */
idempotencyKey?: InputMaybe<Scalars['String']['input']>;
};
export type DeleteAssetMutationResponse = {
__typename?: 'DeleteAssetMutationResponse';
asset?: Maybe<Asset>;
};
export type DeletePeerInput = {
id: Scalars['ID']['input'];
/** Unique key to ensure duplicate or retried requests are processed only once. See [idempotence](https://en.wikipedia.org/wiki/Idempotence) */
idempotencyKey?: InputMaybe<Scalars['String']['input']>;
};
export type DeletePeerMutationResponse = {
__typename?: 'DeletePeerMutationResponse';
success: Scalars['Boolean']['output'];
};
export type DepositAssetLiquidityInput = {
/** Amount of liquidity to deposit. */
amount: Scalars['UInt64']['input'];
/** The id of the asset to deposit liquidity. */
assetId: Scalars['String']['input'];
/** The id of the transfer. */
id: Scalars['String']['input'];
/** Unique key to ensure duplicate or retried requests are processed only once. See [idempotence](https://en.wikipedia.org/wiki/Idempotence) */
idempotencyKey: Scalars['String']['input'];
};
export type DepositEventLiquidityInput = {
/** The id of the event to deposit into. */
eventId: Scalars['String']['input'];
/** Unique key to ensure duplicate or retried requests are processed only once. See [idempotence](https://en.wikipedia.org/wiki/Idempotence) */
idempotencyKey: Scalars['String']['input'];
};
export type DepositOutgoingPaymentLiquidityInput = {
/** Unique key to ensure duplicate or retried requests are processed only once. See [idempotence](https://en.wikipedia.org/wiki/Idempotence) */
idempotencyKey: Scalars['String']['input'];
/** The id of the outgoing payment to deposit into. */
outgoingPaymentId: Scalars['String']['input'];
};
export type DepositPeerLiquidityInput = {
/** Amount of liquidity to deposit. */
amount: Scalars['UInt64']['input'];
/** The id of the transfer. */
id: Scalars['String']['input'];
/** Unique key to ensure duplicate or retried requests are processed only once. See [idempotence](https://en.wikipedia.org/wiki/Idempotence) */
idempotencyKey: Scalars['String']['input'];
/** The id of the peer to deposit liquidity. */
peerId: Scalars['String']['input'];
};
export type Fee = Model & {
__typename?: 'Fee';
/** Asset id associated with the fee */
assetId: Scalars['ID']['output'];
/** Basis points fee. 1 basis point = 0.01%, 100 basis points = 1%, 10000 basis points = 100% */
basisPoints: Scalars['Int']['output'];
/** Date-time of creation */
createdAt: Scalars['String']['output'];
/** Fixed fee */
fixed: Scalars['UInt64']['output'];
/** Fee id */
id: Scalars['ID']['output'];
/** Type of fee (sending or receiving) */
type: FeeType;
};
export type FeeDetails = {
/** Basis points fee. Should be between 0 and 10000 (inclusive). 1 basis point = 0.01%, 100 basis points = 1%, 10000 basis points = 100% */
basisPoints: Scalars['Int']['input'];
/** A flat fee */
fixed: Scalars['UInt64']['input'];
};
export type FeeEdge = {
__typename?: 'FeeEdge';
cursor: Scalars['String']['output'];
node: Fee;
};
export enum FeeType {
/** Receiver pays the fees */
Receiving = 'RECEIVING',
/** Sender pays the fees */
Sending = 'SENDING'
}
export type FeesConnection = {
__typename?: 'FeesConnection';
edges: Array<FeeEdge>;
pageInfo: PageInfo;
};
export type FilterString = {
in: Array<Scalars['String']['input']>;
};
export type Http = {
__typename?: 'Http';
/** Outgoing connection details */
outgoing: HttpOutgoing;
};
export type HttpIncomingInput = {
/** Array of auth tokens accepted by this Rafiki instance */
authTokens: Array<Scalars['String']['input']>;
};
export type HttpInput = {
/** Incoming connection details */
incoming?: InputMaybe<HttpIncomingInput>;
/** Outgoing connection details */
outgoing: HttpOutgoingInput;
};
export type HttpOutgoing = {
__typename?: 'HttpOutgoing';
/** Auth token to present at the peering Rafiki instance */
authToken: Scalars['String']['output'];
/** Peer's connection endpoint */
endpoint: Scalars['String']['output'];
};
export type HttpOutgoingInput = {
/** Auth token to present at the peering Rafiki instance */
authToken: Scalars['String']['input'];
/** Peer's connection endpoint */
endpoint: Scalars['String']['input'];
};
export type IncomingPayment = BasePayment & Model & {
__typename?: 'IncomingPayment';
/** Information about the wallet address of the Open Payments client that created the incoming payment. */
client?: Maybe<Scalars['String']['output']>;
/** Date-time of creation */
createdAt: Scalars['String']['output'];
/** Date-time of expiry. After this time, the incoming payment will not accept further payments made to it. */
expiresAt: Scalars['String']['output'];
/** Incoming Payment id */
id: Scalars['ID']['output'];
/** The maximum amount that should be paid into the wallet address under this incoming payment. */
incomingAmount?: Maybe<Amount>;
/** Available liquidity */
liquidity?: Maybe<Scalars['UInt64']['output']>;
/** Additional metadata associated with the incoming payment. */
metadata?: Maybe<Scalars['JSONObject']['output']>;
/** The total amount that has been paid into the wallet address under this incoming payment. */
receivedAmount: Amount;
/** Incoming payment state */
state: IncomingPaymentState;
/** Id of the wallet address under which this incoming payment was created. */
walletAddressId: Scalars['ID']['output'];
};
export type IncomingPaymentConnection = {
__typename?: 'IncomingPaymentConnection';
edges: Array<IncomingPaymentEdge>;
pageInfo: PageInfo;
};
export type IncomingPaymentEdge = {
__typename?: 'IncomingPaymentEdge';
cursor: Scalars['String']['output'];
node: IncomingPayment;
};
export type IncomingPaymentResponse = {
__typename?: 'IncomingPaymentResponse';
payment?: Maybe<IncomingPayment>;
};
export enum IncomingPaymentState {
/** The payment is either auto-completed once the received amount equals the expected `incomingAmount`, or it is completed manually via an API call. */
Completed = 'COMPLETED',
/** If the payment expires before it is completed then the state will move to EXPIRED and no further payments will be accepted. */
Expired = 'EXPIRED',
/** The payment has a state of PENDING when it is initially created. */
Pending = 'PENDING',
/** As soon as payment has started (funds have cleared into the account) the state moves to PROCESSING */
Processing = 'PROCESSING'
}
export type Jwk = {
__typename?: 'Jwk';
/** Cryptographic algorithm family used with the key. The only allowed value is `EdDSA`. */
alg: Alg;
/** Curve that the key pair is derived from. The only allowed value is `Ed25519`. */
crv: Crv;
/** Key id */
kid: Scalars['String']['output'];
/** Key type. The only allowed value is `OKP`. */
kty: Kty;
/** Base64 url-encoded public key. */
x: Scalars['String']['output'];
};
export type JwkInput = {
/** Cryptographic algorithm family used with the key. The only allowed value is `EdDSA`. */
alg: Alg;
/** Curve that the key pair is derived from. The only allowed value is `Ed25519`. */
crv: Crv;
/** Key id */
kid: Scalars['String']['input'];
/** Key type. The only allowed value is `OKP`. */
kty: Kty;
/** Base64 url-encoded public key. */
x: Scalars['String']['input'];
};
export enum Kty {
Okp = 'OKP'
}
export enum LiquidityError {
AlreadyPosted = 'AlreadyPosted',
AlreadyVoided = 'AlreadyVoided',
AmountZero = 'AmountZero',
InsufficientBalance = 'InsufficientBalance',
InvalidId = 'InvalidId',
TransferExists = 'TransferExists',
UnknownAsset = 'UnknownAsset',
UnknownIncomingPayment = 'UnknownIncomingPayment',
UnknownPayment = 'UnknownPayment',
UnknownPeer = 'UnknownPeer',
UnknownTransfer = 'UnknownTransfer',
UnknownWalletAddress = 'UnknownWalletAddress'
}
export type LiquidityMutationResponse = {
__typename?: 'LiquidityMutationResponse';
success: Scalars['Boolean']['output'];
};
export type Model = {
createdAt: Scalars['String']['output'];
id: Scalars['ID']['output'];
};
export type Mutation = {
__typename?: 'Mutation';
/** Approves the incoming payment if the incoming payment is in the PENDING state */
approveIncomingPayment: ApproveIncomingPaymentResponse;
/** Cancel the incoming payment if the incoming payment is in the PENDING state */
cancelIncomingPayment: CancelIncomingPaymentResponse;
/** Cancel Outgoing Payment */
cancelOutgoingPayment: OutgoingPaymentResponse;
/** Create an asset */
createAsset: AssetMutationResponse;
/** Withdraw asset liquidity */
createAssetLiquidityWithdrawal?: Maybe<LiquidityMutationResponse>;
/** Create an internal Open Payments Incoming Payment. The receiver has a wallet address on this Rafiki instance. */
createIncomingPayment: IncomingPaymentResponse;
/** Withdraw incoming payment liquidity */
createIncomingPaymentWithdrawal?: Maybe<LiquidityMutationResponse>;
/** Create a peer using a URL */
createOrUpdatePeerByUrl: CreateOrUpdatePeerByUrlMutationResponse;
/** Create an Open Payments Outgoing Payment */
createOutgoingPayment: OutgoingPaymentResponse;
/** Create an Open Payments Outgoing Payment from an incoming payment */
createOutgoingPaymentFromIncomingPayment: OutgoingPaymentResponse;
/** Withdraw outgoing payment liquidity */
createOutgoingPaymentWithdrawal?: Maybe<LiquidityMutationResponse>;
/** Create a peer */
createPeer: CreatePeerMutationResponse;
/** Withdraw peer liquidity */
createPeerLiquidityWithdrawal?: Maybe<LiquidityMutationResponse>;
/** Create an Open Payments Quote */
createQuote: QuoteResponse;
/** Create an internal or external Open Payments Incoming Payment. The receiver has a wallet address on either this or another Open Payments resource server. */
createReceiver: CreateReceiverResponse;
/** Create a wallet address */
createWalletAddress: CreateWalletAddressMutationResponse;
/** Add a public key to a wallet address that is used to verify Open Payments requests. */
createWalletAddressKey?: Maybe<CreateWalletAddressKeyMutationResponse>;
/** Withdraw liquidity from a wallet address received via Web Monetization. */
createWalletAddressWithdrawal?: Maybe<WalletAddressWithdrawalMutationResponse>;
/** Delete an asset */
deleteAsset: DeleteAssetMutationResponse;
/** Delete a peer */
deletePeer: DeletePeerMutationResponse;
/** Deposit asset liquidity */
depositAssetLiquidity?: Maybe<LiquidityMutationResponse>;
/**
* Deposit webhook event liquidity
* @deprecated Use `depositOutgoingPaymentLiquidity`
*/
depositEventLiquidity?: Maybe<LiquidityMutationResponse>;
/** Deposit outgoing payment liquidity */
depositOutgoingPaymentLiquidity?: Maybe<LiquidityMutationResponse>;
/** Deposit peer liquidity */
depositPeerLiquidity?: Maybe<LiquidityMutationResponse>;
/** Post liquidity withdrawal. Withdrawals are two-phase commits and are committed via this mutation. */
postLiquidityWithdrawal?: Maybe<LiquidityMutationResponse>;
/** Revoke a public key associated with a wallet address. Open Payment requests using this key for request signatures will be denied going forward. */
revokeWalletAddressKey?: Maybe<RevokeWalletAddressKeyMutationResponse>;
/** Set the fee on an asset */
setFee: SetFeeResponse;
/** If automatic withdrawal of funds received via Web Monetization by the wallet address are disabled, this mutation can be used to trigger up to n withdrawal events. */
triggerWalletAddressEvents: TriggerWalletAddressEventsMutationResponse;
/** Update an asset */
updateAsset: AssetMutationResponse;
/** Update a peer */
updatePeer: UpdatePeerMutationResponse;
/** Update a wallet address */
updateWalletAddress: UpdateWalletAddressMutationResponse;
/** Void liquidity withdrawal. Withdrawals are two-phase commits and are rolled back via this mutation. */
voidLiquidityWithdrawal?: Maybe<LiquidityMutationResponse>;
/**
* Withdraw webhook event liquidity
* @deprecated Use `createOutgoingPaymentWithdrawal, createIncomingPaymentWithdrawal, or createWalletAddressWithdrawal`
*/
withdrawEventLiquidity?: Maybe<LiquidityMutationResponse>;
};
export type MutationApproveIncomingPaymentArgs = {
input: ApproveIncomingPaymentInput;
};
export type MutationCancelIncomingPaymentArgs = {
input: CancelIncomingPaymentInput;
};
export type MutationCancelOutgoingPaymentArgs = {
input: CancelOutgoingPaymentInput;
};
export type MutationCreateAssetArgs = {
input: CreateAssetInput;
};
export type MutationCreateAssetLiquidityWithdrawalArgs = {
input: CreateAssetLiquidityWithdrawalInput;
};
export type MutationCreateIncomingPaymentArgs = {
input: CreateIncomingPaymentInput;
};
export type MutationCreateIncomingPaymentWithdrawalArgs = {
input: CreateIncomingPaymentWithdrawalInput;
};
export type MutationCreateOrUpdatePeerByUrlArgs = {
input: CreateOrUpdatePeerByUrlInput;
};
export type MutationCreateOutgoingPaymentArgs = {
input: CreateOutgoingPaymentInput;
};
export type MutationCreateOutgoingPaymentFromIncomingPaymentArgs = {
input: CreateOutgoingPaymentFromIncomingPaymentInput;
};
export type MutationCreateOutgoingPaymentWithdrawalArgs = {
input: CreateOutgoingPaymentWithdrawalInput;
};
export type MutationCreatePeerArgs = {
input: CreatePeerInput;
};
export type MutationCreatePeerLiquidityWithdrawalArgs = {
input: CreatePeerLiquidityWithdrawalInput;
};
export type MutationCreateQuoteArgs = {
input: CreateQuoteInput;
};
export type MutationCreateReceiverArgs = {
input: CreateReceiverInput;
};
export type MutationCreateWalletAddressArgs = {
input: CreateWalletAddressInput;
};
export type MutationCreateWalletAddressKeyArgs = {
input: CreateWalletAddressKeyInput;
};
export type MutationCreateWalletAddressWithdrawalArgs = {
input: CreateWalletAddressWithdrawalInput;
};
export type MutationDeleteAssetArgs = {
input: DeleteAssetInput;
};
export type MutationDeletePeerArgs = {
input: DeletePeerInput;
};
export type MutationDepositAssetLiquidityArgs = {
input: DepositAssetLiquidityInput;
};
export type MutationDepositEventLiquidityArgs = {
input: DepositEventLiquidityInput;
};
export type MutationDepositOutgoingPaymentLiquidityArgs = {
input: DepositOutgoingPaymentLiquidityInput;
};
export type MutationDepositPeerLiquidityArgs = {
input: DepositPeerLiquidityInput;
};
export type MutationPostLiquidityWithdrawalArgs = {
input: PostLiquidityWithdrawalInput;
};
export type MutationRevokeWalletAddressKeyArgs = {
input: RevokeWalletAddressKeyInput;
};
export type MutationSetFeeArgs = {
input: SetFeeInput;
};
export type MutationTriggerWalletAddressEventsArgs = {
input: TriggerWalletAddressEventsInput;
};
export type MutationUpdateAssetArgs = {
input: UpdateAssetInput;
};
export type MutationUpdatePeerArgs = {
input: UpdatePeerInput;
};
export type MutationUpdateWalletAddressArgs = {
input: UpdateWalletAddressInput;
};
export type MutationVoidLiquidityWithdrawalArgs = {
input: VoidLiquidityWithdrawalInput;
};
export type MutationWithdrawEventLiquidityArgs = {
input: WithdrawEventLiquidityInput;
};
export type OutgoingPayment = BasePayment & Model & {
__typename?: 'OutgoingPayment';
/** Information about the wallet address of the Open Payments client that created the outgoing payment. */
client?: Maybe<Scalars['String']['output']>;
/** Date-time of creation */
createdAt: Scalars['String']['output'];
/** Amount to send (fixed send) */
debitAmount: Amount;
error?: Maybe<Scalars['String']['output']>;
/** Id of the Grant under which this outgoing payment was created */
grantId?: Maybe<Scalars['String']['output']>;
/** Outgoing payment id */
id: Scalars['ID']['output'];
/** Available liquidity */
liquidity?: Maybe<Scalars['UInt64']['output']>;
/** Additional metadata associated with the outgoing payment. */
metadata?: Maybe<Scalars['JSONObject']['output']>;
/** Quote for this outgoing payment */
quote?: Maybe<Quote>;
/** Amount to receive (fixed receive) */
receiveAmount: Amount;
/** Wallet address URL of the receiver */
receiver: Scalars['String']['output'];
/** Amount already sent */
sentAmount: Amount;
/** Outgoing payment state */
state: OutgoingPaymentState;
stateAttempts: Scalars['Int']['output'];
/** Id of the wallet address under which this outgoing payment was created */
walletAddressId: Scalars['ID']['output'];
};
export type OutgoingPaymentConnection = {
__typename?: 'OutgoingPaymentConnection';
edges: Array<OutgoingPaymentEdge>;
pageInfo: PageInfo;
};
export type OutgoingPaymentEdge = {
__typename?: 'OutgoingPaymentEdge';
cursor: Scalars['String']['output'];
node: OutgoingPayment;
};
export type OutgoingPaymentFilter = {
receiver?: InputMaybe<FilterString>;
state?: InputMaybe<FilterString>;
walletAddressId?: InputMaybe<FilterString>;
};
export type OutgoingPaymentResponse = {
__typename?: 'OutgoingPaymentResponse';
payment?: Maybe<OutgoingPayment>;
};
export enum OutgoingPaymentState {
/** Payment cancelled */
Cancelled = 'CANCELLED',
/** Successful completion */
Completed = 'COMPLETED',
/** Payment failed */
Failed = 'FAILED',
/** Will transition to SENDING once payment funds are reserved */
Funding = 'FUNDING',
/** Paying, will transition to COMPLETED on success */
Sending = 'SENDING'
}
export type PageInfo = {
__typename?: 'PageInfo';
/** Paginating forwards: the cursor to continue. */
endCursor?: Maybe<Scalars['String']['output']>;
/** Paginating forwards: Are there more pages? */
hasNextPage: Scalars['Boolean']['output'];
/** Paginating backwards: Are there more pages? */
hasPreviousPage: Scalars['Boolean']['output'];
/** Paginating backwards: the cursor to continue. */
startCursor?: Maybe<Scalars['String']['output']>;
};
export type Payment = BasePayment & Model & {
__typename?: 'Payment';
/** Information about the wallet address of the Open Payments client that created the payment. */
client?: Maybe<Scalars['String']['output']>;
/** Date-time of creation */
createdAt: Scalars['String']['output'];
/** Payment id */
id: Scalars['ID']['output'];
/** Available liquidity */
liquidity?: Maybe<Scalars['UInt64']['output']>;
/** Additional metadata associated with the payment. */
metadata?: Maybe<Scalars['JSONObject']['output']>;
/** Either the IncomingPaymentState or OutgoingPaymentState according to type */
state: Scalars['String']['output'];
/** Type of payment */
type: PaymentType;
/** Id of the wallet address under which this payment was created */
walletAddressId: Scalars['ID']['output'];
};
export type PaymentConnection = {
__typename?: 'PaymentConnection';
edges: Array<PaymentEdge>;
pageInfo: PageInfo;
};
export type PaymentEdge = {
__typename?: 'PaymentEdge';
cursor: Scalars['String']['output'];
node: Payment;
};
export type PaymentFilter = {
type?: InputMaybe<FilterString>;
walletAddressId?: InputMaybe<FilterString>;
};
export enum PaymentType {
Incoming = 'INCOMING',
Outgoing = 'OUTGOING'
}
export type Peer = Model & {
__typename?: 'Peer';
/** Asset of peering relationship */
asset: Asset;
/** Date-time of creation */
createdAt: Scalars['String']['output'];
/** Peering connection details */
http: Http;
/** Peer id */
id: Scalars['ID']['output'];