@domino-sdk/relay 1.11.1 → 1.14.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/README.md +1 -0
  2. package/build.mjs +15 -0
  3. package/dist/accounts-5ciAkCMP.d.ts +147 -0
  4. package/dist/{activity-CNiPDPK6.d.ts → activity-D_R3J-gU.d.ts} +115 -115
  5. package/dist/attempt-captures-DZldPZJc.d.ts +285 -0
  6. package/dist/authoring.d.ts +49 -47
  7. package/dist/authoring.js +6 -4
  8. package/dist/{automatic-outcomes-kPIDv6X_.d.ts → automatic-outcomes-6lJGnSDe.d.ts} +1 -1
  9. package/dist/browser.d.ts +8 -7
  10. package/dist/browser.js +7 -6
  11. package/dist/capability-error-oTd3eYFH.d.ts +151 -0
  12. package/dist/chunk-2UAVZCMH.js +314 -0
  13. package/dist/chunk-5TS3OAWS.js +470 -0
  14. package/dist/{chunk-PUDL4JBY.js → chunk-6DD7DVNQ.js} +2 -2
  15. package/dist/{chunk-AGFUDCNM.js → chunk-C3CB4WIQ.js} +1 -1
  16. package/dist/{chunk-T657WO56.js → chunk-LLMJ2SUT.js} +6 -2
  17. package/dist/chunk-NIYCAW2I.js +79 -0
  18. package/dist/chunk-UJACD6K2.js +987 -0
  19. package/dist/{chunk-XK5E4HAS.js → chunk-VBHFJH3P.js} +80 -28
  20. package/dist/chunk-W335CWYJ.js +53 -0
  21. package/dist/{chunk-X7ECZ3AK.js → chunk-XMBM2XD5.js} +1 -1
  22. package/dist/{chunk-2K2QBPAD.js → chunk-ZLYBUM7K.js} +6 -4
  23. package/dist/{client-fUSERMAC.d.ts → client-BTd_CyX3.d.ts} +26 -6
  24. package/dist/{groups-BK8ts2yK.d.ts → groups-4Jb3uYFO.d.ts} +1 -1
  25. package/dist/{images-aw6W7vFZ.d.ts → images-D5kpqHxv.d.ts} +1 -1
  26. package/dist/index.d.ts +9 -8
  27. package/dist/index.js +8 -6
  28. package/dist/{capability-error-ty3SqD_b.d.ts → integrations-Cr9EhGI_.d.ts} +1 -149
  29. package/dist/internal.d.ts +32 -5
  30. package/dist/internal.js +8 -3
  31. package/dist/{offers-C2FANzrG.d.ts → offers-BFI5t-e-.d.ts} +2 -2
  32. package/dist/{pages-Chb6OZSB.d.ts → pages-nIoMT9J3.d.ts} +1 -1
  33. package/dist/{participant-activity-DkL3nY5a.d.ts → participant-activity-DYdUUhw2.d.ts} +1 -0
  34. package/dist/portal-proxy.js +1 -1
  35. package/dist/react/index.d.ts +246 -177
  36. package/dist/react/index.js +954 -383
  37. package/dist/{referral-reward-kinds-M3f0PdiR.d.ts → referral-reward-kinds-DnvQXL8L.d.ts} +100 -3
  38. package/dist/{schema-DEM8y8Fm.d.ts → schema-K-Pg5lPz.d.ts} +1 -1
  39. package/dist/schema.d.ts +316 -314
  40. package/dist/schema.js +16 -14
  41. package/dist/server/index.d.ts +2546 -377
  42. package/dist/server/index.js +594 -841
  43. package/dist/{sign-in-options-iWOp9puZ.d.ts → sign-in-options-DBjMzgnu.d.ts} +2 -2
  44. package/dist/submission-input-CPIsJt-_.d.ts +146 -0
  45. package/dist/testing.d.ts +641 -0
  46. package/dist/testing.js +1282 -0
  47. package/package.json +6 -2
  48. package/dist/chunk-OCXGG75K.js +0 -171
  49. package/dist/chunk-ZFABFKIY.js +0 -1295
  50. package/dist/submission-input-BbBJTVlT.d.ts +0 -290
