@domino-sdk/relay 1.67.0 → 1.69.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 (81) hide show
  1. package/CHANGELOG.md +65 -0
  2. package/dist/{accounts-C2O8mpB8.d.ts → accounts-DD4gAOCe.d.ts} +232 -3
  3. package/dist/{action-9Xl0StBg.d.ts → action-BDFKqGlH.d.ts} +3 -2
  4. package/dist/{attempt-captures-ClHAoo_n.d.ts → attempt-captures-CbuCmthd.d.ts} +11 -2
  5. package/dist/authoring.d.ts +534 -48
  6. package/dist/authoring.js +192 -29
  7. package/dist/{automatic-outcomes-BEnPn4Uh.d.ts → automatic-outcomes-DE3vfi8g.d.ts} +11 -3
  8. package/dist/avatar.d.ts +2 -1
  9. package/dist/browser.d.ts +15 -13
  10. package/dist/browser.js +12 -13
  11. package/dist/{capability-error-CuI_F7yM.d.ts → capability-error-db7kO8-P.d.ts} +2 -1
  12. package/dist/{catalog-CbiftcxQ.d.ts → catalog-Cf3fHDNn.d.ts} +69 -3
  13. package/dist/{chunk-5DZNMLDM.js → chunk-2A3BJ262.js} +2 -2
  14. package/dist/{chunk-BQXRCJ3N.js → chunk-5RLIPTL7.js} +1 -1
  15. package/dist/{chunk-MVQQDPQX.js → chunk-AZDZEQFK.js} +14 -2
  16. package/dist/{chunk-JK3XV2CR.js → chunk-BRROI4CH.js} +50 -8
  17. package/dist/{chunk-P33ZAJMS.js → chunk-CQVKOD3B.js} +1266 -677
  18. package/dist/{chunk-QYC3CZVD.js → chunk-CZ23KRVK.js} +2 -2
  19. package/dist/{chunk-X3FMVRMM.js → chunk-DIXYVGXO.js} +1 -1
  20. package/dist/{chunk-RDUSFUXX.js → chunk-GEVARKEV.js} +9 -1
  21. package/dist/{chunk-2HHZV7U3.js → chunk-LDO5GP7G.js} +1 -1
  22. package/dist/{chunk-Z2Z5DBNW.js → chunk-LGGD7S5T.js} +45 -9
  23. package/dist/{chunk-U66GUVSG.js → chunk-LZXDYSUH.js} +2 -0
  24. package/dist/{chunk-NRMQVK2W.js → chunk-ME2KUAVJ.js} +1 -1
  25. package/dist/{chunk-KUNPCDN6.js → chunk-ODJGTFPY.js} +16 -9
  26. package/dist/{chunk-DSJ46QLB.js → chunk-PO2ZDY27.js} +1 -1
  27. package/dist/{chunk-RWR2LOPA.js → chunk-RKTMSTT7.js} +2 -2
  28. package/dist/{chunk-5SBA6X5X.js → chunk-SWLW4VN3.js} +2 -2
  29. package/dist/{chunk-BMJHFWVT.js → chunk-TCREFRPK.js} +10 -43
  30. package/dist/{chunk-Q5QVAF7R.js → chunk-UGM6DUB2.js} +42 -25
  31. package/dist/chunk-VAGGGB6B.js +87 -0
  32. package/dist/{chunk-FGXLXENM.js → chunk-VNEJH4NT.js} +47 -3
  33. package/dist/chunk-WNEQEDMU.js +427 -0
  34. package/dist/{chunk-Q6KTTVOI.js → chunk-WVK3G2J2.js} +1 -1
  35. package/dist/{client-CZPewB9h.d.ts → client-6eSYOl8h.d.ts} +159 -11
  36. package/dist/{dashboards-jGPM3AxF.d.ts → dashboards-DCOAXL54.d.ts} +6 -5
  37. package/dist/{deployments-BVFd7ddA.d.ts → deployments-BIfdCMd5.d.ts} +911 -309
  38. package/dist/{host-environment-FN4zg3hw.d.ts → host-environment-DUw5-Cvj.d.ts} +2 -1
  39. package/dist/{identity-integration-W1Vo3Ql9.d.ts → identity-integration-BlfOn8rc.d.ts} +3 -2
  40. package/dist/index.d.ts +16 -15
  41. package/dist/index.js +10 -10
  42. package/dist/internal.d.ts +155 -17
  43. package/dist/internal.js +266 -19
  44. package/dist/{limits-C4RzrOV4.d.ts → limits-Ctaeq23J.d.ts} +8 -2
  45. package/dist/{offers-BpYenB9i.d.ts → offers-COqHGbHm.d.ts} +4 -3
  46. package/dist/{participant-activity-DXRq4s6K.d.ts → participant-activity-BznrcePT.d.ts} +2 -1
  47. package/dist/{participant-rewards-BcWkBRn_.d.ts → participant-rewards-s5Gn23qb.d.ts} +23 -1
  48. package/dist/portal-proxy.d.ts +7 -4
  49. package/dist/portal-proxy.js +14 -18
  50. package/dist/profiles-CLDKZVFx.d.ts +370 -0
  51. package/dist/react/index.d.ts +71 -30
  52. package/dist/react/index.js +12 -13
  53. package/dist/{request-error-D_dUPLwo.d.ts → request-error-C24SY7n9.d.ts} +2 -1
  54. package/dist/{reward-deliveries-BOWpMytr.d.ts → reward-deliveries-DFhYGJdx.d.ts} +3 -2
  55. package/dist/runtime/authoring.js +1 -1
  56. package/dist/runtime/chunks/HKAI5OQA.js +1 -0
  57. package/dist/runtime/manifest.json +3 -3
  58. package/dist/runtime/schema.js +1 -1
  59. package/dist/schema.d.ts +556 -180
  60. package/dist/schema.js +70 -8
  61. package/dist/server/index.d.ts +15 -14
  62. package/dist/server/index.js +2053 -893
  63. package/dist/{sign-in-providers-BRYVOSlG.d.ts → sign-in-providers-C97mRNbG.d.ts} +4 -3
  64. package/dist/solana.d.ts +287 -0
  65. package/dist/solana.js +699 -0
  66. package/dist/{streaks-0YuipsUQ.d.ts → streaks-MAqKHbHC.d.ts} +2 -1
  67. package/dist/{submission-input-C152xIdn.d.ts → submission-input-BD7nORuh.d.ts} +4 -3
  68. package/dist/{telegram-browser-657QqiQl.d.ts → telegram-browser-gRMgGs7B.d.ts} +8 -109
  69. package/dist/telegram.d.ts +14 -12
  70. package/dist/telegram.js +2 -2
  71. package/dist/testing.d.ts +99 -18
  72. package/dist/testing.js +101 -11
  73. package/dist/{tracker-data-BqY-9Vu-.d.ts → tracker-data-DQgX3FIc.d.ts} +493 -1
  74. package/dist/{transport-CthYgZXK.d.ts → transport-BLU8jrhg.d.ts} +7340 -2134
  75. package/dist/vite.d.ts +2 -1
  76. package/dist/{wallet-Btng186v.d.ts → wallet-CPAjrW4k.d.ts} +339 -308
  77. package/dist/wallet-browser-BzPt_Qb5.d.ts +107 -0
  78. package/package.json +21 -3
  79. package/dist/chunk-UWUS4OOV.js +0 -59
  80. package/dist/chunk-UYVJZR33.js +0 -34
  81. package/dist/runtime/chunks/C2MGLQXC.js +0 -1
