@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.
Files changed (64) hide show
  1. package/CHANGELOG.md +74 -0
  2. package/dist/{accounts-DRPENuZe.d.ts → accounts-CVonEkdb.d.ts} +18 -7
  3. package/dist/{attempt-captures-CxxO7DeD.d.ts → attempt-captures-DBj-rxak.d.ts} +1 -1
  4. package/dist/authoring.d.ts +180 -28
  5. package/dist/authoring.js +236 -11
  6. package/dist/{automatic-outcomes-DxW_v5Wc.d.ts → automatic-outcomes-FS9okvBP.d.ts} +1 -1
  7. package/dist/avatar.d.ts +1 -2
  8. package/dist/browser.d.ts +8 -9
  9. package/dist/browser.js +10 -10
  10. package/dist/{capability-error-DSd8EMQC.d.ts → capability-error-DDJl0LY-.d.ts} +0 -6
  11. package/dist/{chunk-OTITLABX.js → chunk-2LKGAL63.js} +2 -2
  12. package/dist/{chunk-NK6EER33.js → chunk-577DG2IT.js} +8 -8
  13. package/dist/{chunk-RBPMT53S.js → chunk-6U5WWH3W.js} +19 -4
  14. package/dist/{chunk-BHHUSBSD.js → chunk-AWWCEP7F.js} +1402 -881
  15. package/dist/{chunk-QNQNKIAA.js → chunk-EQF4ID47.js} +1 -1
  16. package/dist/{chunk-CK7HO32Z.js → chunk-IBROKMFV.js} +2 -2
  17. package/dist/{chunk-MNU6UPXY.js → chunk-KBCTII6C.js} +1 -1
  18. package/dist/{chunk-INSWI2VZ.js → chunk-KYUQEZZA.js} +1 -1
  19. package/dist/{chunk-G6XVBYH7.js → chunk-LDLOB2UZ.js} +4 -4
  20. package/dist/{chunk-CXKXPB7K.js → chunk-M2JQPDUX.js} +34 -9
  21. package/dist/{chunk-KBVH4XZC.js → chunk-R4S6BFOH.js} +1 -1
  22. package/dist/{chunk-ABJ4G47X.js → chunk-TZJT5CRF.js} +1 -1
  23. package/dist/{chunk-BJYMTCWG.js → chunk-UEMLYPKJ.js} +7 -4
  24. package/dist/{chunk-ULQU7KC4.js → chunk-W42KMMH5.js} +1 -5
  25. package/dist/{chunk-VSHV7FEA.js → chunk-XGXDINGM.js} +16 -3
  26. package/dist/{chunk-H2MD6E7Z.js → chunk-YMWRLAAP.js} +1 -1
  27. package/dist/{chunk-W5U2WXG3.js → chunk-YRSU2X2P.js} +2 -2
  28. package/dist/{client-bX3oTpRu.d.ts → client-3b9HjSzZ.d.ts} +115 -116
  29. package/dist/{deployments-D3lxfQMB.d.ts → deployments-BydFVj4Q.d.ts} +314 -175
  30. package/dist/{groups-DPE004_V.d.ts → groups-CFuTfFqG.d.ts} +11 -7
  31. package/dist/index.d.ts +9 -10
  32. package/dist/index.js +9 -9
  33. package/dist/{integrations-CcD5NPEA.d.ts → integrations-DrbKQSTD.d.ts} +3 -32
  34. package/dist/internal.d.ts +10 -10
  35. package/dist/internal.js +8 -8
  36. package/dist/{offers-CtzMeB7O.d.ts → offers-DAfe1O3_.d.ts} +6 -2
  37. package/dist/{pages-BlLqB8ZQ.d.ts → pages-ChDVLrgR.d.ts} +39 -10
  38. package/dist/portal-proxy.js +3 -3
  39. package/dist/react/index.d.ts +71 -72
  40. package/dist/react/index.js +10 -10
  41. package/dist/runtime/authoring.js +1 -1
  42. package/dist/runtime/chunks/BG43KQ2T.js +1 -0
  43. package/dist/runtime/chunks/EWU4OKSY.js +62 -0
  44. package/dist/runtime/manifest.json +5 -5
  45. package/dist/runtime/schema.js +1 -1
  46. package/dist/runtime/zod.js +1 -1
  47. package/dist/{schema-C4m9RhCR.d.ts → schema-BA0nRRlt.d.ts} +184 -35
  48. package/dist/schema.d.ts +754 -432
  49. package/dist/schema.js +77 -13
  50. package/dist/server/index.d.ts +10 -10
  51. package/dist/server/index.js +434 -55
  52. package/dist/{submission-input-wTiYGdgA.d.ts → submission-input-DxQ6RnKo.d.ts} +2 -2
  53. package/dist/{telegram-browser-Bh3i0HiH.d.ts → telegram-browser-o3OIxGrJ.d.ts} +3 -3
  54. package/dist/testing.d.ts +89 -9
  55. package/dist/testing.js +215 -10
  56. package/dist/{transport-CnKA-_RL.d.ts → transport-D_Eqf78J.d.ts} +3997 -2030
  57. package/dist/wallet-B06zvDXp.d.ts +972 -0
  58. package/dist/{x-1czZFVUW.d.ts → x-C28SNifw.d.ts} +2 -2
  59. package/package.json +2 -2
  60. package/dist/profiles-BoOK03cR.d.ts +0 -299
  61. package/dist/runtime/chunks/IDOMZWRY.js +0 -40
  62. package/dist/runtime/chunks/NDB42VFF.js +0 -1
  63. package/dist/util.d-w9f9t3ua.d.ts +0 -5
  64. package/dist/wallet-Ac7OFpOr.d.ts +0 -228
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  identifier
3
- } from "./chunk-BHHUSBSD.js";
3
+ } from "./chunk-AWWCEP7F.js";
4
4
 