@@ -0,0 +1,285 @@
1
+ import { O as OpenIdentityKind } from './schema-K-Pg5lPz.js';
2
+ import { z } from 'zod';
3
+
4
+ /** One capability call of the captured evaluation run, as Relay stored it. */
5
+ declare const capturedFactSchema: z.ZodObject<{
6
+ sequence: z.ZodNumber;
7
+ request: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
8
+ outcome: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
9
+ value: z.ZodJSONSchema;
10
+ }, z.core.$strip>, z.ZodObject<{
11
+ error: z.ZodObject<{
12
+ code: z.ZodString;
13
+ message: z.ZodString;
14
+ retryable: z.ZodBoolean;
15
+ }, z.core.$loose>;
16
+ }, z.core.$strip>]>>;
17
+ captured: z.ZodBoolean;
18
+ }, z.core.$strip>;
19
+ /** @compat output */
20
+ type CapturedFact = z.infer<typeof capturedFactSchema>;
21
+ /**
22
+ * Everything one evaluation run of a test-environment attempt read: the release's settings and
23
+ * rewards, the attempt's pinned input, clock, seed and calendar, and each capability call with its
24
+ * captured answer. `replayAttempt` from `@domino-sdk/relay/testing` evaluates quest code against
25
+ * it locally. Relay serves captures only from the test environment.
26
+ */
27
+ declare const attemptCaptureSchema: z.ZodObject<{
28
+ format: z.ZodLiteral<1>;
29
+ attempt: z.ZodString;
30
+ environment: z.ZodLiteral<"test">;
31
+ quest: z.ZodObject<{
32
+ id: z.ZodString;
33
+ key: z.ZodNullable<z.ZodString>;
34
+ }, z.core.$strip>;
35
+ release: z.ZodString;
36
+ evaluationRun: z.ZodNumber;
37
+ protocol: z.ZodNumber;
38
+ seed: z.ZodString;
39
+ now: z.ZodNumber;
40
+ context: z.ZodObject<{
41
+ settings: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodObject<{
42
+ id: z.ZodString;
43
+ prompt: z.ZodString;
44
+ choices: z.ZodArray<z.ZodObject<{
45
+ id: z.ZodString;
46
+ label: z.ZodString;
47
+ }, z.core.$strict>>;
48
+ correct: z.ZodString;
49
+ }, z.core.$strict>>]>>;
50
+ rewards: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
51
+ kind: z.ZodDefault<z.ZodLiteral<"points">>;
52
+ balance: z.ZodString;
53
+ amount: z.ZodNumber;
54
+ }, z.core.$strict>, z.ZodObject<{
55
+ kind: z.ZodLiteral<"tier">;
56
+ reward: z.ZodObject<{
57
+ id: z.ZodString;
58
+ title: z.ZodString;
59
+ tiers: z.ZodArray<z.ZodObject<{
60
+ id: z.ZodString;
61
+ title: z.ZodString;
62
+ }, z.core.$strict>>;
63
+ inventory: z.ZodObject<{
64
+ kind: z.ZodLiteral<"untracked">;
65
+ }, z.core.$strict>;
66
+ fulfillment: z.ZodDiscriminatedUnion<[z.ZodObject<{
67
+ kind: z.ZodLiteral<"staff-handover">;
68
+ }, z.core.$strict>, z.ZodObject<{
69
+ kind: z.ZodLiteral<"automatic">;
70
+ }, z.core.$strict>], "kind">;
71
+ }, z.core.$strict>;
72
+ tier: z.ZodString;
73
+ }, z.core.$strict>, z.ZodObject<{
74
+ kind: z.ZodLiteral<"integration">;
75
+ provider: z.ZodLiteral<"discord">;
76
+ action: z.ZodLiteral<"grant-role">;
77
+ roleId: z.ZodString;
78
+ }, z.core.$strict>]>>;
79
+ humanReview: z.ZodBoolean;
80
+ integrations: z.ZodArray<z.ZodString>;
81
+ member: z.ZodString;
82
+ input: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
83
+ tracker: z.ZodNullable<z.ZodObject<{
84
+ tracker: z.ZodString;
85
+ key: z.ZodString;
86
+ beneficiary: z.ZodString;
87
+ record: z.ZodObject<{
88
+ id: z.ZodString;
89
+ source: z.ZodString;
90
+ occurredAt: z.ZodNumber;
91
+ observedAt: z.ZodNumber;
92
+ firstSeenAt: z.ZodNumber;
93
+ author: z.ZodNullable<z.ZodObject<{
94
+ id: z.ZodString;
95
+ verified: z.ZodNullable<z.ZodBoolean>;
96
+ kind: z.ZodOptional<z.ZodType<OpenIdentityKind, unknown, z.core.$ZodTypeInternals<OpenIdentityKind, unknown>>>;
97
+ }, z.core.$strip>>;
98
+ accounts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
99
+ kind: z.ZodOptional<z.ZodType<OpenIdentityKind, unknown, z.core.$ZodTypeInternals<OpenIdentityKind, unknown>>>;
100
+ id: z.ZodString;
101
+ }, z.core.$strip>>>;
102
+ data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
103
+ removed: z.ZodBoolean;
104
+ }, z.core.$strip>;
105
+ content: z.ZodOptional<z.ZodObject<{
106
+ revision: z.ZodString;
107
+ observation: z.ZodString;
108
+ body: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
109
+ }, z.core.$strip>>;
110
+ attribution: z.ZodObject<{
111
+ member: z.ZodString;
112
+ capturedAt: z.ZodNumber;
113
+ account: z.ZodUnion<readonly [z.ZodObject<{
114
+ provider: z.ZodLiteral<"wallet">;
115
+ id: z.ZodString;
116
+ revision: z.ZodNumber;
117
+ linkedAt: z.ZodNullable<z.ZodNumber>;
118
+ }, z.core.$strip>, z.ZodObject<{
119
+ issuer: z.ZodString;
120
+ subject: z.ZodString;
121
+ revision: z.ZodNumber;
122
+ linkedAt: z.ZodNullable<z.ZodNumber>;
123
+ provider: z.ZodLiteral<"x">;
124
+ }, z.core.$strip>, z.ZodObject<{
125
+ issuer: z.ZodString;
126
+ subject: z.ZodString;
127
+ revision: z.ZodNumber;
128
+ linkedAt: z.ZodNullable<z.ZodNumber>;
129
+ provider: z.ZodLiteral<"discord">;
130
+ }, z.core.$strip>, z.ZodObject<{
131
+ provider: z.ZodLiteral<"member">;
132
+ id: z.ZodString;
133
+ }, z.core.$strip>, z.ZodObject<{
134
+ provider: z.ZodTemplateLiteral<`app:${string}`>;
135
+ subject: z.ZodString;
136
+ revision: z.ZodNumber;
137
+ linkedAt: z.ZodNullable<z.ZodNumber>;
138
+ }, z.core.$strip>, z.ZodObject<{
139
+ provider: z.ZodString;
140
+ }, z.core.$strip>]>;
141
+ }, z.core.$strip>;
142
+ enrolledAt: z.ZodOptional<z.ZodNumber>;
143
+ }, z.core.$strip>>;
144
+ eligibleAt: z.ZodNumber;
145
+ calendar: z.ZodObject<{
146
+ segments: z.ZodArray<z.ZodObject<{
147
+ effectiveAt: z.ZodNumber;
148
+ timeZone: z.ZodString;
149
+ }, z.core.$loose>>;
150
+ }, z.core.$strip>;
151
+ performance: z.ZodNullable<z.ZodObject<{
152
+ contentAttempt: z.ZodString;
153
+ observation: z.ZodString;
154
+ observedAt: z.ZodNumber;
155
+ metrics: z.ZodRecord<z.ZodString, z.ZodNumber>;
156
+ rewards: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
157
+ kind: z.ZodDefault<z.ZodLiteral<"points">>;
158
+ balance: z.ZodString;
159
+ amount: z.ZodNumber;
160
+ }, z.core.$strict>, z.ZodObject<{
161
+ kind: z.ZodLiteral<"tier">;
162
+ reward: z.ZodObject<{
163
+ id: z.ZodString;
164
+ title: z.ZodString;
165
+ tiers: z.ZodArray<z.ZodObject<{
166
+ id: z.ZodString;
167
+ title: z.ZodString;
168
+ }, z.core.$strict>>;
169
+ inventory: z.ZodObject<{
170
+ kind: z.ZodLiteral<"untracked">;
171
+ }, z.core.$strict>;
172
+ fulfillment: z.ZodDiscriminatedUnion<[z.ZodObject<{
173
+ kind: z.ZodLiteral<"staff-handover">;
174
+ }, z.core.$strict>, z.ZodObject<{
175
+ kind: z.ZodLiteral<"automatic">;
176
+ }, z.core.$strict>], "kind">;
177
+ }, z.core.$strict>;
178
+ tier: z.ZodString;
179
+ }, z.core.$strict>, z.ZodObject<{
180
+ kind: z.ZodLiteral<"integration">;
181
+ provider: z.ZodLiteral<"discord">;
182
+ action: z.ZodLiteral<"grant-role">;
183
+ roleId: z.ZodString;
184
+ }, z.core.$strict>]>>;
185
+ }, z.core.$strict>>;
186
+ }, z.core.$strip>;
187
+ facts: z.ZodArray<z.ZodObject<{
188
+ sequence: z.ZodNumber;
189
+ request: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
190
+ outcome: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
191
+ value: z.ZodJSONSchema;
192
+ }, z.core.$strip>, z.ZodObject<{
193
+ error: z.ZodObject<{
194
+ code: z.ZodString;
195
+ message: z.ZodString;
196
+ retryable: z.ZodBoolean;
197
+ }, z.core.$loose>;
198
+ }, z.core.$strip>]>>;
199
+ captured: z.ZodBoolean;
200
+ }, z.core.$strip>>;
201
+ recorded: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
202
+ kind: z.ZodLiteral<"defer">;
203
+ reason: z.ZodString;
204
+ retryAfterMs: z.ZodOptional<z.ZodNumber>;
205
+ until: z.ZodOptional<z.ZodNumber>;
206
+ }, z.core.$strict>, z.ZodObject<{
207
+ current: z.ZodNumber;
208
+ target: z.ZodNumber;
209
+ reason: z.ZodString;
210
+ kind: z.ZodLiteral<"progress">;
211
+ }, z.core.$strict>, z.ZodObject<{
212
+ kind: z.ZodLiteral<"accept">;
213
+ rewards: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
214
+ kind: z.ZodDefault<z.ZodLiteral<"points">>;
215
+ balance: z.ZodString;
216
+ amount: z.ZodNumber;
217
+ }, z.core.$strict>, z.ZodObject<{
218
+ kind: z.ZodLiteral<"tier">;
219
+ reward: z.ZodObject<{
220
+ id: z.ZodString;
221
+ title: z.ZodString;
222
+ tiers: z.ZodArray<z.ZodObject<{
223
+ id: z.ZodString;
224
+ title: z.ZodString;
225
+ }, z.core.$strict>>;
226
+ inventory: z.ZodObject<{
227
+ kind: z.ZodLiteral<"untracked">;
228
+ }, z.core.$strict>;
229
+ fulfillment: z.ZodDiscriminatedUnion<[z.ZodObject<{
230
+ kind: z.ZodLiteral<"staff-handover">;
231
+ }, z.core.$strict>, z.ZodObject<{
232
+ kind: z.ZodLiteral<"automatic">;
233
+ }, z.core.$strict>], "kind">;
234
+ }, z.core.$strict>;
235
+ tier: z.ZodString;
236
+ }, z.core.$strict>, z.ZodObject<{
237
+ kind: z.ZodLiteral<"integration">;
238
+ provider: z.ZodLiteral<"discord">;
239
+ action: z.ZodLiteral<"grant-role">;
240
+ roleId: z.ZodString;
241
+ }, z.core.$strict>]>>;
242
+ completionKey: z.ZodOptional<z.ZodString>;
243
+ }, z.core.$strict>, z.ZodObject<{
244
+ kind: z.ZodLiteral<"reject">;
245
+ reason: z.ZodString;
246
+ requestedReview: z.ZodOptional<z.ZodLiteral<true>>;
247
+ }, z.core.$strict>, z.ZodObject<{
248
+ kind: z.ZodLiteral<"review">;
249
+ reason: z.ZodString;
250
+ rewards: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
251
+ kind: z.ZodDefault<z.ZodLiteral<"points">>;
252
+ balance: z.ZodString;
253
+ amount: z.ZodNumber;
254
+ }, z.core.$strict>, z.ZodObject<{
255
+ kind: z.ZodLiteral<"tier">;
256
+ reward: z.ZodObject<{
257
+ id: z.ZodString;
258
+ title: z.ZodString;
259
+ tiers: z.ZodArray<z.ZodObject<{
260
+ id: z.ZodString;
261
+ title: z.ZodString;
262
+ }, z.core.$strict>>;
263
+ inventory: z.ZodObject<{
264
+ kind: z.ZodLiteral<"untracked">;
265
+ }, z.core.$strict>;
266
+ fulfillment: z.ZodDiscriminatedUnion<[z.ZodObject<{
267
+ kind: z.ZodLiteral<"staff-handover">;
268
+ }, z.core.$strict>, z.ZodObject<{
269
+ kind: z.ZodLiteral<"automatic">;
270
+ }, z.core.$strict>], "kind">;
271
+ }, z.core.$strict>;
272
+ tier: z.ZodString;
273
+ }, z.core.$strict>, z.ZodObject<{
274
+ kind: z.ZodLiteral<"integration">;
275
+ provider: z.ZodLiteral<"discord">;
276
+ action: z.ZodLiteral<"grant-role">;
277
+ roleId: z.ZodString;
278
+ }, z.core.$strict>]>>>;
279
+ completionKey: z.ZodOptional<z.ZodString>;
280
+ }, z.core.$strict>], "kind">>;
281
+ }, z.core.$strip>;
282
+ /** @compat output */
283
+ type AttemptCapture = z.infer<typeof attemptCaptureSchema>;
284
+
285
+ export { type AttemptCapture as A, type CapturedFact as C, attemptCaptureSchema as a, capturedFactSchema as c };
@@ -1,16 +1,18 @@
1
- import { x as xContentBodySchema, I as IdentityKind, o as customSourceSchema, W as WithRecordData, p as WithContent, q as WithAccountRoles, r as QuestHandle, L as LedgerReference, G as GroupHandle, n as ResourceHandle, u as TrackerSource, v as trackerDefinitionSchema, y as Tracker, z as TrackerData, B as SourceRoles, C as LedgerHandle, D as xSearchSourceSchema, X as XTweet, F as XContentMetric, H as TrackerTriggerPolicy, J as Where, N as MemberIdentity, O as TrackerTriggerContext, U as TrackerReader, V as TextReviewInput, Y as TextResult, P as PhotoResult, Z as Decision, _ as rewardSchema, $ as TrackerTriggerMode, a0 as RoleOf, a1 as WhereSetting, a2 as ContentBody, a3 as ContentMetricName, a4 as triggerSchema, d as QuestPresentation, e as QuestProfile, f as QuizEvidence, a5 as TieredRewardDefinition } from './schema-DEM8y8Fm.js';
2
- export { a6 as LedgerSetting, a7 as TrackerDataSchema, a8 as TrackerPage, a9 as TrackerReadQuery, aa as trackerDataSchema, ab as trackerTriggerContextSchema } from './schema-DEM8y8Fm.js';
1
+ import { x as xContentBodySchema, I as IdentityKind, j as customSourceSchema, W as WithRecordData, k as WithContent, l as WithAccountRoles, m as QuestHandle, L as LedgerReference, G as GroupHandle, i as ResourceHandle, n as TrackerSource, t as trackerDefinitionSchema, o as Tracker, p as TrackerData, q as SourceRoles, r as LedgerHandle, s as xSearchSourceSchema, X as XTweet, u as XContentMetric, v as TrackerTriggerPolicy, w as Where, y as MemberIdentity, z as TrackerTriggerContext, B as TrackerReader, C as TextReviewInput, D as TextResult, P as PhotoResult, F as Decision, H as rewardSchema, J as TrackerTriggerMode, N as RoleOf, U as WhereSetting, V as ContentBody, Y as ContentMetricName, Z as triggerSchema, d as QuestPresentation, e as QuestProfile, f as QuizEvidence, _ as TieredRewardDefinition } from './schema-K-Pg5lPz.js';
2
+ export { $ as LedgerSetting, a0 as TrackerDataSchema, a1 as TrackerPage, a2 as TrackerReadQuery, a3 as trackerDataSchema, a4 as trackerTriggerContextSchema } from './schema-K-Pg5lPz.js';
3
3
  import { z } from 'zod';
