@domino-sdk/relay 0.19.0 → 0.23.1

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/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- import { V as ValueEvidence, r as referralAcceptSchema, L as LeaderboardQuery, w as walletChallengeInputSchema, t as walletProofSchema, u as AuthProvider, v as engagementPageQuerySchema, y as contentQualificationQuerySchema, z as contentAdmissionQuerySchema, E as contentEnrollmentInputSchema, F as contentReleaseInputSchema } from './submission-input-C67qt2Ph.js';
2
- export { G as AccountConnection, A as AdmittedContent, B as Budget, C as ContentMetric, K as ContentPerformancePolicy, M as ContentPolicy, D as DiscordMember, a as DiscordMessage, N as EngagementDefinition, I as IntegrationProvider, P as LeaderboardDefinition, J as LeaderboardPage, O as Observation, Q as ProjectIntegration, R as QuizContent, Y as ReferralDefinition, Z as ResourceOption, _ as ResourceSource, $ as SettingField, a0 as SettingsValues, S as SolanaBalance, c as StreakPolicy, a1 as StreakProgress, d as TextEvidence, e as TextOptions, a2 as TrackerContent, a3 as TrackerContentQuery, a4 as TrackerDefinition, a5 as TrackerPreview, a6 as TrackerPreviewInput, a7 as TrackerQuery, T as TrackerReader, a8 as TrackerRecord, a9 as TrackerStatus, U as UrlEvidence, f as UrlOptions, W as WalletConnection, aa as XConnection, ab as XPost, ac as XProfile, X as XReader, ad as XTweet, ae as accountConnectionSchema, af as admittedContentSchema, ag as authProviderSchema, ah as budgetSchema, ai as communityTimeZoneSchema, aj as compatibleSettingKinds, ak as completionKeySchema, al as completionPolicySchema, g as content, am as contentAdmissionPageSchema, an as contentAdmissionSchema, ao as contentEnrollmentSchema, ap as contentMetricSchema, aq as contentMetricsSchema, ar as contentPerformancePolicySchema, as as contentPolicySchema, at as contentQualificationDecisionSchema, au as contentQualificationPageSchema, av as contentQualificationSchema, h as customSource, i as defineEngagementReward, j as defineLeaderboard, k as defineReferral, l as defineTracker, m as discord, aw as discordMemberInputSchema, ax as discordMemberSchema, ay as discordMessageInputSchema, az as discordMessageSchema, aA as discordReactionSchema, aB as discordServerSchema, aC as engagementArtifactSchema, aD as engagementBoundaryPageSchema, aE as engagementChangePreviewInputSchema, aF as engagementChangePreviewSchema, aG as engagementChangeSchema, aH as engagementDefinitionSchema, aI as engagementDeploymentEntrySchema, aJ as engagementPageSchema, aK as engagementPublishSchema, aL as engagementRuleSchema, aM as engagementScoreInputSchema, aN as engagementScoreSchema, aO as engagementSettlementSchema, aP as engagementVersionPageSchema, aQ as engagementVersionQuerySchema, aR as integrationProviderSchema, aS as isContentParticipantRoute, aT as leaderboardArtifactSchema, aU as leaderboardAuthoringSchema, aV as leaderboardDefinitionSchema, aW as leaderboardExclusionSchema, aX as leaderboardGroupSchema, aY as leaderboardPageSchema, aZ as leaderboardPreviewSchema, a_ as leaderboardQuerySchema, a$ as leaderboardRowSchema, b0 as leaderboardWindowSchema, b1 as missingResourceSettings, b2 as observationInputSchema, b3 as observationReceiptSchema, b4 as observationSchema, o as observationTriggerSchema, b5 as parseSettings, p as perContent, n as pointLedgers, b6 as pointsAccountSchema, b7 as pointsEntrySchema, b8 as pointsMutationSchema, b9 as pointsResultSchema, ba as projectIntegrationSchema, bb as publishedLeaderboardSchema, bc as publishedReferralSchema, bd as publishedTrackerSchema, be as quizChoiceSchema, bf as quizContentSchema, bg as quizQuestionSchema, bh as quizQuestionsSchema, bi as referralAccountSchema, bj as referralArtifactSchema, bk as referralAuthoringSchema, bl as referralControlSchema, bm as referralDefinitionSchema, bn as referralHistorySchema, bo as referralManagementSchema, bp as referralRelationshipSchema, H as referralSummarySchema, bq as resourceOptionsSchema, br as resourceRequestSchema, bs as resourceSourceSchema, bt as settingFieldSchema, s as settings, bu as settingsFieldsSchema, bv as settingsValuesSchema, bw as solanaAddressSchema, bx as solanaBalanceSchema, q as streak, by as streakPolicySchema, bz as streakProgressSchema, bA as textEvidenceSchema, bB as textOptionsSchema, bC as trackerArtifactSchema, bD as trackerContentQuerySchema, bE as trackerContentReadSchema, bF as trackerContentSchema, bG as trackerControlSchema, bH as trackerDefinitionSchema, bI as trackerIngestResultSchema, bJ as trackerIngestSchema, bK as trackerPageSchema, bL as trackerPreviewInputSchema, bM as trackerPreviewLimits, bN as trackerPreviewSchema, bO as trackerQuerySchema, bP as trackerRecordInputSchema, bQ as trackerRecordSchema, bR as trackerSourceSchema, bS as trackerStatusSchema, bT as trackerSummarySchema, bU as urlEvidenceSchema, bV as urlOptionsSchema, bW as validateSubmissionValue, bX as valueEvidenceSchema, bY as walletChallengeSchema, bZ as walletConnectionSchema, x, b_ as xConnectionSchema, b$ as xContentBodySchema, c0 as xIdSchema, c1 as xPostId, c2 as xPostSchema, c3 as xProfileSchema, c4 as xRequestSchema, c5 as xTweetSchema } from './submission-input-C67qt2Ph.js';
1
+ import { V as ValueEvidence, t as referralAcceptSchema, L as LeaderboardQuery, w as walletChallengeInputSchema, u as walletProofSchema, v as AuthProvider, y as engagementPageQuerySchema, z as contentQualificationQuerySchema, E as contentAdmissionQuerySchema, F as contentEnrollmentInputSchema, G as contentReleaseInputSchema } from './submission-input-CK4Dy19H.js';
2
+ export { H as AccountConnection, A as AdmittedContent, B as Budget, C as ContentMetric, M as ContentPerformancePolicy, N as ContentPolicy, D as DiscordMember, a as DiscordMessage, P as EngagementDefinition, Q as ImageAssetArtifact, R as ImageComparison, Y as ImageExtraction, Z as ImageFields, _ as ImageInspection, I as ImageReader, $ as ImageReference, a0 as ImageRequest, a1 as ImageSightings, c as IntegrationProvider, a2 as LeaderboardDefinition, K as LeaderboardPage, O as Observation, a3 as ProjectIntegration, a4 as PublishedImage, a5 as QuizContent, a6 as ReferralDefinition, a7 as ResourceOption, a8 as ResourceSource, a9 as SettingField, aa as SettingsValues, S as SolanaBalance, d as StreakPolicy, ab as StreakProgress, e as TextEvidence, f as TextOptions, ac as TrackerContent, ad as TrackerContentQuery, ae as TrackerDefinition, af as TrackerPreview, ag as TrackerPreviewInput, ah as TrackerQuery, T as TrackerReader, ai as TrackerRecord, aj as TrackerStatus, U as UrlEvidence, g as UrlOptions, W as WalletConnection, ak as XConnection, al as XPost, am as XProfile, X as XReader, an as XTweet, ao as accountConnectionSchema, ap as admittedContentSchema, aq as authProviderSchema, ar as budgetSchema, as as communityTimeZoneSchema, at as compatibleSettingKinds, au as completionKeySchema, av as completionPolicySchema, h as content, aw as contentAdmissionPageSchema, ax as contentAdmissionSchema, ay as contentEnrollmentSchema, az as contentMetricSchema, aA as contentMetricsSchema, aB as contentPerformancePolicySchema, aC as contentPolicySchema, aD as contentQualificationDecisionSchema, aE as contentQualificationPageSchema, aF as contentQualificationSchema, i as customSource, j as defineEngagementReward, k as defineLeaderboard, l as defineReferral, m as defineTracker, n as discord, aG as discordMemberInputSchema, aH as discordMemberSchema, aI as discordMessageInputSchema, aJ as discordMessageSchema, aK as discordReactionSchema, aL as discordServerSchema, aM as engagementArtifactSchema, aN as engagementBoundaryPageSchema, aO as engagementChangePreviewInputSchema, aP as engagementChangePreviewSchema, aQ as engagementChangeSchema, aR as engagementDefinitionSchema, aS as engagementDeploymentEntrySchema, aT as engagementPageSchema, aU as engagementPublishSchema, aV as engagementRuleSchema, aW as engagementScoreInputSchema, aX as engagementScoreSchema, aY as engagementSettlementSchema, aZ as engagementVersionPageSchema, a_ as engagementVersionQuerySchema, a$ as imageAssetArtifactSchema, b0 as imageComparisonSchema, b1 as imageExtractionSchema, b2 as imageFieldSchema, b3 as imageFieldsSchema, b4 as imageInspectionSchema, b5 as imageReferenceSchema, b6 as imageRequestSchema, b7 as imageSightingsSchema, b8 as imageUploadRequestSchema, b9 as imageUploadsSchema, ba as integrationProviderSchema, bb as isContentParticipantRoute, bc as leaderboardArtifactSchema, bd as leaderboardAuthoringSchema, be as leaderboardDefinitionSchema, bf as leaderboardExclusionSchema, bg as leaderboardGroupSchema, bh as leaderboardPageSchema, bi as leaderboardPreviewSchema, bj as leaderboardQuerySchema, bk as leaderboardRowSchema, bl as leaderboardWindowSchema, bm as missingResourceSettings, bn as observationInputSchema, bo as observationReceiptSchema, bp as observationSchema, o as observationTriggerSchema, bq as parseImageExtraction, br as parseImageResult, bs as parseSettings, p as perContent, q as pointLedgers, bt as pointsAccountSchema, bu as pointsEntrySchema, bv as pointsMutationSchema, bw as pointsResultSchema, bx as projectIntegrationSchema, by as publishedImageSchema, bz as publishedLeaderboardSchema, bA as publishedReferralSchema, bB as publishedTrackerSchema, bC as quizChoiceSchema, bD as quizContentSchema, bE as quizQuestionSchema, bF as quizQuestionsSchema, bG as referralAccountSchema, bH as referralArtifactSchema, bI as referralAuthoringSchema, bJ as referralControlSchema, bK as referralDefinitionSchema, bL as referralHistorySchema, bM as referralManagementSchema, bN as referralRelationshipSchema, J as referralSummarySchema, bO as resourceOptionsSchema, bP as resourceRequestSchema, bQ as resourceSourceSchema, bR as settingFieldSchema, s as settings, bS as settingsFieldsSchema, bT as settingsValuesSchema, bU as solanaAddressSchema, bV as solanaBalanceSchema, r as streak, bW as streakPolicySchema, bX as streakProgressSchema, bY as textEvidenceSchema, bZ as textOptionsSchema, b_ as trackerArtifactSchema, b$ as trackerContentQuerySchema, c0 as trackerContentReadSchema, c1 as trackerContentSchema, c2 as trackerControlSchema, c3 as trackerDefinitionSchema, c4 as trackerIngestResultSchema, c5 as trackerIngestSchema, c6 as trackerPageSchema, c7 as trackerPreviewInputSchema, c8 as trackerPreviewLimits, c9 as trackerPreviewSchema, ca as trackerQuerySchema, cb as trackerRecordInputSchema, cc as trackerRecordSchema, cd as trackerSourceSchema, ce as trackerStatusSchema, cf as trackerSummarySchema, cg as urlEvidenceSchema, ch as urlOptionsSchema, ci as validateSubmissionValue, cj as valueEvidenceSchema, ck as walletChallengeSchema, cl as walletConnectionSchema, x, cm as xConnectionSchema, cn as xContentBodySchema, co as xIdSchema, cp as xPostId, cq as xPostSchema, cr as xProfileSchema, cs as xRequestSchema, ct as xTweetSchema } from './submission-input-CK4Dy19H.js';
3
3
  import { z } from 'zod';
