@domino-sdk/relay 1.72.0 → 1.74.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/CHANGELOG.md +25 -0
- package/dist/{accounts-COLmXRbW.d.ts → accounts-C9as33l1.d.ts} +2 -2
- package/dist/{attempt-captures-CVl161qB.d.ts → attempt-captures-DU4vi20Y.d.ts} +2 -2
- package/dist/authoring.d.ts +103 -106
- package/dist/authoring.js +187 -286
- package/dist/{automatic-outcomes-5l68PGr1.d.ts → automatic-outcomes-D0yMHSHL.d.ts} +2 -2
- package/dist/browser.d.ts +9 -9
- package/dist/browser.js +11 -11
- package/dist/{dashboards-DXpjHnq-.d.ts → capability-error-Bn6cCqof.d.ts} +298 -5
- package/dist/{catalog-BR3g-1H9.d.ts → catalog-9I6t18qP.d.ts} +2 -2
- package/dist/{chunk-W6DBNBMT.js → chunk-2LURSPDM.js} +232 -232
- package/dist/{chunk-VNEJH4NT.js → chunk-2M5FM7FW.js} +21 -0
- package/dist/{chunk-74SMLZZ5.js → chunk-6TDHRGBM.js} +1522 -1278
- package/dist/{chunk-QG6XVOOO.js → chunk-724CKAC7.js} +4 -4
- package/dist/{chunk-I7XIBXT2.js → chunk-7I7P5UVC.js} +3 -3
- package/dist/{chunk-LDO5GP7G.js → chunk-AL5XMXPO.js} +1 -1
- package/dist/{chunk-TW4RABVS.js → chunk-CW7FJ5PX.js} +1 -1
- package/dist/{chunk-BXUF3CRL.js → chunk-DNOLNMCW.js} +9 -9
- package/dist/{chunk-5RLIPTL7.js → chunk-E73HZCG2.js} +1 -1
- package/dist/{chunk-UEVZ3TST.js → chunk-ELHMJODS.js} +1 -1
- package/dist/{chunk-ASBDB436.js → chunk-F66GGNKD.js} +1 -1
- package/dist/{chunk-ETGKC2SB.js → chunk-HCOLMJFX.js} +2 -2
- package/dist/chunk-JZT2NLSG.js +7201 -0
- package/dist/{chunk-FGZGL5PG.js → chunk-KGZ7SRKJ.js} +2 -2
- package/dist/{chunk-3KKRXN5E.js → chunk-KP55TMCC.js} +1 -1
- package/dist/chunk-NI6XRGEL.js +374 -0
- package/dist/{chunk-VFHLMNYV.js → chunk-RALBAKKX.js} +1 -1
- package/dist/chunk-SVZ3QWHT.js +142 -0
- package/dist/{chunk-CVJTIVAP.js → chunk-T4PTFCSB.js} +2 -2
- package/dist/{chunk-KIRXE37T.js → chunk-TGQNNMCY.js} +6 -6
- package/dist/{client-B__hMWtK.d.ts → client-B2aVGf38.d.ts} +7 -7
- package/dist/{deployments-CT2kQloT.d.ts → deployments-CGV1rIZm.d.ts} +107 -107
- package/dist/{identity-integration-ClX4oUAu.d.ts → identity-integration-C03rUYc0.d.ts} +3 -3
- package/dist/index.d.ts +10 -10
- package/dist/index.js +10 -10
- package/dist/internal.d.ts +36197 -18
- package/dist/internal.js +518 -15
- package/dist/{limits-B7wbnWhd.d.ts → limits-p-Mg0oSi.d.ts} +1 -1
- package/dist/{offers-D4pyeY9b.d.ts → offers-CnMyMeQo.d.ts} +2 -2
- package/dist/portal-proxy.d.ts +2 -2
- package/dist/portal-proxy.js +10 -10
- package/dist/react/index.d.ts +11 -11
- package/dist/react/index.js +11 -11
- package/dist/{reward-deliveries-HGpj1VFz.d.ts → reward-deliveries-zWfsgc6m.d.ts} +1 -1
- package/dist/runtime/authoring.js +1 -1
- package/dist/runtime/chunks/NYEWMPJH.js +1 -0
- package/dist/runtime/manifest.json +3 -3
- package/dist/runtime/schema.js +1 -1
- package/dist/schema.d.ts +35 -60
- package/dist/schema.js +10 -8
- package/dist/server/index.d.ts +13 -13
- package/dist/server/index.js +2972 -4528
- package/dist/{sign-in-providers-lbOXCF8N.d.ts → sign-in-providers-BG22ZZkl.d.ts} +2 -2
- package/dist/solana.d.ts +13 -13
- package/dist/solana.js +9 -9
- package/dist/stake-BSVjB3BJ.d.ts +254 -0
- package/dist/{station-check-in-qBiaftfE.d.ts → station-check-in-a1deSjbm.d.ts} +5 -5
- package/dist/{submission-input-U4aIkJuT.d.ts → submission-input-DBDLkTF8.d.ts} +2 -2
- package/dist/telegram.d.ts +7 -7
- package/dist/telegram.js +2 -2
- package/dist/testing.d.ts +159 -160
- package/dist/testing.js +47 -344
- package/dist/{tracker-data-2BYXZjsN.d.ts → tracker-data-Dwq9dWEm.d.ts} +474 -221
- package/dist/{transport-DcRXDZ1j.d.ts → transport-D77Rbf4D.d.ts} +77050 -74062
- package/dist/{wallet-BqswMAqZ.d.ts → wallet-CeqgtXNm.d.ts} +2 -7
- package/dist/{wallet-browser-B5r7u3xB.d.ts → wallet-browser-Cucpqn3F.d.ts} +1 -1
- package/package.json +1 -1
- package/dist/capability-error-db7kO8-P.d.ts +0 -297
- package/dist/chunk-2UELTHW6.js +0 -467
- package/dist/chunk-GHBYWDEZ.js +0 -94
- package/dist/chunk-HN7DE2UN.js +0 -53
- package/dist/runtime/chunks/A7G5P76B.js +0 -1
package/dist/internal.js
CHANGED
|
@@ -1,26 +1,98 @@
|
|
|
1
1
|
import {
|
|
2
|
+
HOSTING_NAME_PATTERN,
|
|
3
|
+
ID_PATTERN,
|
|
2
4
|
REFERRAL_INTEGRATION_REWARD_ERROR,
|
|
5
|
+
SEGMENT_PATTERN,
|
|
6
|
+
UUID_PATTERN,
|
|
7
|
+
analyticsEndpoints,
|
|
8
|
+
attemptEndpoints,
|
|
9
|
+
auditEndpoints,
|
|
10
|
+
automationKeyEndpoints,
|
|
11
|
+
badgeEndpoints,
|
|
12
|
+
billingEndpoints,
|
|
13
|
+
buildEndpoints,
|
|
14
|
+
calendarEndpoints,
|
|
15
|
+
campaignEndpoints,
|
|
3
16
|
canonicalWalletAddress,
|
|
17
|
+
catalogEndpoints,
|
|
18
|
+
completionEndpoints,
|
|
4
19
|
confirmedSignature,
|
|
20
|
+
connectionEndpoints,
|
|
5
21
|
containsReferralIntegrationReward,
|
|
22
|
+
contentEndpoints,
|
|
6
23
|
csvLines,
|
|
24
|
+
dashboardEndpoints,
|
|
25
|
+
deploymentEndpoints,
|
|
26
|
+
developmentEndpoints,
|
|
27
|
+
domainEndpoints,
|
|
28
|
+
endpointRoute,
|
|
29
|
+
engagementEndpoints,
|
|
30
|
+
entitlementEndpoints,
|
|
31
|
+
galleryEndpoints,
|
|
32
|
+
grantEndpoints,
|
|
33
|
+
groupEndpoints,
|
|
34
|
+
identityIntegrationEndpoints,
|
|
35
|
+
integrationEndpoints,
|
|
36
|
+
inventoryEndpoints,
|
|
37
|
+
leaderboardEndpoints,
|
|
38
|
+
liveAppEndpoints,
|
|
39
|
+
managementEndpoint,
|
|
7
40
|
managementTransport,
|
|
41
|
+
memberEndpoints,
|
|
42
|
+
memberImportEndpoints,
|
|
43
|
+
metricsEndpoints,
|
|
44
|
+
offerEndpoints,
|
|
45
|
+
ok,
|
|
46
|
+
operationEndpoints,
|
|
47
|
+
pageEndpoints,
|
|
48
|
+
participantEndpoints,
|
|
49
|
+
pluginEndpoints,
|
|
50
|
+
pointEndpoints,
|
|
51
|
+
pointLedgerEndpoints,
|
|
52
|
+
profileEndpoints,
|
|
53
|
+
projectEndpoints,
|
|
54
|
+
promotionEndpoints,
|
|
55
|
+
providerEndpoints,
|
|
8
56
|
questConfiguration,
|
|
57
|
+
questEndpoints,
|
|
58
|
+
referralEndpoints,
|
|
59
|
+
releaseEndpoints,
|
|
60
|
+
repositoryEndpoints,
|
|
61
|
+
resourceArchiveEndpoints,
|
|
62
|
+
resourceEndpoints,
|
|
63
|
+
rewardDeliveryEndpoints,
|
|
64
|
+
scheduleEndpoints,
|
|
65
|
+
secretEndpoints,
|
|
9
66
|
sequenceCursorSchema,
|
|
67
|
+
serviceKeyEndpoints,
|
|
10
68
|
solanaPublicEndpoints,
|
|
11
69
|
solanaRpc,
|
|
12
|
-
|
|
13
|
-
|
|
70
|
+
stagingEndpoints,
|
|
71
|
+
storageEndpoints,
|
|
72
|
+
teamEndpoints,
|
|
73
|
+
testMemberEndpoints,
|
|
74
|
+
tieredRewardEndpoints,
|
|
75
|
+
tokenEndpoints,
|
|
76
|
+
trackerEndpoints,
|
|
77
|
+
usageEndpoints,
|
|
78
|
+
walletSignatureValid,
|
|
79
|
+
webhookEndpoints
|
|
80
|
+
} from "./chunk-JZT2NLSG.js";
|
|
81
|
+
import {
|
|
82
|
+
capabilityRequestSchemas,
|
|
83
|
+
evaluatorReaderFactories
|
|
84
|
+
} from "./chunk-NI6XRGEL.js";
|
|
14
85
|
import {
|
|
15
86
|
parseImageExtraction,
|
|
16
87
|
parseImageResult
|
|
17
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-SVZ3QWHT.js";
|
|
89
|
+
import "./chunk-2LURSPDM.js";
|
|
18
90
|
import {
|
|
19
91
|
QuestShapeError,
|
|
20
92
|
sourceDataSchema,
|
|
21
93
|
sourceRoles,
|
|
22
94
|
validateQuestShape
|
|
23
|
-
} from "./chunk-
|
|
95
|
+
} from "./chunk-ELHMJODS.js";
|
|
24
96
|
import {
|
|
25
97
|
accountVouchedBySchema,
|
|
26
98
|
appLoginOriginSchema,
|
|
@@ -40,19 +112,21 @@ import {
|
|
|
40
112
|
participantExchangeResultSchema,
|
|
41
113
|
participantExchangeSchema,
|
|
42
114
|
secureOrLoopbackOrigin
|
|
43
|
-
} from "./chunk-
|
|
115
|
+
} from "./chunk-7I7P5UVC.js";
|
|
44
116
|
import {
|
|
45
117
|
isIntegrationParticipantPath,
|
|
46
118
|
isParticipantRoute,
|
|
47
119
|
participantRoutePattern,
|
|
48
120
|
participantRoutes
|
|
49
121
|
} from "./chunk-PYZSCFMJ.js";
|
|
50
|
-
import "./chunk-
|
|
51
|
-
import
|
|
122
|
+
import "./chunk-TGQNNMCY.js";
|
|
123
|
+
import {
|
|
124
|
+
imageUploadsSchema
|
|
125
|
+
} from "./chunk-RALBAKKX.js";
|
|
52
126
|
import {
|
|
53
127
|
dashboardIssue,
|
|
54
128
|
normalizeDashboard
|
|
55
|
-
} from "./chunk-
|
|
129
|
+
} from "./chunk-T4PTFCSB.js";
|
|
56
130
|
import "./chunk-MWMCQLCG.js";
|
|
57
131
|
import {
|
|
58
132
|
connectSolanaAccount,
|
|
@@ -64,16 +138,16 @@ import {
|
|
|
64
138
|
stationPayLink,
|
|
65
139
|
stationQrSvg
|
|
66
140
|
} from "./chunk-MDSSIOBC.js";
|
|
67
|
-
import "./chunk-
|
|
141
|
+
import "./chunk-F66GGNKD.js";
|
|
68
142
|
import {
|
|
69
143
|
MANAGEMENT_TIMEOUT,
|
|
70
144
|
lifetime,
|
|
71
145
|
retryAfter,
|
|
72
146
|
retrying
|
|
73
|
-
} from "./chunk-
|
|
74
|
-
import "./chunk-
|
|
75
|
-
import "./chunk-
|
|
76
|
-
import "./chunk-
|
|
147
|
+
} from "./chunk-HCOLMJFX.js";
|
|
148
|
+
import "./chunk-KP55TMCC.js";
|
|
149
|
+
import "./chunk-CW7FJ5PX.js";
|
|
150
|
+
import "./chunk-KGZ7SRKJ.js";
|
|
77
151
|
import {
|
|
78
152
|
base58,
|
|
79
153
|
base58Bytes,
|
|
@@ -81,6 +155,7 @@ import {
|
|
|
81
155
|
evmWalletOn,
|
|
82
156
|
inWindow,
|
|
83
157
|
isBoundSetting,
|
|
158
|
+
limits,
|
|
84
159
|
schemaCheckedReader,
|
|
85
160
|
sourceContent,
|
|
86
161
|
stationRefusal,
|
|
@@ -89,10 +164,15 @@ import {
|
|
|
89
164
|
trackerDataIssues,
|
|
90
165
|
trackerDataPathTypes,
|
|
91
166
|
trackerDataRecordSteps,
|
|
167
|
+
walletBalances,
|
|
168
|
+
walletNfts,
|
|
169
|
+
walletProgramAccounts,
|
|
170
|
+
walletProgramActivity,
|
|
171
|
+
walletStake,
|
|
92
172
|
whereSchemaIssue,
|
|
93
173
|
whereSettings
|
|
94
|
-
} from "./chunk-
|
|
95
|
-
import "./chunk-
|
|
174
|
+
} from "./chunk-6TDHRGBM.js";
|
|
175
|
+
import "./chunk-2M5FM7FW.js";
|
|
96
176
|
|
|
97
177
|
// src/solana-idl-accounts.ts
|
|
98
178
|
import { sha256 } from "@noble/hashes/sha2.js";
|
|
@@ -273,67 +353,475 @@ function programMetadataIdlBytes(data, program) {
|
|
|
273
353
|
compression
|
|
274
354
|
};
|
|
275
355
|
}
|
|
356
|
+
|
|
357
|
+
// src/server/endpoints/images.ts
|
|
358
|
+
var imageEndpoints = /* @__PURE__ */ (() => ({
|
|
359
|
+
// Upload addresses for a deployment's images, which `domino deploy` asks for first.
|
|
360
|
+
uploads: managementEndpoint({
|
|
361
|
+
method: "POST",
|
|
362
|
+
path: "/images/uploads",
|
|
363
|
+
parameters: {},
|
|
364
|
+
permission: "publish",
|
|
365
|
+
ledger: "images.uploads",
|
|
366
|
+
result: () => imageUploadsSchema
|
|
367
|
+
})
|
|
368
|
+
}))();
|
|
369
|
+
|
|
370
|
+
// src/server/endpoints/playground.ts
|
|
371
|
+
import * as z from "zod";
|
|
372
|
+
var playgroundEndpoints = /* @__PURE__ */ (() => ({
|
|
373
|
+
// A stream of boot steps.
|
|
374
|
+
start: managementEndpoint({
|
|
375
|
+
method: "POST",
|
|
376
|
+
path: "/playground/start",
|
|
377
|
+
parameters: {},
|
|
378
|
+
permission: { handler: "playground" },
|
|
379
|
+
ledger: null,
|
|
380
|
+
result: "raw"
|
|
381
|
+
}),
|
|
382
|
+
models: managementEndpoint({
|
|
383
|
+
method: "GET",
|
|
384
|
+
path: "/playground/models",
|
|
385
|
+
parameters: {},
|
|
386
|
+
permission: { handler: "playground" },
|
|
387
|
+
ledger: null,
|
|
388
|
+
result: () => z.unknown()
|
|
389
|
+
}),
|
|
390
|
+
status: managementEndpoint({
|
|
391
|
+
method: "GET",
|
|
392
|
+
path: "/playground/status",
|
|
393
|
+
parameters: {},
|
|
394
|
+
permission: { handler: "playground" },
|
|
395
|
+
ledger: null,
|
|
396
|
+
result: () => z.unknown()
|
|
397
|
+
}),
|
|
398
|
+
heartbeat: managementEndpoint({
|
|
399
|
+
method: "POST",
|
|
400
|
+
path: "/playground/heartbeat",
|
|
401
|
+
parameters: {},
|
|
402
|
+
permission: { handler: "playground" },
|
|
403
|
+
ledger: null,
|
|
404
|
+
result: () => z.unknown()
|
|
405
|
+
}),
|
|
406
|
+
checkpoint: managementEndpoint({
|
|
407
|
+
method: "POST",
|
|
408
|
+
path: "/playground/checkpoint",
|
|
409
|
+
parameters: {},
|
|
410
|
+
permission: { handler: "playground" },
|
|
411
|
+
ledger: null,
|
|
412
|
+
result: () => z.unknown()
|
|
413
|
+
}),
|
|
414
|
+
checkpoints: managementEndpoint({
|
|
415
|
+
method: "GET",
|
|
416
|
+
path: "/playground/checkpoints",
|
|
417
|
+
parameters: {},
|
|
418
|
+
permission: { handler: "playground" },
|
|
419
|
+
ledger: null,
|
|
420
|
+
result: () => z.unknown()
|
|
421
|
+
}),
|
|
422
|
+
// The sandbox Worker's answer; the handler refuses a SHA that is not 40 hex digits.
|
|
423
|
+
diff: managementEndpoint({
|
|
424
|
+
method: "GET",
|
|
425
|
+
path: "/playground/checkpoints/{sha}/diff",
|
|
426
|
+
parameters: { sha: SEGMENT_PATTERN },
|
|
427
|
+
permission: { handler: "playground" },
|
|
428
|
+
ledger: null,
|
|
429
|
+
result: "raw"
|
|
430
|
+
}),
|
|
431
|
+
// The handler refuses a PTY ID that is not `pty_` and a word.
|
|
432
|
+
terminal: managementEndpoint({
|
|
433
|
+
method: "POST",
|
|
434
|
+
path: "/playground/terminal/{pty}",
|
|
435
|
+
parameters: { pty: SEGMENT_PATTERN },
|
|
436
|
+
permission: { handler: "playground" },
|
|
437
|
+
ledger: null,
|
|
438
|
+
result: () => z.unknown()
|
|
439
|
+
}),
|
|
440
|
+
// The sandbox Worker's answer.
|
|
441
|
+
restore: managementEndpoint({
|
|
442
|
+
method: "POST",
|
|
443
|
+
path: "/playground/restore",
|
|
444
|
+
parameters: {},
|
|
445
|
+
permission: { handler: "playground" },
|
|
446
|
+
ledger: null,
|
|
447
|
+
result: "raw"
|
|
448
|
+
}),
|
|
449
|
+
usage: managementEndpoint({
|
|
450
|
+
method: "GET",
|
|
451
|
+
path: "/playground/usage",
|
|
452
|
+
parameters: {},
|
|
453
|
+
permission: { handler: "playground" },
|
|
454
|
+
ledger: null,
|
|
455
|
+
result: () => z.unknown()
|
|
456
|
+
})
|
|
457
|
+
}))();
|
|
458
|
+
var SIMULATION_BUILD_BODY_LIMIT = 8 * 256 * 1024;
|
|
459
|
+
var simulationEndpoints = /* @__PURE__ */ (() => ({
|
|
460
|
+
create: managementEndpoint({
|
|
461
|
+
method: "POST",
|
|
462
|
+
path: "/playground/simulations",
|
|
463
|
+
parameters: {},
|
|
464
|
+
permission: { handler: "simulation-owner" },
|
|
465
|
+
ledger: null,
|
|
466
|
+
result: () => z.unknown()
|
|
467
|
+
}),
|
|
468
|
+
get: managementEndpoint({
|
|
469
|
+
method: "GET",
|
|
470
|
+
path: "/playground/simulations/{simulation}",
|
|
471
|
+
parameters: { simulation: UUID_PATTERN },
|
|
472
|
+
permission: { handler: "simulation-owner" },
|
|
473
|
+
ledger: null,
|
|
474
|
+
result: () => z.unknown()
|
|
475
|
+
}),
|
|
476
|
+
build: managementEndpoint({
|
|
477
|
+
method: "POST",
|
|
478
|
+
path: "/playground/simulations/{simulation}/builds",
|
|
479
|
+
parameters: { simulation: UUID_PATTERN },
|
|
480
|
+
permission: { handler: "simulation-owner" },
|
|
481
|
+
ledger: null,
|
|
482
|
+
result: () => z.unknown(),
|
|
483
|
+
bodyLimit: SIMULATION_BUILD_BODY_LIMIT
|
|
484
|
+
}),
|
|
485
|
+
getBuild: managementEndpoint({
|
|
486
|
+
method: "GET",
|
|
487
|
+
path: "/playground/simulations/{simulation}/builds/{build}",
|
|
488
|
+
parameters: { simulation: UUID_PATTERN, build: UUID_PATTERN },
|
|
489
|
+
permission: { handler: "simulation-owner" },
|
|
490
|
+
ledger: null,
|
|
491
|
+
result: () => z.unknown()
|
|
492
|
+
}),
|
|
493
|
+
buildLogs: managementEndpoint({
|
|
494
|
+
method: "GET",
|
|
495
|
+
path: "/playground/simulations/{simulation}/builds/{build}/logs",
|
|
496
|
+
parameters: { simulation: UUID_PATTERN, build: UUID_PATTERN },
|
|
497
|
+
permission: { handler: "simulation-owner" },
|
|
498
|
+
ledger: null,
|
|
499
|
+
result: () => z.unknown()
|
|
500
|
+
}),
|
|
501
|
+
run: managementEndpoint({
|
|
502
|
+
method: "POST",
|
|
503
|
+
path: "/playground/simulations/{simulation}/runs",
|
|
504
|
+
parameters: { simulation: UUID_PATTERN },
|
|
505
|
+
permission: { handler: "simulation-owner" },
|
|
506
|
+
ledger: null,
|
|
507
|
+
result: () => z.unknown()
|
|
508
|
+
}),
|
|
509
|
+
getRun: managementEndpoint({
|
|
510
|
+
method: "GET",
|
|
511
|
+
path: "/playground/simulations/{simulation}/runs/{run}",
|
|
512
|
+
parameters: { simulation: UUID_PATTERN, run: UUID_PATTERN },
|
|
513
|
+
permission: { handler: "simulation-owner" },
|
|
514
|
+
ledger: null,
|
|
515
|
+
result: () => z.unknown()
|
|
516
|
+
}),
|
|
517
|
+
// The simulation's `deployments.preview` and `deployments.publish`, in its test environment.
|
|
518
|
+
previewDeployment: managementEndpoint({
|
|
519
|
+
method: "POST",
|
|
520
|
+
path: "/playground/simulations/{simulation}/deployments/preview",
|
|
521
|
+
parameters: { simulation: UUID_PATTERN },
|
|
522
|
+
permission: { handler: "simulation-owner" },
|
|
523
|
+
ledger: null,
|
|
524
|
+
result: () => z.unknown(),
|
|
525
|
+
bodyLimit: limits.stagedDeployment.size
|
|
526
|
+
}),
|
|
527
|
+
publishDeployment: managementEndpoint({
|
|
528
|
+
method: "POST",
|
|
529
|
+
path: "/playground/simulations/{simulation}/deployments/publish",
|
|
530
|
+
parameters: { simulation: UUID_PATTERN },
|
|
531
|
+
permission: { handler: "simulation-owner" },
|
|
532
|
+
ledger: null,
|
|
533
|
+
result: () => z.unknown()
|
|
534
|
+
}),
|
|
535
|
+
copy: managementEndpoint({
|
|
536
|
+
method: "POST",
|
|
537
|
+
path: "/playground/simulation-copies",
|
|
538
|
+
parameters: {},
|
|
539
|
+
permission: { handler: "simulation-owner" },
|
|
540
|
+
ledger: null,
|
|
541
|
+
result: () => z.unknown()
|
|
542
|
+
})
|
|
543
|
+
}))();
|
|
544
|
+
|
|
545
|
+
// src/server/endpoints/sessions.ts
|
|
546
|
+
import * as z2 from "zod";
|
|
547
|
+
var sessionEndpoints = /* @__PURE__ */ (() => ({
|
|
548
|
+
// A Console user reads a pending CLI sign-in; an ID that is no UUID answers 409 `sign-in-expired`.
|
|
549
|
+
cliDevice: managementEndpoint({
|
|
550
|
+
method: "GET",
|
|
551
|
+
path: "/cli/devices/{id}",
|
|
552
|
+
parameters: { id: SEGMENT_PATTERN },
|
|
553
|
+
permission: { handler: "console-session" },
|
|
554
|
+
ledger: null,
|
|
555
|
+
result: () => z2.unknown()
|
|
556
|
+
}),
|
|
557
|
+
approveCliDevice: managementEndpoint({
|
|
558
|
+
method: "POST",
|
|
559
|
+
path: "/cli/approve",
|
|
560
|
+
parameters: {},
|
|
561
|
+
permission: { handler: "console-session" },
|
|
562
|
+
ledger: null,
|
|
563
|
+
result: () => z2.object({ approved: z2.literal(true) })
|
|
564
|
+
}),
|
|
565
|
+
// A CLI session signs itself out.
|
|
566
|
+
revokeCliSession: managementEndpoint({
|
|
567
|
+
method: "DELETE",
|
|
568
|
+
path: "/cli/session",
|
|
569
|
+
parameters: {},
|
|
570
|
+
permission: { handler: "cli-session" },
|
|
571
|
+
ledger: null,
|
|
572
|
+
result: () => z2.object({ revoked: z2.literal(true) })
|
|
573
|
+
}),
|
|
574
|
+
supportIdentity: managementEndpoint({
|
|
575
|
+
method: "GET",
|
|
576
|
+
path: "/support/identity",
|
|
577
|
+
parameters: {},
|
|
578
|
+
permission: { handler: "console-session" },
|
|
579
|
+
ledger: null,
|
|
580
|
+
result: () => z2.unknown()
|
|
581
|
+
}),
|
|
582
|
+
// Refuses hosted and service callers after its own 128 KiB body limit, with its own message.
|
|
583
|
+
feedback: managementEndpoint({
|
|
584
|
+
method: "POST",
|
|
585
|
+
path: "/feedback",
|
|
586
|
+
parameters: {},
|
|
587
|
+
permission: { handler: "feedback" },
|
|
588
|
+
ledger: null,
|
|
589
|
+
result: () => z2.unknown()
|
|
590
|
+
})
|
|
591
|
+
}))();
|
|
592
|
+
|
|
593
|
+
// src/server/endpoints/route.ts
|
|
594
|
+
var routePath = (endpoint) => endpoint.path.replace(/\{(\w+)\}/g, (_, name) => {
|
|
595
|
+
const pattern = endpoint.parameters[name];
|
|
596
|
+
return pattern === SEGMENT_PATTERN ? `:${name}` : `:${name}{${pattern}}`;
|
|
597
|
+
});
|
|
598
|
+
var HONO_PARAMETER = /(:\w*(?:\{(?:[^{}]|\{[^{}]*\})*\})?)/;
|
|
599
|
+
var WRITTEN_PARAMETER = /:\w+|\{\w+\}/g;
|
|
600
|
+
var ANY = "\0";
|
|
601
|
+
var WORDS = /^[\w-]+(?:\|[\w-]+)*$/;
|
|
602
|
+
var withoutPatterns = (path) => path.split(HONO_PARAMETER).map((part, index) => index % 2 ? part.replace(/\{.*$/, "") : part).join("");
|
|
603
|
+
var patterns = /* @__PURE__ */ (() => /* @__PURE__ */ new Map())();
|
|
604
|
+
function compile(pattern, written) {
|
|
605
|
+
const key = `${written} ${pattern}`;
|
|
606
|
+
let compiled = patterns.get(key);
|
|
607
|
+
if (!compiled) {
|
|
608
|
+
const source = pattern.split(HONO_PARAMETER).map((part, index) => {
|
|
609
|
+
if (index % 2 === 0) {
|
|
610
|
+
return part.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
611
|
+
}
|
|
612
|
+
const brace = part.indexOf("{");
|
|
613
|
+
const accepts = brace === -1 ? "[^/]+" : part.slice(brace + 1, -1);
|
|
614
|
+
if (written === "path") {
|
|
615
|
+
return `(?:${accepts})`;
|
|
616
|
+
}
|
|
617
|
+
return WORDS.test(accepts) ? `(?:${ANY}|${accepts})` : ANY;
|
|
618
|
+
});
|
|
619
|
+
compiled = new RegExp("^" + source.join("") + "$");
|
|
620
|
+
patterns.set(key, compiled);
|
|
621
|
+
}
|
|
622
|
+
return compiled;
|
|
623
|
+
}
|
|
624
|
+
function routeNames(route, method, path, written) {
|
|
625
|
+
return route.method === method && compile(route.path, written).test(
|
|
626
|
+
written === "pattern" ? path.replace(WRITTEN_PARAMETER, ANY) : path
|
|
627
|
+
);
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
// src/server/endpoints/index.ts
|
|
631
|
+
var declaredManagementEndpoints = () => [
|
|
632
|
+
...Object.values(analyticsEndpoints),
|
|
633
|
+
...Object.values(attemptEndpoints),
|
|
634
|
+
...Object.values(auditEndpoints),
|
|
635
|
+
...Object.values(automationKeyEndpoints),
|
|
636
|
+
...Object.values(badgeEndpoints),
|
|
637
|
+
...Object.values(billingEndpoints),
|
|
638
|
+
...Object.values(buildEndpoints),
|
|
639
|
+
...Object.values(calendarEndpoints),
|
|
640
|
+
...Object.values(campaignEndpoints),
|
|
641
|
+
...Object.values(catalogEndpoints),
|
|
642
|
+
...Object.values(completionEndpoints),
|
|
643
|
+
...Object.values(connectionEndpoints),
|
|
644
|
+
...Object.values(contentEndpoints),
|
|
645
|
+
...Object.values(dashboardEndpoints),
|
|
646
|
+
...Object.values(deploymentEndpoints),
|
|
647
|
+
...Object.values(developmentEndpoints),
|
|
648
|
+
...Object.values(domainEndpoints),
|
|
649
|
+
...Object.values(engagementEndpoints),
|
|
650
|
+
...Object.values(entitlementEndpoints),
|
|
651
|
+
...Object.values(galleryEndpoints),
|
|
652
|
+
...Object.values(grantEndpoints),
|
|
653
|
+
...Object.values(groupEndpoints),
|
|
654
|
+
...Object.values(identityIntegrationEndpoints),
|
|
655
|
+
...Object.values(imageEndpoints),
|
|
656
|
+
...Object.values(integrationEndpoints),
|
|
657
|
+
...Object.values(inventoryEndpoints),
|
|
658
|
+
...Object.values(leaderboardEndpoints),
|
|
659
|
+
...Object.values(liveAppEndpoints),
|
|
660
|
+
...Object.values(memberEndpoints),
|
|
661
|
+
...Object.values(memberImportEndpoints),
|
|
662
|
+
...Object.values(metricsEndpoints),
|
|
663
|
+
...Object.values(offerEndpoints),
|
|
664
|
+
...Object.values(operationEndpoints),
|
|
665
|
+
...Object.values(pageEndpoints),
|
|
666
|
+
...Object.values(participantEndpoints),
|
|
667
|
+
...Object.values(playgroundEndpoints),
|
|
668
|
+
...Object.values(pluginEndpoints),
|
|
669
|
+
...Object.values(pointEndpoints),
|
|
670
|
+
...Object.values(pointLedgerEndpoints),
|
|
671
|
+
...Object.values(profileEndpoints),
|
|
672
|
+
...Object.values(projectEndpoints),
|
|
673
|
+
...Object.values(promotionEndpoints),
|
|
674
|
+
...Object.values(providerEndpoints),
|
|
675
|
+
...Object.values(questEndpoints),
|
|
676
|
+
...Object.values(referralEndpoints),
|
|
677
|
+
...Object.values(releaseEndpoints),
|
|
678
|
+
...Object.values(repositoryEndpoints),
|
|
679
|
+
...Object.values(resourceEndpoints),
|
|
680
|
+
...Object.values(rewardDeliveryEndpoints),
|
|
681
|
+
...Object.values(scheduleEndpoints),
|
|
682
|
+
...Object.values(secretEndpoints),
|
|
683
|
+
...Object.values(serviceKeyEndpoints),
|
|
684
|
+
...Object.values(sessionEndpoints),
|
|
685
|
+
...Object.values(simulationEndpoints),
|
|
686
|
+
...Object.values(stagingEndpoints),
|
|
687
|
+
...Object.values(storageEndpoints),
|
|
688
|
+
...Object.values(teamEndpoints),
|
|
689
|
+
...Object.values(testMemberEndpoints),
|
|
690
|
+
...Object.values(tieredRewardEndpoints),
|
|
691
|
+
...Object.values(tokenEndpoints),
|
|
692
|
+
...Object.values(trackerEndpoints),
|
|
693
|
+
...Object.values(usageEndpoints),
|
|
694
|
+
...Object.values(webhookEndpoints)
|
|
695
|
+
];
|
|
276
696
|
export {
|
|
697
|
+
HOSTING_NAME_PATTERN,
|
|
698
|
+
ID_PATTERN,
|
|
277
699
|
MANAGEMENT_TIMEOUT,
|
|
278
700
|
QuestShapeError,
|
|
279
701
|
REFERRAL_INTEGRATION_REWARD_ERROR,
|
|
702
|
+
SEGMENT_PATTERN,
|
|
703
|
+
UUID_PATTERN,
|
|
704
|
+
WRITTEN_PARAMETER,
|
|
280
705
|
accountVouchedBySchema,
|
|
706
|
+
analyticsEndpoints,
|
|
281
707
|
anchorIdlAccountBytes,
|
|
282
708
|
anchorIdlAddress,
|
|
283
709
|
appLoginOriginSchema,
|
|
710
|
+
attemptEndpoints,
|
|
711
|
+
auditEndpoints,
|
|
712
|
+
automationKeyEndpoints,
|
|
713
|
+
badgeEndpoints,
|
|
284
714
|
bareOrigin,
|
|
285
715
|
base58,
|
|
716
|
+
billingEndpoints,
|
|
717
|
+
buildEndpoints,
|
|
718
|
+
calendarEndpoints,
|
|
719
|
+
campaignEndpoints,
|
|
286
720
|
canonicalWalletAddress,
|
|
721
|
+
capabilityRequestSchemas,
|
|
722
|
+
catalogEndpoints,
|
|
287
723
|
checkedInteger,
|
|
288
724
|
compatibleSettingKinds,
|
|
725
|
+
completionEndpoints,
|
|
289
726
|
confirmedSignature,
|
|
290
727
|
connectSolanaAccount,
|
|
728
|
+
connectionEndpoints,
|
|
291
729
|
containsReferralIntegrationReward,
|
|
730
|
+
contentEndpoints,
|
|
292
731
|
csvLines,
|
|
732
|
+
dashboardEndpoints,
|
|
293
733
|
dashboardIssue,
|
|
734
|
+
declaredManagementEndpoints,
|
|
735
|
+
deploymentEndpoints,
|
|
736
|
+
developmentEndpoints,
|
|
737
|
+
domainEndpoints,
|
|
738
|
+
endpointRoute,
|
|
739
|
+
engagementEndpoints,
|
|
740
|
+
entitlementEndpoints,
|
|
741
|
+
evaluatorReaderFactories,
|
|
294
742
|
evmWalletOn,
|
|
743
|
+
galleryEndpoints,
|
|
744
|
+
grantEndpoints,
|
|
745
|
+
groupEndpoints,
|
|
295
746
|
hostEnvironmentPath,
|
|
296
747
|
hostEnvironmentSchema,
|
|
297
748
|
httpsOriginSchema,
|
|
298
749
|
identityIntegrationAccountVouchingInputSchema,
|
|
299
750
|
identityIntegrationAppSecretSchema,
|
|
751
|
+
identityIntegrationEndpoints,
|
|
300
752
|
identityIntegrationInputSchema,
|
|
301
753
|
identityIntegrationKeySchema,
|
|
302
754
|
identityIntegrationSchema,
|
|
303
755
|
identityIntegrationSecretSchema,
|
|
304
756
|
identityKindClaimSchema,
|
|
305
757
|
idlTooLarge,
|
|
758
|
+
imageEndpoints,
|
|
306
759
|
inWindow,
|
|
760
|
+
integrationEndpoints,
|
|
761
|
+
inventoryEndpoints,
|
|
307
762
|
isBoundSetting,
|
|
308
763
|
isIntegrationParticipantPath,
|
|
309
764
|
isParticipantRoute,
|
|
765
|
+
leaderboardEndpoints,
|
|
310
766
|
lifetime,
|
|
311
767
|
littleEndianBytes,
|
|
768
|
+
liveAppEndpoints,
|
|
312
769
|
loopbackHosts,
|
|
770
|
+
managementEndpoint,
|
|
313
771
|
managementTransport,
|
|
314
772
|
maxAnchorIdlBytes,
|
|
773
|
+
memberEndpoints,
|
|
774
|
+
memberImportEndpoints,
|
|
775
|
+
metricsEndpoints,
|
|
315
776
|
nextScheduleRun,
|
|
316
777
|
normalizeDashboard,
|
|
778
|
+
offerEndpoints,
|
|
779
|
+
ok,
|
|
780
|
+
operationEndpoints,
|
|
781
|
+
pageEndpoints,
|
|
317
782
|
parseImageExtraction,
|
|
318
783
|
parseImageResult,
|
|
319
784
|
parseSolanaSeeds,
|
|
320
785
|
parseStationCodeLink,
|
|
786
|
+
participantEndpoints,
|
|
321
787
|
participantExchangeAccountResultSchema,
|
|
322
788
|
participantExchangeAccountsSchema,
|
|
323
789
|
participantExchangeResultSchema,
|
|
324
790
|
participantExchangeSchema,
|
|
325
791
|
participantRoutePattern,
|
|
326
792
|
participantRoutes,
|
|
793
|
+
playgroundEndpoints,
|
|
794
|
+
pluginEndpoints,
|
|
795
|
+
pointEndpoints,
|
|
796
|
+
pointLedgerEndpoints,
|
|
797
|
+
profileEndpoints,
|
|
327
798
|
programMetadataIdlAddress,
|
|
328
799
|
programMetadataIdlBytes,
|
|
329
800
|
programMetadataProgram,
|
|
801
|
+
projectEndpoints,
|
|
802
|
+
promotionEndpoints,
|
|
803
|
+
providerEndpoints,
|
|
330
804
|
questConfiguration,
|
|
805
|
+
questEndpoints,
|
|
806
|
+
referralEndpoints,
|
|
331
807
|
registeredWallets,
|
|
808
|
+
releaseEndpoints,
|
|
809
|
+
repositoryEndpoints,
|
|
810
|
+
resourceArchiveEndpoints,
|
|
811
|
+
resourceEndpoints,
|
|
332
812
|
retryAfter,
|
|
333
813
|
retrying,
|
|
814
|
+
rewardDeliveryEndpoints,
|
|
815
|
+
routeNames,
|
|
816
|
+
routePath,
|
|
817
|
+
scheduleEndpoints,
|
|
334
818
|
schemaCheckedReader,
|
|
819
|
+
secretEndpoints,
|
|
335
820
|
secureOrLoopbackOrigin,
|
|
336
821
|
sequenceCursorSchema,
|
|
822
|
+
serviceKeyEndpoints,
|
|
823
|
+
sessionEndpoints,
|
|
824
|
+
simulationEndpoints,
|
|
337
825
|
solanaAddressBytes,
|
|
338
826
|
solanaProgramAddress,
|
|
339
827
|
solanaPublicEndpoints,
|
|
@@ -342,19 +830,34 @@ export {
|
|
|
342
830
|
sourceContent,
|
|
343
831
|
sourceDataSchema,
|
|
344
832
|
sourceRoles,
|
|
833
|
+
stagingEndpoints,
|
|
345
834
|
stationCodeLink,
|
|
346
835
|
stationPayLink,
|
|
347
836
|
stationQrSvg,
|
|
348
837
|
stationRefusal,
|
|
838
|
+
storageEndpoints,
|
|
349
839
|
storedIdlJson,
|
|
840
|
+
teamEndpoints,
|
|
841
|
+
testMemberEndpoints,
|
|
842
|
+
tieredRewardEndpoints,
|
|
843
|
+
tokenEndpoints,
|
|
350
844
|
trackerDataBatchSteps,
|
|
351
845
|
trackerDataIssue,
|
|
352
846
|
trackerDataIssues,
|
|
353
847
|
trackerDataPathTypes,
|
|
354
848
|
trackerDataRecordSteps,
|
|
849
|
+
trackerEndpoints,
|
|
850
|
+
usageEndpoints,
|
|
355
851
|
validateQuestShape,
|
|
852
|
+
walletBalances,
|
|
853
|
+
walletNfts,
|
|
854
|
+
walletProgramAccounts,
|
|
855
|
+
walletProgramActivity,
|
|
356
856
|
walletSignatureValid,
|
|
857
|
+
walletStake,
|
|
858
|
+
webhookEndpoints,
|
|
357
859
|
whereSchemaIssue,
|
|
358
860
|
whereSettings,
|
|
861
|
+
withoutPatterns,
|
|
359
862
|
zeroCopyAccount
|
|
360
863
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as z from 'zod';
|
|
2
|
-
import { ae as PhotoResult, X as AttemptCodeSource } from './accounts-
|
|
2
|
+
import { ae as PhotoResult, X as AttemptCodeSource } from './accounts-C9as33l1.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Quest code names an image; the platform fetches, decodes and pins it. No bytes or URLs cross the
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as z from 'zod';
|
|
2
|
-
import { R as ResourceHandle } from './tracker-data-
|
|
3
|
-
import { a0 as AuthoringIdentity } from './accounts-
|
|
2
|
+
import { R as ResourceHandle } from './tracker-data-Dwq9dWEm.js';
|
|
3
|
+
import { a0 as AuthoringIdentity } from './accounts-C9as33l1.js';
|
|
4
4
|
|
|
5
5
|
declare const badgePropertiesSchema: z.ZodObject<{
|
|
6
6
|
name: z.ZodString;
|
package/dist/portal-proxy.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ParticipantExchangeAccountResult, ParticipantExchangeResult, IdentityIntegrationKey } from './internal.js';
|
|
2
2
|
import { MemberImportVouchedAccount } from './server/index.js';
|
|
3
3
|
import { RequestError } from './index.js';
|
|
4
|
-
import './tracker-data-
|
|
4
|
+
import './tracker-data-Dwq9dWEm.js';
|
|
5
5
|
import 'zod';
|
|
6
|
-
import './wallet-
|
|
6
|
+
import './wallet-CeqgtXNm.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Server-only proxy: browser cookies stay on the participant origin.
|