4
4
  export { z } from 'zod';
5
- import { E as EngagementBudget, r as leaderboardDefinitionSchema, q as AuthoringIdentity, s as pointLedgerDeclarationSchema, t as referralAuthoringSchema, C as CampaignDefinition, A as AvailabilityWindow } from './groups-BK8ts2yK.js';
6
- export { u as defineCampaign, v as defineGroup } from './groups-BK8ts2yK.js';
7
- import { d as discordMessagesSourceSchema, D as DiscordMessageData, e as DiscordMessageTextData, f as discordReactionsSourceSchema, g as DiscordReactionData, h as DiscordReader, P as Prerequisite, T as TextEvidence, U as UrlEvidence, b as TextOptions, c as UrlOptions } from './submission-input-BbBJTVlT.js';
8
- export { i as balanceAtLeast, j as completed, k as inGroup } from './submission-input-BbBJTVlT.js';
5
+ import { E as EngagementBudget, r as leaderboardDefinitionSchema, q as AuthoringIdentity, s as pointLedgerDeclarationSchema, t as referralAuthoringSchema, C as CampaignDefinition, A as AvailabilityWindow } from './groups-4Jb3uYFO.js';
6
+ export { u as defineCampaign, v as defineGroup } from './groups-4Jb3uYFO.js';
7
+ import { d as discordMessagesSourceSchema, D as DiscordMessageData, b as DiscordMessageTextData, c as discordReactionsSourceSchema, e as DiscordReactionData, f as DiscordReader } from './accounts-5ciAkCMP.js';
9
8
  import { Q as QuizContent, a as StreakPolicy } from './streaks-CWyq8Px5.js';
