@domino-sdk/relay 1.34.0 → 1.37.1
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/{attempt-captures-nMDnKGdI.d.ts → attempt-captures-B2Clh9Df.d.ts} +1 -1
- package/dist/authoring.d.ts +10 -9
- package/dist/authoring.js +4 -4
- package/dist/{automatic-outcomes-CHiFP_U-.d.ts → automatic-outcomes-BiarOoiy.d.ts} +1 -1
- package/dist/browser.d.ts +7 -7
- package/dist/browser.js +10 -10
- package/dist/{chunk-BDWZ2BZP.js → chunk-2GGITG27.js} +2 -2
- package/dist/{chunk-BUHGXKPY.js → chunk-2NNVJUP4.js} +1 -1
- package/dist/{chunk-Q2PUNIPL.js → chunk-4MPF5Y5A.js} +1 -1
- package/dist/{chunk-OW22TOV7.js → chunk-5D3O4GEM.js} +34 -2
- package/dist/{chunk-OEDG75KH.js → chunk-6KNYVJHM.js} +2 -2
- package/dist/{chunk-2SL7K42N.js → chunk-DOTZUOUI.js} +6 -6
- package/dist/{chunk-466IRAJP.js → chunk-EOCAYQUY.js} +15 -2
- package/dist/{chunk-3WJBL74Q.js → chunk-FB5GDPUU.js} +1 -1
- package/dist/{chunk-5C5AZTKA.js → chunk-FSJPYDW7.js} +4 -4
- package/dist/{chunk-V7K7XXFB.js → chunk-IBNS3X7D.js} +1 -1
- package/dist/{chunk-IJT4EKFY.js → chunk-OTDMH4IB.js} +1 -1
- package/dist/{chunk-V36CPSZW.js → chunk-PWHKIZ2F.js} +2 -2
- package/dist/{chunk-XOHMDXSQ.js → chunk-TIXJGCWY.js} +12 -9
- package/dist/{chunk-ON7RDKQ3.js → chunk-WYFGWUUJ.js} +9 -2
- package/dist/{chunk-32UPB7Q3.js → chunk-XJCOVZZJ.js} +1 -1
- package/dist/{chunk-KUZXNKHL.js → chunk-ZG7XRZIF.js} +1 -1
- package/dist/{client-Bkc7gOmF.d.ts → client-B3rMXsx2.d.ts} +12 -6
- package/dist/{deployments-DMVpPnGX.d.ts → deployments-CztfY7C8.d.ts} +17 -1
- package/dist/{groups-C06mpYOs.d.ts → groups-CRUAE6hI.d.ts} +9 -2
- package/dist/index.d.ts +8 -8
- package/dist/index.js +9 -9
- package/dist/internal.d.ts +9 -9
- package/dist/internal.js +8 -8
- package/dist/{offers-BbQ9O-5J.d.ts → offers-B04ZE2JR.d.ts} +2 -2
- package/dist/{pages-C1tNuRoB.d.ts → pages-B5agdH0f.d.ts} +1 -1
- package/dist/{participant-activity-BPZiW7m7.d.ts → participant-activity-CoB2F30C.d.ts} +2 -0
- package/dist/portal-proxy.js +3 -3
- package/dist/react/index.d.ts +12 -10
- package/dist/react/index.js +10 -10
- package/dist/{schema-DquhoBae.d.ts → schema--jNn3OfJ.d.ts} +54 -1
- package/dist/schema.d.ts +22 -12
- package/dist/schema.js +13 -7
- package/dist/server/index.d.ts +9 -9
- package/dist/server/index.js +130 -16
- package/dist/{submission-input-DUmt6Wyx.d.ts → submission-input-DGBBygFe.d.ts} +2 -2
- package/dist/{telegram-browser-DWFPGBgU.d.ts → telegram-browser-CiTSBNKo.d.ts} +2 -2
- package/dist/testing.d.ts +3 -3
- package/dist/testing.js +5 -5
- package/dist/{transport-DpI_Hhng.d.ts → transport-BLq1PH-O.d.ts} +465 -15
- package/dist/{x-58jkoblN.d.ts → x-imfTy_I1.d.ts} +1 -1
- package/package.json +1 -1
package/dist/authoring.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { x as xContentBodySchema, I as IdentityKind, n as customSourceSchema, W as WithRecordData, o as WithContent, p as WithAccountRoles, q as ResourceHandle, r as QuestHandle, L as LedgerReference, G as GroupHandle, u as TrackerSource, v as trackerDefinitionSchema, y as Tracker, z as TrackerData, B as SourceRoles, C as LedgerHandle, D as TrackerDataSchema, F as xSearchSourceSchema, X as XTweet, H as XContentMetric, J as TrackerTriggerPolicy, N as Where, P as MemberIdentity, U as TrackerTriggerContext, V as TrackerReader, Y as TextReviewInput, Z as TextResult, _ as PhotoResult, $ as Decision, a0 as rewardSchema, a1 as TrackerTriggerMode, a2 as RoleOf, a3 as WhereSetting, a4 as ContentBody, a5 as BadgeHandle, a6 as ContentMetricName, a7 as triggerSchema, d as QuestPresentation, e as QuestProfile, f as QuizEvidence, a8 as TieredRewardDefinition } from './schema
|
|
2
|
-
export { a9 as LedgerSetting, aa as TrackerPage, ab as TrackerReadQuery, ac as trackerDataSchema, ad as trackerTriggerContextSchema } from './schema
|
|
1
|
+
import { x as xContentBodySchema, I as IdentityKind, n as customSourceSchema, W as WithRecordData, o as WithContent, p as WithAccountRoles, q as ResourceHandle, r as QuestHandle, L as LedgerReference, G as GroupHandle, u as TrackerSource, v as trackerDefinitionSchema, y as Tracker, z as TrackerData, B as SourceRoles, C as LedgerHandle, D as TrackerDataSchema, F as xSearchSourceSchema, X as XTweet, H as XContentMetric, J as TrackerTriggerPolicy, N as Where, P as MemberIdentity, U as TrackerTriggerContext, V as TrackerReader, Y as TextReviewInput, Z as TextResult, _ as PhotoResult, $ as Decision, a0 as rewardSchema, a1 as TrackerTriggerMode, a2 as RoleOf, a3 as WhereSetting, a4 as ContentBody, a5 as BadgeHandle, a6 as ContentMetricName, a7 as triggerSchema, d as QuestPresentation, e as QuestProfile, f as QuizEvidence, a8 as TieredRewardDefinition } from './schema--jNn3OfJ.js';
|
|
2
|
+
export { a9 as LedgerSetting, aa as TrackerPage, ab as TrackerReadQuery, ac as trackerDataSchema, ad as trackerTriggerContextSchema } from './schema--jNn3OfJ.js';
|
|
3
3
|
import * as z from 'zod';
|
|
4
4
|
export { z } from 'zod';
|
|
5
|
-
import { f as badgeDeclarationSchema, B as Badge } from './offers-
|
|
6
|
-
export { g as defineOffer } from './offers-
|
|
7
|
-
import { E as EngagementBudget, q as leaderboardDefinitionSchema, r as AuthoringIdentity, s as pointLedgerDeclarationSchema, t as referralAuthoringSchema, C as CampaignDefinition, A as AvailabilityWindow } from './groups-
|
|
8
|
-
export { u as defineCampaign, v as defineGroup } from './groups-
|
|
5
|
+
import { f as badgeDeclarationSchema, B as Badge } from './offers-B04ZE2JR.js';
|
|
6
|
+
export { g as defineOffer } from './offers-B04ZE2JR.js';
|
|
7
|
+
import { E as EngagementBudget, q as leaderboardDefinitionSchema, r as AuthoringIdentity, s as pointLedgerDeclarationSchema, t as referralAuthoringSchema, C as CampaignDefinition, A as AvailabilityWindow } from './groups-CRUAE6hI.js';
|
|
8
|
+
export { u as defineCampaign, v as defineGroup } from './groups-CRUAE6hI.js';
|
|
9
9
|
import { d as discordMessagesSourceSchema, D as DiscordMessageData, c as DiscordMessageTextData, e as discordReactionsSourceSchema, f as DiscordReactionData, g as TelegramReader, h as DiscordReader } from './accounts-DRPENuZe.js';
|
|
10
10
|
export { i as TelegramChatMember, j as TelegramChatMemberStatus, k as TelegramReactionData } from './accounts-DRPENuZe.js';
|
|
11
11
|
import { Q as QuizContent, a as StreakPolicy } from './streaks-0YuipsUQ.js';
|
|
12
12
|
import { R as ResourceSource, S as Setting, I as IntegrationModule, B as Budget, a as IntegerSettings } from './integrations-CllF-kWg.js';
|
|
13
|
-
import { P as Prerequisite, T as TextEvidence, U as UrlEvidence, a as TextOptions, b as UrlOptions } from './submission-input-
|
|
14
|
-
export { c as balanceAtLeast, d as completed, i as inGroup } from './submission-input-
|
|
15
|
-
import { I as ImageReader, X as XReader } from './x-
|
|
13
|
+
import { P as Prerequisite, T as TextEvidence, U as UrlEvidence, a as TextOptions, b as UrlOptions } from './submission-input-DGBBygFe.js';
|
|
14
|
+
export { c as balanceAtLeast, d as completed, i as inGroup } from './submission-input-DGBBygFe.js';
|
|
15
|
+
import { I as ImageReader, X as XReader } from './x-imfTy_I1.js';
|
|
16
16
|
import { h as WalletReader } from './wallet-t7uNDg9p.js';
|
|
17
17
|
export { i as CosmosDenom, a as CosmosNetwork, E as EvmChainId, j as WalletBalance, k as WalletBalanceQuery, l as cosmosDenomSchema, m as cosmosNetworkSchema, n as isEvmChainId } from './wallet-t7uNDg9p.js';
|
|
18
18
|
export { C as CapabilityError, a as CapabilityErrorCode, c as capabilityErrorCodes } from './capability-error-FQGGb5xS.js';
|
|
@@ -295,6 +295,7 @@ declare function defineLeaderboard(input: Omit<LeaderboardInput, "key" | "id" |
|
|
|
295
295
|
};
|
|
296
296
|
};
|
|
297
297
|
key: string;
|
|
298
|
+
includeUnscored?: boolean | undefined;
|
|
298
299
|
settle?: {
|
|
299
300
|
at: "window-end";
|
|
300
301
|
ties: "shared" | "earliest";
|
package/dist/authoring.js
CHANGED
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
sourceDataSchema,
|
|
11
11
|
sourceRoles,
|
|
12
12
|
validateQuestShape
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-FB5GDPUU.js";
|
|
14
14
|
import {
|
|
15
15
|
badgeDeclarationSchema,
|
|
16
16
|
defineOffer,
|
|
@@ -20,11 +20,11 @@ import {
|
|
|
20
20
|
leaderboardAuthoringSchema,
|
|
21
21
|
pointLedgerDeclarationSchema,
|
|
22
22
|
referralAuthoringSchema
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-WYFGWUUJ.js";
|
|
24
24
|
import {
|
|
25
25
|
telegramReactionDataSchema,
|
|
26
26
|
telegramReactionsNamespace
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-2NNVJUP4.js";
|
|
28
28
|
import {
|
|
29
29
|
authoringKey,
|
|
30
30
|
badgeReward,
|
|
@@ -81,7 +81,7 @@ import {
|
|
|
81
81
|
whereSchemaIssue,
|
|
82
82
|
whereSettings,
|
|
83
83
|
xSearchSourceSchema
|
|
84
|
-
} from "./chunk-
|
|
84
|
+
} from "./chunk-5D3O4GEM.js";
|
|
85
85
|
|
|
86
86
|
// src/builders.ts
|
|
87
87
|
import * as z from "zod";
|
package/dist/browser.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { o as SubmissionStore, f as RelayClientOptions, R as RelayClient } from './client-
|
|
2
|
-
export { C as CosmosChains, D as DiscoveredWallet, E as Eip1193Provider, a as EmailSignInOption, K as KeplrLike, O as OAuthSignInOption, S as SignInClient, b as SignInIcon, c as SignInMethods, d as SignInOption, e as SignInOptions, f as SignInUnavailable, g as SignInWallet, h as SolanaInjectedProvider, i as StandardWallet, j as StandardWalletAccount, T as TelegramSignInOption, W as WalletSignInOption, k as cosmosChainList, l as cosmosSigner, m as discoverCosmosWallets, n as discoverEvmWallets, o as discoverSignInWallets, p as discoverSolanaWallets, q as evmSigner, s as signInOptions, r as solanaSigner, t as telegramMiniAppInitData, w as walletStandardSolanaSigner } from './telegram-browser-
|
|
3
|
-
import './groups-
|
|
1
|
+
import { o as SubmissionStore, f as RelayClientOptions, R as RelayClient } from './client-B3rMXsx2.js';
|
|
2
|
+
export { C as CosmosChains, D as DiscoveredWallet, E as Eip1193Provider, a as EmailSignInOption, K as KeplrLike, O as OAuthSignInOption, S as SignInClient, b as SignInIcon, c as SignInMethods, d as SignInOption, e as SignInOptions, f as SignInUnavailable, g as SignInWallet, h as SolanaInjectedProvider, i as StandardWallet, j as StandardWalletAccount, T as TelegramSignInOption, W as WalletSignInOption, k as cosmosChainList, l as cosmosSigner, m as discoverCosmosWallets, n as discoverEvmWallets, o as discoverSignInWallets, p as discoverSolanaWallets, q as evmSigner, s as signInOptions, r as solanaSigner, t as telegramMiniAppInitData, w as walletStandardSolanaSigner } from './telegram-browser-CiTSBNKo.js';
|
|
3
|
+
import './groups-CRUAE6hI.js';
|
|
4
4
|
import 'zod';
|
|
5
|
-
import './schema
|
|
6
|
-
import './pages-
|
|
7
|
-
import './submission-input-
|
|
5
|
+
import './schema--jNn3OfJ.js';
|
|
6
|
+
import './pages-B5agdH0f.js';
|
|
7
|
+
import './submission-input-DGBBygFe.js';
|
|
8
8
|
import './action-DBzILFx9.js';
|
|
9
|
-
import './participant-activity-
|
|
9
|
+
import './participant-activity-CoB2F30C.js';
|
|
10
10
|
import './accounts-DRPENuZe.js';
|
|
11
11
|
import './profiles-BHuQdzsW.js';
|
|
12
12
|
import './wallet-t7uNDg9p.js';
|
package/dist/browser.js
CHANGED
|
@@ -12,16 +12,16 @@ import {
|
|
|
12
12
|
solanaSigner,
|
|
13
13
|
telegramMiniAppInitData,
|
|
14
14
|
walletStandardSolanaSigner
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-6KNYVJHM.js";
|
|
16
|
+
import "./chunk-TIXJGCWY.js";
|
|
17
|
+
import "./chunk-OTDMH4IB.js";
|
|
18
|
+
import "./chunk-2GGITG27.js";
|
|
19
|
+
import "./chunk-WYFGWUUJ.js";
|
|
20
|
+
import "./chunk-2NNVJUP4.js";
|
|
21
|
+
import "./chunk-IBNS3X7D.js";
|
|
22
|
+
import "./chunk-4MPF5Y5A.js";
|
|
23
|
+
import "./chunk-EOCAYQUY.js";
|
|
24
|
+
import "./chunk-5D3O4GEM.js";
|
|
25
25
|
export {
|
|
26
26
|
browserSubmissionStore,
|
|
27
27
|
cosmosChainList,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
badgeSchema,
|
|
3
3
|
pointLedgerReferenceSchema
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-WYFGWUUJ.js";
|
|
5
5
|
import {
|
|
6
6
|
authoringIdentityShape,
|
|
7
7
|
entitlementSchema,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
storedQuestDescriptionSchema,
|
|
21
21
|
storedReviewModeSchema,
|
|
22
22
|
tieredRewardReferenceSchema
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-5D3O4GEM.js";
|
|
24
24
|
|
|
25
25
|
// src/participant-activity.ts
|
|
26
26
|
import * as z from "zod";
|
|
@@ -1344,8 +1344,33 @@ var trackerStatusSchema = z8.object({
|
|
|
1344
1344
|
nextSyncAt: timestamp.nullable(),
|
|
1345
1345
|
coverage: z8.enum(["unknown", "partial", "complete"]),
|
|
1346
1346
|
error: z8.string().nullable(),
|
|
1347
|
-
records: count
|
|
1347
|
+
records: count,
|
|
1348
|
+
/**
|
|
1349
|
+
* Who owns the definition: `code` for a tracker a deployment publishes from `defineTracker`,
|
|
1350
|
+
* `data` for an X search tracker created with `management.trackers.create` or in Console, which
|
|
1351
|
+
* only `management.trackers.update` changes. Older servers leave it out.
|
|
1352
|
+
*/
|
|
1353
|
+
origin: z8.enum(["code", "data"]).optional()
|
|
1348
1354
|
});
|
|
1355
|
+
var trackerPropertiesSchema = z8.object({
|
|
1356
|
+
title: trackerDefinitionSchema.shape.title,
|
|
1357
|
+
/** The X search query. A new query collects from now on; it never searches the past. */
|
|
1358
|
+
query: xSearchSourceSchema.shape.query,
|
|
1359
|
+
window: windowSchema,
|
|
1360
|
+
// Without defaults, so an update leaves out what it does not change.
|
|
1361
|
+
refreshSeconds: trackerDefinitionSchema.shape.refreshSeconds.unwrap(),
|
|
1362
|
+
maxPages: trackerDefinitionSchema.shape.maxPages.unwrap()
|
|
1363
|
+
}).strict();
|
|
1364
|
+
var trackerCreateSchema = trackerPropertiesSchema.extend({
|
|
1365
|
+
key: identifier,
|
|
1366
|
+
refreshSeconds: trackerDefinitionSchema.shape.refreshSeconds,
|
|
1367
|
+
maxPages: trackerDefinitionSchema.shape.maxPages,
|
|
1368
|
+
actionId: identifier
|
|
1369
|
+
}).strict();
|
|
1370
|
+
var trackerUpdateSchema = trackerPropertiesSchema.partial().extend({ actionId: identifier }).strict().refine(
|
|
1371
|
+
({ actionId: _, ...changes }) => Object.values(changes).some((value) => value !== void 0),
|
|
1372
|
+
"Change at least one field"
|
|
1373
|
+
);
|
|
1349
1374
|
var trackerControlSchema = z8.object({
|
|
1350
1375
|
actionId: identifier,
|
|
1351
1376
|
action: z8.enum(["pause", "resume", "refresh"])
|
|
@@ -2709,12 +2734,15 @@ function inGroup(group) {
|
|
|
2709
2734
|
});
|
|
2710
2735
|
}
|
|
2711
2736
|
|
|
2737
|
+
// src/points-amount.ts
|
|
2738
|
+
var maxPointsAmount = 2147483647;
|
|
2739
|
+
|
|
2712
2740
|
// src/schema.ts
|
|
2713
2741
|
import * as z26 from "zod";
|
|
2714
2742
|
var pointsRewardSchema = z26.object({
|
|
2715
2743
|
kind: z26.literal("points").default("points"),
|
|
2716
2744
|
balance: identifier,
|
|
2717
|
-
amount: z26.number().int().min(0).max(
|
|
2745
|
+
amount: z26.number().int().min(0).max(maxPointsAmount)
|
|
2718
2746
|
}).strict();
|
|
2719
2747
|
var tieredRewardDefinitionSchema = z26.object({
|
|
2720
2748
|
/** An automatic achievement backed by the project badge catalog. */
|
|
@@ -3548,6 +3576,9 @@ export {
|
|
|
3548
3576
|
trackerDefinitionResponseSchema,
|
|
3549
3577
|
publishedTrackerSchema,
|
|
3550
3578
|
trackerStatusSchema,
|
|
3579
|
+
trackerPropertiesSchema,
|
|
3580
|
+
trackerCreateSchema,
|
|
3581
|
+
trackerUpdateSchema,
|
|
3551
3582
|
trackerControlSchema,
|
|
3552
3583
|
trackerAccountSchema,
|
|
3553
3584
|
trackerRecordInputSchema,
|
|
@@ -3614,6 +3645,7 @@ export {
|
|
|
3614
3645
|
trackerTriggerRecordSchema,
|
|
3615
3646
|
trackerContentStageSchema,
|
|
3616
3647
|
trackerTriggerContextSchema,
|
|
3648
|
+
maxPointsAmount,
|
|
3617
3649
|
completionPolicySchema,
|
|
3618
3650
|
completionKeySchema,
|
|
3619
3651
|
budgetSchema,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createRelayClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-TIXJGCWY.js";
|
|
4
4
|
import {
|
|
5
5
|
RelayErrorCode,
|
|
6
6
|
asRelayError,
|
|
7
7
|
clientError,
|
|
8
8
|
cosmosChain
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-5D3O4GEM.js";
|
|
10
10
|
|
|
11
11
|
// src/base58.ts
|
|
12
12
|
var alphabet = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
imageSightingsSchema,
|
|
7
7
|
imageUploadsSchema,
|
|
8
8
|
publishedImageSchema
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ZG7XRZIF.js";
|
|
10
10
|
import {
|
|
11
11
|
catalogDeploymentSchema,
|
|
12
12
|
collectionPassSchema,
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
questTypeVersionSchema,
|
|
25
25
|
questViewSchema,
|
|
26
26
|
rewardDeliveriesSchema
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-2GGITG27.js";
|
|
28
28
|
import {
|
|
29
29
|
badgeArtifactSchema,
|
|
30
30
|
badgeSchema,
|
|
@@ -57,15 +57,15 @@ import {
|
|
|
57
57
|
referralDefinitionSchema,
|
|
58
58
|
referralHistorySchema,
|
|
59
59
|
referralSummarySchema
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-WYFGWUUJ.js";
|
|
61
61
|
import {
|
|
62
62
|
telegramAccountConnectionSchema
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-2NNVJUP4.js";
|
|
64
64
|
import {
|
|
65
65
|
exchangeResultSchema,
|
|
66
66
|
memberSummarySchema,
|
|
67
67
|
participantSessionSchema
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-EOCAYQUY.js";
|
|
69
69
|
import {
|
|
70
70
|
accountConnectionSchema,
|
|
71
71
|
attemptSchema,
|
|
@@ -96,7 +96,7 @@ import {
|
|
|
96
96
|
walletBalanceSchema,
|
|
97
97
|
walletMessageChallengeSchema,
|
|
98
98
|
walletSignInNetworksSchema
|
|
99
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-5D3O4GEM.js";
|
|
100
100
|
|
|
101
101
|
// src/deployments.ts
|
|
102
102
|
import * as z from "zod";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
identifier
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-5D3O4GEM.js";
|
|
4
4
|
|
|
5
5
|
// src/auth.ts
|
|
6
6
|
import * as z from "zod";
|
|
@@ -39,7 +39,20 @@ function sessionMember(session) {
|
|
|
39
39
|
}
|
|
40
40
|
var memberSummarySchema = z.object({
|
|
41
41
|
member: identifier,
|
|
42
|
-
avatarSeed: z.string().min(1).max(100)
|
|
42
|
+
avatarSeed: z.string().min(1).max(100),
|
|
43
|
+
/**
|
|
44
|
+
* The member's own email address for "signed in as": the first of `emails`, or null when they
|
|
45
|
+
* have none, such as after wallet-only sign-in. Only the member reads it. Absent from a Relay
|
|
46
|
+
* older than this field.
|
|
47
|
+
*/
|
|
48
|
+
email: z.string().min(1).nullable().optional(),
|
|
49
|
+
/**
|
|
50
|
+
* The verified email addresses that sign the member in: each email-code sign-in address, then
|
|
51
|
+
* the verified email of each Google or Apple account enabled for sign-in. Accounts connected
|
|
52
|
+
* only for activity are left out. Empty when there are none. Absent from a Relay older than
|
|
53
|
+
* this field.
|
|
54
|
+
*/
|
|
55
|
+
emails: z.array(z.string().min(1)).optional()
|
|
43
56
|
});
|
|
44
57
|
var exchangeSchema = authScopeSchema.extend({
|
|
45
58
|
identity: z.object({ issuer: identifier, subject: z.string().min(1).max(200) }).strict(),
|
|
@@ -4,20 +4,20 @@ import {
|
|
|
4
4
|
retryAfter,
|
|
5
5
|
retrying,
|
|
6
6
|
validTimeout
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-IBNS3X7D.js";
|
|
8
8
|
import {
|
|
9
9
|
clientIdentity
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-4MPF5Y5A.js";
|
|
11
11
|
import {
|
|
12
12
|
authScopeSchema
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-EOCAYQUY.js";
|
|
14
14
|
import {
|
|
15
15
|
RequestError,
|
|
16
16
|
appIdentityKindSchema,
|
|
17
17
|
isRequestError,
|
|
18
18
|
knownResponse,
|
|
19
19
|
openIdentityKindSchema
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-5D3O4GEM.js";
|
|
21
21
|
|
|
22
22
|
// src/configuration.ts
|
|
23
23
|
function questConfiguration(release) {
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
imageFieldsSchema,
|
|
5
5
|
imageInspectionSchema,
|
|
6
6
|
imageSightingsSchema
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ZG7XRZIF.js";
|
|
8
8
|
import {
|
|
9
9
|
photoResultSchema
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-5D3O4GEM.js";
|
|
11
11
|
|
|
12
12
|
// src/image-results.ts
|
|
13
13
|
import * as z from "zod";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createRelayAction,
|
|
3
3
|
withActionId
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-OTDMH4IB.js";
|
|
5
5
|
import {
|
|
6
6
|
collectionPassSchema,
|
|
7
7
|
participantActivityQuerySchema,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
questOutcomeSchema,
|
|
18
18
|
rewardDeliveriesSchema,
|
|
19
19
|
rewardDeliveryQuerySchema
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-2GGITG27.js";
|
|
21
21
|
import {
|
|
22
22
|
AVATAR_UPLOAD_LIMIT,
|
|
23
23
|
avatarUploadTypes,
|
|
@@ -46,29 +46,29 @@ import {
|
|
|
46
46
|
referralDefinitionSchema,
|
|
47
47
|
referralHistorySchema,
|
|
48
48
|
referralSummarySchema
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-WYFGWUUJ.js";
|
|
50
50
|
import {
|
|
51
51
|
telegramAccountConnectionSchema,
|
|
52
52
|
telegramMiniAppSignInSchema,
|
|
53
53
|
telegramSignInMethodsSchema
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-2NNVJUP4.js";
|
|
55
55
|
import {
|
|
56
56
|
PARTICIPANT_TIMEOUT,
|
|
57
57
|
lifetime,
|
|
58
58
|
retryAfter,
|
|
59
59
|
retrying,
|
|
60
60
|
validTimeout
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-IBNS3X7D.js";
|
|
62
62
|
import {
|
|
63
63
|
clientIdentity
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-4MPF5Y5A.js";
|
|
65
65
|
import {
|
|
66
66
|
exchangeResultSchema,
|
|
67
67
|
exchangeSchema,
|
|
68
68
|
memberSummarySchema,
|
|
69
69
|
participantSessionSchema,
|
|
70
70
|
sessionMember
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-EOCAYQUY.js";
|
|
72
72
|
import {
|
|
73
73
|
RelayError,
|
|
74
74
|
RelayErrorCode,
|
|
@@ -107,7 +107,7 @@ import {
|
|
|
107
107
|
walletSignInNetworksSchema,
|
|
108
108
|
walletSignatureSchema,
|
|
109
109
|
walletUnlinkInputSchema
|
|
110
|
-
} from "./chunk-
|
|
110
|
+
} from "./chunk-5D3O4GEM.js";
|
|
111
111
|
|
|
112
112
|
// src/legacy-submissions.ts
|
|
113
113
|
import * as z from "zod";
|
|
@@ -2191,7 +2191,10 @@ function relayClient(options) {
|
|
|
2191
2191
|
return { refresh: observer.refresh, dispose: observer.dispose };
|
|
2192
2192
|
}
|
|
2193
2193
|
},
|
|
2194
|
-
/**
|
|
2194
|
+
/**
|
|
2195
|
+
* The signed-in member, the seed of their generated avatar (`defaultAvatar(avatarSeed)`), and
|
|
2196
|
+
* their own verified sign-in email addresses: `email` (or null) and `emails`.
|
|
2197
|
+
*/
|
|
2195
2198
|
get: async (requestOptions) => request("/v1/me", memberSummarySchema, { options: requestOptions }),
|
|
2196
2199
|
observeProgress: (listener, observeOptions) => {
|
|
2197
2200
|
const observer = observeProgress(
|
|
@@ -4,6 +4,7 @@ import {
|
|
|
4
4
|
contentMetricSchema,
|
|
5
5
|
contentMetricsSchema,
|
|
6
6
|
identifier,
|
|
7
|
+
maxPointsAmount,
|
|
7
8
|
pageCursorSchema,
|
|
8
9
|
pointsRewardSchema,
|
|
9
10
|
refuseWindowTimeZone,
|
|
@@ -11,7 +12,7 @@ import {
|
|
|
11
12
|
responseShape,
|
|
12
13
|
rewardKey,
|
|
13
14
|
tierRewardSchema
|
|
14
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-5D3O4GEM.js";
|
|
15
16
|
|
|
16
17
|
// src/badges.ts
|
|
17
18
|
import * as z from "zod";
|
|
@@ -477,6 +478,12 @@ var leaderboardDefinitionObject = z5.object({
|
|
|
477
478
|
score: scoreSchema,
|
|
478
479
|
access: z5.enum(["participants", "public"]).default("participants"),
|
|
479
480
|
group: identifier.optional(),
|
|
481
|
+
/**
|
|
482
|
+
* List the project's eligible members who have no qualifying points, with a score of 0, ranked
|
|
483
|
+
* after every member who scored and ordered by member ID. Omitted or false lists only members
|
|
484
|
+
* with a qualifying entry. Settlements never include them.
|
|
485
|
+
*/
|
|
486
|
+
includeUnscored: z5.boolean().optional(),
|
|
480
487
|
settle: leaderboardSettlementPolicySchema.optional()
|
|
481
488
|
}).strict();
|
|
482
489
|
var validateSettlementWindow = (definition, context) => {
|
|
@@ -850,7 +857,7 @@ var referralManagementSchema = z6.object({
|
|
|
850
857
|
import * as z7 from "zod";
|
|
851
858
|
var quantity = z7.number().int().safe().nonnegative();
|
|
852
859
|
var offerPriceSchema = pointsRewardSchema.extend({
|
|
853
|
-
amount: z7.number().int().positive().max(
|
|
860
|
+
amount: z7.number().int().positive().max(maxPointsAmount)
|
|
854
861
|
});
|
|
855
862
|
var offerLimitSchema = z7.object({ perMember: z7.number().int().positive().max(1e4) }).strict();
|
|
856
863
|
var offerDefinitionSchema = z7.object({
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { b0 as referralAcceptSchema, g as LeaderboardQuery, b as CampaignEnrollmentInput, d as CampaignWithdrawalInput, m as PointHistoryQuery, k as PointEntryKind, a7 as engagementPageQuerySchema } from './groups-
|
|
2
|
-
import { j as QuestView, k as ResponseSchema, a as PageQuery, c as QuestEnrollmentInput, Q as QuestClaimInput, g as QuestOutcomeQuery, a0 as questExperienceSchema, t as RewardDeliveryQuery, l as RewardDeliveryAction, H as contentQualificationQuerySchema } from './pages-
|
|
3
|
-
import { M as MissingPrerequisite, V as ValueEvidence } from './submission-input-
|
|
1
|
+
import { b0 as referralAcceptSchema, g as LeaderboardQuery, b as CampaignEnrollmentInput, d as CampaignWithdrawalInput, m as PointHistoryQuery, k as PointEntryKind, a7 as engagementPageQuerySchema } from './groups-CRUAE6hI.js';
|
|
2
|
+
import { j as QuestView, k as ResponseSchema, a as PageQuery, c as QuestEnrollmentInput, Q as QuestClaimInput, g as QuestOutcomeQuery, a0 as questExperienceSchema, t as RewardDeliveryQuery, l as RewardDeliveryAction, H as contentQualificationQuerySchema } from './pages-B5agdH0f.js';
|
|
3
|
+
import { M as MissingPrerequisite, V as ValueEvidence } from './submission-input-DGBBygFe.js';
|
|
4
4
|
import { a as RequestError, b as RequestErrorDetails, c as RequestErrorKind, e as createRelayAction, O as OptionalActionId } from './action-DBzILFx9.js';
|
|
5
|
-
import { f as QuizEvidence, A as Attempt, M as MemberProgress, a as AttemptStatus, h as TrackerSkipCode,
|
|
6
|
-
import { b as ParticipantSession, d as exchangeSchema, R as RelayEvent, P as ParticipantActivity } from './participant-activity-
|
|
5
|
+
import { f as QuizEvidence, A as Attempt, M as MemberProgress, a as AttemptStatus, h as TrackerSkipCode, cq as submitSchema, bl as contentPerformanceQuerySchema } from './schema--jNn3OfJ.js';
|
|
6
|
+
import { b as ParticipantSession, d as exchangeSchema, R as RelayEvent, P as ParticipantActivity } from './participant-activity-CoB2F30C.js';
|
|
7
7
|
import * as z from 'zod';
|
|
8
8
|
import { a as AuthProvider } from './accounts-DRPENuZe.js';
|
|
9
9
|
import { F as profileUpdateSchema, c as ProfileCompletionQuery } from './profiles-BHuQdzsW.js';
|
|
@@ -1166,6 +1166,7 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
1166
1166
|
access: "public" | "participants";
|
|
1167
1167
|
key?: string | undefined;
|
|
1168
1168
|
group?: string | undefined;
|
|
1169
|
+
includeUnscored?: boolean | undefined;
|
|
1169
1170
|
settle?: {
|
|
1170
1171
|
at: "window-end";
|
|
1171
1172
|
ties: "shared" | "earliest";
|
|
@@ -3748,10 +3749,15 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
3748
3749
|
onState?: (state: ProgressObservation<ParticipantActivity>) => void;
|
|
3749
3750
|
}) => ProgressObserver;
|
|
3750
3751
|
};
|
|
3751
|
-
/**
|
|
3752
|
+
/**
|
|
3753
|
+
* The signed-in member, the seed of their generated avatar (`defaultAvatar(avatarSeed)`), and
|
|
3754
|
+
* their own verified sign-in email addresses: `email` (or null) and `emails`.
|
|
3755
|
+
*/
|
|
3752
3756
|
get: (requestOptions?: RelayRequestOptions) => Promise<{
|
|
3753
3757
|
member: string;
|
|
3754
3758
|
avatarSeed: string;
|
|
3759
|
+
email?: string | null | undefined;
|
|
3760
|
+
emails?: string[] | undefined;
|
|
3755
3761
|
}>;
|
|
3756
3762
|
observeProgress: (listener: (value: ProgressObservation) => void, observeOptions?: {
|
|
3757
3763
|
intervalMs?: number;
|