@medialane/sdk 0.198.0 → 0.199.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.
Files changed (92) hide show
  1. package/README.md +85 -39
  2. package/dist/chains-CmwjZVU7.d.cts +85 -0
  3. package/dist/chains-CmwjZVU7.d.ts +85 -0
  4. package/dist/chunk-3HPMEDYH.cjs +967 -0
  5. package/dist/chunk-3HPMEDYH.cjs.map +1 -0
  6. package/dist/{chunk-3ME5YKTW.js → chunk-5KY6P434.js} +2 -2
  7. package/dist/chunk-5KY6P434.js.map +1 -0
  8. package/dist/chunk-F7W6IWTL.js +660 -0
  9. package/dist/chunk-F7W6IWTL.js.map +1 -0
  10. package/dist/chunk-GIBIHGSV.js +916 -0
  11. package/dist/chunk-GIBIHGSV.js.map +1 -0
  12. package/dist/chunk-GV4A2WNO.js +444 -0
  13. package/dist/chunk-GV4A2WNO.js.map +1 -0
  14. package/dist/{chunk-7EYJC5CB.cjs → chunk-H2NJB3AK.cjs} +2 -2
  15. package/dist/chunk-H2NJB3AK.cjs.map +1 -0
  16. package/dist/chunk-KGAGWULG.js +932 -0
  17. package/dist/chunk-KGAGWULG.js.map +1 -0
  18. package/dist/chunk-MEJ47LC3.cjs +463 -0
  19. package/dist/chunk-MEJ47LC3.cjs.map +1 -0
  20. package/dist/chunk-W76AZ5WC.cjs +376 -0
  21. package/dist/chunk-W76AZ5WC.cjs.map +1 -0
  22. package/dist/chunk-WRBXQPRL.js +323 -0
  23. package/dist/chunk-WRBXQPRL.js.map +1 -0
  24. package/dist/chunk-ZLMIHQWM.cjs +975 -0
  25. package/dist/chunk-ZLMIHQWM.cjs.map +1 -0
  26. package/dist/chunk-ZVANOWIB.cjs +688 -0
  27. package/dist/chunk-ZVANOWIB.cjs.map +1 -0
  28. package/dist/contract/index.cjs +88 -261
  29. package/dist/contract/index.cjs.map +1 -1
  30. package/dist/contract/index.d.cts +139 -4
  31. package/dist/contract/index.d.ts +139 -4
  32. package/dist/contract/index.js +4 -220
  33. package/dist/contract/index.js.map +1 -1
  34. package/dist/evm/index.cjs +3 -3
  35. package/dist/evm/index.d.cts +2 -1
  36. package/dist/evm/index.d.ts +2 -1
  37. package/dist/evm/index.js +1 -1
  38. package/dist/fetch-Cx9Pr7-B.d.cts +3 -0
  39. package/dist/fetch-Cx9Pr7-B.d.ts +3 -0
  40. package/dist/index.cjs +177 -833
  41. package/dist/index.cjs.map +1 -1
  42. package/dist/index.d.cts +53 -131
  43. package/dist/index.d.ts +53 -131
  44. package/dist/index.js +6 -659
  45. package/dist/index.js.map +1 -1
  46. package/dist/passkey-errors-Bu6I_5rn.d.ts +1041 -0
  47. package/dist/passkey-errors-D0XNQ3_g.d.cts +1041 -0
  48. package/dist/provisioning-CwRkCN8D.d.cts +14 -0
  49. package/dist/provisioning-CwRkCN8D.d.ts +14 -0
  50. package/dist/{provisioning-BUYiU8Tr.d.ts → responses-BLpM_cH_.d.cts} +40 -48
  51. package/dist/{provisioning-BUYiU8Tr.d.cts → responses-BLpM_cH_.d.ts} +40 -48
  52. package/dist/server/index.cjs +117 -0
  53. package/dist/server/index.cjs.map +1 -0
  54. package/dist/server/index.d.cts +98 -0
  55. package/dist/server/index.d.ts +98 -0
  56. package/dist/server/index.js +4 -0
  57. package/dist/server/index.js.map +1 -0
  58. package/dist/services-C9CkOsYi.d.cts +728 -0
  59. package/dist/services-CI62hzNf.d.ts +728 -0
  60. package/dist/solana/index.cjs +2 -2
  61. package/dist/solana/index.d.cts +2 -1
  62. package/dist/solana/index.d.ts +2 -1
  63. package/dist/solana/index.js +1 -1
  64. package/dist/starknet/index.cjs +898 -1729
  65. package/dist/starknet/index.cjs.map +1 -1
  66. package/dist/starknet/index.d.cts +98 -467
  67. package/dist/starknet/index.d.ts +98 -467
  68. package/dist/starknet/index.js +704 -1680
  69. package/dist/starknet/index.js.map +1 -1
  70. package/dist/stellar/index.cjs +2 -2
  71. package/dist/stellar/index.d.cts +2 -1
  72. package/dist/stellar/index.d.ts +2 -1
  73. package/dist/stellar/index.js +1 -1
  74. package/dist/types-BW6ktwcT.d.ts +71 -0
  75. package/dist/types-BftPOVEJ.d.cts +71 -0
  76. package/dist/wallet/index.cjs +240 -0
  77. package/dist/wallet/index.cjs.map +1 -0
  78. package/dist/wallet/index.d.cts +319 -0
  79. package/dist/wallet/index.d.ts +319 -0
  80. package/dist/wallet/index.js +7 -0
  81. package/dist/wallet/index.js.map +1 -0
  82. package/package.json +13 -2
  83. package/dist/chunk-2R7XBA34.cjs +0 -1938
  84. package/dist/chunk-2R7XBA34.cjs.map +0 -1
  85. package/dist/chunk-3ME5YKTW.js.map +0 -1
  86. package/dist/chunk-6WVUUBFI.js +0 -1853
  87. package/dist/chunk-6WVUUBFI.js.map +0 -1
  88. package/dist/chunk-7EYJC5CB.cjs.map +0 -1
  89. package/dist/errors-CZm-NZK0.d.cts +0 -1754
  90. package/dist/errors-h6H6cj3Q.d.ts +0 -1754
  91. package/dist/types-DC4jNPAF.d.cts +0 -153
  92. package/dist/types-DC4jNPAF.d.ts +0 -153