10
- import { R as ResourceSource, S as Setting, I as IntegrationModule, X as XReader, B as Budget, a as IntegerSettings } from './capability-error-ty3SqD_b.js';
11
- export { C as CapabilityError, b as CapabilityErrorCode, c as capabilityErrorCodes } from './capability-error-ty3SqD_b.js';
12
- import { I as ImageReader } from './images-aw6W7vFZ.js';
13
- export { d as defineOffer } from './offers-C2FANzrG.js';
9
+ import { R as ResourceSource, S as Setting, I as IntegrationModule, B as Budget, a as IntegerSettings } from './integrations-Cr9EhGI_.js';
10
+ import { P as Prerequisite, T as TextEvidence, U as UrlEvidence, a as TextOptions, b as UrlOptions } from './submission-input-CPIsJt-_.js';
11
+ export { c as balanceAtLeast, d as completed, i as inGroup } from './submission-input-CPIsJt-_.js';
12
+ import { I as ImageReader } from './images-D5kpqHxv.js';
13
+ import { X as XReader } from './capability-error-oTd3eYFH.js';
14
+ export { C as CapabilityError, a as CapabilityErrorCode, c as capabilityErrorCodes } from './capability-error-oTd3eYFH.js';
15
+ export { d as defineOffer } from './offers-BFI5t-e-.js';
14
16
  import { h as WalletReader } from './wallet-CDyo-U4n.js';