5
5
  // src/auth.ts
6
6
  import * as z from "zod";
@@ -2,7 +2,7 @@ import {
2
2
  identifier,
3
3
  responseShape,
4
4
  xTweetSchema
5
- } from "./chunk-BHHUSBSD.js";
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
  });
@@ -8,7 +8,7 @@ import {
8
8
  rewardBundleSchema,
9
9
  settingsValuesSchema,
10
10
  trackerTriggerContextSchema
11
- } from "./chunk-BHHUSBSD.js";
11
+ } from "./chunk-AWWCEP7F.js";
12
12
 
13
13
  // src/server/attempt-captures.ts
14
14
  import * as z from "zod";
@@ -2,7 +2,7 @@ import {
2
2
  RelayErrorCode,
3
3
  clientError,
4
4
  isRequestError
5
- } from "./chunk-BHHUSBSD.js";
5
+ } from "./chunk-AWWCEP7F.js";
6
6
 
7
7
  // src/action.ts
8
8
  function withActionId(value) {
@@ -4,20 +4,20 @@ import {
4
4
  retryAfter,
5
5
  retrying,
6
6
  validTimeout
7
- } from "./chunk-KBVH4XZC.js";
7
+ } from "./chunk-R4S6BFOH.js";
8
8
  import {
9
9
  clientIdentity
10
- } from "./chunk-ABJ4G47X.js";
10
+ } from "./chunk-TZJT5CRF.js";
11
11
  import {
12
12
  authScopeSchema
13
- } from "./chunk-QNQNKIAA.js";
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-BHHUSBSD.js";
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-ULQU7KC4.js";
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-CK7HO32Z.js";
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-RBPMT53S.js";
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-BJYMTCWG.js";
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-VSHV7FEA.js";
69
+ } from "./chunk-XGXDINGM.js";
70
70
  import {
71
71
  exchangeResultSchema,
72
72
  memberSummarySchema,
73
73
  participantSessionSchema
74
- } from "./chunk-QNQNKIAA.js";
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
- walletSignInNetworksSchema
107
- } from "./chunk-BHHUSBSD.js";
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,6 +1,6 @@
1
1
  import {
2
2
  isRequestError
3
- } from "./chunk-BHHUSBSD.js";
3
+ } from "./chunk-AWWCEP7F.js";
4
4
 
5
5
  // src/request-lifetime.ts
6
6
  var PARTICIPANT_TIMEOUT = 15e3;
@@ -1,6 +1,6 @@
1
1
  // package.json
2
2
  var name = "@domino-sdk/relay";
3
- var version = "1.56.0";
3
+ var version = "1.59.0";
4
4
 
5
5
  // src/client-identity.ts
6
6
  function clientIdentity() {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  pointEntrySchema,
3
3
  profileSummarySchema
4
- } from "./chunk-VSHV7FEA.js";
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-BHHUSBSD.js";
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
- }).strict().transform((offer) => ({
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-BHHUSBSD.js";
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-BHHUSBSD.js";
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,
@@ -5,7 +5,7 @@ import {
5
5
  isKnownTrackerSource,
6
6
  trackerDataSchema,
7
7
  xAccountRoles
8
- } from "./chunk-BHHUSBSD.js";
8
+ } from "./chunk-AWWCEP7F.js";
9
9
 
10
10
  // src/quest-shape.ts
11
11
  function validateQuestShape(description, options = {}) {
@@ -4,10 +4,10 @@ import {
4
4
  imageFieldsSchema,
5
5
  imageInspectionSchema,
6
6
  imageSightingsSchema
7
- } from "./chunk-CK7HO32Z.js";
7
+ } from "./chunk-IBROKMFV.js";
8
8
  import {
9
9
  photoResultSchema
10
- } from "./chunk-BHHUSBSD.js";
10
+ } from "./chunk-AWWCEP7F.js";
11
11
 
12
12
  // src/image-results.ts
13
13
  import * as z from "zod";