@domino-sdk/relay 1.0.0-next.10 → 1.0.0-next.12

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 (42) hide show
  1. package/dist/authoring.d.ts +22 -19
  2. package/dist/authoring.js +1 -1
  3. package/dist/avatar.d.ts +2 -2
  4. package/dist/browser.d.ts +138 -107
  5. package/dist/browser.js +4 -4
  6. package/dist/{pages-D3titw5B.d.ts → catalog-qrYne8qV.d.ts} +106 -138
  7. package/dist/{chunk-X2F2RAR3.js → chunk-22J4K7ED.js} +21 -2
  8. package/dist/{chunk-PHU5VDLR.js → chunk-5L7XZA4Y.js} +10 -1
  9. package/dist/{chunk-ZWY3R6B3.js → chunk-6A2V4L3T.js} +4 -0
  10. package/dist/{chunk-P6FK43GG.js → chunk-EWFB35JW.js} +140 -41
  11. package/dist/{chunk-QR7ZA2BJ.js → chunk-LY7SXUNW.js} +45 -1
  12. package/dist/chunk-NZA2TLBF.js +68 -0
  13. package/dist/chunk-UW5CQHPQ.js +100 -0
  14. package/dist/{client-CT4-S5vc.d.ts → client-CW72TaAs.d.ts} +46 -58
  15. package/dist/deployments-Bc0dPSXN.d.ts +4119 -0
  16. package/dist/identity-integration-CBR8l3ju.d.ts +37 -0
  17. package/dist/images-D0Txfte6.d.ts +234 -0
  18. package/dist/index.d.ts +9 -7
  19. package/dist/index.js +6 -3
  20. package/dist/{integrations-Ba5TtqTv.d.ts → integrations-EjQzIApL.d.ts} +1 -88
  21. package/dist/internal.d.ts +7 -38
  22. package/dist/internal.js +14 -87
  23. package/dist/observations-bFY4yv2K.d.ts +90 -0
  24. package/dist/pages-KYK1L60W.d.ts +152 -0
  25. package/dist/portal-proxy.js +3 -2
  26. package/dist/{profiles-DDMFBRKe.d.ts → profiles-BtOXMGcC.d.ts} +1 -1
  27. package/dist/react/index.d.ts +135 -8
  28. package/dist/react/index.js +146 -8
  29. package/dist/{submission-input-0OOGaq8c.d.ts → referrals-CvSmxvjm.d.ts} +1 -81
  30. package/dist/request-error-VnTiMXc3.d.ts +52 -0
  31. package/dist/{schema-Di3aLSiK.d.ts → schema-ZfjL-d1N.d.ts} +1 -1
  32. package/dist/schema.d.ts +14 -4126
  33. package/dist/schema.js +21 -35
  34. package/dist/server/index.d.ts +19411 -0
  35. package/dist/server/index.js +1860 -0
  36. package/dist/submission-input-CccwAl5Z.d.ts +83 -0
  37. package/dist/{images-BTgk6OmC.d.ts → trackers-BsUh5Ky0.d.ts} +1 -232
  38. package/dist/vite.d.ts +1 -1
  39. package/dist/vite.js +1 -0
  40. package/dist/{wallet-BGOfFkG9.d.ts → wallet-BtiG0Xhr.d.ts} +1 -1
  41. package/package.json +5 -1
  42. package/dist/point-ledgers-iS00Z_v0.d.ts +0 -37
@@ -1,13 +1,16 @@
1
1
  import { z } from 'zod';
2
2
  export { z } from 'zod';
3
- import { C as ContentPolicy, g as ContentMetric, E as EngagementDefinition, l as leaderboardAuthoringSchema, r as referralAuthoringSchema, h as AdmittedContent, D as DiscordMember, T as TextEvidence, U as UrlEvidence, e as TextOptions, f as UrlOptions } from './submission-input-0OOGaq8c.js';
3
+ import { e as ContentPolicy, C as ContentMetric, E as EngagementDefinition, P as leaderboardAuthoringSchema, a7 as referralAuthoringSchema, A as AdmittedContent } from './referrals-CvSmxvjm.js';
4
4
  import { Q as QuizContent, a as StreakPolicy } from './streaks-CwGReWGt.js';
