@domino-sdk/relay 1.24.1 → 1.29.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/dist/{accounts-B31dWEYD.d.ts → accounts-DRPENuZe.d.ts} +1 -1
- package/dist/{attempt-captures-JDIgz2lY.d.ts → attempt-captures-BPMbTDYG.d.ts} +2 -2
- package/dist/authoring.d.ts +60 -60
- package/dist/authoring.js +7 -7
- package/dist/{automatic-outcomes-T9lEIvTj.d.ts → automatic-outcomes-CGAxTwEj.d.ts} +2 -2
- package/dist/avatar.d.ts +2 -2
- package/dist/browser.d.ts +10 -10
- package/dist/browser.js +10 -10
- package/dist/{capability-error-oTd3eYFH.d.ts → capability-error-CvSZaif2.d.ts} +1 -1
- package/dist/{chunk-B4EZ76WX.js → chunk-22QERRAG.js} +3 -3
- package/dist/{chunk-MC6V6VMG.js → chunk-4OC7REYX.js} +1 -1
- package/dist/{chunk-JKFSDBQX.js → chunk-5FQ2BNG2.js} +1 -1
- package/dist/{chunk-UCZGXYCN.js → chunk-6YLULKQM.js} +10 -10
- package/dist/{chunk-6UFXPKLA.js → chunk-BVEWY2ZL.js} +99 -39
- package/dist/{chunk-MRU7GX2V.js → chunk-C3KL5SGM.js} +21 -8
- package/dist/{chunk-WOGCRDFT.js → chunk-CCTZIHWN.js} +1 -1
- package/dist/{chunk-G75JVB4D.js → chunk-DDA7G23P.js} +3 -3
- package/dist/{chunk-USVER53M.js → chunk-DP4YWFMY.js} +7 -0
- package/dist/{chunk-W33PYWYQ.js → chunk-JNBNL7FE.js} +2 -2
- package/dist/{chunk-AXQYGVOP.js → chunk-LPURBE7D.js} +1 -1
- package/dist/{chunk-GB26FIZT.js → chunk-MNL5NSC4.js} +8 -8
- package/dist/{chunk-JUQ2GNMD.js → chunk-PNCLJOUD.js} +2 -2
- package/dist/{chunk-FMQDD2MT.js → chunk-V4FGPIR3.js} +47 -16
- package/dist/{chunk-FE6SQTXF.js → chunk-VP63H7IE.js} +2 -2
- package/dist/{chunk-ENBQ6UEE.js → chunk-W2HGXOZ5.js} +3 -3
- package/dist/{chunk-E7MVYASS.js → chunk-W7PDXGYB.js} +1 -1
- package/dist/{chunk-LR2HLHIF.js → chunk-ZLYVOLU2.js} +595 -147
- package/dist/{client-HG0uMG0Q.d.ts → client-D4WMWeWC.d.ts} +123 -58
- package/dist/{deployments-DQY0PNUk.d.ts → deployments-r5RxhZ9x.d.ts} +184 -184
- package/dist/{groups-CfyRewkJ.d.ts → groups-BNUhmxYY.d.ts} +26 -3
- package/dist/{images-DwNmzqWv.d.ts → images-PPPTL2Ct.d.ts} +2 -2
- package/dist/index.d.ts +13 -13
- package/dist/index.js +12 -10
- package/dist/{integrations-BMNtARU_.d.ts → integrations-CllF-kWg.d.ts} +1 -1
- package/dist/internal.d.ts +10 -10
- package/dist/internal.js +9 -9
- package/dist/{offers-CEwkAGsB.d.ts → offers-CdB5jnRl.d.ts} +3 -3
- package/dist/{pages-D1xrbGJl.d.ts → pages-BUmWkUu2.d.ts} +17 -3
- package/dist/{participant-activity-DYdUUhw2.d.ts → participant-activity-BPZiW7m7.d.ts} +1 -1
- package/dist/{participant-rewards-3duLb8YJ.d.ts → participant-rewards-BcWkBRn_.d.ts} +1 -1
- package/dist/portal-proxy.js +4 -4
- package/dist/{profiles-D29SS12z.d.ts → profiles-BHuQdzsW.d.ts} +1 -1
- package/dist/react/index.d.ts +13 -13
- package/dist/react/index.js +16 -15
- package/dist/{schema-D57mhL2q.d.ts → schema-lmOnv5C5.d.ts} +164 -2
- package/dist/schema.d.ts +441 -442
- package/dist/schema.js +22 -8
- package/dist/server/index.d.ts +10 -10
- package/dist/server/index.js +978 -723
- package/dist/{streaks-CWyq8Px5.d.ts → streaks-0YuipsUQ.d.ts} +1 -1
- package/dist/{submission-input-DjXg0o-r.d.ts → submission-input-DdvTz7ac.d.ts} +3 -3
- package/dist/{telegram-browser-DaP0Rawg.d.ts → telegram-browser-SK3KxXBL.d.ts} +13 -5
- package/dist/testing.d.ts +8 -8
- package/dist/testing.js +15 -15
- package/dist/{transport-BNOvDy_4.d.ts → transport-BNdKQ_m4.d.ts} +6773 -3922
- package/dist/{wallet-CDyo-U4n.d.ts → wallet-t7uNDg9p.d.ts} +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { L as LedgerReference, r as QuestHandle } from './schema-
|
|
3
|
-
import { p as ProjectGroupReference } from './groups-
|
|
1
|
+
import * as z from 'zod';
|
|
2
|
+
import { L as LedgerReference, r as QuestHandle } from './schema-lmOnv5C5.js';
|
|
3
|
+
import { p as ProjectGroupReference } from './groups-BNUhmxYY.js';
|
|
4
4
|
|
|
5
5
|
declare const completionPrerequisiteSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
6
6
|
kind: z.ZodLiteral<"completion">;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { a as AuthProvider, b as TelegramSignInMethods } from './accounts-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { a as AuthProvider, b as TelegramSignInMethods } from './accounts-DRPENuZe.js';
|
|
2
|
+
import { p as createRelayClient, k as RelayRequestOptions, g as RelayError } from './client-D4WMWeWC.js';
|
|
3
|
+
import { b as ParticipantSession } from './participant-activity-BPZiW7m7.js';
|
|
4
|
+
import { C as CosmosChain, a as CosmosNetwork, f as WalletSigner, d as WalletSignInNetwork } from './wallet-t7uNDg9p.js';
|
|
4
5
|
|
|
5
6
|
/** An EIP-1193 provider, such as `window.ethereum` or an EIP-6963 announcement's provider. */
|
|
6
7
|
type Eip1193Provider = {
|
|
@@ -103,9 +104,16 @@ type SignInWallet = DiscoveredWallet & {
|
|
|
103
104
|
declare function discoverSignInWallets(families: readonly WalletSignInNetwork[], cosmos?: CosmosChains): Promise<SignInWallet[]>;
|
|
104
105
|
|
|
105
106
|
type Auth = ReturnType<typeof createRelayClient>["auth"];
|
|
106
|
-
/**
|
|
107
|
+
/**
|
|
108
|
+
* The part of a Relay client sign-in options use. `start` and `emailVerify` keep the positional
|
|
109
|
+
* forms a 1.x implementation of this type provides; a Relay client fits either way.
|
|
110
|
+
*/
|
|
107
111
|
type SignInClient = {
|
|
108
|
-
auth: Pick<Auth, "providers" | "
|
|
112
|
+
auth: Pick<Auth, "providers" | "emailStart"> & {
|
|
113
|
+
start: (provider: AuthProvider, mode: "sign-in" | "connect", requestOptions?: RelayRequestOptions) => Promise<{
|
|
114
|
+
url: string;
|
|
115
|
+
}>;
|
|
116
|
+
emailVerify: (challenge: string, code: string, requestOptions?: RelayRequestOptions) => Promise<ParticipantSession>;
|
|
109
117
|
wallet: Pick<Auth["wallet"], "signIn">;
|
|
110
118
|
/** Telegram Login; without it, `signInOptions()` offers no Telegram option. */
|
|
111
119
|
telegram?: {
|
package/dist/testing.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import { t as discordMemberSchema, w as discordMessageSchema, G as telegramChatMemberSchema } from './accounts-
|
|
4
|
-
import { b as CapabilityFailure, x as xConnectionSchema, j as xProfileSchema, i as xPostSchema } from './capability-error-
|
|
5
|
-
export { C as CapabilityError } from './capability-error-
|
|
6
|
-
import { f as ImageReference, n as imageInspectionSchema, j as imageComparisonSchema, q as imageSightingsSchema } from './images-
|
|
7
|
-
import { u as linkedWalletSchema, z as walletBalanceSchema } from './wallet-
|
|
8
|
-
export { A as AttemptCapture, C as CapturedFact } from './attempt-captures-
|
|
1
|
+
import { bG as memberIdentitySchema, cU as trackerQuerySchema, cQ as trackerPageSchema, d1 as trackerSummarySchema, aM as TrackerContentQuery, cC as trackerContentSchema, bL as photoResultSchema, Z as TextReviewInput, R as Reward, $ as Decision, aI as TrackerAttribution, y as Tracker, z as TrackerData, a4 as ContentBody, V as TrackerTriggerContext, aa as TrackerPage } from './schema-lmOnv5C5.js';
|
|
2
|
+
import * as z from 'zod';
|
|
3
|
+
import { t as discordMemberSchema, w as discordMessageSchema, G as telegramChatMemberSchema } from './accounts-DRPENuZe.js';
|
|
4
|
+
import { b as CapabilityFailure, x as xConnectionSchema, j as xProfileSchema, i as xPostSchema } from './capability-error-CvSZaif2.js';
|
|
5
|
+
export { C as CapabilityError } from './capability-error-CvSZaif2.js';
|
|
6
|
+
import { f as ImageReference, n as imageInspectionSchema, j as imageComparisonSchema, q as imageSightingsSchema } from './images-PPPTL2Ct.js';
|
|
7
|
+
import { u as linkedWalletSchema, z as walletBalanceSchema } from './wallet-t7uNDg9p.js';
|
|
8
|
+
export { A as AttemptCapture, C as CapturedFact } from './attempt-captures-BPMbTDYG.js';
|
|
9
9
|
|
|
10
10
|
/** One project time-zone change: from `effectiveAt` on, days are counted in `timeZone`. */
|
|
11
11
|
type CalendarSegment = {
|
package/dist/testing.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
2
|
attemptCaptureSchema
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-DDA7G23P.js";
|
|
4
4
|
import {
|
|
5
5
|
CapabilityError
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-4OC7REYX.js";
|
|
7
7
|
import {
|
|
8
8
|
parseImageResult
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-W2HGXOZ5.js";
|
|
10
10
|
import {
|
|
11
11
|
imageRequestSchema,
|
|
12
12
|
xConnectionSchema,
|
|
13
13
|
xPostSchema,
|
|
14
14
|
xProfileSchema,
|
|
15
15
|
xRequestSchema
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-22QERRAG.js";
|
|
17
17
|
import {
|
|
18
18
|
telegramChatMemberSchema,
|
|
19
19
|
telegramMemberInputSchema
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-JNBNL7FE.js";
|
|
21
21
|
import {
|
|
22
22
|
contentPerformanceSnapshotSchema,
|
|
23
23
|
cosmosNetworkSchema,
|
|
@@ -46,10 +46,10 @@ import {
|
|
|
46
46
|
urlEvidenceSchema,
|
|
47
47
|
validateSubmissionValue,
|
|
48
48
|
walletBalanceSchema
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-BVEWY2ZL.js";
|
|
50
50
|
|
|
51
51
|
// src/testing/run.ts
|
|
52
|
-
import
|
|
52
|
+
import * as z3 from "zod";
|
|
53
53
|
|
|
54
54
|
// src/testing/calendar.ts
|
|
55
55
|
var dayMilliseconds = 24 * 60 * 60 * 1e3;
|
|
@@ -135,7 +135,7 @@ function evaluationCalendar(snapshot, eligibleAt) {
|
|
|
135
135
|
}
|
|
136
136
|
|
|
137
137
|
// src/testing/capabilities.ts
|
|
138
|
-
import
|
|
138
|
+
import * as z from "zod";
|
|
139
139
|
var trackerInput = {
|
|
140
140
|
reference: identifier,
|
|
141
141
|
query: trackerQuerySchema,
|
|
@@ -476,21 +476,21 @@ function install(now, seed, restores) {
|
|
|
476
476
|
const crypto = globalThis.crypto;
|
|
477
477
|
if (crypto) {
|
|
478
478
|
restores.push(
|
|
479
|
-
replace(crypto, "getRandomValues", (
|
|
480
|
-
if (!integerArrays.some((type) =>
|
|
479
|
+
replace(crypto, "getRandomValues", (array2) => {
|
|
480
|
+
if (!integerArrays.some((type) => array2 instanceof type)) {
|
|
481
481
|
throw new DOMException(
|
|
482
482
|
"getRandomValues takes an integer typed array",
|
|
483
483
|
"TypeMismatchError"
|
|
484
484
|
);
|
|
485
485
|
}
|
|
486
|
-
if (
|
|
486
|
+
if (array2.byteLength > 65536) {
|
|
487
487
|
throw new DOMException(
|
|
488
488
|
"getRandomValues takes at most 65536 bytes",
|
|
489
489
|
"QuotaExceededError"
|
|
490
490
|
);
|
|
491
491
|
}
|
|
492
|
-
fill(new Uint8Array(
|
|
493
|
-
return
|
|
492
|
+
fill(new Uint8Array(array2.buffer, array2.byteOffset, array2.byteLength));
|
|
493
|
+
return array2;
|
|
494
494
|
})
|
|
495
495
|
);
|
|
496
496
|
restores.push(
|
|
@@ -509,7 +509,7 @@ function install(now, seed, restores) {
|
|
|
509
509
|
}
|
|
510
510
|
|
|
511
511
|
// src/testing/facts.ts
|
|
512
|
-
import
|
|
512
|
+
import * as z2 from "zod";
|
|
513
513
|
var TestSetupError = class extends Error {
|
|
514
514
|
constructor(message) {
|
|
515
515
|
super(message);
|
|
@@ -1184,7 +1184,7 @@ function trackerPage(tracker, records, options = {}) {
|
|
|
1184
1184
|
}
|
|
1185
1185
|
|
|
1186
1186
|
// src/testing/replay.ts
|
|
1187
|
-
import
|
|
1187
|
+
import * as z4 from "zod";
|
|
1188
1188
|
var ReplayStopped = class extends Error {
|
|
1189
1189
|
constructor(divergence) {
|
|
1190
1190
|
super(
|