@domino-sdk/relay 1.55.0 → 1.56.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.
Files changed (50) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/authoring.d.ts +146 -64
  3. package/dist/authoring.js +36 -6
  4. package/dist/browser.d.ts +5 -5
  5. package/dist/browser.js +10 -10
  6. package/dist/{chunk-VFBQVY4X.js → chunk-ABJ4G47X.js} +1 -1
  7. package/dist/{chunk-YCOKTQ4E.js → chunk-BHHUSBSD.js} +1 -1
  8. package/dist/{chunk-C7QZ4UBB.js → chunk-BJYMTCWG.js} +16 -3
  9. package/dist/{chunk-YEVD4A5X.js → chunk-CK7HO32Z.js} +1 -1
  10. package/dist/{chunk-IUF7DW76.js → chunk-CXKXPB7K.js} +12 -7
  11. package/dist/{chunk-WUEQOKJH.js → chunk-G6XVBYH7.js} +4 -4
  12. package/dist/{chunk-SABMNPF2.js → chunk-H2MD6E7Z.js} +1 -1
  13. package/dist/{chunk-WHG5WE43.js → chunk-INSWI2VZ.js} +1 -1
  14. package/dist/{chunk-TLK2MD4S.js → chunk-KBVH4XZC.js} +1 -1
  15. package/dist/{chunk-MLIXJPKL.js → chunk-MHPKEVEW.js} +1 -0
  16. package/dist/{chunk-XALIFNMD.js → chunk-MNU6UPXY.js} +1 -1
  17. package/dist/{chunk-GL43VQ5D.js → chunk-NK6EER33.js} +38 -8
  18. package/dist/{chunk-IZRITLVV.js → chunk-OTITLABX.js} +2 -2
  19. package/dist/{chunk-56DBFNR2.js → chunk-QNQNKIAA.js} +1 -1
  20. package/dist/{chunk-UY6KMLQG.js → chunk-RBPMT53S.js} +125 -99
  21. package/dist/{chunk-F6HECAXA.js → chunk-ULQU7KC4.js} +144 -101
  22. package/dist/{chunk-WHMXXHPX.js → chunk-VSHV7FEA.js} +1 -1
  23. package/dist/{chunk-YE3XYB2F.js → chunk-W5U2WXG3.js} +2 -2
  24. package/dist/{client-C4zUZKpj.d.ts → client-bX3oTpRu.d.ts} +79 -4
  25. package/dist/{deployments-B32QS1CI.d.ts → deployments-D3lxfQMB.d.ts} +824 -400
  26. package/dist/{groups-O6onGPmC.d.ts → groups-DPE004_V.d.ts} +4 -2
  27. package/dist/index.d.ts +5 -5
  28. package/dist/index.js +9 -9
  29. package/dist/{integrations-C6_uUh-s.d.ts → integrations-CcD5NPEA.d.ts} +50 -1
  30. package/dist/internal.d.ts +5 -5
  31. package/dist/internal.js +9 -9
  32. package/dist/{offers-BMDNcvwB.d.ts → offers-CtzMeB7O.d.ts} +206 -1
  33. package/dist/{pages-BFloMpyQ.d.ts → pages-BlLqB8ZQ.d.ts} +57 -1
  34. package/dist/portal-proxy.js +4 -4
  35. package/dist/react/index.d.ts +86 -8
  36. package/dist/react/index.js +65 -10
  37. package/dist/runtime/authoring.js +1 -1
  38. package/dist/runtime/chunks/NDB42VFF.js +1 -0
  39. package/dist/runtime/manifest.json +3 -3
  40. package/dist/runtime/schema.js +1 -1
  41. package/dist/schema.d.ts +634 -388
  42. package/dist/schema.js +30 -10
  43. package/dist/server/index.d.ts +5 -5
  44. package/dist/server/index.js +1232 -1072
  45. package/dist/{submission-input-BbdawqVy.d.ts → submission-input-wTiYGdgA.d.ts} +1 -1
  46. package/dist/{telegram-browser-CwaxROAZ.d.ts → telegram-browser-Bh3i0HiH.d.ts} +1 -1
  47. package/dist/testing.js +5 -5
  48. package/dist/{transport-CZJOW5Sr.d.ts → transport-CnKA-_RL.d.ts} +6451 -4210
  49. package/package.json +1 -1
  50. package/dist/runtime/chunks/WKATKZXE.js +0 -1
@@ -2734,8 +2734,10 @@ declare const projectGroupAuthoringSchema: z.ZodPipe<z.ZodObject<{
2734
2734
  title?: string | undefined;
2735
2735
  }>>;
2736
2736
  /**
2737
- * Define one project group for prerequisites, leaderboards, and referrals. The handle names the
2738
- * group by its key; operators create the group and manage its members in Console or with
2737
+ * Define one project group for prerequisites, rewards, leaderboards, and referrals. The handle
2738
+ * names the group by its key. Publishing code that names it creates the group, with no members,
2739
+ * where the environment lacks it: titled from this handle for a reward or `inGroup`, and with its
2740
+ * key for a leaderboard or referral rule. Operators manage its members in Console or with
2739
2741
  * `management.groups`.
2740
2742
  */
