@domino-sdk/relay 1.46.0 → 1.49.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-p7JPb7Xi.d.ts → attempt-captures-DF--rIgJ.d.ts} +5 -1
- package/dist/authoring.d.ts +48 -10
- package/dist/authoring.js +7 -4
- package/dist/{automatic-outcomes-YkGhnxsc.d.ts → automatic-outcomes-C7f5-N0M.d.ts} +2 -1
- package/dist/browser.d.ts +6 -6
- package/dist/browser.js +10 -10
- package/dist/{chunk-6IC332LX.js → chunk-3LK6JIBY.js} +1 -1
- package/dist/{chunk-Y22GX76Y.js → chunk-4Y5AYL3C.js} +5 -3
- package/dist/{chunk-2VBCWGBG.js → chunk-7WVTYMFA.js} +9 -8
- package/dist/{chunk-3UCK2C2P.js → chunk-CHURQQBP.js} +2 -2
- package/dist/{chunk-KHFDDXAM.js → chunk-DP7FGRUW.js} +1 -1
- package/dist/{chunk-OXIXMXFB.js → chunk-DPM6FDOT.js} +1 -1
- package/dist/{chunk-JPFPLYQS.js → chunk-GYXYZL5E.js} +1 -1
- package/dist/{chunk-SESHFICW.js → chunk-K6EHQZ6Q.js} +8 -8
- package/dist/{chunk-ZRTNPNNG.js → chunk-MDN2STMB.js} +4 -4
- package/dist/{chunk-TJ2OH3MQ.js → chunk-MMR6CZEJ.js} +1 -1
- package/dist/{chunk-EC5MEEZD.js → chunk-NAEVXBSF.js} +1 -1
- package/dist/{chunk-R5BDN7US.js → chunk-O5WR2JT4.js} +1 -1
- package/dist/{chunk-SKBZ7UVZ.js → chunk-SGWAVIEP.js} +1 -1
- package/dist/{chunk-DJAIFEV4.js → chunk-VTD4YDEO.js} +36 -2
- package/dist/{chunk-WE6LLVR5.js → chunk-W3SQLZRA.js} +1 -1
- package/dist/{chunk-4W4FXLGM.js → chunk-W5FWEXMV.js} +2 -2
- package/dist/{client-CVG_MoXx.d.ts → client-C5sCO45H.d.ts} +37 -4
- package/dist/{deployments-BWav9s6t.d.ts → deployments-DLVhetCw.d.ts} +120 -5
- package/dist/{groups-CMZROR9a.d.ts → groups-DG7_3ipk.d.ts} +26 -1
- package/dist/index.d.ts +7 -7
- package/dist/index.js +9 -9
- package/dist/internal.d.ts +9 -9
- package/dist/internal.js +8 -8
- package/dist/{offers-Cvk4uBjo.d.ts → offers-yZTUWHSp.d.ts} +15 -2
- package/dist/{pages-BXZP4o-w.d.ts → pages-DLFRK5l7.d.ts} +30 -1
- package/dist/portal-proxy.js +3 -3
- package/dist/react/index.d.ts +13 -8
- package/dist/react/index.js +10 -10
- package/dist/runtime/authoring.js +1 -1
- package/dist/runtime/chunks/4O3MZT45.js +1 -0
- package/dist/runtime/manifest.json +3 -3
- package/dist/runtime/schema.js +1 -1
- package/dist/{schema-BgjSnV9D.d.ts → schema-6uU1s4if.d.ts} +116 -1
- package/dist/schema.d.ts +97 -11
- package/dist/schema.js +11 -7
- package/dist/server/index.d.ts +9 -9
- package/dist/server/index.js +33 -14
- package/dist/{submission-input-CD59rLYk.d.ts → submission-input-DtNMoL30.d.ts} +2 -2
- package/dist/{telegram-browser-bnRKW9KG.d.ts → telegram-browser-DE9d1M-g.d.ts} +1 -1
- package/dist/testing.d.ts +3 -3
- package/dist/testing.js +5 -5
- package/dist/{transport-DzRDaPXc.d.ts → transport-ud83MHKQ.d.ts} +640 -10
- package/dist/{x-B_7RCkOo.d.ts → x-B6mbKgoQ.d.ts} +1 -1
- package/package.json +1 -1
- package/dist/runtime/chunks/KMKCMYDX.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { O as OpenIdentityKind } from './schema-
|
|
1
|
+
import { O as OpenIdentityKind } from './schema-6uU1s4if.js';
|
|
2
2
|
import * as z from 'zod';
|
|
3
3
|
|
|
4
4
|
/** One capability call of the captured evaluation run, as Relay stored it. */
|
|
@@ -55,6 +55,7 @@ declare const attemptCaptureSchema: z.ZodObject<{
|
|
|
55
55
|
kind: z.ZodLiteral<"tier">;
|
|
56
56
|
reward: z.ZodObject<{
|
|
57
57
|
badge: z.ZodOptional<z.ZodString>;
|
|
58
|
+
group: z.ZodOptional<z.ZodString>;
|
|
58
59
|
id: z.ZodString;
|
|
59
60
|
title: z.ZodString;
|
|
60
61
|
tiers: z.ZodArray<z.ZodObject<{
|
|
@@ -162,6 +163,7 @@ declare const attemptCaptureSchema: z.ZodObject<{
|
|
|
162
163
|
kind: z.ZodLiteral<"tier">;
|
|
163
164
|
reward: z.ZodObject<{
|
|
164
165
|
badge: z.ZodOptional<z.ZodString>;
|
|
166
|
+
group: z.ZodOptional<z.ZodString>;
|
|
165
167
|
id: z.ZodString;
|
|
166
168
|
title: z.ZodString;
|
|
167
169
|
tiers: z.ZodArray<z.ZodObject<{
|
|
@@ -220,6 +222,7 @@ declare const attemptCaptureSchema: z.ZodObject<{
|
|
|
220
222
|
kind: z.ZodLiteral<"tier">;
|
|
221
223
|
reward: z.ZodObject<{
|
|
222
224
|
badge: z.ZodOptional<z.ZodString>;
|
|
225
|
+
group: z.ZodOptional<z.ZodString>;
|
|
223
226
|
id: z.ZodString;
|
|
224
227
|
title: z.ZodString;
|
|
225
228
|
tiers: z.ZodArray<z.ZodObject<{
|
|
@@ -258,6 +261,7 @@ declare const attemptCaptureSchema: z.ZodObject<{
|
|
|
258
261
|
kind: z.ZodLiteral<"tier">;
|
|
259
262
|
reward: z.ZodObject<{
|
|
260
263
|
badge: z.ZodOptional<z.ZodString>;
|
|
264
|
+
group: z.ZodOptional<z.ZodString>;
|
|
261
265
|
id: z.ZodString;
|
|
262
266
|
title: z.ZodString;
|
|
263
267
|
tiers: z.ZodArray<z.ZodObject<{
|
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-6uU1s4if.js';
|
|
2
|
+
export { a9 as LedgerSetting, aa as TrackerPage, ab as TrackerReadQuery, ac as trackerDataSchema, ad as trackerTriggerContextSchema } from './schema-6uU1s4if.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, s as leaderboardDefinitionSchema, t as AuthoringIdentity, u as pointLedgerDeclarationSchema, v as referralAuthoringSchema, C as CampaignDefinition, A as AvailabilityWindow } from './groups-
|
|
8
|
-
export { w as defineCampaign, x as defineGroup } from './groups-
|
|
5
|
+
import { f as badgeDeclarationSchema, B as Badge } from './offers-yZTUWHSp.js';
|
|
6
|
+
export { g as defineOffer } from './offers-yZTUWHSp.js';
|
|
7
|
+
import { E as EngagementBudget, s as leaderboardDefinitionSchema, t as AuthoringIdentity, u as pointLedgerDeclarationSchema, v as referralAuthoringSchema, C as CampaignDefinition, A as AvailabilityWindow } from './groups-DG7_3ipk.js';
|
|
8
|
+
export { w as defineCampaign, x as defineGroup } from './groups-DG7_3ipk.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-DtNMoL30.js';
|
|
14
|
+
export { c as balanceAtLeast, d as completed, i as inGroup } from './submission-input-DtNMoL30.js';
|
|
15
|
+
import { I as ImageReader, X as XReader } from './x-B6mbKgoQ.js';
|
|
16
16
|
import { h as WalletReader } from './wallet-Ac7OFpOr.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-Ac7OFpOr.js';
|
|
18
18
|
export { C as CapabilityError, a as CapabilityErrorCode, c as capabilityErrorCodes } from './capability-error-FQGGb5xS.js';
|
|
@@ -144,6 +144,7 @@ declare function defineReferral(input: Omit<ReferralInput, "qualification" | "in
|
|
|
144
144
|
kind: "automatic";
|
|
145
145
|
};
|
|
146
146
|
badge?: string | undefined;
|
|
147
|
+
group?: string | undefined;
|
|
147
148
|
};
|
|
148
149
|
tier: string;
|
|
149
150
|
} | {
|
|
@@ -169,6 +170,7 @@ declare function defineReferral(input: Omit<ReferralInput, "qualification" | "in
|
|
|
169
170
|
kind: "automatic";
|
|
170
171
|
};
|
|
171
172
|
badge?: string | undefined;
|
|
173
|
+
group?: string | undefined;
|
|
172
174
|
};
|
|
173
175
|
tier: string;
|
|
174
176
|
} | {
|
|
@@ -207,6 +209,7 @@ declare function defineReferral(input: Omit<ReferralInput, "qualification" | "in
|
|
|
207
209
|
kind: "automatic";
|
|
208
210
|
};
|
|
209
211
|
badge?: string | undefined;
|
|
212
|
+
group?: string | undefined;
|
|
210
213
|
};
|
|
211
214
|
tier: string;
|
|
212
215
|
} | {
|
|
@@ -319,6 +322,7 @@ declare function defineLeaderboard(input: Omit<LeaderboardInput, "key" | "id" |
|
|
|
319
322
|
kind: "automatic";
|
|
320
323
|
};
|
|
321
324
|
badge?: string | undefined;
|
|
325
|
+
group?: string | undefined;
|
|
322
326
|
};
|
|
323
327
|
tier: string;
|
|
324
328
|
} | {
|
|
@@ -536,6 +540,35 @@ declare const badge: (definition: BadgeHandle & Pick<Badge, "name">) => {
|
|
|
536
540
|
} | {
|
|
537
541
|
kind: "automatic";
|
|
538
542
|
};
|
|
543
|
+
group?: string | undefined;
|
|
544
|
+
};
|
|
545
|
+
kind: "tier";
|
|
546
|
+
tier: string;
|
|
547
|
+
};
|
|
548
|
+
/**
|
|
549
|
+
* A reward that adds the member to a group when the completion's rewards are delivered. The
|
|
550
|
+
* group must exist, unarchived, where the quest publishes; operators create it in Console
|
|
551
|
+
* **Groups**. Revoking the completion removes the membership unless an operator's add or another
|
|
552
|
+
* unrevoked completion also backs it.
|
|
553
|
+
*/
|
|
554
|
+
declare const groupMembership: (group: GroupHandle) => {
|
|
555
|
+
reward: {
|
|
556
|
+
group: string;
|
|
557
|
+
id: string;
|
|
558
|
+
title: string;
|
|
559
|
+
tiers: {
|
|
560
|
+
id: string;
|
|
561
|
+
title: string;
|
|
562
|
+
}[];
|
|
563
|
+
inventory: {
|
|
564
|
+
kind: "untracked";
|
|
565
|
+
};
|
|
566
|
+
fulfillment: {
|
|
567
|
+
kind: "staff-handover";
|
|
568
|
+
} | {
|
|
569
|
+
kind: "automatic";
|
|
570
|
+
};
|
|
571
|
+
badge?: string | undefined;
|
|
539
572
|
};
|
|
540
573
|
kind: "tier";
|
|
541
574
|
tier: string;
|
|
@@ -827,6 +860,7 @@ declare function defineTieredReward<const T extends readonly {
|
|
|
827
860
|
kind: "automatic";
|
|
828
861
|
};
|
|
829
862
|
badge?: string | undefined;
|
|
863
|
+
group?: string | undefined;
|
|
830
864
|
};
|
|
831
865
|
tier: string;
|
|
832
866
|
};
|
|
@@ -1101,6 +1135,7 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
|
|
|
1101
1135
|
kind: "automatic";
|
|
1102
1136
|
};
|
|
1103
1137
|
badge?: string | undefined;
|
|
1138
|
+
group?: string | undefined;
|
|
1104
1139
|
};
|
|
1105
1140
|
tier: string;
|
|
1106
1141
|
} | {
|
|
@@ -1267,6 +1302,7 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
|
|
|
1267
1302
|
kind: "automatic";
|
|
1268
1303
|
};
|
|
1269
1304
|
badge?: string | undefined;
|
|
1305
|
+
group?: string | undefined;
|
|
1270
1306
|
};
|
|
1271
1307
|
tier: string;
|
|
1272
1308
|
} | {
|
|
@@ -1532,6 +1568,7 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
|
|
|
1532
1568
|
kind: "automatic";
|
|
1533
1569
|
};
|
|
1534
1570
|
badge?: string | undefined;
|
|
1571
|
+
group?: string | undefined;
|
|
1535
1572
|
};
|
|
1536
1573
|
tier: string;
|
|
1537
1574
|
} | {
|
|
@@ -1698,6 +1735,7 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
|
|
|
1698
1735
|
kind: "automatic";
|
|
1699
1736
|
};
|
|
1700
1737
|
badge?: string | undefined;
|
|
1738
|
+
group?: string | undefined;
|
|
1701
1739
|
};
|
|
1702
1740
|
tier: string;
|
|
1703
1741
|
} | {
|
|
@@ -1907,4 +1945,4 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
|
|
|
1907
1945
|
}): Promise<Decision>;
|
|
1908
1946
|
} & ResourceHandle<"quest">;
|
|
1909
1947
|
|
|
1910
|
-
export { ContentBody, type ContentData, ContentMetricName, type ContentTrigger, type ContentTriggerInput, DiscordMessageData, DiscordMessageTextData, DiscordReactionData, DiscordReader, type EvaluationCalendar, type EvaluationCalendarDay, type EvaluationContext, type EvaluationMember, GroupHandle, IdentityKind, ImageReader, IntegrationModule, type KeyedContext, LedgerHandle, LedgerReference, MemberIdentity, type Outcome, type PerformanceContext, type PerformanceOutcome, QuestHandle, RoleOf, Setting, TelegramReader, Tracker, TrackerData, TrackerDataSchema, TrackerReader, type TrackerTrigger, TrackerTriggerContext, type TrackerTriggerInput, type TriggerAdmission, WalletReader, Where, type XContentBody, XReader, automatic, automaticFulfillment, badge, budget, calendar, content, count, customSource, decision, defineBadge, defineEngagementReward, defineLeaderboard, defineLedger, defineQuest, defineQuestType, defineReferral, defineTieredReward, defineTracker, discord, earned, evaluators, evidence, keyed, manual, once, pointLedgers, points, progress, questCompleted, rolling, settings, staffHandover, streak, telegram, untracked, x };
|
|
1948
|
+
export { ContentBody, type ContentData, ContentMetricName, type ContentTrigger, type ContentTriggerInput, DiscordMessageData, DiscordMessageTextData, DiscordReactionData, DiscordReader, type EvaluationCalendar, type EvaluationCalendarDay, type EvaluationContext, type EvaluationMember, GroupHandle, IdentityKind, ImageReader, IntegrationModule, type KeyedContext, LedgerHandle, LedgerReference, MemberIdentity, type Outcome, type PerformanceContext, type PerformanceOutcome, QuestHandle, RoleOf, Setting, TelegramReader, Tracker, TrackerData, TrackerDataSchema, TrackerReader, type TrackerTrigger, TrackerTriggerContext, type TrackerTriggerInput, type TriggerAdmission, WalletReader, Where, type XContentBody, XReader, automatic, automaticFulfillment, badge, budget, calendar, content, count, customSource, decision, defineBadge, defineEngagementReward, defineLeaderboard, defineLedger, defineQuest, defineQuestType, defineReferral, defineTieredReward, defineTracker, discord, earned, evaluators, evidence, groupMembership, keyed, manual, once, pointLedgers, points, progress, questCompleted, rolling, settings, staffHandover, streak, telegram, untracked, x };
|
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-O5WR2JT4.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-SGWAVIEP.js";
|
|
24
24
|
import {
|
|
25
25
|
telegramReactionDataSchema,
|
|
26
26
|
telegramReactionsNamespace
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-MMR6CZEJ.js";
|
|
28
28
|
import {
|
|
29
29
|
authoringKey,
|
|
30
30
|
badgeReward,
|
|
@@ -49,6 +49,7 @@ import {
|
|
|
49
49
|
discordRewardSchema,
|
|
50
50
|
evaluatorIntegrationProviderSchema,
|
|
51
51
|
evaluatorProtocol,
|
|
52
|
+
groupReward,
|
|
52
53
|
identifier,
|
|
53
54
|
inGroup,
|
|
54
55
|
isEvmChainId,
|
|
@@ -82,7 +83,7 @@ import {
|
|
|
82
83
|
whereSchemaIssue,
|
|
83
84
|
whereSettings,
|
|
84
85
|
xSearchSourceSchema
|
|
85
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-VTD4YDEO.js";
|
|
86
87
|
|
|
87
88
|
// src/builders.ts
|
|
88
89
|
import * as z from "zod";
|
|
@@ -381,6 +382,7 @@ var settings = {
|
|
|
381
382
|
import { z as z2 } from "zod";
|
|
382
383
|
import * as z3 from "zod";
|
|
383
384
|
var badge = (definition) => badgeReward(definition.key, definition.name);
|
|
385
|
+
var groupMembership = (group) => groupReward(group.key, group.title);
|
|
384
386
|
var points = (ledger, amount) => pointsRewardSchema.parse({
|
|
385
387
|
kind: "points",
|
|
386
388
|
balance: ledgerKey(ledger),
|
|
@@ -839,6 +841,7 @@ export {
|
|
|
839
841
|
evaluators,
|
|
840
842
|
evidence,
|
|
841
843
|
formatUnits,
|
|
844
|
+
groupMembership,
|
|
842
845
|
inGroup,
|
|
843
846
|
isEvmChainId,
|
|
844
847
|
keyed,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as z from 'zod';
|
|
2
|
-
import { a as AttemptStatus } from './schema-
|
|
2
|
+
import { a as AttemptStatus } from './schema-6uU1s4if.js';
|
|
3
3
|
|
|
4
4
|
declare const collectionCodeSchema: z.ZodString;
|
|
5
5
|
declare const collectionPassSchema: z.ZodObject<{
|
|
@@ -757,6 +757,7 @@ declare const automaticCatchUpPreviewSchema: z.ZodObject<{
|
|
|
757
757
|
kind: z.ZodLiteral<"tier">;
|
|
758
758
|
reward: z.ZodObject<{
|
|
759
759
|
badge: z.ZodOptional<z.ZodString>;
|
|
760
|
+
group: z.ZodOptional<z.ZodString>;
|
|
760
761
|
id: z.ZodString;
|
|
761
762
|
title: z.ZodString;
|
|
762
763
|
tiers: z.ZodArray<z.ZodObject<{
|
package/dist/browser.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
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-C5sCO45H.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-DE9d1M-g.js';
|
|
3
|
+
import './groups-DG7_3ipk.js';
|
|
4
4
|
import 'zod';
|
|
5
|
-
import './schema-
|
|
6
|
-
import './pages-
|
|
7
|
-
import './submission-input-
|
|
5
|
+
import './schema-6uU1s4if.js';
|
|
6
|
+
import './pages-DLFRK5l7.js';
|
|
7
|
+
import './submission-input-DtNMoL30.js';
|
|
8
8
|
import './action-DBzILFx9.js';
|
|
9
9
|
import './participant-activity-iciCEs_8.js';
|
|
10
10
|
import './accounts-DRPENuZe.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-W5FWEXMV.js";
|
|
16
|
+
import "./chunk-K6EHQZ6Q.js";
|
|
17
|
+
import "./chunk-NAEVXBSF.js";
|
|
18
|
+
import "./chunk-4Y5AYL3C.js";
|
|
19
|
+
import "./chunk-SGWAVIEP.js";
|
|
20
|
+
import "./chunk-MMR6CZEJ.js";
|
|
21
|
+
import "./chunk-W3SQLZRA.js";
|
|
22
|
+
import "./chunk-DPM6FDOT.js";
|
|
23
|
+
import "./chunk-DP7FGRUW.js";
|
|
24
|
+
import "./chunk-VTD4YDEO.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-SGWAVIEP.js";
|
|
5
5
|
import {
|
|
6
6
|
authoringIdentityShape,
|
|
7
7
|
entitlementSchema,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
storedQuestDescriptionSchema,
|
|
24
24
|
storedReviewModeSchema,
|
|
25
25
|
tieredRewardReferenceSchema
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-VTD4YDEO.js";
|
|
27
27
|
|
|
28
28
|
// src/participant-activity.ts
|
|
29
29
|
import * as z from "zod";
|
|
@@ -240,7 +240,9 @@ var questRewardViewSchema = z2.discriminatedUnion("kind", [
|
|
|
240
240
|
label: z2.string(),
|
|
241
241
|
reward: tieredRewardReferenceSchema.extend({
|
|
242
242
|
title: z2.string(),
|
|
243
|
-
badge: badgeSchema.optional()
|
|
243
|
+
badge: badgeSchema.optional(),
|
|
244
|
+
/** The group the reward adds the member to: its key and the title the quest names it by. */
|
|
245
|
+
group: z2.object({ key: identifier, title: z2.string() }).optional()
|
|
244
246
|
}),
|
|
245
247
|
tier: identifier
|
|
246
248
|
}),
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
imageSightingsSchema,
|
|
7
7
|
imageUploadsSchema,
|
|
8
8
|
publishedImageSchema
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-3LK6JIBY.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-4Y5AYL3C.js";
|
|
28
28
|
import {
|
|
29
29
|
badgeArtifactSchema,
|
|
30
30
|
badgeSchema,
|
|
@@ -58,15 +58,15 @@ import {
|
|
|
58
58
|
referralDefinitionSchema,
|
|
59
59
|
referralHistorySchema,
|
|
60
60
|
referralSummarySchema
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-SGWAVIEP.js";
|
|
62
62
|
import {
|
|
63
63
|
telegramAccountConnectionSchema
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-MMR6CZEJ.js";
|
|
65
65
|
import {
|
|
66
66
|
exchangeResultSchema,
|
|
67
67
|
memberSummarySchema,
|
|
68
68
|
participantSessionSchema
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-DP7FGRUW.js";
|
|
70
70
|
import {
|
|
71
71
|
accountConnectionSchema,
|
|
72
72
|
attemptSchema,
|
|
@@ -99,7 +99,7 @@ import {
|
|
|
99
99
|
walletBalanceSchema,
|
|
100
100
|
walletMessageChallengeSchema,
|
|
101
101
|
walletSignInNetworksSchema
|
|
102
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-VTD4YDEO.js";
|
|
103
103
|
|
|
104
104
|
// src/deployments.ts
|
|
105
105
|
import * as z from "zod";
|
|
@@ -159,8 +159,9 @@ var deploymentPreviewSchema = z.object({
|
|
|
159
159
|
effectiveAt: z.number().int().nullable()
|
|
160
160
|
}).nullable().default(null),
|
|
161
161
|
/**
|
|
162
|
-
*
|
|
163
|
-
* there is none; optional so values
|
|
162
|
+
* What the deployment publishes anyway, such as missing project configuration (see
|
|
163
|
+
* `deploymentWarningSchema`). Relay sends an empty list when there is none; optional so values
|
|
164
|
+
* built for older SDKs still fit.
|
|
164
165
|
*/
|
|
165
166
|
warnings: z.array(deploymentWarningSchema).optional()
|
|
166
167
|
});
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
imageFieldsSchema,
|
|
5
5
|
imageInspectionSchema,
|
|
6
6
|
imageSightingsSchema
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-3LK6JIBY.js";
|
|
8
8
|
import {
|
|
9
9
|
photoResultSchema
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-VTD4YDEO.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-NAEVXBSF.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-4Y5AYL3C.js";
|
|
21
21
|
import {
|
|
22
22
|
AVATAR_UPLOAD_LIMIT,
|
|
23
23
|
avatarUploadTypes,
|
|
@@ -48,29 +48,29 @@ import {
|
|
|
48
48
|
referralDefinitionSchema,
|
|
49
49
|
referralHistorySchema,
|
|
50
50
|
referralSummarySchema
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-SGWAVIEP.js";
|
|
52
52
|
import {
|
|
53
53
|
telegramAccountConnectionSchema,
|
|
54
54
|
telegramMiniAppSignInSchema,
|
|
55
55
|
telegramSignInMethodsSchema
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-MMR6CZEJ.js";
|
|
57
57
|
import {
|
|
58
58
|
PARTICIPANT_TIMEOUT,
|
|
59
59
|
lifetime,
|
|
60
60
|
retryAfter,
|
|
61
61
|
retrying,
|
|
62
62
|
validTimeout
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-W3SQLZRA.js";
|
|
64
64
|
import {
|
|
65
65
|
clientIdentity
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-DPM6FDOT.js";
|
|
67
67
|
import {
|
|
68
68
|
exchangeResultSchema,
|
|
69
69
|
exchangeSchema,
|
|
70
70
|
memberSummarySchema,
|
|
71
71
|
participantSessionSchema,
|
|
72
72
|
sessionMember
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-DP7FGRUW.js";
|
|
74
74
|
import {
|
|
75
75
|
RelayError,
|
|
76
76
|
RelayErrorCode,
|
|
@@ -109,7 +109,7 @@ import {
|
|
|
109
109
|
walletSignInNetworksSchema,
|
|
110
110
|
walletSignatureSchema,
|
|
111
111
|
walletUnlinkInputSchema
|
|
112
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-VTD4YDEO.js";
|
|
113
113
|
|
|
114
114
|
// src/legacy-submissions.ts
|
|
115
115
|
import * as z from "zod";
|
|
@@ -4,20 +4,20 @@ import {
|
|
|
4
4
|
retryAfter,
|
|
5
5
|
retrying,
|
|
6
6
|
validTimeout
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-W3SQLZRA.js";
|
|
8
8
|
import {
|
|
9
9
|
clientIdentity
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-DPM6FDOT.js";
|
|
11
11
|
import {
|
|
12
12
|
authScopeSchema
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-DP7FGRUW.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-VTD4YDEO.js";
|
|
21
21
|
|
|
22
22
|
// src/configuration.ts
|
|
23
23
|
function questConfiguration(release) {
|
|
@@ -2801,6 +2801,8 @@ var pointsRewardSchema = z27.object({
|
|
|
2801
2801
|
var tieredRewardDefinitionSchema = z27.object({
|
|
2802
2802
|
/** An automatic achievement backed by the project badge catalog. */
|
|
2803
2803
|
badge: identifier.optional(),
|
|
2804
|
+
/** Membership in the project group with this key, added when the reward is delivered. */
|
|
2805
|
+
group: identifier.optional(),
|
|
2804
2806
|
id: identifier,
|
|
2805
2807
|
title: z27.string().min(1).max(120),
|
|
2806
2808
|
tiers: z27.array(
|
|
@@ -2815,8 +2817,11 @@ var tieredRewardDefinitionSchema = z27.object({
|
|
|
2815
2817
|
z27.object({ kind: z27.literal("automatic") }).strict()
|
|
2816
2818
|
])
|
|
2817
2819
|
}).strict().refine(
|
|
2818
|
-
(value) => value.badge === void 0 || value.fulfillment.kind === "automatic" && value.tiers.length === 1 && value.tiers[0].id === "awarded",
|
|
2819
|
-
"Badge rewards require the fixed automatic achievement envelope"
|
|
2820
|
+
(value) => value.badge === void 0 && value.group === void 0 || value.fulfillment.kind === "automatic" && value.tiers.length === 1 && value.tiers[0].id === "awarded",
|
|
2821
|
+
"Badge and group rewards require the fixed automatic achievement envelope"
|
|
2822
|
+
).refine(
|
|
2823
|
+
(value) => value.badge === void 0 || value.group === void 0,
|
|
2824
|
+
"A reward is either a badge or a group membership"
|
|
2820
2825
|
);
|
|
2821
2826
|
var tieredRewardReferenceSchema = z27.object({
|
|
2822
2827
|
id: identifier,
|
|
@@ -2854,6 +2859,30 @@ function badgeReward(reference, title) {
|
|
|
2854
2859
|
}
|
|
2855
2860
|
});
|
|
2856
2861
|
}
|
|
2862
|
+
var groupRewardSchema = tierRewardSchema.transform(
|
|
2863
|
+
(value, context) => {
|
|
2864
|
+
const group = value.reward.group;
|
|
2865
|
+
if (!group || value.reward.fulfillment.kind !== "automatic" || value.reward.tiers.length !== 1 || value.tier !== "awarded") {
|
|
2866
|
+
context.addIssue({ code: "custom", message: "Invalid group reward" });
|
|
2867
|
+
return z27.NEVER;
|
|
2868
|
+
}
|
|
2869
|
+
return { ...value, reward: { ...value.reward, group } };
|
|
2870
|
+
}
|
|
2871
|
+
);
|
|
2872
|
+
function groupReward(key, title) {
|
|
2873
|
+
return groupRewardSchema.parse({
|
|
2874
|
+
kind: "tier",
|
|
2875
|
+
tier: "awarded",
|
|
2876
|
+
reward: {
|
|
2877
|
+
id: key,
|
|
2878
|
+
group: key,
|
|
2879
|
+
title,
|
|
2880
|
+
tiers: [{ id: "awarded", title: "Awarded" }],
|
|
2881
|
+
inventory: { kind: "untracked" },
|
|
2882
|
+
fulfillment: { kind: "automatic" }
|
|
2883
|
+
}
|
|
2884
|
+
});
|
|
2885
|
+
}
|
|
2857
2886
|
var integrationRewardSchema = discordRewardSchema;
|
|
2858
2887
|
var rewardSchema = z27.union([
|
|
2859
2888
|
pointsRewardSchema,
|
|
@@ -2864,6 +2893,9 @@ function rewardKey(reward) {
|
|
|
2864
2893
|
if (reward.kind === "tier" && reward.reward.badge) {
|
|
2865
2894
|
return "badge:" + reward.reward.badge;
|
|
2866
2895
|
}
|
|
2896
|
+
if (reward.kind === "tier" && reward.reward.group) {
|
|
2897
|
+
return "group:" + reward.reward.group;
|
|
2898
|
+
}
|
|
2867
2899
|
if (reward.kind === "integration") {
|
|
2868
2900
|
return `integration:${reward.provider}:${reward.action}:${reward.roleId}`;
|
|
2869
2901
|
}
|
|
@@ -3823,6 +3855,8 @@ export {
|
|
|
3823
3855
|
tierRewardSchema,
|
|
3824
3856
|
badgeRewardSchema,
|
|
3825
3857
|
badgeReward,
|
|
3858
|
+
groupRewardSchema,
|
|
3859
|
+
groupReward,
|
|
3826
3860
|
integrationRewardSchema,
|
|
3827
3861
|
rewardSchema,
|
|
3828
3862
|
rewardKey,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createRelayClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-K6EHQZ6Q.js";
|
|
4
4
|
import {
|
|
5
5
|
RelayErrorCode,
|
|
6
6
|
asRelayError,
|
|
7
7
|
clientError,
|
|
8
8
|
cosmosChain
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-VTD4YDEO.js";
|
|
10
10
|
|
|
11
11
|
// src/base58.ts
|
|
12
12
|
var alphabet = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";
|