@domino-sdk/relay 1.11.0 → 1.14.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 (54) hide show
  1. package/README.md +1 -0
  2. package/build.mjs +15 -0
  3. package/dist/accounts-5ciAkCMP.d.ts +147 -0
  4. package/dist/{activity-CNiPDPK6.d.ts → activity-D_R3J-gU.d.ts} +115 -115
  5. package/dist/attempt-captures-DZldPZJc.d.ts +285 -0
  6. package/dist/authoring.d.ts +49 -47
  7. package/dist/authoring.js +8 -6
  8. package/dist/{automatic-outcomes-kPIDv6X_.d.ts → automatic-outcomes-6lJGnSDe.d.ts} +1 -1
  9. package/dist/browser.d.ts +8 -7
  10. package/dist/browser.js +9 -8
  11. package/dist/capability-error-oTd3eYFH.d.ts +151 -0
  12. package/dist/chunk-2UAVZCMH.js +314 -0
  13. package/dist/{chunk-GXT4S5IK.js → chunk-46C33ASD.js} +37 -4
  14. package/dist/{chunk-ULU5ZF6R.js → chunk-4OLQYRSA.js} +1 -1
  15. package/dist/chunk-5TS3OAWS.js +470 -0
  16. package/dist/{chunk-CFTTECZZ.js → chunk-6DD7DVNQ.js} +2 -2
  17. package/dist/{chunk-DG4QQUH7.js → chunk-C3CB4WIQ.js} +1 -1
  18. package/dist/{chunk-GKTD36JW.js → chunk-LLMJ2SUT.js} +7 -3
  19. package/dist/chunk-NIYCAW2I.js +79 -0
  20. package/dist/{chunk-TV2GYBDZ.js → chunk-PT5STHFH.js} +1 -1
  21. package/dist/chunk-UJACD6K2.js +987 -0
  22. package/dist/{chunk-U4KTGJWU.js → chunk-VBHFJH3P.js} +82 -30
  23. package/dist/chunk-W335CWYJ.js +53 -0
  24. package/dist/{chunk-7JHREQ2D.js → chunk-XMBM2XD5.js} +1 -1
  25. package/dist/{chunk-FISNMJN3.js → chunk-ZGH6NEG6.js} +1 -1
  26. package/dist/{chunk-UIBDEAP2.js → chunk-ZLYBUM7K.js} +158 -59
  27. package/dist/{client-Dz14Kuu8.d.ts → client-BTd_CyX3.d.ts} +26 -6
  28. package/dist/{groups-BK8ts2yK.d.ts → groups-4Jb3uYFO.d.ts} +1 -1
  29. package/dist/{images-aw6W7vFZ.d.ts → images-D5kpqHxv.d.ts} +1 -1
  30. package/dist/index.d.ts +9 -8
  31. package/dist/index.js +10 -8
  32. package/dist/{capability-error-ty3SqD_b.d.ts → integrations-Cr9EhGI_.d.ts} +1 -149
  33. package/dist/internal.d.ts +32 -5
  34. package/dist/internal.js +12 -7
  35. package/dist/{offers-C2FANzrG.d.ts → offers-BFI5t-e-.d.ts} +2 -2
  36. package/dist/{pages-tSpttGrI.d.ts → pages-nIoMT9J3.d.ts} +2 -1
  37. package/dist/{participant-activity-DkL3nY5a.d.ts → participant-activity-DYdUUhw2.d.ts} +1 -0
  38. package/dist/portal-proxy.js +3 -3
  39. package/dist/react/index.d.ts +246 -177
  40. package/dist/react/index.js +956 -385
  41. package/dist/{referral-reward-kinds-M3f0PdiR.d.ts → referral-reward-kinds-DnvQXL8L.d.ts} +100 -3
  42. package/dist/{schema-DEM8y8Fm.d.ts → schema-K-Pg5lPz.d.ts} +1 -1
  43. package/dist/schema.d.ts +316 -314
  44. package/dist/schema.js +19 -17
  45. package/dist/server/index.d.ts +2546 -377
  46. package/dist/server/index.js +973 -987
  47. package/dist/{sign-in-options-rPCsFr7w.d.ts → sign-in-options-DBjMzgnu.d.ts} +2 -2
  48. package/dist/submission-input-CPIsJt-_.d.ts +146 -0
  49. package/dist/testing.d.ts +641 -0
  50. package/dist/testing.js +1282 -0
  51. package/package.json +6 -2
  52. package/dist/chunk-DJOGMLYT.js +0 -171
  53. package/dist/chunk-KLF7XABH.js +0 -1295
  54. package/dist/submission-input-BbBJTVlT.d.ts +0 -290
@@ -1,3 +1,7 @@
1
+ import {
2
+ attemptCaptureSchema,
3
+ capturedFactSchema
4
+ } from "../chunk-NIYCAW2I.js";
1
5
  import {
2
6
  activityTypeSchema,
3
7
  activityTypes,
@@ -21,29 +25,38 @@ import {
21
25
  publishDeploymentSchema,
22
26
  rejectDeploymentSchema,
23
27
  submitDeploymentSchema
24
- } from "../chunk-UIBDEAP2.js";
28
+ } from "../chunk-ZLYBUM7K.js";
25
29
  import "../chunk-MC6V6VMG.js";