2741
2743
  declare function defineGroup(input: Omit<z.input<typeof projectGroupAuthoringSchema>, "key" | "id"> & AuthoringIdentity): {
package/dist/index.d.ts CHANGED
@@ -1,14 +1,14 @@
1
- export { B as Badge, M as ManagedBadge, a as MemberBadge, b as MemberBadges, O as Offer, c as OfferDefinition, d as OfferPrice, R as RedeemOfferInput, e as Redemption } from './offers-BMDNcvwB.js';
1
+ export { B as Badge, M as ManagedBadge, a as MemberBadge, b as MemberBadges, O as Offer, c as OfferDefinition, d as OfferPrice, R as RedeemOfferInput, e as Redemption } from './offers-CtzMeB7O.js';
2
2
  export { R as RelayAction, a as RequestError, b as RequestErrorDetails, c as RequestErrorKind, d as RequestRecovery, e as createRelayAction, i as isRequestError } from './action-DBzILFx9.js';
3
- export { A as AuthStartInput, C as ClaimSubmission, E as EmailVerification, 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, l as RelayResponseOptions, S as SubmissionCallOptions, m as SubmissionDraft, n as SubmissionStatus, o as SubmissionStore, V as ValueSubmission, p as createRelayClient, q as isRelayError } from './client-C4zUZKpj.js';
3
+ export { A as AuthStartInput, C as ClaimSubmission, E as EmailVerification, 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, l as RelayResponseOptions, S as SubmissionCallOptions, m as SubmissionDraft, n as SubmissionStatus, o as SubmissionStore, V as ValueSubmission, p as createRelayClient, q as isRelayError } from './client-bX3oTpRu.js';
4
4
  export { A as Attempt, a as AttemptStatus, E as Entitlement, b as EvaluatorProgress, K as KnownAttemptStatus, c as KnownPointEntryKind, d as KnownTrackerSkipCode, M as MemberProgress, P as PointBalance, e as PointBalances, f as PointEntry, g as PointEntryKind, h as PointHistoryPage, i as PointHistoryQuery, j as PointLedgerReference, Q as QuestBudgetView, k as QuestPresentation, l as QuestProfile, m as QuizEvidence, R as Reward, S as SubmissionEvidence, n as SubmitInput, T as TieredRewardReference, o as TrackerSkipCode } from './schema-C4m9RhCR.js';
5
5
  export { f as formatUnits, p as parseUnits } from './units-CwgsPB_r.js';
6
- 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, R as ResponseResult, U as UnsupportedResponse, p as paginate } from './pages-BFloMpyQ.js';
6
+ export { C as CreatorAccount, a as CreatorAccountProvider, b as CreatorAccounts, P as Page, c as PageQuery, Q as QuestClaimInput, d as QuestEnrollment, e as QuestEnrollmentInput, f as QuestInteraction, g as QuestOutcome, h as QuestOutcomePage, i as QuestOutcomeQuery, j as QuestOutcomeState, k as QuestRewardView, l as QuestView, R as ResponseResult, U as UnsupportedResponse, p as paginate } from './pages-BlLqB8ZQ.js';
7
7
  export { A as AccountConnection, a as AuthProvider, T as TelegramAccountConnection, b as TelegramSignInMethods } from './accounts-DRPENuZe.js';
8
8
  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-iciCEs_8.js';
9
- export { A as AvailabilityWindow, C as CampaignDefinition, a as CampaignEnrollment, b as CampaignEnrollmentInput, c as CampaignView, d as CampaignWithdrawalInput, L as LeaderboardDefinition, e as LeaderboardHistoryPage, f as LeaderboardHistoryQuery, g as LeaderboardPage, h as LeaderboardPlacement, i as LeaderboardQuery, M as MemberCampaignEnrollmentInput, j as MemberCampaignWithdrawalInput, P as ProjectGroup, k as ProjectGroupReference, R as ReferralDefinition } from './groups-O6onGPmC.js';
9
+ export { A as AvailabilityWindow, C as CampaignDefinition, a as CampaignEnrollment, b as CampaignEnrollmentInput, c as CampaignView, d as CampaignWithdrawalInput, L as LeaderboardDefinition, e as LeaderboardHistoryPage, f as LeaderboardHistoryQuery, g as LeaderboardPage, h as LeaderboardPlacement, i as LeaderboardQuery, M as MemberCampaignEnrollmentInput, j as MemberCampaignWithdrawalInput, P as ProjectGroup, k as ProjectGroupReference, R as ReferralDefinition } from './groups-DPE004_V.js';
10
10
  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-DxW_v5Wc.js';
11
- export { M as MissingPrerequisite, P as Prerequisite, T as TextEvidence, a as TextOptions, U as UrlEvidence, b as UrlOptions, V as ValueEvidence } from './submission-input-BbdawqVy.js';
11
+ export { M as MissingPrerequisite, P as Prerequisite, T as TextEvidence, a as TextOptions, U as UrlEvidence, b as UrlOptions, V as ValueEvidence } from './submission-input-wTiYGdgA.js';
12
12
  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-BoOK03cR.js';
13
13
  export { Q as QuizContent, S as StreakProgress } from './streaks-0YuipsUQ.js';
14
14
  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-Ac7OFpOr.js';