15
17
  export { i as CosmosDenom, a as CosmosNetwork, E as EvmChainId, j as WalletBalance, k as WalletBalanceQuery, l as cosmosDenomSchema, m as cosmosNetworkSchema, n as isEvmChainId } from './wallet-CDyo-U4n.js';
16
18
  export { f as formatUnits, p as parseUnits } from './units-CwgsPB_r.js';
@@ -245,8 +247,8 @@ declare function defineLeaderboard(input: Omit<LeaderboardInput, "key" | "id" |
245
247
  kind: "earned";
246
248
  }> | ReturnType<typeof earned>;
247
249
  }): {
248
- balance: string;
249
250
  title: string;
251
+ balance: string;
250
252
  access: "participants" | "public";
251
253
  score: {
252
254
  kind: "balance";
@@ -1012,15 +1014,15 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
1012
1014
  };
1013
1015
  };
1014
1016
  tier: string;
1015
- } | {
1016
- kind: "points";
1017
- balance: string;
1018
- amount: number;
1019
1017
  } | {
1020
1018
  kind: "integration";
1021
1019
  provider: "discord";
1022
1020
  action: "grant-role";
1023
1021
  roleId: string;
1022
+ } | {
1023
+ kind: "points";
1024
+ balance: string;
1025
+ amount: number;
1024
1026
  })[] | ((ctx: {
1025
1027
  settings: z.core.$InferObjectOutput<T, {}>;
1026
1028
  }) => Reward[]);
