@domino-sdk/relay 1.9.0 → 1.10.1
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/{activity-CCe1e_7a.d.ts → activity-C0O3g7VJ.d.ts} +115 -115
- package/dist/authoring.d.ts +49 -49
- package/dist/authoring.js +3 -3
- package/dist/{automatic-outcomes-Dyk0VTUs.d.ts → automatic-outcomes-kPIDv6X_.d.ts} +1 -1
- package/dist/avatar.d.ts +2 -2
- package/dist/browser.d.ts +8 -8
- package/dist/browser.js +8 -7
- package/dist/{capability-error-Bv996M-h.d.ts → capability-error-ty3SqD_b.d.ts} +1 -1
- package/dist/chunk-2M3HLQFP.js +13 -0
- package/dist/{chunk-KGJSKGKI.js → chunk-5WK4EB5I.js} +1120 -910
- package/dist/{chunk-5ECM6AWV.js → chunk-A2KXEGGD.js} +3 -3
- package/dist/{chunk-L3QFIRGO.js → chunk-FH7ZFHDB.js} +2 -2
- package/dist/{chunk-FWSSMSIA.js → chunk-MDN5EJY2.js} +37 -8
- package/dist/{chunk-2V74CHDL.js → chunk-MJMFGTVV.js} +52 -37
- package/dist/{chunk-2N464DDE.js → chunk-NM2ZAWTF.js} +48 -37
- package/dist/{chunk-ETPL6AAJ.js → chunk-PFKV2M4B.js} +1 -1
- package/dist/{chunk-6ON4RMEN.js → chunk-PRLGLZM4.js} +1 -1
- package/dist/{chunk-JW4G3SY5.js → chunk-S4IHOJEP.js} +60 -47
- package/dist/{chunk-23QJ7WH4.js → chunk-WZJQ7XAT.js} +1 -1
- package/dist/{chunk-734LYHWP.js → chunk-XMZNIFXH.js} +232 -7
- package/dist/{client-CbASImpi.d.ts → client-Yq11HA_f.d.ts} +26 -11
- package/dist/{groups-Dvmd4CYk.d.ts → groups-BK8ts2yK.d.ts} +94 -6
- package/dist/{images-Dekv3DYF.d.ts → images-aw6W7vFZ.d.ts} +2 -2
- package/dist/index.d.ts +9 -9
- package/dist/index.js +7 -6
- package/dist/internal.d.ts +3 -3
- package/dist/internal.js +5 -5
- package/dist/{offers-BEGVSOTD.d.ts → offers-C2FANzrG.d.ts} +3 -3
- package/dist/{pages-HmS6eedC.d.ts → pages-D00JDZB-.d.ts} +33 -2
- package/dist/portal-proxy.js +8 -2
- package/dist/react/index.d.ts +14 -17
- package/dist/react/index.js +8 -7
- package/dist/{referral-reward-kinds-Flbb1D2q.d.ts → referral-reward-kinds-M3f0PdiR.d.ts} +2 -2
- package/dist/{schema-BCuiO7eD.d.ts → schema-DEM8y8Fm.d.ts} +1 -1
- package/dist/schema.d.ts +11239 -13
- package/dist/schema.js +38 -6
- package/dist/server/index.d.ts +43117 -22
- package/dist/server/index.js +303 -14
- package/dist/{sign-in-options-z3wsfizk.d.ts → sign-in-options-Coim0G1u.d.ts} +3 -3
- package/dist/{submission-input-Bs14jIsu.d.ts → submission-input-BbBJTVlT.d.ts} +3 -3
- package/dist/util.d-w9f9t3ua.d.ts +5 -0
- package/dist/{wallet-YssWxGg8.d.ts → wallet-CDyo-U4n.d.ts} +1 -1
- package/package.json +1 -1
- package/dist/{profiles-D2aFcOxu.d.ts → profiles-BHMVj0kM.d.ts} +5 -5
package/dist/server/index.js
CHANGED
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
publishDeploymentSchema,
|
|
22
22
|
rejectDeploymentSchema,
|
|
23
23
|
submitDeploymentSchema
|
|
24
|
-
} from "../chunk-
|
|
24
|
+
} from "../chunk-XMZNIFXH.js";
|
|
25
25
|
import "../chunk-MC6V6VMG.js";
|
|
26
26
|
import {
|
|
27
27
|
REFERRAL_INTEGRATION_REWARD_ERROR,
|
|
@@ -35,15 +35,15 @@ import {
|
|
|
35
35
|
participantExchangeSchema,
|
|
36
36
|
questConfiguration,
|
|
37
37
|
sequenceCursorSchema
|
|
38
|
-
} from "../chunk-
|
|
38
|
+
} from "../chunk-A2KXEGGD.js";
|
|
39
39
|
import {
|
|
40
40
|
imageAssetArtifactSchema
|
|
41
|
-
} from "../chunk-
|
|
41
|
+
} from "../chunk-S4IHOJEP.js";
|
|
42
42
|
import {
|
|
43
43
|
sourceDataSchema,
|
|
44
44
|
sourceRoles,
|
|
45
45
|
validateQuestShape
|
|
46
|
-
} from "../chunk-
|
|
46
|
+
} from "../chunk-WZJQ7XAT.js";
|
|
47
47
|
import {
|
|
48
48
|
isIntegrationParticipantPath,
|
|
49
49
|
isParticipantRoute,
|
|
@@ -52,7 +52,7 @@ import {
|
|
|
52
52
|
} from "../chunk-AXRMT33W.js";
|
|
53
53
|
import {
|
|
54
54
|
withActionId
|
|
55
|
-
} from "../chunk-
|
|
55
|
+
} from "../chunk-PFKV2M4B.js";
|
|
56
56
|
import {
|
|
57
57
|
allocateQuestSchema,
|
|
58
58
|
allocatedQuestSchema,
|
|
@@ -70,7 +70,7 @@ import {
|
|
|
70
70
|
rewardDeliveriesSchema,
|
|
71
71
|
rewardDeliverySchema,
|
|
72
72
|
saveQuestDraftSchema
|
|
73
|
-
} from "../chunk-
|
|
73
|
+
} from "../chunk-NM2ZAWTF.js";
|
|
74
74
|
import {
|
|
75
75
|
cosmosNetworkSchema,
|
|
76
76
|
createPointLedgerSchema,
|
|
@@ -121,7 +121,7 @@ import {
|
|
|
121
121
|
walletBalanceSchema,
|
|
122
122
|
walletSignInNetworksSchema,
|
|
123
123
|
walletUnlinkInputSchema
|
|
124
|
-
} from "../chunk-
|
|
124
|
+
} from "../chunk-MJMFGTVV.js";
|
|
125
125
|
import {
|
|
126
126
|
MANAGEMENT_TIMEOUT,
|
|
127
127
|
lifetime,
|
|
@@ -133,7 +133,10 @@ import {
|
|
|
133
133
|
RequestError,
|
|
134
134
|
isRequestError
|
|
135
135
|
} from "../chunk-NPGENI7K.js";
|
|
136
|
-
import
|
|
136
|
+
import {
|
|
137
|
+
clientIdentity
|
|
138
|
+
} from "../chunk-2M3HLQFP.js";
|
|
139
|
+
import "../chunk-PRLGLZM4.js";
|
|
137
140
|
import {
|
|
138
141
|
CompletionSourceKind,
|
|
139
142
|
addGroupMemberSchema,
|
|
@@ -163,6 +166,7 @@ import {
|
|
|
163
166
|
groupPageQuerySchema,
|
|
164
167
|
groupPageSchema,
|
|
165
168
|
identifier,
|
|
169
|
+
knownResponse,
|
|
166
170
|
managedGroupSchema,
|
|
167
171
|
memberCampaignEnrollmentInputSchema,
|
|
168
172
|
memberCampaignWithdrawalInputSchema,
|
|
@@ -178,6 +182,7 @@ import {
|
|
|
178
182
|
publishedReleaseSchema,
|
|
179
183
|
questSettingsInputSchema,
|
|
180
184
|
removeGroupMemberSchema,
|
|
185
|
+
responseSchema,
|
|
181
186
|
snapshotSchema,
|
|
182
187
|
staffDecisionSchema,
|
|
183
188
|
stockItemSchema,
|
|
@@ -203,7 +208,7 @@ import {
|
|
|
203
208
|
trackerTriggerOutcomeQuerySchema,
|
|
204
209
|
updateGroupSchema,
|
|
205
210
|
whereSchemaIssue
|
|
206
|
-
} from "../chunk-
|
|
211
|
+
} from "../chunk-5WK4EB5I.js";
|
|
207
212
|
|
|
208
213
|
// src/server/test-members.ts
|
|
209
214
|
import { z } from "zod";
|
|
@@ -1667,6 +1672,7 @@ function managementClient(options) {
|
|
|
1667
1672
|
throw transportFailure(life.reason(), context, life, false);
|
|
1668
1673
|
}
|
|
1669
1674
|
const headers = new Headers(fetchInit.headers);
|
|
1675
|
+
headers.set("X-Domino-Client", clientIdentity());
|
|
1670
1676
|
const token = await credential(context, life);
|
|
1671
1677
|
if (token) {
|
|
1672
1678
|
headers.set("Authorization", `Bearer ${token}`);
|
|
@@ -1742,7 +1748,7 @@ function managementClient(options) {
|
|
|
1742
1748
|
life.end();
|
|
1743
1749
|
}
|
|
1744
1750
|
}
|
|
1745
|
-
async function exchange(path, schema, input, method, call, replaySafe) {
|
|
1751
|
+
async function exchange(path, schema, input, method, call, replaySafe, tolerant = false) {
|
|
1746
1752
|
const actionId = actionIdOf(input);
|
|
1747
1753
|
const context = {
|
|
1748
1754
|
method,
|
|
@@ -1752,8 +1758,12 @@ function managementClient(options) {
|
|
|
1752
1758
|
};
|
|
1753
1759
|
const fetchInit = {
|
|
1754
1760
|
method,
|
|
1761
|
+
headers: tolerant ? { "X-Domino-Response": "tolerant-v1" } : void 0,
|
|
1755
1762
|
...input === void 0 ? {} : {
|
|
1756
|
-
headers: {
|
|
1763
|
+
headers: {
|
|
1764
|
+
"Content-Type": "application/json",
|
|
1765
|
+
...tolerant ? { "X-Domino-Response": "tolerant-v1" } : {}
|
|
1766
|
+
},
|
|
1757
1767
|
body: JSON.stringify(input)
|
|
1758
1768
|
}
|
|
1759
1769
|
};
|
|
@@ -1788,7 +1798,9 @@ function managementClient(options) {
|
|
|
1788
1798
|
response.headers
|
|
1789
1799
|
);
|
|
1790
1800
|
}
|
|
1791
|
-
const parsed = schema.safeParse(
|
|
1801
|
+
const parsed = knownResponse(schema).safeParse(
|
|
1802
|
+
tolerant ? { status: response.status, operationId: actionId, result: body } : body
|
|
1803
|
+
);
|
|
1792
1804
|
if (!parsed.success) {
|
|
1793
1805
|
throw new ManagementError({
|
|
1794
1806
|
...context,
|
|
@@ -1811,10 +1823,10 @@ function managementClient(options) {
|
|
|
1811
1823
|
}
|
|
1812
1824
|
const get = (path, schema, call) => exchange(path, schema, void 0, "GET", call, true);
|
|
1813
1825
|
const post = (path, schema, input, call) => exchange(path, schema, input, "POST", call, actionIdOf(input) !== void 0);
|
|
1814
|
-
async function create(path,
|
|
1826
|
+
async function create(path, responseSchema2, inputSchema, input, call) {
|
|
1815
1827
|
return post(
|
|
1816
1828
|
path,
|
|
1817
|
-
|
|
1829
|
+
responseSchema2,
|
|
1818
1830
|
inputSchema.parse(withActionId(input)),
|
|
1819
1831
|
call
|
|
1820
1832
|
);
|
|
@@ -1926,6 +1938,33 @@ function managementClient(options) {
|
|
|
1926
1938
|
return guarded({
|
|
1927
1939
|
raw,
|
|
1928
1940
|
request,
|
|
1941
|
+
/** A JSON call with an explicit tolerant response schema. Writes are sent once. */
|
|
1942
|
+
response: (path, schema, input, method = input === void 0 ? "GET" : "POST", call) => {
|
|
1943
|
+
const base = new URL(
|
|
1944
|
+
`${options.baseUrl}/management/v1/`,
|
|
1945
|
+
"http://response.invalid"
|
|
1946
|
+
);
|
|
1947
|
+
const target = new URL(
|
|
1948
|
+
`${options.baseUrl}/management/v1${path}`,
|
|
1949
|
+
"http://response.invalid"
|
|
1950
|
+
);
|
|
1951
|
+
if (!path.startsWith("/") || path.startsWith("//") || /[\\#]/.test(path) || /%2e|%2f|%5c/i.test(path.split("?")[0]) || target.origin !== base.origin || !target.pathname.startsWith(base.pathname)) {
|
|
1952
|
+
throw new Error("Response path must stay within /management/v1");
|
|
1953
|
+
}
|
|
1954
|
+
return exchange(
|
|
1955
|
+
path,
|
|
1956
|
+
z9.object({
|
|
1957
|
+
status: z9.number(),
|
|
1958
|
+
operationId: identifier.optional(),
|
|
1959
|
+
result: schema
|
|
1960
|
+
}),
|
|
1961
|
+
input,
|
|
1962
|
+
method.toUpperCase(),
|
|
1963
|
+
call,
|
|
1964
|
+
false,
|
|
1965
|
+
true
|
|
1966
|
+
);
|
|
1967
|
+
},
|
|
1929
1968
|
trackers: {
|
|
1930
1969
|
pause: (reference, input = {}, call) => post(
|
|
1931
1970
|
`/trackers/${identifier.parse(reference)}/pause`,
|
|
@@ -3254,6 +3293,254 @@ function managementClient(options) {
|
|
|
3254
3293
|
)
|
|
3255
3294
|
});
|
|
3256
3295
|
}
|
|
3296
|
+
var managementResponseSchemas = {
|
|
3297
|
+
accessSchema: knownResponse(accessSchema),
|
|
3298
|
+
allocatedQuestSchema: knownResponse(allocatedQuestSchema),
|
|
3299
|
+
appSecretListSchema: knownResponse(appSecretListSchema),
|
|
3300
|
+
appSecretSchema: knownResponse(appSecretSchema),
|
|
3301
|
+
appStorageKeysSchema: knownResponse(appStorageKeysSchema),
|
|
3302
|
+
appStorageListSchema: knownResponse(appStorageListSchema),
|
|
3303
|
+
appStorageRowsSchema: knownResponse(appStorageRowsSchema),
|
|
3304
|
+
appStorageTablesSchema: knownResponse(appStorageTablesSchema),
|
|
3305
|
+
appStorageValueSchema: knownResponse(appStorageValueSchema),
|
|
3306
|
+
attemptSchema: knownResponse(attemptSchema),
|
|
3307
|
+
auditPageSchema: knownResponse(auditPageSchema),
|
|
3308
|
+
automaticCatchUpPreviewSchema: knownResponse(automaticCatchUpPreviewSchema),
|
|
3309
|
+
automaticCatchUpResultSchema: knownResponse(automaticCatchUpResultSchema),
|
|
3310
|
+
automaticOutcomePageSchema: knownResponse(automaticOutcomePageSchema),
|
|
3311
|
+
automaticSchedulingPageSchema: knownResponse(automaticSchedulingPageSchema),
|
|
3312
|
+
automaticSchedulingSchema: knownResponse(automaticSchedulingSchema),
|
|
3313
|
+
campaignEnrollmentSchema: knownResponse(campaignEnrollmentSchema),
|
|
3314
|
+
catalogDeploymentPreviewSchema: knownResponse(catalogDeploymentPreviewSchema),
|
|
3315
|
+
collectionPreviewSchema: knownResponse(collectionPreviewSchema),
|
|
3316
|
+
completionRevocationSchema: knownResponse(completionRevocationSchema),
|
|
3317
|
+
contentPerformancePageSchema: knownResponse(contentPerformancePageSchema),
|
|
3318
|
+
contentQualificationPageSchema: knownResponse(contentQualificationPageSchema),
|
|
3319
|
+
counterHistorySchema: knownResponse(counterHistorySchema),
|
|
3320
|
+
counterModerationResultSchema: knownResponse(counterModerationResultSchema),
|
|
3321
|
+
deploymentPreviewSchema: knownResponse(deploymentPreviewSchema),
|
|
3322
|
+
deploymentRecordSchema: knownResponse(deploymentRecordSchema),
|
|
3323
|
+
deploymentResultSchema: knownResponse(deploymentResultSchema),
|
|
3324
|
+
engagementBoundaryPageSchema: knownResponse(engagementBoundaryPageSchema),
|
|
3325
|
+
engagementChangePreviewSchema: knownResponse(engagementChangePreviewSchema),
|
|
3326
|
+
engagementPageSchema: knownResponse(engagementPageSchema),
|
|
3327
|
+
engagementRuleSchema: knownResponse(engagementRuleSchema),
|
|
3328
|
+
engagementRuleVersionPageSchema: knownResponse(
|
|
3329
|
+
engagementRuleVersionPageSchema
|
|
3330
|
+
),
|
|
3331
|
+
engagementVersionPageSchema: knownResponse(engagementVersionPageSchema),
|
|
3332
|
+
entitlementSchema: knownResponse(entitlementSchema),
|
|
3333
|
+
grantRecordSchema: knownResponse(grantRecordSchema),
|
|
3334
|
+
groupMemberPageSchema: knownResponse(groupMemberPageSchema),
|
|
3335
|
+
groupMemberSchema: knownResponse(groupMemberSchema),
|
|
3336
|
+
groupPageSchema: knownResponse(groupPageSchema),
|
|
3337
|
+
identityIntegrationSchema: knownResponse(identityIntegrationSchema),
|
|
3338
|
+
identityIntegrationSecretSchema: knownResponse(
|
|
3339
|
+
identityIntegrationSecretSchema
|
|
3340
|
+
),
|
|
3341
|
+
identityKindClaimSchema: knownResponse(identityKindClaimSchema),
|
|
3342
|
+
issuedTokenSchema: knownResponse(issuedTokenSchema),
|
|
3343
|
+
leaderboardPageSchema: knownResponse(leaderboardPageSchema),
|
|
3344
|
+
leaderboardSettlementSchema: knownResponse(leaderboardSettlementSchema),
|
|
3345
|
+
leaderboardSettlementSummarySchema: knownResponse(
|
|
3346
|
+
leaderboardSettlementSummarySchema
|
|
3347
|
+
),
|
|
3348
|
+
managedAttemptPageSchema: knownResponse(managedAttemptPageSchema),
|
|
3349
|
+
managedAttemptSchema: knownResponse(managedAttemptSchema),
|
|
3350
|
+
managedEntitlementPageSchema: knownResponse(managedEntitlementPageSchema),
|
|
3351
|
+
managedEntitlementSchema: knownResponse(managedEntitlementSchema),
|
|
3352
|
+
managedGroupSchema: knownResponse(managedGroupSchema),
|
|
3353
|
+
managedMemberIdentitySchema: knownResponse(managedMemberIdentitySchema),
|
|
3354
|
+
managedMemberPageSchema: knownResponse(managedMemberPageSchema),
|
|
3355
|
+
managedOAuthAccountSchema: knownResponse(managedOAuthAccountSchema),
|
|
3356
|
+
managedPointHistoryPageSchema: knownResponse(managedPointHistoryPageSchema),
|
|
3357
|
+
managedPointLedgerSchema: knownResponse(managedPointLedgerSchema),
|
|
3358
|
+
managedProfileSchema: knownResponse(managedProfileSchema),
|
|
3359
|
+
managedResourceSchema: knownResponse(managedResourceSchema),
|
|
3360
|
+
managedStockItemSchema: knownResponse(managedStockItemSchema),
|
|
3361
|
+
managedWalletSchema: knownResponse(managedWalletSchema),
|
|
3362
|
+
memberDetailSchema: knownResponse(memberDetailSchema),
|
|
3363
|
+
offerSchema: knownResponse(offerSchema),
|
|
3364
|
+
operationSchema: knownResponse(operationSchema),
|
|
3365
|
+
pageSchema: knownResponse(pageSchema),
|
|
3366
|
+
participantSignInSchema: knownResponse(participantSignInSchema),
|
|
3367
|
+
personSchema: knownResponse(personSchema),
|
|
3368
|
+
pickupAvailabilitySchema: knownResponse(pickupAvailabilitySchema),
|
|
3369
|
+
pickupCatalogSchema: knownResponse(pickupCatalogSchema),
|
|
3370
|
+
pointLedgerSchema: knownResponse(pointLedgerSchema),
|
|
3371
|
+
pointsAccountSchema: knownResponse(pointsAccountSchema),
|
|
3372
|
+
pointsResultSchema: knownResponse(pointsResultSchema),
|
|
3373
|
+
profileSettingsSchema: knownResponse(profileSettingsSchema),
|
|
3374
|
+
projectCalendarSchema: knownResponse(projectCalendarSchema),
|
|
3375
|
+
projectDeletionSchema: knownResponse(projectDeletionSchema),
|
|
3376
|
+
projectMetricsSchema: knownResponse(projectMetricsSchema),
|
|
3377
|
+
projectSchema: knownResponse(projectSchema),
|
|
3378
|
+
projectTransferSchema: knownResponse(projectTransferSchema),
|
|
3379
|
+
publishedLeaderboardSchema: knownResponse(publishedLeaderboardSchema),
|
|
3380
|
+
publishedReferralSchema: knownResponse(publishedReferralSchema),
|
|
3381
|
+
publishedReleaseSchema: knownResponse(publishedReleaseSchema),
|
|
3382
|
+
questCatalogSchema: knownResponse(questCatalogSchema),
|
|
3383
|
+
questDraftSchema: knownResponse(questDraftSchema),
|
|
3384
|
+
questEnrollmentSchema: knownResponse(questEnrollmentSchema),
|
|
3385
|
+
questLifecycleSchema: knownResponse(questLifecycleSchema),
|
|
3386
|
+
questPublicationPreviewSchema: knownResponse(questPublicationPreviewSchema),
|
|
3387
|
+
readinessSchema: knownResponse(readinessSchema),
|
|
3388
|
+
redemptionSchema: knownResponse(redemptionSchema),
|
|
3389
|
+
referralHistorySchema: knownResponse(referralHistorySchema),
|
|
3390
|
+
referralManagementSchema: knownResponse(referralManagementSchema),
|
|
3391
|
+
resourceLifecycleResultSchema: knownResponse(resourceLifecycleResultSchema),
|
|
3392
|
+
rewardDeliveriesSchema: knownResponse(rewardDeliveriesSchema),
|
|
3393
|
+
rewardDeliverySchema: knownResponse(rewardDeliverySchema),
|
|
3394
|
+
stockAdditionSchema: knownResponse(stockAdditionSchema),
|
|
3395
|
+
stockItemSchema: knownResponse(stockItemSchema),
|
|
3396
|
+
teamSchema: knownResponse(teamSchema),
|
|
3397
|
+
testMemberHistorySchema: knownResponse(testMemberHistorySchema),
|
|
3398
|
+
testMemberResetResultSchema: knownResponse(testMemberResetResultSchema),
|
|
3399
|
+
testMemberSchema: knownResponse(testMemberSchema),
|
|
3400
|
+
tokenSchema: knownResponse(tokenSchema),
|
|
3401
|
+
trackerContentSchema: knownResponse(trackerContentSchema),
|
|
3402
|
+
trackerIngestResultSchema: knownResponse(trackerIngestResultSchema),
|
|
3403
|
+
trackerOutcomePageSchema: knownResponse(trackerOutcomePageSchema),
|
|
3404
|
+
trackerOutcomeSchema: knownResponse(trackerOutcomeSchema),
|
|
3405
|
+
trackerPageSchema: knownResponse(trackerPageSchema),
|
|
3406
|
+
trackerPreviewSchema: knownResponse(trackerPreviewSchema),
|
|
3407
|
+
trackerStatusSchema: knownResponse(trackerStatusSchema),
|
|
3408
|
+
trackerSummarySchema: knownResponse(trackerSummarySchema),
|
|
3409
|
+
trackerTriggerOutcomePageSchema: knownResponse(
|
|
3410
|
+
trackerTriggerOutcomePageSchema
|
|
3411
|
+
),
|
|
3412
|
+
walletBalanceChainsSchema: knownResponse(walletBalanceChainsSchema),
|
|
3413
|
+
webhookDeliveryPageSchema: knownResponse(webhookDeliveryPageSchema),
|
|
3414
|
+
webhookDeliverySchema: knownResponse(webhookDeliverySchema),
|
|
3415
|
+
webhookEndpointSchema: knownResponse(webhookEndpointSchema),
|
|
3416
|
+
webhookSecretSchema: knownResponse(webhookSecretSchema)
|
|
3417
|
+
};
|
|
3418
|
+
var managementResponses = {
|
|
3419
|
+
accessSchema: responseSchema(accessSchema),
|
|
3420
|
+
allocatedQuestSchema: responseSchema(allocatedQuestSchema),
|
|
3421
|
+
appSecretListSchema: responseSchema(appSecretListSchema),
|
|
3422
|
+
appSecretSchema: responseSchema(appSecretSchema),
|
|
3423
|
+
appStorageKeysSchema: responseSchema(appStorageKeysSchema),
|
|
3424
|
+
appStorageListSchema: responseSchema(appStorageListSchema),
|
|
3425
|
+
appStorageRowsSchema: responseSchema(appStorageRowsSchema),
|
|
3426
|
+
appStorageTablesSchema: responseSchema(appStorageTablesSchema),
|
|
3427
|
+
appStorageValueSchema: responseSchema(appStorageValueSchema),
|
|
3428
|
+
attemptSchema: responseSchema(attemptSchema),
|
|
3429
|
+
auditPageSchema: responseSchema(auditPageSchema),
|
|
3430
|
+
automaticCatchUpPreviewSchema: responseSchema(automaticCatchUpPreviewSchema),
|
|
3431
|
+
automaticCatchUpResultSchema: responseSchema(automaticCatchUpResultSchema),
|
|
3432
|
+
automaticOutcomePageSchema: responseSchema(automaticOutcomePageSchema),
|
|
3433
|
+
automaticSchedulingPageSchema: responseSchema(automaticSchedulingPageSchema),
|
|
3434
|
+
automaticSchedulingSchema: responseSchema(automaticSchedulingSchema),
|
|
3435
|
+
campaignEnrollmentSchema: responseSchema(campaignEnrollmentSchema),
|
|
3436
|
+
catalogDeploymentPreviewSchema: responseSchema(
|
|
3437
|
+
catalogDeploymentPreviewSchema
|
|
3438
|
+
),
|
|
3439
|
+
collectionPreviewSchema: responseSchema(collectionPreviewSchema),
|
|
3440
|
+
completionRevocationSchema: responseSchema(completionRevocationSchema),
|
|
3441
|
+
contentPerformancePageSchema: responseSchema(contentPerformancePageSchema),
|
|
3442
|
+
contentQualificationPageSchema: responseSchema(
|
|
3443
|
+
contentQualificationPageSchema
|
|
3444
|
+
),
|
|
3445
|
+
counterHistorySchema: responseSchema(counterHistorySchema),
|
|
3446
|
+
counterModerationResultSchema: responseSchema(counterModerationResultSchema),
|
|
3447
|
+
deploymentPreviewSchema: responseSchema(deploymentPreviewSchema),
|
|
3448
|
+
deploymentRecordSchema: responseSchema(deploymentRecordSchema),
|
|
3449
|
+
deploymentResultSchema: responseSchema(deploymentResultSchema),
|
|
3450
|
+
engagementBoundaryPageSchema: responseSchema(engagementBoundaryPageSchema),
|
|
3451
|
+
engagementChangePreviewSchema: responseSchema(engagementChangePreviewSchema),
|
|
3452
|
+
engagementPageSchema: responseSchema(engagementPageSchema),
|
|
3453
|
+
engagementRuleSchema: responseSchema(engagementRuleSchema),
|
|
3454
|
+
engagementRuleVersionPageSchema: responseSchema(
|
|
3455
|
+
engagementRuleVersionPageSchema
|
|
3456
|
+
),
|
|
3457
|
+
engagementVersionPageSchema: responseSchema(engagementVersionPageSchema),
|
|
3458
|
+
entitlementSchema: responseSchema(entitlementSchema),
|
|
3459
|
+
grantRecordSchema: responseSchema(grantRecordSchema),
|
|
3460
|
+
groupMemberPageSchema: responseSchema(groupMemberPageSchema),
|
|
3461
|
+
groupMemberSchema: responseSchema(groupMemberSchema),
|
|
3462
|
+
groupPageSchema: responseSchema(groupPageSchema),
|
|
3463
|
+
identityIntegrationSchema: responseSchema(identityIntegrationSchema),
|
|
3464
|
+
identityIntegrationSecretSchema: responseSchema(
|
|
3465
|
+
identityIntegrationSecretSchema
|
|
3466
|
+
),
|
|
3467
|
+
identityKindClaimSchema: responseSchema(identityKindClaimSchema),
|
|
3468
|
+
issuedTokenSchema: responseSchema(issuedTokenSchema),
|
|
3469
|
+
leaderboardPageSchema: responseSchema(leaderboardPageSchema),
|
|
3470
|
+
leaderboardSettlementSchema: responseSchema(leaderboardSettlementSchema),
|
|
3471
|
+
leaderboardSettlementSummarySchema: responseSchema(
|
|
3472
|
+
leaderboardSettlementSummarySchema
|
|
3473
|
+
),
|
|
3474
|
+
managedAttemptPageSchema: responseSchema(managedAttemptPageSchema),
|
|
3475
|
+
managedAttemptSchema: responseSchema(managedAttemptSchema),
|
|
3476
|
+
managedEntitlementPageSchema: responseSchema(managedEntitlementPageSchema),
|
|
3477
|
+
managedEntitlementSchema: responseSchema(managedEntitlementSchema),
|
|
3478
|
+
managedGroupSchema: responseSchema(managedGroupSchema),
|
|
3479
|
+
managedMemberIdentitySchema: responseSchema(managedMemberIdentitySchema),
|
|
3480
|
+
managedMemberPageSchema: responseSchema(managedMemberPageSchema),
|
|
3481
|
+
managedOAuthAccountSchema: responseSchema(managedOAuthAccountSchema),
|
|
3482
|
+
managedPointHistoryPageSchema: responseSchema(managedPointHistoryPageSchema),
|
|
3483
|
+
managedPointLedgerSchema: responseSchema(managedPointLedgerSchema),
|
|
3484
|
+
managedProfileSchema: responseSchema(managedProfileSchema),
|
|
3485
|
+
managedResourceSchema: responseSchema(managedResourceSchema),
|
|
3486
|
+
managedStockItemSchema: responseSchema(managedStockItemSchema),
|
|
3487
|
+
managedWalletSchema: responseSchema(managedWalletSchema),
|
|
3488
|
+
memberDetailSchema: responseSchema(memberDetailSchema),
|
|
3489
|
+
offerSchema: responseSchema(offerSchema),
|
|
3490
|
+
operationSchema: responseSchema(operationSchema),
|
|
3491
|
+
pageSchema: responseSchema(pageSchema),
|
|
3492
|
+
participantSignInSchema: responseSchema(participantSignInSchema),
|
|
3493
|
+
personSchema: responseSchema(personSchema),
|
|
3494
|
+
pickupAvailabilitySchema: responseSchema(pickupAvailabilitySchema),
|
|
3495
|
+
pickupCatalogSchema: responseSchema(pickupCatalogSchema),
|
|
3496
|
+
pointLedgerSchema: responseSchema(pointLedgerSchema),
|
|
3497
|
+
pointsAccountSchema: responseSchema(pointsAccountSchema),
|
|
3498
|
+
pointsResultSchema: responseSchema(pointsResultSchema),
|
|
3499
|
+
profileSettingsSchema: responseSchema(profileSettingsSchema),
|
|
3500
|
+
projectCalendarSchema: responseSchema(projectCalendarSchema),
|
|
3501
|
+
projectDeletionSchema: responseSchema(projectDeletionSchema),
|
|
3502
|
+
projectMetricsSchema: responseSchema(projectMetricsSchema),
|
|
3503
|
+
projectSchema: responseSchema(projectSchema),
|
|
3504
|
+
projectTransferSchema: responseSchema(projectTransferSchema),
|
|
3505
|
+
publishedLeaderboardSchema: responseSchema(publishedLeaderboardSchema),
|
|
3506
|
+
publishedReferralSchema: responseSchema(publishedReferralSchema),
|
|
3507
|
+
publishedReleaseSchema: responseSchema(publishedReleaseSchema),
|
|
3508
|
+
questCatalogSchema: responseSchema(questCatalogSchema),
|
|
3509
|
+
questDraftSchema: responseSchema(questDraftSchema),
|
|
3510
|
+
questEnrollmentSchema: responseSchema(questEnrollmentSchema),
|
|
3511
|
+
questLifecycleSchema: responseSchema(questLifecycleSchema),
|
|
3512
|
+
questPublicationPreviewSchema: responseSchema(questPublicationPreviewSchema),
|
|
3513
|
+
readinessSchema: responseSchema(readinessSchema),
|
|
3514
|
+
redemptionSchema: responseSchema(redemptionSchema),
|
|
3515
|
+
referralHistorySchema: responseSchema(referralHistorySchema),
|
|
3516
|
+
referralManagementSchema: responseSchema(referralManagementSchema),
|
|
3517
|
+
resourceLifecycleResultSchema: responseSchema(resourceLifecycleResultSchema),
|
|
3518
|
+
rewardDeliveriesSchema: responseSchema(rewardDeliveriesSchema),
|
|
3519
|
+
rewardDeliverySchema: responseSchema(rewardDeliverySchema),
|
|
3520
|
+
stockAdditionSchema: responseSchema(stockAdditionSchema),
|
|
3521
|
+
stockItemSchema: responseSchema(stockItemSchema),
|
|
3522
|
+
teamSchema: responseSchema(teamSchema),
|
|
3523
|
+
testMemberHistorySchema: responseSchema(testMemberHistorySchema),
|
|
3524
|
+
testMemberResetResultSchema: responseSchema(testMemberResetResultSchema),
|
|
3525
|
+
testMemberSchema: responseSchema(testMemberSchema),
|
|
3526
|
+
tokenSchema: responseSchema(tokenSchema),
|
|
3527
|
+
trackerContentSchema: responseSchema(trackerContentSchema),
|
|
3528
|
+
trackerIngestResultSchema: responseSchema(trackerIngestResultSchema),
|
|
3529
|
+
trackerOutcomePageSchema: responseSchema(trackerOutcomePageSchema),
|
|
3530
|
+
trackerOutcomeSchema: responseSchema(trackerOutcomeSchema),
|
|
3531
|
+
trackerPageSchema: responseSchema(trackerPageSchema),
|
|
3532
|
+
trackerPreviewSchema: responseSchema(trackerPreviewSchema),
|
|
3533
|
+
trackerStatusSchema: responseSchema(trackerStatusSchema),
|
|
3534
|
+
trackerSummarySchema: responseSchema(trackerSummarySchema),
|
|
3535
|
+
trackerTriggerOutcomePageSchema: responseSchema(
|
|
3536
|
+
trackerTriggerOutcomePageSchema
|
|
3537
|
+
),
|
|
3538
|
+
walletBalanceChainsSchema: responseSchema(walletBalanceChainsSchema),
|
|
3539
|
+
webhookDeliveryPageSchema: responseSchema(webhookDeliveryPageSchema),
|
|
3540
|
+
webhookDeliverySchema: responseSchema(webhookDeliverySchema),
|
|
3541
|
+
webhookEndpointSchema: responseSchema(webhookEndpointSchema),
|
|
3542
|
+
webhookSecretSchema: responseSchema(webhookSecretSchema)
|
|
3543
|
+
};
|
|
3257
3544
|
export {
|
|
3258
3545
|
APP_KV_LIMIT,
|
|
3259
3546
|
APP_MIGRATION_FILE_BYTES,
|
|
@@ -3365,6 +3652,8 @@ export {
|
|
|
3365
3652
|
managedStockItemSchema,
|
|
3366
3653
|
managedWalletSchema,
|
|
3367
3654
|
managementErrorSchema,
|
|
3655
|
+
managementResponseSchemas,
|
|
3656
|
+
managementResponses,
|
|
3368
3657
|
memberAccountSchema,
|
|
3369
3658
|
memberDetailSchema,
|
|
3370
3659
|
memberIdentityChangeInputSchema,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as AuthProvider } from './submission-input-
|
|
2
|
-
import {
|
|
3
|
-
import { C as CosmosChain, a as CosmosNetwork, f as WalletSigner, d as WalletSignInNetwork } from './wallet-
|
|
1
|
+
import { a as AuthProvider } from './submission-input-BbBJTVlT.js';
|
|
2
|
+
import { o as createRelayClient, g as RelayError } from './client-Yq11HA_f.js';
|
|
3
|
+
import { C as CosmosChain, a as CosmosNetwork, f as WalletSigner, d as WalletSignInNetwork } from './wallet-CDyo-U4n.js';
|
|
4
4
|
|
|
5
5
|
/** An EIP-1193 provider, such as `window.ethereum` or an EIP-6963 announcement's provider. */
|
|
6
6
|
type Eip1193Provider = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import {
|
|
3
|
-
import { p as ProjectGroupReference } from './groups-
|
|
2
|
+
import { L as LedgerReference, r as QuestHandle } from './schema-DEM8y8Fm.js';
|
|
3
|
+
import { p as ProjectGroupReference } from './groups-BK8ts2yK.js';
|
|
4
4
|
|
|
5
5
|
/** A Discord message as `ctx.discord.message()` reads it, from the project's Discord server. */
|
|
6
6
|
declare const discordMessageSchema: z.ZodObject<{
|
|
@@ -287,4 +287,4 @@ declare function validateSubmissionValue(input: ValueEvidence, contract: {
|
|
|
287
287
|
/** Extract an ID only. The URL and its author name are untrusted claims. */
|
|
288
288
|
declare function xPostId(value: string): string | null;
|
|
289
289
|
|
|
290
|
-
export { type AccountConnection as A,
|
|
290
|
+
export { type AccountConnection as A, groupPrerequisiteSchema as B, missingPrerequisiteSchema as C, type DiscordMessageData as D, prerequisiteSchema as E, textEvidenceSchema as F, textOptionsSchema as G, urlEvidenceSchema as H, urlOptionsSchema as I, validateSubmissionValue as J, valueEvidenceSchema as K, xPostId as L, type MissingPrerequisite as M, type Prerequisite as P, type TextEvidence as T, type UrlEvidence as U, type ValueEvidence as V, type AuthProvider as a, type TextOptions as b, type UrlOptions as c, discordMessagesSourceSchema as d, type DiscordMessageTextData as e, discordReactionsSourceSchema as f, type DiscordReactionData as g, type DiscordReader as h, balanceAtLeast as i, completed as j, inGroup as k, type DiscordMember as l, type DiscordMessage as m, accountConnectionSchema as n, authProviderSchema as o, balancePrerequisiteSchema as p, completionPrerequisiteSchema as q, discordMemberInputSchema as r, discordMemberSchema as s, discordMessageDataSchema as t, discordMessageInputSchema as u, discordMessageSchema as v, discordMessageTextDataSchema as w, discordReactionDataSchema as x, discordResourceSourceSchema as y, discordRewardSchema as z };
|
|
@@ -225,4 +225,4 @@ interface WalletReader {
|
|
|
225
225
|
balance(query: WalletBalanceQuery): Promise<WalletBalance | null>;
|
|
226
226
|
}
|
|
227
227
|
|
|
228
|
-
export { walletChainSchema as A, walletMessageChallengeSchema as B, type CosmosChain as C, walletSignInFamilies as D, type EvmChainId as E, walletSignInNetwork as F, walletSignInNetworkSchema as G, walletSignInNetworksSchema as H, walletSignatureSchema as I, walletUnlinkInputSchema as J, type LinkedWallet as L, type WalletAddressInput as W, type CosmosNetwork as a, type WalletChain as b, type WalletMessageChallenge as c, type WalletSignInNetwork as d, type WalletSignature as e, type WalletSigner as f, type WalletUnlinkInput as g, type
|
|
228
|
+
export { walletChainSchema as A, walletMessageChallengeSchema as B, type CosmosChain as C, walletSignInFamilies as D, type EvmChainId as E, walletSignInNetwork as F, walletSignInNetworkSchema as G, walletSignInNetworksSchema as H, walletSignatureSchema as I, walletUnlinkInputSchema as J, type LinkedWallet as L, type WalletAddressInput as W, type CosmosNetwork as a, type WalletChain as b, type WalletMessageChallenge as c, type WalletSignInNetwork as d, type WalletSignature as e, type WalletSigner as f, type WalletUnlinkInput as g, type WalletReader as h, type CosmosDenom as i, type WalletBalance as j, type WalletBalanceQuery as k, cosmosDenomSchema as l, cosmosNetworkSchema as m, isEvmChainId as n, WALLETS_PER_CHAIN as o, caip10 as p, cosmosAddressSchema as q, cosmosChain as r, evmAddressSchema as s, evmChainIdSchema as t, linkedWalletSchema as u, solanaAddressSchema as v, solanaMainnet as w, walletAddressInput as x, walletAddressInputSchema as y, walletBalanceSchema as z };
|
package/package.json
CHANGED
|
@@ -2,9 +2,9 @@ import { z } from 'zod';
|
|
|
2
2
|
|
|
3
3
|
/** Who sees profiles: nobody but the member (`private`), signed-in members, or anyone. */
|
|
4
4
|
declare const profileVisibilitySchema: z.ZodEnum<{
|
|
5
|
+
public: "public";
|
|
5
6
|
private: "private";
|
|
6
7
|
participants: "participants";
|
|
7
|
-
public: "public";
|
|
8
8
|
}>;
|
|
9
9
|
type ProfileVisibility = z.infer<typeof profileVisibilitySchema>;
|
|
10
10
|
/** Connected accounts a member can take a picture from. */
|
|
@@ -144,9 +144,9 @@ declare const ownProfileSchema: z.ZodObject<{
|
|
|
144
144
|
hidden: z.ZodBoolean;
|
|
145
145
|
locked: z.ZodBoolean;
|
|
146
146
|
visibility: z.ZodEnum<{
|
|
147
|
+
public: "public";
|
|
147
148
|
private: "private";
|
|
148
149
|
participants: "participants";
|
|
149
|
-
public: "public";
|
|
150
150
|
}>;
|
|
151
151
|
options: z.ZodArray<z.ZodObject<{
|
|
152
152
|
provider: z.ZodEnum<{
|
|
@@ -206,9 +206,9 @@ type ProfileReferral = z.infer<typeof profileReferralSchema>;
|
|
|
206
206
|
/** A project's profile settings in one environment. */
|
|
207
207
|
declare const profileSettingsSchema: z.ZodObject<{
|
|
208
208
|
visibility: z.ZodEnum<{
|
|
209
|
+
public: "public";
|
|
209
210
|
private: "private";
|
|
210
211
|
participants: "participants";
|
|
211
|
-
public: "public";
|
|
212
212
|
}>;
|
|
213
213
|
defaults: z.ZodArray<z.ZodEnum<{
|
|
214
214
|
discord: "discord";
|
|
@@ -221,9 +221,9 @@ declare const profileSettingsSchema: z.ZodObject<{
|
|
|
221
221
|
type ProfileSettings = z.infer<typeof profileSettingsSchema>;
|
|
222
222
|
declare const profileSettingsInputSchema: z.ZodObject<{
|
|
223
223
|
visibility: z.ZodEnum<{
|
|
224
|
+
public: "public";
|
|
224
225
|
private: "private";
|
|
225
226
|
participants: "participants";
|
|
226
|
-
public: "public";
|
|
227
227
|
}>;
|
|
228
228
|
defaults: z.ZodArray<z.ZodEnum<{
|
|
229
229
|
discord: "discord";
|
|
@@ -250,9 +250,9 @@ declare const managedProfileSchema: z.ZodObject<{
|
|
|
250
250
|
displayName: z.ZodNullable<z.ZodString>;
|
|
251
251
|
hidden: z.ZodBoolean;
|
|
252
252
|
visibility: z.ZodEnum<{
|
|
253
|
+
public: "public";
|
|
253
254
|
private: "private";
|
|
254
255
|
participants: "participants";
|
|
255
|
-
public: "public";
|
|
256
256
|
}>;
|
|
257
257
|
locked: z.ZodBoolean;
|
|
258
258
|
avatar: z.ZodDiscriminatedUnion<[z.ZodObject<{
|