@domino-sdk/relay 1.7.0 → 1.10.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/action-9Xl0StBg.d.ts +33 -0
- package/dist/{activity-Br6vyYze.d.ts → activity-C0O3g7VJ.d.ts} +9 -9
- package/dist/authoring.d.ts +12 -12
- package/dist/authoring.js +3 -3
- package/dist/{automatic-outcomes-C1Q9LrDb.d.ts → automatic-outcomes-kPIDv6X_.d.ts} +1 -1
- package/dist/avatar.d.ts +2 -2
- package/dist/browser.d.ts +9 -8
- package/dist/browser.js +8 -6
- package/dist/{capability-error-Bv996M-h.d.ts → capability-error-ty3SqD_b.d.ts} +1 -1
- package/dist/{chunk-KGJSKGKI.js → chunk-23JUD56J.js} +1119 -910
- package/dist/{chunk-ZOUEEK5L.js → chunk-7BRHUUVB.js} +83 -26
- package/dist/{chunk-C25TDFHN.js → chunk-BKLGWPPD.js} +48 -37
- package/dist/{chunk-6ON4RMEN.js → chunk-BUXNTVER.js} +1 -1
- package/dist/{chunk-BFZHJA2B.js → chunk-GEPSEVQO.js} +2 -2
- package/dist/chunk-GFAFH7XR.js +98 -0
- package/dist/{chunk-6RBF3UDA.js → chunk-GPS546KR.js} +232 -7
- package/dist/{chunk-5ECM6AWV.js → chunk-MMWTHVXW.js} +3 -3
- package/dist/chunk-N2HXMTVA.js +13 -0
- package/dist/{chunk-23QJ7WH4.js → chunk-QL77V77D.js} +1 -1
- package/dist/{chunk-GMPPLZKH.js → chunk-UIR6NSYZ.js} +243 -228
- package/dist/{chunk-JW4G3SY5.js → chunk-WRBPLXVP.js} +60 -47
- package/dist/{client-pfml_XAa.d.ts → client-Yq11HA_f.d.ts} +64 -43
- package/dist/{groups-BpWEqaPn.d.ts → groups-BK8ts2yK.d.ts} +94 -6
- package/dist/{images-BaKYd0fl.d.ts → images-aw6W7vFZ.d.ts} +2 -2
- package/dist/index.d.ts +10 -9
- package/dist/index.js +10 -5
- package/dist/internal.d.ts +3 -3
- package/dist/internal.js +5 -5
- package/dist/{offers-CYtal8jO.d.ts → offers-C2FANzrG.d.ts} +3 -3
- package/dist/{pages-CixTNnF4.d.ts → pages-D00JDZB-.d.ts} +70 -39
- package/dist/portal-proxy.js +8 -2
- package/dist/react/index.d.ts +203 -19
- package/dist/react/index.js +256 -113
- package/dist/{referral-reward-kinds-ClxAuCGx.d.ts → referral-reward-kinds-M3f0PdiR.d.ts} +2 -2
- package/dist/{schema-CQydLqw4.d.ts → schema-DEM8y8Fm.d.ts} +16 -16
- package/dist/schema.d.ts +11239 -13
- package/dist/schema.js +38 -6
- package/dist/server/index.d.ts +43693 -52
- package/dist/server/index.js +465 -53
- package/dist/{sign-in-options-CtXUFV7E.d.ts → sign-in-options-Coim0G1u.d.ts} +3 -3
- package/dist/{submission-input-CLefHTrj.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-GPS546KR.js";
|
|
25
25
|
import "../chunk-MC6V6VMG.js";
|
|
26
26
|
import {
|
|
27
27
|
REFERRAL_INTEGRATION_REWARD_ERROR,
|
|
@@ -35,21 +35,24 @@ import {
|
|
|
35
35
|
participantExchangeSchema,
|
|
36
36
|
questConfiguration,
|
|
37
37
|
sequenceCursorSchema
|
|
38
|
-
} from "../chunk-
|
|
38
|
+
} from "../chunk-MMWTHVXW.js";
|
|
39
39
|
import {
|
|
40
40
|
imageAssetArtifactSchema
|
|
41
|
-
} from "../chunk-
|
|
41
|
+
} from "../chunk-WRBPLXVP.js";
|
|
42
42
|
import {
|
|
43
43
|
sourceDataSchema,
|
|
44
44
|
sourceRoles,
|
|
45
45
|
validateQuestShape
|
|
46
|
-
} from "../chunk-
|
|
46
|
+
} from "../chunk-QL77V77D.js";
|
|
47
47
|
import {
|
|
48
48
|
isIntegrationParticipantPath,
|
|
49
49
|
isParticipantRoute,
|
|
50
50
|
participantRoutePattern,
|
|
51
51
|
participantRoutes
|
|
52
52
|
} from "../chunk-AXRMT33W.js";
|
|
53
|
+
import {
|
|
54
|
+
withActionId
|
|
55
|
+
} from "../chunk-GFAFH7XR.js";
|
|
53
56
|
import {
|
|
54
57
|
allocateQuestSchema,
|
|
55
58
|
allocatedQuestSchema,
|
|
@@ -67,7 +70,7 @@ import {
|
|
|
67
70
|
rewardDeliveriesSchema,
|
|
68
71
|
rewardDeliverySchema,
|
|
69
72
|
saveQuestDraftSchema
|
|
70
|
-
} from "../chunk-
|
|
73
|
+
} from "../chunk-BKLGWPPD.js";
|
|
71
74
|
import {
|
|
72
75
|
cosmosNetworkSchema,
|
|
73
76
|
createPointLedgerSchema,
|
|
@@ -118,7 +121,7 @@ import {
|
|
|
118
121
|
walletBalanceSchema,
|
|
119
122
|
walletSignInNetworksSchema,
|
|
120
123
|
walletUnlinkInputSchema
|
|
121
|
-
} from "../chunk-
|
|
124
|
+
} from "../chunk-UIR6NSYZ.js";
|
|
122
125
|
import {
|
|
123
126
|
MANAGEMENT_TIMEOUT,
|
|
124
127
|
lifetime,
|
|
@@ -130,7 +133,10 @@ import {
|
|
|
130
133
|
RequestError,
|
|
131
134
|
isRequestError
|
|
132
135
|
} from "../chunk-NPGENI7K.js";
|
|
133
|
-
import
|
|
136
|
+
import {
|
|
137
|
+
clientIdentity
|
|
138
|
+
} from "../chunk-N2HXMTVA.js";
|
|
139
|
+
import "../chunk-BUXNTVER.js";
|
|
134
140
|
import {
|
|
135
141
|
CompletionSourceKind,
|
|
136
142
|
addGroupMemberSchema,
|
|
@@ -160,6 +166,7 @@ import {
|
|
|
160
166
|
groupPageQuerySchema,
|
|
161
167
|
groupPageSchema,
|
|
162
168
|
identifier,
|
|
169
|
+
knownResponse,
|
|
163
170
|
managedGroupSchema,
|
|
164
171
|
memberCampaignEnrollmentInputSchema,
|
|
165
172
|
memberCampaignWithdrawalInputSchema,
|
|
@@ -175,6 +182,7 @@ import {
|
|
|
175
182
|
publishedReleaseSchema,
|
|
176
183
|
questSettingsInputSchema,
|
|
177
184
|
removeGroupMemberSchema,
|
|
185
|
+
responseSchema,
|
|
178
186
|
snapshotSchema,
|
|
179
187
|
staffDecisionSchema,
|
|
180
188
|
stockItemSchema,
|
|
@@ -200,7 +208,7 @@ import {
|
|
|
200
208
|
trackerTriggerOutcomeQuerySchema,
|
|
201
209
|
updateGroupSchema,
|
|
202
210
|
whereSchemaIssue
|
|
203
|
-
} from "../chunk-
|
|
211
|
+
} from "../chunk-23JUD56J.js";
|
|
204
212
|
|
|
205
213
|
// src/server/test-members.ts
|
|
206
214
|
import { z } from "zod";
|
|
@@ -270,6 +278,7 @@ var webhookEventSchema = z2.object({
|
|
|
270
278
|
environment: z2.enum(["test", "live"]),
|
|
271
279
|
data: z2.record(z2.string(), z2.json())
|
|
272
280
|
});
|
|
281
|
+
var webhookControlInputSchema = z2.object({ actionId: z2.string().uuid().optional() }).strict();
|
|
273
282
|
var webhookInputSchema = z2.object({
|
|
274
283
|
url: z2.url().max(2048).refine((value) => {
|
|
275
284
|
const url = new URL(value);
|
|
@@ -389,6 +398,21 @@ var resourceLifecycleResultSchema = z3.object({
|
|
|
389
398
|
resource: managedResourceSchema,
|
|
390
399
|
changed: z3.boolean()
|
|
391
400
|
});
|
|
401
|
+
var resourceLifecyclePaths = {
|
|
402
|
+
tracker: "/trackers",
|
|
403
|
+
referral: "/referral-programs",
|
|
404
|
+
leaderboard: "/leaderboards",
|
|
405
|
+
engagement: "/engagement/rules",
|
|
406
|
+
collection: "/collections",
|
|
407
|
+
"quest-type": "/quest-types",
|
|
408
|
+
image: "/images",
|
|
409
|
+
"point-ledger": "/point-ledgers"
|
|
410
|
+
};
|
|
411
|
+
var resourceArchiveInputSchema = resourceLifecycleInputSchema.omit({
|
|
412
|
+
kind: true,
|
|
413
|
+
resource: true,
|
|
414
|
+
archived: true
|
|
415
|
+
});
|
|
392
416
|
|
|
393
417
|
// src/server/index.ts
|
|
394
418
|
import { z as z9 } from "zod";
|
|
@@ -1512,9 +1536,6 @@ var verifiedPassSchema = z9.object({
|
|
|
1512
1536
|
member: identifier,
|
|
1513
1537
|
quest: identifier
|
|
1514
1538
|
}).strict();
|
|
1515
|
-
function withActionId(input) {
|
|
1516
|
-
return { ...input, actionId: input.actionId ?? crypto.randomUUID() };
|
|
1517
|
-
}
|
|
1518
1539
|
function actionIdOf(input) {
|
|
1519
1540
|
return typeof input === "object" && input !== null && "actionId" in input && typeof input.actionId === "string" ? input.actionId : void 0;
|
|
1520
1541
|
}
|
|
@@ -1651,6 +1672,7 @@ function managementClient(options) {
|
|
|
1651
1672
|
throw transportFailure(life.reason(), context, life, false);
|
|
1652
1673
|
}
|
|
1653
1674
|
const headers = new Headers(fetchInit.headers);
|
|
1675
|
+
headers.set("X-Domino-Client", clientIdentity());
|
|
1654
1676
|
const token = await credential(context, life);
|
|
1655
1677
|
if (token) {
|
|
1656
1678
|
headers.set("Authorization", `Bearer ${token}`);
|
|
@@ -1726,7 +1748,7 @@ function managementClient(options) {
|
|
|
1726
1748
|
life.end();
|
|
1727
1749
|
}
|
|
1728
1750
|
}
|
|
1729
|
-
async function exchange(path, schema, input, method, call, replaySafe) {
|
|
1751
|
+
async function exchange(path, schema, input, method, call, replaySafe, tolerant = false) {
|
|
1730
1752
|
const actionId = actionIdOf(input);
|
|
1731
1753
|
const context = {
|
|
1732
1754
|
method,
|
|
@@ -1736,8 +1758,12 @@ function managementClient(options) {
|
|
|
1736
1758
|
};
|
|
1737
1759
|
const fetchInit = {
|
|
1738
1760
|
method,
|
|
1761
|
+
headers: tolerant ? { "X-Domino-Response": "tolerant-v1" } : void 0,
|
|
1739
1762
|
...input === void 0 ? {} : {
|
|
1740
|
-
headers: {
|
|
1763
|
+
headers: {
|
|
1764
|
+
"Content-Type": "application/json",
|
|
1765
|
+
...tolerant ? { "X-Domino-Response": "tolerant-v1" } : {}
|
|
1766
|
+
},
|
|
1741
1767
|
body: JSON.stringify(input)
|
|
1742
1768
|
}
|
|
1743
1769
|
};
|
|
@@ -1772,7 +1798,9 @@ function managementClient(options) {
|
|
|
1772
1798
|
response.headers
|
|
1773
1799
|
);
|
|
1774
1800
|
}
|
|
1775
|
-
const parsed = schema.safeParse(
|
|
1801
|
+
const parsed = knownResponse(schema).safeParse(
|
|
1802
|
+
tolerant ? { status: response.status, operationId: actionId, result: body } : body
|
|
1803
|
+
);
|
|
1776
1804
|
if (!parsed.success) {
|
|
1777
1805
|
throw new ManagementError({
|
|
1778
1806
|
...context,
|
|
@@ -1795,10 +1823,10 @@ function managementClient(options) {
|
|
|
1795
1823
|
}
|
|
1796
1824
|
const get = (path, schema, call) => exchange(path, schema, void 0, "GET", call, true);
|
|
1797
1825
|
const post = (path, schema, input, call) => exchange(path, schema, input, "POST", call, actionIdOf(input) !== void 0);
|
|
1798
|
-
async function create(path,
|
|
1826
|
+
async function create(path, responseSchema2, inputSchema, input, call) {
|
|
1799
1827
|
return post(
|
|
1800
1828
|
path,
|
|
1801
|
-
|
|
1829
|
+
responseSchema2,
|
|
1802
1830
|
inputSchema.parse(withActionId(input)),
|
|
1803
1831
|
call
|
|
1804
1832
|
);
|
|
@@ -1831,7 +1859,7 @@ function managementClient(options) {
|
|
|
1831
1859
|
return post(
|
|
1832
1860
|
"/points",
|
|
1833
1861
|
pointsResultSchema,
|
|
1834
|
-
pointsMutationSchema.parse(input),
|
|
1862
|
+
pointsMutationSchema.parse(withActionId(input)),
|
|
1835
1863
|
call
|
|
1836
1864
|
);
|
|
1837
1865
|
}
|
|
@@ -1873,10 +1901,90 @@ function managementClient(options) {
|
|
|
1873
1901
|
typeof target === "string" ? call : inputOrCall
|
|
1874
1902
|
);
|
|
1875
1903
|
}
|
|
1904
|
+
function archiveManagedPointLedger(ledger, inputOrCall, call) {
|
|
1905
|
+
const input = inputOrCall && "reason" in inputOrCall ? resourceArchiveInputSchema.parse(withActionId(inputOrCall)) : {};
|
|
1906
|
+
const options2 = inputOrCall && "reason" in inputOrCall ? call : inputOrCall;
|
|
1907
|
+
return post(
|
|
1908
|
+
`/point-ledgers/${identifier.parse(ledger)}/archive`,
|
|
1909
|
+
managedPointLedgerSchema,
|
|
1910
|
+
input,
|
|
1911
|
+
options2
|
|
1912
|
+
);
|
|
1913
|
+
}
|
|
1914
|
+
const archiveResource = (kind, resource, archived, input, call) => post(
|
|
1915
|
+
`${resourceLifecyclePaths[kind]}/${identifier.parse(resource)}/${archived ? "archive" : "unarchive"}`,
|
|
1916
|
+
resourceLifecycleResultSchema,
|
|
1917
|
+
resourceArchiveInputSchema.parse(withActionId(input)),
|
|
1918
|
+
call
|
|
1919
|
+
);
|
|
1920
|
+
const resourceArchiveMethods = (kind) => ({
|
|
1921
|
+
archive: (resource, input, call) => archiveResource(kind, resource, true, input, call),
|
|
1922
|
+
unarchive: (resource, input, call) => archiveResource(kind, resource, false, input, call)
|
|
1923
|
+
});
|
|
1924
|
+
const operationVerb = (target, paused, input, call) => {
|
|
1925
|
+
const {
|
|
1926
|
+
target: _target,
|
|
1927
|
+
paused: _paused,
|
|
1928
|
+
...body
|
|
1929
|
+
} = operationInputSchema.parse(withActionId({ ...input, target, paused }));
|
|
1930
|
+
const path = target === "redemptions" ? "/redemptions" : `/quests/${identifier.parse(target.slice("quest:".length))}`;
|
|
1931
|
+
return post(
|
|
1932
|
+
`${path}/${paused ? "pause" : "resume"}`,
|
|
1933
|
+
operationSchema,
|
|
1934
|
+
body,
|
|
1935
|
+
call
|
|
1936
|
+
);
|
|
1937
|
+
};
|
|
1876
1938
|
return guarded({
|
|
1877
1939
|
raw,
|
|
1878
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
|
+
},
|
|
1879
1968
|
trackers: {
|
|
1969
|
+
pause: (reference, input = {}, call) => post(
|
|
1970
|
+
`/trackers/${identifier.parse(reference)}/pause`,
|
|
1971
|
+
trackerStatusSchema,
|
|
1972
|
+
trackerControlSchema.omit({ action: true }).parse(withActionId(input)),
|
|
1973
|
+
call
|
|
1974
|
+
),
|
|
1975
|
+
resume: (reference, input = {}, call) => post(
|
|
1976
|
+
`/trackers/${identifier.parse(reference)}/resume`,
|
|
1977
|
+
trackerStatusSchema,
|
|
1978
|
+
trackerControlSchema.omit({ action: true }).parse(withActionId(input)),
|
|
1979
|
+
call
|
|
1980
|
+
),
|
|
1981
|
+
refresh: (reference, input = {}, call) => post(
|
|
1982
|
+
`/trackers/${identifier.parse(reference)}/refresh`,
|
|
1983
|
+
trackerStatusSchema,
|
|
1984
|
+
trackerControlSchema.omit({ action: true }).parse(withActionId(input)),
|
|
1985
|
+
call
|
|
1986
|
+
),
|
|
1987
|
+
...resourceArchiveMethods("tracker"),
|
|
1880
1988
|
list: (call) => get("/trackers", z9.array(trackerStatusSchema), call),
|
|
1881
1989
|
get: (reference, call) => get(
|
|
1882
1990
|
`/trackers/${identifier.parse(reference)}`,
|
|
@@ -1898,16 +2006,17 @@ function managementClient(options) {
|
|
|
1898
2006
|
trackerContentSchema,
|
|
1899
2007
|
call
|
|
1900
2008
|
),
|
|
2009
|
+
/** @deprecated Use pause, resume or refresh. Removed in 2.0.0. */
|
|
1901
2010
|
control: (reference, input, call) => post(
|
|
1902
2011
|
`/trackers/${identifier.parse(reference)}/control`,
|
|
1903
2012
|
trackerStatusSchema,
|
|
1904
|
-
trackerControlSchema.parse(input),
|
|
2013
|
+
trackerControlSchema.parse(withActionId(input)),
|
|
1905
2014
|
call
|
|
1906
2015
|
),
|
|
1907
2016
|
ingest: (reference, input, call) => post(
|
|
1908
2017
|
`/trackers/${identifier.parse(reference)}/records`,
|
|
1909
2018
|
trackerIngestResultSchema,
|
|
1910
|
-
trackerIngestSchema.parse(input),
|
|
2019
|
+
trackerIngestSchema.parse(withActionId(input)),
|
|
1911
2020
|
call
|
|
1912
2021
|
),
|
|
1913
2022
|
/**
|
|
@@ -1938,7 +2047,7 @@ function managementClient(options) {
|
|
|
1938
2047
|
retryOutcome: (reference, input, call) => post(
|
|
1939
2048
|
`/trackers/${identifier.parse(reference)}/outcomes/retry`,
|
|
1940
2049
|
trackerOutcomeSchema,
|
|
1941
|
-
trackerOutcomeRetrySchema.parse(input),
|
|
2050
|
+
trackerOutcomeRetrySchema.parse(withActionId(input)),
|
|
1942
2051
|
call
|
|
1943
2052
|
),
|
|
1944
2053
|
/** A bounded X search sample to explore a query before defining a tracker. Stores nothing. */
|
|
@@ -1950,16 +2059,19 @@ function managementClient(options) {
|
|
|
1950
2059
|
)
|
|
1951
2060
|
},
|
|
1952
2061
|
engagement: {
|
|
2062
|
+
...resourceArchiveMethods("engagement"),
|
|
2063
|
+
/** @deprecated Use deployments.preview and deployments.publish with engagement rules. Removed in 2.0.0. */
|
|
1953
2064
|
previewChange: (input, call) => post(
|
|
1954
2065
|
"/engagement/preview-change",
|
|
1955
2066
|
engagementChangePreviewSchema,
|
|
1956
2067
|
engagementChangePreviewInputSchema.parse(input),
|
|
1957
2068
|
call
|
|
1958
2069
|
),
|
|
2070
|
+
/** @deprecated Use deployments.preview and deployments.publish with engagement rules. Removed in 2.0.0. */
|
|
1959
2071
|
change: (input, call) => post(
|
|
1960
2072
|
"/engagement/change",
|
|
1961
2073
|
engagementRuleSchema,
|
|
1962
|
-
engagementChangeSchema.parse(input),
|
|
2074
|
+
engagementChangeSchema.parse(withActionId(input)),
|
|
1963
2075
|
call
|
|
1964
2076
|
),
|
|
1965
2077
|
/** @deprecated Use `ruleVersions(rule, { cursor })`. Removed in 2.0.0. */
|
|
@@ -1982,10 +2094,11 @@ function managementClient(options) {
|
|
|
1982
2094
|
engagementBoundaryPageSchema,
|
|
1983
2095
|
call
|
|
1984
2096
|
),
|
|
2097
|
+
/** @deprecated Use deployments.preview and deployments.publish with engagement rules. Removed in 2.0.0. */
|
|
1985
2098
|
publish: (input, call) => post(
|
|
1986
2099
|
"/engagement/publish",
|
|
1987
2100
|
engagementRuleSchema,
|
|
1988
|
-
engagementPublishSchema.parse(input),
|
|
2101
|
+
engagementPublishSchema.parse(withActionId(input)),
|
|
1989
2102
|
call
|
|
1990
2103
|
),
|
|
1991
2104
|
list: (call) => get("/engagement", z9.array(engagementRuleSchema), call),
|
|
@@ -2008,6 +2121,7 @@ function managementClient(options) {
|
|
|
2008
2121
|
)
|
|
2009
2122
|
},
|
|
2010
2123
|
pointLedgers: {
|
|
2124
|
+
unarchive: (ledger, input, call) => archiveResource("point-ledger", ledger, false, input, call),
|
|
2011
2125
|
list: (call) => get("/point-ledgers", z9.array(managedPointLedgerSchema), call),
|
|
2012
2126
|
/**
|
|
2013
2127
|
* Creates a point ledger, with a stable `key` when code refers to it; requires `publish`. In
|
|
@@ -2034,12 +2148,7 @@ function managementClient(options) {
|
|
|
2034
2148
|
call
|
|
2035
2149
|
);
|
|
2036
2150
|
},
|
|
2037
|
-
archive:
|
|
2038
|
-
`/point-ledgers/${identifier.parse(ledger)}/archive`,
|
|
2039
|
-
managedPointLedgerSchema,
|
|
2040
|
-
{},
|
|
2041
|
-
call
|
|
2042
|
-
)
|
|
2151
|
+
archive: archiveManagedPointLedger
|
|
2043
2152
|
},
|
|
2044
2153
|
points: {
|
|
2045
2154
|
/** @deprecated Use `pointLedgers.list()`, which reads the same ledgers. Removed in 2.0.0. */
|
|
@@ -2062,6 +2171,19 @@ function managementClient(options) {
|
|
|
2062
2171
|
history: pointHistory
|
|
2063
2172
|
},
|
|
2064
2173
|
referrals: {
|
|
2174
|
+
pause: (member, input, call) => post(
|
|
2175
|
+
`/referral-relationships/${identifier.parse(member)}/pause`,
|
|
2176
|
+
referralManagementSchema,
|
|
2177
|
+
referralSuspensionSchema.omit({ suspended: true }).parse(withActionId(input)),
|
|
2178
|
+
call
|
|
2179
|
+
),
|
|
2180
|
+
resume: (member, input, call) => post(
|
|
2181
|
+
`/referral-relationships/${identifier.parse(member)}/resume`,
|
|
2182
|
+
referralManagementSchema,
|
|
2183
|
+
referralSuspensionSchema.omit({ suspended: true }).parse(withActionId(input)),
|
|
2184
|
+
call
|
|
2185
|
+
),
|
|
2186
|
+
...resourceArchiveMethods("referral"),
|
|
2065
2187
|
/** A member's referral point history, newest first. Pass `nextCursor` as `cursor`. */
|
|
2066
2188
|
history: (member, query = {}, call) => get(
|
|
2067
2189
|
`/referrals/history/${identifier.parse(member)}${queryString({ cursor: query.cursor })}`,
|
|
@@ -2074,6 +2196,7 @@ function managementClient(options) {
|
|
|
2074
2196
|
* Suspends or restores a member's referral relationship, with a reason; requires `publish`.
|
|
2075
2197
|
* A suspended member earns their inviter nothing.
|
|
2076
2198
|
*/
|
|
2199
|
+
/** @deprecated Use pause or resume. Removed in 2.0.0. */
|
|
2077
2200
|
suspend: (member, input, call) => post(
|
|
2078
2201
|
`/referral-relationships/${identifier.parse(member)}/suspend`,
|
|
2079
2202
|
ok,
|
|
@@ -2102,7 +2225,7 @@ function managementClient(options) {
|
|
|
2102
2225
|
),
|
|
2103
2226
|
/** @deprecated Use `suspend`, `qualify` or `resolveReward`. Removed in 2.0.0. */
|
|
2104
2227
|
control: (input, call) => {
|
|
2105
|
-
const parsed = referralControlSchema.parse(input);
|
|
2228
|
+
const parsed = referralControlSchema.parse(withActionId(input));
|
|
2106
2229
|
const { actionId, reason } = parsed;
|
|
2107
2230
|
if (parsed.kind === "suspend") {
|
|
2108
2231
|
return post(
|
|
@@ -2129,6 +2252,7 @@ function managementClient(options) {
|
|
|
2129
2252
|
}
|
|
2130
2253
|
},
|
|
2131
2254
|
leaderboards: {
|
|
2255
|
+
...resourceArchiveMethods("leaderboard"),
|
|
2132
2256
|
list: (call) => get("/leaderboards", z9.array(publishedLeaderboardSchema), call),
|
|
2133
2257
|
standings: (board, input = {}, call) => {
|
|
2134
2258
|
const query = leaderboardQuerySchema.parse(input);
|
|
@@ -2154,7 +2278,7 @@ function managementClient(options) {
|
|
|
2154
2278
|
exclude: (board, input, call) => post(
|
|
2155
2279
|
`/leaderboards/${identifier.parse(board)}/exclusions`,
|
|
2156
2280
|
ok,
|
|
2157
|
-
leaderboardExclusionSchema.parse(input),
|
|
2281
|
+
leaderboardExclusionSchema.parse(withActionId(input)),
|
|
2158
2282
|
call
|
|
2159
2283
|
),
|
|
2160
2284
|
/**
|
|
@@ -2167,7 +2291,7 @@ function managementClient(options) {
|
|
|
2167
2291
|
group: (group, input, call) => post(
|
|
2168
2292
|
`/leaderboard-groups/${groupKey(group)}`,
|
|
2169
2293
|
ok,
|
|
2170
|
-
leaderboardGroupSchema.parse(input),
|
|
2294
|
+
leaderboardGroupSchema.parse(withActionId(input)),
|
|
2171
2295
|
call
|
|
2172
2296
|
),
|
|
2173
2297
|
settlements: (board, call) => get(
|
|
@@ -2282,12 +2406,14 @@ function managementClient(options) {
|
|
|
2282
2406
|
call
|
|
2283
2407
|
),
|
|
2284
2408
|
read: (call) => get("/catalog", questCatalogSchema, call),
|
|
2409
|
+
/** @deprecated Use deployments.preview. Removed in 2.0.0. */
|
|
2285
2410
|
previewDeployment: (input, call) => post(
|
|
2286
2411
|
"/catalog/deploy/preview",
|
|
2287
2412
|
catalogDeploymentPreviewSchema,
|
|
2288
2413
|
catalogDeploymentSchema.parse(input),
|
|
2289
2414
|
call
|
|
2290
2415
|
),
|
|
2416
|
+
/** @deprecated Use deployments.preview then deployments.publish. Removed in 2.0.0. */
|
|
2291
2417
|
deploy: (input, call) => post(
|
|
2292
2418
|
"/catalog/deploy",
|
|
2293
2419
|
questCatalogSchema,
|
|
@@ -2297,7 +2423,7 @@ function managementClient(options) {
|
|
|
2297
2423
|
saveDraft: (input, call) => post(
|
|
2298
2424
|
"/catalog/drafts",
|
|
2299
2425
|
questDraftSchema,
|
|
2300
|
-
saveQuestDraftSchema.parse(input),
|
|
2426
|
+
saveQuestDraftSchema.parse(withActionId(input)),
|
|
2301
2427
|
call
|
|
2302
2428
|
),
|
|
2303
2429
|
preview: (input, call) => post(
|
|
@@ -2480,7 +2606,7 @@ function managementClient(options) {
|
|
|
2480
2606
|
begin: (input, call) => post(
|
|
2481
2607
|
"/collection/begin",
|
|
2482
2608
|
entitlementSchema,
|
|
2483
|
-
collectionBeginSchema.parse(input),
|
|
2609
|
+
collectionBeginSchema.parse(withActionId(input)),
|
|
2484
2610
|
call
|
|
2485
2611
|
)
|
|
2486
2612
|
},
|
|
@@ -2491,6 +2617,7 @@ function managementClient(options) {
|
|
|
2491
2617
|
* Pauses or resumes redemptions or one quest's participation, against the `revision` the
|
|
2492
2618
|
* operator saw, with a reason; requires `publish` permission.
|
|
2493
2619
|
*/
|
|
2620
|
+
/** @deprecated Use quests.pause/resume or redemptions.pause/resume. Removed in 2.0.0. */
|
|
2494
2621
|
configure: (input, call) => post(
|
|
2495
2622
|
"/operations",
|
|
2496
2623
|
operationSchema,
|
|
@@ -2498,6 +2625,10 @@ function managementClient(options) {
|
|
|
2498
2625
|
call
|
|
2499
2626
|
)
|
|
2500
2627
|
},
|
|
2628
|
+
redemptions: {
|
|
2629
|
+
pause: (input, call) => operationVerb("redemptions", true, input, call),
|
|
2630
|
+
resume: (input, call) => operationVerb("redemptions", false, input, call)
|
|
2631
|
+
},
|
|
2501
2632
|
inventory: {
|
|
2502
2633
|
/** Every stock item with its counts and the offers that sell it; requires `read` permission. */
|
|
2503
2634
|
list: (call) => get("/stock-items", z9.array(managedStockItemSchema), call),
|
|
@@ -2519,7 +2650,7 @@ function managementClient(options) {
|
|
|
2519
2650
|
configure: (input, call) => post(
|
|
2520
2651
|
"/pickup-inventory",
|
|
2521
2652
|
pickupCatalogSchema,
|
|
2522
|
-
configurePickupSchema.parse(input),
|
|
2653
|
+
configurePickupSchema.parse(withActionId(input)),
|
|
2523
2654
|
call
|
|
2524
2655
|
),
|
|
2525
2656
|
availability: (entitlement, call) => get(
|
|
@@ -2529,6 +2660,18 @@ function managementClient(options) {
|
|
|
2529
2660
|
)
|
|
2530
2661
|
},
|
|
2531
2662
|
offers: {
|
|
2663
|
+
pause: (offer, input, call) => post(
|
|
2664
|
+
`/offers/${identifier.parse(offer)}/pause`,
|
|
2665
|
+
offerSchema,
|
|
2666
|
+
offerControlSchema.omit({ enabled: true }).parse(withActionId(input)),
|
|
2667
|
+
call
|
|
2668
|
+
),
|
|
2669
|
+
resume: (offer, input, call) => post(
|
|
2670
|
+
`/offers/${identifier.parse(offer)}/resume`,
|
|
2671
|
+
offerSchema,
|
|
2672
|
+
offerControlSchema.omit({ enabled: true }).parse(withActionId(input)),
|
|
2673
|
+
call
|
|
2674
|
+
),
|
|
2532
2675
|
list: (call) => get("/offers", z9.array(offerSchema), call),
|
|
2533
2676
|
redemptions: (input = {}, call) => get(
|
|
2534
2677
|
`/redemptions${queryString({ member: input.member })}`,
|
|
@@ -2536,6 +2679,7 @@ function managementClient(options) {
|
|
|
2536
2679
|
call
|
|
2537
2680
|
),
|
|
2538
2681
|
/** Pauses or resumes an offer at the revision the operator saw. */
|
|
2682
|
+
/** @deprecated Use pause or resume. Removed in 2.0.0. */
|
|
2539
2683
|
control: (offer, input, call) => post(
|
|
2540
2684
|
`/offers/${identifier.parse(offer)}/control`,
|
|
2541
2685
|
offerSchema,
|
|
@@ -2620,6 +2764,18 @@ function managementClient(options) {
|
|
|
2620
2764
|
},
|
|
2621
2765
|
/** Signed activity notifications for one project/environment; writes require publish permission. */
|
|
2622
2766
|
webhooks: {
|
|
2767
|
+
pause: (id, input = {}, call) => post(
|
|
2768
|
+
`/webhooks/${z9.string().uuid().parse(id)}/pause`,
|
|
2769
|
+
webhookEndpointSchema,
|
|
2770
|
+
webhookControlInputSchema.parse(withActionId(input)),
|
|
2771
|
+
call
|
|
2772
|
+
),
|
|
2773
|
+
resume: (id, input = {}, call) => post(
|
|
2774
|
+
`/webhooks/${z9.string().uuid().parse(id)}/resume`,
|
|
2775
|
+
webhookEndpointSchema,
|
|
2776
|
+
webhookControlInputSchema.parse(withActionId(input)),
|
|
2777
|
+
call
|
|
2778
|
+
),
|
|
2623
2779
|
list: (call) => get("/webhooks", z9.array(webhookEndpointSchema), call),
|
|
2624
2780
|
create: (input, call) => post(
|
|
2625
2781
|
"/webhooks",
|
|
@@ -2634,6 +2790,7 @@ function managementClient(options) {
|
|
|
2634
2790
|
"PUT",
|
|
2635
2791
|
call
|
|
2636
2792
|
),
|
|
2793
|
+
/** @deprecated Use pause. Removed in 2.0.0. */
|
|
2637
2794
|
disable: (id, call) => post(
|
|
2638
2795
|
`/webhooks/${z9.string().uuid().parse(id)}/disable`,
|
|
2639
2796
|
webhookEndpointSchema,
|
|
@@ -2740,16 +2897,20 @@ function managementClient(options) {
|
|
|
2740
2897
|
call
|
|
2741
2898
|
)
|
|
2742
2899
|
},
|
|
2900
|
+
collections: resourceArchiveMethods("collection"),
|
|
2901
|
+
questTypes: resourceArchiveMethods("quest-type"),
|
|
2902
|
+
images: resourceArchiveMethods("image"),
|
|
2743
2903
|
resources: {
|
|
2744
2904
|
list: (call) => get(
|
|
2745
2905
|
"/resources",
|
|
2746
2906
|
z9.object({ resources: z9.array(managedResourceSchema) }),
|
|
2747
2907
|
call
|
|
2748
2908
|
),
|
|
2909
|
+
/** @deprecated Use the resource archive/unarchive methods. Removed in 2.0.0. */
|
|
2749
2910
|
lifecycle: (input, call) => post(
|
|
2750
2911
|
"/resources/lifecycle",
|
|
2751
2912
|
resourceLifecycleResultSchema,
|
|
2752
|
-
resourceLifecycleInputSchema.parse(input),
|
|
2913
|
+
resourceLifecycleInputSchema.parse(withActionId(input)),
|
|
2753
2914
|
call
|
|
2754
2915
|
)
|
|
2755
2916
|
},
|
|
@@ -2776,7 +2937,7 @@ function managementClient(options) {
|
|
|
2776
2937
|
create: (input, call) => post(
|
|
2777
2938
|
"/test-members",
|
|
2778
2939
|
testMemberSchema,
|
|
2779
|
-
testMemberCreateSchema.parse(input),
|
|
2940
|
+
testMemberCreateSchema.parse(withActionId(input)),
|
|
2780
2941
|
call
|
|
2781
2942
|
),
|
|
2782
2943
|
list: (call) => get("/test-members", z9.array(testMemberSchema), call),
|
|
@@ -2788,20 +2949,20 @@ function managementClient(options) {
|
|
|
2788
2949
|
act: (member, input, call) => post(
|
|
2789
2950
|
`/test-members/${identifier.parse(member)}/actions`,
|
|
2790
2951
|
attemptSchema,
|
|
2791
|
-
testMemberActionSchema.parse(input),
|
|
2952
|
+
testMemberActionSchema.parse(withActionId(input)),
|
|
2792
2953
|
call
|
|
2793
2954
|
),
|
|
2794
2955
|
/** Move forward 1–30 project-calendar days, up to 90 total. Reset deletes the member. */
|
|
2795
2956
|
advance: (member, input, call) => post(
|
|
2796
2957
|
`/test-members/${identifier.parse(member)}/clock`,
|
|
2797
2958
|
testMemberSchema,
|
|
2798
|
-
testMemberAdvanceSchema.parse(input),
|
|
2959
|
+
testMemberAdvanceSchema.parse(withActionId(input)),
|
|
2799
2960
|
call
|
|
2800
2961
|
),
|
|
2801
2962
|
reset: (member, input, call) => post(
|
|
2802
2963
|
`/test-members/${identifier.parse(member)}/reset`,
|
|
2803
2964
|
testMemberResetResultSchema,
|
|
2804
|
-
testMemberResetSchema.parse(input),
|
|
2965
|
+
testMemberResetSchema.parse(withActionId(input)),
|
|
2805
2966
|
call
|
|
2806
2967
|
)
|
|
2807
2968
|
},
|
|
@@ -2816,7 +2977,7 @@ function managementClient(options) {
|
|
|
2816
2977
|
moderate: (member, quest, contribution, input, call) => post(
|
|
2817
2978
|
`/members/${identifier.parse(member)}/counters/${identifier.parse(quest)}/${identifier.parse(contribution)}/moderate`,
|
|
2818
2979
|
counterModerationResultSchema,
|
|
2819
|
-
counterModerationSchema.parse(input),
|
|
2980
|
+
counterModerationSchema.parse(withActionId(input)),
|
|
2820
2981
|
call
|
|
2821
2982
|
)
|
|
2822
2983
|
},
|
|
@@ -3025,18 +3186,20 @@ function managementClient(options) {
|
|
|
3025
3186
|
enroll: (input, call) => post(
|
|
3026
3187
|
"/campaigns/enrollments",
|
|
3027
3188
|
campaignEnrollmentSchema,
|
|
3028
|
-
memberCampaignEnrollmentInputSchema.parse(input),
|
|
3189
|
+
memberCampaignEnrollmentInputSchema.parse(withActionId(input)),
|
|
3029
3190
|
call
|
|
3030
3191
|
),
|
|
3031
3192
|
/** Pauses a member's new campaign admissions while preserving history and completed work. */
|
|
3032
3193
|
withdraw: (input, call) => post(
|
|
3033
3194
|
"/campaigns/enrollments/withdraw",
|
|
3034
3195
|
campaignEnrollmentSchema,
|
|
3035
|
-
memberCampaignWithdrawalInputSchema.parse(input),
|
|
3196
|
+
memberCampaignWithdrawalInputSchema.parse(withActionId(input)),
|
|
3036
3197
|
call
|
|
3037
3198
|
)
|
|
3038
3199
|
},
|
|
3039
3200
|
quests: {
|
|
3201
|
+
pause: (quest, input, call) => operationVerb(`quest:${identifier.parse(quest)}`, true, input, call),
|
|
3202
|
+
resume: (quest, input, call) => operationVerb(`quest:${identifier.parse(quest)}`, false, input, call),
|
|
3040
3203
|
/**
|
|
3041
3204
|
* Each quest's current release, the most recently published first, archived quests
|
|
3042
3205
|
* included; requires `read` permission.
|
|
@@ -3052,7 +3215,7 @@ function managementClient(options) {
|
|
|
3052
3215
|
retryAutomaticScheduling: (input, call) => post(
|
|
3053
3216
|
"/quests/automatic-scheduling/retry",
|
|
3054
3217
|
automaticSchedulingSchema,
|
|
3055
|
-
automaticSchedulingRetrySchema.parse(input),
|
|
3218
|
+
automaticSchedulingRetrySchema.parse(withActionId(input)),
|
|
3056
3219
|
call
|
|
3057
3220
|
),
|
|
3058
3221
|
/** Prerequisite-only automatic decisions, including stable skip reasons. Requires read. */
|
|
@@ -3072,7 +3235,7 @@ function managementClient(options) {
|
|
|
3072
3235
|
catchUpAutomatic: (input, call) => post(
|
|
3073
3236
|
"/quests/automatic-outcomes/catch-up",
|
|
3074
3237
|
automaticCatchUpResultSchema,
|
|
3075
|
-
automaticCatchUpConfirmSchema.parse(input),
|
|
3238
|
+
automaticCatchUpConfirmSchema.parse(withActionId(input)),
|
|
3076
3239
|
call
|
|
3077
3240
|
),
|
|
3078
3241
|
/**
|
|
@@ -3084,7 +3247,7 @@ function managementClient(options) {
|
|
|
3084
3247
|
enroll: (input, call) => post(
|
|
3085
3248
|
"/quests/enrollments",
|
|
3086
3249
|
questEnrollmentSchema,
|
|
3087
|
-
memberEnrollmentInputSchema.parse(input),
|
|
3250
|
+
memberEnrollmentInputSchema.parse(withActionId(input)),
|
|
3088
3251
|
call
|
|
3089
3252
|
),
|
|
3090
3253
|
/**
|
|
@@ -3092,11 +3255,9 @@ function managementClient(options) {
|
|
|
3092
3255
|
* attempts and rewards stay. Deploying the quest's code again keeps it archived.
|
|
3093
3256
|
*/
|
|
3094
3257
|
archive: (quest, input, call) => post(
|
|
3095
|
-
|
|
3258
|
+
`/quests/${identifier.parse(quest)}/archive`,
|
|
3096
3259
|
questLifecycleSchema,
|
|
3097
|
-
questLifecycleInputSchema.parse(
|
|
3098
|
-
withActionId({ ...input, quest, archived: true })
|
|
3099
|
-
),
|
|
3260
|
+
questLifecycleInputSchema.omit({ quest: true, archived: true }).parse(withActionId(input)),
|
|
3100
3261
|
call
|
|
3101
3262
|
),
|
|
3102
3263
|
/**
|
|
@@ -3104,11 +3265,9 @@ function managementClient(options) {
|
|
|
3104
3265
|
* app's supported interactions; it stays paused while a resource setting is empty.
|
|
3105
3266
|
*/
|
|
3106
3267
|
unarchive: (quest, input, call) => post(
|
|
3107
|
-
|
|
3268
|
+
`/quests/${identifier.parse(quest)}/unarchive`,
|
|
3108
3269
|
questLifecycleSchema,
|
|
3109
|
-
questLifecycleInputSchema.parse(
|
|
3110
|
-
withActionId({ ...input, quest, archived: false })
|
|
3111
|
-
),
|
|
3270
|
+
questLifecycleInputSchema.omit({ quest: true, archived: true }).parse(withActionId(input)),
|
|
3112
3271
|
call
|
|
3113
3272
|
),
|
|
3114
3273
|
/**
|
|
@@ -3134,6 +3293,254 @@ function managementClient(options) {
|
|
|
3134
3293
|
)
|
|
3135
3294
|
});
|
|
3136
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
|
+
};
|
|
3137
3544
|
export {
|
|
3138
3545
|
APP_KV_LIMIT,
|
|
3139
3546
|
APP_MIGRATION_FILE_BYTES,
|
|
@@ -3245,6 +3652,8 @@ export {
|
|
|
3245
3652
|
managedStockItemSchema,
|
|
3246
3653
|
managedWalletSchema,
|
|
3247
3654
|
managementErrorSchema,
|
|
3655
|
+
managementResponseSchemas,
|
|
3656
|
+
managementResponses,
|
|
3248
3657
|
memberAccountSchema,
|
|
3249
3658
|
memberDetailSchema,
|
|
3250
3659
|
memberIdentityChangeInputSchema,
|
|
@@ -3289,8 +3698,10 @@ export {
|
|
|
3289
3698
|
referralSuspensionSchema,
|
|
3290
3699
|
removeGroupMemberSchema,
|
|
3291
3700
|
repositorySchema,
|
|
3701
|
+
resourceArchiveInputSchema,
|
|
3292
3702
|
resourceLifecycleInputSchema,
|
|
3293
3703
|
resourceLifecycleKindSchema,
|
|
3704
|
+
resourceLifecyclePaths,
|
|
3294
3705
|
resourceLifecycleResultSchema,
|
|
3295
3706
|
rolePermissions,
|
|
3296
3707
|
roleSchema,
|
|
@@ -3331,6 +3742,7 @@ export {
|
|
|
3331
3742
|
verifiedPassSchema,
|
|
3332
3743
|
verifyWebhook,
|
|
3333
3744
|
walletBalanceChainsSchema,
|
|
3745
|
+
webhookControlInputSchema,
|
|
3334
3746
|
webhookDeliveryPageSchema,
|
|
3335
3747
|
webhookDeliverySchema,
|
|
3336
3748
|
webhookEndpointSchema,
|