@domino-sdk/relay 1.31.0 → 1.33.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 (30) hide show
  1. package/dist/authoring.d.ts +8 -8
  2. package/dist/authoring.js +1 -1
  3. package/dist/browser.d.ts +4 -4
  4. package/dist/browser.js +5 -5
  5. package/dist/{chunk-BEGFBWEG.js → chunk-2SL7K42N.js} +2 -2
  6. package/dist/{chunk-MHPTCD5O.js → chunk-BDWZ2BZP.js} +1 -1
  7. package/dist/{chunk-F3JLZ7MR.js → chunk-E5OYFYO3.js} +3 -3
  8. package/dist/{chunk-WULPIU3Z.js → chunk-KWNSYWVH.js} +1 -1
  9. package/dist/{chunk-5QZGXYH7.js → chunk-ON7RDKQ3.js} +13 -2
  10. package/dist/{chunk-LSJPJQW4.js → chunk-PM3265GG.js} +61 -31
  11. package/dist/{chunk-A7SJDWBR.js → chunk-YPI5SGXB.js} +1 -1
  12. package/dist/{client-CFFgPnIX.d.ts → client-Bkc7gOmF.d.ts} +3 -2
  13. package/dist/{groups-sgKusEzF.d.ts → groups-C06mpYOs.d.ts} +5 -0
  14. package/dist/index.d.ts +4 -4
  15. package/dist/index.js +4 -4
  16. package/dist/internal.d.ts +4 -4
  17. package/dist/internal.js +2 -2
  18. package/dist/{offers-D14uyLQQ.d.ts → offers-BbQ9O-5J.d.ts} +1 -1
  19. package/dist/portal-proxy.js +1 -1
  20. package/dist/react/index.d.ts +6 -6
  21. package/dist/react/index.js +5 -5
  22. package/dist/schema.d.ts +66 -63
  23. package/dist/schema.js +3 -3
  24. package/dist/server/index.d.ts +4 -4
  25. package/dist/server/index.js +1018 -620
  26. package/dist/{submission-input-Dr0v6J9N.d.ts → submission-input-DUmt6Wyx.d.ts} +1 -1
  27. package/dist/{telegram-browser-zPO8yYDJ.d.ts → telegram-browser-DWFPGBgU.d.ts} +1 -1
  28. package/dist/{transport-leWfCbHS.d.ts → transport-DVdbwmrB.d.ts} +1814 -352
  29. package/package.json +1 -1
  30. package/dist/{deployments-DMVpPnGX.d.ts → deployments-BZuI2lWF.d.ts} +28 -28
@@ -2,16 +2,16 @@ 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-D14uyLQQ.js';
6
- export { g as defineOffer } from './offers-D14uyLQQ.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-sgKusEzF.js';
8
- export { u as defineCampaign, v as defineGroup } from './groups-sgKusEzF.js';
5
+ import { f as badgeDeclarationSchema, B as Badge } from './offers-BbQ9O-5J.js';
6
+ export { g as defineOffer } from './offers-BbQ9O-5J.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-C06mpYOs.js';
8
+ export { u as defineCampaign, v as defineGroup } from './groups-C06mpYOs.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';
10
10
  export { i as TelegramChatMember, j as TelegramChatMemberStatus, k as TelegramReactionData } from './accounts-DRPENuZe.js';
11
11
  import { Q as QuizContent, a as StreakPolicy } from './streaks-0YuipsUQ.js';
12
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-Dr0v6J9N.js';
14
- export { c as balanceAtLeast, d as completed, i as inGroup } from './submission-input-Dr0v6J9N.js';
13
+ import { P as Prerequisite, T as TextEvidence, U as UrlEvidence, a as TextOptions, b as UrlOptions } from './submission-input-DUmt6Wyx.js';
14
+ export { c as balanceAtLeast, d as completed, i as inGroup } from './submission-input-DUmt6Wyx.js';
15
15
  import { I as ImageReader, X as XReader } from './x-58jkoblN.js';
16
16
  import { h as WalletReader } from './wallet-t7uNDg9p.js';
17
17
  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';
@@ -1337,7 +1337,7 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
1337
1337
  equals: string | number | boolean;
1338
1338
  })[] | undefined;
1339
1339
  enrollment?: "none" | "required" | undefined;
1340
- since?: "activation" | "window" | "enrollment" | undefined;
1340
+ since?: "window" | "activation" | "enrollment" | undefined;
1341
1341
  historical?: "staff" | "claim" | "automatic" | undefined;
1342
1342
  content?: true | undefined;
1343
1343
  } | undefined;
@@ -1761,7 +1761,7 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
1761
1761
  equals: string | number | boolean;
1762
1762
  })[] | undefined;
1763
1763
  enrollment?: "none" | "required" | undefined;
1764
- since?: "activation" | "window" | "enrollment" | undefined;
1764
+ since?: "window" | "activation" | "enrollment" | undefined;
1765
1765
  historical?: "staff" | "claim" | "automatic" | undefined;
1766
1766
  content?: true | undefined;
1767
1767
  } | undefined;