package/dist/internal.js CHANGED
@@ -1,21 +1,24 @@
1
1
  import {
2
2
  REFERRAL_INTEGRATION_REWARD_ERROR,
3
3
  canonicalWalletAddress,
4
+ confirmedSignature,
4
5
  containsReferralIntegrationReward,
5
6
  managementTransport,
6
7
  questConfiguration,
7
8
  sequenceCursorSchema,
9
+ solanaPublicEndpoints,
10
+ solanaRpc,
8
11
  walletSignatureValid
9
- } from "./chunk-JK3XV2CR.js";
12
+ } from "./chunk-BRROI4CH.js";
10
13
  import {
11
14
  parseImageExtraction,
12
15
  parseImageResult
13
- } from "./chunk-RWR2LOPA.js";
16
+ } from "./chunk-RKTMSTT7.js";
14
17
  import {
15
18
  sourceDataSchema,
16
19
  sourceRoles,
17
20
  validateQuestShape
18
- } from "./chunk-MVQQDPQX.js";
21
+ } from "./chunk-AZDZEQFK.js";
19
22
  import {
20
23
  accountVouchedBySchema,
21
24
  appLoginOriginSchema,
@@ -35,41 +38,46 @@ import {
35
38
  participantExchangeResultSchema,
36
39
  participantExchangeSchema,
37
40
  secureOrLoopbackOrigin
38
- } from "./chunk-Q5QVAF7R.js";
41
+ } from "./chunk-UGM6DUB2.js";
39
42
  import {
40
43
  isIntegrationParticipantPath,
41
44
  isParticipantRoute,
42
45
  participantRoutePattern,
43
46
  participantRoutes
44
- } from "./chunk-U66GUVSG.js";
45
- import "./chunk-KUNPCDN6.js";
46
- import "./chunk-X3FMVRMM.js";
47
+ } from "./chunk-LZXDYSUH.js";
48
+ import "./chunk-ODJGTFPY.js";
49
+ import "./chunk-DIXYVGXO.js";
47
50
  import {
48
51
  dashboardIssue,
49
52
  normalizeDashboard
50
- } from "./chunk-QYC3CZVD.js";
53
+ } from "./chunk-CZ23KRVK.js";
51
54
  import "./chunk-MWMCQLCG.js";
