@domino-sdk/relay 1.45.0 → 1.49.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/{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-ILH73K3H.js → chunk-3LK6JIBY.js} +1 -1
- package/dist/{chunk-TEPZZXDI.js → chunk-4Y5AYL3C.js} +10 -7
- package/dist/{chunk-TFQNNOFR.js → chunk-6ESBL7FU.js} +1 -1
- package/dist/{chunk-K3PLZ4CR.js → chunk-7OHIJVN5.js} +4 -4
- package/dist/{chunk-YBMCF54E.js → chunk-7WVTYMFA.js} +13 -9
- package/dist/{chunk-LXHO3LYB.js → chunk-C4DEBCSQ.js} +8 -8
- package/dist/{chunk-HO4FZJSH.js → chunk-CHURQQBP.js} +2 -2
- package/dist/{chunk-Q5PX3GDA.js → chunk-DP7FGRUW.js} +1 -1
- package/dist/{chunk-W5UBRNDT.js → chunk-GYXYZL5E.js} +1 -1
- package/dist/{chunk-ZTPILNSV.js → chunk-LFOBANCS.js} +2 -2
- package/dist/{chunk-J7YJHMF7.js → chunk-MMR6CZEJ.js} +1 -1
- package/dist/{chunk-UOHYYB7V.js → chunk-NAEVXBSF.js} +1 -1
- package/dist/{chunk-ZY4RI4DJ.js → chunk-O5WR2JT4.js} +1 -1
- package/dist/{chunk-WSOUOG6S.js → chunk-SGWAVIEP.js} +1 -1
- package/dist/{chunk-PMSCHJKX.js → chunk-VTD4YDEO.js} +45 -3
- package/dist/{chunk-NNGGEUMQ.js → chunk-W3SQLZRA.js} +1 -1
- 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 +104 -12
- package/dist/schema.js +13 -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/DALOQGNI.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-LFOBANCS.js";
|
|
16
|
+
import "./chunk-C4DEBCSQ.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-6ESBL7FU.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,
|
|
@@ -14,6 +14,7 @@ import {
|
|
|
14
14
|
prerequisiteSchema,
|
|
15
15
|
publishedReleaseSchema,
|
|
16
16
|
questPresentationContentSchema,
|
|
17
|
+
questScaleLimits,
|
|
17
18
|
responseShape,
|
|
18
19
|
retryCooldownMsSchema,
|
|
19
20
|
reviewModeSchema,
|
|
@@ -22,7 +23,7 @@ import {
|
|
|
22
23
|
storedQuestDescriptionSchema,
|
|
23
24
|
storedReviewModeSchema,
|
|
24
25
|
tieredRewardReferenceSchema
|
|
25
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-VTD4YDEO.js";
|
|
26
27
|
|
|
27
28
|
// src/participant-activity.ts
|
|
28
29
|
import * as z from "zod";
|
|
@@ -170,8 +171,8 @@ var questInstanceSchema = z2.object({
|
|
|
170
171
|
var questDraftChangesSchema = z2.object({
|
|
171
172
|
quests: z2.array(
|
|
172
173
|
questInstanceSchema.extend({ expectedRelease: identifier.nullable() })
|
|
173
|
-
).max(
|
|
174
|
-
collections: z2.array(questCollectionSchema.omit({ archivedAt: true })).max(
|
|
174
|
+
).max(questScaleLimits.quests),
|
|
175
|
+
collections: z2.array(questCollectionSchema.omit({ archivedAt: true })).max(questScaleLimits.collections)
|
|
175
176
|
}).strict();
|
|
176
177
|
var draftBase = z2.object({
|
|
177
178
|
id: identifier,
|
|
@@ -207,8 +208,8 @@ var catalogDeploymentSchema = z2.object({
|
|
|
207
208
|
runtime: sdkRuntimeReferenceSchema.optional(),
|
|
208
209
|
provider: reviewModeSchema
|
|
209
210
|
})
|
|
210
|
-
).max(
|
|
211
|
-
collections: z2.array(collectionSlotDeclarationSchema).max(
|
|
211
|
+
).max(questScaleLimits.questTypes).default([]),
|
|
212
|
+
collections: z2.array(collectionSlotDeclarationSchema).max(questScaleLimits.collections).default([]),
|
|
212
213
|
supportedInteractions: z2.array(interactionSchema).min(1).optional()
|
|
213
214
|
}).strict();
|
|
214
215
|
var catalogDeploymentPreviewSchema = responseShape(
|
|
@@ -239,7 +240,9 @@ var questRewardViewSchema = z2.discriminatedUnion("kind", [
|
|
|
239
240
|
label: z2.string(),
|
|
240
241
|
reward: tieredRewardReferenceSchema.extend({
|
|
241
242
|
title: z2.string(),
|
|
242
|
-
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()
|
|
243
246
|
}),
|
|
244
247
|
tier: identifier
|
|
245
248
|
}),
|
|
@@ -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-6ESBL7FU.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) {
|
|
@@ -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,
|
|
@@ -87,6 +87,7 @@ import {
|
|
|
87
87
|
publishedReleaseSchema,
|
|
88
88
|
publishedTrackerSchema,
|
|
89
89
|
questBudgetViewSchema,
|
|
90
|
+
questScaleLimits,
|
|
90
91
|
releaseSchema,
|
|
91
92
|
responseListSchema,
|
|
92
93
|
responseSchema,
|
|
@@ -98,7 +99,7 @@ import {
|
|
|
98
99
|
walletBalanceSchema,
|
|
99
100
|
walletMessageChallengeSchema,
|
|
100
101
|
walletSignInNetworksSchema
|
|
101
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-VTD4YDEO.js";
|
|
102
103
|
|
|
103
104
|
// src/deployments.ts
|
|
104
105
|
import * as z from "zod";
|
|
@@ -119,7 +120,9 @@ var projectCatalogArtifactSchema = catalogDeploymentSchema.omit({ expectedRevisi
|
|
|
119
120
|
*/
|
|
120
121
|
runtimes: z.array(sdkRuntimeSchema).max(4).default([])
|
|
121
122
|
});
|
|
122
|
-
var projectDeploymentSchema = projectCatalogArtifactSchema.extend({
|
|
123
|
+
var projectDeploymentSchema = projectCatalogArtifactSchema.extend({
|
|
124
|
+
releases: z.array(releaseSchema).max(questScaleLimits.quests).default([])
|
|
125
|
+
}).refine(
|
|
123
126
|
(value) => value.engagement.length > 0 || value.trackers.length > 0 || value.pointLedgers.length > 0 || value.badges.length > 0 || value.offers.length > 0 || value.releases.length > 0 || value.leaderboards.length > 0 || value.referrals.length > 0 || value.images.length > 0 || value.types.length > 0 || value.collections.length > 0 || value.supportedInteractions !== void 0 || value.calendar !== void 0,
|
|
124
127
|
"No resources configured. Add engagement, trackers, quests, questTypes, badges, pointLedgers, offers, leaderboards, referrals, images, collections, supportedInteractions, or calendar to relay.json."
|
|
125
128
|
);
|
|
@@ -156,8 +159,9 @@ var deploymentPreviewSchema = z.object({
|
|
|
156
159
|
effectiveAt: z.number().int().nullable()
|
|
157
160
|
}).nullable().default(null),
|
|
158
161
|
/**
|
|
159
|
-
*
|
|
160
|
-
* 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.
|
|
161
165
|
*/
|
|
162
166
|
warnings: z.array(deploymentWarningSchema).optional()
|
|
163
167
|
});
|
|
@@ -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-6ESBL7FU.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,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,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createRelayClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-C4DEBCSQ.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";
|