@domino-sdk/relay 1.54.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 (65) hide show
  1. package/CHANGELOG.md +1859 -0
  2. package/dist/analytics-URV-mxjH.d.ts +482 -0
  3. package/dist/{attempt-captures-QC4kTA44.d.ts → attempt-captures-CxxO7DeD.d.ts} +1 -1
  4. package/dist/authoring.d.ts +277 -40
  5. package/dist/authoring.js +142 -14
  6. package/dist/{automatic-outcomes-CVyZHxir.d.ts → automatic-outcomes-DxW_v5Wc.d.ts} +5 -2
  7. package/dist/avatar.d.ts +1 -1
  8. package/dist/browser.d.ts +7 -7
  9. package/dist/browser.js +10 -10
  10. package/dist/{capability-error-FQGGb5xS.d.ts → capability-error-DSd8EMQC.d.ts} +76 -2
  11. package/dist/{chunk-RP4LLEON.js → chunk-ABJ4G47X.js} +1 -1
  12. package/dist/{chunk-IELNFM3V.js → chunk-BHHUSBSD.js} +97 -8
  13. package/dist/chunk-BJYMTCWG.js +950 -0
  14. package/dist/{chunk-K6TVMNU4.js → chunk-CK7HO32Z.js} +1 -1
  15. package/dist/{chunk-GTQJSDBS.js → chunk-CXKXPB7K.js} +32 -16
  16. package/dist/{chunk-TL5TL5RD.js → chunk-G6XVBYH7.js} +4 -4
  17. package/dist/{chunk-S2PMKZSX.js → chunk-H2MD6E7Z.js} +21 -2
  18. package/dist/{chunk-YVC3B72P.js → chunk-INSWI2VZ.js} +1 -1
  19. package/dist/{chunk-XFAYQFRO.js → chunk-KBVH4XZC.js} +1 -1
  20. package/dist/{chunk-MLIXJPKL.js → chunk-MHPKEVEW.js} +1 -0
  21. package/dist/{chunk-7BNCLWAO.js → chunk-MNU6UPXY.js} +1 -1
  22. package/dist/{chunk-JL7J3EQQ.js → chunk-NK6EER33.js} +46 -16
  23. package/dist/{chunk-QIDQWXSF.js → chunk-OTITLABX.js} +2 -2
  24. package/dist/{chunk-53JMTUWG.js → chunk-QNQNKIAA.js} +1 -1
  25. package/dist/{chunk-ZJ3FVZRP.js → chunk-RBPMT53S.js} +132 -99
  26. package/dist/chunk-ULQU7KC4.js +704 -0
  27. package/dist/chunk-VSHV7FEA.js +344 -0
  28. package/dist/{chunk-LPHXTZDA.js → chunk-W5U2WXG3.js} +2 -2
  29. package/dist/{client-CzNtl8UO.d.ts → client-bX3oTpRu.d.ts} +111 -8
  30. package/dist/{deployments-ovtqtAcx.d.ts → deployments-D3lxfQMB.d.ts} +1436 -185
  31. package/dist/{groups-B5R1RCsl.d.ts → groups-DPE004_V.d.ts} +135 -139
  32. package/dist/index.d.ts +8 -8
  33. package/dist/index.js +9 -9
  34. package/dist/integrations-CcD5NPEA.d.ts +633 -0
  35. package/dist/internal.d.ts +11 -10
  36. package/dist/internal.js +9 -9
  37. package/dist/{offers-CH1RZekg.d.ts → offers-CtzMeB7O.d.ts} +207 -2
  38. package/dist/{pages-BTlOg8sl.d.ts → pages-BlLqB8ZQ.d.ts} +82 -2
  39. package/dist/portal-proxy.d.ts +11 -1
  40. package/dist/portal-proxy.js +27 -6
  41. package/dist/{profiles-Cdv4BSd_.d.ts → profiles-BoOK03cR.d.ts} +2 -0
  42. package/dist/react/index.d.ts +566 -13
  43. package/dist/react/index.js +105 -15
  44. package/dist/runtime/authoring.js +1 -1
  45. package/dist/runtime/chunks/NDB42VFF.js +1 -0
  46. package/dist/runtime/manifest.json +3 -3
  47. package/dist/runtime/schema.js +1 -1
  48. package/dist/{schema-BJ9bOgpN.d.ts → schema-C4m9RhCR.d.ts} +166 -6
  49. package/dist/schema.d.ts +383 -79
  50. package/dist/schema.js +105 -41
  51. package/dist/server/index.d.ts +11 -10
  52. package/dist/server/index.js +1590 -1175
  53. package/dist/{submission-input-BNah53go.d.ts → submission-input-wTiYGdgA.d.ts} +2 -2
  54. package/dist/{telegram-browser-C36j_6v-.d.ts → telegram-browser-Bh3i0HiH.d.ts} +1 -1
  55. package/dist/testing.d.ts +85 -12
  56. package/dist/testing.js +322 -37
  57. package/dist/{transport-C8BlCzmF.d.ts → transport-CnKA-_RL.d.ts} +7625 -1265
  58. package/dist/vite.d.ts +54 -1
  59. package/dist/vite.js +35 -0
  60. package/dist/{x-BfQcsDp0.d.ts → x-1czZFVUW.d.ts} +1 -1
  61. package/package.json +3 -2
  62. package/dist/chunk-2NUD237O.js +0 -102
  63. package/dist/chunk-CCE2JWES.js +0 -1083
  64. package/dist/integrations-CllF-kWg.d.ts +0 -314
  65. package/dist/runtime/chunks/AVRVSLHX.js +0 -1