4
- import { errorSchema, QuizEvidence, Attempt, SubmitInput, MemberProgress, questDescriptionSchema, PublishedRelease, ReviewListOptions, MemberListOptions, ReleaseInput, beginHandoverSchema, contentPerformanceQuerySchema } from './schema.js';
5
- export { ContentPerformanceSnapshot, Decision, Entitlement, MemberPage, PhotoResult, PickupAvailability, QuestAvailability, QuestDescription, QuestPresentation, QuestSettingsInput, ReviewPage, Reward, Snapshot, SubmissionEvidence, TextResult, TextReviewInput, TieredRewardDefinition, artifactSchema, attemptSchema, batchReleaseSchema, completionRecordSchema, configurePickupSchema, confirmHandoverSchema, contentPerformancePageSchema, contentPerformanceSnapshotSchema, createStockItemSchema, decisionSchema, entitlementSchema, eventSchema, evidenceSchema, identifier, integrationRewardSchema, mediaUrlSchema, memberListSchema, memberPageSchema, memberProgressSchema, photoResultSchema, pickupAllocationSchema, pickupAvailabilitySchema, pickupCatalogSchema, pickupPolicySchema, pickupSelectionSchema, pointsRewardSchema, prerequisiteSchema, publishedReleaseSchema, questAvailabilitySchema, questPresentationSchema, questSettingsInputSchema, quizAnswersSchema, quizEvidenceSchema, releaseSchema, reservationSchema, reviewItemSchema, reviewListSchema, reviewModeSchema, reviewPageSchema, rewardBundleSchema, rewardKey, rewardSchema, snapshotSchema, staffDecisionSchema, stockItemSchema, stockSchema, storedReviewModeSchema, submissionEvidenceSchema, submitSchema, templateSchema, textResultSchema, textReviewInputSchema, tierRewardSchema, tieredRewardDefinitionSchema, triggerSchema } from './schema.js';
4
+ import { errorSchema, QuizEvidence, Attempt, SubmitInput, MemberProgress, questDescriptionSchema, PublishedRelease, ReleaseInput, beginHandoverSchema, contentPerformanceQuerySchema } from './schema.js';
5
+ export { ContentPerformanceSnapshot, Decision, Entitlement, MemberPage, PhotoResult, PickupAvailability, QuestAvailability, QuestDescription, QuestPresentation, QuestSettingsInput, ReviewPage, Reward, Snapshot, SubmissionEvidence, TextResult, TextReviewInput, TieredRewardDefinition, TieredRewardReference, artifactSchema, attemptSchema, batchReleaseSchema, completionRecordSchema, configurePickupSchema, confirmHandoverSchema, contentPerformancePageSchema, contentPerformanceSnapshotSchema, createStockItemSchema, decisionSchema, entitlementSchema, eventSchema, evidenceSchema, identifier, integrationRewardSchema, mediaUrlSchema, memberListSchema, memberPageSchema, memberProgressSchema, photoResultSchema, pickupAllocationSchema, pickupAvailabilitySchema, pickupCatalogSchema, pickupPolicySchema, pickupSelectionSchema, pointsRewardSchema, prerequisiteSchema, publishedReleaseSchema, questAvailabilitySchema, questPresentationSchema, questSettingsInputSchema, quizAnswersSchema, quizEvidenceSchema, releaseSchema, reservationSchema, reviewItemSchema, reviewListSchema, reviewModeSchema, reviewPageSchema, rewardBundleSchema, rewardKey, rewardSchema, snapshotSchema, staffDecisionSchema, stockItemSchema, stockSchema, storedReviewModeSchema, submissionEvidenceSchema, submitSchema, templateSchema, textResultSchema, textReviewInputSchema, tierRewardSchema, tieredRewardDefinitionSchema, tieredRewardReferenceSchema, triggerSchema } from './schema.js';
6
6
 