package/dist/index.js CHANGED
@@ -5,22 +5,22 @@ import {
5
5
  import {
6
6
  QuestUpdatedError,
7
7
  createRelayClient
8
- } from "./chunk-GL43VQ5D.js";
8
+ } from "./chunk-NK6EER33.js";
9
9
  import {
10
10
  createRelayAction
11
- } from "./chunk-WHG5WE43.js";
11
+ } from "./chunk-INSWI2VZ.js";
12
12
  import {
13
13
  QuestOutcomeState
14
- } from "./chunk-UY6KMLQG.js";
15
- import "./chunk-C7QZ4UBB.js";
14
+ } from "./chunk-RBPMT53S.js";
15
+ import "./chunk-BJYMTCWG.js";
16
16
  import {
17
17
  PointEntryKind
18
- } from "./chunk-WHMXXHPX.js";
19
- import "./chunk-TLK2MD4S.js";
20
- import "./chunk-VFBQVY4X.js";
18
+ } from "./chunk-VSHV7FEA.js";
19
+ import "./chunk-KBVH4XZC.js";
20
+ import "./chunk-ABJ4G47X.js";
21
21
  import {
22
22
  sessionMember
23
- } from "./chunk-56DBFNR2.js";
23
+ } from "./chunk-QNQNKIAA.js";
24
24
  import {
25
25
  AttemptStatus,
26
26
  RelayError,
@@ -29,7 +29,7 @@ import {
29
29
  isRelayError,
30
30
  isRequestError,
31
31
  paginate
32
- } from "./chunk-YCOKTQ4E.js";
32
+ } from "./chunk-BHHUSBSD.js";
33
33
  export {
34
34
  AttemptStatus,
35
35
  PointEntryKind,
@@ -249,6 +249,55 @@ declare function parseSettings(fields: Record<string, SettingField>, input: unkn
249
249
  declare function missingResourceSettings(fields: Record<string, SettingField>, values: SettingsValues): string[];
250
250
  declare function compatibleSettingKinds(previous: SettingField, next: SettingField): boolean;
251
251
 
252
+ /**
253
+ * The namespace of the tracker source `youtube.shorts()` makes. Relay alone writes its records,
254
+ * from the channels members link; ingestion into it is refused.
255
+ */
256
+ declare const youtubeShortsNamespace = "youtube-shorts";
257
+ /**
258
+ * A YouTube Short's body, as `content()` quests read it in `ctx.tracker.content.body`. Every field
259
+ * is what YouTube reported when Relay last read the video.
260
+ *
261
+ * @compat output
262
+ */
263
+ declare const youtubeShortBodySchema: z.ZodObject<{
264
+ title: z.ZodString;
265
+ description: z.ZodString;
266
+ tags: z.ZodArray<z.ZodString>;
267
+ durationSeconds: z.ZodNumber;
268
+ publishedAt: z.ZodNumber;
269
+ }, z.core.$strip>;
270
+ type YouTubeShortBody = z.infer<typeof youtubeShortBodySchema>;
271
+ /** The counters a YouTube Short's samples measure. A counter YouTube hides is unknown, never zero. */
272
+ declare const youtubeShortMetrics: readonly ["views", "likes", "comments"];
273
+ type YouTubeShortMetric = (typeof youtubeShortMetrics)[number];
274
+
275
+ /**
276
+ * The namespace of the tracker source `tiktok.videos()` makes. Relay alone writes its records, from
277
+ * the TikTok accounts members link; ingestion into it is refused.
278
+ */
279
+ declare const tiktokVideosNamespace = "tiktok-videos";
280
+ /**
281
+ * A TikTok video's body, as `content()` quests read it in `ctx.tracker.content.body`. Every field
282
+ * is what TikTok reported when Relay last read the video.
283
+ *
284
+ * @compat output
285
+ */
286
+ declare const tiktokVideoBodySchema: z.ZodObject<{
287
+ title: z.ZodString;
288
+ description: z.ZodString;
289
+ durationSeconds: z.ZodNumber;
290
+ width: z.ZodNumber;
291
+ height: z.ZodNumber;
292
+ createdAt: z.ZodNumber;
293
+ shareUrl: z.ZodString;
294
+ isAigc: z.ZodBoolean;
295
+ }, z.core.$strip>;
296
+ type TikTokVideoBody = z.infer<typeof tiktokVideoBodySchema>;
297
+ /** The counters a TikTok video's samples measure. A counter TikTok omits is unknown, never zero. */
298
+ declare const tiktokVideoMetrics: readonly ["views", "likes", "comments", "shares"];
299
+ type TikTokVideoMetric = (typeof tiktokVideoMetrics)[number];
300
+
252
301
  /**
253
302
  * How many panels one dashboard holds and how many dashboards that are not archived a project
254
303
  * holds. Panels are computed at read time without rollups, so the caps keep a read affordable.
@@ -581,4 +630,4 @@ declare const projectIntegrationSchema: z.ZodObject<{
581
630
  }, z.core.$strip>;
582
631
  type ProjectIntegration = z.infer<typeof projectIntegrationSchema>;
583
632
 
584
- export { type AmountSetting as A, type BalanceChain as B, isAmount as C, type DashboardInput as D, type EvaluatorIntegrationProvider as E, isBalanceChain as F, isBoundSetting as G, missingResourceSettings as H, type IntegrationModule as I, normalizeDashboard as J, parseSettings as K, projectIntegrationSchema as L, resourceOptionsSchema as M, resourceRequestSchema as N, resourceSourceSchema as O, type ProjectIntegration as P, settingFieldSchema as Q, type ResourceSource as R, type Setting as S, settingsFieldsSchema as T, settingsValuesSchema as U, textSettingSchema as V, type BoundSettings as a, type DashboardPanelInput as b, type DashboardAuthoring as c, defineDashboard as d, type DashboardDefinition as e, type DashboardIssue as f, type DashboardPanel as g, type DashboardPreview as h, type IntegerSettings as i, type IntegrationProvider as j, type ResourceOption as k, type SettingField as l, type SettingsValues as m, compatibleSettingKinds as n, dashboardArtifactSchema as o, dashboardAuthoringSchema as p, dashboardDefinitionSchema as q, dashboardIssue as r, dashboardLimits as s, dashboardPanelAuthoringSchema as t, dashboardPanels as u, dashboardPreviewSchema as v, defaultPanelWidths as w, discordServerSchema as x, evaluatorIntegrationProviderSchema as y, integrationProviderSchema as z };
633
+ export { tiktokVideoMetrics as $, type AmountSetting as A, type BalanceChain as B, evaluatorIntegrationProviderSchema as C, type DashboardInput as D, type EvaluatorIntegrationProvider as E, integrationProviderSchema as F, isAmount as G, isBalanceChain as H, type IntegrationModule as I, isBoundSetting as J, missingResourceSettings as K, normalizeDashboard as L, parseSettings as M, projectIntegrationSchema as N, resourceOptionsSchema as O, type ProjectIntegration as P, resourceRequestSchema as Q, type ResourceSource as R, type Setting as S, type TikTokVideoBody as T, resourceSourceSchema as U, settingFieldSchema as V, settingsFieldsSchema as W, settingsValuesSchema as X, type YouTubeShortBody as Y, textSettingSchema as Z, tiktokVideoBodySchema as _, type BoundSettings as a, tiktokVideosNamespace as a0, youtubeShortBodySchema as a1, youtubeShortMetrics as a2, youtubeShortsNamespace as a3, type DashboardPanelInput as b, type TikTokVideoMetric as c, type YouTubeShortMetric as d, defineDashboard as e, type DashboardAuthoring as f, type DashboardDefinition as g, type DashboardIssue as h, type DashboardPanel as i, type DashboardPreview as j, type IntegerSettings as k, type IntegrationProvider as l, type ResourceOption as m, type SettingField as n, type SettingsValues as o, compatibleSettingKinds as p, dashboardArtifactSchema as q, dashboardAuthoringSchema as r, dashboardDefinitionSchema as s, dashboardIssue as t, dashboardLimits as u, dashboardPanelAuthoringSchema as v, dashboardPanels as w, dashboardPreviewSchema as x, defaultPanelWidths as y, discordServerSchema as z };
@@ -1,17 +1,17 @@
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-CZJOW5Sr.js';
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-CnKA-_RL.js';
2
2
  export { E as Extracted } from './x-1czZFVUW.js';
3
3
  import { c as RequestErrorKind } from './action-DBzILFx9.js';
4
4
  export { p as TrackerDataBudget, s as schemaCheckedReader, t as trackerDataBatchSteps, q as trackerDataIssue, r as trackerDataIssues, u as trackerDataPathTypes, v as trackerDataRecordSteps, w as whereSchemaIssue } from './schema-C4m9RhCR.js';
5
5
  export { H as HostEnvironment, h as hostEnvironmentPath, a as hostEnvironmentSchema } from './host-environment-FN4zg3hw.js';
6
6
  import 'zod';
7
- import './pages-BFloMpyQ.js';
8
- import './offers-BMDNcvwB.js';
9
- import './groups-O6onGPmC.js';
7
+ import './pages-BlLqB8ZQ.js';
8
+ import './offers-CtzMeB7O.js';
9
+ import './groups-DPE004_V.js';
10
10
  import './profiles-BoOK03cR.js';
11
11
  import './automatic-outcomes-DxW_v5Wc.js';
12
12
  import './attempt-captures-CxxO7DeD.js';
13
13
  import './analytics-URV-mxjH.js';
14
- import './deployments-B32QS1CI.js';
14
+ import './deployments-D3lxfQMB.js';
15
15
 
16
16
  /** The management client's and the CLI's default deadline per call. */
17
17
  declare const MANAGEMENT_TIMEOUT = 30000;
package/dist/internal.js CHANGED
@@ -9,23 +9,23 @@ import {
9
9
  participantExchangeSchema,
10
10
  questConfiguration,
11
11
  sequenceCursorSchema
12
- } from "./chunk-WUEQOKJH.js";
12
+ } from "./chunk-G6XVBYH7.js";
13
13
  import {
14
14
  parseImageExtraction,
15
15
  parseImageResult
16
- } from "./chunk-YE3XYB2F.js";
17
- import "./chunk-YEVD4A5X.js";
16
+ } from "./chunk-W5U2WXG3.js";
17
+ import "./chunk-CK7HO32Z.js";
18
18
  import {
19
19
  sourceDataSchema,
20
20
  sourceRoles,
21
21
  validateQuestShape
22
- } from "./chunk-SABMNPF2.js";
22
+ } from "./chunk-H2MD6E7Z.js";
23
23
  import {
24
24
  isIntegrationParticipantPath,
25
25
  isParticipantRoute,
26
26
  participantRoutePattern,
27
27
  participantRoutes
28
- } from "./chunk-MLIXJPKL.js";
28
+ } from "./chunk-MHPKEVEW.js";
29
29
  import {
30
30
  hostEnvironmentPath,
31
31
  hostEnvironmentSchema
@@ -35,9 +35,9 @@ import {
35
35
  lifetime,
36
36
  retryAfter,
37
37
  retrying
38
- } from "./chunk-TLK2MD4S.js";
39
- import "./chunk-VFBQVY4X.js";
40
- import "./chunk-56DBFNR2.js";
38
+ } from "./chunk-KBVH4XZC.js";
39
+ import "./chunk-ABJ4G47X.js";
40
+ import "./chunk-QNQNKIAA.js";
41
41
  import {
42
42
  schemaCheckedReader,
43
43
  trackerDataBatchSteps,
@@ -46,7 +46,7 @@ import {
46
46
  trackerDataPathTypes,
47
47
  trackerDataRecordSteps,
48
48
  whereSchemaIssue
49
- } from "./chunk-YCOKTQ4E.js";
49
+ } from "./chunk-BHHUSBSD.js";
50
50
  export {
51
51
  MANAGEMENT_TIMEOUT,
52
52
  REFERRAL_INTEGRATION_REWARD_ERROR,
@@ -1,6 +1,6 @@
1
1
  import * as z from 'zod';
2
2
  import { C as ResourceHandle } from './schema-C4m9RhCR.js';
3
- import { m as AuthoringIdentity } from './groups-O6onGPmC.js';
3
+ import { m as AuthoringIdentity } from './groups-DPE004_V.js';
4
4
 
5
5
  declare const badgePropertiesSchema: z.ZodObject<{
6
6
  name: z.ZodString;
@@ -124,6 +124,28 @@ declare const offerDefinitionSchema: z.ZodObject<{
124
124
  limit: z.ZodDefault<z.ZodObject<{
125
125
  perMember: z.ZodNumber;
126
126
  }, z.core.$strict>>;
127
+ requires: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion<[z.ZodObject<{
128
+ kind: z.ZodLiteral<"completion">;
129
+ quest: z.ZodString;
130
+ scope: z.ZodLiteral<"ever">;
131
+ }, z.core.$strict>, z.ZodObject<{
132
+ kind: z.ZodLiteral<"completion">;
133
+ quest: z.ZodString;
134
+ scope: z.ZodLiteral<"period">;
135
+ period: z.ZodEnum<{
136
+ day: "day";
137
+ week: "week";
138
+ month: "month";
139
+ }>;
140
+ }, z.core.$strict>], "scope">, z.ZodObject<{
141
+ kind: z.ZodLiteral<"balance">;
142
+ balance: z.ZodString;
143
+ minimum: z.ZodNumber;
144
+ }, z.core.$strict>, z.ZodObject<{
145
+ kind: z.ZodLiteral<"group">;
146
+ group: z.ZodString;
147
+ title: z.ZodString;
148
+ }, z.core.$strict>], "kind">>>;
127
149
  enabled: z.ZodDefault<z.ZodBoolean>;
128
150
  }, z.core.$strict>;
129
151
  type OfferDefinition = z.infer<typeof offerDefinitionSchema>;
@@ -153,6 +175,28 @@ declare const offerAuthoringSchema: z.ZodPipe<z.ZodObject<{
153
175
  }, z.core.$strict>;
154
176
  tier: z.ZodString;
155
177
  }, z.core.$strict>;