@@ -1077,9 +1079,6 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
1077
1079
  kind: "resource";
1078
1080
  default: string;
1079
1081
  source: {
1080
- provider: "domino";
1081
- resource: "point-ledger";
1082
- } | {
1083
1082
  provider: "discord";
1084
1083
  resource: "channel";
1085
1084
  types: ("text" | "announcement")[];
@@ -1087,6 +1086,9 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
1087
1086
  provider: "discord";
1088
1087
  resource: "role";
1089
1088
  assignable: boolean;
1089
+ } | {
1090
+ provider: "domino";
1091
+ resource: "point-ledger";
1090
1092
  };
1091
1093
  label: string;
1092
1094
  description?: string | undefined;
@@ -1158,15 +1160,15 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
1158
1160
  };
1159
1161
  };
1160
1162
  tier: string;
1161
- } | {
1162
- kind: "points";
1163
- balance: string;
1164
- amount: number;
1165
1163
  } | {
1166
1164
  kind: "integration";
1167
1165
  provider: "discord";
1168
1166
  action: "grant-role";
1169
1167
  roleId: string;
1168
+ } | {
1169
+ kind: "points";
1170
+ balance: string;
1171
+ amount: number;
1170
1172
  })[];
1171
1173
  humanReview: boolean;
1172
1174
  trigger: {
@@ -1188,7 +1190,7 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
1188
1190
  actor?: "staff" | "member" | undefined;
1189
1191
  } | {
1190
1192
  kind: "manual";
1191
- input: "photo" | "quiz" | "none";
1193
+ input: "none" | "quiz" | "photo";
1192
1194
  actor?: "staff" | "member" | undefined;
1193
1195
  } | {
1194
1196
  kind: "automatic";
@@ -1232,9 +1234,9 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
1232
1234
  path: string;
1233
1235
  equals: string | number | boolean;
1234
1236
  })[] | undefined;
1235
- enrollment?: "required" | "none" | undefined;
1237
+ enrollment?: "none" | "required" | undefined;
1236
1238
  since?: "activation" | "window" | "enrollment" | undefined;
1237
- historical?: "automatic" | "staff" | "claim" | undefined;
1239
+ historical?: "staff" | "claim" | "automatic" | undefined;
1238
1240
  content?: true | undefined;
1239
1241
  } | undefined;
1240
1242
  };
@@ -1257,9 +1259,6 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
1257
1259
  title: string;
1258
1260
  })[];