@@ -109,18 +109,18 @@ declare const mintSchema: z.ZodObject<{
109
109
  owner: string;
110
110
  recipient: string;
111
111
  royaltyBps: number;
112
+ value?: string | undefined;
112
113
  tokenId?: string | undefined;
113
114
  amount?: string | undefined;
114
- value?: string | undefined;
115
115
  collectionId?: string | undefined;
116
116
  tokenUri?: string | undefined;
117
117
  collectionContract?: string | undefined;
118
118
  }, {
119
119
  owner: string;
120
120
  recipient: string;
121
+ value?: string | undefined;
121
122
  tokenId?: string | undefined;
122
123
  amount?: string | undefined;
123
- value?: string | undefined;
124
124
  collectionId?: string | undefined;
125
125
  tokenUri?: string | undefined;
126
126
  royaltyBps?: number | undefined;
@@ -710,6 +710,9 @@ declare const popManageSchema: z.ZodObject<{
710
710
  tokenUri?: string | undefined;
711
711
  root?: string | undefined;
712
712
  }>;
713
+ declare const INTENT_KINDS: readonly ["listing", "offer", "fulfill", "cancel", "mint", "transfer-token", "transfer-nft", "transfer-collection-ownership", "comment", "genesis-mint", "pop-claim", "pop-burn", "drop-claim", "wallet-manage", "swap", "funding-transfer", "drop-manage", "pop-manage", "create-collection", "create-tier", "create-coin", "launch-coin", "sponsorship-offer", "sponsorship-offer-open", "sponsorship-bid", "sponsorship-bid-retract", "sponsorship-bid-accept", "sponsorship-proposal", "sponsorship-proposal-withdraw", "sponsorship-proposal-accept", "sponsorship-proposal-reject", "counter-offer"];
714
+ type IntentKind = (typeof INTENT_KINDS)[number];
715
+ declare const intentPath: (kind: IntentKind | "checkout") => string;
713
716
 
714
717
  declare const DEFAULT_BATCH_SIZE = 25;
715
718
  declare const MAX_RECIPIENTS = 500;
@@ -725,9 +728,9 @@ declare const emissionSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
725
728
  amount: z.ZodOptional<z.ZodString>;
726
729
  batchSize: z.ZodDefault<z.ZodNumber>;
727
730
  }, "strip", z.ZodTypeAny, {
731
+ chain: "STARKNET";
728
732
  owner: string;
729
733
  service: string;
730
- chain: "STARKNET";
731
734
  recipients: string[];
732
735
  batchSize: number;
733
736
  tokenId?: string | undefined;
@@ -739,17 +742,17 @@ declare const emissionSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
739
742
  owner: string;
740
743
  service: string;
741
744
  recipients: string[];
745
+ chain?: "STARKNET" | undefined;
742
746
  tokenId?: string | undefined;
743
747
  amount?: string | undefined;
744
748
  collectionId?: string | undefined;
745
749
  tokenUri?: string | undefined;
746
750
  collectionContract?: string | undefined;
747
- chain?: "STARKNET" | undefined;
748
751
  batchSize?: number | undefined;
749
752
  }>, {
753
+ chain: "STARKNET";
750
754
  owner: string;
751
755
  service: string;
752
- chain: "STARKNET";
753
756
  recipients: string[];
754
757
  batchSize: number;
755
758
  tokenId?: string | undefined;
@@ -761,17 +764,17 @@ declare const emissionSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
761
764
  owner: string;
762
765
  service: string;
763
766
  recipients: string[];
767
+ chain?: "STARKNET" | undefined;
764
768
  tokenId?: string | undefined;
765
769
  amount?: string | undefined;
766
770
  collectionId?: string | undefined;
767
771
  tokenUri?: string | undefined;
768
772
  collectionContract?: string | undefined;
769
- chain?: "STARKNET" | undefined;
770
773
  batchSize?: number | undefined;
771
774
  }>, {
775
+ chain: "STARKNET";
772
776
  owner: string;
773
777
  service: string;
774
- chain: "STARKNET";
775
778
  recipients: string[];
776
779
  batchSize: number;
777
780
  tokenId?: string | undefined;
@@ -783,12 +786,12 @@ declare const emissionSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
783
786
  owner: string;
784
787
  service: string;
785
788
  recipients: string[];
789
+ chain?: "STARKNET" | undefined;
786
790
  tokenId?: string | undefined;
787
791
  amount?: string | undefined;
788
792
  collectionId?: string | undefined;
789
793
  tokenUri?: string | undefined;
790
794
  collectionContract?: string | undefined;
791
- chain?: "STARKNET" | undefined;
792
795
  batchSize?: number | undefined;
793
796
  }>;