178
+ requires: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion<[z.ZodObject<{
179
+ kind: z.ZodLiteral<"completion">;
180
+ quest: z.ZodString;
181
+ scope: z.ZodLiteral<"ever">;
182
+ }, z.core.$strict>, z.ZodObject<{
183
+ kind: z.ZodLiteral<"completion">;
184
+ quest: z.ZodString;
185
+ scope: z.ZodLiteral<"period">;
186
+ period: z.ZodEnum<{
187
+ day: "day";
188
+ week: "week";
189
+ month: "month";
190
+ }>;
191
+ }, z.core.$strict>], "scope">, z.ZodObject<{
192
+ kind: z.ZodLiteral<"balance">;
193
+ balance: z.ZodString;
194
+ minimum: z.ZodNumber;
195
+ }, z.core.$strict>, z.ZodObject<{
196
+ kind: z.ZodLiteral<"group">;
197
+ group: z.ZodString;
198
+ title: z.ZodString;
199
+ }, z.core.$strict>], "kind">>>;
156
200
  price: z.ZodObject<{
157
201
  kind: z.ZodDefault<z.ZodLiteral<"points">>;
158
202
  balance: z.ZodString;
@@ -196,6 +240,24 @@ declare const offerAuthoringSchema: z.ZodPipe<z.ZodObject<{
196
240
  };
197
241
  stock: number;
198
242
  key: string;
243
+ requires?: ({
244
+ kind: "completion";
245
+ quest: string;
246
+ scope: "ever";
247
+ } | {
248
+ kind: "completion";
249
+ quest: string;
250
+ scope: "period";
251
+ period: "day" | "week" | "month";
252
+ } | {
253
+ kind: "balance";
254
+ balance: string;
255
+ minimum: number;
256
+ } | {
257
+ kind: "group";
258
+ group: string;
259
+ title: string;
260
+ })[] | undefined;
199
261
  }, {
200
262
  limit: {
201
263
  perMember: number;
@@ -229,6 +291,24 @@ declare const offerAuthoringSchema: z.ZodPipe<z.ZodObject<{
229
291
  };
230
292
  stock: number;
231
293
  key: string;
294
+ requires?: ({
295
+ kind: "completion";
296
+ quest: string;
297
+ scope: "ever";
298
+ } | {
299
+ kind: "completion";
300
+ quest: string;
301
+ scope: "period";
302
+ period: "day" | "week" | "month";
303
+ } | {
304
+ kind: "balance";
305
+ balance: string;
306
+ minimum: number;
307
+ } | {
308
+ kind: "group";
309
+ group: string;
310
+ title: string;
311
+ })[] | undefined;
232
312
  title?: string | undefined;
233
313
  }>>;
234
314
  type OfferAuthoring = z.input<typeof offerAuthoringSchema>;
@@ -258,6 +338,28 @@ declare const offerArtifactSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
258
338
  }, z.core.$strict>;
