@domino-sdk/relay 0.28.0 → 0.30.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.
- package/dist/authoring.d.ts +11 -3
- package/dist/authoring.js +8 -3
- package/dist/browser.d.ts +138 -122
- package/dist/browser.js +6 -6
- package/dist/{chunk-IXLY3A7B.js → chunk-BE5V6RFD.js} +8 -0
- package/dist/{chunk-ZP43MHO3.js → chunk-CB7RKKDX.js} +199 -741
- package/dist/{chunk-AL5GXMKI.js → chunk-CWIJDQDT.js} +166 -31
- package/dist/{chunk-AKB266O5.js → chunk-HINZLW46.js} +13 -2
- package/dist/chunk-TYYGYDYX.js +42 -0
- package/dist/{chunk-NHSA6ATH.js → chunk-UMKGCDBX.js} +2 -2
- package/dist/index.d.ts +383 -320
- package/dist/index.js +46 -34
- package/dist/portal-proxy.js +6 -6
- package/dist/react/index.d.ts +201 -38
- package/dist/react/index.js +139 -18
- package/dist/schema.d.ts +27 -1
- package/dist/schema.js +3 -1
- package/dist/{submission-input-D3t8WKOk.d.ts → submission-input-B6f27BHm.d.ts} +30 -1206
- package/package.json +1 -1
- package/dist/chunk-D6BX627V.js +0 -175
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
leaderboardArtifactSchema,
|
|
9
9
|
leaderboardDefinitionSchema,
|
|
10
10
|
leaderboardPageSchema,
|
|
11
|
+
leaderboardPlacementSchema,
|
|
11
12
|
leaderboardPreviewSchema,
|
|
12
13
|
leaderboardQuerySchema,
|
|
13
14
|
normalizeAuthoringIdentity,
|
|
@@ -18,13 +19,23 @@ import {
|
|
|
18
19
|
referralHistorySchema,
|
|
19
20
|
referralSummarySchema,
|
|
20
21
|
validateAuthoringIdentity
|
|
21
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-HINZLW46.js";
|
|
22
23
|
import {
|
|
23
24
|
authScopeSchema,
|
|
24
25
|
exchangeResultSchema,
|
|
25
|
-
linkedWalletSchema,
|
|
26
26
|
memberSummarySchema,
|
|
27
|
-
sessionSchema
|
|
27
|
+
sessionSchema
|
|
28
|
+
} from "./chunk-TYYGYDYX.js";
|
|
29
|
+
import {
|
|
30
|
+
AVATAR_UPLOAD_LIMIT,
|
|
31
|
+
avatarUploadTypes,
|
|
32
|
+
linkedWalletSchema,
|
|
33
|
+
ownProfileSchema,
|
|
34
|
+
profileCompletionPageSchema,
|
|
35
|
+
profileCompletionQuerySchema,
|
|
36
|
+
profileReferralSchema,
|
|
37
|
+
profileSummarySchema,
|
|
38
|
+
profileUpdateSchema,
|
|
28
39
|
walletAddressInput,
|
|
29
40
|
walletAddressInputSchema,
|
|
30
41
|
walletChallengeInputSchema,
|
|
@@ -35,14 +46,7 @@ import {
|
|
|
35
46
|
walletSignInNetworksSchema,
|
|
36
47
|
walletSignatureSchema,
|
|
37
48
|
walletUnlinkInputSchema
|
|
38
|
-
} from "./chunk-
|
|
39
|
-
import {
|
|
40
|
-
AVATAR_UPLOAD_LIMIT,
|
|
41
|
-
avatarUploadTypes,
|
|
42
|
-
ownProfileSchema,
|
|
43
|
-
profileUpdateSchema,
|
|
44
|
-
publicProfileSchema
|
|
45
|
-
} from "./chunk-D6BX627V.js";
|
|
49
|
+
} from "./chunk-CWIJDQDT.js";
|
|
46
50
|
import {
|
|
47
51
|
accountConnectionSchema,
|
|
48
52
|
attemptSchema,
|
|
@@ -81,7 +85,7 @@ import {
|
|
|
81
85
|
validateSubmissionValue,
|
|
82
86
|
valueEvidenceSchema,
|
|
83
87
|
xTweetSchema
|
|
84
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-BE5V6RFD.js";
|
|
85
89
|
|
|
86
90
|
// src/point-ledgers.ts
|
|
87
91
|
import { z } from "zod";
|
|
@@ -840,579 +844,7 @@ function observeProgress(transport, listener, options = {}, onDispose = () => {
|
|
|
840
844
|
}
|
|
841
845
|
|
|
842
846
|
// src/index.ts
|
|
843
|
-
import { z as
|
|
844
|
-
|
|
845
|
-
// src/evm-chains.ts
|
|
846
|
-
import { z as z5 } from "zod";
|
|
847
|
-
var evmChains = {
|
|
848
|
-
"eip155:1": { network: "ethereum", name: "Ethereum", testnet: false },
|
|
849
|
-
"eip155:10": { network: "optimism", name: "Optimism", testnet: false },
|
|
850
|
-
"eip155:14": { network: "flare", name: "Flare", testnet: false },
|
|
851
|
-
"eip155:25": { network: "cronos", name: "Cronos", testnet: false },
|
|
852
|
-
"eip155:30": { network: "rootstock", name: "Rootstock", testnet: false },
|
|
853
|
-
"eip155:31": {
|
|
854
|
-
network: "rootstock-testnet",
|
|
855
|
-
name: "Rootstock Testnet",
|
|
856
|
-
testnet: true
|
|
857
|
-
},
|
|
858
|
-
"eip155:40": { network: "telos", name: "Telos", testnet: false },
|
|
859
|
-
"eip155:50": { network: "xdc", name: "XDC", testnet: false },
|
|
860
|
-
"eip155:51": { network: "xdc-testnet", name: "XDC Testnet", testnet: true },
|
|
861
|
-
"eip155:56": { network: "bsc", name: "BNB Smart Chain", testnet: false },
|
|
862
|
-
"eip155:61": {
|
|
863
|
-
network: "ethereum-classic",
|
|
864
|
-
name: "Ethereum Classic",
|
|
865
|
-
testnet: false
|
|
866
|
-
},
|
|
867
|
-
"eip155:66": { network: "oktc", name: "OKT Chain", testnet: false },
|
|
868
|
-
"eip155:88": { network: "viction", name: "Viction", testnet: false },
|
|
869
|
-
"eip155:89": {
|
|
870
|
-
network: "viction-testnet",
|
|
871
|
-
name: "Viction Testnet",
|
|
872
|
-
testnet: true
|
|
873
|
-
},
|
|
874
|
-
"eip155:97": {
|
|
875
|
-
network: "bsc-testnet",
|
|
876
|
-
name: "BNB Smart Chain Testnet",
|
|
877
|
-
testnet: true
|
|
878
|
-
},
|
|
879
|
-
"eip155:100": { network: "gnosis", name: "Gnosis", testnet: false },
|
|
880
|
-
"eip155:109": { network: "shibarium", name: "Shibarium", testnet: false },
|
|
881
|
-
"eip155:114": {
|
|
882
|
-
network: "flare-testnet",
|
|
883
|
-
name: "Flare Testnet",
|
|
884
|
-
testnet: true
|
|
885
|
-
},
|
|
886
|
-
"eip155:122": { network: "fuse", name: "Fuse", testnet: false },
|
|
887
|
-
"eip155:130": { network: "unichain", name: "Unichain", testnet: false },
|
|
888
|
-
"eip155:133": {
|
|
889
|
-
network: "hashkey-testnet",
|
|
890
|
-
name: "HashKey Testnet",
|
|
891
|
-
testnet: true
|
|
892
|
-
},
|
|
893
|
-
"eip155:137": { network: "polygon", name: "Polygon", testnet: false },
|
|
894
|
-
"eip155:143": { network: "monad-mainnet", name: "Monad", testnet: false },
|
|
895
|
-
"eip155:146": { network: "sonic", name: "Sonic", testnet: false },
|
|
896
|
-
"eip155:169": {
|
|
897
|
-
network: "manta-pacific",
|
|
898
|
-
name: "Manta Pacific Mainnet",
|
|
899
|
-
testnet: false
|
|
900
|
-
},
|
|
901
|
-
"eip155:177": { network: "hashkey", name: "HashKey", testnet: false },
|
|
902
|
-
"eip155:196": { network: "xlayer", name: "XLayer", testnet: false },
|
|
903
|
-
"eip155:199": { network: "bittorrent", name: "BitTorrent", testnet: false },
|
|
904
|
-
"eip155:204": { network: "opbnb", name: "opBNB", testnet: false },
|
|
905
|
-
"eip155:223": { network: "bsquared", name: "B\xB2 Network", testnet: false },
|
|
906
|
-
"eip155:232": { network: "lens", name: "Lens Network", testnet: false },
|
|
907
|
-
"eip155:239": { network: "tac", name: "Tac", testnet: false },
|
|
908
|
-
"eip155:240": {
|
|
909
|
-
network: "cronos-zkevm-testnet",
|
|
910
|
-
name: "Cronos zkEVM Testnet",
|
|
911
|
-
testnet: true
|
|
912
|
-
},
|
|
913
|
-
"eip155:250": { network: "fantom", name: "Fantom", testnet: false },
|
|
914
|
-
"eip155:252": { network: "fraxtal", name: "Fraxtal", testnet: false },
|
|
915
|
-
"eip155:288": { network: "boba-eth", name: "Boba Ethereum", testnet: false },
|
|
916
|
-
"eip155:291": { network: "orderly", name: "Orderly", testnet: false },
|
|
917
|
-
"eip155:300": {
|
|
918
|
-
network: "zksync-sepolia",
|
|
919
|
-
name: "zkSync Era Sepolia",
|
|
920
|
-
testnet: true
|
|
921
|
-
},
|
|
922
|
-
"eip155:314": { network: "filecoin", name: "Filecoin", testnet: false },
|
|
923
|
-
"eip155:324": { network: "zksync", name: "zkSync Era", testnet: false },
|
|
924
|
-
"eip155:338": {
|
|
925
|
-
network: "cronos-testnet",
|
|
926
|
-
name: "Cronos Testnet",
|
|
927
|
-
testnet: true
|
|
928
|
-
},
|
|
929
|
-
"eip155:388": {
|
|
930
|
-
network: "cronos-zkevm",
|
|
931
|
-
name: "Cronos zkEVM",
|
|
932
|
-
testnet: false
|
|
933
|
-
},
|
|
934
|
-
"eip155:480": { network: "worldchain", name: "Worldchain", testnet: false },
|
|
935
|
-
"eip155:592": { network: "astar", name: "Astar", testnet: false },
|
|
936
|
-
"eip155:919": {
|
|
937
|
-
network: "mode-testnet",
|
|
938
|
-
name: "Mode Testnet",
|
|
939
|
-
testnet: true
|
|
940
|
-
},
|
|
941
|
-
"eip155:945": {
|
|
942
|
-
network: "bittensor-testnet",
|
|
943
|
-
name: "Bittensor Testnet",
|
|
944
|
-
testnet: true
|
|
945
|
-
},
|
|
946
|
-
"eip155:964": { network: "bittensor", name: "Bittensor", testnet: false },
|
|
947
|
-
"eip155:988": { network: "stable", name: "Stable", testnet: false },
|
|
948
|
-
"eip155:998": {
|
|
949
|
-
network: "hyperliquid-testnet",
|
|
950
|
-
name: "HyperLiquid Testnet",
|
|
951
|
-
testnet: true
|
|
952
|
-
},
|
|
953
|
-
"eip155:999": { network: "hyperliquid", name: "HyperLiquid", testnet: false },
|
|
954
|
-
"eip155:1001": {
|
|
955
|
-
network: "klaytn-baobab",
|
|
956
|
-
name: "Kaia Baobab",
|
|
957
|
-
testnet: true
|
|
958
|
-
},
|
|
959
|
-
"eip155:1088": { network: "metis", name: "Metis", testnet: false },
|
|
960
|
-
"eip155:1100": { network: "dymension", name: "Dymension", testnet: false },
|
|
961
|
-
"eip155:1101": {
|
|
962
|
-
network: "polygon-zkevm",
|
|
963
|
-
name: "Polygon zkEVM",
|
|
964
|
-
testnet: false
|
|
965
|
-
},
|
|
966
|
-
"eip155:1111": { network: "wemix", name: "Wemix", testnet: false },
|
|
967
|
-
"eip155:1112": {
|
|
968
|
-
network: "wemix-testnet",
|
|
969
|
-
name: "Wemix Testnet",
|
|
970
|
-
testnet: true
|
|
971
|
-
},
|
|
972
|
-
"eip155:1114": {
|
|
973
|
-
network: "core-testnet",
|
|
974
|
-
name: "Core Testnet",
|
|
975
|
-
testnet: true
|
|
976
|
-
},
|
|
977
|
-
"eip155:1116": { network: "core", name: "Core", testnet: false },
|
|
978
|
-
"eip155:1135": { network: "lisk", name: "Lisk", testnet: false },
|
|
979
|
-
"eip155:1284": { network: "moonbeam", name: "Moonbeam", testnet: false },
|
|
980
|
-
"eip155:1285": { network: "moonriver", name: "Moonriver", testnet: false },
|
|
981
|
-
"eip155:1287": {
|
|
982
|
-
network: "moonbase-alpha",
|
|
983
|
-
name: "Moonbeam Moonbase Alpha",
|
|
984
|
-
testnet: true
|
|
985
|
-
},
|
|
986
|
-
"eip155:1301": {
|
|
987
|
-
network: "unichain-sepolia",
|
|
988
|
-
name: "Unichain Sepolia",
|
|
989
|
-
testnet: true
|
|
990
|
-
},
|
|
991
|
-
"eip155:1328": { network: "sei-testnet", name: "Sei Testnet", testnet: true },
|
|
992
|
-
"eip155:1329": { network: "sei", name: "Sei", testnet: false },
|
|
993
|
-
"eip155:1514": { network: "story", name: "Story", testnet: false },
|
|
994
|
-
"eip155:1625": {
|
|
995
|
-
network: "gravity-alpha",
|
|
996
|
-
name: "Gravity Alpha",
|
|
997
|
-
testnet: false
|
|
998
|
-
},
|
|
999
|
-
"eip155:1672": { network: "pharos", name: "Pharos", testnet: false },
|
|
1000
|
-
"eip155:1740": {
|
|
1001
|
-
network: "metall2-testnet",
|
|
1002
|
-
name: "Metal L2 Testnet",
|
|
1003
|
-
testnet: true
|
|
1004
|
-
},
|
|
1005
|
-
"eip155:1750": { network: "metall2", name: "Metal L2", testnet: false },
|
|
1006
|
-
"eip155:1829": { network: "playnance", name: "Playnance", testnet: false },
|
|
1007
|
-
"eip155:1868": { network: "soneium", name: "Soneium", testnet: false },
|
|
1008
|
-
"eip155:1923": { network: "swell", name: "Swell", testnet: false },
|
|
1009
|
-
"eip155:1924": {
|
|
1010
|
-
network: "swell-testnet",
|
|
1011
|
-
name: "Swell Testnet",
|
|
1012
|
-
testnet: true
|
|
1013
|
-
},
|
|
1014
|
-
"eip155:1946": {
|
|
1015
|
-
network: "soneium-minato",
|
|
1016
|
-
name: "Soneium Minato",
|
|
1017
|
-
testnet: true
|
|
1018
|
-
},
|
|
1019
|
-
"eip155:1952": {
|
|
1020
|
-
network: "xlayer-testnet",
|
|
1021
|
-
name: "XLayer Testnet",
|
|
1022
|
-
testnet: true
|
|
1023
|
-
},
|
|
1024
|
-
"eip155:2020": { network: "ronin", name: "Ronin", testnet: false },
|
|
1025
|
-
"eip155:2221": {
|
|
1026
|
-
network: "kava-testnet",
|
|
1027
|
-
name: "Kava Testnet",
|
|
1028
|
-
testnet: true
|
|
1029
|
-
},
|
|
1030
|
-
"eip155:2222": { network: "kava", name: "Kava", testnet: false },
|
|
1031
|
-
"eip155:2288": { network: "moca", name: "Moca", testnet: false },
|
|
1032
|
-
"eip155:2345": {
|
|
1033
|
-
network: "goat-mainnet-alpha",
|
|
1034
|
-
name: "GOAT Network Mainnet Alpha",
|
|
1035
|
-
testnet: false
|
|
1036
|
-
},
|
|
1037
|
-
"eip155:2366": { network: "kite", name: "Kite", testnet: false },
|
|
1038
|
-
"eip155:2442": {
|
|
1039
|
-
network: "polygon-zkevm-cardona",
|
|
1040
|
-
name: "Polygon zkEVM Cardona",
|
|
1041
|
-
testnet: true
|
|
1042
|
-
},
|
|
1043
|
-
"eip155:2523": {
|
|
1044
|
-
network: "fraxtal-testnet",
|
|
1045
|
-
name: "Fraxtal Testnet",
|
|
1046
|
-
testnet: true
|
|
1047
|
-
},
|
|
1048
|
-
"eip155:2741": { network: "abstract", name: "Abstract", testnet: false },
|
|
1049
|
-
"eip155:2818": { network: "morph", name: "Morph", testnet: false },
|
|
1050
|
-
"eip155:2910": { network: "morph-hoodi", name: "Morph Hoodi", testnet: true },
|
|
1051
|
-
"eip155:3338": { network: "peaq", name: "Peaq", testnet: false },
|
|
1052
|
-
"eip155:3343": { network: "edge", name: "Edge", testnet: false },
|
|
1053
|
-
"eip155:3637": { network: "botanix", name: "Botanix", testnet: false },
|
|
1054
|
-
"eip155:4200": { network: "merlin", name: "Merlin", testnet: false },
|
|
1055
|
-
"eip155:4202": {
|
|
1056
|
-
network: "lisk-sepolia",
|
|
1057
|
-
name: "Lisk Sepolia",
|
|
1058
|
-
testnet: true
|
|
1059
|
-
},
|
|
1060
|
-
"eip155:4217": { network: "tempo-mainnet", name: "Tempo", testnet: false },
|
|
1061
|
-
"eip155:4326": { network: "megaeth", name: "megaETH", testnet: false },
|
|
1062
|
-
"eip155:4460": {
|
|
1063
|
-
network: "orderly-testnet",
|
|
1064
|
-
name: "Orderly Testnet",
|
|
1065
|
-
testnet: true
|
|
1066
|
-
},
|
|
1067
|
-
"eip155:4663": { network: "robinhood", name: "Robinhood", testnet: false },
|
|
1068
|
-
"eip155:4801": {
|
|
1069
|
-
network: "worldchain-sepolia",
|
|
1070
|
-
name: "Worldchain Sepolia",
|
|
1071
|
-
testnet: true
|
|
1072
|
-
},
|
|
1073
|
-
"eip155:5000": { network: "mantle", name: "Mantle", testnet: false },
|
|
1074
|
-
"eip155:5003": {
|
|
1075
|
-
network: "mantle-sepolia",
|
|
1076
|
-
name: "Mantle Sepolia",
|
|
1077
|
-
testnet: true
|
|
1078
|
-
},
|
|
1079
|
-
"eip155:5042": { network: "arc", name: "Arc", testnet: false },
|
|
1080
|
-
"eip155:5330": { network: "superseed", name: "Superseed", testnet: false },
|
|
1081
|
-
"eip155:5611": {
|
|
1082
|
-
network: "opbnb-testnet",
|
|
1083
|
-
name: "opBNB Testnet",
|
|
1084
|
-
testnet: true
|
|
1085
|
-
},
|
|
1086
|
-
"eip155:6122": { network: "tea", name: "Tea", testnet: false },
|
|
1087
|
-
"eip155:7000": { network: "zeta-chain", name: "ZetaChain", testnet: false },
|
|
1088
|
-
"eip155:7001": {
|
|
1089
|
-
network: "zeta-chain-testnet",
|
|
1090
|
-
name: "ZetaChain Testnet",
|
|
1091
|
-
testnet: true
|
|
1092
|
-
},
|
|
1093
|
-
"eip155:8217": { network: "klaytn", name: "Kaia", testnet: false },
|
|
1094
|
-
"eip155:8453": { network: "base", name: "Base", testnet: false },
|
|
1095
|
-
"eip155:9745": { network: "plasma", name: "Plasma", testnet: false },
|
|
1096
|
-
"eip155:9746": {
|
|
1097
|
-
network: "plasma-testnet",
|
|
1098
|
-
name: "Plasma Testnet",
|
|
1099
|
-
testnet: true
|
|
1100
|
-
},
|
|
1101
|
-
"eip155:10143": {
|
|
1102
|
-
network: "monad-testnet",
|
|
1103
|
-
name: "Monad Testnet",
|
|
1104
|
-
testnet: true
|
|
1105
|
-
},
|
|
1106
|
-
"eip155:10200": {
|
|
1107
|
-
network: "gnosis-chiado",
|
|
1108
|
-
name: "Gnosis Chiado",
|
|
1109
|
-
testnet: true
|
|
1110
|
-
},
|
|
1111
|
-
"eip155:11124": {
|
|
1112
|
-
network: "abstract-sepolia",
|
|
1113
|
-
name: "Abstract Sepolia",
|
|
1114
|
-
testnet: true
|
|
1115
|
-
},
|
|
1116
|
-
"eip155:11235": { network: "haqq", name: "HAQQ", testnet: false },
|
|
1117
|
-
"eip155:13371": {
|
|
1118
|
-
network: "immutable-zkevm",
|
|
1119
|
-
name: "Immutable zkEVM",
|
|
1120
|
-
testnet: false
|
|
1121
|
-
},
|
|
1122
|
-
"eip155:13473": {
|
|
1123
|
-
network: "immutable-zkevm-testnet",
|
|
1124
|
-
name: "Immutable zkEVM Testnet",
|
|
1125
|
-
testnet: true
|
|
1126
|
-
},
|
|
1127
|
-
"eip155:13505": {
|
|
1128
|
-
network: "gravity-alpha-sepolia",
|
|
1129
|
-
name: "Gravity Alpha Sepolia",
|
|
1130
|
-
testnet: true
|
|
1131
|
-
},
|
|
1132
|
-
"eip155:14601": {
|
|
1133
|
-
network: "sonic-testnet-v2",
|
|
1134
|
-
name: "Sonic Testnet",
|
|
1135
|
-
testnet: true
|
|
1136
|
-
},
|
|
1137
|
-
"eip155:16602": {
|
|
1138
|
-
network: "0g-galileo-testnet",
|
|
1139
|
-
name: "0G Galileo Testnet",
|
|
1140
|
-
testnet: true
|
|
1141
|
-
},
|
|
1142
|
-
"eip155:16661": { network: "0g-mainnet", name: "0G", testnet: false },
|
|
1143
|
-
"eip155:17000": {
|
|
1144
|
-
network: "holesky",
|
|
1145
|
-
name: "Ethereum Holesky",
|
|
1146
|
-
testnet: true
|
|
1147
|
-
},
|
|
1148
|
-
"eip155:25327": { network: "everclear", name: "Everclear", testnet: false },
|
|
1149
|
-
"eip155:31611": {
|
|
1150
|
-
network: "mezo-testnet",
|
|
1151
|
-
name: "Mezo Testnet",
|
|
1152
|
-
testnet: true
|
|
1153
|
-
},
|
|
1154
|
-
"eip155:31612": { network: "mezo", name: "Mezo", testnet: false },
|
|
1155
|
-
"eip155:33111": {
|
|
1156
|
-
network: "apechain-curtis",
|
|
1157
|
-
name: "Apechain Curtis",
|
|
1158
|
-
testnet: true
|
|
1159
|
-
},
|
|
1160
|
-
"eip155:33139": { network: "apechain", name: "Apechain", testnet: false },
|
|
1161
|
-
"eip155:34443": { network: "mode", name: "Mode", testnet: false },
|
|
1162
|
-
"eip155:36888": { network: "abcore", name: "ABCore", testnet: false },
|
|
1163
|
-
"eip155:36900": { network: "adi", name: "ADI Network", testnet: false },
|
|
1164
|
-
"eip155:37111": {
|
|
1165
|
-
network: "lens-testnet",
|
|
1166
|
-
name: "Lens Network Testnet",
|
|
1167
|
-
testnet: true
|
|
1168
|
-
},
|
|
1169
|
-
"eip155:42161": { network: "arbitrum", name: "Arbitrum One", testnet: false },
|
|
1170
|
-
"eip155:42170": {
|
|
1171
|
-
network: "arbitrum-nova",
|
|
1172
|
-
name: "Arbitrum Nova",
|
|
1173
|
-
testnet: false
|
|
1174
|
-
},
|
|
1175
|
-
"eip155:42220": { network: "celo", name: "Celo", testnet: false },
|
|
1176
|
-
"eip155:42431": {
|
|
1177
|
-
network: "tempo-moderato-testnet",
|
|
1178
|
-
name: "Tempo Moderato Testnet",
|
|
1179
|
-
testnet: true
|
|
1180
|
-
},
|
|
1181
|
-
"eip155:42793": { network: "etherlink", name: "Etherlink", testnet: false },
|
|
1182
|
-
"eip155:43111": { network: "hemi", name: "Hemi", testnet: false },
|
|
1183
|
-
"eip155:43113": {
|
|
1184
|
-
network: "avalanche-fuji",
|
|
1185
|
-
name: "Avalanche Fuji",
|
|
1186
|
-
testnet: true
|
|
1187
|
-
},
|
|
1188
|
-
"eip155:43114": { network: "avalanche", name: "Avalanche", testnet: false },
|
|
1189
|
-
"eip155:46630": {
|
|
1190
|
-
network: "robinhood-testnet",
|
|
1191
|
-
name: "Robinhood Testnet",
|
|
1192
|
-
testnet: true
|
|
1193
|
-
},
|
|
1194
|
-
"eip155:47763": { network: "neo-x", name: "Neo X", testnet: false },
|
|
1195
|
-
"eip155:48898": {
|
|
1196
|
-
network: "zircuit-garfield-testnet",
|
|
1197
|
-
name: "Zircuit Garfield",
|
|
1198
|
-
testnet: true
|
|
1199
|
-
},
|
|
1200
|
-
"eip155:48900": {
|
|
1201
|
-
network: "zircuit-mainnet",
|
|
1202
|
-
name: "Zircuit",
|
|
1203
|
-
testnet: false
|
|
1204
|
-
},
|
|
1205
|
-
"eip155:53302": {
|
|
1206
|
-
network: "superseed-sepolia",
|
|
1207
|
-
name: "Superseed Sepolia",
|
|
1208
|
-
testnet: true
|
|
1209
|
-
},
|
|
1210
|
-
"eip155:54211": {
|
|
1211
|
-
network: "haqq-testnet",
|
|
1212
|
-
name: "HAQQ Testnet",
|
|
1213
|
-
testnet: true
|
|
1214
|
-
},
|
|
1215
|
-
"eip155:57073": { network: "ink", name: "Ink", testnet: false },
|
|
1216
|
-
"eip155:59141": {
|
|
1217
|
-
network: "linea-sepolia",
|
|
1218
|
-
name: "Linea Sepolia",
|
|
1219
|
-
testnet: true
|
|
1220
|
-
},
|
|
1221
|
-
"eip155:59144": { network: "linea", name: "Linea", testnet: false },
|
|
1222
|
-
"eip155:60808": { network: "bob", name: "BOB", testnet: false },
|
|
1223
|
-
"eip155:61901": {
|
|
1224
|
-
network: "mova-mainnet-v2",
|
|
1225
|
-
name: "Mova Mainnet V2",
|
|
1226
|
-
testnet: false
|
|
1227
|
-
},
|
|
1228
|
-
"eip155:80002": {
|
|
1229
|
-
network: "polygon-amoy",
|
|
1230
|
-
name: "Polygon Amoy",
|
|
1231
|
-
testnet: true
|
|
1232
|
-
},
|
|
1233
|
-
"eip155:80069": {
|
|
1234
|
-
network: "berachain-bepolia",
|
|
1235
|
-
name: "Berachain Bepolia",
|
|
1236
|
-
testnet: true
|
|
1237
|
-
},
|
|
1238
|
-
"eip155:80094": { network: "berachain", name: "Berachain", testnet: false },
|
|
1239
|
-
"eip155:81457": { network: "blast", name: "Blast", testnet: false },
|
|
1240
|
-
"eip155:84532": {
|
|
1241
|
-
network: "base-sepolia",
|
|
1242
|
-
name: "Base Sepolia",
|
|
1243
|
-
testnet: true
|
|
1244
|
-
},
|
|
1245
|
-
"eip155:97476": {
|
|
1246
|
-
network: "doma-testnet",
|
|
1247
|
-
name: "Doma Testnet",
|
|
1248
|
-
testnet: true
|
|
1249
|
-
},
|
|
1250
|
-
"eip155:97477": { network: "doma", name: "Doma", testnet: false },
|
|
1251
|
-
"eip155:98866": { network: "plume", name: "Plume", testnet: false },
|
|
1252
|
-
"eip155:98867": {
|
|
1253
|
-
network: "plume-testnet",
|
|
1254
|
-
name: "Plume Testnet",
|
|
1255
|
-
testnet: true
|
|
1256
|
-
},
|
|
1257
|
-
"eip155:102030": {
|
|
1258
|
-
network: "creditcoin",
|
|
1259
|
-
name: "Creditcoin",
|
|
1260
|
-
testnet: false
|
|
1261
|
-
},
|
|
1262
|
-
"eip155:102031": {
|
|
1263
|
-
network: "creditcoin-testnet",
|
|
1264
|
-
name: "Creditcoin Testnet",
|
|
1265
|
-
testnet: true
|
|
1266
|
-
},
|
|
1267
|
-
"eip155:127001": { network: "gravity", name: "Gravity", testnet: false },
|
|
1268
|
-
"eip155:167000": { network: "taiko", name: "Taiko", testnet: false },
|
|
1269
|
-
"eip155:167013": {
|
|
1270
|
-
network: "taiko-hoodi",
|
|
1271
|
-
name: "Taiko Hoodi",
|
|
1272
|
-
testnet: true
|
|
1273
|
-
},
|
|
1274
|
-
"eip155:200901": { network: "bitlayer", name: "Bitlayer", testnet: false },
|
|
1275
|
-
"eip155:202601": {
|
|
1276
|
-
network: "ronin-saigon",
|
|
1277
|
-
name: "Ronin Saigon",
|
|
1278
|
-
testnet: true
|
|
1279
|
-
},
|
|
1280
|
-
"eip155:314159": {
|
|
1281
|
-
network: "filecoin-calibration",
|
|
1282
|
-
name: "Filecoin Calibration Testnet",
|
|
1283
|
-
testnet: true
|
|
1284
|
-
},
|
|
1285
|
-
"eip155:421614": {
|
|
1286
|
-
network: "arbitrum-sepolia",
|
|
1287
|
-
name: "Arbitrum One Sepolia",
|
|
1288
|
-
testnet: true
|
|
1289
|
-
},
|
|
1290
|
-
"eip155:534351": {
|
|
1291
|
-
network: "scroll-sepolia",
|
|
1292
|
-
name: "Scroll Sepolia",
|
|
1293
|
-
testnet: true
|
|
1294
|
-
},
|
|
1295
|
-
"eip155:534352": { network: "scroll", name: "Scroll", testnet: false },
|
|
1296
|
-
"eip155:560048": { network: "hoodi", name: "Ethereum Hoodi", testnet: true },
|
|
1297
|
-
"eip155:656476": {
|
|
1298
|
-
network: "open-campus-codex-sepolia",
|
|
1299
|
-
name: "Open Campus Codex Sepolia",
|
|
1300
|
-
testnet: true
|
|
1301
|
-
},
|
|
1302
|
-
"eip155:688689": {
|
|
1303
|
-
network: "pharos-atlantic-testnet",
|
|
1304
|
-
name: "Pharos Atlantic Testnet",
|
|
1305
|
-
testnet: true
|
|
1306
|
-
},
|
|
1307
|
-
"eip155:713715": { network: "sei-devnet", name: "Sei Devnet", testnet: true },
|
|
1308
|
-
"eip155:737373": {
|
|
1309
|
-
network: "katana-testnet",
|
|
1310
|
-
name: "Katana Testnet",
|
|
1311
|
-
testnet: true
|
|
1312
|
-
},
|
|
1313
|
-
"eip155:743111": {
|
|
1314
|
-
network: "hemi-testnet",
|
|
1315
|
-
name: "Hemi Testnet",
|
|
1316
|
-
testnet: true
|
|
1317
|
-
},
|
|
1318
|
-
"eip155:747474": { network: "katana", name: "Katana", testnet: false },
|
|
1319
|
-
"eip155:763373": {
|
|
1320
|
-
network: "ink-sepolia",
|
|
1321
|
-
name: "Ink Sepolia",
|
|
1322
|
-
testnet: true
|
|
1323
|
-
},
|
|
1324
|
-
"eip155:808813": {
|
|
1325
|
-
network: "bob-testnet",
|
|
1326
|
-
name: "BOB Testnet",
|
|
1327
|
-
testnet: true
|
|
1328
|
-
},
|
|
1329
|
-
"eip155:1440000": { network: "xrpl", name: "XRPL", testnet: false },
|
|
1330
|
-
"eip155:3441006": {
|
|
1331
|
-
network: "manta-pacific-sepolia",
|
|
1332
|
-
name: "Manta Pacific Sepolia",
|
|
1333
|
-
testnet: true
|
|
1334
|
-
},
|
|
1335
|
-
"eip155:5042002": {
|
|
1336
|
-
network: "arc-testnet",
|
|
1337
|
-
name: "Arc Testnet",
|
|
1338
|
-
testnet: true
|
|
1339
|
-
},
|
|
1340
|
-
"eip155:5734951": { network: "jovay", name: "Jovay", testnet: false },
|
|
1341
|
-
"eip155:6281971": {
|
|
1342
|
-
network: "dogeos-testnet",
|
|
1343
|
-
name: "DogeOS Testnet",
|
|
1344
|
-
testnet: true
|
|
1345
|
-
},
|
|
1346
|
-
"eip155:7080969": {
|
|
1347
|
-
network: "humanity-testnet",
|
|
1348
|
-
name: "Humanity Testnet",
|
|
1349
|
-
testnet: true
|
|
1350
|
-
},
|
|
1351
|
-
"eip155:7777777": { network: "zora", name: "Zora", testnet: false },
|
|
1352
|
-
"eip155:11142220": {
|
|
1353
|
-
network: "celo-sepolia",
|
|
1354
|
-
name: "Celo Sepolia",
|
|
1355
|
-
testnet: true
|
|
1356
|
-
},
|
|
1357
|
-
"eip155:11155111": {
|
|
1358
|
-
network: "sepolia",
|
|
1359
|
-
name: "Ethereum Sepolia",
|
|
1360
|
-
testnet: true
|
|
1361
|
-
},
|
|
1362
|
-
"eip155:11155420": {
|
|
1363
|
-
network: "optimism-sepolia",
|
|
1364
|
-
name: "Optimism Sepolia",
|
|
1365
|
-
testnet: true
|
|
1366
|
-
},
|
|
1367
|
-
"eip155:168587773": {
|
|
1368
|
-
network: "blast-sepolia",
|
|
1369
|
-
name: "Blast Sepolia",
|
|
1370
|
-
testnet: true
|
|
1371
|
-
},
|
|
1372
|
-
"eip155:245022934": { network: "neon-evm", name: "Neon EVM", testnet: false },
|
|
1373
|
-
"eip155:728126428": {
|
|
1374
|
-
network: "tron",
|
|
1375
|
-
name: "Tron",
|
|
1376
|
-
testnet: false,
|
|
1377
|
-
nativeDecimals: 6
|
|
1378
|
-
},
|
|
1379
|
-
"eip155:999999999": {
|
|
1380
|
-
network: "zora-sepolia",
|
|
1381
|
-
name: "Zora Sepolia",
|
|
1382
|
-
testnet: true
|
|
1383
|
-
},
|
|
1384
|
-
"eip155:1313161554": { network: "aurora", name: "Aurora", testnet: false },
|
|
1385
|
-
"eip155:1313161555": {
|
|
1386
|
-
network: "aurora-testnet",
|
|
1387
|
-
name: "Aurora Testnet",
|
|
1388
|
-
testnet: true
|
|
1389
|
-
},
|
|
1390
|
-
"eip155:1666600000": {
|
|
1391
|
-
network: "harmony-0",
|
|
1392
|
-
name: "Harmony Mainnet Shard 0",
|
|
1393
|
-
testnet: false
|
|
1394
|
-
},
|
|
1395
|
-
"eip155:1666600001": {
|
|
1396
|
-
network: "harmony-1",
|
|
1397
|
-
name: "Harmony Mainnet Shard 1",
|
|
1398
|
-
testnet: false
|
|
1399
|
-
},
|
|
1400
|
-
"eip155:2494104990": {
|
|
1401
|
-
network: "tron-shasta",
|
|
1402
|
-
name: "Tron Shasta",
|
|
1403
|
-
testnet: true,
|
|
1404
|
-
nativeDecimals: 6
|
|
1405
|
-
},
|
|
1406
|
-
"eip155:3448148188": {
|
|
1407
|
-
network: "tron-nile",
|
|
1408
|
-
name: "Tron Nile",
|
|
1409
|
-
testnet: true,
|
|
1410
|
-
nativeDecimals: 6
|
|
1411
|
-
}
|
|
1412
|
-
};
|
|
1413
|
-
var evmChainSchema = z5.enum(
|
|
1414
|
-
Object.keys(evmChains)
|
|
1415
|
-
);
|
|
847
|
+
import { z as z10 } from "zod";
|
|
1416
848
|
|
|
1417
849
|
// src/avatar.ts
|
|
1418
850
|
import { createAvatar } from "@dicebear/core";
|
|
@@ -1431,23 +863,23 @@ function walletAvatarSeed(wallet) {
|
|
|
1431
863
|
}
|
|
1432
864
|
|
|
1433
865
|
// src/collection.ts
|
|
1434
|
-
import { z as
|
|
1435
|
-
var collectionCodeSchema =
|
|
1436
|
-
var collectionPassSchema =
|
|
866
|
+
import { z as z5 } from "zod";
|
|
867
|
+
var collectionCodeSchema = z5.string().regex(/^relay:collect:[a-f0-9]{64}$/);
|
|
868
|
+
var collectionPassSchema = z5.object({
|
|
1437
869
|
code: collectionCodeSchema,
|
|
1438
|
-
expiresAt:
|
|
870
|
+
expiresAt: z5.number(),
|
|
1439
871
|
entitlement: identifier
|
|
1440
872
|
});
|
|
1441
|
-
var collectionResolveSchema =
|
|
873
|
+
var collectionResolveSchema = z5.object({ code: collectionCodeSchema }).strict();
|
|
1442
874
|
var collectionBeginSchema = collectionResolveSchema.extend({
|
|
1443
875
|
actionId: identifier,
|
|
1444
|
-
revision:
|
|
876
|
+
revision: z5.number().int().positive(),
|
|
1445
877
|
selection: pickupSelectionSchema.optional()
|
|
1446
878
|
});
|
|
1447
|
-
var collectionPreviewSchema =
|
|
879
|
+
var collectionPreviewSchema = z5.object({
|
|
1448
880
|
entitlement: entitlementSchema,
|
|
1449
881
|
inventory: pickupAvailabilitySchema,
|
|
1450
|
-
expiresAt:
|
|
882
|
+
expiresAt: z5.number()
|
|
1451
883
|
});
|
|
1452
884
|
|
|
1453
885
|
// src/configuration.ts
|
|
@@ -1465,23 +897,23 @@ function questConfiguration(release) {
|
|
|
1465
897
|
}
|
|
1466
898
|
|
|
1467
899
|
// src/deployments.ts
|
|
1468
|
-
import { z as
|
|
900
|
+
import { z as z8 } from "zod";
|
|
1469
901
|
|
|
1470
902
|
// src/images.ts
|
|
1471
|
-
import { z as
|
|
903
|
+
import { z as z7 } from "zod";
|
|
1472
904
|
|
|
1473
905
|
// src/x.ts
|
|
1474
|
-
import { z as
|
|
1475
|
-
var xIdSchema =
|
|
1476
|
-
var xConnectionSchema =
|
|
1477
|
-
var xProfileSchema =
|
|
906
|
+
import { z as z6 } from "zod";
|
|
907
|
+
var xIdSchema = z6.string().regex(/^[0-9]{1,20}$/);
|
|
908
|
+
var xConnectionSchema = z6.object({ userId: xIdSchema });
|
|
909
|
+
var xProfileSchema = z6.object({
|
|
1478
910
|
id: xIdSchema,
|
|
1479
|
-
username:
|
|
1480
|
-
name:
|
|
1481
|
-
bio:
|
|
1482
|
-
profileImageUrl:
|
|
1483
|
-
followersCount:
|
|
1484
|
-
verified:
|
|
911
|
+
username: z6.string(),
|
|
912
|
+
name: z6.string(),
|
|
913
|
+
bio: z6.string().nullable(),
|
|
914
|
+
profileImageUrl: z6.string().url().nullable(),
|
|
915
|
+
followersCount: z6.number().int().nonnegative().nullable(),
|
|
916
|
+
verified: z6.boolean().nullable()
|
|
1485
917
|
});
|
|
1486
918
|
var xPostSchema = xTweetSchema.extend({
|
|
1487
919
|
quotedTweetId: xIdSchema.nullish().transform((v) => v ?? null),
|
|
@@ -1493,127 +925,127 @@ var xPostSchema = xTweetSchema.extend({
|
|
|
1493
925
|
* projection (migration 0056), a list with any malformed item is dropped whole, so positions
|
|
1494
926
|
* never shift and a bad entry never fails the post read.
|
|
1495
927
|
*/
|
|
1496
|
-
media:
|
|
1497
|
-
(value) =>
|
|
928
|
+
media: z6.unknown().transform(
|
|
929
|
+
(value) => z6.array(z6.object({ type: z6.string(), url: z6.string() })).safeParse(value).data ?? []
|
|
1498
930
|
)
|
|
1499
931
|
});
|
|
1500
|
-
var xRequestSchema =
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
932
|
+
var xRequestSchema = z6.discriminatedUnion("operation", [
|
|
933
|
+
z6.object({ operation: z6.literal("connection") }).strict(),
|
|
934
|
+
z6.object({ operation: z6.literal("profile") }).strict(),
|
|
935
|
+
z6.object({ operation: z6.literal("post"), postId: xIdSchema }).strict(),
|
|
936
|
+
z6.object({ operation: z6.literal("follows"), userId: xIdSchema }).strict(),
|
|
937
|
+
z6.object({ operation: z6.literal("reposted"), postId: xIdSchema }).strict()
|
|
1506
938
|
]);
|
|
1507
939
|
|
|
1508
940
|
// src/images.ts
|
|
1509
|
-
var imageReferenceSchema =
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
x:
|
|
941
|
+
var imageReferenceSchema = z7.union([
|
|
942
|
+
z7.strictObject({ evidence: z7.string().min(1).max(256) }),
|
|
943
|
+
z7.strictObject({ x: z7.literal("profile") }),
|
|
944
|
+
z7.strictObject({
|
|
945
|
+
x: z7.literal("post"),
|
|
1514
946
|
postId: xIdSchema,
|
|
1515
|
-
index:
|
|
947
|
+
index: z7.number().int().min(0).max(3).default(0)
|
|
1516
948
|
}),
|
|
1517
|
-
|
|
949
|
+
z7.strictObject({ asset: identifier })
|
|
1518
950
|
]);
|
|
1519
|
-
var criteria =
|
|
1520
|
-
var imageFieldSchema =
|
|
1521
|
-
type:
|
|
1522
|
-
description:
|
|
951
|
+
var criteria = z7.string().trim().min(1).max(2e3);
|
|
952
|
+
var imageFieldSchema = z7.strictObject({
|
|
953
|
+
type: z7.enum(["string", "number", "boolean"]),
|
|
954
|
+
description: z7.string().trim().min(1).max(500)
|
|
1523
955
|
});
|
|
1524
|
-
var imageFieldsSchema =
|
|
956
|
+
var imageFieldsSchema = z7.record(z7.string().regex(/^[a-zA-Z][a-zA-Z0-9_]{0,39}$/), imageFieldSchema).refine((fields) => {
|
|
1525
957
|
const count = Object.keys(fields).length;
|
|
1526
958
|
return count >= 1 && count <= 12;
|
|
1527
959
|
}, "Declare between 1 and 12 fields");
|
|
1528
|
-
var imageRequestSchema =
|
|
1529
|
-
|
|
1530
|
-
operation:
|
|
960
|
+
var imageRequestSchema = z7.discriminatedUnion("operation", [
|
|
961
|
+
z7.strictObject({
|
|
962
|
+
operation: z7.literal("inspect"),
|
|
1531
963
|
image: imageReferenceSchema
|
|
1532
964
|
}),
|
|
1533
|
-
|
|
1534
|
-
operation:
|
|
1535
|
-
images:
|
|
965
|
+
z7.strictObject({
|
|
966
|
+
operation: z7.literal("compare"),
|
|
967
|
+
images: z7.tuple([imageReferenceSchema, imageReferenceSchema])
|
|
1536
968
|
}),
|
|
1537
|
-
|
|
1538
|
-
operation:
|
|
1539
|
-
images:
|
|
969
|
+
z7.strictObject({
|
|
970
|
+
operation: z7.literal("review"),
|
|
971
|
+
images: z7.array(imageReferenceSchema).min(1).max(4),
|
|
1540
972
|
criteria
|
|
1541
973
|
}),
|
|
1542
|
-
|
|
1543
|
-
operation:
|
|
974
|
+
z7.strictObject({
|
|
975
|
+
operation: z7.literal("extract"),
|
|
1544
976
|
image: imageReferenceSchema,
|
|
1545
977
|
fields: imageFieldsSchema
|
|
1546
978
|
}),
|
|
1547
|
-
|
|
1548
|
-
operation:
|
|
979
|
+
z7.strictObject({
|
|
980
|
+
operation: z7.literal("seen"),
|
|
1549
981
|
image: imageReferenceSchema,
|
|
1550
|
-
maxDistance:
|
|
982
|
+
maxDistance: z7.number().int().min(0).max(8).default(8)
|
|
1551
983
|
})
|
|
1552
984
|
]);
|
|
1553
|
-
var hash =
|
|
1554
|
-
var imageInspectionSchema =
|
|
1555
|
-
width:
|
|
1556
|
-
height:
|
|
1557
|
-
format:
|
|
1558
|
-
bytes:
|
|
1559
|
-
sha256:
|
|
985
|
+
var hash = z7.string().regex(/^[0-9a-f]{16}$/);
|
|
986
|
+
var imageInspectionSchema = z7.strictObject({
|
|
987
|
+
width: z7.number().int().positive(),
|
|
988
|
+
height: z7.number().int().positive(),
|
|
989
|
+
format: z7.enum(["jpeg", "png", "webp", "gif", "avif"]),
|
|
990
|
+
bytes: z7.number().int().positive(),
|
|
991
|
+
sha256: z7.string().regex(/^[0-9a-f]{64}$/),
|
|
1560
992
|
phash: hash,
|
|
1561
993
|
dhash: hash
|
|
1562
994
|
});
|
|
1563
|
-
var distance =
|
|
1564
|
-
var imageComparisonSchema =
|
|
1565
|
-
identical:
|
|
995
|
+
var distance = z7.number().int().min(0).max(64);
|
|
996
|
+
var imageComparisonSchema = z7.strictObject({
|
|
997
|
+
identical: z7.boolean(),
|
|
1566
998
|
phashDistance: distance,
|
|
1567
999
|
dhashDistance: distance
|
|
1568
1000
|
});
|
|
1569
|
-
var imageExtractionSchema =
|
|
1570
|
-
values:
|
|
1571
|
-
|
|
1572
|
-
|
|
1001
|
+
var imageExtractionSchema = z7.strictObject({
|
|
1002
|
+
values: z7.record(
|
|
1003
|
+
z7.string(),
|
|
1004
|
+
z7.union([z7.string().max(2e3), z7.number(), z7.boolean(), z7.null()])
|
|
1573
1005
|
),
|
|
1574
|
-
reason:
|
|
1006
|
+
reason: z7.string().min(1).max(2e3)
|
|
1575
1007
|
});
|
|
1576
|
-
var imageSightingsSchema =
|
|
1577
|
-
matches:
|
|
1008
|
+
var imageSightingsSchema = z7.strictObject({
|
|
1009
|
+
matches: z7.number().int().nonnegative(),
|
|
1578
1010
|
closestDistance: distance.nullable(),
|
|
1579
|
-
firstSeenAt:
|
|
1011
|
+
firstSeenAt: z7.number().int().nonnegative().nullable()
|
|
1580
1012
|
});
|
|
1581
|
-
var sha256 =
|
|
1582
|
-
var imageSize =
|
|
1583
|
-
var imageAssetArtifactSchema =
|
|
1013
|
+
var sha256 = z7.string().regex(/^[0-9a-f]{64}$/);
|
|
1014
|
+
var imageSize = z7.number().int().positive().max(5 * 1024 * 1024);
|
|
1015
|
+
var imageAssetArtifactSchema = z7.strictObject({
|
|
1584
1016
|
key: identifier,
|
|
1585
1017
|
sha256,
|
|
1586
1018
|
size: imageSize,
|
|
1587
|
-
path:
|
|
1019
|
+
path: z7.string().min(1).max(500).optional()
|
|
1588
1020
|
});
|
|
1589
|
-
var imageUploadRequestSchema =
|
|
1590
|
-
images:
|
|
1591
|
-
|
|
1021
|
+
var imageUploadRequestSchema = z7.strictObject({
|
|
1022
|
+
images: z7.array(
|
|
1023
|
+
z7.strictObject({
|
|
1592
1024
|
sha256,
|
|
1593
1025
|
size: imageSize,
|
|
1594
|
-
type:
|
|
1026
|
+
type: z7.enum(["image/jpeg", "image/png", "image/webp"])
|
|
1595
1027
|
})
|
|
1596
1028
|
).min(1).max(10)
|
|
1597
1029
|
});
|
|
1598
|
-
var imageUploadsSchema =
|
|
1599
|
-
images:
|
|
1600
|
-
|
|
1030
|
+
var imageUploadsSchema = z7.strictObject({
|
|
1031
|
+
images: z7.array(
|
|
1032
|
+
z7.strictObject({
|
|
1601
1033
|
sha256,
|
|
1602
|
-
upload:
|
|
1603
|
-
url:
|
|
1604
|
-
headers:
|
|
1605
|
-
expiresAt:
|
|
1034
|
+
upload: z7.strictObject({
|
|
1035
|
+
url: z7.string().url(),
|
|
1036
|
+
headers: z7.record(z7.string(), z7.string()),
|
|
1037
|
+
expiresAt: z7.number().int().positive()
|
|
1606
1038
|
}).nullable()
|
|
1607
1039
|
})
|
|
1608
1040
|
)
|
|
1609
1041
|
});
|
|
1610
|
-
var publishedImageSchema =
|
|
1042
|
+
var publishedImageSchema = z7.strictObject({
|
|
1611
1043
|
key: identifier,
|
|
1612
1044
|
sha256,
|
|
1613
|
-
type:
|
|
1045
|
+
type: z7.enum(["image/jpeg", "image/png", "image/webp"]),
|
|
1614
1046
|
size: imageSize,
|
|
1615
|
-
width:
|
|
1616
|
-
height:
|
|
1047
|
+
width: z7.number().int().positive(),
|
|
1048
|
+
height: z7.number().int().positive()
|
|
1617
1049
|
});
|
|
1618
1050
|
function parseImageExtraction(raw, value) {
|
|
1619
1051
|
const result = imageExtractionSchema.parse(value);
|
|
@@ -1649,59 +1081,59 @@ function parseImageResult(request, value) {
|
|
|
1649
1081
|
|
|
1650
1082
|
// src/deployments.ts
|
|
1651
1083
|
var projectCatalogArtifactSchema = catalogDeploymentSchema.omit({ expectedRevision: true }).extend({
|
|
1652
|
-
engagement:
|
|
1653
|
-
trackers:
|
|
1654
|
-
pointLedgers:
|
|
1655
|
-
referrals:
|
|
1656
|
-
leaderboards:
|
|
1657
|
-
images:
|
|
1084
|
+
engagement: z8.array(engagementArtifactSchema).max(50).default([]),
|
|
1085
|
+
trackers: z8.array(trackerArtifactSchema).max(50).default([]),
|
|
1086
|
+
pointLedgers: z8.array(pointLedgerDeclarationSchema).max(50).default([]),
|
|
1087
|
+
referrals: z8.array(referralArtifactSchema).max(50).default([]),
|
|
1088
|
+
leaderboards: z8.array(leaderboardArtifactSchema).max(50).default([]),
|
|
1089
|
+
images: z8.array(imageAssetArtifactSchema).max(10).default([])
|
|
1658
1090
|
});
|
|
1659
|
-
var projectDeploymentSchema = projectCatalogArtifactSchema.extend({ releases:
|
|
1091
|
+
var projectDeploymentSchema = projectCatalogArtifactSchema.extend({ releases: z8.array(releaseSchema).max(50).default([]) }).refine(
|
|
1660
1092
|
(value) => value.engagement.length > 0 || value.trackers.length > 0 || value.pointLedgers.length > 0 || value.releases.length > 0 || value.leaderboards.length > 0 || value.referrals.length > 0 || value.images.length > 0 || value.types.length > 0 || value.collections.length > 0 || value.supportedInteractions !== void 0,
|
|
1661
1093
|
"No resources configured. Add engagement, trackers, quests, questTypes, pointLedgers, leaderboards, referrals, images, collections, or supportedInteractions to relay.json."
|
|
1662
1094
|
);
|
|
1663
|
-
var deploymentPreviewSchema =
|
|
1095
|
+
var deploymentPreviewSchema = z8.object({
|
|
1664
1096
|
id: identifier,
|
|
1665
|
-
engagement:
|
|
1666
|
-
trackers:
|
|
1667
|
-
baseRevision:
|
|
1668
|
-
pointLedgers:
|
|
1669
|
-
releases:
|
|
1670
|
-
types:
|
|
1671
|
-
collections:
|
|
1672
|
-
supportedInteractions:
|
|
1673
|
-
referrals:
|
|
1674
|
-
leaderboards:
|
|
1675
|
-
images:
|
|
1097
|
+
engagement: z8.array(engagementDeploymentEntrySchema).default([]),
|
|
1098
|
+
trackers: z8.array(publishedTrackerSchema).default([]),
|
|
1099
|
+
baseRevision: z8.number().int().nonnegative(),
|
|
1100
|
+
pointLedgers: z8.array(pointLedgerSchema).default([]),
|
|
1101
|
+
releases: z8.array(publishedReleaseSchema),
|
|
1102
|
+
types: z8.array(questTypeVersionSchema),
|
|
1103
|
+
collections: z8.array(questCollectionSchema),
|
|
1104
|
+
supportedInteractions: z8.array(interactionSchema),
|
|
1105
|
+
referrals: z8.array(publishedReferralSchema).default([]),
|
|
1106
|
+
leaderboards: z8.array(leaderboardPreviewSchema).default([]),
|
|
1107
|
+
images: z8.array(publishedImageSchema).default([])
|
|
1676
1108
|
});
|
|
1677
|
-
var publishDeploymentSchema =
|
|
1109
|
+
var publishDeploymentSchema = z8.object({ id: identifier }).strict();
|
|
1678
1110
|
var deploymentResultSchema = deploymentPreviewSchema.extend({
|
|
1679
|
-
revision:
|
|
1111
|
+
revision: z8.number().int().positive()
|
|
1680
1112
|
});
|
|
1681
1113
|
|
|
1682
1114
|
// src/identity-integration.ts
|
|
1683
|
-
import { z as
|
|
1684
|
-
var identityIntegrationInputSchema =
|
|
1685
|
-
name:
|
|
1686
|
-
origin:
|
|
1115
|
+
import { z as z9 } from "zod";
|
|
1116
|
+
var identityIntegrationInputSchema = z9.object({
|
|
1117
|
+
name: z9.string().trim().min(1).max(80),
|
|
1118
|
+
origin: z9.string().url().refine((value) => {
|
|
1687
1119
|
const url = new URL(value);
|
|
1688
1120
|
return url.protocol === "https:" && url.origin === value;
|
|
1689
1121
|
}, "Use an exact HTTPS application origin")
|
|
1690
1122
|
}).strict();
|
|
1691
1123
|
var identityIntegrationSchema = authScopeSchema.extend({
|
|
1692
|
-
id:
|
|
1693
|
-
name:
|
|
1694
|
-
origin:
|
|
1695
|
-
expiresAt:
|
|
1124
|
+
id: z9.string().uuid(),
|
|
1125
|
+
name: z9.string(),
|
|
1126
|
+
origin: z9.string(),
|
|
1127
|
+
expiresAt: z9.number()
|
|
1696
1128
|
});
|
|
1697
1129
|
var identityIntegrationSecretSchema = identityIntegrationSchema.extend(
|
|
1698
1130
|
{
|
|
1699
|
-
token:
|
|
1131
|
+
token: z9.string()
|
|
1700
1132
|
}
|
|
1701
1133
|
);
|
|
1702
|
-
var participantExchangeSchema =
|
|
1703
|
-
subject:
|
|
1704
|
-
previousToken:
|
|
1134
|
+
var participantExchangeSchema = z9.object({
|
|
1135
|
+
subject: z9.string().min(1).max(200),
|
|
1136
|
+
previousToken: z9.string().max(200).optional()
|
|
1705
1137
|
}).strict();
|
|
1706
1138
|
|
|
1707
1139
|
// src/index.ts
|
|
@@ -1838,13 +1270,13 @@ function createRelayClient(options) {
|
|
|
1838
1270
|
}
|
|
1839
1271
|
return {
|
|
1840
1272
|
referrals: {
|
|
1841
|
-
list: () => request("/v1/referrals",
|
|
1273
|
+
list: () => request("/v1/referrals", z10.array(referralDefinitionSchema)),
|
|
1842
1274
|
summary: () => request("/v1/referrals/me", referralSummarySchema),
|
|
1843
1275
|
history: (before) => request(
|
|
1844
1276
|
query("/v1/referrals/history", { before }),
|
|
1845
1277
|
referralHistorySchema
|
|
1846
1278
|
),
|
|
1847
|
-
accept: (input) => request("/v1/referrals/accept",
|
|
1279
|
+
accept: (input) => request("/v1/referrals/accept", z10.object({ ok: z10.literal(true) }), {
|
|
1848
1280
|
method: "POST",
|
|
1849
1281
|
body: JSON.stringify(referralAcceptSchema.parse(input))
|
|
1850
1282
|
})
|
|
@@ -1854,24 +1286,33 @@ function createRelayClient(options) {
|
|
|
1854
1286
|
* The project's tiered rewards with their keys. Entitlements and reward
|
|
1855
1287
|
* definitions name them by ID: use this to find the ID for a key.
|
|
1856
1288
|
*/
|
|
1857
|
-
list: () => request("/v1/tiered-rewards",
|
|
1289
|
+
list: () => request("/v1/tiered-rewards", z10.array(tieredRewardReferenceSchema))
|
|
1858
1290
|
},
|
|
1859
1291
|
pointLedgers: {
|
|
1860
1292
|
/**
|
|
1861
1293
|
* The project's point ledgers with their keys and names. Reads return
|
|
1862
1294
|
* ledger IDs: use this to find the ID for a key, or a ledger's name.
|
|
1863
1295
|
*/
|
|
1864
|
-
list: () => request("/v1/point-ledgers",
|
|
1296
|
+
list: () => request("/v1/point-ledgers", z10.array(pointLedgerReferenceSchema))
|
|
1865
1297
|
},
|
|
1866
1298
|
leaderboards: {
|
|
1867
|
-
list: () => request("/v1/leaderboards",
|
|
1299
|
+
list: () => request("/v1/leaderboards", z10.array(leaderboardDefinitionSchema)),
|
|
1868
1300
|
standings: (board, options2 = {}) => {
|
|
1869
1301
|
const parsed = leaderboardQuerySchema.parse(options2);
|
|
1870
1302
|
return request(
|
|
1871
1303
|
query(`/v1/leaderboards/${identifier.parse(board)}`, parsed),
|
|
1872
1304
|
leaderboardPageSchema
|
|
1873
1305
|
);
|
|
1874
|
-
}
|
|
1306
|
+
},
|
|
1307
|
+
/**
|
|
1308
|
+
* A profile's current rank and score on `board` (`profile.id` from a leaderboard row or
|
|
1309
|
+
* `profiles.mine()`). Needs the board's access, like `standings`; a profile this viewer
|
|
1310
|
+
* cannot see is a 404, as in `profiles.get`.
|
|
1311
|
+
*/
|
|
1312
|
+
placement: (board, profile) => request(
|
|
1313
|
+
`/v1/leaderboards/${identifier.parse(board)}/profiles/${identifier.parse(profile)}`,
|
|
1314
|
+
leaderboardPlacementSchema
|
|
1315
|
+
)
|
|
1875
1316
|
},
|
|
1876
1317
|
/**
|
|
1877
1318
|
* Participant profiles: the display name and avatar other participants see where the project
|
|
@@ -1916,12 +1357,31 @@ function createRelayClient(options) {
|
|
|
1916
1357
|
});
|
|
1917
1358
|
},
|
|
1918
1359
|
/**
|
|
1919
|
-
* A profile
|
|
1920
|
-
* profile that is missing, hidden or not visible to this viewer is a 404.
|
|
1360
|
+
* A profile's name and avatar by its public ID (`profile.id` from a leaderboard row or
|
|
1361
|
+
* `mine()`). A profile that is missing, hidden or not visible to this viewer is a 404.
|
|
1921
1362
|
*/
|
|
1922
1363
|
get: (profile) => request(
|
|
1923
1364
|
`/v1/profiles/${identifier.parse(profile)}`,
|
|
1924
|
-
|
|
1365
|
+
profileSummarySchema
|
|
1366
|
+
),
|
|
1367
|
+
/**
|
|
1368
|
+
* A page of the profile's completions of quests that show on profiles, most recently
|
|
1369
|
+
* completed first. Pass the page's `nextCursor` as `cursor` for the next one.
|
|
1370
|
+
*/
|
|
1371
|
+
completions: (profile, options2 = {}) => request(
|
|
1372
|
+
query(
|
|
1373
|
+
`/v1/profiles/${identifier.parse(profile)}/completions`,
|
|
1374
|
+
profileCompletionQuerySchema.parse(options2)
|
|
1375
|
+
),
|
|
1376
|
+
profileCompletionPageSchema
|
|
1377
|
+
),
|
|
1378
|
+
/**
|
|
1379
|
+
* The profile's invited and qualified counts and milestones in one referral program. Needs
|
|
1380
|
+
* a signed-in participant, as referral programs do.
|
|
1381
|
+
*/
|
|
1382
|
+
referral: (profile, program) => request(
|
|
1383
|
+
`/v1/profiles/${identifier.parse(profile)}/referrals/${identifier.parse(program)}`,
|
|
1384
|
+
profileReferralSchema
|
|
1925
1385
|
)
|
|
1926
1386
|
},
|
|
1927
1387
|
quests: {
|
|
@@ -1984,7 +1444,7 @@ function createRelayClient(options) {
|
|
|
1984
1444
|
wallets: {
|
|
1985
1445
|
list: () => walletRequest(
|
|
1986
1446
|
"/v1/me/wallets",
|
|
1987
|
-
|
|
1447
|
+
z10.object({ wallets: z10.array(linkedWalletSchema) })
|
|
1988
1448
|
).then((result) => result.wallets),
|
|
1989
1449
|
challenge: (input, session) => walletRequest(
|
|
1990
1450
|
"/v1/me/wallets/challenge",
|
|
@@ -2001,7 +1461,7 @@ function createRelayClient(options) {
|
|
|
2001
1461
|
/** The address stays bound to this member: another member still cannot link it. */
|
|
2002
1462
|
unlink: (wallet) => request(
|
|
2003
1463
|
"/v1/me/wallets/unlink",
|
|
2004
|
-
|
|
1464
|
+
z10.object({ ok: z10.literal(true) }),
|
|
2005
1465
|
json(
|
|
2006
1466
|
walletUnlinkInputSchema.parse({
|
|
2007
1467
|
chain: wallet.chain,
|
|
@@ -2052,27 +1512,27 @@ function createRelayClient(options) {
|
|
|
2052
1512
|
auth: {
|
|
2053
1513
|
providers: () => request(
|
|
2054
1514
|
"/v1/auth/providers",
|
|
2055
|
-
|
|
2056
|
-
providers:
|
|
2057
|
-
|
|
1515
|
+
z10.object({
|
|
1516
|
+
providers: z10.array(
|
|
1517
|
+
z10.object({
|
|
2058
1518
|
provider: authProviderSchema,
|
|
2059
|
-
configured:
|
|
1519
|
+
configured: z10.boolean()
|
|
2060
1520
|
})
|
|
2061
1521
|
),
|
|
2062
|
-
email:
|
|
1522
|
+
email: z10.boolean(),
|
|
2063
1523
|
/** The wallet sign-in this project enabled; older servers omit it. */
|
|
2064
1524
|
wallets: walletSignInNetworksSchema.default([]),
|
|
2065
|
-
demo:
|
|
1525
|
+
demo: z10.boolean()
|
|
2066
1526
|
})
|
|
2067
1527
|
),
|
|
2068
1528
|
start: (provider, mode) => request(
|
|
2069
1529
|
"/v1/auth/start",
|
|
2070
|
-
|
|
1530
|
+
z10.object({ url: z10.string() }),
|
|
2071
1531
|
json({ provider, mode })
|
|
2072
1532
|
),
|
|
2073
1533
|
emailStart: (email) => request(
|
|
2074
1534
|
"/v1/auth/email/start",
|
|
2075
|
-
|
|
1535
|
+
z10.object({ challenge: z10.string() }),
|
|
2076
1536
|
json({ email })
|
|
2077
1537
|
),
|
|
2078
1538
|
emailVerify: (challenge, code) => changeSession(
|
|
@@ -2128,25 +1588,25 @@ function createRelayClient(options) {
|
|
|
2128
1588
|
);
|
|
2129
1589
|
}
|
|
2130
1590
|
},
|
|
2131
|
-
accounts: () => request("/v1/auth/accounts",
|
|
1591
|
+
accounts: () => request("/v1/auth/accounts", z10.array(accountConnectionSchema)),
|
|
2132
1592
|
disconnect: (provider) => request(
|
|
2133
1593
|
"/v1/auth/accounts/disconnect",
|
|
2134
|
-
|
|
1594
|
+
z10.object({ ok: z10.boolean() }),
|
|
2135
1595
|
json({ provider })
|
|
2136
1596
|
),
|
|
2137
1597
|
connections: () => request(
|
|
2138
1598
|
"/v1/auth/connections",
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
provider:
|
|
2142
|
-
subject:
|
|
2143
|
-
signInEnabled:
|
|
1599
|
+
z10.array(
|
|
1600
|
+
z10.object({
|
|
1601
|
+
provider: z10.string(),
|
|
1602
|
+
subject: z10.string(),
|
|
1603
|
+
signInEnabled: z10.boolean()
|
|
2144
1604
|
})
|
|
2145
1605
|
)
|
|
2146
1606
|
),
|
|
2147
1607
|
session: () => request("/v1/auth/session", sessionSchema.nullable()),
|
|
2148
1608
|
signOut: () => changeSession(
|
|
2149
|
-
() => request("/v1/auth/logout",
|
|
1609
|
+
() => request("/v1/auth/logout", z10.object({ ok: z10.boolean() }), json({}))
|
|
2150
1610
|
),
|
|
2151
1611
|
/** Local development only. Existing hosted apps use createParticipantBackend from /portal-proxy. */
|
|
2152
1612
|
exchange: (input) => request("/v1/auth/exchange", exchangeResultSchema, json(input))
|
|
@@ -2213,11 +1673,11 @@ function createRelayClient(options) {
|
|
|
2213
1673
|
/** @deprecated The participant API accepts only member sessions and rejects this staff call. Use the management API with a management key instead. */
|
|
2214
1674
|
lookupMember: (issuer, subject) => request(
|
|
2215
1675
|
"/v1/members/lookup",
|
|
2216
|
-
|
|
1676
|
+
z10.object({ member: z10.string() }),
|
|
2217
1677
|
json({ issuer, subject })
|
|
2218
1678
|
),
|
|
2219
1679
|
/** @deprecated Removed from the participant API. Build quests with `domino` and `@domino-sdk/relay/build`. */
|
|
2220
|
-
journeyTemplate: () => request("/v1/journey-template",
|
|
1680
|
+
journeyTemplate: () => request("/v1/journey-template", z10.array(templateSchema)),
|
|
2221
1681
|
/** @deprecated Removed from the participant API. Build quests with `domino` and `@domino-sdk/relay/build`. */
|
|
2222
1682
|
template: () => request("/v1/template", templateSchema),
|
|
2223
1683
|
/** @deprecated The participant API accepts only member sessions and rejects this staff call. Use the management API with a management key instead. */
|
|
@@ -2227,7 +1687,7 @@ function createRelayClient(options) {
|
|
|
2227
1687
|
/** @deprecated The participant API rejects publication. Publish with `domino deploy` or the management API. */
|
|
2228
1688
|
publishBatch: (releases) => request(
|
|
2229
1689
|
"/v1/releases/batch",
|
|
2230
|
-
|
|
1690
|
+
z10.array(publishedReleaseSchema),
|
|
2231
1691
|
json({ releases })
|
|
2232
1692
|
),
|
|
2233
1693
|
progress: (member) => request(
|
|
@@ -2345,8 +1805,6 @@ export {
|
|
|
2345
1805
|
QuestUpdatedError,
|
|
2346
1806
|
reconcileQuestDraft,
|
|
2347
1807
|
questActions,
|
|
2348
|
-
evmChains,
|
|
2349
|
-
evmChainSchema,
|
|
2350
1808
|
avatarSrc,
|
|
2351
1809
|
defaultAvatar,
|
|
2352
1810
|
defaultAvatarSvg,
|