@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,5 +1,5 @@
|
|
|
1
|
-
import { O as OpenIdentityKind } from './schema-
|
|
2
|
-
import
|
|
1
|
+
import { O as OpenIdentityKind } from './schema-lmOnv5C5.js';
|
|
2
|
+
import * as z from 'zod';
|
|
3
3
|
|
|
4
4
|
/** One capability call of the captured evaluation run, as Relay stored it. */
|
|
5
5
|
declare const capturedFactSchema: z.ZodObject<{
|
package/dist/authoring.d.ts
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { x as xContentBodySchema, I as IdentityKind, n as customSourceSchema, W as WithRecordData, o as WithContent, p as WithAccountRoles, q as ResourceHandle, r as QuestHandle, L as LedgerReference, G as GroupHandle, u as TrackerSource, v as trackerDefinitionSchema, y as Tracker, z as TrackerData, B as SourceRoles, C as LedgerHandle, D as TrackerDataSchema, F as xSearchSourceSchema, X as XTweet, H as XContentMetric, J as TrackerTriggerPolicy, N as Where, U as MemberIdentity, V as TrackerTriggerContext, Y as TrackerReader, Z as TextReviewInput, _ as TextResult, P as PhotoResult, $ as Decision, a0 as rewardSchema, a1 as TrackerTriggerMode, a2 as RoleOf, a3 as WhereSetting, a4 as ContentBody, a5 as BadgeHandle, a6 as ContentMetricName, a7 as triggerSchema, d as QuestPresentation, e as QuestProfile, f as QuizEvidence, a8 as TieredRewardDefinition } from './schema-
|
|
2
|
-
export { a9 as LedgerSetting, aa as TrackerPage, ab as TrackerReadQuery, ac as trackerDataSchema, ad as trackerTriggerContextSchema } from './schema-
|
|
3
|
-
import
|
|
1
|
+
import { x as xContentBodySchema, I as IdentityKind, n as customSourceSchema, W as WithRecordData, o as WithContent, p as WithAccountRoles, q as ResourceHandle, r as QuestHandle, L as LedgerReference, G as GroupHandle, u as TrackerSource, v as trackerDefinitionSchema, y as Tracker, z as TrackerData, B as SourceRoles, C as LedgerHandle, D as TrackerDataSchema, F as xSearchSourceSchema, X as XTweet, H as XContentMetric, J as TrackerTriggerPolicy, N as Where, U as MemberIdentity, V as TrackerTriggerContext, Y as TrackerReader, Z as TextReviewInput, _ as TextResult, P as PhotoResult, $ as Decision, a0 as rewardSchema, a1 as TrackerTriggerMode, a2 as RoleOf, a3 as WhereSetting, a4 as ContentBody, a5 as BadgeHandle, a6 as ContentMetricName, a7 as triggerSchema, d as QuestPresentation, e as QuestProfile, f as QuizEvidence, a8 as TieredRewardDefinition } from './schema-lmOnv5C5.js';
|
|
2
|
+
export { a9 as LedgerSetting, aa as TrackerPage, ab as TrackerReadQuery, ac as trackerDataSchema, ad as trackerTriggerContextSchema } from './schema-lmOnv5C5.js';
|
|
3
|
+
import * as z from 'zod';
|
|
4
4
|
export { z } from 'zod';
|
|
5
|
-
import { f as badgeDeclarationSchema, B as Badge } from './offers-
|
|
6
|
-
export { g as defineOffer } from './offers-
|
|
7
|
-
import { E as EngagementBudget, q as leaderboardDefinitionSchema, r as AuthoringIdentity, s as pointLedgerDeclarationSchema, t as referralAuthoringSchema, C as CampaignDefinition, A as AvailabilityWindow } from './groups-
|
|
8
|
-
export { u as defineCampaign, v as defineGroup } from './groups-
|
|
9
|
-
import { d as discordMessagesSourceSchema, D as DiscordMessageData, c as DiscordMessageTextData, e as discordReactionsSourceSchema, f as DiscordReactionData, g as TelegramReader, h as DiscordReader } from './accounts-
|
|
10
|
-
export { i as TelegramChatMember, j as TelegramChatMemberStatus, k as TelegramReactionData } from './accounts-
|
|
11
|
-
import { Q as QuizContent, a as StreakPolicy } from './streaks-
|
|
12
|
-
import { R as ResourceSource, S as Setting, I as IntegrationModule, B as Budget, a as IntegerSettings } from './integrations-
|
|
13
|
-
import { P as Prerequisite, T as TextEvidence, U as UrlEvidence, a as TextOptions, b as UrlOptions } from './submission-input-
|
|
14
|
-
export { c as balanceAtLeast, d as completed, i as inGroup } from './submission-input-
|
|
15
|
-
import { I as ImageReader } from './images-
|
|
16
|
-
import { X as XReader } from './capability-error-
|
|
17
|
-
export { C as CapabilityError, a as CapabilityErrorCode, c as capabilityErrorCodes } from './capability-error-
|
|
18
|
-
import { h as WalletReader } from './wallet-
|
|
19
|
-
export { i as CosmosDenom, a as CosmosNetwork, E as EvmChainId, j as WalletBalance, k as WalletBalanceQuery, l as cosmosDenomSchema, m as cosmosNetworkSchema, n as isEvmChainId } from './wallet-
|
|
5
|
+
import { f as badgeDeclarationSchema, B as Badge } from './offers-CdB5jnRl.js';
|
|
6
|
+
export { g as defineOffer } from './offers-CdB5jnRl.js';
|
|
7
|
+
import { E as EngagementBudget, q as leaderboardDefinitionSchema, r as AuthoringIdentity, s as pointLedgerDeclarationSchema, t as referralAuthoringSchema, C as CampaignDefinition, A as AvailabilityWindow } from './groups-BNUhmxYY.js';
|
|
8
|
+
export { u as defineCampaign, v as defineGroup } from './groups-BNUhmxYY.js';
|
|
9
|
+
import { d as discordMessagesSourceSchema, D as DiscordMessageData, c as DiscordMessageTextData, e as discordReactionsSourceSchema, f as DiscordReactionData, g as TelegramReader, h as DiscordReader } from './accounts-DRPENuZe.js';
|
|
10
|
+
export { i as TelegramChatMember, j as TelegramChatMemberStatus, k as TelegramReactionData } from './accounts-DRPENuZe.js';
|
|
11
|
+
import { Q as QuizContent, a as StreakPolicy } from './streaks-0YuipsUQ.js';
|
|
12
|
+
import { R as ResourceSource, S as Setting, I as IntegrationModule, B as Budget, a as IntegerSettings } from './integrations-CllF-kWg.js';
|
|
13
|
+
import { P as Prerequisite, T as TextEvidence, U as UrlEvidence, a as TextOptions, b as UrlOptions } from './submission-input-DdvTz7ac.js';
|
|
14
|
+
export { c as balanceAtLeast, d as completed, i as inGroup } from './submission-input-DdvTz7ac.js';
|
|
15
|
+
import { I as ImageReader } from './images-PPPTL2Ct.js';
|
|
16
|
+
import { X as XReader } from './capability-error-CvSZaif2.js';
|
|
17
|
+
export { C as CapabilityError, a as CapabilityErrorCode, c as capabilityErrorCodes } from './capability-error-CvSZaif2.js';
|
|
18
|
+
import { h as WalletReader } from './wallet-t7uNDg9p.js';
|
|
19
|
+
export { i as CosmosDenom, a as CosmosNetwork, E as EvmChainId, j as WalletBalance, k as WalletBalanceQuery, l as cosmosDenomSchema, m as cosmosNetworkSchema, n as isEvmChainId } from './wallet-t7uNDg9p.js';
|
|
20
20
|
export { f as formatUnits, p as parseUnits } from './units-CwgsPB_r.js';
|
|
21
21
|
|
|
22
22
|
declare function defineBadge(input: z.input<typeof badgeDeclarationSchema>): {
|
|
@@ -258,8 +258,8 @@ declare function defineLeaderboard(input: Omit<LeaderboardInput, "key" | "id" |
|
|
|
258
258
|
kind: "earned";
|
|
259
259
|
}> | ReturnType<typeof earned>;
|
|
260
260
|
}): {
|
|
261
|
-
title: string;
|
|
262
261
|
balance: string;
|
|
262
|
+
title: string;
|
|
263
263
|
access: "participants" | "public";
|
|
264
264
|
score: {
|
|
265
265
|
kind: "balance";
|
|
@@ -446,7 +446,7 @@ declare const telegram: {
|
|
|
446
446
|
reactions(): {
|
|
447
447
|
kind: "custom";
|
|
448
448
|
namespace: string;
|
|
449
|
-
identities?: ("
|
|
449
|
+
identities?: ("discord" | "wallet" | "x" | "member" | `app:${string}`)[] | undefined;
|
|
450
450
|
accounts?: string[] | undefined;
|
|
451
451
|
data?: TrackerDataSchema | undefined;
|
|
452
452
|
content?: {
|
|
@@ -1097,15 +1097,15 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
|
|
|
1097
1097
|
badge?: string | undefined;
|
|
1098
1098
|
};
|
|
1099
1099
|
tier: string;
|
|
1100
|
+
} | {
|
|
1101
|
+
kind: "points";
|
|
1102
|
+
balance: string;
|
|
1103
|
+
amount: number;
|
|
1100
1104
|
} | {
|
|
1101
1105
|
kind: "integration";
|
|
1102
1106
|
provider: "discord";
|
|
1103
1107
|
action: "grant-role";
|
|
1104
1108
|
roleId: string;
|
|
1105
|
-
} | {
|
|
1106
|
-
kind: "points";
|
|
1107
|
-
balance: string;
|
|
1108
|
-
amount: number;
|
|
1109
1109
|
})[] | ((ctx: {
|
|
1110
1110
|
settings: z.core.$InferObjectOutput<T, {}>;
|
|
1111
1111
|
}) => Reward[]);
|
|
@@ -1141,7 +1141,7 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
|
|
|
1141
1141
|
imageAlt?: string | undefined;
|
|
1142
1142
|
requirements?: ({
|
|
1143
1143
|
kind: "account";
|
|
1144
|
-
provider: "
|
|
1144
|
+
provider: "discord" | "x" | "google" | "apple";
|
|
1145
1145
|
} | {
|
|
1146
1146
|
kind: "wallet";
|
|
1147
1147
|
chain?: "solana" | "eip155" | "cosmos" | undefined;
|
|
@@ -1165,7 +1165,7 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
|
|
|
1165
1165
|
} | undefined;
|
|
1166
1166
|
} | undefined;
|
|
1167
1167
|
};
|
|
1168
|
-
integrations: ("
|
|
1168
|
+
integrations: ("discord" | "x")[];
|
|
1169
1169
|
fields: Record<string, {
|
|
1170
1170
|
kind: "point-ledger";
|
|
1171
1171
|
default: string;
|
|
@@ -1180,6 +1180,9 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
|
|
|
1180
1180
|
kind: "resource";
|
|
1181
1181
|
default: string;
|
|
1182
1182
|
source: {
|
|
1183
|
+
provider: "domino";
|
|
1184
|
+
resource: "point-ledger";
|
|
1185
|
+
} | {
|
|
1183
1186
|
provider: "discord";
|
|
1184
1187
|
resource: "channel";
|
|
1185
1188
|
types: ("text" | "announcement")[];
|
|
@@ -1187,9 +1190,6 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
|
|
|
1187
1190
|
provider: "discord";
|
|
1188
1191
|
resource: "role";
|
|
1189
1192
|
assignable: boolean;
|
|
1190
|
-
} | {
|
|
1191
|
-
provider: "domino";
|
|
1192
|
-
resource: "point-ledger";
|
|
1193
1193
|
};
|
|
1194
1194
|
label: string;
|
|
1195
1195
|
description?: string | undefined;
|
|
@@ -1263,15 +1263,15 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
|
|
|
1263
1263
|
badge?: string | undefined;
|
|
1264
1264
|
};
|
|
1265
1265
|
tier: string;
|
|
1266
|
+
} | {
|
|
1267
|
+
kind: "points";
|
|
1268
|
+
balance: string;
|
|
1269
|
+
amount: number;
|
|
1266
1270
|
} | {
|
|
1267
1271
|
kind: "integration";
|
|
1268
1272
|
provider: "discord";
|
|
1269
1273
|
action: "grant-role";
|
|
1270
1274
|
roleId: string;
|
|
1271
|
-
} | {
|
|
1272
|
-
kind: "points";
|
|
1273
|
-
balance: string;
|
|
1274
|
-
amount: number;
|
|
1275
1275
|
})[];
|
|
1276
1276
|
humanReview: boolean;
|
|
1277
1277
|
trigger: {
|
|
@@ -1293,7 +1293,7 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
|
|
|
1293
1293
|
actor?: "staff" | "member" | undefined;
|
|
1294
1294
|
} | {
|
|
1295
1295
|
kind: "manual";
|
|
1296
|
-
input: "
|
|
1296
|
+
input: "photo" | "quiz" | "none";
|
|
1297
1297
|
actor?: "staff" | "member" | undefined;
|
|
1298
1298
|
} | {
|
|
1299
1299
|
kind: "automatic";
|
|
@@ -1337,9 +1337,9 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
|
|
|
1337
1337
|
path: string;
|
|
1338
1338
|
equals: string | number | boolean;
|
|
1339
1339
|
})[] | undefined;
|
|
1340
|
-
enrollment?: "
|
|
1340
|
+
enrollment?: "required" | "none" | undefined;
|
|
1341
1341
|
since?: "activation" | "window" | "enrollment" | undefined;
|
|
1342
|
-
historical?: "
|
|
1342
|
+
historical?: "automatic" | "staff" | "claim" | undefined;
|
|
1343
1343
|
content?: true | undefined;
|
|
1344
1344
|
} | undefined;
|
|
1345
1345
|
};
|
|
@@ -1362,6 +1362,9 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
|
|
|
1362
1362
|
title: string;
|
|
1363
1363
|
})[];
|
|
1364
1364
|
completion: {
|
|
1365
|
+
kind: "streak";
|
|
1366
|
+
days: number;
|
|
1367
|
+
} | {
|
|
1365
1368
|
kind: "progress";
|
|
1366
1369
|
goal: {
|
|
1367
1370
|
kind: "count";
|
|
@@ -1378,9 +1381,6 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
|
|
|
1378
1381
|
durationMs: number;
|
|
1379
1382
|
};
|
|
1380
1383
|
repeat: "repeat" | "once";
|
|
1381
|
-
} | {
|
|
1382
|
-
kind: "streak";
|
|
1383
|
-
days: number;
|
|
1384
1384
|
} | {
|
|
1385
1385
|
kind: "once";
|
|
1386
1386
|
} | {
|
|
@@ -1406,7 +1406,7 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
|
|
|
1406
1406
|
campaign?: {
|
|
1407
1407
|
key: string;
|
|
1408
1408
|
title: string;
|
|
1409
|
-
enrollment: "
|
|
1409
|
+
enrollment: "required" | "none";
|
|
1410
1410
|
window?: {
|
|
1411
1411
|
from: number;
|
|
1412
1412
|
until: number;
|
|
@@ -1521,15 +1521,15 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
|
|
|
1521
1521
|
badge?: string | undefined;
|
|
1522
1522
|
};
|
|
1523
1523
|
tier: string;
|
|
1524
|
+
} | {
|
|
1525
|
+
kind: "points";
|
|
1526
|
+
balance: string;
|
|
1527
|
+
amount: number;
|
|
1524
1528
|
} | {
|
|
1525
1529
|
kind: "integration";
|
|
1526
1530
|
provider: "discord";
|
|
1527
1531
|
action: "grant-role";
|
|
1528
1532
|
roleId: string;
|
|
1529
|
-
} | {
|
|
1530
|
-
kind: "points";
|
|
1531
|
-
balance: string;
|
|
1532
|
-
amount: number;
|
|
1533
1533
|
})[] | ((ctx: {
|
|
1534
1534
|
settings: z.core.$InferObjectOutput<T, {}>;
|
|
1535
1535
|
}) => Reward[]);
|
|
@@ -1565,7 +1565,7 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
|
|
|
1565
1565
|
imageAlt?: string | undefined;
|
|
1566
1566
|
requirements?: ({
|
|
1567
1567
|
kind: "account";
|
|
1568
|
-
provider: "
|
|
1568
|
+
provider: "discord" | "x" | "google" | "apple";
|
|
1569
1569
|
} | {
|
|
1570
1570
|
kind: "wallet";
|
|
1571
1571
|
chain?: "solana" | "eip155" | "cosmos" | undefined;
|
|
@@ -1589,7 +1589,7 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
|
|
|
1589
1589
|
} | undefined;
|
|
1590
1590
|
} | undefined;
|
|
1591
1591
|
};
|
|
1592
|
-
integrations: ("
|
|
1592
|
+
integrations: ("discord" | "x")[];
|
|
1593
1593
|
fields: Record<string, {
|
|
1594
1594
|
kind: "point-ledger";
|
|
1595
1595
|
default: string;
|
|
@@ -1604,6 +1604,9 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
|
|
|
1604
1604
|
kind: "resource";
|
|
1605
1605
|
default: string;
|
|
1606
1606
|
source: {
|
|
1607
|
+
provider: "domino";
|
|
1608
|
+
resource: "point-ledger";
|
|
1609
|
+
} | {
|
|
1607
1610
|
provider: "discord";
|
|
1608
1611
|
resource: "channel";
|
|
1609
1612
|
types: ("text" | "announcement")[];
|
|
@@ -1611,9 +1614,6 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
|
|
|
1611
1614
|
provider: "discord";
|
|
1612
1615
|
resource: "role";
|
|
1613
1616
|
assignable: boolean;
|
|
1614
|
-
} | {
|
|
1615
|
-
provider: "domino";
|
|
1616
|
-
resource: "point-ledger";
|
|
1617
1617
|
};
|
|
1618
1618
|
label: string;
|
|
1619
1619
|
description?: string | undefined;
|
|
@@ -1687,15 +1687,15 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
|
|
|
1687
1687
|
badge?: string | undefined;
|
|
1688
1688
|
};
|
|
1689
1689
|
tier: string;
|
|
1690
|
+
} | {
|
|
1691
|
+
kind: "points";
|
|
1692
|
+
balance: string;
|
|
1693
|
+
amount: number;
|
|
1690
1694
|
} | {
|
|
1691
1695
|
kind: "integration";
|
|
1692
1696
|
provider: "discord";
|
|
1693
1697
|
action: "grant-role";
|
|
1694
1698
|
roleId: string;
|
|
1695
|
-
} | {
|
|
1696
|
-
kind: "points";
|
|
1697
|
-
balance: string;
|
|
1698
|
-
amount: number;
|
|
1699
1699
|
})[];
|
|
1700
1700
|
humanReview: boolean;
|
|
1701
1701
|
trigger: {
|
|
@@ -1717,7 +1717,7 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
|
|
|
1717
1717
|
actor?: "staff" | "member" | undefined;
|
|
1718
1718
|
} | {
|
|
1719
1719
|
kind: "manual";
|
|
1720
|
-
input: "
|
|
1720
|
+
input: "photo" | "quiz" | "none";
|
|
1721
1721
|
actor?: "staff" | "member" | undefined;
|
|
1722
1722
|
} | {
|
|
1723
1723
|
kind: "automatic";
|
|
@@ -1761,9 +1761,9 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
|
|
|
1761
1761
|
path: string;
|
|
1762
1762
|
equals: string | number | boolean;
|
|
1763
1763
|
})[] | undefined;
|
|
1764
|
-
enrollment?: "
|
|
1764
|
+
enrollment?: "required" | "none" | undefined;
|
|
1765
1765
|
since?: "activation" | "window" | "enrollment" | undefined;
|
|
1766
|
-
historical?: "
|
|
1766
|
+
historical?: "automatic" | "staff" | "claim" | undefined;
|
|
1767
1767
|
content?: true | undefined;
|
|
1768
1768
|
} | undefined;
|
|
1769
1769
|
};
|
|
@@ -1786,6 +1786,9 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
|
|
|
1786
1786
|
title: string;
|
|
1787
1787
|
})[];
|
|
1788
1788
|
completion: {
|
|
1789
|
+
kind: "streak";
|
|
1790
|
+
days: number;
|
|
1791
|
+
} | {
|
|
1789
1792
|
kind: "progress";
|
|
1790
1793
|
goal: {
|
|
1791
1794
|
kind: "count";
|
|
@@ -1802,9 +1805,6 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
|
|
|
1802
1805
|
durationMs: number;
|
|
1803
1806
|
};
|
|
1804
1807
|
repeat: "repeat" | "once";
|
|
1805
|
-
} | {
|
|
1806
|
-
kind: "streak";
|
|
1807
|
-
days: number;
|
|
1808
1808
|
} | {
|
|
1809
1809
|
kind: "once";
|
|
1810
1810
|
} | {
|
|
@@ -1830,7 +1830,7 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
|
|
|
1830
1830
|
campaign?: {
|
|
1831
1831
|
key: string;
|
|
1832
1832
|
title: string;
|
|
1833
|
-
enrollment: "
|
|
1833
|
+
enrollment: "required" | "none";
|
|
1834
1834
|
window?: {
|
|
1835
1835
|
from: number;
|
|
1836
1836
|
until: number;
|
package/dist/authoring.js
CHANGED
|
@@ -5,12 +5,12 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
CapabilityError,
|
|
7
7
|
capabilityErrorCodes
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-4OC7REYX.js";
|
|
9
9
|
import {
|
|
10
10
|
sourceDataSchema,
|
|
11
11
|
sourceRoles,
|
|
12
12
|
validateQuestShape
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-LPURBE7D.js";
|
|
14
14
|
import {
|
|
15
15
|
badgeDeclarationSchema,
|
|
16
16
|
defineOffer,
|
|
@@ -20,11 +20,11 @@ import {
|
|
|
20
20
|
leaderboardAuthoringSchema,
|
|
21
21
|
pointLedgerDeclarationSchema,
|
|
22
22
|
referralAuthoringSchema
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-C3KL5SGM.js";
|
|
24
24
|
import {
|
|
25
25
|
telegramReactionDataSchema,
|
|
26
26
|
telegramReactionsNamespace
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-JNBNL7FE.js";
|
|
28
28
|
import {
|
|
29
29
|
authoringKey,
|
|
30
30
|
badgeReward,
|
|
@@ -81,10 +81,10 @@ import {
|
|
|
81
81
|
whereSchemaIssue,
|
|
82
82
|
whereSettings,
|
|
83
83
|
xSearchSourceSchema
|
|
84
|
-
} from "./chunk-
|
|
84
|
+
} from "./chunk-BVEWY2ZL.js";
|
|
85
85
|
|
|
86
86
|
// src/builders.ts
|
|
87
|
-
import
|
|
87
|
+
import * as z from "zod";
|
|
88
88
|
function defineBadge(input) {
|
|
89
89
|
return resourceHandle("badge", badgeDeclarationSchema.parse(input));
|
|
90
90
|
}
|
|
@@ -378,7 +378,7 @@ var settings = {
|
|
|
378
378
|
|
|
379
379
|
// src/authoring.ts
|
|
380
380
|
import { z as z2 } from "zod";
|
|
381
|
-
import
|
|
381
|
+
import * as z3 from "zod";
|
|
382
382
|
var badge = (definition) => badgeReward(definition.key, definition.name);
|
|
383
383
|
var points = (ledger, amount) => pointsRewardSchema.parse({
|
|
384
384
|
kind: "points",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { a as AttemptStatus } from './schema-
|
|
1
|
+
import * as z from 'zod';
|
|
2
|
+
import { a as AttemptStatus } from './schema-lmOnv5C5.js';
|
|
3
3
|
|
|
4
4
|
declare const collectionCodeSchema: z.ZodString;
|
|
5
5
|
declare const collectionPassSchema: z.ZodObject<{
|
package/dist/avatar.d.ts
CHANGED
package/dist/browser.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { C as CosmosChains, D as DiscoveredWallet, E as Eip1193Provider, a as EmailSignInOption, K as KeplrLike, O as OAuthSignInOption, S as SignInClient, b as SignInIcon, c as SignInMethods, d as SignInOption, e as SignInOptions, f as SignInUnavailable, g as SignInWallet, h as SolanaInjectedProvider, i as StandardWallet, j as StandardWalletAccount, T as TelegramSignInOption, W as WalletSignInOption, k as cosmosChainList, l as cosmosSigner, m as discoverCosmosWallets, n as discoverEvmWallets, o as discoverSignInWallets, p as discoverSolanaWallets, q as evmSigner, s as signInOptions, r as solanaSigner, t as telegramMiniAppInitData, w as walletStandardSolanaSigner } from './telegram-browser-
|
|
3
|
-
import './groups-
|
|
1
|
+
import { o as SubmissionStore, f as RelayClientOptions, R as RelayClient } from './client-D4WMWeWC.js';
|
|
2
|
+
export { C as CosmosChains, D as DiscoveredWallet, E as Eip1193Provider, a as EmailSignInOption, K as KeplrLike, O as OAuthSignInOption, S as SignInClient, b as SignInIcon, c as SignInMethods, d as SignInOption, e as SignInOptions, f as SignInUnavailable, g as SignInWallet, h as SolanaInjectedProvider, i as StandardWallet, j as StandardWalletAccount, T as TelegramSignInOption, W as WalletSignInOption, k as cosmosChainList, l as cosmosSigner, m as discoverCosmosWallets, n as discoverEvmWallets, o as discoverSignInWallets, p as discoverSolanaWallets, q as evmSigner, s as signInOptions, r as solanaSigner, t as telegramMiniAppInitData, w as walletStandardSolanaSigner } from './telegram-browser-SK3KxXBL.js';
|
|
3
|
+
import './groups-BNUhmxYY.js';
|
|
4
4
|
import 'zod';
|
|
5
|
-
import './schema-
|
|
6
|
-
import './pages-
|
|
7
|
-
import './submission-input-
|
|
5
|
+
import './schema-lmOnv5C5.js';
|
|
6
|
+
import './pages-BUmWkUu2.js';
|
|
7
|
+
import './submission-input-DdvTz7ac.js';
|
|
8
8
|
import './action-DBzILFx9.js';
|
|
9
|
-
import './participant-activity-
|
|
10
|
-
import './accounts-
|
|
11
|
-
import './profiles-
|
|
12
|
-
import './wallet-
|
|
9
|
+
import './participant-activity-BPZiW7m7.js';
|
|
10
|
+
import './accounts-DRPENuZe.js';
|
|
11
|
+
import './profiles-BHuQdzsW.js';
|
|
12
|
+
import './wallet-t7uNDg9p.js';
|
|
13
13
|
|
|
14
14
|
/** Browser client with durable submission recovery; safe to construct during SSR. */
|
|
15
15
|
declare function createBrowserRelayClient(options: RelayClientOptions): RelayClient;
|
package/dist/browser.js
CHANGED
|
@@ -12,16 +12,16 @@ import {
|
|
|
12
12
|
solanaSigner,
|
|
13
13
|
telegramMiniAppInitData,
|
|
14
14
|
walletStandardSolanaSigner
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-VP63H7IE.js";
|
|
16
|
+
import "./chunk-ZLYVOLU2.js";
|
|
17
|
+
import "./chunk-W7PDXGYB.js";
|
|
18
|
+
import "./chunk-MNL5NSC4.js";
|
|
19
|
+
import "./chunk-C3KL5SGM.js";
|
|
20
|
+
import "./chunk-JNBNL7FE.js";
|
|
21
|
+
import "./chunk-CCTZIHWN.js";
|
|
22
|
+
import "./chunk-5FQ2BNG2.js";
|
|
23
|
+
import "./chunk-PNCLJOUD.js";
|
|
24
|
+
import "./chunk-BVEWY2ZL.js";
|
|
25
25
|
export {
|
|
26
26
|
browserSubmissionStore,
|
|
27
27
|
cosmosChainList,
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
identifier,
|
|
3
3
|
responseShape,
|
|
4
4
|
xTweetSchema
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-BVEWY2ZL.js";
|
|
6
6
|
|
|
7
7
|
// src/x.ts
|
|
8
|
-
import
|
|
8
|
+
import * as z from "zod";
|
|
9
9
|
var xIdSchema = z.string().regex(/^[0-9]{1,20}$/);
|
|
10
10
|
var xConnectionSchema = z.object({ userId: xIdSchema });
|
|
11
11
|
var xProfileSchema = z.object({
|
|
@@ -40,7 +40,7 @@ var xRequestSchema = z.discriminatedUnion("operation", [
|
|
|
40
40
|
]);
|
|
41
41
|
|
|
42
42
|
// src/images.ts
|
|
43
|
-
import
|
|
43
|
+
import * as z2 from "zod";
|
|
44
44
|
var imageReferenceSchema = z2.union([
|
|
45
45
|
z2.strictObject({ evidence: z2.string().min(1).max(256) }),
|
|
46
46
|
z2.strictObject({ x: z2.literal("profile") }),
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
imageSightingsSchema,
|
|
7
7
|
imageUploadsSchema,
|
|
8
8
|
publishedImageSchema
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-22QERRAG.js";
|
|
10
10
|
import {
|
|
11
11
|
catalogDeploymentSchema,
|
|
12
12
|
collectionPassSchema,
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
questTypeVersionSchema,
|
|
25
25
|
questViewSchema,
|
|
26
26
|
rewardDeliveriesSchema
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-MNL5NSC4.js";
|
|
28
28
|
import {
|
|
29
29
|
badgeArtifactSchema,
|
|
30
30
|
badgeSchema,
|
|
@@ -57,15 +57,15 @@ import {
|
|
|
57
57
|
referralDefinitionSchema,
|
|
58
58
|
referralHistorySchema,
|
|
59
59
|
referralSummarySchema
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-C3KL5SGM.js";
|
|
61
61
|
import {
|
|
62
62
|
telegramAccountConnectionSchema
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-JNBNL7FE.js";
|
|
64
64
|
import {
|
|
65
65
|
exchangeResultSchema,
|
|
66
66
|
memberSummarySchema,
|
|
67
67
|
participantSessionSchema
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-PNCLJOUD.js";
|
|
69
69
|
import {
|
|
70
70
|
accountConnectionSchema,
|
|
71
71
|
attemptSchema,
|
|
@@ -96,10 +96,10 @@ import {
|
|
|
96
96
|
walletBalanceSchema,
|
|
97
97
|
walletMessageChallengeSchema,
|
|
98
98
|
walletSignInNetworksSchema
|
|
99
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-BVEWY2ZL.js";
|
|
100
100
|
|
|
101
101
|
// src/deployments.ts
|
|
102
|
-
import
|
|
102
|
+
import * as z from "zod";
|
|
103
103
|
var projectCatalogArtifactSchema = catalogDeploymentSchema.omit({ expectedRevision: true }).extend({
|
|
104
104
|
engagement: z.array(engagementArtifactSchema).max(50).default([]),
|
|
105
105
|
trackers: z.array(trackerArtifactSchema).max(50).default([]),
|
|
@@ -247,7 +247,7 @@ var capabilityResponses = {
|
|
|
247
247
|
};
|
|
248
248
|
|
|
249
249
|
// src/activity.ts
|
|
250
|
-
import
|
|
250
|
+
import * as z2 from "zod";
|
|
251
251
|
var activityTypes = {
|
|
252
252
|
attemptRejected: "attempt.rejected",
|
|
253
253
|
entitlementGranted: "entitlement.granted",
|
|
@@ -262,7 +262,7 @@ var activityTypes = {
|
|
|
262
262
|
var activityTypeSchema = z2.string().min(1).max(100);
|
|
263
263
|
|
|
264
264
|
// src/automatic-outcomes.ts
|
|
265
|
-
import
|
|
265
|
+
import * as z3 from "zod";
|
|
266
266
|
var automaticEventSchema = z3.discriminatedUnion("kind", [
|
|
267
267
|
z3.object({
|
|
268
268
|
kind: z3.literal("completion"),
|
|
@@ -593,7 +593,7 @@ var participantResponses = {
|
|
|
593
593
|
};
|
|
594
594
|
|
|
595
595
|
// src/evolving-responses.ts
|
|
596
|
-
import
|
|
596
|
+
import * as z4 from "zod";
|
|
597
597
|
var offerResponseSchema = responseSchema(offerSchema);
|
|
598
598
|
var offerListResponseSchema = responseListSchema(offerSchema);
|
|
599
599
|
var redemptionResponseSchema = responseSchema(redemptionSchema);
|