@domino-sdk/relay 1.7.0 → 1.9.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/action-9Xl0StBg.d.ts +33 -0
- package/dist/{activity-Br6vyYze.d.ts → activity-CCe1e_7a.d.ts} +115 -115
- package/dist/authoring.d.ts +45 -45
- package/dist/authoring.js +1 -1
- package/dist/{automatic-outcomes-C1Q9LrDb.d.ts → automatic-outcomes-Dyk0VTUs.d.ts} +1 -1
- package/dist/browser.d.ts +7 -6
- package/dist/browser.js +5 -4
- package/dist/{chunk-C25TDFHN.js → chunk-2N464DDE.js} +1 -1
- package/dist/{chunk-GMPPLZKH.js → chunk-2V74CHDL.js} +191 -191
- package/dist/{chunk-6RBF3UDA.js → chunk-734LYHWP.js} +2 -2
- package/dist/chunk-ETPL6AAJ.js +98 -0
- package/dist/{chunk-ZOUEEK5L.js → chunk-FWSSMSIA.js} +49 -21
- package/dist/{chunk-BFZHJA2B.js → chunk-L3QFIRGO.js} +2 -2
- package/dist/{client-pfml_XAa.d.ts → client-CbASImpi.d.ts} +42 -36
- package/dist/{groups-BpWEqaPn.d.ts → groups-Dvmd4CYk.d.ts} +1 -1
- package/dist/{images-BaKYd0fl.d.ts → images-Dekv3DYF.d.ts} +1 -1
- package/dist/index.d.ts +8 -7
- package/dist/index.js +7 -3
- package/dist/internal.d.ts +3 -3
- package/dist/{offers-CYtal8jO.d.ts → offers-BEGVSOTD.d.ts} +2 -2
- package/dist/{pages-CixTNnF4.d.ts → pages-HmS6eedC.d.ts} +38 -38
- package/dist/react/index.d.ts +197 -10
- package/dist/react/index.js +253 -111
- package/dist/{referral-reward-kinds-ClxAuCGx.d.ts → referral-reward-kinds-Flbb1D2q.d.ts} +2 -2
- package/dist/schema.d.ts +8 -8
- package/dist/schema.js +3 -3
- package/dist/server/index.d.ts +592 -46
- package/dist/server/index.js +166 -43
- package/dist/{sign-in-options-CtXUFV7E.d.ts → sign-in-options-z3wsfizk.d.ts} +2 -2
- package/dist/{submission-input-CLefHTrj.d.ts → submission-input-Bs14jIsu.d.ts} +2 -2
- package/package.json +1 -1
- package/dist/{schema-CQydLqw4.d.ts → schema-BCuiO7eD.d.ts} +15 -15
package/dist/authoring.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { cR as xContentBodySchema, I as IdentityKind, a_ as customSourceSchema, aG as WithRecordData, aF as WithContent, aE as WithAccountRoles, cW as QuestHandle, cX as LedgerReference, cY as GroupHandle, cV as ResourceHandle, ao as TrackerSource, cf as trackerDefinitionSchema, a3 as Tracker, aa as TrackerData, $ as SourceRoles, cZ as LedgerHandle, cT as xSearchSourceSchema, aI as XTweet, aH as XContentMetric, aw as TrackerTriggerPolicy, aC as Where, H as MemberIdentity, as as TrackerTriggerContext, am as TrackerReader, a1 as TextReviewInput, a0 as TextResult, P as PhotoResult, x as Decision, bM as rewardSchema, at as TrackerTriggerMode, Z as RoleOf, aD as WhereSetting, r as ContentBody, u as ContentMetricName, cM as triggerSchema, d as QuestPresentation, e as QuestProfile, f as QuizEvidence, a2 as TieredRewardDefinition } from './schema-
|
|
2
|
-
export { c_ as LedgerSetting, ac as TrackerDataSchema, ah as TrackerPage, al as TrackerReadQuery, c$ as trackerDataSchema, cB as trackerTriggerContextSchema } from './schema-
|
|
1
|
+
import { cR as xContentBodySchema, I as IdentityKind, a_ as customSourceSchema, aG as WithRecordData, aF as WithContent, aE as WithAccountRoles, cW as QuestHandle, cX as LedgerReference, cY as GroupHandle, cV as ResourceHandle, ao as TrackerSource, cf as trackerDefinitionSchema, a3 as Tracker, aa as TrackerData, $ as SourceRoles, cZ as LedgerHandle, cT as xSearchSourceSchema, aI as XTweet, aH as XContentMetric, aw as TrackerTriggerPolicy, aC as Where, H as MemberIdentity, as as TrackerTriggerContext, am as TrackerReader, a1 as TextReviewInput, a0 as TextResult, P as PhotoResult, x as Decision, bM as rewardSchema, at as TrackerTriggerMode, Z as RoleOf, aD as WhereSetting, r as ContentBody, u as ContentMetricName, cM as triggerSchema, d as QuestPresentation, e as QuestProfile, f as QuizEvidence, a2 as TieredRewardDefinition } from './schema-BCuiO7eD.js';
|
|
2
|
+
export { c_ as LedgerSetting, ac as TrackerDataSchema, ah as TrackerPage, al as TrackerReadQuery, c$ as trackerDataSchema, cB as trackerTriggerContextSchema } from './schema-BCuiO7eD.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
export { z } from 'zod';
|
|
5
|
-
import { E as EngagementBudget, ai as leaderboardDefinitionSchema, b9 as AuthoringIdentity, aK as pointLedgerDeclarationSchema, aZ as referralAuthoringSchema, C as CampaignDefinition, A as AvailabilityWindow } from './groups-
|
|
6
|
-
export { U as defineCampaign, V as defineGroup } from './groups-
|
|
7
|
-
import { u as discordMessagesSourceSchema, e as DiscordMessageData, f as DiscordMessageTextData, w as discordReactionsSourceSchema, g as DiscordReactionData, h as DiscordReader, P as Prerequisite, T as TextEvidence, U as UrlEvidence, b as TextOptions, c as UrlOptions } from './submission-input-
|
|
8
|
-
export { k as balanceAtLeast, m as completed, B as inGroup } from './submission-input-
|
|
5
|
+
import { E as EngagementBudget, ai as leaderboardDefinitionSchema, b9 as AuthoringIdentity, aK as pointLedgerDeclarationSchema, aZ as referralAuthoringSchema, C as CampaignDefinition, A as AvailabilityWindow } from './groups-Dvmd4CYk.js';
|
|
6
|
+
export { U as defineCampaign, V as defineGroup } from './groups-Dvmd4CYk.js';
|
|
7
|
+
import { u as discordMessagesSourceSchema, e as DiscordMessageData, f as DiscordMessageTextData, w as discordReactionsSourceSchema, g as DiscordReactionData, h as DiscordReader, P as Prerequisite, T as TextEvidence, U as UrlEvidence, b as TextOptions, c as UrlOptions } from './submission-input-Bs14jIsu.js';
|
|
8
|
+
export { k as balanceAtLeast, m as completed, B as inGroup } from './submission-input-Bs14jIsu.js';
|
|
9
9
|
import { Q as QuizContent, a as StreakPolicy } from './streaks-CWyq8Px5.js';
|
|
10
10
|
import { d as ResourceSource, S as Setting, b as IntegrationModule, i as XReader, B as Budget, I as IntegerSettings } from './capability-error-Bv996M-h.js';
|
|
11
11
|
export { L as CapabilityError, C as CapabilityErrorCode, k as capabilityErrorCodes } from './capability-error-Bv996M-h.js';
|
|
12
|
-
import { e as ImageReader } from './images-
|
|
13
|
-
export { e as defineOffer } from './offers-
|
|
12
|
+
import { e as ImageReader } from './images-Dekv3DYF.js';
|
|
13
|
+
export { e as defineOffer } from './offers-BEGVSOTD.js';
|
|
14
14
|
import { l as WalletReader } from './wallet-YssWxGg8.js';
|
|
15
15
|
export { h as CosmosDenom, a as CosmosNetwork, E as EvmChainId, j as WalletBalance, k as WalletBalanceQuery, p as cosmosDenomSchema, q as cosmosNetworkSchema, t as isEvmChainId } from './wallet-YssWxGg8.js';
|
|
16
16
|
export { f as formatUnits, p as parseUnits } from './units-CwgsPB_r.js';
|
|
@@ -245,8 +245,8 @@ declare function defineLeaderboard(input: Omit<LeaderboardInput, "key" | "id" |
|
|
|
245
245
|
kind: "earned";
|
|
246
246
|
}> | ReturnType<typeof earned>;
|
|
247
247
|
}): {
|
|
248
|
-
title: string;
|
|
249
248
|
balance: string;
|
|
249
|
+
title: string;
|
|
250
250
|
access: "participants" | "public";
|
|
251
251
|
score: {
|
|
252
252
|
kind: "balance";
|
|
@@ -1012,15 +1012,15 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
|
|
|
1012
1012
|
};
|
|
1013
1013
|
};
|
|
1014
1014
|
tier: string;
|
|
1015
|
+
} | {
|
|
1016
|
+
kind: "points";
|
|
1017
|
+
balance: string;
|
|
1018
|
+
amount: number;
|
|
1015
1019
|
} | {
|
|
1016
1020
|
kind: "integration";
|
|
1017
1021
|
provider: "discord";
|
|
1018
1022
|
action: "grant-role";
|
|
1019
1023
|
roleId: string;
|
|
1020
|
-
} | {
|
|
1021
|
-
kind: "points";
|
|
1022
|
-
balance: string;
|
|
1023
|
-
amount: number;
|
|
1024
1024
|
})[] | ((ctx: {
|
|
1025
1025
|
settings: z.core.$InferObjectOutput<T, {}>;
|
|
1026
1026
|
}) => Reward[]);
|
|
@@ -1077,6 +1077,9 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
|
|
|
1077
1077
|
kind: "resource";
|
|
1078
1078
|
default: string;
|
|
1079
1079
|
source: {
|
|
1080
|
+
provider: "domino";
|
|
1081
|
+
resource: "point-ledger";
|
|
1082
|
+
} | {
|
|
1080
1083
|
provider: "discord";
|
|
1081
1084
|
resource: "channel";
|
|
1082
1085
|
types: ("text" | "announcement")[];
|
|
@@ -1084,9 +1087,6 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
|
|
|
1084
1087
|
provider: "discord";
|
|
1085
1088
|
resource: "role";
|
|
1086
1089
|
assignable: boolean;
|
|
1087
|
-
} | {
|
|
1088
|
-
provider: "domino";
|
|
1089
|
-
resource: "point-ledger";
|
|
1090
1090
|
};
|
|
1091
1091
|
label: string;
|
|
1092
1092
|
description?: string | undefined;
|
|
@@ -1158,15 +1158,15 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
|
|
|
1158
1158
|
};
|
|
1159
1159
|
};
|
|
1160
1160
|
tier: string;
|
|
1161
|
+
} | {
|
|
1162
|
+
kind: "points";
|
|
1163
|
+
balance: string;
|
|
1164
|
+
amount: number;
|
|
1161
1165
|
} | {
|
|
1162
1166
|
kind: "integration";
|
|
1163
1167
|
provider: "discord";
|
|
1164
1168
|
action: "grant-role";
|
|
1165
1169
|
roleId: string;
|
|
1166
|
-
} | {
|
|
1167
|
-
kind: "points";
|
|
1168
|
-
balance: string;
|
|
1169
|
-
amount: number;
|
|
1170
1170
|
})[];
|
|
1171
1171
|
humanReview: boolean;
|
|
1172
1172
|
trigger: {
|
|
@@ -1188,7 +1188,7 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
|
|
|
1188
1188
|
actor?: "staff" | "member" | undefined;
|
|
1189
1189
|
} | {
|
|
1190
1190
|
kind: "manual";
|
|
1191
|
-
input: "
|
|
1191
|
+
input: "photo" | "quiz" | "none";
|
|
1192
1192
|
actor?: "staff" | "member" | undefined;
|
|
1193
1193
|
} | {
|
|
1194
1194
|
kind: "automatic";
|
|
@@ -1232,9 +1232,9 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
|
|
|
1232
1232
|
path: string;
|
|
1233
1233
|
equals: string | number | boolean;
|
|
1234
1234
|
})[] | undefined;
|
|
1235
|
-
enrollment?: "
|
|
1235
|
+
enrollment?: "required" | "none" | undefined;
|
|
1236
1236
|
since?: "activation" | "window" | "enrollment" | undefined;
|
|
1237
|
-
historical?: "
|
|
1237
|
+
historical?: "automatic" | "staff" | "claim" | undefined;
|
|
1238
1238
|
content?: true | undefined;
|
|
1239
1239
|
} | undefined;
|
|
1240
1240
|
};
|
|
@@ -1257,6 +1257,9 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
|
|
|
1257
1257
|
title: string;
|
|
1258
1258
|
})[];
|
|
1259
1259
|
completion: {
|
|
1260
|
+
kind: "streak";
|
|
1261
|
+
days: number;
|
|
1262
|
+
} | {
|
|
1260
1263
|
kind: "progress";
|
|
1261
1264
|
goal: {
|
|
1262
1265
|
kind: "count";
|
|
@@ -1273,9 +1276,6 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
|
|
|
1273
1276
|
durationMs: number;
|
|
1274
1277
|
};
|
|
1275
1278
|
repeat: "repeat" | "once";
|
|
1276
|
-
} | {
|
|
1277
|
-
kind: "streak";
|
|
1278
|
-
days: number;
|
|
1279
1279
|
} | {
|
|
1280
1280
|
kind: "once";
|
|
1281
1281
|
} | {
|
|
@@ -1301,7 +1301,7 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
|
|
|
1301
1301
|
campaign?: {
|
|
1302
1302
|
key: string;
|
|
1303
1303
|
title: string;
|
|
1304
|
-
enrollment: "
|
|
1304
|
+
enrollment: "required" | "none";
|
|
1305
1305
|
window?: {
|
|
1306
1306
|
from: number;
|
|
1307
1307
|
until: number;
|
|
@@ -1409,15 +1409,15 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
|
|
|
1409
1409
|
};
|
|
1410
1410
|
};
|
|
1411
1411
|
tier: string;
|
|
1412
|
+
} | {
|
|
1413
|
+
kind: "points";
|
|
1414
|
+
balance: string;
|
|
1415
|
+
amount: number;
|
|
1412
1416
|
} | {
|
|
1413
1417
|
kind: "integration";
|
|
1414
1418
|
provider: "discord";
|
|
1415
1419
|
action: "grant-role";
|
|
1416
1420
|
roleId: string;
|
|
1417
|
-
} | {
|
|
1418
|
-
kind: "points";
|
|
1419
|
-
balance: string;
|
|
1420
|
-
amount: number;
|
|
1421
1421
|
})[] | ((ctx: {
|
|
1422
1422
|
settings: z.core.$InferObjectOutput<T, {}>;
|
|
1423
1423
|
}) => Reward[]);
|
|
@@ -1474,6 +1474,9 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
|
|
|
1474
1474
|
kind: "resource";
|
|
1475
1475
|
default: string;
|
|
1476
1476
|
source: {
|
|
1477
|
+
provider: "domino";
|
|
1478
|
+
resource: "point-ledger";
|
|
1479
|
+
} | {
|
|
1477
1480
|
provider: "discord";
|
|
1478
1481
|
resource: "channel";
|
|
1479
1482
|
types: ("text" | "announcement")[];
|
|
@@ -1481,9 +1484,6 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
|
|
|
1481
1484
|
provider: "discord";
|
|
1482
1485
|
resource: "role";
|
|
1483
1486
|
assignable: boolean;
|
|
1484
|
-
} | {
|
|
1485
|
-
provider: "domino";
|
|
1486
|
-
resource: "point-ledger";
|
|
1487
1487
|
};
|
|
1488
1488
|
label: string;
|
|
1489
1489
|
description?: string | undefined;
|
|
@@ -1555,15 +1555,15 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
|
|
|
1555
1555
|
};
|
|
1556
1556
|
};
|
|
1557
1557
|
tier: string;
|
|
1558
|
+
} | {
|
|
1559
|
+
kind: "points";
|
|
1560
|
+
balance: string;
|
|
1561
|
+
amount: number;
|
|
1558
1562
|
} | {
|
|
1559
1563
|
kind: "integration";
|
|
1560
1564
|
provider: "discord";
|
|
1561
1565
|
action: "grant-role";
|
|
1562
1566
|
roleId: string;
|
|
1563
|
-
} | {
|
|
1564
|
-
kind: "points";
|
|
1565
|
-
balance: string;
|
|
1566
|
-
amount: number;
|
|
1567
1567
|
})[];
|
|
1568
1568
|
humanReview: boolean;
|
|
1569
1569
|
trigger: {
|
|
@@ -1585,7 +1585,7 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
|
|
|
1585
1585
|
actor?: "staff" | "member" | undefined;
|
|
1586
1586
|
} | {
|
|
1587
1587
|
kind: "manual";
|
|
1588
|
-
input: "
|
|
1588
|
+
input: "photo" | "quiz" | "none";
|
|
1589
1589
|
actor?: "staff" | "member" | undefined;
|
|
1590
1590
|
} | {
|
|
1591
1591
|
kind: "automatic";
|
|
@@ -1629,9 +1629,9 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
|
|
|
1629
1629
|
path: string;
|
|
1630
1630
|
equals: string | number | boolean;
|
|
1631
1631
|
})[] | undefined;
|
|
1632
|
-
enrollment?: "
|
|
1632
|
+
enrollment?: "required" | "none" | undefined;
|
|
1633
1633
|
since?: "activation" | "window" | "enrollment" | undefined;
|
|
1634
|
-
historical?: "
|
|
1634
|
+
historical?: "automatic" | "staff" | "claim" | undefined;
|
|
1635
1635
|
content?: true | undefined;
|
|
1636
1636
|
} | undefined;
|
|
1637
1637
|
};
|
|
@@ -1654,6 +1654,9 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
|
|
|
1654
1654
|
title: string;
|
|
1655
1655
|
})[];
|
|
1656
1656
|
completion: {
|
|
1657
|
+
kind: "streak";
|
|
1658
|
+
days: number;
|
|
1659
|
+
} | {
|
|
1657
1660
|
kind: "progress";
|
|
1658
1661
|
goal: {
|
|
1659
1662
|
kind: "count";
|
|
@@ -1670,9 +1673,6 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
|
|
|
1670
1673
|
durationMs: number;
|
|
1671
1674
|
};
|
|
1672
1675
|
repeat: "repeat" | "once";
|
|
1673
|
-
} | {
|
|
1674
|
-
kind: "streak";
|
|
1675
|
-
days: number;
|
|
1676
1676
|
} | {
|
|
1677
1677
|
kind: "once";
|
|
1678
1678
|
} | {
|
|
@@ -1698,7 +1698,7 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
|
|
|
1698
1698
|
campaign?: {
|
|
1699
1699
|
key: string;
|
|
1700
1700
|
title: string;
|
|
1701
|
-
enrollment: "
|
|
1701
|
+
enrollment: "required" | "none";
|
|
1702
1702
|
window?: {
|
|
1703
1703
|
from: number;
|
|
1704
1704
|
until: number;
|
package/dist/authoring.js
CHANGED
package/dist/browser.d.ts
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { m as SubmissionStore, f as RelayClientOptions, R as RelayClient } from './client-
|
|
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, 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, w as walletStandardSolanaSigner } from './sign-in-options-
|
|
3
|
-
import './groups-
|
|
1
|
+
import { m as SubmissionStore, f as RelayClientOptions, R as RelayClient } from './client-CbASImpi.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, 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, w as walletStandardSolanaSigner } from './sign-in-options-z3wsfizk.js';
|
|
3
|
+
import './groups-Dvmd4CYk.js';
|
|
4
4
|
import 'zod';
|
|
5
|
-
import './schema-
|
|
6
|
-
import './pages-
|
|
7
|
-
import './submission-input-
|
|
5
|
+
import './schema-BCuiO7eD.js';
|
|
6
|
+
import './pages-HmS6eedC.js';
|
|
7
|
+
import './submission-input-Bs14jIsu.js';
|
|
8
8
|
import './request-error-D_dUPLwo.js';
|
|
9
9
|
import './participant-activity-DkL3nY5a.js';
|
|
10
|
+
import './action-9Xl0StBg.js';
|
|
10
11
|
import './profiles-D2aFcOxu.js';
|
|
11
12
|
import './wallet-YssWxGg8.js';
|
|
12
13
|
|
package/dist/browser.js
CHANGED
|
@@ -11,10 +11,11 @@ import {
|
|
|
11
11
|
signInOptions,
|
|
12
12
|
solanaSigner,
|
|
13
13
|
walletStandardSolanaSigner
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-L3QFIRGO.js";
|
|
15
|
+
import "./chunk-FWSSMSIA.js";
|
|
16
|
+
import "./chunk-ETPL6AAJ.js";
|
|
17
|
+
import "./chunk-2N464DDE.js";
|
|
18
|
+
import "./chunk-2V74CHDL.js";
|
|
18
19
|
import "./chunk-6QJ3LADK.js";
|
|
19
20
|
import "./chunk-NPGENI7K.js";
|
|
20
21
|
import "./chunk-6ON4RMEN.js";
|