259
339
  tier: z.ZodString;
260
340
  }, z.core.$strict>;
341
+ requires: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion<[z.ZodObject<{
342
+ kind: z.ZodLiteral<"completion">;
343
+ quest: z.ZodString;
344
+ scope: z.ZodLiteral<"ever">;
345
+ }, z.core.$strict>, z.ZodObject<{
346
+ kind: z.ZodLiteral<"completion">;
347
+ quest: z.ZodString;
348
+ scope: z.ZodLiteral<"period">;
349
+ period: z.ZodEnum<{
350
+ day: "day";
351
+ week: "week";
352
+ month: "month";
353
+ }>;
354
+ }, z.core.$strict>], "scope">, z.ZodObject<{
355
+ kind: z.ZodLiteral<"balance">;
356
+ balance: z.ZodString;
357
+ minimum: z.ZodNumber;
358
+ }, z.core.$strict>, z.ZodObject<{
359
+ kind: z.ZodLiteral<"group">;
360
+ group: z.ZodString;
361
+ title: z.ZodString;
362
+ }, z.core.$strict>], "kind">>>;
261
363
  price: z.ZodObject<{
262
364
  kind: z.ZodDefault<z.ZodLiteral<"points">>;
263
365
  balance: z.ZodString;
@@ -301,6 +403,24 @@ declare const offerArtifactSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
301
403
  };