7
7
  declare class RelayError extends Error {
8
8
  readonly status: number;
@@ -1893,6 +1893,32 @@ declare const publishQuestDraftSchema: z.ZodObject<{
1893
1893
  id: z.ZodString;
1894
1894
  expectedRevision: z.ZodNumber;
1895
1895
  }, z.core.$strict>;
1896
+ /**
1897
+ * A quest reward as a participant sees it. `label` is display text, such as
1898
+ * "10 XP"; read amounts and ledgers from the fields rather than the label.
1899
+ */
1900
+ declare const questRewardViewSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1901
+ kind: z.ZodLiteral<"points">;
1902
+ label: z.ZodString;
1903
+ amount: z.ZodNumber;
1904
+ ledger: z.ZodObject<{
1905
+ id: z.ZodString;
1906
+ key: z.ZodNullable<z.ZodString>;
1907
+ name: z.ZodString;
1908
+ }, z.core.$strip>;
1909
+ }, z.core.$strip>, z.ZodObject<{
1910
+ kind: z.ZodLiteral<"tier">;
1911
+ label: z.ZodString;
1912
+ reward: z.ZodObject<{
1913
+ id: z.ZodString;
1914
+ key: z.ZodNullable<z.ZodString>;
1915
+ title: z.ZodString;
1916
+ }, z.core.$strip>;
1917
+ tier: z.ZodString;
1918
+ }, z.core.$strip>, z.ZodObject<{
1919
+ kind: z.ZodLiteral<"integration">;
1920
+ label: z.ZodString;
1921
+ }, z.core.$strip>], "kind">;
1896
1922
  declare const questViewSchema: z.ZodObject<{
1897
1923
  quest: z.ZodString;
1898
1924
  key: z.ZodOptional<z.ZodString>;
@@ -2144,9 +2170,28 @@ declare const questViewSchema: z.ZodObject<{
2144
2170
  paused: "paused";
2145
2171
  archived: "archived";
2146
2172
  }>;
2147
- rewards: z.ZodArray<z.ZodObject<{
2173
+ rewards: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2174
+ kind: z.ZodLiteral<"points">;
2148
2175
  label: z.ZodString;
2149
- }, z.core.$strip>>;
2176
+ amount: z.ZodNumber;
2177
+ ledger: z.ZodObject<{
2178
+ id: z.ZodString;
2179
+ key: z.ZodNullable<z.ZodString>;
2180
+ name: z.ZodString;
2181
+ }, z.core.$strip>;
2182
+ }, z.core.$strip>, z.ZodObject<{
2183
+ kind: z.ZodLiteral<"tier">;
2184
+ label: z.ZodString;
2185
+ reward: z.ZodObject<{
2186
+ id: z.ZodString;
2187
+ key: z.ZodNullable<z.ZodString>;
2188
+ title: z.ZodString;
2189
+ }, z.core.$strip>;
2190
+ tier: z.ZodString;
2191
+ }, z.core.$strip>, z.ZodObject<{
2192
+ kind: z.ZodLiteral<"integration">;
2193
+ label: z.ZodString;
2194
+ }, z.core.$strip>], "kind">>;
2150
2195
  }, z.core.$strip>;
