@domino-sdk/relay 1.74.0 → 1.76.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 (53) hide show
  1. package/CHANGELOG.md +54 -0
  2. package/dist/authoring.d.ts +6 -6
  3. package/dist/authoring.js +4 -4
  4. package/dist/browser.d.ts +3 -3
  5. package/dist/browser.js +8 -8
  6. package/dist/{capability-error-Bn6cCqof.d.ts → capability-error-D56xxE2i.d.ts} +1 -1
  7. package/dist/{chunk-CW7FJ5PX.js → chunk-3KHVIUKK.js} +1 -1
  8. package/dist/{chunk-2LURSPDM.js → chunk-4WODSE6Y.js} +2 -2
  9. package/dist/{chunk-F66GGNKD.js → chunk-4YKOSNYI.js} +1 -1
  10. package/dist/{chunk-ELHMJODS.js → chunk-7B7MDHJ6.js} +1 -1
  11. package/dist/{chunk-6TDHRGBM.js → chunk-7QHROIML.js} +3 -0
  12. package/dist/{chunk-DNOLNMCW.js → chunk-E4ZQCG44.js} +9 -8
  13. package/dist/{chunk-SVZ3QWHT.js → chunk-FBS65R66.js} +2 -2
  14. package/dist/{chunk-KP55TMCC.js → chunk-HEQ7HLXG.js} +1 -1
  15. package/dist/{chunk-TGQNNMCY.js → chunk-IMX45NSW.js} +6 -6
  16. package/dist/{chunk-RALBAKKX.js → chunk-K3PEQXDV.js} +1 -1
  17. package/dist/{chunk-JZT2NLSG.js → chunk-LFFGW7GB.js} +449 -392
  18. package/dist/{chunk-NI6XRGEL.js → chunk-SPLXHFVX.js} +2 -2
  19. package/dist/{chunk-KGZ7SRKJ.js → chunk-TAZ5AEYF.js} +1 -1
  20. package/dist/{chunk-HCOLMJFX.js → chunk-X5REDFGV.js} +4 -3
  21. package/dist/{chunk-T4PTFCSB.js → chunk-XEXB3WZE.js} +1 -1
  22. package/dist/{chunk-724CKAC7.js → chunk-YB5BSKVU.js} +3 -3
  23. package/dist/{chunk-7I7P5UVC.js → chunk-ZXFRHGZC.js} +422 -291
  24. package/dist/{client-B2aVGf38.d.ts → client-336yROej.d.ts} +2 -2
  25. package/dist/{identity-integration-C03rUYc0.d.ts → identity-integration-B1f5oOdc.d.ts} +1169 -3
  26. package/dist/{transport-D77Rbf4D.d.ts → index-BM0DdDYy.d.ts} +614 -1274
  27. package/dist/index.d.ts +3 -3
  28. package/dist/index.js +7 -7
  29. package/dist/internal.d.ts +46 -22
  30. package/dist/internal.js +24 -17
  31. package/dist/{limits-p-Mg0oSi.d.ts → limits-DICxln-i.d.ts} +6 -0
  32. package/dist/portal-proxy.d.ts +8 -1
  33. package/dist/portal-proxy.js +125 -50
  34. package/dist/react/index.d.ts +5 -5
  35. package/dist/react/index.js +8 -8
  36. package/dist/runtime/authoring.js +1 -1
  37. package/dist/runtime/chunks/H6GH644T.js +1 -0
  38. package/dist/runtime/manifest.json +3 -3
  39. package/dist/runtime/schema.js +1 -1
  40. package/dist/schema.d.ts +4 -4
  41. package/dist/schema.js +7 -7
  42. package/dist/server/index.d.ts +4 -4
  43. package/dist/server/index.js +136 -29
  44. package/dist/{sign-in-providers-BG22ZZkl.d.ts → sign-in-providers-BMtk_NWY.d.ts} +1 -1
  45. package/dist/solana.d.ts +3 -3
  46. package/dist/solana.js +8 -8
  47. package/dist/{station-check-in-a1deSjbm.d.ts → station-check-in-vcDKQOet.d.ts} +2 -2
  48. package/dist/{submission-input-DBDLkTF8.d.ts → submission-input-D_NiBR0W.d.ts} +6 -1
  49. package/dist/telegram.d.ts +2 -2
  50. package/dist/testing.d.ts +2 -2
  51. package/dist/testing.js +15 -5
  52. package/package.json +2 -1
  53. package/dist/runtime/chunks/NYEWMPJH.js +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,59 @@
