@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.
@@ -16,6 +16,8 @@ import {
16
16
  automaticSchedulingRetrySchema,
17
17
  automaticSchedulingSchema,
18
18
  deploymentActionSchema,
19
+ deploymentHistoryPageSchema,
20
+ deploymentHistoryQuerySchema,
19
21
  deploymentPreviewSchema,
20
22
  deploymentRecordSchema,
21
23
  deploymentRejectionSchema,
@@ -25,7 +27,7 @@ import {
25
27
  publishDeploymentSchema,
26
28
  rejectDeploymentSchema,
27
29
  submitDeploymentSchema
28
- } from "../chunk-FU2KGJMQ.js";
30
+ } from "../chunk-BEGFBWEG.js";
29
31
  import "../chunk-4OC7REYX.js";
30
32
  import {
31
33
  DEFAULT_MANAGEMENT_TIMEOUT,
@@ -44,7 +46,7 @@ import {
44
46
  participantExchangeSchema,
45
47
  questConfiguration,
46
48
  sequenceCursorSchema
47
- } from "../chunk-4EX7JIGW.js";
49
+ } from "../chunk-LSJPJQW4.js";
48
50
  import {
49
51
  parseImageExtraction,
50
52
  parseImageResult
@@ -83,9 +85,10 @@ import {
83
85
  questEnrollmentSchema,
84
86
  questPublicationPreviewSchema,
85
87
  rewardDeliveriesSchema,
88
+ rewardDeliveryQuerySchema,
86
89
  rewardDeliverySchema,
87
90
  saveQuestDraftSchema
88
- } from "../chunk-6NWCLBXR.js";
91
+ } from "../chunk-MHPTCD5O.js";
89
92
  import {
90
93
  badgeMutationResultSchema,
91
94
  badgeMutationSchema,
@@ -130,6 +133,8 @@ import {
130
133
  publishedLeaderboardSchema,
131
134
  publishedReferralSchema,
132
135
  redemptionCancellationSchema,
136
+ redemptionPageSchema,
137
+ redemptionQuerySchema,
133
138
  redemptionSchema,
134
139
  referralControlSchema,
135
140
  referralHistorySchema,
@@ -137,14 +142,14 @@ import {
137
142
  referralQualificationSchema,
138
143
  referralRewardResolutionSchema,
139
144
  referralSuspensionSchema
140
- } from "../chunk-WPD4N3OP.js";
145
+ } from "../chunk-5QZGXYH7.js";
141
146
  import {
142
147
  telegramChatConnectionSchema,
143
148
  telegramChatIdSchema,
144
149
  telegramChatsSchema
145
150
  } from "../chunk-BUHGXKPY.js";
146
151
  import "../chunk-V7K7XXFB.js";
147
- import "../chunk-FTZG6KMQ.js";
152
+ import "../chunk-A7SJDWBR.js";
148
153
  import "../chunk-466IRAJP.js";
149
154
  import {
150
155
  CompletionSourceKind,
@@ -1417,6 +1422,11 @@ var operatorUserSchema = z14.object({
1417
1422
  avatar: z14.string().nullable()
1418
1423
  });
1419
1424
  var projectSchema = z14.object({
1425
+ /**
1426
+ * Names the project's hosted addresses. The server gives a new project, and accepts in a
1427
+ * slug change, only slugs of at least 3 characters that Domino does not reserve. This schema
1428
+ * checks only the format, so it parses every slug that exists.
1429
+ */
1420
1430
  slug: z14.string().min(1).max(35).regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/),
1421
1431
  createdBy: z14.string().nullable().optional(),
1422
1432
  creator: operatorUserSchema.nullable().optional(),
@@ -2654,7 +2664,22 @@ function managementClient(options) {
2654
2664
  )
2655
2665
  },
2656
2666
  deployments: {
2667
+ /**
2668
+ * At most the 100 newest deployments, with both published heads added.
2669
+ *
2670
+ * @deprecated Use `history`, which pages by `cursor` and `nextCursor`. Removed in 2.0.0.
2671
+ */
2657
2672
  list: (call) => get("/deployments", z14.array(deploymentRecordSchema), call),
2673
+ /**
2674
+ * The project environment's deployments, newest first, one page at a time, with the two
2675
+ * newest published deployments beside every page. Pass a page's `nextCursor` back as
2676
+ * `cursor` for the next page.
2677
+ */
2678
+ history: (query = {}, call) => get(
2679
+ `/deployments/history${queryString(deploymentHistoryQuerySchema.parse(query))}`,
2680
+ deploymentHistoryPageSchema,
2681
+ call
2682
+ ),
2658
2683
  get: (deployment, call) => get(
2659
2684
  `/deployments/${identifier.parse(deployment)}`,
2660
2685
  deploymentRecordSchema,
@@ -2937,6 +2962,15 @@ function managementClient(options) {
2937
2962
  )
2938
2963
  },
2939
2964
  redemptions: {
2965
+ /**
2966
+ * Redemptions, newest first, one page at a time: everyone's, or one `member`'s. Pass a
2967
+ * page's `nextCursor` back as `cursor` for the next page.
2968
+ */
2969
+ history: (query = {}, call) => get(
2970
+ `/redemptions/history${queryString(redemptionQuerySchema.parse(query))}`,
2971
+ redemptionPageSchema,
2972
+ call
2973
+ ),
2940
2974
  pause: (input, call) => operationVerb("redemptions", true, input, call),
2941
2975
  resume: (input, call) => operationVerb("redemptions", false, input, call)
2942
2976
  },
@@ -3014,6 +3048,11 @@ function managementClient(options) {
3014
3048
  call
3015
3049
  ),
3016
3050
  list: (call) => get("/offers", z14.array(offerSchema), call),
3051
+ /**
3052
+ * Every redemption, or one member's, newest first, in one unbounded response.
3053
+ *
3054
+ * @deprecated Use `redemptions.history`, which pages by `cursor` and `nextCursor`. Removed in 2.0.0.
3055
+ */
3017
3056
  redemptions: (input = {}, call) => get(
3018
3057
  `/redemptions${queryString({ member: input.member })}`,
3019
3058
  z14.array(redemptionSchema),
@@ -3267,11 +3306,22 @@ function managementClient(options) {
3267
3306
  call
3268
3307
  )
3269
3308
  },
3270
- rewardDeliveries: (member, call) => get(
3271
- `/reward-deliveries${queryString({ member })}`,
3272
- rewardDeliveriesSchema,
3273
- call
3274
- ),
3309
+ /**
3310
+ * Reward deliveries, newest first, one page at a time: everyone's, or one member's. Pass a
3311
+ * member ID, or `{ member, cursor, limit }` with a page's `nextCursor` as `cursor` for older
3312
+ * deliveries.
3313
+ */
3314
+ rewardDeliveries: (query, call) => {
3315
+ const { member, ...page } = typeof query === "object" ? query : { member: query };
3316
+ return get(
3317
+ `/reward-deliveries${queryString({
3318
+ member,
3319
+ ...rewardDeliveryQuerySchema.parse(page)
3320
+ })}`,
3321
+ rewardDeliveriesSchema,
3322
+ call
3323
+ );
3324
+ },
3275
3325
  /**
3276
3326
  * Relinquish automatic removal for an external assignment; requires `review` and an audited reason.
3277
3327
  *
@@ -4024,6 +4074,9 @@ var managementResponseSchemas = lazyResponseReaders({
4024
4074
  get counterModerationResultSchema() {
4025
4075
  return knownResponse(counterModerationResultSchema);
4026
4076
  },
4077
+ get deploymentHistoryPageSchema() {
4078
+ return knownResponse(deploymentHistoryPageSchema);
4079
+ },
4027
4080
  get deploymentPreviewSchema() {
4028
4081
  return knownResponse(deploymentPreviewSchema);
4029
4082
  },
@@ -4225,6 +4278,9 @@ var managementResponseSchemas = lazyResponseReaders({
4225
4278
  get redemptionSchema() {
4226
4279
  return knownResponse(redemptionSchema);
4227
4280
  },
4281
+ get redemptionPageSchema() {
4282
+ return knownResponse(redemptionPageSchema);
4283
+ },
4228
4284
  get referralHistorySchema() {
4229
4285
  return knownResponse(referralHistorySchema);
4230
4286
  },
@@ -4361,6 +4417,7 @@ var managementResponses = {
4361
4417
  ),
4362
4418
  counterHistorySchema: responseSchema(counterHistorySchema),
4363
4419
  counterModerationResultSchema: responseSchema(counterModerationResultSchema),
4420
+ deploymentHistoryPageSchema: responseSchema(deploymentHistoryPageSchema),
4364
4421
  deploymentPreviewSchema: responseSchema(deploymentPreviewSchema),
4365
4422
  deploymentRecordSchema: responseSchema(deploymentRecordSchema),
4366
4423
  deploymentResultSchema: responseSchema(deploymentResultSchema),
@@ -4434,6 +4491,7 @@ var managementResponses = {
4434
4491
  questPublicationPreviewSchema: responseSchema(questPublicationPreviewSchema),
4435
4492
  readinessSchema: responseSchema(readinessSchema),
4436
4493
  redemptionSchema: responseSchema(redemptionSchema),
4494
+ redemptionPageSchema: responseSchema(redemptionPageSchema),
4437
4495
  referralHistorySchema: responseSchema(referralHistorySchema),
4438
4496
  referralManagementSchema: responseSchema(referralManagementSchema),
4439
4497
  resourceLifecycleResultSchema: responseSchema(resourceLifecycleResultSchema),
@@ -1,5 +1,5 @@
1
1
  import { a as AuthProvider, b as TelegramSignInMethods } from './accounts-DRPENuZe.js';
2
- import { p as createRelayClient, k as RelayRequestOptions, g as RelayError } from './client-Ciy0g8Hx.js';
2
+ import { p as createRelayClient, k as RelayRequestOptions, g as RelayError } from './client-CFFgPnIX.js';
3
3
  import { b as ParticipantSession } from './participant-activity-BPZiW7m7.js';
4
4
  import { C as CosmosChain, a as CosmosNetwork, f as WalletSigner, d as WalletSignInNetwork } from './wallet-t7uNDg9p.js';
5
5