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