794
797
 
@@ -806,17 +809,17 @@ declare const ordersListQuery: z.ZodEffects<z.ZodObject<{
806
809
  sort: "price_asc" | "price_desc" | "recent";
807
810
  page: number;
808
811
  limit: number;
812
+ status?: "ACTIVE" | "FULFILLED" | "CANCELLED" | "EXPIRED" | undefined;
809
813
  offerer?: string | undefined;
810
814
  currency?: string | undefined;
811
- status?: "ACTIVE" | "FULFILLED" | "CANCELLED" | "EXPIRED" | undefined;
812
815
  collection?: string | undefined;
813
816
  minPrice?: string | undefined;
814
817
  maxPrice?: string | undefined;
815
818
  }, {
816
- offerer?: string | undefined;
817
- currency?: string | undefined;
818
819
  sort?: "price_asc" | "price_desc" | "recent" | undefined;
819
820
  status?: "ACTIVE" | "FULFILLED" | "CANCELLED" | "EXPIRED" | undefined;
821
+ offerer?: string | undefined;
822
+ currency?: string | undefined;
820
823
  collection?: string | undefined;
821
824
  page?: number | undefined;
822
825
  limit?: number | undefined;
@@ -826,17 +829,17 @@ declare const ordersListQuery: z.ZodEffects<z.ZodObject<{
826
829
  sort: "price_asc" | "price_desc" | "recent";
827
830
  page: number;
828
831
  limit: number;
832
+ status?: "ACTIVE" | "FULFILLED" | "CANCELLED" | "EXPIRED" | undefined;
829
833
  offerer?: string | undefined;
830
834
  currency?: string | undefined;
831
- status?: "ACTIVE" | "FULFILLED" | "CANCELLED" | "EXPIRED" | undefined;
832
835
  collection?: string | undefined;
833
836
  minPrice?: string | undefined;
834
837
  maxPrice?: string | undefined;
835
838
  }, {
836
- offerer?: string | undefined;
837
- currency?: string | undefined;
838
839
  sort?: "price_asc" | "price_desc" | "recent" | undefined;
839
840
  status?: "ACTIVE" | "FULFILLED" | "CANCELLED" | "EXPIRED" | undefined;
841
+ offerer?: string | undefined;
842
+ currency?: string | undefined;
840
843
  collection?: string | undefined;
841
844
  page?: number | undefined;
842
845
  limit?: number | undefined;
@@ -1014,6 +1017,8 @@ declare const orderSchema: z.ZodObject<{
1014
1017
  animationUrl: string | null;
1015
1018
  }>>;
1016
1019
  }, "strip", z.ZodTypeAny, {
1020
+ status: "ACTIVE" | "FULFILLED" | "CANCELLED" | "EXPIRED";
1021
+ chain: string;
1017
1022
  offerer: string;
1018
1023
  nftContract: string | null;
1019
1024
  price: {
@@ -1023,7 +1028,6 @@ declare const orderSchema: z.ZodObject<{
1023
1028
  decimals: number;
1024
1029
  };
1025
1030
  endTime: string;
1026
- status: "ACTIVE" | "FULFILLED" | "CANCELLED" | "EXPIRED";
1027
1031
  fulfiller: string | null;
1028
1032
  orderHash: string;
1029
1033
  startTime: string;
@@ -1038,8 +1042,6 @@ declare const orderSchema: z.ZodObject<{
1038
1042
  image: string | null;
1039
1043
  animationUrl: string | null;
1040
1044
  } | null;
1041
- chain: string;
1042
- id: string;
1043
1045
  offer: {
1044
1046
  token: string;
1045
1047
  itemType: string;
@@ -1047,6 +1049,7 @@ declare const orderSchema: z.ZodObject<{
1047
1049
  startAmount: string;
1048
1050
  endAmount: string;
1049
1051
  };
1052
+ id: string;
1050
1053
  consideration: {
1051
1054
  recipient: string;
1052
1055
  token: string;
@@ -1064,6 +1067,8 @@ declare const orderSchema: z.ZodObject<{
1064
1067
  counterOfferMessage?: string | null | undefined;
1065
1068
  hasActiveCounterOffer?: boolean | undefined;
1066
1069
  }, {
1070
+ status: "ACTIVE" | "FULFILLED" | "CANCELLED" | "EXPIRED";
1071
+ chain: string;
1067
1072
  offerer: string;
1068
1073
  nftContract: string | null;
1069
1074
  price: {
@@ -1073,7 +1078,6 @@ declare const orderSchema: z.ZodObject<{
1073
1078
  decimals: number;
1074
1079
  };
1075
1080
  endTime: string;
1076
- status: "ACTIVE" | "FULFILLED" | "CANCELLED" | "EXPIRED";
1077
1081
  fulfiller: string | null;
1078
1082
  orderHash: string;
1079
1083
  startTime: string;
@@ -1088,8 +1092,6 @@ declare const orderSchema: z.ZodObject<{
1088
1092
  image: string | null;
1089
1093
  animationUrl: string | null;
1090
1094
  } | null;
1091
- chain: string;
1092
- id: string;
1093
1095
  offer: {
1094
1096
  token: string;
1095
1097
  itemType: string;
@@ -1097,6 +1099,7 @@ declare const orderSchema: z.ZodObject<{
1097
1099
  startAmount: string;
1098
1100
  endAmount: string;
1099
1101
  };
1102
+ id: string;
1100
1103
  consideration: {
1101
1104
  recipient: string;
1102
1105
  token: string;
@@ -1305,6 +1308,8 @@ declare const tokenSchema: z.ZodObject<{
1305
1308
  animationUrl: string | null;
1306
1309
  }>>;
1307
1310
  }, "strip", z.ZodTypeAny, {
1311
+ status: "ACTIVE" | "FULFILLED" | "CANCELLED" | "EXPIRED";
1312
+ chain: string;
1308
1313
  offerer: string;
1309
1314
  nftContract: string | null;
1310
1315
  price: {
@@ -1314,7 +1319,6 @@ declare const tokenSchema: z.ZodObject<{
1314
1319
  decimals: number;
1315
1320
  };
1316
1321
  endTime: string;
1317
- status: "ACTIVE" | "FULFILLED" | "CANCELLED" | "EXPIRED";
1318
1322
  fulfiller: string | null;
1319
1323
  orderHash: string;
1320
1324
  startTime: string;
@@ -1329,8 +1333,6 @@ declare const tokenSchema: z.ZodObject<{
1329
1333
  image: string | null;
1330
1334
  animationUrl: string | null;
1331
1335
  } | null;
1332
- chain: string;
1333
- id: string;
1334
1336
  offer: {
1335
1337
  token: string;
1336
1338
  itemType: string;
@@ -1338,6 +1340,7 @@ declare const tokenSchema: z.ZodObject<{
1338
1340
  startAmount: string;
1339
1341
  endAmount: string;
1340
1342
  };
1343
+ id: string;
1341
1344
  consideration: {
1342
1345
  recipient: string;
1343
1346
  token: string;
@@ -1355,6 +1358,8 @@ declare const tokenSchema: z.ZodObject<{
1355
1358
  counterOfferMessage?: string | null | undefined;
1356
1359
  hasActiveCounterOffer?: boolean | undefined;
1357
1360
  }, {
1361
+ status: "ACTIVE" | "FULFILLED" | "CANCELLED" | "EXPIRED";
1362
+ chain: string;
1358
1363
  offerer: string;
1359
1364
  nftContract: string | null;
1360
1365
  price: {
@@ -1364,7 +1369,6 @@ declare const tokenSchema: z.ZodObject<{
1364
1369
  decimals: number;
1365
1370
  };
1366
1371
  endTime: string;
1367
- status: "ACTIVE" | "FULFILLED" | "CANCELLED" | "EXPIRED";
1368
1372
  fulfiller: string | null;
1369
1373
  orderHash: string;
1370
1374
  startTime: string;
@@ -1379,8 +1383,6 @@ declare const tokenSchema: z.ZodObject<{
1379
1383
  image: string | null;
1380
1384
  animationUrl: string | null;
1381
1385
  } | null;
1382
- chain: string;
1383
- id: string;
1384
1386
  offer: {
1385
1387
  token: string;
1386
1388
  itemType: string;
@@ -1388,6 +1390,7 @@ declare const tokenSchema: z.ZodObject<{
1388
1390
  startAmount: string;
1389
1391
  endAmount: string;
1390
1392
  };
1393
+ id: string;
1391
1394
  consideration: {
1392
1395
  recipient: string;
1393
1396
  token: string;
@@ -1408,11 +1411,11 @@ declare const tokenSchema: z.ZodObject<{
1408
1411
  createdAt: z.ZodString;
1409
1412
  updatedAt: z.ZodString;
1410
1413
  }, "strip", z.ZodTypeAny, {
1414
+ chain: string;
1411
1415
  tokenId: string;
1412
1416
  owner: string | null;
1413
1417
  tokenUri: string | null;
1414
1418
  contractAddress: string;
1415
- chain: string;
1416
1419
  id: string;
1417
1420
  createdAt: string;
1418
1421
  updatedAt: string;
@@ -1438,6 +1441,8 @@ declare const tokenSchema: z.ZodObject<{
1438
1441
  owner: string;
1439
1442
  }[] | null;
1440
1443
  activeOrders: {
1444
+ status: "ACTIVE" | "FULFILLED" | "CANCELLED" | "EXPIRED";
1445
+ chain: string;
1441
1446
  offerer: string;
1442
1447
  nftContract: string | null;
1443
1448
  price: {
@@ -1447,7 +1452,6 @@ declare const tokenSchema: z.ZodObject<{
1447
1452
  decimals: number;
1448
1453
  };
1449
1454
  endTime: string;
1450
- status: "ACTIVE" | "FULFILLED" | "CANCELLED" | "EXPIRED";
1451
1455
  fulfiller: string | null;
1452
1456
  orderHash: string;
1453
1457
  startTime: string;
@@ -1462,8 +1466,6 @@ declare const tokenSchema: z.ZodObject<{
1462
1466
  image: string | null;
1463
1467
  animationUrl: string | null;
1464
1468
  } | null;
1465
- chain: string;
1466
- id: string;
1467
1469
  offer: {
1468
1470
  token: string;
1469
1471
  itemType: string;
@@ -1471,6 +1473,7 @@ declare const tokenSchema: z.ZodObject<{
1471
1473
  startAmount: string;
1472
1474
  endAmount: string;
1473
1475
  };
1476
+ id: string;
1474
1477
  consideration: {
1475
1478
  recipient: string;
1476
1479
  token: string;
@@ -1491,11 +1494,11 @@ declare const tokenSchema: z.ZodObject<{
1491
1494
  holderCount?: number | undefined;
1492
1495
  supply?: string | undefined;
1493
1496
  }, {
1497
+ chain: string;
1494
1498
  tokenId: string;
1495
1499
  owner: string | null;
1496
1500
  tokenUri: string | null;
1497
1501
  contractAddress: string;
1498
- chain: string;
1499
1502
  id: string;
1500
1503
  createdAt: string;
1501
1504
  updatedAt: string;
@@ -1521,6 +1524,8 @@ declare const tokenSchema: z.ZodObject<{
1521
1524
  owner: string;
1522
1525
  }[] | null;
1523
1526
  activeOrders: {
1527
+ status: "ACTIVE" | "FULFILLED" | "CANCELLED" | "EXPIRED";
1528
+ chain: string;
1524
1529
  offerer: string;
1525
1530
  nftContract: string | null;
1526
1531
  price: {
@@ -1530,7 +1535,6 @@ declare const tokenSchema: z.ZodObject<{
1530
1535
  decimals: number;
1531
1536
  };
1532
1537
  endTime: string;
1533
- status: "ACTIVE" | "FULFILLED" | "CANCELLED" | "EXPIRED";
1534
1538
  fulfiller: string | null;
1535
1539
  orderHash: string;
1536
1540
  startTime: string;
@@ -1545,8 +1549,6 @@ declare const tokenSchema: z.ZodObject<{
1545
1549
  image: string | null;
1546
1550
  animationUrl: string | null;
1547
1551
  } | null;
1548
- chain: string;
1549
- id: string;
1550
1552
  offer: {
1551
1553
  token: string;
1552
1554
  itemType: string;
@@ -1554,6 +1556,7 @@ declare const tokenSchema: z.ZodObject<{
1554
1556
  startAmount: string;
1555
1557
  endAmount: string;
1556
1558
  };
1559
+ id: string;
1557
1560
  consideration: {
1558
1561
  recipient: string;
1559
1562
  token: string;
@@ -1634,6 +1637,7 @@ declare const collectionSchema: z.ZodObject<{
1634
1637
  }>>;
1635
1638
  }, "strip", z.ZodTypeAny, {
1636
1639
  symbol: string | null;
1640
+ chain: string;
1637
1641
  owner: string | null;
1638
1642
  collectionId: string | null;
1639
1643
  name: string | null;
@@ -1641,7 +1645,6 @@ declare const collectionSchema: z.ZodObject<{
1641
1645
  image: string | null;
1642
1646
  service: string | null;
1643
1647
  contractAddress: string;
1644
- chain: string;
1645
1648
  id: string;
1646
1649
  createdAt: string;
1647
1650
  updatedAt: string;
@@ -1670,6 +1673,7 @@ declare const collectionSchema: z.ZodObject<{
1670
1673
  } | null;
1671
1674
  }, {
1672
1675
  symbol: string | null;
1676
+ chain: string;
1673
1677
  owner: string | null;
1674
1678
  collectionId: string | null;
1675
1679
  name: string | null;
@@ -1677,7 +1681,6 @@ declare const collectionSchema: z.ZodObject<{
1677
1681
  image: string | null;
1678
1682
  service: string | null;
1679
1683
  contractAddress: string;
1680
- chain: string;
1681
1684
  id: string;
1682
1685
  createdAt: string;
1683
1686
  updatedAt: string;
@@ -1706,15 +1709,4 @@ declare const collectionSchema: z.ZodObject<{
1706
1709
  } | null;
1707
1710
  }>;
1708
1711
 
1709
- declare const provisioningRegisterSchema: z.ZodObject<{
1710
- chain: z.ZodDefault<z.ZodEnum<["STARKNET"]>>;
1711
- email: z.ZodString;
1712
- }, "strip", z.ZodTypeAny, {
1713
- chain: "STARKNET";
1714
- email: string;
1715
- }, {
1716
- email: string;
1717
- chain?: "STARKNET" | undefined;
1718
- }>;
1719
-
1720
- export { createCoinSchema as A, launchCoinSchema as B, sponsorshipOfferSchema as C, sponsorshipOfferOpenSchema as D, sponsorshipBidSchema as E, sponsorshipBidRetractSchema as F, sponsorshipProposalSchema as G, sponsorshipProposalWithdrawSchema as H, sponsorshipProposalRejectSchema as I, counterOfferSchema as J, collectionProfileSchema as K, COLLECTION_SERVICE_IDS as L, FACTORY_FAMILY_SERVICE_IDS as M, provisioningRegisterSchema as N, confirmSchema as O, signatureSchema as P, DEFAULT_BATCH_SIZE as Q, MAX_RECIPIENTS as R, collectionSchema as S, TIER_SERVICE_IDS as T, creatorProfileSchema as U, tokenAttributeSchema as V, tokenSchema as W, urlField as X, sponsorshipProposalAcceptSchema as a, orderSchema as b, offerSchema as c, cancelSchema as d, checkoutBodySchema as e, fulfillSchema as f, transferNftSchema as g, transferCollectionOwnershipSchema as h, commentSchema as i, genesisMintSchema as j, popBurnSchema as k, listingSchema as l, mintSchema as m, dropClaimSchema as n, ordersListQuery as o, popClaimSchema as p, swapIntentSchema as q, fundingTransferSchema as r, sponsorshipBidAcceptSchema as s, transferTokenSchema as t, dropManageSchema as u, popManageSchema as v, walletManageSchema as w, createCollectionSchema as x, createTierSchema as y, emissionSchema as z };
1712
+ export { launchCoinSchema as A, sponsorshipOfferSchema as B, sponsorshipOfferOpenSchema as C, sponsorshipBidSchema as D, sponsorshipBidRetractSchema as E, sponsorshipProposalSchema as F, sponsorshipProposalWithdrawSchema as G, sponsorshipProposalRejectSchema as H, counterOfferSchema as I, checkoutBodySchema as J, emissionSchema as K, COLLECTION_SERVICE_IDS as L, FACTORY_FAMILY_SERVICE_IDS as M, INTENT_KINDS as N, type IntentKind as O, confirmSchema as P, intentPath as Q, signatureSchema as R, DEFAULT_BATCH_SIZE as S, TIER_SERVICE_IDS as T, MAX_RECIPIENTS as U, collectionSchema as V, creatorProfileSchema as W, tokenAttributeSchema as X, tokenSchema as Y, urlField as Z, sponsorshipProposalAcceptSchema as a, orderSchema as b, collectionProfileSchema as c, offerSchema as d, cancelSchema as e, fulfillSchema as f, transferNftSchema as g, transferCollectionOwnershipSchema as h, commentSchema as i, genesisMintSchema as j, popBurnSchema as k, listingSchema as l, mintSchema as m, dropClaimSchema as n, ordersListQuery as o, popClaimSchema as p, swapIntentSchema as q, fundingTransferSchema as r, sponsorshipBidAcceptSchema as s, transferTokenSchema as t, dropManageSchema as u, popManageSchema as v, walletManageSchema as w, createCollectionSchema as x, createTierSchema as y, createCoinSchema as z };
@@ -0,0 +1,117 @@
1
+ 'use strict';
2
+
3
+ var chunkZVANOWIB_cjs = require('../chunk-ZVANOWIB.cjs');
4
+ require('../chunk-Q7SFCCGT.cjs');
5
+
6
+
7
+
8
+ Object.defineProperty(exports, "ACCOUNT_SESSION_COOKIE", {
9
+ enumerable: true,
10
+ get: function () { return chunkZVANOWIB_cjs.ACCOUNT_SESSION_COOKIE; }
11
+ });
12
+ Object.defineProperty(exports, "ACCOUNT_SESSION_TTL_SECONDS", {
13
+ enumerable: true,
14
+ get: function () { return chunkZVANOWIB_cjs.ACCOUNT_SESSION_TTL_SECONDS; }
15
+ });
16
+ Object.defineProperty(exports, "ALLOWED_IMAGE_CONTENT_TYPES", {
17
+ enumerable: true,
18
+ get: function () { return chunkZVANOWIB_cjs.ALLOWED_IMAGE_CONTENT_TYPES; }
19
+ });
20
+ Object.defineProperty(exports, "IDENTITY_TTL_SECONDS", {
21
+ enumerable: true,
22
+ get: function () { return chunkZVANOWIB_cjs.IDENTITY_TTL_SECONDS; }
23
+ });
24
+ Object.defineProperty(exports, "IPFS_SAFE_CONTENT_TYPE_PREFIXES", {
25
+ enumerable: true,
26
+ get: function () { return chunkZVANOWIB_cjs.IPFS_SAFE_CONTENT_TYPE_PREFIXES; }
27
+ });
28
+ Object.defineProperty(exports, "MAX_IMAGE_PROXY_BYTES", {
29
+ enumerable: true,
30
+ get: function () { return chunkZVANOWIB_cjs.MAX_IMAGE_PROXY_BYTES; }
31
+ });
32
+ Object.defineProperty(exports, "MAX_IMAGE_REDIRECTS", {
33
+ enumerable: true,
34
+ get: function () { return chunkZVANOWIB_cjs.MAX_IMAGE_REDIRECTS; }
35
+ });
36
+ Object.defineProperty(exports, "MAX_IPFS_GATEWAY_RESPONSE_BYTES", {
37
+ enumerable: true,
38
+ get: function () { return chunkZVANOWIB_cjs.MAX_IPFS_GATEWAY_RESPONSE_BYTES; }
39
+ });
40
+ Object.defineProperty(exports, "createAppGateway", {
41
+ enumerable: true,
42
+ get: function () { return chunkZVANOWIB_cjs.createAppGateway; }
43
+ });
44
+ Object.defineProperty(exports, "createAppSessionHandler", {
45
+ enumerable: true,
46
+ get: function () { return chunkZVANOWIB_cjs.createAppSessionHandler; }
47
+ });
48
+ Object.defineProperty(exports, "createImageProxyHandler", {
49
+ enumerable: true,
50
+ get: function () { return chunkZVANOWIB_cjs.createImageProxyHandler; }
51
+ });
52
+ Object.defineProperty(exports, "getBackendSignedUrl", {
53
+ enumerable: true,
54
+ get: function () { return chunkZVANOWIB_cjs.getBackendSignedUrl; }
55
+ });
56
+ Object.defineProperty(exports, "isPrivateHost", {
57
+ enumerable: true,
58
+ get: function () { return chunkZVANOWIB_cjs.isPrivateHost; }
59
+ });
60
+ Object.defineProperty(exports, "isPrivateOrInsecureUrl", {
61
+ enumerable: true,
62
+ get: function () { return chunkZVANOWIB_cjs.isPrivateOrInsecureUrl; }
63
+ });
64
+ Object.defineProperty(exports, "isPublicAppRoute", {
65
+ enumerable: true,
66
+ get: function () { return chunkZVANOWIB_cjs.isPublicAppRoute; }
67
+ });
68
+ Object.defineProperty(exports, "isSameOrigin", {
69
+ enumerable: true,
70
+ get: function () { return chunkZVANOWIB_cjs.isSameOrigin; }
71
+ });
72
+ Object.defineProperty(exports, "isValidIpfsCidPath", {
73
+ enumerable: true,
74
+ get: function () { return chunkZVANOWIB_cjs.isValidIpfsCidPath; }
75
+ });
76
+ Object.defineProperty(exports, "issueAccountSessionToken", {
77
+ enumerable: true,
78
+ get: function () { return chunkZVANOWIB_cjs.issueAccountSessionToken; }
79
+ });
80
+ Object.defineProperty(exports, "issueSiwsToken", {
81
+ enumerable: true,
82
+ get: function () { return chunkZVANOWIB_cjs.issueSiwsToken; }
83
+ });
84
+ Object.defineProperty(exports, "readBodyWithCap", {
85
+ enumerable: true,
86
+ get: function () { return chunkZVANOWIB_cjs.readBodyWithCap; }
87
+ });
88
+ Object.defineProperty(exports, "resolveSafeImageContentType", {
89
+ enumerable: true,
90
+ get: function () { return chunkZVANOWIB_cjs.resolveSafeImageContentType; }
91
+ });
92
+ Object.defineProperty(exports, "uploadDirectoryToBackend", {
93
+ enumerable: true,
94
+ get: function () { return chunkZVANOWIB_cjs.uploadDirectoryToBackend; }
95
+ });
96
+ Object.defineProperty(exports, "uploadFileToBackend", {
97
+ enumerable: true,
98
+ get: function () { return chunkZVANOWIB_cjs.uploadFileToBackend; }
99
+ });
100
+ Object.defineProperty(exports, "uploadJsonToBackend", {
101
+ enumerable: true,
102
+ get: function () { return chunkZVANOWIB_cjs.uploadJsonToBackend; }
103
+ });
104
+ Object.defineProperty(exports, "validateUrl", {
105
+ enumerable: true,
106
+ get: function () { return chunkZVANOWIB_cjs.validateUrl; }
107
+ });
108
+ Object.defineProperty(exports, "verifyAccountSessionToken", {
109
+ enumerable: true,
110
+ get: function () { return chunkZVANOWIB_cjs.verifyAccountSessionToken; }
111
+ });
112
+ Object.defineProperty(exports, "verifySiwsToken", {
113
+ enumerable: true,
114
+ get: function () { return chunkZVANOWIB_cjs.verifySiwsToken; }
115
+ });
116
+ //# sourceMappingURL=index.cjs.map
117
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs"}
@@ -0,0 +1,98 @@
1
+ import { F as FetchLike } from '../fetch-Cx9Pr7-B.cjs';
2
+ import { C as Chain } from '../chains-CmwjZVU7.cjs';
3
+
4
+ declare const ACCOUNT_SESSION_COOKIE = "ml_account_session";
5
+ interface AppGatewayConfig {
6
+ appId: string;
7
+ backendUrl: string;
8
+ apiKey: string | undefined;
9
+ appSecret?: string;
10
+ allow: Record<string, RegExp[]>;
11
+ cacheableGets?: RegExp[];
12
+ timeoutMs?: number;
13
+ fetchImpl?: FetchLike;
14
+ }
15
+ declare function createAppGateway(config: AppGatewayConfig): (req: Request, path: string[]) => Promise<Response>;
16
+
17
+ interface AppSessionConfig {
18
+ appId: string;
19
+ backendUrl: string;
20
+ apiKey: string | undefined;
21
+ appSecret?: string;
22
+ fetchImpl?: FetchLike;
23
+ }
24
+ declare function createAppSessionHandler(config: AppSessionConfig): {
25
+ GET(req: Request): Promise<Response>;
26
+ DELETE(req: Request): Promise<Response>;
27
+ };
28
+
29
+ declare const ALLOWED_IMAGE_CONTENT_TYPES: Set<string>;
30
+ declare const MAX_IMAGE_REDIRECTS = 5;
31
+ declare const MAX_IMAGE_PROXY_BYTES: number;
32
+ declare function isPrivateHost(hostname: string): boolean;
33
+ declare function validateUrl(raw: string, options?: {
34
+ requireHttps?: boolean;
35
+ }): {
36
+ url: URL;
37
+ } | {
38
+ error: string;
39
+ status: number;
40
+ };
41
+ declare function isPrivateOrInsecureUrl(raw: string, requireHttps?: boolean): boolean;
42
+
43
+ interface ImageProxyConfig {
44
+ resolveHostname: (hostname: string) => Promise<string[]>;
45
+ fetchImpl?: FetchLike;
46
+ userAgent?: string;
47
+ backend?: Pick<AppGatewayConfig, "appId" | "backendUrl" | "apiKey" | "appSecret">;
48
+ }
49
+ interface CappedBody {
50
+ ok: boolean;
51
+ body?: Uint8Array;
52
+ error?: string;
53
+ status?: number;
54
+ }
55
+ declare function readBodyWithCap(res: Response, maxBytes: number): Promise<CappedBody>;
56
+ declare function createImageProxyHandler(config: ImageProxyConfig): (req: Request) => Promise<Response>;
57
+
58
+ interface BackendMetadataConfig {
59
+ backendUrl: string;
60
+ apiKey: string;
61
+ fetchImpl?: FetchLike;
62
+ }
63
+ interface BackendUploadResult {
64
+ cid: string;
65
+ uri: string;
66
+ }
67
+ declare function uploadJsonToBackend(config: BackendMetadataConfig, json: unknown): Promise<BackendUploadResult>;
68
+ declare function uploadFileToBackend(config: BackendMetadataConfig, file: File): Promise<BackendUploadResult>;
69
+ declare function uploadDirectoryToBackend(config: BackendMetadataConfig, files: {
70
+ name: string;
71
+ content: unknown;
72
+ }[]): Promise<{
73
+ cid: string;
74
+ baseUri: string;
75
+ }>;
76
+ declare function getBackendSignedUrl(config: BackendMetadataConfig, kind?: "image" | "document" | "media"): Promise<string>;
77
+
78
+ declare function isSameOrigin(req: Request): boolean;
79
+
80
+ declare function isPublicAppRoute(method: string, path: string): boolean;
81
+
82
+ declare const IDENTITY_TTL_SECONDS = 86400;
83
+ declare const ACCOUNT_SESSION_TTL_SECONDS: number;
84
+ interface SiwsIdentity {
85
+ address: string;
86
+ chain: Chain;
87
+ }
88
+ declare function issueSiwsToken(secret: string, chain: Chain, wallet: string, ttlSeconds?: number): string;
89
+ declare function verifySiwsToken(secret: string, raw: string): SiwsIdentity | null;
90
+ declare function issueAccountSessionToken(secret: string, accountId: string, ttlSeconds?: number): string;
91
+ declare function verifyAccountSessionToken(secret: string, raw: string): string | null;
92
+
93
+ declare function isValidIpfsCidPath(cidPath: string): boolean;
94
+ declare const IPFS_SAFE_CONTENT_TYPE_PREFIXES: readonly ["image/jpeg", "image/png", "image/gif", "image/webp", "image/avif", "image/svg+xml", "video/", "audio/", "model/", "font/", "application/json", "application/octet-stream"];
95
+ declare function resolveSafeImageContentType(contentType: string): string;
96
+ declare const MAX_IPFS_GATEWAY_RESPONSE_BYTES: number;
97
+
98
+ export { ACCOUNT_SESSION_COOKIE, ACCOUNT_SESSION_TTL_SECONDS, ALLOWED_IMAGE_CONTENT_TYPES, type AppGatewayConfig, type AppSessionConfig, type BackendMetadataConfig, type BackendUploadResult, type CappedBody, IDENTITY_TTL_SECONDS, IPFS_SAFE_CONTENT_TYPE_PREFIXES, type ImageProxyConfig, MAX_IMAGE_PROXY_BYTES, MAX_IMAGE_REDIRECTS, MAX_IPFS_GATEWAY_RESPONSE_BYTES, type SiwsIdentity, createAppGateway, createAppSessionHandler, createImageProxyHandler, getBackendSignedUrl, isPrivateHost, isPrivateOrInsecureUrl, isPublicAppRoute, isSameOrigin, isValidIpfsCidPath, issueAccountSessionToken, issueSiwsToken, readBodyWithCap, resolveSafeImageContentType, uploadDirectoryToBackend, uploadFileToBackend, uploadJsonToBackend, validateUrl, verifyAccountSessionToken, verifySiwsToken };