2151
2196
  declare const collectionViewSchema: z.ZodObject<{
2152
2197
  key: z.ZodOptional<z.ZodString>;
@@ -2403,9 +2448,28 @@ declare const collectionViewSchema: z.ZodObject<{
2403
2448
  paused: "paused";
2404
2449
  archived: "archived";
2405
2450
  }>;
2406
- rewards: z.ZodArray<z.ZodObject<{
2451
+ rewards: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2452
+ kind: z.ZodLiteral<"points">;
2407
2453
  label: z.ZodString;
2408
- }, z.core.$strip>>;
2454
+ amount: z.ZodNumber;
2455
+ ledger: z.ZodObject<{
2456
+ id: z.ZodString;
2457
+ key: z.ZodNullable<z.ZodString>;
2458
+ name: z.ZodString;
2459
+ }, z.core.$strip>;
2460
+ }, z.core.$strip>, z.ZodObject<{
2461
+ kind: z.ZodLiteral<"tier">;
2462
+ label: z.ZodString;
2463
+ reward: z.ZodObject<{
2464
+ id: z.ZodString;
2465
+ key: z.ZodNullable<z.ZodString>;
2466
+ title: z.ZodString;
2467
+ }, z.core.$strip>;
2468
+ tier: z.ZodString;
2469
+ }, z.core.$strip>, z.ZodObject<{
2470
+ kind: z.ZodLiteral<"integration">;
2471
+ label: z.ZodString;
2472
+ }, z.core.$strip>], "kind">>;
2409
2473
  }, z.core.$strip>>;
2410
2474
  }, z.core.$strip>;
2411
2475
  declare const questExperienceSchema: z.ZodObject<{
@@ -2661,9 +2725,28 @@ declare const questExperienceSchema: z.ZodObject<{
2661
2725
  paused: "paused";
2662
2726
  archived: "archived";
2663
2727
  }>;
2664
- rewards: z.ZodArray<z.ZodObject<{
2728
+ rewards: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2729
+ kind: z.ZodLiteral<"points">;
2665
2730
  label: z.ZodString;
2666
- }, z.core.$strip>>;
2731
+ amount: z.ZodNumber;
2732
+ ledger: z.ZodObject<{
2733
+ id: z.ZodString;
2734
+ key: z.ZodNullable<z.ZodString>;
2735
+ name: z.ZodString;
2736
+ }, z.core.$strip>;
2737
+ }, z.core.$strip>, z.ZodObject<{
2738
+ kind: z.ZodLiteral<"tier">;
2739
+ label: z.ZodString;
2740
+ reward: z.ZodObject<{
2741
+ id: z.ZodString;
2742
+ key: z.ZodNullable<z.ZodString>;
2743
+ title: z.ZodString;
2744
+ }, z.core.$strip>;
2745
+ tier: z.ZodString;
2746
+ }, z.core.$strip>, z.ZodObject<{
2747
+ kind: z.ZodLiteral<"integration">;
2748
+ label: z.ZodString;
2749
+ }, z.core.$strip>], "kind">>;
2667
2750
  }, z.core.$strip>>;
2668
2751
  collections: z.ZodArray<z.ZodObject<{
2669
2752
  key: z.ZodOptional<z.ZodString>;
@@ -2920,13 +3003,33 @@ declare const questExperienceSchema: z.ZodObject<{
2920
3003
  paused: "paused";
2921
3004
  archived: "archived";
2922
3005
  }>;
2923
- rewards: z.ZodArray<z.ZodObject<{
3006
+ rewards: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
3007
+ kind: z.ZodLiteral<"points">;
2924
3008
  label: z.ZodString;
2925
- }, z.core.$strip>>;
3009
+ amount: z.ZodNumber;
3010
+ ledger: z.ZodObject<{
3011
+ id: z.ZodString;
3012
+ key: z.ZodNullable<z.ZodString>;
3013
+ name: z.ZodString;
3014
+ }, z.core.$strip>;
3015
+ }, z.core.$strip>, z.ZodObject<{
3016
+ kind: z.ZodLiteral<"tier">;
3017
+ label: z.ZodString;
3018
+ reward: z.ZodObject<{
3019
+ id: z.ZodString;
3020
+ key: z.ZodNullable<z.ZodString>;
3021
+ title: z.ZodString;
3022
+ }, z.core.$strip>;
3023
+ tier: z.ZodString;
3024
+ }, z.core.$strip>, z.ZodObject<{
3025
+ kind: z.ZodLiteral<"integration">;
3026
+ label: z.ZodString;
3027
+ }, z.core.$strip>], "kind">>;
2926
3028
  }, z.core.$strip>>;