@@ -1,140 +1,5 @@
1
1
  import * as z from 'zod';
2
- import { q as ResourceHandle, G as GroupHandle } from './schema-BJ9bOgpN.js';
3
-
4
- declare const pointLedgerPropertiesSchema: z.ZodObject<{
5
- name: z.ZodString;
6
- description: z.ZodDefault<z.ZodString>;
7
- }, z.core.$strict>;
8
- declare const createPointLedgerSchema: z.ZodObject<{
9
- name: z.ZodString;
10
- description: z.ZodDefault<z.ZodString>;
11
- actionId: z.ZodString;
12
- key: z.ZodOptional<z.ZodString>;
13
- }, z.core.$strict>;
14
- declare const pointLedgerSchema: z.ZodObject<{
15
- name: z.ZodString;
16
- description: z.ZodDefault<z.ZodString>;
17
- id: z.ZodString;
18
- }, z.core.$strict>;
19
- /** A point ledger as operators manage it. Archived ledgers stay readable but cannot be selected for new rewards. */
20
- declare const managedPointLedgerSchema: z.ZodObject<{
21
- name: z.ZodString;
22
- description: z.ZodDefault<z.ZodString>;
23
- id: z.ZodString;
24
- archivedAt: z.ZodNullable<z.ZodNumber>;
25
- }, z.core.$strict>;
26
- declare const pointLedgerDeclarationSchema: z.ZodObject<{
27
- name: z.ZodString;
28
- description: z.ZodDefault<z.ZodString>;
29
- key: z.ZodString;
30
- }, z.core.$strict>;
31
- declare const pointLedgerArtifactSchema: z.ZodUnion<readonly [z.ZodObject<{
32
- name: z.ZodString;
33
- description: z.ZodDefault<z.ZodString>;
34
- key: z.ZodString;
35
- }, z.core.$strict>, z.ZodObject<{
36
- code: z.ZodString;
37
- }, z.core.$strict>]>;
38
- /**
39
- * What an app needs to recognize and name a ledger it finds in a read. `key` is
40
- * the authoring key, null for ledgers created in Console without one.
41
- * Reads return ledger IDs; match them against `key` rather than comparing
42
- * an ID with an authoring key.
43
- */
44
- declare const pointLedgerReferenceSchema: z.ZodObject<{
45
- id: z.ZodString;
46
- key: z.ZodNullable<z.ZodString>;
47
- name: z.ZodString;
48
- }, z.core.$strip>;
49
- /**
50
- * The signed-in member's balance in one ledger (`relay.me.balances()`). `balance` is the current
51
- * balance, every entry counted; `available` leaves out points that reservations hold, so it is what
52
- * the member can spend now.
53
- */
54
- declare const pointBalanceSchema: z.ZodObject<{
55
- ledger: z.ZodObject<{
56
- id: z.ZodString;
57
- key: z.ZodNullable<z.ZodString>;
58
- name: z.ZodString;
59
- }, z.core.$strip>;
60
- balance: z.ZodNumber;
61
- available: z.ZodNumber;
62
- }, z.core.$strip>;
63
- /** `relay.me.balances()`: the member's balance in each of the project's ledgers. */
64
- declare const pointBalancesSchema: z.ZodObject<{
65
- items: z.ZodArray<z.ZodObject<{
66
- ledger: z.ZodObject<{
67
- id: z.ZodString;
68
- key: z.ZodNullable<z.ZodString>;
69
- name: z.ZodString;
70
- }, z.core.$strip>;
71
- balance: z.ZodNumber;
72
- available: z.ZodNumber;
73
- }, z.core.$strip>>;
74
- }, z.core.$strip>;
75
- /** @compat open */
76
- type KnownPointEntryKind = (typeof PointEntryKind)[keyof typeof PointEntryKind];
77
- /**
78
- * The point entry kinds this SDK knows. `PointEntry.kind` is an open string: Relay can add kinds,
79
- * and an entry keeps a kind this SDK does not list. Show such an entry by its `amount` alone.
80
- * Referral payouts are adjustments (`adjust` with `quest: null`).
81
- */
82
- declare const PointEntryKind: {
83
- /** Points a quest completion, an engagement settlement or an operator awarded. */
84
- readonly Award: "award";
85
- /** Points the member spent. */
86
- readonly Spend: "spend";
87
- /** A correction in either direction, by an operator or a referral payout. */
88
- readonly Adjust: "adjust";
89
- /** Undoes part or all of an award or a positive adjustment (`reverses`). */
90
- readonly Reverse: "reverse";
91
- };
92
- /** A known kind, or one a newer Relay sends. */
93
- type PointEntryKind = KnownPointEntryKind | (string & {});
94
- /**
95
- * One entry in the signed-in member's own point history (`relay.me.pointHistory()`): what changed
96
- * their balance and when, without the operator's reason or actor. `amount` is signed: spending and
97
- * reversals are negative. `quest` is the quest that paid it (through a completion or an engagement
98
- * settlement), if any; `reverses` is the entry a reversal undoes.
99
- */
100
- declare const pointEntrySchema: z.ZodObject<{
101
- id: z.ZodString;
102
- amount: z.ZodNumber;
103
- kind: z.ZodType<PointEntryKind, unknown, z.core.$ZodTypeInternals<PointEntryKind, unknown>>;
104
- at: z.ZodNumber;
105
- quest: z.ZodNullable<z.ZodString>;
106
- reverses: z.ZodNullable<z.ZodString>;
107
- imported: z.ZodOptional<z.ZodBoolean>;
108
- }, z.core.$strip>;
109
- /** `relay.me.pointHistory()`: one ledger, by key or ID. */
110
- declare const pointHistoryQuerySchema: z.ZodObject<{
111
- ledger: z.ZodString;
112
- cursor: z.ZodOptional<z.ZodString>;
113
- }, z.core.$strict>;
114
- /**
115
- * One page of the signed-in member's point history, the most recently recorded entry first. That
116
- * is not always `at` order: a backdated entry or a reversal records now with an earlier `at`.
117
- */
118
- declare const pointHistoryPageSchema: z.ZodObject<{
119
- items: z.ZodArray<z.ZodObject<{
120
- id: z.ZodString;
121
- amount: z.ZodNumber;
122
- kind: z.ZodType<PointEntryKind, unknown, z.core.$ZodTypeInternals<PointEntryKind, unknown>>;
123
- at: z.ZodNumber;
124
- quest: z.ZodNullable<z.ZodString>;
125
- reverses: z.ZodNullable<z.ZodString>;
126
- imported: z.ZodOptional<z.ZodBoolean>;
127
- }, z.core.$strip>>;
128
- nextCursor: z.ZodNullable<z.ZodString>;
129
- }, z.core.$strip>;
130
- type PointLedger = z.infer<typeof pointLedgerSchema>;
131
- type ManagedPointLedger = z.infer<typeof managedPointLedgerSchema>;
132
- type PointLedgerReference = z.infer<typeof pointLedgerReferenceSchema>;
133
- type PointBalance = z.infer<typeof pointBalanceSchema>;
134
- type PointBalances = z.infer<typeof pointBalancesSchema>;
135
- type PointEntry = z.infer<typeof pointEntrySchema>;
136
- type PointHistoryQuery = z.input<typeof pointHistoryQuerySchema>;
137
- type PointHistoryPage = z.infer<typeof pointHistoryPageSchema>;
2
+ import { g as PointEntryKind, C as ResourceHandle, G as GroupHandle } from './schema-C4m9RhCR.js';
138
3
 