52
55
  import {
56
+ connectSolanaAccount,
53
57
  hostEnvironmentPath,
54
- hostEnvironmentSchema
55
- } from "./chunk-UYVJZR33.js";
56
- import "./chunk-UWUS4OOV.js";
57
- import "./chunk-Q6KTTVOI.js";
58
+ hostEnvironmentSchema,
59
+ registeredWallets
60
+ } from "./chunk-VAGGGB6B.js";
61
+ import "./chunk-WVK3G2J2.js";
58
62
  import {
59
63
  MANAGEMENT_TIMEOUT,
60
64
  lifetime,
61
65
  retryAfter,
62
66
  retrying
63
- } from "./chunk-5SBA6X5X.js";
64
- import "./chunk-NRMQVK2W.js";
65
- import "./chunk-DSJ46QLB.js";
66
- import "./chunk-5DZNMLDM.js";
67
+ } from "./chunk-SWLW4VN3.js";
68
+ import "./chunk-ME2KUAVJ.js";
69
+ import "./chunk-PO2ZDY27.js";
70
+ import "./chunk-2A3BJ262.js";
67
71
  import {
72
+ base58,
73
+ base58Bytes,
68
74
  compatibleSettingKinds,
69
75
  evmWalletOn,
76
+ inWindow,
70
77
  isBoundSetting,
71
78
  schemaCheckedReader,
72
79
  sourceContent,
80
+ stationRefusal,
73
81
  trackerDataBatchSteps,
74
82
  trackerDataIssue,
75
83
  trackerDataIssues,
@@ -77,16 +85,236 @@ import {
77
85
  trackerDataRecordSteps,
78
86
  whereSchemaIssue,
79
87
  whereSettings
80
- } from "./chunk-P33ZAJMS.js";
81
- import "./chunk-FGXLXENM.js";
88
+ } from "./chunk-CQVKOD3B.js";
89
+ import "./chunk-VNEJH4NT.js";
90
+
91
+ // src/station-qr.ts
92
+ function stationPayLink(url, station) {
93
+ const target = new URL(url);
94
+ target.searchParams.set("station", station);
95
+ return `solana:${encodeURIComponent(target.href)}`;
96
+ }
97
+ var escapeXml = (text) => text.replace(
98
+ /[&<>"']/g,
99
+ (character) => ({
100
+ "&": "&amp;",
101
+ "<": "&lt;",
102
+ ">": "&gt;",
103
+ '"': "&quot;",
104
+ "'": "&apos;"
105
+ })[character] ?? character
106
+ );
107
+ async function stationQrSvg(link, label) {
108
+ const { encodeQR } = await import("qr");
109
+ const modules = encodeQR(link, "raw", { ecc: "medium", border: 4 });
110
+ const size = modules.length;
111
+ const scale = 10;
112
+ const width = size * scale;
113
+ const labelHeight = 6 * scale;
114
+ const path = modules.flatMap(
115
+ (row, y) => row.flatMap((dark, x) => dark ? [`M${x} ${y}h1v1h-1z`] : [])
116
+ ).join("");
117
+ return `<svg xmlns="http://www.w3.org/2000/svg" width="${width}" height="${width + labelHeight}" viewBox="0 0 ${width} ${width + labelHeight}">
118
+ <rect width="100%" height="100%" fill="#fff"/>
119
+ <path transform="scale(${scale})" fill="#000" shape-rendering="crispEdges" d="${path}"/>
120
+ <text x="${width / 2}" y="${width + labelHeight / 2}" font-family="sans-serif" font-size="${2.4 * scale}" text-anchor="middle" dominant-baseline="middle" fill="#000">${escapeXml(label)}</text>
121
+ </svg>
122
+ `;
123
+ }
124
+
125
+ // src/solana-idl-accounts.ts
126
+ import { sha256 } from "@noble/hashes/sha2.js";
127
+ import { concatBytes } from "@noble/hashes/utils.js";
128
+ var encoder = /* @__PURE__ */ (() => new TextEncoder())();
129
+ var maxAnchorIdlBytes = 512 * 1024;
130
+ var idlTooLarge = (idl) => new TextEncoder().encode(JSON.stringify(idl)).length > maxAnchorIdlBytes;
131
+ var zeroCopyAccount = (account, declared) => (declared?.serialization ?? account.serialization ?? "borsh") !== "borsh";
132
+ function checkedInteger(value, signed, bits) {
133
+ const text = typeof value === "number" ? String(value) : value;
134
+ if (typeof text !== "string" || typeof value === "number" && !Number.isSafeInteger(value) || !/^-?(0|[1-9][0-9]{0,77})$/.test(text)) {
135
+ return "not-an-integer";
136
+ }
137
+ const size = BigInt(bits);
138
+ const number = BigInt(text);
139
+ const [min, max] = signed ? [-(2n ** (size - 1n)), 2n ** (size - 1n) - 1n] : [0n, 2n ** size - 1n];
140
+ return number < min || number > max ? { min, max } : number;
141
+ }
142
+ function littleEndianBytes(value, bits) {
143
+ let number = BigInt.asUintN(bits, value);
144
+ return Uint8Array.from({ length: bits / 8 }, () => {
145
+ const byte = Number(number & 0xffn);
146
+ number >>= 8n;
147
+ return byte;
148
+ });
149
+ }
150
+ var maxSeedBytes = 32;
151
+ function solanaSeedBytes(seed, position) {
152
+ if (typeof seed === "string") {
153
+ const bytes = encoder.encode(seed);
154
+ return bytes.length > maxSeedBytes ? {
155
+ problem: `Seed ${position} is ${bytes.length} bytes: a seed is at most ${maxSeedBytes}`
156
+ } : bytes;
157
+ }
158
+ if ("wallet" in seed) {
159
+ return "wallet";
160
+ }
161
+ if ("pubkey" in seed) {
162
+ return base58Bytes(seed.pubkey, 32) ?? {
163
+ problem: `Seed ${position} is not a Solana address: ${seed.pubkey}`
164
+ };
165
+ }
166
+ const [type, value] = Object.entries(seed)[0];
167
+ const bits = Number(type.slice(1));
168
+ const checked = checkedInteger(value, type.startsWith("i"), bits);
169
+ return typeof checked === "bigint" ? littleEndianBytes(checked, bits) : {
170
+ problem: `Seed ${position} must be a ${type}: a safe integer number or a decimal string${typeof checked === "object" ? ` from ${checked.min} to ${checked.max}` : ""}`
171
+ };
172
+ }
173
+ function parseSolanaSeeds(text, maxSeeds) {
174
+ const entries = text.split(",").map((entry) => entry.trim());
175
+ if (entries.length > maxSeeds) {
176
+ return { problem: `A Solana address takes at most ${maxSeeds} seeds` };
177
+ }
178
+ const seeds = [];
179
+ for (const [index, entry] of entries.entries()) {
180
+ const position = index + 1;
181
+ const colon = entry.indexOf(":");
182
+ const prefix = colon < 0 ? "" : entry.slice(0, colon);
183
+ const value = entry.slice(colon + 1);
184
+ const seed = entry === "wallet" ? { wallet: true } : prefix === "pubkey" ? { pubkey: value } : /^[ui](8|16|32|64|128)$/.test(prefix) ? { [prefix]: value } : prefix === "string" ? value : entry;
185
+ if (seed === "") {
186
+ return { problem: `Seed ${position} is empty` };
187
+ }
188
+ const checked = solanaSeedBytes(seed, position);
189
+ if (typeof checked === "object" && "problem" in checked) {
190
+ return checked;
191
+ }
192
+ seeds.push(seed);
193
+ }
194
+ return seeds.some((seed) => typeof seed === "object" && "wallet" in seed) ? { seeds } : {
195
+ problem: "The seeds must include wallet: Relay reads only accounts derived from a member's linked wallets"
196
+ };
197
+ }
198
+ function storedIdlJson(bytes, compression, decompress) {
199
+ const limit = { maxOutputLength: maxAnchorIdlBytes * 4 };
200
+ try {
201
+ const json = compression === "none" ? bytes : compression === "gzip" ? decompress.gunzip(bytes, limit) : decompress.inflate(bytes, limit);
202
+ return JSON.parse(
203
+ new TextDecoder("utf-8", { ignoreBOM: true }).decode(json)
204
+ );
205
+ } catch {
206
+ return null;
207
+ }
208
+ }
209
+ var p = 2n ** 255n - 19n;
210
+ var d = 37095705934669439343138083508754565189542113879843219016388785533085940283555n;
211
+ function power(base, exponent) {
212
+ let result = 1n;
213
+ base %= p;
214
+ while (exponent > 0n) {
215
+ if (exponent & 1n) {
216
+ result = result * base % p;
217
+ }
218
+ base = base * base % p;
219
+ exponent >>= 1n;
220
+ }
221
+ return result;
222
+ }
223
+ function onCurve(bytes) {
224
+ let y = 0n;
225
+ for (let index = 31; index >= 0; index--) {
226
+ y = y << 8n | BigInt(index === 31 ? bytes[index] & 127 : bytes[index]);
227
+ }
228
+ const yy = y * y % p;
229
+ const u = (yy - 1n + p) % p;
230
+ const v = (d * yy + 1n) % p;
231
+ const ratio = u * power(v, p - 2n) % p;
232
+ return ratio === 0n || power(ratio, (p - 1n) / 2n) === 1n;
233
+ }
234
+ function solanaAddressBytes(address) {
235
+ const bytes = base58Bytes(address, 32);
236
+ if (!bytes) {
237
+ throw new Error(`${address} is not a Solana address`);
238
+ }
239
+ return bytes;
240
+ }
241
+ function solanaProgramAddress(seeds, program) {
242
+ const programBytes = solanaAddressBytes(program);
243
+ for (let bump = 255; bump >= 0; bump--) {
244
+ const address = sha256(
245
+ concatBytes(
246
+ ...seeds,
247
+ Uint8Array.of(bump),
248
+ programBytes,
249
+ encoder.encode("ProgramDerivedAddress")
250
+ )
251
+ );
252
+ if (!onCurve(address)) {
253
+ return base58(address);
254
+ }
255
+ }
256
+ throw new Error("No program address for these seeds");
257
+ }
258
+ function anchorIdlAddress(program) {
259
+ return base58(
260
+ sha256(
261
+ concatBytes(
262
+ solanaAddressBytes(solanaProgramAddress([], program)),
263
+ encoder.encode("anchor:idl"),
264
+ solanaAddressBytes(program)
265
+ )
266
+ )
267
+ );
268
+ }
269
+ function anchorIdlAccountBytes(data) {
270
+ if (data.length < 44) {
271
+ return null;
272
+ }
273
+ const length = new DataView(data.buffer, data.byteOffset).getUint32(40, true);
274
+ return length === 0 || 44 + length > data.length ? null : data.subarray(44, 44 + length);
275
+ }
276
+ var programMetadataProgram = "ProgM6JCCvbYkfKqJYHePx4xxSUSqJp7rh8Lyv7nk7S";
277
+ var idlSeed = /* @__PURE__ */ (() => new Uint8Array(16))();
278
+ idlSeed.set(encoder.encode("idl"));
279
+ var metadataHeaderLength = 96;
280
+ var metadataDiscriminator = 2;
281
+ var metadataCompressions = ["none", "gzip", "zlib"];
282
+ function programMetadataIdlAddress(program) {
283
+ return solanaProgramAddress(
284
+ [solanaAddressBytes(program), idlSeed],
285
+ programMetadataProgram
286
+ );
287
+ }
288
+ function programMetadataIdlBytes(data, program) {
289
+ if (data.length < metadataHeaderLength) {
290
+ return null;
291
+ }
292
+ const view = new DataView(data.buffer, data.byteOffset, data.length);
293
+ const compression = metadataCompressions[data[84]];
294
+ const length = view.getUint32(87, true);
295
+ if (data[0] !== metadataDiscriminator || base58(data.subarray(1, 33)) !== program || data[66] !== 1 || !data.subarray(67, 83).every((byte, index) => byte === idlSeed[index]) || // UTF-8 encoding, JSON format or none, data in the account.
296
+ data[83] !== 1 || data[85] > 1 || data[86] !== 0 || compression === void 0 || length === 0 || metadataHeaderLength + length > data.length) {
297
+ return null;
298
+ }
299
+ return {
300
+ bytes: data.subarray(metadataHeaderLength, metadataHeaderLength + length),
301
+ compression
302
+ };
303
+ }
82
304
  export {
83
305
  MANAGEMENT_TIMEOUT,
84
306
  REFERRAL_INTEGRATION_REWARD_ERROR,
85
307
  accountVouchedBySchema,
308
+ anchorIdlAccountBytes,
309
+ anchorIdlAddress,
86
310
  appLoginOriginSchema,
87
311
  bareOrigin,
312
+ base58,
88
313
  canonicalWalletAddress,
314
+ checkedInteger,
89
315
  compatibleSettingKinds,
316
+ confirmedSignature,
317
+ connectSolanaAccount,
90
318
  containsReferralIntegrationReward,
91
319
  dashboardIssue,
92
320
  evmWalletOn,
@@ -100,31 +328,49 @@ export {
100
328
  identityIntegrationSchema,
101
329
  identityIntegrationSecretSchema,
102
330
  identityKindClaimSchema,
331
+ idlTooLarge,
332
+ inWindow,
103
333
  isBoundSetting,
104
334
  isIntegrationParticipantPath,
105
335
  isParticipantRoute,
106
336
  lifetime,
337
+ littleEndianBytes,
107
338
  loopbackHosts,
108
339
  managementTransport,
340
+ maxAnchorIdlBytes,
109
341
  nextScheduleRun,
110
342
  normalizeDashboard,
111
343
  parseImageExtraction,
112
344
  parseImageResult,
345
+ parseSolanaSeeds,
113
346
  participantExchangeAccountResultSchema,
114
347
  participantExchangeAccountsSchema,
115
348
  participantExchangeResultSchema,
116
349
  participantExchangeSchema,
117
350
  participantRoutePattern,
118
351
  participantRoutes,
352
+ programMetadataIdlAddress,
353
+ programMetadataIdlBytes,
354
+ programMetadataProgram,
119
355
  questConfiguration,
356
+ registeredWallets,
120
357
  retryAfter,
121
358
  retrying,
122
359
  schemaCheckedReader,
123
360
  secureOrLoopbackOrigin,
124
361
  sequenceCursorSchema,
362
+ solanaAddressBytes,
363
+ solanaProgramAddress,
364
+ solanaPublicEndpoints,
365
+ solanaRpc,
366
+ solanaSeedBytes,
125
367
  sourceContent,
126
368
  sourceDataSchema,
127
369
  sourceRoles,
370
+ stationPayLink,
371
+ stationQrSvg,
372
+ stationRefusal,
373
+ storedIdlJson,
128
374
  trackerDataBatchSteps,
129
375
  trackerDataIssue,
130
376
  trackerDataIssues,
@@ -133,5 +379,6 @@ export {
133
379
  validateQuestShape,
134
380
  walletSignatureValid,
135
381
  whereSchemaIssue,
136
- whereSettings
382
+ whereSettings,
383
+ zeroCopyAccount
137
384
  };
@@ -1,5 +1,5 @@
1
1
  import * as z from 'zod';
2
- import { aa as PhotoResult, V as AttemptCodeSource } from './accounts-C2O8mpB8.js';
2
+ import { ac as PhotoResult, W as AttemptCodeSource } from './accounts-DD4gAOCe.js';
3
3
 
4
4
  /**
5
5
  * Quest code names an image; the platform fetches, decodes and pins it. No bytes or URLs cross the
@@ -947,8 +947,14 @@ type Limits = {
947
947
  readonly walletEventLogs: number;
948
948
  /** The most transactions one `ctx.wallet.transactions()` read fetches per wallet. */
949
949
  readonly walletTransactions: number;
950
+ /**
951
+ * The most signatures one `management.solana.transactionFixture()` call reads. Each is a
952
+ * `getTransaction` call on the platform's Solana RPC, and a quest test needs a handful.
953
+ */
954
+ readonly transactionFixtureSignatures: number;
950
955
  };
951
956
  /** Relay's platform limits. A 1.x release can raise them, so read them here at run time. */
952
957
  declare const limits: Limits;
953
958
 
954
- export { type AnalyticsQuest as $, type AnalyticsMetricId as A, publishedImageSchema as B, xConnectionSchema as C, xIdSchema as D, type Extracted as E, xPostSchema as F, xProfileSchema as G, xRequestSchema as H, type ImageReader as I, xUserLookupInputSchema as J, xUserSchema as K, type Limits as L, xUsernameSchema as M, type AnalyticsQuery as N, type AnalyticsRead as O, type PublishedImage as P, type AnalyticsCatalog as Q, type AnalyticsMetricQuery as R, type AnalyticsMetricResult as S, type AnalyticsBreakdown as T, type AnalyticsBreakdownRow as U, type AnalyticsCatalogEntry as V, type AnalyticsChart as W, type XReader as X, type AnalyticsFilter as Y, type AnalyticsMetric as Z, type AnalyticsMetricKind as _, analyticsCatalog as a, type AnalyticsRange as a0, analyticsBreakdowns as a1, analyticsCatalogSchema as a2, analyticsCharts as a3, analyticsFilters as a4, analyticsMetricIds as a5, analyticsMetricQuerySchema as a6, analyticsMetricResultSchema as a7, analyticsQueryLimit as a8, analyticsQuerySchema as a9, analyticsRanges as aa, analyticsReadSchema as ab, type ImageAssetArtifact as b, type ImageComparison as c, type ImageExtraction as d, type ImageFields as e, type ImageInspection as f, type ImageReference as g, type ImageRequest as h, type ImageSightings as i, type XConnection as j, type XPost as k, limits as l, type XProfile as m, type XUser as n, type XUserLookupInput as o, imageAssetArtifactSchema as p, imageComparisonSchema as q, imageExtractionSchema as r, imageFieldSchema as s, imageFieldsSchema as t, imageInspectionSchema as u, imageReferenceSchema as v, imageRequestSchema as w, imageSightingsSchema as x, imageUploadRequestSchema as y, imageUploadsSchema as z };
959
+ export { publishedImageSchema as B, xConnectionSchema as C, xIdSchema as D, xPostSchema as F, xProfileSchema as G, xRequestSchema as H, xUserLookupInputSchema as J, xUserSchema as K, xUsernameSchema as M, analyticsCatalog as a, analyticsBreakdowns as a1, analyticsCatalogSchema as a2, analyticsCharts as a3, analyticsFilters as a4, analyticsMetricIds as a5, analyticsMetricQuerySchema as a6, analyticsMetricResultSchema as a7, analyticsQueryLimit as a8, analyticsQuerySchema as a9, analyticsRanges as aa, analyticsReadSchema as ab, limits as l, imageAssetArtifactSchema as p, imageComparisonSchema as q, imageExtractionSchema as r, imageFieldSchema as s, imageFieldsSchema as t, imageInspectionSchema as u, imageReferenceSchema as v, imageRequestSchema as w, imageSightingsSchema as x, imageUploadRequestSchema as y, imageUploadsSchema as z };
960
+ export type { AnalyticsQuest as $, AnalyticsMetricId as A, Extracted as E, ImageReader as I, Limits as L, AnalyticsQuery as N, AnalyticsRead as O, PublishedImage as P, AnalyticsCatalog as Q, AnalyticsMetricQuery as R, AnalyticsMetricResult as S, AnalyticsBreakdown as T, AnalyticsBreakdownRow as U, AnalyticsCatalogEntry as V, AnalyticsChart as W, XReader as X, AnalyticsFilter as Y, AnalyticsMetric as Z, AnalyticsMetricKind as _, AnalyticsRange as a0, ImageAssetArtifact as b, ImageComparison as c, ImageExtraction as d, ImageFields as e, ImageInspection as f, ImageReference as g, ImageRequest as h, ImageSightings as i, XConnection as j, XPost as k, XProfile as m, XUser as n, XUserLookupInput as o };
@@ -1,6 +1,6 @@
1
1
  import * as z from 'zod';
2
- import { R as ResourceHandle } from './tracker-data-BqY-9Vu-.js';
3
- import { Z as AuthoringIdentity } from './accounts-C2O8mpB8.js';
2
+ import { R as ResourceHandle } from './tracker-data-DQgX3FIc.js';
3
+ import { _ as AuthoringIdentity } from './accounts-DD4gAOCe.js';
4
4
 
5
5
  declare const badgePropertiesSchema: z.ZodObject<{
6
6
  name: z.ZodString;
@@ -848,4 +848,5 @@ declare function defineOffer(input: OfferAuthoring & AuthoringIdentity): {
848
848
  })[] | undefined;
849
849
  } & ResourceHandle<"offer">;
850
850
 
851
- export { offerLimitSchema as A, type Badge as B, offerPriceSchema as C, offerSchema as D, redeemOfferSchema as E, redemptionCancellationSchema as F, redemptionPageSchema as G, redemptionQuerySchema as H, redemptionSchema as I, type ManagedBadge as M, type Offer as O, type RedeemOfferInput as R, type BadgeCatalog as a, type MemberBadge as b, type MemberBadges as c, type OfferDefinition as d, type OfferPrice as e, type Redemption as f, badgeDeclarationSchema as g, type OfferAuthoring as h, type RedemptionPage as i, type RedemptionQuery as j, badgeArtifactSchema as k, badgeCatalogSchema as l, badgeMutationResultSchema as m, badgeMutationSchema as n, badgePropertiesSchema as o, badgeSchema as p, createBadgeSchema as q, defineOffer as r, managedBadgeSchema as s, memberBadgeSchema as t, memberBadgesSchema as u, offerArtifactSchema as v, offerAuthoringSchema as w, offerAvailabilitySchema as x, offerControlSchema as y, offerDefinitionSchema as z };
851
+ export { offerLimitSchema as A, offerPriceSchema as C, offerSchema as D, redeemOfferSchema as E, redemptionCancellationSchema as F, redemptionPageSchema as G, redemptionQuerySchema as H, redemptionSchema as I, badgeDeclarationSchema as g, badgeArtifactSchema as k, badgeCatalogSchema as l, badgeMutationResultSchema as m, badgeMutationSchema as n, badgePropertiesSchema as o, badgeSchema as p, createBadgeSchema as q, defineOffer as r, managedBadgeSchema as s, memberBadgeSchema as t, memberBadgesSchema as u, offerArtifactSchema as v, offerAuthoringSchema as w, offerAvailabilitySchema as x, offerControlSchema as y, offerDefinitionSchema as z };
852
+ export type { Badge as B, ManagedBadge as M, Offer as O, RedeemOfferInput as R, BadgeCatalog as a, MemberBadge as b, MemberBadges as c, OfferDefinition as d, OfferPrice as e, Redemption as f, OfferAuthoring as h, RedemptionPage as i, RedemptionQuery as j };
@@ -364,4 +364,5 @@ declare const participantActivitySchema: z.ZodObject<{
364
364
  type RelayEvent = z.infer<typeof relayEventSchema>;
365
365
  type ParticipantActivity = z.infer<typeof participantActivitySchema>;
366
366
 
367
- export { type ExchangeInput as E, type MemberSummary as M, type ParticipantActivity as P, type RelayEvent as R, type Session as S, type ParticipantPrincipal as a, type ParticipantSession as b, authScopeSchema as c, exchangeResultSchema as d, exchangeSchema as e, participantActivitySchema as f, participantPrincipalSchema as g, participantSessionSchema as h, principalSchema as i, sessionSchema as j, knownRelayEventSchema as k, memberSummarySchema as m, participantActivityQuerySchema as p, relayEventSchema as r, sessionMember as s };
367
+ export { authScopeSchema as c, exchangeResultSchema as d, exchangeSchema as e, participantActivitySchema as f, participantPrincipalSchema as g, participantSessionSchema as h, principalSchema as i, sessionSchema as j, knownRelayEventSchema as k, memberSummarySchema as m, participantActivityQuerySchema as p, relayEventSchema as r, sessionMember as s };
368
+ export type { ExchangeInput as E, MemberSummary as M, ParticipantActivity as P, RelayEvent as R, Session as S, ParticipantPrincipal as a, ParticipantSession as b };
@@ -18,6 +18,7 @@ declare const participantEntitlementsSchema: z.ZodObject<{
18
18
  fulfillment: z.ZodObject<{
19
19
  kind: z.ZodString;
20
20
  }, z.core.$loose>;
21
+ key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
22
  }, z.core.$loose>;
22
23
  earnedTier: z.ZodString;
23
24
  tier: z.ZodString;
@@ -45,6 +46,7 @@ declare const participantEntitlementsSchema: z.ZodObject<{
45
46
  fulfillment: z.ZodObject<{
46
47
  kind: z.ZodString;
47
48
  }, z.core.$loose>;
49
+ key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
48
50
  }, z.core.$loose>;
49
51
  earnedTier: z.ZodString;
50
52
  tier: z.ZodString;
@@ -79,6 +81,7 @@ declare const participantEntitlementsSchema: z.ZodObject<{
79
81
  fulfillment: z.ZodObject<{
80
82
  kind: z.ZodString;
81
83
  }, z.core.$loose>;
84
+ key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
82
85
  }, z.core.$loose>;
83
86
  earnedTier: z.ZodString;
84
87
  tier: z.ZodString;
@@ -101,6 +104,7 @@ declare const participantEntitlementsSchema: z.ZodObject<{
101
104
  fulfillment: z.ZodObject<{
102
105
  kind: z.ZodString;
103
106
  }, z.core.$loose>;
107
+ key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
104
108
  }, z.core.$loose>;
105
109
  earnedTier: z.ZodString;
106
110
  tier: z.ZodString;
@@ -122,6 +126,7 @@ declare const participantEntitlementsSchema: z.ZodObject<{
122
126
  fulfillment: z.ZodObject<{
123
127
  kind: z.ZodString;
124
128
  }, z.core.$loose>;
129
+ key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
125
130
  }, z.core.$loose>;
126
131
  earnedTier: z.ZodString;
127
132
  tier: z.ZodString;
@@ -148,6 +153,7 @@ declare const participantEntitlementsSchema: z.ZodObject<{
148
153
  [x: string]: unknown;
149
154
  kind: string;
150
155
  };
156
+ key?: string | null | undefined;
151
157
  };
152
158
  earnedTier: string;
153
159
  tier: string;
@@ -174,6 +180,7 @@ declare const participantEntitlementsSchema: z.ZodObject<{
174
180
  [x: string]: unknown;
175
181
  kind: string;
176
182
  };
183
+ key?: string | null | undefined;
177
184
  };