1
1
  # @domino-sdk/relay
2
2
 
3
+ ## 1.76.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 94e745d: Hosted apps can see when a service key saved in an app secret stops working, before staff or members hit it.
8
+
9
+ - `GET /secrets` and `PUT /secrets/:name` (`management.secrets.list()` and `set()`, `domino secrets list --json` and `set --json`) add `credential` to a secret whose value is a service key (`dsk_…`). Its `status` is `active`, `expired`, `unknown` (revoked, mistyped, or another deployment's or organization's) or `other-scope` (another project or environment of your organization). For your organization's keys it also gives the key's `id`, `name` and `permissions`, the secret's `expiresAt`, and, for `other-scope`, the key's `project` and `environment`. It never includes the value. The check doesn't count as a use, so the key's **Last used** stays put. The SDK types the field as `AppSecretCredential`, with open `kind` and `status` strings.
10
+ - `domino doctor --remote` adds an `app-credentials` check for app projects. It reports an error for each secret whose service key Domino would refuse, which makes doctor unhealthy, and a warning for one expiring within 7 days. Otherwise it lists each key with its permissions. The repair step is for an organization admin in Console **Settings → API keys**, followed by `domino secrets set` and a stage. The `remote-access` message now says it verifies the CLI's own credential, not the app's keys.
11
+ - `domino secrets set` still stores such a key, but warns on stderr with the same repair step and exits 0.
12
+
13
+ - 2197d95: Hosted apps keep their failed requests, exceptions and warnings for up to 7 days, and `domino runtime-logs` (experimental) reads them.
14
+
15
+ - Domino records each request a hosted app answers with 400 or above, each one that throws or runs out of CPU time or memory, and each one that logs with `console.warn` or `console.error`, in test and in live separately. A record holds the time, method, URL path (no query string), status, outcome, up to 5 exceptions and up to 20 console lines of up to 1,000 characters each. Headers, bodies, query strings and visitors' IP addresses are never stored, and Domino keys and tokens, `Bearer` values, JWT-shaped tokens, email addresses and IP addresses in what is stored become `[redacted]`. A build keeps its newest 2,000 records per environment.
16
+ - `domino runtime-logs` reads the build the environment serves, in test unless `--environment live`, or `--build ID`. `--since` takes a duration up to `7d` (24 hours by default), `--limit` up to 200 and `--cursor` the previous page's `nextCursor`. `--json` prints `{ build, items, nextCursor, environment }`; pass `nextCursor` back as `--cursor` with the same `--build`. It reads `GET /management/v1/runtime-logs`, which needs read in the environment; another project's build answers 404.
17
+ - Builds staged or promoted before this release record nothing until you stage or promote again.
18
+ - The SDK adds the experimental `runtimeLogPageSchema` and `runtimeLogEventSchema` (with `RuntimeLogPage`, `RuntimeLogEvent`, and open `RuntimeLogTrigger` and `RuntimeLogOutcome` strings) for that page.
19
+
20
+ ## 1.75.0
21
+
22
+ ### Minor Changes
23
+
24
+ - 560d387: `domino login` no longer asks for a second approval when the CLI is already signed in. With a saved CLI session that still works for the API URL, and that belongs to the `--organization` you pass (when you pass one), it starts no browser sign-in and reports who it is signed in as, the organization and when the session expires; `--json` returns `alreadySignedIn: true` with `actor`, `organization` and `expiresAt`. It still starts a browser sign-in when no session is saved, when the access check fails for the saved one (expired, revoked, or you left its organization), when it belongs to another organization, or with the new `--force` flag. Moving a checkout to the organization of a project that moved still happens when the saved session already covers it.
25
+
26
+ The management API's `GET /access` answer (`management.access()`, `domino whoami --json`) adds `expiresAt`, in epoch milliseconds, when the caller is a CLI session.
27
+
28
+ - 81ed67f: Management entitlement reads (`entitlements.list` and `entitlements.get`) say when each reward was earned, `earnedAt` in epoch milliseconds, and what earned it, `source`: `{ kind, id }` with `kind` `quest` (and the `completion` and first `attempt` behind it), `leaderboard`, `referral` (the program, and the friend as `invitee`) or `offer` (and the `redemption`). Both are nullable: an entitlement granted before Relay recorded the time reads its completion's or redemption's time, and one Relay cannot trace has a null `source`. Read them typed with `entitlementProvenanceSchema.parse(entitlement)` (the `ManagedEntitlementItem` type); participant reads leave both fields out.
29
+
30
+ Management's `referrals.history(member)` names, for each entry, the referral `account` it paid, its `kind` (`fixed`, `milestone` or `bonus`) and the friend it pays for, `invitee`, typed by the new `managedReferralHistorySchema`. Entries recorded before this release have none of them; the member's own `history()` is unchanged.
31
+
32
+ `management.leaderboards.memberStanding(board, member)` (`GET /management/v1/leaderboards/:board/members/:member`, `domino leaderboards standing BOARD MEMBER`) reads one member's rank and score on a board now, or why they are unranked: `banned`, `excluded`, `outside-group` or `unranked`.
33
+
34
+ `management.schedules.runs(name, { status, limit, cursor })` pages a schedule's runs and answers `nextCursor`; `status` keeps runs in the given statuses, such as `["failed", "uncertain"]`. `runs(name, callOptions)` still works. Relay now keeps a schedule's latest 200 runs instead of 20. `domino schedules runs` takes `--status`, `--limit` and `--cursor`.
35
+
36
+ `management.attempts.list` takes `from` and `to`, epoch milliseconds, to keep attempts created in that range (`domino attempts list --from --to`, and the MCP `list_submissions` tool).
37
+
38
+ - 81ed67f: App storage reads gain stable row identity and full KV values. A SQL rows page now names `keyColumns`, the columns a row's key holds (the table's primary key, or `rowid` when it has none), and each row's key in `rowKeys`. `storage.cell(name, table, { row, column, key })` and `domino storage cell … --key K` find the row by that key wherever rows written since moved it, and answer 404 once it is gone. Each cell page carries a `revision` that changes when the value does, and `domino storage cell --all` refuses to join pages whose revisions differ.
39
+
40
+ `storage.valueBytes(name, key, { cursor })` (`GET /storage/kv/{name}/bytes`) reads any KV value in full, binary or text, as base64 pages of `limits.apps.storageValueBytes` (4 MiB) with a `revision`. `domino storage get CACHE KEY --out FILE` writes the whole value to a new file.
41
+
42
+ `memberImports.list({ state, q })` and `domino imports list --state STATE --q TEXT` keep the imports in one state, or whose source contains the text, before paging.
43
+
44
+ ### Patch Changes
45
+
46
+ - 03bab60: `createParticipantBackend` exchanges once per participant session instead of on every request. `authenticate` still runs on every request. A request reuses the session this backend exchanged for the same app user when the browser presents that session's cookie and the session has more than 5 minutes left; requests where `authenticate` returns `accounts` still exchange every time, so `onAccounts` reports each outcome as before. Logging out through the backend, or a 401 from Domino on a reused session, makes the next request exchange again; a GET or HEAD refused that way exchanges and is sent once more. Each backend keeps up to 10,000 sessions in memory.
47
+ - f8d75e5: `proxyParticipant`, and so `createParticipantBackend` and `handleHostedApp`, no longer pass on Relay's `Content-Encoding` and `Content-Length` headers. On a Node server `fetch` had already decoded the body, so a browser behind the proxy received plain JSON labelled as compressed and could not read it.
48
+
49
+ A client `timeout` above 2,147,483,647 ms (about 24.8 days) no longer ends every call at once as a timeout.
50
+
51
+ `domino quests pause|resume`, `domino offers pause|resume` and `domino redemptions pause|resume` now refuse an `--expected-revision` that is not a whole number as a usage error (`INVALID_ARGUMENT`, exit status 2), like the other commands that take one. They used to fail later with exit status 1, or send a fraction.
52
+
53
+ `domino doctor`'s advice for a `relay.json` `apiUrl` that is not the participant API now names `RELAY_API_URL`, the variable the CLI reads.
54
+
55
+ - c5b0237: The testing kit judges an evaluator's badge and group reward selections as Relay does. It compares a badge selection with the published one by its badge and tier, and a group selection by its group and tier, so a selection that differs only elsewhere (a reward title, for example) is accepted locally as it is hosted. Before, the kit compared the whole reward and refused it with "Evaluator exceeded published reward tier".
56
+
3
57
  ## 1.74.0