139
4
  type AuthoringIdentity = {
140
5
  key: string;
@@ -678,6 +543,32 @@ declare const leaderboardPrizeSchema: z.ZodObject<{
678
543
  tier: z.ZodString;
679
544
  }, z.core.$strict>]>>;
680
545
  }, z.core.$strict>;
546
+ /** An amount in a unit's smallest denomination, as a decimal string: `"1000000"` is 1 USDC. */
547
+ declare const baseUnitsSchema: z.ZodString;
548
+ /**
549
+ * What a pool prize is counted in: `"points"`, paid into a point ledger on approval, or a token or
550
+ * currency Relay only records, with the number of decimals its base units carry.
551
+ */
552
+ declare const leaderboardPoolUnitSchema: z.ZodUnion<readonly [z.ZodLiteral<"points">, z.ZodObject<{
553
+ code: z.ZodString;
554
+ decimals: z.ZodNumber;
555
+ }, z.core.$strict>]>;
556
+ type LeaderboardPoolUnit = z.infer<typeof leaderboardPoolUnitSchema>;
557
+ /**
558
+ * A pool prize: a fixed amount split over the frozen eligible members in proportion to their
559
+ * scores. Each pool share rounds down, and the base units left over go one each to the largest
560
+ * remainders, earlier positions first, so the shares sum exactly to the pool.
561
+ */
562
+ declare const leaderboardPoolSchema: z.ZodObject<{
563
+ amount: z.ZodString;
564
+ unit: z.ZodUnion<readonly [z.ZodLiteral<"points">, z.ZodObject<{
565
+ code: z.ZodString;
566
+ decimals: z.ZodNumber;
567
+ }, z.core.$strict>]>;
568
+ ledger: z.ZodOptional<z.ZodString>;
569
+ minScore: z.ZodOptional<z.ZodNumber>;
570
+ }, z.core.$strict>;
571
+ type LeaderboardPool = z.infer<typeof leaderboardPoolSchema>;
681
572
  declare const leaderboardSettlementPolicySchema: z.ZodObject<{
682
573
  at: z.ZodLiteral<"window-end">;
683
574
  ties: z.ZodEnum<{
@@ -713,6 +604,15 @@ declare const leaderboardSettlementPolicySchema: z.ZodObject<{
713
604
  tier: z.ZodString;
714
605
  }, z.core.$strict>]>>;
715
606
  }, z.core.$strict>>;
