@domino-sdk/relay 0.6.0 → 0.7.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 +7 -2
- package/dist/authoring.js +2 -2
- package/dist/browser.d.ts +67 -42
- package/dist/browser.js +4 -4
- package/dist/{chunk-PLO5PPLU.js → chunk-36LZ3IOO.js} +1 -1
- package/dist/{chunk-MXK7KEDA.js → chunk-6QUCADMF.js} +13 -1
- package/dist/{chunk-CCLIDCUU.js → chunk-LXLNC4CN.js} +178 -169
- package/dist/{chunk-UIC6OF3C.js → chunk-TYVT5BPZ.js} +1 -1
- package/dist/index.d.ts +192 -94
- package/dist/index.js +6 -4
- package/dist/portal-proxy.js +2 -2
- package/dist/schema.d.ts +30 -0
- package/dist/schema.js +1 -1
- package/dist/{settings-BrC6C9yl.d.ts → settings-CU_oBcx0.d.ts} +13 -0
- package/package.json +1 -1
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, 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, stockSchema, submitSchema, templateSchema, tierRewardSchema, tieredRewardDefinitionSchema, triggerSchema } from './schema.js';
|
|
4
|
-
import { r as referralAcceptSchema, L as LeaderboardQuery, w as walletChallengeInputSchema, e as walletProofSchema, A as AuthProvider } from './settings-
|
|
5
|
-
export { f as AccountConnection, B as Budget, D as DiscordMember, a as DiscordMessage, I as IntegrationProvider, g as LeaderboardDefinition, h as LeaderboardPage, O as Observation, P as ProjectIntegration, Q as QuizContent, R as ReferralDefinition, i as ResourceOption, j as ResourceSource, k as SettingField, l as SettingsValues, S as SolanaBalance, W as WalletConnection, m as accountConnectionSchema, n as authProviderSchema, p as budgetSchema, q as compatibleSettingKinds, t as completionKeySchema, u as completionPolicySchema, d as defineLeaderboard, b as defineReferral, c as discord, v as discordMemberInputSchema, x as discordMemberSchema, y as discordMessageInputSchema, z as discordMessageSchema, C as discordReactionSchema, E as discordServerSchema, F as integrationProviderSchema, G as leaderboardArtifactSchema, H as leaderboardDefinitionSchema, J as leaderboardExclusionSchema, K as leaderboardGroupSchema, M as leaderboardPageSchema, N as leaderboardPreviewSchema, T as leaderboardQuerySchema, U as leaderboardRowSchema, V as leaderboardWindowSchema, X as missingResourceSettings, Y as observationInputSchema, Z as observationReceiptSchema, _ as observationSchema, o as observationTriggerSchema, $ as parseSettings, a0 as pointsAccountSchema, a1 as pointsEntrySchema, a2 as pointsMutationSchema, a3 as pointsResultSchema, a4 as projectIntegrationSchema, a5 as publishedLeaderboardSchema, a6 as publishedReferralSchema, a7 as quizChoiceSchema, a8 as quizContentSchema, a9 as quizQuestionSchema, aa as quizQuestionsSchema, ab as referralAccountSchema, ac as referralArtifactSchema, ad as referralControlSchema, ae as referralDefinitionSchema, af as referralHistorySchema, ag as referralManagementSchema, ah as referralRelationshipSchema, ai as referralSummarySchema, aj as resourceOptionsSchema, ak as resourceRequestSchema, al as resourceSourceSchema, am as settingFieldSchema, s as settings, an as settingsFieldsSchema, ao as settingsValuesSchema, ap as solanaAddressSchema, aq as solanaBalanceSchema, ar as walletChallengeSchema, as as walletConnectionSchema } from './settings-
|
|
4
|
+
import { r as referralAcceptSchema, L as LeaderboardQuery, w as walletChallengeInputSchema, e as walletProofSchema, A as AuthProvider } from './settings-CU_oBcx0.js';
|
|
5
|
+
export { f as AccountConnection, B as Budget, D as DiscordMember, a as DiscordMessage, I as IntegrationProvider, g as LeaderboardDefinition, h as LeaderboardPage, O as Observation, P as ProjectIntegration, Q as QuizContent, R as ReferralDefinition, i as ResourceOption, j as ResourceSource, k as SettingField, l as SettingsValues, S as SolanaBalance, W as WalletConnection, m as accountConnectionSchema, n as authProviderSchema, p as budgetSchema, q as compatibleSettingKinds, t as completionKeySchema, u as completionPolicySchema, d as defineLeaderboard, b as defineReferral, c as discord, v as discordMemberInputSchema, x as discordMemberSchema, y as discordMessageInputSchema, z as discordMessageSchema, C as discordReactionSchema, E as discordServerSchema, F as integrationProviderSchema, G as leaderboardArtifactSchema, H as leaderboardDefinitionSchema, J as leaderboardExclusionSchema, K as leaderboardGroupSchema, M as leaderboardPageSchema, N as leaderboardPreviewSchema, T as leaderboardQuerySchema, U as leaderboardRowSchema, V as leaderboardWindowSchema, X as missingResourceSettings, Y as observationInputSchema, Z as observationReceiptSchema, _ as observationSchema, o as observationTriggerSchema, $ as parseSettings, a0 as pointsAccountSchema, a1 as pointsEntrySchema, a2 as pointsMutationSchema, a3 as pointsResultSchema, a4 as projectIntegrationSchema, a5 as publishedLeaderboardSchema, a6 as publishedReferralSchema, a7 as quizChoiceSchema, a8 as quizContentSchema, a9 as quizQuestionSchema, aa as quizQuestionsSchema, ab as referralAccountSchema, ac as referralArtifactSchema, ad as referralControlSchema, ae as referralDefinitionSchema, af as referralHistorySchema, ag as referralManagementSchema, ah as referralRelationshipSchema, ai as referralSummarySchema, aj as resourceOptionsSchema, ak as resourceRequestSchema, al as resourceSourceSchema, am as settingFieldSchema, s as settings, an as settingsFieldsSchema, ao as settingsValuesSchema, ap as solanaAddressSchema, aq as solanaBalanceSchema, ar as walletChallengeSchema, as as walletConnectionSchema } from './settings-CU_oBcx0.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";
|
|
193
194
|
quiz: "quiz";
|
|
194
195
|
photo: "photo";
|
|
195
|
-
staff: "staff";
|
|
196
196
|
automatic: "automatic";
|
|
197
197
|
claim: "claim";
|
|
198
198
|
}>;
|
|
@@ -230,6 +230,11 @@ declare const questTypeVersionSchema: z.ZodObject<{
|
|
|
230
230
|
discord: "discord";
|
|
231
231
|
}>>>;
|
|
232
232
|
fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
233
|
+
kind: z.ZodLiteral<"point-ledger">;
|
|
234
|
+
default: z.ZodString;
|
|
235
|
+
label: z.ZodString;
|
|
236
|
+
description: z.ZodOptional<z.ZodString>;
|
|
237
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
233
238
|
kind: z.ZodLiteral<"datetime">;
|
|
234
239
|
default: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<string, string>>;
|
|
235
240
|
label: z.ZodString;
|
|
@@ -362,12 +367,12 @@ declare const questTypeVersionSchema: z.ZodObject<{
|
|
|
362
367
|
budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
363
368
|
id: z.ZodString;
|
|
364
369
|
scope: z.ZodEnum<{
|
|
365
|
-
member: "member";
|
|
366
370
|
project: "project";
|
|
371
|
+
member: "member";
|
|
367
372
|
}>;
|
|
368
373
|
period: z.ZodEnum<{
|
|
369
|
-
lifetime: "lifetime";
|
|
370
374
|
day: "day";
|
|
375
|
+
lifetime: "lifetime";
|
|
371
376
|
}>;
|
|
372
377
|
limit: z.ZodNumber;
|
|
373
378
|
cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
@@ -543,6 +548,11 @@ declare const questCatalogSchema: z.ZodObject<{
|
|
|
543
548
|
discord: "discord";
|
|
544
549
|
}>>>;
|
|
545
550
|
fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
551
|
+
kind: z.ZodLiteral<"point-ledger">;
|
|
552
|
+
default: z.ZodString;
|
|
553
|
+
label: z.ZodString;
|
|
554
|
+
description: z.ZodOptional<z.ZodString>;
|
|
555
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
546
556
|
kind: z.ZodLiteral<"datetime">;
|
|
547
557
|
default: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<string, string>>;
|
|
548
558
|
label: z.ZodString;
|
|
@@ -675,12 +685,12 @@ declare const questCatalogSchema: z.ZodObject<{
|
|
|
675
685
|
budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
676
686
|
id: z.ZodString;
|
|
677
687
|
scope: z.ZodEnum<{
|
|
678
|
-
member: "member";
|
|
679
688
|
project: "project";
|
|
689
|
+
member: "member";
|
|
680
690
|
}>;
|
|
681
691
|
period: z.ZodEnum<{
|
|
682
|
-
lifetime: "lifetime";
|
|
683
692
|
day: "day";
|
|
693
|
+
lifetime: "lifetime";
|
|
684
694
|
}>;
|
|
685
695
|
limit: z.ZodNumber;
|
|
686
696
|
cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
@@ -818,6 +828,11 @@ declare const questCatalogSchema: z.ZodObject<{
|
|
|
818
828
|
discord: "discord";
|
|
819
829
|
}>>>;
|
|
820
830
|
fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
831
|
+
kind: z.ZodLiteral<"point-ledger">;
|
|
832
|
+
default: z.ZodString;
|
|
833
|
+
label: z.ZodString;
|
|
834
|
+
description: z.ZodOptional<z.ZodString>;
|
|
835
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
821
836
|
kind: z.ZodLiteral<"datetime">;
|
|
822
837
|
default: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<string, string>>;
|
|
823
838
|
label: z.ZodString;
|
|
@@ -950,12 +965,12 @@ declare const questCatalogSchema: z.ZodObject<{
|
|
|
950
965
|
budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
951
966
|
id: z.ZodString;
|
|
952
967
|
scope: z.ZodEnum<{
|
|
953
|
-
member: "member";
|
|
954
968
|
project: "project";
|
|
969
|
+
member: "member";
|
|
955
970
|
}>;
|
|
956
971
|
period: z.ZodEnum<{
|
|
957
|
-
lifetime: "lifetime";
|
|
958
972
|
day: "day";
|
|
973
|
+
lifetime: "lifetime";
|
|
959
974
|
}>;
|
|
960
975
|
limit: z.ZodNumber;
|
|
961
976
|
cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
@@ -1046,7 +1061,7 @@ declare const questCatalogSchema: z.ZodObject<{
|
|
|
1046
1061
|
createdAt: z.ZodNumber;
|
|
1047
1062
|
}, z.core.$strip>, z.ZodTransform<{
|
|
1048
1063
|
quest: string;
|
|
1049
|
-
runtimeVersion:
|
|
1064
|
+
runtimeVersion: 2 | 1;
|
|
1050
1065
|
title: string;
|
|
1051
1066
|
presentation: {
|
|
1052
1067
|
quiz?: {
|
|
@@ -1070,6 +1085,11 @@ declare const questCatalogSchema: z.ZodObject<{
|
|
|
1070
1085
|
};
|
|
1071
1086
|
integrations: "discord"[];
|
|
1072
1087
|
fields: Record<string, {
|
|
1088
|
+
kind: "point-ledger";
|
|
1089
|
+
default: string;
|
|
1090
|
+
label: string;
|
|
1091
|
+
description?: string | undefined;
|
|
1092
|
+
} | {
|
|
1073
1093
|
kind: "datetime";
|
|
1074
1094
|
default: string;
|
|
1075
1095
|
label: string;
|
|
@@ -1188,8 +1208,8 @@ declare const questCatalogSchema: z.ZodObject<{
|
|
|
1188
1208
|
visibility: "visible" | "hidden";
|
|
1189
1209
|
budgets: {
|
|
1190
1210
|
id: string;
|
|
1191
|
-
scope: "
|
|
1192
|
-
period: "
|
|
1211
|
+
scope: "project" | "member";
|
|
1212
|
+
period: "day" | "lifetime";
|
|
1193
1213
|
limit: number;
|
|
1194
1214
|
cost: number | {
|
|
1195
1215
|
balance: string;
|
|
@@ -1263,9 +1283,9 @@ declare const questCatalogSchema: z.ZodObject<{
|
|
|
1263
1283
|
createdAt: number;
|
|
1264
1284
|
}>>]>>>;
|
|
1265
1285
|
supportedInteractions: z.ZodArray<z.ZodEnum<{
|
|
1286
|
+
staff: "staff";
|
|
1266
1287
|
quiz: "quiz";
|
|
1267
1288
|
photo: "photo";
|
|
1268
|
-
staff: "staff";
|
|
1269
1289
|
automatic: "automatic";
|
|
1270
1290
|
claim: "claim";
|
|
1271
1291
|
}>>;
|
|
@@ -1287,9 +1307,9 @@ declare const catalogDeploymentSchema: z.ZodObject<{
|
|
|
1287
1307
|
title: z.ZodString;
|
|
1288
1308
|
}, z.core.$strict>>>;
|
|
1289
1309
|
supportedInteractions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1310
|
+
staff: "staff";
|
|
1290
1311
|
quiz: "quiz";
|
|
1291
1312
|
photo: "photo";
|
|
1292
|
-
staff: "staff";
|
|
1293
1313
|
automatic: "automatic";
|
|
1294
1314
|
claim: "claim";
|
|
1295
1315
|
}>>>;
|
|
@@ -1328,6 +1348,11 @@ declare const catalogDeploymentPreviewSchema: z.ZodObject<{
|
|
|
1328
1348
|
discord: "discord";
|
|
1329
1349
|
}>>>;
|
|
1330
1350
|
fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1351
|
+
kind: z.ZodLiteral<"point-ledger">;
|
|
1352
|
+
default: z.ZodString;
|
|
1353
|
+
label: z.ZodString;
|
|
1354
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1355
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1331
1356
|
kind: z.ZodLiteral<"datetime">;
|
|
1332
1357
|
default: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<string, string>>;
|
|
1333
1358
|
label: z.ZodString;
|
|
@@ -1460,12 +1485,12 @@ declare const catalogDeploymentPreviewSchema: z.ZodObject<{
|
|
|
1460
1485
|
budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1461
1486
|
id: z.ZodString;
|
|
1462
1487
|
scope: z.ZodEnum<{
|
|
1463
|
-
member: "member";
|
|
1464
1488
|
project: "project";
|
|
1489
|
+
member: "member";
|
|
1465
1490
|
}>;
|
|
1466
1491
|
period: z.ZodEnum<{
|
|
1467
|
-
lifetime: "lifetime";
|
|
1468
1492
|
day: "day";
|
|
1493
|
+
lifetime: "lifetime";
|
|
1469
1494
|
}>;
|
|
1470
1495
|
limit: z.ZodNumber;
|
|
1471
1496
|
cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
@@ -1487,9 +1512,9 @@ declare const catalogDeploymentPreviewSchema: z.ZodObject<{
|
|
|
1487
1512
|
title: z.ZodString;
|
|
1488
1513
|
}, z.core.$strict>>;
|
|
1489
1514
|
supportedInteractions: z.ZodArray<z.ZodEnum<{
|
|
1515
|
+
staff: "staff";
|
|
1490
1516
|
quiz: "quiz";
|
|
1491
1517
|
photo: "photo";
|
|
1492
|
-
staff: "staff";
|
|
1493
1518
|
automatic: "automatic";
|
|
1494
1519
|
claim: "claim";
|
|
1495
1520
|
}>>;
|
|
@@ -1555,10 +1580,10 @@ declare const questViewSchema: z.ZodObject<{
|
|
|
1555
1580
|
}, z.core.$strict>>;
|
|
1556
1581
|
}, z.core.$strict>>;
|
|
1557
1582
|
connections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
1583
|
+
discord: "discord";
|
|
1558
1584
|
google: "google";
|
|
1559
1585
|
apple: "apple";
|
|
1560
1586
|
x: "x";
|
|
1561
|
-
discord: "discord";
|
|
1562
1587
|
}>>>;
|
|
1563
1588
|
trigger: z.ZodUnion<readonly [z.ZodObject<{
|
|
1564
1589
|
kind: z.ZodLiteral<"manual">;
|
|
@@ -1640,11 +1665,11 @@ declare const questViewSchema: z.ZodObject<{
|
|
|
1640
1665
|
}, Record<string, string>>>;
|
|
1641
1666
|
}, z.core.$strict>>;
|
|
1642
1667
|
status: z.ZodEnum<{
|
|
1643
|
-
"needs-review": "needs-review";
|
|
1644
1668
|
queued: "queued";
|
|
1645
1669
|
evaluating: "evaluating";
|
|
1646
1670
|
accepted: "accepted";
|
|
1647
1671
|
rejected: "rejected";
|
|
1672
|
+
"needs-review": "needs-review";
|
|
1648
1673
|
failed: "failed";
|
|
1649
1674
|
}>;
|
|
1650
1675
|
reason: z.ZodNullable<z.ZodString>;
|
|
@@ -1682,9 +1707,9 @@ declare const questViewSchema: z.ZodObject<{
|
|
|
1682
1707
|
}, z.core.$strip>>;
|
|
1683
1708
|
release: z.ZodString;
|
|
1684
1709
|
interaction: z.ZodEnum<{
|
|
1710
|
+
staff: "staff";
|
|
1685
1711
|
quiz: "quiz";
|
|
1686
1712
|
photo: "photo";
|
|
1687
|
-
staff: "staff";
|
|
1688
1713
|
automatic: "automatic";
|
|
1689
1714
|
claim: "claim";
|
|
1690
1715
|
}>;
|
|
@@ -1724,10 +1749,10 @@ declare const collectionViewSchema: z.ZodObject<{
|
|
|
1724
1749
|
}, z.core.$strict>>;
|
|
1725
1750
|
}, z.core.$strict>>;
|
|
1726
1751
|
connections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
1752
|
+
discord: "discord";
|
|
1727
1753
|
google: "google";
|
|
1728
1754
|
apple: "apple";
|
|
1729
1755
|
x: "x";
|
|
1730
|
-
discord: "discord";
|
|
1731
1756
|
}>>>;
|
|
1732
1757
|
trigger: z.ZodUnion<readonly [z.ZodObject<{
|
|
1733
1758
|
kind: z.ZodLiteral<"manual">;
|
|
@@ -1809,11 +1834,11 @@ declare const collectionViewSchema: z.ZodObject<{
|
|
|
1809
1834
|
}, Record<string, string>>>;
|
|
1810
1835
|
}, z.core.$strict>>;
|
|
1811
1836
|
status: z.ZodEnum<{
|
|
1812
|
-
"needs-review": "needs-review";
|
|
1813
1837
|
queued: "queued";
|
|
1814
1838
|
evaluating: "evaluating";
|
|
1815
1839
|
accepted: "accepted";
|
|
1816
1840
|
rejected: "rejected";
|
|
1841
|
+
"needs-review": "needs-review";
|
|
1817
1842
|
failed: "failed";
|
|
1818
1843
|
}>;
|
|
1819
1844
|
reason: z.ZodNullable<z.ZodString>;
|
|
@@ -1851,9 +1876,9 @@ declare const collectionViewSchema: z.ZodObject<{
|
|
|
1851
1876
|
}, z.core.$strip>>;
|
|
1852
1877
|
release: z.ZodString;
|
|
1853
1878
|
interaction: z.ZodEnum<{
|
|
1879
|
+
staff: "staff";
|
|
1854
1880
|
quiz: "quiz";
|
|
1855
1881
|
photo: "photo";
|
|
1856
|
-
staff: "staff";
|
|
1857
1882
|
automatic: "automatic";
|
|
1858
1883
|
claim: "claim";
|
|
1859
1884
|
}>;
|
|
@@ -1893,10 +1918,10 @@ declare const questExperienceSchema: z.ZodObject<{
|
|
|
1893
1918
|
}, z.core.$strict>>;
|
|
1894
1919
|
}, z.core.$strict>>;
|
|
1895
1920
|
connections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
1921
|
+
discord: "discord";
|
|
1896
1922
|
google: "google";
|
|
1897
1923
|
apple: "apple";
|
|
1898
1924
|
x: "x";
|
|
1899
|
-
discord: "discord";
|
|
1900
1925
|
}>>>;
|
|
1901
1926
|
trigger: z.ZodUnion<readonly [z.ZodObject<{
|
|
1902
1927
|
kind: z.ZodLiteral<"manual">;
|
|
@@ -1978,11 +2003,11 @@ declare const questExperienceSchema: z.ZodObject<{
|
|
|
1978
2003
|
}, Record<string, string>>>;
|
|
1979
2004
|
}, z.core.$strict>>;
|
|
1980
2005
|
status: z.ZodEnum<{
|
|
1981
|
-
"needs-review": "needs-review";
|
|
1982
2006
|
queued: "queued";
|
|
1983
2007
|
evaluating: "evaluating";
|
|
1984
2008
|
accepted: "accepted";
|
|
1985
2009
|
rejected: "rejected";
|
|
2010
|
+
"needs-review": "needs-review";
|
|
1986
2011
|
failed: "failed";
|
|
1987
2012
|
}>;
|
|
1988
2013
|
reason: z.ZodNullable<z.ZodString>;
|
|
@@ -2020,9 +2045,9 @@ declare const questExperienceSchema: z.ZodObject<{
|
|
|
2020
2045
|
}, z.core.$strip>>;
|
|
2021
2046
|
release: z.ZodString;
|
|
2022
2047
|
interaction: z.ZodEnum<{
|
|
2048
|
+
staff: "staff";
|
|
2023
2049
|
quiz: "quiz";
|
|
2024
2050
|
photo: "photo";
|
|
2025
|
-
staff: "staff";
|
|
2026
2051
|
automatic: "automatic";
|
|
2027
2052
|
claim: "claim";
|
|
2028
2053
|
}>;
|
|
@@ -2062,10 +2087,10 @@ declare const questExperienceSchema: z.ZodObject<{
|
|
|
2062
2087
|
}, z.core.$strict>>;
|
|
2063
2088
|
}, z.core.$strict>>;
|
|
2064
2089
|
connections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
2090
|
+
discord: "discord";
|
|
2065
2091
|
google: "google";
|
|
2066
2092
|
apple: "apple";
|
|
2067
2093
|
x: "x";
|
|
2068
|
-
discord: "discord";
|
|
2069
2094
|
}>>>;
|
|
2070
2095
|
trigger: z.ZodUnion<readonly [z.ZodObject<{
|
|
2071
2096
|
kind: z.ZodLiteral<"manual">;
|
|
@@ -2147,11 +2172,11 @@ declare const questExperienceSchema: z.ZodObject<{
|
|
|
2147
2172
|
}, Record<string, string>>>;
|
|
2148
2173
|
}, z.core.$strict>>;
|
|
2149
2174
|
status: z.ZodEnum<{
|
|
2150
|
-
"needs-review": "needs-review";
|
|
2151
2175
|
queued: "queued";
|
|
2152
2176
|
evaluating: "evaluating";
|
|
2153
2177
|
accepted: "accepted";
|
|
2154
2178
|
rejected: "rejected";
|
|
2179
|
+
"needs-review": "needs-review";
|
|
2155
2180
|
failed: "failed";
|
|
2156
2181
|
}>;
|
|
2157
2182
|
reason: z.ZodNullable<z.ZodString>;
|
|
@@ -2189,9 +2214,9 @@ declare const questExperienceSchema: z.ZodObject<{
|
|
|
2189
2214
|
}, z.core.$strip>>;
|
|
2190
2215
|
release: z.ZodString;
|
|
2191
2216
|
interaction: z.ZodEnum<{
|
|
2217
|
+
staff: "staff";
|
|
2192
2218
|
quiz: "quiz";
|
|
2193
2219
|
photo: "photo";
|
|
2194
|
-
staff: "staff";
|
|
2195
2220
|
automatic: "automatic";
|
|
2196
2221
|
claim: "claim";
|
|
2197
2222
|
}>;
|
|
@@ -2307,6 +2332,11 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
|
|
|
2307
2332
|
discord: "discord";
|
|
2308
2333
|
}>>>;
|
|
2309
2334
|
fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2335
|
+
kind: z.ZodLiteral<"point-ledger">;
|
|
2336
|
+
default: z.ZodString;
|
|
2337
|
+
label: z.ZodString;
|
|
2338
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2339
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2310
2340
|
kind: z.ZodLiteral<"datetime">;
|
|
2311
2341
|
default: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<string, string>>;
|
|
2312
2342
|
label: z.ZodString;
|
|
@@ -2439,12 +2469,12 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
|
|
|
2439
2469
|
budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2440
2470
|
id: z.ZodString;
|
|
2441
2471
|
scope: z.ZodEnum<{
|
|
2442
|
-
member: "member";
|
|
2443
2472
|
project: "project";
|
|
2473
|
+
member: "member";
|
|
2444
2474
|
}>;
|
|
2445
2475
|
period: z.ZodEnum<{
|
|
2446
|
-
lifetime: "lifetime";
|
|
2447
2476
|
day: "day";
|
|
2477
|
+
lifetime: "lifetime";
|
|
2448
2478
|
}>;
|
|
2449
2479
|
limit: z.ZodNumber;
|
|
2450
2480
|
cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
@@ -2535,7 +2565,7 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
|
|
|
2535
2565
|
createdAt: z.ZodNumber;
|
|
2536
2566
|
}, z.core.$strip>, z.ZodTransform<{
|
|
2537
2567
|
quest: string;
|
|
2538
|
-
runtimeVersion:
|
|
2568
|
+
runtimeVersion: 2 | 1;
|
|
2539
2569
|
title: string;
|
|
2540
2570
|
presentation: {
|
|
2541
2571
|
quiz?: {
|
|
@@ -2559,6 +2589,11 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
|
|
|
2559
2589
|
};
|
|
2560
2590
|
integrations: "discord"[];
|
|
2561
2591
|
fields: Record<string, {
|
|
2592
|
+
kind: "point-ledger";
|
|
2593
|
+
default: string;
|
|
2594
|
+
label: string;
|
|
2595
|
+
description?: string | undefined;
|
|
2596
|
+
} | {
|
|
2562
2597
|
kind: "datetime";
|
|
2563
2598
|
default: string;
|
|
2564
2599
|
label: string;
|
|
@@ -2677,8 +2712,8 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
|
|
|
2677
2712
|
visibility: "visible" | "hidden";
|
|
2678
2713
|
budgets: {
|
|
2679
2714
|
id: string;
|
|
2680
|
-
scope: "
|
|
2681
|
-
period: "
|
|
2715
|
+
scope: "project" | "member";
|
|
2716
|
+
period: "day" | "lifetime";
|
|
2682
2717
|
limit: number;
|
|
2683
2718
|
cost: number | {
|
|
2684
2719
|
balance: string;
|
|
@@ -2789,6 +2824,14 @@ type QuestController = (ActiveController & {
|
|
|
2789
2824
|
submit(): Promise<QuestActionResult>;
|
|
2790
2825
|
});
|
|
2791
2826
|
|
|
2827
|
+
/** The ID is the accounting key. Names can change and need not be unique. */
|
|
2828
|
+
declare const pointLedgerSchema: z.ZodObject<{
|
|
2829
|
+
id: z.ZodString;
|
|
2830
|
+
name: z.ZodString;
|
|
2831
|
+
description: z.ZodDefault<z.ZodString>;
|
|
2832
|
+
}, z.core.$strict>;
|
|
2833
|
+
type PointLedger = z.infer<typeof pointLedgerSchema>;
|
|
2834
|
+
|
|
2792
2835
|
declare const rewardDeliverySchema: z.ZodObject<{
|
|
2793
2836
|
id: z.ZodString;
|
|
2794
2837
|
quest: z.ZodString;
|
|
@@ -2982,9 +3025,9 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
|
|
|
2982
3025
|
}>;
|
|
2983
3026
|
}, z.core.$strip>>>;
|
|
2984
3027
|
supportedInteractions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
3028
|
+
staff: "staff";
|
|
2985
3029
|
quiz: "quiz";
|
|
2986
3030
|
photo: "photo";
|
|
2987
|
-
staff: "staff";
|
|
2988
3031
|
automatic: "automatic";
|
|
2989
3032
|
claim: "claim";
|
|
2990
3033
|
}>>>;
|
|
@@ -3159,9 +3202,9 @@ declare const projectDeploymentSchema: z.ZodObject<{
|
|
|
3159
3202
|
}>;
|
|
3160
3203
|
}, z.core.$strip>>>;
|
|
3161
3204
|
supportedInteractions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
3205
|
+
staff: "staff";
|
|
3162
3206
|
quiz: "quiz";
|
|
3163
3207
|
photo: "photo";
|
|
3164
|
-
staff: "staff";
|
|
3165
3208
|
automatic: "automatic";
|
|
3166
3209
|
claim: "claim";
|
|
3167
3210
|
}>>>;
|
|
@@ -3371,6 +3414,11 @@ declare const deploymentPreviewSchema: z.ZodObject<{
|
|
|
3371
3414
|
discord: "discord";
|
|
3372
3415
|
}>>>;
|
|
3373
3416
|
fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3417
|
+
kind: z.ZodLiteral<"point-ledger">;
|
|
3418
|
+
default: z.ZodString;
|
|
3419
|
+
label: z.ZodString;
|
|
3420
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3421
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3374
3422
|
kind: z.ZodLiteral<"datetime">;
|
|
3375
3423
|
default: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<string, string>>;
|
|
3376
3424
|
label: z.ZodString;
|
|
@@ -3503,12 +3551,12 @@ declare const deploymentPreviewSchema: z.ZodObject<{
|
|
|
3503
3551
|
budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
3504
3552
|
id: z.ZodString;
|
|
3505
3553
|
scope: z.ZodEnum<{
|
|
3506
|
-
member: "member";
|
|
3507
3554
|
project: "project";
|
|
3555
|
+
member: "member";
|
|
3508
3556
|
}>;
|
|
3509
3557
|
period: z.ZodEnum<{
|
|
3510
|
-
lifetime: "lifetime";
|
|
3511
3558
|
day: "day";
|
|
3559
|
+
lifetime: "lifetime";
|
|
3512
3560
|
}>;
|
|
3513
3561
|
limit: z.ZodNumber;
|
|
3514
3562
|
cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
@@ -3599,7 +3647,7 @@ declare const deploymentPreviewSchema: z.ZodObject<{
|
|
|
3599
3647
|
createdAt: z.ZodNumber;
|
|
3600
3648
|
}, z.core.$strip>, z.ZodTransform<{
|
|
3601
3649
|
quest: string;
|
|
3602
|
-
runtimeVersion:
|
|
3650
|
+
runtimeVersion: 2 | 1;
|
|
3603
3651
|
title: string;
|
|
3604
3652
|
presentation: {
|
|
3605
3653
|
quiz?: {
|
|
@@ -3623,6 +3671,11 @@ declare const deploymentPreviewSchema: z.ZodObject<{
|
|
|
3623
3671
|
};
|
|
3624
3672
|
integrations: "discord"[];
|
|
3625
3673
|
fields: Record<string, {
|
|
3674
|
+
kind: "point-ledger";
|
|
3675
|
+
default: string;
|
|
3676
|
+
label: string;
|
|
3677
|
+
description?: string | undefined;
|
|
3678
|
+
} | {
|
|
3626
3679
|
kind: "datetime";
|
|
3627
3680
|
default: string;
|
|
3628
3681
|
label: string;
|
|
@@ -3741,8 +3794,8 @@ declare const deploymentPreviewSchema: z.ZodObject<{
|
|
|
3741
3794
|
visibility: "visible" | "hidden";
|
|
3742
3795
|
budgets: {
|
|
3743
3796
|
id: string;
|
|
3744
|
-
scope: "
|
|
3745
|
-
period: "
|
|
3797
|
+
scope: "project" | "member";
|
|
3798
|
+
period: "day" | "lifetime";
|
|
3746
3799
|
limit: number;
|
|
3747
3800
|
cost: number | {
|
|
3748
3801
|
balance: string;
|
|
@@ -3847,6 +3900,11 @@ declare const deploymentPreviewSchema: z.ZodObject<{
|
|
|
3847
3900
|
discord: "discord";
|
|
3848
3901
|
}>>>;
|
|
3849
3902
|
fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3903
|
+
kind: z.ZodLiteral<"point-ledger">;
|
|
3904
|
+
default: z.ZodString;
|
|
3905
|
+
label: z.ZodString;
|
|
3906
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3907
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3850
3908
|
kind: z.ZodLiteral<"datetime">;
|
|
3851
3909
|
default: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<string, string>>;
|
|
3852
3910
|
label: z.ZodString;
|
|
@@ -3979,12 +4037,12 @@ declare const deploymentPreviewSchema: z.ZodObject<{
|
|
|
3979
4037
|
budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
3980
4038
|
id: z.ZodString;
|
|
3981
4039
|
scope: z.ZodEnum<{
|
|
3982
|
-
member: "member";
|
|
3983
4040
|
project: "project";
|
|
4041
|
+
member: "member";
|
|
3984
4042
|
}>;
|
|
3985
4043
|
period: z.ZodEnum<{
|
|
3986
|
-
lifetime: "lifetime";
|
|
3987
4044
|
day: "day";
|
|
4045
|
+
lifetime: "lifetime";
|
|
3988
4046
|
}>;
|
|
3989
4047
|
limit: z.ZodNumber;
|
|
3990
4048
|
cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
@@ -4007,9 +4065,9 @@ declare const deploymentPreviewSchema: z.ZodObject<{
|
|
|
4007
4065
|
quests: z.ZodArray<z.ZodString>;
|
|
4008
4066
|
}, z.core.$strict>>;
|
|
4009
4067
|
supportedInteractions: z.ZodArray<z.ZodEnum<{
|
|
4068
|
+
staff: "staff";
|
|
4010
4069
|
quiz: "quiz";
|
|
4011
4070
|
photo: "photo";
|
|
4012
|
-
staff: "staff";
|
|
4013
4071
|
automatic: "automatic";
|
|
4014
4072
|
claim: "claim";
|
|
4015
4073
|
}>>;
|
|
@@ -4287,6 +4345,11 @@ declare const deploymentResultSchema: z.ZodObject<{
|
|
|
4287
4345
|
discord: "discord";
|
|
4288
4346
|
}>>>;
|
|
4289
4347
|
fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4348
|
+
kind: z.ZodLiteral<"point-ledger">;
|
|
4349
|
+
default: z.ZodString;
|
|
4350
|
+
label: z.ZodString;
|
|
4351
|
+
description: z.ZodOptional<z.ZodString>;
|
|
4352
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
4290
4353
|
kind: z.ZodLiteral<"datetime">;
|
|
4291
4354
|
default: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<string, string>>;
|
|
4292
4355
|
label: z.ZodString;
|
|
@@ -4419,12 +4482,12 @@ declare const deploymentResultSchema: z.ZodObject<{
|
|
|
4419
4482
|
budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
4420
4483
|
id: z.ZodString;
|
|
4421
4484
|
scope: z.ZodEnum<{
|
|
4422
|
-
member: "member";
|
|
4423
4485
|
project: "project";
|
|
4486
|
+
member: "member";
|
|
4424
4487
|
}>;
|
|
4425
4488
|
period: z.ZodEnum<{
|
|
4426
|
-
lifetime: "lifetime";
|
|
4427
4489
|
day: "day";
|
|
4490
|
+
lifetime: "lifetime";
|
|
4428
4491
|
}>;
|
|
4429
4492
|
limit: z.ZodNumber;
|
|
4430
4493
|
cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
@@ -4515,7 +4578,7 @@ declare const deploymentResultSchema: z.ZodObject<{
|
|
|
4515
4578
|
createdAt: z.ZodNumber;
|
|
4516
4579
|
}, z.core.$strip>, z.ZodTransform<{
|
|
4517
4580
|
quest: string;
|
|
4518
|
-
runtimeVersion:
|
|
4581
|
+
runtimeVersion: 2 | 1;
|
|
4519
4582
|
title: string;
|
|
4520
4583
|
presentation: {
|
|
4521
4584
|
quiz?: {
|
|
@@ -4539,6 +4602,11 @@ declare const deploymentResultSchema: z.ZodObject<{
|
|
|
4539
4602
|
};
|
|
4540
4603
|
integrations: "discord"[];
|
|
4541
4604
|
fields: Record<string, {
|
|
4605
|
+
kind: "point-ledger";
|
|
4606
|
+
default: string;
|
|
4607
|
+
label: string;
|
|
4608
|
+
description?: string | undefined;
|
|
4609
|
+
} | {
|
|
4542
4610
|
kind: "datetime";
|
|
4543
4611
|
default: string;
|
|
4544
4612
|
label: string;
|
|
@@ -4657,8 +4725,8 @@ declare const deploymentResultSchema: z.ZodObject<{
|
|
|
4657
4725
|
visibility: "visible" | "hidden";
|
|
4658
4726
|
budgets: {
|
|
4659
4727
|
id: string;
|
|
4660
|
-
scope: "
|
|
4661
|
-
period: "
|
|
4728
|
+
scope: "project" | "member";
|
|
4729
|
+
period: "day" | "lifetime";
|
|
4662
4730
|
limit: number;
|
|
4663
4731
|
cost: number | {
|
|
4664
4732
|
balance: string;
|
|
@@ -4763,6 +4831,11 @@ declare const deploymentResultSchema: z.ZodObject<{
|
|
|
4763
4831
|
discord: "discord";
|
|
4764
4832
|
}>>>;
|
|
4765
4833
|
fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4834
|
+
kind: z.ZodLiteral<"point-ledger">;
|
|
4835
|
+
default: z.ZodString;
|
|
4836
|
+
label: z.ZodString;
|
|
4837
|
+
description: z.ZodOptional<z.ZodString>;
|
|
4838
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
4766
4839
|
kind: z.ZodLiteral<"datetime">;
|
|
4767
4840
|
default: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<string, string>>;
|
|
4768
4841
|
label: z.ZodString;
|
|
@@ -4895,12 +4968,12 @@ declare const deploymentResultSchema: z.ZodObject<{
|
|
|
4895
4968
|
budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
4896
4969
|
id: z.ZodString;
|
|
4897
4970
|
scope: z.ZodEnum<{
|
|
4898
|
-
member: "member";
|
|
4899
4971
|
project: "project";
|
|
4972
|
+
member: "member";
|
|
4900
4973
|
}>;
|
|
4901
4974
|
period: z.ZodEnum<{
|
|
4902
|
-
lifetime: "lifetime";
|
|
4903
4975
|
day: "day";
|
|
4976
|
+
lifetime: "lifetime";
|
|
4904
4977
|
}>;
|
|
4905
4978
|
limit: z.ZodNumber;
|
|
4906
4979
|
cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
@@ -4923,9 +4996,9 @@ declare const deploymentResultSchema: z.ZodObject<{
|
|
|
4923
4996
|
quests: z.ZodArray<z.ZodString>;
|
|
4924
4997
|
}, z.core.$strict>>;
|
|
4925
4998
|
supportedInteractions: z.ZodArray<z.ZodEnum<{
|
|
4999
|
+
staff: "staff";
|
|
4926
5000
|
quiz: "quiz";
|
|
4927
5001
|
photo: "photo";
|
|
4928
|
-
staff: "staff";
|
|
4929
5002
|
automatic: "automatic";
|
|
4930
5003
|
claim: "claim";
|
|
4931
5004
|
}>>;
|
|
@@ -5545,7 +5618,7 @@ declare function createRelayClient(options: {
|
|
|
5545
5618
|
} | undefined;
|
|
5546
5619
|
} | undefined;
|
|
5547
5620
|
};
|
|
5548
|
-
connections: ("
|
|
5621
|
+
connections: ("discord" | "google" | "apple" | "x")[];
|
|
5549
5622
|
trigger: {
|
|
5550
5623
|
kind: "manual";
|
|
5551
5624
|
input: "quiz" | "photo" | "none";
|
|
@@ -5604,7 +5677,7 @@ declare function createRelayClient(options: {
|
|
|
5604
5677
|
quest: string;
|
|
5605
5678
|
member: string;
|
|
5606
5679
|
evidence: string | null;
|
|
5607
|
-
status: "
|
|
5680
|
+
status: "queued" | "evaluating" | "accepted" | "rejected" | "needs-review" | "failed";
|
|
5608
5681
|
reason: string | null;
|
|
5609
5682
|
retries: number;
|
|
5610
5683
|
generation: number;
|
|
@@ -5646,7 +5719,7 @@ declare function createRelayClient(options: {
|
|
|
5646
5719
|
} | undefined;
|
|
5647
5720
|
} | null;
|
|
5648
5721
|
release: string;
|
|
5649
|
-
interaction: "
|
|
5722
|
+
interaction: "staff" | "quiz" | "photo" | "automatic" | "claim";
|
|
5650
5723
|
lifecycle: "active" | "paused" | "archived";
|
|
5651
5724
|
rewards: {
|
|
5652
5725
|
label: string;
|
|
@@ -5658,7 +5731,7 @@ declare function createRelayClient(options: {
|
|
|
5658
5731
|
quest: string;
|
|
5659
5732
|
member: string;
|
|
5660
5733
|
evidence: string | null;
|
|
5661
|
-
status: "
|
|
5734
|
+
status: "queued" | "evaluating" | "accepted" | "rejected" | "needs-review" | "failed";
|
|
5662
5735
|
reason: string | null;
|
|
5663
5736
|
retries: number;
|
|
5664
5737
|
generation: number;
|
|
@@ -5724,7 +5797,7 @@ declare function createRelayClient(options: {
|
|
|
5724
5797
|
} | undefined;
|
|
5725
5798
|
} | undefined;
|
|
5726
5799
|
};
|
|
5727
|
-
connections: ("
|
|
5800
|
+
connections: ("discord" | "google" | "apple" | "x")[];
|
|
5728
5801
|
trigger: {
|
|
5729
5802
|
kind: "manual";
|
|
5730
5803
|
input: "quiz" | "photo" | "none";
|
|
@@ -5783,7 +5856,7 @@ declare function createRelayClient(options: {
|
|
|
5783
5856
|
quest: string;
|
|
5784
5857
|
member: string;
|
|
5785
5858
|
evidence: string | null;
|
|
5786
|
-
status: "
|
|
5859
|
+
status: "queued" | "evaluating" | "accepted" | "rejected" | "needs-review" | "failed";
|
|
5787
5860
|
reason: string | null;
|
|
5788
5861
|
retries: number;
|
|
5789
5862
|
generation: number;
|
|
@@ -5825,7 +5898,7 @@ declare function createRelayClient(options: {
|
|
|
5825
5898
|
} | undefined;
|
|
5826
5899
|
} | null;
|
|
5827
5900
|
release: string;
|
|
5828
|
-
interaction: "
|
|
5901
|
+
interaction: "staff" | "quiz" | "photo" | "automatic" | "claim";
|
|
5829
5902
|
lifecycle: "active" | "paused" | "archived";
|
|
5830
5903
|
rewards: {
|
|
5831
5904
|
label: string;
|
|
@@ -5857,7 +5930,7 @@ declare function createRelayClient(options: {
|
|
|
5857
5930
|
} | undefined;
|
|
5858
5931
|
} | undefined;
|
|
5859
5932
|
};
|
|
5860
|
-
connections: ("
|
|
5933
|
+
connections: ("discord" | "google" | "apple" | "x")[];
|
|
5861
5934
|
trigger: {
|
|
5862
5935
|
kind: "manual";
|
|
5863
5936
|
input: "quiz" | "photo" | "none";
|
|
@@ -5916,7 +5989,7 @@ declare function createRelayClient(options: {
|
|
|
5916
5989
|
quest: string;
|
|
5917
5990
|
member: string;
|
|
5918
5991
|
evidence: string | null;
|
|
5919
|
-
status: "
|
|
5992
|
+
status: "queued" | "evaluating" | "accepted" | "rejected" | "needs-review" | "failed";
|
|
5920
5993
|
reason: string | null;
|
|
5921
5994
|
retries: number;
|
|
5922
5995
|
generation: number;
|
|
@@ -5958,7 +6031,7 @@ declare function createRelayClient(options: {
|
|
|
5958
6031
|
} | undefined;
|
|
5959
6032
|
} | null;
|
|
5960
6033
|
release: string;
|
|
5961
|
-
interaction: "
|
|
6034
|
+
interaction: "staff" | "quiz" | "photo" | "automatic" | "claim";
|
|
5962
6035
|
lifecycle: "active" | "paused" | "archived";
|
|
5963
6036
|
rewards: {
|
|
5964
6037
|
label: string;
|
|
@@ -5992,7 +6065,7 @@ declare function createRelayClient(options: {
|
|
|
5992
6065
|
} | undefined;
|
|
5993
6066
|
} | undefined;
|
|
5994
6067
|
};
|
|
5995
|
-
connections: ("
|
|
6068
|
+
connections: ("discord" | "google" | "apple" | "x")[];
|
|
5996
6069
|
trigger: {
|
|
5997
6070
|
kind: "manual";
|
|
5998
6071
|
input: "quiz" | "photo" | "none";
|
|
@@ -6051,7 +6124,7 @@ declare function createRelayClient(options: {
|
|
|
6051
6124
|
quest: string;
|
|
6052
6125
|
member: string;
|
|
6053
6126
|
evidence: string | null;
|
|
6054
|
-
status: "
|
|
6127
|
+
status: "queued" | "evaluating" | "accepted" | "rejected" | "needs-review" | "failed";
|
|
6055
6128
|
reason: string | null;
|
|
6056
6129
|
retries: number;
|
|
6057
6130
|
generation: number;
|
|
@@ -6093,7 +6166,7 @@ declare function createRelayClient(options: {
|
|
|
6093
6166
|
} | undefined;
|
|
6094
6167
|
} | null;
|
|
6095
6168
|
release: string;
|
|
6096
|
-
interaction: "
|
|
6169
|
+
interaction: "staff" | "quiz" | "photo" | "automatic" | "claim";
|
|
6097
6170
|
lifecycle: "active" | "paused" | "archived";
|
|
6098
6171
|
rewards: {
|
|
6099
6172
|
label: string;
|
|
@@ -6130,7 +6203,7 @@ declare function createRelayClient(options: {
|
|
|
6130
6203
|
auth: {
|
|
6131
6204
|
providers: () => Promise<{
|
|
6132
6205
|
providers: {
|
|
6133
|
-
provider: "
|
|
6206
|
+
provider: "discord" | "google" | "apple" | "x";
|
|
6134
6207
|
configured: boolean;
|
|
6135
6208
|
}[];
|
|
6136
6209
|
email: boolean;
|
|
@@ -6160,7 +6233,7 @@ declare function createRelayClient(options: {
|
|
|
6160
6233
|
expiresAt: number;
|
|
6161
6234
|
}>;
|
|
6162
6235
|
accounts: () => Promise<{
|
|
6163
|
-
provider: "
|
|
6236
|
+
provider: "discord" | "google" | "apple" | "x";
|
|
6164
6237
|
configured: boolean;
|
|
6165
6238
|
status: "disconnected" | "connected" | "reconnect";
|
|
6166
6239
|
subject: string | null;
|
|
@@ -6252,7 +6325,7 @@ declare function createRelayClient(options: {
|
|
|
6252
6325
|
quest: string;
|
|
6253
6326
|
member: string;
|
|
6254
6327
|
evidence: string | null;
|
|
6255
|
-
status: "
|
|
6328
|
+
status: "queued" | "evaluating" | "accepted" | "rejected" | "needs-review" | "failed";
|
|
6256
6329
|
reason: string | null;
|
|
6257
6330
|
retries: number;
|
|
6258
6331
|
generation: number;
|
|
@@ -6318,7 +6391,7 @@ declare function createRelayClient(options: {
|
|
|
6318
6391
|
} | undefined;
|
|
6319
6392
|
} | undefined;
|
|
6320
6393
|
};
|
|
6321
|
-
connections: ("
|
|
6394
|
+
connections: ("discord" | "google" | "apple" | "x")[];
|
|
6322
6395
|
trigger: {
|
|
6323
6396
|
kind: "manual";
|
|
6324
6397
|
input: "quiz" | "photo" | "none";
|
|
@@ -6377,7 +6450,7 @@ declare function createRelayClient(options: {
|
|
|
6377
6450
|
quest: string;
|
|
6378
6451
|
member: string;
|
|
6379
6452
|
evidence: string | null;
|
|
6380
|
-
status: "
|
|
6453
|
+
status: "queued" | "evaluating" | "accepted" | "rejected" | "needs-review" | "failed";
|
|
6381
6454
|
reason: string | null;
|
|
6382
6455
|
retries: number;
|
|
6383
6456
|
generation: number;
|
|
@@ -6523,7 +6596,7 @@ declare function createRelayClient(options: {
|
|
|
6523
6596
|
quest: string;
|
|
6524
6597
|
member: string;
|
|
6525
6598
|
evidence: string | null;
|
|
6526
|
-
status: "
|
|
6599
|
+
status: "queued" | "evaluating" | "accepted" | "rejected" | "needs-review" | "failed";
|
|
6527
6600
|
reason: string | null;
|
|
6528
6601
|
retries: number;
|
|
6529
6602
|
generation: number;
|
|
@@ -6582,7 +6655,7 @@ declare function createRelayClient(options: {
|
|
|
6582
6655
|
quest: string;
|
|
6583
6656
|
member: string;
|
|
6584
6657
|
evidence: string | null;
|
|
6585
|
-
status: "
|
|
6658
|
+
status: "queued" | "evaluating" | "accepted" | "rejected" | "needs-review" | "failed";
|
|
6586
6659
|
reason: string | null;
|
|
6587
6660
|
retries: number;
|
|
6588
6661
|
generation: number;
|
|
@@ -6657,7 +6730,7 @@ declare function createRelayClient(options: {
|
|
|
6657
6730
|
code: string;
|
|
6658
6731
|
definition: {
|
|
6659
6732
|
quest: string;
|
|
6660
|
-
runtimeVersion:
|
|
6733
|
+
runtimeVersion: 2 | 1;
|
|
6661
6734
|
title: string;
|
|
6662
6735
|
presentation: {
|
|
6663
6736
|
quiz?: {
|
|
@@ -6681,6 +6754,11 @@ declare function createRelayClient(options: {
|
|
|
6681
6754
|
};
|
|
6682
6755
|
integrations: "discord"[];
|
|
6683
6756
|
fields: Record<string, {
|
|
6757
|
+
kind: "point-ledger";
|
|
6758
|
+
default: string;
|
|
6759
|
+
label: string;
|
|
6760
|
+
description?: string | undefined;
|
|
6761
|
+
} | {
|
|
6684
6762
|
kind: "datetime";
|
|
6685
6763
|
default: string;
|
|
6686
6764
|
label: string;
|
|
@@ -6799,8 +6877,8 @@ declare function createRelayClient(options: {
|
|
|
6799
6877
|
visibility: "visible" | "hidden";
|
|
6800
6878
|
budgets: {
|
|
6801
6879
|
id: string;
|
|
6802
|
-
scope: "
|
|
6803
|
-
period: "
|
|
6880
|
+
scope: "project" | "member";
|
|
6881
|
+
period: "day" | "lifetime";
|
|
6804
6882
|
limit: number;
|
|
6805
6883
|
cost: number | {
|
|
6806
6884
|
balance: string;
|
|
@@ -6812,7 +6890,7 @@ declare function createRelayClient(options: {
|
|
|
6812
6890
|
code: string;
|
|
6813
6891
|
definition: {
|
|
6814
6892
|
quest: string;
|
|
6815
|
-
runtimeVersion:
|
|
6893
|
+
runtimeVersion: 2 | 1;
|
|
6816
6894
|
title: string;
|
|
6817
6895
|
presentation: {
|
|
6818
6896
|
quiz?: {
|
|
@@ -6836,6 +6914,11 @@ declare function createRelayClient(options: {
|
|
|
6836
6914
|
};
|
|
6837
6915
|
integrations: "discord"[];
|
|
6838
6916
|
fields: Record<string, {
|
|
6917
|
+
kind: "point-ledger";
|
|
6918
|
+
default: string;
|
|
6919
|
+
label: string;
|
|
6920
|
+
description?: string | undefined;
|
|
6921
|
+
} | {
|
|
6839
6922
|
kind: "datetime";
|
|
6840
6923
|
default: string;
|
|
6841
6924
|
label: string;
|
|
@@ -6954,8 +7037,8 @@ declare function createRelayClient(options: {
|
|
|
6954
7037
|
visibility: "visible" | "hidden";
|
|
6955
7038
|
budgets: {
|
|
6956
7039
|
id: string;
|
|
6957
|
-
scope: "
|
|
6958
|
-
period: "
|
|
7040
|
+
scope: "project" | "member";
|
|
7041
|
+
period: "day" | "lifetime";
|
|
6959
7042
|
limit: number;
|
|
6960
7043
|
cost: number | {
|
|
6961
7044
|
balance: string;
|
|
@@ -6966,7 +7049,7 @@ declare function createRelayClient(options: {
|
|
|
6966
7049
|
snapshot: () => Promise<{
|
|
6967
7050
|
releases: {
|
|
6968
7051
|
quest: string;
|
|
6969
|
-
runtimeVersion:
|
|
7052
|
+
runtimeVersion: 2 | 1;
|
|
6970
7053
|
title: string;
|
|
6971
7054
|
presentation: {
|
|
6972
7055
|
quiz?: {
|
|
@@ -6990,6 +7073,11 @@ declare function createRelayClient(options: {
|
|
|
6990
7073
|
};
|
|
6991
7074
|
integrations: "discord"[];
|
|
6992
7075
|
fields: Record<string, {
|
|
7076
|
+
kind: "point-ledger";
|
|
7077
|
+
default: string;
|
|
7078
|
+
label: string;
|
|
7079
|
+
description?: string | undefined;
|
|
7080
|
+
} | {
|
|
6993
7081
|
kind: "datetime";
|
|
6994
7082
|
default: string;
|
|
6995
7083
|
label: string;
|
|
@@ -7108,8 +7196,8 @@ declare function createRelayClient(options: {
|
|
|
7108
7196
|
visibility: "visible" | "hidden";
|
|
7109
7197
|
budgets: {
|
|
7110
7198
|
id: string;
|
|
7111
|
-
scope: "
|
|
7112
|
-
period: "
|
|
7199
|
+
scope: "project" | "member";
|
|
7200
|
+
period: "day" | "lifetime";
|
|
7113
7201
|
limit: number;
|
|
7114
7202
|
cost: number | {
|
|
7115
7203
|
balance: string;
|
|
@@ -7235,7 +7323,7 @@ declare function createRelayClient(options: {
|
|
|
7235
7323
|
quest: string;
|
|
7236
7324
|
member: string;
|
|
7237
7325
|
evidence: string | null;
|
|
7238
|
-
status: "
|
|
7326
|
+
status: "queued" | "evaluating" | "accepted" | "rejected" | "needs-review" | "failed";
|
|
7239
7327
|
reason: string | null;
|
|
7240
7328
|
retries: number;
|
|
7241
7329
|
generation: number;
|
|
@@ -7294,7 +7382,7 @@ declare function createRelayClient(options: {
|
|
|
7294
7382
|
}>;
|
|
7295
7383
|
publish: (release: ReleaseInput) => Promise<{
|
|
7296
7384
|
quest: string;
|
|
7297
|
-
runtimeVersion:
|
|
7385
|
+
runtimeVersion: 2 | 1;
|
|
7298
7386
|
title: string;
|
|
7299
7387
|
presentation: {
|
|
7300
7388
|
quiz?: {
|
|
@@ -7318,6 +7406,11 @@ declare function createRelayClient(options: {
|
|
|
7318
7406
|
};
|
|
7319
7407
|
integrations: "discord"[];
|
|
7320
7408
|
fields: Record<string, {
|
|
7409
|
+
kind: "point-ledger";
|
|
7410
|
+
default: string;
|
|
7411
|
+
label: string;
|
|
7412
|
+
description?: string | undefined;
|
|
7413
|
+
} | {
|
|
7321
7414
|
kind: "datetime";
|
|
7322
7415
|
default: string;
|
|
7323
7416
|
label: string;
|
|
@@ -7436,8 +7529,8 @@ declare function createRelayClient(options: {
|
|
|
7436
7529
|
visibility: "visible" | "hidden";
|
|
7437
7530
|
budgets: {
|
|
7438
7531
|
id: string;
|
|
7439
|
-
scope: "
|
|
7440
|
-
period: "
|
|
7532
|
+
scope: "project" | "member";
|
|
7533
|
+
period: "day" | "lifetime";
|
|
7441
7534
|
limit: number;
|
|
7442
7535
|
cost: number | {
|
|
7443
7536
|
balance: string;
|
|
@@ -7476,7 +7569,7 @@ declare function createRelayClient(options: {
|
|
|
7476
7569
|
}>;
|
|
7477
7570
|
publishBatch: (releases: ReleaseInput[]) => Promise<{
|
|
7478
7571
|
quest: string;
|
|
7479
|
-
runtimeVersion:
|
|
7572
|
+
runtimeVersion: 2 | 1;
|
|
7480
7573
|
title: string;
|
|
7481
7574
|
presentation: {
|
|
7482
7575
|
quiz?: {
|
|
@@ -7500,6 +7593,11 @@ declare function createRelayClient(options: {
|
|
|
7500
7593
|
};
|
|
7501
7594
|
integrations: "discord"[];
|
|
7502
7595
|
fields: Record<string, {
|
|
7596
|
+
kind: "point-ledger";
|
|
7597
|
+
default: string;
|
|
7598
|
+
label: string;
|
|
7599
|
+
description?: string | undefined;
|
|
7600
|
+
} | {
|
|
7503
7601
|
kind: "datetime";
|
|
7504
7602
|
default: string;
|
|
7505
7603
|
label: string;
|
|
@@ -7618,8 +7716,8 @@ declare function createRelayClient(options: {
|
|
|
7618
7716
|
visibility: "visible" | "hidden";
|
|
7619
7717
|
budgets: {
|
|
7620
7718
|
id: string;
|
|
7621
|
-
scope: "
|
|
7622
|
-
period: "
|
|
7719
|
+
scope: "project" | "member";
|
|
7720
|
+
period: "day" | "lifetime";
|
|
7623
7721
|
limit: number;
|
|
7624
7722
|
cost: number | {
|
|
7625
7723
|
balance: string;
|
|
@@ -7681,7 +7779,7 @@ declare function createRelayClient(options: {
|
|
|
7681
7779
|
} | undefined;
|
|
7682
7780
|
} | undefined;
|
|
7683
7781
|
};
|
|
7684
|
-
connections: ("
|
|
7782
|
+
connections: ("discord" | "google" | "apple" | "x")[];
|
|
7685
7783
|
trigger: {
|
|
7686
7784
|
kind: "manual";
|
|
7687
7785
|
input: "quiz" | "photo" | "none";
|
|
@@ -7740,7 +7838,7 @@ declare function createRelayClient(options: {
|
|
|
7740
7838
|
quest: string;
|
|
7741
7839
|
member: string;
|
|
7742
7840
|
evidence: string | null;
|
|
7743
|
-
status: "
|
|
7841
|
+
status: "queued" | "evaluating" | "accepted" | "rejected" | "needs-review" | "failed";
|
|
7744
7842
|
reason: string | null;
|
|
7745
7843
|
retries: number;
|
|
7746
7844
|
generation: number;
|
|
@@ -8030,7 +8128,7 @@ declare function createRelayClient(options: {
|
|
|
8030
8128
|
quest: string;
|
|
8031
8129
|
member: string;
|
|
8032
8130
|
evidence: string | null;
|
|
8033
|
-
status: "
|
|
8131
|
+
status: "queued" | "evaluating" | "accepted" | "rejected" | "needs-review" | "failed";
|
|
8034
8132
|
reason: string | null;
|
|
8035
8133
|
retries: number;
|
|
8036
8134
|
generation: number;
|
|
@@ -8077,7 +8175,7 @@ declare function createRelayClient(options: {
|
|
|
8077
8175
|
quest: string;
|
|
8078
8176
|
member: string;
|
|
8079
8177
|
evidence: string | null;
|
|
8080
|
-
status: "
|
|
8178
|
+
status: "queued" | "evaluating" | "accepted" | "rejected" | "needs-review" | "failed";
|
|
8081
8179
|
reason: string | null;
|
|
8082
8180
|
retries: number;
|
|
8083
8181
|
generation: number;
|
|
@@ -8129,7 +8227,7 @@ declare function createRelayClient(options: {
|
|
|
8129
8227
|
quest: string;
|
|
8130
8228
|
member: string;
|
|
8131
8229
|
evidence: string | null;
|
|
8132
|
-
status: "
|
|
8230
|
+
status: "queued" | "evaluating" | "accepted" | "rejected" | "needs-review" | "failed";
|
|
8133
8231
|
reason: string | null;
|
|
8134
8232
|
retries: number;
|
|
8135
8233
|
generation: number;
|
|
@@ -8172,4 +8270,4 @@ declare function createRelayClient(options: {
|
|
|
8172
8270
|
}>;
|
|
8173
8271
|
};
|
|
8174
8272
|
|
|
8175
|
-
export { Attempt, AuthProvider, type ClaimSubmission, type CollectionPass, type DeploymentPreview, type ExchangeInput, LeaderboardQuery, MemberListOptions, MemberProgress, type PhotoSubmission, type ProgressObservation, type ProgressObserver, PublishedRelease, type QuestActionResult, type QuestCatalog, type QuestController, type QuestDraft, type QuestInstance, type QuestInteraction, QuestUpdatedError, type QuestView, QuizEvidence, type QuizSubmission, RelayError, ReleaseInput, ReviewListOptions, type Session, type SubmissionDraft, type SubmissionStatus, type SubmissionStore, SubmitInput, authScopeSchema, beginHandoverSchema, catalogDeploymentPreviewSchema, catalogDeploymentSchema, collectionBeginSchema, collectionCodeSchema, collectionPassSchema, collectionPreviewSchema, collectionResolveSchema, collectionSlotSchema, collectionViewSchema, createRelayClient, deploymentPreviewSchema, deploymentResultSchema, errorSchema, exchangeResultSchema, exchangeSchema, identityIntegrationInputSchema, identityIntegrationSchema, identityIntegrationSecretSchema, interactionSchema, participantExchangeSchema, principalSchema, projectCatalogArtifactSchema, projectDeploymentSchema, publishDeploymentSchema, publishQuestDraftSchema, questActions, questCatalogSchema, questCollectionSchema, questConfiguration, questDescriptionSchema, questDraftChangesSchema, questDraftSchema, questExperienceSchema, questInstanceSchema, questInteraction, questPublicationPreviewSchema, questTypeVersionSchema, questViewSchema, reconcileQuestDraft, referralAcceptSchema, resourceId, rewardDeliveriesSchema, rewardDeliverySchema, saveQuestDraftSchema, sessionSchema, walletChallengeInputSchema, walletProofSchema };
|
|
8273
|
+
export { Attempt, AuthProvider, type ClaimSubmission, type CollectionPass, type DeploymentPreview, type ExchangeInput, LeaderboardQuery, MemberListOptions, MemberProgress, type PhotoSubmission, type PointLedger, type ProgressObservation, type ProgressObserver, PublishedRelease, type QuestActionResult, type QuestCatalog, type QuestController, type QuestDraft, type QuestInstance, type QuestInteraction, QuestUpdatedError, type QuestView, QuizEvidence, type QuizSubmission, RelayError, ReleaseInput, ReviewListOptions, type Session, type SubmissionDraft, type SubmissionStatus, type SubmissionStore, SubmitInput, authScopeSchema, beginHandoverSchema, catalogDeploymentPreviewSchema, catalogDeploymentSchema, collectionBeginSchema, collectionCodeSchema, collectionPassSchema, collectionPreviewSchema, collectionResolveSchema, collectionSlotSchema, collectionViewSchema, createRelayClient, deploymentPreviewSchema, deploymentResultSchema, errorSchema, exchangeResultSchema, exchangeSchema, identityIntegrationInputSchema, identityIntegrationSchema, identityIntegrationSecretSchema, interactionSchema, participantExchangeSchema, pointLedgerSchema, principalSchema, projectCatalogArtifactSchema, projectDeploymentSchema, publishDeploymentSchema, publishQuestDraftSchema, questActions, questCatalogSchema, questCollectionSchema, questConfiguration, questDescriptionSchema, questDraftChangesSchema, questDraftSchema, questExperienceSchema, questInstanceSchema, questInteraction, questPublicationPreviewSchema, questTypeVersionSchema, questViewSchema, reconcileQuestDraft, referralAcceptSchema, resourceId, rewardDeliveriesSchema, rewardDeliverySchema, saveQuestDraftSchema, sessionSchema, walletChallengeInputSchema, walletProofSchema };
|