302
404
  stock: number;
303
405
  key: string;
406
+ requires?: ({
407
+ kind: "completion";
408
+ quest: string;
409
+ scope: "ever";
410
+ } | {
411
+ kind: "completion";
412
+ quest: string;
413
+ scope: "period";
414
+ period: "day" | "week" | "month";
415
+ } | {
416
+ kind: "balance";
417
+ balance: string;
418
+ minimum: number;
419
+ } | {
420
+ kind: "group";
421
+ group: string;
422
+ title: string;
423
+ })[] | undefined;
304
424
  }, {
305
425
  limit: {
306
426
  perMember: number;
@@ -334,6 +454,24 @@ declare const offerArtifactSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
334
454
  };
335
455
  stock: number;
336
456
  key: string;
457
+ requires?: ({
458
+ kind: "completion";
459
+ quest: string;
460
+ scope: "ever";
461
+ } | {
462
+ kind: "completion";
463
+ quest: string;
464
+ scope: "period";
465
+ period: "day" | "week" | "month";
466
+ } | {
467
+ kind: "balance";
468
+ balance: string;
469
+ minimum: number;
470
+ } | {
471
+ kind: "group";
472
+ group: string;
473
+ title: string;
474
+ })[] | undefined;
337
475
  title?: string | undefined;
338
476
  }>>, z.ZodObject<{
339
477
  code: z.ZodString;
@@ -383,6 +521,28 @@ declare const offerSchema: z.ZodObject<{
383
521
  limit: z.ZodDefault<z.ZodObject<{
384
522
  perMember: z.ZodNumber;
385
523
  }, z.core.$strict>>;
524
+ requires: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion<[z.ZodObject<{
525
+ kind: z.ZodLiteral<"completion">;
526
+ quest: z.ZodString;
527
+ scope: z.ZodLiteral<"ever">;
528
+ }, z.core.$strict>, z.ZodObject<{
529
+ kind: z.ZodLiteral<"completion">;
530
+ quest: z.ZodString;
531
+ scope: z.ZodLiteral<"period">;
532
+ period: z.ZodEnum<{
533
+ day: "day";
534
+ week: "week";
535
+ month: "month";
536
+ }>;
537
+ }, z.core.$strict>], "scope">, z.ZodObject<{
538
+ kind: z.ZodLiteral<"balance">;
539
+ balance: z.ZodString;
540
+ minimum: z.ZodNumber;
541
+ }, z.core.$strict>, z.ZodObject<{
542
+ kind: z.ZodLiteral<"group">;
543
+ group: z.ZodString;
544
+ title: z.ZodString;
545
+ }, z.core.$strict>], "kind">>>;
386
546
  enabled: z.ZodDefault<z.ZodBoolean>;
387
547
  revision: z.ZodNumber;
388
548
  available: z.ZodNumber;
@@ -397,6 +557,33 @@ declare const offerSchema: z.ZodObject<{
397
557
  }, z.core.$strict>, z.ZodObject<{
398
558
  kind: z.ZodLiteral<"paused">;
399
559
  }, z.core.$strict>], "kind">;
