@domino-sdk/relay 1.73.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 +10 -0
- package/dist/{accounts-0ynaUjt0.d.ts → accounts-C9as33l1.d.ts} +4 -4
- package/dist/{attempt-captures-DlR6J8Dd.d.ts → attempt-captures-DU4vi20Y.d.ts} +2 -2
- package/dist/authoring.d.ts +13 -13
- package/dist/{automatic-outcomes-B1xDz9JR.d.ts → automatic-outcomes-D0yMHSHL.d.ts} +2 -2
- package/dist/browser.d.ts +10 -10
- package/dist/browser.js +4 -4
- package/dist/{capability-error-CYTmnCtI.d.ts → capability-error-Bn6cCqof.d.ts} +5 -5
- package/dist/{catalog-D5EYZsX6.d.ts → catalog-9I6t18qP.d.ts} +2 -2
- package/dist/{chunk-O5KGY6SP.js → chunk-2LURSPDM.js} +230 -230
- package/dist/{chunk-XLDAVVK2.js → chunk-724CKAC7.js} +1 -1
- package/dist/{chunk-TF52WMQL.js → chunk-DNOLNMCW.js} +2 -2
- package/dist/{chunk-NAFLHTRY.js → chunk-F66GGNKD.js} +1 -1
- package/dist/{chunk-OBPT6RBU.js → chunk-HCOLMJFX.js} +1 -1
- package/dist/chunk-JZT2NLSG.js +7201 -0
- package/dist/chunk-SVZ3QWHT.js +142 -0
- package/dist/{client-CFLNrX4Z.d.ts → client-B2aVGf38.d.ts} +8 -8
- package/dist/{deployments-D8zg4ZF2.d.ts → deployments-CGV1rIZm.d.ts} +3 -3
- package/dist/{identity-integration-Bf2Gk33g.d.ts → identity-integration-C03rUYc0.d.ts} +3 -3
- package/dist/index.d.ts +11 -11
- package/dist/index.js +3 -3
- package/dist/internal.d.ts +35330 -19
- package/dist/internal.js +499 -6
- package/dist/{limits-tAQm4GCJ.d.ts → limits-p-Mg0oSi.d.ts} +3 -3
- package/dist/{offers-C0gBIxI0.d.ts → offers-CnMyMeQo.d.ts} +2 -2
- package/dist/portal-proxy.d.ts +2 -2
- package/dist/portal-proxy.js +1 -1
- package/dist/{profiles-DjOGwqm8.d.ts → profiles-CLDKZVFx.d.ts} +2 -2
- package/dist/react/index.d.ts +11 -11
- package/dist/react/index.js +4 -4
- package/dist/{reward-deliveries-Cr8IN_UG.d.ts → reward-deliveries-zWfsgc6m.d.ts} +1 -1
- package/dist/runtime/manifest.json +1 -1
- package/dist/schema.d.ts +20 -77
- package/dist/server/index.d.ts +14 -14
- package/dist/server/index.js +2960 -4507
- package/dist/{sign-in-providers-gcJ5lRcX.d.ts → sign-in-providers-BG22ZZkl.d.ts} +2 -2
- package/dist/solana.d.ts +14 -14
- package/dist/solana.js +1 -1
- package/dist/stake-BSVjB3BJ.d.ts +254 -0
- package/dist/{station-check-in-D1v_RJ4G.d.ts → station-check-in-a1deSjbm.d.ts} +5 -5
- package/dist/{submission-input-BmzJu3w9.d.ts → submission-input-DBDLkTF8.d.ts} +4 -4
- package/dist/telegram.d.ts +8 -8
- package/dist/testing.d.ts +4 -4
- package/dist/testing.js +2 -4
- package/dist/{tracker-data-qMsOa5Dp.d.ts → tracker-data-Dwq9dWEm.d.ts} +75 -3
- package/dist/{transport-DSE0GUUl.d.ts → transport-D77Rbf4D.d.ts} +79011 -76022
- package/dist/{wallet-BgUIA3IN.d.ts → wallet-CeqgtXNm.d.ts} +2 -2
- package/dist/{wallet-browser-C2LVqgmB.d.ts → wallet-browser-Cucpqn3F.d.ts} +1 -1
- package/package.json +1 -1
- package/dist/chunk-4YN4QROW.js +0 -94
- package/dist/chunk-MYLLSM6I.js +0 -53
- package/dist/chunk-NX7CRWVX.js +0 -467
- package/dist/nfts-BagOxV_E.d.ts +0 -106
package/dist/internal.js
CHANGED
|
@@ -1,16 +1,83 @@
|
|
|
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";
|
|
14
81
|
import {
|
|
15
82
|
capabilityRequestSchemas,
|
|
16
83
|
evaluatorReaderFactories
|
|
@@ -18,7 +85,8 @@ import {
|
|
|
18
85
|
import {
|
|
19
86
|
parseImageExtraction,
|
|
20
87
|
parseImageResult
|
|
21
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-SVZ3QWHT.js";
|
|
89
|
+
import "./chunk-2LURSPDM.js";
|
|
22
90
|
import {
|
|
23
91
|
QuestShapeError,
|
|
24
92
|
sourceDataSchema,
|
|
@@ -52,7 +120,9 @@ import {
|
|
|
52
120
|
participantRoutes
|
|
53
121
|
} from "./chunk-PYZSCFMJ.js";
|
|
54
122
|
import "./chunk-TGQNNMCY.js";
|
|
55
|
-
import
|
|
123
|
+
import {
|
|
124
|
+
imageUploadsSchema
|
|
125
|
+
} from "./chunk-RALBAKKX.js";
|
|
56
126
|
import {
|
|
57
127
|
dashboardIssue,
|
|
58
128
|
normalizeDashboard
|
|
@@ -68,13 +138,13 @@ import {
|
|
|
68
138
|
stationPayLink,
|
|
69
139
|
stationQrSvg
|
|
70
140
|
} from "./chunk-MDSSIOBC.js";
|
|
71
|
-
import "./chunk-
|
|
141
|
+
import "./chunk-F66GGNKD.js";
|
|
72
142
|
import {
|
|
73
143
|
MANAGEMENT_TIMEOUT,
|
|
74
144
|
lifetime,
|
|
75
145
|
retryAfter,
|
|
76
146
|
retrying
|
|
77
|
-
} from "./chunk-
|
|
147
|
+
} from "./chunk-HCOLMJFX.js";
|
|
78
148
|
import "./chunk-KP55TMCC.js";
|
|
79
149
|
import "./chunk-CW7FJ5PX.js";
|
|
80
150
|
import "./chunk-KGZ7SRKJ.js";
|
|
@@ -85,6 +155,7 @@ import {
|
|
|
85
155
|
evmWalletOn,
|
|
86
156
|
inWindow,
|
|
87
157
|
isBoundSetting,
|
|
158
|
+
limits,
|
|
88
159
|
schemaCheckedReader,
|
|
89
160
|
sourceContent,
|
|
90
161
|
stationRefusal,
|
|
@@ -95,6 +166,9 @@ import {
|
|
|
95
166
|
trackerDataRecordSteps,
|
|
96
167
|
walletBalances,
|
|
97
168
|
walletNfts,
|
|
169
|
+
walletProgramAccounts,
|
|
170
|
+
walletProgramActivity,
|
|
171
|
+
walletStake,
|
|
98
172
|
whereSchemaIssue,
|
|
99
173
|
whereSettings
|
|
100
174
|
} from "./chunk-6TDHRGBM.js";
|
|
@@ -279,69 +353,475 @@ function programMetadataIdlBytes(data, program) {
|
|
|
279
353
|
compression
|
|
280
354
|
};
|
|
281
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
|
+
];
|
|
282
696
|
export {
|
|
697
|
+
HOSTING_NAME_PATTERN,
|
|
698
|
+
ID_PATTERN,
|
|
283
699
|
MANAGEMENT_TIMEOUT,
|
|
284
700
|
QuestShapeError,
|
|
285
701
|
REFERRAL_INTEGRATION_REWARD_ERROR,
|
|
702
|
+
SEGMENT_PATTERN,
|
|
703
|
+
UUID_PATTERN,
|
|
704
|
+
WRITTEN_PARAMETER,
|
|
286
705
|
accountVouchedBySchema,
|
|
706
|
+
analyticsEndpoints,
|
|
287
707
|
anchorIdlAccountBytes,
|
|
288
708
|
anchorIdlAddress,
|
|
289
709
|
appLoginOriginSchema,
|
|
710
|
+
attemptEndpoints,
|
|
711
|
+
auditEndpoints,
|
|
712
|
+
automationKeyEndpoints,
|
|
713
|
+
badgeEndpoints,
|
|
290
714
|
bareOrigin,
|
|
291
715
|
base58,
|
|
716
|
+
billingEndpoints,
|
|
717
|
+
buildEndpoints,
|
|
718
|
+
calendarEndpoints,
|
|
719
|
+
campaignEndpoints,
|
|
292
720
|
canonicalWalletAddress,
|
|
293
721
|
capabilityRequestSchemas,
|
|
722
|
+
catalogEndpoints,
|
|
294
723
|
checkedInteger,
|
|
295
724
|
compatibleSettingKinds,
|
|
725
|
+
completionEndpoints,
|
|
296
726
|
confirmedSignature,
|
|
297
727
|
connectSolanaAccount,
|
|
728
|
+
connectionEndpoints,
|
|
298
729
|
containsReferralIntegrationReward,
|
|
730
|
+
contentEndpoints,
|
|
299
731
|
csvLines,
|
|
732
|
+
dashboardEndpoints,
|
|
300
733
|
dashboardIssue,
|
|
734
|
+
declaredManagementEndpoints,
|
|
735
|
+
deploymentEndpoints,
|
|
736
|
+
developmentEndpoints,
|
|
737
|
+
domainEndpoints,
|
|
738
|
+
endpointRoute,
|
|
739
|
+
engagementEndpoints,
|
|
740
|
+
entitlementEndpoints,
|
|
301
741
|
evaluatorReaderFactories,
|
|
302
742
|
evmWalletOn,
|
|
743
|
+
galleryEndpoints,
|
|
744
|
+
grantEndpoints,
|
|
745
|
+
groupEndpoints,
|
|
303
746
|
hostEnvironmentPath,
|
|
304
747
|
hostEnvironmentSchema,
|
|
305
748
|
httpsOriginSchema,
|
|
306
749
|
identityIntegrationAccountVouchingInputSchema,
|
|
307
750
|
identityIntegrationAppSecretSchema,
|
|
751
|
+
identityIntegrationEndpoints,
|
|
308
752
|
identityIntegrationInputSchema,
|
|
309
753
|
identityIntegrationKeySchema,
|
|
310
754
|
identityIntegrationSchema,
|
|
311
755
|
identityIntegrationSecretSchema,
|
|
312
756
|
identityKindClaimSchema,
|
|
313
757
|
idlTooLarge,
|
|
758
|
+
imageEndpoints,
|
|
314
759
|
inWindow,
|
|
760
|
+
integrationEndpoints,
|
|
761
|
+
inventoryEndpoints,
|
|
315
762
|
isBoundSetting,
|
|
316
763
|
isIntegrationParticipantPath,
|
|
317
764
|
isParticipantRoute,
|
|
765
|
+
leaderboardEndpoints,
|
|
318
766
|
lifetime,
|
|
319
767
|
littleEndianBytes,
|
|
768
|
+
liveAppEndpoints,
|
|
320
769
|
loopbackHosts,
|
|
770
|
+
managementEndpoint,
|
|
321
771
|
managementTransport,
|
|
322
772
|
maxAnchorIdlBytes,
|
|
773
|
+
memberEndpoints,
|
|
774
|
+
memberImportEndpoints,
|
|
775
|
+
metricsEndpoints,
|
|
323
776
|
nextScheduleRun,
|
|
324
777
|
normalizeDashboard,
|
|
778
|
+
offerEndpoints,
|
|
779
|
+
ok,
|
|
780
|
+
operationEndpoints,
|
|
781
|
+
pageEndpoints,
|
|
325
782
|
parseImageExtraction,
|
|
326
783
|
parseImageResult,
|
|
327
784
|
parseSolanaSeeds,
|
|
328
785
|
parseStationCodeLink,
|
|
786
|
+
participantEndpoints,
|
|
329
787
|
participantExchangeAccountResultSchema,
|
|
330
788
|
participantExchangeAccountsSchema,
|
|
331
789
|
participantExchangeResultSchema,
|
|
332
790
|
participantExchangeSchema,
|
|
333
791
|
participantRoutePattern,
|
|
334
792
|
participantRoutes,
|
|
793
|
+
playgroundEndpoints,
|
|
794
|
+
pluginEndpoints,
|
|
795
|
+
pointEndpoints,
|
|
796
|
+
pointLedgerEndpoints,
|
|
797
|
+
profileEndpoints,
|
|
335
798
|
programMetadataIdlAddress,
|
|
336
799
|
programMetadataIdlBytes,
|
|
337
800
|
programMetadataProgram,
|
|
801
|
+
projectEndpoints,
|
|
802
|
+
promotionEndpoints,
|
|
803
|
+
providerEndpoints,
|
|
338
804
|
questConfiguration,
|
|
805
|
+
questEndpoints,
|
|
806
|
+
referralEndpoints,
|
|
339
807
|
registeredWallets,
|
|
808
|
+
releaseEndpoints,
|
|
809
|
+
repositoryEndpoints,
|
|
810
|
+
resourceArchiveEndpoints,
|
|
811
|
+
resourceEndpoints,
|
|
340
812
|
retryAfter,
|
|
341
813
|
retrying,
|
|
814
|
+
rewardDeliveryEndpoints,
|
|
815
|
+
routeNames,
|
|
816
|
+
routePath,
|
|
817
|
+
scheduleEndpoints,
|
|
342
818
|
schemaCheckedReader,
|
|
819
|
+
secretEndpoints,
|
|
343
820
|
secureOrLoopbackOrigin,
|
|
344
821
|
sequenceCursorSchema,
|
|
822
|
+
serviceKeyEndpoints,
|
|
823
|
+
sessionEndpoints,
|
|
824
|
+
simulationEndpoints,
|
|
345
825
|
solanaAddressBytes,
|
|
346
826
|
solanaProgramAddress,
|
|
347
827
|
solanaPublicEndpoints,
|
|
@@ -350,21 +830,34 @@ export {
|
|
|
350
830
|
sourceContent,
|
|
351
831
|
sourceDataSchema,
|
|
352
832
|
sourceRoles,
|
|
833
|
+
stagingEndpoints,
|
|
353
834
|
stationCodeLink,
|
|
354
835
|
stationPayLink,
|
|
355
836
|
stationQrSvg,
|
|
356
837
|
stationRefusal,
|
|
838
|
+
storageEndpoints,
|
|
357
839
|
storedIdlJson,
|
|
840
|
+
teamEndpoints,
|
|
841
|
+
testMemberEndpoints,
|
|
842
|
+
tieredRewardEndpoints,
|
|
843
|
+
tokenEndpoints,
|
|
358
844
|
trackerDataBatchSteps,
|
|
359
845
|
trackerDataIssue,
|
|
360
846
|
trackerDataIssues,
|
|
361
847
|
trackerDataPathTypes,
|
|
362
848
|
trackerDataRecordSteps,
|
|
849
|
+
trackerEndpoints,
|
|
850
|
+
usageEndpoints,
|
|
363
851
|
validateQuestShape,
|
|
364
852
|
walletBalances,
|
|
365
853
|
walletNfts,
|
|
854
|
+
walletProgramAccounts,
|
|
855
|
+
walletProgramActivity,
|
|
366
856
|
walletSignatureValid,
|
|
857
|
+
walletStake,
|
|
858
|
+
webhookEndpoints,
|
|
367
859
|
whereSchemaIssue,
|
|
368
860
|
whereSettings,
|
|
861
|
+
withoutPatterns,
|
|
369
862
|
zeroCopyAccount
|
|
370
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
|
|
@@ -956,5 +956,5 @@ type Limits = {
|
|
|
956
956
|
/** Relay's platform limits. A 1.x release can raise them, so read them here at run time. */
|
|
957
957
|
declare const limits: Limits;
|
|
958
958
|
|
|
959
|
-
export {
|
|
960
|
-
export type { AnalyticsQuest as $, AnalyticsMetricId as A, Extracted as E, ImageReader as I, Limits as L, AnalyticsQuery as N, AnalyticsRead as O, PublishedImage as P, AnalyticsCatalog as Q, AnalyticsMetricQuery as R, AnalyticsMetricResult as S, AnalyticsBreakdown as T, AnalyticsBreakdownRow as U, AnalyticsCatalogEntry as V, AnalyticsChart as W, XReader as X, AnalyticsFilter as Y, AnalyticsMetric as Z, AnalyticsMetricKind as _, AnalyticsRange as a0,
|
|
959
|
+
export { publishedImageSchema as B, xConnectionSchema as C, xIdSchema as D, xPostSchema as F, xProfileSchema as G, xRequestSchema as H, xUserLookupInputSchema as J, xUserSchema as K, xUsernameSchema as M, analyticsCatalog as a, analyticsBreakdowns as a1, analyticsCatalogSchema as a2, analyticsCharts as a3, analyticsFilters as a4, analyticsMetricIds as a5, analyticsMetricQuerySchema as a6, analyticsMetricResultSchema as a7, analyticsQueryLimit as a8, analyticsQuerySchema as a9, analyticsRanges as aa, analyticsReadSchema as ab, limits as l, imageAssetArtifactSchema as p, imageComparisonSchema as q, imageExtractionSchema as r, imageFieldSchema as s, imageFieldsSchema as t, imageInspectionSchema as u, imageReferenceSchema as v, imageRequestSchema as w, imageSightingsSchema as x, imageUploadRequestSchema as y, imageUploadsSchema as z };
|
|
960
|
+
export type { AnalyticsQuest as $, AnalyticsMetricId as A, Extracted as E, ImageReader as I, Limits as L, AnalyticsQuery as N, AnalyticsRead as O, PublishedImage as P, AnalyticsCatalog as Q, AnalyticsMetricQuery as R, AnalyticsMetricResult as S, AnalyticsBreakdown as T, AnalyticsBreakdownRow as U, AnalyticsCatalogEntry as V, AnalyticsChart as W, XReader as X, AnalyticsFilter as Y, AnalyticsMetric as Z, AnalyticsMetricKind as _, AnalyticsRange as a0, ImageAssetArtifact as b, ImageComparison as c, ImageExtraction as d, ImageFields as e, ImageInspection as f, ImageReference as g, ImageRequest as h, ImageSightings as i, XConnection as j, XPost as k, XProfile as m, XUser as n, XUserLookupInput as o };
|
|
@@ -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.
|