@domino-sdk/relay 0.17.2 → 0.18.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 -12
- package/dist/authoring.js +64 -7
- package/dist/browser.d.ts +369 -68
- package/dist/browser.js +5 -5
- package/dist/chunk-23ZZTCDK.js +1511 -0
- package/dist/{chunk-GEJK7LMK.js → chunk-6GH4NC2T.js} +1 -1
- package/dist/{chunk-XNS25KST.js → chunk-FBOW2TLN.js} +265 -272
- package/dist/{chunk-MK2E36HR.js → chunk-MVDIVWR5.js} +1 -1
- package/dist/{chunk-TI22MU2X.js → chunk-TQUK4DIW.js} +85 -10
- package/dist/index.d.ts +1063 -101
- package/dist/index.js +110 -26
- package/dist/portal-proxy.js +5 -3
- package/dist/react/index.d.ts +437 -126
- package/dist/react/index.js +5 -5
- package/dist/schema.d.ts +332 -41
- package/dist/schema.js +7 -1
- package/dist/{submission-input-Cktvl71b.d.ts → submission-input-DWlvrAQY.d.ts} +829 -8
- package/package.json +1 -1
- package/dist/chunk-YUAE6PFY.js +0 -1048
package/dist/browser.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { r as referralAcceptSchema, L as LeaderboardQuery, w as walletChallengeInputSchema, t as walletProofSchema, u as AuthProvider, v as engagementPageQuerySchema, y as contentQualificationQuerySchema, z as contentAdmissionQuerySchema, E as contentEnrollmentInputSchema, F as contentReleaseInputSchema } from './submission-input-DWlvrAQY.js';
|
|
2
|
+
import { SubmitInput, ReviewListOptions, MemberListOptions, ReleaseInput, beginHandoverSchema, contentPerformanceQuerySchema } from './schema.js';
|
|
2
3
|
import { SubmissionStore, createRelayClient, QuestView, QuestController, ProgressObservation, questExperienceSchema, ProgressObserver, ExchangeInput, PhotoSubmission, QuizSubmission, ClaimSubmission, ValueSubmission } from './index.js';
|
|
3
|
-
import { r as referralAcceptSchema, L as LeaderboardQuery, w as walletChallengeInputSchema, l as walletProofSchema, m as AuthProvider } from './submission-input-Cktvl71b.js';
|
|
4
4
|
import * as zod from 'zod';
|
|
5
5
|
|
|
6
6
|
/** Browser client with durable submission recovery; safe to construct during SSR. */
|
|
@@ -341,6 +341,22 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
341
341
|
};
|
|
342
342
|
connections: ("google" | "apple" | "x" | "discord")[];
|
|
343
343
|
trigger: {
|
|
344
|
+
kind: "automatic";
|
|
345
|
+
observation?: {
|
|
346
|
+
source: string;
|
|
347
|
+
type: string;
|
|
348
|
+
} | undefined;
|
|
349
|
+
content?: {
|
|
350
|
+
tracker: string;
|
|
351
|
+
window: {
|
|
352
|
+
start: number;
|
|
353
|
+
end?: number | undefined;
|
|
354
|
+
};
|
|
355
|
+
enrollment: "required" | "none";
|
|
356
|
+
posts: "after-enrollment" | "since-start";
|
|
357
|
+
historical: "staff" | "automatic" | "claim";
|
|
358
|
+
} | undefined;
|
|
359
|
+
} | {
|
|
344
360
|
kind: "manual";
|
|
345
361
|
input: "text";
|
|
346
362
|
constraints: {
|
|
@@ -361,12 +377,6 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
361
377
|
kind: "manual";
|
|
362
378
|
input: "quiz" | "photo" | "none";
|
|
363
379
|
actor?: "member" | "staff" | undefined;
|
|
364
|
-
} | {
|
|
365
|
-
kind: "automatic";
|
|
366
|
-
observation?: {
|
|
367
|
-
source: string;
|
|
368
|
-
type: string;
|
|
369
|
-
} | undefined;
|
|
370
380
|
};
|
|
371
381
|
availability: {
|
|
372
382
|
kind: "available";
|
|
@@ -584,6 +594,22 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
584
594
|
};
|
|
585
595
|
connections: ("google" | "apple" | "x" | "discord")[];
|
|
586
596
|
trigger: {
|
|
597
|
+
kind: "automatic";
|
|
598
|
+
observation?: {
|
|
599
|
+
source: string;
|
|
600
|
+
type: string;
|
|
601
|
+
} | undefined;
|
|
602
|
+
content?: {
|
|
603
|
+
tracker: string;
|
|
604
|
+
window: {
|
|
605
|
+
start: number;
|
|
606
|
+
end?: number | undefined;
|
|
607
|
+
};
|
|
608
|
+
enrollment: "required" | "none";
|
|
609
|
+
posts: "after-enrollment" | "since-start";
|
|
610
|
+
historical: "staff" | "automatic" | "claim";
|
|
611
|
+
} | undefined;
|
|
612
|
+
} | {
|
|
587
613
|
kind: "manual";
|
|
588
614
|
input: "text";
|
|
589
615
|
constraints: {
|
|
@@ -604,12 +630,6 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
604
630
|
kind: "manual";
|
|
605
631
|
input: "quiz" | "photo" | "none";
|
|
606
632
|
actor?: "member" | "staff" | undefined;
|
|
607
|
-
} | {
|
|
608
|
-
kind: "automatic";
|
|
609
|
-
observation?: {
|
|
610
|
-
source: string;
|
|
611
|
-
type: string;
|
|
612
|
-
} | undefined;
|
|
613
633
|
};
|
|
614
634
|
availability: {
|
|
615
635
|
kind: "available";
|
|
@@ -775,6 +795,22 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
775
795
|
};
|
|
776
796
|
connections: ("google" | "apple" | "x" | "discord")[];
|
|
777
797
|
trigger: {
|
|
798
|
+
kind: "automatic";
|
|
799
|
+
observation?: {
|
|
800
|
+
source: string;
|
|
801
|
+
type: string;
|
|
802
|
+
} | undefined;
|
|
803
|
+
content?: {
|
|
804
|
+
tracker: string;
|
|
805
|
+
window: {
|
|
806
|
+
start: number;
|
|
807
|
+
end?: number | undefined;
|
|
808
|
+
};
|
|
809
|
+
enrollment: "required" | "none";
|
|
810
|
+
posts: "after-enrollment" | "since-start";
|
|
811
|
+
historical: "staff" | "automatic" | "claim";
|
|
812
|
+
} | undefined;
|
|
813
|
+
} | {
|
|
778
814
|
kind: "manual";
|
|
779
815
|
input: "text";
|
|
780
816
|
constraints: {
|
|
@@ -795,12 +831,6 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
795
831
|
kind: "manual";
|
|
796
832
|
input: "quiz" | "photo" | "none";
|
|
797
833
|
actor?: "member" | "staff" | undefined;
|
|
798
|
-
} | {
|
|
799
|
-
kind: "automatic";
|
|
800
|
-
observation?: {
|
|
801
|
-
source: string;
|
|
802
|
-
type: string;
|
|
803
|
-
} | undefined;
|
|
804
834
|
};
|
|
805
835
|
availability: {
|
|
806
836
|
kind: "available";
|
|
@@ -969,6 +999,22 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
969
999
|
};
|
|
970
1000
|
connections: ("google" | "apple" | "x" | "discord")[];
|
|
971
1001
|
trigger: {
|
|
1002
|
+
kind: "automatic";
|
|
1003
|
+
observation?: {
|
|
1004
|
+
source: string;
|
|
1005
|
+
type: string;
|
|
1006
|
+
} | undefined;
|
|
1007
|
+
content?: {
|
|
1008
|
+
tracker: string;
|
|
1009
|
+
window: {
|
|
1010
|
+
start: number;
|
|
1011
|
+
end?: number | undefined;
|
|
1012
|
+
};
|
|
1013
|
+
enrollment: "required" | "none";
|
|
1014
|
+
posts: "after-enrollment" | "since-start";
|
|
1015
|
+
historical: "staff" | "automatic" | "claim";
|
|
1016
|
+
} | undefined;
|
|
1017
|
+
} | {
|
|
972
1018
|
kind: "manual";
|
|
973
1019
|
input: "text";
|
|
974
1020
|
constraints: {
|
|
@@ -989,12 +1035,6 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
989
1035
|
kind: "manual";
|
|
990
1036
|
input: "quiz" | "photo" | "none";
|
|
991
1037
|
actor?: "member" | "staff" | undefined;
|
|
992
|
-
} | {
|
|
993
|
-
kind: "automatic";
|
|
994
|
-
observation?: {
|
|
995
|
-
source: string;
|
|
996
|
-
type: string;
|
|
997
|
-
} | undefined;
|
|
998
1038
|
};
|
|
999
1039
|
availability: {
|
|
1000
1040
|
kind: "available";
|
|
@@ -1365,6 +1405,22 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1365
1405
|
};
|
|
1366
1406
|
connections: ("google" | "apple" | "x" | "discord")[];
|
|
1367
1407
|
trigger: {
|
|
1408
|
+
kind: "automatic";
|
|
1409
|
+
observation?: {
|
|
1410
|
+
source: string;
|
|
1411
|
+
type: string;
|
|
1412
|
+
} | undefined;
|
|
1413
|
+
content?: {
|
|
1414
|
+
tracker: string;
|
|
1415
|
+
window: {
|
|
1416
|
+
start: number;
|
|
1417
|
+
end?: number | undefined;
|
|
1418
|
+
};
|
|
1419
|
+
enrollment: "required" | "none";
|
|
1420
|
+
posts: "after-enrollment" | "since-start";
|
|
1421
|
+
historical: "staff" | "automatic" | "claim";
|
|
1422
|
+
} | undefined;
|
|
1423
|
+
} | {
|
|
1368
1424
|
kind: "manual";
|
|
1369
1425
|
input: "text";
|
|
1370
1426
|
constraints: {
|
|
@@ -1385,12 +1441,6 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1385
1441
|
kind: "manual";
|
|
1386
1442
|
input: "quiz" | "photo" | "none";
|
|
1387
1443
|
actor?: "member" | "staff" | undefined;
|
|
1388
|
-
} | {
|
|
1389
|
-
kind: "automatic";
|
|
1390
|
-
observation?: {
|
|
1391
|
-
source: string;
|
|
1392
|
-
type: string;
|
|
1393
|
-
} | undefined;
|
|
1394
1444
|
};
|
|
1395
1445
|
availability: {
|
|
1396
1446
|
kind: "available";
|
|
@@ -1900,6 +1950,22 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1900
1950
|
})[];
|
|
1901
1951
|
humanReview: boolean;
|
|
1902
1952
|
trigger: {
|
|
1953
|
+
kind: "automatic";
|
|
1954
|
+
observation?: {
|
|
1955
|
+
source: string;
|
|
1956
|
+
type: string;
|
|
1957
|
+
} | undefined;
|
|
1958
|
+
content?: {
|
|
1959
|
+
tracker: string;
|
|
1960
|
+
window: {
|
|
1961
|
+
start: number;
|
|
1962
|
+
end?: number | undefined;
|
|
1963
|
+
};
|
|
1964
|
+
enrollment: "required" | "none";
|
|
1965
|
+
posts: "after-enrollment" | "since-start";
|
|
1966
|
+
historical: "staff" | "automatic" | "claim";
|
|
1967
|
+
} | undefined;
|
|
1968
|
+
} | {
|
|
1903
1969
|
kind: "manual";
|
|
1904
1970
|
input: "text";
|
|
1905
1971
|
constraints: {
|
|
@@ -1920,12 +1986,6 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1920
1986
|
kind: "manual";
|
|
1921
1987
|
input: "quiz" | "photo" | "none";
|
|
1922
1988
|
actor?: "member" | "staff" | undefined;
|
|
1923
|
-
} | {
|
|
1924
|
-
kind: "automatic";
|
|
1925
|
-
observation?: {
|
|
1926
|
-
source: string;
|
|
1927
|
-
type: string;
|
|
1928
|
-
} | undefined;
|
|
1929
1989
|
};
|
|
1930
1990
|
requires: {
|
|
1931
1991
|
quest: string;
|
|
@@ -1950,6 +2010,10 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
1950
2010
|
balance: string;
|
|
1951
2011
|
};
|
|
1952
2012
|
}[];
|
|
2013
|
+
performance?: {
|
|
2014
|
+
metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
|
|
2015
|
+
maxAgeMs: number;
|
|
2016
|
+
} | undefined;
|
|
1953
2017
|
};
|
|
1954
2018
|
}[]>;
|
|
1955
2019
|
template: () => Promise<{
|
|
@@ -2084,6 +2148,22 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2084
2148
|
})[];
|
|
2085
2149
|
humanReview: boolean;
|
|
2086
2150
|
trigger: {
|
|
2151
|
+
kind: "automatic";
|
|
2152
|
+
observation?: {
|
|
2153
|
+
source: string;
|
|
2154
|
+
type: string;
|
|
2155
|
+
} | undefined;
|
|
2156
|
+
content?: {
|
|
2157
|
+
tracker: string;
|
|
2158
|
+
window: {
|
|
2159
|
+
start: number;
|
|
2160
|
+
end?: number | undefined;
|
|
2161
|
+
};
|
|
2162
|
+
enrollment: "required" | "none";
|
|
2163
|
+
posts: "after-enrollment" | "since-start";
|
|
2164
|
+
historical: "staff" | "automatic" | "claim";
|
|
2165
|
+
} | undefined;
|
|
2166
|
+
} | {
|
|
2087
2167
|
kind: "manual";
|
|
2088
2168
|
input: "text";
|
|
2089
2169
|
constraints: {
|
|
@@ -2104,12 +2184,6 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2104
2184
|
kind: "manual";
|
|
2105
2185
|
input: "quiz" | "photo" | "none";
|
|
2106
2186
|
actor?: "member" | "staff" | undefined;
|
|
2107
|
-
} | {
|
|
2108
|
-
kind: "automatic";
|
|
2109
|
-
observation?: {
|
|
2110
|
-
source: string;
|
|
2111
|
-
type: string;
|
|
2112
|
-
} | undefined;
|
|
2113
2187
|
};
|
|
2114
2188
|
requires: {
|
|
2115
2189
|
quest: string;
|
|
@@ -2134,6 +2208,10 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2134
2208
|
balance: string;
|
|
2135
2209
|
};
|
|
2136
2210
|
}[];
|
|
2211
|
+
performance?: {
|
|
2212
|
+
metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
|
|
2213
|
+
maxAgeMs: number;
|
|
2214
|
+
} | undefined;
|
|
2137
2215
|
};
|
|
2138
2216
|
}>;
|
|
2139
2217
|
snapshot: () => Promise<{
|
|
@@ -2267,6 +2345,22 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2267
2345
|
})[];
|
|
2268
2346
|
humanReview: boolean;
|
|
2269
2347
|
trigger: {
|
|
2348
|
+
kind: "automatic";
|
|
2349
|
+
observation?: {
|
|
2350
|
+
source: string;
|
|
2351
|
+
type: string;
|
|
2352
|
+
} | undefined;
|
|
2353
|
+
content?: {
|
|
2354
|
+
tracker: string;
|
|
2355
|
+
window: {
|
|
2356
|
+
start: number;
|
|
2357
|
+
end?: number | undefined;
|
|
2358
|
+
};
|
|
2359
|
+
enrollment: "required" | "none";
|
|
2360
|
+
posts: "after-enrollment" | "since-start";
|
|
2361
|
+
historical: "staff" | "automatic" | "claim";
|
|
2362
|
+
} | undefined;
|
|
2363
|
+
} | {
|
|
2270
2364
|
kind: "manual";
|
|
2271
2365
|
input: "text";
|
|
2272
2366
|
constraints: {
|
|
@@ -2287,12 +2381,6 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2287
2381
|
kind: "manual";
|
|
2288
2382
|
input: "quiz" | "photo" | "none";
|
|
2289
2383
|
actor?: "member" | "staff" | undefined;
|
|
2290
|
-
} | {
|
|
2291
|
-
kind: "automatic";
|
|
2292
|
-
observation?: {
|
|
2293
|
-
source: string;
|
|
2294
|
-
type: string;
|
|
2295
|
-
} | undefined;
|
|
2296
2384
|
};
|
|
2297
2385
|
requires: {
|
|
2298
2386
|
quest: string;
|
|
@@ -2323,6 +2411,10 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2323
2411
|
createdAt: number;
|
|
2324
2412
|
legacy: boolean;
|
|
2325
2413
|
lifecycle: "active" | "paused" | "archived";
|
|
2414
|
+
performance?: {
|
|
2415
|
+
metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
|
|
2416
|
+
maxAgeMs: number;
|
|
2417
|
+
} | undefined;
|
|
2326
2418
|
key?: string | undefined;
|
|
2327
2419
|
origin?: {
|
|
2328
2420
|
typeVersion: string;
|
|
@@ -2631,6 +2723,22 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2631
2723
|
})[];
|
|
2632
2724
|
humanReview: boolean;
|
|
2633
2725
|
trigger: {
|
|
2726
|
+
kind: "automatic";
|
|
2727
|
+
observation?: {
|
|
2728
|
+
source: string;
|
|
2729
|
+
type: string;
|
|
2730
|
+
} | undefined;
|
|
2731
|
+
content?: {
|
|
2732
|
+
tracker: string;
|
|
2733
|
+
window: {
|
|
2734
|
+
start: number;
|
|
2735
|
+
end?: number | undefined;
|
|
2736
|
+
};
|
|
2737
|
+
enrollment: "required" | "none";
|
|
2738
|
+
posts: "after-enrollment" | "since-start";
|
|
2739
|
+
historical: "staff" | "automatic" | "claim";
|
|
2740
|
+
} | undefined;
|
|
2741
|
+
} | {
|
|
2634
2742
|
kind: "manual";
|
|
2635
2743
|
input: "text";
|
|
2636
2744
|
constraints: {
|
|
@@ -2651,12 +2759,6 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2651
2759
|
kind: "manual";
|
|
2652
2760
|
input: "quiz" | "photo" | "none";
|
|
2653
2761
|
actor?: "member" | "staff" | undefined;
|
|
2654
|
-
} | {
|
|
2655
|
-
kind: "automatic";
|
|
2656
|
-
observation?: {
|
|
2657
|
-
source: string;
|
|
2658
|
-
type: string;
|
|
2659
|
-
} | undefined;
|
|
2660
2762
|
};
|
|
2661
2763
|
requires: {
|
|
2662
2764
|
quest: string;
|
|
@@ -2687,6 +2789,10 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2687
2789
|
createdAt: number;
|
|
2688
2790
|
legacy: boolean;
|
|
2689
2791
|
lifecycle: "active" | "paused" | "archived";
|
|
2792
|
+
performance?: {
|
|
2793
|
+
metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
|
|
2794
|
+
maxAgeMs: number;
|
|
2795
|
+
} | undefined;
|
|
2690
2796
|
key?: string | undefined;
|
|
2691
2797
|
origin?: {
|
|
2692
2798
|
typeVersion: string;
|
|
@@ -2843,6 +2949,22 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2843
2949
|
})[];
|
|
2844
2950
|
humanReview: boolean;
|
|
2845
2951
|
trigger: {
|
|
2952
|
+
kind: "automatic";
|
|
2953
|
+
observation?: {
|
|
2954
|
+
source: string;
|
|
2955
|
+
type: string;
|
|
2956
|
+
} | undefined;
|
|
2957
|
+
content?: {
|
|
2958
|
+
tracker: string;
|
|
2959
|
+
window: {
|
|
2960
|
+
start: number;
|
|
2961
|
+
end?: number | undefined;
|
|
2962
|
+
};
|
|
2963
|
+
enrollment: "required" | "none";
|
|
2964
|
+
posts: "after-enrollment" | "since-start";
|
|
2965
|
+
historical: "staff" | "automatic" | "claim";
|
|
2966
|
+
} | undefined;
|
|
2967
|
+
} | {
|
|
2846
2968
|
kind: "manual";
|
|
2847
2969
|
input: "text";
|
|
2848
2970
|
constraints: {
|
|
@@ -2863,12 +2985,6 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2863
2985
|
kind: "manual";
|
|
2864
2986
|
input: "quiz" | "photo" | "none";
|
|
2865
2987
|
actor?: "member" | "staff" | undefined;
|
|
2866
|
-
} | {
|
|
2867
|
-
kind: "automatic";
|
|
2868
|
-
observation?: {
|
|
2869
|
-
source: string;
|
|
2870
|
-
type: string;
|
|
2871
|
-
} | undefined;
|
|
2872
2988
|
};
|
|
2873
2989
|
requires: {
|
|
2874
2990
|
quest: string;
|
|
@@ -2899,6 +3015,10 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2899
3015
|
createdAt: number;
|
|
2900
3016
|
legacy: boolean;
|
|
2901
3017
|
lifecycle: "active" | "paused" | "archived";
|
|
3018
|
+
performance?: {
|
|
3019
|
+
metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
|
|
3020
|
+
maxAgeMs: number;
|
|
3021
|
+
} | undefined;
|
|
2902
3022
|
key?: string | undefined;
|
|
2903
3023
|
origin?: {
|
|
2904
3024
|
typeVersion: string;
|
|
@@ -2952,6 +3072,22 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2952
3072
|
};
|
|
2953
3073
|
connections: ("google" | "apple" | "x" | "discord")[];
|
|
2954
3074
|
trigger: {
|
|
3075
|
+
kind: "automatic";
|
|
3076
|
+
observation?: {
|
|
3077
|
+
source: string;
|
|
3078
|
+
type: string;
|
|
3079
|
+
} | undefined;
|
|
3080
|
+
content?: {
|
|
3081
|
+
tracker: string;
|
|
3082
|
+
window: {
|
|
3083
|
+
start: number;
|
|
3084
|
+
end?: number | undefined;
|
|
3085
|
+
};
|
|
3086
|
+
enrollment: "required" | "none";
|
|
3087
|
+
posts: "after-enrollment" | "since-start";
|
|
3088
|
+
historical: "staff" | "automatic" | "claim";
|
|
3089
|
+
} | undefined;
|
|
3090
|
+
} | {
|
|
2955
3091
|
kind: "manual";
|
|
2956
3092
|
input: "text";
|
|
2957
3093
|
constraints: {
|
|
@@ -2972,12 +3108,6 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
2972
3108
|
kind: "manual";
|
|
2973
3109
|
input: "quiz" | "photo" | "none";
|
|
2974
3110
|
actor?: "member" | "staff" | undefined;
|
|
2975
|
-
} | {
|
|
2976
|
-
kind: "automatic";
|
|
2977
|
-
observation?: {
|
|
2978
|
-
source: string;
|
|
2979
|
-
type: string;
|
|
2980
|
-
} | undefined;
|
|
2981
3111
|
};
|
|
2982
3112
|
availability: {
|
|
2983
3113
|
kind: "available";
|
|
@@ -3351,6 +3481,177 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
|
|
|
3351
3481
|
type: "image/jpeg" | "image/png";
|
|
3352
3482
|
size: number;
|
|
3353
3483
|
}>;
|
|
3484
|
+
engagement: {
|
|
3485
|
+
boundaries: (input: zod.infer<typeof engagementPageQuerySchema>) => Promise<{
|
|
3486
|
+
current: {
|
|
3487
|
+
version: string;
|
|
3488
|
+
definition: {
|
|
3489
|
+
key: string;
|
|
3490
|
+
qualifiedBy: string;
|
|
3491
|
+
balance: string;
|
|
3492
|
+
metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
|
|
3493
|
+
baseline: "historical";
|
|
3494
|
+
maxAgeMs: number;
|
|
3495
|
+
budget: {
|
|
3496
|
+
projectDaily?: number | undefined;
|
|
3497
|
+
memberDaily?: number | undefined;
|
|
3498
|
+
projectLifetime?: number | undefined;
|
|
3499
|
+
};
|
|
3500
|
+
};
|
|
3501
|
+
publishedAt: number;
|
|
3502
|
+
} | null;
|
|
3503
|
+
requested: {
|
|
3504
|
+
version: string;
|
|
3505
|
+
definition: {
|
|
3506
|
+
key: string;
|
|
3507
|
+
qualifiedBy: string;
|
|
3508
|
+
balance: string;
|
|
3509
|
+
metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
|
|
3510
|
+
baseline: "historical";
|
|
3511
|
+
maxAgeMs: number;
|
|
3512
|
+
budget: {
|
|
3513
|
+
projectDaily?: number | undefined;
|
|
3514
|
+
memberDaily?: number | undefined;
|
|
3515
|
+
projectLifetime?: number | undefined;
|
|
3516
|
+
};
|
|
3517
|
+
};
|
|
3518
|
+
publishedAt: number;
|
|
3519
|
+
};
|
|
3520
|
+
items: {
|
|
3521
|
+
from: string;
|
|
3522
|
+
to: string;
|
|
3523
|
+
baseline: Partial<Record<"likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks", number>>;
|
|
3524
|
+
observedAt: number;
|
|
3525
|
+
settlement: {
|
|
3526
|
+
id: string;
|
|
3527
|
+
day: string;
|
|
3528
|
+
observation: string;
|
|
3529
|
+
qualification: string;
|
|
3530
|
+
earned: number;
|
|
3531
|
+
growth: number;
|
|
3532
|
+
paid: number;
|
|
3533
|
+
excluded: number;
|
|
3534
|
+
entry: string | null;
|
|
3535
|
+
createdAt: number;
|
|
3536
|
+
};
|
|
3537
|
+
}[];
|
|
3538
|
+
next: number | null;
|
|
3539
|
+
}>;
|
|
3540
|
+
page: (input: zod.infer<typeof engagementPageQuerySchema>) => Promise<{
|
|
3541
|
+
rule: {
|
|
3542
|
+
version: string;
|
|
3543
|
+
definition: {
|
|
3544
|
+
key: string;
|
|
3545
|
+
qualifiedBy: string;
|
|
3546
|
+
balance: string;
|
|
3547
|
+
metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
|
|
3548
|
+
baseline: "historical";
|
|
3549
|
+
maxAgeMs: number;
|
|
3550
|
+
budget: {
|
|
3551
|
+
projectDaily?: number | undefined;
|
|
3552
|
+
memberDaily?: number | undefined;
|
|
3553
|
+
projectLifetime?: number | undefined;
|
|
3554
|
+
};
|
|
3555
|
+
};
|
|
3556
|
+
publishedAt: number;
|
|
3557
|
+
};
|
|
3558
|
+
account: {
|
|
3559
|
+
member: string;
|
|
3560
|
+
earned: number;
|
|
3561
|
+
accounted: number;
|
|
3562
|
+
paid: number;
|
|
3563
|
+
excluded: number;
|
|
3564
|
+
pending: number;
|
|
3565
|
+
counters: Partial<Record<"likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks", number>>;
|
|
3566
|
+
baseline: Partial<Record<"likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks", number>>;
|
|
3567
|
+
observation: string | null;
|
|
3568
|
+
nextSettlementAt: number | null;
|
|
3569
|
+
reason: string | null;
|
|
3570
|
+
} | null;
|
|
3571
|
+
items: {
|
|
3572
|
+
id: string;
|
|
3573
|
+
day: string;
|
|
3574
|
+
observation: string;
|
|
3575
|
+
qualification: string;
|
|
3576
|
+
earned: number;
|
|
3577
|
+
growth: number;
|
|
3578
|
+
paid: number;
|
|
3579
|
+
excluded: number;
|
|
3580
|
+
entry: string | null;
|
|
3581
|
+
createdAt: number;
|
|
3582
|
+
}[];
|
|
3583
|
+
next: number | null;
|
|
3584
|
+
}>;
|
|
3585
|
+
};
|
|
3586
|
+
content: {
|
|
3587
|
+
performance: (input: zod.infer<typeof contentPerformanceQuerySchema>) => Promise<{
|
|
3588
|
+
current: {
|
|
3589
|
+
state: "needs-review" | "pending" | "failed" | "superseded" | "qualified" | "unqualified" | "content-pending" | "content-unqualified" | "waiting";
|
|
3590
|
+
reason: string | null;
|
|
3591
|
+
contentAttempt: string;
|
|
3592
|
+
attempt: string | null;
|
|
3593
|
+
reward: {
|
|
3594
|
+
attempt: string | null;
|
|
3595
|
+
completion: string | null;
|
|
3596
|
+
state: "awarded" | "excluded" | "unresolved";
|
|
3597
|
+
};
|
|
3598
|
+
};
|
|
3599
|
+
items: {
|
|
3600
|
+
attempt: string;
|
|
3601
|
+
contentAttempt: string;
|
|
3602
|
+
observation: string;
|
|
3603
|
+
observedAt: number;
|
|
3604
|
+
metrics: Partial<Record<"likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks", number>>;
|
|
3605
|
+
state: "needs-review" | "pending" | "failed" | "superseded" | "qualified" | "unqualified";
|
|
3606
|
+
reason: string | null;
|
|
3607
|
+
}[];
|
|
3608
|
+
next: number | null;
|
|
3609
|
+
}>;
|
|
3610
|
+
qualifications: (input: zod.infer<typeof contentQualificationQuerySchema>) => Promise<{
|
|
3611
|
+
items: {
|
|
3612
|
+
quest: string;
|
|
3613
|
+
content: string;
|
|
3614
|
+
member: string;
|
|
3615
|
+
release: string;
|
|
3616
|
+
attempt: string;
|
|
3617
|
+
revision: string;
|
|
3618
|
+
observation: string;
|
|
3619
|
+
current: boolean;
|
|
3620
|
+
state: "needs-review" | "pending" | "failed" | "superseded" | "qualified" | "unqualified" | "stale" | "blocked" | "unavailable";
|
|
3621
|
+
reason: string | null;
|
|
3622
|
+
reward: {
|
|
3623
|
+
attempt: string | null;
|
|
3624
|
+
completion: string | null;
|
|
3625
|
+
state: "awarded" | "excluded" | "unresolved";
|
|
3626
|
+
};
|
|
3627
|
+
}[];
|
|
3628
|
+
next: number | null;
|
|
3629
|
+
}>;
|
|
3630
|
+
admissions: (input: zod.input<typeof contentAdmissionQuerySchema>) => Promise<{
|
|
3631
|
+
items: {
|
|
3632
|
+
quest: string;
|
|
3633
|
+
content: string;
|
|
3634
|
+
release: string;
|
|
3635
|
+
state: "pending" | "admitted" | "excluded";
|
|
3636
|
+
reason: string | null;
|
|
3637
|
+
attempt: string | null;
|
|
3638
|
+
}[];
|
|
3639
|
+
next: string | null;
|
|
3640
|
+
}>;
|
|
3641
|
+
enroll: (input: zod.input<typeof contentEnrollmentInputSchema>) => Promise<{
|
|
3642
|
+
quest: string;
|
|
3643
|
+
member: string;
|
|
3644
|
+
enrolledAt: number;
|
|
3645
|
+
}>;
|
|
3646
|
+
claim: (input: zod.input<typeof contentReleaseInputSchema>) => Promise<{
|
|
3647
|
+
quest: string;
|
|
3648
|
+
content: string;
|
|
3649
|
+
release: string;
|
|
3650
|
+
state: "pending" | "admitted" | "excluded";
|
|
3651
|
+
reason: string | null;
|
|
3652
|
+
attempt: string | null;
|
|
3653
|
+
}>;
|
|
3654
|
+
};
|
|
3354
3655
|
submit: (input: SubmitInput) => Promise<{
|
|
3355
3656
|
id: string;
|
|
3356
3657
|
release: string;
|
package/dist/browser.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
browserSubmissionStore,
|
|
3
3
|
createBrowserRelayClient
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-MVDIVWR5.js";
|
|
5
|
+
import "./chunk-TQUK4DIW.js";
|
|
6
|
+
import "./chunk-FBOW2TLN.js";
|
|
7
|
+
import "./chunk-6GH4NC2T.js";
|
|
8
|
+
import "./chunk-23ZZTCDK.js";
|
|
9
9
|
export {
|
|
10
10
|
browserSubmissionStore,
|
|
11
11
|
createBrowserRelayClient
|