@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/dist/solana.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
maxCompletionReceipts,
|
|
3
3
|
walletLinkedEventDataSchema
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-4WODSE6Y.js";
|
|
5
|
+
import "./chunk-IMX45NSW.js";
|
|
6
|
+
import "./chunk-K3PEQXDV.js";
|
|
7
|
+
import "./chunk-XEXB3WZE.js";
|
|
8
8
|
import "./chunk-MWMCQLCG.js";
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-HEQ7HLXG.js";
|
|
10
|
+
import "./chunk-3KHVIUKK.js";
|
|
11
|
+
import "./chunk-TAZ5AEYF.js";
|
|
12
12
|
import {
|
|
13
13
|
paginate,
|
|
14
14
|
solanaDevnet,
|
|
15
15
|
solanaMainnet,
|
|
16
16
|
solanaMemoProgram
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-7QHROIML.js";
|
|
18
18
|
import "./chunk-2M5FM7FW.js";
|
|
19
19
|
|
|
20
20
|
// src/solana.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c as AuthProvider, J as SignInProvider, a as Attempt } from './accounts-C9as33l1.js';
|
|
2
|
-
import { p as createRelayClient, k as RelayRequestOptions, g as RelayError, R as RelayClient } from './client-
|
|
3
|
-
import { a as TelegramSignInMethods } from './submission-input-
|
|
2
|
+
import { p as createRelayClient, k as RelayRequestOptions, g as RelayError, R as RelayClient } from './client-336yROej.js';
|
|
3
|
+
import { a as TelegramSignInMethods } from './submission-input-D_NiBR0W.js';
|
|
4
4
|
import { b as ParticipantSession } from './participant-activity-BznrcePT.js';
|
|
5
5
|
import { e as WalletSignInNetwork, g as WalletSigner } from './wallet-CeqgtXNm.js';
|
|
6
6
|
import { C as CosmosChains } from './wallet-browser-Cucpqn3F.js';
|
|
@@ -300,6 +300,11 @@ declare const telegramMessageDataSchema: z.ZodObject<{
|
|
|
300
300
|
}, z.core.$strip>;
|
|
301
301
|
type TelegramMessageData = z.infer<typeof telegramMessageDataSchema>;
|
|
302
302
|
|
|
303
|
+
/**
|
|
304
|
+
* Largest photo evidence upload, in bytes. The SDK's client check, Relay's evidence record and
|
|
305
|
+
* upload limit, and the evaluator's evidence read all use it.
|
|
306
|
+
*/
|
|
307
|
+
declare const photoEvidenceByteLimit: number;
|
|
303
308
|
declare const textOptionsSchema: z.ZodObject<{
|
|
304
309
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
305
310
|
minLength: z.ZodDefault<z.ZodNumber>;
|
|
@@ -340,5 +345,5 @@ declare function validateSubmissionValue(input: ValueEvidence, contract: {
|
|
|
340
345
|
/** Extract an ID only. The URL and its author name are untrusted claims. */
|
|
341
346
|
declare function xPostId(value: string): string | null;
|
|
342
347
|
|
|
343
|
-
export { telegramChatsSchema as A, telegramConnectionInputSchema as B, telegramConnectionSchema as C, telegramInitDataSchema as D, telegramMemberInputSchema as E, telegramMessageDataSchema as F, telegramMiniAppSignInSchema as G, telegramReactionDataSchema as H, telegramSignInMethodsSchema as I, textEvidenceSchema as J, textOptionsSchema as K, urlEvidenceSchema as L, urlOptionsSchema as N, validateSubmissionValue as O, valueEvidenceSchema as Q, xPostId as R, balanceAtLeast as k, completed as l, inGroup as m, balancePrerequisiteSchema as q, completionPrerequisiteSchema as r, groupPrerequisiteSchema as s, missingPrerequisiteSchema as t, prerequisiteSchema as u, telegramAccountConnectionSchema as v, telegramChatConnectionSchema as w, telegramChatIdSchema as x, telegramChatMemberSchema as y, telegramChatSchema as z };
|
|
348
|
+
export { telegramChatsSchema as A, telegramConnectionInputSchema as B, telegramConnectionSchema as C, telegramInitDataSchema as D, telegramMemberInputSchema as E, telegramMessageDataSchema as F, telegramMiniAppSignInSchema as G, telegramReactionDataSchema as H, telegramSignInMethodsSchema as I, textEvidenceSchema as J, textOptionsSchema as K, urlEvidenceSchema as L, urlOptionsSchema as N, validateSubmissionValue as O, valueEvidenceSchema as Q, xPostId as R, photoEvidenceByteLimit as S, balanceAtLeast as k, completed as l, inGroup as m, balancePrerequisiteSchema as q, completionPrerequisiteSchema as r, groupPrerequisiteSchema as s, missingPrerequisiteSchema as t, prerequisiteSchema as u, telegramAccountConnectionSchema as v, telegramChatConnectionSchema as w, telegramChatIdSchema as x, telegramChatMemberSchema as y, telegramChatSchema as z };
|
|
344
349
|
export type { MissingPrerequisite as M, Prerequisite as P, TelegramAccountConnection as T, UrlEvidence as U, ValueEvidence as V, TelegramSignInMethods as a, TextEvidence as b, TextOptions as c, UrlOptions as d, TelegramReader as e, TelegramChatMember as f, TelegramChatMemberStatus as g, TelegramConnection as h, TelegramMessageData as i, TelegramReactionData as j, TelegramChat as n, TelegramChatConnection as o, TelegramChats as p };
|
package/dist/telegram.d.ts
CHANGED
|
@@ -4,12 +4,12 @@ import './accounts-C9as33l1.js';
|
|
|
4
4
|
import 'zod';
|
|
5
5
|
import './tracker-data-Dwq9dWEm.js';
|
|
6
6
|
import './wallet-CeqgtXNm.js';
|
|
7
|
-
import './submission-input-
|
|
7
|
+
import './submission-input-D_NiBR0W.js';
|
|
8
8
|
import './request-error-C24SY7n9.js';
|
|
9
9
|
import './reward-deliveries-zWfsgc6m.js';
|
|
10
10
|
import './catalog-9I6t18qP.js';
|
|
11
11
|
import './action-BDFKqGlH.js';
|
|
12
|
-
import './sign-in-providers-
|
|
12
|
+
import './sign-in-providers-BMtk_NWY.js';
|
|
13
13
|
import './profiles-CLDKZVFx.js';
|
|
14
14
|
|
|
15
15
|
/**
|
package/dist/testing.d.ts
CHANGED
|
@@ -6,9 +6,9 @@ import { NftCollection, SolanaSeed, WalletCallArgument, WalletEventCondition, Wa
|
|
|
6
6
|
import { linkedWalletSchema, walletBalanceSchema, walletNftsSchema, walletCallSchema, walletDelegationsSchema, walletEventsSchema, walletTransactionsSchema, walletProgramAccountSchema, walletStakeSchema, SolanaNetwork } from './schema.js';
|
|
7
7
|
import * as z from 'zod';
|
|
8
8
|
import { CapabilityFailure, memberCompletionSchema } from './schema.js';
|
|
9
|
-
export { C as CapabilityError } from './capability-error-
|
|
9
|
+
export { C as CapabilityError } from './capability-error-D56xxE2i.js';
|
|
10
10
|
import { xConnectionSchema, xProfileSchema, xPostSchema, ImageReference, imageInspectionSchema, imageComparisonSchema, imageSightingsSchema } from './schema.js';
|
|
11
|
-
export { L as Limits, l as limits } from './limits-
|
|
11
|
+
export { L as Limits, l as limits } from './limits-DICxln-i.js';
|
|
12
12
|
import { Tracker, TrackerData, ContentBody, TrackerTriggerContext, TrackerPage } from './authoring.js';
|
|
13
13
|
import { memberIdentitySchema, trackerQuerySchema, trackerPageSchema, trackerSummarySchema, TrackerContentQuery, trackerContentSchema, TrackerAttribution } from './schema.js';
|
|
14
14
|
import { TelegramReader } from './authoring.js';
|
package/dist/testing.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
capabilityRequestSchemas,
|
|
3
3
|
evaluatorReaderFactories
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-SPLXHFVX.js";
|
|
5
5
|
import {
|
|
6
6
|
attemptCaptureSchema,
|
|
7
7
|
parseImageResult
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-FBS65R66.js";
|
|
9
9
|
import {
|
|
10
10
|
isParticipantRoute
|
|
11
11
|
} from "./chunk-PYZSCFMJ.js";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
xConnectionSchema,
|
|
14
14
|
xPostSchema,
|
|
15
15
|
xProfileSchema
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-K3PEQXDV.js";
|
|
17
17
|
import {
|
|
18
18
|
CapabilityError
|
|
19
19
|
} from "./chunk-MWMCQLCG.js";
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
participantActivitySchema,
|
|
23
23
|
participantSessionSchema,
|
|
24
24
|
questExperienceSchema
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-3KHVIUKK.js";
|
|
26
26
|
import {
|
|
27
27
|
badgeCatalogSchema,
|
|
28
28
|
badgeSchema,
|
|
@@ -69,7 +69,7 @@ import {
|
|
|
69
69
|
walletProgramAccountSchema,
|
|
70
70
|
walletStakeSchema,
|
|
71
71
|
walletTransactionsSchema
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-7QHROIML.js";
|
|
73
73
|
import {
|
|
74
74
|
RelayErrorCode
|
|
75
75
|
} from "./chunk-2M5FM7FW.js";
|
|
@@ -949,6 +949,12 @@ function kindOf(reward) {
|
|
|
949
949
|
if (reward.kind === "integration") {
|
|
950
950
|
return `integration:${reward.provider}:${reward.action}`;
|
|
951
951
|
}
|
|
952
|
+
if (reward.kind === "tier" && reward.reward.badge !== void 0) {
|
|
953
|
+
return "badge";
|
|
954
|
+
}
|
|
955
|
+
if (reward.kind === "tier" && reward.reward.group !== void 0) {
|
|
956
|
+
return "group";
|
|
957
|
+
}
|
|
952
958
|
return reward.kind;
|
|
953
959
|
}
|
|
954
960
|
function within(selected, published) {
|
|
@@ -956,6 +962,10 @@ function within(selected, published) {
|
|
|
956
962
|
return selected.amount > published.amount ? "Evaluator exceeded published reward bounds" : null;
|
|
957
963
|
}
|
|
958
964
|
if (selected.kind === "tier" && published.kind === "tier") {
|
|
965
|
+
const kind = kindOf(selected);
|
|
966
|
+
if (kind === "badge" || kind === "group") {
|
|
967
|
+
return selected.tier !== published.tier || selected.reward[kind] !== published.reward[kind] ? `Evaluator exceeded published ${kind} reward bounds` : null;
|
|
968
|
+
}
|
|
959
969
|
const rank = (reward) => reward.reward.tiers.findIndex((tier) => tier.id === reward.tier);
|
|
960
970
|
return JSON.stringify(selected.reward) !== JSON.stringify(published.reward) || rank(selected) > rank(published) ? "Evaluator exceeded published reward tier" : null;
|
|
961
971
|
}
|