4
58
 
5
59
  ### Minor Changes
@@ -5,9 +5,9 @@ export { an as KnownIntegrationModuleProvider, ao as QuestGallery, ap as SolanaT
5
5
  import { I as IdentityKind, R as ResourceHandle, Q as QuestHandle, L as LedgerReference, G as GroupHandle, g as Tracker, h as TrackerData, j as LedgerHandle, b as TrackerDataSchema, n as Where, M as MemberIdentity, o as ReferralHandle, p as TrackerTriggerContext, q as TrackerReader, s as RoleOf, C as ContentBody, B as BadgeHandle, v as ContentMetricName } from './tracker-data-Dwq9dWEm.js';
6
6
  import { xContentBodySchema, customSourceSchema, WithRecordData, WithContent, WithAccountRoles, TrackerSource, trackerDefinitionSchema, SourceRoles, xSearchSourceSchema, XTweet, XContentMetric, TrackerTriggerPolicy, TrackerTriggerMode, WhereSetting } from './schema.js';
7
7
  export { w as LedgerSetting, y as TrackerPage, z as TrackerReadQuery, A as trackerDataSchema, D as trackerTriggerContextSchema } from './tracker-data-Dwq9dWEm.js';
8
- import { S as Setting, A as AmountSetting, B as BalanceChain, M as MemberCompletion } from './capability-error-Bn6cCqof.js';
8
+ import { S as Setting, A as AmountSetting, B as BalanceChain, M as MemberCompletion } from './capability-error-D56xxE2i.js';
9
9
  import { ResourceSource, Budget, AuthorBudget, BoundSettings, Announcement } from './schema.js';
10
- export { C as CapabilityError, e as CapabilityErrorCode, D as DashboardInput, f as DashboardPanelInput, T as TikTokVideoBody, g as TikTokVideoMetric, Y as YouTubeShortBody, h as YouTubeShortMetric, i as capabilityErrorCodes, j as defineDashboard } from './capability-error-Bn6cCqof.js';
10
+ export { C as CapabilityError, e as CapabilityErrorCode, D as DashboardInput, f as DashboardPanelInput, T as TikTokVideoBody, g as TikTokVideoMetric, Y as YouTubeShortBody, h as YouTubeShortMetric, i as capabilityErrorCodes, j as defineDashboard } from './capability-error-D56xxE2i.js';
11
11
  import { e as ProfileReferral } from './profiles-CLDKZVFx.js';
12
12
  import { N as NftCollection, n as ContractCall, o as ContractEvent, p as SolanaProgram, m as SolanaSeed, q as WalletBalanceSourceQuery, r as WalletProgramActivitySourceQuery, t as WalletNftSourceQuery, u as WalletStakeSourceQuery, v as WalletProgramAccountSourceQuery, w as WalletTransaction, x as WalletInstruction, y as WalletReader } from './wallet-CeqgtXNm.js';
13
13
  import { SolanaIdlSource } from './schema.js';
@@ -18,11 +18,11 @@ import { Badge } from './index.js';
18
18
  import { badgeDeclarationSchema, OfferAuthoring } from './schema.js';
19
19
  import { QuizContent } from './index.js';
20
20
  import { StreakPolicy } from './schema.js';
21
- import { e as TelegramReader } from './submission-input-DBDLkTF8.js';
21
+ import { e as TelegramReader } from './submission-input-D_NiBR0W.js';
22
22
  import { Prerequisite, TextEvidence, UrlEvidence, TextOptions, UrlOptions } from './index.js';
23
- export { f as TelegramChatMember, g as TelegramChatMemberStatus, h as TelegramConnection, i as TelegramMessageData, j as TelegramReactionData, k as balanceAtLeast, l as completed, m as inGroup } from './submission-input-DBDLkTF8.js';
24
- import { I as ImageReader, X as XReader } from './limits-p-Mg0oSi.js';
25
- export { L as Limits, l as limits } from './limits-p-Mg0oSi.js';
23
+ export { f as TelegramChatMember, g as TelegramChatMemberStatus, h as TelegramConnection, i as TelegramMessageData, j as TelegramReactionData, k as balanceAtLeast, l as completed, m as inGroup } from './submission-input-D_NiBR0W.js';
24
+ import { I as ImageReader, X as XReader } from './limits-DICxln-i.js';
25
+ export { L as Limits, l as limits } from './limits-DICxln-i.js';
26
26
  export { f as formatUnits, p as parseUnits } from './units-CwgsPB_r.js';
27
27
 
28
28
  declare function defineBadge(input: z.input<typeof badgeDeclarationSchema>): {
package/dist/authoring.js CHANGED
@@ -6,14 +6,14 @@ import {
6
6
  sourceDataSchema,
7
7
  sourceRoles,
8
8
  validateQuestShape
9
- } from "./chunk-ELHMJODS.js";
9
+ } from "./chunk-7B7MDHJ6.js";
10
10
  import {
11
11
  defineDashboard,
12
12
  tiktokVideoBodySchema,
13
13
  tiktokVideoMetrics,
14
14
  youtubeShortBodySchema,
15
15
  youtubeShortMetrics
16
- } from "./chunk-T4PTFCSB.js";
16
+ } from "./chunk-XEXB3WZE.js";
17
17
  import {
18
18
  CapabilityError,
19
19
  capabilityErrorCodes
@@ -24,7 +24,7 @@ import {
24
24
  engagementScoreSchema,
25
25
  offerAuthoringSchema,
26
26
  referralAuthoringSchema
27
- } from "./chunk-KGZ7SRKJ.js";
27
+ } from "./chunk-TAZ5AEYF.js";
28
28
  import {
29
29
  announcementSchema,
30
30
  authorBudgetSchema,
@@ -124,7 +124,7 @@ import {
124
124
  whereSettings,
125
125
  xSearchSourceSchema,
126
126
  youtubeShortsNamespace
127
- } from "./chunk-6TDHRGBM.js";
127
+ } from "./chunk-7QHROIML.js";
128
128
  import {
129
129
  namedSchemaFailure,
130
130
  parseDefinition,
package/dist/browser.d.ts CHANGED
@@ -1,18 +1,18 @@
1
1
  import { SubmissionStore, RelayClientOptions, RelayClient } from './index.js';
2
2
  export { C as CosmosChains, D as DiscoveredWallet, E as Eip1193Provider, K as KeplrLike, S as SignInWallet, a as SolanaInjectedProvider, b as StandardWallet, c as StandardWalletAccount, d as cosmosChainList, e as cosmosSigner, f as discoverCosmosWallets, g as discoverEvmWallets, h as discoverSignInWallets, i as discoverSolanaWallets, j as evmSigner, s as solanaSigner, w as walletStandardSolanaSigner } from './wallet-browser-Cucpqn3F.js';
3
- export { E as EmailSignInOption, K as KnownStationCheckInRefusal, O as OAuthSignInOption, P as ProviderSignInOption, S as SignInClient, a as SignInIcon, b as SignInMethods, c as SignInOption, d as SignInOptions, e as SignInUnavailable, f as StationCheckInOptions, g as StationCheckInRefusal, h as StationCheckInState, i as StationCheckInStation, T as TelegramSignInOption, W as WalletSignInOption, j as checkInAtStation, s as signInOptions, t as telegramMiniAppInitData } from './station-check-in-a1deSjbm.js';
3
+ export { E as EmailSignInOption, K as KnownStationCheckInRefusal, O as OAuthSignInOption, P as ProviderSignInOption, S as SignInClient, a as SignInIcon, b as SignInMethods, c as SignInOption, d as SignInOptions, e as SignInUnavailable, f as StationCheckInOptions, g as StationCheckInRefusal, h as StationCheckInState, i as StationCheckInStation, T as TelegramSignInOption, W as WalletSignInOption, j as checkInAtStation, s as signInOptions, t as telegramMiniAppInitData } from './station-check-in-vcDKQOet.js';
4
4
  export { H as HostEnvironment, g as getHostEnvironment } from './host-environment-DUw5-Cvj.js';
5
5
  import { MemberSummary } from './index.js';
6
6
  import './accounts-C9as33l1.js';
7
7
  import 'zod';
8
8
  import './tracker-data-Dwq9dWEm.js';
9
9
  import './wallet-CeqgtXNm.js';
10
- import './submission-input-DBDLkTF8.js';
10
+ import './submission-input-D_NiBR0W.js';
11
11
  import './request-error-C24SY7n9.js';
12
12
  import './reward-deliveries-zWfsgc6m.js';
13
13
  import './catalog-9I6t18qP.js';
14
14
  import './action-BDFKqGlH.js';
15
- import './sign-in-providers-BG22ZZkl.js';
15
+ import './sign-in-providers-BMtk_NWY.js';
16
16
  import './profiles-CLDKZVFx.js';
17
17
 
18
18
  /**
package/dist/browser.js CHANGED
@@ -13,22 +13,22 @@ import {
13
13
  signInOptions,
14
14
  solanaSigner,
15
15
  walletStandardSolanaSigner
16
- } from "./chunk-724CKAC7.js";
16
+ } from "./chunk-YB5BSKVU.js";
17
17
  import {
18
18
  telegramMiniAppInitData
19
19
  } from "./chunk-FWLQ5XCS.js";
20
- import "./chunk-DNOLNMCW.js";
20
+ import "./chunk-E4ZQCG44.js";
21
21
  import "./chunk-E73HZCG2.js";
22
22
  import "./chunk-AL5XMXPO.js";
23
23
  import {
24
24
  getHostEnvironment
25
25
  } from "./chunk-MDSSIOBC.js";
26
- import "./chunk-F66GGNKD.js";
27
- import "./chunk-HCOLMJFX.js";
28
- import "./chunk-KP55TMCC.js";
29
- import "./chunk-CW7FJ5PX.js";
30
- import "./chunk-KGZ7SRKJ.js";
31
- import "./chunk-6TDHRGBM.js";
26
+ import "./chunk-4YKOSNYI.js";
27
+ import "./chunk-X5REDFGV.js";
28
+ import "./chunk-HEQ7HLXG.js";
29
+ import "./chunk-3KHVIUKK.js";
30
+ import "./chunk-TAZ5AEYF.js";
31
+ import "./chunk-7QHROIML.js";
32
32
  import "./chunk-2M5FM7FW.js";
33
33
  export {
34
34
  browserSubmissionStore,
@@ -1,7 +1,7 @@
1
1
  import * as z from 'zod';
2
2
  import { O as WalletBalanceQuery } from './wallet-CeqgtXNm.js';
3
3
  import { R as ResourceHandle } from './tracker-data-Dwq9dWEm.js';
4
- import { A as AnalyticsMetricId, a as analyticsCatalog } from './limits-p-Mg0oSi.js';
4
+ import { A as AnalyticsMetricId, a as analyticsCatalog } from './limits-DICxln-i.js';
5
5
 
6
6
  declare const completionPolicySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7
7
  kind: z.ZodLiteral<"streak">;
@@ -19,7 +19,7 @@ import {
19
19
  storedQuestDescriptionSchema,
20
20
  storedReviewModeSchema,
21
21
  tieredRewardReferenceSchema
22
- } from "./chunk-6TDHRGBM.js";
22
+ } from "./chunk-7QHROIML.js";
23
23
 
24
24
  // src/participant-activity.ts
25
25
  import * as z from "zod";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  activityTypeSchema
3
- } from "./chunk-TGQNNMCY.js";
3
+ } from "./chunk-IMX45NSW.js";
4
4
  import {
5
5
  completionRecordSchema,
6
6
  completionSourceSchema,
@@ -10,7 +10,7 @@ import {
10
10
  pageLimit,
11
11
  solanaAddressSchema,
12
12
  solanaSignatureSchema
13
- } from "./chunk-6TDHRGBM.js";
13
+ } from "./chunk-7QHROIML.js";
14
14
 
15
15
  // src/server/completions.ts
16
16
  import * as z from "zod";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  clientIdentity,
3
3
  retryAfter
4
- } from "./chunk-HCOLMJFX.js";
4
+ } from "./chunk-X5REDFGV.js";
5
5
 
6
6
  // src/http-exchange.ts
7
7
  var uncertainStatuses = /* @__PURE__ */ (() => /* @__PURE__ */ new Set([500, 502, 504]))();
@@ -7,7 +7,7 @@ import {
7
7
  takesSolanaTransaction,
8
8
  trackerDataSchema,
9
9
  xAccountRoles
10
- } from "./chunk-6TDHRGBM.js";
10
+ } from "./chunk-7QHROIML.js";
11
11
 