560
+ missing: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
561
+ kind: z.ZodLiteral<"completion">;
562
+ quest: z.ZodString;
563
+ title: z.ZodString;
564
+ scope: z.ZodLiteral<"ever">;
565
+ }, z.core.$strip>, z.ZodObject<{
566
+ kind: z.ZodLiteral<"completion">;
567
+ quest: z.ZodString;
568
+ title: z.ZodString;
569
+ scope: z.ZodLiteral<"period">;
570
+ period: z.ZodEnum<{
571
+ day: "day";
572
+ week: "week";
573
+ month: "month";
574
+ }>;
575
+ resetsAt: z.ZodNumber;
576
+ }, z.core.$strip>, z.ZodObject<{
577
+ kind: z.ZodLiteral<"balance">;
578
+ balance: z.ZodString;
579
+ title: z.ZodString;
580
+ minimum: z.ZodNumber;
581
+ current: z.ZodNumber;
582
+ }, z.core.$strip>, z.ZodObject<{
583
+ kind: z.ZodLiteral<"group">;
584
+ group: z.ZodString;
585
+ title: z.ZodString;
586
+ }, z.core.$strip>]>>>;
400
587
  }, z.core.$strict>;
401
588
  /** @compat output */
402
589
  type Offer = z.infer<typeof offerSchema>;
@@ -618,6 +805,24 @@ declare function defineOffer(input: OfferAuthoring & AuthoringIdentity): {
618
805
  };
619
806
  stock: number;
620
807
  key: string;
808
+ requires?: ({
809
+ kind: "completion";
810
+ quest: string;
811
+ scope: "ever";
812
+ } | {
813
+ kind: "completion";
814
+ quest: string;
815
+ scope: "period";
816
+ period: "day" | "week" | "month";
817
+ } | {
818
+ kind: "balance";
819
+ balance: string;
820
+ minimum: number;
821
+ } | {
822
+ kind: "group";
823
+ group: string;
824
+ title: string;
825
+ })[] | undefined;
621
826
  } & ResourceHandle<"offer">;
622
827
 
623
828
  export { offerSchema as A, type Badge as B, redeemOfferSchema as C, redemptionCancellationSchema as D, redemptionPageSchema as E, redemptionQuerySchema as F, redemptionSchema as G, type ManagedBadge as M, type Offer as O, type RedeemOfferInput as R, type MemberBadge as a, type MemberBadges as b, type OfferDefinition as c, type OfferPrice as d, type Redemption as e, badgeDeclarationSchema as f, defineOffer as g, type OfferAuthoring as h, type RedemptionPage as i, type RedemptionQuery as j, badgeArtifactSchema as k, badgeMutationResultSchema as l, badgeMutationSchema as m, badgePropertiesSchema as n, badgeSchema as o, createBadgeSchema as p, managedBadgeSchema as q, memberBadgeSchema as r, memberBadgesSchema as s, offerArtifactSchema as t, offerAuthoringSchema as u, offerAvailabilitySchema as v, offerControlSchema as w, offerDefinitionSchema as x, offerLimitSchema as y, offerPriceSchema as z };
@@ -5620,6 +5620,62 @@ declare function responseListSchema<T>(schema: z.ZodType<T>): ResponseSchema<{
5620
5620
  unsupportedCount: number;
5621
5621
  }>;
5622
5622
 