5
- import { R as ResourceSource, S as Setting, O as Observation, X as XReader, D as DiscordMessage, o as observationTriggerSchema, B as Budget, I as IntegerSettings, a as IntegrationProvider } from './integrations-Ba5TtqTv.js';
6
- import { T as TrackerDefinition, I as IdentityKind, c as customSourceSchema, W as WithRecordData, a as TrackerSource, t as trackerDefinitionSchema, b as Tracker, d as TrackerData, x as xSearchSourceSchema, X as XTweet, e as TrackerTriggerContext, f as TrackerTriggerPolicy, g as TrackerReader, h as ImageReader, i as Where, j as TrackerTriggerMode, k as WhereSetting } from './images-BTgk6OmC.js';
7
- export { l as TrackerDataSchema, m as TrackerPage, n as trackerDataSchema, o as trackerTriggerContextSchema } from './images-BTgk6OmC.js';
8
- import { d as TextReviewInput, e as TextResult, P as PhotoResult, r as rewardSchema, t as triggerSchema, Q as QuestPresentation, a as QuestProfile, b as QuizEvidence, D as Decision, f as TieredRewardDefinition } from './schema-Di3aLSiK.js';
9
- import { h as WalletConnection, S as SolanaBalance, L as LinkedWallet, i as WalletBalanceQuery, j as WalletBalance } from './wallet-BGOfFkG9.js';
10
- export { E as EvmChainId, k as isEvmChainId } from './wallet-BGOfFkG9.js';
5
+ import { b as ResourceSource, S as Setting, g as XReader, I as IntegerSettings, a as IntegrationProvider } from './integrations-EjQzIApL.js';
6
+ import { j as TrackerDefinition, I as IdentityKind, J as customSourceSchema, F as WithRecordData, t as TrackerSource, a1 as trackerDefinitionSchema, a as Tracker, h as TrackerData, au as xSearchSourceSchema, X as XTweet, v as TrackerTriggerContext, x as TrackerTriggerPolicy, q as TrackerReader, W as Where, w as TrackerTriggerMode, E as WhereSetting } from './trackers-BsUh5Ky0.js';
7
+ export { T as TrackerDataSchema, m as TrackerPage, aw as trackerDataSchema, ak as trackerTriggerContextSchema } from './trackers-BsUh5Ky0.js';
8
+ import { e as ImageReader } from './images-D0Txfte6.js';
9
+ import { O as Observation, D as DiscordMessage, h as observationTriggerSchema, B as Budget } from './observations-bFY4yv2K.js';
10
+ import { D as DiscordMember, T as TextEvidence, U as UrlEvidence, b as TextOptions, c as UrlOptions } from './submission-input-CccwAl5Z.js';
11
+ import { n as TextReviewInput, m as TextResult, P as PhotoResult, ag as rewardSchema, au as triggerSchema, Q as QuestPresentation, a as QuestProfile, b as QuizEvidence, D as Decision, o as TieredRewardDefinition } from './schema-ZfjL-d1N.js';
12
+ import { k as WalletConnection, S as SolanaBalance, L as LinkedWallet, j as WalletBalanceQuery, i as WalletBalance } from './wallet-BtiG0Xhr.js';
13
+ export { E as EvmChainId, r as isEvmChainId } from './wallet-BtiG0Xhr.js';
11
14
  export { f as formatUnits, p as parseUnits } from './units-CwgsPB_r.js';
12
15
 
13
16
  /** Legacy `id` names an authoring key, never a server resource ID. */
@@ -30,7 +33,7 @@ declare function content(tracker: TrackerDefinition, policy?: Partial<Pick<Conte
30
33
  };
31
34
  enrollment: "required" | "none";
32
35
  posts: "after-enrollment" | "since-start";
33
- historical: "automatic" | "claim" | "staff";
36
+ historical: "staff" | "automatic" | "claim";
34
37
  };
35
38
  };