package/dist/authoring.js CHANGED
@@ -20,7 +20,7 @@ import {
20
20
  leaderboardAuthoringSchema,
21
21
  pointLedgerDeclarationSchema,
22
22
  referralAuthoringSchema
23
- } from "./chunk-5QZGXYH7.js";
23
+ } from "./chunk-ON7RDKQ3.js";
24
24
  import {
25
25
  telegramReactionDataSchema,
26
26
  telegramReactionsNamespace
package/dist/browser.d.ts CHANGED
@@ -1,10 +1,10 @@
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
- import './groups-sgKusEzF.js';
1
+ import { o as SubmissionStore, f as RelayClientOptions, R as RelayClient } from './client-Bkc7gOmF.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-DWFPGBgU.js';
3
+ import './groups-C06mpYOs.js';
4
4
  import 'zod';
5
5
  import './schema-DquhoBae.js';
6
6
  import './pages-C1tNuRoB.js';
7
- import './submission-input-Dr0v6J9N.js';
7
+ import './submission-input-DUmt6Wyx.js';
8
8
  import './action-DBzILFx9.js';
9
9
  import './participant-activity-BPZiW7m7.js';
10
10
  import './accounts-DRPENuZe.js';
package/dist/browser.js CHANGED
@@ -12,14 +12,14 @@ import {
12
12
  solanaSigner,
13
13
  telegramMiniAppInitData,
14
14
  walletStandardSolanaSigner
15
- } from "./chunk-WULPIU3Z.js";
16
- import "./chunk-F3JLZ7MR.js";
15
+ } from "./chunk-KWNSYWVH.js";
16
+ import "./chunk-E5OYFYO3.js";
17
17
  import "./chunk-IJT4EKFY.js";
18
- import "./chunk-MHPTCD5O.js";
19
- import "./chunk-5QZGXYH7.js";
18
+ import "./chunk-BDWZ2BZP.js";
19
+ import "./chunk-ON7RDKQ3.js";
20
20
  import "./chunk-BUHGXKPY.js";
21
21
  import "./chunk-V7K7XXFB.js";
22
- import "./chunk-A7SJDWBR.js";
22
+ import "./chunk-YPI5SGXB.js";
23
23
  import "./chunk-466IRAJP.js";
24
24
  import "./chunk-OW22TOV7.js";
25
25
  export {
@@ -24,7 +24,7 @@ import {
24
24
  questTypeVersionSchema,
25
25
  questViewSchema,
26
26
  rewardDeliveriesSchema
27
- } from "./chunk-MHPTCD5O.js";
27
+ } from "./chunk-BDWZ2BZP.js";
28
28
  import {
29
29
  badgeArtifactSchema,
30
30
  badgeSchema,
@@ -57,7 +57,7 @@ import {
57
57
  referralDefinitionSchema,
58
58
  referralHistorySchema,
59
59
  referralSummarySchema
60
- } from "./chunk-5QZGXYH7.js";
60
+ } from "./chunk-ON7RDKQ3.js";
61
61
  import {
62
62
  telegramAccountConnectionSchema
63
63
  } from "./chunk-BUHGXKPY.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  badgeSchema,
3
3
  pointLedgerReferenceSchema