12
12
  // src/quest-shape.ts
13
13
  var QuestShapeError = class extends Error {
@@ -489,6 +489,7 @@ var limits = /* @__PURE__ */ (() => Object.freeze({
489
489
  storageRows: 50,
490
490
  storagePreviewCharacters: 2e3,
491
491
  storageCellCharacters: 1e5,
492
+ storageValueBytes: 4194304,
492
493
  storageClearKeys: 1e4,
493
494
  storageClearCountKeys: 1e5,
494
495
  schedules: 10,
@@ -3685,6 +3686,7 @@ var announcementSchema = /* @__PURE__ */ (() => z28.discriminatedUnion("provider
3685
3686
 
3686
3687
  // src/submission-input.ts
3687
3688
  import * as z29 from "zod";
3689
+ var photoEvidenceByteLimit = 5 * 1024 * 1024;
3688
3690
  var textOptionsSchema = /* @__PURE__ */ (() => z29.object({
3689
3691
  required: z29.boolean().default(true),
3690
3692
  minLength: z29.number().int().min(0).max(1e4).default(1),
@@ -6206,6 +6208,7 @@ export {
6206
6208
  telegramAnnouncementSchema,
6207
6209
  discordAnnouncementSchema,
6208
6210
  announcementSchema,
6211
+ photoEvidenceByteLimit,
6209
6212
  textOptionsSchema,
6210
6213
  urlOptionsSchema,
6211
6214
  textEvidenceSchema,
@@ -9,13 +9,13 @@ import {
9
9
  createHttpExchange,
10
10
  untilAborted,
11
11
  withQuery
12
- } from "./chunk-F66GGNKD.js";
12
+ } from "./chunk-4YKOSNYI.js";
13
13
  import {
14
14
  PARTICIPANT_TIMEOUT,
15
15
  lifetime,
16
16
  retrying,
17
17
  validTimeout
18
- } from "./chunk-HCOLMJFX.js";
18
+ } from "./chunk-X5REDFGV.js";
19
19
  import {
20
20
  authProvidersSchema,
21
21
  collectionPassSchema,
@@ -34,7 +34,7 @@ import {
34
34
  questOutcomeSchema,
35
35
  rewardDeliveriesSchema,
36
36
  rewardDeliveryQuerySchema
37
- } from "./chunk-KP55TMCC.js";
37
+ } from "./chunk-HEQ7HLXG.js";
38
38
  import {
39
39
  exchangeResultSchema,
40
40
  exchangeSchema,
@@ -44,7 +44,7 @@ import {
44
44
  participantSessionSchema,
45
45
  questExperienceSchema,
46
46
  sessionMember
47
- } from "./chunk-CW7FJ5PX.js";
47
+ } from "./chunk-3KHVIUKK.js";
48
48
  import {
49
49
  engagementBoundaryPageSchema,
50
50
  engagementPageQuerySchema,
@@ -55,7 +55,7 @@ import {
55
55
  referralDefinitionSchema,
56
56
  referralHistorySchema,
57
57
  referralSummarySchema
58
- } from "./chunk-KGZ7SRKJ.js";
58
+ } from "./chunk-TAZ5AEYF.js";
59
59
  import {
60
60
  AVATAR_UPLOAD_LIMIT,
61
61
  accountConnectionSchema,
@@ -85,6 +85,7 @@ import {
85
85
  missingPrerequisiteSchema,
86
86
  ownProfileSchema,
87
87
  pageQuerySchema,
88
+ photoEvidenceByteLimit,
88
89
  pointBalancesSchema,
89
90
  pointHistoryPageSchema,
90
91
  pointHistoryQuerySchema,
@@ -114,7 +115,7 @@ import {
114
115
  walletTransactionChallengeSchema,
115
116
  walletTransactionProofSchema,
116
117
  walletUnlinkInputSchema
117
- } from "./chunk-6TDHRGBM.js";
118
+ } from "./chunk-7QHROIML.js";
118
119
  import {
119
120
  RelayError,
120
121
  RelayErrorCode,
@@ -489,7 +490,7 @@ function legacySubmissions(transport, configuredStore, namespace) {
489
490
  ...handle,
490
491
  async submit(file, call) {
491
492
  const step = steps(call);
492
- if (!["image/jpeg", "image/png"].includes(file.type) || file.size === 0 || file.size > 5 * 1024 * 1024) {
493
+ if (!["image/jpeg", "image/png"].includes(file.type) || file.size === 0 || file.size > photoEvidenceByteLimit) {
493
494
  throw clientError(
494
495
  "Choose a JPG or PNG photo under 5 MB",
495
496
  RelayErrorCode.InvalidInput
@@ -768,7 +769,7 @@ function submissions(transport, configuredStore, namespace) {
768
769
  return legacyHandle.submit(file, call);
769
770
  }
770
771
  const step = steps(call);
771
- if (!["image/jpeg", "image/png"].includes(file.type) || file.size === 0 || file.size > 5 * 1024 * 1024) {
772
+ if (!["image/jpeg", "image/png"].includes(file.type) || file.size === 0 || file.size > photoEvidenceByteLimit) {
772
773
  throw clientError(
773
774
  "Choose a JPG or PNG photo under 5 MB",
774
775
  RelayErrorCode.InvalidInput
@@ -4,7 +4,7 @@ import {
4
4
  imageFieldsSchema,
5
5
  imageInspectionSchema,
6
6
  imageSightingsSchema
7
- } from "./chunk-RALBAKKX.js";
7
+ } from "./chunk-K3PEQXDV.js";
8
8
  import {
9
9
  capabilityFailureSchema
10
10
  } from "./chunk-MWMCQLCG.js";
@@ -17,7 +17,7 @@ import {
17
17
  rewardBundleSchema,
18
18
  settingsValuesSchema,
19
19
  trackerTriggerContextSchema
20
- } from "./chunk-6TDHRGBM.js";
20
+ } from "./chunk-7QHROIML.js";
21
21
 
22
22
  // src/image-results.ts
23
23
  import * as z from "zod";
@@ -10,7 +10,7 @@ import {
10
10
  skipEnrollmentSchema,
11
11
  telegramSignInMethodsSchema,
12
12
  walletSignInNetworksSchema
13
- } from "./chunk-6TDHRGBM.js";
13
+ } from "./chunk-7QHROIML.js";
14
14
 
15
15
  // src/sign-in-providers.ts
16
16
  import * as z from "zod";
@@ -6,13 +6,13 @@ import {
6
6
  imageSightingsSchema,
7
7
  imageUploadsSchema,
8
8
  publishedImageSchema
9
- } from "./chunk-RALBAKKX.js";
9
+ } from "./chunk-K3PEQXDV.js";
10
10
  import {
11
11
  dashboardArtifactSchema,
12
12
  dashboardIssue,
13
13
  dashboardPreviewSchema,
14
14
  normalizeDashboard
15
- } from "./chunk-T4PTFCSB.js";
15
+ } from "./chunk-XEXB3WZE.js";
16
16
  import {
17
17
  authProvidersSchema,
18
18
  collectionPassSchema,
@@ -23,7 +23,7 @@ import {
23
23
  questOutcomePageSchema,
24
24
  questOutcomeSchema,
25
25
  rewardDeliveriesSchema
26
- } from "./chunk-KP55TMCC.js";
26
+ } from "./chunk-HEQ7HLXG.js";
27
27
  import {
28
28
  catalogDeploymentSchema,
29
29
  collectionViewSchema,
@@ -37,7 +37,7 @@ import {
37
37
  questExperienceSchema,
38
38
  questTypeVersionSchema,
39
39
  questViewSchema
40
- } from "./chunk-CW7FJ5PX.js";
40
+ } from "./chunk-3KHVIUKK.js";
41
41
  import {
42
42
  engagementArtifactSchema,
43
43
  engagementBoundaryPageSchema,
@@ -52,7 +52,7 @@ import {
52
52
  referralDefinitionSchema,
53
53
  referralHistorySchema,
54
54
  referralSummarySchema
55
- } from "./chunk-KGZ7SRKJ.js";
55
+ } from "./chunk-TAZ5AEYF.js";
56
56
  import {
57
57
  accountConnectionSchema,
58
58
  attemptSchema,
@@ -120,7 +120,7 @@ import {
120
120
  walletTransactionChallengeSchema,
121
121
  walletTransactionsSchema,
122
122
  whereSettings
123
- } from "./chunk-6TDHRGBM.js";
123
+ } from "./chunk-7QHROIML.js";
124
124
 
125
125
  // src/deployments.ts
126
126
  import * as z from "zod";
@@ -2,7 +2,7 @@ import {
2
2
  identifier,
3
3
  responseShape,
4
4
  xTweetSchema
5
- } from "./chunk-6TDHRGBM.js";
5
+ } from "./chunk-7QHROIML.js";
6
6
 
7
7
  // src/x.ts
8
8
  import * as z from "zod";