1259
1261
  completion: {
1260
- kind: "streak";
1261
- days: number;
1262
- } | {
1263
1262
  kind: "progress";
1264
1263
  goal: {
1265
1264
  kind: "count";
@@ -1276,6 +1275,9 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
1276
1275
  durationMs: number;
1277
1276
  };
1278
1277
  repeat: "repeat" | "once";
1278
+ } | {
1279
+ kind: "streak";
1280
+ days: number;
1279
1281
  } | {
1280
1282
  kind: "once";
1281
1283
  } | {
@@ -1301,7 +1303,7 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
1301
1303
  campaign?: {
1302
1304
  key: string;
1303
1305
  title: string;
1304
- enrollment: "required" | "none";
1306
+ enrollment: "none" | "required";
1305
1307
  window?: {
1306
1308
  from: number;
1307
1309
  until: number;
@@ -1409,15 +1411,15 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
1409
1411
  };
1410
1412
  };
1411
1413
  tier: string;
1412
- } | {
1413
- kind: "points";
1414
- balance: string;
1415
- amount: number;
1416
1414
  } | {
1417
1415
  kind: "integration";
1418
1416
  provider: "discord";
1419
1417
  action: "grant-role";
1420
1418
  roleId: string;
1419
+ } | {
1420
+ kind: "points";
1421
+ balance: string;
1422
+ amount: number;
1421
1423
  })[] | ((ctx: {
1422
1424
  settings: z.core.$InferObjectOutput<T, {}>;
1423
1425
  }) => Reward[]);
@@ -1474,9 +1476,6 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
1474
1476
  kind: "resource";
1475
1477
  default: string;
1476
1478
  source: {
1477
- provider: "domino";
1478
- resource: "point-ledger";
1479
- } | {
1480
1479
  provider: "discord";
1481
1480
  resource: "channel";
1482
1481
  types: ("text" | "announcement")[];
@@ -1484,6 +1483,9 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
1484
1483
  provider: "discord";
1485
1484
  resource: "role";
1486
1485
  assignable: boolean;
1486
+ } | {
1487
+ provider: "domino";
1488
+ resource: "point-ledger";
1487
1489
  };
1488
1490
  label: string;
1489
1491
  description?: string | undefined;
@@ -1555,15 +1557,15 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
1555
1557
  };
1556
1558
  };
1557
1559
  tier: string;
1558
- } | {
1559
- kind: "points";
1560
- balance: string;
1561
- amount: number;
1562
1560
  } | {
1563
1561
  kind: "integration";
1564
1562
  provider: "discord";
1565
1563
  action: "grant-role";
1566
1564
  roleId: string;
1565
+ } | {
1566
+ kind: "points";
1567
+ balance: string;
1568
+ amount: number;
1567
1569
  })[];
1568
1570
  humanReview: boolean;
1569
1571
  trigger: {
@@ -1585,7 +1587,7 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
1585
1587
  actor?: "staff" | "member" | undefined;
1586
1588
  } | {
1587
1589
  kind: "manual";
1588
- input: "photo" | "quiz" | "none";
1590
+ input: "none" | "quiz" | "photo";
1589
1591
  actor?: "staff" | "member" | undefined;
1590
1592
  } | {
1591
1593
  kind: "automatic";
@@ -1629,9 +1631,9 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
1629
1631
  path: string;
1630
1632
  equals: string | number | boolean;
1631
1633
  })[] | undefined;
1632
- enrollment?: "required" | "none" | undefined;
1634
+ enrollment?: "none" | "required" | undefined;
1633
1635
  since?: "activation" | "window" | "enrollment" | undefined;
1634
- historical?: "automatic" | "staff" | "claim" | undefined;
1636
+ historical?: "staff" | "claim" | "automatic" | undefined;
1635
1637
  content?: true | undefined;
1636
1638
  } | undefined;
1637
1639
  };
@@ -1654,9 +1656,6 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
1654
1656
  title: string;
1655
1657
  })[];
