@domino-sdk/relay 1.39.1 → 1.43.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-CSiN1HKd.d.ts → attempt-captures-p7JPb7Xi.d.ts} +1 -1
- package/dist/authoring.d.ts +11 -11
- package/dist/authoring.js +4 -4
- package/dist/{automatic-outcomes-DDbgRubQ.d.ts → automatic-outcomes-YkGhnxsc.d.ts} +1 -1
- package/dist/avatar.d.ts +2 -2
- package/dist/browser.d.ts +9 -9
- package/dist/browser.js +10 -10
- package/dist/{chunk-JIHWQCVW.js → chunk-4XC24SUM.js} +2 -2
- package/dist/{chunk-BYX27T2S.js → chunk-HO4FZJSH.js} +2 -2
- package/dist/{chunk-VYAANO5L.js → chunk-IIKQH5L6.js} +8 -8
- package/dist/{chunk-V7KYVH3Z.js → chunk-ILH73K3H.js} +1 -1
- package/dist/{chunk-B65YJ6K4.js → chunk-J7YJHMF7.js} +1 -1
- package/dist/{chunk-X7LHRYAO.js → chunk-JISXC5ZB.js} +4 -4
- package/dist/{chunk-SBW52XXL.js → chunk-NNGGEUMQ.js} +1 -1
- package/dist/{chunk-OEO5OBY5.js → chunk-PMSCHJKX.js} +584 -533
- package/dist/{chunk-FTGW72A6.js → chunk-Q5PX3GDA.js} +1 -1
- package/dist/{chunk-XZKZJIES.js → chunk-TEPZZXDI.js} +6 -2
- package/dist/{chunk-CRX274HO.js → chunk-UOHYYB7V.js} +1 -1
- package/dist/{chunk-ZT7FPD7B.js → chunk-W5UBRNDT.js} +1 -1
- package/dist/{chunk-RW4XQN4Z.js → chunk-WSOUOG6S.js} +1 -1
- package/dist/{chunk-E4CDOF4H.js → chunk-YBMCF54E.js} +13 -7
- package/dist/{chunk-4PYFM2YF.js → chunk-YNKJMRA7.js} +1 -1
- package/dist/{chunk-YNQPFRQO.js → chunk-ZY4RI4DJ.js} +1 -1
- package/dist/{client-CxHKODc4.d.ts → client-CVG_MoXx.d.ts} +7 -7
- package/dist/{deployments-DYeuxXYg.d.ts → deployments-BWav9s6t.d.ts} +137 -1
- package/dist/{groups-DY5rZssO.d.ts → groups-CMZROR9a.d.ts} +2 -2
- package/dist/index.d.ts +10 -10
- package/dist/index.js +9 -9
- package/dist/internal.d.ts +10 -10
- package/dist/internal.js +8 -8
- package/dist/{offers-DtYGNKdQ.d.ts → offers-Cvk4uBjo.d.ts} +2 -2
- package/dist/{pages-DR2YRvAp.d.ts → pages-BXZP4o-w.d.ts} +26 -2
- package/dist/{participant-activity-CoB2F30C.d.ts → participant-activity-iciCEs_8.d.ts} +1 -1
- package/dist/portal-proxy.js +3 -3
- package/dist/{profiles-BHuQdzsW.d.ts → profiles-Cdv4BSd_.d.ts} +1 -1
- package/dist/react/index.d.ts +14 -11
- package/dist/react/index.js +17 -10
- package/dist/{schema-Cgmj-CbC.d.ts → schema-BgjSnV9D.d.ts} +19 -1
- package/dist/schema.d.ts +58 -16
- package/dist/schema.js +19 -7
- package/dist/server/index.d.ts +10 -10
- package/dist/server/index.js +846 -613
- package/dist/{submission-input-BkIbBPRU.d.ts → submission-input-CD59rLYk.d.ts} +2 -2
- package/dist/{telegram-browser-laDdm730.d.ts → telegram-browser-bnRKW9KG.d.ts} +3 -3
- package/dist/testing.d.ts +4 -4
- package/dist/testing.js +5 -5
- package/dist/{transport-CkTEfXL9.d.ts → transport-xSupcGFD.d.ts} +2189 -11
- package/dist/{wallet-t7uNDg9p.d.ts → wallet-Ac7OFpOr.d.ts} +1 -1
- package/dist/{x-vVG6gZqi.d.ts → x-B_7RCkOo.d.ts} +1 -1
- package/package.json +1 -1
package/dist/internal.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
export { I as IdentityKindClaim, M as ManagementTransportOptions, P as ParticipantRoute, R as REFERRAL_INTEGRATION_REWARD_ERROR, c as containsReferralIntegrationReward, i as identityIntegrationInputSchema, a as identityIntegrationSchema, b as identityIntegrationSecretSchema, d as identityKindClaimSchema, e as isIntegrationParticipantPath, f as isParticipantRoute, m as managementTransport, p as parseImageExtraction, g as parseImageResult, h as participantExchangeSchema, j as participantRoutePattern, k as participantRoutes, q as questConfiguration, s as sequenceCursorSchema, l as sourceDataSchema, n as sourceRoles, v as validateQuestShape } from './transport-
|
|
2
|
-
export { E as Extracted } from './x-
|
|
1
|
+
export { I as IdentityKindClaim, M as ManagementTransportOptions, P as ParticipantRoute, R as REFERRAL_INTEGRATION_REWARD_ERROR, c as containsReferralIntegrationReward, i as identityIntegrationInputSchema, a as identityIntegrationSchema, b as identityIntegrationSecretSchema, d as identityKindClaimSchema, e as isIntegrationParticipantPath, f as isParticipantRoute, m as managementTransport, p as parseImageExtraction, g as parseImageResult, h as participantExchangeSchema, j as participantRoutePattern, k as participantRoutes, q as questConfiguration, s as sequenceCursorSchema, l as sourceDataSchema, n as sourceRoles, v as validateQuestShape } from './transport-xSupcGFD.js';
|
|
2
|
+
export { E as Extracted } from './x-B_7RCkOo.js';
|
|
3
3
|
import { c as RequestErrorKind } from './action-DBzILFx9.js';
|
|
4
|
-
export { i as TrackerDataBudget, s as schemaCheckedReader, t as trackerDataBatchSteps, j as trackerDataIssue, k as trackerDataIssues, l as trackerDataPathTypes, m as trackerDataRecordSteps, w as whereSchemaIssue } from './schema-
|
|
4
|
+
export { i as TrackerDataBudget, s as schemaCheckedReader, t as trackerDataBatchSteps, j as trackerDataIssue, k as trackerDataIssues, l as trackerDataPathTypes, m as trackerDataRecordSteps, w as whereSchemaIssue } from './schema-BgjSnV9D.js';
|
|
5
5
|
import 'zod';
|
|
6
|
-
import './pages-
|
|
7
|
-
import './offers-
|
|
8
|
-
import './groups-
|
|
9
|
-
import './profiles-
|
|
10
|
-
import './automatic-outcomes-
|
|
11
|
-
import './attempt-captures-
|
|
12
|
-
import './deployments-
|
|
6
|
+
import './pages-BXZP4o-w.js';
|
|
7
|
+
import './offers-Cvk4uBjo.js';
|
|
8
|
+
import './groups-CMZROR9a.js';
|
|
9
|
+
import './profiles-Cdv4BSd_.js';
|
|
10
|
+
import './automatic-outcomes-YkGhnxsc.js';
|
|
11
|
+
import './attempt-captures-p7JPb7Xi.js';
|
|
12
|
+
import './deployments-BWav9s6t.js';
|
|
13
13
|
|
|
14
14
|
/** The management client's and the CLI's default deadline per call. */
|
|
15
15
|
declare const MANAGEMENT_TIMEOUT = 30000;
|
package/dist/internal.js
CHANGED
|
@@ -9,17 +9,17 @@ import {
|
|
|
9
9
|
participantExchangeSchema,
|
|
10
10
|
questConfiguration,
|
|
11
11
|
sequenceCursorSchema
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-JISXC5ZB.js";
|
|
13
13
|
import {
|
|
14
14
|
parseImageExtraction,
|
|
15
15
|
parseImageResult
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-
|
|
16
|
+
} from "./chunk-HO4FZJSH.js";
|
|
17
|
+
import "./chunk-ILH73K3H.js";
|
|
18
18
|
import {
|
|
19
19
|
sourceDataSchema,
|
|
20
20
|
sourceRoles,
|
|
21
21
|
validateQuestShape
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-ZY4RI4DJ.js";
|
|
23
23
|
import {
|
|
24
24
|
isIntegrationParticipantPath,
|
|
25
25
|
isParticipantRoute,
|
|
@@ -31,9 +31,9 @@ import {
|
|
|
31
31
|
lifetime,
|
|
32
32
|
retryAfter,
|
|
33
33
|
retrying
|
|
34
|
-
} from "./chunk-
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-
|
|
34
|
+
} from "./chunk-NNGGEUMQ.js";
|
|
35
|
+
import "./chunk-YNKJMRA7.js";
|
|
36
|
+
import "./chunk-Q5PX3GDA.js";
|
|
37
37
|
import {
|
|
38
38
|
schemaCheckedReader,
|
|
39
39
|
trackerDataBatchSteps,
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
trackerDataPathTypes,
|
|
43
43
|
trackerDataRecordSteps,
|
|
44
44
|
whereSchemaIssue
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-PMSCHJKX.js";
|
|
46
46
|
export {
|
|
47
47
|
MANAGEMENT_TIMEOUT,
|
|
48
48
|
REFERRAL_INTEGRATION_REWARD_ERROR,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as z from 'zod';
|
|
2
|
-
import { q as ResourceHandle } from './schema-
|
|
3
|
-
import { t as AuthoringIdentity } from './groups-
|
|
2
|
+
import { q as ResourceHandle } from './schema-BgjSnV9D.js';
|
|
3
|
+
import { t as AuthoringIdentity } from './groups-CMZROR9a.js';
|
|
4
4
|
|
|
5
5
|
declare const badgePropertiesSchema: z.ZodObject<{
|
|
6
6
|
name: z.ZodString;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as z from 'zod';
|
|
2
|
-
import { a as AttemptStatus,
|
|
2
|
+
import { a as AttemptStatus, bZ as questDescriptionSchema, h as TrackerSkipCode } from './schema-BgjSnV9D.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* The delivery actions this SDK knows. `RewardDelivery.action` is an open string: Relay can add
|
|
@@ -222,6 +222,10 @@ declare const questTypeVersionSchema: z.ZodObject<{
|
|
|
222
222
|
id: z.ZodString;
|
|
223
223
|
version: z.ZodString;
|
|
224
224
|
code: z.ZodString;
|
|
225
|
+
runtime: z.ZodOptional<z.ZodObject<{
|
|
226
|
+
digest: z.ZodString;
|
|
227
|
+
sdkVersion: z.ZodString;
|
|
228
|
+
}, z.core.$strict>>;
|
|
225
229
|
definition: z.ZodObject<{
|
|
226
230
|
quest: z.ZodString;
|
|
227
231
|
evaluatorProtocol: z.ZodLiteral<2>;
|
|
@@ -964,6 +968,10 @@ declare const questCatalogSchema: z.ZodObject<{
|
|
|
964
968
|
id: z.ZodString;
|
|
965
969
|
version: z.ZodString;
|
|
966
970
|
code: z.ZodString;
|
|
971
|
+
runtime: z.ZodOptional<z.ZodObject<{
|
|
972
|
+
digest: z.ZodString;
|
|
973
|
+
sdkVersion: z.ZodString;
|
|
974
|
+
}, z.core.$strict>>;
|
|
967
975
|
definition: z.ZodObject<{
|
|
968
976
|
quest: z.ZodString;
|
|
969
977
|
evaluatorProtocol: z.ZodLiteral<2>;
|
|
@@ -1962,6 +1970,10 @@ declare const questCatalogSchema: z.ZodObject<{
|
|
|
1962
1970
|
}, z.core.$strict>], "kind">;
|
|
1963
1971
|
key: z.ZodOptional<z.ZodString>;
|
|
1964
1972
|
code: z.ZodString;
|
|
1973
|
+
runtime: z.ZodOptional<z.ZodObject<{
|
|
1974
|
+
digest: z.ZodString;
|
|
1975
|
+
sdkVersion: z.ZodString;
|
|
1976
|
+
}, z.core.$strict>>;
|
|
1965
1977
|
provider: z.ZodEnum<{
|
|
1966
1978
|
"workers-ai": "workers-ai";
|
|
1967
1979
|
"fixture-pass": "fixture-pass";
|
|
@@ -2073,6 +2085,10 @@ declare const catalogDeploymentSchema: z.ZodObject<{
|
|
|
2073
2085
|
expectedRevision: z.ZodNumber;
|
|
2074
2086
|
types: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2075
2087
|
code: z.ZodString;
|
|
2088
|
+
runtime: z.ZodOptional<z.ZodObject<{
|
|
2089
|
+
digest: z.ZodString;
|
|
2090
|
+
sdkVersion: z.ZodString;
|
|
2091
|
+
}, z.core.$strict>>;
|
|
2076
2092
|
provider: z.ZodEnum<{
|
|
2077
2093
|
"workers-ai": "workers-ai";
|
|
2078
2094
|
}>;
|
|
@@ -2102,6 +2118,10 @@ declare const catalogDeploymentPreviewSchema: z.ZodObject<{
|
|
|
2102
2118
|
id: z.ZodString;
|
|
2103
2119
|
version: z.ZodString;
|
|
2104
2120
|
code: z.ZodString;
|
|
2121
|
+
runtime: z.ZodOptional<z.ZodObject<{
|
|
2122
|
+
digest: z.ZodString;
|
|
2123
|
+
sdkVersion: z.ZodString;
|
|
2124
|
+
}, z.core.$strict>>;
|
|
2105
2125
|
definition: z.ZodObject<{
|
|
2106
2126
|
quest: z.ZodString;
|
|
2107
2127
|
evaluatorProtocol: z.ZodLiteral<2>;
|
|
@@ -5396,6 +5416,10 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
|
|
|
5396
5416
|
}, z.core.$strict>], "kind">;
|
|
5397
5417
|
key: z.ZodOptional<z.ZodString>;
|
|
5398
5418
|
code: z.ZodString;
|
|
5419
|
+
runtime: z.ZodOptional<z.ZodObject<{
|
|
5420
|
+
digest: z.ZodString;
|
|
5421
|
+
sdkVersion: z.ZodString;
|
|
5422
|
+
}, z.core.$strict>>;
|
|
5399
5423
|
provider: z.ZodEnum<{
|
|
5400
5424
|
"workers-ai": "workers-ai";
|
|
5401
5425
|
"fixture-pass": "fixture-pass";
|
|
@@ -5786,4 +5810,4 @@ declare const managementStateQuerySchema: z.ZodObject<{
|
|
|
5786
5810
|
}, z.core.$strict>;
|
|
5787
5811
|
type ManagementStateQuery = z.input<typeof managementStateQuerySchema>;
|
|
5788
5812
|
|
|
5789
|
-
export {
|
|
5813
|
+
export { questEnrollmentInputSchema as $, collectionSlotDeclarationSchema as A, collectionSlotSchema as B, type ContentMetric as C, collectionViewSchema as D, contentMetricSchema as E, contentMetricsSchema as F, contentPerformancePolicySchema as G, contentQualificationDecisionSchema as H, contentQualificationPageSchema as I, contentQualificationSchema as J, interactionSchema as K, knownRewardDeliverySchema as L, type ManagementStateQuery as M, managementStateQuerySchema as N, memberEnrollmentInputSchema as O, type Page as P, type QuestClaimInput as Q, type ResponseResult as R, pageCursorSchema as S, pageQuerySchema as T, type UnsupportedResponse as U, publishQuestDraftSchema as V, questCatalogSchema as W, questClaimInputSchema as X, questCollectionSchema as Y, questDraftChangesSchema as Z, questDraftSchema as _, type PageQuery as a, questEnrollmentSchema as a0, questInstanceSchema as a1, questInteraction as a2, questOutcomePageSchema as a3, questOutcomeQuerySchema as a4, questOutcomeSchema as a5, questPublicationPreviewSchema as a6, questRewardViewSchema as a7, questTypeVersionSchema as a8, questViewSchema as a9, responseListSchema as aa, responseSchema as ab, responseShape as ac, rewardDeliveriesSchema as ad, rewardDeliveryQuerySchema as ae, rewardDeliverySchema as af, roleReconciliationSchema as ag, saveQuestDraftSchema as ah, 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 ResponseSchema as k, type RewardDeliveryQuery as l, RewardDeliveryAction as m, contentQualificationQuerySchema as n, type ContentPerformancePolicy as o, paginate as p, questExperienceSchema as q, type MemberEnrollmentInput as r, type QuestCatalog as s, type QuestDraft as t, type QuestInstance as u, type RewardDelivery as v, allocateQuestSchema as w, allocatedQuestSchema as x, catalogDeploymentPreviewSchema as y, catalogDeploymentSchema as z };
|
|
@@ -346,4 +346,4 @@ declare const participantActivitySchema: z.ZodObject<{
|
|
|
346
346
|
type RelayEvent = z.infer<typeof relayEventSchema>;
|
|
347
347
|
type ParticipantActivity = z.infer<typeof participantActivitySchema>;
|
|
348
348
|
|
|
349
|
-
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,
|
|
349
|
+
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, exchangeResultSchema as d, exchangeSchema 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 };
|
package/dist/portal-proxy.js
CHANGED
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
} from "./chunk-MLIXJPKL.js";
|
|
4
4
|
import {
|
|
5
5
|
clientIdentity
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-YNKJMRA7.js";
|
|
7
7
|
import {
|
|
8
8
|
exchangeResultSchema
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-Q5PX3GDA.js";
|
|
10
|
+
import "./chunk-PMSCHJKX.js";
|
|
11
11
|
|
|
12
12
|
// src/portal-proxy.ts
|
|
13
13
|
var statusCode = (status) => ({
|
|
@@ -294,4 +294,4 @@ type ManagedProfile = z.infer<typeof managedProfileSchema>;
|
|
|
294
294
|
declare const AVATAR_UPLOAD_LIMIT: number;
|
|
295
295
|
declare const avatarUploadTypes: string[];
|
|
296
296
|
|
|
297
|
-
export { type AvatarProvider as A,
|
|
297
|
+
export { type AvatarProvider as A, profileModerationSchema as B, profileReferralSchema as C, profileSettingsInputSchema as D, profileSettingsSchema as E, profileSummarySchema as F, profileVisibilitySchema as G, type ManagedProfile as M, type OwnProfile as O, type ProfileAvatar as P, type ProfileCompletion as a, type ProfileCompletionPage as b, type ProfileCompletionQuery as c, type ProfileReferral as d, type ProfileSummary as e, type ProfileUpdate as f, type ProfileVisibility as g, AVATAR_UPLOAD_LIMIT as h, type ProfileDefaultProvider as i, type ProfileDefaults as j, type ProfileModeration as k, type ProfileSettings as l, type ProfileSettingsInput as m, avatarProviderSchema as n, avatarSeedSchema as o, profileUpdateSchema as p, avatarUploadTypes as q, displayNameSchema as r, managedProfileSchema as s, ownProfileSchema as t, profileAvatarSchema as u, profileCompletionPageSchema as v, profileCompletionQuerySchema as w, profileCompletionSchema as x, profileDefaultProviderSchema as y, profileDefaultsSchema as z };
|
package/dist/react/index.d.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { B as Badge, b as MemberBadges, O as Offer, e as Redemption } from '../offers-
|
|
2
|
-
import { b as ParticipantSession, R as RelayEvent, P as ParticipantActivity, M as MemberSummary } from '../participant-activity-
|
|
3
|
-
import { g as RelayError, R as RelayClient, m as SubmissionDraft } from '../client-
|
|
4
|
-
import { P as Page,
|
|
1
|
+
import { B as Badge, b as MemberBadges, O as Offer, e as Redemption } from '../offers-Cvk4uBjo.js';
|
|
2
|
+
import { b as ParticipantSession, R as RelayEvent, P as ParticipantActivity, M as MemberSummary } from '../participant-activity-iciCEs_8.js';
|
|
3
|
+
import { g as RelayError, R as RelayClient, m as SubmissionDraft } from '../client-CVG_MoXx.js';
|
|
4
|
+
import { P as Page, D as collectionViewSchema, j as QuestView, g as QuestOutcomeQuery, e as QuestOutcome } from '../pages-BXZP4o-w.js';
|
|
5
5
|
import * as react from 'react';
|
|
6
6
|
import { ReactNode } from 'react';
|
|
7
7
|
import { J as JSONType } from '../util.d-w9f9t3ua.js';
|
|
8
8
|
import { z } from 'zod';
|
|
9
|
-
import { E as Entitlement, a as AttemptStatus, T as TieredRewardReference } from '../schema-
|
|
9
|
+
import { E as Entitlement, a as AttemptStatus, T as TieredRewardReference } from '../schema-BgjSnV9D.js';
|
|
10
10
|
import { a as AuthProvider, A as AccountConnection } from '../accounts-DRPENuZe.js';
|
|
11
11
|
export { T as TelegramAccountConnection, b as TelegramSignInMethods } from '../accounts-DRPENuZe.js';
|
|
12
|
-
import { c as SignInMethods, C as CosmosChains, d as SignInOption, f as SignInUnavailable, T as TelegramSignInOption, g as SignInWallet, D as DiscoveredWallet } from '../telegram-browser-
|
|
13
|
-
export { a as EmailSignInOption, O as OAuthSignInOption, b as SignInIcon, W as WalletSignInOption, t as telegramMiniAppInitData } from '../telegram-browser-
|
|
14
|
-
import { f as WalletSigner, d as WalletSignInNetwork, L as LinkedWallet } from '../wallet-
|
|
15
|
-
import { h as LeaderboardPlacement, be as referralSummarySchema, g as LeaderboardPage, l as PointEntry, k as PointBalances, p as PointLedgerReference } from '../groups-
|
|
16
|
-
import { f as ProfileUpdate, e as ProfileSummary, a as ProfileCompletion, d as ProfileReferral } from '../profiles-
|
|
17
|
-
import '../submission-input-
|
|
12
|
+
import { c as SignInMethods, C as CosmosChains, d as SignInOption, f as SignInUnavailable, T as TelegramSignInOption, g as SignInWallet, D as DiscoveredWallet } from '../telegram-browser-bnRKW9KG.js';
|
|
13
|
+
export { a as EmailSignInOption, O as OAuthSignInOption, b as SignInIcon, W as WalletSignInOption, t as telegramMiniAppInitData } from '../telegram-browser-bnRKW9KG.js';
|
|
14
|
+
import { f as WalletSigner, d as WalletSignInNetwork, L as LinkedWallet } from '../wallet-Ac7OFpOr.js';
|
|
15
|
+
import { h as LeaderboardPlacement, be as referralSummarySchema, g as LeaderboardPage, l as PointEntry, k as PointBalances, p as PointLedgerReference } from '../groups-CMZROR9a.js';
|
|
16
|
+
import { f as ProfileUpdate, e as ProfileSummary, a as ProfileCompletion, d as ProfileReferral } from '../profiles-Cdv4BSd_.js';
|
|
17
|
+
import '../submission-input-CD59rLYk.js';
|
|
18
18
|
import '../action-DBzILFx9.js';
|
|
19
19
|
|
|
20
20
|
/**
|
|
@@ -339,6 +339,9 @@ declare function useRelay(): RelayClient;
|
|
|
339
339
|
* (5 seconds) and reads again only the queries each event changes. It reads the whole quest
|
|
340
340
|
* experience every `polling.snapshotMs` (30 seconds), for changes no event announces and as the
|
|
341
341
|
* fallback when the feed is unavailable. A new `polling` value takes effect like a new client.
|
|
342
|
+
*
|
|
343
|
+
* On a staging host, Domino's test toolbar fires `domino:test-state-changed` on `window` after it
|
|
344
|
+
* changes test data under the page; the provider then reads the session and every query again.
|
|
342
345
|
*/
|
|
343
346
|
declare function RelayProvider({ client, baseUrl, polling, children, }: {
|
|
344
347
|
client?: RelayClient;
|
package/dist/react/index.js
CHANGED
|
@@ -9,19 +9,19 @@ import {
|
|
|
9
9
|
readSignInMethods,
|
|
10
10
|
signInOptionsFrom,
|
|
11
11
|
telegramMiniAppInitData
|
|
12
|
-
} from "../chunk-
|
|
13
|
-
import "../chunk-
|
|
12
|
+
} from "../chunk-4XC24SUM.js";
|
|
13
|
+
import "../chunk-IIKQH5L6.js";
|
|
14
14
|
import {
|
|
15
15
|
createRelayAction
|
|
16
|
-
} from "../chunk-
|
|
17
|
-
import "../chunk-
|
|
18
|
-
import "../chunk-
|
|
19
|
-
import "../chunk-
|
|
20
|
-
import "../chunk-
|
|
21
|
-
import "../chunk-
|
|
16
|
+
} from "../chunk-UOHYYB7V.js";
|
|
17
|
+
import "../chunk-TEPZZXDI.js";
|
|
18
|
+
import "../chunk-WSOUOG6S.js";
|
|
19
|
+
import "../chunk-J7YJHMF7.js";
|
|
20
|
+
import "../chunk-NNGGEUMQ.js";
|
|
21
|
+
import "../chunk-YNKJMRA7.js";
|
|
22
22
|
import {
|
|
23
23
|
sessionMember
|
|
24
|
-
} from "../chunk-
|
|
24
|
+
} from "../chunk-Q5PX3GDA.js";
|
|
25
25
|
import {
|
|
26
26
|
RelayError,
|
|
27
27
|
RelayErrorCode,
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
clientError,
|
|
30
30
|
isRelayError,
|
|
31
31
|
isRequestError
|
|
32
|
-
} from "../chunk-
|
|
32
|
+
} from "../chunk-PMSCHJKX.js";
|
|
33
33
|
|
|
34
34
|
// src/react/context.ts
|
|
35
35
|
import { createContext, useContext } from "react";
|
|
@@ -1025,6 +1025,7 @@ function scopeKey(session) {
|
|
|
1025
1025
|
session.id
|
|
1026
1026
|
]);
|
|
1027
1027
|
}
|
|
1028
|
+
var TEST_STATE_CHANGED_EVENT = "domino:test-state-changed";
|
|
1028
1029
|
function isVisible() {
|
|
1029
1030
|
return typeof document === "undefined" || document.visibilityState !== "hidden";
|
|
1030
1031
|
}
|
|
@@ -1121,15 +1122,21 @@ var RelayStore = class {
|
|
|
1121
1122
|
this.#scope?.cache.focus();
|
|
1122
1123
|
this.#readOnFocus();
|
|
1123
1124
|
};
|
|
1125
|
+
const onTestStateChanged = () => {
|
|
1126
|
+
void this.refreshSession();
|
|
1127
|
+
void this.invalidate([]);
|
|
1128
|
+
};
|
|
1124
1129
|
if (typeof window !== "undefined") {
|
|
1125
1130
|
document.addEventListener("visibilitychange", onVisibility);
|
|
1126
1131
|
window.addEventListener("focus", onFocus);
|
|
1132
|
+
window.addEventListener(TEST_STATE_CHANGED_EVENT, onTestStateChanged);
|
|
1127
1133
|
}
|
|
1128
1134
|
return () => {
|
|
1129
1135
|
this.#mounted = false;
|
|
1130
1136
|
if (typeof window !== "undefined") {
|
|
1131
1137
|
document.removeEventListener("visibilitychange", onVisibility);
|
|
1132
1138
|
window.removeEventListener("focus", onFocus);
|
|
1139
|
+
window.removeEventListener(TEST_STATE_CHANGED_EVENT, onTestStateChanged);
|
|
1133
1140
|
}
|
|
1134
1141
|
this.#observer?.dispose();
|
|
1135
1142
|
this.#observer = null;
|
|
@@ -668,6 +668,7 @@ declare const trackerRecordSchema: z.ZodObject<{
|
|
|
668
668
|
removed: z.ZodDefault<z.ZodBoolean>;
|
|
669
669
|
source: z.ZodString;
|
|
670
670
|
firstSeenAt: z.ZodNumber;
|
|
671
|
+
synthetic: z.ZodOptional<z.ZodLiteral<true>>;
|
|
671
672
|
evidence: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
672
673
|
contentRevision: z.ZodString;
|
|
673
674
|
observation: z.ZodString;
|
|
@@ -936,6 +937,7 @@ declare const trackerPageSchema: z.ZodObject<{
|
|
|
936
937
|
removed: z.ZodDefault<z.ZodBoolean>;
|
|
937
938
|
source: z.ZodString;
|
|
938
939
|
firstSeenAt: z.ZodNumber;
|
|
940
|
+
synthetic: z.ZodOptional<z.ZodLiteral<true>>;
|
|
939
941
|
evidence: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
940
942
|
contentRevision: z.ZodString;
|
|
941
943
|
observation: z.ZodString;
|
|
@@ -2638,6 +2640,10 @@ declare const artifactSchema: z.ZodObject<{
|
|
|
2638
2640
|
}, z.core.$strict>;
|
|
2639
2641
|
declare const releaseSchema: z.ZodObject<{
|
|
2640
2642
|
code: z.ZodString;
|
|
2643
|
+
runtime: z.ZodOptional<z.ZodObject<{
|
|
2644
|
+
digest: z.ZodString;
|
|
2645
|
+
sdkVersion: z.ZodString;
|
|
2646
|
+
}, z.core.$strict>>;
|
|
2641
2647
|
settings: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodObject<{
|
|
2642
2648
|
id: z.ZodString;
|
|
2643
2649
|
prompt: z.ZodString;
|
|
@@ -2656,6 +2662,10 @@ declare const releaseSchema: z.ZodObject<{
|
|
|
2656
2662
|
declare const batchReleaseSchema: z.ZodObject<{
|
|
2657
2663
|
releases: z.ZodArray<z.ZodObject<{
|
|
2658
2664
|
code: z.ZodString;
|
|
2665
|
+
runtime: z.ZodOptional<z.ZodObject<{
|
|
2666
|
+
digest: z.ZodString;
|
|
2667
|
+
sdkVersion: z.ZodString;
|
|
2668
|
+
}, z.core.$strict>>;
|
|
2659
2669
|
settings: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodObject<{
|
|
2660
2670
|
id: z.ZodString;
|
|
2661
2671
|
prompt: z.ZodString;
|
|
@@ -3448,6 +3458,10 @@ declare const publishedReleaseSchema: z.ZodObject<{
|
|
|
3448
3458
|
}, z.core.$strict>], "kind">;
|
|
3449
3459
|
key: z.ZodOptional<z.ZodString>;
|
|
3450
3460
|
code: z.ZodString;
|
|
3461
|
+
runtime: z.ZodOptional<z.ZodObject<{
|
|
3462
|
+
digest: z.ZodString;
|
|
3463
|
+
sdkVersion: z.ZodString;
|
|
3464
|
+
}, z.core.$strict>>;
|
|
3451
3465
|
provider: z.ZodEnum<{
|
|
3452
3466
|
"workers-ai": "workers-ai";
|
|
3453
3467
|
"fixture-pass": "fixture-pass";
|
|
@@ -5746,6 +5760,10 @@ declare const snapshotSchema: z.ZodObject<{
|
|
|
5746
5760
|
}, z.core.$strict>], "kind">;
|
|
5747
5761
|
key: z.ZodOptional<z.ZodString>;
|
|
5748
5762
|
code: z.ZodString;
|
|
5763
|
+
runtime: z.ZodOptional<z.ZodObject<{
|
|
5764
|
+
digest: z.ZodString;
|
|
5765
|
+
sdkVersion: z.ZodString;
|
|
5766
|
+
}, z.core.$strict>>;
|
|
5749
5767
|
provider: z.ZodEnum<{
|
|
5750
5768
|
"workers-ai": "workers-ai";
|
|
5751
5769
|
"fixture-pass": "fixture-pass";
|
|
@@ -6469,4 +6487,4 @@ declare const contentPerformancePageSchema: z.ZodObject<{
|
|
|
6469
6487
|
nextCursor: z.ZodNullable<z.ZodString>;
|
|
6470
6488
|
}, z.core.$strict>;
|
|
6471
6489
|
|
|
6472
|
-
export { type Decision as $, type Attempt as A, type SourceRoles as B, type LedgerHandle as C, type TrackerDataSchema as D, type Entitlement as E, xSearchSourceSchema as F, type GroupHandle as G, type XContentMetric as H, type IdentityKind as I, type TrackerTriggerPolicy as J, type KnownAttemptStatus as K, type LedgerReference as L, type MemberProgress as M, type Where as N, type OpenIdentityKind as O, type MemberIdentity as P, type QuestBudgetView as Q, type Reward as R, type SubmissionEvidence as S, type TieredRewardReference as T, type TrackerTriggerContext as U, type TrackerReader as V, type WithRecordData as W, type XTweet as X, type TextReviewInput as Y, type TextResult as Z, type PhotoResult as _, AttemptStatus as a, type
|
|
6490
|
+
export { type Decision as $, type Attempt as A, type SourceRoles as B, type LedgerHandle as C, type TrackerDataSchema as D, type Entitlement as E, xSearchSourceSchema as F, type GroupHandle as G, type XContentMetric as H, type IdentityKind as I, type TrackerTriggerPolicy as J, type KnownAttemptStatus as K, type LedgerReference as L, type MemberProgress as M, type Where as N, type OpenIdentityKind as O, type MemberIdentity as P, type QuestBudgetView as Q, type Reward as R, type SubmissionEvidence as S, type TieredRewardReference as T, type TrackerTriggerContext as U, type TrackerReader as V, type WithRecordData as W, type XTweet as X, type TextReviewInput as Y, type TextResult as Z, type PhotoResult as _, AttemptStatus as a, type TrackerStatus as a$, rewardSchema as a0, type TrackerTriggerMode as a1, type RoleOf as a2, type WhereSetting as a3, type ContentBody as a4, type BadgeHandle as a5, type ContentMetricName as a6, triggerSchema as a7, type TieredRewardDefinition as a8, type LedgerSetting as a9, type QuestStep as aA, type QuestStepAction as aB, type QuestSubmission as aC, type QuestSubmissionResult as aD, QuestSubmissionStatus as aE, type QuestSubmissionUpdate as aF, type ReleaseInput as aG, type ReviewPage as aH, type Snapshot as aI, type TrackerAccount as aJ, type TrackerAttribution as aK, type TrackerBound as aL, type TrackerCondition as aM, type TrackerContent as aN, type TrackerContentQuery as aO, type TrackerCreateInput as aP, type TrackerDataIssue as aQ, type TrackerDefinition as aR, type TrackerDefinitionResponse as aS, type TrackerOutcome as aT, type TrackerOutcomeQuery as aU, type TrackerPreview as aV, type TrackerPreviewInput as aW, type TrackerQuery as aX, type TrackerRecord as aY, type TrackerSourceKind as aZ, type TrackerSourceResponse as a_, type TrackerPage as aa, type TrackerReadQuery as ab, trackerDataSchema as ac, trackerTriggerContextSchema as ad, submitSchema as ae, contentPerformanceQuerySchema as af, type AccountRole as ag, type AppIdentityKind as ah, type Bound as ai, type CompletionSource as aj, CompletionSourceKind as ak, type Condition as al, type ContentPerformanceSnapshot as am, type DataLeaves as an, type EntitlementCorrection as ao, type EntitlementState as ap, type KnownCompletionSourceKind as aq, type KnownIdentityKind as ar, type KnownQuestSubmissionStatus as as, type MemberPage as at, type PickupAvailability as au, type PublishedRelease as av, type QuestAvailability as aw, type QuestDescription as ax, type QuestPresentationContent as ay, type QuestSettingsInput as az, type EvaluatorProgress as b, questPresentationRequirementSchema as b$, type TrackerTriggerOutcomePage as b0, type TrackerTriggerOutcomeQuery as b1, type TrackerUpdateInput as b2, type TrackerWhere as b3, type TriggerEnrollment as b4, type TriggerHistorical as b5, type TriggerSince as b6, type TypedTrackerRecord as b7, accountRoleSchema as b8, appIdentityKindSchema as b9, evaluatorProtocolSchema as bA, eventSchema as bB, evidenceSchema as bC, identityKindSchema as bD, integrationRewardSchema as bE, isAppIdentityKind as bF, isKnownTrackerSource as bG, knownIdentityKinds as bH, mediaUrlSchema as bI, memberIdentitySchema as bJ, memberListSchema as bK, memberPageSchema as bL, memberProgressSchema as bM, openIdentityKindSchema as bN, photoResultSchema as bO, pickupAllocationSchema as bP, pickupAvailabilitySchema as bQ, pickupCatalogSchema as bR, pickupPolicySchema as bS, pickupSelectionSchema as bT, pointsRewardSchema as bU, publishedReleaseSchema as bV, publishedTrackerSchema as bW, questAvailabilitySchema as bX, questBudgetViewSchema as bY, questDescriptionSchema as bZ, questPresentationContentSchema as b_, artifactSchema as ba, attemptSchema as bb, badgeReward as bc, badgeRewardSchema as bd, batchReleaseSchema as be, beginHandoverSchema as bf, beneficiaryRole as bg, completionRecordSchema as bh, completionSourceSchema as bi, configurePickupSchema as bj, confirmHandoverSchema as bk, contentMetricNameSchema as bl, contentPerformancePageSchema as bm, contentPerformanceSnapshotSchema as bn, createStockItemSchema as bo, customContentSchema as bp, decisionSchema as bq, defaultTriggerMode as br, deferPolicy as bs, entitlementCorrectionSchema as bt, entitlementRecoverySchema as bu, entitlementSchema as bv, entitlementStateSchema as bw, errorSchema as bx, evaluatorProgressSchema as by, evaluatorProtocol as bz, type KnownTrackerSkipCode as c, trackerRecordAccountSchema as c$, questPresentationSchema as c0, questProfileSchema as c1, questSettingsInputSchema as c2, questStepActionSchema as c3, questStepSchema as c4, questSubmissionResultSchema as c5, questSubmissionSchema as c6, questSubmissionUpdateSchema as c7, quizAnswersSchema as c8, quizEvidenceSchema as c9, trackerArtifactSchema as cA, trackerAttributionSchema as cB, trackerBoundSchema as cC, trackerConditionSchema as cD, trackerContentQuerySchema as cE, trackerContentReadSchema as cF, trackerContentSchema as cG, trackerContentStageSchema as cH, trackerControlSchema as cI, trackerCreateSchema as cJ, trackerDataMaxBranches as cK, trackerDataMaxEntries as cL, trackerDataSchemaSchema as cM, trackerDefinitionResponseSchema as cN, trackerEvidenceSchema as cO, trackerIngestResultSchema as cP, trackerIngestSchema as cQ, trackerOutcomePageSchema as cR, trackerOutcomeQuerySchema as cS, trackerOutcomeRetrySchema as cT, trackerOutcomeSchema as cU, trackerPageSchema as cV, trackerPreviewInputSchema as cW, trackerPreviewLimits as cX, trackerPreviewSchema as cY, trackerPropertiesSchema as cZ, trackerQuerySchema as c_, releaseSchema as ca, reservationSchema as cb, retryCooldownMsSchema as cc, retryCooldownPolicy as cd, reviewItemSchema as ce, reviewListSchema as cf, reviewModeSchema as cg, reviewPageSchema as ch, rewardBundleSchema as ci, rewardKey as cj, snapshotSchema as ck, sourceContent as cl, sourceIdentities as cm, staffDecisionSchema as cn, stockItemSchema as co, stockSchema as cp, storedQuestDescriptionSchema as cq, storedReviewModeSchema as cr, submissionEvidenceSchema as cs, templateSchema as ct, textResultSchema as cu, textReviewInputSchema as cv, tierRewardSchema as cw, tieredRewardDefinitionSchema as cx, tieredRewardReferenceSchema as cy, trackerAccountSchema as cz, type QuestPresentation as d, trackerRecordInputSchema as d0, trackerRecordSchema as d1, trackerSkipCodes as d2, trackerSourceKinds as d3, trackerSourceResponseSchema as d4, trackerSourceSchema as d5, trackerStatusSchema as d6, trackerSummarySchema as d7, trackerTriggerModeSchema as d8, trackerTriggerOutcomePageSchema as d9, trackerTriggerOutcomeQuerySchema as da, trackerTriggerPolicySchema as db, trackerTriggerRecordSchema as dc, trackerUpdateSchema as dd, trackerWhereSchema as de, triggerAdmission as df, triggerEnrollmentSchema as dg, triggerHistoricalSchema as dh, triggerMode as di, triggerSinceSchema as dj, whereConditions as dk, whereSettings as dl, xAccountRoles as dm, xContentMetrics as dn, xTweetSchema as dp, type QuestProfile as e, type QuizEvidence as f, type SubmitInput as g, type TrackerSkipCode as h, type TrackerDataBudget as i, trackerDataIssue as j, trackerDataIssues as k, trackerDataPathTypes as l, trackerDataRecordSteps as m, customSourceSchema as n, type WithContent as o, type WithAccountRoles as p, type ResourceHandle as q, type QuestHandle as r, schemaCheckedReader as s, trackerDataBatchSteps as t, type TrackerSource as u, trackerDefinitionSchema as v, whereSchemaIssue as w, xContentBodySchema as x, type Tracker as y, type TrackerData as z };
|