2927
3029
  }, z.core.$strip>>;
2928
3030
  }, z.core.$strip>;
2929
3031
  type QuestView = z.infer<typeof questViewSchema>;
3032
+ type QuestRewardView = z.infer<typeof questRewardViewSchema>;
2930
3033
  type QuestCatalog = z.infer<typeof questCatalogSchema>;
2931
3034
  type QuestInstance = z.infer<typeof questInstanceSchema>;
2932
3035
  type QuestDraft = z.infer<typeof questDraftSchema>;
@@ -3652,7 +3755,19 @@ declare const pointLedgerDeclarationSchema: z.ZodObject<{
3652
3755
  description: z.ZodDefault<z.ZodString>;
3653
3756
  key: z.ZodString;
3654
3757
  }, z.core.$strict>;
3758
+ /**
3759
+ * What an app needs to recognize and name a ledger it finds in a read. `key` is
3760
+ * the authoring key, null for ledgers created in Console without one.
3761
+ * Reads return ledger IDs; match them against `key` rather than comparing
3762
+ * an ID with an authoring key.
3763
+ */
3764
+ declare const pointLedgerReferenceSchema: z.ZodObject<{
3765
+ id: z.ZodString;
3766
+ key: z.ZodNullable<z.ZodString>;
3767
+ name: z.ZodString;
3768
+ }, z.core.$strip>;
3655
3769
  type PointLedger = z.infer<typeof pointLedgerSchema>;
3770
+ type PointLedgerReference = z.infer<typeof pointLedgerReferenceSchema>;
3656
3771
 
3657
3772
  declare const rewardDeliverySchema: z.ZodObject<{
3658
3773
  id: z.ZodString;
@@ -4323,6 +4438,12 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
4323
4438
  }>>, z.ZodObject<{
4324
4439
  code: z.ZodString;
4325
4440
  }, z.core.$strict>]>>>;
4441
+ images: z.ZodDefault<z.ZodArray<z.ZodObject<{
4442
+ key: z.ZodString;
4443
+ sha256: z.ZodString;
4444
+ size: z.ZodNumber;
4445
+ path: z.ZodOptional<z.ZodString>;
4446
+ }, z.core.$strict>>>;
4326
4447
  }, z.core.$strict>;
4327
4448
  /** One manifest bundle. Missing entries never delete remotely owned resources. */
4328
4449
  declare const projectDeploymentSchema: z.ZodObject<{
@@ -4818,6 +4939,12 @@ declare const projectDeploymentSchema: z.ZodObject<{
4818
4939
  }>>, z.ZodObject<{
4819
4940
  code: z.ZodString;
4820
4941
  }, z.core.$strict>]>>>;
4942
+ images: z.ZodDefault<z.ZodArray<z.ZodObject<{
4943
+ key: z.ZodString;
4944
+ sha256: z.ZodString;
4945
+ size: z.ZodNumber;
4946
+ path: z.ZodOptional<z.ZodString>;
4947
+ }, z.core.$strict>>>;
4821
4948
  releases: z.ZodDefault<z.ZodArray<z.ZodObject<{
4822
4949
  code: z.ZodString;
4823
4950
  settings: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodObject<{
@@ -6079,6 +6206,18 @@ declare const deploymentPreviewSchema: z.ZodObject<{
6079
6206
  nextCursor: z.ZodNullable<z.ZodString>;
6080
6207
  }, z.core.$strip>;
6081
6208
  }, z.core.$strip>>>;
6209
+ images: z.ZodDefault<z.ZodArray<z.ZodObject<{
6210
+ key: z.ZodString;
6211
+ sha256: z.ZodString;
6212
+ type: z.ZodEnum<{
6213
+ "image/jpeg": "image/jpeg";
6214
+ "image/png": "image/png";
6215
+ "image/webp": "image/webp";
6216
+ }>;
6217
+ size: z.ZodNumber;
6218
+ width: z.ZodNumber;
6219
+ height: z.ZodNumber;
6220
+ }, z.core.$strict>>>;
6082
6221
  }, z.core.$strip>;
6083
6222
  declare const publishDeploymentSchema: z.ZodObject<{
6084
6223
  id: z.ZodString;
@@ -7326,6 +7465,18 @@ declare const deploymentResultSchema: z.ZodObject<{
7326
7465
  nextCursor: z.ZodNullable<z.ZodString>;
7327
7466
  }, z.core.$strip>;
7328
7467
  }, z.core.$strip>>>;
7468
+ images: z.ZodDefault<z.ZodArray<z.ZodObject<{
7469
+ key: z.ZodString;
7470
+ sha256: z.ZodString;
7471
+ type: z.ZodEnum<{
7472
+ "image/jpeg": "image/jpeg";
7473
+ "image/png": "image/png";
7474
+ "image/webp": "image/webp";
7475
+ }>;
7476
+ size: z.ZodNumber;
7477
+ width: z.ZodNumber;
7478
+ height: z.ZodNumber;
7479
+ }, z.core.$strict>>>;
7329
7480
  revision: z.ZodNumber;
7330
7481
  }, z.core.$strip>;
7331
7482
  type DeploymentPreview = z.infer<typeof deploymentPreviewSchema>;
@@ -7601,6 +7752,27 @@ declare function createRelayClient(options: {
7601
7752
  ok: true;
7602
7753
  }>;
7603
7754
  };