1656
1658
  completion: {
1657
- kind: "streak";
1658
- days: number;
1659
- } | {
1660
1659
  kind: "progress";
1661
1660
  goal: {
1662
1661
  kind: "count";
@@ -1673,6 +1672,9 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
1673
1672
  durationMs: number;
1674
1673
  };
1675
1674
  repeat: "repeat" | "once";
1675
+ } | {
1676
+ kind: "streak";
1677
+ days: number;
1676
1678
  } | {
1677
1679
  kind: "once";
1678
1680
  } | {
@@ -1698,7 +1700,7 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
1698
1700
  campaign?: {
1699
1701
  key: string;
1700
1702
  title: string;
1701
- enrollment: "required" | "none";
1703
+ enrollment: "none" | "required";
1702
1704
  window?: {
1703
1705
  from: number;
1704
1706
  until: number;
package/dist/authoring.js CHANGED
@@ -12,17 +12,19 @@ import {
12
12
  validateQuestShape
13
13
  } from "./chunk-4OLQYRSA.js";
14
14
  import {
15
- cosmosDenomSchema,
16
- cosmosNetworkSchema,
17
15
  defineOffer,
18
16
  engagementDefinitionSchema,
19
17
  engagementScoreInputSchema,
20
18
  engagementScoreSchema,
21
- isEvmChainId,
22
19
  leaderboardAuthoringSchema,
23
20
  pointLedgerDeclarationSchema,
24
21
  referralAuthoringSchema
25
- } from "./chunk-ZFABFKIY.js";
22
+ } from "./chunk-UJACD6K2.js";
23
+ import {
24
+ cosmosDenomSchema,
25
+ cosmosNetworkSchema,
26
+ isEvmChainId
27
+ } from "./chunk-2UAVZCMH.js";
26
28
  import "./chunk-NPGENI7K.js";
27
29
  import {
28
30
  authoringKey,
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { a as AttemptStatus } from './schema-DEM8y8Fm.js';
2
+ import { a as AttemptStatus } from './schema-K-Pg5lPz.js';
3
3
 
4
4
  declare const collectionCodeSchema: z.ZodString;
5
5
  declare const collectionPassSchema: z.ZodObject<{
package/dist/browser.d.ts CHANGED
@@ -1,13 +1,14 @@
1
- import { n as SubmissionStore, f as RelayClientOptions, R as RelayClient } from './client-fUSERMAC.js';
2
- export { C as CosmosChains, D as DiscoveredWallet, E as Eip1193Provider, a as EmailSignInOption, K as KeplrLike, O as OAuthSignInOption, S as SignInClient, b as SignInIcon, c as SignInMethods, d as SignInOption, e as SignInOptions, f as SignInUnavailable, g as SignInWallet, h as SolanaInjectedProvider, i as StandardWallet, j as StandardWalletAccount, W as WalletSignInOption, k as cosmosChainList, l as cosmosSigner, m as discoverCosmosWallets, n as discoverEvmWallets, o as discoverSignInWallets, p as discoverSolanaWallets, q as evmSigner, s as signInOptions, r as solanaSigner, w as walletStandardSolanaSigner } from './sign-in-options-iWOp9puZ.js';
3
- import './groups-BK8ts2yK.js';
1
+ import { n as SubmissionStore, f as RelayClientOptions, R as RelayClient } from './client-BTd_CyX3.js';
2
+ export { C as CosmosChains, D as DiscoveredWallet, E as Eip1193Provider, a as EmailSignInOption, K as KeplrLike, O as OAuthSignInOption, S as SignInClient, b as SignInIcon, c as SignInMethods, d as SignInOption, e as SignInOptions, f as SignInUnavailable, g as SignInWallet, h as SolanaInjectedProvider, i as StandardWallet, j as StandardWalletAccount, W as WalletSignInOption, k as cosmosChainList, l as cosmosSigner, m as discoverCosmosWallets, n as discoverEvmWallets, o as discoverSignInWallets, p as discoverSolanaWallets, q as evmSigner, s as signInOptions, r as solanaSigner, w as walletStandardSolanaSigner } from './sign-in-options-DBjMzgnu.js';
3
+ import './groups-4Jb3uYFO.js';
4
4
  import 'zod';
5
- import './schema-DEM8y8Fm.js';
6
- import './pages-Chb6OZSB.js';
7
- import './submission-input-BbBJTVlT.js';
5
+ import './schema-K-Pg5lPz.js';
6
+ import './pages-nIoMT9J3.js';
7
+ import './submission-input-CPIsJt-_.js';
8
8
  import './request-error-D_dUPLwo.js';
9
- import './participant-activity-DkL3nY5a.js';
9
+ import './participant-activity-DYdUUhw2.js';
10
10
  import './action-9Xl0StBg.js';
11
+ import './accounts-5ciAkCMP.js';
11
12
  import './profiles-BHMVj0kM.js';
12
13
  import './wallet-CDyo-U4n.js';
13
14
 
package/dist/browser.js CHANGED
@@ -11,14 +11,15 @@ import {
11
11
  signInOptions,
12
12
  solanaSigner,
13
13
  walletStandardSolanaSigner
14
- } from "./chunk-PUDL4JBY.js";
15
- import "./chunk-XK5E4HAS.js";
16
- import "./chunk-X7ECZ3AK.js";
17
- import "./chunk-T657WO56.js";
18
- import "./chunk-ZFABFKIY.js";
14
+ } from "./chunk-6DD7DVNQ.js";
15
+ import "./chunk-VBHFJH3P.js";
16
+ import "./chunk-XMBM2XD5.js";
17
+ import "./chunk-LLMJ2SUT.js";
18
+ import "./chunk-UJACD6K2.js";
19
+ import "./chunk-2UAVZCMH.js";
19
20
  import "./chunk-6QJ3LADK.js";
20
21
  import "./chunk-NPGENI7K.js";
21
- import "./chunk-AGFUDCNM.js";
22
+ import "./chunk-C3CB4WIQ.js";
22
23
  import "./chunk-PT5STHFH.js";
23
24
  import "./chunk-46C33ASD.js";
24
25
  export {