@domino-sdk/relay 0.10.0 → 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 +277 -53
- 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-ATLYA27Y.js → chunk-ONDPW77O.js} +3 -3
- package/dist/{chunk-MVDE7WKB.js → chunk-VDWQL6HV.js} +1 -1
- package/dist/index.d.ts +521 -105
- package/dist/index.js +12 -4
- package/dist/portal-proxy.js +2 -2
- 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.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { errorSchema, QuizEvidence, Attempt, SubmitInput, MemberProgress, questDescriptionSchema, PublishedRelease, ReviewListOptions, MemberListOptions, ReleaseInput, beginHandoverSchema } from './schema.js';
|
|
3
3
|
export { Decision, Entitlement, MemberPage, PhotoResult, PickupAvailability, QuestAvailability, QuestDescription, QuestPresentation, QuestSettingsInput, ReviewPage, Reward, Snapshot, TieredRewardDefinition, artifactSchema, attemptSchema, batchReleaseSchema, completionRecordSchema, configurePickupSchema, confirmHandoverSchema, createStockItemSchema, decisionSchema, entitlementSchema, eventSchema, evidenceSchema, identifier, integrationRewardSchema, mediaUrlSchema, memberListSchema, memberPageSchema, memberProgressSchema, photoResultSchema, pickupAllocationSchema, pickupAvailabilitySchema, pickupCatalogSchema, pickupPolicySchema, pickupSelectionSchema, pointsRewardSchema, prerequisiteSchema, publishedReleaseSchema, questAvailabilitySchema, questPresentationSchema, questSettingsInputSchema, quizAnswersSchema, quizEvidenceSchema, releaseSchema, reservationSchema, reviewItemSchema, reviewListSchema, reviewModeSchema, reviewPageSchema, rewardBundleSchema, rewardKey, rewardSchema, snapshotSchema, staffDecisionSchema, stockItemSchema, stockSchema, storedReviewModeSchema, submitSchema, templateSchema, tierRewardSchema, tieredRewardDefinitionSchema, triggerSchema } from './schema.js';
|
|
4
|
-
import { r as referralAcceptSchema, L as LeaderboardQuery, w as walletChallengeInputSchema,
|
|
5
|
-
export {
|
|
4
|
+
import { r as referralAcceptSchema, L as LeaderboardQuery, w as walletChallengeInputSchema, g as walletProofSchema, h as AuthProvider } from './settings-B61jIDDA.js';
|
|
5
|
+
export { i as AccountConnection, B as Budget, D as DiscordMember, a as DiscordMessage, I as IntegrationProvider, j as LeaderboardDefinition, k as LeaderboardPage, O as Observation, P as ProjectIntegration, Q as QuizContent, R as ReferralDefinition, l as ResourceOption, m as ResourceSource, n as SettingField, q as SettingsValues, S as SolanaBalance, b as StreakPolicy, t as StreakProgress, W as WalletConnection, u as accountConnectionSchema, v as authProviderSchema, x as budgetSchema, y as communityTimeZoneSchema, z as compatibleSettingKinds, C as completionKeySchema, E as completionPolicySchema, d as defineLeaderboard, c as defineReferral, e as discord, F as discordMemberInputSchema, G as discordMemberSchema, H as discordMessageInputSchema, J as discordMessageSchema, K as discordReactionSchema, M as discordServerSchema, N as integrationProviderSchema, T as leaderboardArtifactSchema, U as leaderboardAuthoringSchema, V as leaderboardDefinitionSchema, X as leaderboardExclusionSchema, Y as leaderboardGroupSchema, Z as leaderboardPageSchema, _ as leaderboardPreviewSchema, $ as leaderboardQuerySchema, a0 as leaderboardRowSchema, a1 as leaderboardWindowSchema, a2 as missingResourceSettings, a3 as observationInputSchema, a4 as observationReceiptSchema, a5 as observationSchema, o as observationTriggerSchema, a6 as parseSettings, p as pointLedgers, a7 as pointsAccountSchema, a8 as pointsEntrySchema, a9 as pointsMutationSchema, aa as pointsResultSchema, ab as projectIntegrationSchema, ac as publishedLeaderboardSchema, ad as publishedReferralSchema, ae as quizChoiceSchema, af as quizContentSchema, ag as quizQuestionSchema, ah as quizQuestionsSchema, ai as referralAccountSchema, aj as referralArtifactSchema, ak as referralAuthoringSchema, al as referralControlSchema, am as referralDefinitionSchema, an as referralHistorySchema, ao as referralManagementSchema, ap as referralRelationshipSchema, aq as referralSummarySchema, ar as resourceOptionsSchema, as as resourceRequestSchema, at as resourceSourceSchema, au as settingFieldSchema, s as settings, av as settingsFieldsSchema, aw as settingsValuesSchema, ax as solanaAddressSchema, ay as solanaBalanceSchema, f as streak, az as streakPolicySchema, aA as streakProgressSchema, aB as walletChallengeSchema, aC as walletConnectionSchema } from './settings-B61jIDDA.js';
|
|
6
6
|
|
|
7
7
|
declare class RelayError extends Error {
|
|
8
8
|
readonly status: number;
|
|
@@ -190,9 +190,9 @@ type ProgressObserver = {
|
|
|
190
190
|
};
|
|
191
191
|
|
|
192
192
|
declare const interactionSchema: z.ZodEnum<{
|
|
193
|
-
staff: "staff";
|
|
194
193
|
quiz: "quiz";
|
|
195
194
|
photo: "photo";
|
|
195
|
+
staff: "staff";
|
|
196
196
|
automatic: "automatic";
|
|
197
197
|
claim: "claim";
|
|
198
198
|
}>;
|
|
@@ -360,6 +360,10 @@ declare const questTypeVersionSchema: z.ZodObject<{
|
|
|
360
360
|
scope: z.ZodLiteral<"ever">;
|
|
361
361
|
}, z.core.$strict>>>;
|
|
362
362
|
completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
363
|
+
kind: z.ZodLiteral<"streak">;
|
|
364
|
+
days: z.ZodNumber;
|
|
365
|
+
timeZone: z.ZodString;
|
|
366
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
363
367
|
kind: z.ZodLiteral<"once">;
|
|
364
368
|
}, z.core.$strict>, z.ZodObject<{
|
|
365
369
|
kind: z.ZodLiteral<"keyed">;
|
|
@@ -371,8 +375,8 @@ declare const questTypeVersionSchema: z.ZodObject<{
|
|
|
371
375
|
budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
372
376
|
id: z.ZodString;
|
|
373
377
|
scope: z.ZodEnum<{
|
|
374
|
-
project: "project";
|
|
375
378
|
member: "member";
|
|
379
|
+
project: "project";
|
|
376
380
|
}>;
|
|
377
381
|
period: z.ZodEnum<{
|
|
378
382
|
day: "day";
|
|
@@ -702,6 +706,10 @@ declare const questCatalogSchema: z.ZodObject<{
|
|
|
702
706
|
scope: z.ZodLiteral<"ever">;
|
|
703
707
|
}, z.core.$strict>>>;
|
|
704
708
|
completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
709
|
+
kind: z.ZodLiteral<"streak">;
|
|
710
|
+
days: z.ZodNumber;
|
|
711
|
+
timeZone: z.ZodString;
|
|
712
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
705
713
|
kind: z.ZodLiteral<"once">;
|
|
706
714
|
}, z.core.$strict>, z.ZodObject<{
|
|
707
715
|
kind: z.ZodLiteral<"keyed">;
|
|
@@ -713,8 +721,8 @@ declare const questCatalogSchema: z.ZodObject<{
|
|
|
713
721
|
budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
714
722
|
id: z.ZodString;
|
|
715
723
|
scope: z.ZodEnum<{
|
|
716
|
-
project: "project";
|
|
717
724
|
member: "member";
|
|
725
|
+
project: "project";
|
|
718
726
|
}>;
|
|
719
727
|
period: z.ZodEnum<{
|
|
720
728
|
day: "day";
|
|
@@ -988,6 +996,10 @@ declare const questCatalogSchema: z.ZodObject<{
|
|
|
988
996
|
scope: z.ZodLiteral<"ever">;
|
|
989
997
|
}, z.core.$strict>>>;
|
|
990
998
|
completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
999
|
+
kind: z.ZodLiteral<"streak">;
|
|
1000
|
+
days: z.ZodNumber;
|
|
1001
|
+
timeZone: z.ZodString;
|
|
1002
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
991
1003
|
kind: z.ZodLiteral<"once">;
|
|
992
1004
|
}, z.core.$strict>, z.ZodObject<{
|
|
993
1005
|
kind: z.ZodLiteral<"keyed">;
|
|
@@ -999,8 +1011,8 @@ declare const questCatalogSchema: z.ZodObject<{
|
|
|
999
1011
|
budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1000
1012
|
id: z.ZodString;
|
|
1001
1013
|
scope: z.ZodEnum<{
|
|
1002
|
-
project: "project";
|
|
1003
1014
|
member: "member";
|
|
1015
|
+
project: "project";
|
|
1004
1016
|
}>;
|
|
1005
1017
|
period: z.ZodEnum<{
|
|
1006
1018
|
day: "day";
|
|
@@ -1096,7 +1108,7 @@ declare const questCatalogSchema: z.ZodObject<{
|
|
|
1096
1108
|
createdAt: z.ZodNumber;
|
|
1097
1109
|
}, z.core.$strip>, z.ZodTransform<{
|
|
1098
1110
|
quest: string;
|
|
1099
|
-
runtimeVersion:
|
|
1111
|
+
runtimeVersion: 1 | 2;
|
|
1100
1112
|
title: string;
|
|
1101
1113
|
presentation: {
|
|
1102
1114
|
quiz?: {
|
|
@@ -1133,12 +1145,12 @@ declare const questCatalogSchema: z.ZodObject<{
|
|
|
1133
1145
|
kind: "resource";
|
|
1134
1146
|
default: string;
|
|
1135
1147
|
source: {
|
|
1136
|
-
provider: "domino";
|
|
1137
|
-
resource: "point-ledger";
|
|
1138
|
-
} | {
|
|
1139
1148
|
provider: "discord";
|
|
1140
1149
|
resource: "channel";
|
|
1141
1150
|
types: ("text" | "announcement")[];
|
|
1151
|
+
} | {
|
|
1152
|
+
provider: "domino";
|
|
1153
|
+
resource: "point-ledger";
|
|
1142
1154
|
} | {
|
|
1143
1155
|
provider: "discord";
|
|
1144
1156
|
resource: "role";
|
|
@@ -1239,6 +1251,10 @@ declare const questCatalogSchema: z.ZodObject<{
|
|
|
1239
1251
|
scope: "ever";
|
|
1240
1252
|
}[];
|
|
1241
1253
|
completion: {
|
|
1254
|
+
kind: "streak";
|
|
1255
|
+
days: number;
|
|
1256
|
+
timeZone: string;
|
|
1257
|
+
} | {
|
|
1242
1258
|
kind: "once";
|
|
1243
1259
|
} | {
|
|
1244
1260
|
kind: "keyed";
|
|
@@ -1246,7 +1262,7 @@ declare const questCatalogSchema: z.ZodObject<{
|
|
|
1246
1262
|
visibility: "visible" | "hidden";
|
|
1247
1263
|
budgets: {
|
|
1248
1264
|
id: string;
|
|
1249
|
-
scope: "
|
|
1265
|
+
scope: "member" | "project";
|
|
1250
1266
|
period: "day" | "lifetime";
|
|
1251
1267
|
limit: number;
|
|
1252
1268
|
cost: number | {
|
|
@@ -1322,9 +1338,9 @@ declare const questCatalogSchema: z.ZodObject<{
|
|
|
1322
1338
|
createdAt: number;
|
|
1323
1339
|
}>>]>>>;
|
|
1324
1340
|
supportedInteractions: z.ZodArray<z.ZodEnum<{
|
|
1325
|
-
staff: "staff";
|
|
1326
1341
|
quiz: "quiz";
|
|
1327
1342
|
photo: "photo";
|
|
1343
|
+
staff: "staff";
|
|
1328
1344
|
automatic: "automatic";
|
|
1329
1345
|
claim: "claim";
|
|
1330
1346
|
}>>;
|
|
@@ -1353,9 +1369,9 @@ declare const catalogDeploymentSchema: z.ZodObject<{
|
|
|
1353
1369
|
id?: string | undefined;
|
|
1354
1370
|
}>>>>;
|
|
1355
1371
|
supportedInteractions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1356
|
-
staff: "staff";
|
|
1357
1372
|
quiz: "quiz";
|
|
1358
1373
|
photo: "photo";
|
|
1374
|
+
staff: "staff";
|
|
1359
1375
|
automatic: "automatic";
|
|
1360
1376
|
claim: "claim";
|
|
1361
1377
|
}>>>;
|
|
@@ -1524,6 +1540,10 @@ declare const catalogDeploymentPreviewSchema: z.ZodObject<{
|
|
|
1524
1540
|
scope: z.ZodLiteral<"ever">;
|
|
1525
1541
|
}, z.core.$strict>>>;
|
|
1526
1542
|
completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1543
|
+
kind: z.ZodLiteral<"streak">;
|
|
1544
|
+
days: z.ZodNumber;
|
|
1545
|
+
timeZone: z.ZodString;
|
|
1546
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1527
1547
|
kind: z.ZodLiteral<"once">;
|
|
1528
1548
|
}, z.core.$strict>, z.ZodObject<{
|
|
1529
1549
|
kind: z.ZodLiteral<"keyed">;
|
|
@@ -1535,8 +1555,8 @@ declare const catalogDeploymentPreviewSchema: z.ZodObject<{
|
|
|
1535
1555
|
budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1536
1556
|
id: z.ZodString;
|
|
1537
1557
|
scope: z.ZodEnum<{
|
|
1538
|
-
project: "project";
|
|
1539
1558
|
member: "member";
|
|
1559
|
+
project: "project";
|
|
1540
1560
|
}>;
|
|
1541
1561
|
period: z.ZodEnum<{
|
|
1542
1562
|
day: "day";
|
|
@@ -1563,9 +1583,9 @@ declare const catalogDeploymentPreviewSchema: z.ZodObject<{
|
|
|
1563
1583
|
title: z.ZodString;
|
|
1564
1584
|
}, z.core.$strict>>;
|
|
1565
1585
|
supportedInteractions: z.ZodArray<z.ZodEnum<{
|
|
1566
|
-
staff: "staff";
|
|
1567
1586
|
quiz: "quiz";
|
|
1568
1587
|
photo: "photo";
|
|
1588
|
+
staff: "staff";
|
|
1569
1589
|
automatic: "automatic";
|
|
1570
1590
|
claim: "claim";
|
|
1571
1591
|
}>>;
|
|
@@ -1634,10 +1654,10 @@ declare const questViewSchema: z.ZodObject<{
|
|
|
1634
1654
|
}, z.core.$strict>>;
|
|
1635
1655
|
}, z.core.$strict>>;
|
|
1636
1656
|
connections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
1637
|
-
discord: "discord";
|
|
1638
1657
|
google: "google";
|
|
1639
1658
|
apple: "apple";
|
|
1640
1659
|
x: "x";
|
|
1660
|
+
discord: "discord";
|
|
1641
1661
|
}>>>;
|
|
1642
1662
|
trigger: z.ZodUnion<readonly [z.ZodObject<{
|
|
1643
1663
|
kind: z.ZodLiteral<"manual">;
|
|
@@ -1692,10 +1712,44 @@ declare const questViewSchema: z.ZodObject<{
|
|
|
1692
1712
|
}, z.core.$strict>], "kind">;
|
|
1693
1713
|
completed: z.ZodBoolean;
|
|
1694
1714
|
completion: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1715
|
+
kind: z.ZodLiteral<"streak">;
|
|
1716
|
+
days: z.ZodNumber;
|
|
1717
|
+
timeZone: z.ZodString;
|
|
1718
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1695
1719
|
kind: z.ZodLiteral<"once">;
|
|
1696
1720
|
}, z.core.$strict>, z.ZodObject<{
|
|
1697
1721
|
kind: z.ZodLiteral<"keyed">;
|
|
1698
1722
|
}, z.core.$strict>], "kind">>;
|
|
1723
|
+
streak: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1724
|
+
goal: z.ZodNumber;
|
|
1725
|
+
current: z.ZodNumber;
|
|
1726
|
+
best: z.ZodNumber;
|
|
1727
|
+
today: z.ZodString;
|
|
1728
|
+
todayQualified: z.ZodBoolean;
|
|
1729
|
+
timeZone: z.ZodString;
|
|
1730
|
+
nextBoundary: z.ZodNumber;
|
|
1731
|
+
pendingTimeZone: z.ZodNullable<z.ZodObject<{
|
|
1732
|
+
timeZone: z.ZodString;
|
|
1733
|
+
effectiveAt: z.ZodNumber;
|
|
1734
|
+
}, z.core.$strip>>;
|
|
1735
|
+
days: z.ZodArray<z.ZodObject<{
|
|
1736
|
+
day: z.ZodNumber;
|
|
1737
|
+
date: z.ZodString;
|
|
1738
|
+
timeZone: z.ZodString;
|
|
1739
|
+
occurredAt: z.ZodNumber;
|
|
1740
|
+
}, z.core.$strip>>;
|
|
1741
|
+
milestone: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1742
|
+
status: z.ZodLiteral<"pending">;
|
|
1743
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1744
|
+
status: z.ZodLiteral<"awarded">;
|
|
1745
|
+
completion: z.ZodString;
|
|
1746
|
+
achievedAt: z.ZodNumber;
|
|
1747
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1748
|
+
status: z.ZodLiteral<"budget-exhausted">;
|
|
1749
|
+
budget: z.ZodString;
|
|
1750
|
+
achievedAt: z.ZodNumber;
|
|
1751
|
+
}, z.core.$strip>], "status">;
|
|
1752
|
+
}, z.core.$strip>>>;
|
|
1699
1753
|
completionCount: z.ZodDefault<z.ZodNumber>;
|
|
1700
1754
|
visibility: z.ZodDefault<z.ZodEnum<{
|
|
1701
1755
|
visible: "visible";
|
|
@@ -1719,11 +1773,12 @@ declare const questViewSchema: z.ZodObject<{
|
|
|
1719
1773
|
}, Record<string, string>>>;
|
|
1720
1774
|
}, z.core.$strict>>;
|
|
1721
1775
|
status: z.ZodEnum<{
|
|
1776
|
+
"needs-review": "needs-review";
|
|
1722
1777
|
queued: "queued";
|
|
1723
1778
|
evaluating: "evaluating";
|
|
1724
1779
|
accepted: "accepted";
|
|
1780
|
+
progressed: "progressed";
|
|
1725
1781
|
rejected: "rejected";
|
|
1726
|
-
"needs-review": "needs-review";
|
|
1727
1782
|
failed: "failed";
|
|
1728
1783
|
}>;
|
|
1729
1784
|
reason: z.ZodNullable<z.ZodString>;
|
|
@@ -1761,9 +1816,9 @@ declare const questViewSchema: z.ZodObject<{
|
|
|
1761
1816
|
}, z.core.$strip>>;
|
|
1762
1817
|
release: z.ZodString;
|
|
1763
1818
|
interaction: z.ZodEnum<{
|
|
1764
|
-
staff: "staff";
|
|
1765
1819
|
quiz: "quiz";
|
|
1766
1820
|
photo: "photo";
|
|
1821
|
+
staff: "staff";
|
|
1767
1822
|
automatic: "automatic";
|
|
1768
1823
|
claim: "claim";
|
|
1769
1824
|
}>;
|
|
@@ -1805,10 +1860,10 @@ declare const collectionViewSchema: z.ZodObject<{
|
|
|
1805
1860
|
}, z.core.$strict>>;
|
|
1806
1861
|
}, z.core.$strict>>;
|
|
1807
1862
|
connections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
1808
|
-
discord: "discord";
|
|
1809
1863
|
google: "google";
|
|
1810
1864
|
apple: "apple";
|
|
1811
1865
|
x: "x";
|
|
1866
|
+
discord: "discord";
|
|
1812
1867
|
}>>>;
|
|
1813
1868
|
trigger: z.ZodUnion<readonly [z.ZodObject<{
|
|
1814
1869
|
kind: z.ZodLiteral<"manual">;
|
|
@@ -1863,10 +1918,44 @@ declare const collectionViewSchema: z.ZodObject<{
|
|
|
1863
1918
|
}, z.core.$strict>], "kind">;
|
|
1864
1919
|
completed: z.ZodBoolean;
|
|
1865
1920
|
completion: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1921
|
+
kind: z.ZodLiteral<"streak">;
|
|
1922
|
+
days: z.ZodNumber;
|
|
1923
|
+
timeZone: z.ZodString;
|
|
1924
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1866
1925
|
kind: z.ZodLiteral<"once">;
|
|
1867
1926
|
}, z.core.$strict>, z.ZodObject<{
|
|
1868
1927
|
kind: z.ZodLiteral<"keyed">;
|
|
1869
1928
|
}, z.core.$strict>], "kind">>;
|
|
1929
|
+
streak: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1930
|
+
goal: z.ZodNumber;
|
|
1931
|
+
current: z.ZodNumber;
|
|
1932
|
+
best: z.ZodNumber;
|
|
1933
|
+
today: z.ZodString;
|
|
1934
|
+
todayQualified: z.ZodBoolean;
|
|
1935
|
+
timeZone: z.ZodString;
|
|
1936
|
+
nextBoundary: z.ZodNumber;
|
|
1937
|
+
pendingTimeZone: z.ZodNullable<z.ZodObject<{
|
|
1938
|
+
timeZone: z.ZodString;
|
|
1939
|
+
effectiveAt: z.ZodNumber;
|
|
1940
|
+
}, z.core.$strip>>;
|
|
1941
|
+
days: z.ZodArray<z.ZodObject<{
|
|
1942
|
+
day: z.ZodNumber;
|
|
1943
|
+
date: z.ZodString;
|
|
1944
|
+
timeZone: z.ZodString;
|
|
1945
|
+
occurredAt: z.ZodNumber;
|
|
1946
|
+
}, z.core.$strip>>;
|
|
1947
|
+
milestone: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1948
|
+
status: z.ZodLiteral<"pending">;
|
|
1949
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1950
|
+
status: z.ZodLiteral<"awarded">;
|
|
1951
|
+
completion: z.ZodString;
|
|
1952
|
+
achievedAt: z.ZodNumber;
|
|
1953
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1954
|
+
status: z.ZodLiteral<"budget-exhausted">;
|
|
1955
|
+
budget: z.ZodString;
|
|
1956
|
+
achievedAt: z.ZodNumber;
|
|
1957
|
+
}, z.core.$strip>], "status">;
|
|
1958
|
+
}, z.core.$strip>>>;
|
|
1870
1959
|
completionCount: z.ZodDefault<z.ZodNumber>;
|
|
1871
1960
|
visibility: z.ZodDefault<z.ZodEnum<{
|
|
1872
1961
|
visible: "visible";
|
|
@@ -1890,11 +1979,12 @@ declare const collectionViewSchema: z.ZodObject<{
|
|
|
1890
1979
|
}, Record<string, string>>>;
|
|
1891
1980
|
}, z.core.$strict>>;
|
|
1892
1981
|
status: z.ZodEnum<{
|
|
1982
|
+
"needs-review": "needs-review";
|
|
1893
1983
|
queued: "queued";
|
|
1894
1984
|
evaluating: "evaluating";
|
|
1895
1985
|
accepted: "accepted";
|
|
1986
|
+
progressed: "progressed";
|
|
1896
1987
|
rejected: "rejected";
|
|
1897
|
-
"needs-review": "needs-review";
|
|
1898
1988
|
failed: "failed";
|
|
1899
1989
|
}>;
|
|
1900
1990
|
reason: z.ZodNullable<z.ZodString>;
|
|
@@ -1932,9 +2022,9 @@ declare const collectionViewSchema: z.ZodObject<{
|
|
|
1932
2022
|
}, z.core.$strip>>;
|
|
1933
2023
|
release: z.ZodString;
|
|
1934
2024
|
interaction: z.ZodEnum<{
|
|
1935
|
-
staff: "staff";
|
|
1936
2025
|
quiz: "quiz";
|
|
1937
2026
|
photo: "photo";
|
|
2027
|
+
staff: "staff";
|
|
1938
2028
|
automatic: "automatic";
|
|
1939
2029
|
claim: "claim";
|
|
1940
2030
|
}>;
|
|
@@ -1975,10 +2065,10 @@ declare const questExperienceSchema: z.ZodObject<{
|
|
|
1975
2065
|
}, z.core.$strict>>;
|
|
1976
2066
|
}, z.core.$strict>>;
|
|
1977
2067
|
connections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
1978
|
-
discord: "discord";
|
|
1979
2068
|
google: "google";
|
|
1980
2069
|
apple: "apple";
|
|
1981
2070
|
x: "x";
|
|
2071
|
+
discord: "discord";
|
|
1982
2072
|
}>>>;
|
|
1983
2073
|
trigger: z.ZodUnion<readonly [z.ZodObject<{
|
|
1984
2074
|
kind: z.ZodLiteral<"manual">;
|
|
@@ -2033,10 +2123,44 @@ declare const questExperienceSchema: z.ZodObject<{
|
|
|
2033
2123
|
}, z.core.$strict>], "kind">;
|
|
2034
2124
|
completed: z.ZodBoolean;
|
|
2035
2125
|
completion: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2126
|
+
kind: z.ZodLiteral<"streak">;
|
|
2127
|
+
days: z.ZodNumber;
|
|
2128
|
+
timeZone: z.ZodString;
|
|
2129
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2036
2130
|
kind: z.ZodLiteral<"once">;
|
|
2037
2131
|
}, z.core.$strict>, z.ZodObject<{
|
|
2038
2132
|
kind: z.ZodLiteral<"keyed">;
|
|
2039
2133
|
}, z.core.$strict>], "kind">>;
|
|
2134
|
+
streak: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2135
|
+
goal: z.ZodNumber;
|
|
2136
|
+
current: z.ZodNumber;
|
|
2137
|
+
best: z.ZodNumber;
|
|
2138
|
+
today: z.ZodString;
|
|
2139
|
+
todayQualified: z.ZodBoolean;
|
|
2140
|
+
timeZone: z.ZodString;
|
|
2141
|
+
nextBoundary: z.ZodNumber;
|
|
2142
|
+
pendingTimeZone: z.ZodNullable<z.ZodObject<{
|
|
2143
|
+
timeZone: z.ZodString;
|
|
2144
|
+
effectiveAt: z.ZodNumber;
|
|
2145
|
+
}, z.core.$strip>>;
|
|
2146
|
+
days: z.ZodArray<z.ZodObject<{
|
|
2147
|
+
day: z.ZodNumber;
|
|
2148
|
+
date: z.ZodString;
|
|
2149
|
+
timeZone: z.ZodString;
|
|
2150
|
+
occurredAt: z.ZodNumber;
|
|
2151
|
+
}, z.core.$strip>>;
|
|
2152
|
+
milestone: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2153
|
+
status: z.ZodLiteral<"pending">;
|
|
2154
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2155
|
+
status: z.ZodLiteral<"awarded">;
|
|
2156
|
+
completion: z.ZodString;
|
|
2157
|
+
achievedAt: z.ZodNumber;
|
|
2158
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2159
|
+
status: z.ZodLiteral<"budget-exhausted">;
|
|
2160
|
+
budget: z.ZodString;
|
|
2161
|
+
achievedAt: z.ZodNumber;
|
|
2162
|
+
}, z.core.$strip>], "status">;
|
|
2163
|
+
}, z.core.$strip>>>;
|
|
2040
2164
|
completionCount: z.ZodDefault<z.ZodNumber>;
|
|
2041
2165
|
visibility: z.ZodDefault<z.ZodEnum<{
|
|
2042
2166
|
visible: "visible";
|
|
@@ -2060,11 +2184,12 @@ declare const questExperienceSchema: z.ZodObject<{
|
|
|
2060
2184
|
}, Record<string, string>>>;
|
|
2061
2185
|
}, z.core.$strict>>;
|
|
2062
2186
|
status: z.ZodEnum<{
|
|
2187
|
+
"needs-review": "needs-review";
|
|
2063
2188
|
queued: "queued";
|
|
2064
2189
|
evaluating: "evaluating";
|
|
2065
2190
|
accepted: "accepted";
|
|
2191
|
+
progressed: "progressed";
|
|
2066
2192
|
rejected: "rejected";
|
|
2067
|
-
"needs-review": "needs-review";
|
|
2068
2193
|
failed: "failed";
|
|
2069
2194
|
}>;
|
|
2070
2195
|
reason: z.ZodNullable<z.ZodString>;
|
|
@@ -2102,9 +2227,9 @@ declare const questExperienceSchema: z.ZodObject<{
|
|
|
2102
2227
|
}, z.core.$strip>>;
|
|
2103
2228
|
release: z.ZodString;
|
|
2104
2229
|
interaction: z.ZodEnum<{
|
|
2105
|
-
staff: "staff";
|
|
2106
2230
|
quiz: "quiz";
|
|
2107
2231
|
photo: "photo";
|
|
2232
|
+
staff: "staff";
|
|
2108
2233
|
automatic: "automatic";
|
|
2109
2234
|
claim: "claim";
|
|
2110
2235
|
}>;
|
|
@@ -2146,10 +2271,10 @@ declare const questExperienceSchema: z.ZodObject<{
|
|
|
2146
2271
|
}, z.core.$strict>>;
|
|
2147
2272
|
}, z.core.$strict>>;
|
|
2148
2273
|
connections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
2149
|
-
discord: "discord";
|
|
2150
2274
|
google: "google";
|
|
2151
2275
|
apple: "apple";
|
|
2152
2276
|
x: "x";
|
|
2277
|
+
discord: "discord";
|
|
2153
2278
|
}>>>;
|
|
2154
2279
|
trigger: z.ZodUnion<readonly [z.ZodObject<{
|
|
2155
2280
|
kind: z.ZodLiteral<"manual">;
|
|
@@ -2204,10 +2329,44 @@ declare const questExperienceSchema: z.ZodObject<{
|
|
|
2204
2329
|
}, z.core.$strict>], "kind">;
|
|
2205
2330
|
completed: z.ZodBoolean;
|
|
2206
2331
|
completion: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2332
|
+
kind: z.ZodLiteral<"streak">;
|
|
2333
|
+
days: z.ZodNumber;
|
|
2334
|
+
timeZone: z.ZodString;
|
|
2335
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2207
2336
|
kind: z.ZodLiteral<"once">;
|
|
2208
2337
|
}, z.core.$strict>, z.ZodObject<{
|
|
2209
2338
|
kind: z.ZodLiteral<"keyed">;
|
|
2210
2339
|
}, z.core.$strict>], "kind">>;
|
|
2340
|
+
streak: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2341
|
+
goal: z.ZodNumber;
|
|
2342
|
+
current: z.ZodNumber;
|
|
2343
|
+
best: z.ZodNumber;
|
|
2344
|
+
today: z.ZodString;
|
|
2345
|
+
todayQualified: z.ZodBoolean;
|
|
2346
|
+
timeZone: z.ZodString;
|
|
2347
|
+
nextBoundary: z.ZodNumber;
|
|
2348
|
+
pendingTimeZone: z.ZodNullable<z.ZodObject<{
|
|
2349
|
+
timeZone: z.ZodString;
|
|
2350
|
+
effectiveAt: z.ZodNumber;
|
|
2351
|
+
}, z.core.$strip>>;
|
|
2352
|
+
days: z.ZodArray<z.ZodObject<{
|
|
2353
|
+
day: z.ZodNumber;
|
|
2354
|
+
date: z.ZodString;
|
|
2355
|
+
timeZone: z.ZodString;
|
|
2356
|
+
occurredAt: z.ZodNumber;
|
|
2357
|
+
}, z.core.$strip>>;
|
|
2358
|
+
milestone: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2359
|
+
status: z.ZodLiteral<"pending">;
|
|
2360
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2361
|
+
status: z.ZodLiteral<"awarded">;
|
|
2362
|
+
completion: z.ZodString;
|
|
2363
|
+
achievedAt: z.ZodNumber;
|
|
2364
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2365
|
+
status: z.ZodLiteral<"budget-exhausted">;
|
|
2366
|
+
budget: z.ZodString;
|
|
2367
|
+
achievedAt: z.ZodNumber;
|
|
2368
|
+
}, z.core.$strip>], "status">;
|
|
2369
|
+
}, z.core.$strip>>>;
|
|
2211
2370
|
completionCount: z.ZodDefault<z.ZodNumber>;
|
|
2212
2371
|
visibility: z.ZodDefault<z.ZodEnum<{
|
|
2213
2372
|
visible: "visible";
|
|
@@ -2231,11 +2390,12 @@ declare const questExperienceSchema: z.ZodObject<{
|
|
|
2231
2390
|
}, Record<string, string>>>;
|
|
2232
2391
|
}, z.core.$strict>>;
|
|
2233
2392
|
status: z.ZodEnum<{
|
|
2393
|
+
"needs-review": "needs-review";
|
|
2234
2394
|
queued: "queued";
|
|
2235
2395
|
evaluating: "evaluating";
|
|
2236
2396
|
accepted: "accepted";
|
|
2397
|
+
progressed: "progressed";
|
|
2237
2398
|
rejected: "rejected";
|
|
2238
|
-
"needs-review": "needs-review";
|
|
2239
2399
|
failed: "failed";
|
|
2240
2400
|
}>;
|
|
2241
2401
|
reason: z.ZodNullable<z.ZodString>;
|
|
@@ -2273,9 +2433,9 @@ declare const questExperienceSchema: z.ZodObject<{
|
|
|
2273
2433
|
}, z.core.$strip>>;
|
|
2274
2434
|
release: z.ZodString;
|
|
2275
2435
|
interaction: z.ZodEnum<{
|
|
2276
|
-
staff: "staff";
|
|
2277
2436
|
quiz: "quiz";
|
|
2278
2437
|
photo: "photo";
|
|
2438
|
+
staff: "staff";
|
|
2279
2439
|
automatic: "automatic";
|
|
2280
2440
|
claim: "claim";
|
|
2281
2441
|
}>;
|
|
@@ -2522,6 +2682,10 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
|
|
|
2522
2682
|
scope: z.ZodLiteral<"ever">;
|
|
2523
2683
|
}, z.core.$strict>>>;
|
|
2524
2684
|
completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2685
|
+
kind: z.ZodLiteral<"streak">;
|
|
2686
|
+
days: z.ZodNumber;
|
|
2687
|
+
timeZone: z.ZodString;
|
|
2688
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2525
2689
|
kind: z.ZodLiteral<"once">;
|
|
2526
2690
|
}, z.core.$strict>, z.ZodObject<{
|
|
2527
2691
|
kind: z.ZodLiteral<"keyed">;
|
|
@@ -2533,8 +2697,8 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
|
|
|
2533
2697
|
budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2534
2698
|
id: z.ZodString;
|
|
2535
2699
|
scope: z.ZodEnum<{
|
|
2536
|
-
project: "project";
|
|
2537
2700
|
member: "member";
|
|
2701
|
+
project: "project";
|
|
2538
2702
|
}>;
|
|
2539
2703
|
period: z.ZodEnum<{
|
|
2540
2704
|
day: "day";
|
|
@@ -2630,7 +2794,7 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
|
|
|
2630
2794
|
createdAt: z.ZodNumber;
|
|
2631
2795
|
}, z.core.$strip>, z.ZodTransform<{
|
|
2632
2796
|
quest: string;
|
|
2633
|
-
runtimeVersion:
|
|
2797
|
+
runtimeVersion: 1 | 2;
|
|
2634
2798
|
title: string;
|
|
2635
2799
|
presentation: {
|
|
2636
2800
|
quiz?: {
|
|
@@ -2667,12 +2831,12 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
|
|
|
2667
2831
|
kind: "resource";
|
|
2668
2832
|
default: string;
|
|
2669
2833
|
source: {
|
|
2670
|
-
provider: "domino";
|
|
2671
|
-
resource: "point-ledger";
|
|
2672
|
-
} | {
|
|
2673
2834
|
provider: "discord";
|
|
2674
2835
|
resource: "channel";
|
|
2675
2836
|
types: ("text" | "announcement")[];
|
|
2837
|
+
} | {
|
|
2838
|
+
provider: "domino";
|
|
2839
|
+
resource: "point-ledger";
|
|
2676
2840
|
} | {
|
|
2677
2841
|
provider: "discord";
|
|
2678
2842
|
resource: "role";
|
|
@@ -2773,6 +2937,10 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
|
|
|
2773
2937
|
scope: "ever";
|
|
2774
2938
|
}[];
|
|
2775
2939
|
completion: {
|
|
2940
|
+
kind: "streak";
|
|
2941
|
+
days: number;
|
|
2942
|
+
timeZone: string;
|
|
2943
|
+
} | {
|
|
2776
2944
|
kind: "once";
|
|
2777
2945
|
} | {
|
|
2778
2946
|
kind: "keyed";
|
|
@@ -2780,7 +2948,7 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
|
|
|
2780
2948
|
visibility: "visible" | "hidden";
|
|
2781
2949
|
budgets: {
|
|
2782
2950
|
id: string;
|
|
2783
|
-
scope: "
|
|
2951
|
+
scope: "member" | "project";
|
|
2784
2952
|
period: "day" | "lifetime";
|
|
2785
2953
|
limit: number;
|
|
2786
2954
|
cost: number | {
|
|
@@ -3119,9 +3287,9 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
|
|
|
3119
3287
|
}>;
|
|
3120
3288
|
}, z.core.$strip>>>;
|
|
3121
3289
|
supportedInteractions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
3122
|
-
staff: "staff";
|
|
3123
3290
|
quiz: "quiz";
|
|
3124
3291
|
photo: "photo";
|
|
3292
|
+
staff: "staff";
|
|
3125
3293
|
automatic: "automatic";
|
|
3126
3294
|
claim: "claim";
|
|
3127
3295
|
}>>>;
|
|
@@ -3423,6 +3591,7 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
|
|
|
3423
3591
|
leaderboards: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
|
|
3424
3592
|
title: z.ZodString;
|
|
3425
3593
|
balance: z.ZodString;
|
|
3594
|
+
group: z.ZodOptional<z.ZodString>;
|
|
3426
3595
|
score: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3427
3596
|
kind: z.ZodLiteral<"balance">;
|
|
3428
3597
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -3471,7 +3640,6 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
|
|
|
3471
3640
|
participants: "participants";
|
|
3472
3641
|
public: "public";
|
|
3473
3642
|
}>>;
|
|
3474
|
-
group: z.ZodOptional<z.ZodString>;
|
|
3475
3643
|
key: z.ZodOptional<z.ZodString>;
|
|
3476
3644
|
id: z.ZodOptional<z.ZodString>;
|
|
3477
3645
|
}, z.core.$strict>, z.ZodTransform<Omit<{
|
|
@@ -3590,9 +3758,9 @@ declare const projectDeploymentSchema: z.ZodObject<{
|
|
|
3590
3758
|
}>;
|
|
3591
3759
|
}, z.core.$strip>>>;
|
|
3592
3760
|
supportedInteractions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
3593
|
-
staff: "staff";
|
|
3594
3761
|
quiz: "quiz";
|
|
3595
3762
|
photo: "photo";
|
|
3763
|
+
staff: "staff";
|
|
3596
3764
|
automatic: "automatic";
|
|
3597
3765
|
claim: "claim";
|
|
3598
3766
|
}>>>;
|
|
@@ -3894,6 +4062,7 @@ declare const projectDeploymentSchema: z.ZodObject<{
|
|
|
3894
4062
|
leaderboards: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
|
|
3895
4063
|
title: z.ZodString;
|
|
3896
4064
|
balance: z.ZodString;
|
|
4065
|
+
group: z.ZodOptional<z.ZodString>;
|
|
3897
4066
|
score: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3898
4067
|
kind: z.ZodLiteral<"balance">;
|
|
3899
4068
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -3942,7 +4111,6 @@ declare const projectDeploymentSchema: z.ZodObject<{
|
|
|
3942
4111
|
participants: "participants";
|
|
3943
4112
|
public: "public";
|
|
3944
4113
|
}>>;
|
|
3945
|
-
group: z.ZodOptional<z.ZodString>;
|
|
3946
4114
|
key: z.ZodOptional<z.ZodString>;
|
|
3947
4115
|
id: z.ZodOptional<z.ZodString>;
|
|
3948
4116
|
}, z.core.$strict>, z.ZodTransform<Omit<{
|
|
@@ -4219,6 +4387,10 @@ declare const deploymentPreviewSchema: z.ZodObject<{
|
|
|
4219
4387
|
scope: z.ZodLiteral<"ever">;
|
|
4220
4388
|
}, z.core.$strict>>>;
|
|
4221
4389
|
completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4390
|
+
kind: z.ZodLiteral<"streak">;
|
|
4391
|
+
days: z.ZodNumber;
|
|
4392
|
+
timeZone: z.ZodString;
|
|
4393
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
4222
4394
|
kind: z.ZodLiteral<"once">;
|
|
4223
4395
|
}, z.core.$strict>, z.ZodObject<{
|
|
4224
4396
|
kind: z.ZodLiteral<"keyed">;
|
|
@@ -4230,8 +4402,8 @@ declare const deploymentPreviewSchema: z.ZodObject<{
|
|
|
4230
4402
|
budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
4231
4403
|
id: z.ZodString;
|
|
4232
4404
|
scope: z.ZodEnum<{
|
|
4233
|
-
project: "project";
|
|
4234
4405
|
member: "member";
|
|
4406
|
+
project: "project";
|
|
4235
4407
|
}>;
|
|
4236
4408
|
period: z.ZodEnum<{
|
|
4237
4409
|
day: "day";
|
|
@@ -4327,7 +4499,7 @@ declare const deploymentPreviewSchema: z.ZodObject<{
|
|
|
4327
4499
|
createdAt: z.ZodNumber;
|
|
4328
4500
|
}, z.core.$strip>, z.ZodTransform<{
|
|
4329
4501
|
quest: string;
|
|
4330
|
-
runtimeVersion:
|
|
4502
|
+
runtimeVersion: 1 | 2;
|
|
4331
4503
|
title: string;
|
|
4332
4504
|
presentation: {
|
|
4333
4505
|
quiz?: {
|
|
@@ -4364,12 +4536,12 @@ declare const deploymentPreviewSchema: z.ZodObject<{
|
|
|
4364
4536
|
kind: "resource";
|
|
4365
4537
|
default: string;
|
|
4366
4538
|
source: {
|
|
4367
|
-
provider: "domino";
|
|
4368
|
-
resource: "point-ledger";
|
|
4369
|
-
} | {
|
|
4370
4539
|
provider: "discord";
|
|
4371
4540
|
resource: "channel";
|
|
4372
4541
|
types: ("text" | "announcement")[];
|
|
4542
|
+
} | {
|
|
4543
|
+
provider: "domino";
|
|
4544
|
+
resource: "point-ledger";
|
|
4373
4545
|
} | {
|
|
4374
4546
|
provider: "discord";
|
|
4375
4547
|
resource: "role";
|
|
@@ -4470,6 +4642,10 @@ declare const deploymentPreviewSchema: z.ZodObject<{
|
|
|
4470
4642
|
scope: "ever";
|
|
4471
4643
|
}[];
|
|
4472
4644
|
completion: {
|
|
4645
|
+
kind: "streak";
|
|
4646
|
+
days: number;
|
|
4647
|
+
timeZone: string;
|
|
4648
|
+
} | {
|
|
4473
4649
|
kind: "once";
|
|
4474
4650
|
} | {
|
|
4475
4651
|
kind: "keyed";
|
|
@@ -4477,7 +4653,7 @@ declare const deploymentPreviewSchema: z.ZodObject<{
|
|
|
4477
4653
|
visibility: "visible" | "hidden";
|
|
4478
4654
|
budgets: {
|
|
4479
4655
|
id: string;
|
|
4480
|
-
scope: "
|
|
4656
|
+
scope: "member" | "project";
|
|
4481
4657
|
period: "day" | "lifetime";
|
|
4482
4658
|
limit: number;
|
|
4483
4659
|
cost: number | {
|
|
@@ -4714,6 +4890,10 @@ declare const deploymentPreviewSchema: z.ZodObject<{
|
|
|
4714
4890
|
scope: z.ZodLiteral<"ever">;
|
|
4715
4891
|
}, z.core.$strict>>>;
|
|
4716
4892
|
completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4893
|
+
kind: z.ZodLiteral<"streak">;
|
|
4894
|
+
days: z.ZodNumber;
|
|
4895
|
+
timeZone: z.ZodString;
|
|
4896
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
4717
4897
|
kind: z.ZodLiteral<"once">;
|
|
4718
4898
|
}, z.core.$strict>, z.ZodObject<{
|
|
4719
4899
|
kind: z.ZodLiteral<"keyed">;
|
|
@@ -4725,8 +4905,8 @@ declare const deploymentPreviewSchema: z.ZodObject<{
|
|
|
4725
4905
|
budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
4726
4906
|
id: z.ZodString;
|
|
4727
4907
|
scope: z.ZodEnum<{
|
|
4728
|
-
project: "project";
|
|
4729
4908
|
member: "member";
|
|
4909
|
+
project: "project";
|
|
4730
4910
|
}>;
|
|
4731
4911
|
period: z.ZodEnum<{
|
|
4732
4912
|
day: "day";
|
|
@@ -4754,9 +4934,9 @@ declare const deploymentPreviewSchema: z.ZodObject<{
|
|
|
4754
4934
|
quests: z.ZodArray<z.ZodString>;
|
|
4755
4935
|
}, z.core.$strict>>;
|
|
4756
4936
|
supportedInteractions: z.ZodArray<z.ZodEnum<{
|
|
4757
|
-
staff: "staff";
|
|
4758
4937
|
quiz: "quiz";
|
|
4759
4938
|
photo: "photo";
|
|
4939
|
+
staff: "staff";
|
|
4760
4940
|
automatic: "automatic";
|
|
4761
4941
|
claim: "claim";
|
|
4762
4942
|
}>>;
|
|
@@ -5170,6 +5350,10 @@ declare const deploymentResultSchema: z.ZodObject<{
|
|
|
5170
5350
|
scope: z.ZodLiteral<"ever">;
|
|
5171
5351
|
}, z.core.$strict>>>;
|
|
5172
5352
|
completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5353
|
+
kind: z.ZodLiteral<"streak">;
|
|
5354
|
+
days: z.ZodNumber;
|
|
5355
|
+
timeZone: z.ZodString;
|
|
5356
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
5173
5357
|
kind: z.ZodLiteral<"once">;
|
|
5174
5358
|
}, z.core.$strict>, z.ZodObject<{
|
|
5175
5359
|
kind: z.ZodLiteral<"keyed">;
|
|
@@ -5181,8 +5365,8 @@ declare const deploymentResultSchema: z.ZodObject<{
|
|
|
5181
5365
|
budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
5182
5366
|
id: z.ZodString;
|
|
5183
5367
|
scope: z.ZodEnum<{
|
|
5184
|
-
project: "project";
|
|
5185
5368
|
member: "member";
|
|
5369
|
+
project: "project";
|
|
5186
5370
|
}>;
|
|
5187
5371
|
period: z.ZodEnum<{
|
|
5188
5372
|
day: "day";
|
|
@@ -5278,7 +5462,7 @@ declare const deploymentResultSchema: z.ZodObject<{
|
|
|
5278
5462
|
createdAt: z.ZodNumber;
|
|
5279
5463
|
}, z.core.$strip>, z.ZodTransform<{
|
|
5280
5464
|
quest: string;
|
|
5281
|
-
runtimeVersion:
|
|
5465
|
+
runtimeVersion: 1 | 2;
|
|
5282
5466
|
title: string;
|
|
5283
5467
|
presentation: {
|
|
5284
5468
|
quiz?: {
|
|
@@ -5315,12 +5499,12 @@ declare const deploymentResultSchema: z.ZodObject<{
|
|
|
5315
5499
|
kind: "resource";
|
|
5316
5500
|
default: string;
|
|
5317
5501
|
source: {
|
|
5318
|
-
provider: "domino";
|
|
5319
|
-
resource: "point-ledger";
|
|
5320
|
-
} | {
|
|
5321
5502
|
provider: "discord";
|
|
5322
5503
|
resource: "channel";
|
|
5323
5504
|
types: ("text" | "announcement")[];
|
|
5505
|
+
} | {
|
|
5506
|
+
provider: "domino";
|
|
5507
|
+
resource: "point-ledger";
|
|
5324
5508
|
} | {
|
|
5325
5509
|
provider: "discord";
|
|
5326
5510
|
resource: "role";
|
|
@@ -5421,6 +5605,10 @@ declare const deploymentResultSchema: z.ZodObject<{
|
|
|
5421
5605
|
scope: "ever";
|
|
5422
5606
|
}[];
|
|
5423
5607
|
completion: {
|
|
5608
|
+
kind: "streak";
|
|
5609
|
+
days: number;
|
|
5610
|
+
timeZone: string;
|
|
5611
|
+
} | {
|
|
5424
5612
|
kind: "once";
|
|
5425
5613
|
} | {
|
|
5426
5614
|
kind: "keyed";
|
|
@@ -5428,7 +5616,7 @@ declare const deploymentResultSchema: z.ZodObject<{
|
|
|
5428
5616
|
visibility: "visible" | "hidden";
|
|
5429
5617
|
budgets: {
|
|
5430
5618
|
id: string;
|
|
5431
|
-
scope: "
|
|
5619
|
+
scope: "member" | "project";
|
|
5432
5620
|
period: "day" | "lifetime";
|
|
5433
5621
|
limit: number;
|
|
5434
5622
|
cost: number | {
|
|
@@ -5665,6 +5853,10 @@ declare const deploymentResultSchema: z.ZodObject<{
|
|
|
5665
5853
|
scope: z.ZodLiteral<"ever">;
|
|
5666
5854
|
}, z.core.$strict>>>;
|
|
5667
5855
|
completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5856
|
+
kind: z.ZodLiteral<"streak">;
|
|
5857
|
+
days: z.ZodNumber;
|
|
5858
|
+
timeZone: z.ZodString;
|
|
5859
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
5668
5860
|
kind: z.ZodLiteral<"once">;
|
|
5669
5861
|
}, z.core.$strict>, z.ZodObject<{
|
|
5670
5862
|
kind: z.ZodLiteral<"keyed">;
|
|
@@ -5676,8 +5868,8 @@ declare const deploymentResultSchema: z.ZodObject<{
|
|
|
5676
5868
|
budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
5677
5869
|
id: z.ZodString;
|
|
5678
5870
|
scope: z.ZodEnum<{
|
|
5679
|
-
project: "project";
|
|
5680
5871
|
member: "member";
|
|
5872
|
+
project: "project";
|
|
5681
5873
|
}>;
|
|
5682
5874
|
period: z.ZodEnum<{
|
|
5683
5875
|
day: "day";
|
|
@@ -5705,9 +5897,9 @@ declare const deploymentResultSchema: z.ZodObject<{
|
|
|
5705
5897
|
quests: z.ZodArray<z.ZodString>;
|
|
5706
5898
|
}, z.core.$strict>>;
|
|
5707
5899
|
supportedInteractions: z.ZodArray<z.ZodEnum<{
|
|
5708
|
-
staff: "staff";
|
|
5709
5900
|
quiz: "quiz";
|
|
5710
5901
|
photo: "photo";
|
|
5902
|
+
staff: "staff";
|
|
5711
5903
|
automatic: "automatic";
|
|
5712
5904
|
claim: "claim";
|
|
5713
5905
|
}>>;
|
|
@@ -6205,7 +6397,7 @@ declare function createRelayClient(options: {
|
|
|
6205
6397
|
accounts: {
|
|
6206
6398
|
id: string;
|
|
6207
6399
|
program: string;
|
|
6208
|
-
kind: "
|
|
6400
|
+
kind: "milestone" | "fixed" | "bonus";
|
|
6209
6401
|
balance: string;
|
|
6210
6402
|
earned: number;
|
|
6211
6403
|
settled: number;
|
|
@@ -6332,7 +6524,7 @@ declare function createRelayClient(options: {
|
|
|
6332
6524
|
} | undefined;
|
|
6333
6525
|
} | undefined;
|
|
6334
6526
|
};
|
|
6335
|
-
connections: ("
|
|
6527
|
+
connections: ("google" | "apple" | "x" | "discord")[];
|
|
6336
6528
|
trigger: {
|
|
6337
6529
|
kind: "manual";
|
|
6338
6530
|
input: "quiz" | "photo" | "none";
|
|
@@ -6375,6 +6567,10 @@ declare function createRelayClient(options: {
|
|
|
6375
6567
|
};
|
|
6376
6568
|
completed: boolean;
|
|
6377
6569
|
completion: {
|
|
6570
|
+
kind: "streak";
|
|
6571
|
+
days: number;
|
|
6572
|
+
timeZone: string;
|
|
6573
|
+
} | {
|
|
6378
6574
|
kind: "once";
|
|
6379
6575
|
} | {
|
|
6380
6576
|
kind: "keyed";
|
|
@@ -6391,7 +6587,7 @@ declare function createRelayClient(options: {
|
|
|
6391
6587
|
quest: string;
|
|
6392
6588
|
member: string;
|
|
6393
6589
|
evidence: string | null;
|
|
6394
|
-
status: "queued" | "evaluating" | "accepted" | "
|
|
6590
|
+
status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
|
|
6395
6591
|
reason: string | null;
|
|
6396
6592
|
retries: number;
|
|
6397
6593
|
generation: number;
|
|
@@ -6433,12 +6629,42 @@ declare function createRelayClient(options: {
|
|
|
6433
6629
|
} | undefined;
|
|
6434
6630
|
} | null;
|
|
6435
6631
|
release: string;
|
|
6436
|
-
interaction: "
|
|
6632
|
+
interaction: "quiz" | "photo" | "staff" | "automatic" | "claim";
|
|
6437
6633
|
lifecycle: "active" | "paused" | "archived";
|
|
6438
6634
|
rewards: {
|
|
6439
6635
|
label: string;
|
|
6440
6636
|
}[];
|
|
6441
6637
|
key?: string | undefined;
|
|
6638
|
+
streak?: {
|
|
6639
|
+
goal: number;
|
|
6640
|
+
current: number;
|
|
6641
|
+
best: number;
|
|
6642
|
+
today: string;
|
|
6643
|
+
todayQualified: boolean;
|
|
6644
|
+
timeZone: string;
|
|
6645
|
+
nextBoundary: number;
|
|
6646
|
+
pendingTimeZone: {
|
|
6647
|
+
timeZone: string;
|
|
6648
|
+
effectiveAt: number;
|
|
6649
|
+
} | null;
|
|
6650
|
+
days: {
|
|
6651
|
+
day: number;
|
|
6652
|
+
date: string;
|
|
6653
|
+
timeZone: string;
|
|
6654
|
+
occurredAt: number;
|
|
6655
|
+
}[];
|
|
6656
|
+
milestone: {
|
|
6657
|
+
status: "pending";
|
|
6658
|
+
} | {
|
|
6659
|
+
status: "awarded";
|
|
6660
|
+
completion: string;
|
|
6661
|
+
achievedAt: number;
|
|
6662
|
+
} | {
|
|
6663
|
+
status: "budget-exhausted";
|
|
6664
|
+
budget: string;
|
|
6665
|
+
achievedAt: number;
|
|
6666
|
+
};
|
|
6667
|
+
} | null | undefined;
|
|
6442
6668
|
}>;
|
|
6443
6669
|
retry: (view: QuestView) => Promise<{
|
|
6444
6670
|
id: string;
|
|
@@ -6446,7 +6672,7 @@ declare function createRelayClient(options: {
|
|
|
6446
6672
|
quest: string;
|
|
6447
6673
|
member: string;
|
|
6448
6674
|
evidence: string | null;
|
|
6449
|
-
status: "queued" | "evaluating" | "accepted" | "
|
|
6675
|
+
status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
|
|
6450
6676
|
reason: string | null;
|
|
6451
6677
|
retries: number;
|
|
6452
6678
|
generation: number;
|
|
@@ -6512,7 +6738,7 @@ declare function createRelayClient(options: {
|
|
|
6512
6738
|
} | undefined;
|
|
6513
6739
|
} | undefined;
|
|
6514
6740
|
};
|
|
6515
|
-
connections: ("
|
|
6741
|
+
connections: ("google" | "apple" | "x" | "discord")[];
|
|
6516
6742
|
trigger: {
|
|
6517
6743
|
kind: "manual";
|
|
6518
6744
|
input: "quiz" | "photo" | "none";
|
|
@@ -6555,6 +6781,10 @@ declare function createRelayClient(options: {
|
|
|
6555
6781
|
};
|
|
6556
6782
|
completed: boolean;
|
|
6557
6783
|
completion: {
|
|
6784
|
+
kind: "streak";
|
|
6785
|
+
days: number;
|
|
6786
|
+
timeZone: string;
|
|
6787
|
+
} | {
|
|
6558
6788
|
kind: "once";
|
|
6559
6789
|
} | {
|
|
6560
6790
|
kind: "keyed";
|
|
@@ -6571,7 +6801,7 @@ declare function createRelayClient(options: {
|
|
|
6571
6801
|
quest: string;
|
|
6572
6802
|
member: string;
|
|
6573
6803
|
evidence: string | null;
|
|
6574
|
-
status: "queued" | "evaluating" | "accepted" | "
|
|
6804
|
+
status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
|
|
6575
6805
|
reason: string | null;
|
|
6576
6806
|
retries: number;
|
|
6577
6807
|
generation: number;
|
|
@@ -6613,12 +6843,42 @@ declare function createRelayClient(options: {
|
|
|
6613
6843
|
} | undefined;
|
|
6614
6844
|
} | null;
|
|
6615
6845
|
release: string;
|
|
6616
|
-
interaction: "
|
|
6846
|
+
interaction: "quiz" | "photo" | "staff" | "automatic" | "claim";
|
|
6617
6847
|
lifecycle: "active" | "paused" | "archived";
|
|
6618
6848
|
rewards: {
|
|
6619
6849
|
label: string;
|
|
6620
6850
|
}[];
|
|
6621
6851
|
key?: string | undefined;
|
|
6852
|
+
streak?: {
|
|
6853
|
+
goal: number;
|
|
6854
|
+
current: number;
|
|
6855
|
+
best: number;
|
|
6856
|
+
today: string;
|
|
6857
|
+
todayQualified: boolean;
|
|
6858
|
+
timeZone: string;
|
|
6859
|
+
nextBoundary: number;
|
|
6860
|
+
pendingTimeZone: {
|
|
6861
|
+
timeZone: string;
|
|
6862
|
+
effectiveAt: number;
|
|
6863
|
+
} | null;
|
|
6864
|
+
days: {
|
|
6865
|
+
day: number;
|
|
6866
|
+
date: string;
|
|
6867
|
+
timeZone: string;
|
|
6868
|
+
occurredAt: number;
|
|
6869
|
+
}[];
|
|
6870
|
+
milestone: {
|
|
6871
|
+
status: "pending";
|
|
6872
|
+
} | {
|
|
6873
|
+
status: "awarded";
|
|
6874
|
+
completion: string;
|
|
6875
|
+
achievedAt: number;
|
|
6876
|
+
} | {
|
|
6877
|
+
status: "budget-exhausted";
|
|
6878
|
+
budget: string;
|
|
6879
|
+
achievedAt: number;
|
|
6880
|
+
};
|
|
6881
|
+
} | null | undefined;
|
|
6622
6882
|
}[];
|
|
6623
6883
|
collections: {
|
|
6624
6884
|
id: string;
|
|
@@ -6646,7 +6906,7 @@ declare function createRelayClient(options: {
|
|
|
6646
6906
|
} | undefined;
|
|
6647
6907
|
} | undefined;
|
|
6648
6908
|
};
|
|
6649
|
-
connections: ("
|
|
6909
|
+
connections: ("google" | "apple" | "x" | "discord")[];
|
|
6650
6910
|
trigger: {
|
|
6651
6911
|
kind: "manual";
|
|
6652
6912
|
input: "quiz" | "photo" | "none";
|
|
@@ -6689,6 +6949,10 @@ declare function createRelayClient(options: {
|
|
|
6689
6949
|
};
|
|
6690
6950
|
completed: boolean;
|
|
6691
6951
|
completion: {
|
|
6952
|
+
kind: "streak";
|
|
6953
|
+
days: number;
|
|
6954
|
+
timeZone: string;
|
|
6955
|
+
} | {
|
|
6692
6956
|
kind: "once";
|
|
6693
6957
|
} | {
|
|
6694
6958
|
kind: "keyed";
|
|
@@ -6705,7 +6969,7 @@ declare function createRelayClient(options: {
|
|
|
6705
6969
|
quest: string;
|
|
6706
6970
|
member: string;
|
|
6707
6971
|
evidence: string | null;
|
|
6708
|
-
status: "queued" | "evaluating" | "accepted" | "
|
|
6972
|
+
status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
|
|
6709
6973
|
reason: string | null;
|
|
6710
6974
|
retries: number;
|
|
6711
6975
|
generation: number;
|
|
@@ -6747,12 +7011,42 @@ declare function createRelayClient(options: {
|
|
|
6747
7011
|
} | undefined;
|
|
6748
7012
|
} | null;
|
|
6749
7013
|
release: string;
|
|
6750
|
-
interaction: "
|
|
7014
|
+
interaction: "quiz" | "photo" | "staff" | "automatic" | "claim";
|
|
6751
7015
|
lifecycle: "active" | "paused" | "archived";
|
|
6752
7016
|
rewards: {
|
|
6753
7017
|
label: string;
|
|
6754
7018
|
}[];
|
|
6755
7019
|
key?: string | undefined;
|
|
7020
|
+
streak?: {
|
|
7021
|
+
goal: number;
|
|
7022
|
+
current: number;
|
|
7023
|
+
best: number;
|
|
7024
|
+
today: string;
|
|
7025
|
+
todayQualified: boolean;
|
|
7026
|
+
timeZone: string;
|
|
7027
|
+
nextBoundary: number;
|
|
7028
|
+
pendingTimeZone: {
|
|
7029
|
+
timeZone: string;
|
|
7030
|
+
effectiveAt: number;
|
|
7031
|
+
} | null;
|
|
7032
|
+
days: {
|
|
7033
|
+
day: number;
|
|
7034
|
+
date: string;
|
|
7035
|
+
timeZone: string;
|
|
7036
|
+
occurredAt: number;
|
|
7037
|
+
}[];
|
|
7038
|
+
milestone: {
|
|
7039
|
+
status: "pending";
|
|
7040
|
+
} | {
|
|
7041
|
+
status: "awarded";
|
|
7042
|
+
completion: string;
|
|
7043
|
+
achievedAt: number;
|
|
7044
|
+
} | {
|
|
7045
|
+
status: "budget-exhausted";
|
|
7046
|
+
budget: string;
|
|
7047
|
+
achievedAt: number;
|
|
7048
|
+
};
|
|
7049
|
+
} | null | undefined;
|
|
6756
7050
|
}[];
|
|
6757
7051
|
key?: string | undefined;
|
|
6758
7052
|
}[];
|
|
@@ -6783,7 +7077,7 @@ declare function createRelayClient(options: {
|
|
|
6783
7077
|
} | undefined;
|
|
6784
7078
|
} | undefined;
|
|
6785
7079
|
};
|
|
6786
|
-
connections: ("
|
|
7080
|
+
connections: ("google" | "apple" | "x" | "discord")[];
|
|
6787
7081
|
trigger: {
|
|
6788
7082
|
kind: "manual";
|
|
6789
7083
|
input: "quiz" | "photo" | "none";
|
|
@@ -6826,6 +7120,10 @@ declare function createRelayClient(options: {
|
|
|
6826
7120
|
};
|
|
6827
7121
|
completed: boolean;
|
|
6828
7122
|
completion: {
|
|
7123
|
+
kind: "streak";
|
|
7124
|
+
days: number;
|
|
7125
|
+
timeZone: string;
|
|
7126
|
+
} | {
|
|
6829
7127
|
kind: "once";
|
|
6830
7128
|
} | {
|
|
6831
7129
|
kind: "keyed";
|
|
@@ -6842,7 +7140,7 @@ declare function createRelayClient(options: {
|
|
|
6842
7140
|
quest: string;
|
|
6843
7141
|
member: string;
|
|
6844
7142
|
evidence: string | null;
|
|
6845
|
-
status: "queued" | "evaluating" | "accepted" | "
|
|
7143
|
+
status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
|
|
6846
7144
|
reason: string | null;
|
|
6847
7145
|
retries: number;
|
|
6848
7146
|
generation: number;
|
|
@@ -6884,12 +7182,42 @@ declare function createRelayClient(options: {
|
|
|
6884
7182
|
} | undefined;
|
|
6885
7183
|
} | null;
|
|
6886
7184
|
release: string;
|
|
6887
|
-
interaction: "
|
|
7185
|
+
interaction: "quiz" | "photo" | "staff" | "automatic" | "claim";
|
|
6888
7186
|
lifecycle: "active" | "paused" | "archived";
|
|
6889
7187
|
rewards: {
|
|
6890
7188
|
label: string;
|
|
6891
7189
|
}[];
|
|
6892
7190
|
key?: string | undefined;
|
|
7191
|
+
streak?: {
|
|
7192
|
+
goal: number;
|
|
7193
|
+
current: number;
|
|
7194
|
+
best: number;
|
|
7195
|
+
today: string;
|
|
7196
|
+
todayQualified: boolean;
|
|
7197
|
+
timeZone: string;
|
|
7198
|
+
nextBoundary: number;
|
|
7199
|
+
pendingTimeZone: {
|
|
7200
|
+
timeZone: string;
|
|
7201
|
+
effectiveAt: number;
|
|
7202
|
+
} | null;
|
|
7203
|
+
days: {
|
|
7204
|
+
day: number;
|
|
7205
|
+
date: string;
|
|
7206
|
+
timeZone: string;
|
|
7207
|
+
occurredAt: number;
|
|
7208
|
+
}[];
|
|
7209
|
+
milestone: {
|
|
7210
|
+
status: "pending";
|
|
7211
|
+
} | {
|
|
7212
|
+
status: "awarded";
|
|
7213
|
+
completion: string;
|
|
7214
|
+
achievedAt: number;
|
|
7215
|
+
} | {
|
|
7216
|
+
status: "budget-exhausted";
|
|
7217
|
+
budget: string;
|
|
7218
|
+
achievedAt: number;
|
|
7219
|
+
};
|
|
7220
|
+
} | null | undefined;
|
|
6893
7221
|
}[];
|
|
6894
7222
|
key?: string | undefined;
|
|
6895
7223
|
}>;
|
|
@@ -6923,7 +7251,7 @@ declare function createRelayClient(options: {
|
|
|
6923
7251
|
auth: {
|
|
6924
7252
|
providers: () => Promise<{
|
|
6925
7253
|
providers: {
|
|
6926
|
-
provider: "
|
|
7254
|
+
provider: "google" | "apple" | "x" | "discord";
|
|
6927
7255
|
configured: boolean;
|
|
6928
7256
|
}[];
|
|
6929
7257
|
email: boolean;
|
|
@@ -6953,7 +7281,7 @@ declare function createRelayClient(options: {
|
|
|
6953
7281
|
expiresAt: number;
|
|
6954
7282
|
}>;
|
|
6955
7283
|
accounts: () => Promise<{
|
|
6956
|
-
provider: "
|
|
7284
|
+
provider: "google" | "apple" | "x" | "discord";
|
|
6957
7285
|
configured: boolean;
|
|
6958
7286
|
status: "disconnected" | "connected" | "reconnect";
|
|
6959
7287
|
subject: string | null;
|
|
@@ -7046,7 +7374,7 @@ declare function createRelayClient(options: {
|
|
|
7046
7374
|
quest: string;
|
|
7047
7375
|
member: string;
|
|
7048
7376
|
evidence: string | null;
|
|
7049
|
-
status: "queued" | "evaluating" | "accepted" | "
|
|
7377
|
+
status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
|
|
7050
7378
|
reason: string | null;
|
|
7051
7379
|
retries: number;
|
|
7052
7380
|
generation: number;
|
|
@@ -7112,7 +7440,7 @@ declare function createRelayClient(options: {
|
|
|
7112
7440
|
} | undefined;
|
|
7113
7441
|
} | undefined;
|
|
7114
7442
|
};
|
|
7115
|
-
connections: ("
|
|
7443
|
+
connections: ("google" | "apple" | "x" | "discord")[];
|
|
7116
7444
|
trigger: {
|
|
7117
7445
|
kind: "manual";
|
|
7118
7446
|
input: "quiz" | "photo" | "none";
|
|
@@ -7155,6 +7483,10 @@ declare function createRelayClient(options: {
|
|
|
7155
7483
|
};
|
|
7156
7484
|
completed: boolean;
|
|
7157
7485
|
completion: {
|
|
7486
|
+
kind: "streak";
|
|
7487
|
+
days: number;
|
|
7488
|
+
timeZone: string;
|
|
7489
|
+
} | {
|
|
7158
7490
|
kind: "once";
|
|
7159
7491
|
} | {
|
|
7160
7492
|
kind: "keyed";
|
|
@@ -7171,7 +7503,7 @@ declare function createRelayClient(options: {
|
|
|
7171
7503
|
quest: string;
|
|
7172
7504
|
member: string;
|
|
7173
7505
|
evidence: string | null;
|
|
7174
|
-
status: "queued" | "evaluating" | "accepted" | "
|
|
7506
|
+
status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
|
|
7175
7507
|
reason: string | null;
|
|
7176
7508
|
retries: number;
|
|
7177
7509
|
generation: number;
|
|
@@ -7214,6 +7546,36 @@ declare function createRelayClient(options: {
|
|
|
7214
7546
|
} | null;
|
|
7215
7547
|
key?: string | undefined;
|
|
7216
7548
|
release?: string | undefined;
|
|
7549
|
+
streak?: {
|
|
7550
|
+
goal: number;
|
|
7551
|
+
current: number;
|
|
7552
|
+
best: number;
|
|
7553
|
+
today: string;
|
|
7554
|
+
todayQualified: boolean;
|
|
7555
|
+
timeZone: string;
|
|
7556
|
+
nextBoundary: number;
|
|
7557
|
+
pendingTimeZone: {
|
|
7558
|
+
timeZone: string;
|
|
7559
|
+
effectiveAt: number;
|
|
7560
|
+
} | null;
|
|
7561
|
+
days: {
|
|
7562
|
+
day: number;
|
|
7563
|
+
date: string;
|
|
7564
|
+
timeZone: string;
|
|
7565
|
+
occurredAt: number;
|
|
7566
|
+
}[];
|
|
7567
|
+
milestone: {
|
|
7568
|
+
status: "pending";
|
|
7569
|
+
} | {
|
|
7570
|
+
status: "awarded";
|
|
7571
|
+
completion: string;
|
|
7572
|
+
achievedAt: number;
|
|
7573
|
+
} | {
|
|
7574
|
+
status: "budget-exhausted";
|
|
7575
|
+
budget: string;
|
|
7576
|
+
achievedAt: number;
|
|
7577
|
+
};
|
|
7578
|
+
} | null | undefined;
|
|
7217
7579
|
}[];
|
|
7218
7580
|
entitlements: ({
|
|
7219
7581
|
status: "available";
|
|
@@ -7318,7 +7680,7 @@ declare function createRelayClient(options: {
|
|
|
7318
7680
|
quest: string;
|
|
7319
7681
|
member: string;
|
|
7320
7682
|
evidence: string | null;
|
|
7321
|
-
status: "queued" | "evaluating" | "accepted" | "
|
|
7683
|
+
status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
|
|
7322
7684
|
reason: string | null;
|
|
7323
7685
|
retries: number;
|
|
7324
7686
|
generation: number;
|
|
@@ -7378,7 +7740,7 @@ declare function createRelayClient(options: {
|
|
|
7378
7740
|
quest: string;
|
|
7379
7741
|
member: string;
|
|
7380
7742
|
evidence: string | null;
|
|
7381
|
-
status: "queued" | "evaluating" | "accepted" | "
|
|
7743
|
+
status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
|
|
7382
7744
|
reason: string | null;
|
|
7383
7745
|
retries: number;
|
|
7384
7746
|
generation: number;
|
|
@@ -7456,7 +7818,7 @@ declare function createRelayClient(options: {
|
|
|
7456
7818
|
code: string;
|
|
7457
7819
|
definition: {
|
|
7458
7820
|
quest: string;
|
|
7459
|
-
runtimeVersion:
|
|
7821
|
+
runtimeVersion: 1 | 2;
|
|
7460
7822
|
title: string;
|
|
7461
7823
|
presentation: {
|
|
7462
7824
|
quiz?: {
|
|
@@ -7493,12 +7855,12 @@ declare function createRelayClient(options: {
|
|
|
7493
7855
|
kind: "resource";
|
|
7494
7856
|
default: string;
|
|
7495
7857
|
source: {
|
|
7496
|
-
provider: "domino";
|
|
7497
|
-
resource: "point-ledger";
|
|
7498
|
-
} | {
|
|
7499
7858
|
provider: "discord";
|
|
7500
7859
|
resource: "channel";
|
|
7501
7860
|
types: ("text" | "announcement")[];
|
|
7861
|
+
} | {
|
|
7862
|
+
provider: "domino";
|
|
7863
|
+
resource: "point-ledger";
|
|
7502
7864
|
} | {
|
|
7503
7865
|
provider: "discord";
|
|
7504
7866
|
resource: "role";
|
|
@@ -7599,6 +7961,10 @@ declare function createRelayClient(options: {
|
|
|
7599
7961
|
scope: "ever";
|
|
7600
7962
|
}[];
|
|
7601
7963
|
completion: {
|
|
7964
|
+
kind: "streak";
|
|
7965
|
+
days: number;
|
|
7966
|
+
timeZone: string;
|
|
7967
|
+
} | {
|
|
7602
7968
|
kind: "once";
|
|
7603
7969
|
} | {
|
|
7604
7970
|
kind: "keyed";
|
|
@@ -7606,7 +7972,7 @@ declare function createRelayClient(options: {
|
|
|
7606
7972
|
visibility: "visible" | "hidden";
|
|
7607
7973
|
budgets: {
|
|
7608
7974
|
id: string;
|
|
7609
|
-
scope: "
|
|
7975
|
+
scope: "member" | "project";
|
|
7610
7976
|
period: "day" | "lifetime";
|
|
7611
7977
|
limit: number;
|
|
7612
7978
|
cost: number | {
|
|
@@ -7620,7 +7986,7 @@ declare function createRelayClient(options: {
|
|
|
7620
7986
|
code: string;
|
|
7621
7987
|
definition: {
|
|
7622
7988
|
quest: string;
|
|
7623
|
-
runtimeVersion:
|
|
7989
|
+
runtimeVersion: 1 | 2;
|
|
7624
7990
|
title: string;
|
|
7625
7991
|
presentation: {
|
|
7626
7992
|
quiz?: {
|
|
@@ -7657,12 +8023,12 @@ declare function createRelayClient(options: {
|
|
|
7657
8023
|
kind: "resource";
|
|
7658
8024
|
default: string;
|
|
7659
8025
|
source: {
|
|
7660
|
-
provider: "domino";
|
|
7661
|
-
resource: "point-ledger";
|
|
7662
|
-
} | {
|
|
7663
8026
|
provider: "discord";
|
|
7664
8027
|
resource: "channel";
|
|
7665
8028
|
types: ("text" | "announcement")[];
|
|
8029
|
+
} | {
|
|
8030
|
+
provider: "domino";
|
|
8031
|
+
resource: "point-ledger";
|
|
7666
8032
|
} | {
|
|
7667
8033
|
provider: "discord";
|
|
7668
8034
|
resource: "role";
|
|
@@ -7763,6 +8129,10 @@ declare function createRelayClient(options: {
|
|
|
7763
8129
|
scope: "ever";
|
|
7764
8130
|
}[];
|
|
7765
8131
|
completion: {
|
|
8132
|
+
kind: "streak";
|
|
8133
|
+
days: number;
|
|
8134
|
+
timeZone: string;
|
|
8135
|
+
} | {
|
|
7766
8136
|
kind: "once";
|
|
7767
8137
|
} | {
|
|
7768
8138
|
kind: "keyed";
|
|
@@ -7770,7 +8140,7 @@ declare function createRelayClient(options: {
|
|
|
7770
8140
|
visibility: "visible" | "hidden";
|
|
7771
8141
|
budgets: {
|
|
7772
8142
|
id: string;
|
|
7773
|
-
scope: "
|
|
8143
|
+
scope: "member" | "project";
|
|
7774
8144
|
period: "day" | "lifetime";
|
|
7775
8145
|
limit: number;
|
|
7776
8146
|
cost: number | {
|
|
@@ -7783,7 +8153,7 @@ declare function createRelayClient(options: {
|
|
|
7783
8153
|
snapshot: () => Promise<{
|
|
7784
8154
|
releases: {
|
|
7785
8155
|
quest: string;
|
|
7786
|
-
runtimeVersion:
|
|
8156
|
+
runtimeVersion: 1 | 2;
|
|
7787
8157
|
title: string;
|
|
7788
8158
|
presentation: {
|
|
7789
8159
|
quiz?: {
|
|
@@ -7820,12 +8190,12 @@ declare function createRelayClient(options: {
|
|
|
7820
8190
|
kind: "resource";
|
|
7821
8191
|
default: string;
|
|
7822
8192
|
source: {
|
|
7823
|
-
provider: "domino";
|
|
7824
|
-
resource: "point-ledger";
|
|
7825
|
-
} | {
|
|
7826
8193
|
provider: "discord";
|
|
7827
8194
|
resource: "channel";
|
|
7828
8195
|
types: ("text" | "announcement")[];
|
|
8196
|
+
} | {
|
|
8197
|
+
provider: "domino";
|
|
8198
|
+
resource: "point-ledger";
|
|
7829
8199
|
} | {
|
|
7830
8200
|
provider: "discord";
|
|
7831
8201
|
resource: "role";
|
|
@@ -7926,6 +8296,10 @@ declare function createRelayClient(options: {
|
|
|
7926
8296
|
scope: "ever";
|
|
7927
8297
|
}[];
|
|
7928
8298
|
completion: {
|
|
8299
|
+
kind: "streak";
|
|
8300
|
+
days: number;
|
|
8301
|
+
timeZone: string;
|
|
8302
|
+
} | {
|
|
7929
8303
|
kind: "once";
|
|
7930
8304
|
} | {
|
|
7931
8305
|
kind: "keyed";
|
|
@@ -7933,7 +8307,7 @@ declare function createRelayClient(options: {
|
|
|
7933
8307
|
visibility: "visible" | "hidden";
|
|
7934
8308
|
budgets: {
|
|
7935
8309
|
id: string;
|
|
7936
|
-
scope: "
|
|
8310
|
+
scope: "member" | "project";
|
|
7937
8311
|
period: "day" | "lifetime";
|
|
7938
8312
|
limit: number;
|
|
7939
8313
|
cost: number | {
|
|
@@ -8061,7 +8435,7 @@ declare function createRelayClient(options: {
|
|
|
8061
8435
|
quest: string;
|
|
8062
8436
|
member: string;
|
|
8063
8437
|
evidence: string | null;
|
|
8064
|
-
status: "queued" | "evaluating" | "accepted" | "
|
|
8438
|
+
status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
|
|
8065
8439
|
reason: string | null;
|
|
8066
8440
|
retries: number;
|
|
8067
8441
|
generation: number;
|
|
@@ -8121,7 +8495,7 @@ declare function createRelayClient(options: {
|
|
|
8121
8495
|
/** @deprecated The participant API rejects publication. Publish with `domino deploy` or the management API. */
|
|
8122
8496
|
publish: (release: ReleaseInput) => Promise<{
|
|
8123
8497
|
quest: string;
|
|
8124
|
-
runtimeVersion:
|
|
8498
|
+
runtimeVersion: 1 | 2;
|
|
8125
8499
|
title: string;
|
|
8126
8500
|
presentation: {
|
|
8127
8501
|
quiz?: {
|
|
@@ -8158,12 +8532,12 @@ declare function createRelayClient(options: {
|
|
|
8158
8532
|
kind: "resource";
|
|
8159
8533
|
default: string;
|
|
8160
8534
|
source: {
|
|
8161
|
-
provider: "domino";
|
|
8162
|
-
resource: "point-ledger";
|
|
8163
|
-
} | {
|
|
8164
8535
|
provider: "discord";
|
|
8165
8536
|
resource: "channel";
|
|
8166
8537
|
types: ("text" | "announcement")[];
|
|
8538
|
+
} | {
|
|
8539
|
+
provider: "domino";
|
|
8540
|
+
resource: "point-ledger";
|
|
8167
8541
|
} | {
|
|
8168
8542
|
provider: "discord";
|
|
8169
8543
|
resource: "role";
|
|
@@ -8264,6 +8638,10 @@ declare function createRelayClient(options: {
|
|
|
8264
8638
|
scope: "ever";
|
|
8265
8639
|
}[];
|
|
8266
8640
|
completion: {
|
|
8641
|
+
kind: "streak";
|
|
8642
|
+
days: number;
|
|
8643
|
+
timeZone: string;
|
|
8644
|
+
} | {
|
|
8267
8645
|
kind: "once";
|
|
8268
8646
|
} | {
|
|
8269
8647
|
kind: "keyed";
|
|
@@ -8271,7 +8649,7 @@ declare function createRelayClient(options: {
|
|
|
8271
8649
|
visibility: "visible" | "hidden";
|
|
8272
8650
|
budgets: {
|
|
8273
8651
|
id: string;
|
|
8274
|
-
scope: "
|
|
8652
|
+
scope: "member" | "project";
|
|
8275
8653
|
period: "day" | "lifetime";
|
|
8276
8654
|
limit: number;
|
|
8277
8655
|
cost: number | {
|
|
@@ -8313,7 +8691,7 @@ declare function createRelayClient(options: {
|
|
|
8313
8691
|
/** @deprecated The participant API rejects publication. Publish with `domino deploy` or the management API. */
|
|
8314
8692
|
publishBatch: (releases: ReleaseInput[]) => Promise<{
|
|
8315
8693
|
quest: string;
|
|
8316
|
-
runtimeVersion:
|
|
8694
|
+
runtimeVersion: 1 | 2;
|
|
8317
8695
|
title: string;
|
|
8318
8696
|
presentation: {
|
|
8319
8697
|
quiz?: {
|
|
@@ -8350,12 +8728,12 @@ declare function createRelayClient(options: {
|
|
|
8350
8728
|
kind: "resource";
|
|
8351
8729
|
default: string;
|
|
8352
8730
|
source: {
|
|
8353
|
-
provider: "domino";
|
|
8354
|
-
resource: "point-ledger";
|
|
8355
|
-
} | {
|
|
8356
8731
|
provider: "discord";
|
|
8357
8732
|
resource: "channel";
|
|
8358
8733
|
types: ("text" | "announcement")[];
|
|
8734
|
+
} | {
|
|
8735
|
+
provider: "domino";
|
|
8736
|
+
resource: "point-ledger";
|
|
8359
8737
|
} | {
|
|
8360
8738
|
provider: "discord";
|
|
8361
8739
|
resource: "role";
|
|
@@ -8456,6 +8834,10 @@ declare function createRelayClient(options: {
|
|
|
8456
8834
|
scope: "ever";
|
|
8457
8835
|
}[];
|
|
8458
8836
|
completion: {
|
|
8837
|
+
kind: "streak";
|
|
8838
|
+
days: number;
|
|
8839
|
+
timeZone: string;
|
|
8840
|
+
} | {
|
|
8459
8841
|
kind: "once";
|
|
8460
8842
|
} | {
|
|
8461
8843
|
kind: "keyed";
|
|
@@ -8463,7 +8845,7 @@ declare function createRelayClient(options: {
|
|
|
8463
8845
|
visibility: "visible" | "hidden";
|
|
8464
8846
|
budgets: {
|
|
8465
8847
|
id: string;
|
|
8466
|
-
scope: "
|
|
8848
|
+
scope: "member" | "project";
|
|
8467
8849
|
period: "day" | "lifetime";
|
|
8468
8850
|
limit: number;
|
|
8469
8851
|
cost: number | {
|
|
@@ -8527,7 +8909,7 @@ declare function createRelayClient(options: {
|
|
|
8527
8909
|
} | undefined;
|
|
8528
8910
|
} | undefined;
|
|
8529
8911
|
};
|
|
8530
|
-
connections: ("
|
|
8912
|
+
connections: ("google" | "apple" | "x" | "discord")[];
|
|
8531
8913
|
trigger: {
|
|
8532
8914
|
kind: "manual";
|
|
8533
8915
|
input: "quiz" | "photo" | "none";
|
|
@@ -8570,6 +8952,10 @@ declare function createRelayClient(options: {
|
|
|
8570
8952
|
};
|
|
8571
8953
|
completed: boolean;
|
|
8572
8954
|
completion: {
|
|
8955
|
+
kind: "streak";
|
|
8956
|
+
days: number;
|
|
8957
|
+
timeZone: string;
|
|
8958
|
+
} | {
|
|
8573
8959
|
kind: "once";
|
|
8574
8960
|
} | {
|
|
8575
8961
|
kind: "keyed";
|
|
@@ -8586,7 +8972,7 @@ declare function createRelayClient(options: {
|
|
|
8586
8972
|
quest: string;
|
|
8587
8973
|
member: string;
|
|
8588
8974
|
evidence: string | null;
|
|
8589
|
-
status: "queued" | "evaluating" | "accepted" | "
|
|
8975
|
+
status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
|
|
8590
8976
|
reason: string | null;
|
|
8591
8977
|
retries: number;
|
|
8592
8978
|
generation: number;
|
|
@@ -8629,6 +9015,36 @@ declare function createRelayClient(options: {
|
|
|
8629
9015
|
} | null;
|
|
8630
9016
|
key?: string | undefined;
|
|
8631
9017
|
release?: string | undefined;
|
|
9018
|
+
streak?: {
|
|
9019
|
+
goal: number;
|
|
9020
|
+
current: number;
|
|
9021
|
+
best: number;
|
|
9022
|
+
today: string;
|
|
9023
|
+
todayQualified: boolean;
|
|
9024
|
+
timeZone: string;
|
|
9025
|
+
nextBoundary: number;
|
|
9026
|
+
pendingTimeZone: {
|
|
9027
|
+
timeZone: string;
|
|
9028
|
+
effectiveAt: number;
|
|
9029
|
+
} | null;
|
|
9030
|
+
days: {
|
|
9031
|
+
day: number;
|
|
9032
|
+
date: string;
|
|
9033
|
+
timeZone: string;
|
|
9034
|
+
occurredAt: number;
|
|
9035
|
+
}[];
|
|
9036
|
+
milestone: {
|
|
9037
|
+
status: "pending";
|
|
9038
|
+
} | {
|
|
9039
|
+
status: "awarded";
|
|
9040
|
+
completion: string;
|
|
9041
|
+
achievedAt: number;
|
|
9042
|
+
} | {
|
|
9043
|
+
status: "budget-exhausted";
|
|
9044
|
+
budget: string;
|
|
9045
|
+
achievedAt: number;
|
|
9046
|
+
};
|
|
9047
|
+
} | null | undefined;
|
|
8632
9048
|
}[];
|
|
8633
9049
|
entitlements: ({
|
|
8634
9050
|
status: "available";
|
|
@@ -8879,7 +9295,7 @@ declare function createRelayClient(options: {
|
|
|
8879
9295
|
quest: string;
|
|
8880
9296
|
member: string;
|
|
8881
9297
|
evidence: string | null;
|
|
8882
|
-
status: "queued" | "evaluating" | "accepted" | "
|
|
9298
|
+
status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
|
|
8883
9299
|
reason: string | null;
|
|
8884
9300
|
retries: number;
|
|
8885
9301
|
generation: number;
|
|
@@ -8926,7 +9342,7 @@ declare function createRelayClient(options: {
|
|
|
8926
9342
|
quest: string;
|
|
8927
9343
|
member: string;
|
|
8928
9344
|
evidence: string | null;
|
|
8929
|
-
status: "queued" | "evaluating" | "accepted" | "
|
|
9345
|
+
status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
|
|
8930
9346
|
reason: string | null;
|
|
8931
9347
|
retries: number;
|
|
8932
9348
|
generation: number;
|
|
@@ -8979,7 +9395,7 @@ declare function createRelayClient(options: {
|
|
|
8979
9395
|
quest: string;
|
|
8980
9396
|
member: string;
|
|
8981
9397
|
evidence: string | null;
|
|
8982
|
-
status: "queued" | "evaluating" | "accepted" | "
|
|
9398
|
+
status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
|
|
8983
9399
|
reason: string | null;
|
|
8984
9400
|
retries: number;
|
|
8985
9401
|
generation: number;
|