607
+ pool: z.ZodOptional<z.ZodObject<{
608
+ amount: z.ZodString;
609
+ unit: z.ZodUnion<readonly [z.ZodLiteral<"points">, z.ZodObject<{
610
+ code: z.ZodString;
611
+ decimals: z.ZodNumber;
612
+ }, z.core.$strict>]>;
613
+ ledger: z.ZodOptional<z.ZodString>;
614
+ minScore: z.ZodOptional<z.ZodNumber>;
615
+ }, z.core.$strict>>;
716
616
  }, z.core.$strict>;
717
617
  type LeaderboardSettlementPolicy = z.infer<typeof leaderboardSettlementPolicySchema>;
718
618
  declare const leaderboardDefinitionSchema: z.ZodObject<{
@@ -803,6 +703,15 @@ declare const leaderboardDefinitionSchema: z.ZodObject<{
803
703
  tier: z.ZodString;
804
704
  }, z.core.$strict>]>>;
805
705
  }, z.core.$strict>>;
706
+ pool: z.ZodOptional<z.ZodObject<{
707
+ amount: z.ZodString;
708
+ unit: z.ZodUnion<readonly [z.ZodLiteral<"points">, z.ZodObject<{
709
+ code: z.ZodString;
710
+ decimals: z.ZodNumber;
711
+ }, z.core.$strict>]>;
712
+ ledger: z.ZodOptional<z.ZodString>;
713
+ minScore: z.ZodOptional<z.ZodNumber>;
714
+ }, z.core.$strict>>;
806
715
  }, z.core.$strict>>;
807
716
  }, z.core.$strict>;
808
717
  /** Known leaderboard data is read separately from its strict authoring definition. */
@@ -894,6 +803,15 @@ declare const leaderboardDefinitionResponseSchema: z.ZodObject<{
894
803
  tier: z.ZodString;
895
804
  }, z.core.$strict>]>>;
896
805
  }, z.core.$strict>>;
806
+ pool: z.ZodOptional<z.ZodObject<{
807
+ amount: z.ZodString;
808
+ unit: z.ZodUnion<readonly [z.ZodLiteral<"points">, z.ZodObject<{
809
+ code: z.ZodString;
810
+ decimals: z.ZodNumber;
811
+ }, z.core.$strict>]>;
812
+ ledger: z.ZodOptional<z.ZodString>;
813
+ minScore: z.ZodOptional<z.ZodNumber>;
814
+ }, z.core.$strict>>;
897
815
  }, z.core.$strict>>;
898
816
  }, z.core.$strict>;
899
817
  type LeaderboardDefinition = z.infer<typeof leaderboardDefinitionSchema>;
@@ -940,6 +858,15 @@ declare const leaderboardAuthoringSchema: z.ZodObject<{
940
858
  tier: z.ZodString;
941
859
  }, z.core.$strict>]>>;
942
860
  }, z.core.$strict>>;
861
+ pool: z.ZodOptional<z.ZodObject<{
862
+ amount: z.ZodString;
863
+ unit: z.ZodUnion<readonly [z.ZodLiteral<"points">, z.ZodObject<{
864
+ code: z.ZodString;
865
+ decimals: z.ZodNumber;
866
+ }, z.core.$strict>]>;
867
+ ledger: z.ZodOptional<z.ZodString>;
868
+ minScore: z.ZodOptional<z.ZodNumber>;
869
+ }, z.core.$strict>>;
943
870
  }, z.core.$strict>>;
944
871
  score: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
945
872
  kind: z.ZodLiteral<"balance">;