7755
+ tieredRewards: {
7756
+ /**
7757
+ * The project's tiered rewards with their keys. Entitlements and reward
7758
+ * definitions name them by ID: use this to find the ID for a key.
7759
+ */
7760
+ list: () => Promise<{
7761
+ id: string;
7762
+ key: string | null;
7763
+ }[]>;
7764
+ };
7765
+ pointLedgers: {
7766
+ /**
7767
+ * The project's point ledgers with their keys and names. Reads return
7768
+ * ledger IDs: use this to find the ID for a key, or a ledger's name.
7769
+ */
7770
+ list: () => Promise<{
7771
+ id: string;
7772
+ key: string | null;
7773
+ name: string;
7774
+ }[]>;
7775
+ };
7604
7776
  leaderboards: {
7605
7777
  list: () => Promise<{
7606
7778
  id: string;
@@ -7846,9 +8018,28 @@ declare function createRelayClient(options: {
7846
8018
  release: string;
7847
8019
  interaction: "staff" | "quiz" | "text" | "url" | "photo" | "automatic" | "claim";
7848
8020
  lifecycle: "active" | "paused" | "archived";
7849
- rewards: {
8021
+ rewards: ({
8022
+ kind: "points";
7850
8023
  label: string;
7851
- }[];
8024
+ amount: number;
8025
+ ledger: {
8026
+ id: string;
8027
+ key: string | null;
8028
+ name: string;
8029
+ };
8030
+ } | {
8031
+ kind: "tier";
8032
+ label: string;
8033
+ reward: {
8034
+ id: string;
8035
+ key: string | null;
8036
+ title: string;
8037
+ };
8038
+ tier: string;
8039
+ } | {
8040
+ kind: "integration";
8041
+ label: string;
8042
+ })[];
7852
8043
  key?: string | undefined;
7853
8044
  streak?: {
7854
8045
  goal: number;
@@ -8099,9 +8290,28 @@ declare function createRelayClient(options: {
8099
8290
  release: string;
8100
8291
  interaction: "staff" | "quiz" | "text" | "url" | "photo" | "automatic" | "claim";
8101
8292
  lifecycle: "active" | "paused" | "archived";
8102
- rewards: {
8293
+ rewards: ({
8294
+ kind: "points";
8103
8295
  label: string;
8104
- }[];
8296
+ amount: number;
8297
+ ledger: {
8298
+ id: string;
8299
+ key: string | null;
8300
+ name: string;
8301
+ };
8302
+ } | {
8303
+ kind: "tier";
8304
+ label: string;
8305
+ reward: {
8306
+ id: string;
8307
+ key: string | null;
8308
+ title: string;
8309
+ };
8310
+ tier: string;
8311
+ } | {
8312
+ kind: "integration";
8313
+ label: string;
8314
+ })[];
8105
8315
  key?: string | undefined;
8106
8316
  streak?: {
8107
8317
  goal: number;
@@ -8300,9 +8510,28 @@ declare function createRelayClient(options: {
8300
8510
  release: string;
8301
8511
  interaction: "staff" | "quiz" | "text" | "url" | "photo" | "automatic" | "claim";
8302
8512
  lifecycle: "active" | "paused" | "archived";
8303
- rewards: {
8513
+ rewards: ({
8514
+ kind: "points";
8304
8515
  label: string;
8305
- }[];
8516
+ amount: number;
8517
+ ledger: {
8518
+ id: string;
8519
+ key: string | null;
8520
+ name: string;
8521
+ };
8522
+ } | {
8523
+ kind: "tier";
8524
+ label: string;
8525
+ reward: {
8526
+ id: string;
8527
+ key: string | null;
8528
+ title: string;
8529
+ };
8530
+ tier: string;
8531
+ } | {
8532
+ kind: "integration";
8533
+ label: string;
8534
+ })[];
8306
8535
  key?: string | undefined;
8307
8536
  streak?: {
8308
8537
  goal: number;
@@ -8504,9 +8733,28 @@ declare function createRelayClient(options: {
8504
8733
  release: string;
8505
8734
  interaction: "staff" | "quiz" | "text" | "url" | "photo" | "automatic" | "claim";
8506
8735
  lifecycle: "active" | "paused" | "archived";
8507
- rewards: {
8736
+ rewards: ({
8737
+ kind: "points";
8508
8738
  label: string;
8509
- }[];
8739
+ amount: number;
8740
+ ledger: {
8741
+ id: string;
8742
+ key: string | null;
8743
+ name: string;
8744
+ };
8745
+ } | {
8746
+ kind: "tier";
8747
+ label: string;
8748
+ reward: {
8749
+ id: string;
8750
+ key: string | null;
8751
+ title: string;
8752
+ };
8753
+ tier: string;
8754
+ } | {
8755
+ kind: "integration";
8756
+ label: string;
8757
+ })[];
8510
8758
  key?: string | undefined;
8511
8759
  streak?: {
8512
8760
  goal: number;
@@ -9099,88 +9347,6 @@ declare function createRelayClient(options: {
9099
9347
  size: number;
9100
9348
  }>;
9101
9349
  };
9102
- /** @deprecated The participant API accepts only member sessions and rejects this staff call. Use the management API with a management key instead. */
9103
- reviews: {
9104
- list: (options?: ReviewListOptions, requestOptions?: {
9105
- signal?: AbortSignal;
9106
- }) => Promise<{
9107
- items: {
9108
- attempt: {
9109
- id: string;
9110
- release: string;
9111
- quest: string;
9112
- member: string;
9113
- evidence: string | null;
9114
- status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
9115
- reason: string | null;
9116
- retries: number;
9117
- generation: number;
9118
- completion: string | null;
9119
- reviewRewards: ({
9120
- kind: "tier";
9121
- reward: {
9122
- id: string;
9123
- title: string;
9124
- tiers: {
9125
- id: string;
9126
- title: string;
9127
- }[];
9128
- inventory: {
9129
- kind: "untracked";
9130
- };
9131
- fulfillment: {
9132
- kind: "staff-handover";
9133
- };
9134
- };
9135
- tier: string;
9136
- } | {
9137
- kind: "points";
9138
- balance: string;
9139
- amount: number;
9140
- } | {
9141
- kind: "integration";
9142
- provider: "discord";
9143
- action: "grant-role";
9144
- roleId: string;
9145
- })[] | null;
9146
- createdAt: number;
9147
- input?: {
9148
- kind: "quiz";
9149
- answers: {
9150
- [k: string]: string;
9151
- };
9152
- release?: string | undefined;
9153
- } | {
9154
- kind: "text";
9155
- value: string;
9156
- } | {
9157
- kind: "url";
9158
- value: string;
9159
- } | undefined;
9160
- };
9161
- title: string;
9162
- checks: {
9163
- criteria: string;
9164
- result: {
9165
- kind: "pass" | "fail" | "unclear";
9166
- reason: string;
9167
- };
9168
- }[];
9169
- }[];
9170
- nextCursor: string | null;
9171
- }>;
9172
- };
9173
- /** @deprecated The participant API accepts only member sessions and rejects this staff call. Use the management API with a management key instead. */
9174
- members: {
9175
- list: (options?: MemberListOptions, requestOptions?: {
9176
- signal?: AbortSignal;
9177
- }) => Promise<{
9178
- items: {
9179
- member: string;
9180
- }[];
9181
- nextCursor: string | null;
9182
- }>;
9183
- };
9184
9350
  evidence: {
9185
9351
  download(id: string, requestOptions?: {
9186
9352
  signal?: AbortSignal;
@@ -11198,4 +11364,4 @@ declare function createRelayClient(options: {
11198
11364
  }>;
11199
11365
  };
11200
11366
 
11201
- export { Attempt, AuthProvider, type ClaimSubmission, type CollectionPass, type DeploymentPreview, type ExchangeInput, LeaderboardQuery, MemberListOptions, MemberProgress, type PhotoSubmission, type PointLedger, type ProgressObservation, type ProgressObserver, PublishedRelease, type QuestActionResult, type QuestCatalog, type QuestController, type QuestDraft, type QuestInstance, type QuestInteraction, QuestUpdatedError, type QuestView, QuizEvidence, type QuizSubmission, RelayError, ReleaseInput, ReviewListOptions, type Session, type SubmissionDraft, type SubmissionStatus, type SubmissionStore, SubmitInput, ValueEvidence, type ValueSubmission, allocateQuestSchema, allocatedQuestSchema, authScopeSchema, beginHandoverSchema, catalogDeploymentPreviewSchema, catalogDeploymentSchema, collectionBeginSchema, collectionCodeSchema, collectionPassSchema, collectionPreviewSchema, collectionResolveSchema, collectionSlotDeclarationSchema, collectionSlotSchema, collectionViewSchema, contentAdmissionQuerySchema, contentEnrollmentInputSchema, contentPerformanceQuerySchema, contentQualificationQuerySchema, contentReleaseInputSchema, createPointLedgerSchema, createRelayClient, deploymentPreviewSchema, deploymentResultSchema, engagementPageQuerySchema, errorSchema, exchangeResultSchema, exchangeSchema, identityIntegrationInputSchema, identityIntegrationSchema, identityIntegrationSecretSchema, interactionSchema, participantExchangeSchema, pointLedgerDeclarationSchema, pointLedgerPropertiesSchema, pointLedgerSchema, principalSchema, projectCatalogArtifactSchema, projectDeploymentSchema, publishDeploymentSchema, publishQuestDraftSchema, questActions, questCatalogSchema, questCollectionSchema, questConfiguration, questDescriptionSchema, questDraftChangesSchema, questDraftSchema, questExperienceSchema, questInstanceSchema, questInteraction, questPublicationPreviewSchema, questTypeVersionSchema, questViewSchema, reconcileQuestDraft, referralAcceptSchema, rewardDeliveriesSchema, rewardDeliverySchema, saveQuestDraftSchema, sessionSchema, walletChallengeInputSchema, walletProofSchema };
11367
+ export { Attempt, AuthProvider, type ClaimSubmission, type CollectionPass, type DeploymentPreview, type ExchangeInput, LeaderboardQuery, MemberProgress, type PhotoSubmission, type PointLedger, type PointLedgerReference, type ProgressObservation, type ProgressObserver, PublishedRelease, type QuestActionResult, type QuestCatalog, type QuestController, type QuestDraft, type QuestInstance, type QuestInteraction, type QuestRewardView, QuestUpdatedError, type QuestView, QuizEvidence, type QuizSubmission, RelayError, ReleaseInput, type Session, type SubmissionDraft, type SubmissionStatus, type SubmissionStore, SubmitInput, ValueEvidence, type ValueSubmission, allocateQuestSchema, allocatedQuestSchema, authScopeSchema, beginHandoverSchema, catalogDeploymentPreviewSchema, catalogDeploymentSchema, collectionBeginSchema, collectionCodeSchema, collectionPassSchema, collectionPreviewSchema, collectionResolveSchema, collectionSlotDeclarationSchema, collectionSlotSchema, collectionViewSchema, contentAdmissionQuerySchema, contentEnrollmentInputSchema, contentPerformanceQuerySchema, contentQualificationQuerySchema, contentReleaseInputSchema, createPointLedgerSchema, createRelayClient, deploymentPreviewSchema, deploymentResultSchema, engagementPageQuerySchema, errorSchema, exchangeResultSchema, exchangeSchema, identityIntegrationInputSchema, identityIntegrationSchema, identityIntegrationSecretSchema, interactionSchema, participantExchangeSchema, pointLedgerDeclarationSchema, pointLedgerPropertiesSchema, pointLedgerReferenceSchema, pointLedgerSchema, principalSchema, projectCatalogArtifactSchema, projectDeploymentSchema, publishDeploymentSchema, publishQuestDraftSchema, questActions, questCatalogSchema, questCollectionSchema, questConfiguration, questDescriptionSchema, questDraftChangesSchema, questDraftSchema, questExperienceSchema, questInstanceSchema, questInteraction, questPublicationPreviewSchema, questRewardViewSchema, questTypeVersionSchema, questViewSchema, reconcileQuestDraft, referralAcceptSchema, rewardDeliveriesSchema, rewardDeliverySchema, saveQuestDraftSchema, sessionSchema, walletChallengeInputSchema, walletProofSchema };
package/dist/index.js CHANGED
@@ -20,15 +20,30 @@ import {
20
20
  identityIntegrationInputSchema,
21
21
  identityIntegrationSchema,
22
22
  identityIntegrationSecretSchema,
23
+ imageAssetArtifactSchema,
24
+ imageComparisonSchema,
25
+ imageExtractionSchema,
26
+ imageFieldSchema,
27
+ imageFieldsSchema,
28
+ imageInspectionSchema,
29
+ imageReferenceSchema,
30
+ imageRequestSchema,
31
+ imageSightingsSchema,
32
+ imageUploadRequestSchema,
33
+ imageUploadsSchema,
23
34
  interactionSchema,
35
+ parseImageExtraction,
36
+ parseImageResult,
24
37
  participantExchangeSchema,
25
38
  pointLedgerDeclarationSchema,
26
39
  pointLedgerPropertiesSchema,
40
+ pointLedgerReferenceSchema,
27
41
  pointLedgerSchema,
28
42
  projectCatalogArtifactSchema,
29
43
  projectDeploymentSchema,
30
44
  publishDeploymentSchema,
31
45
  publishQuestDraftSchema,
46
+ publishedImageSchema,
32
47
  questActions,
33
48
  questCatalogSchema,
34
49
  questCollectionSchema,
@@ -39,6 +54,7 @@ import {
39
54
  questInstanceSchema,
40
55
  questInteraction,
41
56
  questPublicationPreviewSchema,
57
+ questRewardViewSchema,
42
58
  questTypeVersionSchema,
43
59
  questViewSchema,
44
60
  reconcileQuestDraft,
@@ -56,7 +72,7 @@ import {
56
72
  xPostSchema,
57
73
  xProfileSchema,
58
74
  xRequestSchema
59
- } from "./chunk-TQUK4DIW.js";
75
+ } from "./chunk-RTBIXGMH.js";
60
76
  import {
61
77
  defineEngagementReward,
62
78
  defineLeaderboard,
@@ -103,14 +119,14 @@ import {
103
119
  referralManagementSchema,
104
120
  referralRelationshipSchema,
105
121
  referralSummarySchema
106
- } from "./chunk-FBOW2TLN.js";
122
+ } from "./chunk-ZOL7RYHW.js";
107
123
  import {
108
124
  authScopeSchema,
109
125
  exchangeResultSchema,
110
126
  exchangeSchema,
111
127
  principalSchema,
112
128
  sessionSchema
113
- } from "./chunk-6GH4NC2T.js";
129
+ } from "./chunk-57TGYC5Y.js";
114
130
  import {
115
131
  accountConnectionSchema,
116
132
  admittedContentSchema,
@@ -230,6 +246,7 @@ import {
230
246
  textReviewInputSchema,
231
247
  tierRewardSchema,
232
248
  tieredRewardDefinitionSchema,
249
+ tieredRewardReferenceSchema,
233
250
  trackerArtifactSchema,
234
251
  trackerContentQuerySchema,
235
252
  trackerContentReadSchema,
@@ -257,7 +274,7 @@ import {
257
274
  xContentBodySchema,
258
275
  xPostId,
259
276
  xTweetSchema
260
- } from "./chunk-23ZZTCDK.js";
277
+ } from "./chunk-UYS522ER.js";
261
278
  export {
262
279
  QuestUpdatedError,
263
280
  RelayError,
@@ -351,6 +368,17 @@ export {
351
368
  identityIntegrationInputSchema,
352
369
  identityIntegrationSchema,
353
370
  identityIntegrationSecretSchema,
371
+ imageAssetArtifactSchema,
372
+ imageComparisonSchema,
373
+ imageExtractionSchema,
374
+ imageFieldSchema,
375
+ imageFieldsSchema,
376
+ imageInspectionSchema,
377
+ imageReferenceSchema,
378
+ imageRequestSchema,
379
+ imageSightingsSchema,
380
+ imageUploadRequestSchema,
381
+ imageUploadsSchema,
354
382
  integrationProviderSchema,
355
383
  integrationRewardSchema,
356
384
  interactionSchema,
@@ -374,6 +402,8 @@ export {
374
402
  observationReceiptSchema,
375
403
  observationSchema,
376
404
  observationTriggerSchema,
405
+ parseImageExtraction,
406
+ parseImageResult,
377
407
  parseSettings,
378
408
  participantExchangeSchema,
379
409
  perContent,
@@ -385,6 +415,7 @@ export {
385
415
  pickupSelectionSchema,
386
416
  pointLedgerDeclarationSchema,
387
417
  pointLedgerPropertiesSchema,
418
+ pointLedgerReferenceSchema,
388
419
  pointLedgerSchema,
389
420
  pointLedgers,
390
421
  pointsAccountSchema,
@@ -399,6 +430,7 @@ export {
399
430
  projectIntegrationSchema,
400
431
  publishDeploymentSchema,
401
432
  publishQuestDraftSchema,
433
+ publishedImageSchema,
402
434
  publishedLeaderboardSchema,
403
435
  publishedReferralSchema,
404
436
  publishedReleaseSchema,
@@ -416,6 +448,7 @@ export {
416
448
  questInteraction,
417
449
  questPresentationSchema,
418
450
  questPublicationPreviewSchema,
451
+ questRewardViewSchema,
419
452
  questSettingsInputSchema,
420
453
  questTypeVersionSchema,
421
454
  questViewSchema,
@@ -475,6 +508,7 @@ export {
475
508
  textReviewInputSchema,
476
509
  tierRewardSchema,
477
510
  tieredRewardDefinitionSchema,
511
+ tieredRewardReferenceSchema,
478
512
  trackerArtifactSchema,
479
513
  trackerContentQuerySchema,
480
514
  trackerContentReadSchema,