178
185
  earnedTier: string;
179
186
  tier: string;
@@ -214,6 +221,7 @@ declare const participantDeliverySchema: z.ZodUnion<readonly [z.ZodDiscriminated
214
221
  fulfillment: z.ZodObject<{
215
222
  kind: z.ZodString;
216
223
  }, z.core.$loose>;
224
+ key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
217
225
  }, z.core.$loose>;
218
226
  earnedTier: z.ZodString;
219
227
  tier: z.ZodString;
@@ -241,6 +249,7 @@ declare const participantDeliverySchema: z.ZodUnion<readonly [z.ZodDiscriminated
241
249
  fulfillment: z.ZodObject<{
242
250
  kind: z.ZodString;
243
251
  }, z.core.$loose>;
252
+ key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
244
253
  }, z.core.$loose>;
245
254
  earnedTier: z.ZodString;
246
255
  tier: z.ZodString;
@@ -275,6 +284,7 @@ declare const participantDeliverySchema: z.ZodUnion<readonly [z.ZodDiscriminated
275
284
  fulfillment: z.ZodObject<{
276
285
  kind: z.ZodString;
277
286
  }, z.core.$loose>;
287
+ key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
278
288
  }, z.core.$loose>;
279
289
  earnedTier: z.ZodString;
280
290
  tier: z.ZodString;