@@ -1029,6 +956,15 @@ declare const leaderboardArtifactSchema: z.ZodUnion<readonly [z.ZodObject<{
1029
956
  tier: z.ZodString;
1030
957
  }, z.core.$strict>]>>;
1031
958
  }, z.core.$strict>>;
959
+ pool: z.ZodOptional<z.ZodObject<{
960
+ amount: z.ZodString;
961
+ unit: z.ZodUnion<readonly [z.ZodLiteral<"points">, z.ZodObject<{
962
+ code: z.ZodString;
963
+ decimals: z.ZodNumber;
964
+ }, z.core.$strict>]>;
965
+ ledger: z.ZodOptional<z.ZodString>;
966
+ minScore: z.ZodOptional<z.ZodNumber>;
967
+ }, z.core.$strict>>;
1032
968
  }, z.core.$strict>>;
1033
969
  score: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
1034
970
  kind: z.ZodLiteral<"balance">;
@@ -1168,6 +1104,15 @@ declare const publishedLeaderboardSchema: z.ZodObject<{
1168
1104
  tier: z.ZodString;
1169
1105
  }, z.core.$strict>]>>;
1170
1106
  }, z.core.$strict>>;
1107
+ pool: z.ZodOptional<z.ZodObject<{
1108
+ amount: z.ZodString;
1109
+ unit: z.ZodUnion<readonly [z.ZodLiteral<"points">, z.ZodObject<{
1110
+ code: z.ZodString;
1111
+ decimals: z.ZodNumber;
1112
+ }, z.core.$strict>]>;
1113
+ ledger: z.ZodOptional<z.ZodString>;
1114
+ minScore: z.ZodOptional<z.ZodNumber>;
1115
+ }, z.core.$strict>>;
1171
1116
  }, z.core.$strict>>;
1172
1117
  }, z.core.$strict>;
1173
1118
  publishedAt: z.ZodNumber;
@@ -1446,6 +1391,15 @@ declare const leaderboardPreviewSchema: z.ZodObject<{
1446
1391
  tier: z.ZodString;
1447
1392
  }, z.core.$strict>]>>;
1448
1393
  }, z.core.$strict>>;
1394
+ pool: z.ZodOptional<z.ZodObject<{
1395
+ amount: z.ZodString;
1396
+ unit: z.ZodUnion<readonly [z.ZodLiteral<"points">, z.ZodObject<{
1397
+ code: z.ZodString;
1398
+ decimals: z.ZodNumber;
1399
+ }, z.core.$strict>]>;
1400
+ ledger: z.ZodOptional<z.ZodString>;
1401
+ minScore: z.ZodOptional<z.ZodNumber>;
1402
+ }, z.core.$strict>>;
1449
1403
  }, z.core.$strict>>;
1450
1404
  }, z.core.$strict>;
1451
1405
  publishedAt: z.ZodNumber;
@@ -1859,6 +1813,29 @@ declare const leaderboardSettlementRowSchema: z.ZodObject<{
1859
1813
  prizes: z.ZodArray<z.ZodNumber>;
1860
1814
  completion: z.ZodNullable<z.ZodString>;
1861
1815
  revokedAt: z.ZodNullable<z.ZodNumber>;
1816
+ share: z.ZodOptional<z.ZodString>;
1817
+ }, z.core.$strip>;
1818
+ /**
1819
+ * The pool a settlement froze, with what it allocated. `unallocated` is the part no member
1820
+ * received: all of it when no eligible member scored above the pool's minimum.
1821
+ */
1822
+ declare const leaderboardSettlementPoolSchema: z.ZodObject<{
1823
+ allocated: z.ZodString;
1824
+ unallocated: z.ZodString;
1825
+ amount: z.ZodString;
1826
+ unit: z.ZodUnion<readonly [z.ZodLiteral<"points">, z.ZodObject<{
1827
+ code: z.ZodString;
1828
+ decimals: z.ZodNumber;
1829
+ }, z.core.$strict>]>;
1830
+ ledger: z.ZodOptional<z.ZodString>;
1831
+ minScore: z.ZodOptional<z.ZodNumber>;
1832
+ }, z.core.$strip>;
1833
+ type LeaderboardSettlementPool = z.infer<typeof leaderboardSettlementPoolSchema>;
1834
+ /** Content a settlement froze at its last good measurement, because the closing one never came. */
1835
+ declare const leaderboardSettlementUnmeasuredSchema: z.ZodObject<{
1836
+ content: z.ZodString;
1837
+ member: z.ZodString;
1838
+ observedAt: z.ZodNullable<z.ZodNumber>;
1862
1839
  }, z.core.$strip>;
1863
1840
  declare const leaderboardSettlementSchema: z.ZodObject<{
1864
1841
  id: z.ZodString;
@@ -1913,6 +1890,22 @@ declare const leaderboardSettlementSchema: z.ZodObject<{
1913
1890
  }, z.core.$strict>]>>;
