@domino-sdk/relay 0.9.1 → 0.11.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 +8 -4
- package/dist/authoring.js +7 -3
- package/dist/browser.d.ts +245 -21
- package/dist/browser.js +4 -4
- package/dist/chunk-3UOTI4IU.js +904 -0
- package/dist/{chunk-Q5VDZVVO.js → chunk-CE5XVIJQ.js} +1 -1
- package/dist/{chunk-Y6H4HDQT.js → chunk-ONDPW77O.js} +15 -3
- package/dist/{chunk-MVDE7WKB.js → chunk-VDWQL6HV.js} +1 -1
- package/dist/index.d.ts +463 -35
- package/dist/index.js +12 -4
- package/dist/portal-proxy.d.ts +8 -4
- package/dist/portal-proxy.js +4 -3
- package/dist/schema.d.ts +71 -8
- package/dist/schema.js +1 -1
- package/dist/{settings-BA8XjT4m.d.ts → settings-B61jIDDA.d.ts} +49 -4
- package/package.json +1 -1
- package/dist/chunk-XTFCKK2Y.js +0 -863
package/dist/index.js
CHANGED
|
@@ -51,7 +51,7 @@ import {
|
|
|
51
51
|
walletChallengeSchema,
|
|
52
52
|
walletConnectionSchema,
|
|
53
53
|
walletProofSchema
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-ONDPW77O.js";
|
|
55
55
|
import {
|
|
56
56
|
defineLeaderboard,
|
|
57
57
|
defineReferral,
|
|
@@ -81,14 +81,14 @@ import {
|
|
|
81
81
|
referralManagementSchema,
|
|
82
82
|
referralRelationshipSchema,
|
|
83
83
|
referralSummarySchema
|
|
84
|
-
} from "./chunk-
|
|
84
|
+
} from "./chunk-CE5XVIJQ.js";
|
|
85
85
|
import {
|
|
86
86
|
authScopeSchema,
|
|
87
87
|
exchangeResultSchema,
|
|
88
88
|
exchangeSchema,
|
|
89
89
|
principalSchema,
|
|
90
90
|
sessionSchema
|
|
91
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-VDWQL6HV.js";
|
|
92
92
|
import {
|
|
93
93
|
accountConnectionSchema,
|
|
94
94
|
artifactSchema,
|
|
@@ -97,6 +97,7 @@ import {
|
|
|
97
97
|
batchReleaseSchema,
|
|
98
98
|
beginHandoverSchema,
|
|
99
99
|
budgetSchema,
|
|
100
|
+
communityTimeZoneSchema,
|
|
100
101
|
compatibleSettingKinds,
|
|
101
102
|
completionKeySchema,
|
|
102
103
|
completionPolicySchema,
|
|
@@ -171,12 +172,15 @@ import {
|
|
|
171
172
|
stockItemSchema,
|
|
172
173
|
stockSchema,
|
|
173
174
|
storedReviewModeSchema,
|
|
175
|
+
streak,
|
|
176
|
+
streakPolicySchema,
|
|
177
|
+
streakProgressSchema,
|
|
174
178
|
submitSchema,
|
|
175
179
|
templateSchema,
|
|
176
180
|
tierRewardSchema,
|
|
177
181
|
tieredRewardDefinitionSchema,
|
|
178
182
|
triggerSchema
|
|
179
|
-
} from "./chunk-
|
|
183
|
+
} from "./chunk-3UOTI4IU.js";
|
|
180
184
|
export {
|
|
181
185
|
QuestUpdatedError,
|
|
182
186
|
RelayError,
|
|
@@ -200,6 +204,7 @@ export {
|
|
|
200
204
|
collectionSlotDeclarationSchema,
|
|
201
205
|
collectionSlotSchema,
|
|
202
206
|
collectionViewSchema,
|
|
207
|
+
communityTimeZoneSchema,
|
|
203
208
|
compatibleSettingKinds,
|
|
204
209
|
completionKeySchema,
|
|
205
210
|
completionPolicySchema,
|
|
@@ -340,6 +345,9 @@ export {
|
|
|
340
345
|
stockItemSchema,
|
|
341
346
|
stockSchema,
|
|
342
347
|
storedReviewModeSchema,
|
|
348
|
+
streak,
|
|
349
|
+
streakPolicySchema,
|
|
350
|
+
streakProgressSchema,
|
|
343
351
|
submitSchema,
|
|
344
352
|
templateSchema,
|
|
345
353
|
tierRewardSchema,
|
package/dist/portal-proxy.d.ts
CHANGED
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Server-only proxy: browser cookies stay on the participant origin.
|
|
3
|
-
*
|
|
4
|
-
* Browser Authorization and organization/project/environment
|
|
5
|
-
*
|
|
6
|
-
* This does not provide backend identity exchange.
|
|
3
|
+
* The shared API resolves the app's origin to its registered preview or staging
|
|
4
|
+
* project. Browser Authorization and organization/project/environment
|
|
5
|
+
* selectors are discarded. This does not provide backend identity exchange.
|
|
7
6
|
*/
|
|
8
7
|
declare function proxyParticipant(request: Request, upstream: {
|
|
9
8
|
baseUrl: string;
|
|
10
9
|
fetch: typeof fetch;
|
|
10
|
+
/**
|
|
11
|
+
* Send the app origin for the API to resolve. Defaults to true; the API
|
|
12
|
+
* refuses participant requests that no registered app addresses. Only an
|
|
13
|
+
* upstream that already applies a project scope passes false.
|
|
14
|
+
*/
|
|
11
15
|
hosted?: boolean;
|
|
12
16
|
}): Promise<Response>;
|
|
13
17
|
/** Use only in an app server route. authenticate must verify the app's own session. */
|
package/dist/portal-proxy.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exchangeResultSchema
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-VDWQL6HV.js";
|
|
4
|
+
import "./chunk-3UOTI4IU.js";
|
|
5
5
|
|
|
6
6
|
// src/portal-proxy.ts
|
|
7
7
|
async function proxyParticipant(request, upstream) {
|
|
@@ -35,7 +35,8 @@ async function proxyParticipant(request, upstream) {
|
|
|
35
35
|
const value = request.headers.get(name);
|
|
36
36
|
if (value) headers.set(name, value);
|
|
37
37
|
}
|
|
38
|
-
if (upstream.hosted
|
|
38
|
+
if (upstream.hosted ?? true)
|
|
39
|
+
headers.set("X-Relay-App-Origin", incoming.origin);
|
|
39
40
|
const send = upstream.fetch;
|
|
40
41
|
const response = await send(target, {
|
|
41
42
|
method: request.method,
|
package/dist/schema.d.ts
CHANGED
|
@@ -83,8 +83,8 @@ declare const triggerSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
83
83
|
none: "none";
|
|
84
84
|
}>;
|
|
85
85
|
actor: z.ZodOptional<z.ZodEnum<{
|
|
86
|
-
staff: "staff";
|
|
87
86
|
member: "member";
|
|
87
|
+
staff: "staff";
|
|
88
88
|
}>>;
|
|
89
89
|
}, z.core.$strict>, z.ZodObject<{
|
|
90
90
|
kind: z.ZodLiteral<"automatic">;
|
|
@@ -373,8 +373,8 @@ declare const questDescriptionSchema: z.ZodObject<{
|
|
|
373
373
|
none: "none";
|
|
374
374
|
}>;
|
|
375
375
|
actor: z.ZodOptional<z.ZodEnum<{
|
|
376
|
-
staff: "staff";
|
|
377
376
|
member: "member";
|
|
377
|
+
staff: "staff";
|
|
378
378
|
}>>;
|
|
379
379
|
}, z.core.$strict>, z.ZodObject<{
|
|
380
380
|
kind: z.ZodLiteral<"automatic">;
|
|
@@ -388,6 +388,10 @@ declare const questDescriptionSchema: z.ZodObject<{
|
|
|
388
388
|
scope: z.ZodLiteral<"ever">;
|
|
389
389
|
}, z.core.$strict>>>;
|
|
390
390
|
completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
391
|
+
kind: z.ZodLiteral<"streak">;
|
|
392
|
+
days: z.ZodNumber;
|
|
393
|
+
timeZone: z.ZodString;
|
|
394
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
391
395
|
kind: z.ZodLiteral<"once">;
|
|
392
396
|
}, z.core.$strict>, z.ZodObject<{
|
|
393
397
|
kind: z.ZodLiteral<"keyed">;
|
|
@@ -610,8 +614,8 @@ declare const publishedReleaseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
610
614
|
none: "none";
|
|
611
615
|
}>;
|
|
612
616
|
actor: z.ZodOptional<z.ZodEnum<{
|
|
613
|
-
staff: "staff";
|
|
614
617
|
member: "member";
|
|
618
|
+
staff: "staff";
|
|
615
619
|
}>>;
|
|
616
620
|
}, z.core.$strict>, z.ZodObject<{
|
|
617
621
|
kind: z.ZodLiteral<"automatic">;
|
|
@@ -625,6 +629,10 @@ declare const publishedReleaseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
625
629
|
scope: z.ZodLiteral<"ever">;
|
|
626
630
|
}, z.core.$strict>>>;
|
|
627
631
|
completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
632
|
+
kind: z.ZodLiteral<"streak">;
|
|
633
|
+
days: z.ZodNumber;
|
|
634
|
+
timeZone: z.ZodString;
|
|
635
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
628
636
|
kind: z.ZodLiteral<"once">;
|
|
629
637
|
}, z.core.$strict>, z.ZodObject<{
|
|
630
638
|
kind: z.ZodLiteral<"keyed">;
|
|
@@ -863,7 +871,7 @@ declare const publishedReleaseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
863
871
|
trigger: {
|
|
864
872
|
kind: "manual";
|
|
865
873
|
input: "photo" | "quiz" | "none";
|
|
866
|
-
actor?: "
|
|
874
|
+
actor?: "member" | "staff" | undefined;
|
|
867
875
|
} | {
|
|
868
876
|
kind: "automatic";
|
|
869
877
|
observation?: {
|
|
@@ -876,6 +884,10 @@ declare const publishedReleaseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
876
884
|
scope: "ever";
|
|
877
885
|
}[];
|
|
878
886
|
completion: {
|
|
887
|
+
kind: "streak";
|
|
888
|
+
days: number;
|
|
889
|
+
timeZone: string;
|
|
890
|
+
} | {
|
|
879
891
|
kind: "once";
|
|
880
892
|
} | {
|
|
881
893
|
kind: "keyed";
|
|
@@ -1103,8 +1115,8 @@ declare const templateSchema: z.ZodObject<{
|
|
|
1103
1115
|
none: "none";
|
|
1104
1116
|
}>;
|
|
1105
1117
|
actor: z.ZodOptional<z.ZodEnum<{
|
|
1106
|
-
staff: "staff";
|
|
1107
1118
|
member: "member";
|
|
1119
|
+
staff: "staff";
|
|
1108
1120
|
}>>;
|
|
1109
1121
|
}, z.core.$strict>, z.ZodObject<{
|
|
1110
1122
|
kind: z.ZodLiteral<"automatic">;
|
|
@@ -1118,6 +1130,10 @@ declare const templateSchema: z.ZodObject<{
|
|
|
1118
1130
|
scope: z.ZodLiteral<"ever">;
|
|
1119
1131
|
}, z.core.$strict>>>;
|
|
1120
1132
|
completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1133
|
+
kind: z.ZodLiteral<"streak">;
|
|
1134
|
+
days: z.ZodNumber;
|
|
1135
|
+
timeZone: z.ZodString;
|
|
1136
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1121
1137
|
kind: z.ZodLiteral<"once">;
|
|
1122
1138
|
}, z.core.$strict>, z.ZodObject<{
|
|
1123
1139
|
kind: z.ZodLiteral<"keyed">;
|
|
@@ -1187,6 +1203,7 @@ declare const attemptSchema: z.ZodObject<{
|
|
|
1187
1203
|
queued: "queued";
|
|
1188
1204
|
evaluating: "evaluating";
|
|
1189
1205
|
accepted: "accepted";
|
|
1206
|
+
progressed: "progressed";
|
|
1190
1207
|
rejected: "rejected";
|
|
1191
1208
|
"needs-review": "needs-review";
|
|
1192
1209
|
failed: "failed";
|
|
@@ -1482,8 +1499,8 @@ declare const memberProgressSchema: z.ZodObject<{
|
|
|
1482
1499
|
none: "none";
|
|
1483
1500
|
}>;
|
|
1484
1501
|
actor: z.ZodOptional<z.ZodEnum<{
|
|
1485
|
-
staff: "staff";
|
|
1486
1502
|
member: "member";
|
|
1503
|
+
staff: "staff";
|
|
1487
1504
|
}>>;
|
|
1488
1505
|
}, z.core.$strict>, z.ZodObject<{
|
|
1489
1506
|
kind: z.ZodLiteral<"automatic">;
|
|
@@ -1527,10 +1544,44 @@ declare const memberProgressSchema: z.ZodObject<{
|
|
|
1527
1544
|
}, z.core.$strict>], "kind">;
|
|
1528
1545
|
completed: z.ZodBoolean;
|
|
1529
1546
|
completion: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1547
|
+
kind: z.ZodLiteral<"streak">;
|
|
1548
|
+
days: z.ZodNumber;
|
|
1549
|
+
timeZone: z.ZodString;
|
|
1550
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1530
1551
|
kind: z.ZodLiteral<"once">;
|
|
1531
1552
|
}, z.core.$strict>, z.ZodObject<{
|
|
1532
1553
|
kind: z.ZodLiteral<"keyed">;
|
|
1533
1554
|
}, z.core.$strict>], "kind">>;
|
|
1555
|
+
streak: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1556
|
+
goal: z.ZodNumber;
|
|
1557
|
+
current: z.ZodNumber;
|
|
1558
|
+
best: z.ZodNumber;
|
|
1559
|
+
today: z.ZodString;
|
|
1560
|
+
todayQualified: z.ZodBoolean;
|
|
1561
|
+
timeZone: z.ZodString;
|
|
1562
|
+
nextBoundary: z.ZodNumber;
|
|
1563
|
+
pendingTimeZone: z.ZodNullable<z.ZodObject<{
|
|
1564
|
+
timeZone: z.ZodString;
|
|
1565
|
+
effectiveAt: z.ZodNumber;
|
|
1566
|
+
}, z.core.$strip>>;
|
|
1567
|
+
days: z.ZodArray<z.ZodObject<{
|
|
1568
|
+
day: z.ZodNumber;
|
|
1569
|
+
date: z.ZodString;
|
|
1570
|
+
timeZone: z.ZodString;
|
|
1571
|
+
occurredAt: z.ZodNumber;
|
|
1572
|
+
}, z.core.$strip>>;
|
|
1573
|
+
milestone: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1574
|
+
status: z.ZodLiteral<"pending">;
|
|
1575
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1576
|
+
status: z.ZodLiteral<"awarded">;
|
|
1577
|
+
completion: z.ZodString;
|
|
1578
|
+
achievedAt: z.ZodNumber;
|
|
1579
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1580
|
+
status: z.ZodLiteral<"budget-exhausted">;
|
|
1581
|
+
budget: z.ZodString;
|
|
1582
|
+
achievedAt: z.ZodNumber;
|
|
1583
|
+
}, z.core.$strip>], "status">;
|
|
1584
|
+
}, z.core.$strip>>>;
|
|
1534
1585
|
completionCount: z.ZodDefault<z.ZodNumber>;
|
|
1535
1586
|
visibility: z.ZodDefault<z.ZodEnum<{
|
|
1536
1587
|
visible: "visible";
|
|
@@ -1557,6 +1608,7 @@ declare const memberProgressSchema: z.ZodObject<{
|
|
|
1557
1608
|
queued: "queued";
|
|
1558
1609
|
evaluating: "evaluating";
|
|
1559
1610
|
accepted: "accepted";
|
|
1611
|
+
progressed: "progressed";
|
|
1560
1612
|
rejected: "rejected";
|
|
1561
1613
|
"needs-review": "needs-review";
|
|
1562
1614
|
failed: "failed";
|
|
@@ -1816,8 +1868,8 @@ declare const snapshotSchema: z.ZodObject<{
|
|
|
1816
1868
|
none: "none";
|
|
1817
1869
|
}>;
|
|
1818
1870
|
actor: z.ZodOptional<z.ZodEnum<{
|
|
1819
|
-
staff: "staff";
|
|
1820
1871
|
member: "member";
|
|
1872
|
+
staff: "staff";
|
|
1821
1873
|
}>>;
|
|
1822
1874
|
}, z.core.$strict>, z.ZodObject<{
|
|
1823
1875
|
kind: z.ZodLiteral<"automatic">;
|
|
@@ -1831,6 +1883,10 @@ declare const snapshotSchema: z.ZodObject<{
|
|
|
1831
1883
|
scope: z.ZodLiteral<"ever">;
|
|
1832
1884
|
}, z.core.$strict>>>;
|
|
1833
1885
|
completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1886
|
+
kind: z.ZodLiteral<"streak">;
|
|
1887
|
+
days: z.ZodNumber;
|
|
1888
|
+
timeZone: z.ZodString;
|
|
1889
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1834
1890
|
kind: z.ZodLiteral<"once">;
|
|
1835
1891
|
}, z.core.$strict>, z.ZodObject<{
|
|
1836
1892
|
kind: z.ZodLiteral<"keyed">;
|
|
@@ -2069,7 +2125,7 @@ declare const snapshotSchema: z.ZodObject<{
|
|
|
2069
2125
|
trigger: {
|
|
2070
2126
|
kind: "manual";
|
|
2071
2127
|
input: "photo" | "quiz" | "none";
|
|
2072
|
-
actor?: "
|
|
2128
|
+
actor?: "member" | "staff" | undefined;
|
|
2073
2129
|
} | {
|
|
2074
2130
|
kind: "automatic";
|
|
2075
2131
|
observation?: {
|
|
@@ -2082,6 +2138,10 @@ declare const snapshotSchema: z.ZodObject<{
|
|
|
2082
2138
|
scope: "ever";
|
|
2083
2139
|
}[];
|
|
2084
2140
|
completion: {
|
|
2141
|
+
kind: "streak";
|
|
2142
|
+
days: number;
|
|
2143
|
+
timeZone: string;
|
|
2144
|
+
} | {
|
|
2085
2145
|
kind: "once";
|
|
2086
2146
|
} | {
|
|
2087
2147
|
kind: "keyed";
|
|
@@ -2264,6 +2324,7 @@ declare const snapshotSchema: z.ZodObject<{
|
|
|
2264
2324
|
queued: "queued";
|
|
2265
2325
|
evaluating: "evaluating";
|
|
2266
2326
|
accepted: "accepted";
|
|
2327
|
+
progressed: "progressed";
|
|
2267
2328
|
rejected: "rejected";
|
|
2268
2329
|
"needs-review": "needs-review";
|
|
2269
2330
|
failed: "failed";
|
|
@@ -2390,6 +2451,7 @@ declare const reviewItemSchema: z.ZodObject<{
|
|
|
2390
2451
|
queued: "queued";
|
|
2391
2452
|
evaluating: "evaluating";
|
|
2392
2453
|
accepted: "accepted";
|
|
2454
|
+
progressed: "progressed";
|
|
2393
2455
|
rejected: "rejected";
|
|
2394
2456
|
"needs-review": "needs-review";
|
|
2395
2457
|
failed: "failed";
|
|
@@ -2459,6 +2521,7 @@ declare const reviewPageSchema: z.ZodObject<{
|
|
|
2459
2521
|
queued: "queued";
|
|
2460
2522
|
evaluating: "evaluating";
|
|
2461
2523
|
accepted: "accepted";
|
|
2524
|
+
progressed: "progressed";
|
|
2462
2525
|
rejected: "rejected";
|
|
2463
2526
|
"needs-review": "needs-review";
|
|
2464
2527
|
failed: "failed";
|
package/dist/schema.js
CHANGED
|
@@ -1,5 +1,46 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
|
|
3
|
+
declare const communityTimeZoneSchema: z.ZodString;
|
|
4
|
+
declare const streakPolicySchema: z.ZodObject<{
|
|
5
|
+
kind: z.ZodLiteral<"streak">;
|
|
6
|
+
days: z.ZodNumber;
|
|
7
|
+
timeZone: z.ZodString;
|
|
8
|
+
}, z.core.$strict>;
|
|
9
|
+
type StreakPolicy = z.infer<typeof streakPolicySchema>;
|
|
10
|
+
/** One milestone per quest. Multiple qualifying actions occupy one community day. */
|
|
11
|
+
declare const streak: (options: Omit<StreakPolicy, "kind">) => StreakPolicy;
|
|
12
|
+
declare const streakProgressSchema: z.ZodObject<{
|
|
13
|
+
goal: z.ZodNumber;
|
|
14
|
+
current: z.ZodNumber;
|
|
15
|
+
best: z.ZodNumber;
|
|
16
|
+
today: z.ZodString;
|
|
17
|
+
todayQualified: z.ZodBoolean;
|
|
18
|
+
timeZone: z.ZodString;
|
|
19
|
+
nextBoundary: z.ZodNumber;
|
|
20
|
+
pendingTimeZone: z.ZodNullable<z.ZodObject<{
|
|
21
|
+
timeZone: z.ZodString;
|
|
22
|
+
effectiveAt: z.ZodNumber;
|
|
23
|
+
}, z.core.$strip>>;
|
|
24
|
+
days: z.ZodArray<z.ZodObject<{
|
|
25
|
+
day: z.ZodNumber;
|
|
26
|
+
date: z.ZodString;
|
|
27
|
+
timeZone: z.ZodString;
|
|
28
|
+
occurredAt: z.ZodNumber;
|
|
29
|
+
}, z.core.$strip>>;
|
|
30
|
+
milestone: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
31
|
+
status: z.ZodLiteral<"pending">;
|
|
32
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
33
|
+
status: z.ZodLiteral<"awarded">;
|
|
34
|
+
completion: z.ZodString;
|
|
35
|
+
achievedAt: z.ZodNumber;
|
|
36
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
37
|
+
status: z.ZodLiteral<"budget-exhausted">;
|
|
38
|
+
budget: z.ZodString;
|
|
39
|
+
achievedAt: z.ZodNumber;
|
|
40
|
+
}, z.core.$strip>], "status">;
|
|
41
|
+
}, z.core.$strip>;
|
|
42
|
+
type StreakProgress = z.infer<typeof streakProgressSchema>;
|
|
43
|
+
|
|
3
44
|
/** Legacy `id` names an authoring key, never a server resource ID. */
|
|
4
45
|
type AuthoringIdentity = {
|
|
5
46
|
key: string;
|
|
@@ -40,6 +81,10 @@ declare const observationTriggerSchema: z.ZodObject<{
|
|
|
40
81
|
type: z.ZodString;
|
|
41
82
|
}, z.core.$strict>;
|
|
42
83
|
declare const completionPolicySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
84
|
+
kind: z.ZodLiteral<"streak">;
|
|
85
|
+
days: z.ZodNumber;
|
|
86
|
+
timeZone: z.ZodString;
|
|
87
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
43
88
|
kind: z.ZodLiteral<"once">;
|
|
44
89
|
}, z.core.$strict>, z.ZodObject<{
|
|
45
90
|
kind: z.ZodLiteral<"keyed">;
|
|
@@ -1066,9 +1111,9 @@ declare const referralAccountSchema: z.ZodObject<{
|
|
|
1066
1111
|
id: z.ZodString;
|
|
1067
1112
|
program: z.ZodString;
|
|
1068
1113
|
kind: z.ZodEnum<{
|
|
1114
|
+
milestone: "milestone";
|
|
1069
1115
|
fixed: "fixed";
|
|
1070
1116
|
bonus: "bonus";
|
|
1071
|
-
milestone: "milestone";
|
|
1072
1117
|
}>;
|
|
1073
1118
|
balance: z.ZodString;
|
|
1074
1119
|
earned: z.ZodNumber;
|
|
@@ -1186,9 +1231,9 @@ declare const referralSummarySchema: z.ZodObject<{
|
|
|
1186
1231
|
id: z.ZodString;
|
|
1187
1232
|
program: z.ZodString;
|
|
1188
1233
|
kind: z.ZodEnum<{
|
|
1234
|
+
milestone: "milestone";
|
|
1189
1235
|
fixed: "fixed";
|
|
1190
1236
|
bonus: "bonus";
|
|
1191
|
-
milestone: "milestone";
|
|
1192
1237
|
}>;
|
|
1193
1238
|
balance: z.ZodString;
|
|
1194
1239
|
earned: z.ZodNumber;
|
|
@@ -1224,9 +1269,9 @@ declare const referralManagementSchema: z.ZodObject<{
|
|
|
1224
1269
|
id: z.ZodString;
|
|
1225
1270
|
program: z.ZodString;
|
|
1226
1271
|
kind: z.ZodEnum<{
|
|
1272
|
+
milestone: "milestone";
|
|
1227
1273
|
fixed: "fixed";
|
|
1228
1274
|
bonus: "bonus";
|
|
1229
|
-
milestone: "milestone";
|
|
1230
1275
|
}>;
|
|
1231
1276
|
balance: z.ZodString;
|
|
1232
1277
|
earned: z.ZodNumber;
|
|
@@ -2339,4 +2384,4 @@ declare function parseSettings(fields: Record<string, SettingField>, input: unkn
|
|
|
2339
2384
|
declare function missingResourceSettings(fields: Record<string, SettingField>, values: SettingsValues): string[];
|
|
2340
2385
|
declare function compatibleSettingKinds(previous: SettingField, next: SettingField): boolean;
|
|
2341
2386
|
|
|
2342
|
-
export {
|
|
2387
|
+
export { leaderboardQuerySchema as $, type AuthoringIdentity as A, type Budget as B, completionKeySchema as C, type DiscordMember as D, completionPolicySchema as E, discordMemberInputSchema as F, discordMemberSchema as G, discordMessageInputSchema as H, type IntegrationProvider as I, discordMessageSchema as J, discordReactionSchema as K, type LeaderboardQuery as L, discordServerSchema as M, integrationProviderSchema as N, type Observation as O, type ProjectIntegration as P, type QuizContent as Q, type ReferralDefinition as R, type SolanaBalance as S, leaderboardArtifactSchema as T, leaderboardAuthoringSchema as U, leaderboardDefinitionSchema as V, type WalletConnection as W, leaderboardExclusionSchema as X, leaderboardGroupSchema as Y, leaderboardPageSchema as Z, leaderboardPreviewSchema as _, type DiscordMessage as a, leaderboardRowSchema as a0, leaderboardWindowSchema as a1, missingResourceSettings as a2, observationInputSchema as a3, observationReceiptSchema as a4, observationSchema as a5, parseSettings as a6, pointsAccountSchema as a7, pointsEntrySchema as a8, pointsMutationSchema as a9, streakProgressSchema as aA, walletChallengeSchema as aB, walletConnectionSchema as aC, pointsResultSchema as aa, projectIntegrationSchema as ab, publishedLeaderboardSchema as ac, publishedReferralSchema as ad, quizChoiceSchema as ae, quizContentSchema as af, quizQuestionSchema as ag, quizQuestionsSchema as ah, referralAccountSchema as ai, referralArtifactSchema as aj, referralAuthoringSchema as ak, referralControlSchema as al, referralDefinitionSchema as am, referralHistorySchema as an, referralManagementSchema as ao, referralRelationshipSchema as ap, referralSummarySchema as aq, resourceOptionsSchema as ar, resourceRequestSchema as as, resourceSourceSchema as at, settingFieldSchema as au, settingsFieldsSchema as av, settingsValuesSchema as aw, solanaAddressSchema as ax, solanaBalanceSchema as ay, streakPolicySchema as az, type StreakPolicy as b, defineReferral as c, defineLeaderboard as d, discord as e, streak as f, walletProofSchema as g, type AuthProvider as h, type AccountConnection as i, type LeaderboardDefinition as j, type LeaderboardPage as k, type ResourceOption as l, type ResourceSource as m, type SettingField as n, observationTriggerSchema as o, pointLedgers as p, type SettingsValues as q, referralAcceptSchema as r, settings as s, type StreakProgress as t, accountConnectionSchema as u, authProviderSchema as v, walletChallengeInputSchema as w, budgetSchema as x, communityTimeZoneSchema as y, compatibleSettingKinds as z };
|