@domino-sdk/relay 1.11.0 → 1.14.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/README.md +1 -0
- package/build.mjs +15 -0
- package/dist/accounts-5ciAkCMP.d.ts +147 -0
- package/dist/{activity-CNiPDPK6.d.ts → activity-D_R3J-gU.d.ts} +115 -115
- package/dist/attempt-captures-DZldPZJc.d.ts +285 -0
- package/dist/authoring.d.ts +49 -47
- package/dist/authoring.js +8 -6
- package/dist/{automatic-outcomes-kPIDv6X_.d.ts → automatic-outcomes-6lJGnSDe.d.ts} +1 -1
- package/dist/browser.d.ts +8 -7
- package/dist/browser.js +9 -8
- package/dist/capability-error-oTd3eYFH.d.ts +151 -0
- package/dist/chunk-2UAVZCMH.js +314 -0
- package/dist/{chunk-GXT4S5IK.js → chunk-46C33ASD.js} +37 -4
- package/dist/{chunk-ULU5ZF6R.js → chunk-4OLQYRSA.js} +1 -1
- package/dist/chunk-5TS3OAWS.js +470 -0
- package/dist/{chunk-CFTTECZZ.js → chunk-6DD7DVNQ.js} +2 -2
- package/dist/{chunk-DG4QQUH7.js → chunk-C3CB4WIQ.js} +1 -1
- package/dist/{chunk-GKTD36JW.js → chunk-LLMJ2SUT.js} +7 -3
- package/dist/chunk-NIYCAW2I.js +79 -0
- package/dist/{chunk-TV2GYBDZ.js → chunk-PT5STHFH.js} +1 -1
- package/dist/chunk-UJACD6K2.js +987 -0
- package/dist/{chunk-U4KTGJWU.js → chunk-VBHFJH3P.js} +82 -30
- package/dist/chunk-W335CWYJ.js +53 -0
- package/dist/{chunk-7JHREQ2D.js → chunk-XMBM2XD5.js} +1 -1
- package/dist/{chunk-FISNMJN3.js → chunk-ZGH6NEG6.js} +1 -1
- package/dist/{chunk-UIBDEAP2.js → chunk-ZLYBUM7K.js} +158 -59
- package/dist/{client-Dz14Kuu8.d.ts → client-BTd_CyX3.d.ts} +26 -6
- package/dist/{groups-BK8ts2yK.d.ts → groups-4Jb3uYFO.d.ts} +1 -1
- package/dist/{images-aw6W7vFZ.d.ts → images-D5kpqHxv.d.ts} +1 -1
- package/dist/index.d.ts +9 -8
- package/dist/index.js +10 -8
- package/dist/{capability-error-ty3SqD_b.d.ts → integrations-Cr9EhGI_.d.ts} +1 -149
- package/dist/internal.d.ts +32 -5
- package/dist/internal.js +12 -7
- package/dist/{offers-C2FANzrG.d.ts → offers-BFI5t-e-.d.ts} +2 -2
- package/dist/{pages-tSpttGrI.d.ts → pages-nIoMT9J3.d.ts} +2 -1
- package/dist/{participant-activity-DkL3nY5a.d.ts → participant-activity-DYdUUhw2.d.ts} +1 -0
- package/dist/portal-proxy.js +3 -3
- package/dist/react/index.d.ts +246 -177
- package/dist/react/index.js +956 -385
- package/dist/{referral-reward-kinds-M3f0PdiR.d.ts → referral-reward-kinds-DnvQXL8L.d.ts} +100 -3
- package/dist/{schema-DEM8y8Fm.d.ts → schema-K-Pg5lPz.d.ts} +1 -1
- package/dist/schema.d.ts +316 -314
- package/dist/schema.js +19 -17
- package/dist/server/index.d.ts +2546 -377
- package/dist/server/index.js +973 -987
- package/dist/{sign-in-options-rPCsFr7w.d.ts → sign-in-options-DBjMzgnu.d.ts} +2 -2
- package/dist/submission-input-CPIsJt-_.d.ts +146 -0
- package/dist/testing.d.ts +641 -0
- package/dist/testing.js +1282 -0
- package/package.json +6 -2
- package/dist/chunk-DJOGMLYT.js +0 -171
- package/dist/chunk-KLF7XABH.js +0 -1295
- package/dist/submission-input-BbBJTVlT.d.ts +0 -290
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createRelayAction,
|
|
3
3
|
withActionId
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-XMBM2XD5.js";
|
|
5
5
|
import {
|
|
6
6
|
collectionPassSchema,
|
|
7
7
|
participantActivityQuerySchema,
|
|
@@ -16,25 +16,19 @@ import {
|
|
|
16
16
|
questOutcomeQuerySchema,
|
|
17
17
|
questOutcomeSchema,
|
|
18
18
|
rewardDeliveriesSchema
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-LLMJ2SUT.js";
|
|
20
20
|
import {
|
|
21
21
|
AVATAR_UPLOAD_LIMIT,
|
|
22
|
-
RelayError,
|
|
23
|
-
RelayErrorCode,
|
|
24
22
|
avatarUploadTypes,
|
|
25
|
-
clientError,
|
|
26
23
|
engagementBoundaryPageSchema,
|
|
27
24
|
engagementPageQuerySchema,
|
|
28
25
|
engagementPageSchema,
|
|
29
|
-
isRelayError,
|
|
30
26
|
leaderboardDefinitionResponseSchema,
|
|
31
27
|
leaderboardPageSchema,
|
|
32
28
|
leaderboardPlacementSchema,
|
|
33
29
|
leaderboardQuerySchema,
|
|
34
|
-
linkedWalletSchema,
|
|
35
30
|
offerSchema,
|
|
36
31
|
ownProfileSchema,
|
|
37
|
-
parseInput,
|
|
38
32
|
pointBalancesSchema,
|
|
39
33
|
pointHistoryPageSchema,
|
|
40
34
|
pointHistoryQuerySchema,
|
|
@@ -48,14 +42,22 @@ import {
|
|
|
48
42
|
referralAcceptSchema,
|
|
49
43
|
referralDefinitionSchema,
|
|
50
44
|
referralHistorySchema,
|
|
51
|
-
referralSummarySchema
|
|
45
|
+
referralSummarySchema
|
|
46
|
+
} from "./chunk-UJACD6K2.js";
|
|
47
|
+
import {
|
|
48
|
+
RelayError,
|
|
49
|
+
RelayErrorCode,
|
|
50
|
+
clientError,
|
|
51
|
+
isRelayError,
|
|
52
|
+
linkedWalletSchema,
|
|
53
|
+
parseInput,
|
|
52
54
|
walletAddressInput,
|
|
53
55
|
walletAddressInputSchema,
|
|
54
56
|
walletMessageChallengeSchema,
|
|
55
57
|
walletSignInNetworksSchema,
|
|
56
58
|
walletSignatureSchema,
|
|
57
59
|
walletUnlinkInputSchema
|
|
58
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-2UAVZCMH.js";
|
|
59
61
|
import {
|
|
60
62
|
PARTICIPANT_TIMEOUT,
|
|
61
63
|
lifetime,
|
|
@@ -63,16 +65,19 @@ import {
|
|
|
63
65
|
retrying,
|
|
64
66
|
validTimeout
|
|
65
67
|
} from "./chunk-6QJ3LADK.js";
|
|
68
|
+
import {
|
|
69
|
+
isRequestError
|
|
70
|
+
} from "./chunk-NPGENI7K.js";
|
|
66
71
|
import {
|
|
67
72
|
clientIdentity
|
|
68
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-C3CB4WIQ.js";
|
|
69
74
|
import {
|
|
70
75
|
exchangeResultSchema,
|
|
71
76
|
exchangeSchema,
|
|
72
77
|
memberSummarySchema,
|
|
73
78
|
participantSessionSchema,
|
|
74
79
|
sessionMember
|
|
75
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-PT5STHFH.js";
|
|
76
81
|
import {
|
|
77
82
|
accountConnectionSchema,
|
|
78
83
|
attemptSchema,
|
|
@@ -96,7 +101,7 @@ import {
|
|
|
96
101
|
tieredRewardReferenceSchema,
|
|
97
102
|
validateSubmissionValue,
|
|
98
103
|
valueEvidenceSchema
|
|
99
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-46C33ASD.js";
|
|
100
105
|
|
|
101
106
|
// src/submissions.ts
|
|
102
107
|
import { z } from "zod";
|
|
@@ -488,13 +493,18 @@ var QuestUpdatedError = class extends RelayError {
|
|
|
488
493
|
import { z as z2 } from "zod";
|
|
489
494
|
|
|
490
495
|
// src/progress.ts
|
|
496
|
+
function sessionEnded(error) {
|
|
497
|
+
return isRequestError(error) && (error.code === RelayErrorCode.StaleSession || error.code === RelayErrorCode.NotSignedIn);
|
|
498
|
+
}
|
|
491
499
|
function observeProgress(transport, listener, options = {}, onDispose = () => {
|
|
492
500
|
}) {
|
|
493
501
|
const interval = options.intervalMs ?? 1500;
|
|
494
502
|
const maximum = options.maxBackoffMs ?? 3e4;
|
|
495
|
-
|
|
503
|
+
const bound = options.bound ?? false;
|
|
504
|
+
const retry = options.retryMs ?? interval * 2;
|
|
505
|
+
if (!Number.isFinite(interval) || interval <= 0 || !Number.isFinite(maximum) || !Number.isFinite(retry) || retry <= 0 || maximum < interval) {
|
|
496
506
|
throw clientError(
|
|
497
|
-
"Progress polling requires a positive interval and a maximum at least as large",
|
|
507
|
+
"Progress polling requires a positive interval and retry wait, and a maximum at least as large as the interval",
|
|
498
508
|
RelayErrorCode.InvalidInput
|
|
499
509
|
);
|
|
500
510
|
}
|
|
@@ -502,16 +512,23 @@ function observeProgress(transport, listener, options = {}, onDispose = () => {
|
|
|
502
512
|
let controller;
|
|
503
513
|
let timer;
|
|
504
514
|
let sessionId;
|
|
515
|
+
let reusable;
|
|
516
|
+
let reread = false;
|
|
505
517
|
let failures = 0;
|
|
518
|
+
let settledAt = 0;
|
|
519
|
+
let delay = interval;
|
|
506
520
|
const visible = () => typeof document === "undefined" || document.visibilityState !== "hidden";
|
|
507
521
|
const visibility = () => {
|
|
522
|
+
if (timer !== void 0) {
|
|
523
|
+
clearTimeout(timer);
|
|
524
|
+
}
|
|
508
525
|
if (visible()) {
|
|
509
|
-
|
|
526
|
+
timer = setTimeout(
|
|
527
|
+
() => void refresh(),
|
|
528
|
+
Math.max(0, settledAt + delay - Date.now())
|
|
529
|
+
);
|
|
510
530
|
} else {
|
|
511
531
|
controller?.abort();
|
|
512
|
-
if (timer !== void 0) {
|
|
513
|
-
clearTimeout(timer);
|
|
514
|
-
}
|
|
515
532
|
}
|
|
516
533
|
};
|
|
517
534
|
if (typeof document !== "undefined") {
|
|
@@ -523,6 +540,8 @@ function observeProgress(transport, listener, options = {}, onDispose = () => {
|
|
|
523
540
|
clearTimeout(timer);
|
|
524
541
|
}
|
|
525
542
|
sessionId = void 0;
|
|
543
|
+
reusable = void 0;
|
|
544
|
+
settledAt = 0;
|
|
526
545
|
if (!disposed) {
|
|
527
546
|
listener({ kind: "loading" });
|
|
528
547
|
}
|
|
@@ -538,8 +557,9 @@ function observeProgress(transport, listener, options = {}, onDispose = () => {
|
|
|
538
557
|
const request = new AbortController();
|
|
539
558
|
controller = request;
|
|
540
559
|
const current = () => !disposed && !request.signal.aborted;
|
|
560
|
+
let readSessionNow = false;
|
|
541
561
|
try {
|
|
542
|
-
const session = await transport.session(request.signal);
|
|
562
|
+
const session = (bound ? reusable : void 0) ?? await transport.session(request.signal);
|
|
543
563
|
if (!current()) {
|
|
544
564
|
return;
|
|
545
565
|
}
|
|
@@ -549,44 +569,69 @@ function observeProgress(transport, listener, options = {}, onDispose = () => {
|
|
|
549
569
|
}
|
|
550
570
|
const member = sessionMember(session);
|
|
551
571
|
if (session && member) {
|
|
552
|
-
|
|
572
|
+
let progress;
|
|
573
|
+
try {
|
|
574
|
+
progress = await transport.progress(session.id, request.signal);
|
|
575
|
+
} catch (error) {
|
|
576
|
+
if (bound && !reread && sessionEnded(error) && current()) {
|
|
577
|
+
sessionId = void 0;
|
|
578
|
+
reusable = void 0;
|
|
579
|
+
reread = true;
|
|
580
|
+
readSessionNow = true;
|
|
581
|
+
listener({ kind: "loading" });
|
|
582
|
+
return;
|
|
583
|
+
}
|
|
584
|
+
throw error;
|
|
585
|
+
}
|
|
553
586
|
if (!current()) {
|
|
554
587
|
return;
|
|
555
588
|
}
|
|
556
|
-
const confirmed = await transport.session(request.signal);
|
|
589
|
+
const confirmed = bound ? session : await transport.session(request.signal);
|
|
557
590
|
if (!current()) {
|
|
558
591
|
return;
|
|
559
592
|
}
|
|
560
593
|
if (confirmed?.id !== session.id || progress.member !== member) {
|
|
561
594
|
sessionId = void 0;
|
|
595
|
+
reusable = void 0;
|
|
562
596
|
listener({ kind: "loading" });
|
|
563
597
|
return;
|
|
564
598
|
}
|
|
599
|
+
reusable = bound ? confirmed : void 0;
|
|
565
600
|
listener({ kind: "ready", session: confirmed, progress });
|
|
601
|
+
} else {
|
|
602
|
+
reusable = void 0;
|
|
566
603
|
}
|
|
567
604
|
failures = 0;
|
|
605
|
+
reread = false;
|
|
568
606
|
} catch (error) {
|
|
569
607
|
if (!current()) {
|
|
570
608
|
return;
|
|
571
609
|
}
|
|
572
610
|
failures = Math.min(failures + 1, 20);
|
|
573
611
|
sessionId = void 0;
|
|
612
|
+
reusable = void 0;
|
|
613
|
+
reread = false;
|
|
574
614
|
listener({
|
|
575
615
|
kind: "error",
|
|
576
616
|
error: error instanceof Error ? error : new Error("Could not refresh progress")
|
|
577
617
|
});
|
|
578
618
|
} finally {
|
|
579
619
|
if (current()) {
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
);
|
|
620
|
+
settledAt = Date.now();
|
|
621
|
+
delay = readSessionNow ? 0 : failures === 0 ? interval : Math.min(maximum, retry * 2 ** (failures - 1));
|
|
622
|
+
timer = setTimeout(() => void refresh(), delay);
|
|
584
623
|
}
|
|
585
624
|
}
|
|
586
625
|
}
|
|
587
626
|
const observer = {
|
|
588
627
|
refresh,
|
|
589
628
|
clear,
|
|
629
|
+
/** A bound observer's next poll uses `session`, already read, instead of reading it. */
|
|
630
|
+
reuse(session) {
|
|
631
|
+
if (bound && sessionMember(session)) {
|
|
632
|
+
reusable = session;
|
|
633
|
+
}
|
|
634
|
+
},
|
|
590
635
|
dispose() {
|
|
591
636
|
if (disposed) {
|
|
592
637
|
return;
|
|
@@ -1366,7 +1411,7 @@ function relayClient(options) {
|
|
|
1366
1411
|
})
|
|
1367
1412
|
},
|
|
1368
1413
|
listener,
|
|
1369
|
-
observeOptions,
|
|
1414
|
+
{ ...observeOptions, bound: true },
|
|
1370
1415
|
() => observers.delete(observer)
|
|
1371
1416
|
);
|
|
1372
1417
|
observers.add(observer);
|
|
@@ -1584,7 +1629,10 @@ function relayClient(options) {
|
|
|
1584
1629
|
{
|
|
1585
1630
|
session: (signal) => readSession({ signal }),
|
|
1586
1631
|
progress: (session, signal) => request(
|
|
1587
|
-
withQuery(
|
|
1632
|
+
withQuery(
|
|
1633
|
+
"/v1/me/activity",
|
|
1634
|
+
cursor === void 0 && options2.start ? { start: options2.start } : { cursor }
|
|
1635
|
+
),
|
|
1588
1636
|
participantActivitySchema,
|
|
1589
1637
|
{ options: { session, signal } }
|
|
1590
1638
|
)
|
|
@@ -1609,12 +1657,16 @@ function relayClient(options) {
|
|
|
1609
1657
|
},
|
|
1610
1658
|
{
|
|
1611
1659
|
intervalMs: options2.intervalMs ?? 5e3,
|
|
1612
|
-
maxBackoffMs: options2.maxBackoffMs
|
|
1660
|
+
maxBackoffMs: options2.maxBackoffMs,
|
|
1661
|
+
bound: true
|
|
1613
1662
|
},
|
|
1614
1663
|
() => observers.delete(observer)
|
|
1615
1664
|
);
|
|
1616
1665
|
observers.add(observer);
|
|
1617
1666
|
observer.clear();
|
|
1667
|
+
if (options2.session) {
|
|
1668
|
+
observer.reuse(options2.session);
|
|
1669
|
+
}
|
|
1618
1670
|
void observer.refresh();
|
|
1619
1671
|
return { refresh: observer.refresh, dispose: observer.dispose };
|
|
1620
1672
|
}
|
|
@@ -1630,7 +1682,7 @@ function relayClient(options) {
|
|
|
1630
1682
|
})
|
|
1631
1683
|
},
|
|
1632
1684
|
listener,
|
|
1633
|
-
observeOptions,
|
|
1685
|
+
{ ...observeOptions, bound: true },
|
|
1634
1686
|
() => observers.delete(observer)
|
|
1635
1687
|
);
|
|
1636
1688
|
observers.add(observer);
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import {
|
|
2
|
+
imageComparisonSchema,
|
|
3
|
+
imageExtractionSchema,
|
|
4
|
+
imageFieldsSchema,
|
|
5
|
+
imageInspectionSchema,
|
|
6
|
+
imageSightingsSchema
|
|
7
|
+
} from "./chunk-ZGH6NEG6.js";
|
|
8
|
+
import {
|
|
9
|
+
photoResultSchema
|
|
10
|
+
} from "./chunk-46C33ASD.js";
|
|
11
|
+
|
|
12
|
+
// src/image-results.ts
|
|
13
|
+
import { z } from "zod";
|
|
14
|
+
var invalid = (message, path) => new z.ZodError([{ code: "custom", message, path, input: void 0 }]);
|
|
15
|
+
function parseImageExtraction(raw, value) {
|
|
16
|
+
const result = imageExtractionSchema.parse(value);
|
|
17
|
+
const fields = imageFieldsSchema.parse(raw);
|
|
18
|
+
for (const [key, field] of Object.entries(fields)) {
|
|
19
|
+
const extracted = result.values[key];
|
|
20
|
+
if (extracted === void 0) {
|
|
21
|
+
throw invalid("Image extraction omitted " + key, ["values", key]);
|
|
22
|
+
}
|
|
23
|
+
if (extracted !== null && typeof extracted !== field.type) {
|
|
24
|
+
throw invalid("Image extraction returned the wrong type for " + key, [
|
|
25
|
+
"values",
|
|
26
|
+
key
|
|
27
|
+
]);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
if (Object.keys(result.values).some((key) => !Object.hasOwn(fields, key))) {
|
|
31
|
+
throw invalid("Image extraction returned an undeclared field", ["values"]);
|
|
32
|
+
}
|
|
33
|
+
return result;
|
|
34
|
+
}
|
|
35
|
+
function parseImageResult(request, value) {
|
|
36
|
+
switch (request.operation) {
|
|
37
|
+
case "inspect":
|
|
38
|
+
return imageInspectionSchema.parse(value);
|
|
39
|
+
case "compare":
|
|
40
|
+
return imageComparisonSchema.parse(value);
|
|
41
|
+
case "review":
|
|
42
|
+
return photoResultSchema.parse(value);
|
|
43
|
+
case "extract":
|
|
44
|
+
return parseImageExtraction(request.fields, value);
|
|
45
|
+
case "seen":
|
|
46
|
+
return imageSightingsSchema.parse(value);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export {
|
|
51
|
+
parseImageExtraction,
|
|
52
|
+
parseImageResult
|
|
53
|
+
};
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
imageSightingsSchema,
|
|
7
7
|
imageUploadsSchema,
|
|
8
8
|
publishedImageSchema
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ZGH6NEG6.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-LLMJ2SUT.js";
|
|
28
28
|
import {
|
|
29
29
|
engagementArtifactSchema,
|
|
30
30
|
engagementBoundaryPageSchema,
|
|
@@ -35,7 +35,6 @@ import {
|
|
|
35
35
|
leaderboardPageSchema,
|
|
36
36
|
leaderboardPlacementSchema,
|
|
37
37
|
leaderboardPreviewSchema,
|
|
38
|
-
linkedWalletSchema,
|
|
39
38
|
offerArtifactSchema,
|
|
40
39
|
offerDefinitionSchema,
|
|
41
40
|
offerSchema,
|
|
@@ -53,16 +52,19 @@ import {
|
|
|
53
52
|
referralArtifactSchema,
|
|
54
53
|
referralDefinitionSchema,
|
|
55
54
|
referralHistorySchema,
|
|
56
|
-
referralSummarySchema
|
|
55
|
+
referralSummarySchema
|
|
56
|
+
} from "./chunk-UJACD6K2.js";
|
|
57
|
+
import {
|
|
58
|
+
linkedWalletSchema,
|
|
57
59
|
walletBalanceSchema,
|
|
58
60
|
walletMessageChallengeSchema,
|
|
59
61
|
walletSignInNetworksSchema
|
|
60
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-2UAVZCMH.js";
|
|
61
63
|
import {
|
|
62
64
|
exchangeResultSchema,
|
|
63
65
|
memberSummarySchema,
|
|
64
66
|
participantSessionSchema
|
|
65
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-PT5STHFH.js";
|
|
66
68
|
import {
|
|
67
69
|
accountConnectionSchema,
|
|
68
70
|
attemptSchema,
|
|
@@ -74,6 +76,7 @@ import {
|
|
|
74
76
|
evidenceSchema,
|
|
75
77
|
identifier,
|
|
76
78
|
knownResponse,
|
|
79
|
+
lazyResponseReaders,
|
|
77
80
|
markResponseSchema,
|
|
78
81
|
memberProgressSchema,
|
|
79
82
|
pageCursorSchema,
|
|
@@ -88,7 +91,7 @@ import {
|
|
|
88
91
|
tieredRewardReferenceSchema,
|
|
89
92
|
timeZoneNameSchema,
|
|
90
93
|
trackerArtifactSchema
|
|
91
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-46C33ASD.js";
|
|
92
95
|
|
|
93
96
|
// src/deployments.ts
|
|
94
97
|
import { z } from "zod";
|
|
@@ -192,15 +195,29 @@ var promoteDeploymentSchema = repeatableDeploymentSchema;
|
|
|
192
195
|
var rollbackDeploymentSchema = repeatableDeploymentSchema;
|
|
193
196
|
|
|
194
197
|
// src/capability-responses.ts
|
|
195
|
-
var capabilityResponseSchemas = {
|
|
196
|
-
imageInspectionSchema
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
198
|
+
var capabilityResponseSchemas = lazyResponseReaders({
|
|
199
|
+
get imageInspectionSchema() {
|
|
200
|
+
return knownResponse(imageInspectionSchema);
|
|
201
|
+
},
|
|
202
|
+
get imageComparisonSchema() {
|
|
203
|
+
return knownResponse(imageComparisonSchema);
|
|
204
|
+
},
|
|
205
|
+
get imageExtractionSchema() {
|
|
206
|
+
return knownResponse(imageExtractionSchema);
|
|
207
|
+
},
|
|
208
|
+
get imageSightingsSchema() {
|
|
209
|
+
return knownResponse(imageSightingsSchema);
|
|
210
|
+
},
|
|
211
|
+
get imageUploadsSchema() {
|
|
212
|
+
return knownResponse(imageUploadsSchema);
|
|
213
|
+
},
|
|
214
|
+
get publishedImageSchema() {
|
|
215
|
+
return knownResponse(publishedImageSchema);
|
|
216
|
+
},
|
|
217
|
+
get walletBalanceSchema() {
|
|
218
|
+
return knownResponse(walletBalanceSchema);
|
|
219
|
+
}
|
|
220
|
+
});
|
|
204
221
|
var capabilityResponses = {
|
|
205
222
|
imageInspectionSchema: responseSchema(imageInspectionSchema),
|
|
206
223
|
imageComparisonSchema: responseSchema(imageComparisonSchema),
|
|
@@ -372,49 +389,131 @@ var automaticSchedulingRetrySchema = z3.strictObject({
|
|
|
372
389
|
});
|
|
373
390
|
|
|
374
391
|
// src/response-readers.ts
|
|
375
|
-
var participantResponseSchemas = {
|
|
376
|
-
accountConnectionSchema
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
}
|
|
392
|
+
var participantResponseSchemas = lazyResponseReaders({
|
|
393
|
+
get accountConnectionSchema() {
|
|
394
|
+
return knownResponse(accountConnectionSchema);
|
|
395
|
+
},
|
|
396
|
+
get attemptSchema() {
|
|
397
|
+
return knownResponse(attemptSchema);
|
|
398
|
+
},
|
|
399
|
+
get authProviderSchema() {
|
|
400
|
+
return knownResponse(authProviderSchema);
|
|
401
|
+
},
|
|
402
|
+
get campaignEnrollmentSchema() {
|
|
403
|
+
return knownResponse(campaignEnrollmentSchema);
|
|
404
|
+
},
|
|
405
|
+
get collectionPassSchema() {
|
|
406
|
+
return knownResponse(collectionPassSchema);
|
|
407
|
+
},
|
|
408
|
+
get contentPerformancePageSchema() {
|
|
409
|
+
return knownResponse(contentPerformancePageSchema);
|
|
410
|
+
},
|
|
411
|
+
get contentQualificationPageSchema() {
|
|
412
|
+
return knownResponse(contentQualificationPageSchema);
|
|
413
|
+
},
|
|
414
|
+
get engagementBoundaryPageSchema() {
|
|
415
|
+
return knownResponse(engagementBoundaryPageSchema);
|
|
416
|
+
},
|
|
417
|
+
get engagementPageSchema() {
|
|
418
|
+
return knownResponse(engagementPageSchema);
|
|
419
|
+
},
|
|
420
|
+
get evidenceSchema() {
|
|
421
|
+
return knownResponse(evidenceSchema);
|
|
422
|
+
},
|
|
423
|
+
get exchangeResultSchema() {
|
|
424
|
+
return knownResponse(exchangeResultSchema);
|
|
425
|
+
},
|
|
426
|
+
get leaderboardDefinitionSchema() {
|
|
427
|
+
return knownResponse(leaderboardDefinitionSchema);
|
|
428
|
+
},
|
|
429
|
+
get leaderboardPageSchema() {
|
|
430
|
+
return knownResponse(leaderboardPageSchema);
|
|
431
|
+
},
|
|
432
|
+
get leaderboardPlacementSchema() {
|
|
433
|
+
return knownResponse(leaderboardPlacementSchema);
|
|
434
|
+
},
|
|
435
|
+
get linkedWalletSchema() {
|
|
436
|
+
return knownResponse(linkedWalletSchema);
|
|
437
|
+
},
|
|
438
|
+
get memberProgressSchema() {
|
|
439
|
+
return knownResponse(memberProgressSchema);
|
|
440
|
+
},
|
|
441
|
+
get memberSummarySchema() {
|
|
442
|
+
return knownResponse(memberSummarySchema);
|
|
443
|
+
},
|
|
444
|
+
get offerSchema() {
|
|
445
|
+
return knownResponse(offerSchema);
|
|
446
|
+
},
|
|
447
|
+
get ownProfileSchema() {
|
|
448
|
+
return knownResponse(ownProfileSchema);
|
|
449
|
+
},
|
|
450
|
+
get participantActivitySchema() {
|
|
451
|
+
return knownResponse(participantActivitySchema);
|
|
452
|
+
},
|
|
453
|
+
get participantDeliveriesSchema() {
|
|
454
|
+
return knownResponse(participantDeliveriesSchema);
|
|
455
|
+
},
|
|
456
|
+
get participantEntitlementsSchema() {
|
|
457
|
+
return knownResponse(participantEntitlementsSchema);
|
|
458
|
+
},
|
|
459
|
+
get participantSessionSchema() {
|
|
460
|
+
return knownResponse(participantSessionSchema);
|
|
461
|
+
},
|
|
462
|
+
get pointBalancesSchema() {
|
|
463
|
+
return knownResponse(pointBalancesSchema);
|
|
464
|
+
},
|
|
465
|
+
get pointHistoryPageSchema() {
|
|
466
|
+
return knownResponse(pointHistoryPageSchema);
|
|
467
|
+
},
|
|
468
|
+
get pointLedgerReferenceSchema() {
|
|
469
|
+
return knownResponse(pointLedgerReferenceSchema);
|
|
470
|
+
},
|
|
471
|
+
get profileCompletionPageSchema() {
|
|
472
|
+
return knownResponse(profileCompletionPageSchema);
|
|
473
|
+
},
|
|
474
|
+
get profileReferralSchema() {
|
|
475
|
+
return knownResponse(profileReferralSchema);
|
|
476
|
+
},
|
|
477
|
+
get profileSummarySchema() {
|
|
478
|
+
return knownResponse(profileSummarySchema);
|
|
479
|
+
},
|
|
480
|
+
get questEnrollmentSchema() {
|
|
481
|
+
return knownResponse(questEnrollmentSchema);
|
|
482
|
+
},
|
|
483
|
+
get questExperienceSchema() {
|
|
484
|
+
return knownResponse(questExperienceSchema);
|
|
485
|
+
},
|
|
486
|
+
get questOutcomePageSchema() {
|
|
487
|
+
return knownResponse(questOutcomePageSchema);
|
|
488
|
+
},
|
|
489
|
+
get questOutcomeSchema() {
|
|
490
|
+
return knownResponse(questOutcomeSchema);
|
|
491
|
+
},
|
|
492
|
+
get redemptionSchema() {
|
|
493
|
+
return knownResponse(redemptionSchema);
|
|
494
|
+
},
|
|
495
|
+
get referralDefinitionSchema() {
|
|
496
|
+
return knownResponse(referralDefinitionSchema);
|
|
497
|
+
},
|
|
498
|
+
get referralHistorySchema() {
|
|
499
|
+
return knownResponse(referralHistorySchema);
|
|
500
|
+
},
|
|
501
|
+
get referralSummarySchema() {
|
|
502
|
+
return knownResponse(referralSummarySchema);
|
|
503
|
+
},
|
|
504
|
+
get rewardDeliveriesSchema() {
|
|
505
|
+
return knownResponse(rewardDeliveriesSchema);
|
|
506
|
+
},
|
|
507
|
+
get tieredRewardReferenceSchema() {
|
|
508
|
+
return knownResponse(tieredRewardReferenceSchema);
|
|
509
|
+
},
|
|
510
|
+
get walletMessageChallengeSchema() {
|
|
511
|
+
return knownResponse(walletMessageChallengeSchema);
|
|
512
|
+
},
|
|
513
|
+
get walletSignInNetworksSchema() {
|
|
514
|
+
return knownResponse(walletSignInNetworksSchema);
|
|
515
|
+
}
|
|
516
|
+
});
|
|
418
517
|
var participantResponses = {
|
|
419
518
|
accountConnectionSchema: responseSchema(accountConnectionSchema),
|
|
420
519
|
attemptSchema: responseSchema(attemptSchema),
|