1914
1891
  }, z.core.$strict>>;
1915
1892
  excluded: z.ZodArray<z.ZodString>;
1893
+ unmeasured: z.ZodOptional<z.ZodArray<z.ZodObject<{
1894
+ content: z.ZodString;
1895
+ member: z.ZodString;
1896
+ observedAt: z.ZodNullable<z.ZodNumber>;
1897
+ }, z.core.$strip>>>;
1898
+ pool: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1899
+ allocated: z.ZodString;
1900
+ unallocated: z.ZodString;
1901
+ amount: z.ZodString;
1902
+ unit: z.ZodUnion<readonly [z.ZodLiteral<"points">, z.ZodObject<{
1903
+ code: z.ZodString;
1904
+ decimals: z.ZodNumber;
1905
+ }, z.core.$strict>]>;
1906
+ ledger: z.ZodOptional<z.ZodString>;
1907
+ minScore: z.ZodOptional<z.ZodNumber>;
1908
+ }, z.core.$strip>>>;
1916
1909
  rows: z.ZodArray<z.ZodObject<{
1917
1910
  member: z.ZodString;
1918
1911
  score: z.ZodNumber;
@@ -1922,6 +1915,7 @@ declare const leaderboardSettlementSchema: z.ZodObject<{
1922
1915
  prizes: z.ZodArray<z.ZodNumber>;
1923
1916
  completion: z.ZodNullable<z.ZodString>;
1924
1917
  revokedAt: z.ZodNullable<z.ZodNumber>;
1918
+ share: z.ZodOptional<z.ZodString>;
1925
1919
  }, z.core.$strip>>;
1926
1920
  }, z.core.$strip>;
1927
1921
  type LeaderboardSettlement = z.infer<typeof leaderboardSettlementSchema>;
@@ -2740,8 +2734,10 @@ declare const projectGroupAuthoringSchema: z.ZodPipe<z.ZodObject<{
2740
2734
  title?: string | undefined;
2741
2735
  }>>;
2742
2736
  /**
2743
- * Define one project group for prerequisites, leaderboards, and referrals. The handle names the
2744
- * 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
2745
2741
  * `management.groups`.
2746
2742
  */
