@fragment-dev/cli 2026.10.10 → 2026.10.12-12

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.
@@ -4,7 +4,7 @@ import {
4
4
  schemaToEntryDefinitions,
5
5
  schemaToPaymentDefinitions,
6
6
  validateOutputName
7
- } from "./chunk-VKELXXOZ.js";
7
+ } from "./chunk-X7F4UURD.js";
8
8
  import {
9
9
  Schema,
10
10
  parseWithError
@@ -590,6 +590,61 @@ mutation SyncCustomTxs($linkId: ID!, $txs: [CustomTxInput!]!) {
590
590
  }
591
591
  }
592
592
 
593
+ mutation SyncCustomAccountsByLinkIk($linkIk: SafeString!, $accounts: [CustomAccountInput!]!) {
594
+ syncCustomAccounts(link: {ik: $linkIk}, accounts: $accounts) {
595
+ __typename
596
+ ... on SyncCustomAccountsResult {
597
+ accounts {
598
+ id
599
+ externalId
600
+ name
601
+ currency {
602
+ code
603
+ customCurrencyId
604
+ }
605
+ }
606
+ }
607
+ ... on BadRequestError {
608
+ code
609
+ message
610
+ retryable
611
+ }
612
+ ... on InternalError {
613
+ code
614
+ message
615
+ retryable
616
+ }
617
+ }
618
+ }
619
+
620
+ mutation SyncCustomTxsByLinkIk($linkIk: SafeString!, $txs: [CustomTxInput!]!) {
621
+ syncCustomTxs(link: {ik: $linkIk}, txs: $txs) {
622
+ __typename
623
+ ... on SyncCustomTxsResult {
624
+ txs {
625
+ __typename
626
+ linkId
627
+ id
628
+ externalId
629
+ externalAccountId
630
+ amount
631
+ description
632
+ posted
633
+ }
634
+ }
635
+ ... on BadRequestError {
636
+ code
637
+ message
638
+ retryable
639
+ }
640
+ ... on InternalError {
641
+ code
642
+ message
643
+ retryable
644
+ }
645
+ }
646
+ }
647
+
593
648
  mutation DeleteCustomTxs($txs: [ID!]!) {
594
649
  deleteCustomTxs(txs: $txs) {
595
650
  __typename
@@ -1084,11 +1139,11 @@ mutation CreateCustomCurrency($id: SafeString!, $name: String!, $precision: Int!
1084
1139
  }
1085
1140
  }
1086
1141
 
1087
- mutation CreatePayment($ik: SafeString!, $ledgerIk: SafeString!, $type: SafeString!, $typeVersion: Int!, $parameters: JSON) {
1142
+ mutation CreatePayment($ik: SafeString!, $ledgerIk: SafeString!, $type: SafeString!, $typeVersion: Int!, $parameters: JSON, $paymentMethod: PaymentMethodMatchInput) {
1088
1143
  createPayment(
1089
1144
  ik: $ik
1090
1145
  ledger: {ik: $ledgerIk}
1091
- payment: {type: $type, typeVersion: $typeVersion, parameters: $parameters}
1146
+ payment: {type: $type, typeVersion: $typeVersion, parameters: $parameters, paymentMethod: $paymentMethod}
1092
1147
  ) {
1093
1148
  __typename
1094
1149
  ... on CreatePaymentResult {
@@ -1160,6 +1215,137 @@ query ListPayments($ledgerIk: SafeString!, $after: String, $first: Int, $before:
1160
1215
  }
1161
1216
  }
1162
1217
  }
1218
+
1219
+ query ListPaymentMethods($email: String!, $ledgerIk: SafeString!, $after: String, $first: Int, $before: String, $last: Int) {
1220
+ paymentMethods(
1221
+ filter: {user: {email: {equalTo: $email}, ledger: {ik: $ledgerIk}}}
1222
+ after: $after
1223
+ first: $first
1224
+ before: $before
1225
+ last: $last
1226
+ ) {
1227
+ nodes {
1228
+ __typename
1229
+ id
1230
+ created
1231
+ ... on CardPaymentMethod {
1232
+ brand
1233
+ last4
1234
+ expiryMonth
1235
+ expiryYear
1236
+ }
1237
+ }
1238
+ pageInfo {
1239
+ hasNextPage
1240
+ endCursor
1241
+ hasPreviousPage
1242
+ startCursor
1243
+ }
1244
+ }
1245
+ }
1246
+
1247
+ query GetPaymentMethod($id: ID!) {
1248
+ paymentMethod(paymentMethod: {id: $id}) {
1249
+ __typename
1250
+ id
1251
+ created
1252
+ ... on CardPaymentMethod {
1253
+ brand
1254
+ last4
1255
+ expiryMonth
1256
+ expiryYear
1257
+ }
1258
+ }
1259
+ }
1260
+
1261
+ mutation DeletePaymentMethod($id: ID!) {
1262
+ deletePaymentMethod(paymentMethod: {id: $id}) {
1263
+ __typename
1264
+ ... on DeletePaymentMethodResult {
1265
+ success
1266
+ }
1267
+ ... on BadRequestError {
1268
+ code
1269
+ message
1270
+ retryable
1271
+ }
1272
+ ... on InternalError {
1273
+ code
1274
+ message
1275
+ retryable
1276
+ }
1277
+ }
1278
+ }
1279
+
1280
+ mutation CreatePaymentMethodSetup($ik: SafeString!, $ledgerIk: SafeString!, $email: String!) {
1281
+ createPaymentMethodSetup(
1282
+ ik: $ik
1283
+ ledger: {ik: $ledgerIk}
1284
+ user: {email: $email}
1285
+ ) {
1286
+ __typename
1287
+ ... on CreatePaymentMethodSetupResult {
1288
+ paymentMethodSetup {
1289
+ id
1290
+ ik
1291
+ clientSecret
1292
+ status
1293
+ mode
1294
+ created
1295
+ currency {
1296
+ code
1297
+ }
1298
+ paymentMethod {
1299
+ __typename
1300
+ id
1301
+ created
1302
+ ... on CardPaymentMethod {
1303
+ brand
1304
+ last4
1305
+ expiryMonth
1306
+ expiryYear
1307
+ }
1308
+ }
1309
+ }
1310
+ isIkReplay
1311
+ }
1312
+ ... on BadRequestError {
1313
+ code
1314
+ message
1315
+ retryable
1316
+ }
1317
+ ... on InternalError {
1318
+ code
1319
+ message
1320
+ retryable
1321
+ }
1322
+ }
1323
+ }
1324
+
1325
+ query GetPaymentMethodSetup($ik: SafeString!, $ledgerIk: SafeString!) {
1326
+ paymentMethodSetup(paymentMethodSetup: {ik: $ik, ledger: {ik: $ledgerIk}}) {
1327
+ id
1328
+ ik
1329
+ clientSecret
1330
+ status
1331
+ mode
1332
+ created
1333
+ currency {
1334
+ code
1335
+ }
1336
+ paymentMethod {
1337
+ __typename
1338
+ id
1339
+ created
1340
+ ... on CardPaymentMethod {
1341
+ brand
1342
+ last4
1343
+ expiryMonth
1344
+ expiryYear
1345
+ }
1346
+ }
1347
+ }
1348
+ }
1163
1349
  `;
1164
1350
 
1165
1351
  export {
@@ -30,7 +30,7 @@ import {
30
30
  } from "./chunk-XTIWELC3.js";
31
31
  import {
32
32
  GenGraphQL
33
- } from "./chunk-XS5YI5DX.js";
33
+ } from "./chunk-2HMFSCLH.js";
34
34
  import {
35
35
  GetSchema
36
36
  } from "./chunk-2TNTVKTC.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  standardQueries
3
- } from "./chunk-BXLI4XS7.js";
3
+ } from "./chunk-P7P5FW4E.js";
4
4
  import {
5
5
  InvalidGraphQlError
6
6
  } from "./chunk-UQALZFPK.js";
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  GenGraphQL
3
- } from "../chunk-XS5YI5DX.js";
4
- import "../chunk-VKELXXOZ.js";
5
- import "../chunk-BXLI4XS7.js";
3
+ } from "../chunk-2HMFSCLH.js";
4
+ import "../chunk-X7F4UURD.js";
5
+ import "../chunk-P7P5FW4E.js";
6
6
  import "../chunk-UQALZFPK.js";
7
7
  import "../chunk-H6M4ESQ5.js";
8
8
  import "../chunk-3FGXDI32.js";
package/dist/commands.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  COMMANDS
3
- } from "./chunk-JZN2EYK6.js";
3
+ } from "./chunk-SUAZLG32.js";
4
4
  import "./chunk-DT372IG6.js";
5
5
  import "./chunk-DESBLI6A.js";
6
6
  import "./chunk-WON5U5HP.js";
@@ -14,9 +14,9 @@ import "./chunk-XTIWELC3.js";
14
14
  import "./chunk-XRJA4D4I.js";
15
15
  import "./chunk-XXZYCI7W.js";
16
16
  import "./chunk-A4BSWX5D.js";
17
- import "./chunk-XS5YI5DX.js";
18
- import "./chunk-VKELXXOZ.js";
19
- import "./chunk-BXLI4XS7.js";
17
+ import "./chunk-2HMFSCLH.js";
18
+ import "./chunk-X7F4UURD.js";
19
+ import "./chunk-P7P5FW4E.js";
20
20
  import "./chunk-UQALZFPK.js";
21
21
  import "./chunk-H6M4ESQ5.js";
22
22
  import "./chunk-3FGXDI32.js";
package/dist/graphql.js CHANGED
@@ -11,8 +11,8 @@ import {
11
11
  schemaToEntryDefinitions,
12
12
  schemaToPaymentDefinitions,
13
13
  validateOutputName
14
- } from "./chunk-VKELXXOZ.js";
15
- import "./chunk-BXLI4XS7.js";
14
+ } from "./chunk-X7F4UURD.js";
15
+ import "./chunk-P7P5FW4E.js";
16
16
  import "./chunk-UQALZFPK.js";
17
17
  import "./chunk-3TFIBVQL.js";
18
18
  import "./chunk-ETYQBPZP.js";
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  COMMANDS
3
- } from "./chunk-JZN2EYK6.js";
3
+ } from "./chunk-SUAZLG32.js";
4
4
  import "./chunk-DT372IG6.js";
5
5
  import "./chunk-DESBLI6A.js";
6
6
  import "./chunk-WON5U5HP.js";
@@ -14,9 +14,9 @@ import "./chunk-XTIWELC3.js";
14
14
  import "./chunk-XRJA4D4I.js";
15
15
  import "./chunk-XXZYCI7W.js";
16
16
  import "./chunk-A4BSWX5D.js";
17
- import "./chunk-XS5YI5DX.js";
18
- import "./chunk-VKELXXOZ.js";
19
- import "./chunk-BXLI4XS7.js";
17
+ import "./chunk-2HMFSCLH.js";
18
+ import "./chunk-X7F4UURD.js";
19
+ import "./chunk-P7P5FW4E.js";
20
20
  import "./chunk-UQALZFPK.js";
21
21
  import "./chunk-H6M4ESQ5.js";
22
22
  import "./chunk-3FGXDI32.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  standardQueries
3
- } from "../chunk-BXLI4XS7.js";
3
+ } from "../chunk-P7P5FW4E.js";
4
4
  import "../chunk-7GH3YGSC.js";
5
5
  export {
6
6
  standardQueries
@@ -1112,5 +1112,5 @@
1112
1112
  "help": "Generate GraphQL queries from your Schema for your SDK."
1113
1113
  }
1114
1114
  },
1115
- "version": "2026.10.10"
1115
+ "version": "2026.10.12-12"
1116
1116
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fragment-dev/cli",
3
- "version": "2026.10.10",
3
+ "version": "2026.10.12-12",
4
4
  "description": "FRAGMENT CLI",
5
5
  "author": "hello@fragment.dev",
6
6
  "bin": {