@@ -297,6 +307,7 @@ declare const participantDeliverySchema: z.ZodUnion<readonly [z.ZodDiscriminated
297
307
  fulfillment: z.ZodObject<{
298
308
  kind: z.ZodString;
299
309
  }, z.core.$loose>;
310
+ key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
300
311
  }, z.core.$loose>;
301
312
  earnedTier: z.ZodString;
302
313
  tier: z.ZodString;
@@ -318,6 +329,7 @@ declare const participantDeliverySchema: z.ZodUnion<readonly [z.ZodDiscriminated
318
329
  fulfillment: z.ZodObject<{
319
330
  kind: z.ZodString;
320
331
  }, z.core.$loose>;
332
+ key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
321
333
  }, z.core.$loose>;
322
334
  earnedTier: z.ZodString;
323
335
  tier: z.ZodString;
@@ -344,6 +356,7 @@ declare const participantDeliverySchema: z.ZodUnion<readonly [z.ZodDiscriminated
344
356
  [x: string]: unknown;
345
357
  kind: string;
346
358
  };
359
+ key?: string | null | undefined;
347
360
  };
348
361
  earnedTier: string;
349
362
  tier: string;
@@ -370,6 +383,7 @@ declare const participantDeliverySchema: z.ZodUnion<readonly [z.ZodDiscriminated
370
383
  [x: string]: unknown;
371
384
  kind: string;
372
385
  };