5623
+ /** The creator-account providers this SDK knows. A later Relay may list others. */
5624
+ declare const knownCreatorAccountProviders: readonly ["youtube", "tiktok"];
5625
+ /** A creator-account provider: one of `knownCreatorAccountProviders`, or one a later Relay adds. */
5626
+ type CreatorAccountProvider = (typeof knownCreatorAccountProviders)[number] | (string & {});
5627
+ declare const creatorAccountProviderSchema: z.ZodCustom<CreatorAccountProvider, CreatorAccountProvider>;
5628
+ /**
5629
+ * A member's account on one creator platform, as `AccountConnection` describes sign-in accounts.
5630
+ * `subject` is the platform's stable account ID (a YouTube channel ID, `UC…`, or a TikTok
5631
+ * `open_id`); `profile` is the
5632
+ * public name, handle and picture the platform reported when the member linked it. `reconnect`
5633
+ * means Relay can no longer read the account and the member must link it again.
5634
+ *
5635
+ * @compat output
5636
+ */
5637
+ declare const creatorAccountSchema: z.ZodObject<{
5638
+ provider: z.ZodCustom<CreatorAccountProvider, CreatorAccountProvider>;
5639
+ configured: z.ZodBoolean;
5640
+ status: z.ZodEnum<{
5641
+ disconnected: "disconnected";
5642
+ connected: "connected";
5643
+ reconnect: "reconnect";
5644
+ }>;
5645
+ subject: z.ZodNullable<z.ZodString>;
5646
+ revision: z.ZodNumber;
5647
+ profile: z.ZodNullable<z.ZodObject<{
5648
+ name: z.ZodOptional<z.ZodString>;
5649
+ username: z.ZodOptional<z.ZodString>;
5650
+ imageUrl: z.ZodOptional<z.ZodString>;
5651
+ }, z.core.$strip>>;
5652
+ }, z.core.$strip>;
5653
+ type CreatorAccount = z.infer<typeof creatorAccountSchema>;
5654
+ /**
5655
+ * The member's creator accounts: one per provider the platform configured.
5656
+ *
5657
+ * @compat output
5658
+ */
5659
+ declare const creatorAccountsSchema: z.ZodObject<{
5660
+ accounts: z.ZodArray<z.ZodObject<{
5661
+ provider: z.ZodCustom<CreatorAccountProvider, CreatorAccountProvider>;
5662
+ configured: z.ZodBoolean;
5663
+ status: z.ZodEnum<{
5664
+ disconnected: "disconnected";
5665
+ connected: "connected";
5666
+ reconnect: "reconnect";
5667
+ }>;
5668
+ subject: z.ZodNullable<z.ZodString>;
5669
+ revision: z.ZodNumber;
5670
+ profile: z.ZodNullable<z.ZodObject<{
5671
+ name: z.ZodOptional<z.ZodString>;
5672
+ username: z.ZodOptional<z.ZodString>;
5673
+ imageUrl: z.ZodOptional<z.ZodString>;
5674
+ }, z.core.$strip>>;
5675
+ }, z.core.$strip>>;
5676
+ }, z.core.$strip>;
5677
+ type CreatorAccounts = z.infer<typeof creatorAccountsSchema>;
5678
+
5623
5679
  declare const contentQualificationDecisionSchema: z.ZodObject<{
5624
5680
  kind: z.ZodEnum<{
5625
5681
  accept: "accept";
@@ -5863,4 +5919,4 @@ declare const managementStateQuerySchema: z.ZodObject<{
5863
5919
  }, z.core.$strict>;
5864
5920
  type ManagementStateQuery = z.input<typeof managementStateQuerySchema>;
5865
5921
 
5866
- 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 };
5922
+ export { pageQuerySchema as $, allocatedQuestSchema as A, catalogDeploymentPreviewSchema as B, type CreatorAccount as C, catalogDeploymentSchema as D, collectionSlotDeclarationSchema as E, collectionSlotSchema as F, collectionViewSchema as G, contentMetricSchema as H, contentMetricsSchema as I, contentPerformancePolicySchema as J, contentQualificationDecisionSchema as K, contentQualificationPageSchema as L, type ManagementStateQuery as M, contentQualificationSchema as N, creatorAccountProviderSchema as O, type Page as P, type QuestClaimInput as Q, type ResponseResult as R, creatorAccountSchema as S, creatorAccountsSchema as T, type UnsupportedResponse as U, interactionSchema as V, knownCreatorAccountProviders as W, knownRewardDeliverySchema as X, managementStateQuerySchema as Y, memberEnrollmentInputSchema as Z, pageCursorSchema as _, type CreatorAccountProvider as a, publishQuestDraftSchema as a0, questCatalogSchema as a1, questClaimInputSchema as a2, questCollectionSchema as a3, questDraftChangesSchema as a4, questDraftSchema as a5, questEnrollmentInputSchema as a6, questEnrollmentSchema as a7, questInstanceSchema as a8, questInteraction as a9, questOutcomePageSchema as aa, questOutcomeQuerySchema as ab, questOutcomeSchema as ac, questPublicationPreviewSchema as ad, questRewardViewSchema as ae, questTypeVersionSchema as af, questViewSchema as ag, responseListSchema as ah, responseSchema as ai, responseShape as aj, rewardDeliveriesSchema as ak, rewardDeliveryQuerySchema as al, rewardDeliverySchema as am, roleReconciliationSchema as an, saveQuestDraftSchema as ao, type CreatorAccounts as b, type PageQuery as c, type QuestEnrollment as d, type QuestEnrollmentInput as e, type QuestInteraction as f, type QuestOutcome as g, type QuestOutcomePage as h, type QuestOutcomeQuery as i, QuestOutcomeState as j, type QuestRewardView as k, type QuestView as l, type ResponseSchema as m, type RewardDeliveryQuery as n, RewardDeliveryAction as o, paginate as p, questExperienceSchema as q, contentQualificationQuerySchema as r, type ContentMetric as s, type ContentPerformancePolicy as t, type MemberEnrollmentInput as u, type QuestCatalog as v, type QuestDraft as w, type QuestInstance as x, type RewardDelivery as y, allocateQuestSchema as z };
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  isParticipantRoute
3
- } from "./chunk-MLIXJPKL.js";
3
+ } from "./chunk-MHPKEVEW.js";
4
4
  import {
5
5
  clientIdentity
6
- } from "./chunk-VFBQVY4X.js";
6
+ } from "./chunk-ABJ4G47X.js";
7
7
  import {
8
8
  exchangeResultSchema,
9
9
  participantPrincipalSchema,
10
10
  sessionMember
11
- } from "./chunk-56DBFNR2.js";
12
- import "./chunk-YCOKTQ4E.js";
11
+ } from "./chunk-QNQNKIAA.js";
12
+ import "./chunk-BHHUSBSD.js";
13
13
 
14
14
  // src/portal-proxy.ts
15
15
  import * as z from "zod";