2747
2743
  declare function defineGroup(input: Omit<z.input<typeof projectGroupAuthoringSchema>, "key" | "id"> & AuthoringIdentity): {
@@ -2821,4 +2817,4 @@ declare const groupMemberPageSchema: z.ZodObject<{
2821
2817
  /** @compat output */
2822
2818
  type GroupMemberPage = z.infer<typeof groupMemberPageSchema>;
2823
2819
 
2824
- export { campaignViewSchema as $, type AvailabilityWindow as A, type EngagementDefinition as B, type CampaignDefinition as C, type EngagementRuleVersionPage as D, type EngagementBudget as E, type GroupMemberPage as F, type GroupMember as G, type GroupPage as H, type GroupPageQuery as I, type LeaderboardExclusionGroup as J, type KnownPointEntryKind as K, type LeaderboardDefinition as L, type MemberCampaignEnrollmentInput as M, type LeaderboardSettlement as N, type LeaderboardSettlementPolicy as O, type PointBalance as P, type LeaderboardSettlementSummary as Q, type ReferralDefinition as R, type ManagedGroup as S, type ManagedPointHistoryPage as T, type ManagedPointLedger as U, type PointLedger as V, addGroupMemberSchema as W, availabilityWindowSchema as X, campaignDefinitionSchema as Y, campaignEnrollmentInputSchema as Z, campaignEnrollmentSchema as _, type CampaignEnrollment as a, pointsMutationSchema as a$, campaignWithdrawalInputSchema as a0, createGroupSchema as a1, createPointLedgerSchema as a2, engagementArtifactSchema as a3, engagementBoundaryPageSchema as a4, engagementBudgetSchema as a5, engagementChangePreviewInputSchema as a6, engagementChangePreviewSchema as a7, engagementChangeSchema as a8, engagementDefinitionSchema as a9, leaderboardPrizeRewardSchema as aA, leaderboardPrizeSchema as aB, leaderboardQuerySchema as aC, leaderboardRowSchema as aD, leaderboardSettlementApprovalSchema as aE, leaderboardSettlementPolicySchema as aF, leaderboardSettlementRowSchema as aG, leaderboardSettlementSchema as aH, leaderboardSettlementStatusSchema as aI, leaderboardSettlementSummarySchema as aJ, leaderboardWindowSchema as aK, managedGroupSchema as aL, managedPointHistoryPageSchema as aM, managedPointLedgerSchema as aN, memberCampaignEnrollmentInputSchema as aO, memberCampaignWithdrawalInputSchema as aP, pointBalanceSchema as aQ, pointBalancesSchema as aR, pointEntrySchema as aS, pointHistoryPageSchema as aT, pointHistoryQuerySchema as aU, pointLedgerArtifactSchema as aV, pointLedgerPropertiesSchema as aW, pointLedgerReferenceSchema as aX, pointLedgerSchema as aY, pointsAccountSchema as aZ, pointsEntrySchema as a_, engagementDeploymentEntrySchema as aa, engagementPageSchema as ab, engagementPublishSchema as ac, engagementRuleSchema as ad, engagementRuleVersionPageSchema as ae, engagementScoreInputSchema as af, engagementScoreSchema as ag, engagementSettlementSchema as ah, engagementVersionPageSchema as ai, engagementVersionQuerySchema as aj, groupMemberPageSchema as ak, groupMemberSchema as al, groupPageQuerySchema as am, groupPageSchema as an, leaderboardArtifactSchema as ao, leaderboardAuthoringSchema as ap, leaderboardDefinitionResponseSchema as aq, leaderboardExclusionGroupBindingSchema as ar, leaderboardExclusionGroupSchema as as, leaderboardExclusionSchema as at, leaderboardGroupSchema as au, leaderboardHistoryPageSchema as av, leaderboardHistoryQuerySchema as aw, leaderboardPageSchema as ax, leaderboardPlacementSchema as ay, leaderboardPreviewSchema as az, type CampaignEnrollmentInput as b, pointsResultSchema as b0, projectGroupKey as b1, projectGroupSchema as b2, publishedLeaderboardSchema as b3, publishedReferralSchema as b4, referralAccountSchema as b5, referralArtifactSchema as b6, referralControlSchema as b7, referralDefinitionSchema as b8, referralHistorySchema as b9, referralManagementSchema as ba, referralQualificationSchema as bb, referralRelationshipSchema as bc, referralRewardResolutionSchema as bd, referralSummarySchema as be, referralSuspensionSchema as bf, removeGroupMemberSchema as bg, updateGroupSchema as bh, type CampaignView as c, type CampaignWithdrawalInput as d, type LeaderboardHistoryPage as e, type LeaderboardHistoryQuery as f, type LeaderboardPage as g, type LeaderboardPlacement as h, type LeaderboardQuery as i, type MemberCampaignWithdrawalInput as j, type PointBalances as k, type PointEntry as l, PointEntryKind as m, type PointHistoryPage as n, type PointHistoryQuery as o, type PointLedgerReference as p, type ProjectGroup as q, type ProjectGroupReference as r, leaderboardDefinitionSchema as s, type AuthoringIdentity as t, pointLedgerDeclarationSchema as u, referralAuthoringSchema as v, defineCampaign as w, defineGroup as x, referralAcceptSchema as y, engagementPageQuerySchema as z };
2820
+ export { engagementChangePreviewSchema as $, type AvailabilityWindow as A, type LeaderboardSettlement as B, type CampaignDefinition as C, type LeaderboardSettlementPolicy as D, type EngagementBudget as E, type LeaderboardSettlementPool as F, type GroupMember as G, type LeaderboardSettlementSummary as H, type ManagedGroup as I, type ManagedPointHistoryPage as J, addGroupMemberSchema as K, type LeaderboardDefinition as L, type MemberCampaignEnrollmentInput as M, availabilityWindowSchema as N, baseUnitsSchema as O, type ProjectGroup as P, campaignDefinitionSchema as Q, type ReferralDefinition as R, campaignEnrollmentInputSchema as S, campaignEnrollmentSchema as T, campaignViewSchema as U, campaignWithdrawalInputSchema as V, createGroupSchema as W, engagementArtifactSchema as X, engagementBoundaryPageSchema as Y, engagementBudgetSchema as Z, engagementChangePreviewInputSchema as _, type CampaignEnrollment as a, referralRewardResolutionSchema as a$, engagementChangeSchema as a0, engagementDefinitionSchema as a1, engagementDeploymentEntrySchema as a2, engagementPageSchema as a3, engagementPublishSchema as a4, engagementRuleSchema as a5, engagementRuleVersionPageSchema as a6, engagementScoreInputSchema as a7, engagementScoreSchema as a8, engagementSettlementSchema as a9, leaderboardSettlementPoolSchema as aA, leaderboardSettlementRowSchema as aB, leaderboardSettlementSchema as aC, leaderboardSettlementStatusSchema as aD, leaderboardSettlementSummarySchema as aE, leaderboardSettlementUnmeasuredSchema as aF, leaderboardWindowSchema as aG, managedGroupSchema as aH, managedPointHistoryPageSchema as aI, memberCampaignEnrollmentInputSchema as aJ, memberCampaignWithdrawalInputSchema as aK, pointsAccountSchema as aL, pointsEntrySchema as aM, pointsMutationSchema as aN, pointsResultSchema as aO, projectGroupKey as aP, projectGroupSchema as aQ, publishedLeaderboardSchema as aR, publishedReferralSchema as aS, referralAccountSchema as aT, referralArtifactSchema as aU, referralControlSchema as aV, referralDefinitionSchema as aW, referralHistorySchema as aX, referralManagementSchema as aY, referralQualificationSchema as aZ, referralRelationshipSchema as a_, engagementVersionPageSchema as aa, engagementVersionQuerySchema as ab, groupMemberPageSchema as ac, groupMemberSchema as ad, groupPageQuerySchema as ae, groupPageSchema as af, leaderboardArtifactSchema as ag, leaderboardAuthoringSchema as ah, leaderboardDefinitionResponseSchema as ai, leaderboardExclusionGroupBindingSchema as aj, leaderboardExclusionGroupSchema as ak, leaderboardExclusionSchema as al, leaderboardGroupSchema as am, leaderboardHistoryPageSchema as an, leaderboardHistoryQuerySchema as ao, leaderboardPageSchema as ap, leaderboardPlacementSchema as aq, leaderboardPoolSchema as ar, leaderboardPoolUnitSchema as as, leaderboardPreviewSchema as at, leaderboardPrizeRewardSchema as au, leaderboardPrizeSchema as av, leaderboardQuerySchema as aw, leaderboardRowSchema as ax, leaderboardSettlementApprovalSchema as ay, leaderboardSettlementPolicySchema as az, type CampaignEnrollmentInput as b, referralSummarySchema as b0, referralSuspensionSchema as b1, removeGroupMemberSchema as b2, updateGroupSchema as b3, type CampaignView as c, type CampaignWithdrawalInput as d, type LeaderboardHistoryPage as e, type LeaderboardHistoryQuery as f, type LeaderboardPage as g, type LeaderboardPlacement as h, type LeaderboardQuery as i, type MemberCampaignWithdrawalInput as j, type ProjectGroupReference as k, leaderboardDefinitionSchema as l, type AuthoringIdentity as m, defineCampaign as n, defineGroup as o, referralAcceptSchema as p, engagementPageQuerySchema as q, referralAuthoringSchema as r, type EngagementDefinition as s, type EngagementRuleVersionPage as t, type GroupMemberPage as u, type GroupPage as v, type GroupPageQuery as w, type LeaderboardExclusionGroup as x, type LeaderboardPool as y, type LeaderboardPoolUnit as z };
package/dist/index.d.ts CHANGED
@@ -1,15 +1,15 @@
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-CH1RZekg.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-CzNtl8UO.js';
4
- export { A as Attempt, a as AttemptStatus, E as Entitlement, b as EvaluatorProgress, K as KnownAttemptStatus, c as KnownTrackerSkipCode, M as MemberProgress, Q as QuestBudgetView, d as QuestPresentation, e as QuestProfile, f as QuizEvidence, R as Reward, S as SubmissionEvidence, g as SubmitInput, T as TieredRewardReference, h as TrackerSkipCode } from './schema-BJ9bOgpN.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
+ 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-BTlOg8sl.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, K as KnownPointEntryKind, 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 PointBalance, k as PointBalances, l as PointEntry, m as PointEntryKind, n as PointHistoryPage, o as PointHistoryQuery, p as PointLedgerReference, q as ProjectGroup, r as ProjectGroupReference, R as ReferralDefinition } from './groups-B5R1RCsl.js';
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-CVyZHxir.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-BNah53go.js';
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-Cdv4BSd_.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
+ 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-wTiYGdgA.js';
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';
15
15
  export { P as ParticipantDelivery } from './participant-rewards-BcWkBRn_.js';
package/dist/index.js CHANGED
@@ -5,22 +5,22 @@ import {
5
5
  import {
6
6
  QuestUpdatedError,
7
7
  createRelayClient
8
- } from "./chunk-JL7J3EQQ.js";
8
+ } from "./chunk-NK6EER33.js";
9
9
  import {
10
10
  createRelayAction
11
- } from "./chunk-YVC3B72P.js";
11
+ } from "./chunk-INSWI2VZ.js";
12
12
  import {
13
13
  QuestOutcomeState
14
- } from "./chunk-ZJ3FVZRP.js";
14
+ } from "./chunk-RBPMT53S.js";
15
+ import "./chunk-BJYMTCWG.js";
15
16
  import {
16
17
  PointEntryKind
17
- } from "./chunk-CCE2JWES.js";
18
- import "./chunk-2NUD237O.js";
19
- import "./chunk-XFAYQFRO.js";
20
- import "./chunk-RP4LLEON.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-53JMTUWG.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-IELNFM3V.js";
32
+ } from "./chunk-BHHUSBSD.js";
33
33
  export {
34
34
  AttemptStatus,
35
35
  PointEntryKind,