386
+ key?: string | null | undefined;
373
387
  };
374
388
  earnedTier: string;
375
389
  tier: string;
@@ -455,6 +469,7 @@ declare const participantDeliveriesSchema: z.ZodObject<{
455
469
  fulfillment: z.ZodObject<{
456
470
  kind: z.ZodString;
457
471
  }, z.core.$loose>;
472
+ key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
458
473
  }, z.core.$loose>;
459
474
  earnedTier: z.ZodString;
460
475
  tier: z.ZodString;
@@ -482,6 +497,7 @@ declare const participantDeliveriesSchema: z.ZodObject<{
482
497
  fulfillment: z.ZodObject<{
483
498
  kind: z.ZodString;
484
499
  }, z.core.$loose>;
500
+ key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
485
501
  }, z.core.$loose>;
486
502
  earnedTier: z.ZodString;
487
503
  tier: z.ZodString;
@@ -516,6 +532,7 @@ declare const participantDeliveriesSchema: z.ZodObject<{
516
532
  fulfillment: z.ZodObject<{
517
533
  kind: z.ZodString;
518
534
  }, z.core.$loose>;
535
+ key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
519
536
  }, z.core.$loose>;
520
537
  earnedTier: z.ZodString;
521
538
  tier: z.ZodString;
@@ -538,6 +555,7 @@ declare const participantDeliveriesSchema: z.ZodObject<{
538
555
  fulfillment: z.ZodObject<{
539
556
  kind: z.ZodString;
540
557
  }, z.core.$loose>;
558
+ key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
541
559
  }, z.core.$loose>;
