@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
|
@@ -2102,6 +2102,11 @@ var trackerTriggerContextSchema = z13.object({
|
|
|
2102
2102
|
|
|
2103
2103
|
// src/sdk-runtime.ts
|
|
2104
2104
|
import * as z14 from "zod";
|
|
2105
|
+
var questScaleLimits = {
|
|
2106
|
+
quests: 1e3,
|
|
2107
|
+
questTypes: 200,
|
|
2108
|
+
collections: 1e3
|
|
2109
|
+
};
|
|
2105
2110
|
var sdkRuntimeLimits = {
|
|
2106
2111
|
modules: 200,
|
|
2107
2112
|
/** Characters of module source, summed over all modules. */
|
|
@@ -2796,6 +2801,8 @@ var pointsRewardSchema = z27.object({
|
|
|
2796
2801
|
var tieredRewardDefinitionSchema = z27.object({
|
|
2797
2802
|
/** An automatic achievement backed by the project badge catalog. */
|
|
2798
2803
|
badge: identifier.optional(),
|
|
2804
|
+
/** Membership in the project group with this key, added when the reward is delivered. */
|
|
2805
|
+
group: identifier.optional(),
|
|
2799
2806
|
id: identifier,
|
|
2800
2807
|
title: z27.string().min(1).max(120),
|
|
2801
2808
|
tiers: z27.array(
|
|
@@ -2810,8 +2817,11 @@ var tieredRewardDefinitionSchema = z27.object({
|
|
|
2810
2817
|
z27.object({ kind: z27.literal("automatic") }).strict()
|
|
2811
2818
|
])
|
|
2812
2819
|
}).strict().refine(
|
|
2813
|
-
(value) => value.badge === void 0 || value.fulfillment.kind === "automatic" && value.tiers.length === 1 && value.tiers[0].id === "awarded",
|
|
2814
|
-
"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"
|
|
2815
2825
|
);
|
|
2816
2826
|
var tieredRewardReferenceSchema = z27.object({
|
|
2817
2827
|
id: identifier,
|
|
@@ -2849,6 +2859,30 @@ function badgeReward(reference, title) {
|
|
|
2849
2859
|
}
|
|
2850
2860
|
});
|
|
2851
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
|
+
}
|
|
2852
2886
|
var integrationRewardSchema = discordRewardSchema;
|
|
2853
2887
|
var rewardSchema = z27.union([
|
|
2854
2888
|
pointsRewardSchema,
|
|
@@ -2859,6 +2893,9 @@ function rewardKey(reward) {
|
|
|
2859
2893
|
if (reward.kind === "tier" && reward.reward.badge) {
|
|
2860
2894
|
return "badge:" + reward.reward.badge;
|
|
2861
2895
|
}
|
|
2896
|
+
if (reward.kind === "tier" && reward.reward.group) {
|
|
2897
|
+
return "group:" + reward.reward.group;
|
|
2898
|
+
}
|
|
2862
2899
|
if (reward.kind === "integration") {
|
|
2863
2900
|
return `integration:${reward.provider}:${reward.action}:${reward.roleId}`;
|
|
2864
2901
|
}
|
|
@@ -3043,7 +3080,9 @@ var releaseSchema = artifactSchema.extend({
|
|
|
3043
3080
|
expectedRelease: identifier.nullable().optional(),
|
|
3044
3081
|
settingRenames: z27.record(z27.string(), z27.string()).optional()
|
|
3045
3082
|
}).strict();
|
|
3046
|
-
var batchReleaseSchema = z27.object({
|
|
3083
|
+
var batchReleaseSchema = z27.object({
|
|
3084
|
+
releases: z27.array(releaseSchema).min(1).max(questScaleLimits.quests)
|
|
3085
|
+
}).strict();
|
|
3047
3086
|
var questSettingsInputSchema = z27.object({
|
|
3048
3087
|
quest: identifier,
|
|
3049
3088
|
expectedRelease: identifier,
|
|
@@ -3717,6 +3756,7 @@ export {
|
|
|
3717
3756
|
trackerContentStageSchema,
|
|
3718
3757
|
trackerTriggerContextSchema,
|
|
3719
3758
|
maxPointsAmount,
|
|
3759
|
+
questScaleLimits,
|
|
3720
3760
|
sdkRuntimeLimits,
|
|
3721
3761
|
sdkRuntimeModulePathSchema,
|
|
3722
3762
|
sdkRuntimeReferenceSchema,
|
|
@@ -3815,6 +3855,8 @@ export {
|
|
|
3815
3855
|
tierRewardSchema,
|
|
3816
3856
|
badgeRewardSchema,
|
|
3817
3857
|
badgeReward,
|
|
3858
|
+
groupRewardSchema,
|
|
3859
|
+
groupReward,
|
|
3818
3860
|
integrationRewardSchema,
|
|
3819
3861
|
rewardSchema,
|
|
3820
3862
|
rewardKey,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { y as referralAcceptSchema, i as LeaderboardQuery, b as CampaignEnrollmentInput, d as CampaignWithdrawalInput, o as PointHistoryQuery, m as PointEntryKind, f as LeaderboardHistoryQuery, z as engagementPageQuerySchema } from './groups-
|
|
2
|
-
import { j as QuestView, k as ResponseSchema, a as PageQuery, c as QuestEnrollmentInput, Q as QuestClaimInput, g as QuestOutcomeQuery, q as questExperienceSchema, l as RewardDeliveryQuery, m as RewardDeliveryAction, n as contentQualificationQuerySchema } from './pages-
|
|
3
|
-
import { M as MissingPrerequisite, V as ValueEvidence } from './submission-input-
|
|
1
|
+
import { y as referralAcceptSchema, i as LeaderboardQuery, b as CampaignEnrollmentInput, d as CampaignWithdrawalInput, o as PointHistoryQuery, m as PointEntryKind, f as LeaderboardHistoryQuery, z as engagementPageQuerySchema } from './groups-DG7_3ipk.js';
|
|
2
|
+
import { j as QuestView, k as ResponseSchema, a as PageQuery, c as QuestEnrollmentInput, Q as QuestClaimInput, g as QuestOutcomeQuery, q as questExperienceSchema, l as RewardDeliveryQuery, m as RewardDeliveryAction, n as contentQualificationQuerySchema } from './pages-DLFRK5l7.js';
|
|
3
|
+
import { M as MissingPrerequisite, V as ValueEvidence } from './submission-input-DtNMoL30.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, ae as submitSchema, af as contentPerformanceQuerySchema } from './schema-
|
|
5
|
+
import { f as QuizEvidence, A as Attempt, M as MemberProgress, a as AttemptStatus, h as TrackerSkipCode, ae as submitSchema, af as contentPerformanceQuerySchema } from './schema-6uU1s4if.js';
|
|
6
6
|
import { b as ParticipantSession, e as exchangeSchema, R as RelayEvent, P as ParticipantActivity } from './participant-activity-iciCEs_8.js';
|
|
7
7
|
import * as z from 'zod';
|
|
8
8
|
import { a as AuthProvider } from './accounts-DRPENuZe.js';
|
|
@@ -390,6 +390,7 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
390
390
|
kind: "automatic";
|
|
391
391
|
};
|
|
392
392
|
badge?: string | undefined;
|
|
393
|
+
group?: string | undefined;
|
|
393
394
|
};
|
|
394
395
|
tier: string;
|
|
395
396
|
};
|
|
@@ -445,6 +446,7 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
445
446
|
kind: "automatic";
|
|
446
447
|
};
|
|
447
448
|
badge?: string | undefined;
|
|
449
|
+
group?: string | undefined;
|
|
448
450
|
};
|
|
449
451
|
tier: string;
|
|
450
452
|
};
|
|
@@ -482,6 +484,7 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
482
484
|
kind: "automatic";
|
|
483
485
|
};
|
|
484
486
|
badge?: string | undefined;
|
|
487
|
+
group?: string | undefined;
|
|
485
488
|
};
|
|
486
489
|
tier: string;
|
|
487
490
|
};
|
|
@@ -522,6 +525,7 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
522
525
|
kind: "automatic";
|
|
523
526
|
};
|
|
524
527
|
badge?: string | undefined;
|
|
528
|
+
group?: string | undefined;
|
|
525
529
|
};
|
|
526
530
|
tier: string;
|
|
527
531
|
} | {
|
|
@@ -547,6 +551,7 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
547
551
|
kind: "automatic";
|
|
548
552
|
};
|
|
549
553
|
badge?: string | undefined;
|
|
554
|
+
group?: string | undefined;
|
|
550
555
|
};
|
|
551
556
|
tier: string;
|
|
552
557
|
} | {
|
|
@@ -576,6 +581,7 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
576
581
|
kind: "automatic";
|
|
577
582
|
};
|
|
578
583
|
badge?: string | undefined;
|
|
584
|
+
group?: string | undefined;
|
|
579
585
|
};
|
|
580
586
|
tier: string;
|
|
581
587
|
} | {
|
|
@@ -631,6 +637,7 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
631
637
|
kind: "automatic";
|
|
632
638
|
};
|
|
633
639
|
badge?: string | undefined;
|
|
640
|
+
group?: string | undefined;
|
|
634
641
|
};
|
|
635
642
|
tier: string;
|
|
636
643
|
} | {
|
|
@@ -656,6 +663,7 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
656
663
|
kind: "automatic";
|
|
657
664
|
};
|
|
658
665
|
badge?: string | undefined;
|
|
666
|
+
group?: string | undefined;
|
|
659
667
|
};
|
|
660
668
|
tier: string;
|
|
661
669
|
} | {
|
|
@@ -685,6 +693,7 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
685
693
|
kind: "automatic";
|
|
686
694
|
};
|
|
687
695
|
badge?: string | undefined;
|
|
696
|
+
group?: string | undefined;
|
|
688
697
|
};
|
|
689
698
|
tier: string;
|
|
690
699
|
} | {
|
|
@@ -1199,6 +1208,7 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
1199
1208
|
kind: "automatic";
|
|
1200
1209
|
};
|
|
1201
1210
|
badge?: string | undefined;
|
|
1211
|
+
group?: string | undefined;
|
|
1202
1212
|
};
|
|
1203
1213
|
tier: string;
|
|
1204
1214
|
} | {
|
|
@@ -1748,6 +1758,7 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
1748
1758
|
kind: "automatic";
|
|
1749
1759
|
};
|
|
1750
1760
|
badge?: string | undefined;
|
|
1761
|
+
group?: string | undefined;
|
|
1751
1762
|
};
|
|
1752
1763
|
tier: string;
|
|
1753
1764
|
} | {
|
|
@@ -1812,6 +1823,10 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
1812
1823
|
id: string;
|
|
1813
1824
|
key: string | null;
|
|
1814
1825
|
} | undefined;
|
|
1826
|
+
group?: {
|
|
1827
|
+
key: string;
|
|
1828
|
+
title: string;
|
|
1829
|
+
} | undefined;
|
|
1815
1830
|
};
|
|
1816
1831
|
tier: string;
|
|
1817
1832
|
} | {
|
|
@@ -1968,6 +1983,7 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
1968
1983
|
kind: "automatic";
|
|
1969
1984
|
};
|
|
1970
1985
|
badge?: string | undefined;
|
|
1986
|
+
group?: string | undefined;
|
|
1971
1987
|
};
|
|
1972
1988
|
tier: string;
|
|
1973
1989
|
} | {
|
|
@@ -2429,6 +2445,7 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
2429
2445
|
kind: "automatic";
|
|
2430
2446
|
};
|
|
2431
2447
|
badge?: string | undefined;
|
|
2448
|
+
group?: string | undefined;
|
|
2432
2449
|
};
|
|
2433
2450
|
tier: string;
|
|
2434
2451
|
} | {
|
|
@@ -2493,6 +2510,10 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
2493
2510
|
id: string;
|
|
2494
2511
|
key: string | null;
|
|
2495
2512
|
} | undefined;
|
|
2513
|
+
group?: {
|
|
2514
|
+
key: string;
|
|
2515
|
+
title: string;
|
|
2516
|
+
} | undefined;
|
|
2496
2517
|
};
|
|
2497
2518
|
tier: string;
|
|
2498
2519
|
} | {
|
|
@@ -2837,6 +2858,7 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
2837
2858
|
kind: "automatic";
|
|
2838
2859
|
};
|
|
2839
2860
|
badge?: string | undefined;
|
|
2861
|
+
group?: string | undefined;
|
|
2840
2862
|
};
|
|
2841
2863
|
tier: string;
|
|
2842
2864
|
} | {
|
|
@@ -2901,6 +2923,10 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
2901
2923
|
id: string;
|
|
2902
2924
|
key: string | null;
|
|
2903
2925
|
} | undefined;
|
|
2926
|
+
group?: {
|
|
2927
|
+
key: string;
|
|
2928
|
+
title: string;
|
|
2929
|
+
} | undefined;
|
|
2904
2930
|
};
|
|
2905
2931
|
tier: string;
|
|
2906
2932
|
} | {
|
|
@@ -3251,6 +3277,7 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
3251
3277
|
kind: "automatic";
|
|
3252
3278
|
};
|
|
3253
3279
|
badge?: string | undefined;
|
|
3280
|
+
group?: string | undefined;
|
|
3254
3281
|
};
|
|
3255
3282
|
tier: string;
|
|
3256
3283
|
} | {
|
|
@@ -3315,6 +3342,10 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
3315
3342
|
id: string;
|
|
3316
3343
|
key: string | null;
|
|
3317
3344
|
} | undefined;
|
|
3345
|
+
group?: {
|
|
3346
|
+
key: string;
|
|
3347
|
+
title: string;
|
|
3348
|
+
} | undefined;
|
|
3318
3349
|
};
|
|
3319
3350
|
tier: string;
|
|
3320
3351
|
} | {
|
|
@@ -4087,6 +4118,7 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
4087
4118
|
kind: "automatic";
|
|
4088
4119
|
};
|
|
4089
4120
|
badge?: string | undefined;
|
|
4121
|
+
group?: string | undefined;
|
|
4090
4122
|
};
|
|
4091
4123
|
tier: string;
|
|
4092
4124
|
} | {
|
|
@@ -4484,6 +4516,7 @@ declare function relayClient(options: RelayClientOptions): {
|
|
|
4484
4516
|
kind: "automatic";
|
|
4485
4517
|
};
|
|
4486
4518
|
badge?: string | undefined;
|
|
4519
|
+
group?: string | undefined;
|
|
4487
4520
|
};
|
|
4488
4521
|
tier: string;
|
|
4489
4522
|
} | {
|