@domino-sdk/relay 1.74.0 → 1.75.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.
- package/CHANGELOG.md +37 -0
- package/dist/authoring.d.ts +6 -6
- package/dist/authoring.js +4 -4
- package/dist/browser.d.ts +3 -3
- package/dist/browser.js +8 -8
- package/dist/{capability-error-Bn6cCqof.d.ts → capability-error-D56xxE2i.d.ts} +1 -1
- package/dist/{chunk-CW7FJ5PX.js → chunk-3KHVIUKK.js} +1 -1
- package/dist/{chunk-2LURSPDM.js → chunk-4WODSE6Y.js} +2 -2
- package/dist/{chunk-ELHMJODS.js → chunk-7B7MDHJ6.js} +1 -1
- package/dist/{chunk-6TDHRGBM.js → chunk-7QHROIML.js} +3 -0
- package/dist/{chunk-F66GGNKD.js → chunk-CEG67D4T.js} +1 -1
- package/dist/{chunk-JZT2NLSG.js → chunk-E2DB4MKM.js} +756 -662
- package/dist/{chunk-SVZ3QWHT.js → chunk-FBS65R66.js} +2 -2
- package/dist/{chunk-KP55TMCC.js → chunk-HEQ7HLXG.js} +1 -1
- package/dist/{chunk-TGQNNMCY.js → chunk-IMX45NSW.js} +6 -6
- package/dist/{chunk-RALBAKKX.js → chunk-K3PEQXDV.js} +1 -1
- package/dist/{chunk-7I7P5UVC.js → chunk-SIKP4VMU.js} +56 -7
- package/dist/{chunk-NI6XRGEL.js → chunk-SPLXHFVX.js} +2 -2
- package/dist/{chunk-KGZ7SRKJ.js → chunk-TAZ5AEYF.js} +1 -1
- package/dist/{chunk-DNOLNMCW.js → chunk-UHYKKC5U.js} +9 -8
- package/dist/{chunk-T4PTFCSB.js → chunk-XEXB3WZE.js} +1 -1
- package/dist/{chunk-HCOLMJFX.js → chunk-XJCKQSFS.js} +4 -3
- package/dist/{chunk-724CKAC7.js → chunk-ZEYI662X.js} +3 -3
- package/dist/{client-B2aVGf38.d.ts → client-336yROej.d.ts} +2 -2
- package/dist/{identity-integration-C03rUYc0.d.ts → identity-integration-DnSgQjbY.d.ts} +2 -0
- package/dist/index.d.ts +3 -3
- package/dist/index.js +7 -7
- package/dist/internal.d.ts +35 -19
- package/dist/internal.js +21 -17
- package/dist/{limits-p-Mg0oSi.d.ts → limits-DICxln-i.d.ts} +6 -0
- package/dist/portal-proxy.d.ts +7 -0
- package/dist/portal-proxy.js +125 -50
- package/dist/react/index.d.ts +5 -5
- package/dist/react/index.js +8 -8
- package/dist/runtime/authoring.js +1 -1
- package/dist/runtime/chunks/H6GH644T.js +1 -0
- package/dist/runtime/manifest.json +3 -3
- package/dist/runtime/schema.js +1 -1
- package/dist/schema.d.ts +4 -4
- package/dist/schema.js +7 -7
- package/dist/server/index.d.ts +3 -3
- package/dist/server/index.js +92 -18
- package/dist/{sign-in-providers-BG22ZZkl.d.ts → sign-in-providers-BMtk_NWY.d.ts} +1 -1
- package/dist/solana.d.ts +2 -2
- package/dist/solana.js +8 -8
- package/dist/{station-check-in-a1deSjbm.d.ts → station-check-in-vcDKQOet.d.ts} +2 -2
- package/dist/{submission-input-DBDLkTF8.d.ts → submission-input-D_NiBR0W.d.ts} +6 -1
- package/dist/telegram.d.ts +2 -2
- package/dist/testing.d.ts +2 -2
- package/dist/testing.js +15 -5
- package/dist/{transport-D77Rbf4D.d.ts → transport-BMwM6JlS.d.ts} +383 -32
- package/package.json +2 -1
- package/dist/runtime/chunks/NYEWMPJH.js +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,42 @@
|
|
|
1
1
|
# @domino-sdk/relay
|
|
2
2
|
|
|
3
|
+
## 1.75.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 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.
|
|
8
|
+
|
|
9
|
+
The management API's `GET /access` answer (`management.access()`, `domino whoami --json`) adds `expiresAt`, in epoch milliseconds, when the caller is a CLI session.
|
|
10
|
+
|
|
11
|
+
- 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.
|
|
12
|
+
|
|
13
|
+
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.
|
|
14
|
+
|
|
15
|
+
`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`.
|
|
16
|
+
|
|
17
|
+
`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`.
|
|
18
|
+
|
|
19
|
+
`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).
|
|
20
|
+
|
|
21
|
+
- 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.
|
|
22
|
+
|
|
23
|
+
`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.
|
|
24
|
+
|
|
25
|
+
`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.
|
|
26
|
+
|
|
27
|
+
### Patch Changes
|
|
28
|
+
|
|
29
|
+
- 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.
|
|
30
|
+
- 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.
|
|
31
|
+
|
|
32
|
+
A client `timeout` above 2,147,483,647 ms (about 24.8 days) no longer ends every call at once as a timeout.
|
|
33
|
+
|
|
34
|
+
`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.
|
|
35
|
+
|
|
36
|
+
`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.
|
|
37
|
+
|
|
38
|
+
- 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".
|
|
39
|
+
|
|
3
40
|
## 1.74.0
|
|
4
41
|
|
|
5
42
|
### Minor Changes
|
package/dist/authoring.d.ts
CHANGED
|
@@ -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-
|
|
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-
|
|
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-
|
|
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-
|
|
24
|
-
import { I as ImageReader, X as XReader } from './limits-
|
|
25
|
-
export { L as Limits, l as limits } from './limits-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
16
|
+
} from "./chunk-ZEYI662X.js";
|
|
17
17
|
import {
|
|
18
18
|
telegramMiniAppInitData
|
|
19
19
|
} from "./chunk-FWLQ5XCS.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-UHYKKC5U.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-
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-CEG67D4T.js";
|
|
27
|
+
import "./chunk-XJCKQSFS.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-
|
|
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">;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
activityTypeSchema
|
|
3
|
-
} from "./chunk-
|
|
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-
|
|
13
|
+
} from "./chunk-7QHROIML.js";
|
|
14
14
|
|
|
15
15
|
// src/server/completions.ts
|
|
16
16
|
import * as z from "zod";
|
|
@@ -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,
|