@domino-sdk/relay 1.5.2 → 1.6.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/{activity-DeKJsRry.d.ts → activity-mPUN4v5Q.d.ts} +147 -116
- package/dist/authoring.d.ts +59 -47
- package/dist/authoring.js +3 -3
- package/dist/{automatic-outcomes-B1xrETxm.d.ts → automatic-outcomes-DmuqzQiH.d.ts} +224 -13
- package/dist/browser.d.ts +22 -10
- package/dist/browser.js +6 -6
- package/dist/{capability-error-DNMwKmlL.d.ts → capability-error-Bv996M-h.d.ts} +2 -0
- package/dist/{chunk-GQKYAQM6.js → chunk-23QJ7WH4.js} +1 -1
- package/dist/{chunk-XFMSUPNS.js → chunk-6ON4RMEN.js} +1 -1
- package/dist/{chunk-VFHHLN6A.js → chunk-6RBF3UDA.js} +49 -6
- package/dist/chunk-AXRMT33W.js +112 -0
- package/dist/{chunk-24AFCBZN.js → chunk-BFZHJA2B.js} +2 -2
- package/dist/{chunk-EYH5RDIE.js → chunk-C25TDFHN.js} +4 -2
- package/dist/{chunk-36HTX2BM.js → chunk-GMPPLZKH.js} +61 -4
- package/dist/{chunk-BGGKNIRP.js → chunk-JW4G3SY5.js} +1 -1
- package/dist/{chunk-JON5SESL.js → chunk-KGJSKGKI.js} +84 -6
- package/dist/{chunk-WJSSJ7AF.js → chunk-QGLHZ2E5.js} +24 -4
- package/dist/{chunk-DGWMLN35.js → chunk-ZOUEEK5L.js} +16 -5
- package/dist/{client-gqnRUHpC.d.ts → client-CQuTAjSs.d.ts} +88 -41
- package/dist/{groups-Ck-OxzjD.d.ts → groups-D08JtrZu.d.ts} +175 -3
- package/dist/{identity-integration-GxAHdKR2.d.ts → identity-integration-BPovus6e.d.ts} +1 -1
- package/dist/{images-Dv-P5VBw.d.ts → images-D7en0Awp.d.ts} +1 -1
- package/dist/index.d.ts +9 -9
- package/dist/index.js +5 -5
- package/dist/internal.d.ts +34 -27
- package/dist/internal.js +18 -24
- package/dist/{offers-Cy-e4o5x.d.ts → offers-BENZl5l5.d.ts} +3 -2
- package/dist/{outcomes-kVB-Juzs.d.ts → pages-CBa-_u_n.d.ts} +142 -99
- package/dist/{pages-BBYD21IE.d.ts → participant-activity-DkL3nY5a.d.ts} +1 -14
- package/dist/portal-proxy.js +48 -36
- package/dist/react/index.d.ts +25 -3949
- package/dist/react/index.js +8 -7
- package/dist/{request-error-DWduJCGV.d.ts → request-error-D_dUPLwo.d.ts} +5 -0
- package/dist/{schema-DfJzH2ci.d.ts → schema-BPdHSCAc.d.ts} +122 -37
- package/dist/schema.d.ts +10 -10
- package/dist/schema.js +48 -6
- package/dist/server/index.d.ts +9672 -66110
- package/dist/server/index.js +1009 -548
- package/dist/sign-in-options-FPKoZMfo.d.ts +202 -0
- package/dist/{submission-input-BZkm6ohU.d.ts → submission-input-BzIWutQi.d.ts} +2 -2
- package/package.json +1 -1
- package/dist/browser-D_3s8B5e.d.ts +0 -4154
- package/dist/chunk-GUP7YRR4.js +0 -42
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export { C as ClaimSubmission, K as KnownRelayErrorCode, P as PhotoSubmission, a as ProgressObservation, b as ProgressObserver, Q as QuestActionResult, c as QuestController, d as QuestUpdatedError, e as QuizSubmission, R as RelayClient, f as RelayClientOptions, g as RelayError, h as RelayErrorCode, i as RelayErrorDetails, j as RelayErrorKind, k as RelayRequestOptions, S as SubmissionDraft, l as SubmissionStatus, m as SubmissionStore, V as ValueSubmission, n as createRelayClient, o as isRelayError } from './client-
|
|
2
|
-
export { R as RequestError, a as RequestErrorDetails, b as RequestErrorKind, c as RequestRecovery, i as isRequestError } from './request-error-
|
|
3
|
-
export { A as Attempt, a as AttemptStatus, E as Entitlement, b as EvaluatorProgress, K as KnownAttemptStatus, c as KnownTrackerSkipCode, M as MemberProgress, Q as QuestBudgetView, d as QuestPresentation, e as QuestProfile, f as QuizEvidence, R as Reward, S as SubmissionEvidence, g as SubmitInput, T as TieredRewardReference, h as TrackerSkipCode } from './schema-
|
|
1
|
+
export { C as ClaimSubmission, K as KnownRelayErrorCode, P as PhotoSubmission, a as ProgressObservation, b as ProgressObserver, Q as QuestActionResult, c as QuestController, d as QuestUpdatedError, e as QuizSubmission, R as RelayClient, f as RelayClientOptions, g as RelayError, h as RelayErrorCode, i as RelayErrorDetails, j as RelayErrorKind, k as RelayRequestOptions, S as SubmissionDraft, l as SubmissionStatus, m as SubmissionStore, V as ValueSubmission, n as createRelayClient, o as isRelayError } from './client-CQuTAjSs.js';
|
|
2
|
+
export { R as RequestError, a as RequestErrorDetails, b as RequestErrorKind, c as RequestRecovery, i as isRequestError } from './request-error-D_dUPLwo.js';
|
|
3
|
+
export { A as Attempt, a as AttemptStatus, E as Entitlement, b as EvaluatorProgress, K as KnownAttemptStatus, c as KnownTrackerSkipCode, M as MemberProgress, Q as QuestBudgetView, d as QuestPresentation, e as QuestProfile, f as QuizEvidence, R as Reward, S as SubmissionEvidence, g as SubmitInput, T as TieredRewardReference, h as TrackerSkipCode } from './schema-BPdHSCAc.js';
|
|
4
4
|
export { f as formatUnits, p as parseUnits } from './units-CwgsPB_r.js';
|
|
5
|
-
export { A as AccountConnection, a as AuthProvider, M as MissingPrerequisite, P as Prerequisite, T as TextEvidence, b as TextOptions, U as UrlEvidence, c as UrlOptions, V as ValueEvidence } from './submission-input-
|
|
6
|
-
export { E as ExchangeInput, M as MemberSummary, P as
|
|
7
|
-
export { Q as QuestClaimInput,
|
|
8
|
-
export { A as AvailabilityWindow, C as CampaignDefinition, a as CampaignEnrollment, b as CampaignEnrollmentInput, c as CampaignView, d as CampaignWithdrawalInput, K as KnownPointEntryKind, L as LeaderboardDefinition, e as LeaderboardPage, f as LeaderboardPlacement, g as LeaderboardQuery, M as MemberCampaignEnrollmentInput, h as MemberCampaignWithdrawalInput, P as PointBalance, i as PointBalances, j as PointEntry, k as PointEntryKind, l as PointHistoryPage, m as PointHistoryQuery, n as PointLedgerReference, o as ProjectGroup, p as ProjectGroupReference, R as ReferralDefinition } from './groups-
|
|
9
|
-
export { A as AutomaticCatchUpPreview, a as AutomaticEvent, b as AutomaticOutcome, C as CollectionPass, c as CounterAchievement, d as CounterPolicy, e as CounterProgress } from './automatic-outcomes-
|
|
10
|
-
export { O as Offer, a as OfferDefinition, b as OfferPrice, R as RedeemOfferInput, c as Redemption } from './offers-
|
|
5
|
+
export { A as AccountConnection, a as AuthProvider, M as MissingPrerequisite, P as Prerequisite, T as TextEvidence, b as TextOptions, U as UrlEvidence, c as UrlOptions, V as ValueEvidence } from './submission-input-BzIWutQi.js';
|
|
6
|
+
export { E as ExchangeInput, M as MemberSummary, P as ParticipantActivity, a as ParticipantPrincipal, b as ParticipantSession, R as RelayEvent, S as Session, s as sessionMember } from './participant-activity-DkL3nY5a.js';
|
|
7
|
+
export { P as Page, a as PageQuery, Q as QuestClaimInput, b as QuestEnrollment, c as QuestEnrollmentInput, d as QuestInteraction, e as QuestOutcome, f as QuestOutcomePage, g as QuestOutcomeQuery, h as QuestOutcomeState, i as QuestRewardView, j as QuestView } from './pages-CBa-_u_n.js';
|
|
8
|
+
export { A as AvailabilityWindow, C as CampaignDefinition, a as CampaignEnrollment, b as CampaignEnrollmentInput, c as CampaignView, d as CampaignWithdrawalInput, K as KnownPointEntryKind, L as LeaderboardDefinition, e as LeaderboardPage, f as LeaderboardPlacement, g as LeaderboardQuery, M as MemberCampaignEnrollmentInput, h as MemberCampaignWithdrawalInput, P as PointBalance, i as PointBalances, j as PointEntry, k as PointEntryKind, l as PointHistoryPage, m as PointHistoryQuery, n as PointLedgerReference, o as ProjectGroup, p as ProjectGroupReference, R as ReferralDefinition } from './groups-D08JtrZu.js';
|
|
9
|
+
export { A as AutomaticCatchUpPreview, a as AutomaticEvent, b as AutomaticOutcome, C as CollectionPass, c as CounterAchievement, d as CounterPolicy, e as CounterProgress } from './automatic-outcomes-DmuqzQiH.js';
|
|
10
|
+
export { O as Offer, a as OfferDefinition, b as OfferPrice, R as RedeemOfferInput, c as Redemption } from './offers-BENZl5l5.js';
|
|
11
11
|
export { A as AvatarProvider, O as OwnProfile, P as ProfileAvatar, a as ProfileCompletion, b as ProfileCompletionPage, c as ProfileCompletionQuery, d as ProfileReferral, e as ProfileSummary, f as ProfileUpdate, g as ProfileVisibility } from './profiles-D2aFcOxu.js';
|
|
12
12
|
export { Q as QuizContent, S as StreakProgress } from './streaks-CWyq8Px5.js';
|
|
13
13
|
export { C as CosmosChain, a as CosmosNetwork, L as LinkedWallet, W as WalletAddressInput, b as WalletChain, c as WalletMessageChallenge, d as WalletSignInNetwork, e as WalletSignature, f as WalletSigner, g as WalletUnlinkInput } from './wallet-YssWxGg8.js';
|
package/dist/index.js
CHANGED
|
@@ -5,16 +5,16 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
QuestUpdatedError,
|
|
7
7
|
createRelayClient
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ZOUEEK5L.js";
|
|
9
9
|
import {
|
|
10
10
|
QuestOutcomeState
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-C25TDFHN.js";
|
|
12
12
|
import {
|
|
13
13
|
PointEntryKind,
|
|
14
14
|
RelayError,
|
|
15
15
|
RelayErrorCode,
|
|
16
16
|
isRelayError
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-GMPPLZKH.js";
|
|
18
18
|
import "./chunk-6QJ3LADK.js";
|
|
19
19
|
import {
|
|
20
20
|
RequestError,
|
|
@@ -22,10 +22,10 @@ import {
|
|
|
22
22
|
} from "./chunk-NPGENI7K.js";
|
|
23
23
|
import {
|
|
24
24
|
sessionMember
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-6ON4RMEN.js";
|
|
26
26
|
import {
|
|
27
27
|
AttemptStatus
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-KGJSKGKI.js";
|
|
29
29
|
export {
|
|
30
30
|
AttemptStatus,
|
|
31
31
|
PointEntryKind,
|
package/dist/internal.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
3
|
-
export { I as IdentityKindClaim, i as identityIntegrationInputSchema, a as identityIntegrationSchema, b as identityIntegrationSecretSchema, c as identityKindClaimSchema, p as participantExchangeSchema } from './identity-integration-
|
|
4
|
-
import { c as ImageFields, g as ImageRequest } from './images-
|
|
5
|
-
export { E as Extracted } from './images-
|
|
6
|
-
import { b as RequestErrorKind } from './request-error-
|
|
1
|
+
import { x as PublishedRelease, ag as TrackerSource, a4 as TrackerDataSchema, ai as TrackerSourceResponse, z as QuestDescription } from './schema-BPdHSCAc.js';
|
|
2
|
+
export { cU as TrackerDataBudget, cV as schemaCheckedReader, cW as trackerDataBatchSteps, cX as trackerDataIssue, cY as trackerDataIssues, cZ as trackerDataPathTypes, c_ as trackerDataRecordSteps, c$ as whereSchemaIssue } from './schema-BPdHSCAc.js';
|
|
3
|
+
export { I as IdentityKindClaim, i as identityIntegrationInputSchema, a as identityIntegrationSchema, b as identityIntegrationSecretSchema, c as identityKindClaimSchema, p as participantExchangeSchema } from './identity-integration-BPovus6e.js';
|
|
4
|
+
import { c as ImageFields, g as ImageRequest } from './images-D7en0Awp.js';
|
|
5
|
+
export { E as Extracted } from './images-D7en0Awp.js';
|
|
6
|
+
import { b as RequestErrorKind } from './request-error-D_dUPLwo.js';
|
|
7
7
|
import { z } from 'zod';
|
|
8
8
|
|
|
9
9
|
/** Older releases did not record ownership. Preserve every value, including defaults. */
|
|
@@ -58,34 +58,37 @@ declare function parseImageResult(request: ImageRequest, value: unknown): {
|
|
|
58
58
|
firstSeenAt: number | null;
|
|
59
59
|
};
|
|
60
60
|
|
|
61
|
-
/** Cursor polling of a participant's own committed activity. */
|
|
62
|
-
declare function isActivityParticipantRoute(path: string, method: string): boolean;
|
|
63
|
-
/** The signed-in participant's earned rewards and delivery states. */
|
|
64
|
-
declare function isRewardsParticipantRoute(path: string, method: string): boolean;
|
|
65
|
-
/** Content stage and engagement reads. */
|
|
66
|
-
declare function isContentParticipantRoute(path: string, method: string): boolean;
|
|
67
61
|
/**
|
|
68
|
-
*
|
|
62
|
+
* One participant route. `path` uses the API's route syntax: every parameter is `:name{pattern}`,
|
|
63
|
+
* one path segment matched by `pattern`.
|
|
69
64
|
*/
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
65
|
+
type ParticipantRoute = {
|
|
66
|
+
method: "GET" | "POST";
|
|
67
|
+
path: `/v1/${string}`;
|
|
68
|
+
/**
|
|
69
|
+
* Sign-in routes only hosted apps reach: identity integrations' apps have their own login. They
|
|
70
|
+
* still connect accounts through /v1/auth/start and /v1/auth/complete.
|
|
71
|
+
*/
|
|
72
|
+
hostedOnly?: true;
|
|
73
|
+
};
|
|
74
|
+
declare const participantRoutes: readonly ParticipantRoute[];
|
|
74
75
|
/**
|
|
75
|
-
* The
|
|
76
|
-
*
|
|
76
|
+
* The expression a route path matches: its literal parts exactly, each `:name{pattern}` one path
|
|
77
|
+
* segment. A parameter whose pattern can match "/" would span segments, so it is refused, as is a
|
|
78
|
+
* parameter without a pattern.
|
|
77
79
|
*/
|
|
78
|
-
declare function
|
|
80
|
+
declare function participantRoutePattern(path: string): RegExp;
|
|
79
81
|
/**
|
|
80
|
-
*
|
|
81
|
-
*
|
|
82
|
+
* A route a hosted app reaches through `proxyParticipant`: exactly a listed method and path.
|
|
83
|
+
* Another method on a listed path is not a participant route either.
|
|
82
84
|
*/
|
|
83
|
-
declare function
|
|
85
|
+
declare function isParticipantRoute(path: string, method: string): boolean;
|
|
84
86
|
/**
|
|
85
|
-
*
|
|
86
|
-
*
|
|
87
|
+
* A path an identity integration reaches, with any method: the API answers a method its route
|
|
88
|
+
* does not register with 405, and OPTIONS with the route's `Allow` header. Sign-in routes are
|
|
89
|
+
* hosted-only.
|
|
87
90
|
*/
|
|
88
|
-
declare function
|
|
91
|
+
declare function isIntegrationParticipantPath(path: string): boolean;
|
|
89
92
|
|
|
90
93
|
/** The management client's and the CLI's default deadline per call. */
|
|
91
94
|
declare const MANAGEMENT_TIMEOUT = 30000;
|
|
@@ -156,4 +159,8 @@ declare function validateQuestShape(description: QuestShape, options?: {
|
|
|
156
159
|
template?: boolean;
|
|
157
160
|
}): void;
|
|
158
161
|
|
|
159
|
-
|
|
162
|
+
declare const REFERRAL_INTEGRATION_REWARD_ERROR = "Referral programs can grant points and tiered rewards; Discord roles need a quest";
|
|
163
|
+
/** Detect the unsupported reward in loose authoring, published, or reward-list shapes. */
|
|
164
|
+
declare function containsReferralIntegrationReward(value: unknown): boolean;
|
|
165
|
+
|
|
166
|
+
export { type AttemptFailure, type Lifetime, MANAGEMENT_TIMEOUT, type ParticipantRoute, REFERRAL_INTEGRATION_REWARD_ERROR, containsReferralIntegrationReward, isIntegrationParticipantPath, isParticipantRoute, lifetime, parseImageExtraction, parseImageResult, participantRoutePattern, participantRoutes, questConfiguration, retryAfter, retrying, sequenceCursorSchema, sourceDataSchema, sourceRoles, validateQuestShape };
|
package/dist/internal.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
|
+
REFERRAL_INTEGRATION_REWARD_ERROR,
|
|
3
|
+
containsReferralIntegrationReward,
|
|
2
4
|
identityIntegrationInputSchema,
|
|
3
5
|
identityIntegrationSchema,
|
|
4
6
|
identityIntegrationSecretSchema,
|
|
@@ -8,24 +10,19 @@ import {
|
|
|
8
10
|
participantExchangeSchema,
|
|
9
11
|
questConfiguration,
|
|
10
12
|
sequenceCursorSchema
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
+
} from "./chunk-QGLHZ2E5.js";
|
|
14
|
+
import "./chunk-JW4G3SY5.js";
|
|
13
15
|
import {
|
|
14
16
|
sourceDataSchema,
|
|
15
17
|
sourceRoles,
|
|
16
18
|
validateQuestShape
|
|
17
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-23QJ7WH4.js";
|
|
18
20
|
import {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
isQuestOutcomeParticipantRoute,
|
|
25
|
-
isRewardsParticipantRoute,
|
|
26
|
-
isWalletParticipantRoute,
|
|
27
|
-
isWalletSignInRoute
|
|
28
|
-
} from "./chunk-GUP7YRR4.js";
|
|
21
|
+
isIntegrationParticipantPath,
|
|
22
|
+
isParticipantRoute,
|
|
23
|
+
participantRoutePattern,
|
|
24
|
+
participantRoutes
|
|
25
|
+
} from "./chunk-AXRMT33W.js";
|
|
29
26
|
import {
|
|
30
27
|
MANAGEMENT_TIMEOUT,
|
|
31
28
|
lifetime,
|
|
@@ -33,7 +30,7 @@ import {
|
|
|
33
30
|
retrying
|
|
34
31
|
} from "./chunk-6QJ3LADK.js";
|
|
35
32
|
import "./chunk-NPGENI7K.js";
|
|
36
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-6ON4RMEN.js";
|
|
37
34
|
import {
|
|
38
35
|
schemaCheckedReader,
|
|
39
36
|
trackerDataBatchSteps,
|
|
@@ -42,26 +39,23 @@ import {
|
|
|
42
39
|
trackerDataPathTypes,
|
|
43
40
|
trackerDataRecordSteps,
|
|
44
41
|
whereSchemaIssue
|
|
45
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-KGJSKGKI.js";
|
|
46
43
|
export {
|
|
47
44
|
MANAGEMENT_TIMEOUT,
|
|
45
|
+
REFERRAL_INTEGRATION_REWARD_ERROR,
|
|
46
|
+
containsReferralIntegrationReward,
|
|
48
47
|
identityIntegrationInputSchema,
|
|
49
48
|
identityIntegrationSchema,
|
|
50
49
|
identityIntegrationSecretSchema,
|
|
51
50
|
identityKindClaimSchema,
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
isOfferParticipantRoute,
|
|
55
|
-
isPointsParticipantRoute,
|
|
56
|
-
isProfileParticipantRoute,
|
|
57
|
-
isQuestOutcomeParticipantRoute,
|
|
58
|
-
isRewardsParticipantRoute,
|
|
59
|
-
isWalletParticipantRoute,
|
|
60
|
-
isWalletSignInRoute,
|
|
51
|
+
isIntegrationParticipantPath,
|
|
52
|
+
isParticipantRoute,
|
|
61
53
|
lifetime,
|
|
62
54
|
parseImageExtraction,
|
|
63
55
|
parseImageResult,
|
|
64
56
|
participantExchangeSchema,
|
|
57
|
+
participantRoutePattern,
|
|
58
|
+
participantRoutes,
|
|
65
59
|
questConfiguration,
|
|
66
60
|
retryAfter,
|
|
67
61
|
retrying,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { cN as ResourceHandle } from './schema-BPdHSCAc.js';
|
|
2
|
+
import { b9 as AuthoringIdentity } from './groups-D08JtrZu.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
|
|
5
5
|
declare const offerPriceSchema: z.ZodObject<{
|
|
@@ -304,6 +304,7 @@ declare const offerSchema: z.ZodObject<{
|
|
|
304
304
|
kind: z.ZodLiteral<"paused">;
|
|
305
305
|
}, z.core.$strict>], "kind">;
|
|
306
306
|
}, z.core.$strict>;
|
|
307
|
+
/** @compat output */
|
|
307
308
|
type Offer = z.infer<typeof offerSchema>;
|
|
308
309
|
declare const redeemOfferSchema: z.ZodObject<{
|
|
309
310
|
actionId: z.ZodString;
|
|
@@ -1,102 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { a as AttemptStatus,
|
|
3
|
-
|
|
4
|
-
declare const contentQualificationDecisionSchema: z.ZodObject<{
|
|
5
|
-
kind: z.ZodEnum<{
|
|
6
|
-
accept: "accept";
|
|
7
|
-
reject: "reject";
|
|
8
|
-
review: "review";
|
|
9
|
-
defer: "defer";
|
|
10
|
-
progress: "progress";
|
|
11
|
-
superseded: "superseded";
|
|
12
|
-
}>;
|
|
13
|
-
reason: z.ZodNullable<z.ZodString>;
|
|
14
|
-
}, z.core.$strict>;
|
|
15
|
-
declare const contentQualificationQuerySchema: z.ZodObject<{
|
|
16
|
-
quest: z.ZodString;
|
|
17
|
-
member: z.ZodOptional<z.ZodString>;
|
|
18
|
-
/** A content item's record ID in the quest's tracker. */
|
|
19
|
-
content: z.ZodOptional<z.ZodString>;
|
|
20
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
21
|
-
}, z.core.$strict>;
|
|
22
|
-
declare const contentQualificationSchema: z.ZodObject<{
|
|
23
|
-
quest: z.ZodString;
|
|
24
|
-
/** The content item's record ID in the quest's tracker. */
|
|
25
|
-
content: z.ZodString;
|
|
26
|
-
member: z.ZodString;
|
|
27
|
-
release: z.ZodString;
|
|
28
|
-
attempt: z.ZodString;
|
|
29
|
-
revision: z.ZodString;
|
|
30
|
-
observation: z.ZodString;
|
|
31
|
-
current: z.ZodBoolean;
|
|
32
|
-
state: z.ZodEnum<{
|
|
33
|
-
pending: "pending";
|
|
34
|
-
superseded: "superseded";
|
|
35
|
-
qualified: "qualified";
|
|
36
|
-
unqualified: "unqualified";
|
|
37
|
-
"needs-review": "needs-review";
|
|
38
|
-
failed: "failed";
|
|
39
|
-
stale: "stale";
|
|
40
|
-
blocked: "blocked";
|
|
41
|
-
unavailable: "unavailable";
|
|
42
|
-
}>;
|
|
43
|
-
reason: z.ZodNullable<z.ZodString>;
|
|
44
|
-
reward: z.ZodObject<{
|
|
45
|
-
attempt: z.ZodNullable<z.ZodString>;
|
|
46
|
-
completion: z.ZodNullable<z.ZodString>;
|
|
47
|
-
state: z.ZodEnum<{
|
|
48
|
-
excluded: "excluded";
|
|
49
|
-
unresolved: "unresolved";
|
|
50
|
-
awarded: "awarded";
|
|
51
|
-
}>;
|
|
52
|
-
}, z.core.$strict>;
|
|
53
|
-
}, z.core.$strict>;
|
|
54
|
-
declare const contentQualificationPageSchema: z.ZodObject<{
|
|
55
|
-
items: z.ZodArray<z.ZodObject<{
|
|
56
|
-
quest: z.ZodString;
|
|
57
|
-
/** The content item's record ID in the quest's tracker. */
|
|
58
|
-
content: z.ZodString;
|
|
59
|
-
member: z.ZodString;
|
|
60
|
-
release: z.ZodString;
|
|
61
|
-
attempt: z.ZodString;
|
|
62
|
-
revision: z.ZodString;
|
|
63
|
-
observation: z.ZodString;
|
|
64
|
-
current: z.ZodBoolean;
|
|
65
|
-
state: z.ZodEnum<{
|
|
66
|
-
pending: "pending";
|
|
67
|
-
superseded: "superseded";
|
|
68
|
-
qualified: "qualified";
|
|
69
|
-
unqualified: "unqualified";
|
|
70
|
-
"needs-review": "needs-review";
|
|
71
|
-
failed: "failed";
|
|
72
|
-
stale: "stale";
|
|
73
|
-
blocked: "blocked";
|
|
74
|
-
unavailable: "unavailable";
|
|
75
|
-
}>;
|
|
76
|
-
reason: z.ZodNullable<z.ZodString>;
|
|
77
|
-
reward: z.ZodObject<{
|
|
78
|
-
attempt: z.ZodNullable<z.ZodString>;
|
|
79
|
-
completion: z.ZodNullable<z.ZodString>;
|
|
80
|
-
state: z.ZodEnum<{
|
|
81
|
-
excluded: "excluded";
|
|
82
|
-
unresolved: "unresolved";
|
|
83
|
-
awarded: "awarded";
|
|
84
|
-
}>;
|
|
85
|
-
}, z.core.$strict>;
|
|
86
|
-
}, z.core.$strict>>;
|
|
87
|
-
nextCursor: z.ZodNullable<z.ZodString>;
|
|
88
|
-
}, z.core.$strict>;
|
|
89
|
-
/** A content metric's name, as its source declares it, such as `likes`. */
|
|
90
|
-
declare const contentMetricSchema: z.ZodString;
|
|
91
|
-
type ContentMetric = z.infer<typeof contentMetricSchema>;
|
|
92
|
-
/** Measured counters by metric name. A metric a sample leaves out is unknown, never zero. */
|
|
93
|
-
declare const contentMetricsSchema: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
94
|
-
/** Which declared metrics a content quest's performance stage reads, and how fresh they must be. */
|
|
95
|
-
declare const contentPerformancePolicySchema: z.ZodObject<{
|
|
96
|
-
metrics: z.ZodArray<z.ZodString>;
|
|
97
|
-
maxAgeMs: z.ZodDefault<z.ZodNumber>;
|
|
98
|
-
}, z.core.$strict>;
|
|
99
|
-
type ContentPerformancePolicy = z.infer<typeof contentPerformancePolicySchema>;
|
|
2
|
+
import { a as AttemptStatus, bq as questDescriptionSchema, h as TrackerSkipCode } from './schema-BPdHSCAc.js';
|
|
100
3
|
|
|
101
4
|
/**
|
|
102
5
|
* The delivery actions this SDK knows. `RewardDelivery.action` is an open string: Relay can add
|
|
@@ -293,6 +196,11 @@ declare const interactionSchema: z.ZodEnum<{
|
|
|
293
196
|
photo: "photo";
|
|
294
197
|
}>;
|
|
295
198
|
type QuestInteraction = z.infer<typeof interactionSchema>;
|
|
199
|
+
/**
|
|
200
|
+
* The control a participant app must render for a quest's trigger, checked against the app's
|
|
201
|
+
* `supportedInteractions`. Staff-entered (`staff`) and automatic (`automatic`) quests need no member
|
|
202
|
+
* control, so a staff quest's input and an automatic quest's tracker do not change the result.
|
|
203
|
+
*/
|
|
296
204
|
declare function questInteraction(trigger: z.infer<typeof questDescriptionSchema>["trigger"]): QuestInteraction;
|
|
297
205
|
declare const questTypeVersionSchema: z.ZodObject<{
|
|
298
206
|
archivedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -2406,6 +2314,10 @@ declare const questViewSchema: z.ZodObject<{
|
|
|
2406
2314
|
"wallet-required": "wallet-required";
|
|
2407
2315
|
"enrollment-required": "enrollment-required";
|
|
2408
2316
|
}>;
|
|
2317
|
+
window: z.ZodOptional<z.ZodEnum<{
|
|
2318
|
+
quest: "quest";
|
|
2319
|
+
tracker: "tracker";
|
|
2320
|
+
}>>;
|
|
2409
2321
|
resetsAt: z.ZodOptional<z.ZodNumber>;
|
|
2410
2322
|
}, z.core.$strip> | z.ZodObject<{
|
|
2411
2323
|
kind: z.ZodLiteral<"staff-required">;
|
|
@@ -2877,6 +2789,10 @@ declare const collectionViewSchema: z.ZodObject<{
|
|
|
2877
2789
|
"wallet-required": "wallet-required";
|
|
2878
2790
|
"enrollment-required": "enrollment-required";
|
|
2879
2791
|
}>;
|
|
2792
|
+
window: z.ZodOptional<z.ZodEnum<{
|
|
2793
|
+
quest: "quest";
|
|
2794
|
+
tracker: "tracker";
|
|
2795
|
+
}>>;
|
|
2880
2796
|
resetsAt: z.ZodOptional<z.ZodNumber>;
|
|
2881
2797
|
}, z.core.$strip> | z.ZodObject<{
|
|
2882
2798
|
kind: z.ZodLiteral<"staff-required">;
|
|
@@ -3525,6 +3441,10 @@ declare const questExperienceSchema: z.ZodObject<{
|
|
|
3525
3441
|
"wallet-required": "wallet-required";
|
|
3526
3442
|
"enrollment-required": "enrollment-required";
|
|
3527
3443
|
}>;
|
|
3444
|
+
window: z.ZodOptional<z.ZodEnum<{
|
|
3445
|
+
quest: "quest";
|
|
3446
|
+
tracker: "tracker";
|
|
3447
|
+
}>>;
|
|
3528
3448
|
resetsAt: z.ZodOptional<z.ZodNumber>;
|
|
3529
3449
|
}, z.core.$strip> | z.ZodObject<{
|
|
3530
3450
|
kind: z.ZodLiteral<"staff-required">;
|
|
@@ -3996,6 +3916,10 @@ declare const questExperienceSchema: z.ZodObject<{
|
|
|
3996
3916
|
"wallet-required": "wallet-required";
|
|
3997
3917
|
"enrollment-required": "enrollment-required";
|
|
3998
3918
|
}>;
|
|
3919
|
+
window: z.ZodOptional<z.ZodEnum<{
|
|
3920
|
+
quest: "quest";
|
|
3921
|
+
tracker: "tracker";
|
|
3922
|
+
}>>;
|
|
3999
3923
|
resetsAt: z.ZodOptional<z.ZodNumber>;
|
|
4000
3924
|
}, z.core.$strip> | z.ZodObject<{
|
|
4001
3925
|
kind: z.ZodLiteral<"staff-required">;
|
|
@@ -4288,6 +4212,7 @@ declare const questExperienceSchema: z.ZodObject<{
|
|
|
4288
4212
|
}, z.core.$strip>>;
|
|
4289
4213
|
}, z.core.$strip>>;
|
|
4290
4214
|
}, z.core.$strip>;
|
|
4215
|
+
/** @compat output */
|
|
4291
4216
|
type QuestView = z.infer<typeof questViewSchema>;
|
|
4292
4217
|
type QuestRewardView = z.infer<typeof questRewardViewSchema>;
|
|
4293
4218
|
type QuestCatalog = z.infer<typeof questCatalogSchema>;
|
|
@@ -4794,6 +4719,103 @@ declare const allocatedQuestSchema: z.ZodObject<{
|
|
|
4794
4719
|
id: z.ZodString;
|
|
4795
4720
|
}, z.core.$strip>;
|
|
4796
4721
|
|
|
4722
|
+
declare const contentQualificationDecisionSchema: z.ZodObject<{
|
|
4723
|
+
kind: z.ZodEnum<{
|
|
4724
|
+
accept: "accept";
|
|
4725
|
+
reject: "reject";
|
|
4726
|
+
review: "review";
|
|
4727
|
+
defer: "defer";
|
|
4728
|
+
progress: "progress";
|
|
4729
|
+
superseded: "superseded";
|
|
4730
|
+
}>;
|
|
4731
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
4732
|
+
}, z.core.$strict>;
|
|
4733
|
+
declare const contentQualificationQuerySchema: z.ZodObject<{
|
|
4734
|
+
quest: z.ZodString;
|
|
4735
|
+
member: z.ZodOptional<z.ZodString>;
|
|
4736
|
+
/** A content item's record ID in the quest's tracker. */
|
|
4737
|
+
content: z.ZodOptional<z.ZodString>;
|
|
4738
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
4739
|
+
}, z.core.$strict>;
|
|
4740
|
+
declare const contentQualificationSchema: z.ZodObject<{
|
|
4741
|
+
quest: z.ZodString;
|
|
4742
|
+
/** The content item's record ID in the quest's tracker. */
|
|
4743
|
+
content: z.ZodString;
|
|
4744
|
+
member: z.ZodString;
|
|
4745
|
+
release: z.ZodString;
|
|
4746
|
+
attempt: z.ZodString;
|
|
4747
|
+
revision: z.ZodString;
|
|
4748
|
+
observation: z.ZodString;
|
|
4749
|
+
current: z.ZodBoolean;
|
|
4750
|
+
state: z.ZodEnum<{
|
|
4751
|
+
pending: "pending";
|
|
4752
|
+
superseded: "superseded";
|
|
4753
|
+
qualified: "qualified";
|
|
4754
|
+
unqualified: "unqualified";
|
|
4755
|
+
"needs-review": "needs-review";
|
|
4756
|
+
failed: "failed";
|
|
4757
|
+
stale: "stale";
|
|
4758
|
+
blocked: "blocked";
|
|
4759
|
+
unavailable: "unavailable";
|
|
4760
|
+
}>;
|
|
4761
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
4762
|
+
reward: z.ZodObject<{
|
|
4763
|
+
attempt: z.ZodNullable<z.ZodString>;
|
|
4764
|
+
completion: z.ZodNullable<z.ZodString>;
|
|
4765
|
+
state: z.ZodEnum<{
|
|
4766
|
+
excluded: "excluded";
|
|
4767
|
+
unresolved: "unresolved";
|
|
4768
|
+
awarded: "awarded";
|
|
4769
|
+
}>;
|
|
4770
|
+
}, z.core.$strict>;
|
|
4771
|
+
}, z.core.$strict>;
|
|
4772
|
+
declare const contentQualificationPageSchema: z.ZodObject<{
|
|
4773
|
+
items: z.ZodArray<z.ZodObject<{
|
|
4774
|
+
quest: z.ZodString;
|
|
4775
|
+
/** The content item's record ID in the quest's tracker. */
|
|
4776
|
+
content: z.ZodString;
|
|
4777
|
+
member: z.ZodString;
|
|
4778
|
+
release: z.ZodString;
|
|
4779
|
+
attempt: z.ZodString;
|
|
4780
|
+
revision: z.ZodString;
|
|
4781
|
+
observation: z.ZodString;
|
|
4782
|
+
current: z.ZodBoolean;
|
|
4783
|
+
state: z.ZodEnum<{
|
|
4784
|
+
pending: "pending";
|
|
4785
|
+
superseded: "superseded";
|
|
4786
|
+
qualified: "qualified";
|
|
4787
|
+
unqualified: "unqualified";
|
|
4788
|
+
"needs-review": "needs-review";
|
|
4789
|
+
failed: "failed";
|
|
4790
|
+
stale: "stale";
|
|
4791
|
+
blocked: "blocked";
|
|
4792
|
+
unavailable: "unavailable";
|
|
4793
|
+
}>;
|
|
4794
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
4795
|
+
reward: z.ZodObject<{
|
|
4796
|
+
attempt: z.ZodNullable<z.ZodString>;
|
|
4797
|
+
completion: z.ZodNullable<z.ZodString>;
|
|
4798
|
+
state: z.ZodEnum<{
|
|
4799
|
+
excluded: "excluded";
|
|
4800
|
+
unresolved: "unresolved";
|
|
4801
|
+
awarded: "awarded";
|
|
4802
|
+
}>;
|
|
4803
|
+
}, z.core.$strict>;
|
|
4804
|
+
}, z.core.$strict>>;
|
|
4805
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
4806
|
+
}, z.core.$strict>;
|
|
4807
|
+
/** A content metric's name, as its source declares it, such as `likes`. */
|
|
4808
|
+
declare const contentMetricSchema: z.ZodString;
|
|
4809
|
+
type ContentMetric = z.infer<typeof contentMetricSchema>;
|
|
4810
|
+
/** Measured counters by metric name. A metric a sample leaves out is unknown, never zero. */
|
|
4811
|
+
declare const contentMetricsSchema: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
4812
|
+
/** Which declared metrics a content quest's performance stage reads, and how fresh they must be. */
|
|
4813
|
+
declare const contentPerformancePolicySchema: z.ZodObject<{
|
|
4814
|
+
metrics: z.ZodArray<z.ZodString>;
|
|
4815
|
+
maxAgeMs: z.ZodDefault<z.ZodNumber>;
|
|
4816
|
+
}, z.core.$strict>;
|
|
4817
|
+
type ContentPerformancePolicy = z.infer<typeof contentPerformancePolicySchema>;
|
|
4818
|
+
|
|
4797
4819
|
/** `relay.quests.enroll()`: the signed-in member enrolls in a quest that requires enrollment. */
|
|
4798
4820
|
declare const questEnrollmentInputSchema: z.ZodObject<{
|
|
4799
4821
|
actionId: z.ZodString;
|
|
@@ -4858,6 +4880,10 @@ declare const questOutcomeSchema: z.ZodObject<{
|
|
|
4858
4880
|
}>;
|
|
4859
4881
|
code: z.ZodType<TrackerSkipCode | null>;
|
|
4860
4882
|
reason: z.ZodNullable<z.ZodString>;
|
|
4883
|
+
window: z.ZodOptional<z.ZodEnum<{
|
|
4884
|
+
quest: "quest";
|
|
4885
|
+
tracker: "tracker";
|
|
4886
|
+
}>>;
|
|
4861
4887
|
attempt: z.ZodNullable<z.ZodString>;
|
|
4862
4888
|
claimable: z.ZodBoolean;
|
|
4863
4889
|
createdAt: z.ZodNumber;
|
|
@@ -4890,6 +4916,10 @@ declare const questOutcomePageSchema: z.ZodObject<{
|
|
|
4890
4916
|
}>;
|
|
4891
4917
|
code: z.ZodType<TrackerSkipCode | null>;
|
|
4892
4918
|
reason: z.ZodNullable<z.ZodString>;
|
|
4919
|
+
window: z.ZodOptional<z.ZodEnum<{
|
|
4920
|
+
quest: "quest";
|
|
4921
|
+
tracker: "tracker";
|
|
4922
|
+
}>>;
|
|
4893
4923
|
attempt: z.ZodNullable<z.ZodString>;
|
|
4894
4924
|
claimable: z.ZodBoolean;
|
|
4895
4925
|
createdAt: z.ZodNumber;
|
|
@@ -4899,4 +4929,17 @@ declare const questOutcomePageSchema: z.ZodObject<{
|
|
|
4899
4929
|
}, z.core.$strip>;
|
|
4900
4930
|
type QuestOutcomePage = z.infer<typeof questOutcomePageSchema>;
|
|
4901
4931
|
|
|
4902
|
-
|
|
4932
|
+
/** A cursor as a client passes it back. */
|
|
4933
|
+
declare const pageCursorSchema: z.ZodString;
|
|
4934
|
+
/** A query that pages by cursor only. */
|
|
4935
|
+
declare const pageQuerySchema: z.ZodObject<{
|
|
4936
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
4937
|
+
}, z.core.$strict>;
|
|
4938
|
+
type PageQuery = z.input<typeof pageQuerySchema>;
|
|
4939
|
+
/** One page of a paged read. */
|
|
4940
|
+
type Page<T> = {
|
|
4941
|
+
items: T[];
|
|
4942
|
+
nextCursor: string | null;
|
|
4943
|
+
};
|
|
4944
|
+
|
|
4945
|
+
export { questPublicationPreviewSchema as $, contentQualificationPageSchema as A, contentQualificationQuerySchema as B, type ContentMetric as C, contentQualificationSchema as D, interactionSchema as E, knownRewardDeliverySchema as F, memberEnrollmentInputSchema as G, pageCursorSchema as H, pageQuerySchema as I, publishQuestDraftSchema as J, questCatalogSchema as K, questClaimInputSchema as L, type MemberEnrollmentInput as M, questCollectionSchema as N, questDraftChangesSchema as O, type Page as P, type QuestClaimInput as Q, type RewardDelivery as R, questDraftSchema as S, questEnrollmentInputSchema as T, questEnrollmentSchema as U, questExperienceSchema as V, questInstanceSchema as W, questInteraction as X, questOutcomePageSchema as Y, questOutcomeQuerySchema as Z, questOutcomeSchema as _, type PageQuery as a, questRewardViewSchema as a0, questTypeVersionSchema as a1, questViewSchema as a2, rewardDeliveriesSchema as a3, rewardDeliverySchema as a4, roleReconciliationSchema as a5, saveQuestDraftSchema as a6, type QuestEnrollment as b, type QuestEnrollmentInput as c, type QuestInteraction as d, type QuestOutcome as e, type QuestOutcomePage as f, type QuestOutcomeQuery as g, QuestOutcomeState as h, type QuestRewardView as i, type QuestView as j, type ContentPerformancePolicy as k, type QuestCatalog as l, type QuestDraft as m, type QuestInstance as n, RewardDeliveryAction as o, allocateQuestSchema as p, allocatedQuestSchema as q, catalogDeploymentPreviewSchema as r, catalogDeploymentSchema as s, collectionSlotDeclarationSchema as t, collectionSlotSchema as u, collectionViewSchema as v, contentMetricSchema as w, contentMetricsSchema as x, contentPerformancePolicySchema as y, contentQualificationDecisionSchema as z };
|
|
@@ -343,17 +343,4 @@ declare const participantActivitySchema: z.ZodObject<{
|
|
|
343
343
|
type RelayEvent = z.infer<typeof relayEventSchema>;
|
|
344
344
|
type ParticipantActivity = z.infer<typeof participantActivitySchema>;
|
|
345
345
|
|
|
346
|
-
|
|
347
|
-
declare const pageCursorSchema: z.ZodString;
|
|
348
|
-
/** A query that pages by cursor only. */
|
|
349
|
-
declare const pageQuerySchema: z.ZodObject<{
|
|
350
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
351
|
-
}, z.core.$strict>;
|
|
352
|
-
type PageQuery = z.input<typeof pageQuerySchema>;
|
|
353
|
-
/** One page of a paged read. */
|
|
354
|
-
type Page<T> = {
|
|
355
|
-
items: T[];
|
|
356
|
-
nextCursor: string | null;
|
|
357
|
-
};
|
|
358
|
-
|
|
359
|
-
export { type ExchangeInput as E, type MemberSummary as M, type Page as P, type RelayEvent as R, type Session as S, type PageQuery as a, type ParticipantActivity as b, type ParticipantPrincipal as c, type ParticipantSession as d, authScopeSchema as e, exchangeResultSchema as f, exchangeSchema as g, pageQuerySchema as h, participantActivityQuerySchema as i, participantActivitySchema as j, knownRelayEventSchema as k, participantPrincipalSchema as l, memberSummarySchema as m, participantSessionSchema as n, principalSchema as o, pageCursorSchema as p, sessionSchema as q, relayEventSchema as r, sessionMember as s };
|
|
346
|
+
export { type ExchangeInput as E, type MemberSummary as M, type ParticipantActivity as P, type RelayEvent as R, type Session as S, type ParticipantPrincipal as a, type ParticipantSession as b, authScopeSchema as c, exchangeSchema as d, exchangeResultSchema as e, participantActivitySchema as f, participantPrincipalSchema as g, participantSessionSchema as h, principalSchema as i, sessionSchema as j, knownRelayEventSchema as k, memberSummarySchema as m, participantActivityQuerySchema as p, relayEventSchema as r, sessionMember as s };
|