@domino-sdk/relay 1.56.0 → 1.59.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 +74 -0
- package/dist/{accounts-DRPENuZe.d.ts → accounts-CVonEkdb.d.ts} +18 -7
- package/dist/{attempt-captures-CxxO7DeD.d.ts → attempt-captures-DBj-rxak.d.ts} +1 -1
- package/dist/authoring.d.ts +180 -28
- package/dist/authoring.js +236 -11
- package/dist/{automatic-outcomes-DxW_v5Wc.d.ts → automatic-outcomes-FS9okvBP.d.ts} +1 -1
- package/dist/avatar.d.ts +1 -2
- package/dist/browser.d.ts +8 -9
- package/dist/browser.js +10 -10
- package/dist/{capability-error-DSd8EMQC.d.ts → capability-error-DDJl0LY-.d.ts} +0 -6
- package/dist/{chunk-OTITLABX.js → chunk-2LKGAL63.js} +2 -2
- package/dist/{chunk-NK6EER33.js → chunk-577DG2IT.js} +8 -8
- package/dist/{chunk-RBPMT53S.js → chunk-6U5WWH3W.js} +19 -4
- package/dist/{chunk-BHHUSBSD.js → chunk-AWWCEP7F.js} +1402 -881
- package/dist/{chunk-QNQNKIAA.js → chunk-EQF4ID47.js} +1 -1
- package/dist/{chunk-CK7HO32Z.js → chunk-IBROKMFV.js} +2 -2
- package/dist/{chunk-MNU6UPXY.js → chunk-KBCTII6C.js} +1 -1
- package/dist/{chunk-INSWI2VZ.js → chunk-KYUQEZZA.js} +1 -1
- package/dist/{chunk-G6XVBYH7.js → chunk-LDLOB2UZ.js} +4 -4
- package/dist/{chunk-CXKXPB7K.js → chunk-M2JQPDUX.js} +34 -9
- package/dist/{chunk-KBVH4XZC.js → chunk-R4S6BFOH.js} +1 -1
- package/dist/{chunk-ABJ4G47X.js → chunk-TZJT5CRF.js} +1 -1
- package/dist/{chunk-BJYMTCWG.js → chunk-UEMLYPKJ.js} +7 -4
- package/dist/{chunk-ULQU7KC4.js → chunk-W42KMMH5.js} +1 -5
- package/dist/{chunk-VSHV7FEA.js → chunk-XGXDINGM.js} +16 -3
- package/dist/{chunk-H2MD6E7Z.js → chunk-YMWRLAAP.js} +1 -1
- package/dist/{chunk-W5U2WXG3.js → chunk-YRSU2X2P.js} +2 -2
- package/dist/{client-bX3oTpRu.d.ts → client-3b9HjSzZ.d.ts} +115 -116
- package/dist/{deployments-D3lxfQMB.d.ts → deployments-BydFVj4Q.d.ts} +314 -175
- package/dist/{groups-DPE004_V.d.ts → groups-CFuTfFqG.d.ts} +11 -7
- package/dist/index.d.ts +9 -10
- package/dist/index.js +9 -9
- package/dist/{integrations-CcD5NPEA.d.ts → integrations-DrbKQSTD.d.ts} +3 -32
- package/dist/internal.d.ts +10 -10
- package/dist/internal.js +8 -8
- package/dist/{offers-CtzMeB7O.d.ts → offers-DAfe1O3_.d.ts} +6 -2
- package/dist/{pages-BlLqB8ZQ.d.ts → pages-ChDVLrgR.d.ts} +39 -10
- package/dist/portal-proxy.js +3 -3
- package/dist/react/index.d.ts +71 -72
- package/dist/react/index.js +10 -10
- package/dist/runtime/authoring.js +1 -1
- package/dist/runtime/chunks/BG43KQ2T.js +1 -0
- package/dist/runtime/chunks/EWU4OKSY.js +62 -0
- package/dist/runtime/manifest.json +5 -5
- package/dist/runtime/schema.js +1 -1
- package/dist/runtime/zod.js +1 -1
- package/dist/{schema-C4m9RhCR.d.ts → schema-BA0nRRlt.d.ts} +184 -35
- package/dist/schema.d.ts +754 -432
- package/dist/schema.js +77 -13
- package/dist/server/index.d.ts +10 -10
- package/dist/server/index.js +434 -55
- package/dist/{submission-input-wTiYGdgA.d.ts → submission-input-DxQ6RnKo.d.ts} +2 -2
- package/dist/{telegram-browser-Bh3i0HiH.d.ts → telegram-browser-o3OIxGrJ.d.ts} +3 -3
- package/dist/testing.d.ts +89 -9
- package/dist/testing.js +215 -10
- package/dist/{transport-CnKA-_RL.d.ts → transport-D_Eqf78J.d.ts} +3997 -2030
- package/dist/wallet-B06zvDXp.d.ts +972 -0
- package/dist/{x-1czZFVUW.d.ts → x-C28SNifw.d.ts} +2 -2
- package/package.json +2 -2
- package/dist/profiles-BoOK03cR.d.ts +0 -299
- package/dist/runtime/chunks/IDOMZWRY.js +0 -40
- package/dist/runtime/chunks/NDB42VFF.js +0 -1
- package/dist/util.d-w9f9t3ua.d.ts +0 -5
- package/dist/wallet-Ac7OFpOr.d.ts +0 -228
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
identifier,
|
|
3
3
|
responseShape,
|
|
4
4
|
xTweetSchema
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-AWWCEP7F.js";
|
|
6
6
|
|
|
7
7
|
// src/x.ts
|
|
8
8
|
import * as z from "zod";
|
|
@@ -41,7 +41,7 @@ var xPostSchema = xTweetSchema.extend({
|
|
|
41
41
|
* projection (migration 0056), a list with any malformed item is dropped whole, so positions
|
|
42
42
|
* never shift and a bad entry never fails the post read.
|
|
43
43
|
*/
|
|
44
|
-
media: z.unknown().transform(
|
|
44
|
+
media: z.unknown().optional().transform(
|
|
45
45
|
(value) => z.array(z.object({ type: z.string(), url: z.string() })).safeParse(value).data ?? []
|
|
46
46
|
)
|
|
47
47
|
});
|
|
@@ -4,20 +4,20 @@ import {
|
|
|
4
4
|
retryAfter,
|
|
5
5
|
retrying,
|
|
6
6
|
validTimeout
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-R4S6BFOH.js";
|
|
8
8
|
import {
|
|
9
9
|
clientIdentity
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-TZJT5CRF.js";
|
|
11
11
|
import {
|
|
12
12
|
authScopeSchema
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-EQF4ID47.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-AWWCEP7F.js";
|
|
21
21
|
|
|
22
22
|
// src/configuration.ts
|
|
23
23
|
function questConfiguration(release) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
dashboardArtifactSchema,
|
|
3
3
|
dashboardPreviewSchema
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-W42KMMH5.js";
|
|
5
5
|
import {
|
|
6
6
|
imageAssetArtifactSchema,
|
|
7
7
|
imageComparisonSchema,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
imageSightingsSchema,
|
|
11
11
|
imageUploadsSchema,
|
|
12
12
|
publishedImageSchema
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-IBROKMFV.js";
|
|
14
14
|
import {
|
|
15
15
|
catalogDeploymentSchema,
|
|
16
16
|
collectionPassSchema,
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
questTypeVersionSchema,
|
|
30
30
|
questViewSchema,
|
|
31
31
|
rewardDeliveriesSchema
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-6U5WWH3W.js";
|
|
33
33
|
import {
|
|
34
34
|
badgeArtifactSchema,
|
|
35
35
|
badgeSchema,
|
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
referralDefinitionSchema,
|
|
55
55
|
referralHistorySchema,
|
|
56
56
|
referralSummarySchema
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-UEMLYPKJ.js";
|
|
58
58
|
import {
|
|
59
59
|
ownProfileSchema,
|
|
60
60
|
pointBalancesSchema,
|
|
@@ -66,12 +66,12 @@ import {
|
|
|
66
66
|
profileReferralSchema,
|
|
67
67
|
profileSummarySchema,
|
|
68
68
|
telegramAccountConnectionSchema
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-XGXDINGM.js";
|
|
70
70
|
import {
|
|
71
71
|
exchangeResultSchema,
|
|
72
72
|
memberSummarySchema,
|
|
73
73
|
participantSessionSchema
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-EQF4ID47.js";
|
|
75
75
|
import {
|
|
76
76
|
accountConnectionSchema,
|
|
77
77
|
attemptSchema,
|
|
@@ -102,9 +102,14 @@ import {
|
|
|
102
102
|
timeZoneNameSchema,
|
|
103
103
|
trackerArtifactSchema,
|
|
104
104
|
walletBalanceSchema,
|
|
105
|
+
walletCallSchema,
|
|
106
|
+
walletDelegationsSchema,
|
|
107
|
+
walletEventsSchema,
|
|
105
108
|
walletMessageChallengeSchema,
|
|
106
|
-
|
|
107
|
-
|
|
109
|
+
walletNftsSchema,
|
|
110
|
+
walletSignInNetworksSchema,
|
|
111
|
+
walletTransactionsSchema
|
|
112
|
+
} from "./chunk-AWWCEP7F.js";
|
|
108
113
|
|
|
109
114
|
// src/deployments.ts
|
|
110
115
|
import * as z from "zod";
|
|
@@ -266,6 +271,21 @@ var capabilityResponseSchemas = lazyResponseReaders({
|
|
|
266
271
|
},
|
|
267
272
|
get walletBalanceSchema() {
|
|
268
273
|
return knownResponse(walletBalanceSchema);
|
|
274
|
+
},
|
|
275
|
+
get walletNftsSchema() {
|
|
276
|
+
return knownResponse(walletNftsSchema);
|
|
277
|
+
},
|
|
278
|
+
get walletCallSchema() {
|
|
279
|
+
return knownResponse(walletCallSchema);
|
|
280
|
+
},
|
|
281
|
+
get walletDelegationsSchema() {
|
|
282
|
+
return knownResponse(walletDelegationsSchema);
|
|
283
|
+
},
|
|
284
|
+
get walletEventsSchema() {
|
|
285
|
+
return knownResponse(walletEventsSchema);
|
|
286
|
+
},
|
|
287
|
+
get walletTransactionsSchema() {
|
|
288
|
+
return knownResponse(walletTransactionsSchema);
|
|
269
289
|
}
|
|
270
290
|
});
|
|
271
291
|
var capabilityResponses = {
|
|
@@ -275,7 +295,12 @@ var capabilityResponses = {
|
|
|
275
295
|
imageSightingsSchema: responseSchema(imageSightingsSchema),
|
|
276
296
|
imageUploadsSchema: responseSchema(imageUploadsSchema),
|
|
277
297
|
publishedImageSchema: responseSchema(publishedImageSchema),
|
|
278
|
-
walletBalanceSchema: responseSchema(walletBalanceSchema)
|
|
298
|
+
walletBalanceSchema: responseSchema(walletBalanceSchema),
|
|
299
|
+
walletNftsSchema: responseSchema(walletNftsSchema),
|
|
300
|
+
walletCallSchema: responseSchema(walletCallSchema),
|
|
301
|
+
walletDelegationsSchema: responseSchema(walletDelegationsSchema),
|
|
302
|
+
walletEventsSchema: responseSchema(walletEventsSchema),
|
|
303
|
+
walletTransactionsSchema: responseSchema(walletTransactionsSchema)
|
|
279
304
|
};
|
|
280
305
|
|
|
281
306
|
// src/activity.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pointEntrySchema,
|
|
3
3
|
profileSummarySchema
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-XGXDINGM.js";
|
|
5
5
|
import {
|
|
6
6
|
authoringIdentityShape,
|
|
7
7
|
calendarPeriodSchema,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
responseShape,
|
|
19
19
|
rewardKey,
|
|
20
20
|
tierRewardSchema
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-AWWCEP7F.js";
|
|
22
22
|
|
|
23
23
|
// src/badges.ts
|
|
24
24
|
import * as z from "zod";
|
|
@@ -771,8 +771,11 @@ var offerDefinitionSchema = z5.object({
|
|
|
771
771
|
}).strict();
|
|
772
772
|
var offerAuthoringSchema = offerDefinitionSchema.omit({ id: true, title: true, enabled: true }).extend({
|
|
773
773
|
...authoringIdentityShape,
|
|
774
|
-
title: z5.string().trim().min(1).max(120).optional()
|
|
775
|
-
|
|
774
|
+
title: z5.string().trim().min(1).max(120).optional(),
|
|
775
|
+
// `defineOffer` returns `enabled: true`, and a deployment describes the module's default
|
|
776
|
+
// export and parses it again, so the output has to read back. Pause an offer in Console.
|
|
777
|
+
enabled: z5.literal(true).optional()
|
|
778
|
+
}).strict().transform(({ enabled: _, ...offer }) => ({
|
|
776
779
|
...offer,
|
|
777
780
|
title: offer.title ?? offer.reward.reward.title,
|
|
778
781
|
enabled: true
|
|
@@ -2,11 +2,10 @@ import {
|
|
|
2
2
|
identifier,
|
|
3
3
|
resourceHandle,
|
|
4
4
|
responseShape
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-AWWCEP7F.js";
|
|
6
6
|
|
|
7
7
|
// src/youtube.ts
|
|
8
8
|
import * as z from "zod";
|
|
9
|
-
var youtubeShortsNamespace = "youtube-shorts";
|
|
10
9
|
var youtubeShortBodySchema = z.object({
|
|
11
10
|
title: z.string(),
|
|
12
11
|
description: z.string(),
|
|
@@ -19,7 +18,6 @@ var youtubeShortMetrics = ["views", "likes", "comments"];
|
|
|
19
18
|
|
|
20
19
|
// src/tiktok.ts
|
|
21
20
|
import * as z2 from "zod";
|
|
22
|
-
var tiktokVideosNamespace = "tiktok-videos";
|
|
23
21
|
var tiktokVideoBodySchema = z2.object({
|
|
24
22
|
title: z2.string(),
|
|
25
23
|
/** The creator's caption, `video_description` in TikTok's API. */
|
|
@@ -672,10 +670,8 @@ function defineDashboard(input) {
|
|
|
672
670
|
}
|
|
673
671
|
|
|
674
672
|
export {
|
|
675
|
-
youtubeShortsNamespace,
|
|
676
673
|
youtubeShortBodySchema,
|
|
677
674
|
youtubeShortMetrics,
|
|
678
|
-
tiktokVideosNamespace,
|
|
679
675
|
tiktokVideoBodySchema,
|
|
680
676
|
tiktokVideoMetrics,
|
|
681
677
|
analyticsRanges,
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
accountConnectionSchema,
|
|
3
3
|
identifier,
|
|
4
4
|
pageCursorSchema
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-AWWCEP7F.js";
|
|
6
6
|
|
|
7
7
|
// src/point-ledgers.ts
|
|
8
8
|
import * as z from "zod";
|
|
@@ -132,7 +132,6 @@ var telegramChatMemberSchema = z2.object({
|
|
|
132
132
|
/** When a paid subscription or a restriction ends, epoch milliseconds; null when it does not. */
|
|
133
133
|
untilDate: z2.number().nullable()
|
|
134
134
|
});
|
|
135
|
-
var telegramReactionsNamespace = "telegram-reactions";
|
|
136
135
|
var telegramReactionDataSchema = z2.object({
|
|
137
136
|
/** The chat's numeric ID, as a string. */
|
|
138
137
|
chatId: z2.string(),
|
|
@@ -153,6 +152,20 @@ var telegramReactionDataSchema = z2.object({
|
|
|
153
152
|
/** Whether the reactor was the chat's creator or an administrator then. */
|
|
154
153
|
reactorIsAdmin: z2.boolean()
|
|
155
154
|
});
|
|
155
|
+
var telegramMessageDataSchema = z2.object({
|
|
156
|
+
/** The chat's numeric ID, as a string. */
|
|
157
|
+
chatId: z2.string(),
|
|
158
|
+
/** `group` or `supergroup`: channel posts are authored by the channel and never recorded. */
|
|
159
|
+
chatType: z2.string(),
|
|
160
|
+
messageId: z2.number(),
|
|
161
|
+
/** The ID of the message it replies to in the same chat; null when it is not a reply. */
|
|
162
|
+
replyToMessageId: z2.number().nullable(),
|
|
163
|
+
/**
|
|
164
|
+
* The message thread it belongs to: the forum topic in a supergroup with topics, or the reply
|
|
165
|
+
* thread otherwise. Null when Telegram names none.
|
|
166
|
+
*/
|
|
167
|
+
threadId: z2.number().nullable()
|
|
168
|
+
});
|
|
156
169
|
|
|
157
170
|
// src/profiles.ts
|
|
158
171
|
import * as z3 from "zod";
|
|
@@ -319,8 +332,8 @@ export {
|
|
|
319
332
|
telegramChatConnectionSchema,
|
|
320
333
|
telegramMemberInputSchema,
|
|
321
334
|
telegramChatMemberSchema,
|
|
322
|
-
telegramReactionsNamespace,
|
|
323
335
|
telegramReactionDataSchema,
|
|
336
|
+
telegramMessageDataSchema,
|
|
324
337
|
profileVisibilitySchema,
|
|
325
338
|
avatarProviderSchema,
|
|
326
339
|
profileDefaultProviderSchema,
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
imageFieldsSchema,
|
|
5
5
|
imageInspectionSchema,
|
|
6
6
|
imageSightingsSchema
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-IBROKMFV.js";
|
|
8
8
|
import {
|
|
9
9
|
photoResultSchema
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-AWWCEP7F.js";
|
|
11
11
|
|
|
12
12
|
// src/image-results.ts
|
|
13
13
|
import * as z from "zod";
|