@domino-sdk/relay 0.28.0 → 0.30.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 +11 -3
- package/dist/authoring.js +8 -3
- package/dist/browser.d.ts +138 -122
- package/dist/browser.js +6 -6
- package/dist/{chunk-IXLY3A7B.js → chunk-BE5V6RFD.js} +8 -0
- package/dist/{chunk-ZP43MHO3.js → chunk-CB7RKKDX.js} +199 -741
- package/dist/{chunk-AL5GXMKI.js → chunk-CWIJDQDT.js} +166 -31
- package/dist/{chunk-AKB266O5.js → chunk-HINZLW46.js} +13 -2
- package/dist/chunk-TYYGYDYX.js +42 -0
- package/dist/{chunk-NHSA6ATH.js → chunk-UMKGCDBX.js} +2 -2
- package/dist/index.d.ts +383 -320
- package/dist/index.js +46 -34
- package/dist/portal-proxy.js +6 -6
- package/dist/react/index.d.ts +201 -38
- package/dist/react/index.js +139 -18
- package/dist/schema.d.ts +27 -1
- package/dist/schema.js +3 -1
- package/dist/{submission-input-D3t8WKOk.d.ts → submission-input-B6f27BHm.d.ts} +30 -1206
- package/package.json +1 -1
- package/dist/chunk-D6BX627V.js +0 -175
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { a9 as ValueEvidence, L as LinkedWallet, K as referralAcceptSchema, M as LeaderboardQuery, N as WalletAddressInput, P as walletSignatureSchema, Q as WalletSigner, R as walletChallengeInputSchema, V as walletProofSchema, Y as AuthProvider, Z as WalletSignature, _ as engagementPageQuerySchema, $ as contentQualificationQuerySchema, a0 as contentAdmissionQuerySchema, a1 as contentEnrollmentInputSchema, a2 as contentReleaseInputSchema } from './submission-input-B6f27BHm.js';
|
|
2
|
+
export { a3 as AccountConnection, A as AdmittedContent, B as Budget, C as ContentMetric, aa as ContentPerformancePolicy, ab as ContentPolicy, a7 as CosmosChain, a8 as CosmosNetwork, D as DiscordMember, b as DiscordMessage, ac as EngagementDefinition, E as EvmChainId, ad as ImageAssetArtifact, ae as ImageComparison, af as ImageExtraction, ag as ImageFields, ah as ImageInspection, I as ImageReader, ai as ImageReference, aj as ImageRequest, ak as ImageSightings, i as IntegrationProvider, al as LeaderboardDefinition, a6 as LeaderboardPage, am as LeaderboardPlacement, O as Observation, an as ProjectIntegration, ao as PublishedImage, ap as QuizContent, aq as ReferralDefinition, ar as ResourceOption, as as ResourceSource, at as SettingField, au as SettingsValues, S as SolanaBalance, j as StreakPolicy, av as StreakProgress, k as TextEvidence, l as TextOptions, aw as TrackerAttribution, f as TrackerBeneficiary, ax as TrackerContent, ay as TrackerContentQuery, e as TrackerDefinition, az as TrackerOutcome, aA as TrackerOutcomeQuery, aB as TrackerPreview, aC as TrackerPreviewInput, aD as TrackerQuery, a as TrackerReader, aE as TrackerRecord, aF as TrackerStatus, T as TrackerTriggerContext, g as TrackerTriggerPolicy, U as UrlEvidence, m as UrlOptions, aG as WALLETS_PER_CHAIN, d as WalletBalance, c as WalletBalanceQuery, aH as WalletChain, W as WalletConnection, aI as WalletMessageChallenge, a4 as WalletSignInNetwork, aJ as WalletUnlinkInput, aK as XConnection, aL as XPost, aM as XProfile, X as XReader, aN as XTweet, aO as accountConnectionSchema, aP as admittedContentSchema, aQ as authProviderSchema, aR as budgetSchema, aS as caip10, aT as communityTimeZoneSchema, aU as compatibleSettingKinds, aV as completionKeySchema, aW as completionPolicySchema, n as content, aX as contentAdmissionPageSchema, aY as contentAdmissionSchema, aZ as contentEnrollmentSchema, a_ as contentMetricSchema, a$ as contentMetricsSchema, b0 as contentPerformancePolicySchema, b1 as contentPolicySchema, b2 as contentQualificationDecisionSchema, b3 as contentQualificationPageSchema, b4 as contentQualificationSchema, b5 as cosmosAddressSchema, b6 as cosmosChain, b7 as cosmosNetworkSchema, p as customSource, q as defineEngagementReward, r as defineLeaderboard, s as defineReferral, t as defineTracker, u as discord, b8 as discordMemberInputSchema, b9 as discordMemberSchema, ba as discordMessageInputSchema, bb as discordMessageSchema, bc as discordReactionSchema, bd as discordServerSchema, be as engagementArtifactSchema, bf as engagementBoundaryPageSchema, bg as engagementChangePreviewInputSchema, bh as engagementChangePreviewSchema, bi as engagementChangeSchema, bj as engagementDefinitionSchema, bk as engagementDeploymentEntrySchema, bl as engagementPageSchema, bm as engagementPublishSchema, bn as engagementRuleSchema, bo as engagementScoreInputSchema, bp as engagementScoreSchema, bq as engagementSettlementSchema, br as engagementVersionPageSchema, bs as engagementVersionQuerySchema, bt as evmAddressSchema, bu as evmChainIdSchema, v as formatUnits, bv as imageAssetArtifactSchema, bw as imageComparisonSchema, bx as imageExtractionSchema, by as imageFieldSchema, bz as imageFieldsSchema, bA as imageInspectionSchema, bB as imageReferenceSchema, bC as imageRequestSchema, bD as imageSightingsSchema, bE as imageUploadRequestSchema, bF as imageUploadsSchema, bG as integrationProviderSchema, bH as isContentParticipantRoute, w as isEvmChainId, bI as isWalletParticipantRoute, bJ as isWalletSignInRoute, bK as leaderboardArtifactSchema, bL as leaderboardAuthoringSchema, bM as leaderboardDefinitionSchema, bN as leaderboardExclusionSchema, bO as leaderboardGroupSchema, bP as leaderboardPageSchema, bQ as leaderboardPlacementSchema, bR as leaderboardPreviewSchema, bS as leaderboardQuerySchema, bT as leaderboardRowSchema, bU as leaderboardWindowSchema, bV as linkedWalletSchema, bW as missingResourceSettings, bX as observationInputSchema, bY as observationReceiptSchema, bZ as observationSchema, o as observationTriggerSchema, b_ as parseImageExtraction, b$ as parseImageResult, c0 as parseSettings, x as parseUnits, y as perContent, z as pointLedgers, c1 as pointsAccountSchema, c2 as pointsEntrySchema, c3 as pointsMutationSchema, c4 as pointsResultSchema, c5 as projectIntegrationSchema, c6 as publishedImageSchema, c7 as publishedLeaderboardSchema, c8 as publishedReferralSchema, c9 as publishedTrackerSchema, ca as quizChoiceSchema, cb as quizContentSchema, cc as quizQuestionSchema, cd as quizQuestionsSchema, ce as referralAccountSchema, cf as referralArtifactSchema, cg as referralAuthoringSchema, ch as referralControlSchema, ci as referralDefinitionSchema, cj as referralHistorySchema, ck as referralManagementSchema, cl as referralRelationshipSchema, a5 as referralSummarySchema, cm as resourceOptionsSchema, cn as resourceRequestSchema, co as resourceSourceSchema, cp as settingFieldSchema, F as settings, cq as settingsFieldsSchema, cr as settingsValuesSchema, cs as solanaAddressSchema, ct as solanaBalanceSchema, cu as solanaMainnet, G as streak, cv as streakPolicySchema, cw as streakProgressSchema, cx as textEvidenceSchema, cy as textOptionsSchema, cz as trackerArtifactSchema, cA as trackerAttributionSchema, cB as trackerBeneficiarySchema, cC as trackerContentQuerySchema, cD as trackerContentReadSchema, cE as trackerContentSchema, cF as trackerControlSchema, cG as trackerDefinitionSchema, cH as trackerEvidenceSchema, cI as trackerIngestResultSchema, cJ as trackerIngestSchema, cK as trackerOutcomePageSchema, cL as trackerOutcomeQuerySchema, cM as trackerOutcomeRetrySchema, cN as trackerOutcomeSchema, cO as trackerPageSchema, cP as trackerPreviewInputSchema, cQ as trackerPreviewLimits, cR as trackerPreviewSchema, cS as trackerQuerySchema, cT as trackerRecordInputSchema, cU as trackerRecordSchema, cV as trackerSourceSchema, cW as trackerStatusSchema, cX as trackerSummarySchema, H as trackerTriggerContextSchema, cY as trackerTriggerPolicySchema, cZ as trackerTriggerRecordSchema, c_ as urlEvidenceSchema, c$ as urlOptionsSchema, d0 as validateSubmissionValue, d1 as valueEvidenceSchema, d2 as walletAddressInput, d3 as walletAddressInputSchema, d4 as walletBalanceSchema, d5 as walletChainSchema, d6 as walletChallengeSchema, d7 as walletConnectionSchema, d8 as walletMessageChallengeSchema, d9 as walletSignInFamilies, da as walletSignInNetwork, db as walletSignInNetworkSchema, dc as walletSignInNetworksSchema, dd as walletUnlinkInputSchema, J as x, de as xConnectionSchema, df as xContentBodySchema, dg as xIdSchema, dh as xPostId, di as xPostSchema, dj as xProfileSchema, dk as xRequestSchema, dl as xTweetSchema } from './submission-input-B6f27BHm.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import { errorSchema, QuizEvidence, Attempt, SubmitInput, MemberProgress, questDescriptionSchema, PublishedRelease, ReleaseInput, beginHandoverSchema, contentPerformanceQuerySchema } from './schema.js';
|
|
5
|
-
export { ContentPerformanceSnapshot, Decision, Entitlement, MemberPage, PhotoResult, PickupAvailability, QuestAvailability, QuestDescription, QuestPresentation, QuestSettingsInput, ReviewPage, Reward, Snapshot, SubmissionEvidence, TextResult, TextReviewInput, TieredRewardDefinition, TieredRewardReference, artifactSchema, attemptSchema, batchReleaseSchema, completionRecordSchema, configurePickupSchema, confirmHandoverSchema, contentPerformancePageSchema, contentPerformanceSnapshotSchema, 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, submissionEvidenceSchema, submitSchema, templateSchema, textResultSchema, textReviewInputSchema, tierRewardSchema, tieredRewardDefinitionSchema, tieredRewardReferenceSchema, triggerSchema } from './schema.js';
|
|
5
|
+
export { ContentPerformanceSnapshot, Decision, Entitlement, MemberPage, PhotoResult, PickupAvailability, QuestAvailability, QuestDescription, QuestPresentation, QuestProfile, QuestSettingsInput, ReviewPage, Reward, Snapshot, SubmissionEvidence, TextResult, TextReviewInput, TieredRewardDefinition, TieredRewardReference, artifactSchema, attemptSchema, batchReleaseSchema, completionRecordSchema, configurePickupSchema, confirmHandoverSchema, contentPerformancePageSchema, contentPerformanceSnapshotSchema, createStockItemSchema, decisionSchema, entitlementSchema, eventSchema, evidenceSchema, identifier, integrationRewardSchema, mediaUrlSchema, memberListSchema, memberPageSchema, memberProgressSchema, photoResultSchema, pickupAllocationSchema, pickupAvailabilitySchema, pickupCatalogSchema, pickupPolicySchema, pickupSelectionSchema, pointsRewardSchema, prerequisiteSchema, publishedReleaseSchema, questAvailabilitySchema, questPresentationSchema, questProfileSchema, questSettingsInputSchema, quizAnswersSchema, quizEvidenceSchema, releaseSchema, reservationSchema, reviewItemSchema, reviewListSchema, reviewModeSchema, reviewPageSchema, rewardBundleSchema, rewardKey, rewardSchema, snapshotSchema, staffDecisionSchema, stockItemSchema, stockSchema, storedReviewModeSchema, submissionEvidenceSchema, submitSchema, templateSchema, textResultSchema, textReviewInputSchema, tierRewardSchema, tieredRewardDefinitionSchema, tieredRewardReferenceSchema, triggerSchema } from './schema.js';
|
|
6
6
|
|
|
7
7
|
declare class RelayError extends Error {
|
|
8
8
|
readonly status: number;
|
|
@@ -58,8 +58,8 @@ declare const sessionSchema: z.ZodObject<{
|
|
|
58
58
|
type Session = z.infer<typeof sessionSchema>;
|
|
59
59
|
/**
|
|
60
60
|
* The signed-in member (`GET /v1/me`). `avatarSeed` seeds the member's generated avatar
|
|
61
|
-
* (`defaultAvatar`):
|
|
62
|
-
*
|
|
61
|
+
* (`defaultAvatar`): an HMAC of the member ID under a per-project secret, so it is stable in the
|
|
62
|
+
* project, whatever the member links, and reveals nothing. Not strict: newer servers may add fields.
|
|
63
63
|
*/
|
|
64
64
|
declare const memberSummarySchema: z.ZodObject<{
|
|
65
65
|
member: z.ZodString;
|
|
@@ -209,10 +209,10 @@ type ProgressObserver = {
|
|
|
209
209
|
};
|
|
210
210
|
|
|
211
211
|
declare const interactionSchema: z.ZodEnum<{
|
|
212
|
+
staff: "staff";
|
|
212
213
|
quiz: "quiz";
|
|
213
|
-
url: "url";
|
|
214
214
|
text: "text";
|
|
215
|
-
|
|
215
|
+
url: "url";
|
|
216
216
|
photo: "photo";
|
|
217
217
|
automatic: "automatic";
|
|
218
218
|
claim: "claim";
|
|
@@ -455,19 +455,22 @@ declare const questTypeVersionSchema: z.ZodObject<{
|
|
|
455
455
|
kind: z.ZodLiteral<"keyed">;
|
|
456
456
|
}, z.core.$strict>], "kind">;
|
|
457
457
|
visibility: z.ZodDefault<z.ZodEnum<{
|
|
458
|
-
hidden: "hidden";
|
|
459
458
|
visible: "visible";
|
|
459
|
+
hidden: "hidden";
|
|
460
460
|
}>>;
|
|
461
|
+
profile: z.ZodOptional<z.ZodObject<{
|
|
462
|
+
visible: z.ZodBoolean;
|
|
463
|
+
}, z.core.$strict>>;
|
|
461
464
|
budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
462
465
|
id: z.ZodString;
|
|
463
466
|
scope: z.ZodEnum<{
|
|
464
|
-
member: "member";
|
|
465
467
|
project: "project";
|
|
468
|
+
member: "member";
|
|
466
469
|
}>;
|
|
467
470
|
period: z.ZodEnum<{
|
|
468
471
|
day: "day";
|
|
469
|
-
lifetime: "lifetime";
|
|
470
472
|
week: "week";
|
|
473
|
+
lifetime: "lifetime";
|
|
471
474
|
}>;
|
|
472
475
|
limit: z.ZodNumber;
|
|
473
476
|
cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
@@ -867,19 +870,22 @@ declare const questCatalogSchema: z.ZodObject<{
|
|
|
867
870
|
kind: z.ZodLiteral<"keyed">;
|
|
868
871
|
}, z.core.$strict>], "kind">;
|
|
869
872
|
visibility: z.ZodDefault<z.ZodEnum<{
|
|
870
|
-
hidden: "hidden";
|
|
871
873
|
visible: "visible";
|
|
874
|
+
hidden: "hidden";
|
|
872
875
|
}>>;
|
|
876
|
+
profile: z.ZodOptional<z.ZodObject<{
|
|
877
|
+
visible: z.ZodBoolean;
|
|
878
|
+
}, z.core.$strict>>;
|
|
873
879
|
budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
874
880
|
id: z.ZodString;
|
|
875
881
|
scope: z.ZodEnum<{
|
|
876
|
-
member: "member";
|
|
877
882
|
project: "project";
|
|
883
|
+
member: "member";
|
|
878
884
|
}>;
|
|
879
885
|
period: z.ZodEnum<{
|
|
880
886
|
day: "day";
|
|
881
|
-
lifetime: "lifetime";
|
|
882
887
|
week: "week";
|
|
888
|
+
lifetime: "lifetime";
|
|
883
889
|
}>;
|
|
884
890
|
limit: z.ZodNumber;
|
|
885
891
|
cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
@@ -1223,19 +1229,22 @@ declare const questCatalogSchema: z.ZodObject<{
|
|
|
1223
1229
|
kind: z.ZodLiteral<"keyed">;
|
|
1224
1230
|
}, z.core.$strict>], "kind">;
|
|
1225
1231
|
visibility: z.ZodDefault<z.ZodEnum<{
|
|
1226
|
-
hidden: "hidden";
|
|
1227
1232
|
visible: "visible";
|
|
1233
|
+
hidden: "hidden";
|
|
1228
1234
|
}>>;
|
|
1235
|
+
profile: z.ZodOptional<z.ZodObject<{
|
|
1236
|
+
visible: z.ZodBoolean;
|
|
1237
|
+
}, z.core.$strict>>;
|
|
1229
1238
|
budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1230
1239
|
id: z.ZodString;
|
|
1231
1240
|
scope: z.ZodEnum<{
|
|
1232
|
-
member: "member";
|
|
1233
1241
|
project: "project";
|
|
1242
|
+
member: "member";
|
|
1234
1243
|
}>;
|
|
1235
1244
|
period: z.ZodEnum<{
|
|
1236
1245
|
day: "day";
|
|
1237
|
-
lifetime: "lifetime";
|
|
1238
1246
|
week: "week";
|
|
1247
|
+
lifetime: "lifetime";
|
|
1239
1248
|
}>;
|
|
1240
1249
|
limit: z.ZodNumber;
|
|
1241
1250
|
cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
@@ -1327,7 +1336,7 @@ declare const questCatalogSchema: z.ZodObject<{
|
|
|
1327
1336
|
createdAt: z.ZodNumber;
|
|
1328
1337
|
}, z.core.$strip>, z.ZodTransform<{
|
|
1329
1338
|
quest: string;
|
|
1330
|
-
runtimeVersion:
|
|
1339
|
+
runtimeVersion: 2 | 1;
|
|
1331
1340
|
title: string;
|
|
1332
1341
|
presentation: {
|
|
1333
1342
|
quiz?: {
|
|
@@ -1364,12 +1373,12 @@ declare const questCatalogSchema: z.ZodObject<{
|
|
|
1364
1373
|
kind: "resource";
|
|
1365
1374
|
default: string;
|
|
1366
1375
|
source: {
|
|
1376
|
+
provider: "domino";
|
|
1377
|
+
resource: "point-ledger";
|
|
1378
|
+
} | {
|
|
1367
1379
|
provider: "discord";
|
|
1368
1380
|
resource: "channel";
|
|
1369
1381
|
types: ("text" | "announcement")[];
|
|
1370
|
-
} | {
|
|
1371
|
-
provider: "domino";
|
|
1372
|
-
resource: "point-ledger";
|
|
1373
1382
|
} | {
|
|
1374
1383
|
provider: "discord";
|
|
1375
1384
|
resource: "role";
|
|
@@ -1510,11 +1519,11 @@ declare const questCatalogSchema: z.ZodObject<{
|
|
|
1510
1519
|
} | {
|
|
1511
1520
|
kind: "keyed";
|
|
1512
1521
|
};
|
|
1513
|
-
visibility: "
|
|
1522
|
+
visibility: "visible" | "hidden";
|
|
1514
1523
|
budgets: {
|
|
1515
1524
|
id: string;
|
|
1516
|
-
scope: "
|
|
1517
|
-
period: "day" | "
|
|
1525
|
+
scope: "project" | "member";
|
|
1526
|
+
period: "day" | "week" | "lifetime";
|
|
1518
1527
|
limit: number;
|
|
1519
1528
|
cost: number | {
|
|
1520
1529
|
balance: string;
|
|
@@ -1530,6 +1539,9 @@ declare const questCatalogSchema: z.ZodObject<{
|
|
|
1530
1539
|
metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
|
|
1531
1540
|
maxAgeMs: number;
|
|
1532
1541
|
} | undefined;
|
|
1542
|
+
profile?: {
|
|
1543
|
+
visible: boolean;
|
|
1544
|
+
} | undefined;
|
|
1533
1545
|
key?: string | undefined;
|
|
1534
1546
|
origin?: {
|
|
1535
1547
|
typeVersion: string;
|
|
@@ -1593,10 +1605,10 @@ declare const questCatalogSchema: z.ZodObject<{
|
|
|
1593
1605
|
createdAt: number;
|
|
1594
1606
|
}>>]>>>;
|
|
1595
1607
|
supportedInteractions: z.ZodArray<z.ZodEnum<{
|
|
1608
|
+
staff: "staff";
|
|
1596
1609
|
quiz: "quiz";
|
|
1597
|
-
url: "url";
|
|
1598
1610
|
text: "text";
|
|
1599
|
-
|
|
1611
|
+
url: "url";
|
|
1600
1612
|
photo: "photo";
|
|
1601
1613
|
automatic: "automatic";
|
|
1602
1614
|
claim: "claim";
|
|
@@ -1626,10 +1638,10 @@ declare const catalogDeploymentSchema: z.ZodObject<{
|
|
|
1626
1638
|
id?: string | undefined;
|
|
1627
1639
|
}>>>>;
|
|
1628
1640
|
supportedInteractions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1641
|
+
staff: "staff";
|
|
1629
1642
|
quiz: "quiz";
|
|
1630
|
-
url: "url";
|
|
1631
1643
|
text: "text";
|
|
1632
|
-
|
|
1644
|
+
url: "url";
|
|
1633
1645
|
photo: "photo";
|
|
1634
1646
|
automatic: "automatic";
|
|
1635
1647
|
claim: "claim";
|
|
@@ -1873,19 +1885,22 @@ declare const catalogDeploymentPreviewSchema: z.ZodObject<{
|
|
|
1873
1885
|
kind: z.ZodLiteral<"keyed">;
|
|
1874
1886
|
}, z.core.$strict>], "kind">;
|
|
1875
1887
|
visibility: z.ZodDefault<z.ZodEnum<{
|
|
1876
|
-
hidden: "hidden";
|
|
1877
1888
|
visible: "visible";
|
|
1889
|
+
hidden: "hidden";
|
|
1878
1890
|
}>>;
|
|
1891
|
+
profile: z.ZodOptional<z.ZodObject<{
|
|
1892
|
+
visible: z.ZodBoolean;
|
|
1893
|
+
}, z.core.$strict>>;
|
|
1879
1894
|
budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1880
1895
|
id: z.ZodString;
|
|
1881
1896
|
scope: z.ZodEnum<{
|
|
1882
|
-
member: "member";
|
|
1883
1897
|
project: "project";
|
|
1898
|
+
member: "member";
|
|
1884
1899
|
}>;
|
|
1885
1900
|
period: z.ZodEnum<{
|
|
1886
1901
|
day: "day";
|
|
1887
|
-
lifetime: "lifetime";
|
|
1888
1902
|
week: "week";
|
|
1903
|
+
lifetime: "lifetime";
|
|
1889
1904
|
}>;
|
|
1890
1905
|
limit: z.ZodNumber;
|
|
1891
1906
|
cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
@@ -1908,10 +1923,10 @@ declare const catalogDeploymentPreviewSchema: z.ZodObject<{
|
|
|
1908
1923
|
title: z.ZodString;
|
|
1909
1924
|
}, z.core.$strict>>;
|
|
1910
1925
|
supportedInteractions: z.ZodArray<z.ZodEnum<{
|
|
1926
|
+
staff: "staff";
|
|
1911
1927
|
quiz: "quiz";
|
|
1912
|
-
url: "url";
|
|
1913
1928
|
text: "text";
|
|
1914
|
-
|
|
1929
|
+
url: "url";
|
|
1915
1930
|
photo: "photo";
|
|
1916
1931
|
automatic: "automatic";
|
|
1917
1932
|
claim: "claim";
|
|
@@ -2007,10 +2022,10 @@ declare const questViewSchema: z.ZodObject<{
|
|
|
2007
2022
|
}, z.core.$strict>>;
|
|
2008
2023
|
}, z.core.$strict>>;
|
|
2009
2024
|
connections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
2010
|
-
x: "x";
|
|
2011
2025
|
discord: "discord";
|
|
2012
2026
|
google: "google";
|
|
2013
2027
|
apple: "apple";
|
|
2028
|
+
x: "x";
|
|
2014
2029
|
}>>>;
|
|
2015
2030
|
trigger: z.ZodUnion<readonly [z.ZodObject<{
|
|
2016
2031
|
kind: z.ZodLiteral<"manual">;
|
|
@@ -2088,8 +2103,8 @@ declare const questViewSchema: z.ZodObject<{
|
|
|
2088
2103
|
kind: z.ZodLiteral<"available">;
|
|
2089
2104
|
input: z.ZodEnum<{
|
|
2090
2105
|
quiz: "quiz";
|
|
2091
|
-
url: "url";
|
|
2092
2106
|
text: "text";
|
|
2107
|
+
url: "url";
|
|
2093
2108
|
photo: "photo";
|
|
2094
2109
|
none: "none";
|
|
2095
2110
|
}>;
|
|
@@ -2161,8 +2176,8 @@ declare const questViewSchema: z.ZodObject<{
|
|
|
2161
2176
|
}, z.core.$strip>>>;
|
|
2162
2177
|
completionCount: z.ZodDefault<z.ZodNumber>;
|
|
2163
2178
|
visibility: z.ZodDefault<z.ZodEnum<{
|
|
2164
|
-
hidden: "hidden";
|
|
2165
2179
|
visible: "visible";
|
|
2180
|
+
hidden: "hidden";
|
|
2166
2181
|
}>>;
|
|
2167
2182
|
missing: z.ZodArray<z.ZodObject<{
|
|
2168
2183
|
quest: z.ZodString;
|
|
@@ -2188,12 +2203,12 @@ declare const questViewSchema: z.ZodObject<{
|
|
|
2188
2203
|
value: z.ZodString;
|
|
2189
2204
|
}, z.core.$strict>]>>;
|
|
2190
2205
|
status: z.ZodEnum<{
|
|
2191
|
-
"needs-review": "needs-review";
|
|
2192
2206
|
queued: "queued";
|
|
2193
2207
|
evaluating: "evaluating";
|
|
2194
2208
|
accepted: "accepted";
|
|
2195
2209
|
progressed: "progressed";
|
|
2196
2210
|
rejected: "rejected";
|
|
2211
|
+
"needs-review": "needs-review";
|
|
2197
2212
|
failed: "failed";
|
|
2198
2213
|
}>;
|
|
2199
2214
|
reason: z.ZodNullable<z.ZodString>;
|
|
@@ -2231,10 +2246,10 @@ declare const questViewSchema: z.ZodObject<{
|
|
|
2231
2246
|
}, z.core.$strip>>;
|
|
2232
2247
|
release: z.ZodString;
|
|
2233
2248
|
interaction: z.ZodEnum<{
|
|
2249
|
+
staff: "staff";
|
|
2234
2250
|
quiz: "quiz";
|
|
2235
|
-
url: "url";
|
|
2236
2251
|
text: "text";
|
|
2237
|
-
|
|
2252
|
+
url: "url";
|
|
2238
2253
|
photo: "photo";
|
|
2239
2254
|
automatic: "automatic";
|
|
2240
2255
|
claim: "claim";
|
|
@@ -2296,10 +2311,10 @@ declare const collectionViewSchema: z.ZodObject<{
|
|
|
2296
2311
|
}, z.core.$strict>>;
|
|
2297
2312
|
}, z.core.$strict>>;
|
|
2298
2313
|
connections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
2299
|
-
x: "x";
|
|
2300
2314
|
discord: "discord";
|
|
2301
2315
|
google: "google";
|
|
2302
2316
|
apple: "apple";
|
|
2317
|
+
x: "x";
|
|
2303
2318
|
}>>>;
|
|
2304
2319
|
trigger: z.ZodUnion<readonly [z.ZodObject<{
|
|
2305
2320
|
kind: z.ZodLiteral<"manual">;
|
|
@@ -2377,8 +2392,8 @@ declare const collectionViewSchema: z.ZodObject<{
|
|
|
2377
2392
|
kind: z.ZodLiteral<"available">;
|
|
2378
2393
|
input: z.ZodEnum<{
|
|
2379
2394
|
quiz: "quiz";
|
|
2380
|
-
url: "url";
|
|
2381
2395
|
text: "text";
|
|
2396
|
+
url: "url";
|
|
2382
2397
|
photo: "photo";
|
|
2383
2398
|
none: "none";
|
|
2384
2399
|
}>;
|
|
@@ -2450,8 +2465,8 @@ declare const collectionViewSchema: z.ZodObject<{
|
|
|
2450
2465
|
}, z.core.$strip>>>;
|
|
2451
2466
|
completionCount: z.ZodDefault<z.ZodNumber>;
|
|
2452
2467
|
visibility: z.ZodDefault<z.ZodEnum<{
|
|
2453
|
-
hidden: "hidden";
|
|
2454
2468
|
visible: "visible";
|
|
2469
|
+
hidden: "hidden";
|
|
2455
2470
|
}>>;
|
|
2456
2471
|
missing: z.ZodArray<z.ZodObject<{
|
|
2457
2472
|
quest: z.ZodString;
|
|
@@ -2477,12 +2492,12 @@ declare const collectionViewSchema: z.ZodObject<{
|
|
|
2477
2492
|
value: z.ZodString;
|
|
2478
2493
|
}, z.core.$strict>]>>;
|
|
2479
2494
|
status: z.ZodEnum<{
|
|
2480
|
-
"needs-review": "needs-review";
|
|
2481
2495
|
queued: "queued";
|
|
2482
2496
|
evaluating: "evaluating";
|
|
2483
2497
|
accepted: "accepted";
|
|
2484
2498
|
progressed: "progressed";
|
|
2485
2499
|
rejected: "rejected";
|
|
2500
|
+
"needs-review": "needs-review";
|
|
2486
2501
|
failed: "failed";
|
|
2487
2502
|
}>;
|
|
2488
2503
|
reason: z.ZodNullable<z.ZodString>;
|
|
@@ -2520,10 +2535,10 @@ declare const collectionViewSchema: z.ZodObject<{
|
|
|
2520
2535
|
}, z.core.$strip>>;
|
|
2521
2536
|
release: z.ZodString;
|
|
2522
2537
|
interaction: z.ZodEnum<{
|
|
2538
|
+
staff: "staff";
|
|
2523
2539
|
quiz: "quiz";
|
|
2524
|
-
url: "url";
|
|
2525
2540
|
text: "text";
|
|
2526
|
-
|
|
2541
|
+
url: "url";
|
|
2527
2542
|
photo: "photo";
|
|
2528
2543
|
automatic: "automatic";
|
|
2529
2544
|
claim: "claim";
|
|
@@ -2584,10 +2599,10 @@ declare const questExperienceSchema: z.ZodObject<{
|
|
|
2584
2599
|
}, z.core.$strict>>;
|
|
2585
2600
|
}, z.core.$strict>>;
|
|
2586
2601
|
connections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
2587
|
-
x: "x";
|
|
2588
2602
|
discord: "discord";
|
|
2589
2603
|
google: "google";
|
|
2590
2604
|
apple: "apple";
|
|
2605
|
+
x: "x";
|
|
2591
2606
|
}>>>;
|
|
2592
2607
|
trigger: z.ZodUnion<readonly [z.ZodObject<{
|
|
2593
2608
|
kind: z.ZodLiteral<"manual">;
|
|
@@ -2665,8 +2680,8 @@ declare const questExperienceSchema: z.ZodObject<{
|
|
|
2665
2680
|
kind: z.ZodLiteral<"available">;
|
|
2666
2681
|
input: z.ZodEnum<{
|
|
2667
2682
|
quiz: "quiz";
|
|
2668
|
-
url: "url";
|
|
2669
2683
|
text: "text";
|
|
2684
|
+
url: "url";
|
|
2670
2685
|
photo: "photo";
|
|
2671
2686
|
none: "none";
|
|
2672
2687
|
}>;
|
|
@@ -2738,8 +2753,8 @@ declare const questExperienceSchema: z.ZodObject<{
|
|
|
2738
2753
|
}, z.core.$strip>>>;
|
|
2739
2754
|
completionCount: z.ZodDefault<z.ZodNumber>;
|
|
2740
2755
|
visibility: z.ZodDefault<z.ZodEnum<{
|
|
2741
|
-
hidden: "hidden";
|
|
2742
2756
|
visible: "visible";
|
|
2757
|
+
hidden: "hidden";
|
|
2743
2758
|
}>>;
|
|
2744
2759
|
missing: z.ZodArray<z.ZodObject<{
|
|
2745
2760
|
quest: z.ZodString;
|
|
@@ -2765,12 +2780,12 @@ declare const questExperienceSchema: z.ZodObject<{
|
|
|
2765
2780
|
value: z.ZodString;
|
|
2766
2781
|
}, z.core.$strict>]>>;
|
|
2767
2782
|
status: z.ZodEnum<{
|
|
2768
|
-
"needs-review": "needs-review";
|
|
2769
2783
|
queued: "queued";
|
|
2770
2784
|
evaluating: "evaluating";
|
|
2771
2785
|
accepted: "accepted";
|
|
2772
2786
|
progressed: "progressed";
|
|
2773
2787
|
rejected: "rejected";
|
|
2788
|
+
"needs-review": "needs-review";
|
|
2774
2789
|
failed: "failed";
|
|
2775
2790
|
}>;
|
|
2776
2791
|
reason: z.ZodNullable<z.ZodString>;
|
|
@@ -2808,10 +2823,10 @@ declare const questExperienceSchema: z.ZodObject<{
|
|
|
2808
2823
|
}, z.core.$strip>>;
|
|
2809
2824
|
release: z.ZodString;
|
|
2810
2825
|
interaction: z.ZodEnum<{
|
|
2826
|
+
staff: "staff";
|
|
2811
2827
|
quiz: "quiz";
|
|
2812
|
-
url: "url";
|
|
2813
2828
|
text: "text";
|
|
2814
|
-
|
|
2829
|
+
url: "url";
|
|
2815
2830
|
photo: "photo";
|
|
2816
2831
|
automatic: "automatic";
|
|
2817
2832
|
claim: "claim";
|
|
@@ -2873,10 +2888,10 @@ declare const questExperienceSchema: z.ZodObject<{
|
|
|
2873
2888
|
}, z.core.$strict>>;
|
|
2874
2889
|
}, z.core.$strict>>;
|
|
2875
2890
|
connections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
2876
|
-
x: "x";
|
|
2877
2891
|
discord: "discord";
|
|
2878
2892
|
google: "google";
|
|
2879
2893
|
apple: "apple";
|
|
2894
|
+
x: "x";
|
|
2880
2895
|
}>>>;
|
|
2881
2896
|
trigger: z.ZodUnion<readonly [z.ZodObject<{
|
|
2882
2897
|
kind: z.ZodLiteral<"manual">;
|
|
@@ -2954,8 +2969,8 @@ declare const questExperienceSchema: z.ZodObject<{
|
|
|
2954
2969
|
kind: z.ZodLiteral<"available">;
|
|
2955
2970
|
input: z.ZodEnum<{
|
|
2956
2971
|
quiz: "quiz";
|
|
2957
|
-
url: "url";
|
|
2958
2972
|
text: "text";
|
|
2973
|
+
url: "url";
|
|
2959
2974
|
photo: "photo";
|
|
2960
2975
|
none: "none";
|
|
2961
2976
|
}>;
|
|
@@ -3027,8 +3042,8 @@ declare const questExperienceSchema: z.ZodObject<{
|
|
|
3027
3042
|
}, z.core.$strip>>>;
|
|
3028
3043
|
completionCount: z.ZodDefault<z.ZodNumber>;
|
|
3029
3044
|
visibility: z.ZodDefault<z.ZodEnum<{
|
|
3030
|
-
hidden: "hidden";
|
|
3031
3045
|
visible: "visible";
|
|
3046
|
+
hidden: "hidden";
|
|
3032
3047
|
}>>;
|
|
3033
3048
|
missing: z.ZodArray<z.ZodObject<{
|
|
3034
3049
|
quest: z.ZodString;
|
|
@@ -3054,12 +3069,12 @@ declare const questExperienceSchema: z.ZodObject<{
|
|
|
3054
3069
|
value: z.ZodString;
|
|
3055
3070
|
}, z.core.$strict>]>>;
|
|
3056
3071
|
status: z.ZodEnum<{
|
|
3057
|
-
"needs-review": "needs-review";
|
|
3058
3072
|
queued: "queued";
|
|
3059
3073
|
evaluating: "evaluating";
|
|
3060
3074
|
accepted: "accepted";
|
|
3061
3075
|
progressed: "progressed";
|
|
3062
3076
|
rejected: "rejected";
|
|
3077
|
+
"needs-review": "needs-review";
|
|
3063
3078
|
failed: "failed";
|
|
3064
3079
|
}>;
|
|
3065
3080
|
reason: z.ZodNullable<z.ZodString>;
|
|
@@ -3097,10 +3112,10 @@ declare const questExperienceSchema: z.ZodObject<{
|
|
|
3097
3112
|
}, z.core.$strip>>;
|
|
3098
3113
|
release: z.ZodString;
|
|
3099
3114
|
interaction: z.ZodEnum<{
|
|
3115
|
+
staff: "staff";
|
|
3100
3116
|
quiz: "quiz";
|
|
3101
|
-
url: "url";
|
|
3102
3117
|
text: "text";
|
|
3103
|
-
|
|
3118
|
+
url: "url";
|
|
3104
3119
|
photo: "photo";
|
|
3105
3120
|
automatic: "automatic";
|
|
3106
3121
|
claim: "claim";
|
|
@@ -3442,19 +3457,22 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
|
|
|
3442
3457
|
kind: z.ZodLiteral<"keyed">;
|
|
3443
3458
|
}, z.core.$strict>], "kind">;
|
|
3444
3459
|
visibility: z.ZodDefault<z.ZodEnum<{
|
|
3445
|
-
hidden: "hidden";
|
|
3446
3460
|
visible: "visible";
|
|
3461
|
+
hidden: "hidden";
|
|
3447
3462
|
}>>;
|
|
3463
|
+
profile: z.ZodOptional<z.ZodObject<{
|
|
3464
|
+
visible: z.ZodBoolean;
|
|
3465
|
+
}, z.core.$strict>>;
|
|
3448
3466
|
budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
3449
3467
|
id: z.ZodString;
|
|
3450
3468
|
scope: z.ZodEnum<{
|
|
3451
|
-
member: "member";
|
|
3452
3469
|
project: "project";
|
|
3470
|
+
member: "member";
|
|
3453
3471
|
}>;
|
|
3454
3472
|
period: z.ZodEnum<{
|
|
3455
3473
|
day: "day";
|
|
3456
|
-
lifetime: "lifetime";
|
|
3457
3474
|
week: "week";
|
|
3475
|
+
lifetime: "lifetime";
|
|
3458
3476
|
}>;
|
|
3459
3477
|
limit: z.ZodNumber;
|
|
3460
3478
|
cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
@@ -3546,7 +3564,7 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
|
|
|
3546
3564
|
createdAt: z.ZodNumber;
|
|
3547
3565
|
}, z.core.$strip>, z.ZodTransform<{
|
|
3548
3566
|
quest: string;
|
|
3549
|
-
runtimeVersion:
|
|
3567
|
+
runtimeVersion: 2 | 1;
|
|
3550
3568
|
title: string;
|
|
3551
3569
|
presentation: {
|
|
3552
3570
|
quiz?: {
|
|
@@ -3583,12 +3601,12 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
|
|
|
3583
3601
|
kind: "resource";
|
|
3584
3602
|
default: string;
|
|
3585
3603
|
source: {
|
|
3604
|
+
provider: "domino";
|
|
3605
|
+
resource: "point-ledger";
|
|
3606
|
+
} | {
|
|
3586
3607
|
provider: "discord";
|
|
3587
3608
|
resource: "channel";
|
|
3588
3609
|
types: ("text" | "announcement")[];
|
|
3589
|
-
} | {
|
|
3590
|
-
provider: "domino";
|
|
3591
|
-
resource: "point-ledger";
|
|
3592
3610
|
} | {
|
|
3593
3611
|
provider: "discord";
|
|
3594
3612
|
resource: "role";
|
|
@@ -3729,11 +3747,11 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
|
|
|
3729
3747
|
} | {
|
|
3730
3748
|
kind: "keyed";
|
|
3731
3749
|
};
|
|
3732
|
-
visibility: "
|
|
3750
|
+
visibility: "visible" | "hidden";
|
|
3733
3751
|
budgets: {
|
|
3734
3752
|
id: string;
|
|
3735
|
-
scope: "
|
|
3736
|
-
period: "day" | "
|
|
3753
|
+
scope: "project" | "member";
|
|
3754
|
+
period: "day" | "week" | "lifetime";
|
|
3737
3755
|
limit: number;
|
|
3738
3756
|
cost: number | {
|
|
3739
3757
|
balance: string;
|
|
@@ -3749,6 +3767,9 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
|
|
|
3749
3767
|
metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
|
|
3750
3768
|
maxAgeMs: number;
|
|
3751
3769
|
} | undefined;
|
|
3770
|
+
profile?: {
|
|
3771
|
+
visible: boolean;
|
|
3772
|
+
} | undefined;
|
|
3752
3773
|
key?: string | undefined;
|
|
3753
3774
|
origin?: {
|
|
3754
3775
|
typeVersion: string;
|
|
@@ -3866,13 +3887,7 @@ declare const profileVisibilitySchema: z.ZodEnum<{
|
|
|
3866
3887
|
public: "public";
|
|
3867
3888
|
}>;
|
|
3868
3889
|
type ProfileVisibility = z.infer<typeof profileVisibilitySchema>;
|
|
3869
|
-
/**
|
|
3870
|
-
declare const profileDefaultsSchema: z.ZodEnum<{
|
|
3871
|
-
accounts: "accounts";
|
|
3872
|
-
generated: "generated";
|
|
3873
|
-
}>;
|
|
3874
|
-
type ProfileDefaults = z.infer<typeof profileDefaultsSchema>;
|
|
3875
|
-
/** Connected accounts a member can take a picture from. Only X and Discord supply defaults. */
|
|
3890
|
+
/** Connected accounts a member can take a picture from. */
|
|
3876
3891
|
declare const avatarProviderSchema: z.ZodEnum<{
|
|
3877
3892
|
discord: "discord";
|
|
3878
3893
|
x: "x";
|
|
@@ -3880,9 +3895,26 @@ declare const avatarProviderSchema: z.ZodEnum<{
|
|
|
3880
3895
|
}>;
|
|
3881
3896
|
type AvatarProvider = z.infer<typeof avatarProviderSchema>;
|
|
3882
3897
|
/**
|
|
3883
|
-
* The
|
|
3884
|
-
*
|
|
3885
|
-
|
|
3898
|
+
* The accounts that can supply a default name and picture: public personas. Google and Apple
|
|
3899
|
+
* accounts are usually a legal name and a personal photo, so they never do.
|
|
3900
|
+
*/
|
|
3901
|
+
declare const profileDefaultProviderSchema: z.ZodEnum<{
|
|
3902
|
+
discord: "discord";
|
|
3903
|
+
x: "x";
|
|
3904
|
+
}>;
|
|
3905
|
+
type ProfileDefaultProvider = z.infer<typeof profileDefaultProviderSchema>;
|
|
3906
|
+
/**
|
|
3907
|
+
* Where a profile's name and picture come from before the member chooses: the first of these
|
|
3908
|
+
* accounts the member connected that has one, in order. Empty means generated values.
|
|
3909
|
+
*/
|
|
3910
|
+
declare const profileDefaultsSchema: z.ZodArray<z.ZodEnum<{
|
|
3911
|
+
discord: "discord";
|
|
3912
|
+
x: "x";
|
|
3913
|
+
}>>;
|
|
3914
|
+
type ProfileDefaults = z.infer<typeof profileDefaultsSchema>;
|
|
3915
|
+
/**
|
|
3916
|
+
* The seed of a generated avatar (`defaultAvatar`), the same one `relay.me.get()` returns: an HMAC
|
|
3917
|
+
* of the member under the project's secret, so it reveals nothing about the member.
|
|
3886
3918
|
*/
|
|
3887
3919
|
declare const avatarSeedSchema: z.ZodString;
|
|
3888
3920
|
/**
|
|
@@ -4007,59 +4039,50 @@ declare const ownProfileSchema: z.ZodObject<{
|
|
|
4007
4039
|
}, z.core.$strip>>;
|
|
4008
4040
|
}, z.core.$strip>;
|
|
4009
4041
|
type OwnProfile = z.infer<typeof ownProfileSchema>;
|
|
4010
|
-
/** A profile
|
|
4011
|
-
declare const
|
|
4012
|
-
|
|
4013
|
-
|
|
4014
|
-
|
|
4015
|
-
|
|
4016
|
-
|
|
4017
|
-
|
|
4018
|
-
|
|
4019
|
-
|
|
4020
|
-
|
|
4021
|
-
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
|
|
4025
|
-
|
|
4026
|
-
|
|
4027
|
-
|
|
4028
|
-
|
|
4029
|
-
|
|
4030
|
-
|
|
4031
|
-
self: z.ZodBoolean;
|
|
4032
|
-
leaderboards: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
4033
|
-
leaderboard: z.ZodString;
|
|
4034
|
-
key: z.ZodOptional<z.ZodString>;
|
|
4035
|
-
title: z.ZodString;
|
|
4036
|
-
rank: z.ZodNumber;
|
|
4037
|
-
score: z.ZodNumber;
|
|
4038
|
-
total: z.ZodNumber;
|
|
4039
|
-
}, z.core.$strip>>>;
|
|
4040
|
-
quests: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
4042
|
+
/** A page of a profile's quest completions: `limit` quests (default 20, at most 100) after `cursor`. */
|
|
4043
|
+
declare const profileCompletionQuerySchema: z.ZodObject<{
|
|
4044
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
4045
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
4046
|
+
}, z.core.$strict>;
|
|
4047
|
+
type ProfileCompletionQuery = z.input<typeof profileCompletionQuerySchema>;
|
|
4048
|
+
/** A quest the member completed, grouped over its completions. */
|
|
4049
|
+
declare const profileCompletionSchema: z.ZodObject<{
|
|
4050
|
+
quest: z.ZodString;
|
|
4051
|
+
key: z.ZodOptional<z.ZodString>;
|
|
4052
|
+
title: z.ZodString;
|
|
4053
|
+
completions: z.ZodNumber;
|
|
4054
|
+
lastCompletedAt: z.ZodNullable<z.ZodNumber>;
|
|
4055
|
+
}, z.core.$strip>;
|
|
4056
|
+
type ProfileCompletion = z.infer<typeof profileCompletionSchema>;
|
|
4057
|
+
/**
|
|
4058
|
+
* A profile's completions of the quests that show on profiles (`defineQuest({ profile: { visible:
|
|
4059
|
+
* true } })`), most recently completed first. Pass `nextCursor` as `cursor` for the next page.
|
|
4060
|
+
*/
|
|
4061
|
+
declare const profileCompletionPageSchema: z.ZodObject<{
|
|
4062
|
+
items: z.ZodArray<z.ZodObject<{
|
|
4041
4063
|
quest: z.ZodString;
|
|
4042
4064
|
key: z.ZodOptional<z.ZodString>;
|
|
4043
4065
|
title: z.ZodString;
|
|
4044
4066
|
completions: z.ZodNumber;
|
|
4045
4067
|
lastCompletedAt: z.ZodNullable<z.ZodNumber>;
|
|
4046
|
-
}, z.core.$strip
|
|
4047
|
-
|
|
4048
|
-
|
|
4049
|
-
|
|
4050
|
-
|
|
4051
|
-
|
|
4052
|
-
|
|
4053
|
-
|
|
4054
|
-
|
|
4055
|
-
|
|
4056
|
-
|
|
4057
|
-
|
|
4058
|
-
|
|
4059
|
-
|
|
4068
|
+
}, z.core.$strip>>;
|
|
4069
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
4070
|
+
}, z.core.$strip>;
|
|
4071
|
+
type ProfileCompletionPage = z.infer<typeof profileCompletionPageSchema>;
|
|
4072
|
+
/** A profile's progress in one referral program: counts only, never codes or accounts. */
|
|
4073
|
+
declare const profileReferralSchema: z.ZodObject<{
|
|
4074
|
+
program: z.ZodString;
|
|
4075
|
+
key: z.ZodOptional<z.ZodString>;
|
|
4076
|
+
title: z.ZodString;
|
|
4077
|
+
invited: z.ZodNumber;
|
|
4078
|
+
qualified: z.ZodNumber;
|
|
4079
|
+
milestones: z.ZodArray<z.ZodObject<{
|
|
4080
|
+
id: z.ZodString;
|
|
4081
|
+
count: z.ZodNumber;
|
|
4082
|
+
reached: z.ZodBoolean;
|
|
4060
4083
|
}, z.core.$strip>>;
|
|
4061
4084
|
}, z.core.$strip>;
|
|
4062
|
-
type
|
|
4085
|
+
type ProfileReferral = z.infer<typeof profileReferralSchema>;
|
|
4063
4086
|
/** A project's profile settings in one environment. */
|
|
4064
4087
|
declare const profileSettingsSchema: z.ZodObject<{
|
|
4065
4088
|
visibility: z.ZodEnum<{
|
|
@@ -4067,15 +4090,10 @@ declare const profileSettingsSchema: z.ZodObject<{
|
|
|
4067
4090
|
participants: "participants";
|
|
4068
4091
|
public: "public";
|
|
4069
4092
|
}>;
|
|
4070
|
-
defaults: z.ZodEnum<{
|
|
4071
|
-
|
|
4072
|
-
|
|
4073
|
-
}
|
|
4074
|
-
sections: z.ZodObject<{
|
|
4075
|
-
leaderboards: z.ZodBoolean;
|
|
4076
|
-
quests: z.ZodBoolean;
|
|
4077
|
-
referrals: z.ZodBoolean;
|
|
4078
|
-
}, z.core.$strip>;
|
|
4093
|
+
defaults: z.ZodArray<z.ZodEnum<{
|
|
4094
|
+
discord: "discord";
|
|
4095
|
+
x: "x";
|
|
4096
|
+
}>>;
|
|
4079
4097
|
revision: z.ZodNumber;
|
|
4080
4098
|
actor: z.ZodNullable<z.ZodString>;
|
|
4081
4099
|
updatedAt: z.ZodNullable<z.ZodNumber>;
|
|
@@ -4087,15 +4105,10 @@ declare const profileSettingsInputSchema: z.ZodObject<{
|
|
|
4087
4105
|
participants: "participants";
|
|
4088
4106
|
public: "public";
|
|
4089
4107
|
}>;
|
|
4090
|
-
defaults: z.ZodEnum<{
|
|
4091
|
-
|
|
4092
|
-
|
|
4093
|
-
}
|
|
4094
|
-
sections: z.ZodObject<{
|
|
4095
|
-
leaderboards: z.ZodBoolean;
|
|
4096
|
-
quests: z.ZodBoolean;
|
|
4097
|
-
referrals: z.ZodBoolean;
|
|
4098
|
-
}, z.core.$strip>;
|
|
4108
|
+
defaults: z.ZodArray<z.ZodEnum<{
|
|
4109
|
+
discord: "discord";
|
|
4110
|
+
x: "x";
|
|
4111
|
+
}>>;
|
|
4099
4112
|
actionId: z.ZodString;
|
|
4100
4113
|
expectedRevision: z.ZodNumber;
|
|
4101
4114
|
reason: z.ZodString;
|
|
@@ -4160,7 +4173,10 @@ type ManagedProfile = z.infer<typeof managedProfileSchema>;
|
|
|
4160
4173
|
/** The largest avatar upload, and the types an upload can have. */
|
|
4161
4174
|
declare const AVATAR_UPLOAD_LIMIT: number;
|
|
4162
4175
|
declare const avatarUploadTypes: string[];
|
|
4163
|
-
/**
|
|
4176
|
+
/**
|
|
4177
|
+
* The profile routes hosted proxies and the API's scope selector admit, with their methods: the
|
|
4178
|
+
* member's own profile, and the reads keyed by a public profile ID.
|
|
4179
|
+
*/
|
|
4164
4180
|
declare function isProfileParticipantRoute(path: string, method: string): boolean;
|
|
4165
4181
|
|
|
4166
4182
|
declare const pointLedgerPropertiesSchema: z.ZodObject<{
|
|
@@ -4206,8 +4222,8 @@ declare const rewardDeliverySchema: z.ZodObject<{
|
|
|
4206
4222
|
action: z.ZodLiteral<"grant-role">;
|
|
4207
4223
|
roleId: z.ZodString;
|
|
4208
4224
|
status: z.ZodEnum<{
|
|
4209
|
-
pending: "pending";
|
|
4210
4225
|
failed: "failed";
|
|
4226
|
+
pending: "pending";
|
|
4211
4227
|
delivered: "delivered";
|
|
4212
4228
|
}>;
|
|
4213
4229
|
attempts: z.ZodNumber;
|
|
@@ -4226,8 +4242,8 @@ declare const rewardDeliveriesSchema: z.ZodObject<{
|
|
|
4226
4242
|
action: z.ZodLiteral<"grant-role">;
|
|
4227
4243
|
roleId: z.ZodString;
|
|
4228
4244
|
status: z.ZodEnum<{
|
|
4229
|
-
pending: "pending";
|
|
4230
4245
|
failed: "failed";
|
|
4246
|
+
pending: "pending";
|
|
4231
4247
|
delivered: "delivered";
|
|
4232
4248
|
}>;
|
|
4233
4249
|
attempts: z.ZodNumber;
|
|
@@ -4420,10 +4436,10 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
|
|
|
4420
4436
|
}>;
|
|
4421
4437
|
}, z.core.$strip>>>;
|
|
4422
4438
|
supportedInteractions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
4439
|
+
staff: "staff";
|
|
4423
4440
|
quiz: "quiz";
|
|
4424
|
-
url: "url";
|
|
4425
4441
|
text: "text";
|
|
4426
|
-
|
|
4442
|
+
url: "url";
|
|
4427
4443
|
photo: "photo";
|
|
4428
4444
|
automatic: "automatic";
|
|
4429
4445
|
claim: "claim";
|
|
@@ -4504,6 +4520,7 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
|
|
|
4504
4520
|
tier: z.ZodString;
|
|
4505
4521
|
}, z.core.$strict>]>>>;
|
|
4506
4522
|
}, z.core.$strict>>;
|
|
4523
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
4507
4524
|
qualification: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4508
4525
|
kind: z.ZodLiteral<"signup">;
|
|
4509
4526
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -4512,7 +4529,6 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
|
|
|
4512
4529
|
}, z.core.$strict>, z.ZodObject<{
|
|
4513
4530
|
kind: z.ZodLiteral<"external">;
|
|
4514
4531
|
}, z.core.$strict>], "kind">;
|
|
4515
|
-
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
4516
4532
|
inviterGroup: z.ZodOptional<z.ZodString>;
|
|
4517
4533
|
milestones: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
4518
4534
|
id: z.ZodString;
|
|
@@ -4599,6 +4615,7 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
|
|
|
4599
4615
|
amount: number;
|
|
4600
4616
|
})[];
|
|
4601
4617
|
};
|
|
4618
|
+
enabled: boolean;
|
|
4602
4619
|
qualification: {
|
|
4603
4620
|
kind: "signup";
|
|
4604
4621
|
} | {
|
|
@@ -4607,7 +4624,6 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
|
|
|
4607
4624
|
} | {
|
|
4608
4625
|
kind: "external";
|
|
4609
4626
|
};
|
|
4610
|
-
enabled: boolean;
|
|
4611
4627
|
milestones: {
|
|
4612
4628
|
id: string;
|
|
4613
4629
|
count: number;
|
|
@@ -4696,6 +4712,7 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
|
|
|
4696
4712
|
amount: number;
|
|
4697
4713
|
})[];
|
|
4698
4714
|
};
|
|
4715
|
+
enabled: boolean;
|
|
4699
4716
|
qualification: {
|
|
4700
4717
|
kind: "signup";
|
|
4701
4718
|
} | {
|
|
@@ -4704,7 +4721,6 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
|
|
|
4704
4721
|
} | {
|
|
4705
4722
|
kind: "external";
|
|
4706
4723
|
};
|
|
4707
|
-
enabled: boolean;
|
|
4708
4724
|
milestones: {
|
|
4709
4725
|
id: string;
|
|
4710
4726
|
count: number;
|
|
@@ -4749,7 +4765,6 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
|
|
|
4749
4765
|
leaderboards: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
|
|
4750
4766
|
title: z.ZodString;
|
|
4751
4767
|
balance: z.ZodString;
|
|
4752
|
-
group: z.ZodOptional<z.ZodString>;
|
|
4753
4768
|
score: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4754
4769
|
kind: z.ZodLiteral<"balance">;
|
|
4755
4770
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -4798,6 +4813,7 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
|
|
|
4798
4813
|
participants: "participants";
|
|
4799
4814
|
public: "public";
|
|
4800
4815
|
}>>;
|
|
4816
|
+
group: z.ZodOptional<z.ZodString>;
|
|
4801
4817
|
key: z.ZodOptional<z.ZodString>;
|
|
4802
4818
|
id: z.ZodOptional<z.ZodString>;
|
|
4803
4819
|
}, z.core.$strict>, z.ZodTransform<Omit<{
|
|
@@ -4922,10 +4938,10 @@ declare const projectDeploymentSchema: z.ZodObject<{
|
|
|
4922
4938
|
}>;
|
|
4923
4939
|
}, z.core.$strip>>>;
|
|
4924
4940
|
supportedInteractions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
4941
|
+
staff: "staff";
|
|
4925
4942
|
quiz: "quiz";
|
|
4926
|
-
url: "url";
|
|
4927
4943
|
text: "text";
|
|
4928
|
-
|
|
4944
|
+
url: "url";
|
|
4929
4945
|
photo: "photo";
|
|
4930
4946
|
automatic: "automatic";
|
|
4931
4947
|
claim: "claim";
|
|
@@ -5006,6 +5022,7 @@ declare const projectDeploymentSchema: z.ZodObject<{
|
|
|
5006
5022
|
tier: z.ZodString;
|
|
5007
5023
|
}, z.core.$strict>]>>>;
|
|
5008
5024
|
}, z.core.$strict>>;
|
|
5025
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
5009
5026
|
qualification: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5010
5027
|
kind: z.ZodLiteral<"signup">;
|
|
5011
5028
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -5014,7 +5031,6 @@ declare const projectDeploymentSchema: z.ZodObject<{
|
|
|
5014
5031
|
}, z.core.$strict>, z.ZodObject<{
|
|
5015
5032
|
kind: z.ZodLiteral<"external">;
|
|
5016
5033
|
}, z.core.$strict>], "kind">;
|
|
5017
|
-
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
5018
5034
|
inviterGroup: z.ZodOptional<z.ZodString>;
|
|
5019
5035
|
milestones: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
5020
5036
|
id: z.ZodString;
|
|
@@ -5101,6 +5117,7 @@ declare const projectDeploymentSchema: z.ZodObject<{
|
|
|
5101
5117
|
amount: number;
|
|
5102
5118
|
})[];
|
|
5103
5119
|
};
|
|
5120
|
+
enabled: boolean;
|
|
5104
5121
|
qualification: {
|
|
5105
5122
|
kind: "signup";
|
|
5106
5123
|
} | {
|
|
@@ -5109,7 +5126,6 @@ declare const projectDeploymentSchema: z.ZodObject<{
|
|
|
5109
5126
|
} | {
|
|
5110
5127
|
kind: "external";
|
|
5111
5128
|
};
|
|
5112
|
-
enabled: boolean;
|
|
5113
5129
|
milestones: {
|
|
5114
5130
|
id: string;
|
|
5115
5131
|
count: number;
|
|
@@ -5198,6 +5214,7 @@ declare const projectDeploymentSchema: z.ZodObject<{
|
|
|
5198
5214
|
amount: number;
|
|
5199
5215
|
})[];
|
|
5200
5216
|
};
|
|
5217
|
+
enabled: boolean;
|
|
5201
5218
|
qualification: {
|
|
5202
5219
|
kind: "signup";
|
|
5203
5220
|
} | {
|
|
@@ -5206,7 +5223,6 @@ declare const projectDeploymentSchema: z.ZodObject<{
|
|
|
5206
5223
|
} | {
|
|
5207
5224
|
kind: "external";
|
|
5208
5225
|
};
|
|
5209
|
-
enabled: boolean;
|
|
5210
5226
|
milestones: {
|
|
5211
5227
|
id: string;
|
|
5212
5228
|
count: number;
|
|
@@ -5251,7 +5267,6 @@ declare const projectDeploymentSchema: z.ZodObject<{
|
|
|
5251
5267
|
leaderboards: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
|
|
5252
5268
|
title: z.ZodString;
|
|
5253
5269
|
balance: z.ZodString;
|
|
5254
|
-
group: z.ZodOptional<z.ZodString>;
|
|
5255
5270
|
score: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5256
5271
|
kind: z.ZodLiteral<"balance">;
|
|
5257
5272
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -5300,6 +5315,7 @@ declare const projectDeploymentSchema: z.ZodObject<{
|
|
|
5300
5315
|
participants: "participants";
|
|
5301
5316
|
public: "public";
|
|
5302
5317
|
}>>;
|
|
5318
|
+
group: z.ZodOptional<z.ZodString>;
|
|
5303
5319
|
key: z.ZodOptional<z.ZodString>;
|
|
5304
5320
|
id: z.ZodOptional<z.ZodString>;
|
|
5305
5321
|
}, z.core.$strict>, z.ZodTransform<Omit<{
|
|
@@ -5800,19 +5816,22 @@ declare const deploymentPreviewSchema: z.ZodObject<{
|
|
|
5800
5816
|
kind: z.ZodLiteral<"keyed">;
|
|
5801
5817
|
}, z.core.$strict>], "kind">;
|
|
5802
5818
|
visibility: z.ZodDefault<z.ZodEnum<{
|
|
5803
|
-
hidden: "hidden";
|
|
5804
5819
|
visible: "visible";
|
|
5820
|
+
hidden: "hidden";
|
|
5805
5821
|
}>>;
|
|
5822
|
+
profile: z.ZodOptional<z.ZodObject<{
|
|
5823
|
+
visible: z.ZodBoolean;
|
|
5824
|
+
}, z.core.$strict>>;
|
|
5806
5825
|
budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
5807
5826
|
id: z.ZodString;
|
|
5808
5827
|
scope: z.ZodEnum<{
|
|
5809
|
-
member: "member";
|
|
5810
5828
|
project: "project";
|
|
5829
|
+
member: "member";
|
|
5811
5830
|
}>;
|
|
5812
5831
|
period: z.ZodEnum<{
|
|
5813
5832
|
day: "day";
|
|
5814
|
-
lifetime: "lifetime";
|
|
5815
5833
|
week: "week";
|
|
5834
|
+
lifetime: "lifetime";
|
|
5816
5835
|
}>;
|
|
5817
5836
|
limit: z.ZodNumber;
|
|
5818
5837
|
cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
@@ -5904,7 +5923,7 @@ declare const deploymentPreviewSchema: z.ZodObject<{
|
|
|
5904
5923
|
createdAt: z.ZodNumber;
|
|
5905
5924
|
}, z.core.$strip>, z.ZodTransform<{
|
|
5906
5925
|
quest: string;
|
|
5907
|
-
runtimeVersion:
|
|
5926
|
+
runtimeVersion: 2 | 1;
|
|
5908
5927
|
title: string;
|
|
5909
5928
|
presentation: {
|
|
5910
5929
|
quiz?: {
|
|
@@ -5941,12 +5960,12 @@ declare const deploymentPreviewSchema: z.ZodObject<{
|
|
|
5941
5960
|
kind: "resource";
|
|
5942
5961
|
default: string;
|
|
5943
5962
|
source: {
|
|
5963
|
+
provider: "domino";
|
|
5964
|
+
resource: "point-ledger";
|
|
5965
|
+
} | {
|
|
5944
5966
|
provider: "discord";
|
|
5945
5967
|
resource: "channel";
|
|
5946
5968
|
types: ("text" | "announcement")[];
|
|
5947
|
-
} | {
|
|
5948
|
-
provider: "domino";
|
|
5949
|
-
resource: "point-ledger";
|
|
5950
5969
|
} | {
|
|
5951
5970
|
provider: "discord";
|
|
5952
5971
|
resource: "role";
|
|
@@ -6087,11 +6106,11 @@ declare const deploymentPreviewSchema: z.ZodObject<{
|
|
|
6087
6106
|
} | {
|
|
6088
6107
|
kind: "keyed";
|
|
6089
6108
|
};
|
|
6090
|
-
visibility: "
|
|
6109
|
+
visibility: "visible" | "hidden";
|
|
6091
6110
|
budgets: {
|
|
6092
6111
|
id: string;
|
|
6093
|
-
scope: "
|
|
6094
|
-
period: "day" | "
|
|
6112
|
+
scope: "project" | "member";
|
|
6113
|
+
period: "day" | "week" | "lifetime";
|
|
6095
6114
|
limit: number;
|
|
6096
6115
|
cost: number | {
|
|
6097
6116
|
balance: string;
|
|
@@ -6107,6 +6126,9 @@ declare const deploymentPreviewSchema: z.ZodObject<{
|
|
|
6107
6126
|
metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
|
|
6108
6127
|
maxAgeMs: number;
|
|
6109
6128
|
} | undefined;
|
|
6129
|
+
profile?: {
|
|
6130
|
+
visible: boolean;
|
|
6131
|
+
} | undefined;
|
|
6110
6132
|
key?: string | undefined;
|
|
6111
6133
|
origin?: {
|
|
6112
6134
|
typeVersion: string;
|
|
@@ -6405,19 +6427,22 @@ declare const deploymentPreviewSchema: z.ZodObject<{
|
|
|
6405
6427
|
kind: z.ZodLiteral<"keyed">;
|
|
6406
6428
|
}, z.core.$strict>], "kind">;
|
|
6407
6429
|
visibility: z.ZodDefault<z.ZodEnum<{
|
|
6408
|
-
hidden: "hidden";
|
|
6409
6430
|
visible: "visible";
|
|
6431
|
+
hidden: "hidden";
|
|
6410
6432
|
}>>;
|
|
6433
|
+
profile: z.ZodOptional<z.ZodObject<{
|
|
6434
|
+
visible: z.ZodBoolean;
|
|
6435
|
+
}, z.core.$strict>>;
|
|
6411
6436
|
budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
6412
6437
|
id: z.ZodString;
|
|
6413
6438
|
scope: z.ZodEnum<{
|
|
6414
|
-
member: "member";
|
|
6415
6439
|
project: "project";
|
|
6440
|
+
member: "member";
|
|
6416
6441
|
}>;
|
|
6417
6442
|
period: z.ZodEnum<{
|
|
6418
6443
|
day: "day";
|
|
6419
|
-
lifetime: "lifetime";
|
|
6420
6444
|
week: "week";
|
|
6445
|
+
lifetime: "lifetime";
|
|
6421
6446
|
}>;
|
|
6422
6447
|
limit: z.ZodNumber;
|
|
6423
6448
|
cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
@@ -6441,10 +6466,10 @@ declare const deploymentPreviewSchema: z.ZodObject<{
|
|
|
6441
6466
|
quests: z.ZodArray<z.ZodString>;
|
|
6442
6467
|
}, z.core.$strict>>;
|
|
6443
6468
|
supportedInteractions: z.ZodArray<z.ZodEnum<{
|
|
6469
|
+
staff: "staff";
|
|
6444
6470
|
quiz: "quiz";
|
|
6445
|
-
url: "url";
|
|
6446
6471
|
text: "text";
|
|
6447
|
-
|
|
6472
|
+
url: "url";
|
|
6448
6473
|
photo: "photo";
|
|
6449
6474
|
automatic: "automatic";
|
|
6450
6475
|
claim: "claim";
|
|
@@ -6643,9 +6668,9 @@ declare const deploymentPreviewSchema: z.ZodObject<{
|
|
|
6643
6668
|
}, z.core.$strip>, z.ZodObject<{
|
|
6644
6669
|
source: z.ZodLiteral<"account">;
|
|
6645
6670
|
provider: z.ZodEnum<{
|
|
6646
|
-
x: "x";
|
|
6647
6671
|
discord: "discord";
|
|
6648
6672
|
google: "google";
|
|
6673
|
+
x: "x";
|
|
6649
6674
|
}>;
|
|
6650
6675
|
url: z.ZodString;
|
|
6651
6676
|
seed: z.ZodString;
|
|
@@ -6671,9 +6696,9 @@ declare const deploymentPreviewSchema: z.ZodObject<{
|
|
|
6671
6696
|
}, z.core.$strip>, z.ZodObject<{
|
|
6672
6697
|
source: z.ZodLiteral<"account">;
|
|
6673
6698
|
provider: z.ZodEnum<{
|
|
6674
|
-
x: "x";
|
|
6675
6699
|
discord: "discord";
|
|
6676
6700
|
google: "google";
|
|
6701
|
+
x: "x";
|
|
6677
6702
|
}>;
|
|
6678
6703
|
url: z.ZodString;
|
|
6679
6704
|
seed: z.ZodString;
|
|
@@ -6699,9 +6724,9 @@ declare const deploymentPreviewSchema: z.ZodObject<{
|
|
|
6699
6724
|
}, z.core.$strip>, z.ZodObject<{
|
|
6700
6725
|
source: z.ZodLiteral<"account">;
|
|
6701
6726
|
provider: z.ZodEnum<{
|
|
6702
|
-
x: "x";
|
|
6703
6727
|
discord: "discord";
|
|
6704
6728
|
google: "google";
|
|
6729
|
+
x: "x";
|
|
6705
6730
|
}>;
|
|
6706
6731
|
url: z.ZodString;
|
|
6707
6732
|
seed: z.ZodString;
|
|
@@ -6745,9 +6770,9 @@ declare const deploymentPreviewSchema: z.ZodObject<{
|
|
|
6745
6770
|
}, z.core.$strip>, z.ZodObject<{
|
|
6746
6771
|
source: z.ZodLiteral<"account">;
|
|
6747
6772
|
provider: z.ZodEnum<{
|
|
6748
|
-
x: "x";
|
|
6749
6773
|
discord: "discord";
|
|
6750
6774
|
google: "google";
|
|
6775
|
+
x: "x";
|
|
6751
6776
|
}>;
|
|
6752
6777
|
url: z.ZodString;
|
|
6753
6778
|
seed: z.ZodString;
|
|
@@ -6773,9 +6798,9 @@ declare const deploymentPreviewSchema: z.ZodObject<{
|
|
|
6773
6798
|
}, z.core.$strip>, z.ZodObject<{
|
|
6774
6799
|
source: z.ZodLiteral<"account">;
|
|
6775
6800
|
provider: z.ZodEnum<{
|
|
6776
|
-
x: "x";
|
|
6777
6801
|
discord: "discord";
|
|
6778
6802
|
google: "google";
|
|
6803
|
+
x: "x";
|
|
6779
6804
|
}>;
|
|
6780
6805
|
url: z.ZodString;
|
|
6781
6806
|
seed: z.ZodString;
|
|
@@ -6801,9 +6826,9 @@ declare const deploymentPreviewSchema: z.ZodObject<{
|
|
|
6801
6826
|
}, z.core.$strip>, z.ZodObject<{
|
|
6802
6827
|
source: z.ZodLiteral<"account">;
|
|
6803
6828
|
provider: z.ZodEnum<{
|
|
6804
|
-
x: "x";
|
|
6805
6829
|
discord: "discord";
|
|
6806
6830
|
google: "google";
|
|
6831
|
+
x: "x";
|
|
6807
6832
|
}>;
|
|
6808
6833
|
url: z.ZodString;
|
|
6809
6834
|
seed: z.ZodString;
|
|
@@ -7215,19 +7240,22 @@ declare const deploymentResultSchema: z.ZodObject<{
|
|
|
7215
7240
|
kind: z.ZodLiteral<"keyed">;
|
|
7216
7241
|
}, z.core.$strict>], "kind">;
|
|
7217
7242
|
visibility: z.ZodDefault<z.ZodEnum<{
|
|
7218
|
-
hidden: "hidden";
|
|
7219
7243
|
visible: "visible";
|
|
7244
|
+
hidden: "hidden";
|
|
7220
7245
|
}>>;
|
|
7246
|
+
profile: z.ZodOptional<z.ZodObject<{
|
|
7247
|
+
visible: z.ZodBoolean;
|
|
7248
|
+
}, z.core.$strict>>;
|
|
7221
7249
|
budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
7222
7250
|
id: z.ZodString;
|
|
7223
7251
|
scope: z.ZodEnum<{
|
|
7224
|
-
member: "member";
|
|
7225
7252
|
project: "project";
|
|
7253
|
+
member: "member";
|
|
7226
7254
|
}>;
|
|
7227
7255
|
period: z.ZodEnum<{
|
|
7228
7256
|
day: "day";
|
|
7229
|
-
lifetime: "lifetime";
|
|
7230
7257
|
week: "week";
|
|
7258
|
+
lifetime: "lifetime";
|
|
7231
7259
|
}>;
|
|
7232
7260
|
limit: z.ZodNumber;
|
|
7233
7261
|
cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
@@ -7319,7 +7347,7 @@ declare const deploymentResultSchema: z.ZodObject<{
|
|
|
7319
7347
|
createdAt: z.ZodNumber;
|
|
7320
7348
|
}, z.core.$strip>, z.ZodTransform<{
|
|
7321
7349
|
quest: string;
|
|
7322
|
-
runtimeVersion:
|
|
7350
|
+
runtimeVersion: 2 | 1;
|
|
7323
7351
|
title: string;
|
|
7324
7352
|
presentation: {
|
|
7325
7353
|
quiz?: {
|
|
@@ -7356,12 +7384,12 @@ declare const deploymentResultSchema: z.ZodObject<{
|
|
|
7356
7384
|
kind: "resource";
|
|
7357
7385
|
default: string;
|
|
7358
7386
|
source: {
|
|
7387
|
+
provider: "domino";
|
|
7388
|
+
resource: "point-ledger";
|
|
7389
|
+
} | {
|
|
7359
7390
|
provider: "discord";
|
|
7360
7391
|
resource: "channel";
|
|
7361
7392
|
types: ("text" | "announcement")[];
|
|
7362
|
-
} | {
|
|
7363
|
-
provider: "domino";
|
|
7364
|
-
resource: "point-ledger";
|
|
7365
7393
|
} | {
|
|
7366
7394
|
provider: "discord";
|
|
7367
7395
|
resource: "role";
|
|
@@ -7502,11 +7530,11 @@ declare const deploymentResultSchema: z.ZodObject<{
|
|
|
7502
7530
|
} | {
|
|
7503
7531
|
kind: "keyed";
|
|
7504
7532
|
};
|
|
7505
|
-
visibility: "
|
|
7533
|
+
visibility: "visible" | "hidden";
|
|
7506
7534
|
budgets: {
|
|
7507
7535
|
id: string;
|
|
7508
|
-
scope: "
|
|
7509
|
-
period: "day" | "
|
|
7536
|
+
scope: "project" | "member";
|
|
7537
|
+
period: "day" | "week" | "lifetime";
|
|
7510
7538
|
limit: number;
|
|
7511
7539
|
cost: number | {
|
|
7512
7540
|
balance: string;
|
|
@@ -7522,6 +7550,9 @@ declare const deploymentResultSchema: z.ZodObject<{
|
|
|
7522
7550
|
metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
|
|
7523
7551
|
maxAgeMs: number;
|
|
7524
7552
|
} | undefined;
|
|
7553
|
+
profile?: {
|
|
7554
|
+
visible: boolean;
|
|
7555
|
+
} | undefined;
|
|
7525
7556
|
key?: string | undefined;
|
|
7526
7557
|
origin?: {
|
|
7527
7558
|
typeVersion: string;
|
|
@@ -7820,19 +7851,22 @@ declare const deploymentResultSchema: z.ZodObject<{
|
|
|
7820
7851
|
kind: z.ZodLiteral<"keyed">;
|
|
7821
7852
|
}, z.core.$strict>], "kind">;
|
|
7822
7853
|
visibility: z.ZodDefault<z.ZodEnum<{
|
|
7823
|
-
hidden: "hidden";
|
|
7824
7854
|
visible: "visible";
|
|
7855
|
+
hidden: "hidden";
|
|
7825
7856
|
}>>;
|
|
7857
|
+
profile: z.ZodOptional<z.ZodObject<{
|
|
7858
|
+
visible: z.ZodBoolean;
|
|
7859
|
+
}, z.core.$strict>>;
|
|
7826
7860
|
budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
7827
7861
|
id: z.ZodString;
|
|
7828
7862
|
scope: z.ZodEnum<{
|
|
7829
|
-
member: "member";
|
|
7830
7863
|
project: "project";
|
|
7864
|
+
member: "member";
|
|
7831
7865
|
}>;
|
|
7832
7866
|
period: z.ZodEnum<{
|
|
7833
7867
|
day: "day";
|
|
7834
|
-
lifetime: "lifetime";
|
|
7835
7868
|
week: "week";
|
|
7869
|
+
lifetime: "lifetime";
|
|
7836
7870
|
}>;
|
|
7837
7871
|
limit: z.ZodNumber;
|
|
7838
7872
|
cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
@@ -7856,10 +7890,10 @@ declare const deploymentResultSchema: z.ZodObject<{
|
|
|
7856
7890
|
quests: z.ZodArray<z.ZodString>;
|
|
7857
7891
|
}, z.core.$strict>>;
|
|
7858
7892
|
supportedInteractions: z.ZodArray<z.ZodEnum<{
|
|
7893
|
+
staff: "staff";
|
|
7859
7894
|
quiz: "quiz";
|
|
7860
|
-
url: "url";
|
|
7861
7895
|
text: "text";
|
|
7862
|
-
|
|
7896
|
+
url: "url";
|
|
7863
7897
|
photo: "photo";
|
|
7864
7898
|
automatic: "automatic";
|
|
7865
7899
|
claim: "claim";
|
|
@@ -8058,9 +8092,9 @@ declare const deploymentResultSchema: z.ZodObject<{
|
|
|
8058
8092
|
}, z.core.$strip>, z.ZodObject<{
|
|
8059
8093
|
source: z.ZodLiteral<"account">;
|
|
8060
8094
|
provider: z.ZodEnum<{
|
|
8061
|
-
x: "x";
|
|
8062
8095
|
discord: "discord";
|
|
8063
8096
|
google: "google";
|
|
8097
|
+
x: "x";
|
|
8064
8098
|
}>;
|
|
8065
8099
|
url: z.ZodString;
|
|
8066
8100
|
seed: z.ZodString;
|
|
@@ -8086,9 +8120,9 @@ declare const deploymentResultSchema: z.ZodObject<{
|
|
|
8086
8120
|
}, z.core.$strip>, z.ZodObject<{
|
|
8087
8121
|
source: z.ZodLiteral<"account">;
|
|
8088
8122
|
provider: z.ZodEnum<{
|
|
8089
|
-
x: "x";
|
|
8090
8123
|
discord: "discord";
|
|
8091
8124
|
google: "google";
|
|
8125
|
+
x: "x";
|
|
8092
8126
|
}>;
|
|
8093
8127
|
url: z.ZodString;
|
|
8094
8128
|
seed: z.ZodString;
|
|
@@ -8114,9 +8148,9 @@ declare const deploymentResultSchema: z.ZodObject<{
|
|
|
8114
8148
|
}, z.core.$strip>, z.ZodObject<{
|
|
8115
8149
|
source: z.ZodLiteral<"account">;
|
|
8116
8150
|
provider: z.ZodEnum<{
|
|
8117
|
-
x: "x";
|
|
8118
8151
|
discord: "discord";
|
|
8119
8152
|
google: "google";
|
|
8153
|
+
x: "x";
|
|
8120
8154
|
}>;
|
|
8121
8155
|
url: z.ZodString;
|
|
8122
8156
|
seed: z.ZodString;
|
|
@@ -8160,9 +8194,9 @@ declare const deploymentResultSchema: z.ZodObject<{
|
|
|
8160
8194
|
}, z.core.$strip>, z.ZodObject<{
|
|
8161
8195
|
source: z.ZodLiteral<"account">;
|
|
8162
8196
|
provider: z.ZodEnum<{
|
|
8163
|
-
x: "x";
|
|
8164
8197
|
discord: "discord";
|
|
8165
8198
|
google: "google";
|
|
8199
|
+
x: "x";
|
|
8166
8200
|
}>;
|
|
8167
8201
|
url: z.ZodString;
|
|
8168
8202
|
seed: z.ZodString;
|
|
@@ -8188,9 +8222,9 @@ declare const deploymentResultSchema: z.ZodObject<{
|
|
|
8188
8222
|
}, z.core.$strip>, z.ZodObject<{
|
|
8189
8223
|
source: z.ZodLiteral<"account">;
|
|
8190
8224
|
provider: z.ZodEnum<{
|
|
8191
|
-
x: "x";
|
|
8192
8225
|
discord: "discord";
|
|
8193
8226
|
google: "google";
|
|
8227
|
+
x: "x";
|
|
8194
8228
|
}>;
|
|
8195
8229
|
url: z.ZodString;
|
|
8196
8230
|
seed: z.ZodString;
|
|
@@ -8216,9 +8250,9 @@ declare const deploymentResultSchema: z.ZodObject<{
|
|
|
8216
8250
|
}, z.core.$strip>, z.ZodObject<{
|
|
8217
8251
|
source: z.ZodLiteral<"account">;
|
|
8218
8252
|
provider: z.ZodEnum<{
|
|
8219
|
-
x: "x";
|
|
8220
8253
|
discord: "discord";
|
|
8221
8254
|
google: "google";
|
|
8255
|
+
x: "x";
|
|
8222
8256
|
}>;
|
|
8223
8257
|
url: z.ZodString;
|
|
8224
8258
|
seed: z.ZodString;
|
|
@@ -8496,7 +8530,7 @@ declare function createRelayClient(options: {
|
|
|
8496
8530
|
accounts: {
|
|
8497
8531
|
id: string;
|
|
8498
8532
|
program: string;
|
|
8499
|
-
kind: "
|
|
8533
|
+
kind: "fixed" | "milestone" | "bonus";
|
|
8500
8534
|
balance: string;
|
|
8501
8535
|
earned: number;
|
|
8502
8536
|
settled: number;
|
|
@@ -8610,7 +8644,7 @@ declare function createRelayClient(options: {
|
|
|
8610
8644
|
seed: string;
|
|
8611
8645
|
} | {
|
|
8612
8646
|
source: "account";
|
|
8613
|
-
provider: "
|
|
8647
|
+
provider: "discord" | "google" | "x";
|
|
8614
8648
|
url: string;
|
|
8615
8649
|
seed: string;
|
|
8616
8650
|
} | {
|
|
@@ -8634,7 +8668,7 @@ declare function createRelayClient(options: {
|
|
|
8634
8668
|
seed: string;
|
|
8635
8669
|
} | {
|
|
8636
8670
|
source: "account";
|
|
8637
|
-
provider: "
|
|
8671
|
+
provider: "discord" | "google" | "x";
|
|
8638
8672
|
url: string;
|
|
8639
8673
|
seed: string;
|
|
8640
8674
|
} | {
|
|
@@ -8658,7 +8692,7 @@ declare function createRelayClient(options: {
|
|
|
8658
8692
|
seed: string;
|
|
8659
8693
|
} | {
|
|
8660
8694
|
source: "account";
|
|
8661
|
-
provider: "
|
|
8695
|
+
provider: "discord" | "google" | "x";
|
|
8662
8696
|
url: string;
|
|
8663
8697
|
seed: string;
|
|
8664
8698
|
} | {
|
|
@@ -8670,6 +8704,20 @@ declare function createRelayClient(options: {
|
|
|
8670
8704
|
}[];
|
|
8671
8705
|
nextCursor: string | null;
|
|
8672
8706
|
}>;
|
|
8707
|
+
/**
|
|
8708
|
+
* A profile's current rank and score on `board` (`profile.id` from a leaderboard row or
|
|
8709
|
+
* `profiles.mine()`). Needs the board's access, like `standings`; a profile this viewer
|
|
8710
|
+
* cannot see is a 404, as in `profiles.get`.
|
|
8711
|
+
*/
|
|
8712
|
+
placement: (board: string, profile: string) => Promise<{
|
|
8713
|
+
leaderboard: string;
|
|
8714
|
+
title: string;
|
|
8715
|
+
profile: string;
|
|
8716
|
+
rank: number | null;
|
|
8717
|
+
score: number | null;
|
|
8718
|
+
total: number;
|
|
8719
|
+
key?: string | undefined;
|
|
8720
|
+
}>;
|
|
8673
8721
|
};
|
|
8674
8722
|
/**
|
|
8675
8723
|
* Participant profiles: the display name and avatar other participants see where the project
|
|
@@ -8686,7 +8734,7 @@ declare function createRelayClient(options: {
|
|
|
8686
8734
|
seed: string;
|
|
8687
8735
|
} | {
|
|
8688
8736
|
source: "account";
|
|
8689
|
-
provider: "
|
|
8737
|
+
provider: "discord" | "google" | "x";
|
|
8690
8738
|
url: string;
|
|
8691
8739
|
seed: string;
|
|
8692
8740
|
} | {
|
|
@@ -8695,12 +8743,12 @@ declare function createRelayClient(options: {
|
|
|
8695
8743
|
};
|
|
8696
8744
|
displayName: string | null;
|
|
8697
8745
|
avatarChoice: "default" | "account" | "generated" | "upload";
|
|
8698
|
-
avatarProvider: "
|
|
8746
|
+
avatarProvider: "discord" | "google" | "x" | null;
|
|
8699
8747
|
hidden: boolean;
|
|
8700
8748
|
locked: boolean;
|
|
8701
|
-
visibility: "
|
|
8749
|
+
visibility: "participants" | "public" | "private";
|
|
8702
8750
|
options: {
|
|
8703
|
-
provider: "
|
|
8751
|
+
provider: "discord" | "google" | "x";
|
|
8704
8752
|
name: string | null;
|
|
8705
8753
|
imageUrl: string | null;
|
|
8706
8754
|
}[];
|
|
@@ -8720,7 +8768,7 @@ declare function createRelayClient(options: {
|
|
|
8720
8768
|
seed: string;
|
|
8721
8769
|
} | {
|
|
8722
8770
|
source: "account";
|
|
8723
|
-
provider: "
|
|
8771
|
+
provider: "discord" | "google" | "x";
|
|
8724
8772
|
url: string;
|
|
8725
8773
|
seed: string;
|
|
8726
8774
|
} | {
|
|
@@ -8729,12 +8777,12 @@ declare function createRelayClient(options: {
|
|
|
8729
8777
|
};
|
|
8730
8778
|
displayName: string | null;
|
|
8731
8779
|
avatarChoice: "default" | "account" | "generated" | "upload";
|
|
8732
|
-
avatarProvider: "
|
|
8780
|
+
avatarProvider: "discord" | "google" | "x" | null;
|
|
8733
8781
|
hidden: boolean;
|
|
8734
8782
|
locked: boolean;
|
|
8735
|
-
visibility: "
|
|
8783
|
+
visibility: "participants" | "public" | "private";
|
|
8736
8784
|
options: {
|
|
8737
|
-
provider: "
|
|
8785
|
+
provider: "discord" | "google" | "x";
|
|
8738
8786
|
name: string | null;
|
|
8739
8787
|
imageUrl: string | null;
|
|
8740
8788
|
}[];
|
|
@@ -8755,7 +8803,7 @@ declare function createRelayClient(options: {
|
|
|
8755
8803
|
seed: string;
|
|
8756
8804
|
} | {
|
|
8757
8805
|
source: "account";
|
|
8758
|
-
provider: "
|
|
8806
|
+
provider: "discord" | "google" | "x";
|
|
8759
8807
|
url: string;
|
|
8760
8808
|
seed: string;
|
|
8761
8809
|
} | {
|
|
@@ -8764,19 +8812,19 @@ declare function createRelayClient(options: {
|
|
|
8764
8812
|
};
|
|
8765
8813
|
displayName: string | null;
|
|
8766
8814
|
avatarChoice: "default" | "account" | "generated" | "upload";
|
|
8767
|
-
avatarProvider: "
|
|
8815
|
+
avatarProvider: "discord" | "google" | "x" | null;
|
|
8768
8816
|
hidden: boolean;
|
|
8769
8817
|
locked: boolean;
|
|
8770
|
-
visibility: "
|
|
8818
|
+
visibility: "participants" | "public" | "private";
|
|
8771
8819
|
options: {
|
|
8772
|
-
provider: "
|
|
8820
|
+
provider: "discord" | "google" | "x";
|
|
8773
8821
|
name: string | null;
|
|
8774
8822
|
imageUrl: string | null;
|
|
8775
8823
|
}[];
|
|
8776
8824
|
}>;
|
|
8777
8825
|
/**
|
|
8778
|
-
* A profile
|
|
8779
|
-
* profile that is missing, hidden or not visible to this viewer is a 404.
|
|
8826
|
+
* A profile's name and avatar by its public ID (`profile.id` from a leaderboard row or
|
|
8827
|
+
* `mine()`). A profile that is missing, hidden or not visible to this viewer is a 404.
|
|
8780
8828
|
*/
|
|
8781
8829
|
get: (profile: string) => Promise<{
|
|
8782
8830
|
id: string;
|
|
@@ -8787,43 +8835,43 @@ declare function createRelayClient(options: {
|
|
|
8787
8835
|
seed: string;
|
|
8788
8836
|
} | {
|
|
8789
8837
|
source: "account";
|
|
8790
|
-
provider: "
|
|
8838
|
+
provider: "discord" | "google" | "x";
|
|
8791
8839
|
url: string;
|
|
8792
8840
|
seed: string;
|
|
8793
8841
|
} | {
|
|
8794
8842
|
source: "generated";
|
|
8795
8843
|
seed: string;
|
|
8796
8844
|
};
|
|
8797
|
-
|
|
8798
|
-
|
|
8799
|
-
|
|
8800
|
-
|
|
8801
|
-
|
|
8802
|
-
|
|
8803
|
-
|
|
8804
|
-
key?: string | undefined;
|
|
8805
|
-
}[] | null;
|
|
8806
|
-
quests: {
|
|
8845
|
+
}>;
|
|
8846
|
+
/**
|
|
8847
|
+
* A page of the profile's completions of quests that show on profiles, most recently
|
|
8848
|
+
* completed first. Pass the page's `nextCursor` as `cursor` for the next one.
|
|
8849
|
+
*/
|
|
8850
|
+
completions: (profile: string, options?: ProfileCompletionQuery) => Promise<{
|
|
8851
|
+
items: {
|
|
8807
8852
|
quest: string;
|
|
8808
8853
|
title: string;
|
|
8809
8854
|
completions: number;
|
|
8810
8855
|
lastCompletedAt: number | null;
|
|
8811
8856
|
key?: string | undefined;
|
|
8812
|
-
}[]
|
|
8813
|
-
|
|
8814
|
-
|
|
8815
|
-
|
|
8816
|
-
|
|
8817
|
-
|
|
8818
|
-
|
|
8819
|
-
|
|
8820
|
-
|
|
8821
|
-
|
|
8822
|
-
|
|
8823
|
-
|
|
8824
|
-
|
|
8825
|
-
|
|
8826
|
-
|
|
8857
|
+
}[];
|
|
8858
|
+
nextCursor: string | null;
|
|
8859
|
+
}>;
|
|
8860
|
+
/**
|
|
8861
|
+
* The profile's invited and qualified counts and milestones in one referral program. Needs
|
|
8862
|
+
* a signed-in participant, as referral programs do.
|
|
8863
|
+
*/
|
|
8864
|
+
referral: (profile: string, program: string) => Promise<{
|
|
8865
|
+
program: string;
|
|
8866
|
+
title: string;
|
|
8867
|
+
invited: number;
|
|
8868
|
+
qualified: number;
|
|
8869
|
+
milestones: {
|
|
8870
|
+
id: string;
|
|
8871
|
+
count: number;
|
|
8872
|
+
reached: boolean;
|
|
8873
|
+
}[];
|
|
8874
|
+
key?: string | undefined;
|
|
8827
8875
|
}>;
|
|
8828
8876
|
};
|
|
8829
8877
|
quests: {
|
|
@@ -8850,7 +8898,7 @@ declare function createRelayClient(options: {
|
|
|
8850
8898
|
} | undefined;
|
|
8851
8899
|
} | undefined;
|
|
8852
8900
|
};
|
|
8853
|
-
connections: ("
|
|
8901
|
+
connections: ("discord" | "google" | "apple" | "x")[];
|
|
8854
8902
|
trigger: {
|
|
8855
8903
|
kind: "automatic";
|
|
8856
8904
|
observation?: {
|
|
@@ -8896,7 +8944,7 @@ declare function createRelayClient(options: {
|
|
|
8896
8944
|
};
|
|
8897
8945
|
availability: {
|
|
8898
8946
|
kind: "available";
|
|
8899
|
-
input: "quiz" | "
|
|
8947
|
+
input: "quiz" | "text" | "url" | "photo" | "none";
|
|
8900
8948
|
} | {
|
|
8901
8949
|
kind: "completed";
|
|
8902
8950
|
} | {
|
|
@@ -8934,7 +8982,7 @@ declare function createRelayClient(options: {
|
|
|
8934
8982
|
kind: "keyed";
|
|
8935
8983
|
};
|
|
8936
8984
|
completionCount: number;
|
|
8937
|
-
visibility: "
|
|
8985
|
+
visibility: "visible" | "hidden";
|
|
8938
8986
|
missing: {
|
|
8939
8987
|
quest: string;
|
|
8940
8988
|
title: string;
|
|
@@ -8945,7 +8993,7 @@ declare function createRelayClient(options: {
|
|
|
8945
8993
|
quest: string;
|
|
8946
8994
|
member: string;
|
|
8947
8995
|
evidence: string | null;
|
|
8948
|
-
status: "
|
|
8996
|
+
status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
|
|
8949
8997
|
reason: string | null;
|
|
8950
8998
|
retries: number;
|
|
8951
8999
|
generation: number;
|
|
@@ -8993,7 +9041,7 @@ declare function createRelayClient(options: {
|
|
|
8993
9041
|
} | undefined;
|
|
8994
9042
|
} | null;
|
|
8995
9043
|
release: string;
|
|
8996
|
-
interaction: "
|
|
9044
|
+
interaction: "staff" | "quiz" | "text" | "url" | "photo" | "automatic" | "claim";
|
|
8997
9045
|
lifecycle: "active" | "paused" | "archived";
|
|
8998
9046
|
rewards: ({
|
|
8999
9047
|
kind: "points";
|
|
@@ -9055,7 +9103,7 @@ declare function createRelayClient(options: {
|
|
|
9055
9103
|
quest: string;
|
|
9056
9104
|
member: string;
|
|
9057
9105
|
evidence: string | null;
|
|
9058
|
-
status: "
|
|
9106
|
+
status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
|
|
9059
9107
|
reason: string | null;
|
|
9060
9108
|
retries: number;
|
|
9061
9109
|
generation: number;
|
|
@@ -9127,7 +9175,7 @@ declare function createRelayClient(options: {
|
|
|
9127
9175
|
} | undefined;
|
|
9128
9176
|
} | undefined;
|
|
9129
9177
|
};
|
|
9130
|
-
connections: ("
|
|
9178
|
+
connections: ("discord" | "google" | "apple" | "x")[];
|
|
9131
9179
|
trigger: {
|
|
9132
9180
|
kind: "automatic";
|
|
9133
9181
|
observation?: {
|
|
@@ -9173,7 +9221,7 @@ declare function createRelayClient(options: {
|
|
|
9173
9221
|
};
|
|
9174
9222
|
availability: {
|
|
9175
9223
|
kind: "available";
|
|
9176
|
-
input: "quiz" | "
|
|
9224
|
+
input: "quiz" | "text" | "url" | "photo" | "none";
|
|
9177
9225
|
} | {
|
|
9178
9226
|
kind: "completed";
|
|
9179
9227
|
} | {
|
|
@@ -9211,7 +9259,7 @@ declare function createRelayClient(options: {
|
|
|
9211
9259
|
kind: "keyed";
|
|
9212
9260
|
};
|
|
9213
9261
|
completionCount: number;
|
|
9214
|
-
visibility: "
|
|
9262
|
+
visibility: "visible" | "hidden";
|
|
9215
9263
|
missing: {
|
|
9216
9264
|
quest: string;
|
|
9217
9265
|
title: string;
|
|
@@ -9222,7 +9270,7 @@ declare function createRelayClient(options: {
|
|
|
9222
9270
|
quest: string;
|
|
9223
9271
|
member: string;
|
|
9224
9272
|
evidence: string | null;
|
|
9225
|
-
status: "
|
|
9273
|
+
status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
|
|
9226
9274
|
reason: string | null;
|
|
9227
9275
|
retries: number;
|
|
9228
9276
|
generation: number;
|
|
@@ -9270,7 +9318,7 @@ declare function createRelayClient(options: {
|
|
|
9270
9318
|
} | undefined;
|
|
9271
9319
|
} | null;
|
|
9272
9320
|
release: string;
|
|
9273
|
-
interaction: "
|
|
9321
|
+
interaction: "staff" | "quiz" | "text" | "url" | "photo" | "automatic" | "claim";
|
|
9274
9322
|
lifecycle: "active" | "paused" | "archived";
|
|
9275
9323
|
rewards: ({
|
|
9276
9324
|
kind: "points";
|
|
@@ -9352,7 +9400,7 @@ declare function createRelayClient(options: {
|
|
|
9352
9400
|
} | undefined;
|
|
9353
9401
|
} | undefined;
|
|
9354
9402
|
};
|
|
9355
|
-
connections: ("
|
|
9403
|
+
connections: ("discord" | "google" | "apple" | "x")[];
|
|
9356
9404
|
trigger: {
|
|
9357
9405
|
kind: "automatic";
|
|
9358
9406
|
observation?: {
|
|
@@ -9398,7 +9446,7 @@ declare function createRelayClient(options: {
|
|
|
9398
9446
|
};
|
|
9399
9447
|
availability: {
|
|
9400
9448
|
kind: "available";
|
|
9401
|
-
input: "quiz" | "
|
|
9449
|
+
input: "quiz" | "text" | "url" | "photo" | "none";
|
|
9402
9450
|
} | {
|
|
9403
9451
|
kind: "completed";
|
|
9404
9452
|
} | {
|
|
@@ -9436,7 +9484,7 @@ declare function createRelayClient(options: {
|
|
|
9436
9484
|
kind: "keyed";
|
|
9437
9485
|
};
|
|
9438
9486
|
completionCount: number;
|
|
9439
|
-
visibility: "
|
|
9487
|
+
visibility: "visible" | "hidden";
|
|
9440
9488
|
missing: {
|
|
9441
9489
|
quest: string;
|
|
9442
9490
|
title: string;
|
|
@@ -9447,7 +9495,7 @@ declare function createRelayClient(options: {
|
|
|
9447
9495
|
quest: string;
|
|
9448
9496
|
member: string;
|
|
9449
9497
|
evidence: string | null;
|
|
9450
|
-
status: "
|
|
9498
|
+
status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
|
|
9451
9499
|
reason: string | null;
|
|
9452
9500
|
retries: number;
|
|
9453
9501
|
generation: number;
|
|
@@ -9495,7 +9543,7 @@ declare function createRelayClient(options: {
|
|
|
9495
9543
|
} | undefined;
|
|
9496
9544
|
} | null;
|
|
9497
9545
|
release: string;
|
|
9498
|
-
interaction: "
|
|
9546
|
+
interaction: "staff" | "quiz" | "text" | "url" | "photo" | "automatic" | "claim";
|
|
9499
9547
|
lifecycle: "active" | "paused" | "archived";
|
|
9500
9548
|
rewards: ({
|
|
9501
9549
|
kind: "points";
|
|
@@ -9580,7 +9628,7 @@ declare function createRelayClient(options: {
|
|
|
9580
9628
|
} | undefined;
|
|
9581
9629
|
} | undefined;
|
|
9582
9630
|
};
|
|
9583
|
-
connections: ("
|
|
9631
|
+
connections: ("discord" | "google" | "apple" | "x")[];
|
|
9584
9632
|
trigger: {
|
|
9585
9633
|
kind: "automatic";
|
|
9586
9634
|
observation?: {
|
|
@@ -9626,7 +9674,7 @@ declare function createRelayClient(options: {
|
|
|
9626
9674
|
};
|
|
9627
9675
|
availability: {
|
|
9628
9676
|
kind: "available";
|
|
9629
|
-
input: "quiz" | "
|
|
9677
|
+
input: "quiz" | "text" | "url" | "photo" | "none";
|
|
9630
9678
|
} | {
|
|
9631
9679
|
kind: "completed";
|
|
9632
9680
|
} | {
|
|
@@ -9664,7 +9712,7 @@ declare function createRelayClient(options: {
|
|
|
9664
9712
|
kind: "keyed";
|
|
9665
9713
|
};
|
|
9666
9714
|
completionCount: number;
|
|
9667
|
-
visibility: "
|
|
9715
|
+
visibility: "visible" | "hidden";
|
|
9668
9716
|
missing: {
|
|
9669
9717
|
quest: string;
|
|
9670
9718
|
title: string;
|
|
@@ -9675,7 +9723,7 @@ declare function createRelayClient(options: {
|
|
|
9675
9723
|
quest: string;
|
|
9676
9724
|
member: string;
|
|
9677
9725
|
evidence: string | null;
|
|
9678
|
-
status: "
|
|
9726
|
+
status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
|
|
9679
9727
|
reason: string | null;
|
|
9680
9728
|
retries: number;
|
|
9681
9729
|
generation: number;
|
|
@@ -9723,7 +9771,7 @@ declare function createRelayClient(options: {
|
|
|
9723
9771
|
} | undefined;
|
|
9724
9772
|
} | null;
|
|
9725
9773
|
release: string;
|
|
9726
|
-
interaction: "
|
|
9774
|
+
interaction: "staff" | "quiz" | "text" | "url" | "photo" | "automatic" | "claim";
|
|
9727
9775
|
lifecycle: "active" | "paused" | "archived";
|
|
9728
9776
|
rewards: ({
|
|
9729
9777
|
kind: "points";
|
|
@@ -9853,7 +9901,7 @@ declare function createRelayClient(options: {
|
|
|
9853
9901
|
auth: {
|
|
9854
9902
|
providers: () => Promise<{
|
|
9855
9903
|
providers: {
|
|
9856
|
-
provider: "
|
|
9904
|
+
provider: "discord" | "google" | "apple" | "x";
|
|
9857
9905
|
configured: boolean;
|
|
9858
9906
|
}[];
|
|
9859
9907
|
email: boolean;
|
|
@@ -9939,7 +9987,7 @@ declare function createRelayClient(options: {
|
|
|
9939
9987
|
}>;
|
|
9940
9988
|
};
|
|
9941
9989
|
accounts: () => Promise<{
|
|
9942
|
-
provider: "
|
|
9990
|
+
provider: "discord" | "google" | "apple" | "x";
|
|
9943
9991
|
configured: boolean;
|
|
9944
9992
|
status: "disconnected" | "connected" | "reconnect";
|
|
9945
9993
|
subject: string | null;
|
|
@@ -10043,7 +10091,7 @@ declare function createRelayClient(options: {
|
|
|
10043
10091
|
quest: string;
|
|
10044
10092
|
member: string;
|
|
10045
10093
|
evidence: string | null;
|
|
10046
|
-
status: "
|
|
10094
|
+
status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
|
|
10047
10095
|
reason: string | null;
|
|
10048
10096
|
retries: number;
|
|
10049
10097
|
generation: number;
|
|
@@ -10115,7 +10163,7 @@ declare function createRelayClient(options: {
|
|
|
10115
10163
|
} | undefined;
|
|
10116
10164
|
} | undefined;
|
|
10117
10165
|
};
|
|
10118
|
-
connections: ("
|
|
10166
|
+
connections: ("discord" | "google" | "apple" | "x")[];
|
|
10119
10167
|
trigger: {
|
|
10120
10168
|
kind: "automatic";
|
|
10121
10169
|
observation?: {
|
|
@@ -10161,7 +10209,7 @@ declare function createRelayClient(options: {
|
|
|
10161
10209
|
};
|
|
10162
10210
|
availability: {
|
|
10163
10211
|
kind: "available";
|
|
10164
|
-
input: "quiz" | "
|
|
10212
|
+
input: "quiz" | "text" | "url" | "photo" | "none";
|
|
10165
10213
|
} | {
|
|
10166
10214
|
kind: "completed";
|
|
10167
10215
|
} | {
|
|
@@ -10199,7 +10247,7 @@ declare function createRelayClient(options: {
|
|
|
10199
10247
|
kind: "keyed";
|
|
10200
10248
|
};
|
|
10201
10249
|
completionCount: number;
|
|
10202
|
-
visibility: "
|
|
10250
|
+
visibility: "visible" | "hidden";
|
|
10203
10251
|
missing: {
|
|
10204
10252
|
quest: string;
|
|
10205
10253
|
title: string;
|
|
@@ -10210,7 +10258,7 @@ declare function createRelayClient(options: {
|
|
|
10210
10258
|
quest: string;
|
|
10211
10259
|
member: string;
|
|
10212
10260
|
evidence: string | null;
|
|
10213
|
-
status: "
|
|
10261
|
+
status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
|
|
10214
10262
|
reason: string | null;
|
|
10215
10263
|
retries: number;
|
|
10216
10264
|
generation: number;
|
|
@@ -10377,7 +10425,7 @@ declare function createRelayClient(options: {
|
|
|
10377
10425
|
provider: "discord";
|
|
10378
10426
|
action: "grant-role";
|
|
10379
10427
|
roleId: string;
|
|
10380
|
-
status: "
|
|
10428
|
+
status: "failed" | "pending" | "delivered";
|
|
10381
10429
|
attempts: number;
|
|
10382
10430
|
nextAt: number;
|
|
10383
10431
|
lastError: string | null;
|
|
@@ -10393,7 +10441,7 @@ declare function createRelayClient(options: {
|
|
|
10393
10441
|
quest: string;
|
|
10394
10442
|
member: string;
|
|
10395
10443
|
evidence: string | null;
|
|
10396
|
-
status: "
|
|
10444
|
+
status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
|
|
10397
10445
|
reason: string | null;
|
|
10398
10446
|
retries: number;
|
|
10399
10447
|
generation: number;
|
|
@@ -10461,7 +10509,7 @@ declare function createRelayClient(options: {
|
|
|
10461
10509
|
code: string;
|
|
10462
10510
|
definition: {
|
|
10463
10511
|
quest: string;
|
|
10464
|
-
runtimeVersion:
|
|
10512
|
+
runtimeVersion: 2 | 1;
|
|
10465
10513
|
title: string;
|
|
10466
10514
|
presentation: {
|
|
10467
10515
|
quiz?: {
|
|
@@ -10498,12 +10546,12 @@ declare function createRelayClient(options: {
|
|
|
10498
10546
|
kind: "resource";
|
|
10499
10547
|
default: string;
|
|
10500
10548
|
source: {
|
|
10549
|
+
provider: "domino";
|
|
10550
|
+
resource: "point-ledger";
|
|
10551
|
+
} | {
|
|
10501
10552
|
provider: "discord";
|
|
10502
10553
|
resource: "channel";
|
|
10503
10554
|
types: ("text" | "announcement")[];
|
|
10504
|
-
} | {
|
|
10505
|
-
provider: "domino";
|
|
10506
|
-
resource: "point-ledger";
|
|
10507
10555
|
} | {
|
|
10508
10556
|
provider: "discord";
|
|
10509
10557
|
resource: "role";
|
|
@@ -10644,11 +10692,11 @@ declare function createRelayClient(options: {
|
|
|
10644
10692
|
} | {
|
|
10645
10693
|
kind: "keyed";
|
|
10646
10694
|
};
|
|
10647
|
-
visibility: "
|
|
10695
|
+
visibility: "visible" | "hidden";
|
|
10648
10696
|
budgets: {
|
|
10649
10697
|
id: string;
|
|
10650
|
-
scope: "
|
|
10651
|
-
period: "day" | "
|
|
10698
|
+
scope: "project" | "member";
|
|
10699
|
+
period: "day" | "week" | "lifetime";
|
|
10652
10700
|
limit: number;
|
|
10653
10701
|
cost: number | {
|
|
10654
10702
|
balance: string;
|
|
@@ -10658,6 +10706,9 @@ declare function createRelayClient(options: {
|
|
|
10658
10706
|
metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
|
|
10659
10707
|
maxAgeMs: number;
|
|
10660
10708
|
} | undefined;
|
|
10709
|
+
profile?: {
|
|
10710
|
+
visible: boolean;
|
|
10711
|
+
} | undefined;
|
|
10661
10712
|
};
|
|
10662
10713
|
}[]>;
|
|
10663
10714
|
/** @deprecated Removed from the participant API. Build quests with `domino` and `@domino-sdk/relay/build`. */
|
|
@@ -10665,7 +10716,7 @@ declare function createRelayClient(options: {
|
|
|
10665
10716
|
code: string;
|
|
10666
10717
|
definition: {
|
|
10667
10718
|
quest: string;
|
|
10668
|
-
runtimeVersion:
|
|
10719
|
+
runtimeVersion: 2 | 1;
|
|
10669
10720
|
title: string;
|
|
10670
10721
|
presentation: {
|
|
10671
10722
|
quiz?: {
|
|
@@ -10702,12 +10753,12 @@ declare function createRelayClient(options: {
|
|
|
10702
10753
|
kind: "resource";
|
|
10703
10754
|
default: string;
|
|
10704
10755
|
source: {
|
|
10756
|
+
provider: "domino";
|
|
10757
|
+
resource: "point-ledger";
|
|
10758
|
+
} | {
|
|
10705
10759
|
provider: "discord";
|
|
10706
10760
|
resource: "channel";
|
|
10707
10761
|
types: ("text" | "announcement")[];
|
|
10708
|
-
} | {
|
|
10709
|
-
provider: "domino";
|
|
10710
|
-
resource: "point-ledger";
|
|
10711
10762
|
} | {
|
|
10712
10763
|
provider: "discord";
|
|
10713
10764
|
resource: "role";
|
|
@@ -10848,11 +10899,11 @@ declare function createRelayClient(options: {
|
|
|
10848
10899
|
} | {
|
|
10849
10900
|
kind: "keyed";
|
|
10850
10901
|
};
|
|
10851
|
-
visibility: "
|
|
10902
|
+
visibility: "visible" | "hidden";
|
|
10852
10903
|
budgets: {
|
|
10853
10904
|
id: string;
|
|
10854
|
-
scope: "
|
|
10855
|
-
period: "day" | "
|
|
10905
|
+
scope: "project" | "member";
|
|
10906
|
+
period: "day" | "week" | "lifetime";
|
|
10856
10907
|
limit: number;
|
|
10857
10908
|
cost: number | {
|
|
10858
10909
|
balance: string;
|
|
@@ -10862,13 +10913,16 @@ declare function createRelayClient(options: {
|
|
|
10862
10913
|
metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
|
|
10863
10914
|
maxAgeMs: number;
|
|
10864
10915
|
} | undefined;
|
|
10916
|
+
profile?: {
|
|
10917
|
+
visible: boolean;
|
|
10918
|
+
} | undefined;
|
|
10865
10919
|
};
|
|
10866
10920
|
}>;
|
|
10867
10921
|
/** @deprecated The participant API accepts only member sessions and rejects this staff call. Use the management API with a management key instead. */
|
|
10868
10922
|
snapshot: () => Promise<{
|
|
10869
10923
|
releases: {
|
|
10870
10924
|
quest: string;
|
|
10871
|
-
runtimeVersion:
|
|
10925
|
+
runtimeVersion: 2 | 1;
|
|
10872
10926
|
title: string;
|
|
10873
10927
|
presentation: {
|
|
10874
10928
|
quiz?: {
|
|
@@ -10905,12 +10959,12 @@ declare function createRelayClient(options: {
|
|
|
10905
10959
|
kind: "resource";
|
|
10906
10960
|
default: string;
|
|
10907
10961
|
source: {
|
|
10962
|
+
provider: "domino";
|
|
10963
|
+
resource: "point-ledger";
|
|
10964
|
+
} | {
|
|
10908
10965
|
provider: "discord";
|
|
10909
10966
|
resource: "channel";
|
|
10910
10967
|
types: ("text" | "announcement")[];
|
|
10911
|
-
} | {
|
|
10912
|
-
provider: "domino";
|
|
10913
|
-
resource: "point-ledger";
|
|
10914
10968
|
} | {
|
|
10915
10969
|
provider: "discord";
|
|
10916
10970
|
resource: "role";
|
|
@@ -11051,11 +11105,11 @@ declare function createRelayClient(options: {
|
|
|
11051
11105
|
} | {
|
|
11052
11106
|
kind: "keyed";
|
|
11053
11107
|
};
|
|
11054
|
-
visibility: "
|
|
11108
|
+
visibility: "visible" | "hidden";
|
|
11055
11109
|
budgets: {
|
|
11056
11110
|
id: string;
|
|
11057
|
-
scope: "
|
|
11058
|
-
period: "day" | "
|
|
11111
|
+
scope: "project" | "member";
|
|
11112
|
+
period: "day" | "week" | "lifetime";
|
|
11059
11113
|
limit: number;
|
|
11060
11114
|
cost: number | {
|
|
11061
11115
|
balance: string;
|
|
@@ -11071,6 +11125,9 @@ declare function createRelayClient(options: {
|
|
|
11071
11125
|
metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
|
|
11072
11126
|
maxAgeMs: number;
|
|
11073
11127
|
} | undefined;
|
|
11128
|
+
profile?: {
|
|
11129
|
+
visible: boolean;
|
|
11130
|
+
} | undefined;
|
|
11074
11131
|
key?: string | undefined;
|
|
11075
11132
|
origin?: {
|
|
11076
11133
|
typeVersion: string;
|
|
@@ -11186,7 +11243,7 @@ declare function createRelayClient(options: {
|
|
|
11186
11243
|
quest: string;
|
|
11187
11244
|
member: string;
|
|
11188
11245
|
evidence: string | null;
|
|
11189
|
-
status: "
|
|
11246
|
+
status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
|
|
11190
11247
|
reason: string | null;
|
|
11191
11248
|
retries: number;
|
|
11192
11249
|
generation: number;
|
|
@@ -11252,7 +11309,7 @@ declare function createRelayClient(options: {
|
|
|
11252
11309
|
/** @deprecated The participant API rejects publication. Publish with `domino deploy` or the management API. */
|
|
11253
11310
|
publish: (release: ReleaseInput) => Promise<{
|
|
11254
11311
|
quest: string;
|
|
11255
|
-
runtimeVersion:
|
|
11312
|
+
runtimeVersion: 2 | 1;
|
|
11256
11313
|
title: string;
|
|
11257
11314
|
presentation: {
|
|
11258
11315
|
quiz?: {
|
|
@@ -11289,12 +11346,12 @@ declare function createRelayClient(options: {
|
|
|
11289
11346
|
kind: "resource";
|
|
11290
11347
|
default: string;
|
|
11291
11348
|
source: {
|
|
11349
|
+
provider: "domino";
|
|
11350
|
+
resource: "point-ledger";
|
|
11351
|
+
} | {
|
|
11292
11352
|
provider: "discord";
|
|
11293
11353
|
resource: "channel";
|
|
11294
11354
|
types: ("text" | "announcement")[];
|
|
11295
|
-
} | {
|
|
11296
|
-
provider: "domino";
|
|
11297
|
-
resource: "point-ledger";
|
|
11298
11355
|
} | {
|
|
11299
11356
|
provider: "discord";
|
|
11300
11357
|
resource: "role";
|
|
@@ -11435,11 +11492,11 @@ declare function createRelayClient(options: {
|
|
|
11435
11492
|
} | {
|
|
11436
11493
|
kind: "keyed";
|
|
11437
11494
|
};
|
|
11438
|
-
visibility: "
|
|
11495
|
+
visibility: "visible" | "hidden";
|
|
11439
11496
|
budgets: {
|
|
11440
11497
|
id: string;
|
|
11441
|
-
scope: "
|
|
11442
|
-
period: "day" | "
|
|
11498
|
+
scope: "project" | "member";
|
|
11499
|
+
period: "day" | "week" | "lifetime";
|
|
11443
11500
|
limit: number;
|
|
11444
11501
|
cost: number | {
|
|
11445
11502
|
balance: string;
|
|
@@ -11455,6 +11512,9 @@ declare function createRelayClient(options: {
|
|
|
11455
11512
|
metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
|
|
11456
11513
|
maxAgeMs: number;
|
|
11457
11514
|
} | undefined;
|
|
11515
|
+
profile?: {
|
|
11516
|
+
visible: boolean;
|
|
11517
|
+
} | undefined;
|
|
11458
11518
|
key?: string | undefined;
|
|
11459
11519
|
origin?: {
|
|
11460
11520
|
typeVersion: string;
|
|
@@ -11484,7 +11544,7 @@ declare function createRelayClient(options: {
|
|
|
11484
11544
|
/** @deprecated The participant API rejects publication. Publish with `domino deploy` or the management API. */
|
|
11485
11545
|
publishBatch: (releases: ReleaseInput[]) => Promise<{
|
|
11486
11546
|
quest: string;
|
|
11487
|
-
runtimeVersion:
|
|
11547
|
+
runtimeVersion: 2 | 1;
|
|
11488
11548
|
title: string;
|
|
11489
11549
|
presentation: {
|
|
11490
11550
|
quiz?: {
|
|
@@ -11521,12 +11581,12 @@ declare function createRelayClient(options: {
|
|
|
11521
11581
|
kind: "resource";
|
|
11522
11582
|
default: string;
|
|
11523
11583
|
source: {
|
|
11584
|
+
provider: "domino";
|
|
11585
|
+
resource: "point-ledger";
|
|
11586
|
+
} | {
|
|
11524
11587
|
provider: "discord";
|
|
11525
11588
|
resource: "channel";
|
|
11526
11589
|
types: ("text" | "announcement")[];
|
|
11527
|
-
} | {
|
|
11528
|
-
provider: "domino";
|
|
11529
|
-
resource: "point-ledger";
|
|
11530
11590
|
} | {
|
|
11531
11591
|
provider: "discord";
|
|
11532
11592
|
resource: "role";
|
|
@@ -11667,11 +11727,11 @@ declare function createRelayClient(options: {
|
|
|
11667
11727
|
} | {
|
|
11668
11728
|
kind: "keyed";
|
|
11669
11729
|
};
|
|
11670
|
-
visibility: "
|
|
11730
|
+
visibility: "visible" | "hidden";
|
|
11671
11731
|
budgets: {
|
|
11672
11732
|
id: string;
|
|
11673
|
-
scope: "
|
|
11674
|
-
period: "day" | "
|
|
11733
|
+
scope: "project" | "member";
|
|
11734
|
+
period: "day" | "week" | "lifetime";
|
|
11675
11735
|
limit: number;
|
|
11676
11736
|
cost: number | {
|
|
11677
11737
|
balance: string;
|
|
@@ -11687,6 +11747,9 @@ declare function createRelayClient(options: {
|
|
|
11687
11747
|
metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
|
|
11688
11748
|
maxAgeMs: number;
|
|
11689
11749
|
} | undefined;
|
|
11750
|
+
profile?: {
|
|
11751
|
+
visible: boolean;
|
|
11752
|
+
} | undefined;
|
|
11690
11753
|
key?: string | undefined;
|
|
11691
11754
|
origin?: {
|
|
11692
11755
|
typeVersion: string;
|
|
@@ -11738,7 +11801,7 @@ declare function createRelayClient(options: {
|
|
|
11738
11801
|
} | undefined;
|
|
11739
11802
|
} | undefined;
|
|
11740
11803
|
};
|
|
11741
|
-
connections: ("
|
|
11804
|
+
connections: ("discord" | "google" | "apple" | "x")[];
|
|
11742
11805
|
trigger: {
|
|
11743
11806
|
kind: "automatic";
|
|
11744
11807
|
observation?: {
|
|
@@ -11784,7 +11847,7 @@ declare function createRelayClient(options: {
|
|
|
11784
11847
|
};
|
|
11785
11848
|
availability: {
|
|
11786
11849
|
kind: "available";
|
|
11787
|
-
input: "quiz" | "
|
|
11850
|
+
input: "quiz" | "text" | "url" | "photo" | "none";
|
|
11788
11851
|
} | {
|
|
11789
11852
|
kind: "completed";
|
|
11790
11853
|
} | {
|
|
@@ -11822,7 +11885,7 @@ declare function createRelayClient(options: {
|
|
|
11822
11885
|
kind: "keyed";
|
|
11823
11886
|
};
|
|
11824
11887
|
completionCount: number;
|
|
11825
|
-
visibility: "
|
|
11888
|
+
visibility: "visible" | "hidden";
|
|
11826
11889
|
missing: {
|
|
11827
11890
|
quest: string;
|
|
11828
11891
|
title: string;
|
|
@@ -11833,7 +11896,7 @@ declare function createRelayClient(options: {
|
|
|
11833
11896
|
quest: string;
|
|
11834
11897
|
member: string;
|
|
11835
11898
|
evidence: string | null;
|
|
11836
|
-
status: "
|
|
11899
|
+
status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
|
|
11837
11900
|
reason: string | null;
|
|
11838
11901
|
retries: number;
|
|
11839
11902
|
generation: number;
|
|
@@ -12261,7 +12324,7 @@ declare function createRelayClient(options: {
|
|
|
12261
12324
|
content: {
|
|
12262
12325
|
performance: (input: z.output<typeof contentPerformanceQuerySchema>) => Promise<{
|
|
12263
12326
|
current: {
|
|
12264
|
-
state: "needs-review" | "
|
|
12327
|
+
state: "needs-review" | "failed" | "pending" | "qualified" | "content-pending" | "content-unqualified" | "waiting" | "unqualified" | "superseded";
|
|
12265
12328
|
reason: string | null;
|
|
12266
12329
|
contentAttempt: string;
|
|
12267
12330
|
attempt: string | null;
|
|
@@ -12277,7 +12340,7 @@ declare function createRelayClient(options: {
|
|
|
12277
12340
|
observation: string;
|
|
12278
12341
|
observedAt: number;
|
|
12279
12342
|
metrics: Partial<Record<"likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks", number>>;
|
|
12280
|
-
state: "needs-review" | "
|
|
12343
|
+
state: "needs-review" | "failed" | "pending" | "qualified" | "unqualified" | "superseded";
|
|
12281
12344
|
reason: string | null;
|
|
12282
12345
|
}[];
|
|
12283
12346
|
next: number | null;
|
|
@@ -12292,7 +12355,7 @@ declare function createRelayClient(options: {
|
|
|
12292
12355
|
revision: string;
|
|
12293
12356
|
observation: string;
|
|
12294
12357
|
current: boolean;
|
|
12295
|
-
state: "needs-review" | "
|
|
12358
|
+
state: "needs-review" | "failed" | "pending" | "qualified" | "unqualified" | "superseded" | "stale" | "blocked" | "unavailable";
|
|
12296
12359
|
reason: string | null;
|
|
12297
12360
|
reward: {
|
|
12298
12361
|
attempt: string | null;
|
|
@@ -12307,7 +12370,7 @@ declare function createRelayClient(options: {
|
|
|
12307
12370
|
quest: string;
|
|
12308
12371
|
content: string;
|
|
12309
12372
|
release: string;
|
|
12310
|
-
state: "pending" | "
|
|
12373
|
+
state: "pending" | "excluded" | "admitted";
|
|
12311
12374
|
reason: string | null;
|
|
12312
12375
|
attempt: string | null;
|
|
12313
12376
|
}[];
|
|
@@ -12322,7 +12385,7 @@ declare function createRelayClient(options: {
|
|
|
12322
12385
|
quest: string;
|
|
12323
12386
|
content: string;
|
|
12324
12387
|
release: string;
|
|
12325
|
-
state: "pending" | "
|
|
12388
|
+
state: "pending" | "excluded" | "admitted";
|
|
12326
12389
|
reason: string | null;
|
|
12327
12390
|
attempt: string | null;
|
|
12328
12391
|
}>;
|
|
@@ -12333,7 +12396,7 @@ declare function createRelayClient(options: {
|
|
|
12333
12396
|
quest: string;
|
|
12334
12397
|
member: string;
|
|
12335
12398
|
evidence: string | null;
|
|
12336
|
-
status: "
|
|
12399
|
+
status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
|
|
12337
12400
|
reason: string | null;
|
|
12338
12401
|
retries: number;
|
|
12339
12402
|
generation: number;
|
|
@@ -12386,7 +12449,7 @@ declare function createRelayClient(options: {
|
|
|
12386
12449
|
quest: string;
|
|
12387
12450
|
member: string;
|
|
12388
12451
|
evidence: string | null;
|
|
12389
|
-
status: "
|
|
12452
|
+
status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
|
|
12390
12453
|
reason: string | null;
|
|
12391
12454
|
retries: number;
|
|
12392
12455
|
generation: number;
|
|
@@ -12445,7 +12508,7 @@ declare function createRelayClient(options: {
|
|
|
12445
12508
|
quest: string;
|
|
12446
12509
|
member: string;
|
|
12447
12510
|
evidence: string | null;
|
|
12448
|
-
status: "
|
|
12511
|
+
status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
|
|
12449
12512
|
reason: string | null;
|
|
12450
12513
|
retries: number;
|
|
12451
12514
|
generation: number;
|
|
@@ -12494,4 +12557,4 @@ declare function createRelayClient(options: {
|
|
|
12494
12557
|
}>;
|
|
12495
12558
|
};
|
|
12496
12559
|
|
|
12497
|
-
export { AVATAR_UPLOAD_LIMIT, Attempt, AuthProvider, type AvatarProvider, type ClaimSubmission, type CollectionPass, type DeploymentPreview, type ExchangeInput, LeaderboardQuery, LinkedWallet, type ManagedProfile, MemberProgress, type MemberSummary, type OwnProfile, type PhotoSubmission, type PointLedger, type PointLedgerReference, type ProfileAvatar, type ProfileDefaults, type ProfileModeration, type ProfileSettings, type ProfileSettingsInput, type ProfileSummary, type ProfileUpdate, type ProfileVisibility, type ProgressObservation, type ProgressObserver,
|
|
12560
|
+
export { AVATAR_UPLOAD_LIMIT, Attempt, AuthProvider, type AvatarProvider, type ClaimSubmission, type CollectionPass, type DeploymentPreview, type ExchangeInput, LeaderboardQuery, LinkedWallet, type ManagedProfile, MemberProgress, type MemberSummary, type OwnProfile, type PhotoSubmission, type PointLedger, type PointLedgerReference, type ProfileAvatar, type ProfileCompletion, type ProfileCompletionPage, type ProfileCompletionQuery, type ProfileDefaultProvider, type ProfileDefaults, type ProfileModeration, type ProfileReferral, type ProfileSettings, type ProfileSettingsInput, type ProfileSummary, type ProfileUpdate, type ProfileVisibility, type ProgressObservation, type ProgressObserver, PublishedRelease, type QuestActionResult, type QuestCatalog, type QuestController, type QuestDraft, type QuestInstance, type QuestInteraction, type QuestRewardView, QuestUpdatedError, type QuestView, QuizEvidence, type QuizSubmission, RelayError, ReleaseInput, type Session, type SubmissionDraft, type SubmissionStatus, type SubmissionStore, SubmitInput, ValueEvidence, type ValueSubmission, WalletAddressInput, WalletSignature, WalletSigner, allocateQuestSchema, allocatedQuestSchema, authScopeSchema, avatarProviderSchema, avatarSeedSchema, avatarSrc, avatarUploadTypes, beginHandoverSchema, catalogDeploymentPreviewSchema, catalogDeploymentSchema, collectionBeginSchema, collectionCodeSchema, collectionPassSchema, collectionPreviewSchema, collectionResolveSchema, collectionSlotDeclarationSchema, collectionSlotSchema, collectionViewSchema, contentAdmissionQuerySchema, contentEnrollmentInputSchema, contentPerformanceQuerySchema, contentQualificationQuerySchema, contentReleaseInputSchema, createPointLedgerSchema, createRelayClient, defaultAvatar, defaultAvatarSvg, deploymentPreviewSchema, deploymentResultSchema, displayNameSchema, engagementPageQuerySchema, errorSchema, exchangeResultSchema, exchangeSchema, identityIntegrationInputSchema, identityIntegrationSchema, identityIntegrationSecretSchema, interactionSchema, isProfileParticipantRoute, managedProfileSchema, memberSummarySchema, ownProfileSchema, participantExchangeSchema, pointLedgerDeclarationSchema, pointLedgerPropertiesSchema, pointLedgerReferenceSchema, pointLedgerSchema, principalSchema, profileAvatarSchema, profileCompletionPageSchema, profileCompletionQuerySchema, profileCompletionSchema, profileDefaultProviderSchema, profileDefaultsSchema, profileModerationSchema, profileReferralSchema, profileSettingsInputSchema, profileSettingsSchema, profileSummarySchema, profileUpdateSchema, profileVisibilitySchema, projectCatalogArtifactSchema, projectDeploymentSchema, publishDeploymentSchema, publishQuestDraftSchema, questActions, questCatalogSchema, questCollectionSchema, questConfiguration, questDescriptionSchema, questDraftChangesSchema, questDraftSchema, questExperienceSchema, questInstanceSchema, questInteraction, questPublicationPreviewSchema, questRewardViewSchema, questTypeVersionSchema, questViewSchema, reconcileQuestDraft, referralAcceptSchema, rewardDeliveriesSchema, rewardDeliverySchema, saveQuestDraftSchema, sessionSchema, walletAvatarSeed, walletChallengeInputSchema, walletProofSchema, walletSignatureSchema };
|