@domino-sdk/relay 1.30.0 → 1.31.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/authoring.d.ts +40 -40
- package/dist/authoring.js +4 -4
- package/dist/browser.d.ts +3 -3
- package/dist/browser.js +10 -10
- package/dist/{chunk-DDA7G23P.js → chunk-32UPB7Q3.js} +1 -1
- package/dist/{chunk-LPURBE7D.js → chunk-3WJBL74Q.js} +1 -1
- package/dist/{chunk-PNCLJOUD.js → chunk-466IRAJP.js} +1 -1
- package/dist/{chunk-C3KL5SGM.js → chunk-5QZGXYH7.js} +12 -1
- package/dist/{chunk-AOB3N4QO.js → chunk-A7SJDWBR.js} +1 -1
- package/dist/{chunk-24BMKPCY.js → chunk-BEGFBWEG.js} +17 -6
- package/dist/{chunk-JNBNL7FE.js → chunk-BUHGXKPY.js} +1 -1
- package/dist/{chunk-FHOEVR3S.js → chunk-F3JLZ7MR.js} +25 -12
- package/dist/{chunk-W7PDXGYB.js → chunk-IJT4EKFY.js} +1 -1
- package/dist/{chunk-FPKBRUIC.js → chunk-KUZXNKHL.js} +1 -1
- package/dist/{chunk-NFLNEKZ5.js → chunk-LSJPJQW4.js} +4 -4
- package/dist/{chunk-MNL5NSC4.js → chunk-MHPTCD5O.js} +10 -4
- package/dist/{chunk-BVEWY2ZL.js → chunk-OW22TOV7.js} +1 -0
- package/dist/{chunk-P23AWV76.js → chunk-V36CPSZW.js} +2 -2
- package/dist/{chunk-CCTZIHWN.js → chunk-V7K7XXFB.js} +1 -1
- package/dist/{chunk-CMGGWWH3.js → chunk-WULPIU3Z.js} +2 -2
- package/dist/{client-Ciy0g8Hx.d.ts → client-CFFgPnIX.d.ts} +7 -2
- package/dist/deployments-DMVpPnGX.d.ts +22166 -0
- package/dist/index.d.ts +3 -3
- package/dist/index.js +9 -9
- package/dist/internal.d.ts +4 -4
- package/dist/internal.js +8 -8
- package/dist/{offers-DzdzB2ZI.d.ts → offers-D14uyLQQ.d.ts} +90 -1
- package/dist/{pages-DFZThUH7.d.ts → pages-C1tNuRoB.d.ts} +15 -1
- package/dist/portal-proxy.js +3 -3
- package/dist/react/index.d.ts +5 -5
- package/dist/react/index.js +10 -10
- package/dist/schema.d.ts +316 -313
- package/dist/schema.js +17 -7
- package/dist/server/index.d.ts +4 -4
- package/dist/server/index.js +77 -19
- package/dist/{telegram-browser-DJiawHY-.d.ts → telegram-browser-zPO8yYDJ.d.ts} +1 -1
- package/dist/testing.js +5 -5
- package/dist/{transport-BSGalAsT.d.ts → transport-leWfCbHS.d.ts} +76256 -35680
- package/package.json +1 -1
- package/dist/deployments-V_BQ1PdE.d.ts +0 -10020
package/dist/authoring.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ import { x as xContentBodySchema, I as IdentityKind, n as customSourceSchema, W
|
|
|
2
2
|
export { a9 as LedgerSetting, aa as TrackerPage, ab as TrackerReadQuery, ac as trackerDataSchema, ad as trackerTriggerContextSchema } from './schema-DquhoBae.js';
|
|
3
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-
|
|
5
|
+
import { f as badgeDeclarationSchema, B as Badge } from './offers-D14uyLQQ.js';
|
|
6
|
+
export { g as defineOffer } from './offers-D14uyLQQ.js';
|
|
7
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-sgKusEzF.js';
|
|
8
8
|
export { u as defineCampaign, v as defineGroup } from './groups-sgKusEzF.js';
|
|
9
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';
|
|
@@ -257,8 +257,8 @@ declare function defineLeaderboard(input: Omit<LeaderboardInput, "key" | "id" |
|
|
|
257
257
|
kind: "earned";
|
|
258
258
|
}> | ReturnType<typeof earned>;
|
|
259
259
|
}): {
|
|
260
|
-
balance: string;
|
|
261
260
|
title: string;
|
|
261
|
+
balance: string;
|
|
262
262
|
access: "participants" | "public";
|
|
263
263
|
score: {
|
|
264
264
|
kind: "balance";
|
|
@@ -445,7 +445,7 @@ declare const telegram: {
|
|
|
445
445
|
reactions(): {
|
|
446
446
|
kind: "custom";
|
|
447
447
|
namespace: string;
|
|
448
|
-
identities?: ("discord" | "
|
|
448
|
+
identities?: ("discord" | "member" | "wallet" | "x" | `app:${string}`)[] | undefined;
|
|
449
449
|
accounts?: string[] | undefined;
|
|
450
450
|
data?: TrackerDataSchema | undefined;
|
|
451
451
|
content?: {
|
|
@@ -1096,15 +1096,15 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
|
|
|
1096
1096
|
badge?: string | undefined;
|
|
1097
1097
|
};
|
|
1098
1098
|
tier: string;
|
|
1099
|
-
} | {
|
|
1100
|
-
kind: "points";
|
|
1101
|
-
balance: string;
|
|
1102
|
-
amount: number;
|
|
1103
1099
|
} | {
|
|
1104
1100
|
kind: "integration";
|
|
1105
1101
|
provider: "discord";
|
|
1106
1102
|
action: "grant-role";
|
|
1107
1103
|
roleId: string;
|
|
1104
|
+
} | {
|
|
1105
|
+
kind: "points";
|
|
1106
|
+
balance: string;
|
|
1107
|
+
amount: number;
|
|
1108
1108
|
})[] | ((ctx: {
|
|
1109
1109
|
settings: z.core.$InferObjectOutput<T, {}>;
|
|
1110
1110
|
}) => Reward[]);
|
|
@@ -1179,9 +1179,6 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
|
|
|
1179
1179
|
kind: "resource";
|
|
1180
1180
|
default: string;
|
|
1181
1181
|
source: {
|
|
1182
|
-
provider: "domino";
|
|
1183
|
-
resource: "point-ledger";
|
|
1184
|
-
} | {
|
|
1185
1182
|
provider: "discord";
|
|
1186
1183
|
resource: "channel";
|
|
1187
1184
|
types: ("text" | "announcement")[];
|
|
@@ -1189,6 +1186,9 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
|
|
|
1189
1186
|
provider: "discord";
|
|
1190
1187
|
resource: "role";
|
|
1191
1188
|
assignable: boolean;
|
|
1189
|
+
} | {
|
|
1190
|
+
provider: "domino";
|
|
1191
|
+
resource: "point-ledger";
|
|
1192
1192
|
};
|
|
1193
1193
|
label: string;
|
|
1194
1194
|
description?: string | undefined;
|
|
@@ -1262,15 +1262,15 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
|
|
|
1262
1262
|
badge?: string | undefined;
|
|
1263
1263
|
};
|
|
1264
1264
|
tier: string;
|
|
1265
|
-
} | {
|
|
1266
|
-
kind: "points";
|
|
1267
|
-
balance: string;
|
|
1268
|
-
amount: number;
|
|
1269
1265
|
} | {
|
|
1270
1266
|
kind: "integration";
|
|
1271
1267
|
provider: "discord";
|
|
1272
1268
|
action: "grant-role";
|
|
1273
1269
|
roleId: string;
|
|
1270
|
+
} | {
|
|
1271
|
+
kind: "points";
|
|
1272
|
+
balance: string;
|
|
1273
|
+
amount: number;
|
|
1274
1274
|
})[];
|
|
1275
1275
|
humanReview: boolean;
|
|
1276
1276
|
trigger: {
|
|
@@ -1292,7 +1292,7 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
|
|
|
1292
1292
|
actor?: "staff" | "member" | undefined;
|
|
1293
1293
|
} | {
|
|
1294
1294
|
kind: "manual";
|
|
1295
|
-
input: "
|
|
1295
|
+
input: "none" | "quiz" | "photo";
|
|
1296
1296
|
actor?: "staff" | "member" | undefined;
|
|
1297
1297
|
} | {
|
|
1298
1298
|
kind: "automatic";
|
|
@@ -1336,9 +1336,9 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
|
|
|
1336
1336
|
path: string;
|
|
1337
1337
|
equals: string | number | boolean;
|
|
1338
1338
|
})[] | undefined;
|
|
1339
|
-
enrollment?: "
|
|
1339
|
+
enrollment?: "none" | "required" | undefined;
|
|
1340
1340
|
since?: "activation" | "window" | "enrollment" | undefined;
|
|
1341
|
-
historical?: "
|
|
1341
|
+
historical?: "staff" | "claim" | "automatic" | undefined;
|
|
1342
1342
|
content?: true | undefined;
|
|
1343
1343
|
} | undefined;
|
|
1344
1344
|
};
|
|
@@ -1361,9 +1361,6 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
|
|
|
1361
1361
|
title: string;
|
|
1362
1362
|
})[];
|
|
1363
1363
|
completion: {
|
|
1364
|
-
kind: "streak";
|
|
1365
|
-
days: number;
|
|
1366
|
-
} | {
|
|
1367
1364
|
kind: "progress";
|
|
1368
1365
|
goal: {
|
|
1369
1366
|
kind: "count";
|
|
@@ -1380,6 +1377,9 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
|
|
|
1380
1377
|
durationMs: number;
|
|
1381
1378
|
};
|
|
1382
1379
|
repeat: "repeat" | "once";
|
|
1380
|
+
} | {
|
|
1381
|
+
kind: "streak";
|
|
1382
|
+
days: number;
|
|
1383
1383
|
} | {
|
|
1384
1384
|
kind: "once";
|
|
1385
1385
|
} | {
|
|
@@ -1405,7 +1405,7 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
|
|
|
1405
1405
|
campaign?: {
|
|
1406
1406
|
key: string;
|
|
1407
1407
|
title: string;
|
|
1408
|
-
enrollment: "
|
|
1408
|
+
enrollment: "none" | "required";
|
|
1409
1409
|
window?: {
|
|
1410
1410
|
from: number;
|
|
1411
1411
|
until: number;
|
|
@@ -1520,15 +1520,15 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
|
|
|
1520
1520
|
badge?: string | undefined;
|
|
1521
1521
|
};
|
|
1522
1522
|
tier: string;
|
|
1523
|
-
} | {
|
|
1524
|
-
kind: "points";
|
|
1525
|
-
balance: string;
|
|
1526
|
-
amount: number;
|
|
1527
1523
|
} | {
|
|
1528
1524
|
kind: "integration";
|
|
1529
1525
|
provider: "discord";
|
|
1530
1526
|
action: "grant-role";
|
|
1531
1527
|
roleId: string;
|
|
1528
|
+
} | {
|
|
1529
|
+
kind: "points";
|
|
1530
|
+
balance: string;
|
|
1531
|
+
amount: number;
|
|
1532
1532
|
})[] | ((ctx: {
|
|
1533
1533
|
settings: z.core.$InferObjectOutput<T, {}>;
|
|
1534
1534
|
}) => Reward[]);
|
|
@@ -1603,9 +1603,6 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
|
|
|
1603
1603
|
kind: "resource";
|
|
1604
1604
|
default: string;
|
|
1605
1605
|
source: {
|
|
1606
|
-
provider: "domino";
|
|
1607
|
-
resource: "point-ledger";
|
|
1608
|
-
} | {
|
|
1609
1606
|
provider: "discord";
|
|
1610
1607
|
resource: "channel";
|
|
1611
1608
|
types: ("text" | "announcement")[];
|
|
@@ -1613,6 +1610,9 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
|
|
|
1613
1610
|
provider: "discord";
|
|
1614
1611
|
resource: "role";
|
|
1615
1612
|
assignable: boolean;
|
|
1613
|
+
} | {
|
|
1614
|
+
provider: "domino";
|
|
1615
|
+
resource: "point-ledger";
|
|
1616
1616
|
};
|
|
1617
1617
|
label: string;
|
|
1618
1618
|
description?: string | undefined;
|
|
@@ -1686,15 +1686,15 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
|
|
|
1686
1686
|
badge?: string | undefined;
|
|
1687
1687
|
};
|
|
1688
1688
|
tier: string;
|
|
1689
|
-
} | {
|
|
1690
|
-
kind: "points";
|
|
1691
|
-
balance: string;
|
|
1692
|
-
amount: number;
|
|
1693
1689
|
} | {
|
|
1694
1690
|
kind: "integration";
|
|
1695
1691
|
provider: "discord";
|
|
1696
1692
|
action: "grant-role";
|
|
1697
1693
|
roleId: string;
|
|
1694
|
+
} | {
|
|
1695
|
+
kind: "points";
|
|
1696
|
+
balance: string;
|
|
1697
|
+
amount: number;
|
|
1698
1698
|
})[];
|
|
1699
1699
|
humanReview: boolean;
|
|
1700
1700
|
trigger: {
|
|
@@ -1716,7 +1716,7 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
|
|
|
1716
1716
|
actor?: "staff" | "member" | undefined;
|
|
1717
1717
|
} | {
|
|
1718
1718
|
kind: "manual";
|
|
1719
|
-
input: "
|
|
1719
|
+
input: "none" | "quiz" | "photo";
|
|
1720
1720
|
actor?: "staff" | "member" | undefined;
|
|
1721
1721
|
} | {
|
|
1722
1722
|
kind: "automatic";
|
|
@@ -1760,9 +1760,9 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
|
|
|
1760
1760
|
path: string;
|
|
1761
1761
|
equals: string | number | boolean;
|
|
1762
1762
|
})[] | undefined;
|
|
1763
|
-
enrollment?: "
|
|
1763
|
+
enrollment?: "none" | "required" | undefined;
|
|
1764
1764
|
since?: "activation" | "window" | "enrollment" | undefined;
|
|
1765
|
-
historical?: "
|
|
1765
|
+
historical?: "staff" | "claim" | "automatic" | undefined;
|
|
1766
1766
|
content?: true | undefined;
|
|
1767
1767
|
} | undefined;
|
|
1768
1768
|
};
|
|
@@ -1785,9 +1785,6 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
|
|
|
1785
1785
|
title: string;
|
|
1786
1786
|
})[];
|
|
1787
1787
|
completion: {
|
|
1788
|
-
kind: "streak";
|
|
1789
|
-
days: number;
|
|
1790
|
-
} | {
|
|
1791
1788
|
kind: "progress";
|
|
1792
1789
|
goal: {
|
|
1793
1790
|
kind: "count";
|
|
@@ -1804,6 +1801,9 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
|
|
|
1804
1801
|
durationMs: number;
|
|
1805
1802
|
};
|
|
1806
1803
|
repeat: "repeat" | "once";
|
|
1804
|
+
} | {
|
|
1805
|
+
kind: "streak";
|
|
1806
|
+
days: number;
|
|
1807
1807
|
} | {
|
|
1808
1808
|
kind: "once";
|
|
1809
1809
|
} | {
|
|
@@ -1829,7 +1829,7 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
|
|
|
1829
1829
|
campaign?: {
|
|
1830
1830
|
key: string;
|
|
1831
1831
|
title: string;
|
|
1832
|
-
enrollment: "
|
|
1832
|
+
enrollment: "none" | "required";
|
|
1833
1833
|
window?: {
|
|
1834
1834
|
from: number;
|
|
1835
1835
|
until: number;
|
package/dist/authoring.js
CHANGED
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
sourceDataSchema,
|
|
11
11
|
sourceRoles,
|
|
12
12
|
validateQuestShape
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-3WJBL74Q.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-5QZGXYH7.js";
|
|
24
24
|
import {
|
|
25
25
|
telegramReactionDataSchema,
|
|
26
26
|
telegramReactionsNamespace
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-BUHGXKPY.js";
|
|
28
28
|
import {
|
|
29
29
|
authoringKey,
|
|
30
30
|
badgeReward,
|
|
@@ -81,7 +81,7 @@ import {
|
|
|
81
81
|
whereSchemaIssue,
|
|
82
82
|
whereSettings,
|
|
83
83
|
xSearchSourceSchema
|
|
84
|
-
} from "./chunk-
|
|
84
|
+
} from "./chunk-OW22TOV7.js";
|
|
85
85
|
|
|
86
86
|
// src/builders.ts
|
|
87
87
|
import * as z from "zod";
|
package/dist/browser.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { o 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, 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-
|
|
1
|
+
import { o as SubmissionStore, f as RelayClientOptions, R as RelayClient } from './client-CFFgPnIX.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-zPO8yYDJ.js';
|
|
3
3
|
import './groups-sgKusEzF.js';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import './schema-DquhoBae.js';
|
|
6
|
-
import './pages-
|
|
6
|
+
import './pages-C1tNuRoB.js';
|
|
7
7
|
import './submission-input-Dr0v6J9N.js';
|
|
8
8
|
import './action-DBzILFx9.js';
|
|
9
9
|
import './participant-activity-BPZiW7m7.js';
|
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-WULPIU3Z.js";
|
|
16
|
+
import "./chunk-F3JLZ7MR.js";
|
|
17
|
+
import "./chunk-IJT4EKFY.js";
|
|
18
|
+
import "./chunk-MHPTCD5O.js";
|
|
19
|
+
import "./chunk-5QZGXYH7.js";
|
|
20
|
+
import "./chunk-BUHGXKPY.js";
|
|
21
|
+
import "./chunk-V7K7XXFB.js";
|
|
22
|
+
import "./chunk-A7SJDWBR.js";
|
|
23
|
+
import "./chunk-466IRAJP.js";
|
|
24
|
+
import "./chunk-OW22TOV7.js";
|
|
25
25
|
export {
|
|
26
26
|
browserSubmissionStore,
|
|
27
27
|
cosmosChainList,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
responseShape,
|
|
12
12
|
rewardKey,
|
|
13
13
|
tierRewardSchema
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-OW22TOV7.js";
|
|
15
15
|
|
|
16
16
|
// src/badges.ts
|
|
17
17
|
import * as z from "zod";
|
|
@@ -908,6 +908,15 @@ var redemptionSchema = responseShape(
|
|
|
908
908
|
}).strict()
|
|
909
909
|
])
|
|
910
910
|
);
|
|
911
|
+
var redemptionQuerySchema = z7.strictObject({
|
|
912
|
+
member: identifier.optional(),
|
|
913
|
+
cursor: pageCursorSchema.optional(),
|
|
914
|
+
limit: z7.coerce.number().int().min(1).max(100).optional()
|
|
915
|
+
});
|
|
916
|
+
var redemptionPageSchema = z7.object({
|
|
917
|
+
items: z7.array(redemptionSchema),
|
|
918
|
+
nextCursor: pageCursorSchema.nullable()
|
|
919
|
+
});
|
|
911
920
|
var offerControlSchema = z7.object({
|
|
912
921
|
actionId: identifier,
|
|
913
922
|
revision: z7.number().int().positive(),
|
|
@@ -1036,6 +1045,8 @@ export {
|
|
|
1036
1045
|
offerSchema,
|
|
1037
1046
|
redeemOfferSchema,
|
|
1038
1047
|
redemptionSchema,
|
|
1048
|
+
redemptionQuerySchema,
|
|
1049
|
+
redemptionPageSchema,
|
|
1039
1050
|
offerControlSchema,
|
|
1040
1051
|
redemptionCancellationSchema,
|
|
1041
1052
|
defineOffer
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
imageSightingsSchema,
|
|
7
7
|
imageUploadsSchema,
|
|
8
8
|
publishedImageSchema
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-KUZXNKHL.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-MHPTCD5O.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-5QZGXYH7.js";
|
|
61
61
|
import {
|
|
62
62
|
telegramAccountConnectionSchema
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-BUHGXKPY.js";
|
|
64
64
|
import {
|
|
65
65
|
exchangeResultSchema,
|
|
66
66
|
memberSummarySchema,
|
|
67
67
|
participantSessionSchema
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-466IRAJP.js";
|
|
69
69
|
import {
|
|
70
70
|
accountConnectionSchema,
|
|
71
71
|
attemptSchema,
|
|
@@ -96,7 +96,7 @@ import {
|
|
|
96
96
|
walletBalanceSchema,
|
|
97
97
|
walletMessageChallengeSchema,
|
|
98
98
|
walletSignInNetworksSchema
|
|
99
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-OW22TOV7.js";
|
|
100
100
|
|
|
101
101
|
// src/deployments.ts
|
|
102
102
|
import * as z from "zod";
|
|
@@ -199,6 +199,15 @@ var deploymentRecordSchema = z.discriminatedUnion("status", [
|
|
|
199
199
|
publishedBy: z.string().nullable()
|
|
200
200
|
})
|
|
201
201
|
]);
|
|
202
|
+
var deploymentHistoryQuerySchema = z.strictObject({
|
|
203
|
+
cursor: pageCursorSchema.optional(),
|
|
204
|
+
limit: z.coerce.number().int().min(1).max(100).optional()
|
|
205
|
+
});
|
|
206
|
+
var deploymentHistoryPageSchema = z.object({
|
|
207
|
+
items: z.array(deploymentRecordSchema),
|
|
208
|
+
published: z.array(deploymentRecordSchema).max(2),
|
|
209
|
+
nextCursor: pageCursorSchema.nullable()
|
|
210
|
+
});
|
|
202
211
|
var submitDeploymentSchema = z.object({ id: identifier }).strict();
|
|
203
212
|
var rejectDeploymentSchema = z.object({
|
|
204
213
|
id: identifier,
|
|
@@ -648,6 +657,8 @@ export {
|
|
|
648
657
|
deploymentResultSchema,
|
|
649
658
|
deploymentSourceSchema,
|
|
650
659
|
deploymentRecordSchema,
|
|
660
|
+
deploymentHistoryQuerySchema,
|
|
661
|
+
deploymentHistoryPageSchema,
|
|
651
662
|
submitDeploymentSchema,
|
|
652
663
|
rejectDeploymentSchema,
|
|
653
664
|
deploymentRejectionSchema,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createRelayAction,
|
|
3
3
|
withActionId
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-IJT4EKFY.js";
|
|
5
5
|
import {
|
|
6
6
|
collectionPassSchema,
|
|
7
7
|
participantActivityQuerySchema,
|
|
@@ -15,8 +15,9 @@ import {
|
|
|
15
15
|
questOutcomePageSchema,
|
|
16
16
|
questOutcomeQuerySchema,
|
|
17
17
|
questOutcomeSchema,
|
|
18
|
-
rewardDeliveriesSchema
|
|
19
|
-
|
|
18
|
+
rewardDeliveriesSchema,
|
|
19
|
+
rewardDeliveryQuerySchema
|
|
20
|
+
} from "./chunk-MHPTCD5O.js";
|
|
20
21
|
import {
|
|
21
22
|
AVATAR_UPLOAD_LIMIT,
|
|
22
23
|
avatarUploadTypes,
|
|
@@ -45,29 +46,29 @@ import {
|
|
|
45
46
|
referralDefinitionSchema,
|
|
46
47
|
referralHistorySchema,
|
|
47
48
|
referralSummarySchema
|
|
48
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-5QZGXYH7.js";
|
|
49
50
|
import {
|
|
50
51
|
telegramAccountConnectionSchema,
|
|
51
52
|
telegramMiniAppSignInSchema,
|
|
52
53
|
telegramSignInMethodsSchema
|
|
53
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-BUHGXKPY.js";
|
|
54
55
|
import {
|
|
55
56
|
PARTICIPANT_TIMEOUT,
|
|
56
57
|
lifetime,
|
|
57
58
|
retryAfter,
|
|
58
59
|
retrying,
|
|
59
60
|
validTimeout
|
|
60
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-V7K7XXFB.js";
|
|
61
62
|
import {
|
|
62
63
|
clientIdentity
|
|
63
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-A7SJDWBR.js";
|
|
64
65
|
import {
|
|
65
66
|
exchangeResultSchema,
|
|
66
67
|
exchangeSchema,
|
|
67
68
|
memberSummarySchema,
|
|
68
69
|
participantSessionSchema,
|
|
69
70
|
sessionMember
|
|
70
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-466IRAJP.js";
|
|
71
72
|
import {
|
|
72
73
|
RelayError,
|
|
73
74
|
RelayErrorCode,
|
|
@@ -106,7 +107,7 @@ import {
|
|
|
106
107
|
walletSignInNetworksSchema,
|
|
107
108
|
walletSignatureSchema,
|
|
108
109
|
walletUnlinkInputSchema
|
|
109
|
-
} from "./chunk-
|
|
110
|
+
} from "./chunk-OW22TOV7.js";
|
|
110
111
|
|
|
111
112
|
// src/legacy-submissions.ts
|
|
112
113
|
import * as z from "zod";
|
|
@@ -2217,9 +2218,21 @@ function relayClient(options) {
|
|
|
2217
2218
|
progress: (requestOptions) => request("/v1/me/progress", memberProgressSchema, {
|
|
2218
2219
|
options: requestOptions
|
|
2219
2220
|
}),
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2221
|
+
/**
|
|
2222
|
+
* The member's reward deliveries, newest first, one page at a time. Pass a page's
|
|
2223
|
+
* `nextCursor` back as `cursor` for older ones; `limit` is 1 to 500, 500 by default.
|
|
2224
|
+
*/
|
|
2225
|
+
rewardDeliveries: (requestOptions = {}) => {
|
|
2226
|
+
const { cursor, limit, ...options2 } = requestOptions;
|
|
2227
|
+
return request(
|
|
2228
|
+
withQuery(
|
|
2229
|
+
"/v1/reward-deliveries",
|
|
2230
|
+
parseInput(rewardDeliveryQuerySchema, { cursor, limit })
|
|
2231
|
+
),
|
|
2232
|
+
rewardDeliveriesSchema,
|
|
2233
|
+
{ options: options2 }
|
|
2234
|
+
);
|
|
2235
|
+
},
|
|
2223
2236
|
/**
|
|
2224
2237
|
* `{ items }`: the member's balance in each of the project's point ledgers, in the project's
|
|
2225
2238
|
* ledger order, zero in a ledger they have no entries in.
|
|
@@ -4,20 +4,20 @@ import {
|
|
|
4
4
|
retryAfter,
|
|
5
5
|
retrying,
|
|
6
6
|
validTimeout
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-V7K7XXFB.js";
|
|
8
8
|
import {
|
|
9
9
|
clientIdentity
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-A7SJDWBR.js";
|
|
11
11
|
import {
|
|
12
12
|
authScopeSchema
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-466IRAJP.js";
|
|
14
14
|
import {
|
|
15
15
|
RequestError,
|
|
16
16
|
appIdentityKindSchema,
|
|
17
17
|
isRequestError,
|
|
18
18
|
knownResponse,
|
|
19
19
|
openIdentityKindSchema
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-OW22TOV7.js";
|
|
21
21
|
|
|
22
22
|
// src/configuration.ts
|
|
23
23
|
function questConfiguration(release) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
badgeSchema,
|
|
3
3
|
pointLedgerReferenceSchema
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-5QZGXYH7.js";
|
|
5
5
|
import {
|
|
6
6
|
authoringIdentityShape,
|
|
7
7
|
entitlementSchema,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
storedQuestDescriptionSchema,
|
|
21
21
|
storedReviewModeSchema,
|
|
22
22
|
tieredRewardReferenceSchema
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-OW22TOV7.js";
|
|
24
24
|
|
|
25
25
|
// src/participant-activity.ts
|
|
26
26
|
import * as z from "zod";
|
|
@@ -477,7 +477,12 @@ var rewardDeliverySchema = z6.union([
|
|
|
477
477
|
futureRewardDeliverySchema
|
|
478
478
|
]);
|
|
479
479
|
var rewardDeliveriesSchema = z6.object({
|
|
480
|
-
deliveries: z6.array(rewardDeliverySchema)
|
|
480
|
+
deliveries: z6.array(rewardDeliverySchema),
|
|
481
|
+
nextCursor: pageCursorSchema.nullable().default(null)
|
|
482
|
+
});
|
|
483
|
+
var rewardDeliveryQuerySchema = z6.strictObject({
|
|
484
|
+
cursor: pageCursorSchema.optional(),
|
|
485
|
+
limit: z6.coerce.number().int().min(1).max(500).optional()
|
|
481
486
|
});
|
|
482
487
|
|
|
483
488
|
export {
|
|
@@ -526,5 +531,6 @@ export {
|
|
|
526
531
|
roleReconciliationSchema,
|
|
527
532
|
knownRewardDeliverySchema,
|
|
528
533
|
rewardDeliverySchema,
|
|
529
|
-
rewardDeliveriesSchema
|
|
534
|
+
rewardDeliveriesSchema,
|
|
535
|
+
rewardDeliveryQuerySchema
|
|
530
536
|
};
|
|
@@ -630,6 +630,7 @@ var unsupported = {
|
|
|
630
630
|
$defs: "inline the schema instead of registering or reusing it by ID",
|
|
631
631
|
definitions: "inline the schema instead of registering or reusing it by ID",
|
|
632
632
|
if: "use a union instead",
|
|
633
|
+
// oxlint-disable-next-line unicorn/no-thenable -- A JSON Schema keyword, never awaited.
|
|
633
634
|
then: "use a union instead",
|
|
634
635
|
else: "use a union instead",
|
|
635
636
|
contains: "check array contents in your evaluator",
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
imageFieldsSchema,
|
|
5
5
|
imageInspectionSchema,
|
|
6
6
|
imageSightingsSchema
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-KUZXNKHL.js";
|
|
8
8
|
import {
|
|
9
9
|
photoResultSchema
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-OW22TOV7.js";
|
|
11
11
|
|
|
12
12
|
// src/image-results.ts
|
|
13
13
|
import * as z from "zod";
|