4
- } from "./chunk-5QZGXYH7.js";
4
+ } from "./chunk-ON7RDKQ3.js";
5
5
  import {
6
6
  authoringIdentityShape,
7
7
  entitlementSchema,
@@ -17,7 +17,7 @@ import {
17
17
  questOutcomeSchema,
18
18
  rewardDeliveriesSchema,
19
19
  rewardDeliveryQuerySchema
20
- } from "./chunk-MHPTCD5O.js";
20
+ } from "./chunk-BDWZ2BZP.js";
21
21
  import {
22
22
  AVATAR_UPLOAD_LIMIT,
23
23
  avatarUploadTypes,
@@ -46,7 +46,7 @@ import {
46
46
  referralDefinitionSchema,
47
47
  referralHistorySchema,
48
48
  referralSummarySchema
49
- } from "./chunk-5QZGXYH7.js";
49
+ } from "./chunk-ON7RDKQ3.js";
50
50
  import {
51
51
  telegramAccountConnectionSchema,
52
52
  telegramMiniAppSignInSchema,
@@ -61,7 +61,7 @@ import {
61
61
  } from "./chunk-V7K7XXFB.js";
62
62
  import {
63
63
  clientIdentity
64
- } from "./chunk-A7SJDWBR.js";
64
+ } from "./chunk-YPI5SGXB.js";
65
65
  import {
66
66
  exchangeResultSchema,
67
67
  exchangeSchema,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createRelayClient
3
- } from "./chunk-F3JLZ7MR.js";
3
+ } from "./chunk-E5OYFYO3.js";
4
4
  import {
5
5
  RelayErrorCode,
6
6
  asRelayError,
@@ -95,7 +95,12 @@ var pointEntrySchema = z2.object({
95
95
  /** When the entry took effect, in epoch milliseconds. A reversal keeps its source's. */
96
96
  at: points.nonnegative(),
97
97
  quest: identifier.nullable(),
98
- reverses: identifier.nullable()
98
+ reverses: identifier.nullable(),
99
+ /**
100
+ * True for an opening balance a member import recorded (an `adjust`). Absent from Relay
101
+ * versions without imports.
102
+ */
103
+ imported: z2.boolean().optional()
99
104
  });
100
105
  var pointHistoryQuerySchema = z2.strictObject({
101
106
  ledger: identifier,
@@ -597,7 +602,13 @@ var pointsEntrySchema = z5.object({
597
602
  quest: identifier.nullable(),
598
603
  original: identifier.nullable(),
599
604
  reason: z5.string(),
600
- actor: z5.string().nullable()
605
+ actor: z5.string().nullable(),
606
+ /**
607
+ * The member import whose opening balance this `adjust` is, or null. Imported entries emit no
608
+ * `points.awarded` and count on balance leaderboards only. Absent from Relay versions without
609
+ * imports.
610
+ */
611
+ import: identifier.nullable().optional()
601
612
  });
602
613
  var managedPointHistoryPageSchema = z5.object({
603
614
  items: z5.array(pointsEntrySchema),
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-V7K7XXFB.js";
8
8
  import {
9
9
  clientIdentity
10
- } from "./chunk-A7SJDWBR.js";
10
+ } from "./chunk-YPI5SGXB.js";
11
11
  import {
12
12
  authScopeSchema
13
13
  } from "./chunk-466IRAJP.js";
@@ -33,11 +33,27 @@ function questConfiguration(release) {
33
33
  };
34
34
  }
35
35
 
36
- // src/identity-integration.ts
36
+ // src/credential-secrets.ts
37
37
  import * as z from "zod";
38
- var identityIntegrationInputSchema = z.object({
39
- name: z.string().trim().min(1).max(80),
40
- origin: z.string().url().refine((value) => {
38
+ var credentialSecretSchema = z.object({
39
+ id: z.string().uuid(),
40
+ /** The secret's last four characters, to tell secrets apart; null for one issued before hints. */
41
+ hint: z.string().nullable(),
42
+ createdAt: z.number(),
43
+ /** When the secret stops working; null when it never expires. */
44
+ expiresAt: z.number().nullable(),
45
+ /** When the secret last authenticated a request; null when it never has. */
46
+ lastUsedAt: z.number().nullable()
47
+ });
48
+ var credentialSecretInputSchema = z.object({
49
+ expiresInDays: z.number().int().min(1).max(3650).optional()
50
+ }).strict();
51
+
52
+ // src/identity-integration.ts
53
+ import * as z2 from "zod";
54
+ var identityIntegrationInputSchema = z2.object({
55
+ name: z2.string().trim().min(1).max(80),
56
+ origin: z2.string().url().refine((value) => {
41
57
  const url = new URL(value);
42
58
  return url.protocol === "https:" && url.origin === value;
43
59
  }, "Use an exact HTTPS application origin"),
@@ -58,9 +74,11 @@ var identityIntegrationInputSchema = z.object({
58
74
  * users as that integration's, because each one then signs in as the member that ID is linked
59
75
  * to. Needs `reason`, which the audit log keeps.
60
76
  */
61
- adoptIdentitiesFrom: z.string().uuid().optional(),
77
+ adoptIdentitiesFrom: z2.string().uuid().optional(),
62
78
  /** Why the identities are adopted; required with `adoptIdentitiesFrom`. */
63
- reason: z.string().trim().min(1).max(500).optional()
79
+ reason: z2.string().trim().min(1).max(500).optional(),
80
+ /** Days until the first secret expires. Omit it for a key that never expires. */
81
+ expiresInDays: z2.number().int().min(1).max(3650).optional()
64
82
  }).strict().refine(
65
83
  (input) => !input.adoptIdentitiesFrom || input.identityKind,
66
84
  "Adopting identities needs the identityKind they have"
@@ -68,41 +86,51 @@ var identityIntegrationInputSchema = z.object({
68
86
  (input) => !input.adoptIdentitiesFrom === !input.reason,
69
87
  "Give a reason when adopting identities, and only then"
70
88
  );
71
- var identityIntegrationSchema = z.object({
89
+ var identityIntegrationSchema = z2.object({
72
90
  ...authScopeSchema.shape,
73
- id: z.string().uuid(),
74
- name: z.string(),
75
- origin: z.string(),
76
- expiresAt: z.number(),
91
+ id: z2.string().uuid(),
92
+ name: z2.string(),
93
+ origin: z2.string(),
94
+ /**
95
+ * When the integration's last working secret expires: 8640000000000000 (the latest date
96
+ * JavaScript represents) when one never does.
97
+ *
98
+ * @deprecated Read `secrets`, which gives each secret's own expiry.
99
+ */
100
+ expiresAt: z2.number(),
101
+ /** The integration's working secrets, oldest first. Any of them authenticates it. */
102
+ secrets: z2.array(credentialSecretSchema).default([]),
103
+ /** The latest use of any of its secrets, revoked ones included; null when none was used. */
104
+ lastUsedAt: z2.number().nullable().default(null),
77
105
  /** The identity kind the integration owns; null when it only signs members in. */
78
106
  identityKind: openIdentityKindSchema.nullable().default(null)
79
107
  });
80
108
  var identityIntegrationSecretSchema = identityIntegrationSchema.extend(
81
109
  {
82
- token: z.string()
110
+ token: z2.string()
83
111
  }
84
112
  );
85
- var identityKindClaimSchema = z.object({
113
+ var identityKindClaimSchema = z2.object({
86
114
  kind: openIdentityKindSchema,
87
115
  /** The owning integration's ID; it stays after the integration is disconnected. */
88
- integration: z.string(),
116
+ integration: z2.string(),
89
117
  /** The owning integration's name when it claimed or adopted the kind. */
90
- integrationName: z.string(),
118
+ integrationName: z2.string(),
91
119
  /** Whether the owning integration is still connected. */
92
- connected: z.boolean(),
120
+ connected: z2.boolean(),
93
121
  /** Linked identities of the kind; adopting them is required to reuse the kind. */
94
- linked: z.number().int().nonnegative(),
122
+ linked: z2.number().int().nonnegative(),
95
123
  /** Identities an operator unlinked. */
96
- unlinked: z.number().int().nonnegative(),
97
- claimedAt: z.number().int().nonnegative()
124
+ unlinked: z2.number().int().nonnegative(),
125
+ claimedAt: z2.number().int().nonnegative()
98
126
  });
99
- var participantExchangeSchema = z.object({
100
- subject: z.string().min(1).max(200),
101
- previousToken: z.string().max(200).optional()
127
+ var participantExchangeSchema = z2.object({
128
+ subject: z2.string().min(1).max(200),
129
+ previousToken: z2.string().max(200).optional()
102
130
  }).strict();
103
131
 
104
132
  // src/server/errors.ts
105
- import * as z2 from "zod";
133
+ import * as z3 from "zod";
106
134
  var ManagementErrorCode = {
107
135
  /** The input or an option failed validation before anything was sent (kind `client`). */
108
136
  InvalidInput: "invalid-input",
@@ -113,9 +141,9 @@ var ManagementErrorCode = {
113
141
  Aborted: "aborted",
114
142
  InvalidResponse: "invalid-response"
115
143
  };
116
- var managementErrorSchema = z2.looseObject({
117
- error: z2.string(),
118
- code: z2.string().optional()
144
+ var managementErrorSchema = z3.looseObject({
145
+ error: z3.string(),
146
+ code: z3.string().optional()
119
147
  });
120
148
  var uncertainStatuses = /* @__PURE__ */ new Set([500, 502, 504]);
121
149
  function uncertainOutcome(init) {
@@ -167,7 +195,7 @@ var ManagementError = class extends RequestError {
167
195
  var DEFAULT_MANAGEMENT_TIMEOUT = MANAGEMENT_TIMEOUT;
168
196
 
169
197
  // src/server/transport.ts
170
- import * as z3 from "zod";
198
+ import * as z4 from "zod";
171
199
  function failureCause(error) {
172
200
  if (typeof error !== "object" || error === null || !("cause" in error)) {
173
201
  return {};
@@ -463,7 +491,7 @@ function managementTransport(options) {
463
491
  replaySafe
464
492
  }) => exchange(
465
493
  path,
466
- z3.unknown(),
494
+ z4.unknown(),
467
495
  body,
468
496
  method,
469
497
  void 0,
@@ -473,8 +501,8 @@ function managementTransport(options) {
473
501
  }
474
502
 
475
503
  // src/sequence-cursor.ts
476
- import * as z4 from "zod";
477
- var sequenceCursorSchema = z4.string().regex(/^[1-9][0-9]{0,15}$/, "Invalid cursor").transform(Number).pipe(z4.number().int().positive().safe());
504
+ import * as z5 from "zod";
505
+ var sequenceCursorSchema = z5.string().regex(/^[1-9][0-9]{0,15}$/, "Invalid cursor").transform(Number).pipe(z5.number().int().positive().safe());
478
506
 
479
507
  // src/referral-reward-kinds.ts
480
508
  var REFERRAL_INTEGRATION_REWARD_ERROR = "Referral programs can grant points and tiered rewards; Discord roles need a quest";
@@ -496,6 +524,8 @@ function containsReferralIntegrationReward(value) {
496
524
 
497
525
  export {
498
526
  questConfiguration,
527
+ credentialSecretSchema,
528
+ credentialSecretInputSchema,
499
529
  identityIntegrationInputSchema,
500
530
  identityIntegrationSchema,
501
531
  identityIntegrationSecretSchema,
@@ -1,6 +1,6 @@
1
1
  // package.json
2
2
  var name = "@domino-sdk/relay";
3
- var version = "1.31.0";
3
+ var version = "1.33.0";
4
4
 
5
5
  // src/client-identity.ts
6
6
  function clientIdentity() {
@@ -1,6 +1,6 @@
1
- import { b0 as referralAcceptSchema, g as LeaderboardQuery, b as CampaignEnrollmentInput, d as CampaignWithdrawalInput, m as PointHistoryQuery, k as PointEntryKind, a7 as engagementPageQuerySchema } from './groups-sgKusEzF.js';
1
+ import { b0 as referralAcceptSchema, g as LeaderboardQuery, b as CampaignEnrollmentInput, d as CampaignWithdrawalInput, m as PointHistoryQuery, k as PointEntryKind, a7 as engagementPageQuerySchema } from './groups-C06mpYOs.js';
2
2
  import { j as QuestView, k as ResponseSchema, a as PageQuery, c as QuestEnrollmentInput, Q as QuestClaimInput, g as QuestOutcomeQuery, a0 as questExperienceSchema, t as RewardDeliveryQuery, l as RewardDeliveryAction, H as contentQualificationQuerySchema } from './pages-C1tNuRoB.js';
3
- import { M as MissingPrerequisite, V as ValueEvidence } from './submission-input-Dr0v6J9N.js';
3
+ import { M as MissingPrerequisite, V as ValueEvidence } from './submission-input-DUmt6Wyx.js';
4
4
  import { a as RequestError, b as RequestErrorDetails, c as RequestErrorKind, e as createRelayAction, O as OptionalActionId } from './action-DBzILFx9.js';
5
5
  import { f as QuizEvidence, A as Attempt, M as MemberProgress, a as AttemptStatus, h as TrackerSkipCode, co as submitSchema, bj as contentPerformanceQuerySchema } from './schema-DquhoBae.js';
6
6
  import { b as ParticipantSession, d as exchangeSchema, R as RelayEvent, P as ParticipantActivity } from './participant-activity-BPZiW7m7.js';
@@ -4406,6 +4406,7 @@ declare function relayClient(options: RelayClientOptions): {
4406
4406
  at: number;
4407
4407
  quest: string | null;
4408
4408
  reverses: string | null;
4409
+ imported?: boolean | undefined;
4409
4410
  }[];
4410
4411
  nextCursor: string | null;
4411
4412
  }>;
@@ -104,6 +104,7 @@ declare const pointEntrySchema: z.ZodObject<{
104
104
  at: z.ZodNumber;
105
105
  quest: z.ZodNullable<z.ZodString>;
106
106
  reverses: z.ZodNullable<z.ZodString>;
107
+ imported: z.ZodOptional<z.ZodBoolean>;
107
108
  }, z.core.$strip>;
108
109
  /** `relay.me.pointHistory()`: one ledger, by key or ID. */
109
110
  declare const pointHistoryQuerySchema: z.ZodObject<{
@@ -122,6 +123,7 @@ declare const pointHistoryPageSchema: z.ZodObject<{
122
123
  at: z.ZodNumber;
123
124
  quest: z.ZodNullable<z.ZodString>;
124
125
  reverses: z.ZodNullable<z.ZodString>;
126
+ imported: z.ZodOptional<z.ZodBoolean>;
125
127
  }, z.core.$strip>>;
126
128
  nextCursor: z.ZodNullable<z.ZodString>;
127
129
  }, z.core.$strip>;
@@ -1673,6 +1675,7 @@ declare const pointsEntrySchema: z.ZodObject<{
1673
1675
  original: z.ZodNullable<z.ZodString>;
1674
1676
  reason: z.ZodString;
1675
1677
  actor: z.ZodNullable<z.ZodString>;
1678
+ import: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1676
1679
  }, z.core.$strip>;
1677
1680
  /**
1678
1681
  * One page of a member's entries in one point ledger, as operators read them, the most recently
@@ -1697,6 +1700,7 @@ declare const managedPointHistoryPageSchema: z.ZodObject<{
1697
1700
  original: z.ZodNullable<z.ZodString>;
1698
1701
  reason: z.ZodString;
1699
1702
  actor: z.ZodNullable<z.ZodString>;
1703
+ import: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1700
1704
  }, z.core.$strip>>;
1701
1705
  nextCursor: z.ZodNullable<z.ZodString>;
1702
1706
  next: z.ZodNullable<z.ZodNumber>;
@@ -1722,6 +1726,7 @@ declare const pointsResultSchema: z.ZodObject<{
1722
1726
  original: z.ZodNullable<z.ZodString>;
1723
1727
  reason: z.ZodString;
1724
1728
  actor: z.ZodNullable<z.ZodString>;
1729
+ import: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1725
1730
  }, z.core.$strip>;
1726
1731
  total: z.ZodNumber;
1727
1732
  }, z.core.$strip>;
package/dist/index.d.ts CHANGED
@@ -1,14 +1,14 @@
1
- export { B as Badge, M as ManagedBadge, a as MemberBadge, b as MemberBadges, O as Offer, c as OfferDefinition, d as OfferPrice, R as RedeemOfferInput, e as Redemption } from './offers-D14uyLQQ.js';
1
+ export { B as Badge, M as ManagedBadge, a as MemberBadge, b as MemberBadges, O as Offer, c as OfferDefinition, d as OfferPrice, R as RedeemOfferInput, e as Redemption } from './offers-BbQ9O-5J.js';
2
2
  export { R as RelayAction, a as RequestError, b as RequestErrorDetails, c as RequestErrorKind, d as RequestRecovery, e as createRelayAction, i as isRequestError } from './action-DBzILFx9.js';
3
- export { A as AuthStartInput, C as ClaimSubmission, E as EmailVerification, K as KnownRelayErrorCode, P as PhotoSubmission, a as ProgressObservation, b as ProgressObserver, Q as QuestActionResult, c as QuestController, d as QuestUpdatedError, e as QuizSubmission, R as RelayClient, f as RelayClientOptions, g as RelayError, h as RelayErrorCode, i as RelayErrorDetails, j as RelayErrorKind, k as RelayRequestOptions, l as RelayResponseOptions, S as SubmissionCallOptions, m as SubmissionDraft, n as SubmissionStatus, o as SubmissionStore, V as ValueSubmission, p as createRelayClient, q as isRelayError } from './client-CFFgPnIX.js';
3
+ export { A as AuthStartInput, C as ClaimSubmission, E as EmailVerification, K as KnownRelayErrorCode, P as PhotoSubmission, a as ProgressObservation, b as ProgressObserver, Q as QuestActionResult, c as QuestController, d as QuestUpdatedError, e as QuizSubmission, R as RelayClient, f as RelayClientOptions, g as RelayError, h as RelayErrorCode, i as RelayErrorDetails, j as RelayErrorKind, k as RelayRequestOptions, l as RelayResponseOptions, S as SubmissionCallOptions, m as SubmissionDraft, n as SubmissionStatus, o as SubmissionStore, V as ValueSubmission, p as createRelayClient, q as isRelayError } from './client-Bkc7gOmF.js';
4
4
  export { A as Attempt, a as AttemptStatus, E as Entitlement, b as EvaluatorProgress, K as KnownAttemptStatus, c as KnownTrackerSkipCode, M as MemberProgress, Q as QuestBudgetView, d as QuestPresentation, e as QuestProfile, f as QuizEvidence, R as Reward, S as SubmissionEvidence, g as SubmitInput, T as TieredRewardReference, h as TrackerSkipCode } from './schema-DquhoBae.js';
5
5
  export { f as formatUnits, p as parseUnits } from './units-CwgsPB_r.js';
6
6
  export { P as Page, a as PageQuery, Q as QuestClaimInput, b as QuestEnrollment, c as QuestEnrollmentInput, d as QuestInteraction, e as QuestOutcome, f as QuestOutcomePage, g as QuestOutcomeQuery, h as QuestOutcomeState, i as QuestRewardView, j as QuestView, R as ResponseResult, U as UnsupportedResponse, p as paginate } from './pages-C1tNuRoB.js';
7
7
  export { A as AccountConnection, a as AuthProvider, T as TelegramAccountConnection, b as TelegramSignInMethods } from './accounts-DRPENuZe.js';
8
8
  export { E as ExchangeInput, M as MemberSummary, P as ParticipantActivity, a as ParticipantPrincipal, b as ParticipantSession, R as RelayEvent, S as Session, s as sessionMember } from './participant-activity-BPZiW7m7.js';
9
- export { A as AvailabilityWindow, C as CampaignDefinition, a as CampaignEnrollment, b as CampaignEnrollmentInput, c as CampaignView, d as CampaignWithdrawalInput, K as KnownPointEntryKind, L as LeaderboardDefinition, e as LeaderboardPage, f as LeaderboardPlacement, g as LeaderboardQuery, M as MemberCampaignEnrollmentInput, h as MemberCampaignWithdrawalInput, P as PointBalance, i as PointBalances, j as PointEntry, k as PointEntryKind, l as PointHistoryPage, m as PointHistoryQuery, n as PointLedgerReference, o as ProjectGroup, p as ProjectGroupReference, R as ReferralDefinition } from './groups-sgKusEzF.js';
9
+ export { A as AvailabilityWindow, C as CampaignDefinition, a as CampaignEnrollment, b as CampaignEnrollmentInput, c as CampaignView, d as CampaignWithdrawalInput, K as KnownPointEntryKind, L as LeaderboardDefinition, e as LeaderboardPage, f as LeaderboardPlacement, g as LeaderboardQuery, M as MemberCampaignEnrollmentInput, h as MemberCampaignWithdrawalInput, P as PointBalance, i as PointBalances, j as PointEntry, k as PointEntryKind, l as PointHistoryPage, m as PointHistoryQuery, n as PointLedgerReference, o as ProjectGroup, p as ProjectGroupReference, R as ReferralDefinition } from './groups-C06mpYOs.js';
10
10
  export { A as AutomaticCatchUpPreview, a as AutomaticEvent, b as AutomaticOutcome, C as CollectionPass, c as CounterAchievement, d as CounterPolicy, e as CounterProgress } from './automatic-outcomes-CHiFP_U-.js';
11
- export { M as MissingPrerequisite, P as Prerequisite, T as TextEvidence, a as TextOptions, U as UrlEvidence, b as UrlOptions, V as ValueEvidence } from './submission-input-Dr0v6J9N.js';
11
+ export { M as MissingPrerequisite, P as Prerequisite, T as TextEvidence, a as TextOptions, U as UrlEvidence, b as UrlOptions, V as ValueEvidence } from './submission-input-DUmt6Wyx.js';
12
12
  export { A as AvatarProvider, O as OwnProfile, P as ProfileAvatar, a as ProfileCompletion, b as ProfileCompletionPage, c as ProfileCompletionQuery, d as ProfileReferral, e as ProfileSummary, f as ProfileUpdate, g as ProfileVisibility } from './profiles-BHuQdzsW.js';
13
13
  export { Q as QuizContent, S as StreakProgress } from './streaks-0YuipsUQ.js';
14
14
  export { C as CosmosChain, a as CosmosNetwork, L as LinkedWallet, W as WalletAddressInput, b as WalletChain, c as WalletMessageChallenge, d as WalletSignInNetwork, e as WalletSignature, f as WalletSigner, g as WalletUnlinkInput } from './wallet-t7uNDg9p.js';
package/dist/index.js CHANGED
@@ -5,19 +5,19 @@ import {
5
5
  import {
6
6
  QuestUpdatedError,
7
7
  createRelayClient
8
- } from "./chunk-F3JLZ7MR.js";
8
+ } from "./chunk-E5OYFYO3.js";
9
9
  import {
10
10
  createRelayAction
11
11
  } from "./chunk-IJT4EKFY.js";
12
12
  import {
13
13
  QuestOutcomeState
14
- } from "./chunk-MHPTCD5O.js";
14
+ } from "./chunk-BDWZ2BZP.js";
15
15
  import {
16
16
  PointEntryKind
17
- } from "./chunk-5QZGXYH7.js";
17
+ } from "./chunk-ON7RDKQ3.js";
18
18
  import "./chunk-BUHGXKPY.js";
19
19
  import "./chunk-V7K7XXFB.js";
20
- import "./chunk-A7SJDWBR.js";
20
+ import "./chunk-YPI5SGXB.js";
21
21
  import {
22
22
  sessionMember
23
23
  } from "./chunk-466IRAJP.js";
@@ -1,15 +1,15 @@
1
- export { I as IdentityKindClaim, M as ManagementTransportOptions, P as ParticipantRoute, R as REFERRAL_INTEGRATION_REWARD_ERROR, c as containsReferralIntegrationReward, i as identityIntegrationInputSchema, a as identityIntegrationSchema, b as identityIntegrationSecretSchema, d as identityKindClaimSchema, e as isIntegrationParticipantPath, f as isParticipantRoute, m as managementTransport, p as parseImageExtraction, g as parseImageResult, h as participantExchangeSchema, j as participantRoutePattern, k as participantRoutes, q as questConfiguration, s as sequenceCursorSchema, l as sourceDataSchema, n as sourceRoles, v as validateQuestShape } from './transport-leWfCbHS.js';
1
+ export { I as IdentityKindClaim, M as ManagementTransportOptions, P as ParticipantRoute, R as REFERRAL_INTEGRATION_REWARD_ERROR, c as containsReferralIntegrationReward, i as identityIntegrationInputSchema, a as identityIntegrationSchema, b as identityIntegrationSecretSchema, d as identityKindClaimSchema, e as isIntegrationParticipantPath, f as isParticipantRoute, m as managementTransport, p as parseImageExtraction, g as parseImageResult, h as participantExchangeSchema, j as participantRoutePattern, k as participantRoutes, q as questConfiguration, s as sequenceCursorSchema, l as sourceDataSchema, n as sourceRoles, v as validateQuestShape } from './transport-DVdbwmrB.js';
2
2
  export { E as Extracted } from './x-58jkoblN.js';
3
3
  import { c as RequestErrorKind } from './action-DBzILFx9.js';
4
4
  export { i as TrackerDataBudget, s as schemaCheckedReader, t as trackerDataBatchSteps, j as trackerDataIssue, k as trackerDataIssues, l as trackerDataPathTypes, m as trackerDataRecordSteps, w as whereSchemaIssue } from './schema-DquhoBae.js';
5
5
  import 'zod';
6
6
  import './pages-C1tNuRoB.js';
7
- import './offers-D14uyLQQ.js';
8
- import './groups-sgKusEzF.js';
7
+ import './offers-BbQ9O-5J.js';
8
+ import './groups-C06mpYOs.js';
9
9
  import './profiles-BHuQdzsW.js';
10
10
  import './automatic-outcomes-CHiFP_U-.js';
11
11
  import './attempt-captures-nMDnKGdI.js';
12
- import './deployments-DMVpPnGX.js';
12
+ import './deployments-BZuI2lWF.js';
13
13
 
14
14
  /** The management client's and the CLI's default deadline per call. */
15
15
  declare const MANAGEMENT_TIMEOUT = 30000;
package/dist/internal.js CHANGED
@@ -9,7 +9,7 @@ import {
9
9
  participantExchangeSchema,
10
10
  questConfiguration,
11
11
  sequenceCursorSchema
12
- } from "./chunk-LSJPJQW4.js";
12
+ } from "./chunk-PM3265GG.js";
13
13
  import {
14
14
  parseImageExtraction,
15
15
  parseImageResult
@@ -32,7 +32,7 @@ import {
32
32
  retryAfter,
33
33
  retrying
34
34
  } from "./chunk-V7K7XXFB.js";
35
- import "./chunk-A7SJDWBR.js";
35
+ import "./chunk-YPI5SGXB.js";
36
36
  import "./chunk-466IRAJP.js";
37
37
  import {
38
38
  schemaCheckedReader,
@@ -1,6 +1,6 @@
1
1
  import * as z from 'zod';
2
2
  import { q as ResourceHandle } from './schema-DquhoBae.js';
3
- import { r as AuthoringIdentity } from './groups-sgKusEzF.js';
3
+ import { r as AuthoringIdentity } from './groups-C06mpYOs.js';
4
4
 
5
5
  declare const badgePropertiesSchema: z.ZodObject<{
6
6
  name: z.ZodString;
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-DP4YWFMY.js";
4
4
  import {
5
5
  clientIdentity
6
- } from "./chunk-A7SJDWBR.js";
6
+ } from "./chunk-YPI5SGXB.js";
7
7
  import {
8
8
  exchangeResultSchema
9
9
  } from "./chunk-466IRAJP.js";
@@ -1,6 +1,6 @@
1
- import { B as Badge, b as MemberBadges, O as Offer, e as Redemption } from '../offers-D14uyLQQ.js';
1
+ import { B as Badge, b as MemberBadges, O as Offer, e as Redemption } from '../offers-BbQ9O-5J.js';
2
2
  import { b as ParticipantSession, R as RelayEvent, P as ParticipantActivity, M as MemberSummary } from '../participant-activity-BPZiW7m7.js';
3
- import { g as RelayError, R as RelayClient, m as SubmissionDraft } from '../client-CFFgPnIX.js';
3
+ import { g as RelayError, R as RelayClient, m as SubmissionDraft } from '../client-Bkc7gOmF.js';
4
4
  import { P as Page, A as collectionViewSchema, j as QuestView, g as QuestOutcomeQuery, e as QuestOutcome } from '../pages-C1tNuRoB.js';
5
5
  import * as react from 'react';
6
6
  import { ReactNode } from 'react';
@@ -9,12 +9,12 @@ import { z } from 'zod';
9
9
  import { E as Entitlement, a as AttemptStatus, T as TieredRewardReference } from '../schema-DquhoBae.js';
10
10
  import { a as AuthProvider, A as AccountConnection } from '../accounts-DRPENuZe.js';
11
11
  export { T as TelegramAccountConnection, b as TelegramSignInMethods } from '../accounts-DRPENuZe.js';
12
- import { c as SignInMethods, C as CosmosChains, d as SignInOption, f as SignInUnavailable, T as TelegramSignInOption, g as SignInWallet, D as DiscoveredWallet } from '../telegram-browser-zPO8yYDJ.js';
13
- export { a as EmailSignInOption, O as OAuthSignInOption, b as SignInIcon, W as WalletSignInOption, t as telegramMiniAppInitData } from '../telegram-browser-zPO8yYDJ.js';
12
+ import { c as SignInMethods, C as CosmosChains, d as SignInOption, f as SignInUnavailable, T as TelegramSignInOption, g as SignInWallet, D as DiscoveredWallet } from '../telegram-browser-DWFPGBgU.js';
13
+ export { a as EmailSignInOption, O as OAuthSignInOption, b as SignInIcon, W as WalletSignInOption, t as telegramMiniAppInitData } from '../telegram-browser-DWFPGBgU.js';
14
14
  import { f as WalletSigner, d as WalletSignInNetwork, L as LinkedWallet } from '../wallet-t7uNDg9p.js';
15
- import { f as LeaderboardPlacement, ba as referralSummarySchema, e as LeaderboardPage, i as PointBalances, j as PointEntry, n as PointLedgerReference } from '../groups-sgKusEzF.js';
15
+ import { f as LeaderboardPlacement, ba as referralSummarySchema, e as LeaderboardPage, i as PointBalances, j as PointEntry, n as PointLedgerReference } from '../groups-C06mpYOs.js';
16
16
  import { f as ProfileUpdate, e as ProfileSummary, a as ProfileCompletion, d as ProfileReferral } from '../profiles-BHuQdzsW.js';
17
- import '../submission-input-Dr0v6J9N.js';
17
+ import '../submission-input-DUmt6Wyx.js';
18
18
  import '../action-DBzILFx9.js';
19
19
 
20
20
  /**
@@ -9,16 +9,16 @@ import {
9
9
  readSignInMethods,
10
10
  signInOptionsFrom,
11
11
  telegramMiniAppInitData
12
- } from "../chunk-WULPIU3Z.js";
13
- import "../chunk-F3JLZ7MR.js";
12
+ } from "../chunk-KWNSYWVH.js";
13
+ import "../chunk-E5OYFYO3.js";
14
14
  import {
15
15
  createRelayAction
16
16
  } from "../chunk-IJT4EKFY.js";
17
- import "../chunk-MHPTCD5O.js";
18
- import "../chunk-5QZGXYH7.js";
17
+ import "../chunk-BDWZ2BZP.js";
18
+ import "../chunk-ON7RDKQ3.js";
19
19
  import "../chunk-BUHGXKPY.js";
20
20
  import "../chunk-V7K7XXFB.js";
21
- import "../chunk-A7SJDWBR.js";
21
+ import "../chunk-YPI5SGXB.js";
22
22
  import {
23
23
  sessionMember
24
24
  } from "../chunk-466IRAJP.js";