542
560
  earnedTier: z.ZodString;
543
561
  tier: z.ZodString;
@@ -559,6 +577,7 @@ declare const participantDeliveriesSchema: z.ZodObject<{
559
577
  fulfillment: z.ZodObject<{
560
578
  kind: z.ZodString;
561
579
  }, z.core.$loose>;
580
+ key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
562
581
  }, z.core.$loose>;
563
582
  earnedTier: z.ZodString;
564
583
  tier: z.ZodString;
@@ -585,6 +604,7 @@ declare const participantDeliveriesSchema: z.ZodObject<{
585
604
  [x: string]: unknown;
586
605
  kind: string;
587
606
  };
607
+ key?: string | null | undefined;
588
608
  };
589
609
  earnedTier: string;
590
610
  tier: string;
@@ -611,6 +631,7 @@ declare const participantDeliveriesSchema: z.ZodObject<{
611
631
  [x: string]: unknown;
612
632
  kind: string;
613
633
  };
634
+ key?: string | null | undefined;
614
635
  };
615
636
  earnedTier: string;
616
637
  tier: string;
@@ -665,4 +686,5 @@ declare const participantDeliveriesSchema: z.ZodObject<{
665
686
  }, z.core.$strip>;
666
687
  type ParticipantDelivery = z.infer<typeof participantDeliverySchema>;