36
39
  declare function perContent(): {
@@ -180,8 +183,8 @@ declare function defineReferral(input: Omit<z.input<typeof referralAuthoringSche
180
183
  };
181
184
  declare function defineLeaderboard(input: Omit<z.input<typeof leaderboardAuthoringSchema>, "key" | "id"> & AuthoringIdentity): {
182
185
  id: string;
183
- title: string;
184
186
  balance: string;
187
+ title: string;
185
188
  group?: string | undefined;
186
189
  score: {
187
190
  kind: "balance";
@@ -446,7 +449,7 @@ type KeyedContext = {
446
449
  declare const budget: (definition: Budget) => {
447
450
  id: string;
448
451
  scope: "member" | "project";
449
- period: "day" | "lifetime" | "week";
452
+ period: "lifetime" | "day" | "week";
450
453
  limit: number;
451
454
  cost: number | {
452
455
  balance: string;
@@ -740,12 +743,12 @@ declare function defineQuest<T extends Record<string, Setting>, const G extends
740
743
  kind: "resource";
741
744
  default: string;
742
745
  source: {
746
+ provider: "domino";
747
+ resource: "point-ledger";
748
+ } | {
743
749
  provider: "discord";
744
750
  resource: "channel";
745
751
  types: ("text" | "announcement")[];
746
- } | {
747
- provider: "domino";
748
- resource: "point-ledger";
749
752
  } | {
750
753
  provider: "discord";
751
754
  resource: "role";
@@ -844,7 +847,7 @@ declare function defineQuest<T extends Record<string, Setting>, const G extends
844
847
  };
845
848
  enrollment: "required" | "none";
846
849
  posts: "after-enrollment" | "since-start";
847
- historical: "automatic" | "claim" | "staff";
850
+ historical: "staff" | "automatic" | "claim";
848
851
  } | undefined;
849
852
  tracker?: {
850
853
  tracker: string;
@@ -895,7 +898,7 @@ declare function defineQuest<T extends Record<string, Setting>, const G extends
895
898
  minLength: number;
896
899
  maxLength: number;
897
900
  };
898
- actor?: "member" | "staff" | undefined;
901
+ actor?: "staff" | "member" | undefined;
899
902
  } | {
900
903
  kind: "manual";
901
904
  input: "url";
@@ -903,11 +906,11 @@ declare function defineQuest<T extends Record<string, Setting>, const G extends
903
906
  required: boolean;
904
907
  allowedHosts?: string[] | undefined;
905
908
  };
906
- actor?: "member" | "staff" | undefined;
909
+ actor?: "staff" | "member" | undefined;
907
910
  } | {
908
911
  kind: "manual";
909
- input: "none" | "quiz" | "photo";
910
- actor?: "member" | "staff" | undefined;
912
+ input: "photo" | "quiz" | "none";
913
+ actor?: "staff" | "member" | undefined;
911
914
  };
912
915
  requires: {
913
916
  quest: string;
@@ -925,7 +928,7 @@ declare function defineQuest<T extends Record<string, Setting>, const G extends
925
928
  budgets: {
926
929
  id: string;
927
930
  scope: "member" | "project";
928
- period: "day" | "lifetime" | "week";
931
+ period: "lifetime" | "day" | "week";
929
932
  limit: number;
930
933
  cost: number | {
931
934
  balance: string;
package/dist/authoring.js CHANGED
@@ -10,7 +10,7 @@ import {
10
10
  isEvmChainId,
11
11
  leaderboardAuthoringSchema,
12
12
  referralAuthoringSchema
13
- } from "./chunk-PHU5VDLR.js";
13
+ } from "./chunk-5L7XZA4Y.js";
14
14
  import {
15
15
  admittedContentSchema,
16
16
  budgetSchema,
package/dist/avatar.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { L as LinkedWallet } from './wallet-BGOfFkG9.js';
2
- import { P as ProfileAvatar } from './profiles-DDMFBRKe.js';
1
+ import { L as LinkedWallet } from './wallet-BtiG0Xhr.js';
2
+ import { P as ProfileAvatar } from './profiles-BtOXMGcC.js';
3
3
  import 'zod';
4
4
 
5
5
  /**