@domino-sdk/relay 1.0.0-next.13 → 1.0.0-next.15
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/README.md +1 -1
- package/dist/authoring.d.ts +58 -44
- package/dist/authoring.js +58 -45
- package/dist/browser.d.ts +111 -151
- package/dist/browser.js +6 -6
- package/dist/{catalog-C85V1NgW.d.ts → catalog-CVXUHxiO.d.ts} +12 -99
- package/dist/{chunk-M64XHC42.js → chunk-76F4LSFP.js} +2 -2
- package/dist/{chunk-II7DRZSL.js → chunk-CYD6QMHU.js} +1 -1
- package/dist/{chunk-KS33GOUL.js → chunk-EJWDAF7I.js} +4 -4
- package/dist/chunk-FJ6O44NE.js +51 -0
- package/dist/{chunk-WQ24ILGO.js → chunk-G3YSBMJH.js} +7 -3
- package/dist/{chunk-MNQI35OG.js → chunk-HWRBLM7E.js} +3 -3
- package/dist/{chunk-CRNQP7NV.js → chunk-J4OYDYJE.js} +693 -676
- package/dist/{chunk-OA2KMQVZ.js → chunk-J52HD4AA.js} +11 -1
- package/dist/{chunk-EZWNGI5B.js → chunk-RCBJBFLC.js} +4 -4
- package/dist/{chunk-FXYJ4OMX.js → chunk-WMTROSYF.js} +1 -1
- package/dist/{client-Bf9PNUIi.d.ts → client-dfXT6hhq.d.ts} +7 -47
- package/dist/{deployments-CNCP0JnD.d.ts → deployments-C9wkQ06n.d.ts} +109 -125
- package/dist/{images-BG4pdO4y.d.ts → images-CRxHUuG5.d.ts} +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +5 -5
- package/dist/{integrations-EjQzIApL.d.ts → integrations-C1vB6Ry6.d.ts} +93 -1
- package/dist/internal.d.ts +13 -4
- package/dist/internal.js +10 -4
- package/dist/portal-proxy.js +2 -2
- package/dist/react/index.d.ts +441 -655
- package/dist/react/index.js +1190 -810
- package/dist/{schema-BF_TQsmT.d.ts → schema-C4F2K9cm.d.ts} +9 -74
- package/dist/schema.d.ts +6 -7
- package/dist/schema.js +18 -16
- package/dist/server/index.d.ts +125 -233
- package/dist/server/index.js +16 -22
- package/dist/{trackers-W7nRdRr7.d.ts → trackers-7lxSWp2g.d.ts} +56 -14
- package/package.json +4 -2
- package/dist/observations-CQ6IcNuQ.d.ts +0 -90
package/dist/browser.js
CHANGED
|
@@ -11,12 +11,12 @@ import {
|
|
|
11
11
|
signInOptions,
|
|
12
12
|
solanaSigner,
|
|
13
13
|
walletStandardSolanaSigner
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-G3YSBMJH.js";
|
|
15
|
+
import "./chunk-RCBJBFLC.js";
|
|
16
|
+
import "./chunk-76F4LSFP.js";
|
|
17
|
+
import "./chunk-J52HD4AA.js";
|
|
18
|
+
import "./chunk-WMTROSYF.js";
|
|
19
|
+
import "./chunk-J4OYDYJE.js";
|
|
20
20
|
export {
|
|
21
21
|
browserSubmissionStore,
|
|
22
22
|
cosmosChainList,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { a2 as questDescriptionSchema } from './schema-
|
|
2
|
+
import { a2 as questDescriptionSchema } from './schema-C4F2K9cm.js';
|
|
3
3
|
|
|
4
4
|
declare const pointLedgerPropertiesSchema: z.ZodObject<{
|
|
5
5
|
name: z.ZodString;
|
|
@@ -304,10 +304,6 @@ declare const questTypeVersionSchema: z.ZodObject<{
|
|
|
304
304
|
}>>;
|
|
305
305
|
}, z.core.$strict>, z.ZodObject<{
|
|
306
306
|
kind: z.ZodLiteral<"automatic">;
|
|
307
|
-
observation: z.ZodOptional<z.ZodObject<{
|
|
308
|
-
source: z.ZodString;
|
|
309
|
-
type: z.ZodString;
|
|
310
|
-
}, z.core.$strict>>;
|
|
311
307
|
content: z.ZodOptional<z.ZodObject<{
|
|
312
308
|
tracker: z.ZodString;
|
|
313
309
|
window: z.ZodObject<{
|
|
@@ -330,10 +326,7 @@ declare const questTypeVersionSchema: z.ZodObject<{
|
|
|
330
326
|
}, z.core.$strict>>;
|
|
331
327
|
tracker: z.ZodOptional<z.ZodObject<{
|
|
332
328
|
tracker: z.ZodString;
|
|
333
|
-
source: z.
|
|
334
|
-
custom: "custom";
|
|
335
|
-
"x-search": "x-search";
|
|
336
|
-
}>;
|
|
329
|
+
source: z.ZodString;
|
|
337
330
|
on: z.ZodOptional<z.ZodEnum<{
|
|
338
331
|
"new-record": "new-record";
|
|
339
332
|
"new-observation": "new-observation";
|
|
@@ -755,10 +748,6 @@ declare const questCatalogSchema: z.ZodObject<{
|
|
|
755
748
|
}>>;
|
|
756
749
|
}, z.core.$strict>, z.ZodObject<{
|
|
757
750
|
kind: z.ZodLiteral<"automatic">;
|
|
758
|
-
observation: z.ZodOptional<z.ZodObject<{
|
|
759
|
-
source: z.ZodString;
|
|
760
|
-
type: z.ZodString;
|
|
761
|
-
}, z.core.$strict>>;
|
|
762
751
|
content: z.ZodOptional<z.ZodObject<{
|
|
763
752
|
tracker: z.ZodString;
|
|
764
753
|
window: z.ZodObject<{
|
|
@@ -781,10 +770,7 @@ declare const questCatalogSchema: z.ZodObject<{
|
|
|
781
770
|
}, z.core.$strict>>;
|
|
782
771
|
tracker: z.ZodOptional<z.ZodObject<{
|
|
783
772
|
tracker: z.ZodString;
|
|
784
|
-
source: z.
|
|
785
|
-
custom: "custom";
|
|
786
|
-
"x-search": "x-search";
|
|
787
|
-
}>;
|
|
773
|
+
source: z.ZodString;
|
|
788
774
|
on: z.ZodOptional<z.ZodEnum<{
|
|
789
775
|
"new-record": "new-record";
|
|
790
776
|
"new-observation": "new-observation";
|
|
@@ -1150,10 +1136,6 @@ declare const questCatalogSchema: z.ZodObject<{
|
|
|
1150
1136
|
}>>;
|
|
1151
1137
|
}, z.core.$strict>, z.ZodObject<{
|
|
1152
1138
|
kind: z.ZodLiteral<"automatic">;
|
|
1153
|
-
observation: z.ZodOptional<z.ZodObject<{
|
|
1154
|
-
source: z.ZodString;
|
|
1155
|
-
type: z.ZodString;
|
|
1156
|
-
}, z.core.$strict>>;
|
|
1157
1139
|
content: z.ZodOptional<z.ZodObject<{
|
|
1158
1140
|
tracker: z.ZodString;
|
|
1159
1141
|
window: z.ZodObject<{
|
|
@@ -1176,10 +1158,7 @@ declare const questCatalogSchema: z.ZodObject<{
|
|
|
1176
1158
|
}, z.core.$strict>>;
|
|
1177
1159
|
tracker: z.ZodOptional<z.ZodObject<{
|
|
1178
1160
|
tracker: z.ZodString;
|
|
1179
|
-
source: z.
|
|
1180
|
-
custom: "custom";
|
|
1181
|
-
"x-search": "x-search";
|
|
1182
|
-
}>;
|
|
1161
|
+
source: z.ZodString;
|
|
1183
1162
|
on: z.ZodOptional<z.ZodEnum<{
|
|
1184
1163
|
"new-record": "new-record";
|
|
1185
1164
|
"new-observation": "new-observation";
|
|
@@ -1483,10 +1462,6 @@ declare const questCatalogSchema: z.ZodObject<{
|
|
|
1483
1462
|
humanReview: boolean;
|
|
1484
1463
|
trigger: {
|
|
1485
1464
|
kind: "automatic";
|
|
1486
|
-
observation?: {
|
|
1487
|
-
source: string;
|
|
1488
|
-
type: string;
|
|
1489
|
-
} | undefined;
|
|
1490
1465
|
content?: {
|
|
1491
1466
|
tracker: string;
|
|
1492
1467
|
window: {
|
|
@@ -1499,7 +1474,7 @@ declare const questCatalogSchema: z.ZodObject<{
|
|
|
1499
1474
|
} | undefined;
|
|
1500
1475
|
tracker?: {
|
|
1501
1476
|
tracker: string;
|
|
1502
|
-
source:
|
|
1477
|
+
source: string;
|
|
1503
1478
|
beneficiary: string;
|
|
1504
1479
|
on?: "new-record" | "new-observation" | "data-changed" | undefined;
|
|
1505
1480
|
where?: {
|
|
@@ -1876,10 +1851,6 @@ declare const catalogDeploymentPreviewSchema: z.ZodObject<{
|
|
|
1876
1851
|
}>>;
|
|
1877
1852
|
}, z.core.$strict>, z.ZodObject<{
|
|
1878
1853
|
kind: z.ZodLiteral<"automatic">;
|
|
1879
|
-
observation: z.ZodOptional<z.ZodObject<{
|
|
1880
|
-
source: z.ZodString;
|
|
1881
|
-
type: z.ZodString;
|
|
1882
|
-
}, z.core.$strict>>;
|
|
1883
1854
|
content: z.ZodOptional<z.ZodObject<{
|
|
1884
1855
|
tracker: z.ZodString;
|
|
1885
1856
|
window: z.ZodObject<{
|
|
@@ -1902,10 +1873,7 @@ declare const catalogDeploymentPreviewSchema: z.ZodObject<{
|
|
|
1902
1873
|
}, z.core.$strict>>;
|
|
1903
1874
|
tracker: z.ZodOptional<z.ZodObject<{
|
|
1904
1875
|
tracker: z.ZodString;
|
|
1905
|
-
source: z.
|
|
1906
|
-
custom: "custom";
|
|
1907
|
-
"x-search": "x-search";
|
|
1908
|
-
}>;
|
|
1876
|
+
source: z.ZodString;
|
|
1909
1877
|
on: z.ZodOptional<z.ZodEnum<{
|
|
1910
1878
|
"new-record": "new-record";
|
|
1911
1879
|
"new-observation": "new-observation";
|
|
@@ -2151,10 +2119,6 @@ declare const questViewSchema: z.ZodObject<{
|
|
|
2151
2119
|
}>>;
|
|
2152
2120
|
}, z.core.$strict>, z.ZodObject<{
|
|
2153
2121
|
kind: z.ZodLiteral<"automatic">;
|
|
2154
|
-
observation: z.ZodOptional<z.ZodObject<{
|
|
2155
|
-
source: z.ZodString;
|
|
2156
|
-
type: z.ZodString;
|
|
2157
|
-
}, z.core.$strict>>;
|
|
2158
2122
|
content: z.ZodOptional<z.ZodObject<{
|
|
2159
2123
|
tracker: z.ZodString;
|
|
2160
2124
|
window: z.ZodObject<{
|
|
@@ -2177,10 +2141,7 @@ declare const questViewSchema: z.ZodObject<{
|
|
|
2177
2141
|
}, z.core.$strict>>;
|
|
2178
2142
|
tracker: z.ZodOptional<z.ZodObject<{
|
|
2179
2143
|
tracker: z.ZodString;
|
|
2180
|
-
source: z.
|
|
2181
|
-
custom: "custom";
|
|
2182
|
-
"x-search": "x-search";
|
|
2183
|
-
}>;
|
|
2144
|
+
source: z.ZodString;
|
|
2184
2145
|
on: z.ZodOptional<z.ZodEnum<{
|
|
2185
2146
|
"new-record": "new-record";
|
|
2186
2147
|
"new-observation": "new-observation";
|
|
@@ -2245,10 +2206,6 @@ declare const questViewSchema: z.ZodObject<{
|
|
|
2245
2206
|
kind: z.ZodLiteral<"staff-required">;
|
|
2246
2207
|
}, z.core.$strict>, z.ZodObject<{
|
|
2247
2208
|
kind: z.ZodLiteral<"automatic">;
|
|
2248
|
-
observation: z.ZodOptional<z.ZodObject<{
|
|
2249
|
-
source: z.ZodString;
|
|
2250
|
-
type: z.ZodString;
|
|
2251
|
-
}, z.core.$strict>>;
|
|
2252
2209
|
}, z.core.$strict>, z.ZodObject<{
|
|
2253
2210
|
kind: z.ZodLiteral<"checking">;
|
|
2254
2211
|
attempt: z.ZodString;
|
|
@@ -2477,10 +2434,6 @@ declare const collectionViewSchema: z.ZodObject<{
|
|
|
2477
2434
|
}>>;
|
|
2478
2435
|
}, z.core.$strict>, z.ZodObject<{
|
|
2479
2436
|
kind: z.ZodLiteral<"automatic">;
|
|
2480
|
-
observation: z.ZodOptional<z.ZodObject<{
|
|
2481
|
-
source: z.ZodString;
|
|
2482
|
-
type: z.ZodString;
|
|
2483
|
-
}, z.core.$strict>>;
|
|
2484
2437
|
content: z.ZodOptional<z.ZodObject<{
|
|
2485
2438
|
tracker: z.ZodString;
|
|
2486
2439
|
window: z.ZodObject<{
|
|
@@ -2503,10 +2456,7 @@ declare const collectionViewSchema: z.ZodObject<{
|
|
|
2503
2456
|
}, z.core.$strict>>;
|
|
2504
2457
|
tracker: z.ZodOptional<z.ZodObject<{
|
|
2505
2458
|
tracker: z.ZodString;
|
|
2506
|
-
source: z.
|
|
2507
|
-
custom: "custom";
|
|
2508
|
-
"x-search": "x-search";
|
|
2509
|
-
}>;
|
|
2459
|
+
source: z.ZodString;
|
|
2510
2460
|
on: z.ZodOptional<z.ZodEnum<{
|
|
2511
2461
|
"new-record": "new-record";
|
|
2512
2462
|
"new-observation": "new-observation";
|
|
@@ -2571,10 +2521,6 @@ declare const collectionViewSchema: z.ZodObject<{
|
|
|
2571
2521
|
kind: z.ZodLiteral<"staff-required">;
|
|
2572
2522
|
}, z.core.$strict>, z.ZodObject<{
|
|
2573
2523
|
kind: z.ZodLiteral<"automatic">;
|
|
2574
|
-
observation: z.ZodOptional<z.ZodObject<{
|
|
2575
|
-
source: z.ZodString;
|
|
2576
|
-
type: z.ZodString;
|
|
2577
|
-
}, z.core.$strict>>;
|
|
2578
2524
|
}, z.core.$strict>, z.ZodObject<{
|
|
2579
2525
|
kind: z.ZodLiteral<"checking">;
|
|
2580
2526
|
attempt: z.ZodString;
|
|
@@ -2802,10 +2748,6 @@ declare const questExperienceSchema: z.ZodObject<{
|
|
|
2802
2748
|
}>>;
|
|
2803
2749
|
}, z.core.$strict>, z.ZodObject<{
|
|
2804
2750
|
kind: z.ZodLiteral<"automatic">;
|
|
2805
|
-
observation: z.ZodOptional<z.ZodObject<{
|
|
2806
|
-
source: z.ZodString;
|
|
2807
|
-
type: z.ZodString;
|
|
2808
|
-
}, z.core.$strict>>;
|
|
2809
2751
|
content: z.ZodOptional<z.ZodObject<{
|
|
2810
2752
|
tracker: z.ZodString;
|
|
2811
2753
|
window: z.ZodObject<{
|
|
@@ -2828,10 +2770,7 @@ declare const questExperienceSchema: z.ZodObject<{
|
|
|
2828
2770
|
}, z.core.$strict>>;
|
|
2829
2771
|
tracker: z.ZodOptional<z.ZodObject<{
|
|
2830
2772
|
tracker: z.ZodString;
|
|
2831
|
-
source: z.
|
|
2832
|
-
custom: "custom";
|
|
2833
|
-
"x-search": "x-search";
|
|
2834
|
-
}>;
|
|
2773
|
+
source: z.ZodString;
|
|
2835
2774
|
on: z.ZodOptional<z.ZodEnum<{
|
|
2836
2775
|
"new-record": "new-record";
|
|
2837
2776
|
"new-observation": "new-observation";
|
|
@@ -2896,10 +2835,6 @@ declare const questExperienceSchema: z.ZodObject<{
|
|
|
2896
2835
|
kind: z.ZodLiteral<"staff-required">;
|
|
2897
2836
|
}, z.core.$strict>, z.ZodObject<{
|
|
2898
2837
|
kind: z.ZodLiteral<"automatic">;
|
|
2899
|
-
observation: z.ZodOptional<z.ZodObject<{
|
|
2900
|
-
source: z.ZodString;
|
|
2901
|
-
type: z.ZodString;
|
|
2902
|
-
}, z.core.$strict>>;
|
|
2903
2838
|
}, z.core.$strict>, z.ZodObject<{
|
|
2904
2839
|
kind: z.ZodLiteral<"checking">;
|
|
2905
2840
|
attempt: z.ZodString;
|
|
@@ -3128,10 +3063,6 @@ declare const questExperienceSchema: z.ZodObject<{
|
|
|
3128
3063
|
}>>;
|
|
3129
3064
|
}, z.core.$strict>, z.ZodObject<{
|
|
3130
3065
|
kind: z.ZodLiteral<"automatic">;
|
|
3131
|
-
observation: z.ZodOptional<z.ZodObject<{
|
|
3132
|
-
source: z.ZodString;
|
|
3133
|
-
type: z.ZodString;
|
|
3134
|
-
}, z.core.$strict>>;
|
|
3135
3066
|
content: z.ZodOptional<z.ZodObject<{
|
|
3136
3067
|
tracker: z.ZodString;
|
|
3137
3068
|
window: z.ZodObject<{
|
|
@@ -3154,10 +3085,7 @@ declare const questExperienceSchema: z.ZodObject<{
|
|
|
3154
3085
|
}, z.core.$strict>>;
|
|
3155
3086
|
tracker: z.ZodOptional<z.ZodObject<{
|
|
3156
3087
|
tracker: z.ZodString;
|
|
3157
|
-
source: z.
|
|
3158
|
-
custom: "custom";
|
|
3159
|
-
"x-search": "x-search";
|
|
3160
|
-
}>;
|
|
3088
|
+
source: z.ZodString;
|
|
3161
3089
|
on: z.ZodOptional<z.ZodEnum<{
|
|
3162
3090
|
"new-record": "new-record";
|
|
3163
3091
|
"new-observation": "new-observation";
|
|
@@ -3222,10 +3150,6 @@ declare const questExperienceSchema: z.ZodObject<{
|
|
|
3222
3150
|
kind: z.ZodLiteral<"staff-required">;
|
|
3223
3151
|
}, z.core.$strict>, z.ZodObject<{
|
|
3224
3152
|
kind: z.ZodLiteral<"automatic">;
|
|
3225
|
-
observation: z.ZodOptional<z.ZodObject<{
|
|
3226
|
-
source: z.ZodString;
|
|
3227
|
-
type: z.ZodString;
|
|
3228
|
-
}, z.core.$strict>>;
|
|
3229
3153
|
}, z.core.$strict>, z.ZodObject<{
|
|
3230
3154
|
kind: z.ZodLiteral<"checking">;
|
|
3231
3155
|
attempt: z.ZodString;
|
|
@@ -3632,10 +3556,6 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
|
|
|
3632
3556
|
}>>;
|
|
3633
3557
|
}, z.core.$strict>, z.ZodObject<{
|
|
3634
3558
|
kind: z.ZodLiteral<"automatic">;
|
|
3635
|
-
observation: z.ZodOptional<z.ZodObject<{
|
|
3636
|
-
source: z.ZodString;
|
|
3637
|
-
type: z.ZodString;
|
|
3638
|
-
}, z.core.$strict>>;
|
|
3639
3559
|
content: z.ZodOptional<z.ZodObject<{
|
|
3640
3560
|
tracker: z.ZodString;
|
|
3641
3561
|
window: z.ZodObject<{
|
|
@@ -3658,10 +3578,7 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
|
|
|
3658
3578
|
}, z.core.$strict>>;
|
|
3659
3579
|
tracker: z.ZodOptional<z.ZodObject<{
|
|
3660
3580
|
tracker: z.ZodString;
|
|
3661
|
-
source: z.
|
|
3662
|
-
custom: "custom";
|
|
3663
|
-
"x-search": "x-search";
|
|
3664
|
-
}>;
|
|
3581
|
+
source: z.ZodString;
|
|
3665
3582
|
on: z.ZodOptional<z.ZodEnum<{
|
|
3666
3583
|
"new-record": "new-record";
|
|
3667
3584
|
"new-observation": "new-observation";
|
|
@@ -3965,10 +3882,6 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
|
|
|
3965
3882
|
humanReview: boolean;
|
|
3966
3883
|
trigger: {
|
|
3967
3884
|
kind: "automatic";
|
|
3968
|
-
observation?: {
|
|
3969
|
-
source: string;
|
|
3970
|
-
type: string;
|
|
3971
|
-
} | undefined;
|
|
3972
3885
|
content?: {
|
|
3973
3886
|
tracker: string;
|
|
3974
3887
|
window: {
|
|
@@ -3981,7 +3894,7 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
|
|
|
3981
3894
|
} | undefined;
|
|
3982
3895
|
tracker?: {
|
|
3983
3896
|
tracker: string;
|
|
3984
|
-
source:
|
|
3897
|
+
source: string;
|
|
3985
3898
|
beneficiary: string;
|
|
3986
3899
|
on?: "new-record" | "new-observation" | "data-changed" | undefined;
|
|
3987
3900
|
where?: {
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
authoringIdentityShape,
|
|
3
3
|
normalizeAuthoringIdentity,
|
|
4
4
|
validateAuthoringIdentity
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-J52HD4AA.js";
|
|
6
6
|
import {
|
|
7
7
|
entitlementSchema,
|
|
8
8
|
identifier,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
storedQuestDescriptionSchema,
|
|
17
17
|
storedReviewModeSchema,
|
|
18
18
|
tieredRewardReferenceSchema
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-J4OYDYJE.js";
|
|
20
20
|
|
|
21
21
|
// src/point-ledgers.ts
|
|
22
22
|
import { z } from "zod";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
imageAssetArtifactSchema,
|
|
3
3
|
publishedImageSchema
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-CYD6QMHU.js";
|
|
5
5
|
import {
|
|
6
6
|
catalogDeploymentSchema,
|
|
7
7
|
interactionSchema,
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
pointLedgerSchema,
|
|
10
10
|
questCollectionSchema,
|
|
11
11
|
questTypeVersionSchema
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-76F4LSFP.js";
|
|
13
13
|
import {
|
|
14
14
|
engagementArtifactSchema,
|
|
15
15
|
engagementDeploymentEntrySchema,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
leaderboardPreviewSchema,
|
|
18
18
|
publishedReferralSchema,
|
|
19
19
|
referralArtifactSchema
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-J52HD4AA.js";
|
|
21
21
|
import {
|
|
22
22
|
identifier,
|
|
23
23
|
projectCalendarDeclarationSchema,
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
releaseSchema,
|
|
27
27
|
timeZoneNameSchema,
|
|
28
28
|
trackerArtifactSchema
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-J4OYDYJE.js";
|
|
30
30
|
|
|
31
31
|
// src/deployments.ts
|
|
32
32
|
import { z } from "zod";
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import {
|
|
2
|
+
discordMessageDataSchema,
|
|
3
|
+
discordMessageTextDataSchema,
|
|
4
|
+
discordReactionDataSchema,
|
|
5
|
+
trackerDataSchema,
|
|
6
|
+
xAccountRoles
|
|
7
|
+
} from "./chunk-J4OYDYJE.js";
|
|
8
|
+
|
|
9
|
+
// src/tracker-sources.ts
|
|
10
|
+
var discordMessageRoles = ["author"];
|
|
11
|
+
var discordReactionRoles = ["author", "messageAuthor"];
|
|
12
|
+
function sourceRoles(source) {
|
|
13
|
+
switch (source.kind) {
|
|
14
|
+
case "x-search":
|
|
15
|
+
return xAccountRoles;
|
|
16
|
+
case "discord-messages":
|
|
17
|
+
return discordMessageRoles;
|
|
18
|
+
case "discord-reactions":
|
|
19
|
+
return discordReactionRoles;
|
|
20
|
+
case "custom":
|
|
21
|
+
return ["author", ...source.accounts ?? []];
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
var discordSchemas = /* @__PURE__ */ new Map();
|
|
25
|
+
function discordDataSchema(source) {
|
|
26
|
+
const key = source.kind === "discord-messages" && source.text ? "messages-text" : source.kind;
|
|
27
|
+
let schema = discordSchemas.get(key);
|
|
28
|
+
if (!schema) {
|
|
29
|
+
schema = trackerDataSchema(
|
|
30
|
+
key === "messages-text" ? discordMessageTextDataSchema : key === "discord-messages" ? discordMessageDataSchema : discordReactionDataSchema
|
|
31
|
+
);
|
|
32
|
+
discordSchemas.set(key, schema);
|
|
33
|
+
}
|
|
34
|
+
return schema;
|
|
35
|
+
}
|
|
36
|
+
function sourceDataSchema(source) {
|
|
37
|
+
switch (source.kind) {
|
|
38
|
+
case "x-search":
|
|
39
|
+
return void 0;
|
|
40
|
+
case "discord-messages":
|
|
41
|
+
case "discord-reactions":
|
|
42
|
+
return discordDataSchema(source);
|
|
43
|
+
case "custom":
|
|
44
|
+
return source.data;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export {
|
|
49
|
+
sourceRoles,
|
|
50
|
+
sourceDataSchema
|
|
51
|
+
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createRelayClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-RCBJBFLC.js";
|
|
4
4
|
import {
|
|
5
5
|
RelayErrorCode,
|
|
6
|
+
asRelayError,
|
|
6
7
|
clientError,
|
|
7
8
|
cosmosChain
|
|
8
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-J52HD4AA.js";
|
|
9
10
|
|
|
10
11
|
// src/base58.ts
|
|
11
12
|
var alphabet = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";
|
|
@@ -448,7 +449,10 @@ async function readSignInMethods(relay) {
|
|
|
448
449
|
providers: [],
|
|
449
450
|
email: true,
|
|
450
451
|
wallets: [],
|
|
451
|
-
error:
|
|
452
|
+
error: asRelayError(
|
|
453
|
+
cause,
|
|
454
|
+
"Couldn't read the project's sign-in methods."
|
|
455
|
+
)
|
|
452
456
|
};
|
|
453
457
|
}
|
|
454
458
|
}
|
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
imageFieldsSchema,
|
|
5
5
|
imageInspectionSchema,
|
|
6
6
|
imageSightingsSchema
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-CYD6QMHU.js";
|
|
8
8
|
import {
|
|
9
9
|
authScopeSchema
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-WMTROSYF.js";
|
|
11
11
|
import {
|
|
12
12
|
photoResultSchema
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-J4OYDYJE.js";
|
|
14
14
|
|
|
15
15
|
// src/configuration.ts
|
|
16
16
|
function questConfiguration(release) {
|