26
30
  import {
31
+ DEFAULT_MANAGEMENT_TIMEOUT,
32
+ ManagementError,
33
+ ManagementErrorCode,
27
34
  REFERRAL_INTEGRATION_REWARD_ERROR,
35
+ actionIdOf,
28
36
  containsReferralIntegrationReward,
29
37
  identityIntegrationInputSchema,
30
38
  identityIntegrationSchema,
31
39
  identityIntegrationSecretSchema,
32
40
  identityKindClaimSchema,
33
- parseImageExtraction,
34
- parseImageResult,
41
+ isManagementError,
42
+ managementErrorSchema,
43
+ managementTransport,
35
44
  participantExchangeSchema,
36
45
  questConfiguration,
37
46
  sequenceCursorSchema
38
- } from "../chunk-DJOGMLYT.js";
47
+ } from "../chunk-5TS3OAWS.js";
48
+ import {
49
+ parseImageExtraction,
50
+ parseImageResult
51
+ } from "../chunk-W335CWYJ.js";
39
52
  import {
40
53
  imageAssetArtifactSchema
41
- } from "../chunk-FISNMJN3.js";
54
+ } from "../chunk-ZGH6NEG6.js";
42
55
  import {
43
56
  sourceDataSchema,
44
57
  sourceRoles,
45
58
  validateQuestShape
46
- } from "../chunk-ULU5ZF6R.js";
59
+ } from "../chunk-4OLQYRSA.js";
47
60
  import {
48
61
  isIntegrationParticipantPath,
49
62
  isParticipantRoute,
@@ -52,7 +65,7 @@ import {
52
65
  } from "../chunk-AXRMT33W.js";
53
66
  import {
54
67
  withActionId
55
- } from "../chunk-7JHREQ2D.js";
68
+ } from "../chunk-XMBM2XD5.js";
56
69
  import {
57
70
  allocateQuestSchema,
58
71
  allocatedQuestSchema,
@@ -70,9 +83,8 @@ import {
70
83
  rewardDeliveriesSchema,
71
84
  rewardDeliverySchema,
72
85
  saveQuestDraftSchema
73
- } from "../chunk-GKTD36JW.js";
86
+ } from "../chunk-LLMJ2SUT.js";
74
87
  import {
75
- cosmosNetworkSchema,
76
88
  createPointLedgerSchema,
77
89
  engagementBoundaryPageSchema,
78
90
  engagementChangePreviewInputSchema,
@@ -85,7 +97,6 @@ import {
85
97
  engagementRuleVersionPageSchema,
86
98
  engagementVersionPageSchema,
87
99
  engagementVersionQuerySchema,
88
- evmChainIdSchema,
89
100
  leaderboardExclusionSchema,
90
101
  leaderboardGroupSchema,
91
102
  leaderboardPageSchema,
@@ -93,7 +104,6 @@ import {
93
104
  leaderboardSettlementApprovalSchema,
94
105
  leaderboardSettlementSchema,
95
106
  leaderboardSettlementSummarySchema,
96
- linkedWalletSchema,
97
107
  managedPointHistoryPageSchema,
98
108
  managedPointLedgerSchema,
99
109
  managedProfileSchema,
@@ -116,27 +126,21 @@ import {
116
126
  referralManagementSchema,
117
127
  referralQualificationSchema,
118
128
  referralRewardResolutionSchema,
119
- referralSuspensionSchema,
129
+ referralSuspensionSchema
130
+ } from "../chunk-UJACD6K2.js";
131
+ import {
132
+ cosmosNetworkSchema,
133
+ evmChainIdSchema,
134
+ linkedWalletSchema,
120
135
  solanaMainnet,
121
136
  walletBalanceSchema,
122
137
  walletSignInNetworksSchema,
123
138
  walletUnlinkInputSchema
124
- } from "../chunk-KLF7XABH.js";
125
- import {
126
- MANAGEMENT_TIMEOUT,
127
- lifetime,
128
- retryAfter,
129
- retrying,
130
- validTimeout
131
- } from "../chunk-6QJ3LADK.js";
132
- import {
133
- RequestError,
134
- isRequestError
135
- } from "../chunk-NPGENI7K.js";
136
- import {
137
- clientIdentity
138
- } from "../chunk-DG4QQUH7.js";
139
- import "../chunk-TV2GYBDZ.js";
139
+ } from "../chunk-2UAVZCMH.js";
140
+ import "../chunk-6QJ3LADK.js";
141
+ import "../chunk-NPGENI7K.js";
142
+ import "../chunk-C3CB4WIQ.js";
143
+ import "../chunk-PT5STHFH.js";
140
144
  import {
141
145
  CompletionSourceKind,
142
146
  addGroupMemberSchema,
@@ -167,6 +171,7 @@ import {
167
171
  groupPageSchema,
168
172
  identifier,
169
173
  knownResponse,
174
+ lazyResponseReaders,
170
175
  managedGroupSchema,
171
176
  managementStateQuerySchema,
172
177
  memberCampaignEnrollmentInputSchema,
@@ -209,7 +214,7 @@ import {
209
214
  trackerTriggerOutcomeQuerySchema,
210
215
  updateGroupSchema,
211
216
  whereSchemaIssue
212
- } from "../chunk-GXT4S5IK.js";
217
+ } from "../chunk-46C33ASD.js";
213
218
 
214
219
  // src/server/identity-links.ts
215
220
  import { z } from "zod";
@@ -552,78 +557,13 @@ var resourceArchiveInputSchema = resourceLifecycleInputSchema.omit({
552
557
  });
553
558
 
554
559
  // src/server/index.ts
555
- import { z as z13 } from "zod";
556
-
557
- // src/server/errors.ts
558
- import { z as z8 } from "zod";
559
- var ManagementErrorCode = {
560
- /** The input or an option failed validation before anything was sent (kind `client`). */
561
- InvalidInput: "invalid-input",
562
- /** The client's `getToken` failed before anything was sent (kind `client` or `network`). */
563
- Credential: "credential",
564
- Network: "network",
565
- Timeout: "timeout",
566
- Aborted: "aborted",
567
- InvalidResponse: "invalid-response"
568
- };
569
- var managementErrorSchema = z8.looseObject({
570
- error: z8.string(),
571
- code: z8.string().optional()
572
- });
573
- var uncertainStatuses = /* @__PURE__ */ new Set([500, 502, 504]);
574
- function uncertainOutcome(init) {
575
- if (init.method === void 0 || init.method === "GET") {
576
- return false;
577
- }
578
- switch (init.kind) {
579
- case "network":
580
- case "timeout":
581
- case "aborted":
582
- return true;
583
- case "http":
584
- return uncertainStatuses.has(init.status ?? 0);
585
- case "invalid-response":
586
- return (init.status ?? 0) >= 200 && (init.status ?? 0) < 300;
587
- default:
588
- return false;
589
- }
590
- }
591
- var managementErrorBrand = /* @__PURE__ */ Symbol.for("@domino-sdk/relay.ManagementError");
592
- function isManagementError(value) {
593
- return isRequestError(value) && value[managementErrorBrand] === true;
594
- }
595
- var ManagementError = class extends RequestError {
596
- name = "ManagementError";
597
- [managementErrorBrand] = true;
598
- /** The rest of the server's error body besides `error` and `code`, such as `moved`; absent when there is none. */
599
- details;
600
- /** The request's method; absent when the call failed before forming a request. */
601
- method;
602
- /** The management API path, below `/management/v1`, without its query; absent like `method`. */
603
- path;
604
- constructor(init) {
605
- super(init.message, {
606
- kind: init.kind,
607
- uncertain: init.uncertain ?? uncertainOutcome(init),
608
- status: init.status,
609
- code: init.code,
610
- operationId: init.actionId,
611
- replaySafe: init.replaySafe,
612
- retryAfter: init.retryAfter,
613
- cause: init.cause
614
- });
615
- this.details = init.details && Object.keys(init.details).length ? init.details : void 0;
616
- this.method = init.method;
617
- this.path = init.path;
618
- }
619
- };
620
- var DEFAULT_MANAGEMENT_TIMEOUT = MANAGEMENT_TIMEOUT;
560
+ import { z as z12 } from "zod";
621
561
 
622
562
  // src/server/hosting.ts
623
- import { z as z10 } from "zod";
563
+ import { z as z9 } from "zod";
624
564
 
625
565
  // src/server/starters.ts
626
- import { z as z9 } from "zod";
566
+ import { z as z8 } from "zod";
627
567
  var starterTemplates = [
628
568
  {
629
569
  id: "campaign",
@@ -656,63 +596,63 @@ var starterTemplates = [
656
596
  summary: "A headless Worker with typed routes and interactive API docs, for plugging Domino into your own product."
657
597
  }
658
598
  ];
659
- var starterIdSchema = z9.enum(
599
+ var starterIdSchema = z8.enum(
660
600
  starterTemplates.map((template) => template.id)
661
601
  );
662
602
 
663
603
  // src/server/hosting.ts
664
- var outputPathSchema = z10.string().min(1).max(512).refine(
604
+ var outputPathSchema = z9.string().min(1).max(512).refine(
665
605
  (path) => path.split("/").every(
666
606
  (part) => /^[\w-][\w.-]*$/.test(part) && part !== "node_modules"
667
607
  ),
668
608
  "Expected a relative build output path without hidden segments"
669
609
  );
670
- var appRoutingSchema = z10.enum(["legacy", "transparent"]).default("legacy");
610
+ var appRoutingSchema = z9.enum(["legacy", "transparent"]).default("legacy");
671
611
  var APP_SECRET_LIMIT = 50;
672
612
  var APP_KV_LIMIT = 5;
673
613
  var APP_SQL_LIMIT = 5;
674
614
  var APP_MIGRATION_LIMIT = 100;
675
615
  var APP_MIGRATION_FILE_BYTES = 9e4;
676
616
  var APP_MIGRATION_TOTAL_BYTES = 1e6;
677
- var appSecretNameSchema = z10.string().regex(
617
+ var appSecretNameSchema = z9.string().regex(
678
618
  /^[A-Z_][A-Z0-9_]{0,63}$/,
679
619
  "Use 1-64 uppercase letters, digits, and underscores, not starting with a digit"
680
620
  ).refine(
681
621
  (name) => !name.startsWith("DOMINO_") && name !== "ASSETS",
682
622
  "DOMINO_ names and ASSETS are reserved for Domino's own bindings"
683
623
  );
684
- var appSecretValueSchema = z10.string().min(1).refine(
624
+ var appSecretValueSchema = z9.string().min(1).refine(
685
625
  (value) => new TextEncoder().encode(value).length <= 5120,
686
626
  "Secret values can be at most 5 KiB"
687
627
  );
688
- var appSecretInputSchema = z10.object({ value: appSecretValueSchema }).strict();
689
- var appSecretSchema = z10.object({
628
+ var appSecretInputSchema = z9.object({ value: appSecretValueSchema }).strict();
629
+ var appSecretSchema = z9.object({
690
630
  name: appSecretNameSchema,
691
- updatedAt: z10.number(),
692
- updatedBy: z10.string()
631
+ updatedAt: z9.number(),
632
+ updatedBy: z9.string()
693
633
  });
694
- var appSecretDeclarationSchema = z10.object({
695
- description: z10.string().trim().min(1).max(500),
696
- required: z10.boolean().default(true)
634
+ var appSecretDeclarationSchema = z9.object({
635
+ description: z9.string().trim().min(1).max(500),
636
+ required: z9.boolean().default(true)
697
637
  }).strict();
698
- var appSecretDeclarationsSchema = z10.record(appSecretNameSchema, appSecretDeclarationSchema).refine(
638
+ var appSecretDeclarationsSchema = z9.record(appSecretNameSchema, appSecretDeclarationSchema).refine(
699
639
  (secrets) => Object.keys(secrets).length <= APP_SECRET_LIMIT,
700
640
  `Declare at most ${APP_SECRET_LIMIT} app secrets`
701
641
  );
702
- var appSecretListSchema = z10.object({
703
- secrets: z10.array(appSecretSchema),
704
- declared: z10.array(appSecretDeclarationSchema.extend({ name: appSecretNameSchema })).default([])
642
+ var appSecretListSchema = z9.object({
643
+ secrets: z9.array(appSecretSchema),
644
+ declared: z9.array(appSecretDeclarationSchema.extend({ name: appSecretNameSchema })).default([])
705
645
  });
706
- var hostedAppSecretsSchema = z10.object({ secrets: z10.record(appSecretNameSchema, appSecretValueSchema) }).strict();
707
- var storageDescription = z10.object({
708
- description: z10.string().trim().min(1).max(500)
646
+ var hostedAppSecretsSchema = z9.object({ secrets: z9.record(appSecretNameSchema, appSecretValueSchema) }).strict();
647
+ var storageDescription = z9.object({
648
+ description: z9.string().trim().min(1).max(500)
709
649
  }).strict();
710
- var appStorageSchema = z10.object({
711
- kv: z10.record(appSecretNameSchema, storageDescription).refine(
650
+ var appStorageSchema = z9.object({
651
+ kv: z9.record(appSecretNameSchema, storageDescription).refine(
712
652
  (stores) => Object.keys(stores).length <= APP_KV_LIMIT,
713
653
  `Declare at most ${APP_KV_LIMIT} KV stores`
714
654
  ).default({}),
715
- sql: z10.record(
655
+ sql: z9.record(
716
656
  appSecretNameSchema,
717
657
  storageDescription.extend({
718
658
  migrations: outputPathSchema.optional()
@@ -722,60 +662,60 @@ var appStorageSchema = z10.object({
722
662
  `Declare at most ${APP_SQL_LIMIT} SQL stores`
723
663
  ).default({})
724
664
  }).strict();
725
- var appStorageKindSchema = z10.enum(["kv", "sql"]);
726
- var appStorageListSchema = z10.object({
727
- stores: z10.array(
728
- z10.object({
729
- kind: z10.string(),
665
+ var appStorageKindSchema = z9.enum(["kv", "sql"]);
666
+ var appStorageListSchema = z9.object({
667
+ stores: z9.array(
668
+ z9.object({
669
+ kind: z9.string(),
730
670
  name: appSecretNameSchema,
731
- createdAt: z10.number().nullable(),
732
- declared: z10.boolean(),
733
- description: z10.string().optional()
671
+ createdAt: z9.number().nullable(),
672
+ declared: z9.boolean(),
673
+ description: z9.string().optional()
734
674
  })
735
675
  )
736
676
  });
737
677
  var APP_STORAGE_ROW_LIMIT = 50;
738
678
  var APP_STORAGE_PREVIEW_CHARACTERS = 2e3;
739
- var appStorageCellSchema = z10.union([
740
- z10.string(),
741
- z10.number(),
742
- z10.null(),
743
- z10.object({ text: z10.string(), truncated: z10.literal(true) }),
744
- z10.object({ blob: z10.number().int().min(0) })
679
+ var appStorageCellSchema = z9.union([
680
+ z9.string(),
681
+ z9.number(),
682
+ z9.null(),
683
+ z9.object({ text: z9.string(), truncated: z9.literal(true) }),
684
+ z9.object({ blob: z9.number().int().min(0) })
745
685
  ]);
746
- var appStorageTablesSchema = z10.object({
747
- tables: z10.array(
686
+ var appStorageTablesSchema = z9.object({
687
+ tables: z9.array(
748
688
  /** `kind` is SQLite's: `table` or `view`. */
749
- z10.object({ name: z10.string(), kind: z10.string() })
689
+ z9.object({ name: z9.string(), kind: z9.string() })
750
690
  )
751
691
  });
752
- var appStorageRowsSchema = z10.object({
753
- table: z10.string(),
754
- columns: z10.array(z10.string()),
755
- rows: z10.array(z10.array(appStorageCellSchema)),
692
+ var appStorageRowsSchema = z9.object({
693
+ table: z9.string(),
694
+ columns: z9.array(z9.string()),
695
+ rows: z9.array(z9.array(appStorageCellSchema)),
756
696
  /** How many rows come before this page in storage order. */
757
- offset: z10.number().int().min(0),
758
- total: z10.number().int().min(0),
697
+ offset: z9.number().int().min(0),
698
+ total: z9.number().int().min(0),
759
699
  /** Pass back as `cursor` for the next page; null on the last one. */
760
700
  nextCursor: pageCursorSchema.nullable().default(null)
761
701
  });
762
- var appStorageKeysSchema = z10.object({
763
- keys: z10.array(
764
- z10.object({ name: z10.string(), expiration: z10.number().nullable() })
702
+ var appStorageKeysSchema = z9.object({
703
+ keys: z9.array(
704
+ z9.object({ name: z9.string(), expiration: z9.number().nullable() })
765
705
  ),
766
706
  /** Pass back as `cursor` for the next page; null on the last one. */
767
707
  nextCursor: pageCursorSchema.nullable().default(null),
768
708
  /** @deprecated Use `nextCursor`. Removed in 2.0.0. */
769
- cursor: z10.string().nullable()
709
+ cursor: z9.string().nullable()
770
710
  });
771
- var appStorageValueSchema = z10.object({
772
- key: z10.string(),
773
- size: z10.number().int().min(0),
711
+ var appStorageValueSchema = z9.object({
712
+ key: z9.string(),
713
+ size: z9.number().int().min(0),
774
714
  /** Null when the value is not UTF-8 text. */
775
- text: z10.string().nullable(),
776
- truncated: z10.boolean()
715
+ text: z9.string().nullable(),
716
+ truncated: z9.boolean()
777
717
  });
778
- var appMigrationNameSchema = z10.string().max(255).regex(/^[\w-][\w.-]*\.sql$/);
718
+ var appMigrationNameSchema = z9.string().max(255).regex(/^[\w-][\w.-]*\.sql$/);
779
719
  function compareAppMigrations(a, b) {
780
720
  const left = Number.parseInt(a.split("_")[0], 10);
781
721
  const right = Number.parseInt(b.split("_")[0], 10);
@@ -792,12 +732,12 @@ function compareAppMigrations(a, b) {
792
732
  }
793
733
  return a < b ? -1 : a > b ? 1 : 0;
794
734
  }
795
- var appMigrationsSchema = z10.record(
735
+ var appMigrationsSchema = z9.record(
796
736
  appSecretNameSchema,
797
- z10.array(
798
- z10.object({
737
+ z9.array(
738
+ z9.object({
799
739
  name: appMigrationNameSchema,
800
- sql: z10.string().min(1).refine(
740
+ sql: z9.string().min(1).refine(
801
741
  (sql) => new TextEncoder().encode(sql).length <= APP_MIGRATION_FILE_BYTES,
802
742
  `A migration file must not exceed ${APP_MIGRATION_FILE_BYTES} bytes`
803
743
  )
@@ -815,21 +755,21 @@ var appMigrationsSchema = z10.record(
815
755
  );
816
756
  var appScripts = {
817
757
  routing: appRoutingSchema,
818
- devScript: z10.string().regex(/^[\w:-]+$/),
819
- checkScript: z10.string().regex(/^[\w:-]+$/),
820
- buildScript: z10.string().regex(/^[\w:-]+$/)
758
+ devScript: z9.string().regex(/^[\w:-]+$/),
759
+ checkScript: z9.string().regex(/^[\w:-]+$/),
760
+ buildScript: z9.string().regex(/^[\w:-]+$/)
821
761
  };
822
762
  var workerSettings = {
823
- runWorkerFirst: z10.boolean().default(false),
763
+ runWorkerFirst: z9.boolean().default(false),
824
764
  main: outputPathSchema.refine(
825
765
  (path) => /\.m?js$/.test(path),
826
766
  "Expected a compiled JavaScript entry"
827
767
  ),
828
- compatibilityDate: z10.string().regex(/^\d{4}-\d{2}-\d{2}$/),
829
- compatibilityFlags: z10.array(z10.string().min(1)).max(50).default([]),
830
- vars: z10.record(
831
- z10.string().regex(/^[A-Za-z_][A-Za-z0-9_]*$/).refine((name) => name !== "ASSETS"),
832
- z10.string()
768
+ compatibilityDate: z9.string().regex(/^\d{4}-\d{2}-\d{2}$/),
769
+ compatibilityFlags: z9.array(z9.string().min(1)).max(50).default([]),
770
+ vars: z9.record(
771
+ z9.string().regex(/^[A-Za-z_][A-Za-z0-9_]*$/).refine((name) => name !== "ASSETS"),
772
+ z9.string()
833
773
  ).default({}),
834
774
  secrets: appSecretDeclarationsSchema.default({}),
835
775
  storage: appStorageSchema.optional()
@@ -857,62 +797,62 @@ var distinctBindings = (worker, ctx) => {
857
797
  }
858
798
  }
859
799
  };
860
- var hostedAppSchema = z10.discriminatedUnion("kind", [
861
- z10.object({
862
- kind: z10.literal("static"),
800
+ var hostedAppSchema = z9.discriminatedUnion("kind", [
801
+ z9.object({
802
+ kind: z9.literal("static"),
863
803
  directory: outputPathSchema,
864
804
  ...appScripts
865
805
  }).strict(),
866
- z10.object({
867
- kind: z10.literal("worker"),
806
+ z9.object({
807
+ kind: z9.literal("worker"),
868
808
  directory: outputPathSchema,
869
809
  assetsDirectory: outputPathSchema.optional(),
870
810
  ...appScripts,
871
811
  ...workerSettings
872
812
  }).strict().superRefine(distinctBindings)
873
813
  ]);
874
- var repositorySchema = z10.object({
875
- id: z10.string().uuid(),
814
+ var repositorySchema = z9.object({
815
+ id: z9.string().uuid(),
876
816
  organization: identifier,
877
817
  project: identifier,
878
- remote: z10.string().url(),
879
- defaultBranch: z10.string(),
880
- status: z10.enum(["provisioning", "ready"])
818
+ remote: z9.string().url(),
819
+ defaultBranch: z9.string(),
820
+ status: z9.enum(["provisioning", "ready"])
881
821
  });
882
- var createRepositorySchema = z10.object({
822
+ var createRepositorySchema = z9.object({
883
823
  /** Omitted: the starter chosen at project setup, else `campaign`. */
884
824
  starter: starterIdSchema.optional()
885
825
  }).strict();
886
- var deviceStartSchema = z10.object({
887
- challenge: z10.string().regex(/^[a-f0-9]{64}$/)
826
+ var deviceStartSchema = z9.object({
827
+ challenge: z9.string().regex(/^[a-f0-9]{64}$/)
888
828
  }).strict();
889
- var deviceRedeemSchema = z10.object({
890
- id: z10.string().uuid(),
891
- verifier: z10.string().min(43).max(128)
829
+ var deviceRedeemSchema = z9.object({
830
+ id: z9.string().uuid(),
831
+ verifier: z9.string().min(43).max(128)
892
832
  }).strict();
893
- var deviceApproveSchema = z10.object({
894
- id: z10.string().uuid(),
895
- code: z10.string().regex(/^[A-F0-9]{4}-[A-F0-9]{4}$/)
833
+ var deviceApproveSchema = z9.object({
834
+ id: z9.string().uuid(),
835
+ code: z9.string().regex(/^[A-F0-9]{4}-[A-F0-9]{4}$/)
896
836
  }).strict();
897
- var commitSchema = z10.string().regex(/^[a-f0-9]{40}$/);
898
- var stageRequestSchema = z10.object({
837
+ var commitSchema = z9.string().regex(/^[a-f0-9]{40}$/);
838
+ var stageRequestSchema = z9.object({
899
839
  commit: commitSchema,
900
- requestId: z10.string().uuid()
840
+ requestId: z9.string().uuid()
901
841
  }).strict();
902
- var buildIdentitySchema = z10.object({
842
+ var buildIdentitySchema = z9.object({
903
843
  routing: appRoutingSchema,
904
- slug: z10.string().min(1).max(35).regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/).optional(),
905
- runtime: z10.enum(["simulation", "hosted-test"]).default("simulation"),
906
- id: z10.string().uuid(),
907
- repository: z10.string().uuid(),
844
+ slug: z9.string().min(1).max(35).regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/).optional(),
845
+ runtime: z9.enum(["simulation", "hosted-test"]).default("simulation"),
846
+ id: z9.string().uuid(),
847
+ repository: z9.string().uuid(),
908
848
  organization: identifier,
909
849
  project: identifier,
910
850
  commit: commitSchema,
911
- createdAt: z10.number(),
912
- actor: z10.string(),
913
- commitMessage: z10.string().max(500).optional()
851
+ createdAt: z9.number(),
852
+ actor: z9.string(),
853
+ commitMessage: z9.string().max(500).optional()
914
854
  });
915
- var buildPhaseSchema = z10.enum([
855
+ var buildPhaseSchema = z9.enum([
916
856
  "queued",
917
857
  "source",
918
858
  "install",
@@ -922,72 +862,72 @@ var buildPhaseSchema = z10.enum([
922
862
  "ready",
923
863
  "failed"
924
864
  ]);
925
- var buildStatusSchema = z10.object({
865
+ var buildStatusSchema = z9.object({
926
866
  phase: buildPhaseSchema,
927
867
  failedPhase: buildPhaseSchema.optional(),
928
- updatedAt: z10.number(),
929
- message: z10.string()
868
+ updatedAt: z9.number(),
869
+ message: z9.string()
930
870
  });
931
871
  var hostedBuildSchema = buildIdentitySchema.extend({
932
872
  ...buildStatusSchema.shape,
933
- finished: z10.boolean(),
934
- current: z10.boolean(),
935
- stagingUrl: z10.string().url()
936
- });
937
- var stagingAccessModeSchema = z10.enum(["console", "password"]);
938
- var stagingAccessSchema = z10.object({ mode: stagingAccessModeSchema });
939
- var stagingAccessInputSchema = z10.discriminatedUnion("mode", [
940
- z10.object({ mode: z10.literal("console") }).strict(),
941
- z10.object({
942
- mode: z10.literal("password"),
943
- password: z10.string().min(8).max(128)
873
+ finished: z9.boolean(),
874
+ current: z9.boolean(),
875
+ stagingUrl: z9.string().url()
876
+ });
877
+ var stagingAccessModeSchema = z9.enum(["console", "password"]);
878
+ var stagingAccessSchema = z9.object({ mode: stagingAccessModeSchema });
879
+ var stagingAccessInputSchema = z9.discriminatedUnion("mode", [
880
+ z9.object({ mode: z9.literal("console") }).strict(),
881
+ z9.object({
882
+ mode: z9.literal("password"),
883
+ password: z9.string().min(8).max(128)
944
884
  }).strict()
945
885
  ]);
946
- var stagingPathSchema = z10.string().max(2048).refine(
886
+ var stagingPathSchema = z9.string().max(2048).refine(
947
887
  (path) => path.startsWith("/") && !path.startsWith("//") && !path.includes("\\"),
948
888
  "Expected a path on the staging host"
949
889
  );
950
- var stagingLinkSchema = z10.object({
951
- url: z10.string().url(),
952
- expiresAt: z10.number()
890
+ var stagingLinkSchema = z9.object({
891
+ url: z9.string().url(),
892
+ expiresAt: z9.number()
953
893
  });
954
- var buildSnapshotSchema = z10.object({
955
- builds: z10.array(hostedBuildSchema),
894
+ var buildSnapshotSchema = z9.object({
895
+ builds: z9.array(hostedBuildSchema),
956
896
  current: hostedBuildSchema.nullable(),
957
897
  selected: hostedBuildSchema.nullable(),
958
- logs: z10.string()
898
+ logs: z9.string()
959
899
  });
960
- var assetPathSchema = z10.string().max(512).refine(
900
+ var assetPathSchema = z9.string().max(512).refine(
961
901
  (path) => path.startsWith("/") && // oxlint-disable-next-line no-control-regex -- Asset paths must reject control characters.
962
902
  !/[\\\u0000-\u001f?#%]/.test(path) && path.slice(1).split("/").every((part) => part.length > 0 && !part.startsWith(".")),
963
903
  "Expected a public asset path without hidden segments"
964
904
  );
965
- var base64Schema = z10.string().regex(/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/);
905
+ var base64Schema = z9.string().regex(/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/);
966
906
  var stagedDeploymentLimits = {
967
907
  /** Bytes of JSON, uncompressed. */
968
908
  size: 64e6,
969
909
  /** Bytes of the Brotli-compressed object. */
970
910
  compressedSize: 1e7
971
911
  };
972
- var stagedDeploymentSchema = z10.object({
973
- encoding: z10.literal("br"),
974
- sha256: z10.string().regex(/^[0-9a-f]{64}$/),
975
- compressedSize: z10.number().int().positive().max(stagedDeploymentLimits.compressedSize),
976
- size: z10.number().int().positive().max(stagedDeploymentLimits.size)
912
+ var stagedDeploymentSchema = z9.object({
913
+ encoding: z9.literal("br"),
914
+ sha256: z9.string().regex(/^[0-9a-f]{64}$/),
915
+ compressedSize: z9.number().int().positive().max(stagedDeploymentLimits.compressedSize),
916
+ size: z9.number().int().positive().max(stagedDeploymentLimits.size)
977
917
  }).strict();
978
918
  var stagedDeploymentContentSchema = stagedDeploymentSchema.extend({
979
- content: z10.string().max(Math.ceil(stagedDeploymentLimits.compressedSize / 3) * 4)
919
+ content: z9.string().max(Math.ceil(stagedDeploymentLimits.compressedSize / 3) * 4)
980
920
  }).strict();
981
921
  var stagedDeploymentKey = (build, sha256) => `builds/${build}/deployment/${sha256}.br`;
982
922
  var artifactFields = {
983
923
  routing: appRoutingSchema,
984
- worker: z10.object({
924
+ worker: z9.object({
985
925
  ...workerSettings,
986
926
  migrations: appMigrationsSchema.optional(),
987
- modules: z10.array(
988
- z10.object({
927
+ modules: z9.array(
928
+ z9.object({
989
929
  path: outputPathSchema.refine((path) => path !== "metadata"),
990
- type: z10.enum([
930
+ type: z9.enum([
991
931
  "application/javascript+module",
992
932
  "application/wasm",
993
933
  "text/plain",
@@ -997,26 +937,26 @@ var artifactFields = {
997
937
  }).strict()
998
938
  ).min(1).max(500)
999
939
  }).strict().superRefine(distinctBindings).optional(),
1000
- assets: z10.array(
1001
- z10.object({
940
+ assets: z9.array(
941
+ z9.object({
1002
942
  path: assetPathSchema,
1003
943
  content: base64Schema.max(14e6),
1004
- size: z10.number().int().min(0).max(1e7)
944
+ size: z9.number().int().min(0).max(1e7)
1005
945
  }).strict()
1006
946
  ).max(500)
1007
947
  };
1008
- var buildArtifactsSchema = z10.discriminatedUnion("format", [
1009
- z10.object({
1010
- format: z10.literal(1),
948
+ var buildArtifactsSchema = z9.discriminatedUnion("format", [
949
+ z9.object({
950
+ format: z9.literal(1),
1011
951
  ...artifactFields,
1012
- quests: z10.unknown(),
1013
- catalog: z10.unknown()
952
+ quests: z9.unknown(),
953
+ catalog: z9.unknown()
1014
954
  }).strict(),
1015
- z10.object({
1016
- format: z10.literal(2),
955
+ z9.object({
956
+ format: z9.literal(2),
1017
957
  ...artifactFields,
1018
958
  deployment: stagedDeploymentSchema,
1019
- images: z10.array(imageAssetArtifactSchema).max(10)
959
+ images: z9.array(imageAssetArtifactSchema).max(10)
1020
960
  }).strict()
1021
961
  ]).superRefine((value, ctx) => {
1022
962
  if (value.worker) {
@@ -1068,39 +1008,39 @@ var buildArtifactsSchema = z10.discriminatedUnion("format", [
1068
1008
  });
1069
1009
 
1070
1010
  // src/server/development.ts
1071
- import { z as z11 } from "zod";
1072
- var developmentPreflightSchema = z11.object({
1073
- organization: z11.string(),
1074
- project: z11.string(),
1075
- environment: z11.enum(["test", "live"]),
1076
- identity: z11.object({
1077
- exchange: z11.literal("supported"),
1078
- activeIntegrations: z11.number().int().nonnegative()
1011
+ import { z as z10 } from "zod";
1012
+ var developmentPreflightSchema = z10.object({
1013
+ organization: z10.string(),
1014
+ project: z10.string(),
1015
+ environment: z10.enum(["test", "live"]),
1016
+ identity: z10.object({
1017
+ exchange: z10.literal("supported"),
1018
+ activeIntegrations: z10.number().int().nonnegative()
1079
1019
  }).optional(),
1080
- staging: z11.enum(["configured", "blocked"]),
1081
- development: z11.object({
1082
- status: z11.enum(["configured", "blocked"]),
1020
+ staging: z10.enum(["configured", "blocked"]),
1021
+ development: z10.object({
1022
+ status: z10.enum(["configured", "blocked"]),
1083
1023
  // How `domino dev` reaches the preview origin: a Cloudflare tunnel, or a direct route on a
1084
1024
  // local development stack. APIs that predate the field use tunnels.
1085
- transport: z11.enum(["tunnel", "direct"]).default("tunnel"),
1086
- missing: z11.array(z11.string()),
1087
- authentication: z11.array(z11.string())
1025
+ transport: z10.enum(["tunnel", "direct"]).default("tunnel"),
1026
+ missing: z10.array(z10.string()),
1027
+ authentication: z10.array(z10.string())
1088
1028
  }),
1089
- checks: z11.array(
1090
- z11.object({
1091
- id: z11.string(),
1092
- status: z11.enum(["ok", "error"]),
1093
- message: z11.string(),
1094
- missing: z11.array(z11.string()).optional(),
1095
- issues: z11.array(z11.string()).optional()
1029
+ checks: z10.array(
1030
+ z10.object({
1031
+ id: z10.string(),
1032
+ status: z10.enum(["ok", "error"]),
1033
+ message: z10.string(),
1034
+ missing: z10.array(z10.string()).optional(),
1035
+ issues: z10.array(z10.string()).optional()
1096
1036
  })
1097
1037
  )
1098
1038
  });
1099
1039
 
1100
1040
  // src/server/hosted.ts
1101
- import { z as z12 } from "zod";
1041
+ import { z as z11 } from "zod";
1102
1042
  var hostedKeyPermissions = ["read", "points", "ingest"];
1103
- var hostedKeyPermissionList = z12.array(z12.string()).transform(
1043
+ var hostedKeyPermissionList = z11.array(z11.string()).transform(
1104
1044
  (values) => values.filter(
1105
1045
  (value) => hostedKeyPermissions.includes(value)
1106
1046
  )
@@ -1112,17 +1052,17 @@ var hostedManagementBindings = [
1112
1052
  "DOMINO_PROJECT",
1113
1053
  "DOMINO_ENVIRONMENT"
1114
1054
  ];
1115
- var hostedKeySecretSchema = z12.string().regex(/^dhk_[A-Za-z0-9_-]{43}$/, "Expected a hosted app key");
1116
- var hostedKeySchema = z12.object({
1117
- id: z12.string().uuid(),
1055
+ var hostedKeySecretSchema = z11.string().regex(/^dhk_[A-Za-z0-9_-]{43}$/, "Expected a hosted app key");
1056
+ var hostedKeySchema = z11.object({
1057
+ id: z11.string().uuid(),
1118
1058
  token: hostedKeySecretSchema,
1119
1059
  organization: identifier,
1120
1060
  project: identifier,
1121
- environment: z12.enum(["test", "live"]),
1061
+ environment: z11.enum(["test", "live"]),
1122
1062
  permissions: hostedKeyPermissionList,
1123
- expiresAt: z12.number().nullable()
1063
+ expiresAt: z11.number().nullable()
1124
1064
  }).strict();
1125
- var hostedDeploymentKeySchema = hostedKeySchema.extend({ apiUrl: z12.string().url() }).strict();
1065
+ var hostedDeploymentKeySchema = hostedKeySchema.extend({ apiUrl: z11.string().url() }).strict();
1126
1066
  function hostedManagementClient(env) {
1127
1067
  const missing = hostedManagementBindings.filter((name) => !env[name]);
1128
1068
  if (missing.length) {
@@ -1130,7 +1070,7 @@ function hostedManagementClient(env) {
1130
1070
  `Missing ${missing.join(", ")}. Domino sets these for hosted apps and domino dev; update the project's vite.config.ts to forward them in development.`
1131
1071
  );
1132
1072
  }
1133
- const environment = z12.enum(["test", "live"]).parse(env.DOMINO_ENVIRONMENT);
1073
+ const environment = z11.enum(["test", "live"]).parse(env.DOMINO_ENVIRONMENT);
1134
1074
  const token = env.DOMINO_MANAGEMENT_KEY;
1135
1075
  return createManagementClient({
1136
1076
  baseUrl: env.DOMINO_API_URL.replace(/\/+$/, ""),
@@ -1142,9 +1082,9 @@ function hostedManagementClient(env) {
1142
1082
  }
1143
1083
 
1144
1084
  // src/server/index.ts
1145
- var environmentSchema = z13.enum(["test", "live"]);
1146
- var roleSchema = z13.enum(["editor", "reviewer", "staff"]);
1147
- var permissionSchema = z13.enum([
1085
+ var environmentSchema = z12.enum(["test", "live"]);
1086
+ var roleSchema = z12.enum(["editor", "reviewer", "staff"]);
1087
+ var permissionSchema = z12.enum([
1148
1088
  "read",
1149
1089
  "publish",
1150
1090
  "review",
@@ -1164,7 +1104,7 @@ var permissionSchema = z13.enum([
1164
1104
  */
1165
1105
  "enroll"
1166
1106
  ]);
1167
- var permissionListSchema = z13.array(z13.string()).transform(
1107
+ var permissionListSchema = z12.array(z12.string()).transform(
1168
1108
  (values) => values.filter(
1169
1109
  (value) => permissionSchema.safeParse(value).success
1170
1110
  )
@@ -1174,33 +1114,33 @@ var rolePermissions = {
1174
1114
  reviewer: ["read", "review"],
1175
1115
  staff: ["read", "confirm", "handover"]
1176
1116
  };
1177
- var projectSetupSchema = z13.object({
1178
- mode: z13.enum(["new", "existing"]),
1179
- brief: z13.string().trim().min(1).max(4e3)
1117
+ var projectSetupSchema = z12.object({
1118
+ mode: z12.enum(["new", "existing"]),
1119
+ brief: z12.string().trim().min(1).max(4e3)
1180
1120
  }).strict();
1181
- var operatorUserSchema = z13.object({
1182
- id: z13.string(),
1183
- name: z13.string().nullable(),
1184
- email: z13.string().nullable(),
1185
- avatar: z13.string().nullable()
1186
- });
1187
- var projectSchema = z13.object({
1188
- slug: z13.string().min(1).max(35).regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/),
1189
- createdBy: z13.string().nullable().optional(),
1121
+ var operatorUserSchema = z12.object({
1122
+ id: z12.string(),
1123
+ name: z12.string().nullable(),
1124
+ email: z12.string().nullable(),
1125
+ avatar: z12.string().nullable()
1126
+ });
1127
+ var projectSchema = z12.object({
1128
+ slug: z12.string().min(1).max(35).regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/),
1129
+ createdBy: z12.string().nullable().optional(),
1190
1130
  creator: operatorUserSchema.nullable().optional(),
1191
1131
  /** A response, so fields a newer server adds to the setup are dropped, not rejected. */
1192
- setup: z13.object(projectSetupSchema.shape).optional(),
1132
+ setup: z12.object(projectSetupSchema.shape).optional(),
1193
1133
  /** The starter chosen at setup. A plain string, so later starters still parse. */
1194
- starter: z13.string().optional(),
1195
- id: z13.string().min(1),
1134
+ starter: z12.string().optional(),
1135
+ id: z12.string().min(1),
1196
1136
  organization: identifier,
1197
1137
  project: identifier,
1198
- name: z13.string(),
1199
- subtitle: z13.string(),
1200
- initials: z13.string(),
1201
- color: z13.string(),
1138
+ name: z12.string(),
1139
+ subtitle: z12.string(),
1140
+ initials: z12.string(),
1141
+ color: z12.string(),
1202
1142
  permissions: permissionListSchema,
1203
- environments: z13.array(environmentSchema)
1143
+ environments: z12.array(environmentSchema)
1204
1144
  }).refine(
1205
1145
  (project) => !project.creator || project.creator.id === project.createdBy,
1206
1146
  {
@@ -1208,45 +1148,45 @@ var projectSchema = z13.object({
1208
1148
  path: ["creator"]
1209
1149
  }
1210
1150
  );
1211
- var projectInputSchema = z13.object({
1151
+ var projectInputSchema = z12.object({
1212
1152
  actionId: identifier,
1213
- name: z13.string().trim().min(1).max(80),
1153
+ name: z12.string().trim().min(1).max(80),
1214
1154
  setup: projectSetupSchema.optional(),
1215
1155
  /** The starter a new hosted app begins from, with `setup.mode` "new". */
1216
1156
  starter: starterIdSchema.optional()
1217
1157
  }).strict();
1218
- var projectUpdateInputSchema = z13.union([
1219
- z13.object({ name: projectInputSchema.shape.name }).strict(),
1220
- z13.object({
1158
+ var projectUpdateInputSchema = z12.union([
1159
+ z12.object({ name: projectInputSchema.shape.name }).strict(),
1160
+ z12.object({
1221
1161
  slug: projectSchema.shape.slug,
1222
- confirm: z13.string().min(1).max(80)
1162
+ confirm: z12.string().min(1).max(80)
1223
1163
  }).strict()
1224
1164
  ]);
1225
- var projectDeletionInputSchema = z13.object({ confirm: z13.string().min(1).max(80) }).strict();
1226
- var projectDeletionSchema = z13.object({
1165
+ var projectDeletionInputSchema = z12.object({ confirm: z12.string().min(1).max(80) }).strict();
1166
+ var projectDeletionSchema = z12.object({
1227
1167
  project: identifier,
1228
- purgeAfter: z13.number().int()
1168
+ purgeAfter: z12.number().int()
1229
1169
  });
1230
- var projectTransferInputSchema = z13.object({ organization: identifier, confirm: z13.string().min(1).max(80) }).strict();
1231
- var projectTransferSchema = z13.object({
1170
+ var projectTransferInputSchema = z12.object({ organization: identifier, confirm: z12.string().min(1).max(80) }).strict();
1171
+ var projectTransferSchema = z12.object({
1232
1172
  organization: identifier,
1233
1173
  project: identifier
1234
1174
  });
1235
- var grantSchema = z13.object({
1236
- subject: z13.string().min(1).max(200),
1237
- roles: z13.array(roleSchema),
1238
- environments: z13.array(environmentSchema)
1175
+ var grantSchema = z12.object({
1176
+ subject: z12.string().min(1).max(200),
1177
+ roles: z12.array(roleSchema),
1178
+ environments: z12.array(environmentSchema)
1239
1179
  }).strict();
1240
- var grantRecordSchema = z13.object(grantSchema.shape);
1241
- var stockAdditionSchema = z13.object({
1180
+ var grantRecordSchema = z12.object(grantSchema.shape);
1181
+ var stockAdditionSchema = z12.object({
1242
1182
  item: identifier,
1243
- quantity: z13.number().int(),
1183
+ quantity: z12.number().int(),
1244
1184
  actionId: identifier
1245
1185
  });
1246
- var completionRevokeSchema = z13.object({
1186
+ var completionRevokeSchema = z12.object({
1247
1187
  actionId: identifier,
1248
- reason: z13.string().trim().min(1).max(500),
1249
- freeOccurrence: z13.boolean().default(false)
1188
+ reason: z12.string().trim().min(1).max(500),
1189
+ freeOccurrence: z12.boolean().default(false)
1250
1190
  }).strict();
1251
1191
  var RevokedEntitlementOutcome = {
1252
1192
  /** No other completion grants the reward: it is void, after cancelling a handover in progress. */
@@ -1274,216 +1214,218 @@ var RevokedReferralOutcome = {
1274
1214
  /** Qualified on another accepted completion of the program's quest instead. */
1275
1215
  Requalified: "requalified"
1276
1216
  };
1277
- var entitlementOutcomeSchema = z13.string().min(1).max(64);
1278
- var deliveryOutcomeSchema = z13.string().min(1).max(64);
1279
- var referralOutcomeSchema = z13.string().min(1).max(64);
1280
- var completionRevocationSchema = z13.object({
1217
+ var entitlementOutcomeSchema = z12.string().min(1).max(64);
1218
+ var deliveryOutcomeSchema = z12.string().min(1).max(64);
1219
+ var referralOutcomeSchema = z12.string().min(1).max(64);
1220
+ var completionRevocationSchema = z12.object({
1281
1221
  completion: identifier,
1282
1222
  /** The quest ID, or the board ID when `source.kind` is `leaderboard`. */
1283
1223
  quest: identifier,
1284
1224
  member: identifier,
1285
1225
  /** What paid the revoked completion. `source.id` repeats `quest`. */
1286
1226
  source: completionSourceSchema.optional(),
1287
- revokedAt: z13.number(),
1288
- occurrenceFreed: z13.boolean(),
1289
- points: z13.array(
1290
- z13.object({
1227
+ revokedAt: z12.number(),
1228
+ occurrenceFreed: z12.boolean(),
1229
+ points: z12.array(
1230
+ z12.object({
1291
1231
  entry: identifier,
1292
1232
  balance: identifier,
1293
1233
  reversal: identifier.nullable(),
1294
- reversed: z13.number().int(),
1295
- unreversed: z13.number().int()
1234
+ reversed: z12.number().int(),
1235
+ unreversed: z12.number().int()
1296
1236
  })
1297
1237
  ),
1298
- entitlements: z13.array(
1299
- z13.object({
1238
+ entitlements: z12.array(
1239
+ z12.object({
1300
1240
  entitlement: identifier,
1301
1241
  reward: identifier,
1302
1242
  outcome: entitlementOutcomeSchema,
1303
- status: z13.string()
1243
+ status: z12.string()
1304
1244
  })
1305
1245
  ),
1306
- deliveries: z13.array(
1307
- z13.object({
1308
- delivery: z13.string(),
1309
- roleId: z13.string(),
1246
+ deliveries: z12.array(
1247
+ z12.object({
1248
+ delivery: z12.string(),
1249
+ roleId: z12.string(),
1310
1250
  outcome: deliveryOutcomeSchema,
1311
1251
  /**
1312
1252
  * By Relay's records, another accepted, unrevoked completion of the member also granted this
1313
1253
  * role to the same Discord account and server. Relay does not read Discord's membership.
1314
1254
  */
1315
- stillGranted: z13.boolean()
1255
+ stillGranted: z12.boolean()
1316
1256
  })
1317
1257
  ),
1318
- referrals: z13.array(
1319
- z13.object({
1258
+ referrals: z12.array(
1259
+ z12.object({
1320
1260
  program: identifier,
1321
1261
  outcome: referralOutcomeSchema
1322
1262
  })
1323
1263
  ),
1324
- streakMilestone: z13.boolean()
1325
- });
1326
- var accessSchema = z13.object({
1327
- actor: z13.string(),
1328
- organization: z13.string(),
1329
- admin: z13.boolean(),
1330
- local: z13.boolean(),
1331
- projects: z13.array(projectSchema)
1332
- });
1333
- var querySchema = z13.object({
1334
- q: z13.string().max(200).default(""),
1335
- filter: z13.string().max(50).default("all"),
1336
- offset: z13.coerce.number().int().min(0).max(1e6).default(0),
1337
- limit: z13.coerce.number().int().min(1).max(100).default(25)
1338
- });
1339
- var accountProfileSchema = z13.object({
1340
- name: z13.string().optional(),
1264
+ streakMilestone: z12.boolean()
1265
+ });
1266
+ var accessSchema = z12.object({
1267
+ actor: z12.string(),
1268
+ organization: z12.string(),
1269
+ admin: z12.boolean(),
1270
+ local: z12.boolean(),
1271
+ projects: z12.array(projectSchema)
1272
+ });
1273
+ var querySchema = z12.object({
1274
+ q: z12.string().max(200).default(""),
1275
+ filter: z12.string().max(50).default("all"),
1276
+ offset: z12.coerce.number().int().min(0).max(1e6).default(0),
1277
+ limit: z12.coerce.number().int().min(1).max(100).default(25)
1278
+ });
1279
+ var accountProfileSchema = z12.object({
1280
+ name: z12.string().optional(),
1341
1281
  /** The account's handle, where the provider has one (X and Discord). */
1342
- username: z13.string().optional(),
1343
- email: z13.string().optional(),
1344
- emailVerified: z13.boolean().default(false),
1345
- imageUrl: z13.string().url().optional()
1282
+ username: z12.string().optional(),
1283
+ email: z12.string().optional(),
1284
+ emailVerified: z12.boolean().default(false),
1285
+ imageUrl: z12.string().url().optional()
1346
1286
  });
1347
- var memberAccountSchema = z13.object({
1287
+ var memberAccountSchema = z12.object({
1348
1288
  /** `wallet` for wallet sign-in, `account` for every other connected account. */
1349
- kind: z13.enum(["account", "wallet"]),
1350
- provider: z13.string(),
1351
- subject: z13.string(),
1352
- signInEnabled: z13.boolean(),
1289
+ kind: z12.enum(["account", "wallet"]),
1290
+ provider: z12.string(),
1291
+ subject: z12.string(),
1292
+ signInEnabled: z12.boolean(),
1353
1293
  profile: accountProfileSchema.optional()
1354
1294
  });
1355
- var operationSchema = z13.object({
1356
- target: z13.string(),
1357
- paused: z13.boolean(),
1358
- revision: z13.number().int(),
1359
- reason: z13.string(),
1360
- actor: z13.string().nullable(),
1361
- changedAt: z13.number()
1362
- });
1363
- var operationInputSchema = z13.object({
1364
- target: z13.union([
1365
- z13.literal("redemptions"),
1366
- z13.string().regex(/^quest:[\w-]+$/)
1295
+ var operationSchema = z12.object({
1296
+ target: z12.string(),
1297
+ paused: z12.boolean(),
1298
+ revision: z12.number().int(),
1299
+ reason: z12.string(),
1300
+ actor: z12.string().nullable(),
1301
+ changedAt: z12.number()
1302
+ });
1303
+ var operationInputSchema = z12.object({
1304
+ target: z12.union([
1305
+ z12.literal("redemptions"),
1306
+ z12.string().regex(/^quest:[\w-]+$/)
1367
1307
  ]),
1368
- paused: z13.boolean(),
1369
- revision: z13.number().int().nonnegative(),
1370
- reason: z13.string().trim().min(1).max(500),
1308
+ paused: z12.boolean(),
1309
+ revision: z12.number().int().nonnegative(),
1310
+ reason: z12.string().trim().min(1).max(500),
1371
1311
  actionId: identifier
1372
1312
  }).strict();
1373
- var questLifecycleInputSchema = z13.object({
1313
+ var questLifecycleInputSchema = z12.object({
1374
1314
  quest: identifier,
1375
1315
  expectedRelease: identifier.optional(),
1376
- archived: z13.boolean(),
1377
- reason: z13.string().trim().min(1).max(500),
1316
+ archived: z12.boolean(),
1317
+ reason: z12.string().trim().min(1).max(500),
1378
1318
  actionId: identifier
1379
1319
  }).strict();
1380
- var questLifecycleSchema = z13.object({
1320
+ var questLifecycleSchema = z12.object({
1381
1321
  quest: identifier,
1382
1322
  key: identifier.nullable(),
1383
- title: z13.string(),
1323
+ title: z12.string(),
1384
1324
  release: identifier,
1385
- lifecycle: z13.enum(["active", "paused", "archived"]),
1386
- changed: z13.boolean()
1387
- });
1388
- var memberSchema = z13.object({
1389
- id: z13.string(),
1390
- test: z13.boolean().optional(),
1391
- name: z13.string().nullable().optional(),
1392
- accounts: z13.array(memberAccountSchema).default([]),
1393
- attempts: z13.number(),
1394
- completions: z13.number(),
1395
- rewards: z13.number(),
1396
- lastActivity: z13.number().nullable()
1397
- });
1398
- var personSchema = z13.object({
1399
- id: z13.string(),
1400
- accounts: z13.array(memberAccountSchema).default([])
1401
- });
1402
- var metricsSchema = z13.object({
1403
- quests: z13.number(),
1404
- members: z13.number(),
1405
- attempts: z13.number(),
1406
- completions: z13.number(),
1407
- review: z13.number(),
1408
- failed: z13.number(),
1409
- entitlements: z13.number()
1410
- });
1411
- var readinessSchema = z13.object({
1412
- checks: z13.array(
1413
- z13.object({
1414
- id: z13.string(),
1415
- status: z13.enum(["ready", "blocked"]),
1416
- title: z13.string(),
1417
- detail: z13.string()
1325
+ lifecycle: z12.enum(["active", "paused", "archived"]),
1326
+ changed: z12.boolean()
1327
+ });
1328
+ var memberSchema = z12.object({
1329
+ id: z12.string(),
1330
+ test: z12.boolean().optional(),
1331
+ name: z12.string().nullable().optional(),
1332
+ accounts: z12.array(memberAccountSchema).default([]),
1333
+ attempts: z12.number(),
1334
+ completions: z12.number(),
1335
+ rewards: z12.number(),
1336
+ lastActivity: z12.number().nullable()
1337
+ });
1338
+ var personSchema = z12.object({
1339
+ id: z12.string(),
1340
+ test: z12.boolean().optional(),
1341
+ name: z12.string().nullable().optional(),
1342
+ accounts: z12.array(memberAccountSchema).default([])
1343
+ });
1344
+ var metricsSchema = z12.object({
1345
+ quests: z12.number(),
1346
+ members: z12.number(),
1347
+ attempts: z12.number(),
1348
+ completions: z12.number(),
1349
+ review: z12.number(),
1350
+ failed: z12.number(),
1351
+ entitlements: z12.number()
1352
+ });
1353
+ var readinessSchema = z12.object({
1354
+ checks: z12.array(
1355
+ z12.object({
1356
+ id: z12.string(),
1357
+ status: z12.enum(["ready", "blocked"]),
1358
+ title: z12.string(),
1359
+ detail: z12.string()
1418
1360
  })
1419
1361
  )
1420
1362
  });
1421
- var inventorySchema = z13.object({
1422
- item: z13.string(),
1423
- name: z13.string().nullable().default(null),
1424
- available: z13.number(),
1425
- reserved: z13.number(),
1426
- allocated: z13.number().default(0)
1427
- });
1428
- var auditRecordSchema = z13.object({
1429
- id: z13.string(),
1430
- action: z13.string(),
1431
- actor: z13.string().nullable(),
1363
+ var inventorySchema = z12.object({
1364
+ item: z12.string(),
1365
+ name: z12.string().nullable().default(null),
1366
+ available: z12.number(),
1367
+ reserved: z12.number(),
1368
+ allocated: z12.number().default(0)
1369
+ });
1370
+ var auditRecordSchema = z12.object({
1371
+ id: z12.string(),
1372
+ action: z12.string(),
1373
+ actor: z12.string().nullable(),
1432
1374
  user: operatorUserSchema.nullable().optional(),
1433
- detail: z13.string(),
1434
- at: z13.number(),
1435
- attempt: z13.string().nullable()
1375
+ detail: z12.string(),
1376
+ at: z12.number(),
1377
+ attempt: z12.string().nullable()
1436
1378
  }).refine((record) => !record.user || record.user.id === record.actor, {
1437
1379
  message: "User profile must match the recorded actor",
1438
1380
  path: ["user"]
1439
1381
  });
1440
- var pageSchema = z13.object({
1382
+ var pageSchema = z12.object({
1441
1383
  snapshot: snapshotSchema,
1442
- members: z13.array(memberSchema),
1443
- people: z13.array(personSchema).default([]),
1384
+ members: z12.array(memberSchema),
1385
+ people: z12.array(personSchema).default([]),
1444
1386
  metrics: metricsSchema,
1445
- total: z13.number(),
1446
- offset: z13.number(),
1447
- limit: z13.number(),
1448
- inventory: z13.array(inventorySchema),
1449
- operations: z13.array(operationSchema).default([]),
1450
- audit: z13.array(auditRecordSchema).default([]),
1451
- questCounts: z13.record(z13.string(), z13.number())
1452
- });
1453
- var managedOAuthAccountBaseSchema = z13.object({
1454
- provider: z13.enum(["x", "discord"]),
1455
- revision: z13.number().int().nonnegative()
1456
- });
1457
- var managedOAuthAccountSchema = z13.discriminatedUnion("status", [
1387
+ total: z12.number(),
1388
+ offset: z12.number(),
1389
+ limit: z12.number(),
1390
+ inventory: z12.array(inventorySchema),
1391
+ operations: z12.array(operationSchema).default([]),
1392
+ audit: z12.array(auditRecordSchema).default([]),
1393
+ questCounts: z12.record(z12.string(), z12.number())
1394
+ });
1395
+ var managedOAuthAccountBaseSchema = z12.object({
1396
+ provider: z12.enum(["x", "discord"]),
1397
+ revision: z12.number().int().nonnegative()
1398
+ });
1399
+ var managedOAuthAccountSchema = z12.discriminatedUnion("status", [
1458
1400
  managedOAuthAccountBaseSchema.extend({
1459
- status: z13.literal("connected"),
1460
- subject: z13.string().min(1),
1461
- linkedAt: z13.number()
1401
+ status: z12.literal("connected"),
1402
+ subject: z12.string().min(1),
1403
+ linkedAt: z12.number()
1462
1404
  }),
1463
- managedOAuthAccountBaseSchema.extend({ status: z13.literal("disconnected") })
1405
+ managedOAuthAccountBaseSchema.extend({ status: z12.literal("disconnected") })
1464
1406
  ]);
1465
- var memberOAuthUnlinkInputSchema = z13.object({
1466
- provider: z13.enum(["x", "discord"]),
1467
- subject: z13.string().min(1).max(4096),
1468
- revision: z13.number().int().nonnegative().max(Number.MAX_SAFE_INTEGER - 1),
1469
- reason: z13.string().trim().min(1).max(500)
1407
+ var memberOAuthUnlinkInputSchema = z12.object({
1408
+ provider: z12.enum(["x", "discord"]),
1409
+ subject: z12.string().min(1).max(4096),
1410
+ revision: z12.number().int().nonnegative().max(Number.MAX_SAFE_INTEGER - 1),
1411
+ reason: z12.string().trim().min(1).max(500)
1470
1412
  }).strict();
1471
1413
  var managedWalletSchema = linkedWalletSchema.extend({
1472
- status: z13.enum(["linked", "unlinked"]),
1473
- unlinkedAt: z13.number().int().nullable(),
1414
+ status: z12.enum(["linked", "unlinked"]),
1415
+ unlinkedAt: z12.number().int().nullable(),
1474
1416
  /** "member", or the operator or key that unlinked it. */
1475
- unlinkedBy: z13.string().nullable()
1417
+ unlinkedBy: z12.string().nullable()
1476
1418
  });
1477
1419
  var managedMemberIdentitySchema = memberIdentitySchema.extend({
1478
- status: z13.enum(["linked", "unlinked"]),
1479
- unlinkedAt: z13.number().int().nullable(),
1420
+ status: z12.enum(["linked", "unlinked"]),
1421
+ unlinkedAt: z12.number().int().nullable(),
1480
1422
  /** The operator or key that unlinked it. */
1481
- unlinkedBy: z13.string().nullable()
1423
+ unlinkedBy: z12.string().nullable()
1482
1424
  });
1483
- var memberIdentityChangeInputSchema = z13.object({
1425
+ var memberIdentityChangeInputSchema = z12.object({
1484
1426
  kind: appIdentityKindSchema,
1485
- subject: z13.string().min(1).max(256),
1486
- reason: z13.string().trim().min(1).max(500)
1427
+ subject: z12.string().min(1).max(256),
1428
+ reason: z12.string().trim().min(1).max(500)
1487
1429
  }).strict();
1488
1430
  var balanceCheckSchema = walletBalanceSchema.pick({
1489
1431
  chain: true,
@@ -1493,65 +1435,65 @@ var balanceCheckSchema = walletBalanceSchema.pick({
1493
1435
  wallets: true,
1494
1436
  observedAt: true
1495
1437
  }).extend({ attempt: identifier });
1496
- var walletBalanceChainsSchema = z13.object({
1497
- chains: z13.array(
1498
- z13.object({
1499
- chain: z13.union([
1500
- z13.literal(solanaMainnet),
1438
+ var walletBalanceChainsSchema = z12.object({
1439
+ chains: z12.array(
1440
+ z12.object({
1441
+ chain: z12.union([
1442
+ z12.literal(solanaMainnet),
1501
1443
  cosmosNetworkSchema,
1502
1444
  evmChainIdSchema
1503
1445
  ]),
1504
- name: z13.string(),
1505
- testnet: z13.boolean()
1446
+ name: z12.string(),
1447
+ testnet: z12.boolean()
1506
1448
  })
1507
1449
  )
1508
1450
  });
1509
- var memberWalletUnlinkInputSchema = walletUnlinkInputSchema.extend({ reason: z13.string().trim().min(1).max(500) }).strict();
1451
+ var memberWalletUnlinkInputSchema = walletUnlinkInputSchema.extend({ reason: z12.string().trim().min(1).max(500) }).strict();
1510
1452
  var memberWalletSignInInputSchema = walletUnlinkInputSchema.extend({
1511
- enabled: z13.boolean(),
1512
- reason: z13.string().trim().min(1).max(500)
1453
+ enabled: z12.boolean(),
1454
+ reason: z12.string().trim().min(1).max(500)
1513
1455
  }).strict();
1514
- var participantSignInSchema = z13.object({
1515
- providers: z13.array(
1516
- z13.object({ provider: authProviderSchema, configured: z13.boolean() })
1456
+ var participantSignInSchema = z12.object({
1457
+ providers: z12.array(
1458
+ z12.object({ provider: authProviderSchema, configured: z12.boolean() })
1517
1459
  ),
1518
- email: z13.boolean(),
1460
+ email: z12.boolean(),
1519
1461
  /** Wallet families: `"solana"`, `"eip155"`, `"cosmos"`. */
1520
1462
  wallets: walletSignInNetworksSchema,
1521
1463
  /** Why participants cannot sign in to this project, or null. */
1522
- issue: z13.string().nullable(),
1523
- updatedAt: z13.number().nullable(),
1524
- updatedBy: z13.string().nullable()
1464
+ issue: z12.string().nullable(),
1465
+ updatedAt: z12.number().nullable(),
1466
+ updatedBy: z12.string().nullable()
1525
1467
  });
1526
- var participantSignInInputSchema = z13.object({
1468
+ var participantSignInInputSchema = z12.object({
1527
1469
  wallets: walletSignInNetworksSchema
1528
1470
  }).strict();
1529
- var completionRevocationShortfallSchema = z13.object({
1471
+ var completionRevocationShortfallSchema = z12.object({
1530
1472
  completion: identifier,
1531
1473
  quest: identifier,
1532
- revokedAt: z13.number().int().nonnegative().safe(),
1533
- unreversedPoints: z13.record(identifier, z13.number().int().positive().safe())
1474
+ revokedAt: z12.number().int().nonnegative().safe(),
1475
+ unreversedPoints: z12.record(identifier, z12.number().int().positive().safe())
1534
1476
  });
1535
- var memberDetailSchema = z13.object({
1477
+ var memberDetailSchema = z12.object({
1536
1478
  snapshot: snapshotSchema,
1537
1479
  member: memberSchema,
1538
1480
  progress: memberProgressSchema,
1539
1481
  /** Up to 25 revoked completions with an unreversed point remainder, newest first. */
1540
- revocationShortfalls: z13.array(completionRevocationShortfallSchema).default([]),
1482
+ revocationShortfalls: z12.array(completionRevocationShortfallSchema).default([]),
1541
1483
  /** Current and historical campaign enrollment state, including inactive enrollments. */
1542
- campaignEnrollments: z13.array(campaignEnrollmentSchema).default([]),
1543
- passes: z13.array(
1544
- z13.object({
1545
- provider: z13.string(),
1546
- event: z13.string(),
1547
- subject: z13.string(),
1484
+ campaignEnrollments: z12.array(campaignEnrollmentSchema).default([]),
1485
+ passes: z12.array(
1486
+ z12.object({
1487
+ provider: z12.string(),
1488
+ event: z12.string(),
1489
+ subject: z12.string(),
1548
1490
  attempt: identifier.nullable()
1549
1491
  })
1550
1492
  ).default([]),
1551
1493
  /** Linked and unlinked wallets. */
1552
- wallets: z13.array(managedWalletSchema),
1494
+ wallets: z12.array(managedWalletSchema),
1553
1495
  /** The member's 10 most recent recorded balance reads, newest first. */
1554
- balanceChecks: z13.array(balanceCheckSchema),
1496
+ balanceChecks: z12.array(balanceCheckSchema),
1555
1497
  /** The member's participant profile in this project. */
1556
1498
  profile: managedProfileSchema.nullable(),
1557
1499
  /**
@@ -1559,123 +1501,129 @@ var memberDetailSchema = z13.object({
1559
1501
  * member ID: their selected X and Discord accounts and their `app:<name>` identities in this
1560
1502
  * project, including app identities an operator unlinked, by kind.
1561
1503
  */
1562
- identities: z13.array(managedMemberIdentitySchema)
1504
+ identities: z12.array(managedMemberIdentitySchema)
1563
1505
  });
1564
- var stockInputSchema = z13.object({
1506
+ var stockInputSchema = z12.object({
1565
1507
  item: identifier,
1566
- quantity: z13.number().int().positive().max(1e6),
1508
+ quantity: z12.number().int().positive().max(1e6),
1567
1509
  actionId: identifier
1568
1510
  }).strict();
1569
- var ingestTrackerScopeSchema = z13.array(identifier).min(1).max(100).nullable();
1570
- var tokenScopeInputSchema = z13.object({ ingestTrackers: ingestTrackerScopeSchema }).strict();
1571
- var tokenInputSchema = z13.object({
1572
- name: z13.string().trim().min(1).max(80),
1511
+ var ingestTrackerScopeSchema = z12.array(identifier).min(1).max(100).nullable();
1512
+ var tokenScopeInputSchema = z12.object({ ingestTrackers: ingestTrackerScopeSchema }).strict();
1513
+ var tokenInputSchema = z12.object({
1514
+ name: z12.string().trim().min(1).max(80),
1573
1515
  project: identifier,
1574
1516
  environment: environmentSchema,
1575
- permissions: z13.array(permissionSchema).min(1),
1517
+ permissions: z12.array(permissionSchema).min(1),
1576
1518
  ingestTrackers: ingestTrackerScopeSchema.optional(),
1577
- days: z13.number().int().min(1).max(90).default(30)
1519
+ days: z12.number().int().min(1).max(90).default(30)
1578
1520
  }).strict();
1579
- var tokenSchema = z13.object({
1580
- id: z13.string(),
1581
- name: z13.string(),
1582
- project: z13.string(),
1521
+ var tokenSchema = z12.object({
1522
+ id: z12.string(),
1523
+ name: z12.string(),
1524
+ project: z12.string(),
1583
1525
  environment: environmentSchema,
1584
1526
  permissions: permissionListSchema,
1585
1527
  ingestTrackers: ingestTrackerScopeSchema.optional(),
1586
- expiresAt: z13.number()
1528
+ expiresAt: z12.number()
1587
1529
  });
1588
- var issuedTokenSchema = tokenSchema.extend({ token: z13.string() });
1589
- var teamSchema = z13.array(
1590
- z13.object({ id: z13.string(), label: z13.string() })
1530
+ var issuedTokenSchema = tokenSchema.extend({ token: z12.string() });
1531
+ var teamSchema = z12.array(
1532
+ z12.object({ id: z12.string(), label: z12.string() })
1591
1533
  );
1592
- var memberLookupSchema = z13.object({
1593
- provider: z13.string().min(1).max(200),
1594
- subject: z13.string().min(1).max(2048)
1534
+ var memberLookupSchema = z12.object({
1535
+ provider: z12.string().min(1).max(200),
1536
+ subject: z12.string().min(1).max(2048)
1595
1537
  }).strict();
1596
- var booleanQuery = z13.union([
1597
- z13.boolean(),
1598
- z13.enum(["true", "false"]).transform((v) => v === "true")
1538
+ var booleanQuery = z12.union([
1539
+ z12.boolean(),
1540
+ z12.enum(["true", "false"]).transform((v) => v === "true")
1599
1541
  ]);
1600
- var managedMemberQuerySchema = z13.strictObject({
1601
- q: z13.string().max(200).optional(),
1542
+ var managedMemberQuerySchema = z12.strictObject({
1543
+ q: z12.string().max(200).optional(),
1602
1544
  needsReview: booleanQuery.optional(),
1603
- limit: z13.coerce.number().int().min(1).max(100).optional(),
1545
+ limit: z12.coerce.number().int().min(1).max(100).optional(),
1604
1546
  cursor: pageCursorSchema.optional()
1605
1547
  });
1606
- var managedMemberPageSchema = z13.object({
1607
- items: z13.array(memberSchema),
1608
- total: z13.number().int().nonnegative(),
1609
- nextCursor: z13.string().nullable()
1548
+ var managedMemberPageSchema = z12.object({
1549
+ items: z12.array(memberSchema),
1550
+ total: z12.number().int().nonnegative(),
1551
+ nextCursor: z12.string().nullable()
1610
1552
  });
1611
1553
  var projectMetricsSchema = metricsSchema.extend({
1612
- completionsByQuest: z13.array(
1613
- z13.object({ quest: identifier, completions: z13.number() })
1554
+ completionsByQuest: z12.array(
1555
+ z12.object({ quest: identifier, completions: z12.number() })
1614
1556
  )
1615
1557
  });
1616
- var pageLimit = z13.coerce.number().int().min(1).max(100).optional();
1617
- var managedAttemptQuerySchema = z13.strictObject({
1618
- q: z13.string().max(200).optional(),
1619
- status: z13.string().min(1).max(50).optional(),
1558
+ var pageLimit = z12.coerce.number().int().min(1).max(100).optional();
1559
+ var managedAttemptQuerySchema = z12.strictObject({
1560
+ q: z12.string().max(200).optional(),
1561
+ status: z12.string().min(1).max(50).optional(),
1620
1562
  limit: pageLimit,
1621
1563
  cursor: pageCursorSchema.optional()
1622
1564
  });
1623
- var managedAttemptPageSchema = z13.object({
1624
- items: z13.array(attemptSchema),
1625
- releases: z13.array(publishedReleaseSchema),
1626
- people: z13.array(personSchema),
1627
- total: z13.number().int().nonnegative(),
1628
- nextCursor: z13.string().nullable()
1565
+ var managedAttemptPageSchema = z12.object({
1566
+ items: z12.array(attemptSchema),
1567
+ releases: z12.array(publishedReleaseSchema),
1568
+ people: z12.array(personSchema),
1569
+ total: z12.number().int().nonnegative(),
1570
+ nextCursor: z12.string().nullable()
1629
1571
  });
1630
- var managedAttemptSchema = z13.object({
1572
+ var managedReleaseQuerySchema = z12.strictObject({
1573
+ quest: identifier.optional(),
1574
+ limit: pageLimit,
1575
+ cursor: pageCursorSchema.optional()
1576
+ });
1577
+ var managedReleasePageSchema = z12.object({
1578
+ items: z12.array(publishedReleaseSchema),
1579
+ nextCursor: z12.string().nullable()
1580
+ });
1581
+ var managedAttemptSchema = z12.object({
1631
1582
  attempt: attemptSchema,
1632
1583
  release: publishedReleaseSchema.nullable(),
1633
- events: z13.array(eventSchema),
1584
+ events: z12.array(eventSchema),
1634
1585
  person: personSchema
1635
1586
  });
1636
- var managedEntitlementQuerySchema = z13.strictObject({
1637
- q: z13.string().max(200).optional(),
1638
- status: z13.string().min(1).max(50).optional(),
1587
+ var managedEntitlementQuerySchema = z12.strictObject({
1588
+ q: z12.string().max(200).optional(),
1589
+ status: z12.string().min(1).max(50).optional(),
1639
1590
  limit: pageLimit,
1640
1591
  cursor: pageCursorSchema.optional()
1641
1592
  });
1642
- var managedEntitlementPageSchema = z13.object({
1643
- items: z13.array(entitlementSchema),
1644
- people: z13.array(personSchema),
1645
- total: z13.number().int().nonnegative(),
1646
- nextCursor: z13.string().nullable()
1593
+ var managedEntitlementPageSchema = z12.object({
1594
+ items: z12.array(entitlementSchema),
1595
+ people: z12.array(personSchema),
1596
+ total: z12.number().int().nonnegative(),
1597
+ nextCursor: z12.string().nullable()
1647
1598
  });
1648
- var managedEntitlementSchema = z13.object({
1599
+ var managedEntitlementSchema = z12.object({
1649
1600
  entitlement: entitlementSchema,
1650
1601
  person: personSchema
1651
1602
  });
1652
1603
  var managedStockItemSchema = inventorySchema.extend({
1653
- offers: z13.array(identifier)
1604
+ offers: z12.array(identifier)
1654
1605
  });
1655
- var auditQuerySchema = z13.strictObject({
1656
- category: z13.enum(["reviews", "rewards", "configuration"]).optional(),
1657
- q: z13.string().max(200).optional(),
1606
+ var auditQuerySchema = z12.strictObject({
1607
+ category: z12.enum(["reviews", "rewards", "configuration"]).optional(),
1608
+ q: z12.string().max(200).optional(),
1658
1609
  limit: pageLimit,
1659
1610
  cursor: pageCursorSchema.optional()
1660
1611
  });
1661
1612
  var accessHistoryQuerySchema = auditQuerySchema.omit({
1662
1613
  category: true
1663
1614
  });
1664
- var auditPageSchema = z13.object({
1665
- items: z13.array(auditRecordSchema),
1666
- total: z13.number().int().nonnegative(),
1667
- nextCursor: z13.string().nullable()
1615
+ var auditPageSchema = z12.object({
1616
+ items: z12.array(auditRecordSchema),
1617
+ total: z12.number().int().nonnegative(),
1618
+ nextCursor: z12.string().nullable()
1668
1619
  });
1669
- var verifiedPassSchema = z13.object({
1620
+ var verifiedPassSchema = z12.object({
1670
1621
  provider: identifier,
1671
1622
  event: identifier,
1672
- subject: z13.string().min(1).max(2048),
1623
+ subject: z12.string().min(1).max(2048),
1673
1624
  member: identifier,
1674
1625
  quest: identifier
1675
1626
  }).strict();
1676
- function actionIdOf(input) {
1677
- return typeof input === "object" && input !== null && "actionId" in input && typeof input.actionId === "string" ? input.actionId : void 0;
1678
- }
1679
1627
  function groupKey(group) {
1680
1628
  return identifier.parse(
1681
1629
  typeof group === "string" ? group : projectGroupKey(group)
@@ -1689,16 +1637,6 @@ function queryString(values) {
1689
1637
  ).toString();
1690
1638
  return query ? "?" + query : "";
1691
1639
  }
1692
- function checkedTimeout(timeout) {
1693
- if (timeout !== void 0 && !validTimeout(timeout)) {
1694
- throw new ManagementError({
1695
- kind: "client",
1696
- code: ManagementErrorCode.InvalidInput,
1697
- message: "Management timeout must be a positive, finite number of milliseconds"
1698
- });
1699
- }
1700
- return timeout;
1701
- }
1702
1640
  function clientFailure(error) {
1703
1641
  if (error instanceof ManagementError) {
1704
1642
  return error;
@@ -1706,7 +1644,7 @@ function clientFailure(error) {
1706
1644
  return new ManagementError({
1707
1645
  kind: "client",
1708
1646
  code: ManagementErrorCode.InvalidInput,
1709
- message: error instanceof z13.ZodError ? `Invalid management request: ${z13.prettifyError(error)}` : error instanceof Error ? error.message : "Invalid management request",
1647
+ message: error instanceof z12.ZodError ? `Invalid management request: ${z12.prettifyError(error)}` : error instanceof Error ? error.message : "Invalid management request",
1710
1648
  cause: error
1711
1649
  });
1712
1650
  }
@@ -1730,231 +1668,7 @@ function createManagementClient(options) {
1730
1668
  return managementClient(options);
1731
1669
  }
1732
1670
  function managementClient(options) {
1733
- const clientTimeout = checkedTimeout(options.timeout) ?? DEFAULT_MANAGEMENT_TIMEOUT;
1734
- function callLifetime(call) {
1735
- return lifetime(
1736
- checkedTimeout(call?.timeout) ?? clientTimeout,
1737
- call?.signal ?? void 0
1738
- );
1739
- }
1740
- function transportFailure(error, context, life, sent, status, refused = false, headers) {
1741
- if (error instanceof ManagementError) {
1742
- return error;
1743
- }
1744
- const unsent = {
1745
- retryAfter: headers ? retryAfter(headers) : void 0,
1746
- ...!sent ? { uncertain: false } : refused ? {
1747
- uncertain: context.method !== "GET" && [500, 502, 504].includes(status ?? 0)
1748
- } : {},
1749
- ...status === void 0 ? {} : { status }
1750
- };
1751
- const ended = life.ended();
1752
- if (ended === "aborted") {
1753
- return new ManagementError({
1754
- ...context,
1755
- ...unsent,
1756
- kind: "aborted",
1757
- code: ManagementErrorCode.Aborted,
1758
- message: "The management request was cancelled",
1759
- cause: life.reason()
1760
- });
1761
- }
1762
- if (ended === "timeout") {
1763
- return new ManagementError({
1764
- ...context,
1765
- ...unsent,
1766
- kind: "timeout",
1767
- code: ManagementErrorCode.Timeout,
1768
- message: `The management request did not finish within ${life.timeout} ms`,
1769
- cause: error
1770
- });
1771
- }
1772
- return new ManagementError({
1773
- ...context,
1774
- ...unsent,
1775
- kind: "network",
1776
- code: ManagementErrorCode.Network,
1777
- message: "The management request failed before Domino answered",
1778
- cause: error
1779
- });
1780
- }
1781
- async function credential(context, life) {
1782
- if (!options.getToken) {
1783
- return null;
1784
- }
1785
- const getToken = options.getToken;
1786
- try {
1787
- return await new Promise((resolve, reject) => {
1788
- const stop = () => reject(life.signal.reason);
1789
- life.signal.addEventListener("abort", stop, { once: true });
1790
- getToken().then(resolve, reject).finally(() => life.signal.removeEventListener("abort", stop));
1791
- });
1792
- } catch (error) {
1793
- if (life.signal.aborted) {
1794
- throw transportFailure(error, context, life, false);
1795
- }
1796
- throw new ManagementError({
1797
- ...context,
1798
- // A token source that could not reach its own service failed like a network call.
1799
- kind: error instanceof TypeError ? "network" : "client",
1800
- code: ManagementErrorCode.Credential,
1801
- uncertain: false,
1802
- message: "Could not get a management credential",
1803
- cause: error
1804
- });
1805
- }
1806
- }
1807
- async function send(path, fetchInit, context, life) {
1808
- if (life.signal.aborted) {
1809
- throw transportFailure(life.reason(), context, life, false);
1810
- }
1811
- const headers = new Headers(fetchInit.headers);
1812
- headers.set("X-Domino-Client", clientIdentity());
1813
- const token = await credential(context, life);
1814
- if (token) {
1815
- headers.set("Authorization", `Bearer ${token}`);
1816
- }
1817
- if (options.organization) {
1818
- headers.set("X-Relay-Organization", options.organization);
1819
- }
1820
- if (options.project) {
1821
- headers.set("X-Relay-Project", options.project);
1822
- }
1823
- if (options.environment) {
1824
- headers.set("X-Relay-Environment", options.environment);
1825
- }
1826
- let response;
1827
- try {
1828
- response = await fetch(`${options.baseUrl}/management/v1${path}`, {
1829
- ...fetchInit,
1830
- headers,
1831
- signal: life.signal
1832
- });
1833
- } catch (error) {
1834
- throw transportFailure(error, context, life, true);
1835
- }
1836
- if (!response.ok) {
1837
- let text;
1838
- try {
1839
- text = await response.text();
1840
- } catch (error2) {
1841
- throw transportFailure(
1842
- error2,
1843
- context,
1844
- life,
1845
- true,
1846
- response.status,
1847
- true,
1848
- response.headers
1849
- );
1850
- }
1851
- let body = null;
1852
- try {
1853
- body = JSON.parse(text);
1854
- } catch {
1855
- }
1856
- const parsed = managementErrorSchema.safeParse(body);
1857
- const { error, code, ...details } = parsed.success ? parsed.data : { error: `Request failed (${response.status})`, code: void 0 };
1858
- throw new ManagementError({
1859
- ...context,
1860
- kind: "http",
1861
- status: response.status,
1862
- message: error,
1863
- ...code === void 0 ? {} : { code },
1864
- details,
1865
- retryAfter: retryAfter(response.headers)
1866
- });
1867
- }
1868
- return response;
1869
- }
1870
- async function raw(path, init) {
1871
- const { timeout, signal, ...fetchInit } = init ?? {};
1872
- const life = callLifetime({ timeout, signal: signal ?? void 0 });
1873
- try {
1874
- return await send(
1875
- path,
1876
- fetchInit,
1877
- {
1878
- method: (fetchInit.method ?? "GET").toUpperCase(),
1879
- path: path.split("?")[0],
1880
- replaySafe: false
1881
- },
1882
- life
1883
- );
1884
- } finally {
1885
- life.end();
1886
- }
1887
- }
1888
- async function exchange(path, schema, input, method, call, replaySafe, tolerant = false) {
1889
- const actionId = actionIdOf(input);
1890
- const context = {
1891
- method,
1892
- replaySafe,
1893
- path: path.split("?")[0],
1894
- ...actionId ? { actionId } : {}
1895
- };
1896
- const fetchInit = {
1897
- method,
1898
- headers: tolerant ? { "X-Domino-Response": "tolerant-v1" } : void 0,
1899
- ...input === void 0 ? {} : {
1900
- headers: {
1901
- "Content-Type": "application/json",
1902
- ...tolerant ? { "X-Domino-Response": "tolerant-v1" } : {}
1903
- },
1904
- body: JSON.stringify(input)
1905
- }
1906
- };
1907
- const life = callLifetime(call);
1908
- try {
1909
- return await retrying(
1910
- life,
1911
- { replaySafe: method === "GET" || replaySafe },
1912
- async () => {
1913
- const response = await send(path, fetchInit, context, life);
1914
- let body;
1915
- try {
1916
- body = await response.json();
1917
- } catch (error) {
1918
- if (error instanceof SyntaxError && !life.signal.aborted) {
1919
- throw new ManagementError({
1920
- ...context,
1921
- kind: "invalid-response",
1922
- code: ManagementErrorCode.InvalidResponse,
1923
- status: response.status,
1924
- message: "Domino answered with a body that is not JSON",
1925
- cause: error
1926
- });
1927
- }
1928
- throw transportFailure(
1929
- error,
1930
- context,
1931
- life,
1932
- true,
1933
- response.status,
1934
- false,
1935
- response.headers
1936
- );
1937
- }
1938
- const parsed = knownResponse(schema).safeParse(
1939
- tolerant ? { status: response.status, operationId: actionId, result: body } : body
1940
- );
1941
- if (!parsed.success) {
1942
- throw new ManagementError({
1943
- ...context,
1944
- kind: "invalid-response",
1945
- code: ManagementErrorCode.InvalidResponse,
1946
- status: response.status,
1947
- message: "Domino answered with a response this client does not recognize",
1948
- cause: parsed.error
1949
- });
1950
- }
1951
- return parsed.data;
1952
- }
1953
- );
1954
- } finally {
1955
- life.end();
1956
- }
1957
- }
1671
+ const { raw, exchange } = managementTransport(options);
1958
1672
  async function request(path, schema, input, method = input === void 0 ? "GET" : "POST", call) {
1959
1673
  return exchange(path, schema, input, method.toUpperCase(), call, false);
1960
1674
  }
@@ -1968,7 +1682,7 @@ function managementClient(options) {
1968
1682
  call
1969
1683
  );
1970
1684
  }
1971
- const ok = z13.object({ ok: z13.literal(true) });
1685
+ const ok = z12.object({ ok: z12.literal(true) });
1972
1686
  function pointHistory(member, ledger, query = {}, call) {
1973
1687
  return get(
1974
1688
  `/points/${identifier.parse(member)}/${identifier.parse(ledger)}/history${queryString(typeof query === "number" ? { before: query } : pageQuerySchema.parse(query))}`,
@@ -2090,8 +1804,8 @@ function managementClient(options) {
2090
1804
  }
2091
1805
  return exchange(
2092
1806
  path,
2093
- z13.object({
2094
- status: z13.number(),
1807
+ z12.object({
1808
+ status: z12.number(),
2095
1809
  operationId: identifier.optional(),
2096
1810
  result: schema
2097
1811
  }),
@@ -2122,7 +1836,7 @@ function managementClient(options) {
2122
1836
  call
2123
1837
  ),
2124
1838
  ...resourceArchiveMethods("tracker"),
2125
- list: (call) => get("/trackers", z13.array(trackerStatusSchema), call),
1839
+ list: (call) => get("/trackers", z12.array(trackerStatusSchema), call),
2126
1840
  get: (reference, call) => get(
2127
1841
  `/trackers/${identifier.parse(reference)}`,
2128
1842
  trackerStatusSchema,
@@ -2238,7 +1952,7 @@ function managementClient(options) {
2238
1952
  engagementPublishSchema.parse(withActionId(input)),
2239
1953
  call
2240
1954
  ),
2241
- list: (call) => get("/engagement", z13.array(engagementRuleSchema), call),
1955
+ list: (call) => get("/engagement", z12.array(engagementRuleSchema), call),
2242
1956
  page: (input, call) => get(
2243
1957
  "/engagement/history" + queryString(engagementPageQuerySchema.parse(input)),
2244
1958
  engagementPageSchema,
@@ -2259,7 +1973,7 @@ function managementClient(options) {
2259
1973
  },
2260
1974
  pointLedgers: {
2261
1975
  unarchive: (ledger, input, call) => archiveResource("point-ledger", ledger, false, input, call),
2262
- list: (call) => get("/point-ledgers", z13.array(managedPointLedgerSchema), call),
1976
+ list: (call) => get("/point-ledgers", z12.array(managedPointLedgerSchema), call),
2263
1977
  /**
2264
1978
  * Creates a point ledger, with a stable `key` when code refers to it; requires `publish`. In
2265
1979
  * live, only a person in Console can create one.
@@ -2289,7 +2003,7 @@ function managementClient(options) {
2289
2003
  },
2290
2004
  points: {
2291
2005
  /** @deprecated Use `pointLedgers.list()`, which reads the same ledgers. Removed in 2.0.0. */
2292
- ledgers: (call) => get("/point-ledgers", z13.array(managedPointLedgerSchema), call),
2006
+ ledgers: (call) => get("/point-ledgers", z12.array(managedPointLedgerSchema), call),
2293
2007
  /** @deprecated Use `pointLedgers.create(input)`. Removed in 2.0.0. */
2294
2008
  createLedger: createPointLedger,
2295
2009
  /**
@@ -2327,7 +2041,7 @@ function managementClient(options) {
2327
2041
  referralHistorySchema,
2328
2042
  call
2329
2043
  ),
2330
- list: (call) => get("/referrals", z13.array(publishedReferralSchema), call),
2044
+ list: (call) => get("/referrals", z12.array(publishedReferralSchema), call),
2331
2045
  participants: referralParticipants,
2332
2046
  /**
2333
2047
  * Suspends or restores a member's referral relationship, with a reason; requires `publish`.
@@ -2390,7 +2104,7 @@ function managementClient(options) {
2390
2104
  },
2391
2105
  leaderboards: {
2392
2106
  ...resourceArchiveMethods("leaderboard"),
2393
- list: (call) => get("/leaderboards", z13.array(publishedLeaderboardSchema), call),
2107
+ list: (call) => get("/leaderboards", z12.array(publishedLeaderboardSchema), call),
2394
2108
  standings: (board, input = {}, call) => {
2395
2109
  const query = leaderboardQuerySchema.parse(input);
2396
2110
  return get(
@@ -2404,12 +2118,12 @@ function managementClient(options) {
2404
2118
  },
2405
2119
  history: (board, call) => get(
2406
2120
  `/leaderboards/${identifier.parse(board)}/history`,
2407
- z13.array(publishedLeaderboardSchema),
2121
+ z12.array(publishedLeaderboardSchema),
2408
2122
  call
2409
2123
  ),
2410
2124
  exclusions: (board, call) => get(
2411
2125
  `/leaderboards/${identifier.parse(board)}/exclusions`,
2412
- z13.array(z13.object({ member: identifier })),
2126
+ z12.array(z12.object({ member: identifier })),
2413
2127
  call
2414
2128
  ),
2415
2129
  exclude: (board, input, call) => post(
@@ -2450,7 +2164,7 @@ function managementClient(options) {
2450
2164
  ),
2451
2165
  settlements: (board, call) => get(
2452
2166
  `/leaderboards/${identifier.parse(board)}/settlements`,
2453
- z13.array(leaderboardSettlementSummarySchema),
2167
+ z12.array(leaderboardSettlementSummarySchema),
2454
2168
  call
2455
2169
  ),
2456
2170
  settlement: (settlement, call) => get(
@@ -2530,7 +2244,7 @@ function managementClient(options) {
2530
2244
  )
2531
2245
  },
2532
2246
  deployments: {
2533
- list: (call) => get("/deployments", z13.array(deploymentRecordSchema), call),
2247
+ list: (call) => get("/deployments", z12.array(deploymentRecordSchema), call),
2534
2248
  get: (deployment, call) => get(
2535
2249
  `/deployments/${identifier.parse(deployment)}`,
2536
2250
  deploymentRecordSchema,
@@ -2597,6 +2311,28 @@ function managementClient(options) {
2597
2311
  metrics: {
2598
2312
  read: (call) => get("/metrics", projectMetricsSchema, call)
2599
2313
  },
2314
+ /** Release history: every version a quest has been published as. */
2315
+ releases: {
2316
+ /**
2317
+ * One page of the project's releases, newest first, including each quest's earlier
2318
+ * releases; `quest` keeps one quest's. Pass a page's `nextCursor` back as `cursor` for the
2319
+ * next page. Requires `read` and `publish` permission.
2320
+ */
2321
+ list: (query = {}, call) => get(
2322
+ `/releases/list${queryString(managedReleaseQuerySchema.parse(query))}`,
2323
+ managedReleasePageSchema,
2324
+ call
2325
+ ),
2326
+ /**
2327
+ * One release by ID, current or historical. Requires `read` and `publish` permission.
2328
+ * Fails with 404 when the project has no such release.
2329
+ */
2330
+ get: (release, call) => get(
2331
+ `/releases/${identifier.parse(release)}`,
2332
+ publishedReleaseSchema,
2333
+ call
2334
+ )
2335
+ },
2600
2336
  /** Attempts, staff-confirmed quests and reviews. */
2601
2337
  attempts: {
2602
2338
  /**
@@ -2618,6 +2354,17 @@ function managementClient(options) {
2618
2354
  managedAttemptSchema,
2619
2355
  call
2620
2356
  ),
2357
+ /**
2358
+ * Everything one evaluation run of a test-environment attempt read, for `replayAttempt` from
2359
+ * `@domino-sdk/relay/testing`; requires `publish` permission, because captures hold raw provider answers. Relay serves captures only in the
2360
+ * test environment: in live it fails with 422 `test-environment-required`. An attempt with
2361
+ * no evaluation run yet fails with 409 `attempt-not-evaluated`.
2362
+ */
2363
+ capture: (attempt, call) => get(
2364
+ `/attempts/${identifier.parse(attempt)}/capture`,
2365
+ attemptCaptureSchema,
2366
+ call
2367
+ ),
2621
2368
  /**
2622
2369
  * Submits a staff-confirmed quest (`manual({ actor: "staff" })`) for a member; requires
2623
2370
  * `confirm` permission. Resolves with the queued attempt, or with the original attempt when
@@ -2766,7 +2513,7 @@ function managementClient(options) {
2766
2513
  },
2767
2514
  operations: {
2768
2515
  /** Every paused or resumed operation: redemptions and each quest's participation; requires `read`. */
2769
- list: (call) => get("/operations", z13.array(operationSchema), call),
2516
+ list: (call) => get("/operations", z12.array(operationSchema), call),
2770
2517
  /**
2771
2518
  * Pauses or resumes redemptions or one quest's participation, against the `revision` the
2772
2519
  * operator saw, with a reason; requires `publish` permission.
@@ -2815,7 +2562,7 @@ function managementClient(options) {
2815
2562
  call
2816
2563
  ),
2817
2564
  /** Every stock item with its counts and the offers that sell it; requires `read` permission. */
2818
- list: (call) => get("/stock-items", z13.array(managedStockItemSchema), call),
2565
+ list: (call) => get("/stock-items", z12.array(managedStockItemSchema), call),
2819
2566
  createItem: (input, call) => create(
2820
2567
  "/stock-items",
2821
2568
  stockItemSchema,
@@ -2830,7 +2577,7 @@ function managementClient(options) {
2830
2577
  stockInputSchema.parse(withActionId(input)),
2831
2578
  call
2832
2579
  ),
2833
- catalog: (call) => get("/pickup-inventory", z13.array(pickupCatalogSchema), call),
2580
+ catalog: (call) => get("/pickup-inventory", z12.array(pickupCatalogSchema), call),
2834
2581
  configure: (input, call) => post(
2835
2582
  "/pickup-inventory",
2836
2583
  pickupCatalogSchema,
@@ -2856,10 +2603,10 @@ function managementClient(options) {
2856
2603
  offerControlSchema.omit({ enabled: true }).parse(withActionId(input)),
2857
2604
  call
2858
2605
  ),
2859
- list: (call) => get("/offers", z13.array(offerSchema), call),
2606
+ list: (call) => get("/offers", z12.array(offerSchema), call),
2860
2607
  redemptions: (input = {}, call) => get(
2861
2608
  `/redemptions${queryString({ member: input.member })}`,
2862
- z13.array(redemptionSchema),
2609
+ z12.array(redemptionSchema),
2863
2610
  call
2864
2611
  ),
2865
2612
  /** Pauses or resumes an offer at the revision the operator saw. */
@@ -2908,7 +2655,7 @@ function managementClient(options) {
2908
2655
  * them; API keys and project-scoped playground sessions cannot.
2909
2656
  */
2910
2657
  tokens: {
2911
- list: (call) => get("/tokens", z13.array(tokenSchema), call),
2658
+ list: (call) => get("/tokens", z12.array(tokenSchema), call),
2912
2659
  /**
2913
2660
  * Issues a key for one project and environment, limited to permissions the caller holds
2914
2661
  * there. The secret `token` is in this response only.
@@ -2916,14 +2663,14 @@ function managementClient(options) {
2916
2663
  create: (input, call) => post("/tokens", issuedTokenSchema, tokenInputSchema.parse(input), call),
2917
2664
  /** Replace a personal key's ingestion restriction without changing its secret. */
2918
2665
  scope: (id, input, call) => request(
2919
- `/tokens/${encodeURIComponent(z13.string().min(1).parse(id))}/scope`,
2666
+ `/tokens/${encodeURIComponent(z12.string().min(1).parse(id))}/scope`,
2920
2667
  tokenSchema,
2921
2668
  tokenScopeInputSchema.parse(input),
2922
2669
  "PUT",
2923
2670
  call
2924
2671
  ),
2925
2672
  revoke: (id, call) => request(
2926
- `/tokens/${encodeURIComponent(z13.string().min(1).parse(id))}`,
2673
+ `/tokens/${encodeURIComponent(z12.string().min(1).parse(id))}`,
2927
2674
  ok,
2928
2675
  void 0,
2929
2676
  "DELETE",
@@ -2932,7 +2679,7 @@ function managementClient(options) {
2932
2679
  },
2933
2680
  /** Who holds which roles on the client's project; organization administrators only. */
2934
2681
  grants: {
2935
- list: (call) => get("/grants", z13.array(grantRecordSchema), call),
2682
+ list: (call) => get("/grants", z12.array(grantRecordSchema), call),
2936
2683
  /** Replaces one person's roles and environments on the project. The audit log records it. */
2937
2684
  set: (input, call) => request(
2938
2685
  "/grants",
@@ -2949,7 +2696,7 @@ function managementClient(options) {
2949
2696
  /** Signed activity notifications for one project/environment; writes require publish permission. */
2950
2697
  webhooks: {
2951
2698
  state: (id, call) => get(
2952
- `/webhooks/${z13.string().uuid().parse(id)}/state`,
2699
+ `/webhooks/${z12.string().uuid().parse(id)}/state`,
2953
2700
  webhookEndpointStateSchema,
2954
2701
  call
2955
2702
  ),
@@ -2960,24 +2707,24 @@ function managementClient(options) {
2960
2707
  call
2961
2708
  ),
2962
2709
  delete: (id, input, call) => post(
2963
- `/webhooks/${z13.string().uuid().parse(id)}/delete`,
2710
+ `/webhooks/${z12.string().uuid().parse(id)}/delete`,
2964
2711
  webhookEndpointStateSchema,
2965
2712
  webhookDeleteInputSchema.parse(withActionId(input)),
2966
2713
  call
2967
2714
  ),
2968
2715
  pause: (id, input = {}, call) => post(
2969
- `/webhooks/${z13.string().uuid().parse(id)}/pause`,
2716
+ `/webhooks/${z12.string().uuid().parse(id)}/pause`,
2970
2717
  webhookEndpointSchema,
2971
2718
  webhookControlInputSchema.parse(withActionId(input)),
2972
2719
  call
2973
2720
  ),
2974
2721
  resume: (id, input = {}, call) => post(
2975
- `/webhooks/${z13.string().uuid().parse(id)}/resume`,
2722
+ `/webhooks/${z12.string().uuid().parse(id)}/resume`,
2976
2723
  webhookEndpointSchema,
2977
2724
  webhookControlInputSchema.parse(withActionId(input)),
2978
2725
  call
2979
2726
  ),
2980
- list: (call) => get("/webhooks", z13.array(webhookEndpointSchema), call),
2727
+ list: (call) => get("/webhooks", z12.array(webhookEndpointSchema), call),
2981
2728
  create: (input, call) => post(
2982
2729
  "/webhooks",
2983
2730
  webhookSecretSchema,
@@ -2985,7 +2732,7 @@ function managementClient(options) {
2985
2732
  call
2986
2733
  ),
2987
2734
  update: (id, input, call) => request(
2988
- `/webhooks/${z13.string().uuid().parse(id)}`,
2735
+ `/webhooks/${z12.string().uuid().parse(id)}`,
2989
2736
  webhookEndpointSchema,
2990
2737
  webhookUpdateSchema.parse(input),
2991
2738
  "PUT",
@@ -2993,24 +2740,24 @@ function managementClient(options) {
2993
2740
  ),
2994
2741
  /** @deprecated Use pause. Removed in 2.0.0. */
2995
2742
  disable: (id, call) => post(
2996
- `/webhooks/${z13.string().uuid().parse(id)}/disable`,
2743
+ `/webhooks/${z12.string().uuid().parse(id)}/disable`,
2997
2744
  webhookEndpointSchema,
2998
2745
  {},
2999
2746
  call
3000
2747
  ),
3001
2748
  rotateSecret: (id, call) => post(
3002
- `/webhooks/${z13.string().uuid().parse(id)}/rotate-secret`,
2749
+ `/webhooks/${z12.string().uuid().parse(id)}/rotate-secret`,
3003
2750
  webhookSecretSchema,
3004
2751
  {},
3005
2752
  call
3006
2753
  ),
3007
2754
  deliveries: (id, query = {}, call) => get(
3008
- `/webhooks/${z13.string().uuid().parse(id)}/deliveries${queryString(webhookQuerySchema.parse(query))}`,
2755
+ `/webhooks/${z12.string().uuid().parse(id)}/deliveries${queryString(webhookQuerySchema.parse(query))}`,
3009
2756
  webhookDeliveryPageSchema,
3010
2757
  call
3011
2758
  ),
3012
2759
  replay: (id, delivery, call) => post(
3013
- `/webhooks/${z13.string().uuid().parse(id)}/deliveries/${z13.string().uuid().parse(delivery)}/replay`,
2760
+ `/webhooks/${z12.string().uuid().parse(id)}/deliveries/${z12.string().uuid().parse(delivery)}/replay`,
3014
2761
  webhookDeliverySchema,
3015
2762
  {},
3016
2763
  call
@@ -3021,7 +2768,7 @@ function managementClient(options) {
3021
2768
  * environment. Organization administrators, from a Console session only.
3022
2769
  */
3023
2770
  identityIntegrations: {
3024
- list: (call) => get("/identity-integrations", z13.array(identityIntegrationSchema), call),
2771
+ list: (call) => get("/identity-integrations", z12.array(identityIntegrationSchema), call),
3025
2772
  /** The secret `token` is in this response only. */
3026
2773
  create: (input, call) => post(
3027
2774
  "/identity-integrations",
@@ -3031,7 +2778,7 @@ function managementClient(options) {
3031
2778
  ),
3032
2779
  /** Replaces the key's secret and extends it by 90 days; the old secret stops working. */
3033
2780
  rotate: (id, call) => post(
3034
- `/identity-integrations/${z13.string().uuid().parse(id)}/rotate`,
2781
+ `/identity-integrations/${z12.string().uuid().parse(id)}/rotate`,
3035
2782
  identityIntegrationSecretSchema,
3036
2783
  {},
3037
2784
  call
@@ -3043,7 +2790,7 @@ function managementClient(options) {
3043
2790
  */
3044
2791
  kinds: (call) => get(
3045
2792
  "/identity-integrations/kinds",
3046
- z13.array(identityKindClaimSchema),
2793
+ z12.array(identityKindClaimSchema),
3047
2794
  call
3048
2795
  ),
3049
2796
  /**
@@ -3051,8 +2798,8 @@ function managementClient(options) {
3051
2798
  * and keep attributing tracker records; unlink them on the member to stop that.
3052
2799
  */
3053
2800
  revoke: (id, call) => request(
3054
- `/identity-integrations/${z13.string().uuid().parse(id)}`,
3055
- z13.null(),
2801
+ `/identity-integrations/${z12.string().uuid().parse(id)}`,
2802
+ z12.null(),
3056
2803
  void 0,
3057
2804
  "DELETE",
3058
2805
  call
@@ -3067,9 +2814,8 @@ function managementClient(options) {
3067
2814
  * and finds a `detail` quest in that result. `activity` uses `attempts.list`, and its `detail`
3068
2815
  * uses `attempts.get`. `members` uses `members.list`; `page()` ignores its `detail`, while
3069
2816
  * `members.get` reads a member. `rewards` uses `entitlements.list` and `inventory.list`, and
3070
- * its `detail` uses `entitlements.get`. No resource read lists historical releases or reads
3071
- * one historical release, so `releases` and its `detail` have no exact replacement;
3072
- * `quests.list` returns current releases only. `settings` uses `metrics.read`, `quests.list`
2817
+ * its `detail` uses `entitlements.get`. `releases` uses `releases.list`, and its `detail`
2818
+ * uses `releases.get`. `settings` uses `metrics.read`, `quests.list`
3073
2819
  * and `operations.list`; its `detail` has no effect. `audit` uses `audit.list`, except
3074
2820
  * `filter: "access"` uses `audit.access`; its `detail` has no effect. On every page,
3075
2821
  * `detail: "new"` is client-side create mode and triggers no replacement read. Resource lists
@@ -3104,7 +2850,7 @@ function managementClient(options) {
3104
2850
  resources: {
3105
2851
  list: (call) => get(
3106
2852
  "/resources",
3107
- z13.object({ resources: z13.array(managedResourceSchema) }),
2853
+ z12.object({ resources: z12.array(managedResourceSchema) }),
3108
2854
  call
3109
2855
  ),
3110
2856
  /** @deprecated Use the resource archive/unarchive methods. Removed in 2.0.0. */
@@ -3141,7 +2887,7 @@ function managementClient(options) {
3141
2887
  testMemberCreateSchema.parse(withActionId(input)),
3142
2888
  call
3143
2889
  ),
3144
- list: (call) => get("/test-members", z13.array(testMemberSchema), call),
2890
+ list: (call) => get("/test-members", z12.array(testMemberSchema), call),
3145
2891
  history: (member, query = {}, call) => get(
3146
2892
  `/test-members/${identifier.parse(member)}/history${queryString(testMemberHistoryQuerySchema.parse(query))}`,
3147
2893
  testMemberHistorySchema,
@@ -3223,26 +2969,26 @@ function managementClient(options) {
3223
2969
  /** Who each member is: up to 100 distinct IDs; unknown IDs come back without accounts. */
3224
2970
  people: (members, call) => get(
3225
2971
  `/people${queryString({ ids: members.join(",") })}`,
3226
- z13.array(personSchema),
2972
+ z12.array(personSchema),
3227
2973
  call
3228
2974
  ),
3229
2975
  /** Current X and Discord quest account selections; requires read permission. */
3230
2976
  oauthAccounts: (member, call) => get(
3231
2977
  `/members/${encodeURIComponent(member)}/oauth-accounts`,
3232
- z13.array(managedOAuthAccountSchema),
2978
+ z12.array(managedOAuthAccountSchema),
3233
2979
  call
3234
2980
  ),
3235
2981
  /** Unlinks the reviewed selection across this organization/environment, preserving ownership and sign-in. */
3236
2982
  unlinkOAuthAccount: (member, input, call) => post(
3237
2983
  `/members/${encodeURIComponent(member)}/oauth-accounts/unlink`,
3238
- z13.array(managedOAuthAccountSchema),
2984
+ z12.array(managedOAuthAccountSchema),
3239
2985
  memberOAuthUnlinkInputSchema.parse(input),
3240
2986
  call
3241
2987
  ),
3242
2988
  /** Unlinks a member's wallet from the project with a reason; requires `review` permission. The address stays bound to the member. */
3243
2989
  unlinkWallet: (member, input, call) => post(
3244
2990
  `/members/${encodeURIComponent(member)}/wallets/unlink`,
3245
- z13.array(managedWalletSchema),
2991
+ z12.array(managedWalletSchema),
3246
2992
  memberWalletUnlinkInputSchema.parse(input),
3247
2993
  call
3248
2994
  ),
@@ -3253,14 +2999,14 @@ function managementClient(options) {
3253
2999
  */
3254
3000
  unlinkIdentity: (member, input, call) => post(
3255
3001
  `/members/${encodeURIComponent(member)}/identities/unlink`,
3256
- z13.array(managedMemberIdentitySchema),
3002
+ z12.array(managedMemberIdentitySchema),
3257
3003
  memberIdentityChangeInputSchema.parse(input),
3258
3004
  call
3259
3005
  ),
3260
3006
  /** Relinks an `app:<name>` identity an operator unlinked from this member, with a reason; requires `review` permission. */
3261
3007
  relinkIdentity: (member, input, call) => post(
3262
3008
  `/members/${encodeURIComponent(member)}/identities/relink`,
3263
- z13.array(managedMemberIdentitySchema),
3009
+ z12.array(managedMemberIdentitySchema),
3264
3010
  memberIdentityChangeInputSchema.parse(input),
3265
3011
  call
3266
3012
  ),
@@ -3270,7 +3016,7 @@ function managementClient(options) {
3270
3016
  */
3271
3017
  setWalletSignIn: (member, input, call) => post(
3272
3018
  `/members/${encodeURIComponent(member)}/wallets/sign-in`,
3273
- z13.array(managedWalletSchema),
3019
+ z12.array(managedWalletSchema),
3274
3020
  memberWalletSignInInputSchema.parse(input),
3275
3021
  call
3276
3022
  )
@@ -3420,7 +3166,7 @@ function managementClient(options) {
3420
3166
  * Each quest's current release, the most recently published first, archived quests
3421
3167
  * included; requires `read` permission.
3422
3168
  */
3423
- list: (call) => get("/quests/list", z13.array(publishedReleaseSchema), call),
3169
+ list: (call) => get("/quests/list", z12.array(publishedReleaseSchema), call),
3424
3170
  /** Pending and exhausted asynchronous balance checks. Requires read. */
3425
3171
  automaticScheduling: (query = {}, call) => get(
3426
3172
  `/quests/automatic-scheduling${queryString(automaticSchedulingQuerySchema.parse(query))}`,
@@ -3520,148 +3266,383 @@ function managementClient(options) {
3520
3266
  )
3521
3267
  });
3522
3268
  }
3523
- var managementResponseSchemas = {
3524
- memberIdentityLinkPageSchema: knownResponse(memberIdentityLinkPageSchema),
3525
- managedQuestEnrollmentPageSchema: knownResponse(
3526
- managedQuestEnrollmentPageSchema
3527
- ),
3528
- inventoryItemPageSchema: knownResponse(inventoryItemPageSchema),
3529
- inventoryItemStateSchema: knownResponse(inventoryItemStateSchema),
3530
- questEnrollmentStateSchema: knownResponse(questEnrollmentStateSchema),
3531
- managedQuestEnrollmentSchema: knownResponse(managedQuestEnrollmentSchema),
3532
- memberIdentityLinkSchema: knownResponse(memberIdentityLinkSchema),
3533
- leaderboardSettlementReviewSchema: knownResponse(
3534
- leaderboardSettlementReviewSchema
3535
- ),
3536
- leaderboardSettlementReviewSummarySchema: knownResponse(
3537
- leaderboardSettlementReviewSummarySchema
3538
- ),
3539
- leaderboardSettlementReviewPageSchema: knownResponse(
3540
- leaderboardSettlementReviewPageSchema
3541
- ),
3542
- webhookEndpointStateSchema: knownResponse(webhookEndpointStateSchema),
3543
- webhookStatePageSchema: knownResponse(webhookStatePageSchema),
3544
- accessSchema: knownResponse(accessSchema),
3545
- allocatedQuestSchema: knownResponse(allocatedQuestSchema),
3546
- appSecretListSchema: knownResponse(appSecretListSchema),
3547
- appSecretSchema: knownResponse(appSecretSchema),
3548
- appStorageKeysSchema: knownResponse(appStorageKeysSchema),
3549
- appStorageListSchema: knownResponse(appStorageListSchema),
3550
- appStorageRowsSchema: knownResponse(appStorageRowsSchema),
3551
- appStorageTablesSchema: knownResponse(appStorageTablesSchema),
3552
- appStorageValueSchema: knownResponse(appStorageValueSchema),
3553
- attemptSchema: knownResponse(attemptSchema),
3554
- auditPageSchema: knownResponse(auditPageSchema),
3555
- automaticCatchUpPreviewSchema: knownResponse(automaticCatchUpPreviewSchema),
3556
- automaticCatchUpResultSchema: knownResponse(automaticCatchUpResultSchema),
3557
- automaticOutcomePageSchema: knownResponse(automaticOutcomePageSchema),
3558
- automaticSchedulingPageSchema: knownResponse(automaticSchedulingPageSchema),
3559
- automaticSchedulingSchema: knownResponse(automaticSchedulingSchema),
3560
- campaignEnrollmentSchema: knownResponse(campaignEnrollmentSchema),
3561
- catalogDeploymentPreviewSchema: knownResponse(catalogDeploymentPreviewSchema),
3562
- collectionPreviewSchema: knownResponse(collectionPreviewSchema),
3563
- completionRevocationSchema: knownResponse(completionRevocationSchema),
3564
- contentPerformancePageSchema: knownResponse(contentPerformancePageSchema),
3565
- contentQualificationPageSchema: knownResponse(contentQualificationPageSchema),
3566
- counterHistorySchema: knownResponse(counterHistorySchema),
3567
- counterModerationResultSchema: knownResponse(counterModerationResultSchema),
3568
- deploymentPreviewSchema: knownResponse(deploymentPreviewSchema),
3569
- deploymentRecordSchema: knownResponse(deploymentRecordSchema),
3570
- deploymentResultSchema: knownResponse(deploymentResultSchema),
3571
- engagementBoundaryPageSchema: knownResponse(engagementBoundaryPageSchema),
3572
- engagementChangePreviewSchema: knownResponse(engagementChangePreviewSchema),
3573
- engagementPageSchema: knownResponse(engagementPageSchema),
3574
- engagementRuleSchema: knownResponse(engagementRuleSchema),
3575
- engagementRuleVersionPageSchema: knownResponse(
3576
- engagementRuleVersionPageSchema
3577
- ),
3578
- engagementVersionPageSchema: knownResponse(engagementVersionPageSchema),
3579
- entitlementSchema: knownResponse(entitlementSchema),
3580
- grantRecordSchema: knownResponse(grantRecordSchema),
3581
- groupMemberPageSchema: knownResponse(groupMemberPageSchema),
3582
- groupMemberSchema: knownResponse(groupMemberSchema),
3583
- groupPageSchema: knownResponse(groupPageSchema),
3584
- identityIntegrationSchema: knownResponse(identityIntegrationSchema),
3585
- identityIntegrationSecretSchema: knownResponse(
3586
- identityIntegrationSecretSchema
3587
- ),
3588
- identityKindClaimSchema: knownResponse(identityKindClaimSchema),
3589
- issuedTokenSchema: knownResponse(issuedTokenSchema),
3590
- leaderboardPageSchema: knownResponse(leaderboardPageSchema),
3591
- leaderboardSettlementSchema: knownResponse(leaderboardSettlementSchema),
3592
- leaderboardSettlementSummarySchema: knownResponse(
3593
- leaderboardSettlementSummarySchema
3594
- ),
3595
- managedAttemptPageSchema: knownResponse(managedAttemptPageSchema),
3596
- managedAttemptSchema: knownResponse(managedAttemptSchema),
3597
- managedEntitlementPageSchema: knownResponse(managedEntitlementPageSchema),
3598
- managedEntitlementSchema: knownResponse(managedEntitlementSchema),
3599
- managedGroupSchema: knownResponse(managedGroupSchema),
3600
- managedMemberIdentitySchema: knownResponse(managedMemberIdentitySchema),
3601
- managedMemberPageSchema: knownResponse(managedMemberPageSchema),
3602
- managedOAuthAccountSchema: knownResponse(managedOAuthAccountSchema),
3603
- managedPointHistoryPageSchema: knownResponse(managedPointHistoryPageSchema),
3604
- managedPointLedgerSchema: knownResponse(managedPointLedgerSchema),
3605
- managedProfileSchema: knownResponse(managedProfileSchema),
3606
- managedResourceSchema: knownResponse(managedResourceSchema),
3607
- managedStockItemSchema: knownResponse(managedStockItemSchema),
3608
- managedWalletSchema: knownResponse(managedWalletSchema),
3609
- memberDetailSchema: knownResponse(memberDetailSchema),
3610
- offerSchema: knownResponse(offerSchema),
3611
- operationSchema: knownResponse(operationSchema),
3612
- pageSchema: knownResponse(pageSchema),
3613
- participantSignInSchema: knownResponse(participantSignInSchema),
3614
- personSchema: knownResponse(personSchema),
3615
- pickupAvailabilitySchema: knownResponse(pickupAvailabilitySchema),
3616
- pickupCatalogSchema: knownResponse(pickupCatalogSchema),
3617
- pointLedgerSchema: knownResponse(pointLedgerSchema),
3618
- pointsAccountSchema: knownResponse(pointsAccountSchema),
3619
- pointsResultSchema: knownResponse(pointsResultSchema),
3620
- profileSettingsSchema: knownResponse(profileSettingsSchema),
3621
- projectCalendarSchema: knownResponse(projectCalendarSchema),
3622
- projectDeletionSchema: knownResponse(projectDeletionSchema),
3623
- projectMetricsSchema: knownResponse(projectMetricsSchema),
3624
- projectSchema: knownResponse(projectSchema),
3625
- projectTransferSchema: knownResponse(projectTransferSchema),
3626
- publishedLeaderboardSchema: knownResponse(publishedLeaderboardSchema),
3627
- publishedReferralSchema: knownResponse(publishedReferralSchema),
3628
- publishedReleaseSchema: knownResponse(publishedReleaseSchema),
3629
- questCatalogSchema: knownResponse(questCatalogSchema),
3630
- questDraftSchema: knownResponse(questDraftSchema),
3631
- questEnrollmentSchema: knownResponse(questEnrollmentSchema),
3632
- questLifecycleSchema: knownResponse(questLifecycleSchema),
3633
- questPublicationPreviewSchema: knownResponse(questPublicationPreviewSchema),
3634
- readinessSchema: knownResponse(readinessSchema),
3635
- redemptionSchema: knownResponse(redemptionSchema),
3636
- referralHistorySchema: knownResponse(referralHistorySchema),
3637
- referralManagementSchema: knownResponse(referralManagementSchema),
3638
- resourceLifecycleResultSchema: knownResponse(resourceLifecycleResultSchema),
3639
- rewardDeliveriesSchema: knownResponse(rewardDeliveriesSchema),
3640
- rewardDeliverySchema: knownResponse(rewardDeliverySchema),
3641
- stockAdditionSchema: knownResponse(stockAdditionSchema),
3642
- stockItemSchema: knownResponse(stockItemSchema),
3643
- teamSchema: knownResponse(teamSchema),
3644
- testMemberHistorySchema: knownResponse(testMemberHistorySchema),
3645
- testMemberResetResultSchema: knownResponse(testMemberResetResultSchema),
3646
- testMemberSchema: knownResponse(testMemberSchema),
3647
- tokenSchema: knownResponse(tokenSchema),
3648
- trackerContentSchema: knownResponse(trackerContentSchema),
3649
- trackerIngestResultSchema: knownResponse(trackerIngestResultSchema),
3650
- trackerOutcomePageSchema: knownResponse(trackerOutcomePageSchema),
3651
- trackerOutcomeSchema: knownResponse(trackerOutcomeSchema),
3652
- trackerPageSchema: knownResponse(trackerPageSchema),
3653
- trackerPreviewSchema: knownResponse(trackerPreviewSchema),
3654
- trackerStatusSchema: knownResponse(trackerStatusSchema),
3655
- trackerSummarySchema: knownResponse(trackerSummarySchema),
3656
- trackerTriggerOutcomePageSchema: knownResponse(
3657
- trackerTriggerOutcomePageSchema
3658
- ),
3659
- walletBalanceChainsSchema: knownResponse(walletBalanceChainsSchema),
3660
- webhookDeliveryPageSchema: knownResponse(webhookDeliveryPageSchema),
3661
- webhookDeliverySchema: knownResponse(webhookDeliverySchema),
3662
- webhookEndpointSchema: knownResponse(webhookEndpointSchema),
3663
- webhookSecretSchema: knownResponse(webhookSecretSchema)
3664
- };
3269
+ var managementResponseSchemas = lazyResponseReaders({
3270
+ get memberIdentityLinkPageSchema() {
3271
+ return knownResponse(memberIdentityLinkPageSchema);
3272
+ },
3273
+ get managedQuestEnrollmentPageSchema() {
3274
+ return knownResponse(managedQuestEnrollmentPageSchema);
3275
+ },
3276
+ get inventoryItemPageSchema() {
3277
+ return knownResponse(inventoryItemPageSchema);
3278
+ },
3279
+ get inventoryItemStateSchema() {
3280
+ return knownResponse(inventoryItemStateSchema);
3281
+ },
3282
+ get questEnrollmentStateSchema() {
3283
+ return knownResponse(questEnrollmentStateSchema);
3284
+ },
3285
+ get managedQuestEnrollmentSchema() {
3286
+ return knownResponse(managedQuestEnrollmentSchema);
3287
+ },
3288
+ get memberIdentityLinkSchema() {
3289
+ return knownResponse(memberIdentityLinkSchema);
3290
+ },
3291
+ get leaderboardSettlementReviewSchema() {
3292
+ return knownResponse(leaderboardSettlementReviewSchema);
3293
+ },
3294
+ get leaderboardSettlementReviewSummarySchema() {
3295
+ return knownResponse(leaderboardSettlementReviewSummarySchema);
3296
+ },
3297
+ get leaderboardSettlementReviewPageSchema() {
3298
+ return knownResponse(leaderboardSettlementReviewPageSchema);
3299
+ },
3300
+ get webhookEndpointStateSchema() {
3301
+ return knownResponse(webhookEndpointStateSchema);
3302
+ },
3303
+ get webhookStatePageSchema() {
3304
+ return knownResponse(webhookStatePageSchema);
3305
+ },
3306
+ get accessSchema() {
3307
+ return knownResponse(accessSchema);
3308
+ },
3309
+ get allocatedQuestSchema() {
3310
+ return knownResponse(allocatedQuestSchema);
3311
+ },
3312
+ get appSecretListSchema() {
3313
+ return knownResponse(appSecretListSchema);
3314
+ },
3315
+ get appSecretSchema() {
3316
+ return knownResponse(appSecretSchema);
3317
+ },
3318
+ get appStorageKeysSchema() {
3319
+ return knownResponse(appStorageKeysSchema);
3320
+ },
3321
+ get appStorageListSchema() {
3322
+ return knownResponse(appStorageListSchema);
3323
+ },
3324
+ get appStorageRowsSchema() {
3325
+ return knownResponse(appStorageRowsSchema);
3326
+ },
3327
+ get appStorageTablesSchema() {
3328
+ return knownResponse(appStorageTablesSchema);
3329
+ },
3330
+ get appStorageValueSchema() {
3331
+ return knownResponse(appStorageValueSchema);
3332
+ },
3333
+ get attemptSchema() {
3334
+ return knownResponse(attemptSchema);
3335
+ },
3336
+ get auditPageSchema() {
3337
+ return knownResponse(auditPageSchema);
3338
+ },
3339
+ get automaticCatchUpPreviewSchema() {
3340
+ return knownResponse(automaticCatchUpPreviewSchema);
3341
+ },
3342
+ get automaticCatchUpResultSchema() {
3343
+ return knownResponse(automaticCatchUpResultSchema);
3344
+ },
3345
+ get automaticOutcomePageSchema() {
3346
+ return knownResponse(automaticOutcomePageSchema);
3347
+ },
3348
+ get automaticSchedulingPageSchema() {
3349
+ return knownResponse(automaticSchedulingPageSchema);
3350
+ },
3351
+ get automaticSchedulingSchema() {
3352
+ return knownResponse(automaticSchedulingSchema);
3353
+ },
3354
+ get campaignEnrollmentSchema() {
3355
+ return knownResponse(campaignEnrollmentSchema);
3356
+ },
3357
+ get catalogDeploymentPreviewSchema() {
3358
+ return knownResponse(catalogDeploymentPreviewSchema);
3359
+ },
3360
+ get collectionPreviewSchema() {
3361
+ return knownResponse(collectionPreviewSchema);
3362
+ },
3363
+ get completionRevocationSchema() {
3364
+ return knownResponse(completionRevocationSchema);
3365
+ },
3366
+ get contentPerformancePageSchema() {
3367
+ return knownResponse(contentPerformancePageSchema);
3368
+ },
3369
+ get contentQualificationPageSchema() {
3370
+ return knownResponse(contentQualificationPageSchema);
3371
+ },
3372
+ get counterHistorySchema() {
3373
+ return knownResponse(counterHistorySchema);
3374
+ },
3375
+ get counterModerationResultSchema() {
3376
+ return knownResponse(counterModerationResultSchema);
3377
+ },
3378
+ get deploymentPreviewSchema() {
3379
+ return knownResponse(deploymentPreviewSchema);
3380
+ },
3381
+ get deploymentRecordSchema() {
3382
+ return knownResponse(deploymentRecordSchema);
3383
+ },
3384
+ get deploymentResultSchema() {
3385
+ return knownResponse(deploymentResultSchema);
3386
+ },
3387
+ get engagementBoundaryPageSchema() {
3388
+ return knownResponse(engagementBoundaryPageSchema);
3389
+ },
3390
+ get engagementChangePreviewSchema() {
3391
+ return knownResponse(engagementChangePreviewSchema);
3392
+ },
3393
+ get engagementPageSchema() {
3394
+ return knownResponse(engagementPageSchema);
3395
+ },
3396
+ get engagementRuleSchema() {
3397
+ return knownResponse(engagementRuleSchema);
3398
+ },
3399
+ get engagementRuleVersionPageSchema() {
3400
+ return knownResponse(engagementRuleVersionPageSchema);
3401
+ },
3402
+ get engagementVersionPageSchema() {
3403
+ return knownResponse(engagementVersionPageSchema);
3404
+ },
3405
+ get entitlementSchema() {
3406
+ return knownResponse(entitlementSchema);
3407
+ },
3408
+ get grantRecordSchema() {
3409
+ return knownResponse(grantRecordSchema);
3410
+ },
3411
+ get groupMemberPageSchema() {
3412
+ return knownResponse(groupMemberPageSchema);
3413
+ },
3414
+ get groupMemberSchema() {
3415
+ return knownResponse(groupMemberSchema);
3416
+ },
3417
+ get groupPageSchema() {
3418
+ return knownResponse(groupPageSchema);
3419
+ },
3420
+ get identityIntegrationSchema() {
3421
+ return knownResponse(identityIntegrationSchema);
3422
+ },
3423
+ get identityIntegrationSecretSchema() {
3424
+ return knownResponse(identityIntegrationSecretSchema);
3425
+ },
3426
+ get identityKindClaimSchema() {
3427
+ return knownResponse(identityKindClaimSchema);
3428
+ },
3429
+ get issuedTokenSchema() {
3430
+ return knownResponse(issuedTokenSchema);
3431
+ },
3432
+ get leaderboardPageSchema() {
3433
+ return knownResponse(leaderboardPageSchema);
3434
+ },
3435
+ get leaderboardSettlementSchema() {
3436
+ return knownResponse(leaderboardSettlementSchema);
3437
+ },
3438
+ get leaderboardSettlementSummarySchema() {
3439
+ return knownResponse(leaderboardSettlementSummarySchema);
3440
+ },
3441
+ get managedAttemptPageSchema() {
3442
+ return knownResponse(managedAttemptPageSchema);
3443
+ },
3444
+ get managedReleasePageSchema() {
3445
+ return knownResponse(managedReleasePageSchema);
3446
+ },
3447
+ get managedAttemptSchema() {
3448
+ return knownResponse(managedAttemptSchema);
3449
+ },
3450
+ get managedEntitlementPageSchema() {
3451
+ return knownResponse(managedEntitlementPageSchema);
3452
+ },
3453
+ get managedEntitlementSchema() {
3454
+ return knownResponse(managedEntitlementSchema);
3455
+ },
3456
+ get managedGroupSchema() {
3457
+ return knownResponse(managedGroupSchema);
3458
+ },
3459
+ get managedMemberIdentitySchema() {
3460
+ return knownResponse(managedMemberIdentitySchema);
3461
+ },
3462
+ get managedMemberPageSchema() {
3463
+ return knownResponse(managedMemberPageSchema);
3464
+ },
3465
+ get managedOAuthAccountSchema() {
3466
+ return knownResponse(managedOAuthAccountSchema);
3467
+ },
3468
+ get managedPointHistoryPageSchema() {
3469
+ return knownResponse(managedPointHistoryPageSchema);
3470
+ },
3471
+ get managedPointLedgerSchema() {
3472
+ return knownResponse(managedPointLedgerSchema);
3473
+ },
3474
+ get managedProfileSchema() {
3475
+ return knownResponse(managedProfileSchema);
3476
+ },
3477
+ get managedResourceSchema() {
3478
+ return knownResponse(managedResourceSchema);
3479
+ },
3480
+ get managedStockItemSchema() {
3481
+ return knownResponse(managedStockItemSchema);
3482
+ },
3483
+ get managedWalletSchema() {
3484
+ return knownResponse(managedWalletSchema);
3485
+ },
3486
+ get memberDetailSchema() {
3487
+ return knownResponse(memberDetailSchema);
3488
+ },
3489
+ get offerSchema() {
3490
+ return knownResponse(offerSchema);
3491
+ },
3492
+ get operationSchema() {
3493
+ return knownResponse(operationSchema);
3494
+ },
3495
+ get pageSchema() {
3496
+ return knownResponse(pageSchema);
3497
+ },
3498
+ get participantSignInSchema() {
3499
+ return knownResponse(participantSignInSchema);
3500
+ },
3501
+ get personSchema() {
3502
+ return knownResponse(personSchema);
3503
+ },
3504
+ get pickupAvailabilitySchema() {
3505
+ return knownResponse(pickupAvailabilitySchema);
3506
+ },
3507
+ get pickupCatalogSchema() {
3508
+ return knownResponse(pickupCatalogSchema);
3509
+ },
3510
+ get pointLedgerSchema() {
3511
+ return knownResponse(pointLedgerSchema);
3512
+ },
3513
+ get pointsAccountSchema() {
3514
+ return knownResponse(pointsAccountSchema);
3515
+ },
3516
+ get pointsResultSchema() {
3517
+ return knownResponse(pointsResultSchema);
3518
+ },
3519
+ get profileSettingsSchema() {
3520
+ return knownResponse(profileSettingsSchema);
3521
+ },
3522
+ get projectCalendarSchema() {
3523
+ return knownResponse(projectCalendarSchema);
3524
+ },
3525
+ get projectDeletionSchema() {
3526
+ return knownResponse(projectDeletionSchema);
3527
+ },
3528
+ get projectMetricsSchema() {
3529
+ return knownResponse(projectMetricsSchema);
3530
+ },
3531
+ get projectSchema() {
3532
+ return knownResponse(projectSchema);
3533
+ },
3534
+ get projectTransferSchema() {
3535
+ return knownResponse(projectTransferSchema);
3536
+ },
3537
+ get publishedLeaderboardSchema() {
3538
+ return knownResponse(publishedLeaderboardSchema);
3539
+ },
3540
+ get publishedReferralSchema() {
3541
+ return knownResponse(publishedReferralSchema);
3542
+ },
3543
+ get publishedReleaseSchema() {
3544
+ return knownResponse(publishedReleaseSchema);
3545
+ },
3546
+ get questCatalogSchema() {
3547
+ return knownResponse(questCatalogSchema);
3548
+ },
3549
+ get questDraftSchema() {
3550
+ return knownResponse(questDraftSchema);
3551
+ },
3552
+ get questEnrollmentSchema() {
3553
+ return knownResponse(questEnrollmentSchema);
3554
+ },
3555
+ get questLifecycleSchema() {
3556
+ return knownResponse(questLifecycleSchema);
3557
+ },
3558
+ get questPublicationPreviewSchema() {
3559
+ return knownResponse(questPublicationPreviewSchema);
3560
+ },
3561
+ get readinessSchema() {
3562
+ return knownResponse(readinessSchema);
3563
+ },
3564
+ get redemptionSchema() {
3565
+ return knownResponse(redemptionSchema);
3566
+ },
3567
+ get referralHistorySchema() {
3568
+ return knownResponse(referralHistorySchema);
3569
+ },
3570
+ get referralManagementSchema() {
3571
+ return knownResponse(referralManagementSchema);
3572
+ },
3573
+ get resourceLifecycleResultSchema() {
3574
+ return knownResponse(resourceLifecycleResultSchema);
3575
+ },
3576
+ get rewardDeliveriesSchema() {
3577
+ return knownResponse(rewardDeliveriesSchema);
3578
+ },
3579
+ get rewardDeliverySchema() {
3580
+ return knownResponse(rewardDeliverySchema);
3581
+ },
3582
+ get stockAdditionSchema() {
3583
+ return knownResponse(stockAdditionSchema);
3584
+ },
3585
+ get stockItemSchema() {
3586
+ return knownResponse(stockItemSchema);
3587
+ },
3588
+ get teamSchema() {
3589
+ return knownResponse(teamSchema);
3590
+ },
3591
+ get testMemberHistorySchema() {
3592
+ return knownResponse(testMemberHistorySchema);
3593
+ },
3594
+ get testMemberResetResultSchema() {
3595
+ return knownResponse(testMemberResetResultSchema);
3596
+ },
3597
+ get testMemberSchema() {
3598
+ return knownResponse(testMemberSchema);
3599
+ },
3600
+ get tokenSchema() {
3601
+ return knownResponse(tokenSchema);
3602
+ },
3603
+ get trackerContentSchema() {
3604
+ return knownResponse(trackerContentSchema);
3605
+ },
3606
+ get trackerIngestResultSchema() {
3607
+ return knownResponse(trackerIngestResultSchema);
3608
+ },
3609
+ get trackerOutcomePageSchema() {
3610
+ return knownResponse(trackerOutcomePageSchema);
3611
+ },
3612
+ get trackerOutcomeSchema() {
3613
+ return knownResponse(trackerOutcomeSchema);
3614
+ },
3615
+ get trackerPageSchema() {
3616
+ return knownResponse(trackerPageSchema);
3617
+ },
3618
+ get trackerPreviewSchema() {
3619
+ return knownResponse(trackerPreviewSchema);
3620
+ },
3621
+ get trackerStatusSchema() {
3622
+ return knownResponse(trackerStatusSchema);
3623
+ },
3624
+ get trackerSummarySchema() {
3625
+ return knownResponse(trackerSummarySchema);
3626
+ },
3627
+ get trackerTriggerOutcomePageSchema() {
3628
+ return knownResponse(trackerTriggerOutcomePageSchema);
3629
+ },
3630
+ get walletBalanceChainsSchema() {
3631
+ return knownResponse(walletBalanceChainsSchema);
3632
+ },
3633
+ get webhookDeliveryPageSchema() {
3634
+ return knownResponse(webhookDeliveryPageSchema);
3635
+ },
3636
+ get webhookDeliverySchema() {
3637
+ return knownResponse(webhookDeliverySchema);
3638
+ },
3639
+ get webhookEndpointSchema() {
3640
+ return knownResponse(webhookEndpointSchema);
3641
+ },
3642
+ get webhookSecretSchema() {
3643
+ return knownResponse(webhookSecretSchema);
3644
+ }
3645
+ });
3665
3646
  var managementResponses = {
3666
3647
  memberIdentityLinkPageSchema: responseSchema(memberIdentityLinkPageSchema),
3667
3648
  managedQuestEnrollmentPageSchema: responseSchema(
@@ -3739,6 +3720,7 @@ var managementResponses = {
3739
3720
  leaderboardSettlementSummarySchema
3740
3721
  ),
3741
3722
  managedAttemptPageSchema: responseSchema(managedAttemptPageSchema),
3723
+ managedReleasePageSchema: responseSchema(managedReleasePageSchema),
3742
3724
  managedAttemptSchema: responseSchema(managedAttemptSchema),
3743
3725
  managedEntitlementPageSchema: responseSchema(managedEntitlementPageSchema),
3744
3726
  managedEntitlementSchema: responseSchema(managedEntitlementSchema),
@@ -3851,6 +3833,7 @@ export {
3851
3833
  appStorageTablesSchema,
3852
3834
  appStorageValueSchema,
3853
3835
  assetPathSchema,
3836
+ attemptCaptureSchema,
3854
3837
  auditPageSchema,
3855
3838
  auditQuerySchema,
3856
3839
  auditRecordSchema,
@@ -3860,6 +3843,7 @@ export {
3860
3843
  buildPhaseSchema,
3861
3844
  buildSnapshotSchema,
3862
3845
  buildStatusSchema,
3846
+ capturedFactSchema,
3863
3847
  commitSchema,
3864
3848
  compareAppMigrations,
3865
3849
  completionRevocationSchema,
@@ -3929,6 +3913,8 @@ export {
3929
3913
  managedPointHistoryPageSchema,
3930
3914
  managedQuestEnrollmentPageSchema,
3931
3915
  managedQuestEnrollmentSchema,
3916
+ managedReleasePageSchema,
3917
+ managedReleaseQuerySchema,
3932
3918
  managedResourceSchema,
3933
3919
  managedStockItemSchema,
3934
3920
  managedWalletSchema,