@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.
- package/dist/authoring.d.ts +2 -2
- package/dist/authoring.js +1 -1
- package/dist/browser.d.ts +3 -3
- package/dist/browser.js +5 -5
- package/dist/{chunk-WPD4N3OP.js → chunk-5QZGXYH7.js} +11 -0
- package/dist/{chunk-FTZG6KMQ.js → chunk-A7SJDWBR.js} +1 -1
- package/dist/{chunk-FU2KGJMQ.js → chunk-BEGFBWEG.js} +13 -2
- package/dist/{chunk-MWPAOC56.js → chunk-F3JLZ7MR.js} +20 -7
- package/dist/{chunk-4EX7JIGW.js → chunk-LSJPJQW4.js} +1 -1
- package/dist/{chunk-6NWCLBXR.js → chunk-MHPTCD5O.js} +9 -3
- package/dist/{chunk-HSF75ZA6.js → chunk-WULPIU3Z.js} +1 -1
- package/dist/{client-Ciy0g8Hx.d.ts → client-CFFgPnIX.d.ts} +7 -2
- package/dist/deployments-DMVpPnGX.d.ts +22166 -0
- package/dist/index.d.ts +3 -3
- package/dist/index.js +4 -4
- package/dist/internal.d.ts +4 -4
- package/dist/internal.js +2 -2
- package/dist/{offers-DzdzB2ZI.d.ts → offers-D14uyLQQ.d.ts} +90 -1
- package/dist/{pages-DFZThUH7.d.ts → pages-C1tNuRoB.d.ts} +15 -1
- package/dist/portal-proxy.js +1 -1
- package/dist/react/index.d.ts +5 -5
- package/dist/react/index.js +5 -5
- package/dist/schema.d.ts +7 -4
- package/dist/schema.js +13 -3
- package/dist/server/index.d.ts +4 -4
- package/dist/server/index.js +68 -10
- package/dist/{telegram-browser-DJiawHY-.d.ts → telegram-browser-zPO8yYDJ.d.ts} +1 -1
- package/dist/{transport-CEAQv15w.d.ts → transport-leWfCbHS.d.ts} +75883 -35307
- package/package.json +1 -1
- package/dist/deployments-Dx81-x1v.d.ts +0 -10020
package/dist/server/index.js
CHANGED
|
@@ -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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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
|
-
|
|
3271
|
-
|
|
3272
|
-
|
|
3273
|
-
|
|
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-
|
|
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
|
|