667
688
 
668
- export { type ParticipantDelivery as P, participantDeliverySchema as a, participantEntitlementsSchema as b, participantDeliveriesSchema as p };
689
+ export { participantDeliverySchema as a, participantEntitlementsSchema as b, participantDeliveriesSchema as p };
690
+ export type { ParticipantDelivery as P };
@@ -1,7 +1,9 @@
1
- import { M as MemberImportVouchedAccount, P as ParticipantExchangeAccountResult, a as ParticipantExchangeResult, I as IdentityIntegrationKey } from './identity-integration-W1Vo3Ql9.js';
2
- import { R as RequestError } from './request-error-D_dUPLwo.js';
3
- import './tracker-data-BqY-9Vu-.js';
1
+ import { ParticipantExchangeAccountResult, ParticipantExchangeResult, IdentityIntegrationKey } from './internal.js';
2
+ import { MemberImportVouchedAccount } from './server/index.js';
3
+ import { RequestError } from './index.js';
4
+ import './tracker-data-DQgX3FIc.js';
4
5
  import 'zod';
6
+ import './wallet-CPAjrW4k.js';
5
7
 
6
8
  /**
7
9
  * Server-only proxy: browser cookies stay on the participant origin.
@@ -135,4 +137,5 @@ declare function signedInMember(request: Request, env: HostedAppEnv, options: {
135
137
  fetch?: typeof fetch;
136
138
  }): Promise<string | null>;
137
139
 
138
- export { type HostedAppEnv, ParticipantExchangeError, createParticipantBackend, exchangeParticipant, handleHostedApp, hostedAppRequest, inspectIntegrationKey, isParticipantExchangeError, proxyParticipant, signedInMember };
140
+ export { ParticipantExchangeError, createParticipantBackend, exchangeParticipant, handleHostedApp, hostedAppRequest, inspectIntegrationKey, isParticipantExchangeError, proxyParticipant, signedInMember };
141
+ export type { HostedAppEnv };