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