@domino-sdk/relay 1.30.1 → 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.
@@ -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-DzdzB2ZI.js';
6
- export { g as defineOffer } from './offers-DzdzB2ZI.js';
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';
package/dist/authoring.js CHANGED
@@ -20,7 +20,7 @@ import {
20
20
  leaderboardAuthoringSchema,
21
21
  pointLedgerDeclarationSchema,
22
22
  referralAuthoringSchema
23
- } from "./chunk-WPD4N3OP.js";
23
+ } from "./chunk-5QZGXYH7.js";
24
24
  import {
25
25
  telegramReactionDataSchema,
26
26
  telegramReactionsNamespace
package/dist/browser.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- import { o as SubmissionStore, f as RelayClientOptions, R as RelayClient } from './client-Ciy0g8Hx.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-DJiawHY-.js';
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-DFZThUH7.js';
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,14 +12,14 @@ import {
12
12
  solanaSigner,
13
13
  telegramMiniAppInitData,
14
14
  walletStandardSolanaSigner
15
- } from "./chunk-HSF75ZA6.js";
16
- import "./chunk-MWPAOC56.js";
15
+ } from "./chunk-WULPIU3Z.js";
16
+ import "./chunk-F3JLZ7MR.js";
17
17
  import "./chunk-IJT4EKFY.js";
18
- import "./chunk-6NWCLBXR.js";
19
- import "./chunk-WPD4N3OP.js";
18
+ import "./chunk-MHPTCD5O.js";
19
+ import "./chunk-5QZGXYH7.js";
20
20
  import "./chunk-BUHGXKPY.js";
21
21
  import "./chunk-V7K7XXFB.js";
22
- import "./chunk-FTZG6KMQ.js";
22
+ import "./chunk-A7SJDWBR.js";
23
23
  import "./chunk-466IRAJP.js";
24
24
  import "./chunk-OW22TOV7.js";
25
25
  export {
@@ -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
@@ -1,6 +1,6 @@
1
1
  // package.json
2
2
  var name = "@domino-sdk/relay";
3
- var version = "1.30.1";
3
+ var version = "1.31.0";
4
4
 
5
5
  // src/client-identity.ts
6
6
  function clientIdentity() {
@@ -24,7 +24,7 @@ import {
24
24
  questTypeVersionSchema,
25
25
  questViewSchema,
26
26
  rewardDeliveriesSchema
27
- } from "./chunk-6NWCLBXR.js";
27
+ } from "./chunk-MHPTCD5O.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-WPD4N3OP.js";
60
+ } from "./chunk-5QZGXYH7.js";
61
61
  import {
62
62
  telegramAccountConnectionSchema
63
63
  } from "./chunk-BUHGXKPY.js";
@@ -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,
@@ -15,8 +15,9 @@ import {
15
15
  questOutcomePageSchema,
16
16
  questOutcomeQuerySchema,
17
17
  questOutcomeSchema,
18
- rewardDeliveriesSchema
19
- } from "./chunk-6NWCLBXR.js";
18
+ rewardDeliveriesSchema,
19
+ rewardDeliveryQuerySchema
20
+ } from "./chunk-MHPTCD5O.js";
20
21
  import {
21
22
  AVATAR_UPLOAD_LIMIT,
22
23
  avatarUploadTypes,
@@ -45,7 +46,7 @@ import {
45
46
  referralDefinitionSchema,
46
47
  referralHistorySchema,
47
48
  referralSummarySchema
48
- } from "./chunk-WPD4N3OP.js";
49
+ } from "./chunk-5QZGXYH7.js";
49
50
  import {
50
51
  telegramAccountConnectionSchema,
51
52
  telegramMiniAppSignInSchema,
@@ -60,7 +61,7 @@ import {
60
61
  } from "./chunk-V7K7XXFB.js";
61
62
  import {
62
63
  clientIdentity
63
- } from "./chunk-FTZG6KMQ.js";
64
+ } from "./chunk-A7SJDWBR.js";
64
65
  import {
65
66
  exchangeResultSchema,
66
67
  exchangeSchema,
@@ -2217,9 +2218,21 @@ function relayClient(options) {
2217
2218
  progress: (requestOptions) => request("/v1/me/progress", memberProgressSchema, {
2218
2219
  options: requestOptions
2219
2220
  }),
2220
- rewardDeliveries: (requestOptions) => request("/v1/reward-deliveries", rewardDeliveriesSchema, {
2221
- options: requestOptions
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.
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-V7K7XXFB.js";
8
8
  import {
9
9
  clientIdentity
10
- } from "./chunk-FTZG6KMQ.js";
10
+ } from "./chunk-A7SJDWBR.js";
11
11
  import {
12
12
  authScopeSchema
13
13
  } from "./chunk-466IRAJP.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  badgeSchema,
3
3
  pointLedgerReferenceSchema
4
- } from "./chunk-WPD4N3OP.js";
4
+ } from "./chunk-5QZGXYH7.js";
5
5
  import {
6
6
  authoringIdentityShape,
7
7
  entitlementSchema,
@@ -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
  };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createRelayClient
3
- } from "./chunk-MWPAOC56.js";
3
+ } from "./chunk-F3JLZ7MR.js";
4
4
  import {
5
5
  RelayErrorCode,
6
6
  asRelayError,
@@ -1,5 +1,5 @@
1
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';
2
- import { j as QuestView, k as ResponseSchema, a as PageQuery, c as QuestEnrollmentInput, Q as QuestClaimInput, g as QuestOutcomeQuery, $ as questExperienceSchema, l as RewardDeliveryAction, G as contentQualificationQuerySchema } from './pages-DFZThUH7.js';
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
3
  import { M as MissingPrerequisite, V as ValueEvidence } from './submission-input-Dr0v6J9N.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';
@@ -4327,7 +4327,11 @@ declare function relayClient(options: RelayClientOptions): {
4327
4327
  revision: number;
4328
4328
  })[];
4329
4329
  }>;
4330
- rewardDeliveries: (requestOptions?: RelayRequestOptions) => Promise<{
4330
+ /**
4331
+ * The member's reward deliveries, newest first, one page at a time. Pass a page's
4332
+ * `nextCursor` back as `cursor` for older ones; `limit` is 1 to 500, 500 by default.
4333
+ */
4334
+ rewardDeliveries: (requestOptions?: RelayRequestOptions & RewardDeliveryQuery) => Promise<{
4331
4335
  deliveries: ({
4332
4336
  [x: string]: z.core.util.JSONType | undefined;
4333
4337
  id: string;
@@ -4376,6 +4380,7 @@ declare function relayClient(options: RelayClientOptions): {
4376
4380
  reason: string | null;
4377
4381
  } | null | undefined;
4378
4382
  })[];
4383
+ nextCursor: string | null;
4379
4384
  }>;
4380
4385
  /**
4381
4386
  * `{ items }`: the member's balance in each of the project's point ledgers, in the project's